]> git.saurik.com Git - wxWidgets.git/blob - configure
fix to include correct files.lst for wxUniv
[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 # Configure paths for GTK+
40 # Owen Taylor 97-11-3
41
42
43
44
45
46
47 # Guess values for system-dependent variables and create Makefiles.
48 # Generated automatically using autoconf version 2.13
49 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50 #
51 # This configure script is free software; the Free Software Foundation
52 # gives unlimited permission to copy, distribute and modify it.
53
54 # Defaults:
55 ac_help=
56 ac_default_prefix=/usr/local
57 # Any additions from configure.in:
58 ac_help="$ac_help
59 --enable-gui use GUI classes"
60 ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62 ac_help="$ac_help
63 --with-gtk use GTK+"
64 ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66 ac_help="$ac_help
67 --with-mac use Mac OS X"
68 ac_help="$ac_help
69 --with-wine use WINE"
70 ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72 ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74 ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76 ac_help="$ac_help
77 --with-mgl use MGL"
78 ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80 ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82 ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84 ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86 ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88 ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90 ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92 ac_help="$ac_help
93 --with-zlib use zlib for LZW compression"
94 ac_help="$ac_help
95 --with-odbc use the IODBC and wxODBC classes"
96 ac_help="$ac_help
97 --enable-shared create shared library code"
98 ac_help="$ac_help
99 --enable-burnt_name create set name in shared library "
100 ac_help="$ac_help
101 --enable-optimise create optimised code"
102 ac_help="$ac_help
103 --enable-debug same as debug_flag and debug_info"
104 ac_help="$ac_help
105 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
106 ac_help="$ac_help
107 --enable-debug_info create code with debugging information"
108 ac_help="$ac_help
109 --enable-debug_gdb create code with extra GDB debugging information"
110 ac_help="$ac_help
111 --enable-debug_cntxt use wxDebugContext"
112 ac_help="$ac_help
113 --enable-mem_tracing create code with memory tracing"
114 ac_help="$ac_help
115 --enable-profile create code with profiling information"
116 ac_help="$ac_help
117 --enable-no_rtti create code without RTTI information"
118 ac_help="$ac_help
119 --enable-no_exceptions create code without exceptions information"
120 ac_help="$ac_help
121 --enable-permissive compile code disregarding strict ANSI"
122 ac_help="$ac_help
123 --enable-no_deps create code without dependency information"
124 ac_help="$ac_help
125 --enable-compat20 enable wxWin 2.0 compatibility"
126 ac_help="$ac_help
127 --enable-compat22 enable wxWin 2.2 compatibility"
128 ac_help="$ac_help
129 --enable-intl use internationalization system"
130 ac_help="$ac_help
131 --enable-config use wxConfig (and derived) classes"
132 ac_help="$ac_help
133 --enable-sockets use socket/network classes"
134 ac_help="$ac_help
135 --enable-ipc use interprocess communication (wxSocket etc.)"
136 ac_help="$ac_help
137 --enable-cmdline use wxCmdLineParser class"
138 ac_help="$ac_help
139 --enable-datetime use wxDateTime class"
140 ac_help="$ac_help
141 --enable-timedate use obsolete wxDate/wxTime classes"
142 ac_help="$ac_help
143 --enable-stopwatch use wxStopWatch class"
144 ac_help="$ac_help
145 --enable-dialupman use dialup network classes"
146 ac_help="$ac_help
147 --enable-apple_ieee use the Apple IEEE codec"
148 ac_help="$ac_help
149 --enable-timer use wxTimer class"
150 ac_help="$ac_help
151 --enable-wave use wxWave class"
152 ac_help="$ac_help
153 --enable-fraction use wxFraction class"
154 ac_help="$ac_help
155 --enable-dynlib use wxLibrary class for DLL loading"
156 ac_help="$ac_help
157 --enable-longlong use wxLongLong class"
158 ac_help="$ac_help
159 --enable-geometry use geometry class"
160 ac_help="$ac_help
161 --enable-log use logging system"
162 ac_help="$ac_help
163 --enable-streams use wxStream etc classes"
164 ac_help="$ac_help
165 --enable-file use wxFile classes"
166 ac_help="$ac_help
167 --enable-ffile use wxFFile classes"
168 ac_help="$ac_help
169 --enable-textfile use wxTextFile classes"
170 ac_help="$ac_help
171 --enable-fontmap use font encodings conversion classes"
172 ac_help="$ac_help
173 --enable-unicode compile wxString with Unicode support"
174 ac_help="$ac_help
175 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
176 ac_help="$ac_help
177 --enable-wxprintfv use wxWindows implementation of vprintf()"
178 ac_help="$ac_help
179 --enable-std_iostreams use standard C++ stream classes"
180 ac_help="$ac_help
181 --enable-filesystem use virtual file systems classes"
182 ac_help="$ac_help
183 --enable-fs_inet use virtual HTTP/FTP filesystems"
184 ac_help="$ac_help
185 --enable-fs_zip use virtual ZIP filesystems"
186 ac_help="$ac_help
187 --enable-zipstream use wxZipInputStream"
188 ac_help="$ac_help
189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
190 ac_help="$ac_help
191 --enable-snglinst use wxSingleInstanceChecker class"
192 ac_help="$ac_help
193 --enable-mimetypes use wxMimeTypesManager"
194 ac_help="$ac_help
195 --enable-threads use threads"
196 ac_help="$ac_help
197 --enable-serial use class serialization"
198 ac_help="$ac_help
199 --enable-docview use document view architecture"
200 ac_help="$ac_help
201 --enable-help use help subsystem"
202 ac_help="$ac_help
203 --enable-html use wxHTML sub-library"
204 ac_help="$ac_help
205 --enable-htmlhelp use wxHTML-based help"
206 ac_help="$ac_help
207 --enable-constraints use layout-constraints system"
208 ac_help="$ac_help
209 --enable-printarch use printing architecture"
210 ac_help="$ac_help
211 --enable-mdi use multiple document interface architecture"
212 ac_help="$ac_help
213 --enable-loggui use standard GUI logger"
214 ac_help="$ac_help
215 --enable-logwin use wxLogWindow"
216 ac_help="$ac_help
217 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
218 ac_help="$ac_help
219 --enable-prologio use Prolog IO library"
220 ac_help="$ac_help
221 --enable-resources use wxWindows resources"
222 ac_help="$ac_help
223 --enable-xresources use X resources for save (default for gtk+)"
224 ac_help="$ac_help
225 --enable-clipboard use wxClipboard classes"
226 ac_help="$ac_help
227 --enable-dnd use Drag'n'Drop classes"
228 ac_help="$ac_help
229 --enable-metafile use win32 metafiles"
230 ac_help="$ac_help
231 --enable-wxtree make wxTree library"
232 ac_help="$ac_help
233 --enable-controls use all usual controls"
234 ac_help="$ac_help
235 --enable-accel use accelerators"
236 ac_help="$ac_help
237 --enable-button use wxButton class"
238 ac_help="$ac_help
239 --enable-bmpbutton use wxBitmapButton class"
240 ac_help="$ac_help
241 --enable-calendar use wxCalendarCtrl class"
242 ac_help="$ac_help
243 --enable-caret use wxCaret class"
244 ac_help="$ac_help
245 --enable-checkbox use wxCheckBox class"
246 ac_help="$ac_help
247 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
248 ac_help="$ac_help
249 --enable-choice use wxChoice class"
250 ac_help="$ac_help
251 --enable-combobox use wxComboBox classes"
252 ac_help="$ac_help
253 --enable-gauge use wxGauge class"
254 ac_help="$ac_help
255 --enable-grid use wxGrid class"
256 ac_help="$ac_help
257 --enable-newgrid use new wxGrid class"
258 ac_help="$ac_help
259 --enable-imaglist use wxImageList class"
260 ac_help="$ac_help
261 --enable-listbox use wxListBox class"
262 ac_help="$ac_help
263 --enable-listctrl use wxListCtrl class"
264 ac_help="$ac_help
265 --enable-notebook use wxNotebook class"
266 ac_help="$ac_help
267 --enable-radiobox use wxRadioBox class"
268 ac_help="$ac_help
269 --enable-radiobtn use wxRadioButton class"
270 ac_help="$ac_help
271 --enable-sash use wxSashWindow class"
272 ac_help="$ac_help
273 --enable-scrollbar use wxScrollBar class and scrollable windows"
274 ac_help="$ac_help
275 --enable-slider use wxSlider class"
276 ac_help="$ac_help
277 --enable-spinbtn use wxSpinButton class"
278 ac_help="$ac_help
279 --enable-spinctrl use wxSpinCtrl class"
280 ac_help="$ac_help
281 --enable-splitter use wxSplitterWindow class"
282 ac_help="$ac_help
283 --enable-statbmp use wxStaticBitmap class"
284 ac_help="$ac_help
285 --enable-statbox use wxStaticBox class"
286 ac_help="$ac_help
287 --enable-statline use wxStaticLine class"
288 ac_help="$ac_help
289 --enable-stattext use wxStaticText class"
290 ac_help="$ac_help
291 --enable-statusbar use wxStatusBar class"
292 ac_help="$ac_help
293 --enable-tabdialog use wxTabControl class"
294 ac_help="$ac_help
295 --enable-textctrl use wxTextCtrl class"
296 ac_help="$ac_help
297 --enable-togglebtn use wxToggleButton class"
298 ac_help="$ac_help
299 --enable-toolbar use wxToolBar class"
300 ac_help="$ac_help
301 --enable-tbarnative use native wxToolBar class"
302 ac_help="$ac_help
303 --enable-tbarsmpl use wxToolBarSimple class"
304 ac_help="$ac_help
305 --enable-treectrl use wxTreeCtrl class"
306 ac_help="$ac_help
307 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
308 ac_help="$ac_help
309 --enable-choicedlg use wxChoiceDialog"
310 ac_help="$ac_help
311 --enable-coldlg use wxColourDialog"
312 ac_help="$ac_help
313 --enable-filedlg use wxFileDialog"
314 ac_help="$ac_help
315 --enable-fontdlg use wxFontDialog"
316 ac_help="$ac_help
317 --enable-dirdlg use wxDirDialog"
318 ac_help="$ac_help
319 --enable-msgdlg use wxMessageDialog"
320 ac_help="$ac_help
321 --enable-numberdlg use wxNumberEntryDialog"
322 ac_help="$ac_help
323 --enable-textdlg use wxTextDialog"
324 ac_help="$ac_help
325 --enable-tipdlg use startup tips"
326 ac_help="$ac_help
327 --enable-progressdlg use wxProgressDialog"
328 ac_help="$ac_help
329 --enable-wizarddlg use wxWizard"
330 ac_help="$ac_help
331 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
332 ac_help="$ac_help
333 --enable-miniframe use wxMiniFrame class"
334 ac_help="$ac_help
335 --enable-tooltips use wxToolTip class"
336 ac_help="$ac_help
337 --enable-splines use spline drawing code"
338 ac_help="$ac_help
339 --enable-validators use wxValidator and derived classes"
340 ac_help="$ac_help
341 --enable-busyinfo use wxBusyInfo"
342 ac_help="$ac_help
343 --enable-joystick compile in joystick support (Linux only)"
344 ac_help="$ac_help
345 --enable-metafiles use wxMetaFile (Windows only)"
346 ac_help="$ac_help
347 --enable-dragimage use wxDragImage"
348 ac_help="$ac_help
349 --enable-image use wxImage class"
350 ac_help="$ac_help
351 --enable-gif use gif images (GIF file format)"
352 ac_help="$ac_help
353 --enable-pcx use pcx images (PCX file format)"
354 ac_help="$ac_help
355 --enable-pnm use pnm images (PNM file format)"
356 ac_help="$ac_help
357 --enable-xpm use xpm images (XPM file format)"
358 ac_help="$ac_help
359 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
360 ac_help="$ac_help
361 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
362 ac_help="$ac_help
363 --disable-gtktest Do not try to compile and run a test GTK program"
364 ac_help="$ac_help
365 --with-x use the X Window System"
366
367 # Initialize some variables set by options.
368 # The variables have the same names as the options, with
369 # dashes changed to underlines.
370 build=NONE
371 cache_file=./config.cache
372 exec_prefix=NONE
373 host=NONE
374 no_create=
375 nonopt=NONE
376 no_recursion=
377 prefix=NONE
378 program_prefix=NONE
379 program_suffix=NONE
380 program_transform_name=s,x,x,
381 silent=
382 site=
383 srcdir=
384 target=NONE
385 verbose=
386 x_includes=NONE
387 x_libraries=NONE
388 bindir='${exec_prefix}/bin'
389 sbindir='${exec_prefix}/sbin'
390 libexecdir='${exec_prefix}/libexec'
391 datadir='${prefix}/share'
392 sysconfdir='${prefix}/etc'
393 sharedstatedir='${prefix}/com'
394 localstatedir='${prefix}/var'
395 libdir='${exec_prefix}/lib'
396 includedir='${prefix}/include'
397 oldincludedir='/usr/include'
398 infodir='${prefix}/info'
399 mandir='${prefix}/man'
400
401 # Initialize some other variables.
402 subdirs=
403 MFLAGS= MAKEFLAGS=
404 SHELL=${CONFIG_SHELL-/bin/sh}
405 # Maximum number of lines to put in a shell here document.
406 ac_max_here_lines=12
407
408 ac_prev=
409 for ac_option
410 do
411
412 # If the previous option needs an argument, assign it.
413 if test -n "$ac_prev"; then
414 eval "$ac_prev=\$ac_option"
415 ac_prev=
416 continue
417 fi
418
419 case "$ac_option" in
420 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
421 *) ac_optarg= ;;
422 esac
423
424 # Accept the important Cygnus configure options, so we can diagnose typos.
425
426 case "$ac_option" in
427
428 -bindir | --bindir | --bindi | --bind | --bin | --bi)
429 ac_prev=bindir ;;
430 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
431 bindir="$ac_optarg" ;;
432
433 -build | --build | --buil | --bui | --bu)
434 ac_prev=build ;;
435 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
436 build="$ac_optarg" ;;
437
438 -cache-file | --cache-file | --cache-fil | --cache-fi \
439 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
440 ac_prev=cache_file ;;
441 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
442 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
443 cache_file="$ac_optarg" ;;
444
445 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
446 ac_prev=datadir ;;
447 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
448 | --da=*)
449 datadir="$ac_optarg" ;;
450
451 -disable-* | --disable-*)
452 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
453 # Reject names that are not valid shell variable names.
454 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
455 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
456 fi
457 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
458 eval "enable_${ac_feature}=no" ;;
459
460 -enable-* | --enable-*)
461 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
462 # Reject names that are not valid shell variable names.
463 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
464 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
465 fi
466 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
467 case "$ac_option" in
468 *=*) ;;
469 *) ac_optarg=yes ;;
470 esac
471 eval "enable_${ac_feature}='$ac_optarg'" ;;
472
473 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
474 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
475 | --exec | --exe | --ex)
476 ac_prev=exec_prefix ;;
477 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
478 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
479 | --exec=* | --exe=* | --ex=*)
480 exec_prefix="$ac_optarg" ;;
481
482 -gas | --gas | --ga | --g)
483 # Obsolete; use --with-gas.
484 with_gas=yes ;;
485
486 -help | --help | --hel | --he)
487 # Omit some internal or obsolete options to make the list less imposing.
488 # This message is too long to be a string in the A/UX 3.1 sh.
489 cat << EOF
490 Usage: configure [options] [host]
491 Options: [defaults in brackets after descriptions]
492 Configuration:
493 --cache-file=FILE cache test results in FILE
494 --help print this message
495 --no-create do not create output files
496 --quiet, --silent do not print \`checking...' messages
497 --version print the version of autoconf that created configure
498 Directory and file names:
499 --prefix=PREFIX install architecture-independent files in PREFIX
500 [$ac_default_prefix]
501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
502 [same as prefix]
503 --bindir=DIR user executables in DIR [EPREFIX/bin]
504 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
505 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
506 --datadir=DIR read-only architecture-independent data in DIR
507 [PREFIX/share]
508 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
509 --sharedstatedir=DIR modifiable architecture-independent data in DIR
510 [PREFIX/com]
511 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
512 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
513 --includedir=DIR C header files in DIR [PREFIX/include]
514 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
515 --infodir=DIR info documentation in DIR [PREFIX/info]
516 --mandir=DIR man documentation in DIR [PREFIX/man]
517 --srcdir=DIR find the sources in DIR [configure dir or ..]
518 --program-prefix=PREFIX prepend PREFIX to installed program names
519 --program-suffix=SUFFIX append SUFFIX to installed program names
520 --program-transform-name=PROGRAM
521 run sed PROGRAM on installed program names
522 EOF
523 cat << EOF
524 Host type:
525 --build=BUILD configure for building on BUILD [BUILD=HOST]
526 --host=HOST configure for HOST [guessed]
527 --target=TARGET configure for TARGET [TARGET=HOST]
528 Features and packages:
529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
533 --x-includes=DIR X include files are in DIR
534 --x-libraries=DIR X library files are in DIR
535 EOF
536 if test -n "$ac_help"; then
537 echo "--enable and --with options recognized:$ac_help"
538 fi
539 exit 0 ;;
540
541 -host | --host | --hos | --ho)
542 ac_prev=host ;;
543 -host=* | --host=* | --hos=* | --ho=*)
544 host="$ac_optarg" ;;
545
546 -includedir | --includedir | --includedi | --included | --include \
547 | --includ | --inclu | --incl | --inc)
548 ac_prev=includedir ;;
549 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
550 | --includ=* | --inclu=* | --incl=* | --inc=*)
551 includedir="$ac_optarg" ;;
552
553 -infodir | --infodir | --infodi | --infod | --info | --inf)
554 ac_prev=infodir ;;
555 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
556 infodir="$ac_optarg" ;;
557
558 -libdir | --libdir | --libdi | --libd)
559 ac_prev=libdir ;;
560 -libdir=* | --libdir=* | --libdi=* | --libd=*)
561 libdir="$ac_optarg" ;;
562
563 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
564 | --libexe | --libex | --libe)
565 ac_prev=libexecdir ;;
566 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
567 | --libexe=* | --libex=* | --libe=*)
568 libexecdir="$ac_optarg" ;;
569
570 -localstatedir | --localstatedir | --localstatedi | --localstated \
571 | --localstate | --localstat | --localsta | --localst \
572 | --locals | --local | --loca | --loc | --lo)
573 ac_prev=localstatedir ;;
574 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
575 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
576 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
577 localstatedir="$ac_optarg" ;;
578
579 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
580 ac_prev=mandir ;;
581 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
582 mandir="$ac_optarg" ;;
583
584 -nfp | --nfp | --nf)
585 # Obsolete; use --without-fp.
586 with_fp=no ;;
587
588 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
589 | --no-cr | --no-c)
590 no_create=yes ;;
591
592 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
593 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
594 no_recursion=yes ;;
595
596 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
597 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
598 | --oldin | --oldi | --old | --ol | --o)
599 ac_prev=oldincludedir ;;
600 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
601 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
602 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
603 oldincludedir="$ac_optarg" ;;
604
605 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
606 ac_prev=prefix ;;
607 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
608 prefix="$ac_optarg" ;;
609
610 -program-prefix | --program-prefix | --program-prefi | --program-pref \
611 | --program-pre | --program-pr | --program-p)
612 ac_prev=program_prefix ;;
613 -program-prefix=* | --program-prefix=* | --program-prefi=* \
614 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
615 program_prefix="$ac_optarg" ;;
616
617 -program-suffix | --program-suffix | --program-suffi | --program-suff \
618 | --program-suf | --program-su | --program-s)
619 ac_prev=program_suffix ;;
620 -program-suffix=* | --program-suffix=* | --program-suffi=* \
621 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
622 program_suffix="$ac_optarg" ;;
623
624 -program-transform-name | --program-transform-name \
625 | --program-transform-nam | --program-transform-na \
626 | --program-transform-n | --program-transform- \
627 | --program-transform | --program-transfor \
628 | --program-transfo | --program-transf \
629 | --program-trans | --program-tran \
630 | --progr-tra | --program-tr | --program-t)
631 ac_prev=program_transform_name ;;
632 -program-transform-name=* | --program-transform-name=* \
633 | --program-transform-nam=* | --program-transform-na=* \
634 | --program-transform-n=* | --program-transform-=* \
635 | --program-transform=* | --program-transfor=* \
636 | --program-transfo=* | --program-transf=* \
637 | --program-trans=* | --program-tran=* \
638 | --progr-tra=* | --program-tr=* | --program-t=*)
639 program_transform_name="$ac_optarg" ;;
640
641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
642 | -silent | --silent | --silen | --sile | --sil)
643 silent=yes ;;
644
645 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
646 ac_prev=sbindir ;;
647 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
648 | --sbi=* | --sb=*)
649 sbindir="$ac_optarg" ;;
650
651 -sharedstatedir | --sharedstatedir | --sharedstatedi \
652 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
653 | --sharedst | --shareds | --shared | --share | --shar \
654 | --sha | --sh)
655 ac_prev=sharedstatedir ;;
656 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
657 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
658 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
659 | --sha=* | --sh=*)
660 sharedstatedir="$ac_optarg" ;;
661
662 -site | --site | --sit)
663 ac_prev=site ;;
664 -site=* | --site=* | --sit=*)
665 site="$ac_optarg" ;;
666
667 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
668 ac_prev=srcdir ;;
669 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
670 srcdir="$ac_optarg" ;;
671
672 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
673 | --syscon | --sysco | --sysc | --sys | --sy)
674 ac_prev=sysconfdir ;;
675 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
676 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
677 sysconfdir="$ac_optarg" ;;
678
679 -target | --target | --targe | --targ | --tar | --ta | --t)
680 ac_prev=target ;;
681 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
682 target="$ac_optarg" ;;
683
684 -v | -verbose | --verbose | --verbos | --verbo | --verb)
685 verbose=yes ;;
686
687 -version | --version | --versio | --versi | --vers)
688 echo "configure generated by autoconf version 2.13"
689 exit 0 ;;
690
691 -with-* | --with-*)
692 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
693 # Reject names that are not valid shell variable names.
694 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
695 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
696 fi
697 ac_package=`echo $ac_package| sed 's/-/_/g'`
698 case "$ac_option" in
699 *=*) ;;
700 *) ac_optarg=yes ;;
701 esac
702 eval "with_${ac_package}='$ac_optarg'" ;;
703
704 -without-* | --without-*)
705 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
706 # Reject names that are not valid shell variable names.
707 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
708 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
709 fi
710 ac_package=`echo $ac_package| sed 's/-/_/g'`
711 eval "with_${ac_package}=no" ;;
712
713 --x)
714 # Obsolete; use --with-x.
715 with_x=yes ;;
716
717 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
718 | --x-incl | --x-inc | --x-in | --x-i)
719 ac_prev=x_includes ;;
720 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
721 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
722 x_includes="$ac_optarg" ;;
723
724 -x-libraries | --x-libraries | --x-librarie | --x-librari \
725 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
726 ac_prev=x_libraries ;;
727 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
728 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
729 x_libraries="$ac_optarg" ;;
730
731 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
732 ;;
733
734 *)
735 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
736 echo "configure: warning: $ac_option: invalid host type" 1>&2
737 fi
738 if test "x$nonopt" != xNONE; then
739 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
740 fi
741 nonopt="$ac_option"
742 ;;
743
744 esac
745 done
746
747 if test -n "$ac_prev"; then
748 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
749 fi
750
751 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
752
753 # File descriptor usage:
754 # 0 standard input
755 # 1 file creation
756 # 2 errors and warnings
757 # 3 some systems may open it to /dev/tty
758 # 4 used on the Kubota Titan
759 # 6 checking for... messages and results
760 # 5 compiler messages saved in config.log
761 if test "$silent" = yes; then
762 exec 6>/dev/null
763 else
764 exec 6>&1
765 fi
766 exec 5>./config.log
767
768 echo "\
769 This file contains any messages produced by compilers while
770 running configure, to aid debugging if configure makes a mistake.
771 " 1>&5
772
773 # Strip out --no-create and --no-recursion so they do not pile up.
774 # Also quote any args containing shell metacharacters.
775 ac_configure_args=
776 for ac_arg
777 do
778 case "$ac_arg" in
779 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
780 | --no-cr | --no-c) ;;
781 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
782 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
783 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
784 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
785 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
786 esac
787 done
788
789 # NLS nuisances.
790 # Only set these to C if already set. These must not be set unconditionally
791 # because not all systems understand e.g. LANG=C (notably SCO).
792 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
793 # Non-C LC_CTYPE values break the ctype check.
794 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
795 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
796 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
797 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
798
799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
800 rm -rf conftest* confdefs.h
801 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
802 echo > confdefs.h
803
804 # A filename unique to this package, relative to the directory that
805 # configure is in, which we can look for to find out if srcdir is correct.
806 ac_unique_file=wx-config.in
807
808 # Find the source files, if location was not specified.
809 if test -z "$srcdir"; then
810 ac_srcdir_defaulted=yes
811 # Try the directory containing this script, then its parent.
812 ac_prog=$0
813 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
814 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
815 srcdir=$ac_confdir
816 if test ! -r $srcdir/$ac_unique_file; then
817 srcdir=..
818 fi
819 else
820 ac_srcdir_defaulted=no
821 fi
822 if test ! -r $srcdir/$ac_unique_file; then
823 if test "$ac_srcdir_defaulted" = yes; then
824 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
825 else
826 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
827 fi
828 fi
829 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
830
831 # Prefer explicitly selected file to automatically selected ones.
832 if test -z "$CONFIG_SITE"; then
833 if test "x$prefix" != xNONE; then
834 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
835 else
836 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
837 fi
838 fi
839 for ac_site_file in $CONFIG_SITE; do
840 if test -r "$ac_site_file"; then
841 echo "loading site script $ac_site_file"
842 . "$ac_site_file"
843 fi
844 done
845
846 if test -r "$cache_file"; then
847 echo "loading cache $cache_file"
848 . $cache_file
849 else
850 echo "creating cache $cache_file"
851 > $cache_file
852 fi
853
854 ac_ext=c
855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
856 ac_cpp='$CPP $CPPFLAGS'
857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
859 cross_compiling=$ac_cv_prog_cc_cross
860
861 ac_exeext=
862 ac_objext=o
863 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
864 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
865 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
866 ac_n= ac_c='
867 ' ac_t=' '
868 else
869 ac_n=-n ac_c= ac_t=
870 fi
871 else
872 ac_n= ac_c='\c' ac_t=
873 fi
874
875
876
877 ac_aux_dir=
878 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
879 if test -f $ac_dir/install-sh; then
880 ac_aux_dir=$ac_dir
881 ac_install_sh="$ac_aux_dir/install-sh -c"
882 break
883 elif test -f $ac_dir/install.sh; then
884 ac_aux_dir=$ac_dir
885 ac_install_sh="$ac_aux_dir/install.sh -c"
886 break
887 fi
888 done
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
891 fi
892 ac_config_guess=$ac_aux_dir/config.guess
893 ac_config_sub=$ac_aux_dir/config.sub
894 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
895
896
897 # Do some error checking and defaulting for the host and target type.
898 # The inputs are:
899 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
900 #
901 # The rules are:
902 # 1. You are not allowed to specify --host, --target, and nonopt at the
903 # same time.
904 # 2. Host defaults to nonopt.
905 # 3. If nonopt is not specified, then host defaults to the current host,
906 # as determined by config.guess.
907 # 4. Target and build default to nonopt.
908 # 5. If nonopt is not specified, then target and build default to host.
909
910 # The aliases save the names the user supplied, while $host etc.
911 # will get canonicalized.
912 case $host---$target---$nonopt in
913 NONE---*---* | *---NONE---* | *---*---NONE) ;;
914 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
915 esac
916
917
918 # Make sure we can run config.sub.
919 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
920 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
921 fi
922
923 echo $ac_n "checking host system type""... $ac_c" 1>&6
924 echo "configure:925: checking host system type" >&5
925
926 host_alias=$host
927 case "$host_alias" in
928 NONE)
929 case $nonopt in
930 NONE)
931 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
932 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
933 fi ;;
934 *) host_alias=$nonopt ;;
935 esac ;;
936 esac
937
938 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
939 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
940 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
941 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
942 echo "$ac_t""$host" 1>&6
943
944 echo $ac_n "checking target system type""... $ac_c" 1>&6
945 echo "configure:946: checking target system type" >&5
946
947 target_alias=$target
948 case "$target_alias" in
949 NONE)
950 case $nonopt in
951 NONE) target_alias=$host_alias ;;
952 *) target_alias=$nonopt ;;
953 esac ;;
954 esac
955
956 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
957 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
958 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
959 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
960 echo "$ac_t""$target" 1>&6
961
962 echo $ac_n "checking build system type""... $ac_c" 1>&6
963 echo "configure:964: checking build system type" >&5
964
965 build_alias=$build
966 case "$build_alias" in
967 NONE)
968 case $nonopt in
969 NONE) build_alias=$host_alias ;;
970 *) build_alias=$nonopt ;;
971 esac ;;
972 esac
973
974 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
975 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
976 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
977 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
978 echo "$ac_t""$build" 1>&6
979
980 test "$host_alias" != "$target_alias" &&
981 test "$program_prefix$program_suffix$program_transform_name" = \
982 NONENONEs,x,x, &&
983 program_prefix=${target_alias}-
984
985
986
987 WX_MAJOR_VERSION_NUMBER=2
988 WX_MINOR_VERSION_NUMBER=3
989 WX_RELEASE_NUMBER=2
990
991 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
992 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
993
994 WX_CURRENT=1
995 WX_REVISION=0
996 WX_AGE=0
997
998
999
1000 USE_UNIX=1
1001 USE_WIN32=0
1002 USE_BEOS=0
1003 USE_MAC=0
1004
1005 USE_LINUX=
1006 USE_SGI=
1007 USE_HPUX=
1008 USE_SYSV=
1009 USE_SVR4=
1010 USE_AIX=
1011 USE_SUN=
1012 USE_SOLARIS=
1013 USE_SUNOS=
1014 USE_ALPHA=
1015 USE_OSF=
1016 USE_BSD=
1017 USE_FREEBSD=
1018 USE_OPENBSD=
1019 USE_NETBSD=
1020 USE_VMS=
1021 USE_ULTRIX=
1022 USE_CYGWIN=
1023 USE_MINGW=
1024 USE_DATA_GENERAL=
1025
1026 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1027
1028 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1029
1030 DEFAULT_wxUSE_GTK=0
1031 DEFAULT_wxUSE_MAC=0
1032 DEFAULT_wxUSE_MGL=0
1033 DEFAULT_wxUSE_MOTIF=0
1034 DEFAULT_wxUSE_MSW=0
1035 DEFAULT_wxUSE_PM=0
1036 DEFAULT_wxUSE_WINE=0
1037
1038 DEFAULT_DEFAULT_wxUSE_GTK=0
1039 DEFAULT_DEFAULT_wxUSE_MAC=0
1040 DEFAULT_DEFAULT_wxUSE_MGL=0
1041 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1042 DEFAULT_DEFAULT_wxUSE_MSW=0
1043 DEFAULT_DEFAULT_wxUSE_PM=0
1044 DEFAULT_DEFAULT_wxUSE_WINE=0
1045
1046 PROGRAM_EXT=
1047
1048 case "${host}" in
1049 *-hp-hpux* )
1050 USE_HPUX=1
1051 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1052 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1053 cat >> confdefs.h <<\EOF
1054 #define __HPUX__ 1
1055 EOF
1056
1057 ;;
1058 *-*-linux* )
1059 USE_LINUX=1
1060 cat >> confdefs.h <<\EOF
1061 #define __LINUX__ 1
1062 EOF
1063
1064 TMP=`uname -m`
1065 if test "x$TMP" = "xalpha"; then
1066 USE_ALPHA=1
1067 cat >> confdefs.h <<\EOF
1068 #define __ALPHA__ 1
1069 EOF
1070
1071 fi
1072 DEFAULT_DEFAULT_wxUSE_GTK=1
1073 ;;
1074 *-*-irix5* | *-*-irix6* )
1075 USE_SGI=1
1076 USE_SVR4=1
1077 cat >> confdefs.h <<\EOF
1078 #define __SGI__ 1
1079 EOF
1080
1081 cat >> confdefs.h <<\EOF
1082 #define __SVR4__ 1
1083 EOF
1084
1085 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1086 ;;
1087 *-*-solaris2* )
1088 USE_SUN=1
1089 USE_SOLARIS=1
1090 USE_SVR4=1
1091 cat >> confdefs.h <<\EOF
1092 #define __SUN__ 1
1093 EOF
1094
1095 cat >> confdefs.h <<\EOF
1096 #define __SOLARIS__ 1
1097 EOF
1098
1099 cat >> confdefs.h <<\EOF
1100 #define __SVR4__ 1
1101 EOF
1102
1103 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1104 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1105 ;;
1106 *-*-sunos4* )
1107 USE_SUN=1
1108 USE_SUNOS=1
1109 USE_BSD=1
1110 cat >> confdefs.h <<\EOF
1111 #define __SUN__ 1
1112 EOF
1113
1114 cat >> confdefs.h <<\EOF
1115 #define __SUNOS__ 1
1116 EOF
1117
1118 cat >> confdefs.h <<\EOF
1119 #define __BSD__ 1
1120 EOF
1121
1122 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1123 ;;
1124 *-*-freebsd*)
1125 USE_BSD=1
1126 USE_FREEBSD=1
1127 cat >> confdefs.h <<\EOF
1128 #define __FREEBSD__ 1
1129 EOF
1130
1131 cat >> confdefs.h <<\EOF
1132 #define __BSD__ 1
1133 EOF
1134
1135 DEFAULT_DEFAULT_wxUSE_GTK=1
1136 ;;
1137 *-*-openbsd*)
1138 USE_BSD=1
1139 USE_OPENBSD=1
1140 cat >> confdefs.h <<\EOF
1141 #define __FREEBSD__ 1
1142 EOF
1143
1144 cat >> confdefs.h <<\EOF
1145 #define __OPENBSD__ 1
1146 EOF
1147
1148 DEFAULT_DEFAULT_wxUSE_GTK=1
1149 ;;
1150 *-*-netbsd*)
1151 USE_BSD=1
1152 USE_NETBSD=1
1153 cat >> confdefs.h <<\EOF
1154 #define __FREEBSD__ 1
1155 EOF
1156
1157 cat >> confdefs.h <<\EOF
1158 #define __NETBSD__ 1
1159 EOF
1160
1161 DEFAULT_DEFAULT_wxUSE_GTK=1
1162 ;;
1163 *-*-osf* )
1164 USE_ALPHA=1
1165 USE_OSF=1
1166 cat >> confdefs.h <<\EOF
1167 #define __ALPHA__ 1
1168 EOF
1169
1170 cat >> confdefs.h <<\EOF
1171 #define __OSF__ 1
1172 EOF
1173
1174 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1175 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1176 ;;
1177 *-*-dgux5* )
1178 USE_ALPHA=1
1179 USE_SVR4=1
1180 cat >> confdefs.h <<\EOF
1181 #define __ALPHA__ 1
1182 EOF
1183
1184 cat >> confdefs.h <<\EOF
1185 #define __SVR4__ 1
1186 EOF
1187
1188 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1189 ;;
1190 *-*-sysv5* )
1191 USE_SYSV=1
1192 USE_SVR4=1
1193 cat >> confdefs.h <<\EOF
1194 #define __SYSV__ 1
1195 EOF
1196
1197 cat >> confdefs.h <<\EOF
1198 #define __SVR4__ 1
1199 EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1202 ;;
1203 *-*-aix* )
1204 USE_AIX=1
1205 USE_SYSV=1
1206 USE_SVR4=1
1207 cat >> confdefs.h <<\EOF
1208 #define __AIX__ 1
1209 EOF
1210
1211 cat >> confdefs.h <<\EOF
1212 #define __SYSV__ 1
1213 EOF
1214
1215 cat >> confdefs.h <<\EOF
1216 #define __SVR4__ 1
1217 EOF
1218
1219 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1220 ;;
1221
1222 *-*-cygwin* | *-*-mingw32* )
1223 USE_UNIX=0
1224 USE_WIN32=1
1225 cat >> confdefs.h <<\EOF
1226 #define __WIN32__ 1
1227 EOF
1228
1229 cat >> confdefs.h <<\EOF
1230 #define __WIN95__ 1
1231 EOF
1232
1233 cat >> confdefs.h <<\EOF
1234 #define __WINDOWS__ 1
1235 EOF
1236
1237 cat >> confdefs.h <<\EOF
1238 #define __GNUWIN32__ 1
1239 EOF
1240
1241 cat >> confdefs.h <<\EOF
1242 #define STRICT 1
1243 EOF
1244
1245 cat >> confdefs.h <<\EOF
1246 #define WINVER 0x0400
1247 EOF
1248
1249 PROGRAM_EXT=".exe"
1250 DEFAULT_DEFAULT_wxUSE_MSW=1
1251 ;;
1252
1253 *-pc-os2_emx )
1254 cat >> confdefs.h <<\EOF
1255 #define __EMX__ 1
1256 EOF
1257
1258 PROGRAM_EXT=".exe"
1259 DEFAULT_DEFAULT_wxUSE_PM=1
1260 ;;
1261
1262 *-*-darwin* )
1263 USE_BSD=1
1264 USE_MAC=1
1265 cat >> confdefs.h <<\EOF
1266 #define __MAC__ 1
1267 EOF
1268
1269 cat >> confdefs.h <<\EOF
1270 #define __BSD__ 1
1271 EOF
1272
1273 cat >> confdefs.h <<\EOF
1274 #define __UNIX__ 1
1275 EOF
1276
1277 DEFAULT_DEFAULT_wxUSE_MAC=1
1278 ;;
1279
1280 *-*-beos* )
1281 USE_BEOS=1
1282 cat >> confdefs.h <<\EOF
1283 #define __BEOS__ 1
1284 EOF
1285
1286 ;;
1287
1288 *)
1289 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1290 esac
1291
1292 if test "$USE_UNIX" = 1 ; then
1293 wxUSE_UNIX=yes
1294 cat >> confdefs.h <<\EOF
1295 #define __UNIX__ 1
1296 EOF
1297
1298
1299 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1300 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1301 fi
1302
1303 if test "$USE_BEOS" = 1; then
1304 SRC_SUBDIRS="$SRC_SUBDIRS be"
1305 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1306 fi
1307
1308 if test "$USE_LINUX" = 1; then
1309 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1310 echo "configure:1311: checking for gettext in -lc" >&5
1311 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1314 else
1315 ac_save_LIBS="$LIBS"
1316 LIBS="-lc $LIBS"
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1320 /* Override any gcc2 internal prototype to avoid an error. */
1321 /* We use char because int might match the return type of a gcc2
1322 builtin and then its argument prototype would still apply. */
1323 char gettext();
1324
1325 int main() {
1326 gettext()
1327 ; return 0; }
1328 EOF
1329 if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1330 rm -rf conftest*
1331 eval "ac_cv_lib_$ac_lib_var=yes"
1332 else
1333 echo "configure: failed program was:" >&5
1334 cat conftest.$ac_ext >&5
1335 rm -rf conftest*
1336 eval "ac_cv_lib_$ac_lib_var=no"
1337 fi
1338 rm -f conftest*
1339 LIBS="$ac_save_LIBS"
1340
1341 fi
1342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1343 echo "$ac_t""yes" 1>&6
1344 cat >> confdefs.h <<\EOF
1345 #define wxHAVE_GLIBC2 1
1346 EOF
1347
1348 else
1349 echo "$ac_t""no" 1>&6
1350 fi
1351
1352 fi
1353
1354
1355
1356
1357 wx_arg_cache_file="configarg.cache"
1358 echo "loading argument cache $wx_arg_cache_file"
1359 rm -f ${wx_arg_cache_file}.tmp
1360 touch ${wx_arg_cache_file}.tmp
1361 touch ${wx_arg_cache_file}
1362
1363
1364 DEBUG_CONFIGURE=0
1365 if test $DEBUG_CONFIGURE = 1; then
1366 DEFAULT_wxUSE_UNIVERSAL=no
1367
1368 DEFAULT_wxUSE_THREADS=yes
1369
1370 DEFAULT_wxUSE_SHARED=yes
1371 DEFAULT_wxUSE_BURNT_NAME=no
1372 DEFAULT_wxUSE_OPTIMISE=no
1373 DEFAULT_wxUSE_PROFILE=no
1374 DEFAULT_wxUSE_NO_DEPS=no
1375 DEFAULT_wxUSE_NO_RTTI=no
1376 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1377 DEFAULT_wxUSE_PERMISSIVE=no
1378 DEFAULT_wxUSE_DEBUG_FLAG=yes
1379 DEFAULT_wxUSE_DEBUG_INFO=yes
1380 DEFAULT_wxUSE_DEBUG_GDB=yes
1381 DEFAULT_wxUSE_MEM_TRACING=no
1382 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1383 DEFAULT_wxUSE_DMALLOC=no
1384 DEFAULT_wxUSE_APPLE_IEEE=no
1385
1386 DEFAULT_wxUSE_LOG=yes
1387 DEFAULT_wxUSE_LOGWINDOW=no
1388 DEFAULT_wxUSE_LOGGUI=no
1389
1390 DEFAULT_wxUSE_GUI=yes
1391 DEFAULT_wxUSE_CONTROLS=no
1392
1393 DEFAULT_wxUSE_ZLIB=no
1394 DEFAULT_wxUSE_LIBPNG=no
1395 DEFAULT_wxUSE_LIBJPEG=no
1396 DEFAULT_wxUSE_LIBTIFF=no
1397 DEFAULT_wxUSE_ODBC=no
1398 DEFAULT_wxUSE_FREETYPE=no
1399 DEFAULT_wxUSE_OPENGL=no
1400
1401 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1402 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1403 DEFAULT_wxUSE_STD_IOSTREAM=no
1404 DEFAULT_wxUSE_CMDLINE_PARSER=no
1405 DEFAULT_wxUSE_DATETIME=no
1406 DEFAULT_wxUSE_TIMEDATE=no
1407 DEFAULT_wxUSE_TIMER=no
1408 DEFAULT_wxUSE_STOPWATCH=no
1409 DEFAULT_wxUSE_FILE=no
1410 DEFAULT_wxUSE_FFILE=no
1411 DEFAULT_wxUSE_TEXTFILE=no
1412 DEFAULT_wxUSE_WAVE=no
1413 DEFAULT_wxUSE_INTL=no
1414 DEFAULT_wxUSE_CONFIG=no
1415 DEFAULT_wxUSE_FONTMAP=no
1416 DEFAULT_wxUSE_STREAMS=no
1417 DEFAULT_wxUSE_SOCKETS=no
1418 DEFAULT_wxUSE_DIALUP_MANAGER=no
1419 DEFAULT_wxUSE_SERIAL=no
1420 DEFAULT_wxUSE_JOYSTICK=no
1421 DEFAULT_wxUSE_DYNLIB_CLASS=no
1422 DEFAULT_wxUSE_LONGLONG=no
1423 DEFAULT_wxUSE_GEOMETRY=no
1424
1425 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1426 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1427 DEFAULT_wxUSE_POSTSCRIPT=no
1428
1429 DEFAULT_wxUSE_X_RESOURCES=no
1430 DEFAULT_wxUSE_CLIPBOARD=no
1431 DEFAULT_wxUSE_TOOLTIPS=no
1432 DEFAULT_wxUSE_DRAG_AND_DROP=no
1433 DEFAULT_wxUSE_DRAGIMAGE=no
1434 DEFAULT_wxUSE_SPLINES=no
1435
1436 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1437 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1438 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1439
1440 DEFAULT_wxUSE_PROLOGIO=no
1441 DEFAULT_wxUSE_RESOURCES=no
1442 DEFAULT_wxUSE_CONSTRAINTS=no
1443 DEFAULT_wxUSE_IPC=no
1444 DEFAULT_wxUSE_HELP=no
1445 DEFAULT_wxUSE_WXHTML_HELP=no
1446 DEFAULT_wxUSE_WXTREE=no
1447 DEFAULT_wxUSE_METAFILE=no
1448 DEFAULT_wxUSE_MIMETYPE=no
1449
1450 DEFAULT_wxUSE_COMMONDLGS=no
1451 DEFAULT_wxUSE_CHOICEDLG=no
1452 DEFAULT_wxUSE_COLOURDLG=no
1453 DEFAULT_wxUSE_DIRDLG=no
1454 DEFAULT_wxUSE_FILEDLG=no
1455 DEFAULT_wxUSE_FONTDLG=no
1456 DEFAULT_wxUSE_MSGDLG=no
1457 DEFAULT_wxUSE_NUMBERDLG=no
1458 DEFAULT_wxUSE_TEXTDLG=no
1459 DEFAULT_wxUSE_STARTUP_TIPS=no
1460 DEFAULT_wxUSE_PROGRESSDLG=no
1461 DEFAULT_wxUSE_WIZARDDLG=no
1462
1463 DEFAULT_wxUSE_MENUS=no
1464 DEFAULT_wxUSE_MINIFRAME=no
1465 DEFAULT_wxUSE_HTML=no
1466 DEFAULT_wxUSE_FILESYSTEM=no
1467 DEFAULT_wxUSE_FS_INET=no
1468 DEFAULT_wxUSE_FS_ZIP=no
1469 DEFAULT_wxUSE_BUSYINFO=no
1470 DEFAULT_wxUSE_ZIPSTREAM=no
1471 DEFAULT_wxUSE_VALIDATORS=no
1472
1473 DEFAULT_wxUSE_ACCEL=no
1474 DEFAULT_wxUSE_BUTTON=no
1475 DEFAULT_wxUSE_BMPBUTTON=no
1476 DEFAULT_wxUSE_CALCTRL=no
1477 DEFAULT_wxUSE_CARET=no
1478 DEFAULT_wxUSE_CHECKBOX=no
1479 DEFAULT_wxUSE_CHECKLST=no
1480 DEFAULT_wxUSE_CHOICE=no
1481 DEFAULT_wxUSE_COMBOBOX=no
1482 DEFAULT_wxUSE_GAUGE=no
1483 DEFAULT_wxUSE_GRID=no
1484 DEFAULT_wxUSE_NEW_GRID=no
1485 DEFAULT_wxUSE_IMAGLIST=no
1486 DEFAULT_wxUSE_LISTBOX=no
1487 DEFAULT_wxUSE_LISTCTRL=no
1488 DEFAULT_wxUSE_NOTEBOOK=no
1489 DEFAULT_wxUSE_RADIOBOX=no
1490 DEFAULT_wxUSE_RADIOBTN=no
1491 DEFAULT_wxUSE_SASH=no
1492 DEFAULT_wxUSE_SCROLLBAR=no
1493 DEFAULT_wxUSE_SLIDER=no
1494 DEFAULT_wxUSE_SPINBTN=no
1495 DEFAULT_wxUSE_SPINCTRL=no
1496 DEFAULT_wxUSE_SPLITTER=no
1497 DEFAULT_wxUSE_STATBMP=no
1498 DEFAULT_wxUSE_STATBOX=no
1499 DEFAULT_wxUSE_STATLINE=no
1500 DEFAULT_wxUSE_STATTEXT=no
1501 DEFAULT_wxUSE_STATUSBAR=yes
1502 DEFAULT_wxUSE_TABDIALOG=no
1503 DEFAULT_wxUSE_TEXTCTRL=no
1504 DEFAULT_wxUSE_TOGGLEBTN=no
1505 DEFAULT_wxUSE_TOOLBAR=no
1506 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1507 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1508 DEFAULT_wxUSE_TREECTRL=no
1509
1510 DEFAULT_wxUSE_UNICODE=no
1511 DEFAULT_wxUSE_WCSRTOMBS=no
1512
1513 DEFAULT_wxUSE_IMAGE=no
1514 DEFAULT_wxUSE_GIF=no
1515 DEFAULT_wxUSE_PCX=no
1516 DEFAULT_wxUSE_PNM=no
1517 DEFAULT_wxUSE_XPM=no
1518 else
1519 DEFAULT_wxUSE_UNIVERSAL=no
1520
1521 DEFAULT_wxUSE_THREADS=yes
1522
1523 DEFAULT_wxUSE_SHARED=yes
1524 DEFAULT_wxUSE_BURNT_NAME=no
1525 DEFAULT_wxUSE_OPTIMISE=yes
1526 DEFAULT_wxUSE_PROFILE=no
1527 DEFAULT_wxUSE_NO_DEPS=no
1528 DEFAULT_wxUSE_NO_RTTI=no
1529 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1530 DEFAULT_wxUSE_PERMISSIVE=no
1531 DEFAULT_wxUSE_DEBUG_FLAG=no
1532 DEFAULT_wxUSE_DEBUG_INFO=no
1533 DEFAULT_wxUSE_DEBUG_GDB=no
1534 DEFAULT_wxUSE_MEM_TRACING=no
1535 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1536 DEFAULT_wxUSE_DMALLOC=no
1537 DEFAULT_wxUSE_APPLE_IEEE=yes
1538
1539 DEFAULT_wxUSE_LOG=yes
1540 DEFAULT_wxUSE_LOGWINDOW=yes
1541 DEFAULT_wxUSE_LOGGUI=yes
1542
1543 DEFAULT_wxUSE_GUI=yes
1544
1545 DEFAULT_wxUSE_ZLIB=yes
1546 DEFAULT_wxUSE_LIBPNG=yes
1547 DEFAULT_wxUSE_LIBJPEG=yes
1548 DEFAULT_wxUSE_LIBTIFF=yes
1549 DEFAULT_wxUSE_ODBC=no
1550 DEFAULT_wxUSE_FREETYPE=no
1551 DEFAULT_wxUSE_OPENGL=no
1552
1553 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1554 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1555 DEFAULT_wxUSE_STD_IOSTREAM=no
1556 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1557 DEFAULT_wxUSE_DATETIME=yes
1558 DEFAULT_wxUSE_TIMEDATE=no
1559 DEFAULT_wxUSE_TIMER=yes
1560 DEFAULT_wxUSE_STOPWATCH=yes
1561 DEFAULT_wxUSE_FILE=yes
1562 DEFAULT_wxUSE_FFILE=yes
1563 DEFAULT_wxUSE_TEXTFILE=yes
1564 DEFAULT_wxUSE_WAVE=no
1565 DEFAULT_wxUSE_INTL=yes
1566 DEFAULT_wxUSE_CONFIG=yes
1567 DEFAULT_wxUSE_FONTMAP=yes
1568 DEFAULT_wxUSE_STREAMS=yes
1569 DEFAULT_wxUSE_SOCKETS=yes
1570 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1571 DEFAULT_wxUSE_SERIAL=yes
1572 DEFAULT_wxUSE_JOYSTICK=yes
1573 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1574 DEFAULT_wxUSE_LONGLONG=yes
1575 DEFAULT_wxUSE_GEOMETRY=yes
1576
1577 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1578 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1579 DEFAULT_wxUSE_POSTSCRIPT=yes
1580
1581 DEFAULT_wxUSE_X_RESOURCES=no
1582 DEFAULT_wxUSE_CLIPBOARD=yes
1583 DEFAULT_wxUSE_TOOLTIPS=yes
1584 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1585 DEFAULT_wxUSE_DRAGIMAGE=yes
1586 DEFAULT_wxUSE_SPLINES=yes
1587
1588 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1589 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1590 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1591
1592 DEFAULT_wxUSE_PROLOGIO=yes
1593 DEFAULT_wxUSE_RESOURCES=yes
1594 DEFAULT_wxUSE_CONSTRAINTS=yes
1595 DEFAULT_wxUSE_IPC=yes
1596 DEFAULT_wxUSE_HELP=yes
1597 DEFAULT_wxUSE_WXHTML_HELP=yes
1598 DEFAULT_wxUSE_WXTREE=yes
1599 DEFAULT_wxUSE_METAFILE=yes
1600 DEFAULT_wxUSE_MIMETYPE=yes
1601
1602 DEFAULT_wxUSE_COMMONDLGS=yes
1603 DEFAULT_wxUSE_CHOICEDLG=yes
1604 DEFAULT_wxUSE_COLOURDLG=yes
1605 DEFAULT_wxUSE_DIRDLG=yes
1606 DEFAULT_wxUSE_FILEDLG=yes
1607 DEFAULT_wxUSE_FONTDLG=yes
1608 DEFAULT_wxUSE_MSGDLG=yes
1609 DEFAULT_wxUSE_NUMBERDLG=yes
1610 DEFAULT_wxUSE_TEXTDLG=yes
1611 DEFAULT_wxUSE_STARTUP_TIPS=yes
1612 DEFAULT_wxUSE_PROGRESSDLG=yes
1613 DEFAULT_wxUSE_WIZARDDLG=yes
1614
1615 DEFAULT_wxUSE_MENUS=yes
1616 DEFAULT_wxUSE_MINIFRAME=yes
1617 DEFAULT_wxUSE_HTML=yes
1618 DEFAULT_wxUSE_FILESYSTEM=yes
1619 DEFAULT_wxUSE_FS_INET=yes
1620 DEFAULT_wxUSE_FS_ZIP=yes
1621 DEFAULT_wxUSE_BUSYINFO=yes
1622 DEFAULT_wxUSE_ZIPSTREAM=yes
1623 DEFAULT_wxUSE_VALIDATORS=yes
1624
1625 DEFAULT_wxUSE_ACCEL=yes
1626 DEFAULT_wxUSE_BUTTON=yes
1627 DEFAULT_wxUSE_BMPBUTTON=yes
1628 DEFAULT_wxUSE_CALCTRL=yes
1629 DEFAULT_wxUSE_CARET=yes
1630 DEFAULT_wxUSE_CHECKBOX=yes
1631 DEFAULT_wxUSE_CHECKLST=yes
1632 DEFAULT_wxUSE_CHOICE=yes
1633 DEFAULT_wxUSE_COMBOBOX=yes
1634 DEFAULT_wxUSE_GAUGE=yes
1635 DEFAULT_wxUSE_GRID=yes
1636 DEFAULT_wxUSE_NEW_GRID=yes
1637 DEFAULT_wxUSE_IMAGLIST=yes
1638 DEFAULT_wxUSE_LISTBOX=yes
1639 DEFAULT_wxUSE_LISTCTRL=yes
1640 DEFAULT_wxUSE_NOTEBOOK=yes
1641 DEFAULT_wxUSE_RADIOBOX=yes
1642 DEFAULT_wxUSE_RADIOBTN=yes
1643 DEFAULT_wxUSE_SASH=yes
1644 DEFAULT_wxUSE_SCROLLBAR=yes
1645 DEFAULT_wxUSE_SLIDER=yes
1646 DEFAULT_wxUSE_SPINBTN=yes
1647 DEFAULT_wxUSE_SPINCTRL=yes
1648 DEFAULT_wxUSE_SPLITTER=yes
1649 DEFAULT_wxUSE_STATBMP=yes
1650 DEFAULT_wxUSE_STATBOX=yes
1651 DEFAULT_wxUSE_STATLINE=yes
1652 DEFAULT_wxUSE_STATTEXT=yes
1653 DEFAULT_wxUSE_STATUSBAR=yes
1654 DEFAULT_wxUSE_TABDIALOG=no
1655 DEFAULT_wxUSE_TEXTCTRL=yes
1656 DEFAULT_wxUSE_TOGGLEBTN=yes
1657 DEFAULT_wxUSE_TOOLBAR=yes
1658 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1659 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1660 DEFAULT_wxUSE_TREECTRL=yes
1661
1662 DEFAULT_wxUSE_UNICODE=no
1663 DEFAULT_wxUSE_WCSRTOMBS=no
1664
1665 DEFAULT_wxUSE_IMAGE=yes
1666 DEFAULT_wxUSE_GIF=yes
1667 DEFAULT_wxUSE_PCX=yes
1668 DEFAULT_wxUSE_PNM=yes
1669 DEFAULT_wxUSE_XPM=yes
1670 fi
1671
1672
1673
1674 for toolkit in `echo $ALL_TOOLKITS`; do
1675 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1676 if test "x$LINE" != x ; then
1677 has_toolkit_in_cache=1
1678 eval "DEFAULT_$LINE"
1679 eval "CACHE_$toolkit=1"
1680 fi
1681 done
1682
1683
1684
1685 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1686 echo "configure:1687: checking for --enable-gui" >&5
1687 no_cache=0
1688 # Check whether --enable-gui or --disable-gui was given.
1689 if test "${enable_gui+set}" = set; then
1690 enableval="$enable_gui"
1691
1692 if test "$enableval" = yes; then
1693 ac_cv_use_gui='wxUSE_GUI=yes'
1694 else
1695 ac_cv_use_gui='wxUSE_GUI=no'
1696 fi
1697
1698 else
1699
1700 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1701 if test "x$LINE" != x ; then
1702 eval "DEFAULT_$LINE"
1703 else
1704 no_cache=1
1705 fi
1706
1707 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1708
1709 fi
1710
1711
1712 eval "$ac_cv_use_gui"
1713 if test "$no_cache" != 1; then
1714 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1715 fi
1716
1717 if test "$wxUSE_GUI" = yes; then
1718 echo "$ac_t""yes" 1>&6
1719 else
1720 echo "$ac_t""no" 1>&6
1721 fi
1722
1723
1724 if test "$wxUSE_GUI" = "yes"; then
1725
1726
1727 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1728 echo "configure:1729: checking for --enable-universal" >&5
1729 no_cache=0
1730 # Check whether --enable-universal or --disable-universal was given.
1731 if test "${enable_universal+set}" = set; then
1732 enableval="$enable_universal"
1733
1734 if test "$enableval" = yes; then
1735 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1736 else
1737 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1738 fi
1739
1740 else
1741
1742 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1743 if test "x$LINE" != x ; then
1744 eval "DEFAULT_$LINE"
1745 else
1746 no_cache=1
1747 fi
1748
1749 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1750
1751 fi
1752
1753
1754 eval "$ac_cv_use_universal"
1755 if test "$no_cache" != 1; then
1756 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1757 fi
1758
1759 if test "$wxUSE_UNIVERSAL" = yes; then
1760 echo "$ac_t""yes" 1>&6
1761 else
1762 echo "$ac_t""no" 1>&6
1763 fi
1764
1765 # Check whether --with-gtk or --without-gtk was given.
1766 if test "${with_gtk+set}" = set; then
1767 withval="$with_gtk"
1768 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1769 fi
1770
1771 # Check whether --with-motif or --without-motif was given.
1772 if test "${with_motif+set}" = set; then
1773 withval="$with_motif"
1774 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1775 fi
1776
1777 # Check whether --with-mac or --without-mac was given.
1778 if test "${with_mac+set}" = set; then
1779 withval="$with_mac"
1780 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1781 fi
1782
1783 # Check whether --with-wine or --without-wine was given.
1784 if test "${with_wine+set}" = set; then
1785 withval="$with_wine"
1786 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1787 fi
1788
1789 # Check whether --with-cygwin or --without-cygwin was given.
1790 if test "${with_cygwin+set}" = set; then
1791 withval="$with_cygwin"
1792 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1793 fi
1794
1795 # Check whether --with-mingw or --without-mingw was given.
1796 if test "${with_mingw+set}" = set; then
1797 withval="$with_mingw"
1798 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1799 fi
1800
1801 # Check whether --with-pm or --without-pm was given.
1802 if test "${with_pm+set}" = set; then
1803 withval="$with_pm"
1804 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1805 fi
1806
1807 # Check whether --with-mgl or --without-mgl was given.
1808 if test "${with_mgl+set}" = set; then
1809 withval="$with_mgl"
1810 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1811 fi
1812
1813
1814 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1815 if test "${enable_gtk2+set}" = set; then
1816 enableval="$enable_gtk2"
1817 wxUSE_GTK2=1
1818 else
1819 wxUSE_GTK2=0
1820 fi
1821
1822
1823
1824 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1825 echo "configure:1826: checking for --with-libpng" >&5
1826 no_cache=0
1827 # Check whether --with-libpng or --without-libpng was given.
1828 if test "${with_libpng+set}" = set; then
1829 withval="$with_libpng"
1830
1831 if test "$withval" = yes; then
1832 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1833 elif test "$withval" = no; then
1834 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1835 elif test "$withval" = sys; then
1836 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1837 else
1838 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1839 fi
1840
1841 else
1842
1843 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1844 if test "x$LINE" != x ; then
1845 eval "DEFAULT_$LINE"
1846 else
1847 no_cache=1
1848 fi
1849
1850 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1851
1852 fi
1853
1854
1855 eval "$ac_cv_use_libpng"
1856 if test "$no_cache" != 1; then
1857 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1858 fi
1859
1860 if test "$wxUSE_LIBPNG" = yes; then
1861 echo "$ac_t""yes" 1>&6
1862 elif test "$wxUSE_LIBPNG" = no; then
1863 echo "$ac_t""no" 1>&6
1864 elif test "$wxUSE_LIBPNG" = sys; then
1865 echo "$ac_t""system version" 1>&6
1866 else
1867 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1868 fi
1869
1870
1871 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1872 echo "configure:1873: checking for --with-libjpeg" >&5
1873 no_cache=0
1874 # Check whether --with-libjpeg or --without-libjpeg was given.
1875 if test "${with_libjpeg+set}" = set; then
1876 withval="$with_libjpeg"
1877
1878 if test "$withval" = yes; then
1879 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1880 elif test "$withval" = no; then
1881 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1882 elif test "$withval" = sys; then
1883 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1884 else
1885 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1886 fi
1887
1888 else
1889
1890 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1891 if test "x$LINE" != x ; then
1892 eval "DEFAULT_$LINE"
1893 else
1894 no_cache=1
1895 fi
1896
1897 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1898
1899 fi
1900
1901
1902 eval "$ac_cv_use_libjpeg"
1903 if test "$no_cache" != 1; then
1904 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1905 fi
1906
1907 if test "$wxUSE_LIBJPEG" = yes; then
1908 echo "$ac_t""yes" 1>&6
1909 elif test "$wxUSE_LIBJPEG" = no; then
1910 echo "$ac_t""no" 1>&6
1911 elif test "$wxUSE_LIBJPEG" = sys; then
1912 echo "$ac_t""system version" 1>&6
1913 else
1914 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1915 fi
1916
1917
1918 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1919 echo "configure:1920: checking for --with-libtiff" >&5
1920 no_cache=0
1921 # Check whether --with-libtiff or --without-libtiff was given.
1922 if test "${with_libtiff+set}" = set; then
1923 withval="$with_libtiff"
1924
1925 if test "$withval" = yes; then
1926 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1927 elif test "$withval" = no; then
1928 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1929 elif test "$withval" = sys; then
1930 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1931 else
1932 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1933 fi
1934
1935 else
1936
1937 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1938 if test "x$LINE" != x ; then
1939 eval "DEFAULT_$LINE"
1940 else
1941 no_cache=1
1942 fi
1943
1944 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1945
1946 fi
1947
1948
1949 eval "$ac_cv_use_libtiff"
1950 if test "$no_cache" != 1; then
1951 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1952 fi
1953
1954 if test "$wxUSE_LIBTIFF" = yes; then
1955 echo "$ac_t""yes" 1>&6
1956 elif test "$wxUSE_LIBTIFF" = no; then
1957 echo "$ac_t""no" 1>&6
1958 elif test "$wxUSE_LIBTIFF" = sys; then
1959 echo "$ac_t""system version" 1>&6
1960 else
1961 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1962 fi
1963
1964
1965 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1966 echo "configure:1967: checking for --with-freetype" >&5
1967 no_cache=0
1968 # Check whether --with-freetype or --without-freetype was given.
1969 if test "${with_freetype+set}" = set; then
1970 withval="$with_freetype"
1971
1972 if test "$withval" = yes; then
1973 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1974 elif test "$withval" = no; then
1975 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1976 elif test "$withval" = sys; then
1977 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1978 else
1979 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1980 fi
1981
1982 else
1983
1984 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1985 if test "x$LINE" != x ; then
1986 eval "DEFAULT_$LINE"
1987 else
1988 no_cache=1
1989 fi
1990
1991 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1992
1993 fi
1994
1995
1996 eval "$ac_cv_use_freetype"
1997 if test "$no_cache" != 1; then
1998 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1999 fi
2000
2001 if test "$wxUSE_FREETYPE" = yes; then
2002 echo "$ac_t""yes" 1>&6
2003 elif test "$wxUSE_FREETYPE" = no; then
2004 echo "$ac_t""no" 1>&6
2005 elif test "$wxUSE_FREETYPE" = sys; then
2006 echo "$ac_t""system version" 1>&6
2007 else
2008 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2009 fi
2010
2011
2012 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2013 echo "configure:2014: checking for --with-opengl" >&5
2014 no_cache=0
2015 # Check whether --with-opengl or --without-opengl was given.
2016 if test "${with_opengl+set}" = set; then
2017 withval="$with_opengl"
2018
2019 if test "$withval" = yes; then
2020 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2021 else
2022 ac_cv_use_opengl='wxUSE_OPENGL=no'
2023 fi
2024
2025 else
2026
2027 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2028 if test "x$LINE" != x ; then
2029 eval "DEFAULT_$LINE"
2030 else
2031 no_cache=1
2032 fi
2033
2034 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2035
2036 fi
2037
2038
2039 eval "$ac_cv_use_opengl"
2040 if test "$no_cache" != 1; then
2041 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2042 fi
2043
2044 if test "$wxUSE_OPENGL" = yes; then
2045 echo "$ac_t""yes" 1>&6
2046 else
2047 echo "$ac_t""no" 1>&6
2048 fi
2049
2050
2051 fi
2052
2053
2054 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2055 echo "configure:2056: checking for --with-dmalloc" >&5
2056 no_cache=0
2057 # Check whether --with-dmalloc or --without-dmalloc was given.
2058 if test "${with_dmalloc+set}" = set; then
2059 withval="$with_dmalloc"
2060
2061 if test "$withval" = yes; then
2062 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2063 else
2064 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2065 fi
2066
2067 else
2068
2069 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2070 if test "x$LINE" != x ; then
2071 eval "DEFAULT_$LINE"
2072 else
2073 no_cache=1
2074 fi
2075
2076 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2077
2078 fi
2079
2080
2081 eval "$ac_cv_use_dmalloc"
2082 if test "$no_cache" != 1; then
2083 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2084 fi
2085
2086 if test "$wxUSE_DMALLOC" = yes; then
2087 echo "$ac_t""yes" 1>&6
2088 else
2089 echo "$ac_t""no" 1>&6
2090 fi
2091
2092
2093 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2094 echo "configure:2095: checking for --with-zlib" >&5
2095 no_cache=0
2096 # Check whether --with-zlib or --without-zlib was given.
2097 if test "${with_zlib+set}" = set; then
2098 withval="$with_zlib"
2099
2100 if test "$withval" = yes; then
2101 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2102 elif test "$withval" = no; then
2103 ac_cv_use_zlib='wxUSE_ZLIB=no'
2104 elif test "$withval" = sys; then
2105 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2106 else
2107 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2108 fi
2109
2110 else
2111
2112 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2113 if test "x$LINE" != x ; then
2114 eval "DEFAULT_$LINE"
2115 else
2116 no_cache=1
2117 fi
2118
2119 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2120
2121 fi
2122
2123
2124 eval "$ac_cv_use_zlib"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_ZLIB" = yes; then
2130 echo "$ac_t""yes" 1>&6
2131 elif test "$wxUSE_ZLIB" = no; then
2132 echo "$ac_t""no" 1>&6
2133 elif test "$wxUSE_ZLIB" = sys; then
2134 echo "$ac_t""system version" 1>&6
2135 else
2136 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2137 fi
2138
2139
2140 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2141 echo "configure:2142: checking for --with-odbc" >&5
2142 no_cache=0
2143 # Check whether --with-odbc or --without-odbc was given.
2144 if test "${with_odbc+set}" = set; then
2145 withval="$with_odbc"
2146
2147 if test "$withval" = yes; then
2148 ac_cv_use_odbc='wxUSE_ODBC=yes'
2149 else
2150 ac_cv_use_odbc='wxUSE_ODBC=no'
2151 fi
2152
2153 else
2154
2155 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2156 if test "x$LINE" != x ; then
2157 eval "DEFAULT_$LINE"
2158 else
2159 no_cache=1
2160 fi
2161
2162 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2163
2164 fi
2165
2166
2167 eval "$ac_cv_use_odbc"
2168 if test "$no_cache" != 1; then
2169 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2170 fi
2171
2172 if test "$wxUSE_ODBC" = yes; then
2173 echo "$ac_t""yes" 1>&6
2174 else
2175 echo "$ac_t""no" 1>&6
2176 fi
2177
2178
2179
2180
2181
2182 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2183 echo "configure:2184: checking for --enable-shared" >&5
2184 no_cache=0
2185 # Check whether --enable-shared or --disable-shared was given.
2186 if test "${enable_shared+set}" = set; then
2187 enableval="$enable_shared"
2188
2189 if test "$enableval" = yes; then
2190 ac_cv_use_shared='wxUSE_SHARED=yes'
2191 else
2192 ac_cv_use_shared='wxUSE_SHARED=no'
2193 fi
2194
2195 else
2196
2197 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2198 if test "x$LINE" != x ; then
2199 eval "DEFAULT_$LINE"
2200 else
2201 no_cache=1
2202 fi
2203
2204 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2205
2206 fi
2207
2208
2209 eval "$ac_cv_use_shared"
2210 if test "$no_cache" != 1; then
2211 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2212 fi
2213
2214 if test "$wxUSE_SHARED" = yes; then
2215 echo "$ac_t""yes" 1>&6
2216 else
2217 echo "$ac_t""no" 1>&6
2218 fi
2219
2220
2221 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2222 echo "configure:2223: checking for --enable-burnt_name" >&5
2223 no_cache=0
2224 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2225 if test "${enable_burnt_name+set}" = set; then
2226 enableval="$enable_burnt_name"
2227
2228 if test "$enableval" = yes; then
2229 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2230 else
2231 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2232 fi
2233
2234 else
2235
2236 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2237 if test "x$LINE" != x ; then
2238 eval "DEFAULT_$LINE"
2239 else
2240 no_cache=1
2241 fi
2242
2243 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2244
2245 fi
2246
2247
2248 eval "$ac_cv_use_burnt_name"
2249 if test "$no_cache" != 1; then
2250 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2251 fi
2252
2253 if test "$wxUSE_BURNT_NAME" = yes; then
2254 echo "$ac_t""yes" 1>&6
2255 else
2256 echo "$ac_t""no" 1>&6
2257 fi
2258
2259
2260 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2261 echo "configure:2262: checking for --enable-optimise" >&5
2262 no_cache=0
2263 # Check whether --enable-optimise or --disable-optimise was given.
2264 if test "${enable_optimise+set}" = set; then
2265 enableval="$enable_optimise"
2266
2267 if test "$enableval" = yes; then
2268 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2269 else
2270 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2271 fi
2272
2273 else
2274
2275 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2276 if test "x$LINE" != x ; then
2277 eval "DEFAULT_$LINE"
2278 else
2279 no_cache=1
2280 fi
2281
2282 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2283
2284 fi
2285
2286
2287 eval "$ac_cv_use_optimise"
2288 if test "$no_cache" != 1; then
2289 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2290 fi
2291
2292 if test "$wxUSE_OPTIMISE" = yes; then
2293 echo "$ac_t""yes" 1>&6
2294 else
2295 echo "$ac_t""no" 1>&6
2296 fi
2297
2298
2299 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2300 echo "configure:2301: checking for --enable-debug" >&5
2301 no_cache=0
2302 # Check whether --enable-debug or --disable-debug was given.
2303 if test "${enable_debug+set}" = set; then
2304 enableval="$enable_debug"
2305
2306 if test "$enableval" = yes; then
2307 ac_cv_use_debug='wxUSE_DEBUG=yes'
2308 else
2309 ac_cv_use_debug='wxUSE_DEBUG=no'
2310 fi
2311
2312 else
2313
2314 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2315 if test "x$LINE" != x ; then
2316 eval "DEFAULT_$LINE"
2317 else
2318 no_cache=1
2319 fi
2320
2321 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2322
2323 fi
2324
2325
2326 eval "$ac_cv_use_debug"
2327 if test "$no_cache" != 1; then
2328 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2329 fi
2330
2331 if test "$wxUSE_DEBUG" = yes; then
2332 echo "$ac_t""yes" 1>&6
2333 else
2334 echo "$ac_t""no" 1>&6
2335 fi
2336
2337
2338 if test "$wxUSE_DEBUG" = "yes"; then
2339 DEFAULT_wxUSE_DEBUG_FLAG=yes
2340 DEFAULT_wxUSE_DEBUG_INFO=yes
2341 elif test "$wxUSE_DEBUG" = "no"; then
2342 DEFAULT_wxUSE_DEBUG_FLAG=no
2343 DEFAULT_wxUSE_DEBUG_INFO=no
2344 fi
2345
2346
2347 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2348 echo "configure:2349: checking for --enable-debug_flag" >&5
2349 no_cache=0
2350 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2351 if test "${enable_debug_flag+set}" = set; then
2352 enableval="$enable_debug_flag"
2353
2354 if test "$enableval" = yes; then
2355 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2356 else
2357 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2358 fi
2359
2360 else
2361
2362 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2363 if test "x$LINE" != x ; then
2364 eval "DEFAULT_$LINE"
2365 else
2366 no_cache=1
2367 fi
2368
2369 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2370
2371 fi
2372
2373
2374 eval "$ac_cv_use_debug_flag"
2375 if test "$no_cache" != 1; then
2376 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2377 fi
2378
2379 if test "$wxUSE_DEBUG_FLAG" = yes; then
2380 echo "$ac_t""yes" 1>&6
2381 else
2382 echo "$ac_t""no" 1>&6
2383 fi
2384
2385
2386 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2387 echo "configure:2388: checking for --enable-debug_info" >&5
2388 no_cache=0
2389 # Check whether --enable-debug_info or --disable-debug_info was given.
2390 if test "${enable_debug_info+set}" = set; then
2391 enableval="$enable_debug_info"
2392
2393 if test "$enableval" = yes; then
2394 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2395 else
2396 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2397 fi
2398
2399 else
2400
2401 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2402 if test "x$LINE" != x ; then
2403 eval "DEFAULT_$LINE"
2404 else
2405 no_cache=1
2406 fi
2407
2408 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2409
2410 fi
2411
2412
2413 eval "$ac_cv_use_debug_info"
2414 if test "$no_cache" != 1; then
2415 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2416 fi
2417
2418 if test "$wxUSE_DEBUG_INFO" = yes; then
2419 echo "$ac_t""yes" 1>&6
2420 else
2421 echo "$ac_t""no" 1>&6
2422 fi
2423
2424
2425 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2426 echo "configure:2427: checking for --enable-debug_gdb" >&5
2427 no_cache=0
2428 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2429 if test "${enable_debug_gdb+set}" = set; then
2430 enableval="$enable_debug_gdb"
2431
2432 if test "$enableval" = yes; then
2433 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2434 else
2435 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2436 fi
2437
2438 else
2439
2440 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2441 if test "x$LINE" != x ; then
2442 eval "DEFAULT_$LINE"
2443 else
2444 no_cache=1
2445 fi
2446
2447 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2448
2449 fi
2450
2451
2452 eval "$ac_cv_use_debug_gdb"
2453 if test "$no_cache" != 1; then
2454 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2455 fi
2456
2457 if test "$wxUSE_DEBUG_GDB" = yes; then
2458 echo "$ac_t""yes" 1>&6
2459 else
2460 echo "$ac_t""no" 1>&6
2461 fi
2462
2463
2464 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2465 echo "configure:2466: checking for --enable-debug_cntxt" >&5
2466 no_cache=0
2467 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2468 if test "${enable_debug_cntxt+set}" = set; then
2469 enableval="$enable_debug_cntxt"
2470
2471 if test "$enableval" = yes; then
2472 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2473 else
2474 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2475 fi
2476
2477 else
2478
2479 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2480 if test "x$LINE" != x ; then
2481 eval "DEFAULT_$LINE"
2482 else
2483 no_cache=1
2484 fi
2485
2486 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2487
2488 fi
2489
2490
2491 eval "$ac_cv_use_debug_cntxt"
2492 if test "$no_cache" != 1; then
2493 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2494 fi
2495
2496 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2497 echo "$ac_t""yes" 1>&6
2498 else
2499 echo "$ac_t""no" 1>&6
2500 fi
2501
2502
2503 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2504 echo "configure:2505: checking for --enable-mem_tracing" >&5
2505 no_cache=0
2506 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2507 if test "${enable_mem_tracing+set}" = set; then
2508 enableval="$enable_mem_tracing"
2509
2510 if test "$enableval" = yes; then
2511 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2512 else
2513 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2514 fi
2515
2516 else
2517
2518 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2519 if test "x$LINE" != x ; then
2520 eval "DEFAULT_$LINE"
2521 else
2522 no_cache=1
2523 fi
2524
2525 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2526
2527 fi
2528
2529
2530 eval "$ac_cv_use_mem_tracing"
2531 if test "$no_cache" != 1; then
2532 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2533 fi
2534
2535 if test "$wxUSE_MEM_TRACING" = yes; then
2536 echo "$ac_t""yes" 1>&6
2537 else
2538 echo "$ac_t""no" 1>&6
2539 fi
2540
2541
2542 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2543 echo "configure:2544: checking for --enable-profile" >&5
2544 no_cache=0
2545 # Check whether --enable-profile or --disable-profile was given.
2546 if test "${enable_profile+set}" = set; then
2547 enableval="$enable_profile"
2548
2549 if test "$enableval" = yes; then
2550 ac_cv_use_profile='wxUSE_PROFILE=yes'
2551 else
2552 ac_cv_use_profile='wxUSE_PROFILE=no'
2553 fi
2554
2555 else
2556
2557 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2558 if test "x$LINE" != x ; then
2559 eval "DEFAULT_$LINE"
2560 else
2561 no_cache=1
2562 fi
2563
2564 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2565
2566 fi
2567
2568
2569 eval "$ac_cv_use_profile"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_PROFILE" = yes; then
2575 echo "$ac_t""yes" 1>&6
2576 else
2577 echo "$ac_t""no" 1>&6
2578 fi
2579
2580
2581 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2582 echo "configure:2583: checking for --enable-no_rtti" >&5
2583 no_cache=0
2584 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2585 if test "${enable_no_rtti+set}" = set; then
2586 enableval="$enable_no_rtti"
2587
2588 if test "$enableval" = yes; then
2589 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2590 else
2591 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2592 fi
2593
2594 else
2595
2596 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2597 if test "x$LINE" != x ; then
2598 eval "DEFAULT_$LINE"
2599 else
2600 no_cache=1
2601 fi
2602
2603 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2604
2605 fi
2606
2607
2608 eval "$ac_cv_use_no_rtti"
2609 if test "$no_cache" != 1; then
2610 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2611 fi
2612
2613 if test "$wxUSE_NO_RTTI" = yes; then
2614 echo "$ac_t""yes" 1>&6
2615 else
2616 echo "$ac_t""no" 1>&6
2617 fi
2618
2619
2620 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2621 echo "configure:2622: checking for --enable-no_exceptions" >&5
2622 no_cache=0
2623 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2624 if test "${enable_no_exceptions+set}" = set; then
2625 enableval="$enable_no_exceptions"
2626
2627 if test "$enableval" = yes; then
2628 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2629 else
2630 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2631 fi
2632
2633 else
2634
2635 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2636 if test "x$LINE" != x ; then
2637 eval "DEFAULT_$LINE"
2638 else
2639 no_cache=1
2640 fi
2641
2642 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2643
2644 fi
2645
2646
2647 eval "$ac_cv_use_no_exceptions"
2648 if test "$no_cache" != 1; then
2649 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2650 fi
2651
2652 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2653 echo "$ac_t""yes" 1>&6
2654 else
2655 echo "$ac_t""no" 1>&6
2656 fi
2657
2658
2659 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2660 echo "configure:2661: checking for --enable-permissive" >&5
2661 no_cache=0
2662 # Check whether --enable-permissive or --disable-permissive was given.
2663 if test "${enable_permissive+set}" = set; then
2664 enableval="$enable_permissive"
2665
2666 if test "$enableval" = yes; then
2667 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2668 else
2669 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2670 fi
2671
2672 else
2673
2674 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2682
2683 fi
2684
2685
2686 eval "$ac_cv_use_permissive"
2687 if test "$no_cache" != 1; then
2688 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2689 fi
2690
2691 if test "$wxUSE_PERMISSIVE" = yes; then
2692 echo "$ac_t""yes" 1>&6
2693 else
2694 echo "$ac_t""no" 1>&6
2695 fi
2696
2697
2698 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2699 echo "configure:2700: checking for --enable-no_deps" >&5
2700 no_cache=0
2701 # Check whether --enable-no_deps or --disable-no_deps was given.
2702 if test "${enable_no_deps+set}" = set; then
2703 enableval="$enable_no_deps"
2704
2705 if test "$enableval" = yes; then
2706 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2707 else
2708 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2709 fi
2710
2711 else
2712
2713 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2721
2722 fi
2723
2724
2725 eval "$ac_cv_use_no_deps"
2726 if test "$no_cache" != 1; then
2727 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2728 fi
2729
2730 if test "$wxUSE_NO_DEPS" = yes; then
2731 echo "$ac_t""yes" 1>&6
2732 else
2733 echo "$ac_t""no" 1>&6
2734 fi
2735
2736
2737
2738 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2739 echo "configure:2740: checking for --enable-compat20" >&5
2740 no_cache=0
2741 # Check whether --enable-compat20 or --disable-compat20 was given.
2742 if test "${enable_compat20+set}" = set; then
2743 enableval="$enable_compat20"
2744
2745 if test "$enableval" = yes; then
2746 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2747 else
2748 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2749 fi
2750
2751 else
2752
2753 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2754 if test "x$LINE" != x ; then
2755 eval "DEFAULT_$LINE"
2756 else
2757 no_cache=1
2758 fi
2759
2760 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2761
2762 fi
2763
2764
2765 eval "$ac_cv_use_compat20"
2766 if test "$no_cache" != 1; then
2767 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2768 fi
2769
2770 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2771 echo "$ac_t""yes" 1>&6
2772 else
2773 echo "$ac_t""no" 1>&6
2774 fi
2775
2776
2777 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2778 echo "configure:2779: checking for --enable-compat22" >&5
2779 no_cache=0
2780 # Check whether --enable-compat22 or --disable-compat22 was given.
2781 if test "${enable_compat22+set}" = set; then
2782 enableval="$enable_compat22"
2783
2784 if test "$enableval" = yes; then
2785 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2786 else
2787 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2788 fi
2789
2790 else
2791
2792 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2793 if test "x$LINE" != x ; then
2794 eval "DEFAULT_$LINE"
2795 else
2796 no_cache=1
2797 fi
2798
2799 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2800
2801 fi
2802
2803
2804 eval "$ac_cv_use_compat22"
2805 if test "$no_cache" != 1; then
2806 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2807 fi
2808
2809 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2810 echo "$ac_t""yes" 1>&6
2811 else
2812 echo "$ac_t""no" 1>&6
2813 fi
2814
2815
2816
2817
2818 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2819 echo "configure:2820: checking for --enable-intl" >&5
2820 no_cache=0
2821 # Check whether --enable-intl or --disable-intl was given.
2822 if test "${enable_intl+set}" = set; then
2823 enableval="$enable_intl"
2824
2825 if test "$enableval" = yes; then
2826 ac_cv_use_intl='wxUSE_INTL=yes'
2827 else
2828 ac_cv_use_intl='wxUSE_INTL=no'
2829 fi
2830
2831 else
2832
2833 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
2840 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2841
2842 fi
2843
2844
2845 eval "$ac_cv_use_intl"
2846 if test "$no_cache" != 1; then
2847 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2848 fi
2849
2850 if test "$wxUSE_INTL" = yes; then
2851 echo "$ac_t""yes" 1>&6
2852 else
2853 echo "$ac_t""no" 1>&6
2854 fi
2855
2856
2857 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2858 echo "configure:2859: checking for --enable-config" >&5
2859 no_cache=0
2860 # Check whether --enable-config or --disable-config was given.
2861 if test "${enable_config+set}" = set; then
2862 enableval="$enable_config"
2863
2864 if test "$enableval" = yes; then
2865 ac_cv_use_config='wxUSE_CONFIG=yes'
2866 else
2867 ac_cv_use_config='wxUSE_CONFIG=no'
2868 fi
2869
2870 else
2871
2872 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2873 if test "x$LINE" != x ; then
2874 eval "DEFAULT_$LINE"
2875 else
2876 no_cache=1
2877 fi
2878
2879 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2880
2881 fi
2882
2883
2884 eval "$ac_cv_use_config"
2885 if test "$no_cache" != 1; then
2886 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2887 fi
2888
2889 if test "$wxUSE_CONFIG" = yes; then
2890 echo "$ac_t""yes" 1>&6
2891 else
2892 echo "$ac_t""no" 1>&6
2893 fi
2894
2895
2896
2897 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2898 echo "configure:2899: checking for --enable-sockets" >&5
2899 no_cache=0
2900 # Check whether --enable-sockets or --disable-sockets was given.
2901 if test "${enable_sockets+set}" = set; then
2902 enableval="$enable_sockets"
2903
2904 if test "$enableval" = yes; then
2905 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2906 else
2907 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2908 fi
2909
2910 else
2911
2912 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2913 if test "x$LINE" != x ; then
2914 eval "DEFAULT_$LINE"
2915 else
2916 no_cache=1
2917 fi
2918
2919 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2920
2921 fi
2922
2923
2924 eval "$ac_cv_use_sockets"
2925 if test "$no_cache" != 1; then
2926 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2927 fi
2928
2929 if test "$wxUSE_SOCKETS" = yes; then
2930 echo "$ac_t""yes" 1>&6
2931 else
2932 echo "$ac_t""no" 1>&6
2933 fi
2934
2935
2936
2937 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
2938 echo "configure:2939: checking for --enable-ipc" >&5
2939 no_cache=0
2940 # Check whether --enable-ipc or --disable-ipc was given.
2941 if test "${enable_ipc+set}" = set; then
2942 enableval="$enable_ipc"
2943
2944 if test "$enableval" = yes; then
2945 ac_cv_use_ipc='wxUSE_IPC=yes'
2946 else
2947 ac_cv_use_ipc='wxUSE_IPC=no'
2948 fi
2949
2950 else
2951
2952 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2953 if test "x$LINE" != x ; then
2954 eval "DEFAULT_$LINE"
2955 else
2956 no_cache=1
2957 fi
2958
2959 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2960
2961 fi
2962
2963
2964 eval "$ac_cv_use_ipc"
2965 if test "$no_cache" != 1; then
2966 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2967 fi
2968
2969 if test "$wxUSE_IPC" = yes; then
2970 echo "$ac_t""yes" 1>&6
2971 else
2972 echo "$ac_t""no" 1>&6
2973 fi
2974
2975
2976
2977 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
2978 echo "configure:2979: checking for --enable-cmdline" >&5
2979 no_cache=0
2980 # Check whether --enable-cmdline or --disable-cmdline was given.
2981 if test "${enable_cmdline+set}" = set; then
2982 enableval="$enable_cmdline"
2983
2984 if test "$enableval" = yes; then
2985 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2986 else
2987 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2988 fi
2989
2990 else
2991
2992 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2993 if test "x$LINE" != x ; then
2994 eval "DEFAULT_$LINE"
2995 else
2996 no_cache=1
2997 fi
2998
2999 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3000
3001 fi
3002
3003
3004 eval "$ac_cv_use_cmdline"
3005 if test "$no_cache" != 1; then
3006 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3007 fi
3008
3009 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3010 echo "$ac_t""yes" 1>&6
3011 else
3012 echo "$ac_t""no" 1>&6
3013 fi
3014
3015
3016 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3017 echo "configure:3018: checking for --enable-datetime" >&5
3018 no_cache=0
3019 # Check whether --enable-datetime or --disable-datetime was given.
3020 if test "${enable_datetime+set}" = set; then
3021 enableval="$enable_datetime"
3022
3023 if test "$enableval" = yes; then
3024 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3025 else
3026 ac_cv_use_datetime='wxUSE_DATETIME=no'
3027 fi
3028
3029 else
3030
3031 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3039
3040 fi
3041
3042
3043 eval "$ac_cv_use_datetime"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$wxUSE_DATETIME" = yes; then
3049 echo "$ac_t""yes" 1>&6
3050 else
3051 echo "$ac_t""no" 1>&6
3052 fi
3053
3054
3055 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3056 echo "configure:3057: checking for --enable-timedate" >&5
3057 no_cache=0
3058 # Check whether --enable-timedate or --disable-timedate was given.
3059 if test "${enable_timedate+set}" = set; then
3060 enableval="$enable_timedate"
3061
3062 if test "$enableval" = yes; then
3063 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3064 else
3065 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3066 fi
3067
3068 else
3069
3070 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3078
3079 fi
3080
3081
3082 eval "$ac_cv_use_timedate"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$wxUSE_TIMEDATE" = yes; then
3088 echo "$ac_t""yes" 1>&6
3089 else
3090 echo "$ac_t""no" 1>&6
3091 fi
3092
3093
3094 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3095 echo "configure:3096: checking for --enable-stopwatch" >&5
3096 no_cache=0
3097 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3098 if test "${enable_stopwatch+set}" = set; then
3099 enableval="$enable_stopwatch"
3100
3101 if test "$enableval" = yes; then
3102 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3103 else
3104 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3105 fi
3106
3107 else
3108
3109 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3110 if test "x$LINE" != x ; then
3111 eval "DEFAULT_$LINE"
3112 else
3113 no_cache=1
3114 fi
3115
3116 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3117
3118 fi
3119
3120
3121 eval "$ac_cv_use_stopwatch"
3122 if test "$no_cache" != 1; then
3123 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3124 fi
3125
3126 if test "$wxUSE_STOPWATCH" = yes; then
3127 echo "$ac_t""yes" 1>&6
3128 else
3129 echo "$ac_t""no" 1>&6
3130 fi
3131
3132
3133 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3134 echo "configure:3135: checking for --enable-dialupman" >&5
3135 no_cache=0
3136 # Check whether --enable-dialupman or --disable-dialupman was given.
3137 if test "${enable_dialupman+set}" = set; then
3138 enableval="$enable_dialupman"
3139
3140 if test "$enableval" = yes; then
3141 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3142 else
3143 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3144 fi
3145
3146 else
3147
3148 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3149 if test "x$LINE" != x ; then
3150 eval "DEFAULT_$LINE"
3151 else
3152 no_cache=1
3153 fi
3154
3155 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3156
3157 fi
3158
3159
3160 eval "$ac_cv_use_dialupman"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3166 echo "$ac_t""yes" 1>&6
3167 else
3168 echo "$ac_t""no" 1>&6
3169 fi
3170
3171
3172 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3173 echo "configure:3174: checking for --enable-apple_ieee" >&5
3174 no_cache=0
3175 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3176 if test "${enable_apple_ieee+set}" = set; then
3177 enableval="$enable_apple_ieee"
3178
3179 if test "$enableval" = yes; then
3180 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3181 else
3182 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3183 fi
3184
3185 else
3186
3187 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
3194 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3195
3196 fi
3197
3198
3199 eval "$ac_cv_use_apple_ieee"
3200 if test "$no_cache" != 1; then
3201 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3202 fi
3203
3204 if test "$wxUSE_APPLE_IEEE" = yes; then
3205 echo "$ac_t""yes" 1>&6
3206 else
3207 echo "$ac_t""no" 1>&6
3208 fi
3209
3210
3211 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3212 echo "configure:3213: checking for --enable-timer" >&5
3213 no_cache=0
3214 # Check whether --enable-timer or --disable-timer was given.
3215 if test "${enable_timer+set}" = set; then
3216 enableval="$enable_timer"
3217
3218 if test "$enableval" = yes; then
3219 ac_cv_use_timer='wxUSE_TIMER=yes'
3220 else
3221 ac_cv_use_timer='wxUSE_TIMER=no'
3222 fi
3223
3224 else
3225
3226 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3227 if test "x$LINE" != x ; then
3228 eval "DEFAULT_$LINE"
3229 else
3230 no_cache=1
3231 fi
3232
3233 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3234
3235 fi
3236
3237
3238 eval "$ac_cv_use_timer"
3239 if test "$no_cache" != 1; then
3240 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3241 fi
3242
3243 if test "$wxUSE_TIMER" = yes; then
3244 echo "$ac_t""yes" 1>&6
3245 else
3246 echo "$ac_t""no" 1>&6
3247 fi
3248
3249
3250 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3251 echo "configure:3252: checking for --enable-wave" >&5
3252 no_cache=0
3253 # Check whether --enable-wave or --disable-wave was given.
3254 if test "${enable_wave+set}" = set; then
3255 enableval="$enable_wave"
3256
3257 if test "$enableval" = yes; then
3258 ac_cv_use_wave='wxUSE_WAVE=yes'
3259 else
3260 ac_cv_use_wave='wxUSE_WAVE=no'
3261 fi
3262
3263 else
3264
3265 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3266 if test "x$LINE" != x ; then
3267 eval "DEFAULT_$LINE"
3268 else
3269 no_cache=1
3270 fi
3271
3272 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3273
3274 fi
3275
3276
3277 eval "$ac_cv_use_wave"
3278 if test "$no_cache" != 1; then
3279 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3280 fi
3281
3282 if test "$wxUSE_WAVE" = yes; then
3283 echo "$ac_t""yes" 1>&6
3284 else
3285 echo "$ac_t""no" 1>&6
3286 fi
3287
3288
3289 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3290 echo "configure:3291: checking for --enable-fraction" >&5
3291 no_cache=0
3292 # Check whether --enable-fraction or --disable-fraction was given.
3293 if test "${enable_fraction+set}" = set; then
3294 enableval="$enable_fraction"
3295
3296 if test "$enableval" = yes; then
3297 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3298 else
3299 ac_cv_use_fraction='wxUSE_FRACTION=no'
3300 fi
3301
3302 else
3303
3304 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3312
3313 fi
3314
3315
3316 eval "$ac_cv_use_fraction"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_FRACTION" = yes; then
3322 echo "$ac_t""yes" 1>&6
3323 else
3324 echo "$ac_t""no" 1>&6
3325 fi
3326
3327
3328 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3329 echo "configure:3330: checking for --enable-dynlib" >&5
3330 no_cache=0
3331 # Check whether --enable-dynlib or --disable-dynlib was given.
3332 if test "${enable_dynlib+set}" = set; then
3333 enableval="$enable_dynlib"
3334
3335 if test "$enableval" = yes; then
3336 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3337 else
3338 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3339 fi
3340
3341 else
3342
3343 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3344 if test "x$LINE" != x ; then
3345 eval "DEFAULT_$LINE"
3346 else
3347 no_cache=1
3348 fi
3349
3350 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3351
3352 fi
3353
3354
3355 eval "$ac_cv_use_dynlib"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3361 echo "$ac_t""yes" 1>&6
3362 else
3363 echo "$ac_t""no" 1>&6
3364 fi
3365
3366
3367 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3368 echo "configure:3369: checking for --enable-longlong" >&5
3369 no_cache=0
3370 # Check whether --enable-longlong or --disable-longlong was given.
3371 if test "${enable_longlong+set}" = set; then
3372 enableval="$enable_longlong"
3373
3374 if test "$enableval" = yes; then
3375 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3376 else
3377 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3378 fi
3379
3380 else
3381
3382 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3383 if test "x$LINE" != x ; then
3384 eval "DEFAULT_$LINE"
3385 else
3386 no_cache=1
3387 fi
3388
3389 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3390
3391 fi
3392
3393
3394 eval "$ac_cv_use_longlong"
3395 if test "$no_cache" != 1; then
3396 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3397 fi
3398
3399 if test "$wxUSE_LONGLONG" = yes; then
3400 echo "$ac_t""yes" 1>&6
3401 else
3402 echo "$ac_t""no" 1>&6
3403 fi
3404
3405
3406 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3407 echo "configure:3408: checking for --enable-geometry" >&5
3408 no_cache=0
3409 # Check whether --enable-geometry or --disable-geometry was given.
3410 if test "${enable_geometry+set}" = set; then
3411 enableval="$enable_geometry"
3412
3413 if test "$enableval" = yes; then
3414 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3415 else
3416 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3417 fi
3418
3419 else
3420
3421 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3422 if test "x$LINE" != x ; then
3423 eval "DEFAULT_$LINE"
3424 else
3425 no_cache=1
3426 fi
3427
3428 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3429
3430 fi
3431
3432
3433 eval "$ac_cv_use_geometry"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_GEOMETRY" = yes; then
3439 echo "$ac_t""yes" 1>&6
3440 else
3441 echo "$ac_t""no" 1>&6
3442 fi
3443
3444
3445 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3446 echo "configure:3447: checking for --enable-log" >&5
3447 no_cache=0
3448 # Check whether --enable-log or --disable-log was given.
3449 if test "${enable_log+set}" = set; then
3450 enableval="$enable_log"
3451
3452 if test "$enableval" = yes; then
3453 ac_cv_use_log='wxUSE_LOG=yes'
3454 else
3455 ac_cv_use_log='wxUSE_LOG=no'
3456 fi
3457
3458 else
3459
3460 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3468
3469 fi
3470
3471
3472 eval "$ac_cv_use_log"
3473 if test "$no_cache" != 1; then
3474 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3475 fi
3476
3477 if test "$wxUSE_LOG" = yes; then
3478 echo "$ac_t""yes" 1>&6
3479 else
3480 echo "$ac_t""no" 1>&6
3481 fi
3482
3483
3484 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3485 echo "configure:3486: checking for --enable-streams" >&5
3486 no_cache=0
3487 # Check whether --enable-streams or --disable-streams was given.
3488 if test "${enable_streams+set}" = set; then
3489 enableval="$enable_streams"
3490
3491 if test "$enableval" = yes; then
3492 ac_cv_use_streams='wxUSE_STREAMS=yes'
3493 else
3494 ac_cv_use_streams='wxUSE_STREAMS=no'
3495 fi
3496
3497 else
3498
3499 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3500 if test "x$LINE" != x ; then
3501 eval "DEFAULT_$LINE"
3502 else
3503 no_cache=1
3504 fi
3505
3506 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3507
3508 fi
3509
3510
3511 eval "$ac_cv_use_streams"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_STREAMS" = yes; then
3517 echo "$ac_t""yes" 1>&6
3518 else
3519 echo "$ac_t""no" 1>&6
3520 fi
3521
3522
3523 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3524 echo "configure:3525: checking for --enable-file" >&5
3525 no_cache=0
3526 # Check whether --enable-file or --disable-file was given.
3527 if test "${enable_file+set}" = set; then
3528 enableval="$enable_file"
3529
3530 if test "$enableval" = yes; then
3531 ac_cv_use_file='wxUSE_FILE=yes'
3532 else
3533 ac_cv_use_file='wxUSE_FILE=no'
3534 fi
3535
3536 else
3537
3538 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3546
3547 fi
3548
3549
3550 eval "$ac_cv_use_file"
3551 if test "$no_cache" != 1; then
3552 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3553 fi
3554
3555 if test "$wxUSE_FILE" = yes; then
3556 echo "$ac_t""yes" 1>&6
3557 else
3558 echo "$ac_t""no" 1>&6
3559 fi
3560
3561
3562 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3563 echo "configure:3564: checking for --enable-ffile" >&5
3564 no_cache=0
3565 # Check whether --enable-ffile or --disable-ffile was given.
3566 if test "${enable_ffile+set}" = set; then
3567 enableval="$enable_ffile"
3568
3569 if test "$enableval" = yes; then
3570 ac_cv_use_ffile='wxUSE_FFILE=yes'
3571 else
3572 ac_cv_use_ffile='wxUSE_FFILE=no'
3573 fi
3574
3575 else
3576
3577 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3578 if test "x$LINE" != x ; then
3579 eval "DEFAULT_$LINE"
3580 else
3581 no_cache=1
3582 fi
3583
3584 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3585
3586 fi
3587
3588
3589 eval "$ac_cv_use_ffile"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_FFILE" = yes; then
3595 echo "$ac_t""yes" 1>&6
3596 else
3597 echo "$ac_t""no" 1>&6
3598 fi
3599
3600
3601 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3602 echo "configure:3603: checking for --enable-textfile" >&5
3603 no_cache=0
3604 # Check whether --enable-textfile or --disable-textfile was given.
3605 if test "${enable_textfile+set}" = set; then
3606 enableval="$enable_textfile"
3607
3608 if test "$enableval" = yes; then
3609 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3610 else
3611 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3612 fi
3613
3614 else
3615
3616 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3617 if test "x$LINE" != x ; then
3618 eval "DEFAULT_$LINE"
3619 else
3620 no_cache=1
3621 fi
3622
3623 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3624
3625 fi
3626
3627
3628 eval "$ac_cv_use_textfile"
3629 if test "$no_cache" != 1; then
3630 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3631 fi
3632
3633 if test "$wxUSE_TEXTFILE" = yes; then
3634 echo "$ac_t""yes" 1>&6
3635 else
3636 echo "$ac_t""no" 1>&6
3637 fi
3638
3639
3640 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3641 echo "configure:3642: checking for --enable-fontmap" >&5
3642 no_cache=0
3643 # Check whether --enable-fontmap or --disable-fontmap was given.
3644 if test "${enable_fontmap+set}" = set; then
3645 enableval="$enable_fontmap"
3646
3647 if test "$enableval" = yes; then
3648 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3649 else
3650 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3651 fi
3652
3653 else
3654
3655 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3656 if test "x$LINE" != x ; then
3657 eval "DEFAULT_$LINE"
3658 else
3659 no_cache=1
3660 fi
3661
3662 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3663
3664 fi
3665
3666
3667 eval "$ac_cv_use_fontmap"
3668 if test "$no_cache" != 1; then
3669 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3670 fi
3671
3672 if test "$wxUSE_FONTMAP" = yes; then
3673 echo "$ac_t""yes" 1>&6
3674 else
3675 echo "$ac_t""no" 1>&6
3676 fi
3677
3678
3679 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3680 echo "configure:3681: checking for --enable-unicode" >&5
3681 no_cache=0
3682 # Check whether --enable-unicode or --disable-unicode was given.
3683 if test "${enable_unicode+set}" = set; then
3684 enableval="$enable_unicode"
3685
3686 if test "$enableval" = yes; then
3687 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3688 else
3689 ac_cv_use_unicode='wxUSE_UNICODE=no'
3690 fi
3691
3692 else
3693
3694 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3695 if test "x$LINE" != x ; then
3696 eval "DEFAULT_$LINE"
3697 else
3698 no_cache=1
3699 fi
3700
3701 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3702
3703 fi
3704
3705
3706 eval "$ac_cv_use_unicode"
3707 if test "$no_cache" != 1; then
3708 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3709 fi
3710
3711 if test "$wxUSE_UNICODE" = yes; then
3712 echo "$ac_t""yes" 1>&6
3713 else
3714 echo "$ac_t""no" 1>&6
3715 fi
3716
3717
3718 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3719 echo "configure:3720: checking for --enable-wcsrtombs" >&5
3720 no_cache=0
3721 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3722 if test "${enable_wcsrtombs+set}" = set; then
3723 enableval="$enable_wcsrtombs"
3724
3725 if test "$enableval" = yes; then
3726 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3727 else
3728 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3729 fi
3730
3731 else
3732
3733 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3734 if test "x$LINE" != x ; then
3735 eval "DEFAULT_$LINE"
3736 else
3737 no_cache=1
3738 fi
3739
3740 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3741
3742 fi
3743
3744
3745 eval "$ac_cv_use_wcsrtombs"
3746 if test "$no_cache" != 1; then
3747 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3748 fi
3749
3750 if test "$wxUSE_WCSRTOMBS" = yes; then
3751 echo "$ac_t""yes" 1>&6
3752 else
3753 echo "$ac_t""no" 1>&6
3754 fi
3755
3756
3757 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3758 echo "configure:3759: checking for --enable-wxprintfv" >&5
3759 no_cache=0
3760 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3761 if test "${enable_wxprintfv+set}" = set; then
3762 enableval="$enable_wxprintfv"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3766 else
3767 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3768 fi
3769
3770 else
3771
3772 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3780
3781 fi
3782
3783
3784 eval "$ac_cv_use_wxprintfv"
3785 if test "$no_cache" != 1; then
3786 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3787 fi
3788
3789 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3790 echo "$ac_t""yes" 1>&6
3791 else
3792 echo "$ac_t""no" 1>&6
3793 fi
3794
3795
3796 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3797 echo "configure:3798: checking for --enable-std_iostreams" >&5
3798 no_cache=0
3799 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3800 if test "${enable_std_iostreams+set}" = set; then
3801 enableval="$enable_std_iostreams"
3802
3803 if test "$enableval" = yes; then
3804 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3805 else
3806 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3807 fi
3808
3809 else
3810
3811 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3812 if test "x$LINE" != x ; then
3813 eval "DEFAULT_$LINE"
3814 else
3815 no_cache=1
3816 fi
3817
3818 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3819
3820 fi
3821
3822
3823 eval "$ac_cv_use_std_iostreams"
3824 if test "$no_cache" != 1; then
3825 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3826 fi
3827
3828 if test "$wxUSE_STD_IOSTREAM" = yes; then
3829 echo "$ac_t""yes" 1>&6
3830 else
3831 echo "$ac_t""no" 1>&6
3832 fi
3833
3834
3835 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3836 echo "configure:3837: checking for --enable-filesystem" >&5
3837 no_cache=0
3838 # Check whether --enable-filesystem or --disable-filesystem was given.
3839 if test "${enable_filesystem+set}" = set; then
3840 enableval="$enable_filesystem"
3841
3842 if test "$enableval" = yes; then
3843 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3844 else
3845 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3846 fi
3847
3848 else
3849
3850 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3851 if test "x$LINE" != x ; then
3852 eval "DEFAULT_$LINE"
3853 else
3854 no_cache=1
3855 fi
3856
3857 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3858
3859 fi
3860
3861
3862 eval "$ac_cv_use_filesystem"
3863 if test "$no_cache" != 1; then
3864 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3865 fi
3866
3867 if test "$wxUSE_FILESYSTEM" = yes; then
3868 echo "$ac_t""yes" 1>&6
3869 else
3870 echo "$ac_t""no" 1>&6
3871 fi
3872
3873
3874 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3875 echo "configure:3876: checking for --enable-fs_inet" >&5
3876 no_cache=0
3877 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3878 if test "${enable_fs_inet+set}" = set; then
3879 enableval="$enable_fs_inet"
3880
3881 if test "$enableval" = yes; then
3882 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3883 else
3884 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3885 fi
3886
3887 else
3888
3889 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3890 if test "x$LINE" != x ; then
3891 eval "DEFAULT_$LINE"
3892 else
3893 no_cache=1
3894 fi
3895
3896 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3897
3898 fi
3899
3900
3901 eval "$ac_cv_use_fs_inet"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$wxUSE_FS_INET" = yes; then
3907 echo "$ac_t""yes" 1>&6
3908 else
3909 echo "$ac_t""no" 1>&6
3910 fi
3911
3912
3913 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3914 echo "configure:3915: checking for --enable-fs_zip" >&5
3915 no_cache=0
3916 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3917 if test "${enable_fs_zip+set}" = set; then
3918 enableval="$enable_fs_zip"
3919
3920 if test "$enableval" = yes; then
3921 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3922 else
3923 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3924 fi
3925
3926 else
3927
3928 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3929 if test "x$LINE" != x ; then
3930 eval "DEFAULT_$LINE"
3931 else
3932 no_cache=1
3933 fi
3934
3935 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3936
3937 fi
3938
3939
3940 eval "$ac_cv_use_fs_zip"
3941 if test "$no_cache" != 1; then
3942 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3943 fi
3944
3945 if test "$wxUSE_FS_ZIP" = yes; then
3946 echo "$ac_t""yes" 1>&6
3947 else
3948 echo "$ac_t""no" 1>&6
3949 fi
3950
3951
3952 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3953 echo "configure:3954: checking for --enable-zipstream" >&5
3954 no_cache=0
3955 # Check whether --enable-zipstream or --disable-zipstream was given.
3956 if test "${enable_zipstream+set}" = set; then
3957 enableval="$enable_zipstream"
3958
3959 if test "$enableval" = yes; then
3960 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3961 else
3962 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3963 fi
3964
3965 else
3966
3967 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3975
3976 fi
3977
3978
3979 eval "$ac_cv_use_zipstream"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_ZIPSTREAM" = yes; then
3985 echo "$ac_t""yes" 1>&6
3986 else
3987 echo "$ac_t""no" 1>&6
3988 fi
3989
3990
3991
3992 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3993 echo "configure:3994: checking for --enable-catch_segvs" >&5
3994 no_cache=0
3995 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3996 if test "${enable_catch_segvs+set}" = set; then
3997 enableval="$enable_catch_segvs"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4001 else
4002 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4003 fi
4004
4005 else
4006
4007 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4015
4016 fi
4017
4018
4019 eval "$ac_cv_use_catch_segvs"
4020 if test "$no_cache" != 1; then
4021 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4022 fi
4023
4024 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4025 echo "$ac_t""yes" 1>&6
4026 else
4027 echo "$ac_t""no" 1>&6
4028 fi
4029
4030
4031 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4032 echo "configure:4033: checking for --enable-snglinst" >&5
4033 no_cache=0
4034 # Check whether --enable-snglinst or --disable-snglinst was given.
4035 if test "${enable_snglinst+set}" = set; then
4036 enableval="$enable_snglinst"
4037
4038 if test "$enableval" = yes; then
4039 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4040 else
4041 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4042 fi
4043
4044 else
4045
4046 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4047 if test "x$LINE" != x ; then
4048 eval "DEFAULT_$LINE"
4049 else
4050 no_cache=1
4051 fi
4052
4053 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4054
4055 fi
4056
4057
4058 eval "$ac_cv_use_snglinst"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4064 echo "$ac_t""yes" 1>&6
4065 else
4066 echo "$ac_t""no" 1>&6
4067 fi
4068
4069
4070
4071 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4072 echo "configure:4073: checking for --enable-mimetype" >&5
4073 no_cache=0
4074 # Check whether --enable-mimetype or --disable-mimetype was given.
4075 if test "${enable_mimetype+set}" = set; then
4076 enableval="$enable_mimetype"
4077
4078 if test "$enableval" = yes; then
4079 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4080 else
4081 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4082 fi
4083
4084 else
4085
4086 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4087 if test "x$LINE" != x ; then
4088 eval "DEFAULT_$LINE"
4089 else
4090 no_cache=1
4091 fi
4092
4093 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4094
4095 fi
4096
4097
4098 eval "$ac_cv_use_mimetype"
4099 if test "$no_cache" != 1; then
4100 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4101 fi
4102
4103 if test "$wxUSE_MIMETYPE" = yes; then
4104 echo "$ac_t""yes" 1>&6
4105 else
4106 echo "$ac_t""no" 1>&6
4107 fi
4108
4109
4110
4111
4112 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4113 echo "configure:4114: checking for --enable-threads" >&5
4114 no_cache=0
4115 # Check whether --enable-threads or --disable-threads was given.
4116 if test "${enable_threads+set}" = set; then
4117 enableval="$enable_threads"
4118
4119 if test "$enableval" = yes; then
4120 ac_cv_use_threads='wxUSE_THREADS=yes'
4121 else
4122 ac_cv_use_threads='wxUSE_THREADS=no'
4123 fi
4124
4125 else
4126
4127 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4128 if test "x$LINE" != x ; then
4129 eval "DEFAULT_$LINE"
4130 else
4131 no_cache=1
4132 fi
4133
4134 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4135
4136 fi
4137
4138
4139 eval "$ac_cv_use_threads"
4140 if test "$no_cache" != 1; then
4141 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4142 fi
4143
4144 if test "$wxUSE_THREADS" = yes; then
4145 echo "$ac_t""yes" 1>&6
4146 else
4147 echo "$ac_t""no" 1>&6
4148 fi
4149
4150
4151 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4152 echo "configure:4153: checking for --enable-serial" >&5
4153 no_cache=0
4154 # Check whether --enable-serial or --disable-serial was given.
4155 if test "${enable_serial+set}" = set; then
4156 enableval="$enable_serial"
4157
4158 if test "$enableval" = yes; then
4159 ac_cv_use_serial='wxUSE_SERIAL=yes'
4160 else
4161 ac_cv_use_serial='wxUSE_SERIAL=no'
4162 fi
4163
4164 else
4165
4166 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4167 if test "x$LINE" != x ; then
4168 eval "DEFAULT_$LINE"
4169 else
4170 no_cache=1
4171 fi
4172
4173 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4174
4175 fi
4176
4177
4178 eval "$ac_cv_use_serial"
4179 if test "$no_cache" != 1; then
4180 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4181 fi
4182
4183 if test "$wxUSE_SERIAL" = yes; then
4184 echo "$ac_t""yes" 1>&6
4185 else
4186 echo "$ac_t""no" 1>&6
4187 fi
4188
4189
4190 if test "$wxUSE_GUI" = "yes"; then
4191
4192
4193
4194 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4195 echo "configure:4196: checking for --enable-docview" >&5
4196 no_cache=0
4197 # Check whether --enable-docview or --disable-docview was given.
4198 if test "${enable_docview+set}" = set; then
4199 enableval="$enable_docview"
4200
4201 if test "$enableval" = yes; then
4202 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4203 else
4204 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4205 fi
4206
4207 else
4208
4209 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4210 if test "x$LINE" != x ; then
4211 eval "DEFAULT_$LINE"
4212 else
4213 no_cache=1
4214 fi
4215
4216 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4217
4218 fi
4219
4220
4221 eval "$ac_cv_use_docview"
4222 if test "$no_cache" != 1; then
4223 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4224 fi
4225
4226 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4227 echo "$ac_t""yes" 1>&6
4228 else
4229 echo "$ac_t""no" 1>&6
4230 fi
4231
4232
4233 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4234 echo "configure:4235: checking for --enable-help" >&5
4235 no_cache=0
4236 # Check whether --enable-help or --disable-help was given.
4237 if test "${enable_help+set}" = set; then
4238 enableval="$enable_help"
4239
4240 if test "$enableval" = yes; then
4241 ac_cv_use_help='wxUSE_HELP=yes'
4242 else
4243 ac_cv_use_help='wxUSE_HELP=no'
4244 fi
4245
4246 else
4247
4248 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4249 if test "x$LINE" != x ; then
4250 eval "DEFAULT_$LINE"
4251 else
4252 no_cache=1
4253 fi
4254
4255 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4256
4257 fi
4258
4259
4260 eval "$ac_cv_use_help"
4261 if test "$no_cache" != 1; then
4262 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4263 fi
4264
4265 if test "$wxUSE_HELP" = yes; then
4266 echo "$ac_t""yes" 1>&6
4267 else
4268 echo "$ac_t""no" 1>&6
4269 fi
4270
4271
4272 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4273 echo "configure:4274: checking for --enable-html" >&5
4274 no_cache=0
4275 # Check whether --enable-html or --disable-html was given.
4276 if test "${enable_html+set}" = set; then
4277 enableval="$enable_html"
4278
4279 if test "$enableval" = yes; then
4280 ac_cv_use_html='wxUSE_HTML=yes'
4281 else
4282 ac_cv_use_html='wxUSE_HTML=no'
4283 fi
4284
4285 else
4286
4287 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4295
4296 fi
4297
4298
4299 eval "$ac_cv_use_html"
4300 if test "$no_cache" != 1; then
4301 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4302 fi
4303
4304 if test "$wxUSE_HTML" = yes; then
4305 echo "$ac_t""yes" 1>&6
4306 else
4307 echo "$ac_t""no" 1>&6
4308 fi
4309
4310
4311 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4312 echo "configure:4313: checking for --enable-htmlhelp" >&5
4313 no_cache=0
4314 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4315 if test "${enable_htmlhelp+set}" = set; then
4316 enableval="$enable_htmlhelp"
4317
4318 if test "$enableval" = yes; then
4319 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4320 else
4321 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4322 fi
4323
4324 else
4325
4326 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4334
4335 fi
4336
4337
4338 eval "$ac_cv_use_htmlhelp"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_WXHTML_HELP" = yes; then
4344 echo "$ac_t""yes" 1>&6
4345 else
4346 echo "$ac_t""no" 1>&6
4347 fi
4348
4349
4350 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4351 echo "configure:4352: checking for --enable-constraints" >&5
4352 no_cache=0
4353 # Check whether --enable-constraints or --disable-constraints was given.
4354 if test "${enable_constraints+set}" = set; then
4355 enableval="$enable_constraints"
4356
4357 if test "$enableval" = yes; then
4358 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4359 else
4360 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4361 fi
4362
4363 else
4364
4365 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4366 if test "x$LINE" != x ; then
4367 eval "DEFAULT_$LINE"
4368 else
4369 no_cache=1
4370 fi
4371
4372 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4373
4374 fi
4375
4376
4377 eval "$ac_cv_use_constraints"
4378 if test "$no_cache" != 1; then
4379 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4380 fi
4381
4382 if test "$wxUSE_CONSTRAINTS" = yes; then
4383 echo "$ac_t""yes" 1>&6
4384 else
4385 echo "$ac_t""no" 1>&6
4386 fi
4387
4388
4389 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4390 echo "configure:4391: checking for --enable-printarch" >&5
4391 no_cache=0
4392 # Check whether --enable-printarch or --disable-printarch was given.
4393 if test "${enable_printarch+set}" = set; then
4394 enableval="$enable_printarch"
4395
4396 if test "$enableval" = yes; then
4397 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4398 else
4399 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4400 fi
4401
4402 else
4403
4404 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4405 if test "x$LINE" != x ; then
4406 eval "DEFAULT_$LINE"
4407 else
4408 no_cache=1
4409 fi
4410
4411 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4412
4413 fi
4414
4415
4416 eval "$ac_cv_use_printarch"
4417 if test "$no_cache" != 1; then
4418 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4419 fi
4420
4421 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4422 echo "$ac_t""yes" 1>&6
4423 else
4424 echo "$ac_t""no" 1>&6
4425 fi
4426
4427
4428 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4429 echo "configure:4430: checking for --enable-mdi" >&5
4430 no_cache=0
4431 # Check whether --enable-mdi or --disable-mdi was given.
4432 if test "${enable_mdi+set}" = set; then
4433 enableval="$enable_mdi"
4434
4435 if test "$enableval" = yes; then
4436 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4437 else
4438 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4439 fi
4440
4441 else
4442
4443 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4451
4452 fi
4453
4454
4455 eval "$ac_cv_use_mdi"
4456 if test "$no_cache" != 1; then
4457 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4458 fi
4459
4460 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4461 echo "$ac_t""yes" 1>&6
4462 else
4463 echo "$ac_t""no" 1>&6
4464 fi
4465
4466
4467 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4468 echo "configure:4469: checking for --enable-loggui" >&5
4469 no_cache=0
4470 # Check whether --enable-loggui or --disable-loggui was given.
4471 if test "${enable_loggui+set}" = set; then
4472 enableval="$enable_loggui"
4473
4474 if test "$enableval" = yes; then
4475 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4476 else
4477 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4478 fi
4479
4480 else
4481
4482 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4483 if test "x$LINE" != x ; then
4484 eval "DEFAULT_$LINE"
4485 else
4486 no_cache=1
4487 fi
4488
4489 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4490
4491 fi
4492
4493
4494 eval "$ac_cv_use_loggui"
4495 if test "$no_cache" != 1; then
4496 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4497 fi
4498
4499 if test "$wxUSE_LOGGUI" = yes; then
4500 echo "$ac_t""yes" 1>&6
4501 else
4502 echo "$ac_t""no" 1>&6
4503 fi
4504
4505
4506 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4507 echo "configure:4508: checking for --enable-logwin" >&5
4508 no_cache=0
4509 # Check whether --enable-logwin or --disable-logwin was given.
4510 if test "${enable_logwin+set}" = set; then
4511 enableval="$enable_logwin"
4512
4513 if test "$enableval" = yes; then
4514 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4515 else
4516 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4517 fi
4518
4519 else
4520
4521 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
4528 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4529
4530 fi
4531
4532
4533 eval "$ac_cv_use_logwin"
4534 if test "$no_cache" != 1; then
4535 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4536 fi
4537
4538 if test "$wxUSE_LOGWINDOW" = yes; then
4539 echo "$ac_t""yes" 1>&6
4540 else
4541 echo "$ac_t""no" 1>&6
4542 fi
4543
4544
4545
4546 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4547 echo "configure:4548: checking for --enable-postscript" >&5
4548 no_cache=0
4549 # Check whether --enable-postscript or --disable-postscript was given.
4550 if test "${enable_postscript+set}" = set; then
4551 enableval="$enable_postscript"
4552
4553 if test "$enableval" = yes; then
4554 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4555 else
4556 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4557 fi
4558
4559 else
4560
4561 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4562 if test "x$LINE" != x ; then
4563 eval "DEFAULT_$LINE"
4564 else
4565 no_cache=1
4566 fi
4567
4568 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4569
4570 fi
4571
4572
4573 eval "$ac_cv_use_postscript"
4574 if test "$no_cache" != 1; then
4575 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4576 fi
4577
4578 if test "$wxUSE_POSTSCRIPT" = yes; then
4579 echo "$ac_t""yes" 1>&6
4580 else
4581 echo "$ac_t""no" 1>&6
4582 fi
4583
4584
4585
4586
4587
4588 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4589 echo "configure:4590: checking for --enable-prologio" >&5
4590 no_cache=0
4591 # Check whether --enable-prologio or --disable-prologio was given.
4592 if test "${enable_prologio+set}" = set; then
4593 enableval="$enable_prologio"
4594
4595 if test "$enableval" = yes; then
4596 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4597 else
4598 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4599 fi
4600
4601 else
4602
4603 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4611
4612 fi
4613
4614
4615 eval "$ac_cv_use_prologio"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_PROLOGIO" = yes; then
4621 echo "$ac_t""yes" 1>&6
4622 else
4623 echo "$ac_t""no" 1>&6
4624 fi
4625
4626
4627 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4628 echo "configure:4629: checking for --enable-resources" >&5
4629 no_cache=0
4630 # Check whether --enable-resources or --disable-resources was given.
4631 if test "${enable_resources+set}" = set; then
4632 enableval="$enable_resources"
4633
4634 if test "$enableval" = yes; then
4635 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4636 else
4637 ac_cv_use_resources='wxUSE_RESOURCES=no'
4638 fi
4639
4640 else
4641
4642 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4643 if test "x$LINE" != x ; then
4644 eval "DEFAULT_$LINE"
4645 else
4646 no_cache=1
4647 fi
4648
4649 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4650
4651 fi
4652
4653
4654 eval "$ac_cv_use_resources"
4655 if test "$no_cache" != 1; then
4656 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4657 fi
4658
4659 if test "$wxUSE_RESOURCES" = yes; then
4660 echo "$ac_t""yes" 1>&6
4661 else
4662 echo "$ac_t""no" 1>&6
4663 fi
4664
4665
4666
4667 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4668 echo "configure:4669: checking for --enable-xresources" >&5
4669 no_cache=0
4670 # Check whether --enable-xresources or --disable-xresources was given.
4671 if test "${enable_xresources+set}" = set; then
4672 enableval="$enable_xresources"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4676 else
4677 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4678 fi
4679
4680 else
4681
4682 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4690
4691 fi
4692
4693
4694 eval "$ac_cv_use_xresources"
4695 if test "$no_cache" != 1; then
4696 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4697 fi
4698
4699 if test "$wxUSE_X_RESOURCES" = yes; then
4700 echo "$ac_t""yes" 1>&6
4701 else
4702 echo "$ac_t""no" 1>&6
4703 fi
4704
4705
4706
4707
4708 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4709 echo "configure:4710: checking for --enable-clipboard" >&5
4710 no_cache=0
4711 # Check whether --enable-clipboard or --disable-clipboard was given.
4712 if test "${enable_clipboard+set}" = set; then
4713 enableval="$enable_clipboard"
4714
4715 if test "$enableval" = yes; then
4716 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4717 else
4718 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4719 fi
4720
4721 else
4722
4723 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4724 if test "x$LINE" != x ; then
4725 eval "DEFAULT_$LINE"
4726 else
4727 no_cache=1
4728 fi
4729
4730 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4731
4732 fi
4733
4734
4735 eval "$ac_cv_use_clipboard"
4736 if test "$no_cache" != 1; then
4737 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4738 fi
4739
4740 if test "$wxUSE_CLIPBOARD" = yes; then
4741 echo "$ac_t""yes" 1>&6
4742 else
4743 echo "$ac_t""no" 1>&6
4744 fi
4745
4746
4747 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4748 echo "configure:4749: checking for --enable-dnd" >&5
4749 no_cache=0
4750 # Check whether --enable-dnd or --disable-dnd was given.
4751 if test "${enable_dnd+set}" = set; then
4752 enableval="$enable_dnd"
4753
4754 if test "$enableval" = yes; then
4755 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4756 else
4757 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4758 fi
4759
4760 else
4761
4762 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4763 if test "x$LINE" != x ; then
4764 eval "DEFAULT_$LINE"
4765 else
4766 no_cache=1
4767 fi
4768
4769 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4770
4771 fi
4772
4773
4774 eval "$ac_cv_use_dnd"
4775 if test "$no_cache" != 1; then
4776 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4777 fi
4778
4779 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4780 echo "$ac_t""yes" 1>&6
4781 else
4782 echo "$ac_t""no" 1>&6
4783 fi
4784
4785
4786 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4787 echo "configure:4788: checking for --enable-metafile" >&5
4788 no_cache=0
4789 # Check whether --enable-metafile or --disable-metafile was given.
4790 if test "${enable_metafile+set}" = set; then
4791 enableval="$enable_metafile"
4792
4793 if test "$enableval" = yes; then
4794 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4795 else
4796 ac_cv_use_metafile='wxUSE_METAFILE=no'
4797 fi
4798
4799 else
4800
4801 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4802 if test "x$LINE" != x ; then
4803 eval "DEFAULT_$LINE"
4804 else
4805 no_cache=1
4806 fi
4807
4808 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4809
4810 fi
4811
4812
4813 eval "$ac_cv_use_metafile"
4814 if test "$no_cache" != 1; then
4815 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4816 fi
4817
4818 if test "$wxUSE_METAFILE" = yes; then
4819 echo "$ac_t""yes" 1>&6
4820 else
4821 echo "$ac_t""no" 1>&6
4822 fi
4823
4824
4825
4826 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
4827 echo "configure:4828: checking for --enable-wxtree" >&5
4828 no_cache=0
4829 # Check whether --enable-wxtree or --disable-wxtree was given.
4830 if test "${enable_wxtree+set}" = set; then
4831 enableval="$enable_wxtree"
4832
4833 if test "$enableval" = yes; then
4834 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4835 else
4836 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4837 fi
4838
4839 else
4840
4841 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4842 if test "x$LINE" != x ; then
4843 eval "DEFAULT_$LINE"
4844 else
4845 no_cache=1
4846 fi
4847
4848 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4849
4850 fi
4851
4852
4853 eval "$ac_cv_use_wxtree"
4854 if test "$no_cache" != 1; then
4855 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4856 fi
4857
4858 if test "$wxUSE_WXTREE" = yes; then
4859 echo "$ac_t""yes" 1>&6
4860 else
4861 echo "$ac_t""no" 1>&6
4862 fi
4863
4864
4865
4866
4867 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4868 echo "configure:4869: checking for --enable-controls" >&5
4869 no_cache=0
4870 # Check whether --enable-controls or --disable-controls was given.
4871 if test "${enable_controls+set}" = set; then
4872 enableval="$enable_controls"
4873
4874 if test "$enableval" = yes; then
4875 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4876 else
4877 ac_cv_use_controls='wxUSE_CONTROLS=no'
4878 fi
4879
4880 else
4881
4882 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4883 if test "x$LINE" != x ; then
4884 eval "DEFAULT_$LINE"
4885 else
4886 no_cache=1
4887 fi
4888
4889 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4890
4891 fi
4892
4893
4894 eval "$ac_cv_use_controls"
4895 if test "$no_cache" != 1; then
4896 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4897 fi
4898
4899 if test "$wxUSE_CONTROLS" = yes; then
4900 echo "$ac_t""yes" 1>&6
4901 else
4902 echo "$ac_t""no" 1>&6
4903 fi
4904
4905
4906 if test "$wxUSE_CONTROLS" = "yes"; then
4907 DEFAULT_wxUSE_ACCEL=yes
4908 DEFAULT_wxUSE_BMPBUTTON=yes
4909 DEFAULT_wxUSE_BUTTON=yes
4910 DEFAULT_wxUSE_CALCTRL=no
4911 DEFAULT_wxUSE_CARET=yes
4912 DEFAULT_wxUSE_COMBOBOX=yes
4913 DEFAULT_wxUSE_CHECKBOX=yes
4914 DEFAULT_wxUSE_CHECKLISTBOX=yes
4915 DEFAULT_wxUSE_CHOICE=yes
4916 DEFAULT_wxUSE_GAUGE=yes
4917 DEFAULT_wxUSE_GRID=yes
4918 DEFAULT_wxUSE_NEW_GRID=yes
4919 DEFAULT_wxUSE_IMAGLIST=yes
4920 DEFAULT_wxUSE_LISTBOX=yes
4921 DEFAULT_wxUSE_LISTCTRL=yes
4922 DEFAULT_wxUSE_NOTEBOOK=yes
4923 DEFAULT_wxUSE_RADIOBOX=yes
4924 DEFAULT_wxUSE_RADIOBTN=yes
4925 DEFAULT_wxUSE_SASH=yes
4926 DEFAULT_wxUSE_SCROLLBAR=yes
4927 DEFAULT_wxUSE_SLIDER=yes
4928 DEFAULT_wxUSE_SPINBTN=yes
4929 DEFAULT_wxUSE_SPINCTRL=yes
4930 DEFAULT_wxUSE_SPLITTER=yes
4931 DEFAULT_wxUSE_STATBMP=yes
4932 DEFAULT_wxUSE_STATBOX=yes
4933 DEFAULT_wxUSE_STATLINE=yes
4934 DEFAULT_wxUSE_STATUSBAR=yes
4935 DEFAULT_wxUSE_TAB_DIALOG=yes
4936 DEFAULT_wxUSE_TOGGLEBTN=yes
4937 DEFAULT_wxUSE_TOOLBAR=yes
4938 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4939 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4940 DEFAULT_wxUSE_TOOLTIPS=yes
4941 DEFAULT_wxUSE_TREECTRL=yes
4942 elif test "$wxUSE_CONTROLS" = "no"; then
4943 DEFAULT_wxUSE_ACCEL=no
4944 DEFAULT_wxUSE_BMPBUTTON=no
4945 DEFAULT_wxUSE_BUTTON=no
4946 DEFAULT_wxUSE_CALCTRL=no
4947 DEFAULT_wxUSE_CARET=no
4948 DEFAULT_wxUSE_COMBOBOX=no
4949 DEFAULT_wxUSE_CHECKBOX=no
4950 DEFAULT_wxUSE_CHECKLISTBOX=no
4951 DEFAULT_wxUSE_CHOICE=no
4952 DEFAULT_wxUSE_GAUGE=no
4953 DEFAULT_wxUSE_GRID=no
4954 DEFAULT_wxUSE_NEW_GRID=no
4955 DEFAULT_wxUSE_IMAGLIST=no
4956 DEFAULT_wxUSE_LISTBOX=no
4957 DEFAULT_wxUSE_LISTCTRL=no
4958 DEFAULT_wxUSE_NOTEBOOK=no
4959 DEFAULT_wxUSE_RADIOBOX=no
4960 DEFAULT_wxUSE_RADIOBTN=no
4961 DEFAULT_wxUSE_SASH=no
4962 DEFAULT_wxUSE_SCROLLBAR=no
4963 DEFAULT_wxUSE_SLIDER=no
4964 DEFAULT_wxUSE_SPINBTN=no
4965 DEFAULT_wxUSE_SPINCTRL=no
4966 DEFAULT_wxUSE_SPLITTER=no
4967 DEFAULT_wxUSE_STATBMP=no
4968 DEFAULT_wxUSE_STATBOX=no
4969 DEFAULT_wxUSE_STATLINE=no
4970 DEFAULT_wxUSE_STATUSBAR=no
4971 DEFAULT_wxUSE_TAB_DIALOG=no
4972 DEFAULT_wxUSE_TOGGLEBTN=no
4973 DEFAULT_wxUSE_TOOLBAR=no
4974 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4975 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4976 DEFAULT_wxUSE_TOOLTIPS=no
4977 DEFAULT_wxUSE_TREECTRL=no
4978 fi
4979
4980
4981 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
4982 echo "configure:4983: checking for --enable-accel" >&5
4983 no_cache=0
4984 # Check whether --enable-accel or --disable-accel was given.
4985 if test "${enable_accel+set}" = set; then
4986 enableval="$enable_accel"
4987
4988 if test "$enableval" = yes; then
4989 ac_cv_use_accel='wxUSE_ACCEL=yes'
4990 else
4991 ac_cv_use_accel='wxUSE_ACCEL=no'
4992 fi
4993
4994 else
4995
4996 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4997 if test "x$LINE" != x ; then
4998 eval "DEFAULT_$LINE"
4999 else
5000 no_cache=1
5001 fi
5002
5003 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5004
5005 fi
5006
5007
5008 eval "$ac_cv_use_accel"
5009 if test "$no_cache" != 1; then
5010 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5011 fi
5012
5013 if test "$wxUSE_ACCEL" = yes; then
5014 echo "$ac_t""yes" 1>&6
5015 else
5016 echo "$ac_t""no" 1>&6
5017 fi
5018
5019
5020 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5021 echo "configure:5022: checking for --enable-button" >&5
5022 no_cache=0
5023 # Check whether --enable-button or --disable-button was given.
5024 if test "${enable_button+set}" = set; then
5025 enableval="$enable_button"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_button='wxUSE_BUTTON=yes'
5029 else
5030 ac_cv_use_button='wxUSE_BUTTON=no'
5031 fi
5032
5033 else
5034
5035 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5043
5044 fi
5045
5046
5047 eval "$ac_cv_use_button"
5048 if test "$no_cache" != 1; then
5049 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5050 fi
5051
5052 if test "$wxUSE_BUTTON" = yes; then
5053 echo "$ac_t""yes" 1>&6
5054 else
5055 echo "$ac_t""no" 1>&6
5056 fi
5057
5058
5059 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5060 echo "configure:5061: checking for --enable-bmpbutton" >&5
5061 no_cache=0
5062 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5063 if test "${enable_bmpbutton+set}" = set; then
5064 enableval="$enable_bmpbutton"
5065
5066 if test "$enableval" = yes; then
5067 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5068 else
5069 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5070 fi
5071
5072 else
5073
5074 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5075 if test "x$LINE" != x ; then
5076 eval "DEFAULT_$LINE"
5077 else
5078 no_cache=1
5079 fi
5080
5081 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5082
5083 fi
5084
5085
5086 eval "$ac_cv_use_bmpbutton"
5087 if test "$no_cache" != 1; then
5088 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5089 fi
5090
5091 if test "$wxUSE_BMPBUTTON" = yes; then
5092 echo "$ac_t""yes" 1>&6
5093 else
5094 echo "$ac_t""no" 1>&6
5095 fi
5096
5097
5098 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5099 echo "configure:5100: checking for --enable-calendar" >&5
5100 no_cache=0
5101 # Check whether --enable-calendar or --disable-calendar was given.
5102 if test "${enable_calendar+set}" = set; then
5103 enableval="$enable_calendar"
5104
5105 if test "$enableval" = yes; then
5106 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5107 else
5108 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5109 fi
5110
5111 else
5112
5113 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5114 if test "x$LINE" != x ; then
5115 eval "DEFAULT_$LINE"
5116 else
5117 no_cache=1
5118 fi
5119
5120 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5121
5122 fi
5123
5124
5125 eval "$ac_cv_use_calendar"
5126 if test "$no_cache" != 1; then
5127 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5128 fi
5129
5130 if test "$wxUSE_CALCTRL" = yes; then
5131 echo "$ac_t""yes" 1>&6
5132 else
5133 echo "$ac_t""no" 1>&6
5134 fi
5135
5136
5137 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5138 echo "configure:5139: checking for --enable-caret" >&5
5139 no_cache=0
5140 # Check whether --enable-caret or --disable-caret was given.
5141 if test "${enable_caret+set}" = set; then
5142 enableval="$enable_caret"
5143
5144 if test "$enableval" = yes; then
5145 ac_cv_use_caret='wxUSE_CARET=yes'
5146 else
5147 ac_cv_use_caret='wxUSE_CARET=no'
5148 fi
5149
5150 else
5151
5152 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
5159 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5160
5161 fi
5162
5163
5164 eval "$ac_cv_use_caret"
5165 if test "$no_cache" != 1; then
5166 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5167 fi
5168
5169 if test "$wxUSE_CARET" = yes; then
5170 echo "$ac_t""yes" 1>&6
5171 else
5172 echo "$ac_t""no" 1>&6
5173 fi
5174
5175
5176 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5177 echo "configure:5178: checking for --enable-checkbox" >&5
5178 no_cache=0
5179 # Check whether --enable-checkbox or --disable-checkbox was given.
5180 if test "${enable_checkbox+set}" = set; then
5181 enableval="$enable_checkbox"
5182
5183 if test "$enableval" = yes; then
5184 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5185 else
5186 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5187 fi
5188
5189 else
5190
5191 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5192 if test "x$LINE" != x ; then
5193 eval "DEFAULT_$LINE"
5194 else
5195 no_cache=1
5196 fi
5197
5198 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5199
5200 fi
5201
5202
5203 eval "$ac_cv_use_checkbox"
5204 if test "$no_cache" != 1; then
5205 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5206 fi
5207
5208 if test "$wxUSE_CHECKBOX" = yes; then
5209 echo "$ac_t""yes" 1>&6
5210 else
5211 echo "$ac_t""no" 1>&6
5212 fi
5213
5214
5215 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5216 echo "configure:5217: checking for --enable-checklst" >&5
5217 no_cache=0
5218 # Check whether --enable-checklst or --disable-checklst was given.
5219 if test "${enable_checklst+set}" = set; then
5220 enableval="$enable_checklst"
5221
5222 if test "$enableval" = yes; then
5223 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5224 else
5225 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5226 fi
5227
5228 else
5229
5230 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5238
5239 fi
5240
5241
5242 eval "$ac_cv_use_checklst"
5243 if test "$no_cache" != 1; then
5244 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5245 fi
5246
5247 if test "$wxUSE_CHECKLST" = yes; then
5248 echo "$ac_t""yes" 1>&6
5249 else
5250 echo "$ac_t""no" 1>&6
5251 fi
5252
5253
5254 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5255 echo "configure:5256: checking for --enable-choice" >&5
5256 no_cache=0
5257 # Check whether --enable-choice or --disable-choice was given.
5258 if test "${enable_choice+set}" = set; then
5259 enableval="$enable_choice"
5260
5261 if test "$enableval" = yes; then
5262 ac_cv_use_choice='wxUSE_CHOICE=yes'
5263 else
5264 ac_cv_use_choice='wxUSE_CHOICE=no'
5265 fi
5266
5267 else
5268
5269 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5270 if test "x$LINE" != x ; then
5271 eval "DEFAULT_$LINE"
5272 else
5273 no_cache=1
5274 fi
5275
5276 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5277
5278 fi
5279
5280
5281 eval "$ac_cv_use_choice"
5282 if test "$no_cache" != 1; then
5283 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5284 fi
5285
5286 if test "$wxUSE_CHOICE" = yes; then
5287 echo "$ac_t""yes" 1>&6
5288 else
5289 echo "$ac_t""no" 1>&6
5290 fi
5291
5292
5293 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5294 echo "configure:5295: checking for --enable-combobox" >&5
5295 no_cache=0
5296 # Check whether --enable-combobox or --disable-combobox was given.
5297 if test "${enable_combobox+set}" = set; then
5298 enableval="$enable_combobox"
5299
5300 if test "$enableval" = yes; then
5301 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5302 else
5303 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5304 fi
5305
5306 else
5307
5308 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5309 if test "x$LINE" != x ; then
5310 eval "DEFAULT_$LINE"
5311 else
5312 no_cache=1
5313 fi
5314
5315 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5316
5317 fi
5318
5319
5320 eval "$ac_cv_use_combobox"
5321 if test "$no_cache" != 1; then
5322 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5323 fi
5324
5325 if test "$wxUSE_COMBOBOX" = yes; then
5326 echo "$ac_t""yes" 1>&6
5327 else
5328 echo "$ac_t""no" 1>&6
5329 fi
5330
5331
5332 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5333 echo "configure:5334: checking for --enable-gauge" >&5
5334 no_cache=0
5335 # Check whether --enable-gauge or --disable-gauge was given.
5336 if test "${enable_gauge+set}" = set; then
5337 enableval="$enable_gauge"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5341 else
5342 ac_cv_use_gauge='wxUSE_GAUGE=no'
5343 fi
5344
5345 else
5346
5347 LINE=`grep "wxUSE_GAUGE" ${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_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5355
5356 fi
5357
5358
5359 eval "$ac_cv_use_gauge"
5360 if test "$no_cache" != 1; then
5361 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5362 fi
5363
5364 if test "$wxUSE_GAUGE" = yes; then
5365 echo "$ac_t""yes" 1>&6
5366 else
5367 echo "$ac_t""no" 1>&6
5368 fi
5369
5370
5371 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5372 echo "configure:5373: checking for --enable-grid" >&5
5373 no_cache=0
5374 # Check whether --enable-grid or --disable-grid was given.
5375 if test "${enable_grid+set}" = set; then
5376 enableval="$enable_grid"
5377
5378 if test "$enableval" = yes; then
5379 ac_cv_use_grid='wxUSE_GRID=yes'
5380 else
5381 ac_cv_use_grid='wxUSE_GRID=no'
5382 fi
5383
5384 else
5385
5386 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5387 if test "x$LINE" != x ; then
5388 eval "DEFAULT_$LINE"
5389 else
5390 no_cache=1
5391 fi
5392
5393 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5394
5395 fi
5396
5397
5398 eval "$ac_cv_use_grid"
5399 if test "$no_cache" != 1; then
5400 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5401 fi
5402
5403 if test "$wxUSE_GRID" = yes; then
5404 echo "$ac_t""yes" 1>&6
5405 else
5406 echo "$ac_t""no" 1>&6
5407 fi
5408
5409
5410 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5411 echo "configure:5412: checking for --enable-newgrid" >&5
5412 no_cache=0
5413 # Check whether --enable-newgrid or --disable-newgrid was given.
5414 if test "${enable_newgrid+set}" = set; then
5415 enableval="$enable_newgrid"
5416
5417 if test "$enableval" = yes; then
5418 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5419 else
5420 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5421 fi
5422
5423 else
5424
5425 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5426 if test "x$LINE" != x ; then
5427 eval "DEFAULT_$LINE"
5428 else
5429 no_cache=1
5430 fi
5431
5432 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5433
5434 fi
5435
5436
5437 eval "$ac_cv_use_newgrid"
5438 if test "$no_cache" != 1; then
5439 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5440 fi
5441
5442 if test "$wxUSE_NEW_GRID" = yes; then
5443 echo "$ac_t""yes" 1>&6
5444 else
5445 echo "$ac_t""no" 1>&6
5446 fi
5447
5448
5449 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5450 echo "configure:5451: checking for --enable-imaglist" >&5
5451 no_cache=0
5452 # Check whether --enable-imaglist or --disable-imaglist was given.
5453 if test "${enable_imaglist+set}" = set; then
5454 enableval="$enable_imaglist"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5458 else
5459 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5460 fi
5461
5462 else
5463
5464 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5472
5473 fi
5474
5475
5476 eval "$ac_cv_use_imaglist"
5477 if test "$no_cache" != 1; then
5478 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5479 fi
5480
5481 if test "$wxUSE_IMAGLIST" = yes; then
5482 echo "$ac_t""yes" 1>&6
5483 else
5484 echo "$ac_t""no" 1>&6
5485 fi
5486
5487
5488 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5489 echo "configure:5490: checking for --enable-listbox" >&5
5490 no_cache=0
5491 # Check whether --enable-listbox or --disable-listbox was given.
5492 if test "${enable_listbox+set}" = set; then
5493 enableval="$enable_listbox"
5494
5495 if test "$enableval" = yes; then
5496 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5497 else
5498 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5499 fi
5500
5501 else
5502
5503 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5504 if test "x$LINE" != x ; then
5505 eval "DEFAULT_$LINE"
5506 else
5507 no_cache=1
5508 fi
5509
5510 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5511
5512 fi
5513
5514
5515 eval "$ac_cv_use_listbox"
5516 if test "$no_cache" != 1; then
5517 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5518 fi
5519
5520 if test "$wxUSE_LISTBOX" = yes; then
5521 echo "$ac_t""yes" 1>&6
5522 else
5523 echo "$ac_t""no" 1>&6
5524 fi
5525
5526
5527 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5528 echo "configure:5529: checking for --enable-listctrl" >&5
5529 no_cache=0
5530 # Check whether --enable-listctrl or --disable-listctrl was given.
5531 if test "${enable_listctrl+set}" = set; then
5532 enableval="$enable_listctrl"
5533
5534 if test "$enableval" = yes; then
5535 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5536 else
5537 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5538 fi
5539
5540 else
5541
5542 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5543 if test "x$LINE" != x ; then
5544 eval "DEFAULT_$LINE"
5545 else
5546 no_cache=1
5547 fi
5548
5549 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5550
5551 fi
5552
5553
5554 eval "$ac_cv_use_listctrl"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_LISTCTRL" = yes; then
5560 echo "$ac_t""yes" 1>&6
5561 else
5562 echo "$ac_t""no" 1>&6
5563 fi
5564
5565
5566 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5567 echo "configure:5568: checking for --enable-notebook" >&5
5568 no_cache=0
5569 # Check whether --enable-notebook or --disable-notebook was given.
5570 if test "${enable_notebook+set}" = set; then
5571 enableval="$enable_notebook"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5575 else
5576 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5577 fi
5578
5579 else
5580
5581 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5589
5590 fi
5591
5592
5593 eval "$ac_cv_use_notebook"
5594 if test "$no_cache" != 1; then
5595 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5596 fi
5597
5598 if test "$wxUSE_NOTEBOOK" = yes; then
5599 echo "$ac_t""yes" 1>&6
5600 else
5601 echo "$ac_t""no" 1>&6
5602 fi
5603
5604
5605 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5606 echo "configure:5607: checking for --enable-radiobox" >&5
5607 no_cache=0
5608 # Check whether --enable-radiobox or --disable-radiobox was given.
5609 if test "${enable_radiobox+set}" = set; then
5610 enableval="$enable_radiobox"
5611
5612 if test "$enableval" = yes; then
5613 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5614 else
5615 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5616 fi
5617
5618 else
5619
5620 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5628
5629 fi
5630
5631
5632 eval "$ac_cv_use_radiobox"
5633 if test "$no_cache" != 1; then
5634 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5635 fi
5636
5637 if test "$wxUSE_RADIOBOX" = yes; then
5638 echo "$ac_t""yes" 1>&6
5639 else
5640 echo "$ac_t""no" 1>&6
5641 fi
5642
5643
5644 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5645 echo "configure:5646: checking for --enable-radiobtn" >&5
5646 no_cache=0
5647 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5648 if test "${enable_radiobtn+set}" = set; then
5649 enableval="$enable_radiobtn"
5650
5651 if test "$enableval" = yes; then
5652 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5653 else
5654 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5655 fi
5656
5657 else
5658
5659 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
5666 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5667
5668 fi
5669
5670
5671 eval "$ac_cv_use_radiobtn"
5672 if test "$no_cache" != 1; then
5673 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5674 fi
5675
5676 if test "$wxUSE_RADIOBTN" = yes; then
5677 echo "$ac_t""yes" 1>&6
5678 else
5679 echo "$ac_t""no" 1>&6
5680 fi
5681
5682
5683 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5684 echo "configure:5685: checking for --enable-sash" >&5
5685 no_cache=0
5686 # Check whether --enable-sash or --disable-sash was given.
5687 if test "${enable_sash+set}" = set; then
5688 enableval="$enable_sash"
5689
5690 if test "$enableval" = yes; then
5691 ac_cv_use_sash='wxUSE_SASH=yes'
5692 else
5693 ac_cv_use_sash='wxUSE_SASH=no'
5694 fi
5695
5696 else
5697
5698 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5699 if test "x$LINE" != x ; then
5700 eval "DEFAULT_$LINE"
5701 else
5702 no_cache=1
5703 fi
5704
5705 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5706
5707 fi
5708
5709
5710 eval "$ac_cv_use_sash"
5711 if test "$no_cache" != 1; then
5712 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5713 fi
5714
5715 if test "$wxUSE_SASH" = yes; then
5716 echo "$ac_t""yes" 1>&6
5717 else
5718 echo "$ac_t""no" 1>&6
5719 fi
5720
5721
5722 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5723 echo "configure:5724: checking for --enable-scrollbar" >&5
5724 no_cache=0
5725 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5726 if test "${enable_scrollbar+set}" = set; then
5727 enableval="$enable_scrollbar"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5731 else
5732 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5733 fi
5734
5735 else
5736
5737 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5745
5746 fi
5747
5748
5749 eval "$ac_cv_use_scrollbar"
5750 if test "$no_cache" != 1; then
5751 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5752 fi
5753
5754 if test "$wxUSE_SCROLLBAR" = yes; then
5755 echo "$ac_t""yes" 1>&6
5756 else
5757 echo "$ac_t""no" 1>&6
5758 fi
5759
5760
5761 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5762 echo "configure:5763: checking for --enable-slider" >&5
5763 no_cache=0
5764 # Check whether --enable-slider or --disable-slider was given.
5765 if test "${enable_slider+set}" = set; then
5766 enableval="$enable_slider"
5767
5768 if test "$enableval" = yes; then
5769 ac_cv_use_slider='wxUSE_SLIDER=yes'
5770 else
5771 ac_cv_use_slider='wxUSE_SLIDER=no'
5772 fi
5773
5774 else
5775
5776 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5777 if test "x$LINE" != x ; then
5778 eval "DEFAULT_$LINE"
5779 else
5780 no_cache=1
5781 fi
5782
5783 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5784
5785 fi
5786
5787
5788 eval "$ac_cv_use_slider"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_SLIDER" = yes; then
5794 echo "$ac_t""yes" 1>&6
5795 else
5796 echo "$ac_t""no" 1>&6
5797 fi
5798
5799
5800 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5801 echo "configure:5802: checking for --enable-spinbtn" >&5
5802 no_cache=0
5803 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5804 if test "${enable_spinbtn+set}" = set; then
5805 enableval="$enable_spinbtn"
5806
5807 if test "$enableval" = yes; then
5808 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5809 else
5810 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5811 fi
5812
5813 else
5814
5815 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5816 if test "x$LINE" != x ; then
5817 eval "DEFAULT_$LINE"
5818 else
5819 no_cache=1
5820 fi
5821
5822 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5823
5824 fi
5825
5826
5827 eval "$ac_cv_use_spinbtn"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_SPINBTN" = yes; then
5833 echo "$ac_t""yes" 1>&6
5834 else
5835 echo "$ac_t""no" 1>&6
5836 fi
5837
5838
5839 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5840 echo "configure:5841: checking for --enable-spinctrl" >&5
5841 no_cache=0
5842 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5843 if test "${enable_spinctrl+set}" = set; then
5844 enableval="$enable_spinctrl"
5845
5846 if test "$enableval" = yes; then
5847 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5848 else
5849 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5850 fi
5851
5852 else
5853
5854 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5855 if test "x$LINE" != x ; then
5856 eval "DEFAULT_$LINE"
5857 else
5858 no_cache=1
5859 fi
5860
5861 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5862
5863 fi
5864
5865
5866 eval "$ac_cv_use_spinctrl"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_SPINCTRL" = yes; then
5872 echo "$ac_t""yes" 1>&6
5873 else
5874 echo "$ac_t""no" 1>&6
5875 fi
5876
5877
5878 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
5879 echo "configure:5880: checking for --enable-splitter" >&5
5880 no_cache=0
5881 # Check whether --enable-splitter or --disable-splitter was given.
5882 if test "${enable_splitter+set}" = set; then
5883 enableval="$enable_splitter"
5884
5885 if test "$enableval" = yes; then
5886 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5887 else
5888 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5889 fi
5890
5891 else
5892
5893 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5894 if test "x$LINE" != x ; then
5895 eval "DEFAULT_$LINE"
5896 else
5897 no_cache=1
5898 fi
5899
5900 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5901
5902 fi
5903
5904
5905 eval "$ac_cv_use_splitter"
5906 if test "$no_cache" != 1; then
5907 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5908 fi
5909
5910 if test "$wxUSE_SPLITTER" = yes; then
5911 echo "$ac_t""yes" 1>&6
5912 else
5913 echo "$ac_t""no" 1>&6
5914 fi
5915
5916
5917 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
5918 echo "configure:5919: checking for --enable-statbmp" >&5
5919 no_cache=0
5920 # Check whether --enable-statbmp or --disable-statbmp was given.
5921 if test "${enable_statbmp+set}" = set; then
5922 enableval="$enable_statbmp"
5923
5924 if test "$enableval" = yes; then
5925 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5926 else
5927 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5928 fi
5929
5930 else
5931
5932 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5933 if test "x$LINE" != x ; then
5934 eval "DEFAULT_$LINE"
5935 else
5936 no_cache=1
5937 fi
5938
5939 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5940
5941 fi
5942
5943
5944 eval "$ac_cv_use_statbmp"
5945 if test "$no_cache" != 1; then
5946 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5947 fi
5948
5949 if test "$wxUSE_STATBMP" = yes; then
5950 echo "$ac_t""yes" 1>&6
5951 else
5952 echo "$ac_t""no" 1>&6
5953 fi
5954
5955
5956 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
5957 echo "configure:5958: checking for --enable-statbox" >&5
5958 no_cache=0
5959 # Check whether --enable-statbox or --disable-statbox was given.
5960 if test "${enable_statbox+set}" = set; then
5961 enableval="$enable_statbox"
5962
5963 if test "$enableval" = yes; then
5964 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5965 else
5966 ac_cv_use_statbox='wxUSE_STATBOX=no'
5967 fi
5968
5969 else
5970
5971 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5972 if test "x$LINE" != x ; then
5973 eval "DEFAULT_$LINE"
5974 else
5975 no_cache=1
5976 fi
5977
5978 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5979
5980 fi
5981
5982
5983 eval "$ac_cv_use_statbox"
5984 if test "$no_cache" != 1; then
5985 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5986 fi
5987
5988 if test "$wxUSE_STATBOX" = yes; then
5989 echo "$ac_t""yes" 1>&6
5990 else
5991 echo "$ac_t""no" 1>&6
5992 fi
5993
5994
5995 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
5996 echo "configure:5997: checking for --enable-statline" >&5
5997 no_cache=0
5998 # Check whether --enable-statline or --disable-statline was given.
5999 if test "${enable_statline+set}" = set; then
6000 enableval="$enable_statline"
6001
6002 if test "$enableval" = yes; then
6003 ac_cv_use_statline='wxUSE_STATLINE=yes'
6004 else
6005 ac_cv_use_statline='wxUSE_STATLINE=no'
6006 fi
6007
6008 else
6009
6010 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6011 if test "x$LINE" != x ; then
6012 eval "DEFAULT_$LINE"
6013 else
6014 no_cache=1
6015 fi
6016
6017 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6018
6019 fi
6020
6021
6022 eval "$ac_cv_use_statline"
6023 if test "$no_cache" != 1; then
6024 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6025 fi
6026
6027 if test "$wxUSE_STATLINE" = yes; then
6028 echo "$ac_t""yes" 1>&6
6029 else
6030 echo "$ac_t""no" 1>&6
6031 fi
6032
6033
6034 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6035 echo "configure:6036: checking for --enable-stattext" >&5
6036 no_cache=0
6037 # Check whether --enable-stattext or --disable-stattext was given.
6038 if test "${enable_stattext+set}" = set; then
6039 enableval="$enable_stattext"
6040
6041 if test "$enableval" = yes; then
6042 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6043 else
6044 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6045 fi
6046
6047 else
6048
6049 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6057
6058 fi
6059
6060
6061 eval "$ac_cv_use_stattext"
6062 if test "$no_cache" != 1; then
6063 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6064 fi
6065
6066 if test "$wxUSE_STATTEXT" = yes; then
6067 echo "$ac_t""yes" 1>&6
6068 else
6069 echo "$ac_t""no" 1>&6
6070 fi
6071
6072
6073 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6074 echo "configure:6075: checking for --enable-statusbar" >&5
6075 no_cache=0
6076 # Check whether --enable-statusbar or --disable-statusbar was given.
6077 if test "${enable_statusbar+set}" = set; then
6078 enableval="$enable_statusbar"
6079
6080 if test "$enableval" = yes; then
6081 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6082 else
6083 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6084 fi
6085
6086 else
6087
6088 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6096
6097 fi
6098
6099
6100 eval "$ac_cv_use_statusbar"
6101 if test "$no_cache" != 1; then
6102 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6103 fi
6104
6105 if test "$wxUSE_STATUSBAR" = yes; then
6106 echo "$ac_t""yes" 1>&6
6107 else
6108 echo "$ac_t""no" 1>&6
6109 fi
6110
6111
6112 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6113 echo "configure:6114: checking for --enable-tabdialog" >&5
6114 no_cache=0
6115 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6116 if test "${enable_tabdialog+set}" = set; then
6117 enableval="$enable_tabdialog"
6118
6119 if test "$enableval" = yes; then
6120 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6121 else
6122 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6123 fi
6124
6125 else
6126
6127 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6128 if test "x$LINE" != x ; then
6129 eval "DEFAULT_$LINE"
6130 else
6131 no_cache=1
6132 fi
6133
6134 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6135
6136 fi
6137
6138
6139 eval "$ac_cv_use_tabdialog"
6140 if test "$no_cache" != 1; then
6141 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6142 fi
6143
6144 if test "$wxUSE_TABDIALOG" = yes; then
6145 echo "$ac_t""yes" 1>&6
6146 else
6147 echo "$ac_t""no" 1>&6
6148 fi
6149
6150
6151 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6152 echo "configure:6153: checking for --enable-textctrl" >&5
6153 no_cache=0
6154 # Check whether --enable-textctrl or --disable-textctrl was given.
6155 if test "${enable_textctrl+set}" = set; then
6156 enableval="$enable_textctrl"
6157
6158 if test "$enableval" = yes; then
6159 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6160 else
6161 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6162 fi
6163
6164 else
6165
6166 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6167 if test "x$LINE" != x ; then
6168 eval "DEFAULT_$LINE"
6169 else
6170 no_cache=1
6171 fi
6172
6173 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6174
6175 fi
6176
6177
6178 eval "$ac_cv_use_textctrl"
6179 if test "$no_cache" != 1; then
6180 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6181 fi
6182
6183 if test "$wxUSE_TEXTCTRL" = yes; then
6184 echo "$ac_t""yes" 1>&6
6185 else
6186 echo "$ac_t""no" 1>&6
6187 fi
6188
6189
6190 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6191 echo "configure:6192: checking for --enable-togglebtn" >&5
6192 no_cache=0
6193 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6194 if test "${enable_togglebtn+set}" = set; then
6195 enableval="$enable_togglebtn"
6196
6197 if test "$enableval" = yes; then
6198 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6199 else
6200 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6201 fi
6202
6203 else
6204
6205 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6206 if test "x$LINE" != x ; then
6207 eval "DEFAULT_$LINE"
6208 else
6209 no_cache=1
6210 fi
6211
6212 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6213
6214 fi
6215
6216
6217 eval "$ac_cv_use_togglebtn"
6218 if test "$no_cache" != 1; then
6219 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6220 fi
6221
6222 if test "$wxUSE_TOGGLEBTN" = yes; then
6223 echo "$ac_t""yes" 1>&6
6224 else
6225 echo "$ac_t""no" 1>&6
6226 fi
6227
6228
6229 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6230 echo "configure:6231: checking for --enable-toolbar" >&5
6231 no_cache=0
6232 # Check whether --enable-toolbar or --disable-toolbar was given.
6233 if test "${enable_toolbar+set}" = set; then
6234 enableval="$enable_toolbar"
6235
6236 if test "$enableval" = yes; then
6237 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6238 else
6239 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6240 fi
6241
6242 else
6243
6244 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6245 if test "x$LINE" != x ; then
6246 eval "DEFAULT_$LINE"
6247 else
6248 no_cache=1
6249 fi
6250
6251 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6252
6253 fi
6254
6255
6256 eval "$ac_cv_use_toolbar"
6257 if test "$no_cache" != 1; then
6258 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6259 fi
6260
6261 if test "$wxUSE_TOOLBAR" = yes; then
6262 echo "$ac_t""yes" 1>&6
6263 else
6264 echo "$ac_t""no" 1>&6
6265 fi
6266
6267
6268 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6269 echo "configure:6270: checking for --enable-tbarnative" >&5
6270 no_cache=0
6271 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6272 if test "${enable_tbarnative+set}" = set; then
6273 enableval="$enable_tbarnative"
6274
6275 if test "$enableval" = yes; then
6276 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6277 else
6278 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6279 fi
6280
6281 else
6282
6283 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6284 if test "x$LINE" != x ; then
6285 eval "DEFAULT_$LINE"
6286 else
6287 no_cache=1
6288 fi
6289
6290 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6291
6292 fi
6293
6294
6295 eval "$ac_cv_use_tbarnative"
6296 if test "$no_cache" != 1; then
6297 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6298 fi
6299
6300 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6301 echo "$ac_t""yes" 1>&6
6302 else
6303 echo "$ac_t""no" 1>&6
6304 fi
6305
6306
6307 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6308 echo "configure:6309: checking for --enable-tbarsmpl" >&5
6309 no_cache=0
6310 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6311 if test "${enable_tbarsmpl+set}" = set; then
6312 enableval="$enable_tbarsmpl"
6313
6314 if test "$enableval" = yes; then
6315 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6316 else
6317 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6318 fi
6319
6320 else
6321
6322 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6323 if test "x$LINE" != x ; then
6324 eval "DEFAULT_$LINE"
6325 else
6326 no_cache=1
6327 fi
6328
6329 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6330
6331 fi
6332
6333
6334 eval "$ac_cv_use_tbarsmpl"
6335 if test "$no_cache" != 1; then
6336 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6337 fi
6338
6339 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6340 echo "$ac_t""yes" 1>&6
6341 else
6342 echo "$ac_t""no" 1>&6
6343 fi
6344
6345
6346 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6347 echo "configure:6348: checking for --enable-treectrl" >&5
6348 no_cache=0
6349 # Check whether --enable-treectrl or --disable-treectrl was given.
6350 if test "${enable_treectrl+set}" = set; then
6351 enableval="$enable_treectrl"
6352
6353 if test "$enableval" = yes; then
6354 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6355 else
6356 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6357 fi
6358
6359 else
6360
6361 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6369
6370 fi
6371
6372
6373 eval "$ac_cv_use_treectrl"
6374 if test "$no_cache" != 1; then
6375 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6376 fi
6377
6378 if test "$wxUSE_TREECTRL" = yes; then
6379 echo "$ac_t""yes" 1>&6
6380 else
6381 echo "$ac_t""no" 1>&6
6382 fi
6383
6384
6385
6386
6387 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6388 echo "configure:6389: checking for --enable-commondlg" >&5
6389 no_cache=0
6390 # Check whether --enable-commondlg or --disable-commondlg was given.
6391 if test "${enable_commondlg+set}" = set; then
6392 enableval="$enable_commondlg"
6393
6394 if test "$enableval" = yes; then
6395 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6396 else
6397 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6398 fi
6399
6400 else
6401
6402 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6403 if test "x$LINE" != x ; then
6404 eval "DEFAULT_$LINE"
6405 else
6406 no_cache=1
6407 fi
6408
6409 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6410
6411 fi
6412
6413
6414 eval "$ac_cv_use_commondlg"
6415 if test "$no_cache" != 1; then
6416 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6417 fi
6418
6419 if test "$wxUSE_COMMONDLGS" = yes; then
6420 echo "$ac_t""yes" 1>&6
6421 else
6422 echo "$ac_t""no" 1>&6
6423 fi
6424
6425
6426 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6427 echo "configure:6428: checking for --enable-choicedlg" >&5
6428 no_cache=0
6429 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6430 if test "${enable_choicedlg+set}" = set; then
6431 enableval="$enable_choicedlg"
6432
6433 if test "$enableval" = yes; then
6434 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6435 else
6436 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6437 fi
6438
6439 else
6440
6441 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6449
6450 fi
6451
6452
6453 eval "$ac_cv_use_choicedlg"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_CHOICEDLG" = yes; then
6459 echo "$ac_t""yes" 1>&6
6460 else
6461 echo "$ac_t""no" 1>&6
6462 fi
6463
6464
6465 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6466 echo "configure:6467: checking for --enable-coldlg" >&5
6467 no_cache=0
6468 # Check whether --enable-coldlg or --disable-coldlg was given.
6469 if test "${enable_coldlg+set}" = set; then
6470 enableval="$enable_coldlg"
6471
6472 if test "$enableval" = yes; then
6473 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6474 else
6475 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6476 fi
6477
6478 else
6479
6480 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6488
6489 fi
6490
6491
6492 eval "$ac_cv_use_coldlg"
6493 if test "$no_cache" != 1; then
6494 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6495 fi
6496
6497 if test "$wxUSE_COLOURDLG" = yes; then
6498 echo "$ac_t""yes" 1>&6
6499 else
6500 echo "$ac_t""no" 1>&6
6501 fi
6502
6503
6504 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6505 echo "configure:6506: checking for --enable-filedlg" >&5
6506 no_cache=0
6507 # Check whether --enable-filedlg or --disable-filedlg was given.
6508 if test "${enable_filedlg+set}" = set; then
6509 enableval="$enable_filedlg"
6510
6511 if test "$enableval" = yes; then
6512 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6513 else
6514 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6515 fi
6516
6517 else
6518
6519 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6520 if test "x$LINE" != x ; then
6521 eval "DEFAULT_$LINE"
6522 else
6523 no_cache=1
6524 fi
6525
6526 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6527
6528 fi
6529
6530
6531 eval "$ac_cv_use_filedlg"
6532 if test "$no_cache" != 1; then
6533 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6534 fi
6535
6536 if test "$wxUSE_FILEDLG" = yes; then
6537 echo "$ac_t""yes" 1>&6
6538 else
6539 echo "$ac_t""no" 1>&6
6540 fi
6541
6542
6543 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6544 echo "configure:6545: checking for --enable-fontdlg" >&5
6545 no_cache=0
6546 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6547 if test "${enable_fontdlg+set}" = set; then
6548 enableval="$enable_fontdlg"
6549
6550 if test "$enableval" = yes; then
6551 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6552 else
6553 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6554 fi
6555
6556 else
6557
6558 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6559 if test "x$LINE" != x ; then
6560 eval "DEFAULT_$LINE"
6561 else
6562 no_cache=1
6563 fi
6564
6565 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6566
6567 fi
6568
6569
6570 eval "$ac_cv_use_fontdlg"
6571 if test "$no_cache" != 1; then
6572 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6573 fi
6574
6575 if test "$wxUSE_FONTDLG" = yes; then
6576 echo "$ac_t""yes" 1>&6
6577 else
6578 echo "$ac_t""no" 1>&6
6579 fi
6580
6581
6582 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6583 echo "configure:6584: checking for --enable-dirdlg" >&5
6584 no_cache=0
6585 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6586 if test "${enable_dirdlg+set}" = set; then
6587 enableval="$enable_dirdlg"
6588
6589 if test "$enableval" = yes; then
6590 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6591 else
6592 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6593 fi
6594
6595 else
6596
6597 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6598 if test "x$LINE" != x ; then
6599 eval "DEFAULT_$LINE"
6600 else
6601 no_cache=1
6602 fi
6603
6604 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6605
6606 fi
6607
6608
6609 eval "$ac_cv_use_dirdlg"
6610 if test "$no_cache" != 1; then
6611 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6612 fi
6613
6614 if test "$wxUSE_DIRDLG" = yes; then
6615 echo "$ac_t""yes" 1>&6
6616 else
6617 echo "$ac_t""no" 1>&6
6618 fi
6619
6620
6621 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6622 echo "configure:6623: checking for --enable-msgdlg" >&5
6623 no_cache=0
6624 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6625 if test "${enable_msgdlg+set}" = set; then
6626 enableval="$enable_msgdlg"
6627
6628 if test "$enableval" = yes; then
6629 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6630 else
6631 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6632 fi
6633
6634 else
6635
6636 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6637 if test "x$LINE" != x ; then
6638 eval "DEFAULT_$LINE"
6639 else
6640 no_cache=1
6641 fi
6642
6643 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6644
6645 fi
6646
6647
6648 eval "$ac_cv_use_msgdlg"
6649 if test "$no_cache" != 1; then
6650 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6651 fi
6652
6653 if test "$wxUSE_MSGDLG" = yes; then
6654 echo "$ac_t""yes" 1>&6
6655 else
6656 echo "$ac_t""no" 1>&6
6657 fi
6658
6659
6660 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6661 echo "configure:6662: checking for --enable-numberdlg" >&5
6662 no_cache=0
6663 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6664 if test "${enable_numberdlg+set}" = set; then
6665 enableval="$enable_numberdlg"
6666
6667 if test "$enableval" = yes; then
6668 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6669 else
6670 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6671 fi
6672
6673 else
6674
6675 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6676 if test "x$LINE" != x ; then
6677 eval "DEFAULT_$LINE"
6678 else
6679 no_cache=1
6680 fi
6681
6682 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6683
6684 fi
6685
6686
6687 eval "$ac_cv_use_numberdlg"
6688 if test "$no_cache" != 1; then
6689 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6690 fi
6691
6692 if test "$wxUSE_NUMBERDLG" = yes; then
6693 echo "$ac_t""yes" 1>&6
6694 else
6695 echo "$ac_t""no" 1>&6
6696 fi
6697
6698
6699 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6700 echo "configure:6701: checking for --enable-textdlg" >&5
6701 no_cache=0
6702 # Check whether --enable-textdlg or --disable-textdlg was given.
6703 if test "${enable_textdlg+set}" = set; then
6704 enableval="$enable_textdlg"
6705
6706 if test "$enableval" = yes; then
6707 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6708 else
6709 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6710 fi
6711
6712 else
6713
6714 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6715 if test "x$LINE" != x ; then
6716 eval "DEFAULT_$LINE"
6717 else
6718 no_cache=1
6719 fi
6720
6721 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6722
6723 fi
6724
6725
6726 eval "$ac_cv_use_textdlg"
6727 if test "$no_cache" != 1; then
6728 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6729 fi
6730
6731 if test "$wxUSE_TEXTDLG" = yes; then
6732 echo "$ac_t""yes" 1>&6
6733 else
6734 echo "$ac_t""no" 1>&6
6735 fi
6736
6737
6738 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6739 echo "configure:6740: checking for --enable-tipdlg" >&5
6740 no_cache=0
6741 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6742 if test "${enable_tipdlg+set}" = set; then
6743 enableval="$enable_tipdlg"
6744
6745 if test "$enableval" = yes; then
6746 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6747 else
6748 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6749 fi
6750
6751 else
6752
6753 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6754 if test "x$LINE" != x ; then
6755 eval "DEFAULT_$LINE"
6756 else
6757 no_cache=1
6758 fi
6759
6760 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6761
6762 fi
6763
6764
6765 eval "$ac_cv_use_tipdlg"
6766 if test "$no_cache" != 1; then
6767 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6768 fi
6769
6770 if test "$wxUSE_STARTUP_TIPS" = yes; then
6771 echo "$ac_t""yes" 1>&6
6772 else
6773 echo "$ac_t""no" 1>&6
6774 fi
6775
6776
6777 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
6778 echo "configure:6779: checking for --enable-progressdlg" >&5
6779 no_cache=0
6780 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6781 if test "${enable_progressdlg+set}" = set; then
6782 enableval="$enable_progressdlg"
6783
6784 if test "$enableval" = yes; then
6785 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6786 else
6787 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6788 fi
6789
6790 else
6791
6792 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
6800
6801 fi
6802
6803
6804 eval "$ac_cv_use_progressdlg"
6805 if test "$no_cache" != 1; then
6806 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6807 fi
6808
6809 if test "$wxUSE_PROGRESSDLG" = yes; then
6810 echo "$ac_t""yes" 1>&6
6811 else
6812 echo "$ac_t""no" 1>&6
6813 fi
6814
6815
6816 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
6817 echo "configure:6818: checking for --enable-wizarddlg" >&5
6818 no_cache=0
6819 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
6820 if test "${enable_wizarddlg+set}" = set; then
6821 enableval="$enable_wizarddlg"
6822
6823 if test "$enableval" = yes; then
6824 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
6825 else
6826 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
6827 fi
6828
6829 else
6830
6831 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
6839
6840 fi
6841
6842
6843 eval "$ac_cv_use_wizarddlg"
6844 if test "$no_cache" != 1; then
6845 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
6846 fi
6847
6848 if test "$wxUSE_WIZARDDLG" = yes; then
6849 echo "$ac_t""yes" 1>&6
6850 else
6851 echo "$ac_t""no" 1>&6
6852 fi
6853
6854
6855
6856
6857 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
6858 echo "configure:6859: checking for --enable-menus" >&5
6859 no_cache=0
6860 # Check whether --enable-menus or --disable-menus was given.
6861 if test "${enable_menus+set}" = set; then
6862 enableval="$enable_menus"
6863
6864 if test "$enableval" = yes; then
6865 ac_cv_use_menus='wxUSE_MENUS=yes'
6866 else
6867 ac_cv_use_menus='wxUSE_MENUS=no'
6868 fi
6869
6870 else
6871
6872 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6880
6881 fi
6882
6883
6884 eval "$ac_cv_use_menus"
6885 if test "$no_cache" != 1; then
6886 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6887 fi
6888
6889 if test "$wxUSE_MENUS" = yes; then
6890 echo "$ac_t""yes" 1>&6
6891 else
6892 echo "$ac_t""no" 1>&6
6893 fi
6894
6895
6896 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
6897 echo "configure:6898: checking for --enable-miniframe" >&5
6898 no_cache=0
6899 # Check whether --enable-miniframe or --disable-miniframe was given.
6900 if test "${enable_miniframe+set}" = set; then
6901 enableval="$enable_miniframe"
6902
6903 if test "$enableval" = yes; then
6904 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6905 else
6906 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6907 fi
6908
6909 else
6910
6911 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6912 if test "x$LINE" != x ; then
6913 eval "DEFAULT_$LINE"
6914 else
6915 no_cache=1
6916 fi
6917
6918 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
6919
6920 fi
6921
6922
6923 eval "$ac_cv_use_miniframe"
6924 if test "$no_cache" != 1; then
6925 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6926 fi
6927
6928 if test "$wxUSE_MINIFRAME" = yes; then
6929 echo "$ac_t""yes" 1>&6
6930 else
6931 echo "$ac_t""no" 1>&6
6932 fi
6933
6934
6935 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
6936 echo "configure:6937: checking for --enable-tooltips" >&5
6937 no_cache=0
6938 # Check whether --enable-tooltips or --disable-tooltips was given.
6939 if test "${enable_tooltips+set}" = set; then
6940 enableval="$enable_tooltips"
6941
6942 if test "$enableval" = yes; then
6943 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6944 else
6945 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6946 fi
6947
6948 else
6949
6950 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6951 if test "x$LINE" != x ; then
6952 eval "DEFAULT_$LINE"
6953 else
6954 no_cache=1
6955 fi
6956
6957 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6958
6959 fi
6960
6961
6962 eval "$ac_cv_use_tooltips"
6963 if test "$no_cache" != 1; then
6964 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6965 fi
6966
6967 if test "$wxUSE_TOOLTIPS" = yes; then
6968 echo "$ac_t""yes" 1>&6
6969 else
6970 echo "$ac_t""no" 1>&6
6971 fi
6972
6973
6974 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
6975 echo "configure:6976: checking for --enable-splines" >&5
6976 no_cache=0
6977 # Check whether --enable-splines or --disable-splines was given.
6978 if test "${enable_splines+set}" = set; then
6979 enableval="$enable_splines"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_splines='wxUSE_SPLINES=yes'
6983 else
6984 ac_cv_use_splines='wxUSE_SPLINES=no'
6985 fi
6986
6987 else
6988
6989 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
6997
6998 fi
6999
7000
7001 eval "$ac_cv_use_splines"
7002 if test "$no_cache" != 1; then
7003 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7004 fi
7005
7006 if test "$wxUSE_SPLINES" = yes; then
7007 echo "$ac_t""yes" 1>&6
7008 else
7009 echo "$ac_t""no" 1>&6
7010 fi
7011
7012
7013 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7014 echo "configure:7015: checking for --enable-validators" >&5
7015 no_cache=0
7016 # Check whether --enable-validators or --disable-validators was given.
7017 if test "${enable_validators+set}" = set; then
7018 enableval="$enable_validators"
7019
7020 if test "$enableval" = yes; then
7021 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7022 else
7023 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7024 fi
7025
7026 else
7027
7028 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7036
7037 fi
7038
7039
7040 eval "$ac_cv_use_validators"
7041 if test "$no_cache" != 1; then
7042 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7043 fi
7044
7045 if test "$wxUSE_VALIDATORS" = yes; then
7046 echo "$ac_t""yes" 1>&6
7047 else
7048 echo "$ac_t""no" 1>&6
7049 fi
7050
7051
7052 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7053 echo "configure:7054: checking for --enable-busyinfo" >&5
7054 no_cache=0
7055 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7056 if test "${enable_busyinfo+set}" = set; then
7057 enableval="$enable_busyinfo"
7058
7059 if test "$enableval" = yes; then
7060 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7061 else
7062 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7063 fi
7064
7065 else
7066
7067 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7068 if test "x$LINE" != x ; then
7069 eval "DEFAULT_$LINE"
7070 else
7071 no_cache=1
7072 fi
7073
7074 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7075
7076 fi
7077
7078
7079 eval "$ac_cv_use_busyinfo"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_BUSYINFO" = yes; then
7085 echo "$ac_t""yes" 1>&6
7086 else
7087 echo "$ac_t""no" 1>&6
7088 fi
7089
7090
7091 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7092 echo "configure:7093: checking for --enable-joystick" >&5
7093 no_cache=0
7094 # Check whether --enable-joystick or --disable-joystick was given.
7095 if test "${enable_joystick+set}" = set; then
7096 enableval="$enable_joystick"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7100 else
7101 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7102 fi
7103
7104 else
7105
7106 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7114
7115 fi
7116
7117
7118 eval "$ac_cv_use_joystick"
7119 if test "$no_cache" != 1; then
7120 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7121 fi
7122
7123 if test "$wxUSE_JOYSTICK" = yes; then
7124 echo "$ac_t""yes" 1>&6
7125 else
7126 echo "$ac_t""no" 1>&6
7127 fi
7128
7129
7130 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7131 echo "configure:7132: checking for --enable-metafile" >&5
7132 no_cache=0
7133 # Check whether --enable-metafile or --disable-metafile was given.
7134 if test "${enable_metafile+set}" = set; then
7135 enableval="$enable_metafile"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7139 else
7140 ac_cv_use_metafile='wxUSE_METAFILE=no'
7141 fi
7142
7143 else
7144
7145 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7153
7154 fi
7155
7156
7157 eval "$ac_cv_use_metafile"
7158 if test "$no_cache" != 1; then
7159 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7160 fi
7161
7162 if test "$wxUSE_METAFILE" = yes; then
7163 echo "$ac_t""yes" 1>&6
7164 else
7165 echo "$ac_t""no" 1>&6
7166 fi
7167
7168
7169 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7170 echo "configure:7171: checking for --enable-dragimage" >&5
7171 no_cache=0
7172 # Check whether --enable-dragimage or --disable-dragimage was given.
7173 if test "${enable_dragimage+set}" = set; then
7174 enableval="$enable_dragimage"
7175
7176 if test "$enableval" = yes; then
7177 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7178 else
7179 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7180 fi
7181
7182 else
7183
7184 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7192
7193 fi
7194
7195
7196 eval "$ac_cv_use_dragimage"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_DRAGIMAGE" = yes; then
7202 echo "$ac_t""yes" 1>&6
7203 else
7204 echo "$ac_t""no" 1>&6
7205 fi
7206
7207
7208
7209
7210 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7211 echo "configure:7212: checking for --enable-image" >&5
7212 no_cache=0
7213 # Check whether --enable-image or --disable-image was given.
7214 if test "${enable_image+set}" = set; then
7215 enableval="$enable_image"
7216
7217 if test "$enableval" = yes; then
7218 ac_cv_use_image='wxUSE_IMAGE=yes'
7219 else
7220 ac_cv_use_image='wxUSE_IMAGE=no'
7221 fi
7222
7223 else
7224
7225 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7226 if test "x$LINE" != x ; then
7227 eval "DEFAULT_$LINE"
7228 else
7229 no_cache=1
7230 fi
7231
7232 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7233
7234 fi
7235
7236
7237 eval "$ac_cv_use_image"
7238 if test "$no_cache" != 1; then
7239 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7240 fi
7241
7242 if test "$wxUSE_IMAGE" = yes; then
7243 echo "$ac_t""yes" 1>&6
7244 else
7245 echo "$ac_t""no" 1>&6
7246 fi
7247
7248
7249 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7250 echo "configure:7251: checking for --enable-gif" >&5
7251 no_cache=0
7252 # Check whether --enable-gif or --disable-gif was given.
7253 if test "${enable_gif+set}" = set; then
7254 enableval="$enable_gif"
7255
7256 if test "$enableval" = yes; then
7257 ac_cv_use_gif='wxUSE_GIF=yes'
7258 else
7259 ac_cv_use_gif='wxUSE_GIF=no'
7260 fi
7261
7262 else
7263
7264 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7272
7273 fi
7274
7275
7276 eval "$ac_cv_use_gif"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_GIF" = yes; then
7282 echo "$ac_t""yes" 1>&6
7283 else
7284 echo "$ac_t""no" 1>&6
7285 fi
7286
7287
7288 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7289 echo "configure:7290: checking for --enable-pcx" >&5
7290 no_cache=0
7291 # Check whether --enable-pcx or --disable-pcx was given.
7292 if test "${enable_pcx+set}" = set; then
7293 enableval="$enable_pcx"
7294
7295 if test "$enableval" = yes; then
7296 ac_cv_use_pcx='wxUSE_PCX=yes'
7297 else
7298 ac_cv_use_pcx='wxUSE_PCX=no'
7299 fi
7300
7301 else
7302
7303 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7304 if test "x$LINE" != x ; then
7305 eval "DEFAULT_$LINE"
7306 else
7307 no_cache=1
7308 fi
7309
7310 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7311
7312 fi
7313
7314
7315 eval "$ac_cv_use_pcx"
7316 if test "$no_cache" != 1; then
7317 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7318 fi
7319
7320 if test "$wxUSE_PCX" = yes; then
7321 echo "$ac_t""yes" 1>&6
7322 else
7323 echo "$ac_t""no" 1>&6
7324 fi
7325
7326
7327 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7328 echo "configure:7329: checking for --enable-pnm" >&5
7329 no_cache=0
7330 # Check whether --enable-pnm or --disable-pnm was given.
7331 if test "${enable_pnm+set}" = set; then
7332 enableval="$enable_pnm"
7333
7334 if test "$enableval" = yes; then
7335 ac_cv_use_pnm='wxUSE_PNM=yes'
7336 else
7337 ac_cv_use_pnm='wxUSE_PNM=no'
7338 fi
7339
7340 else
7341
7342 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7343 if test "x$LINE" != x ; then
7344 eval "DEFAULT_$LINE"
7345 else
7346 no_cache=1
7347 fi
7348
7349 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7350
7351 fi
7352
7353
7354 eval "$ac_cv_use_pnm"
7355 if test "$no_cache" != 1; then
7356 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7357 fi
7358
7359 if test "$wxUSE_PNM" = yes; then
7360 echo "$ac_t""yes" 1>&6
7361 else
7362 echo "$ac_t""no" 1>&6
7363 fi
7364
7365
7366 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7367 echo "configure:7368: checking for --enable-pnm" >&5
7368 no_cache=0
7369 # Check whether --enable-pnm or --disable-pnm was given.
7370 if test "${enable_pnm+set}" = set; then
7371 enableval="$enable_pnm"
7372
7373 if test "$enableval" = yes; then
7374 ac_cv_use_pnm='wxUSE_XPM=yes'
7375 else
7376 ac_cv_use_pnm='wxUSE_XPM=no'
7377 fi
7378
7379 else
7380
7381 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7382 if test "x$LINE" != x ; then
7383 eval "DEFAULT_$LINE"
7384 else
7385 no_cache=1
7386 fi
7387
7388 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7389
7390 fi
7391
7392
7393 eval "$ac_cv_use_pnm"
7394 if test "$no_cache" != 1; then
7395 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7396 fi
7397
7398 if test "$wxUSE_XPM" = yes; then
7399 echo "$ac_t""yes" 1>&6
7400 else
7401 echo "$ac_t""no" 1>&6
7402 fi
7403
7404
7405 fi
7406
7407
7408 echo "saving argument cache $wx_arg_cache_file"
7409 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7410
7411
7412
7413 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7414 echo "configure:7415: checking for toolkit" >&5
7415
7416 if test "$wxUSE_GUI" = "yes"; then
7417
7418 if test "$USE_BEOS" = 1; then
7419 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7420 fi
7421
7422 if test "$TOOLKIT_GIVEN" = 1; then
7423 for toolkit in `echo $ALL_TOOLKITS`; do
7424 var=wxUSE_$toolkit
7425 eval "value=\$${var}"
7426 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7427 done
7428 else
7429 for toolkit in `echo $ALL_TOOLKITS`; do
7430 if test "$has_toolkit_in_cache" != 1; then
7431 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7432 else
7433 var=DEFAULT_wxUSE_$toolkit
7434 fi
7435 eval "wxUSE_$toolkit=\$${var}"
7436 done
7437 fi
7438
7439 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7440
7441 case "${host}" in
7442 *-pc-os2_emx )
7443 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7444 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7445 LEX_STEM="lexyy"
7446 ;;
7447 *)
7448 PATH_IFS=':'
7449 LEX_STEM="lex.yy"
7450 ;;
7451 esac
7452
7453 case "$NUM_TOOLKITS" in
7454 1)
7455 ;;
7456 0)
7457 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7458 ;;
7459 *)
7460 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7461 esac
7462
7463 for toolkit in `echo $ALL_TOOLKITS`; do
7464 var=wxUSE_$toolkit
7465 eval "value=\$${var}"
7466 if test "x$value" != x; then
7467 cache_var=CACHE_$toolkit
7468 eval "cache=\$${cache_var}"
7469 if test "$cache" = 1; then
7470 echo "$var=$value" >> ${wx_arg_cache_file}
7471 fi
7472 if test "$value" = 1; then
7473 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7474 echo "$ac_t""$toolkit_echo" 1>&6
7475 fi
7476 fi
7477 done
7478
7479 else
7480 PATH_IFS=':'
7481 echo "$ac_t""base only" 1>&6
7482 fi
7483
7484
7485 cat > confcache <<\EOF
7486 # This file is a shell script that caches the results of configure
7487 # tests run on this system so they can be shared between configure
7488 # scripts and configure runs. It is not useful on other systems.
7489 # If it contains results you don't want to keep, you may remove or edit it.
7490 #
7491 # By default, configure uses ./config.cache as the cache file,
7492 # creating it if it does not exist already. You can give configure
7493 # the --cache-file=FILE option to use a different cache file; that is
7494 # what configure does when it calls configure scripts in
7495 # subdirectories, so they share the cache.
7496 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7497 # config.status only pays attention to the cache file if you give it the
7498 # --recheck option to rerun configure.
7499 #
7500 EOF
7501 # The following way of writing the cache mishandles newlines in values,
7502 # but we know of no workaround that is simple, portable, and efficient.
7503 # So, don't put newlines in cache variables' values.
7504 # Ultrix sh set writes to stderr and can't be redirected directly,
7505 # and sets the high bit in the cache file unless we assign to the vars.
7506 (set) 2>&1 |
7507 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7508 *ac_space=\ *)
7509 # `set' does not quote correctly, so add quotes (double-quote substitution
7510 # turns \\\\ into \\, and sed turns \\ into \).
7511 sed -n \
7512 -e "s/'/'\\\\''/g" \
7513 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7514 ;;
7515 *)
7516 # `set' quotes correctly as required by POSIX, so do not add quotes.
7517 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7518 ;;
7519 esac >> confcache
7520 if cmp -s $cache_file confcache; then
7521 :
7522 else
7523 if test -w $cache_file; then
7524 echo "updating cache $cache_file"
7525 cat confcache > $cache_file
7526 else
7527 echo "not updating unwritable cache $cache_file"
7528 fi
7529 fi
7530 rm -f confcache
7531
7532
7533 if test "$build" != "$host" ; then
7534 CC=$host_alias-gcc
7535 CXX=$host_alias-c++
7536 AR=$host_alias-ar
7537 RANLIB=$host_alias-ranlib
7538 DLLTOOL=$host_alias-dlltool
7539 RESCOMP=$host_alias-windres
7540 LD=$host_alias-ld
7541 NM=$host_alias-nm
7542 STRIP=$host_alias-strip
7543 fi
7544
7545 # Extract the first word of "gcc", so it can be a program name with args.
7546 set dummy gcc; ac_word=$2
7547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7548 echo "configure:7549: checking for $ac_word" >&5
7549 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7550 echo $ac_n "(cached) $ac_c" 1>&6
7551 else
7552 if test -n "$CC"; then
7553 ac_cv_prog_CC="$CC" # Let the user override the test.
7554 else
7555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7556 ac_dummy="$PATH"
7557 for ac_dir in $ac_dummy; do
7558 test -z "$ac_dir" && ac_dir=.
7559 if test -f $ac_dir/$ac_word; then
7560 ac_cv_prog_CC="gcc"
7561 break
7562 fi
7563 done
7564 IFS="$ac_save_ifs"
7565 fi
7566 fi
7567 CC="$ac_cv_prog_CC"
7568 if test -n "$CC"; then
7569 echo "$ac_t""$CC" 1>&6
7570 else
7571 echo "$ac_t""no" 1>&6
7572 fi
7573
7574 if test -z "$CC"; then
7575 # Extract the first word of "cc", so it can be a program name with args.
7576 set dummy cc; ac_word=$2
7577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7578 echo "configure:7579: checking for $ac_word" >&5
7579 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7580 echo $ac_n "(cached) $ac_c" 1>&6
7581 else
7582 if test -n "$CC"; then
7583 ac_cv_prog_CC="$CC" # Let the user override the test.
7584 else
7585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7586 ac_prog_rejected=no
7587 ac_dummy="$PATH"
7588 for ac_dir in $ac_dummy; do
7589 test -z "$ac_dir" && ac_dir=.
7590 if test -f $ac_dir/$ac_word; then
7591 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7592 ac_prog_rejected=yes
7593 continue
7594 fi
7595 ac_cv_prog_CC="cc"
7596 break
7597 fi
7598 done
7599 IFS="$ac_save_ifs"
7600 if test $ac_prog_rejected = yes; then
7601 # We found a bogon in the path, so make sure we never use it.
7602 set dummy $ac_cv_prog_CC
7603 shift
7604 if test $# -gt 0; then
7605 # We chose a different compiler from the bogus one.
7606 # However, it has the same basename, so the bogon will be chosen
7607 # first if we set CC to just the basename; use the full file name.
7608 shift
7609 set dummy "$ac_dir/$ac_word" "$@"
7610 shift
7611 ac_cv_prog_CC="$@"
7612 fi
7613 fi
7614 fi
7615 fi
7616 CC="$ac_cv_prog_CC"
7617 if test -n "$CC"; then
7618 echo "$ac_t""$CC" 1>&6
7619 else
7620 echo "$ac_t""no" 1>&6
7621 fi
7622
7623 if test -z "$CC"; then
7624 case "`uname -s`" in
7625 *win32* | *WIN32*)
7626 # Extract the first word of "cl", so it can be a program name with args.
7627 set dummy cl; ac_word=$2
7628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7629 echo "configure:7630: checking for $ac_word" >&5
7630 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7632 else
7633 if test -n "$CC"; then
7634 ac_cv_prog_CC="$CC" # Let the user override the test.
7635 else
7636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7637 ac_dummy="$PATH"
7638 for ac_dir in $ac_dummy; do
7639 test -z "$ac_dir" && ac_dir=.
7640 if test -f $ac_dir/$ac_word; then
7641 ac_cv_prog_CC="cl"
7642 break
7643 fi
7644 done
7645 IFS="$ac_save_ifs"
7646 fi
7647 fi
7648 CC="$ac_cv_prog_CC"
7649 if test -n "$CC"; then
7650 echo "$ac_t""$CC" 1>&6
7651 else
7652 echo "$ac_t""no" 1>&6
7653 fi
7654 ;;
7655 esac
7656 fi
7657 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7658 fi
7659
7660 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7661 echo "configure:7662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7662
7663 ac_ext=c
7664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7665 ac_cpp='$CPP $CPPFLAGS'
7666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7668 cross_compiling=$ac_cv_prog_cc_cross
7669
7670 cat > conftest.$ac_ext << EOF
7671
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674
7675 main(){return(0);}
7676 EOF
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7678 ac_cv_prog_cc_works=yes
7679 # If we can't run a trivial program, we are probably using a cross compiler.
7680 if (./conftest; exit) 2>/dev/null; then
7681 ac_cv_prog_cc_cross=no
7682 else
7683 ac_cv_prog_cc_cross=yes
7684 fi
7685 else
7686 echo "configure: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 ac_cv_prog_cc_works=no
7689 fi
7690 rm -fr conftest*
7691 ac_ext=c
7692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7693 ac_cpp='$CPP $CPPFLAGS'
7694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7696 cross_compiling=$ac_cv_prog_cc_cross
7697
7698 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7699 if test $ac_cv_prog_cc_works = no; then
7700 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7701 fi
7702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7703 echo "configure:7704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7704 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7705 cross_compiling=$ac_cv_prog_cc_cross
7706
7707 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7708 echo "configure:7709: checking whether we are using GNU C" >&5
7709 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7710 echo $ac_n "(cached) $ac_c" 1>&6
7711 else
7712 cat > conftest.c <<EOF
7713 #ifdef __GNUC__
7714 yes;
7715 #endif
7716 EOF
7717 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7718 ac_cv_prog_gcc=yes
7719 else
7720 ac_cv_prog_gcc=no
7721 fi
7722 fi
7723
7724 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7725
7726 if test $ac_cv_prog_gcc = yes; then
7727 GCC=yes
7728 else
7729 GCC=
7730 fi
7731
7732 ac_test_CFLAGS="${CFLAGS+set}"
7733 ac_save_CFLAGS="$CFLAGS"
7734 CFLAGS=
7735 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7736 echo "configure:7737: checking whether ${CC-cc} accepts -g" >&5
7737 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7738 echo $ac_n "(cached) $ac_c" 1>&6
7739 else
7740 echo 'void f(){}' > conftest.c
7741 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7742 ac_cv_prog_cc_g=yes
7743 else
7744 ac_cv_prog_cc_g=no
7745 fi
7746 rm -f conftest*
7747
7748 fi
7749
7750 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7751 if test "$ac_test_CFLAGS" = set; then
7752 CFLAGS="$ac_save_CFLAGS"
7753 elif test $ac_cv_prog_cc_g = yes; then
7754 if test "$GCC" = yes; then
7755 CFLAGS="-g -O2"
7756 else
7757 CFLAGS="-g"
7758 fi
7759 else
7760 if test "$GCC" = yes; then
7761 CFLAGS="-O2"
7762 else
7763 CFLAGS=
7764 fi
7765 fi
7766
7767
7768 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7769
7770 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7771 echo "configure:7772: checking how to run the C preprocessor" >&5
7772 # On Suns, sometimes $CPP names a directory.
7773 if test -n "$CPP" && test -d "$CPP"; then
7774 CPP=
7775 fi
7776 if test -z "$CPP"; then
7777 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7779 else
7780 # This must be in double quotes, not single quotes, because CPP may get
7781 # substituted into the Makefile and "${CC-cc}" will confuse make.
7782 CPP="${CC-cc} -E"
7783 # On the NeXT, cc -E runs the code through the compiler's parser,
7784 # not just through cpp.
7785 cat > conftest.$ac_ext <<EOF
7786 #line 7787 "configure"
7787 #include "confdefs.h"
7788 #include <assert.h>
7789 Syntax Error
7790 EOF
7791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7792 { (eval echo configure:7793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7794 if test -z "$ac_err"; then
7795 :
7796 else
7797 echo "$ac_err" >&5
7798 echo "configure: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7800 rm -rf conftest*
7801 CPP="${CC-cc} -E -traditional-cpp"
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7805 #include <assert.h>
7806 Syntax Error
7807 EOF
7808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7809 { (eval echo configure:7810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7811 if test -z "$ac_err"; then
7812 :
7813 else
7814 echo "$ac_err" >&5
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7817 rm -rf conftest*
7818 CPP="${CC-cc} -nologo -E"
7819 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7822 #include <assert.h>
7823 Syntax Error
7824 EOF
7825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7826 { (eval echo configure:7827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7828 if test -z "$ac_err"; then
7829 :
7830 else
7831 echo "$ac_err" >&5
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7834 rm -rf conftest*
7835 CPP=/lib/cpp
7836 fi
7837 rm -f conftest*
7838 fi
7839 rm -f conftest*
7840 fi
7841 rm -f conftest*
7842 ac_cv_prog_CPP="$CPP"
7843 fi
7844 CPP="$ac_cv_prog_CPP"
7845 else
7846 ac_cv_prog_CPP="$CPP"
7847 fi
7848 echo "$ac_t""$CPP" 1>&6
7849
7850
7851 if test $ac_cv_prog_gcc = yes; then
7852 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7853 echo "configure:7854: checking whether ${CC-cc} needs -traditional" >&5
7854 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7855 echo $ac_n "(cached) $ac_c" 1>&6
7856 else
7857 ac_pattern="Autoconf.*'x'"
7858 cat > conftest.$ac_ext <<EOF
7859 #line 7860 "configure"
7860 #include "confdefs.h"
7861 #include <sgtty.h>
7862 Autoconf TIOCGETP
7863 EOF
7864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7865 egrep "$ac_pattern" >/dev/null 2>&1; then
7866 rm -rf conftest*
7867 ac_cv_prog_gcc_traditional=yes
7868 else
7869 rm -rf conftest*
7870 ac_cv_prog_gcc_traditional=no
7871 fi
7872 rm -f conftest*
7873
7874
7875 if test $ac_cv_prog_gcc_traditional = no; then
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #include <termio.h>
7880 Autoconf TCGETA
7881 EOF
7882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7883 egrep "$ac_pattern" >/dev/null 2>&1; then
7884 rm -rf conftest*
7885 ac_cv_prog_gcc_traditional=yes
7886 fi
7887 rm -f conftest*
7888
7889 fi
7890 fi
7891
7892 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
7893 if test $ac_cv_prog_gcc_traditional = yes; then
7894 CC="$CC -traditional"
7895 fi
7896 fi
7897
7898
7899
7900 ac_ext=C
7901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7902 ac_cpp='$CXXCPP $CPPFLAGS'
7903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7905 cross_compiling=$ac_cv_prog_cxx_cross
7906
7907
7908 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7909 do
7910 # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7913 echo "configure:7914: checking for $ac_word" >&5
7914 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7915 echo $ac_n "(cached) $ac_c" 1>&6
7916 else
7917 if test -n "$CXX"; then
7918 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7919 else
7920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7921 ac_dummy="$PATH"
7922 for ac_dir in $ac_dummy; do
7923 test -z "$ac_dir" && ac_dir=.
7924 if test -f $ac_dir/$ac_word; then
7925 ac_cv_prog_CXX="$ac_prog"
7926 break
7927 fi
7928 done
7929 IFS="$ac_save_ifs"
7930 fi
7931 fi
7932 CXX="$ac_cv_prog_CXX"
7933 if test -n "$CXX"; then
7934 echo "$ac_t""$CXX" 1>&6
7935 else
7936 echo "$ac_t""no" 1>&6
7937 fi
7938
7939 test -n "$CXX" && break
7940 done
7941 test -n "$CXX" || CXX="gcc"
7942
7943
7944 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7945 echo "configure:7946: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
7946
7947 ac_ext=C
7948 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7949 ac_cpp='$CXXCPP $CPPFLAGS'
7950 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7951 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7952 cross_compiling=$ac_cv_prog_cxx_cross
7953
7954 cat > conftest.$ac_ext << EOF
7955
7956 #line 7957 "configure"
7957 #include "confdefs.h"
7958
7959 int main(){return(0);}
7960 EOF
7961 if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7962 ac_cv_prog_cxx_works=yes
7963 # If we can't run a trivial program, we are probably using a cross compiler.
7964 if (./conftest; exit) 2>/dev/null; then
7965 ac_cv_prog_cxx_cross=no
7966 else
7967 ac_cv_prog_cxx_cross=yes
7968 fi
7969 else
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7972 ac_cv_prog_cxx_works=no
7973 fi
7974 rm -fr conftest*
7975 ac_ext=C
7976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7977 ac_cpp='$CXXCPP $CPPFLAGS'
7978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7980 cross_compiling=$ac_cv_prog_cxx_cross
7981
7982 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7983 if test $ac_cv_prog_cxx_works = no; then
7984 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7985 fi
7986 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7987 echo "configure:7988: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
7988 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7989 cross_compiling=$ac_cv_prog_cxx_cross
7990
7991 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7992 echo "configure:7993: checking whether we are using GNU C++" >&5
7993 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7994 echo $ac_n "(cached) $ac_c" 1>&6
7995 else
7996 cat > conftest.C <<EOF
7997 #ifdef __GNUC__
7998 yes;
7999 #endif
8000 EOF
8001 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8002 ac_cv_prog_gxx=yes
8003 else
8004 ac_cv_prog_gxx=no
8005 fi
8006 fi
8007
8008 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8009
8010 if test $ac_cv_prog_gxx = yes; then
8011 GXX=yes
8012 else
8013 GXX=
8014 fi
8015
8016 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8017 ac_save_CXXFLAGS="$CXXFLAGS"
8018 CXXFLAGS=
8019 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8020 echo "configure:8021: checking whether ${CXX-g++} accepts -g" >&5
8021 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8023 else
8024 echo 'void f(){}' > conftest.cc
8025 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8026 ac_cv_prog_cxx_g=yes
8027 else
8028 ac_cv_prog_cxx_g=no
8029 fi
8030 rm -f conftest*
8031
8032 fi
8033
8034 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8035 if test "$ac_test_CXXFLAGS" = set; then
8036 CXXFLAGS="$ac_save_CXXFLAGS"
8037 elif test $ac_cv_prog_cxx_g = yes; then
8038 if test "$GXX" = yes; then
8039 CXXFLAGS="-g -O2"
8040 else
8041 CXXFLAGS="-g"
8042 fi
8043 else
8044 if test "$GXX" = yes; then
8045 CXXFLAGS="-O2"
8046 else
8047 CXXFLAGS=
8048 fi
8049 fi
8050
8051
8052 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8053 echo "configure:8054: checking how to run the C++ preprocessor" >&5
8054 if test -z "$CXXCPP"; then
8055 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8057 else
8058 ac_ext=C
8059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8060 ac_cpp='$CXXCPP $CPPFLAGS'
8061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8063 cross_compiling=$ac_cv_prog_cxx_cross
8064 CXXCPP="${CXX-g++} -E"
8065 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure"
8067 #include "confdefs.h"
8068 #include <stdlib.h>
8069 EOF
8070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8071 { (eval echo configure:8072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8073 if test -z "$ac_err"; then
8074 :
8075 else
8076 echo "$ac_err" >&5
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 rm -rf conftest*
8080 CXXCPP=/lib/cpp
8081 fi
8082 rm -f conftest*
8083 ac_cv_prog_CXXCPP="$CXXCPP"
8084 ac_ext=C
8085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8086 ac_cpp='$CXXCPP $CPPFLAGS'
8087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8089 cross_compiling=$ac_cv_prog_cxx_cross
8090 fi
8091 fi
8092 CXXCPP="$ac_cv_prog_CXXCPP"
8093 echo "$ac_t""$CXXCPP" 1>&6
8094
8095
8096 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8097
8098 ac_ext=c
8099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8100 ac_cpp='$CPP $CPPFLAGS'
8101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8103 cross_compiling=$ac_cv_prog_cc_cross
8104
8105
8106 # Extract the first word of "ranlib", so it can be a program name with args.
8107 set dummy ranlib; ac_word=$2
8108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8109 echo "configure:8110: checking for $ac_word" >&5
8110 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8112 else
8113 if test -n "$RANLIB"; then
8114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8115 else
8116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8117 ac_dummy="$PATH"
8118 for ac_dir in $ac_dummy; do
8119 test -z "$ac_dir" && ac_dir=.
8120 if test -f $ac_dir/$ac_word; then
8121 ac_cv_prog_RANLIB="ranlib"
8122 break
8123 fi
8124 done
8125 IFS="$ac_save_ifs"
8126 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8127 fi
8128 fi
8129 RANLIB="$ac_cv_prog_RANLIB"
8130 if test -n "$RANLIB"; then
8131 echo "$ac_t""$RANLIB" 1>&6
8132 else
8133 echo "$ac_t""no" 1>&6
8134 fi
8135
8136
8137 # Extract the first word of "ar", so it can be a program name with args.
8138 set dummy ar; ac_word=$2
8139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8140 echo "configure:8141: checking for $ac_word" >&5
8141 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8143 else
8144 if test -n "$AR"; then
8145 ac_cv_prog_AR="$AR" # Let the user override the test.
8146 else
8147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8148 ac_dummy="$PATH"
8149 for ac_dir in $ac_dummy; do
8150 test -z "$ac_dir" && ac_dir=.
8151 if test -f $ac_dir/$ac_word; then
8152 ac_cv_prog_AR="ar"
8153 break
8154 fi
8155 done
8156 IFS="$ac_save_ifs"
8157 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8158 fi
8159 fi
8160 AR="$ac_cv_prog_AR"
8161 if test -n "$AR"; then
8162 echo "$ac_t""$AR" 1>&6
8163 else
8164 echo "$ac_t""no" 1>&6
8165 fi
8166
8167
8168 # Find a good install program. We prefer a C program (faster),
8169 # so one script is as good as another. But avoid the broken or
8170 # incompatible versions:
8171 # SysV /etc/install, /usr/sbin/install
8172 # SunOS /usr/etc/install
8173 # IRIX /sbin/install
8174 # AIX /bin/install
8175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8178 # ./install, which can be erroneously created by make from ./install.sh.
8179 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8180 echo "configure:8181: checking for a BSD compatible install" >&5
8181 if test -z "$INSTALL"; then
8182 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
8184 else
8185 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8186 for ac_dir in $PATH; do
8187 # Account for people who put trailing slashes in PATH elements.
8188 case "$ac_dir/" in
8189 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8190 *)
8191 # OSF1 and SCO ODT 3.0 have their own names for install.
8192 # Don't use installbsd from OSF since it installs stuff as root
8193 # by default.
8194 for ac_prog in ginstall scoinst install; do
8195 if test -f $ac_dir/$ac_prog; then
8196 if test $ac_prog = install &&
8197 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8198 # AIX install. It has an incompatible calling convention.
8199 :
8200 else
8201 ac_cv_path_install="$ac_dir/$ac_prog -c"
8202 break 2
8203 fi
8204 fi
8205 done
8206 ;;
8207 esac
8208 done
8209 IFS="$ac_save_IFS"
8210
8211 fi
8212 if test "${ac_cv_path_install+set}" = set; then
8213 INSTALL="$ac_cv_path_install"
8214 else
8215 # As a last resort, use the slow shell script. We don't cache a
8216 # path for INSTALL within a source directory, because that will
8217 # break other packages using the cache if that directory is
8218 # removed, or if the path is relative.
8219 INSTALL="$ac_install_sh"
8220 fi
8221 fi
8222 echo "$ac_t""$INSTALL" 1>&6
8223
8224 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8225 # It thinks the first close brace ends the variable substitution.
8226 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8227
8228 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8229
8230 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8231
8232
8233 # Extract the first word of "strip", so it can be a program name with args.
8234 set dummy strip; ac_word=$2
8235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8236 echo "configure:8237: checking for $ac_word" >&5
8237 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8238 echo $ac_n "(cached) $ac_c" 1>&6
8239 else
8240 if test -n "$STRIP"; then
8241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8242 else
8243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8244 ac_dummy="$PATH"
8245 for ac_dir in $ac_dummy; do
8246 test -z "$ac_dir" && ac_dir=.
8247 if test -f $ac_dir/$ac_word; then
8248 ac_cv_prog_STRIP="strip"
8249 break
8250 fi
8251 done
8252 IFS="$ac_save_ifs"
8253 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8254 fi
8255 fi
8256 STRIP="$ac_cv_prog_STRIP"
8257 if test -n "$STRIP"; then
8258 echo "$ac_t""$STRIP" 1>&6
8259 else
8260 echo "$ac_t""no" 1>&6
8261 fi
8262
8263
8264 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8265 echo "configure:8266: checking make for VPATH support" >&5
8266 cat - << EOF > confMake
8267 check : file
8268 cp \$? \$@
8269 cp \$? final_file
8270 EOF
8271
8272 if test ! -d sub ; then
8273 mkdir sub
8274 fi
8275 echo dummy > sub/file
8276 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8277 RESULT=$?
8278 rm -f sub/file check final_file confMake
8279 rmdir sub
8280 if test "$RESULT" = 0; then
8281 echo "$ac_t""yes" 1>&6
8282 else
8283 echo "$ac_t""no" 1>&6
8284 { echo "configure: error:
8285 You need a make-utility that is able to use the variable
8286 VPATH correctly.
8287 If your version of make does not support VPATH correctly,
8288 please install GNU-make (possibly as gmake), and start
8289 configure with the following command:
8290 export MAKE=gmake; ./configure for sh-type shells
8291 setenv MAKE gmake; ./configure for csh-type shells
8292 Also please do remember to use gmake in this case every time
8293 you are trying to compile.
8294 " 1>&2; exit 1; }
8295 fi
8296
8297 for ac_prog in 'bison -y' byacc
8298 do
8299 # Extract the first word of "$ac_prog", so it can be a program name with args.
8300 set dummy $ac_prog; ac_word=$2
8301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8302 echo "configure:8303: checking for $ac_word" >&5
8303 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8305 else
8306 if test -n "$YACC"; then
8307 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8308 else
8309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8310 ac_dummy="$PATH"
8311 for ac_dir in $ac_dummy; do
8312 test -z "$ac_dir" && ac_dir=.
8313 if test -f $ac_dir/$ac_word; then
8314 ac_cv_prog_YACC="$ac_prog"
8315 break
8316 fi
8317 done
8318 IFS="$ac_save_ifs"
8319 fi
8320 fi
8321 YACC="$ac_cv_prog_YACC"
8322 if test -n "$YACC"; then
8323 echo "$ac_t""$YACC" 1>&6
8324 else
8325 echo "$ac_t""no" 1>&6
8326 fi
8327
8328 test -n "$YACC" && break
8329 done
8330 test -n "$YACC" || YACC="yacc"
8331
8332
8333 # Extract the first word of "flex", so it can be a program name with args.
8334 set dummy flex; ac_word=$2
8335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8336 echo "configure:8337: checking for $ac_word" >&5
8337 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8339 else
8340 if test -n "$LEX"; then
8341 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8342 else
8343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8344 ac_dummy="$PATH"
8345 for ac_dir in $ac_dummy; do
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/$ac_word; then
8348 ac_cv_prog_LEX="flex"
8349 break
8350 fi
8351 done
8352 IFS="$ac_save_ifs"
8353 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8354 fi
8355 fi
8356 LEX="$ac_cv_prog_LEX"
8357 if test -n "$LEX"; then
8358 echo "$ac_t""$LEX" 1>&6
8359 else
8360 echo "$ac_t""no" 1>&6
8361 fi
8362
8363 if test -z "$LEXLIB"
8364 then
8365 case "$LEX" in
8366 flex*) ac_lib=fl ;;
8367 *) ac_lib=l ;;
8368 esac
8369 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8370 echo "configure:8371: checking for yywrap in -l$ac_lib" >&5
8371 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8374 else
8375 ac_save_LIBS="$LIBS"
8376 LIBS="-l$ac_lib $LIBS"
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8380 /* Override any gcc2 internal prototype to avoid an error. */
8381 /* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8383 char yywrap();
8384
8385 int main() {
8386 yywrap()
8387 ; return 0; }
8388 EOF
8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8390 rm -rf conftest*
8391 eval "ac_cv_lib_$ac_lib_var=yes"
8392 else
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8395 rm -rf conftest*
8396 eval "ac_cv_lib_$ac_lib_var=no"
8397 fi
8398 rm -f conftest*
8399 LIBS="$ac_save_LIBS"
8400
8401 fi
8402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8403 echo "$ac_t""yes" 1>&6
8404 LEXLIB="-l$ac_lib"
8405 else
8406 echo "$ac_t""no" 1>&6
8407 fi
8408
8409 fi
8410
8411
8412 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8413 echo "configure:8414: checking whether ln -s works" >&5
8414 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8415 echo $ac_n "(cached) $ac_c" 1>&6
8416 else
8417 rm -f conftestdata
8418 if ln -s X conftestdata 2>/dev/null
8419 then
8420 rm -f conftestdata
8421 ac_cv_prog_LN_S="ln -s"
8422 else
8423 ac_cv_prog_LN_S=ln
8424 fi
8425 fi
8426 LN_S="$ac_cv_prog_LN_S"
8427 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8428 echo "$ac_t""yes" 1>&6
8429 else
8430 echo "$ac_t""no" 1>&6
8431 fi
8432
8433
8434
8435 SEARCH_INCLUDE="\
8436 /usr/local/include \
8437 \
8438 /usr/Motif-1.2/include \
8439 /usr/Motif-2.1/include \
8440 \
8441 /usr/include/Motif1.2 \
8442 /opt/xpm/include/X11 \
8443 /opt/GBxpm/include/ \
8444 /opt/GBxpm/X11/include/ \
8445 \
8446 /usr/Motif1.2/include \
8447 /usr/dt/include \
8448 /usr/openwin/include \
8449 \
8450 /usr/include/Xm \
8451 \
8452 /usr/X11R6/include \
8453 /usr/X11R6.4/include \
8454 /usr/X11R5/include \
8455 /usr/X11R4/include \
8456 \
8457 /usr/include/X11R6 \
8458 /usr/include/X11R5 \
8459 /usr/include/X11R4 \
8460 \
8461 /usr/local/X11R6/include \
8462 /usr/local/X11R5/include \
8463 /usr/local/X11R4/include \
8464 \
8465 /usr/local/include/X11R6 \
8466 /usr/local/include/X11R5 \
8467 /usr/local/include/X11R4 \
8468 \
8469 /usr/X11/include \
8470 /usr/include/X11 \
8471 /usr/local/X11/include \
8472 /usr/local/include/X11 \
8473 \
8474 /usr/X386/include \
8475 /usr/x386/include \
8476 /usr/XFree86/include/X11 \
8477 \
8478 X:/XFree86/include \
8479 X:/XFree86/include/X11 \
8480 \
8481 /usr/include/gtk \
8482 /usr/local/include/gtk \
8483 /usr/include/glib \
8484 /usr/local/include/glib \
8485 \
8486 /usr/include/qt \
8487 /usr/local/include/qt \
8488 \
8489 /usr/include/windows \
8490 /usr/include/wine \
8491 /usr/local/include/wine \
8492 \
8493 /usr/unsupported/include \
8494 /usr/athena/include \
8495 /usr/local/x11r5/include \
8496 /usr/lpp/Xamples/include \
8497 \
8498 /usr/openwin/share/include \
8499 \
8500 /usr/include"
8501
8502 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8503
8504
8505 cat > confcache <<\EOF
8506 # This file is a shell script that caches the results of configure
8507 # tests run on this system so they can be shared between configure
8508 # scripts and configure runs. It is not useful on other systems.
8509 # If it contains results you don't want to keep, you may remove or edit it.
8510 #
8511 # By default, configure uses ./config.cache as the cache file,
8512 # creating it if it does not exist already. You can give configure
8513 # the --cache-file=FILE option to use a different cache file; that is
8514 # what configure does when it calls configure scripts in
8515 # subdirectories, so they share the cache.
8516 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8517 # config.status only pays attention to the cache file if you give it the
8518 # --recheck option to rerun configure.
8519 #
8520 EOF
8521 # The following way of writing the cache mishandles newlines in values,
8522 # but we know of no workaround that is simple, portable, and efficient.
8523 # So, don't put newlines in cache variables' values.
8524 # Ultrix sh set writes to stderr and can't be redirected directly,
8525 # and sets the high bit in the cache file unless we assign to the vars.
8526 (set) 2>&1 |
8527 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8528 *ac_space=\ *)
8529 # `set' does not quote correctly, so add quotes (double-quote substitution
8530 # turns \\\\ into \\, and sed turns \\ into \).
8531 sed -n \
8532 -e "s/'/'\\\\''/g" \
8533 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8534 ;;
8535 *)
8536 # `set' quotes correctly as required by POSIX, so do not add quotes.
8537 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8538 ;;
8539 esac >> confcache
8540 if cmp -s $cache_file confcache; then
8541 :
8542 else
8543 if test -w $cache_file; then
8544 echo "updating cache $cache_file"
8545 cat confcache > $cache_file
8546 else
8547 echo "not updating unwritable cache $cache_file"
8548 fi
8549 fi
8550 rm -f confcache
8551
8552
8553
8554 AFMINSTALL=
8555
8556 if test "$wxUSE_GUI" = "yes"; then
8557 USE_GUI=1
8558
8559 TOOLKIT=
8560 TOOLKIT_INCLUDE=
8561
8562 GUI_TK_LIBRARY=
8563 GUI_TK_LINK=
8564
8565 WXGTK12=
8566 WXGTK127=
8567 WXGTK20=
8568
8569 WXWINE=
8570
8571 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8572 if test "$cross_compiling" = "yes" ; then
8573 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8574 else
8575 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8576 echo "configure:8577: checking for Windows headers" >&5
8577
8578 ac_find_includes=
8579 for ac_dir in $SEARCH_INCLUDE;
8580 do
8581 if test -f "$ac_dir/windows.h"; then
8582 ac_find_includes=$ac_dir
8583 break
8584 fi
8585 done
8586
8587 if test "$ac_find_includes" != "" ; then
8588 echo "$ac_t""found $ac_find_includes" 1>&6
8589 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8590 else
8591 echo "$ac_t""no" 1>&6
8592 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8593 fi
8594 fi
8595
8596 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8597 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
8598
8599 if test "$wxUSE_ODBC" = "yes" ; then
8600 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8601 fi
8602
8603 if test "$wxUSE_MINGW" = 1; then
8604 LDFLAGS="$LDFLAGS -mwindows"
8605 fi
8606
8607 TOOLKIT=MSW
8608 GUIDIST=MSW_DIST
8609
8610 RCINCSWITCH="--include-dir"
8611 RCDEFSWITCH="--define"
8612 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8613 RCINPUTSWITCH="-i"
8614 RCOUTPUTSWITCH="-o"
8615 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8616
8617 RESPROGRAM="\$(RES_PROGRAM)"
8618 fi
8619
8620 if test "$wxUSE_GTK" = 1; then
8621 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8622 echo "configure:8623: checking for GTK+ version" >&5
8623
8624 gtk_version_cached=1
8625 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8627 else
8628
8629 gtk_version_cached=0
8630 echo "$ac_t""""" 1>&6
8631
8632 wx_cv_lib_gtk=
8633 if test "x$wxUSE_GTK2" = "xyes"; then
8634 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8635 if test "${with_gtk_prefix+set}" = set; then
8636 withval="$with_gtk_prefix"
8637 gtk_config_prefix="$withval"
8638 else
8639 gtk_config_prefix=""
8640 fi
8641
8642 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8643 if test "${with_gtk_exec_prefix+set}" = set; then
8644 withval="$with_gtk_exec_prefix"
8645 gtk_config_exec_prefix="$withval"
8646 else
8647 gtk_config_exec_prefix=""
8648 fi
8649
8650 # Check whether --enable-gtktest or --disable-gtktest was given.
8651 if test "${enable_gtktest+set}" = set; then
8652 enableval="$enable_gtktest"
8653 :
8654 else
8655 enable_gtktest=yes
8656 fi
8657
8658
8659 for module in .
8660 do
8661 case "$module" in
8662 gthread)
8663 gtk_config_args="$gtk_config_args gthread"
8664 ;;
8665 esac
8666 done
8667
8668 if test x$gtk_config_exec_prefix != x ; then
8669 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8670 if test x${GTK_CONFIG_2_0+set} != xset ; then
8671 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8672 fi
8673 fi
8674 if test x$gtk_config_prefix != x ; then
8675 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8676 if test x${GTK_CONFIG_2_0+set} != xset ; then
8677 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8678 fi
8679 fi
8680
8681 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8682 set dummy gtk-config-2.0; ac_word=$2
8683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8684 echo "configure:8685: checking for $ac_word" >&5
8685 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8687 else
8688 case "$GTK_CONFIG_2_0" in
8689 /*)
8690 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8691 ;;
8692 ?:/*)
8693 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8694 ;;
8695 *)
8696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8697 ac_dummy="$PATH"
8698 for ac_dir in $ac_dummy; do
8699 test -z "$ac_dir" && ac_dir=.
8700 if test -f $ac_dir/$ac_word; then
8701 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8702 break
8703 fi
8704 done
8705 IFS="$ac_save_ifs"
8706 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8707 ;;
8708 esac
8709 fi
8710 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8711 if test -n "$GTK_CONFIG_2_0"; then
8712 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8713 else
8714 echo "$ac_t""no" 1>&6
8715 fi
8716
8717 min_gtk_version=1.3.1
8718 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8719 echo "configure:8720: checking for GTK - version >= $min_gtk_version" >&5
8720 no_gtk=""
8721 if test "$GTK_CONFIG_2_0" = "no" ; then
8722 no_gtk=yes
8723 else
8724 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8725 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8726 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8727 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8728 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8729 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8730 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8731 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8732 if test "x$enable_gtktest" = "xyes" ; then
8733 ac_save_CFLAGS="$CFLAGS"
8734 ac_save_LIBS="$LIBS"
8735 CFLAGS="$CFLAGS $GTK_CFLAGS"
8736 LIBS="$GTK_LIBS $LIBS"
8737 rm -f conf.gtktest
8738 if test "$cross_compiling" = yes; then
8739 echo $ac_n "cross compiling; assumed OK... $ac_c"
8740 else
8741 cat > conftest.$ac_ext <<EOF
8742 #line 8743 "configure"
8743 #include "confdefs.h"
8744
8745 #include <gtk/gtk.h>
8746 #include <stdio.h>
8747 #include <stdlib.h>
8748
8749 int
8750 main ()
8751 {
8752 int major, minor, micro;
8753 char *tmp_version;
8754
8755 system ("touch conf.gtktest");
8756
8757 /* HP/UX 9 (%@#!) writes to sscanf strings */
8758 tmp_version = g_strdup("$min_gtk_version");
8759 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8760 printf("%s, bad version string\n", "$min_gtk_version");
8761 exit(1);
8762 }
8763
8764 if ((gtk_major_version != $gtk_config_major_version) ||
8765 (gtk_minor_version != $gtk_config_minor_version) ||
8766 (gtk_micro_version != $gtk_config_micro_version))
8767 {
8768 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8769 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8770 gtk_major_version, gtk_minor_version, gtk_micro_version);
8771 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8772 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8773 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8774 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8775 printf("*** required on your system.\n");
8776 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8777 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8778 printf("*** before re-running configure\n");
8779 }
8780 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8781 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8782 (gtk_minor_version != GTK_MINOR_VERSION) ||
8783 (gtk_micro_version != GTK_MICRO_VERSION))
8784 {
8785 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8786 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8787 printf("*** library (version %d.%d.%d)\n",
8788 gtk_major_version, gtk_minor_version, gtk_micro_version);
8789 }
8790 #endif /* defined (GTK_MAJOR_VERSION) ... */
8791 else
8792 {
8793 if ((gtk_major_version > major) ||
8794 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8795 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8796 {
8797 return 0;
8798 }
8799 else
8800 {
8801 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8802 gtk_major_version, gtk_minor_version, gtk_micro_version);
8803 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8804 major, minor, micro);
8805 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8806 printf("***\n");
8807 printf("*** If you have already installed a sufficiently new version, this error\n");
8808 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8809 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8810 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8811 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8812 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8813 printf("*** so that the correct libraries are found at run-time))\n");
8814 }
8815 }
8816 return 1;
8817 }
8818
8819 EOF
8820 if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8821 then
8822 :
8823 else
8824 echo "configure: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 rm -fr conftest*
8827 no_gtk=yes
8828 fi
8829 rm -fr conftest*
8830 fi
8831
8832 CFLAGS="$ac_save_CFLAGS"
8833 LIBS="$ac_save_LIBS"
8834 fi
8835 fi
8836 if test "x$no_gtk" = x ; then
8837 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8838 wx_cv_lib_gtk=2.0
8839 else
8840 echo "$ac_t""no" 1>&6
8841 if test "$GTK_CONFIG_2_0" = "no" ; then
8842 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8843 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8844 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8845 echo "*** full path to gtk-config-2.0."
8846 else
8847 if test -f conf.gtktest ; then
8848 :
8849 else
8850 echo "*** Could not run GTK test program, checking why..."
8851 CFLAGS="$CFLAGS $GTK_CFLAGS"
8852 LIBS="$LIBS $GTK_LIBS"
8853 cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8856
8857 #include <gtk/gtk.h>
8858 #include <stdio.h>
8859
8860 int main() {
8861 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8862 ; return 0; }
8863 EOF
8864 if { (eval echo configure:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8865 rm -rf conftest*
8866 echo "*** The test program compiled, but did not run. This usually means"
8867 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8868 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8869 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8870 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8871 echo "*** is required on your system"
8872 echo "***"
8873 echo "*** If you have an old version installed, it is best to remove it, although"
8874 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8875 echo "***"
8876 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8877 echo "*** came with the system with the command"
8878 echo "***"
8879 echo "*** rpm --erase --nodeps gtk gtk-devel"
8880 else
8881 echo "configure: failed program was:" >&5
8882 cat conftest.$ac_ext >&5
8883 rm -rf conftest*
8884 echo "*** The test program failed to compile or link. See the file config.log for the"
8885 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8886 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8887 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
8888 fi
8889 rm -f conftest*
8890 CFLAGS="$ac_save_CFLAGS"
8891 LIBS="$ac_save_LIBS"
8892 fi
8893 fi
8894 GTK_CFLAGS=""
8895 GTK_LIBS=""
8896 gthread
8897 fi
8898
8899
8900 rm -f conf.gtktest
8901
8902 fi
8903
8904 if test -z "$wx_cv_lib_gtk"; then
8905
8906 if test x$gtk_config_exec_prefix != x ; then
8907 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8908 if test x${GTK_CONFIG+set} != xset ; then
8909 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8910 fi
8911 fi
8912 if test x$gtk_config_prefix != x ; then
8913 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8914 if test x${GTK_CONFIG+set} != xset ; then
8915 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8916 fi
8917 fi
8918
8919 # Extract the first word of "gtk-config", so it can be a program name with args.
8920 set dummy gtk-config; ac_word=$2
8921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8922 echo "configure:8923: checking for $ac_word" >&5
8923 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8925 else
8926 case "$GTK_CONFIG" in
8927 /*)
8928 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8929 ;;
8930 ?:/*)
8931 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8932 ;;
8933 *)
8934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8935 ac_dummy="$PATH"
8936 for ac_dir in $ac_dummy; do
8937 test -z "$ac_dir" && ac_dir=.
8938 if test -f $ac_dir/$ac_word; then
8939 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8940 break
8941 fi
8942 done
8943 IFS="$ac_save_ifs"
8944 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8945 ;;
8946 esac
8947 fi
8948 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8949 if test -n "$GTK_CONFIG"; then
8950 echo "$ac_t""$GTK_CONFIG" 1>&6
8951 else
8952 echo "$ac_t""no" 1>&6
8953 fi
8954
8955 min_gtk_version=1.2.7
8956 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8957 echo "configure:8958: checking for GTK - version >= $min_gtk_version" >&5
8958 no_gtk=""
8959 if test "$GTK_CONFIG" != "no" ; then
8960 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8961 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8962 ac_save_CFLAGS="$CFLAGS"
8963 ac_save_LIBS="$LIBS"
8964 CFLAGS="$CFLAGS $GTK_CFLAGS"
8965 LIBS="$LIBS $GTK_LIBS"
8966 if test "$cross_compiling" = yes; then
8967 echo $ac_n "cross compiling; assumed OK... $ac_c"
8968 else
8969 cat > conftest.$ac_ext <<EOF
8970 #line 8971 "configure"
8971 #include "confdefs.h"
8972
8973 #include <gtk/gtk.h>
8974 #include <gtk/gtkfeatures.h>
8975 #include <stdio.h>
8976 #include <stdlib.h>
8977
8978 int
8979 main ()
8980 {
8981 int major, minor, micro;
8982
8983 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8984 printf("%s, bad version string\n", "$min_gtk_version");
8985 exit(1);
8986 }
8987
8988 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8989 (GTK_MINOR_VERSION != gtk_minor_version) ||
8990 (GTK_MICRO_VERSION != gtk_micro_version)) {
8991 printf("Headers vs. library version mismatch!\n");
8992 exit(1);
8993 }
8994
8995 if (gtk_minor_version == 1) return FALSE;
8996
8997 return !((gtk_major_version > major) ||
8998 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8999 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9000 }
9001
9002 EOF
9003 if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9004 then
9005 :
9006 else
9007 echo "configure: failed program was:" >&5
9008 cat conftest.$ac_ext >&5
9009 rm -fr conftest*
9010 no_gtk=yes
9011 fi
9012 rm -fr conftest*
9013 fi
9014
9015 CFLAGS="$ac_save_CFLAGS"
9016 LIBS="$ac_save_LIBS"
9017 else
9018 no_gtk=yes
9019 fi
9020 if test "x$no_gtk" = x ; then
9021 echo "$ac_t""yes" 1>&6
9022 wx_cv_lib_gtk=1.2.7
9023 else
9024 echo "$ac_t""no" 1>&6
9025 GTK_CFLAGS=""
9026 GTK_LIBS=""
9027 :
9028 fi
9029
9030
9031
9032 fi
9033
9034 if test -z "$wx_cv_lib_gtk"; then
9035
9036 if test x$gtk_config_exec_prefix != x ; then
9037 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9038 if test x${GTK_CONFIG+set} != xset ; then
9039 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9040 fi
9041 fi
9042 if test x$gtk_config_prefix != x ; then
9043 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9044 if test x${GTK_CONFIG+set} != xset ; then
9045 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9046 fi
9047 fi
9048
9049 # Extract the first word of "gtk-config", so it can be a program name with args.
9050 set dummy gtk-config; ac_word=$2
9051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9052 echo "configure:9053: checking for $ac_word" >&5
9053 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9055 else
9056 case "$GTK_CONFIG" in
9057 /*)
9058 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9059 ;;
9060 ?:/*)
9061 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9062 ;;
9063 *)
9064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9065 ac_dummy="$PATH"
9066 for ac_dir in $ac_dummy; do
9067 test -z "$ac_dir" && ac_dir=.
9068 if test -f $ac_dir/$ac_word; then
9069 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9070 break
9071 fi
9072 done
9073 IFS="$ac_save_ifs"
9074 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9075 ;;
9076 esac
9077 fi
9078 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9079 if test -n "$GTK_CONFIG"; then
9080 echo "$ac_t""$GTK_CONFIG" 1>&6
9081 else
9082 echo "$ac_t""no" 1>&6
9083 fi
9084
9085 min_gtk_version=1.2.3
9086 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9087 echo "configure:9088: checking for GTK - version >= $min_gtk_version" >&5
9088 no_gtk=""
9089 if test "$GTK_CONFIG" != "no" ; then
9090 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9091 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9092 ac_save_CFLAGS="$CFLAGS"
9093 ac_save_LIBS="$LIBS"
9094 CFLAGS="$CFLAGS $GTK_CFLAGS"
9095 LIBS="$LIBS $GTK_LIBS"
9096 if test "$cross_compiling" = yes; then
9097 echo $ac_n "cross compiling; assumed OK... $ac_c"
9098 else
9099 cat > conftest.$ac_ext <<EOF
9100 #line 9101 "configure"
9101 #include "confdefs.h"
9102
9103 #include <gtk/gtk.h>
9104 #include <gtk/gtkfeatures.h>
9105 #include <stdio.h>
9106 #include <stdlib.h>
9107
9108 int
9109 main ()
9110 {
9111 int major, minor, micro;
9112
9113 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9114 printf("%s, bad version string\n", "$min_gtk_version");
9115 exit(1);
9116 }
9117
9118 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9119 (GTK_MINOR_VERSION != gtk_minor_version) ||
9120 (GTK_MICRO_VERSION != gtk_micro_version)) {
9121 printf("Headers vs. library version mismatch!\n");
9122 exit(1);
9123 }
9124
9125 if (gtk_minor_version == 1) return FALSE;
9126
9127 return !((gtk_major_version > major) ||
9128 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9129 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9130 }
9131
9132 EOF
9133 if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9134 then
9135 :
9136 else
9137 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 rm -fr conftest*
9140 no_gtk=yes
9141 fi
9142 rm -fr conftest*
9143 fi
9144
9145 CFLAGS="$ac_save_CFLAGS"
9146 LIBS="$ac_save_LIBS"
9147 else
9148 no_gtk=yes
9149 fi
9150 if test "x$no_gtk" = x ; then
9151 echo "$ac_t""yes" 1>&6
9152 wx_cv_lib_gtk=1.2.3
9153 else
9154 echo "$ac_t""no" 1>&6
9155 GTK_CFLAGS=""
9156 GTK_LIBS=""
9157 :
9158 fi
9159
9160
9161
9162 fi
9163
9164 if test -z "$wx_cv_lib_gtk"; then
9165 wx_cv_lib_gtk=none
9166 else
9167 wx_cv_cflags_gtk=$GTK_CFLAGS
9168 wx_cv_libs_gtk=$GTK_LIBS
9169 fi
9170
9171
9172 fi
9173
9174
9175 if test "$gtk_version_cached" = 1; then
9176 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9177 fi
9178
9179 case "$wx_cv_lib_gtk" in
9180 2.0) WXGTK20=1
9181 ;;
9182 1.2.7) WXGTK127=1
9183 WXGTK12=1
9184 ;;
9185 1.2.3) WXGTK12=1
9186 ;;
9187 *) { echo "configure: error:
9188 Please check that gtk-config is in path, the directory
9189 where GTK+ libraries are installed (returned by
9190 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9191 equivalent variable and GTK+ is version 1.2.3 or above.
9192 " 1>&2; exit 1; }
9193 ;;
9194 esac
9195
9196 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9197 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9198
9199 AFMINSTALL=afminstall
9200 TOOLKIT=GTK
9201 GUIDIST=GTK_DIST
9202
9203 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9204 echo "configure:9205: checking for gdk_im_open in -lgdk" >&5
9205 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9207 echo $ac_n "(cached) $ac_c" 1>&6
9208 else
9209 ac_save_LIBS="$LIBS"
9210 LIBS="-lgdk $LIBS"
9211 cat > conftest.$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9214 /* Override any gcc2 internal prototype to avoid an error. */
9215 /* We use char because int might match the return type of a gcc2
9216 builtin and then its argument prototype would still apply. */
9217 char gdk_im_open();
9218
9219 int main() {
9220 gdk_im_open()
9221 ; return 0; }
9222 EOF
9223 if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9224 rm -rf conftest*
9225 eval "ac_cv_lib_$ac_lib_var=yes"
9226 else
9227 echo "configure: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 rm -rf conftest*
9230 eval "ac_cv_lib_$ac_lib_var=no"
9231 fi
9232 rm -f conftest*
9233 LIBS="$ac_save_LIBS"
9234
9235 fi
9236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9237 echo "$ac_t""yes" 1>&6
9238 cat >> confdefs.h <<\EOF
9239 #define HAVE_XIM 1
9240 EOF
9241
9242 else
9243 echo "$ac_t""no" 1>&6
9244 fi
9245
9246 fi
9247
9248 if test "$wxUSE_MGL" = 1; then
9249
9250 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9251 echo "configure:9252: checking for SciTech MGL library" >&5
9252 if test "x$MGL_ROOT" = x ; then
9253 echo "$ac_t""not found" 1>&6
9254 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9255 else
9256 echo "$ac_t""$MGL_ROOT" 1>&6
9257 fi
9258
9259 MGL_OS=linux/gcc/glibc
9260 MGL_LIB_TYPE=""
9261
9262 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9263 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9264 MGL_LIB_TYPE=debug
9265 fi
9266 fi
9267 if test "x$MGL_LIB_TYPE" = x ; then
9268 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9269 MGL_LIB_TYPE=release
9270 else
9271 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9272 fi
9273 fi
9274
9275 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9276 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9277
9278 AFMINSTALL=afminstall
9279 TOOLKIT=MGL
9280 GUIDIST=MGL_DIST
9281 fi
9282
9283 if test "$wxUSE_WINE" = 1; then
9284 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9285 echo "configure:9286: checking for WINE includes" >&5
9286
9287 ac_find_includes=
9288 for ac_dir in $SEARCH_INCLUDE;
9289 do
9290 if test -f "$ac_dir/windows.h"; then
9291 ac_find_includes=$ac_dir
9292 break
9293 fi
9294 done
9295
9296 if test "$ac_find_includes" != "" ; then
9297 echo "$ac_t""found $ac_find_includes" 1>&6
9298 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9299 else
9300 echo "$ac_t""no" 1>&6
9301 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9302 fi
9303
9304 XPM_LINK=""
9305 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9306 echo "configure:9307: checking for Xpm library" >&5
9307
9308 ac_find_libraries=
9309 for ac_dir in $SEARCH_LIB;
9310 do
9311 for ac_extension in a so sl; do
9312 if test -f "$ac_dir/libXpm.$ac_extension"; then
9313 ac_find_libraries=$ac_dir
9314 break 2
9315 fi
9316 done
9317 done
9318
9319 if test "$ac_find_libraries" != "" ; then
9320 GUI_TK_LIBRARY="-L$ac_find_libraries"
9321 XPM_LINK="-lXpm"
9322 cat >> confdefs.h <<\EOF
9323 #define wxHAVE_LIB_XPM 1
9324 EOF
9325
9326 echo "$ac_t""found at $ac_find_libraries" 1>&6
9327 else
9328 echo "$ac_t""no" 1>&6
9329 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9330 fi
9331
9332 MESA_LINK=""
9333 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9334 echo "configure:9335: checking for Mesa library" >&5
9335
9336 ac_find_libraries=
9337 for ac_dir in $SEARCH_LIB;
9338 do
9339 for ac_extension in a so sl; do
9340 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9341 ac_find_libraries=$ac_dir
9342 break 2
9343 fi
9344 done
9345 done
9346
9347 if test "$ac_find_libraries" != "" ; then
9348 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9349 MESA_LINK="-lMesaGL"
9350 echo "$ac_t""found at $ac_find_libraries" 1>&6
9351 else
9352 { echo "configure: error: no" 1>&2; exit 1; }
9353 fi
9354
9355 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9356 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9357 WXWINE=1
9358 TOOLKIT=MSW
9359 GUIDIST=MSW_DIST
9360 fi
9361
9362
9363 # If we find X, set shell vars x_includes and x_libraries to the
9364 # paths, otherwise set no_x=yes.
9365 # Uses ac_ vars as temps to allow command line to override cache and checks.
9366 # --without-x overrides everything else, but does not touch the cache.
9367 echo $ac_n "checking for X""... $ac_c" 1>&6
9368 echo "configure:9369: checking for X" >&5
9369
9370 # Check whether --with-x or --without-x was given.
9371 if test "${with_x+set}" = set; then
9372 withval="$with_x"
9373 :
9374 fi
9375
9376 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9377 if test "x$with_x" = xno; then
9378 # The user explicitly disabled X.
9379 have_x=disabled
9380 else
9381 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9382 # Both variables are already set.
9383 have_x=yes
9384 else
9385 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9387 else
9388 # One or both of the vars are not set, and there is no cached value.
9389 ac_x_includes=NO ac_x_libraries=NO
9390 rm -fr conftestdir
9391 if mkdir conftestdir; then
9392 cd conftestdir
9393 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9394 cat > Imakefile <<'EOF'
9395 acfindx:
9396 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9397 EOF
9398 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9400 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9401 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9402 for ac_extension in a so sl; do
9403 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9404 test -f $ac_im_libdir/libX11.$ac_extension; then
9405 ac_im_usrlibdir=$ac_im_libdir; break
9406 fi
9407 done
9408 # Screen out bogus values from the imake configuration. They are
9409 # bogus both because they are the default anyway, and because
9410 # using them would break gcc on systems where it needs fixed includes.
9411 case "$ac_im_incroot" in
9412 /usr/include) ;;
9413 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9414 esac
9415 case "$ac_im_usrlibdir" in
9416 /usr/lib | /lib) ;;
9417 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9418 esac
9419 fi
9420 cd ..
9421 rm -fr conftestdir
9422 fi
9423
9424 if test "$ac_x_includes" = NO; then
9425 # Guess where to find include files, by looking for this one X11 .h file.
9426 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9427
9428 # First, try using that file with no special directory specified.
9429 cat > conftest.$ac_ext <<EOF
9430 #line 9431 "configure"
9431 #include "confdefs.h"
9432 #include <$x_direct_test_include>
9433 EOF
9434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9435 { (eval echo configure:9436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9437 if test -z "$ac_err"; then
9438 rm -rf conftest*
9439 # We can compile using X headers with no special include directory.
9440 ac_x_includes=
9441 else
9442 echo "$ac_err" >&5
9443 echo "configure: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9445 rm -rf conftest*
9446 # Look for the header file in a standard set of common directories.
9447 # Check X11 before X11Rn because it is often a symlink to the current release.
9448 for ac_dir in \
9449 /usr/X11/include \
9450 /usr/X11R6/include \
9451 /usr/X11R5/include \
9452 /usr/X11R4/include \
9453 \
9454 /usr/include/X11 \
9455 /usr/include/X11R6 \
9456 /usr/include/X11R5 \
9457 /usr/include/X11R4 \
9458 \
9459 /usr/local/X11/include \
9460 /usr/local/X11R6/include \
9461 /usr/local/X11R5/include \
9462 /usr/local/X11R4/include \
9463 \
9464 /usr/local/include/X11 \
9465 /usr/local/include/X11R6 \
9466 /usr/local/include/X11R5 \
9467 /usr/local/include/X11R4 \
9468 \
9469 /usr/X386/include \
9470 /usr/x386/include \
9471 /usr/XFree86/include/X11 \
9472 \
9473 /usr/include \
9474 /usr/local/include \
9475 /usr/unsupported/include \
9476 /usr/athena/include \
9477 /usr/local/x11r5/include \
9478 /usr/lpp/Xamples/include \
9479 \
9480 /usr/openwin/include \
9481 /usr/openwin/share/include \
9482 ; \
9483 do
9484 if test -r "$ac_dir/$x_direct_test_include"; then
9485 ac_x_includes=$ac_dir
9486 break
9487 fi
9488 done
9489 fi
9490 rm -f conftest*
9491 fi # $ac_x_includes = NO
9492
9493 if test "$ac_x_libraries" = NO; then
9494 # Check for the libraries.
9495
9496 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9497 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9498
9499 # See if we find them without any special options.
9500 # Don't add to $LIBS permanently.
9501 ac_save_LIBS="$LIBS"
9502 LIBS="-l$x_direct_test_library $LIBS"
9503 cat > conftest.$ac_ext <<EOF
9504 #line 9505 "configure"
9505 #include "confdefs.h"
9506
9507 int main() {
9508 ${x_direct_test_function}()
9509 ; return 0; }
9510 EOF
9511 if { (eval echo configure:9512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9512 rm -rf conftest*
9513 LIBS="$ac_save_LIBS"
9514 # We can link X programs with no special library path.
9515 ac_x_libraries=
9516 else
9517 echo "configure: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 rm -rf conftest*
9520 LIBS="$ac_save_LIBS"
9521 # First see if replacing the include by lib works.
9522 # Check X11 before X11Rn because it is often a symlink to the current release.
9523 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9524 /usr/X11/lib \
9525 /usr/X11R6/lib \
9526 /usr/X11R5/lib \
9527 /usr/X11R4/lib \
9528 \
9529 /usr/lib/X11 \
9530 /usr/lib/X11R6 \
9531 /usr/lib/X11R5 \
9532 /usr/lib/X11R4 \
9533 \
9534 /usr/local/X11/lib \
9535 /usr/local/X11R6/lib \
9536 /usr/local/X11R5/lib \
9537 /usr/local/X11R4/lib \
9538 \
9539 /usr/local/lib/X11 \
9540 /usr/local/lib/X11R6 \
9541 /usr/local/lib/X11R5 \
9542 /usr/local/lib/X11R4 \
9543 \
9544 /usr/X386/lib \
9545 /usr/x386/lib \
9546 /usr/XFree86/lib/X11 \
9547 \
9548 /usr/lib \
9549 /usr/local/lib \
9550 /usr/unsupported/lib \
9551 /usr/athena/lib \
9552 /usr/local/x11r5/lib \
9553 /usr/lpp/Xamples/lib \
9554 /lib/usr/lib/X11 \
9555 \
9556 /usr/openwin/lib \
9557 /usr/openwin/share/lib \
9558 ; \
9559 do
9560 for ac_extension in a so sl; do
9561 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9562 ac_x_libraries=$ac_dir
9563 break 2
9564 fi
9565 done
9566 done
9567 fi
9568 rm -f conftest*
9569 fi # $ac_x_libraries = NO
9570
9571 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9572 # Didn't find X anywhere. Cache the known absence of X.
9573 ac_cv_have_x="have_x=no"
9574 else
9575 # Record where we found X for the cache.
9576 ac_cv_have_x="have_x=yes \
9577 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9578 fi
9579 fi
9580 fi
9581 eval "$ac_cv_have_x"
9582 fi # $with_x != no
9583
9584 if test "$have_x" != yes; then
9585 echo "$ac_t""$have_x" 1>&6
9586 no_x=yes
9587 else
9588 # If each of the values was on the command line, it overrides each guess.
9589 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9590 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9591 # Update the cache value to reflect the command line values.
9592 ac_cv_have_x="have_x=yes \
9593 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9594 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9595 fi
9596
9597 if test "$no_x" = yes; then
9598 # Not all programs may use this symbol, but it does not hurt to define it.
9599 cat >> confdefs.h <<\EOF
9600 #define X_DISPLAY_MISSING 1
9601 EOF
9602
9603 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9604 else
9605 if test -n "$x_includes"; then
9606 X_CFLAGS="$X_CFLAGS -I$x_includes"
9607 fi
9608
9609 # It would also be nice to do this for all -L options, not just this one.
9610 if test -n "$x_libraries"; then
9611 X_LIBS="$X_LIBS -L$x_libraries"
9612 # For Solaris; some versions of Sun CC require a space after -R and
9613 # others require no space. Words are not sufficient . . . .
9614 case "`(uname -sr) 2>/dev/null`" in
9615 "SunOS 5"*)
9616 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9617 echo "configure:9618: checking whether -R must be followed by a space" >&5
9618 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9619 cat > conftest.$ac_ext <<EOF
9620 #line 9621 "configure"
9621 #include "confdefs.h"
9622
9623 int main() {
9624
9625 ; return 0; }
9626 EOF
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9628 rm -rf conftest*
9629 ac_R_nospace=yes
9630 else
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 rm -rf conftest*
9634 ac_R_nospace=no
9635 fi
9636 rm -f conftest*
9637 if test $ac_R_nospace = yes; then
9638 echo "$ac_t""no" 1>&6
9639 X_LIBS="$X_LIBS -R$x_libraries"
9640 else
9641 LIBS="$ac_xsave_LIBS -R $x_libraries"
9642 cat > conftest.$ac_ext <<EOF
9643 #line 9644 "configure"
9644 #include "confdefs.h"
9645
9646 int main() {
9647
9648 ; return 0; }
9649 EOF
9650 if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9651 rm -rf conftest*
9652 ac_R_space=yes
9653 else
9654 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 rm -rf conftest*
9657 ac_R_space=no
9658 fi
9659 rm -f conftest*
9660 if test $ac_R_space = yes; then
9661 echo "$ac_t""yes" 1>&6
9662 X_LIBS="$X_LIBS -R $x_libraries"
9663 else
9664 echo "$ac_t""neither works" 1>&6
9665 fi
9666 fi
9667 LIBS="$ac_xsave_LIBS"
9668 esac
9669 fi
9670
9671 # Check for system-dependent libraries X programs must link with.
9672 # Do this before checking for the system-independent R6 libraries
9673 # (-lICE), since we may need -lsocket or whatever for X linking.
9674
9675 if test "$ISC" = yes; then
9676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9677 else
9678 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9679 # libraries were built with DECnet support. And karl@cs.umb.edu says
9680 # the Alpha needs dnet_stub (dnet does not exist).
9681 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9682 echo "configure:9683: checking for dnet_ntoa in -ldnet" >&5
9683 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9686 else
9687 ac_save_LIBS="$LIBS"
9688 LIBS="-ldnet $LIBS"
9689 cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9692 /* Override any gcc2 internal prototype to avoid an error. */
9693 /* We use char because int might match the return type of a gcc2
9694 builtin and then its argument prototype would still apply. */
9695 char dnet_ntoa();
9696
9697 int main() {
9698 dnet_ntoa()
9699 ; return 0; }
9700 EOF
9701 if { (eval echo configure:9702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9702 rm -rf conftest*
9703 eval "ac_cv_lib_$ac_lib_var=yes"
9704 else
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9707 rm -rf conftest*
9708 eval "ac_cv_lib_$ac_lib_var=no"
9709 fi
9710 rm -f conftest*
9711 LIBS="$ac_save_LIBS"
9712
9713 fi
9714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9715 echo "$ac_t""yes" 1>&6
9716 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9717 else
9718 echo "$ac_t""no" 1>&6
9719 fi
9720
9721 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9722 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9723 echo "configure:9724: checking for dnet_ntoa in -ldnet_stub" >&5
9724 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9726 echo $ac_n "(cached) $ac_c" 1>&6
9727 else
9728 ac_save_LIBS="$LIBS"
9729 LIBS="-ldnet_stub $LIBS"
9730 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9733 /* Override any gcc2 internal prototype to avoid an error. */
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736 char dnet_ntoa();
9737
9738 int main() {
9739 dnet_ntoa()
9740 ; return 0; }
9741 EOF
9742 if { (eval echo configure:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9743 rm -rf conftest*
9744 eval "ac_cv_lib_$ac_lib_var=yes"
9745 else
9746 echo "configure: failed program was:" >&5
9747 cat conftest.$ac_ext >&5
9748 rm -rf conftest*
9749 eval "ac_cv_lib_$ac_lib_var=no"
9750 fi
9751 rm -f conftest*
9752 LIBS="$ac_save_LIBS"
9753
9754 fi
9755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9756 echo "$ac_t""yes" 1>&6
9757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9758 else
9759 echo "$ac_t""no" 1>&6
9760 fi
9761
9762 fi
9763
9764 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9765 # to get the SysV transport functions.
9766 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9767 # needs -lnsl.
9768 # The nsl library prevents programs from opening the X display
9769 # on Irix 5.2, according to dickey@clark.net.
9770 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9771 echo "configure:9772: checking for gethostbyname" >&5
9772 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9773 echo $ac_n "(cached) $ac_c" 1>&6
9774 else
9775 cat > conftest.$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 /* System header to define __stub macros and hopefully few prototypes,
9779 which can conflict with char gethostbyname(); below. */
9780 #include <assert.h>
9781 /* Override any gcc2 internal prototype to avoid an error. */
9782 /* We use char because int might match the return type of a gcc2
9783 builtin and then its argument prototype would still apply. */
9784 char gethostbyname();
9785
9786 int main() {
9787
9788 /* The GNU C library defines this for functions which it implements
9789 to always fail with ENOSYS. Some functions are actually named
9790 something starting with __ and the normal name is an alias. */
9791 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9792 choke me
9793 #else
9794 gethostbyname();
9795 #endif
9796
9797 ; return 0; }
9798 EOF
9799 if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9800 rm -rf conftest*
9801 eval "ac_cv_func_gethostbyname=yes"
9802 else
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 rm -rf conftest*
9806 eval "ac_cv_func_gethostbyname=no"
9807 fi
9808 rm -f conftest*
9809 fi
9810
9811 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9812 echo "$ac_t""yes" 1>&6
9813 :
9814 else
9815 echo "$ac_t""no" 1>&6
9816 fi
9817
9818 if test $ac_cv_func_gethostbyname = no; then
9819 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
9820 echo "configure:9821: checking for gethostbyname in -lnsl" >&5
9821 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824 else
9825 ac_save_LIBS="$LIBS"
9826 LIBS="-lnsl $LIBS"
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9830 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9833 char gethostbyname();
9834
9835 int main() {
9836 gethostbyname()
9837 ; return 0; }
9838 EOF
9839 if { (eval echo configure:9840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9840 rm -rf conftest*
9841 eval "ac_cv_lib_$ac_lib_var=yes"
9842 else
9843 echo "configure: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9845 rm -rf conftest*
9846 eval "ac_cv_lib_$ac_lib_var=no"
9847 fi
9848 rm -f conftest*
9849 LIBS="$ac_save_LIBS"
9850
9851 fi
9852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9853 echo "$ac_t""yes" 1>&6
9854 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9855 else
9856 echo "$ac_t""no" 1>&6
9857 fi
9858
9859 fi
9860
9861 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9862 # socket/setsockopt and other routines are undefined under SCO ODT
9863 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9864 # on later versions), says simon@lia.di.epfl.ch: it contains
9865 # gethostby* variants that don't use the nameserver (or something).
9866 # -lsocket must be given before -lnsl if both are needed.
9867 # We assume that if connect needs -lnsl, so does gethostbyname.
9868 echo $ac_n "checking for connect""... $ac_c" 1>&6
9869 echo "configure:9870: checking for connect" >&5
9870 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9871 echo $ac_n "(cached) $ac_c" 1>&6
9872 else
9873 cat > conftest.$ac_ext <<EOF
9874 #line 9875 "configure"
9875 #include "confdefs.h"
9876 /* System header to define __stub macros and hopefully few prototypes,
9877 which can conflict with char connect(); below. */
9878 #include <assert.h>
9879 /* Override any gcc2 internal prototype to avoid an error. */
9880 /* We use char because int might match the return type of a gcc2
9881 builtin and then its argument prototype would still apply. */
9882 char connect();
9883
9884 int main() {
9885
9886 /* The GNU C library defines this for functions which it implements
9887 to always fail with ENOSYS. Some functions are actually named
9888 something starting with __ and the normal name is an alias. */
9889 #if defined (__stub_connect) || defined (__stub___connect)
9890 choke me
9891 #else
9892 connect();
9893 #endif
9894
9895 ; return 0; }
9896 EOF
9897 if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9898 rm -rf conftest*
9899 eval "ac_cv_func_connect=yes"
9900 else
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9903 rm -rf conftest*
9904 eval "ac_cv_func_connect=no"
9905 fi
9906 rm -f conftest*
9907 fi
9908
9909 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9910 echo "$ac_t""yes" 1>&6
9911 :
9912 else
9913 echo "$ac_t""no" 1>&6
9914 fi
9915
9916 if test $ac_cv_func_connect = no; then
9917 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
9918 echo "configure:9919: checking for connect in -lsocket" >&5
9919 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9922 else
9923 ac_save_LIBS="$LIBS"
9924 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9925 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9928 /* Override any gcc2 internal prototype to avoid an error. */
9929 /* We use char because int might match the return type of a gcc2
9930 builtin and then its argument prototype would still apply. */
9931 char connect();
9932
9933 int main() {
9934 connect()
9935 ; return 0; }
9936 EOF
9937 if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9938 rm -rf conftest*
9939 eval "ac_cv_lib_$ac_lib_var=yes"
9940 else
9941 echo "configure: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 rm -rf conftest*
9944 eval "ac_cv_lib_$ac_lib_var=no"
9945 fi
9946 rm -f conftest*
9947 LIBS="$ac_save_LIBS"
9948
9949 fi
9950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9951 echo "$ac_t""yes" 1>&6
9952 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9953 else
9954 echo "$ac_t""no" 1>&6
9955 fi
9956
9957 fi
9958
9959 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9960 echo $ac_n "checking for remove""... $ac_c" 1>&6
9961 echo "configure:9962: checking for remove" >&5
9962 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9963 echo $ac_n "(cached) $ac_c" 1>&6
9964 else
9965 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 /* System header to define __stub macros and hopefully few prototypes,
9969 which can conflict with char remove(); below. */
9970 #include <assert.h>
9971 /* Override any gcc2 internal prototype to avoid an error. */
9972 /* We use char because int might match the return type of a gcc2
9973 builtin and then its argument prototype would still apply. */
9974 char remove();
9975
9976 int main() {
9977
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined (__stub_remove) || defined (__stub___remove)
9982 choke me
9983 #else
9984 remove();
9985 #endif
9986
9987 ; return 0; }
9988 EOF
9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9990 rm -rf conftest*
9991 eval "ac_cv_func_remove=yes"
9992 else
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 rm -rf conftest*
9996 eval "ac_cv_func_remove=no"
9997 fi
9998 rm -f conftest*
9999 fi
10000
10001 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10002 echo "$ac_t""yes" 1>&6
10003 :
10004 else
10005 echo "$ac_t""no" 1>&6
10006 fi
10007
10008 if test $ac_cv_func_remove = no; then
10009 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10010 echo "configure:10011: checking for remove in -lposix" >&5
10011 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10014 else
10015 ac_save_LIBS="$LIBS"
10016 LIBS="-lposix $LIBS"
10017 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10020 /* Override any gcc2 internal prototype to avoid an error. */
10021 /* We use char because int might match the return type of a gcc2
10022 builtin and then its argument prototype would still apply. */
10023 char remove();
10024
10025 int main() {
10026 remove()
10027 ; return 0; }
10028 EOF
10029 if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10030 rm -rf conftest*
10031 eval "ac_cv_lib_$ac_lib_var=yes"
10032 else
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 rm -rf conftest*
10036 eval "ac_cv_lib_$ac_lib_var=no"
10037 fi
10038 rm -f conftest*
10039 LIBS="$ac_save_LIBS"
10040
10041 fi
10042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10043 echo "$ac_t""yes" 1>&6
10044 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10045 else
10046 echo "$ac_t""no" 1>&6
10047 fi
10048
10049 fi
10050
10051 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10052 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10053 echo "configure:10054: checking for shmat" >&5
10054 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10055 echo $ac_n "(cached) $ac_c" 1>&6
10056 else
10057 cat > conftest.$ac_ext <<EOF
10058 #line 10059 "configure"
10059 #include "confdefs.h"
10060 /* System header to define __stub macros and hopefully few prototypes,
10061 which can conflict with char shmat(); below. */
10062 #include <assert.h>
10063 /* Override any gcc2 internal prototype to avoid an error. */
10064 /* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10066 char shmat();
10067
10068 int main() {
10069
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined (__stub_shmat) || defined (__stub___shmat)
10074 choke me
10075 #else
10076 shmat();
10077 #endif
10078
10079 ; return 0; }
10080 EOF
10081 if { (eval echo configure:10082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10082 rm -rf conftest*
10083 eval "ac_cv_func_shmat=yes"
10084 else
10085 echo "configure: failed program was:" >&5
10086 cat conftest.$ac_ext >&5
10087 rm -rf conftest*
10088 eval "ac_cv_func_shmat=no"
10089 fi
10090 rm -f conftest*
10091 fi
10092
10093 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10094 echo "$ac_t""yes" 1>&6
10095 :
10096 else
10097 echo "$ac_t""no" 1>&6
10098 fi
10099
10100 if test $ac_cv_func_shmat = no; then
10101 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10102 echo "configure:10103: checking for shmat in -lipc" >&5
10103 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10105 echo $ac_n "(cached) $ac_c" 1>&6
10106 else
10107 ac_save_LIBS="$LIBS"
10108 LIBS="-lipc $LIBS"
10109 cat > conftest.$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10112 /* Override any gcc2 internal prototype to avoid an error. */
10113 /* We use char because int might match the return type of a gcc2
10114 builtin and then its argument prototype would still apply. */
10115 char shmat();
10116
10117 int main() {
10118 shmat()
10119 ; return 0; }
10120 EOF
10121 if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10122 rm -rf conftest*
10123 eval "ac_cv_lib_$ac_lib_var=yes"
10124 else
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10127 rm -rf conftest*
10128 eval "ac_cv_lib_$ac_lib_var=no"
10129 fi
10130 rm -f conftest*
10131 LIBS="$ac_save_LIBS"
10132
10133 fi
10134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10135 echo "$ac_t""yes" 1>&6
10136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10137 else
10138 echo "$ac_t""no" 1>&6
10139 fi
10140
10141 fi
10142 fi
10143
10144 # Check for libraries that X11R6 Xt/Xaw programs need.
10145 ac_save_LDFLAGS="$LDFLAGS"
10146 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10147 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10148 # check for ICE first), but we must link in the order -lSM -lICE or
10149 # we get undefined symbols. So assume we have SM if we have ICE.
10150 # These have to be linked with before -lX11, unlike the other
10151 # libraries we check for below, so use a different variable.
10152 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10153 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10154 echo "configure:10155: checking for IceConnectionNumber in -lICE" >&5
10155 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10157 echo $ac_n "(cached) $ac_c" 1>&6
10158 else
10159 ac_save_LIBS="$LIBS"
10160 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10161 cat > conftest.$ac_ext <<EOF
10162 #line 10163 "configure"
10163 #include "confdefs.h"
10164 /* Override any gcc2 internal prototype to avoid an error. */
10165 /* We use char because int might match the return type of a gcc2
10166 builtin and then its argument prototype would still apply. */
10167 char IceConnectionNumber();
10168
10169 int main() {
10170 IceConnectionNumber()
10171 ; return 0; }
10172 EOF
10173 if { (eval echo configure:10174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10174 rm -rf conftest*
10175 eval "ac_cv_lib_$ac_lib_var=yes"
10176 else
10177 echo "configure: failed program was:" >&5
10178 cat conftest.$ac_ext >&5
10179 rm -rf conftest*
10180 eval "ac_cv_lib_$ac_lib_var=no"
10181 fi
10182 rm -f conftest*
10183 LIBS="$ac_save_LIBS"
10184
10185 fi
10186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10187 echo "$ac_t""yes" 1>&6
10188 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10189 else
10190 echo "$ac_t""no" 1>&6
10191 fi
10192
10193 LDFLAGS="$ac_save_LDFLAGS"
10194
10195 fi
10196
10197 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10198 LDFLAGS="$LDFLAGS $X_LIBS"
10199
10200 if test "$wxUSE_MOTIF" = 1; then
10201 if test "$no_x" = "yes"; then
10202 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10203 fi
10204
10205 GUI_TK_LIBRARY="$X_LIBS"
10206 TOOLKIT_INCLUDE="$X_CFLAGS"
10207
10208 AFMINSTALL=afminstall
10209
10210
10211 COMPILED_X_PROGRAM=0
10212
10213 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10214 echo "configure:10215: checking for Motif/Lesstif headers" >&5
10215
10216 ac_find_includes=
10217 for ac_dir in $SEARCH_INCLUDE;
10218 do
10219 if test -f "$ac_dir/Xm/Xm.h"; then
10220 ac_find_includes=$ac_dir
10221 break
10222 fi
10223 done
10224
10225 if test "$ac_find_includes" != "" ; then
10226 echo "$ac_t""found $ac_find_includes" 1>&6
10227 else
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231
10232 #include <Xm/Xm.h>
10233
10234 int main() {
10235
10236 int version;
10237
10238 version = xmUseVersion;
10239
10240 ; return 0; }
10241 EOF
10242 if { (eval echo configure:10243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10243 rm -rf conftest*
10244
10245 echo "$ac_t""found in default search path" 1>&6
10246 COMPILED_X_PROGRAM=1
10247
10248 else
10249 echo "configure: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10251 rm -rf conftest*
10252
10253 echo "$ac_t""no" 1>&6
10254 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10255
10256
10257 fi
10258 rm -f conftest*
10259 fi
10260
10261 if test "$COMPILED_X_PROGRAM" = 0; then
10262 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10263 echo "configure:10264: checking for Motif/Lesstif library" >&5
10264
10265 ac_find_libraries=
10266 for ac_dir in $SEARCH_LIB;
10267 do
10268 for ac_extension in a so sl; do
10269 if test -f "$ac_dir/libXm.$ac_extension"; then
10270 ac_find_libraries=$ac_dir
10271 break 2
10272 fi
10273 done
10274 done
10275
10276 if test "$ac_find_libraries" != "" ; then
10277
10278 ac_path_to_include=$ac_find_includes
10279 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10280 result=$?
10281 if test $result = 0; then
10282 ac_path_to_include=""
10283 else
10284 ac_path_to_include="-I$ac_find_includes"
10285 fi
10286
10287
10288 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10289 result=$?
10290 if test $result = 0; then
10291 ac_path_to_link=""
10292 else
10293 ac_path_to_link="-L$ac_find_libraries"
10294 fi
10295
10296
10297 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10298 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10299 echo "$ac_t""found at $ac_find_libraries" 1>&6
10300 else
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10304
10305 #include <Xm/Xm.h>
10306
10307 int main() {
10308
10309 int version;
10310
10311 version = xmUseVersion;
10312
10313 ; return 0; }
10314 EOF
10315 if { (eval echo configure:10316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10316 rm -rf conftest*
10317
10318 echo "$ac_t""found in default search path" 1>&6
10319 COMPILED_X_PROGRAM=1
10320
10321 else
10322 echo "configure: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10324 rm -rf conftest*
10325
10326 echo "$ac_t""no" 1>&6
10327 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10328
10329
10330 fi
10331 rm -f conftest*
10332 fi
10333 fi
10334
10335
10336 XPM_LINK=""
10337 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10338 echo "configure:10339: checking for Xpm library" >&5
10339
10340 ac_find_libraries=
10341 for ac_dir in $SEARCH_LIB;
10342 do
10343 for ac_extension in a so sl; do
10344 if test -f "$ac_dir/libXpm.$ac_extension"; then
10345 ac_find_libraries=$ac_dir
10346 break 2
10347 fi
10348 done
10349 done
10350
10351 if test "$ac_find_libraries" != "" ; then
10352
10353 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10354 result=$?
10355 if test $result = 0; then
10356 ac_path_to_link=""
10357 else
10358 ac_path_to_link="-L$ac_find_libraries"
10359 fi
10360
10361 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10362 XPM_LINK="-lXpm "
10363 cat >> confdefs.h <<\EOF
10364 #define wxHAVE_LIB_XPM 1
10365 EOF
10366
10367 echo "$ac_t""found at $ac_find_libraries" 1>&6
10368 else
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372
10373 #include <X11/xpm.h>
10374
10375 int main() {
10376
10377 int version;
10378
10379 version = XpmLibraryVersion();
10380
10381 ; return 0; }
10382 EOF
10383 if { (eval echo configure:10384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10384 rm -rf conftest*
10385
10386 XPM_LINK="-lXpm "
10387 cat >> confdefs.h <<\EOF
10388 #define wxHAVE_LIB_XPM 1
10389 EOF
10390
10391 echo "$ac_t""found in default search path" 1>&6
10392 COMPILED_X_PROGRAM=0
10393
10394 else
10395 echo "configure: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10397 rm -rf conftest*
10398
10399 echo "$ac_t""no" 1>&6
10400 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10401
10402
10403 fi
10404 rm -f conftest*
10405 fi
10406
10407 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10408 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10409 TOOLKIT=MOTIF
10410 GUIDIST=MOTIF_DIST
10411 fi
10412
10413 if test "$wxUSE_MAC" = 1; then
10414 TOOLKIT=MAC
10415 GUIDIST=MACX_DIST
10416 fi
10417
10418 if test "$wxUSE_PM" = 1; then
10419 TOOLKIT=PM
10420 GUIDIST=GTK_DIST
10421 fi
10422
10423 if test "$TOOLKIT" != "PM" ; then
10424 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10425 else
10426 TOOLKIT_DIR="os2"
10427 fi
10428
10429 TOOLKIT_NAME="${TOOLKIT_DIR}"
10430
10431 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10432
10433 if test "$TOOLKIT_NAME" = "motif"; then
10434 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10435 fi
10436
10437 if test "$wxUSE_UNIVERSAL" = "yes"; then
10438 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10439 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10440 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10441 SETUPH_DIR="univ"
10442 else
10443 SETUPH_DIR="${TOOLKIT_DIR}"
10444 fi
10445
10446 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10447 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10448 fi
10449
10450 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10451 if test "$wxUSE_UNIVERSAL" = "yes"; then
10452 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10453 fi
10454
10455 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10456
10457 if test "$wxUSE_UNIVERSAL" = "yes"; then
10458 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10459 else
10460 ALL_OBJECTS="\$(GUIOBJS)"
10461 fi
10462
10463 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10464
10465 if test "$TOOLKIT" != "MSW"; then
10466 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10467 fi
10468
10469 if test "$wxUSE_HTML" = "yes"; then
10470 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10471 fi
10472
10473 if test "$TOOLKIT" != "MSW"; then
10474 if test "$wxUSE_ODBC" = "yes" ; then
10475 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10476 fi
10477 fi
10478
10479 if test "$wxUSE_LIBJPEG" = "yes" ; then
10480 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10481 fi
10482 if test "$wxUSE_LIBTIFF" = "yes" ; then
10483 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10484 fi
10485 if test "$wxUSE_LIBPNG" = "yes" ; then
10486 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10487 fi
10488 if test "$wxUSE_ZLIB" = "yes" ; then
10489 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10490 fi
10491 if test "$wxUSE_FREETYPE" = "yes" ; then
10492 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10493 fi
10494
10495 if test "$wxUSE_UNIVERSAL" = "yes"; then
10496 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10497 else
10498 ALL_DEPFILES="\$(GUIDEPS)"
10499 fi
10500
10501 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10502
10503 if test "$TOOLKIT" != "MSW"; then
10504 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10505 fi
10506
10507 if test "$wxUSE_HTML" = "yes"; then
10508 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10509 fi
10510
10511 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10512 if test "$wxUSE_UNIVERSAL" = "yes"; then
10513 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10514 fi
10515 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10516 RPM_SPEC="wx\$(TOOLKIT).spec"
10517
10518 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10519 DISTDIR="wx\$(TOOLKIT)"
10520 else
10521 USE_GUI=0
10522
10523 TOOLKIT_DIR="base"
10524
10525 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10526 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10527 else
10528 TOOLKIT_NAME="${TOOLKIT_DIR}"
10529 fi
10530
10531 TOOLKIT_DEF="-D__WXBASE__"
10532
10533 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10534 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10535
10536 if test "$wxUSE_ZLIB" = "yes" ; then
10537 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10538 fi
10539
10540 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10541
10542 PORT_FILES="src/files.lst"
10543 RPM_FILES="src/rpmfiles.lst"
10544 RPM_SPEC="wxBase.spec"
10545
10546 GUIDIST="BASE_DIST"
10547 DISTDIR="wxBase"
10548 fi
10549
10550 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10551 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10552
10553 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10554 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10555
10556 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10557 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10558
10559 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10560 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10561 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10562 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10563 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10564 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10565
10566 SHARED_LD=
10567 PIC_FLAG=
10568 WX_ALL=
10569 WX_ALL_INSTALLED=
10570 BURNT_LIBRARY_NAME=
10571 WX_TARGET_LIBRARY_SONAME=
10572
10573
10574 if test "$wxUSE_SHARED" = "yes"; then
10575 case "${host}" in
10576 *-hp-hpux* )
10577 if test "$GCC" = yes ; then
10578 SHARED_LD="${CC} -shared -fPIC -o"
10579 PIC_FLAG="-fPIC"
10580 else
10581 LDFLAGS="-L/usr/lib"
10582
10583 SHARED_LD="${CXX} -b -o"
10584 PIC_FLAG="+Z"
10585 fi
10586 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10587 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10588 if test "$wxUSE_OPENGL" = "yes"; then
10589 WX_ALL_INSTALLED="preinstall_gl"
10590 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10591 else
10592 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10593 fi
10594 ;;
10595
10596 *-*-linux* )
10597 SHARED_LD="${CC} -shared -o"
10598 PIC_FLAG="-fPIC"
10599 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10600 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10601 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10602 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10603 fi
10604 if test "$wxUSE_OPENGL" = "yes"; then
10605 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10606 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10607 else
10608 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10609 WX_ALL="CREATE_LINKS"
10610 fi
10611 ;;
10612 *-*-irix5* | *-*-irix6* )
10613 if test "$GCC" = yes ; then
10614 SHARED_LD="${CC} -shared -o"
10615 PIC_FLAG="-fPIC"
10616 else
10617 SHARED_LD="${CXX} -shared -o"
10618 fi
10619 if test "$wxUSE_OPENGL" = "yes"; then
10620 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10621 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10622 else
10623 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10624 WX_ALL="CREATE_LINKS"
10625 fi
10626 ;;
10627 *-*-solaris2* )
10628 if test "$GCC" = yes ; then
10629 SHARED_LD="${CC} -shared -o"
10630 PIC_FLAG="-fPIC"
10631
10632 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10633 else
10634 SHARED_LD="${CXX} -G -o"
10635 PIC_FLAG="-KPIC"
10636 fi
10637 if test "$wxUSE_OPENGL" = "yes"; then
10638 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10639 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10640 else
10641 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10642 WX_ALL="CREATE_LINKS"
10643 fi
10644 ;;
10645 *-*-sunos4* )
10646 SHARED_LD="${CC} -shared -o"
10647 PIC_FLAG="-fPIC"
10648 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10649 WX_ALL="CREATE_LINKS"
10650 ;;
10651 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10652 SHARED_LD="${CC} -shared -o"
10653 PIC_FLAG="-fPIC"
10654 if test "$wxUSE_OPENGL" = "yes"; then
10655 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10656 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10657 else
10658 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10659 WX_ALL="CREATE_LINKS"
10660 fi
10661 ;;
10662 *-*-darwin* )
10663 SHARED_LD="${CXX} -dynamiclib -o"
10664 PIC_FLAG="-dynamic -fPIC"
10665 if test "$wxUSE_OPENGL" = "yes"; then
10666 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10667 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10668 else
10669 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10670 WX_ALL="CREATE_LINKS"
10671 fi
10672 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10673 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10674 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10675 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10676 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10677 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10678 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10679 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10680 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10681 ;;
10682 *-*-osf* )
10683 SHARED_LD="${CXX} -shared -o"
10684 PIC_FLAG="-fPIC"
10685 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10686 WX_ALL="CREATE_LINKS"
10687 ;;
10688 *-*-dgux5* )
10689 SHARED_LD="${CXX} -shared -o"
10690 PIC_FLAG="-fPIC"
10691 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10692 WX_ALL="CREATE_LINKS"
10693 ;;
10694 *-*-sysv5* )
10695 SHARED_LD="${CC} -shared -o"
10696 PIC_FLAG="-fPIC"
10697 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10698 WX_ALL="CREATE_LINKS"
10699 ;;
10700 *-*-aix* )
10701 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10702 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10703 ;;
10704 *-*-cygwin* )
10705 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10706 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10707 if test "$wxUSE_OPENGL" = "yes"; then
10708 WX_ALL_INSTALLED="preinstall_gl"
10709 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10710 else
10711 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10712 fi
10713 ;;
10714 *-*-mingw32* )
10715 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10716 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10717 if test "$wxUSE_OPENGL" = "yes"; then
10718 WX_ALL_INSTALLED="preinstall_gl"
10719 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10720 else
10721 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10722 fi
10723 ;;
10724 *-pc-os2_emx )
10725 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10726 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10727 ;;
10728 *-*-beos* )
10729 SHARED_LD="${LD} -shared -o"
10730 PIC_FLAG="-fPIC"
10731 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10732 WX_ALL="CREATE_LINKS"
10733 ;;
10734 *)
10735 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10736 esac
10737
10738 if test "x$WX_TARGET_LIBRARY" = "x"; then
10739 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10740 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10741 fi
10742 WX_TARGET_LIBRARY_TYPE="so"
10743 else
10744 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10745 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10746
10747 if test "$wxUSE_OPENGL" = "yes"; then
10748 WX_ALL_INSTALLED="preinstall_gl"
10749 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10750 else
10751 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10752 fi
10753
10754 if test "$wxUSE_GUI" = "no"; then
10755 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10756 fi
10757
10758 WX_TARGET_LIBRARY_TYPE="a"
10759 fi
10760
10761
10762 for ac_hdr in strings.h
10763 do
10764 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10766 echo "configure:10767: checking for $ac_hdr" >&5
10767 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10768 echo $ac_n "(cached) $ac_c" 1>&6
10769 else
10770 cat > conftest.$ac_ext <<EOF
10771 #line 10772 "configure"
10772 #include "confdefs.h"
10773 #include <$ac_hdr>
10774 EOF
10775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10776 { (eval echo configure:10777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10778 if test -z "$ac_err"; then
10779 rm -rf conftest*
10780 eval "ac_cv_header_$ac_safe=yes"
10781 else
10782 echo "$ac_err" >&5
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10785 rm -rf conftest*
10786 eval "ac_cv_header_$ac_safe=no"
10787 fi
10788 rm -f conftest*
10789 fi
10790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10791 echo "$ac_t""yes" 1>&6
10792 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10793 cat >> confdefs.h <<EOF
10794 #define $ac_tr_hdr 1
10795 EOF
10796
10797 else
10798 echo "$ac_t""no" 1>&6
10799 fi
10800 done
10801
10802 for ac_hdr in stdlib.h
10803 do
10804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10806 echo "configure:10807: checking for $ac_hdr" >&5
10807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10808 echo $ac_n "(cached) $ac_c" 1>&6
10809 else
10810 cat > conftest.$ac_ext <<EOF
10811 #line 10812 "configure"
10812 #include "confdefs.h"
10813 #include <$ac_hdr>
10814 EOF
10815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10816 { (eval echo configure:10817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10818 if test -z "$ac_err"; then
10819 rm -rf conftest*
10820 eval "ac_cv_header_$ac_safe=yes"
10821 else
10822 echo "$ac_err" >&5
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 rm -rf conftest*
10826 eval "ac_cv_header_$ac_safe=no"
10827 fi
10828 rm -f conftest*
10829 fi
10830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10831 echo "$ac_t""yes" 1>&6
10832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10833 cat >> confdefs.h <<EOF
10834 #define $ac_tr_hdr 1
10835 EOF
10836
10837 else
10838 echo "$ac_t""no" 1>&6
10839 fi
10840 done
10841
10842 for ac_hdr in unistd.h
10843 do
10844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10846 echo "configure:10847: checking for $ac_hdr" >&5
10847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10848 echo $ac_n "(cached) $ac_c" 1>&6
10849 else
10850 cat > conftest.$ac_ext <<EOF
10851 #line 10852 "configure"
10852 #include "confdefs.h"
10853 #include <$ac_hdr>
10854 EOF
10855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10856 { (eval echo configure:10857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10858 if test -z "$ac_err"; then
10859 rm -rf conftest*
10860 eval "ac_cv_header_$ac_safe=yes"
10861 else
10862 echo "$ac_err" >&5
10863 echo "configure: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10865 rm -rf conftest*
10866 eval "ac_cv_header_$ac_safe=no"
10867 fi
10868 rm -f conftest*
10869 fi
10870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10871 echo "$ac_t""yes" 1>&6
10872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10873 cat >> confdefs.h <<EOF
10874 #define $ac_tr_hdr 1
10875 EOF
10876
10877 else
10878 echo "$ac_t""no" 1>&6
10879 fi
10880 done
10881
10882 for ac_hdr in wchar.h
10883 do
10884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10886 echo "configure:10887: checking for $ac_hdr" >&5
10887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10888 echo $ac_n "(cached) $ac_c" 1>&6
10889 else
10890 cat > conftest.$ac_ext <<EOF
10891 #line 10892 "configure"
10892 #include "confdefs.h"
10893 #include <$ac_hdr>
10894 EOF
10895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10896 { (eval echo configure:10897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10898 if test -z "$ac_err"; then
10899 rm -rf conftest*
10900 eval "ac_cv_header_$ac_safe=yes"
10901 else
10902 echo "$ac_err" >&5
10903 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
10905 rm -rf conftest*
10906 eval "ac_cv_header_$ac_safe=no"
10907 fi
10908 rm -f conftest*
10909 fi
10910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10911 echo "$ac_t""yes" 1>&6
10912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10913 cat >> confdefs.h <<EOF
10914 #define $ac_tr_hdr 1
10915 EOF
10916
10917 else
10918 echo "$ac_t""no" 1>&6
10919 fi
10920 done
10921
10922 for ac_hdr in wcstr.h
10923 do
10924 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10926 echo "configure:10927: checking for $ac_hdr" >&5
10927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10928 echo $ac_n "(cached) $ac_c" 1>&6
10929 else
10930 cat > conftest.$ac_ext <<EOF
10931 #line 10932 "configure"
10932 #include "confdefs.h"
10933 #include <$ac_hdr>
10934 EOF
10935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10936 { (eval echo configure:10937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10938 if test -z "$ac_err"; then
10939 rm -rf conftest*
10940 eval "ac_cv_header_$ac_safe=yes"
10941 else
10942 echo "$ac_err" >&5
10943 echo "configure: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10945 rm -rf conftest*
10946 eval "ac_cv_header_$ac_safe=no"
10947 fi
10948 rm -f conftest*
10949 fi
10950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10951 echo "$ac_t""yes" 1>&6
10952 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10953 cat >> confdefs.h <<EOF
10954 #define $ac_tr_hdr 1
10955 EOF
10956
10957 else
10958 echo "$ac_t""no" 1>&6
10959 fi
10960 done
10961
10962 for ac_hdr in fnmatch.h
10963 do
10964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10966 echo "configure:10967: checking for $ac_hdr" >&5
10967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10968 echo $ac_n "(cached) $ac_c" 1>&6
10969 else
10970 cat > conftest.$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10973 #include <$ac_hdr>
10974 EOF
10975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10976 { (eval echo configure:10977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10978 if test -z "$ac_err"; then
10979 rm -rf conftest*
10980 eval "ac_cv_header_$ac_safe=yes"
10981 else
10982 echo "$ac_err" >&5
10983 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10985 rm -rf conftest*
10986 eval "ac_cv_header_$ac_safe=no"
10987 fi
10988 rm -f conftest*
10989 fi
10990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10991 echo "$ac_t""yes" 1>&6
10992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10993 cat >> confdefs.h <<EOF
10994 #define $ac_tr_hdr 1
10995 EOF
10996
10997 else
10998 echo "$ac_t""no" 1>&6
10999 fi
11000 done
11001
11002 for ac_hdr in iconv.h
11003 do
11004 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11006 echo "configure:11007: checking for $ac_hdr" >&5
11007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11008 echo $ac_n "(cached) $ac_c" 1>&6
11009 else
11010 cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11013 #include <$ac_hdr>
11014 EOF
11015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11016 { (eval echo configure:11017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11018 if test -z "$ac_err"; then
11019 rm -rf conftest*
11020 eval "ac_cv_header_$ac_safe=yes"
11021 else
11022 echo "$ac_err" >&5
11023 echo "configure: failed program was:" >&5
11024 cat conftest.$ac_ext >&5
11025 rm -rf conftest*
11026 eval "ac_cv_header_$ac_safe=no"
11027 fi
11028 rm -f conftest*
11029 fi
11030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11031 echo "$ac_t""yes" 1>&6
11032 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11033 cat >> confdefs.h <<EOF
11034 #define $ac_tr_hdr 1
11035 EOF
11036
11037 else
11038 echo "$ac_t""no" 1>&6
11039 fi
11040 done
11041
11042 for ac_hdr in langinfo.h
11043 do
11044 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11045 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11046 echo "configure:11047: checking for $ac_hdr" >&5
11047 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049 else
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11053 #include <$ac_hdr>
11054 EOF
11055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11056 { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11058 if test -z "$ac_err"; then
11059 rm -rf conftest*
11060 eval "ac_cv_header_$ac_safe=yes"
11061 else
11062 echo "$ac_err" >&5
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 rm -rf conftest*
11066 eval "ac_cv_header_$ac_safe=no"
11067 fi
11068 rm -f conftest*
11069 fi
11070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11071 echo "$ac_t""yes" 1>&6
11072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11073 cat >> confdefs.h <<EOF
11074 #define $ac_tr_hdr 1
11075 EOF
11076
11077 else
11078 echo "$ac_t""no" 1>&6
11079 fi
11080 done
11081
11082
11083 if test "$wxUSE_GUI" = "yes"; then
11084 if test "$wxUSE_UNIX" = "yes"; then
11085 for ac_hdr in X11/XKBlib.h
11086 do
11087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11089 echo "configure:11090: checking for $ac_hdr" >&5
11090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11091 echo $ac_n "(cached) $ac_c" 1>&6
11092 else
11093 cat > conftest.$ac_ext <<EOF
11094 #line 11095 "configure"
11095 #include "confdefs.h"
11096 #include <$ac_hdr>
11097 EOF
11098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11099 { (eval echo configure:11100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11101 if test -z "$ac_err"; then
11102 rm -rf conftest*
11103 eval "ac_cv_header_$ac_safe=yes"
11104 else
11105 echo "$ac_err" >&5
11106 echo "configure: failed program was:" >&5
11107 cat conftest.$ac_ext >&5
11108 rm -rf conftest*
11109 eval "ac_cv_header_$ac_safe=no"
11110 fi
11111 rm -f conftest*
11112 fi
11113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11114 echo "$ac_t""yes" 1>&6
11115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11116 cat >> confdefs.h <<EOF
11117 #define $ac_tr_hdr 1
11118 EOF
11119
11120 else
11121 echo "$ac_t""no" 1>&6
11122 fi
11123 done
11124
11125 fi
11126 fi
11127
11128
11129 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11130 echo "configure:11131: checking for ANSI C header files" >&5
11131 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11132 echo $ac_n "(cached) $ac_c" 1>&6
11133 else
11134 cat > conftest.$ac_ext <<EOF
11135 #line 11136 "configure"
11136 #include "confdefs.h"
11137 #include <stdlib.h>
11138 #include <stdarg.h>
11139 #include <string.h>
11140 #include <float.h>
11141 EOF
11142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11143 { (eval echo configure:11144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11145 if test -z "$ac_err"; then
11146 rm -rf conftest*
11147 ac_cv_header_stdc=yes
11148 else
11149 echo "$ac_err" >&5
11150 echo "configure: failed program was:" >&5
11151 cat conftest.$ac_ext >&5
11152 rm -rf conftest*
11153 ac_cv_header_stdc=no
11154 fi
11155 rm -f conftest*
11156
11157 if test $ac_cv_header_stdc = yes; then
11158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11159 cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11162 #include <string.h>
11163 EOF
11164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11165 egrep "memchr" >/dev/null 2>&1; then
11166 :
11167 else
11168 rm -rf conftest*
11169 ac_cv_header_stdc=no
11170 fi
11171 rm -f conftest*
11172
11173 fi
11174
11175 if test $ac_cv_header_stdc = yes; then
11176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11177 cat > conftest.$ac_ext <<EOF
11178 #line 11179 "configure"
11179 #include "confdefs.h"
11180 #include <stdlib.h>
11181 EOF
11182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11183 egrep "free" >/dev/null 2>&1; then
11184 :
11185 else
11186 rm -rf conftest*
11187 ac_cv_header_stdc=no
11188 fi
11189 rm -f conftest*
11190
11191 fi
11192
11193 if test $ac_cv_header_stdc = yes; then
11194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11195 if test "$cross_compiling" = yes; then
11196 :
11197 else
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 #include <ctype.h>
11202 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11203 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11205 int main () { int i; for (i = 0; i < 256; i++)
11206 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11207 exit (0); }
11208
11209 EOF
11210 if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11211 then
11212 :
11213 else
11214 echo "configure: failed program was:" >&5
11215 cat conftest.$ac_ext >&5
11216 rm -fr conftest*
11217 ac_cv_header_stdc=no
11218 fi
11219 rm -fr conftest*
11220 fi
11221
11222 fi
11223 fi
11224
11225 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11226 if test $ac_cv_header_stdc = yes; then
11227 cat >> confdefs.h <<\EOF
11228 #define STDC_HEADERS 1
11229 EOF
11230
11231 fi
11232
11233 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11234 echo "configure:11235: checking for mode_t" >&5
11235 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11236 echo $ac_n "(cached) $ac_c" 1>&6
11237 else
11238 cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11241 #include <sys/types.h>
11242 #if STDC_HEADERS
11243 #include <stdlib.h>
11244 #include <stddef.h>
11245 #endif
11246 EOF
11247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11248 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11249 rm -rf conftest*
11250 ac_cv_type_mode_t=yes
11251 else
11252 rm -rf conftest*
11253 ac_cv_type_mode_t=no
11254 fi
11255 rm -f conftest*
11256
11257 fi
11258 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11259 if test $ac_cv_type_mode_t = no; then
11260 cat >> confdefs.h <<\EOF
11261 #define mode_t int
11262 EOF
11263
11264 fi
11265
11266 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11267 echo "configure:11268: checking for off_t" >&5
11268 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11269 echo $ac_n "(cached) $ac_c" 1>&6
11270 else
11271 cat > conftest.$ac_ext <<EOF
11272 #line 11273 "configure"
11273 #include "confdefs.h"
11274 #include <sys/types.h>
11275 #if STDC_HEADERS
11276 #include <stdlib.h>
11277 #include <stddef.h>
11278 #endif
11279 EOF
11280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11281 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11282 rm -rf conftest*
11283 ac_cv_type_off_t=yes
11284 else
11285 rm -rf conftest*
11286 ac_cv_type_off_t=no
11287 fi
11288 rm -f conftest*
11289
11290 fi
11291 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11292 if test $ac_cv_type_off_t = no; then
11293 cat >> confdefs.h <<\EOF
11294 #define off_t long
11295 EOF
11296
11297 fi
11298
11299 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11300 echo "configure:11301: checking for pid_t" >&5
11301 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303 else
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307 #include <sys/types.h>
11308 #if STDC_HEADERS
11309 #include <stdlib.h>
11310 #include <stddef.h>
11311 #endif
11312 EOF
11313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11314 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11315 rm -rf conftest*
11316 ac_cv_type_pid_t=yes
11317 else
11318 rm -rf conftest*
11319 ac_cv_type_pid_t=no
11320 fi
11321 rm -f conftest*
11322
11323 fi
11324 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11325 if test $ac_cv_type_pid_t = no; then
11326 cat >> confdefs.h <<\EOF
11327 #define pid_t int
11328 EOF
11329
11330 fi
11331
11332 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11333 echo "configure:11334: checking for size_t" >&5
11334 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11336 else
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11340 #include <sys/types.h>
11341 #if STDC_HEADERS
11342 #include <stdlib.h>
11343 #include <stddef.h>
11344 #endif
11345 EOF
11346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11347 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11348 rm -rf conftest*
11349 ac_cv_type_size_t=yes
11350 else
11351 rm -rf conftest*
11352 ac_cv_type_size_t=no
11353 fi
11354 rm -f conftest*
11355
11356 fi
11357 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11358 if test $ac_cv_type_size_t = no; then
11359 cat >> confdefs.h <<\EOF
11360 #define size_t unsigned
11361 EOF
11362
11363 fi
11364
11365 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11366 echo "configure:11367: checking for uid_t in sys/types.h" >&5
11367 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11368 echo $ac_n "(cached) $ac_c" 1>&6
11369 else
11370 cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure"
11372 #include "confdefs.h"
11373 #include <sys/types.h>
11374 EOF
11375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11376 egrep "uid_t" >/dev/null 2>&1; then
11377 rm -rf conftest*
11378 ac_cv_type_uid_t=yes
11379 else
11380 rm -rf conftest*
11381 ac_cv_type_uid_t=no
11382 fi
11383 rm -f conftest*
11384
11385 fi
11386
11387 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11388 if test $ac_cv_type_uid_t = no; then
11389 cat >> confdefs.h <<\EOF
11390 #define uid_t int
11391 EOF
11392
11393 cat >> confdefs.h <<\EOF
11394 #define gid_t int
11395 EOF
11396
11397 fi
11398
11399
11400 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11401 echo "configure:11402: checking for wchar_t" >&5
11402 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11403 echo $ac_n "(cached) $ac_c" 1>&6
11404 else
11405
11406 cat > conftest.$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11409 #include <wchar.h>
11410 int main() {
11411
11412 wchar_t wc, *ws;
11413 wc = L'a';
11414 ws = L"Hello, world!";
11415
11416 ; return 0; }
11417 EOF
11418 if { (eval echo configure:11419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11419 rm -rf conftest*
11420 wx_cv_type_wchar_t=yes
11421 else
11422 echo "configure: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 rm -rf conftest*
11425 cat > conftest.$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11428 #include <stdlib.h>
11429 int main() {
11430
11431 wchar_t wc, *ws;
11432 wc = L'a';
11433 ws = L"Hello, world!";
11434
11435 ; return 0; }
11436 EOF
11437 if { (eval echo configure:11438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11438 rm -rf conftest*
11439 wx_cv_type_wchar_t=yes
11440 else
11441 echo "configure: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11443 rm -rf conftest*
11444 wx_cv_type_wchar_t=no
11445 fi
11446 rm -f conftest*
11447
11448 fi
11449 rm -f conftest*
11450
11451 fi
11452
11453 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11454
11455 if test "$wx_cv_type_wchar_t" = "yes"; then
11456 cat >> confdefs.h <<\EOF
11457 #define wxUSE_WCHAR_T 1
11458 EOF
11459
11460 fi
11461
11462
11463 ac_ext=C
11464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11465 ac_cpp='$CXXCPP $CPPFLAGS'
11466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11468 cross_compiling=$ac_cv_prog_cxx_cross
11469
11470 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11471 echo "configure:11472: checking if size_t is unsigned int" >&5
11472 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11474 else
11475 cat > conftest.$ac_ext <<EOF
11476 #line 11477 "configure"
11477 #include "confdefs.h"
11478 #include <stddef.h>
11479 int main() {
11480
11481 return 0; }
11482
11483 struct Foo { void foo(size_t); void foo(unsigned int); };
11484
11485 int bar() {
11486
11487 ; return 0; }
11488 EOF
11489 if { (eval echo configure:11490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11490 rm -rf conftest*
11491 wx_cv_size_t_is_uint=no
11492 else
11493 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11495 rm -rf conftest*
11496 wx_cv_size_t_is_uint=yes
11497
11498 fi
11499 rm -f conftest*
11500
11501 fi
11502
11503 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11504
11505 if test "$wx_cv_size_t_is_uint" = "yes"; then
11506 cat >> confdefs.h <<\EOF
11507 #define wxSIZE_T_IS_UINT 1
11508 EOF
11509
11510 else
11511 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11512 echo "configure:11513: checking if size_t is unsigned long" >&5
11513 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11514 echo $ac_n "(cached) $ac_c" 1>&6
11515 else
11516 cat > conftest.$ac_ext <<EOF
11517 #line 11518 "configure"
11518 #include "confdefs.h"
11519 #include <stddef.h>
11520 int main() {
11521
11522 return 0; }
11523
11524 struct Foo { void foo(size_t); void foo(unsigned long); };
11525
11526 int bar() {
11527
11528 ; return 0; }
11529 EOF
11530 if { (eval echo configure:11531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11531 rm -rf conftest*
11532 wx_cv_size_t_is_ulong=no
11533 else
11534 echo "configure: failed program was:" >&5
11535 cat conftest.$ac_ext >&5
11536 rm -rf conftest*
11537 wx_cv_size_t_is_ulong=yes
11538
11539 fi
11540 rm -f conftest*
11541
11542 fi
11543
11544 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11545
11546 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11547 cat >> confdefs.h <<\EOF
11548 #define wxSIZE_T_IS_ULONG 1
11549 EOF
11550
11551 fi
11552 fi
11553
11554 ac_ext=c
11555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11556 ac_cpp='$CPP $CPPFLAGS'
11557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11559 cross_compiling=$ac_cv_prog_cc_cross
11560
11561
11562
11563 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11564 echo "configure:11565: checking for pw_gecos in struct passwd" >&5
11565 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11566 echo $ac_n "(cached) $ac_c" 1>&6
11567 else
11568
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11571 "configure"
11571 #include "confdefs.h"
11572 #include <pwd.h>
11573 int main() {
11574
11575 char *p;
11576 struct passwd *pw;
11577 p = pw->pw_gecos;
11578
11579 ; return 0; }
11580 EOF
11581 if { (eval echo configure:11582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11582 rm -rf conftest*
11583
11584 wx_cv_struct_pw_gecos=yes
11585
11586 else
11587 echo "configure: failed program was:" >&5
11588 cat conftest.$ac_ext >&5
11589 rm -rf conftest*
11590
11591 wx_cv_struct_pw_gecos=no
11592
11593
11594 fi
11595 rm -f conftest*
11596
11597
11598 fi
11599
11600 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11601
11602 if test "$wx_cv_struct_pw_gecos" = "yes"; then
11603 cat >> confdefs.h <<\EOF
11604 #define HAVE_PW_GECOS 1
11605 EOF
11606
11607 fi
11608
11609
11610 echo $ac_n "checking for working const""... $ac_c" 1>&6
11611 echo "configure:11612: checking for working const" >&5
11612 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11613 echo $ac_n "(cached) $ac_c" 1>&6
11614 else
11615 cat > conftest.$ac_ext <<EOF
11616 #line 11617 "configure"
11617 #include "confdefs.h"
11618
11619 int main() {
11620
11621 /* Ultrix mips cc rejects this. */
11622 typedef int charset[2]; const charset x;
11623 /* SunOS 4.1.1 cc rejects this. */
11624 char const *const *ccp;
11625 char **p;
11626 /* NEC SVR4.0.2 mips cc rejects this. */
11627 struct point {int x, y;};
11628 static struct point const zero = {0,0};
11629 /* AIX XL C 1.02.0.0 rejects this.
11630 It does not let you subtract one const X* pointer from another in an arm
11631 of an if-expression whose if-part is not a constant expression */
11632 const char *g = "string";
11633 ccp = &g + (g ? g-g : 0);
11634 /* HPUX 7.0 cc rejects these. */
11635 ++ccp;
11636 p = (char**) ccp;
11637 ccp = (char const *const *) p;
11638 { /* SCO 3.2v4 cc rejects this. */
11639 char *t;
11640 char const *s = 0 ? (char *) 0 : (char const *) 0;
11641
11642 *t++ = 0;
11643 }
11644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11645 int x[] = {25, 17};
11646 const int *foo = &x[0];
11647 ++foo;
11648 }
11649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11650 typedef const int *iptr;
11651 iptr p = 0;
11652 ++p;
11653 }
11654 { /* AIX XL C 1.02.0.0 rejects this saying
11655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11656 struct s { int j; const int *ap[3]; };
11657 struct s *b; b->j = 5;
11658 }
11659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11660 const int foo = 10;
11661 }
11662
11663 ; return 0; }
11664 EOF
11665 if { (eval echo configure:11666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11666 rm -rf conftest*
11667 ac_cv_c_const=yes
11668 else
11669 echo "configure: failed program was:" >&5
11670 cat conftest.$ac_ext >&5
11671 rm -rf conftest*
11672 ac_cv_c_const=no
11673 fi
11674 rm -f conftest*
11675 fi
11676
11677 echo "$ac_t""$ac_cv_c_const" 1>&6
11678 if test $ac_cv_c_const = no; then
11679 cat >> confdefs.h <<\EOF
11680 #define const
11681 EOF
11682
11683 fi
11684
11685 echo $ac_n "checking for inline""... $ac_c" 1>&6
11686 echo "configure:11687: checking for inline" >&5
11687 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11688 echo $ac_n "(cached) $ac_c" 1>&6
11689 else
11690 ac_cv_c_inline=no
11691 for ac_kw in inline __inline__ __inline; do
11692 cat > conftest.$ac_ext <<EOF
11693 #line 11694 "configure"
11694 #include "confdefs.h"
11695
11696 int main() {
11697 } $ac_kw foo() {
11698 ; return 0; }
11699 EOF
11700 if { (eval echo configure:11701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11701 rm -rf conftest*
11702 ac_cv_c_inline=$ac_kw; break
11703 else
11704 echo "configure: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11706 fi
11707 rm -f conftest*
11708 done
11709
11710 fi
11711
11712 echo "$ac_t""$ac_cv_c_inline" 1>&6
11713 case "$ac_cv_c_inline" in
11714 inline | yes) ;;
11715 no) cat >> confdefs.h <<\EOF
11716 #define inline
11717 EOF
11718 ;;
11719 *) cat >> confdefs.h <<EOF
11720 #define inline $ac_cv_c_inline
11721 EOF
11722 ;;
11723 esac
11724
11725
11726 echo $ac_n "checking size of char""... $ac_c" 1>&6
11727 echo "configure:11728: checking size of char" >&5
11728 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11730 else
11731 if test "$cross_compiling" = yes; then
11732 ac_cv_sizeof_char=1
11733 else
11734 cat > conftest.$ac_ext <<EOF
11735 #line 11736 "configure"
11736 #include "confdefs.h"
11737 #include <stdio.h>
11738 main()
11739 {
11740 FILE *f=fopen("conftestval", "w");
11741 if (!f) exit(1);
11742 fprintf(f, "%d\n", sizeof(char));
11743 exit(0);
11744 }
11745 EOF
11746 if { (eval echo configure:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11747 then
11748 ac_cv_sizeof_char=`cat conftestval`
11749 else
11750 echo "configure: failed program was:" >&5
11751 cat conftest.$ac_ext >&5
11752 rm -fr conftest*
11753 ac_cv_sizeof_char=0
11754 fi
11755 rm -fr conftest*
11756 fi
11757
11758 fi
11759 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11760 cat >> confdefs.h <<EOF
11761 #define SIZEOF_CHAR $ac_cv_sizeof_char
11762 EOF
11763
11764
11765 echo $ac_n "checking size of short""... $ac_c" 1>&6
11766 echo "configure:11767: checking size of short" >&5
11767 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
11769 else
11770 if test "$cross_compiling" = yes; then
11771 ac_cv_sizeof_short=2
11772 else
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 #include <stdio.h>
11777 main()
11778 {
11779 FILE *f=fopen("conftestval", "w");
11780 if (!f) exit(1);
11781 fprintf(f, "%d\n", sizeof(short));
11782 exit(0);
11783 }
11784 EOF
11785 if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11786 then
11787 ac_cv_sizeof_short=`cat conftestval`
11788 else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -fr conftest*
11792 ac_cv_sizeof_short=0
11793 fi
11794 rm -fr conftest*
11795 fi
11796
11797 fi
11798 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11799 cat >> confdefs.h <<EOF
11800 #define SIZEOF_SHORT $ac_cv_sizeof_short
11801 EOF
11802
11803
11804 echo $ac_n "checking size of int *""... $ac_c" 1>&6
11805 echo "configure:11806: checking size of int *" >&5
11806 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11807 echo $ac_n "(cached) $ac_c" 1>&6
11808 else
11809 if test "$cross_compiling" = yes; then
11810 ac_cv_sizeof_int_p=4
11811 else
11812 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11815 #include <stdio.h>
11816 main()
11817 {
11818 FILE *f=fopen("conftestval", "w");
11819 if (!f) exit(1);
11820 fprintf(f, "%d\n", sizeof(int *));
11821 exit(0);
11822 }
11823 EOF
11824 if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11825 then
11826 ac_cv_sizeof_int_p=`cat conftestval`
11827 else
11828 echo "configure: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11830 rm -fr conftest*
11831 ac_cv_sizeof_int_p=0
11832 fi
11833 rm -fr conftest*
11834 fi
11835
11836 fi
11837 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11838 cat >> confdefs.h <<EOF
11839 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
11840 EOF
11841
11842
11843 echo $ac_n "checking size of int""... $ac_c" 1>&6
11844 echo "configure:11845: checking size of int" >&5
11845 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11846 echo $ac_n "(cached) $ac_c" 1>&6
11847 else
11848 if test "$cross_compiling" = yes; then
11849 ac_cv_sizeof_int=4
11850 else
11851 cat > conftest.$ac_ext <<EOF
11852 #line 11853 "configure"
11853 #include "confdefs.h"
11854 #include <stdio.h>
11855 main()
11856 {
11857 FILE *f=fopen("conftestval", "w");
11858 if (!f) exit(1);
11859 fprintf(f, "%d\n", sizeof(int));
11860 exit(0);
11861 }
11862 EOF
11863 if { (eval echo configure:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11864 then
11865 ac_cv_sizeof_int=`cat conftestval`
11866 else
11867 echo "configure: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11869 rm -fr conftest*
11870 ac_cv_sizeof_int=0
11871 fi
11872 rm -fr conftest*
11873 fi
11874
11875 fi
11876 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11877 cat >> confdefs.h <<EOF
11878 #define SIZEOF_INT $ac_cv_sizeof_int
11879 EOF
11880
11881
11882 echo $ac_n "checking size of long""... $ac_c" 1>&6
11883 echo "configure:11884: checking size of long" >&5
11884 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11885 echo $ac_n "(cached) $ac_c" 1>&6
11886 else
11887 if test "$cross_compiling" = yes; then
11888 ac_cv_sizeof_long=4
11889 else
11890 cat > conftest.$ac_ext <<EOF
11891 #line 11892 "configure"
11892 #include "confdefs.h"
11893 #include <stdio.h>
11894 main()
11895 {
11896 FILE *f=fopen("conftestval", "w");
11897 if (!f) exit(1);
11898 fprintf(f, "%d\n", sizeof(long));
11899 exit(0);
11900 }
11901 EOF
11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11903 then
11904 ac_cv_sizeof_long=`cat conftestval`
11905 else
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 rm -fr conftest*
11909 ac_cv_sizeof_long=0
11910 fi
11911 rm -fr conftest*
11912 fi
11913
11914 fi
11915 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11916 cat >> confdefs.h <<EOF
11917 #define SIZEOF_LONG $ac_cv_sizeof_long
11918 EOF
11919
11920
11921 echo $ac_n "checking size of long long""... $ac_c" 1>&6
11922 echo "configure:11923: checking size of long long" >&5
11923 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11924 echo $ac_n "(cached) $ac_c" 1>&6
11925 else
11926 if test "$cross_compiling" = yes; then
11927 ac_cv_sizeof_long_long=0
11928 else
11929 cat > conftest.$ac_ext <<EOF
11930 #line 11931 "configure"
11931 #include "confdefs.h"
11932 #include <stdio.h>
11933 main()
11934 {
11935 FILE *f=fopen("conftestval", "w");
11936 if (!f) exit(1);
11937 fprintf(f, "%d\n", sizeof(long long));
11938 exit(0);
11939 }
11940 EOF
11941 if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11942 then
11943 ac_cv_sizeof_long_long=`cat conftestval`
11944 else
11945 echo "configure: failed program was:" >&5
11946 cat conftest.$ac_ext >&5
11947 rm -fr conftest*
11948 ac_cv_sizeof_long_long=0
11949 fi
11950 rm -fr conftest*
11951 fi
11952
11953 fi
11954 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11955 cat >> confdefs.h <<EOF
11956 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11957 EOF
11958
11959
11960
11961 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
11962 echo "configure:11963: checking size of wchar_t" >&5
11963 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11964 echo $ac_n "(cached) $ac_c" 1>&6
11965 else
11966
11967 if test "$cross_compiling" = yes; then
11968 wx_cv_sizeof_wchar_t=4
11969
11970 else
11971 cat > conftest.$ac_ext <<EOF
11972 #line 11973 "configure"
11973 #include "confdefs.h"
11974
11975 #ifdef HAVE_WCHAR_H
11976 # include <wchar.h>
11977 #endif
11978 #ifdef HAVE_STDLIB_H
11979 # include <stdlib.h>
11980 #endif
11981 #include <stdio.h>
11982 int main()
11983 {
11984 FILE *f=fopen("conftestval", "w");
11985 if (!f) exit(1);
11986 fprintf(f, "%i", sizeof(wchar_t));
11987 exit(0);
11988 }
11989
11990 EOF
11991 if { (eval echo configure:11992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11992 then
11993 wx_cv_sizeof_wchar_t=`cat conftestval`
11994 else
11995 echo "configure: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 rm -fr conftest*
11998 wx_cv_sizeof_wchar_t=0
11999 fi
12000 rm -fr conftest*
12001 fi
12002
12003
12004 fi
12005
12006 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12007
12008 cat >> confdefs.h <<EOF
12009 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12010 EOF
12011
12012
12013 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12014 echo "configure:12015: checking whether byte ordering is bigendian" >&5
12015 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12016 echo $ac_n "(cached) $ac_c" 1>&6
12017 else
12018 ac_cv_c_bigendian=unknown
12019 # See if sys/param.h defines the BYTE_ORDER macro.
12020 cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure"
12022 #include "confdefs.h"
12023 #include <sys/types.h>
12024 #include <sys/param.h>
12025 int main() {
12026
12027 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12028 bogus endian macros
12029 #endif
12030 ; return 0; }
12031 EOF
12032 if { (eval echo configure:12033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12033 rm -rf conftest*
12034 # It does; now see whether it defined to BIG_ENDIAN or not.
12035 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 #include <sys/types.h>
12039 #include <sys/param.h>
12040 int main() {
12041
12042 #if BYTE_ORDER != BIG_ENDIAN
12043 not big endian
12044 #endif
12045 ; return 0; }
12046 EOF
12047 if { (eval echo configure:12048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12048 rm -rf conftest*
12049 ac_cv_c_bigendian=yes
12050 else
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 rm -rf conftest*
12054 ac_cv_c_bigendian=no
12055 fi
12056 rm -f conftest*
12057 else
12058 echo "configure: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12060 fi
12061 rm -f conftest*
12062 if test $ac_cv_c_bigendian = unknown; then
12063 if test "$cross_compiling" = yes; then
12064 ac_cv_c_bigendian=unknown
12065 else
12066 cat > conftest.$ac_ext <<EOF
12067 #line 12068 "configure"
12068 #include "confdefs.h"
12069 main () {
12070 /* Are we little or big endian? From Harbison&Steele. */
12071 union
12072 {
12073 long l;
12074 char c[sizeof (long)];
12075 } u;
12076 u.l = 1;
12077 exit (u.c[sizeof (long) - 1] == 1);
12078 }
12079 EOF
12080 if { (eval echo configure:12081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12081 then
12082 ac_cv_c_bigendian=no
12083 else
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 rm -fr conftest*
12087 ac_cv_c_bigendian=yes
12088 fi
12089 rm -fr conftest*
12090 fi
12091
12092 fi
12093 fi
12094
12095 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12096 if test $ac_cv_c_bigendian = unknown; then
12097 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
12098 fi
12099 if test $ac_cv_c_bigendian = yes; then
12100 cat >> confdefs.h <<\EOF
12101 #define WORDS_BIGENDIAN 1
12102 EOF
12103
12104 fi
12105
12106
12107
12108 if test "$cross_compiling" = "yes"; then
12109 cat >> confdefs.h <<\EOF
12110 #define wxUSE_IOSTREAMH 1
12111 EOF
12112
12113 else
12114
12115 ac_ext=C
12116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12117 ac_cpp='$CXXCPP $CPPFLAGS'
12118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12120 cross_compiling=$ac_cv_prog_cxx_cross
12121
12122
12123 for ac_hdr in iostream
12124 do
12125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12127 echo "configure:12128: checking for $ac_hdr" >&5
12128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12129 echo $ac_n "(cached) $ac_c" 1>&6
12130 else
12131 cat > conftest.$ac_ext <<EOF
12132 #line 12133 "configure"
12133 #include "confdefs.h"
12134 #include <$ac_hdr>
12135 EOF
12136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12137 { (eval echo configure:12138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12139 if test -z "$ac_err"; then
12140 rm -rf conftest*
12141 eval "ac_cv_header_$ac_safe=yes"
12142 else
12143 echo "$ac_err" >&5
12144 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12146 rm -rf conftest*
12147 eval "ac_cv_header_$ac_safe=no"
12148 fi
12149 rm -f conftest*
12150 fi
12151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12152 echo "$ac_t""yes" 1>&6
12153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12154 cat >> confdefs.h <<EOF
12155 #define $ac_tr_hdr 1
12156 EOF
12157
12158 else
12159 echo "$ac_t""no" 1>&6
12160 fi
12161 done
12162
12163
12164 if test "$ac_cv_header_iostream" = "yes" ; then
12165 :
12166 else
12167 cat >> confdefs.h <<\EOF
12168 #define wxUSE_IOSTREAMH 1
12169 EOF
12170
12171 fi
12172
12173 ac_ext=c
12174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12175 ac_cpp='$CPP $CPPFLAGS'
12176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12178 cross_compiling=$ac_cv_prog_cc_cross
12179
12180 fi
12181
12182
12183
12184 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12185 echo "configure:12186: checking if C++ compiler supports bool" >&5
12186 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12187 echo $ac_n "(cached) $ac_c" 1>&6
12188 else
12189
12190
12191 ac_ext=C
12192 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12193 ac_cpp='$CXXCPP $CPPFLAGS'
12194 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12195 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12196 cross_compiling=$ac_cv_prog_cxx_cross
12197
12198
12199 cat > conftest.$ac_ext <<EOF
12200 #line 12201 "configure"
12201 #include "confdefs.h"
12202
12203
12204 int main() {
12205
12206 bool b = true;
12207
12208 return 0;
12209
12210 ; return 0; }
12211 EOF
12212 if { (eval echo configure:12213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12213 rm -rf conftest*
12214
12215 wx_cv_cpp_bool=yes
12216
12217 else
12218 echo "configure: failed program was:" >&5
12219 cat conftest.$ac_ext >&5
12220 rm -rf conftest*
12221
12222 wx_cv_cpp_bool=no
12223
12224
12225 fi
12226 rm -f conftest*
12227
12228 ac_ext=c
12229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12230 ac_cpp='$CPP $CPPFLAGS'
12231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12233 cross_compiling=$ac_cv_prog_cc_cross
12234
12235
12236 fi
12237
12238 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12239
12240 if test "$wx_cv_cpp_bool" = "yes"; then
12241 cat >> confdefs.h <<\EOF
12242 #define HAVE_BOOL 1
12243 EOF
12244
12245 fi
12246
12247
12248
12249 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12250 echo "configure:12251: checking for wcslen in -lc" >&5
12251 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12253 echo $ac_n "(cached) $ac_c" 1>&6
12254 else
12255 ac_save_LIBS="$LIBS"
12256 LIBS="-lc $LIBS"
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263 char wcslen();
12264
12265 int main() {
12266 wcslen()
12267 ; return 0; }
12268 EOF
12269 if { (eval echo configure:12270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12270 rm -rf conftest*
12271 eval "ac_cv_lib_$ac_lib_var=yes"
12272 else
12273 echo "configure: failed program was:" >&5
12274 cat conftest.$ac_ext >&5
12275 rm -rf conftest*
12276 eval "ac_cv_lib_$ac_lib_var=no"
12277 fi
12278 rm -f conftest*
12279 LIBS="$ac_save_LIBS"
12280
12281 fi
12282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12283 echo "$ac_t""yes" 1>&6
12284
12285 cat >> confdefs.h <<\EOF
12286 #define HAVE_WCSLEN 1
12287 EOF
12288
12289 WCHAR_LINK=""
12290
12291 else
12292 echo "$ac_t""no" 1>&6
12293
12294 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12295 echo "configure:12296: checking for wcslen in -lw" >&5
12296 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12298 echo $ac_n "(cached) $ac_c" 1>&6
12299 else
12300 ac_save_LIBS="$LIBS"
12301 LIBS="-lw $LIBS"
12302 cat > conftest.$ac_ext <<EOF
12303 #line 12304 "configure"
12304 #include "confdefs.h"
12305 /* Override any gcc2 internal prototype to avoid an error. */
12306 /* We use char because int might match the return type of a gcc2
12307 builtin and then its argument prototype would still apply. */
12308 char wcslen();
12309
12310 int main() {
12311 wcslen()
12312 ; return 0; }
12313 EOF
12314 if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12315 rm -rf conftest*
12316 eval "ac_cv_lib_$ac_lib_var=yes"
12317 else
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12320 rm -rf conftest*
12321 eval "ac_cv_lib_$ac_lib_var=no"
12322 fi
12323 rm -f conftest*
12324 LIBS="$ac_save_LIBS"
12325
12326 fi
12327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12328 echo "$ac_t""yes" 1>&6
12329
12330 cat >> confdefs.h <<\EOF
12331 #define HAVE_WCSLEN 1
12332 EOF
12333
12334 WCHAR_LINK="-lw"
12335
12336 else
12337 echo "$ac_t""no" 1>&6
12338 fi
12339
12340
12341 fi
12342
12343
12344 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12345 echo "configure:12346: checking for vprintf" >&5
12346 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12347 echo $ac_n "(cached) $ac_c" 1>&6
12348 else
12349 cat > conftest.$ac_ext <<EOF
12350 #line 12351 "configure"
12351 #include "confdefs.h"
12352 /* System header to define __stub macros and hopefully few prototypes,
12353 which can conflict with char vprintf(); below. */
12354 #include <assert.h>
12355 /* Override any gcc2 internal prototype to avoid an error. */
12356 /* We use char because int might match the return type of a gcc2
12357 builtin and then its argument prototype would still apply. */
12358 char vprintf();
12359
12360 int main() {
12361
12362 /* The GNU C library defines this for functions which it implements
12363 to always fail with ENOSYS. Some functions are actually named
12364 something starting with __ and the normal name is an alias. */
12365 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12366 choke me
12367 #else
12368 vprintf();
12369 #endif
12370
12371 ; return 0; }
12372 EOF
12373 if { (eval echo configure:12374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12374 rm -rf conftest*
12375 eval "ac_cv_func_vprintf=yes"
12376 else
12377 echo "configure: failed program was:" >&5
12378 cat conftest.$ac_ext >&5
12379 rm -rf conftest*
12380 eval "ac_cv_func_vprintf=no"
12381 fi
12382 rm -f conftest*
12383 fi
12384
12385 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12386 echo "$ac_t""yes" 1>&6
12387 cat >> confdefs.h <<\EOF
12388 #define HAVE_VPRINTF 1
12389 EOF
12390
12391 else
12392 echo "$ac_t""no" 1>&6
12393 fi
12394
12395 if test "$ac_cv_func_vprintf" != yes; then
12396 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12397 echo "configure:12398: checking for _doprnt" >&5
12398 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12399 echo $ac_n "(cached) $ac_c" 1>&6
12400 else
12401 cat > conftest.$ac_ext <<EOF
12402 #line 12403 "configure"
12403 #include "confdefs.h"
12404 /* System header to define __stub macros and hopefully few prototypes,
12405 which can conflict with char _doprnt(); below. */
12406 #include <assert.h>
12407 /* Override any gcc2 internal prototype to avoid an error. */
12408 /* We use char because int might match the return type of a gcc2
12409 builtin and then its argument prototype would still apply. */
12410 char _doprnt();
12411
12412 int main() {
12413
12414 /* The GNU C library defines this for functions which it implements
12415 to always fail with ENOSYS. Some functions are actually named
12416 something starting with __ and the normal name is an alias. */
12417 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12418 choke me
12419 #else
12420 _doprnt();
12421 #endif
12422
12423 ; return 0; }
12424 EOF
12425 if { (eval echo configure:12426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12426 rm -rf conftest*
12427 eval "ac_cv_func__doprnt=yes"
12428 else
12429 echo "configure: failed program was:" >&5
12430 cat conftest.$ac_ext >&5
12431 rm -rf conftest*
12432 eval "ac_cv_func__doprnt=no"
12433 fi
12434 rm -f conftest*
12435 fi
12436
12437 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12438 echo "$ac_t""yes" 1>&6
12439 cat >> confdefs.h <<\EOF
12440 #define HAVE_DOPRNT 1
12441 EOF
12442
12443 else
12444 echo "$ac_t""no" 1>&6
12445 fi
12446
12447 fi
12448
12449
12450
12451
12452
12453
12454
12455 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12456 echo "configure:12457: checking for vsnprintf" >&5
12457 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12458 echo $ac_n "(cached) $ac_c" 1>&6
12459 else
12460
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12463 "configure"
12463 #include "confdefs.h"
12464
12465 #include <stdio.h>
12466 #include <stdarg.h>
12467
12468 int main() {
12469
12470 int wx_test_vsnprintf(const char *, ...);
12471
12472 wx_test_vsnprintf("%s");
12473 return 0;
12474 }
12475
12476 int wx_test_vsnprintf(const char *fmt, ...)
12477 {
12478 char *s;
12479
12480 va_list argp;
12481 va_start(argp, fmt);
12482 vsnprintf(s, 42, fmt, argp);
12483 va_end(argp);
12484
12485 ; return 0; }
12486 EOF
12487 if { (eval echo configure:12488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12488 rm -rf conftest*
12489
12490 wx_cv_func_vsnprintf=yes
12491
12492 else
12493 echo "configure: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12495 rm -rf conftest*
12496
12497 cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure"
12499 #include "confdefs.h"
12500
12501 #include <stdio.h>
12502 #include <stdarg.h>
12503
12504 int main() {
12505
12506 int wx_test_vsnprintf(const char *, ...);
12507
12508 wx_test_vsnprintf("%s");
12509 return 0;
12510 }
12511
12512 int wx_test_vsnprintf(const char *fmt, ...)
12513 {
12514 char *s;
12515
12516 va_list argp;
12517 va_start(argp, fmt);
12518 _vsnprintf(s, 42, fmt, argp);
12519 va_end(argp);
12520
12521 ; return 0; }
12522 EOF
12523 if { (eval echo configure:12524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12524 rm -rf conftest*
12525
12526 wx_cv_func_vsnprintf=yes
12527
12528 else
12529 echo "configure: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12531 rm -rf conftest*
12532
12533 wx_cv_func_vsnprintf=no
12534
12535 fi
12536 rm -f conftest*
12537
12538 fi
12539 rm -f conftest*
12540
12541 fi
12542
12543 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12544
12545 if test "$wx_cv_func_vsnprintf" = yes; then
12546 cat >> confdefs.h <<\EOF
12547 #define HAVE_VSNPRINTF 1
12548 EOF
12549
12550 else
12551 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12552 fi
12553
12554 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12555 echo "configure:12556: checking for vsscanf" >&5
12556 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12557 echo $ac_n "(cached) $ac_c" 1>&6
12558 else
12559
12560 cat > conftest.$ac_ext <<EOF
12561 #line 12562 "configure"
12562 #include "confdefs.h"
12563
12564 #include <stdio.h>
12565 #include <stdarg.h>
12566
12567 int main() {
12568
12569 int wx_test_vsscanf(const char *, ...);
12570
12571 wx_test_vsscanf("%d");
12572 return 0;
12573 }
12574
12575 int wx_test_vsscanf(const char *fmt, ...)
12576 {
12577 va_list argp;
12578 va_start(argp, fmt);
12579 vsscanf("42", fmt, argp);
12580 va_end(argp);
12581
12582 ; return 0; }
12583 EOF
12584 if { (eval echo configure:12585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12585 rm -rf conftest*
12586
12587 wx_cv_func_vsscanf=yes
12588
12589 else
12590 echo "configure: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 rm -rf conftest*
12593
12594 wx_cv_func_vsscanf=no
12595
12596 fi
12597 rm -f conftest*
12598
12599 fi
12600
12601 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12602
12603 if test "$wx_cv_func_vsscanf" = yes; then
12604 cat >> confdefs.h <<\EOF
12605 #define HAVE_VSSCANF 1
12606 EOF
12607
12608 fi
12609
12610 if test "$TOOLKIT" != "MSW"; then
12611
12612
12613
12614 ac_ext=C
12615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12616 ac_cpp='$CXXCPP $CPPFLAGS'
12617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12619 cross_compiling=$ac_cv_prog_cxx_cross
12620
12621 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12622 echo "configure:12623: checking if iconv() takes char**" >&5
12623 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12624 echo $ac_n "(cached) $ac_c" 1>&6
12625 else
12626
12627 cat > conftest.$ac_ext <<EOF
12628 #line 12629 "configure"
12629 #include "confdefs.h"
12630 #include <iconv.h>
12631 int main() {
12632
12633 char **inbuf, **outbuf;
12634 iconv_t cd;
12635 size_t insz, outsz;
12636 iconv(cd, inbuf, &insz, outbuf, &outsz);
12637
12638 ; return 0; }
12639 EOF
12640 if { (eval echo configure:12641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12641 rm -rf conftest*
12642 wx_cv_iconv_takes_char=yes
12643 else
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12646 rm -rf conftest*
12647 wx_cv_iconv_takes_char=no
12648 fi
12649 rm -f conftest*
12650
12651 fi
12652
12653 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12654 ac_ext=c
12655 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12656 ac_cpp='$CPP $CPPFLAGS'
12657 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12658 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12659 cross_compiling=$ac_cv_prog_cc_cross
12660
12661 if test "$wx_cv_iconv_takes_char" = yes ; then
12662 cat >> confdefs.h <<\EOF
12663 #define WX_ICONV_TAKES_CHAR 1
12664 EOF
12665
12666 fi
12667
12668
12669 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12670 for ac_func in sigaction
12671 do
12672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12673 echo "configure:12674: checking for $ac_func" >&5
12674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12675 echo $ac_n "(cached) $ac_c" 1>&6
12676 else
12677 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure"
12679 #include "confdefs.h"
12680 /* System header to define __stub macros and hopefully few prototypes,
12681 which can conflict with char $ac_func(); below. */
12682 #include <assert.h>
12683 /* Override any gcc2 internal prototype to avoid an error. */
12684 /* We use char because int might match the return type of a gcc2
12685 builtin and then its argument prototype would still apply. */
12686 char $ac_func();
12687
12688 int main() {
12689
12690 /* The GNU C library defines this for functions which it implements
12691 to always fail with ENOSYS. Some functions are actually named
12692 something starting with __ and the normal name is an alias. */
12693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12694 choke me
12695 #else
12696 $ac_func();
12697 #endif
12698
12699 ; return 0; }
12700 EOF
12701 if { (eval echo configure:12702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12702 rm -rf conftest*
12703 eval "ac_cv_func_$ac_func=yes"
12704 else
12705 echo "configure: failed program was:" >&5
12706 cat conftest.$ac_ext >&5
12707 rm -rf conftest*
12708 eval "ac_cv_func_$ac_func=no"
12709 fi
12710 rm -f conftest*
12711 fi
12712
12713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12714 echo "$ac_t""yes" 1>&6
12715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12716 cat >> confdefs.h <<EOF
12717 #define $ac_tr_func 1
12718 EOF
12719
12720 else
12721 echo "$ac_t""no" 1>&6
12722 fi
12723 done
12724
12725
12726 if test "$ac_cv_func_sigaction" = "no"; then
12727 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
12728 wxUSE_ON_FATAL_EXCEPTION=no
12729 fi
12730
12731 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12732
12733 ac_ext=C
12734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12735 ac_cpp='$CXXCPP $CPPFLAGS'
12736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12738 cross_compiling=$ac_cv_prog_cxx_cross
12739
12740
12741 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
12742 echo "configure:12743: checking for sa_handler type" >&5
12743 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12744 echo $ac_n "(cached) $ac_c" 1>&6
12745 else
12746
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12750 #include <signal.h>
12751 int main() {
12752
12753 extern void testSigHandler(int);
12754
12755 struct sigaction sa;
12756 sa.sa_handler = testSigHandler;
12757
12758 ; return 0; }
12759 EOF
12760 if { (eval echo configure:12761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12761 rm -rf conftest*
12762
12763 wx_cv_type_sa_handler=int
12764
12765 else
12766 echo "configure: failed program was:" >&5
12767 cat conftest.$ac_ext >&5
12768 rm -rf conftest*
12769
12770 wx_cv_type_sa_handler=void
12771
12772 fi
12773 rm -f conftest*
12774
12775 fi
12776
12777 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
12778
12779 ac_ext=c
12780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12781 ac_cpp='$CPP $CPPFLAGS'
12782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12784 cross_compiling=$ac_cv_prog_cc_cross
12785
12786
12787 cat >> confdefs.h <<EOF
12788 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12789 EOF
12790
12791 fi
12792 fi
12793
12794 for ac_func in vfork
12795 do
12796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12797 echo "configure:12798: checking for $ac_func" >&5
12798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12799 echo $ac_n "(cached) $ac_c" 1>&6
12800 else
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 /* System header to define __stub macros and hopefully few prototypes,
12805 which can conflict with char $ac_func(); below. */
12806 #include <assert.h>
12807 /* Override any gcc2 internal prototype to avoid an error. */
12808 /* We use char because int might match the return type of a gcc2
12809 builtin and then its argument prototype would still apply. */
12810 char $ac_func();
12811
12812 int main() {
12813
12814 /* The GNU C library defines this for functions which it implements
12815 to always fail with ENOSYS. Some functions are actually named
12816 something starting with __ and the normal name is an alias. */
12817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12818 choke me
12819 #else
12820 $ac_func();
12821 #endif
12822
12823 ; return 0; }
12824 EOF
12825 if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12826 rm -rf conftest*
12827 eval "ac_cv_func_$ac_func=yes"
12828 else
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12831 rm -rf conftest*
12832 eval "ac_cv_func_$ac_func=no"
12833 fi
12834 rm -f conftest*
12835 fi
12836
12837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12838 echo "$ac_t""yes" 1>&6
12839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12840 cat >> confdefs.h <<EOF
12841 #define $ac_tr_func 1
12842 EOF
12843
12844 else
12845 echo "$ac_t""no" 1>&6
12846 fi
12847 done
12848
12849
12850 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12851 for ac_func in fcntl flock
12852 do
12853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12854 echo "configure:12855: checking for $ac_func" >&5
12855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12856 echo $ac_n "(cached) $ac_c" 1>&6
12857 else
12858 cat > conftest.$ac_ext <<EOF
12859 #line 12860 "configure"
12860 #include "confdefs.h"
12861 /* System header to define __stub macros and hopefully few prototypes,
12862 which can conflict with char $ac_func(); below. */
12863 #include <assert.h>
12864 /* Override any gcc2 internal prototype to avoid an error. */
12865 /* We use char because int might match the return type of a gcc2
12866 builtin and then its argument prototype would still apply. */
12867 char $ac_func();
12868
12869 int main() {
12870
12871 /* The GNU C library defines this for functions which it implements
12872 to always fail with ENOSYS. Some functions are actually named
12873 something starting with __ and the normal name is an alias. */
12874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12875 choke me
12876 #else
12877 $ac_func();
12878 #endif
12879
12880 ; return 0; }
12881 EOF
12882 if { (eval echo configure:12883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12883 rm -rf conftest*
12884 eval "ac_cv_func_$ac_func=yes"
12885 else
12886 echo "configure: failed program was:" >&5
12887 cat conftest.$ac_ext >&5
12888 rm -rf conftest*
12889 eval "ac_cv_func_$ac_func=no"
12890 fi
12891 rm -f conftest*
12892 fi
12893
12894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12895 echo "$ac_t""yes" 1>&6
12896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12897 cat >> confdefs.h <<EOF
12898 #define $ac_tr_func 1
12899 EOF
12900 break
12901 else
12902 echo "$ac_t""no" 1>&6
12903 fi
12904 done
12905
12906
12907 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
12908 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
12909 wxUSE_SNGLINST_CHECKER=no
12910 fi
12911 fi
12912
12913 for ac_func in timegm
12914 do
12915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12916 echo "configure:12917: checking for $ac_func" >&5
12917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12918 echo $ac_n "(cached) $ac_c" 1>&6
12919 else
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12923 /* System header to define __stub macros and hopefully few prototypes,
12924 which can conflict with char $ac_func(); below. */
12925 #include <assert.h>
12926 /* Override any gcc2 internal prototype to avoid an error. */
12927 /* We use char because int might match the return type of a gcc2
12928 builtin and then its argument prototype would still apply. */
12929 char $ac_func();
12930
12931 int main() {
12932
12933 /* The GNU C library defines this for functions which it implements
12934 to always fail with ENOSYS. Some functions are actually named
12935 something starting with __ and the normal name is an alias. */
12936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12937 choke me
12938 #else
12939 $ac_func();
12940 #endif
12941
12942 ; return 0; }
12943 EOF
12944 if { (eval echo configure:12945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12945 rm -rf conftest*
12946 eval "ac_cv_func_$ac_func=yes"
12947 else
12948 echo "configure: failed program was:" >&5
12949 cat conftest.$ac_ext >&5
12950 rm -rf conftest*
12951 eval "ac_cv_func_$ac_func=no"
12952 fi
12953 rm -f conftest*
12954 fi
12955
12956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12957 echo "$ac_t""yes" 1>&6
12958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12959 cat >> confdefs.h <<EOF
12960 #define $ac_tr_func 1
12961 EOF
12962
12963 else
12964 echo "$ac_t""no" 1>&6
12965 fi
12966 done
12967
12968
12969 for ac_func in putenv setenv
12970 do
12971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12972 echo "configure:12973: checking for $ac_func" >&5
12973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12974 echo $ac_n "(cached) $ac_c" 1>&6
12975 else
12976 cat > conftest.$ac_ext <<EOF
12977 #line 12978 "configure"
12978 #include "confdefs.h"
12979 /* System header to define __stub macros and hopefully few prototypes,
12980 which can conflict with char $ac_func(); below. */
12981 #include <assert.h>
12982 /* Override any gcc2 internal prototype to avoid an error. */
12983 /* We use char because int might match the return type of a gcc2
12984 builtin and then its argument prototype would still apply. */
12985 char $ac_func();
12986
12987 int main() {
12988
12989 /* The GNU C library defines this for functions which it implements
12990 to always fail with ENOSYS. Some functions are actually named
12991 something starting with __ and the normal name is an alias. */
12992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12993 choke me
12994 #else
12995 $ac_func();
12996 #endif
12997
12998 ; return 0; }
12999 EOF
13000 if { (eval echo configure:13001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13001 rm -rf conftest*
13002 eval "ac_cv_func_$ac_func=yes"
13003 else
13004 echo "configure: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13006 rm -rf conftest*
13007 eval "ac_cv_func_$ac_func=no"
13008 fi
13009 rm -f conftest*
13010 fi
13011
13012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13013 echo "$ac_t""yes" 1>&6
13014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13015 cat >> confdefs.h <<EOF
13016 #define $ac_tr_func 1
13017 EOF
13018 break
13019 else
13020 echo "$ac_t""no" 1>&6
13021 fi
13022 done
13023
13024
13025 HAVE_SOME_SLEEP_FUNC=0
13026 if test "$USE_BEOS" = 1; then
13027 cat >> confdefs.h <<\EOF
13028 #define HAVE_SLEEP 1
13029 EOF
13030
13031 HAVE_SOME_SLEEP_FUNC=1
13032 fi
13033
13034 if test "$USE_MAC" = 1; then
13035 cat >> confdefs.h <<\EOF
13036 #define HAVE_USLEEP 1
13037 EOF
13038
13039 HAVE_SOME_SLEEP_FUNC=1
13040 fi
13041
13042 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13043 POSIX4_LINK=
13044 for ac_func in nanosleep
13045 do
13046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13047 echo "configure:13048: checking for $ac_func" >&5
13048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13049 echo $ac_n "(cached) $ac_c" 1>&6
13050 else
13051 cat > conftest.$ac_ext <<EOF
13052 #line 13053 "configure"
13053 #include "confdefs.h"
13054 /* System header to define __stub macros and hopefully few prototypes,
13055 which can conflict with char $ac_func(); below. */
13056 #include <assert.h>
13057 /* Override any gcc2 internal prototype to avoid an error. */
13058 /* We use char because int might match the return type of a gcc2
13059 builtin and then its argument prototype would still apply. */
13060 char $ac_func();
13061
13062 int main() {
13063
13064 /* The GNU C library defines this for functions which it implements
13065 to always fail with ENOSYS. Some functions are actually named
13066 something starting with __ and the normal name is an alias. */
13067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13068 choke me
13069 #else
13070 $ac_func();
13071 #endif
13072
13073 ; return 0; }
13074 EOF
13075 if { (eval echo configure:13076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13076 rm -rf conftest*
13077 eval "ac_cv_func_$ac_func=yes"
13078 else
13079 echo "configure: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13081 rm -rf conftest*
13082 eval "ac_cv_func_$ac_func=no"
13083 fi
13084 rm -f conftest*
13085 fi
13086
13087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13088 echo "$ac_t""yes" 1>&6
13089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13090 cat >> confdefs.h <<EOF
13091 #define $ac_tr_func 1
13092 EOF
13093 cat >> confdefs.h <<\EOF
13094 #define HAVE_NANOSLEEP 1
13095 EOF
13096
13097 else
13098 echo "$ac_t""no" 1>&6
13099 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13100 echo "configure:13101: checking for nanosleep in -lposix4" >&5
13101 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13103 echo $ac_n "(cached) $ac_c" 1>&6
13104 else
13105 ac_save_LIBS="$LIBS"
13106 LIBS="-lposix4 $LIBS"
13107 cat > conftest.$ac_ext <<EOF
13108 #line 13109 "configure"
13109 #include "confdefs.h"
13110 /* Override any gcc2 internal prototype to avoid an error. */
13111 /* We use char because int might match the return type of a gcc2
13112 builtin and then its argument prototype would still apply. */
13113 char nanosleep();
13114
13115 int main() {
13116 nanosleep()
13117 ; return 0; }
13118 EOF
13119 if { (eval echo configure:13120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13120 rm -rf conftest*
13121 eval "ac_cv_lib_$ac_lib_var=yes"
13122 else
13123 echo "configure: failed program was:" >&5
13124 cat conftest.$ac_ext >&5
13125 rm -rf conftest*
13126 eval "ac_cv_lib_$ac_lib_var=no"
13127 fi
13128 rm -f conftest*
13129 LIBS="$ac_save_LIBS"
13130
13131 fi
13132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13133 echo "$ac_t""yes" 1>&6
13134
13135 cat >> confdefs.h <<\EOF
13136 #define HAVE_NANOSLEEP 1
13137 EOF
13138
13139 POSIX4_LINK="-lposix4"
13140
13141 else
13142 echo "$ac_t""no" 1>&6
13143
13144 for ac_func in usleep
13145 do
13146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13147 echo "configure:13148: checking for $ac_func" >&5
13148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13150 else
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char $ac_func(); below. */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error. */
13158 /* We use char because int might match the return type of a gcc2
13159 builtin and then its argument prototype would still apply. */
13160 char $ac_func();
13161
13162 int main() {
13163
13164 /* The GNU C library defines this for functions which it implements
13165 to always fail with ENOSYS. Some functions are actually named
13166 something starting with __ and the normal name is an alias. */
13167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13168 choke me
13169 #else
13170 $ac_func();
13171 #endif
13172
13173 ; return 0; }
13174 EOF
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176 rm -rf conftest*
13177 eval "ac_cv_func_$ac_func=yes"
13178 else
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=no"
13183 fi
13184 rm -f conftest*
13185 fi
13186
13187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13190 cat >> confdefs.h <<EOF
13191 #define $ac_tr_func 1
13192 EOF
13193 cat >> confdefs.h <<\EOF
13194 #define HAVE_USLEEP 1
13195 EOF
13196
13197 else
13198 echo "$ac_t""no" 1>&6
13199 echo "configure: warning: wxSleep() function will not work" 1>&2
13200
13201 fi
13202 done
13203
13204
13205
13206 fi
13207
13208
13209
13210 fi
13211 done
13212
13213 fi
13214
13215 for ac_func in uname gethostname
13216 do
13217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13218 echo "configure:13219: checking for $ac_func" >&5
13219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13220 echo $ac_n "(cached) $ac_c" 1>&6
13221 else
13222 cat > conftest.$ac_ext <<EOF
13223 #line 13224 "configure"
13224 #include "confdefs.h"
13225 /* System header to define __stub macros and hopefully few prototypes,
13226 which can conflict with char $ac_func(); below. */
13227 #include <assert.h>
13228 /* Override any gcc2 internal prototype to avoid an error. */
13229 /* We use char because int might match the return type of a gcc2
13230 builtin and then its argument prototype would still apply. */
13231 char $ac_func();
13232
13233 int main() {
13234
13235 /* The GNU C library defines this for functions which it implements
13236 to always fail with ENOSYS. Some functions are actually named
13237 something starting with __ and the normal name is an alias. */
13238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13239 choke me
13240 #else
13241 $ac_func();
13242 #endif
13243
13244 ; return 0; }
13245 EOF
13246 if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13247 rm -rf conftest*
13248 eval "ac_cv_func_$ac_func=yes"
13249 else
13250 echo "configure: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 rm -rf conftest*
13253 eval "ac_cv_func_$ac_func=no"
13254 fi
13255 rm -f conftest*
13256 fi
13257
13258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13259 echo "$ac_t""yes" 1>&6
13260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13261 cat >> confdefs.h <<EOF
13262 #define $ac_tr_func 1
13263 EOF
13264 break
13265 else
13266 echo "$ac_t""no" 1>&6
13267 fi
13268 done
13269
13270
13271
13272 ac_ext=C
13273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13274 ac_cpp='$CXXCPP $CPPFLAGS'
13275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13277 cross_compiling=$ac_cv_prog_cxx_cross
13278
13279
13280 for ac_func in strtok_r
13281 do
13282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13283 echo "configure:13284: checking for $ac_func" >&5
13284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13286 else
13287 cat > conftest.$ac_ext <<EOF
13288 #line 13289 "configure"
13289 #include "confdefs.h"
13290 /* System header to define __stub macros and hopefully few prototypes,
13291 which can conflict with char $ac_func(); below. */
13292 #include <assert.h>
13293 /* Override any gcc2 internal prototype to avoid an error. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 /* We use char because int might match the return type of a gcc2
13298 builtin and then its argument prototype would still apply. */
13299 char $ac_func();
13300
13301 int main() {
13302
13303 /* The GNU C library defines this for functions which it implements
13304 to always fail with ENOSYS. Some functions are actually named
13305 something starting with __ and the normal name is an alias. */
13306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13307 choke me
13308 #else
13309 $ac_func();
13310 #endif
13311
13312 ; return 0; }
13313 EOF
13314 if { (eval echo configure:13315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13315 rm -rf conftest*
13316 eval "ac_cv_func_$ac_func=yes"
13317 else
13318 echo "configure: failed program was:" >&5
13319 cat conftest.$ac_ext >&5
13320 rm -rf conftest*
13321 eval "ac_cv_func_$ac_func=no"
13322 fi
13323 rm -f conftest*
13324 fi
13325
13326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13327 echo "$ac_t""yes" 1>&6
13328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13329 cat >> confdefs.h <<EOF
13330 #define $ac_tr_func 1
13331 EOF
13332
13333 else
13334 echo "$ac_t""no" 1>&6
13335 fi
13336 done
13337
13338
13339 ac_ext=c
13340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13341 ac_cpp='$CPP $CPPFLAGS'
13342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13344 cross_compiling=$ac_cv_prog_cc_cross
13345
13346
13347 INET_LINK=
13348 for ac_func in inet_addr
13349 do
13350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13351 echo "configure:13352: checking for $ac_func" >&5
13352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13353 echo $ac_n "(cached) $ac_c" 1>&6
13354 else
13355 cat > conftest.$ac_ext <<EOF
13356 #line 13357 "configure"
13357 #include "confdefs.h"
13358 /* System header to define __stub macros and hopefully few prototypes,
13359 which can conflict with char $ac_func(); below. */
13360 #include <assert.h>
13361 /* Override any gcc2 internal prototype to avoid an error. */
13362 /* We use char because int might match the return type of a gcc2
13363 builtin and then its argument prototype would still apply. */
13364 char $ac_func();
13365
13366 int main() {
13367
13368 /* The GNU C library defines this for functions which it implements
13369 to always fail with ENOSYS. Some functions are actually named
13370 something starting with __ and the normal name is an alias. */
13371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13372 choke me
13373 #else
13374 $ac_func();
13375 #endif
13376
13377 ; return 0; }
13378 EOF
13379 if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13380 rm -rf conftest*
13381 eval "ac_cv_func_$ac_func=yes"
13382 else
13383 echo "configure: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13385 rm -rf conftest*
13386 eval "ac_cv_func_$ac_func=no"
13387 fi
13388 rm -f conftest*
13389 fi
13390
13391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13392 echo "$ac_t""yes" 1>&6
13393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13394 cat >> confdefs.h <<EOF
13395 #define $ac_tr_func 1
13396 EOF
13397 cat >> confdefs.h <<\EOF
13398 #define HAVE_INET_ADDR 1
13399 EOF
13400
13401 else
13402 echo "$ac_t""no" 1>&6
13403 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13404 echo "configure:13405: checking for inet_addr in -lnsl" >&5
13405 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13407 echo $ac_n "(cached) $ac_c" 1>&6
13408 else
13409 ac_save_LIBS="$LIBS"
13410 LIBS="-lnsl $LIBS"
13411 cat > conftest.$ac_ext <<EOF
13412 #line 13413 "configure"
13413 #include "confdefs.h"
13414 /* Override any gcc2 internal prototype to avoid an error. */
13415 /* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13417 char inet_addr();
13418
13419 int main() {
13420 inet_addr()
13421 ; return 0; }
13422 EOF
13423 if { (eval echo configure:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13424 rm -rf conftest*
13425 eval "ac_cv_lib_$ac_lib_var=yes"
13426 else
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13429 rm -rf conftest*
13430 eval "ac_cv_lib_$ac_lib_var=no"
13431 fi
13432 rm -f conftest*
13433 LIBS="$ac_save_LIBS"
13434
13435 fi
13436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13437 echo "$ac_t""yes" 1>&6
13438 INET_LINK="nsl"
13439 else
13440 echo "$ac_t""no" 1>&6
13441 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13442 echo "configure:13443: checking for inet_addr in -lresolv" >&5
13443 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13445 echo $ac_n "(cached) $ac_c" 1>&6
13446 else
13447 ac_save_LIBS="$LIBS"
13448 LIBS="-lresolv $LIBS"
13449 cat > conftest.$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13452 /* Override any gcc2 internal prototype to avoid an error. */
13453 /* We use char because int might match the return type of a gcc2
13454 builtin and then its argument prototype would still apply. */
13455 char inet_addr();
13456
13457 int main() {
13458 inet_addr()
13459 ; return 0; }
13460 EOF
13461 if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13462 rm -rf conftest*
13463 eval "ac_cv_lib_$ac_lib_var=yes"
13464 else
13465 echo "configure: failed program was:" >&5
13466 cat conftest.$ac_ext >&5
13467 rm -rf conftest*
13468 eval "ac_cv_lib_$ac_lib_var=no"
13469 fi
13470 rm -f conftest*
13471 LIBS="$ac_save_LIBS"
13472
13473 fi
13474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13475 echo "$ac_t""yes" 1>&6
13476 INET_LINK="resolv"
13477
13478 else
13479 echo "$ac_t""no" 1>&6
13480 fi
13481
13482
13483 fi
13484
13485
13486
13487 fi
13488 done
13489
13490
13491 for ac_func in inet_aton
13492 do
13493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13494 echo "configure:13495: checking for $ac_func" >&5
13495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13496 echo $ac_n "(cached) $ac_c" 1>&6
13497 else
13498 cat > conftest.$ac_ext <<EOF
13499 #line 13500 "configure"
13500 #include "confdefs.h"
13501 /* System header to define __stub macros and hopefully few prototypes,
13502 which can conflict with char $ac_func(); below. */
13503 #include <assert.h>
13504 /* Override any gcc2 internal prototype to avoid an error. */
13505 /* We use char because int might match the return type of a gcc2
13506 builtin and then its argument prototype would still apply. */
13507 char $ac_func();
13508
13509 int main() {
13510
13511 /* The GNU C library defines this for functions which it implements
13512 to always fail with ENOSYS. Some functions are actually named
13513 something starting with __ and the normal name is an alias. */
13514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13515 choke me
13516 #else
13517 $ac_func();
13518 #endif
13519
13520 ; return 0; }
13521 EOF
13522 if { (eval echo configure:13523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13523 rm -rf conftest*
13524 eval "ac_cv_func_$ac_func=yes"
13525 else
13526 echo "configure: failed program was:" >&5
13527 cat conftest.$ac_ext >&5
13528 rm -rf conftest*
13529 eval "ac_cv_func_$ac_func=no"
13530 fi
13531 rm -f conftest*
13532 fi
13533
13534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13535 echo "$ac_t""yes" 1>&6
13536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13537 cat >> confdefs.h <<EOF
13538 #define $ac_tr_func 1
13539 EOF
13540 cat >> confdefs.h <<\EOF
13541 #define HAVE_INET_ATON 1
13542 EOF
13543
13544 else
13545 echo "$ac_t""no" 1>&6
13546 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13547 echo "configure:13548: checking for inet_aton in -l$INET_LINK" >&5
13548 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13550 echo $ac_n "(cached) $ac_c" 1>&6
13551 else
13552 ac_save_LIBS="$LIBS"
13553 LIBS="-l$INET_LINK $LIBS"
13554 cat > conftest.$ac_ext <<EOF
13555 #line 13556 "configure"
13556 #include "confdefs.h"
13557 /* Override any gcc2 internal prototype to avoid an error. */
13558 /* We use char because int might match the return type of a gcc2
13559 builtin and then its argument prototype would still apply. */
13560 char inet_aton();
13561
13562 int main() {
13563 inet_aton()
13564 ; return 0; }
13565 EOF
13566 if { (eval echo configure:13567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13567 rm -rf conftest*
13568 eval "ac_cv_lib_$ac_lib_var=yes"
13569 else
13570 echo "configure: failed program was:" >&5
13571 cat conftest.$ac_ext >&5
13572 rm -rf conftest*
13573 eval "ac_cv_lib_$ac_lib_var=no"
13574 fi
13575 rm -f conftest*
13576 LIBS="$ac_save_LIBS"
13577
13578 fi
13579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13580 echo "$ac_t""yes" 1>&6
13581 cat >> confdefs.h <<\EOF
13582 #define HAVE_INET_ATON 1
13583 EOF
13584
13585 else
13586 echo "$ac_t""no" 1>&6
13587 fi
13588
13589
13590 fi
13591 done
13592
13593
13594 if test "x$INET_LINK" != "x"; then
13595 cat >> confdefs.h <<\EOF
13596 #define HAVE_INET_ADDR 1
13597 EOF
13598
13599 INET_LINK="-l$INET_LINK"
13600 fi
13601
13602 fi
13603
13604
13605 cat > confcache <<\EOF
13606 # This file is a shell script that caches the results of configure
13607 # tests run on this system so they can be shared between configure
13608 # scripts and configure runs. It is not useful on other systems.
13609 # If it contains results you don't want to keep, you may remove or edit it.
13610 #
13611 # By default, configure uses ./config.cache as the cache file,
13612 # creating it if it does not exist already. You can give configure
13613 # the --cache-file=FILE option to use a different cache file; that is
13614 # what configure does when it calls configure scripts in
13615 # subdirectories, so they share the cache.
13616 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13617 # config.status only pays attention to the cache file if you give it the
13618 # --recheck option to rerun configure.
13619 #
13620 EOF
13621 # The following way of writing the cache mishandles newlines in values,
13622 # but we know of no workaround that is simple, portable, and efficient.
13623 # So, don't put newlines in cache variables' values.
13624 # Ultrix sh set writes to stderr and can't be redirected directly,
13625 # and sets the high bit in the cache file unless we assign to the vars.
13626 (set) 2>&1 |
13627 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13628 *ac_space=\ *)
13629 # `set' does not quote correctly, so add quotes (double-quote substitution
13630 # turns \\\\ into \\, and sed turns \\ into \).
13631 sed -n \
13632 -e "s/'/'\\\\''/g" \
13633 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13634 ;;
13635 *)
13636 # `set' quotes correctly as required by POSIX, so do not add quotes.
13637 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13638 ;;
13639 esac >> confcache
13640 if cmp -s $cache_file confcache; then
13641 :
13642 else
13643 if test -w $cache_file; then
13644 echo "updating cache $cache_file"
13645 cat confcache > $cache_file
13646 else
13647 echo "not updating unwritable cache $cache_file"
13648 fi
13649 fi
13650 rm -f confcache
13651
13652
13653
13654 if test "$TOOLKIT" != "MSW"; then
13655
13656
13657 THREADS_LINK=""
13658 THREADS_OBJ=""
13659
13660 if test "$wxUSE_THREADS" = "yes" ; then
13661 if test "$wxUSE_WINE" = 1 ; then
13662 echo "configure: warning: Threads are not supported under WINE" 1>&2
13663 wxUSE_THREADS="no"
13664 elif test "$USE_BEOS" = 1; then
13665 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13666 wxUSE_THREADS="no"
13667 fi
13668 fi
13669
13670 if test "$wxUSE_THREADS" = "yes" ; then
13671
13672 if test "$USE_AIX" = 1; then
13673 THREADS_LIB=pthreads
13674 else
13675 THREADS_LIB=pthread
13676 fi
13677
13678 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13679 echo "configure:13680: checking for pthread_create in -l$THREADS_LIB" >&5
13680 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13682 echo $ac_n "(cached) $ac_c" 1>&6
13683 else
13684 ac_save_LIBS="$LIBS"
13685 LIBS="-l$THREADS_LIB $LIBS"
13686 cat > conftest.$ac_ext <<EOF
13687 #line 13688 "configure"
13688 #include "confdefs.h"
13689 /* Override any gcc2 internal prototype to avoid an error. */
13690 /* We use char because int might match the return type of a gcc2
13691 builtin and then its argument prototype would still apply. */
13692 char pthread_create();
13693
13694 int main() {
13695 pthread_create()
13696 ; return 0; }
13697 EOF
13698 if { (eval echo configure:13699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13699 rm -rf conftest*
13700 eval "ac_cv_lib_$ac_lib_var=yes"
13701 else
13702 echo "configure: failed program was:" >&5
13703 cat conftest.$ac_ext >&5
13704 rm -rf conftest*
13705 eval "ac_cv_lib_$ac_lib_var=no"
13706 fi
13707 rm -f conftest*
13708 LIBS="$ac_save_LIBS"
13709
13710 fi
13711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13712 echo "$ac_t""yes" 1>&6
13713
13714 THREADS_OBJ="threadpsx.lo"
13715 THREADS_LINK=$THREADS_LIB
13716
13717 else
13718 echo "$ac_t""no" 1>&6
13719
13720 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13721 echo "configure:13722: checking for pthread_create in -lc_r" >&5
13722 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13724 echo $ac_n "(cached) $ac_c" 1>&6
13725 else
13726 ac_save_LIBS="$LIBS"
13727 LIBS="-lc_r $LIBS"
13728 cat > conftest.$ac_ext <<EOF
13729 #line 13730 "configure"
13730 #include "confdefs.h"
13731 /* Override any gcc2 internal prototype to avoid an error. */
13732 /* We use char because int might match the return type of a gcc2
13733 builtin and then its argument prototype would still apply. */
13734 char pthread_create();
13735
13736 int main() {
13737 pthread_create()
13738 ; return 0; }
13739 EOF
13740 if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13741 rm -rf conftest*
13742 eval "ac_cv_lib_$ac_lib_var=yes"
13743 else
13744 echo "configure: failed program was:" >&5
13745 cat conftest.$ac_ext >&5
13746 rm -rf conftest*
13747 eval "ac_cv_lib_$ac_lib_var=no"
13748 fi
13749 rm -f conftest*
13750 LIBS="$ac_save_LIBS"
13751
13752 fi
13753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13754 echo "$ac_t""yes" 1>&6
13755
13756 THREADS_OBJ="threadpsx.lo"
13757 THREADS_LINK="c_r"
13758
13759 else
13760 echo "$ac_t""no" 1>&6
13761
13762 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13763 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
13764 echo "configure:13765: checking for sys/prctl.h" >&5
13765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13766 echo $ac_n "(cached) $ac_c" 1>&6
13767 else
13768 cat > conftest.$ac_ext <<EOF
13769 #line 13770 "configure"
13770 #include "confdefs.h"
13771 #include <sys/prctl.h>
13772 EOF
13773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13774 { (eval echo configure:13775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13776 if test -z "$ac_err"; then
13777 rm -rf conftest*
13778 eval "ac_cv_header_$ac_safe=yes"
13779 else
13780 echo "$ac_err" >&5
13781 echo "configure: failed program was:" >&5
13782 cat conftest.$ac_ext >&5
13783 rm -rf conftest*
13784 eval "ac_cv_header_$ac_safe=no"
13785 fi
13786 rm -f conftest*
13787 fi
13788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13789 echo "$ac_t""yes" 1>&6
13790
13791 THREADS_OBJ="threadsgi.lo"
13792
13793 else
13794 echo "$ac_t""no" 1>&6
13795 fi
13796
13797
13798 fi
13799
13800
13801 fi
13802
13803
13804 if test -z "$THREADS_OBJ" ; then
13805 wxUSE_THREADS=no
13806 echo "configure: warning: No thread support on this system" 1>&2
13807 fi
13808 fi
13809
13810 if test "$wxUSE_THREADS" = "yes" ; then
13811 for ac_func in thr_setconcurrency
13812 do
13813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13814 echo "configure:13815: checking for $ac_func" >&5
13815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13816 echo $ac_n "(cached) $ac_c" 1>&6
13817 else
13818 cat > conftest.$ac_ext <<EOF
13819 #line 13820 "configure"
13820 #include "confdefs.h"
13821 /* System header to define __stub macros and hopefully few prototypes,
13822 which can conflict with char $ac_func(); below. */
13823 #include <assert.h>
13824 /* Override any gcc2 internal prototype to avoid an error. */
13825 /* We use char because int might match the return type of a gcc2
13826 builtin and then its argument prototype would still apply. */
13827 char $ac_func();
13828
13829 int main() {
13830
13831 /* The GNU C library defines this for functions which it implements
13832 to always fail with ENOSYS. Some functions are actually named
13833 something starting with __ and the normal name is an alias. */
13834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13835 choke me
13836 #else
13837 $ac_func();
13838 #endif
13839
13840 ; return 0; }
13841 EOF
13842 if { (eval echo configure:13843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13843 rm -rf conftest*
13844 eval "ac_cv_func_$ac_func=yes"
13845 else
13846 echo "configure: failed program was:" >&5
13847 cat conftest.$ac_ext >&5
13848 rm -rf conftest*
13849 eval "ac_cv_func_$ac_func=no"
13850 fi
13851 rm -f conftest*
13852 fi
13853
13854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13855 echo "$ac_t""yes" 1>&6
13856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13857 cat >> confdefs.h <<EOF
13858 #define $ac_tr_func 1
13859 EOF
13860
13861 else
13862 echo "$ac_t""no" 1>&6
13863 fi
13864 done
13865
13866
13867
13868 for ac_hdr in sched.h
13869 do
13870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13872 echo "configure:13873: checking for $ac_hdr" >&5
13873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13874 echo $ac_n "(cached) $ac_c" 1>&6
13875 else
13876 cat > conftest.$ac_ext <<EOF
13877 #line 13878 "configure"
13878 #include "confdefs.h"
13879 #include <$ac_hdr>
13880 EOF
13881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13882 { (eval echo configure:13883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13884 if test -z "$ac_err"; then
13885 rm -rf conftest*
13886 eval "ac_cv_header_$ac_safe=yes"
13887 else
13888 echo "$ac_err" >&5
13889 echo "configure: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13891 rm -rf conftest*
13892 eval "ac_cv_header_$ac_safe=no"
13893 fi
13894 rm -f conftest*
13895 fi
13896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13897 echo "$ac_t""yes" 1>&6
13898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13899 cat >> confdefs.h <<EOF
13900 #define $ac_tr_hdr 1
13901 EOF
13902
13903 else
13904 echo "$ac_t""no" 1>&6
13905 fi
13906 done
13907
13908
13909 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
13910 echo "configure:13911: checking for sched_yield in -l$THREADS_LINK" >&5
13911 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13913 echo $ac_n "(cached) $ac_c" 1>&6
13914 else
13915 ac_save_LIBS="$LIBS"
13916 LIBS="-l$THREADS_LINK $LIBS"
13917 cat > conftest.$ac_ext <<EOF
13918 #line 13919 "configure"
13919 #include "confdefs.h"
13920 /* Override any gcc2 internal prototype to avoid an error. */
13921 /* We use char because int might match the return type of a gcc2
13922 builtin and then its argument prototype would still apply. */
13923 char sched_yield();
13924
13925 int main() {
13926 sched_yield()
13927 ; return 0; }
13928 EOF
13929 if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13930 rm -rf conftest*
13931 eval "ac_cv_lib_$ac_lib_var=yes"
13932 else
13933 echo "configure: failed program was:" >&5
13934 cat conftest.$ac_ext >&5
13935 rm -rf conftest*
13936 eval "ac_cv_lib_$ac_lib_var=no"
13937 fi
13938 rm -f conftest*
13939 LIBS="$ac_save_LIBS"
13940
13941 fi
13942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13943 echo "$ac_t""yes" 1>&6
13944 cat >> confdefs.h <<\EOF
13945 #define HAVE_SCHED_YIELD 1
13946 EOF
13947
13948 else
13949 echo "$ac_t""no" 1>&6
13950 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
13951 echo "configure:13952: checking for sched_yield in -lposix4" >&5
13952 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13954 echo $ac_n "(cached) $ac_c" 1>&6
13955 else
13956 ac_save_LIBS="$LIBS"
13957 LIBS="-lposix4 $LIBS"
13958 cat > conftest.$ac_ext <<EOF
13959 #line 13960 "configure"
13960 #include "confdefs.h"
13961 /* Override any gcc2 internal prototype to avoid an error. */
13962 /* We use char because int might match the return type of a gcc2
13963 builtin and then its argument prototype would still apply. */
13964 char sched_yield();
13965
13966 int main() {
13967 sched_yield()
13968 ; return 0; }
13969 EOF
13970 if { (eval echo configure:13971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13971 rm -rf conftest*
13972 eval "ac_cv_lib_$ac_lib_var=yes"
13973 else
13974 echo "configure: failed program was:" >&5
13975 cat conftest.$ac_ext >&5
13976 rm -rf conftest*
13977 eval "ac_cv_lib_$ac_lib_var=no"
13978 fi
13979 rm -f conftest*
13980 LIBS="$ac_save_LIBS"
13981
13982 fi
13983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13984 echo "$ac_t""yes" 1>&6
13985 cat >> confdefs.h <<\EOF
13986 #define HAVE_SCHED_YIELD 1
13987 EOF
13988 POSIX4_LINK="-lposix4"
13989 else
13990 echo "$ac_t""no" 1>&6
13991 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13992
13993 fi
13994
13995
13996 fi
13997
13998
13999 HAVE_PRIOR_FUNCS=0
14000 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14001 echo "configure:14002: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14002 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14004 echo $ac_n "(cached) $ac_c" 1>&6
14005 else
14006 ac_save_LIBS="$LIBS"
14007 LIBS="-l$THREADS_LINK $LIBS"
14008 cat > conftest.$ac_ext <<EOF
14009 #line 14010 "configure"
14010 #include "confdefs.h"
14011 /* Override any gcc2 internal prototype to avoid an error. */
14012 /* We use char because int might match the return type of a gcc2
14013 builtin and then its argument prototype would still apply. */
14014 char pthread_attr_getschedpolicy();
14015
14016 int main() {
14017 pthread_attr_getschedpolicy()
14018 ; return 0; }
14019 EOF
14020 if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14021 rm -rf conftest*
14022 eval "ac_cv_lib_$ac_lib_var=yes"
14023 else
14024 echo "configure: failed program was:" >&5
14025 cat conftest.$ac_ext >&5
14026 rm -rf conftest*
14027 eval "ac_cv_lib_$ac_lib_var=no"
14028 fi
14029 rm -f conftest*
14030 LIBS="$ac_save_LIBS"
14031
14032 fi
14033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14034 echo "$ac_t""yes" 1>&6
14035 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14036 echo "configure:14037: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14037 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14039 echo $ac_n "(cached) $ac_c" 1>&6
14040 else
14041 ac_save_LIBS="$LIBS"
14042 LIBS="-l$THREADS_LINK $LIBS"
14043 cat > conftest.$ac_ext <<EOF
14044 #line 14045 "configure"
14045 #include "confdefs.h"
14046 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049 char pthread_attr_setschedparam();
14050
14051 int main() {
14052 pthread_attr_setschedparam()
14053 ; return 0; }
14054 EOF
14055 if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14056 rm -rf conftest*
14057 eval "ac_cv_lib_$ac_lib_var=yes"
14058 else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062 eval "ac_cv_lib_$ac_lib_var=no"
14063 fi
14064 rm -f conftest*
14065 LIBS="$ac_save_LIBS"
14066
14067 fi
14068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14069 echo "$ac_t""yes" 1>&6
14070 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14071 echo "configure:14072: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14072 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14074 echo $ac_n "(cached) $ac_c" 1>&6
14075 else
14076 ac_save_LIBS="$LIBS"
14077 LIBS="-l$THREADS_LINK $LIBS"
14078 cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081 /* Override any gcc2 internal prototype to avoid an error. */
14082 /* We use char because int might match the return type of a gcc2
14083 builtin and then its argument prototype would still apply. */
14084 char sched_get_priority_max();
14085
14086 int main() {
14087 sched_get_priority_max()
14088 ; return 0; }
14089 EOF
14090 if { (eval echo configure:14091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14091 rm -rf conftest*
14092 eval "ac_cv_lib_$ac_lib_var=yes"
14093 else
14094 echo "configure: failed program was:" >&5
14095 cat conftest.$ac_ext >&5
14096 rm -rf conftest*
14097 eval "ac_cv_lib_$ac_lib_var=no"
14098 fi
14099 rm -f conftest*
14100 LIBS="$ac_save_LIBS"
14101
14102 fi
14103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14104 echo "$ac_t""yes" 1>&6
14105 HAVE_PRIOR_FUNCS=1
14106 else
14107 echo "$ac_t""no" 1>&6
14108 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14109 echo "configure:14110: checking for sched_get_priority_max in -lposix4" >&5
14110 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14112 echo $ac_n "(cached) $ac_c" 1>&6
14113 else
14114 ac_save_LIBS="$LIBS"
14115 LIBS="-lposix4 $LIBS"
14116 cat > conftest.$ac_ext <<EOF
14117 #line 14118 "configure"
14118 #include "confdefs.h"
14119 /* Override any gcc2 internal prototype to avoid an error. */
14120 /* We use char because int might match the return type of a gcc2
14121 builtin and then its argument prototype would still apply. */
14122 char sched_get_priority_max();
14123
14124 int main() {
14125 sched_get_priority_max()
14126 ; return 0; }
14127 EOF
14128 if { (eval echo configure:14129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14129 rm -rf conftest*
14130 eval "ac_cv_lib_$ac_lib_var=yes"
14131 else
14132 echo "configure: failed program was:" >&5
14133 cat conftest.$ac_ext >&5
14134 rm -rf conftest*
14135 eval "ac_cv_lib_$ac_lib_var=no"
14136 fi
14137 rm -f conftest*
14138 LIBS="$ac_save_LIBS"
14139
14140 fi
14141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14142 echo "$ac_t""yes" 1>&6
14143
14144 HAVE_PRIOR_FUNCS=1
14145 POSIX4_LINK="-lposix4"
14146
14147 else
14148 echo "$ac_t""no" 1>&6
14149 fi
14150
14151
14152 fi
14153
14154
14155 else
14156 echo "$ac_t""no" 1>&6
14157 fi
14158
14159
14160 else
14161 echo "$ac_t""no" 1>&6
14162 fi
14163
14164
14165 if test "$HAVE_PRIOR_FUNCS" = 1; then
14166 cat >> confdefs.h <<\EOF
14167 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14168 EOF
14169
14170 else
14171 echo "configure: warning: Setting thread priority will not work" 1>&2
14172 fi
14173
14174 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14175 echo "configure:14176: checking for pthread_cancel in -l$THREADS_LINK" >&5
14176 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14178 echo $ac_n "(cached) $ac_c" 1>&6
14179 else
14180 ac_save_LIBS="$LIBS"
14181 LIBS="-l$THREADS_LINK $LIBS"
14182 cat > conftest.$ac_ext <<EOF
14183 #line 14184 "configure"
14184 #include "confdefs.h"
14185 /* Override any gcc2 internal prototype to avoid an error. */
14186 /* We use char because int might match the return type of a gcc2
14187 builtin and then its argument prototype would still apply. */
14188 char pthread_cancel();
14189
14190 int main() {
14191 pthread_cancel()
14192 ; return 0; }
14193 EOF
14194 if { (eval echo configure:14195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14195 rm -rf conftest*
14196 eval "ac_cv_lib_$ac_lib_var=yes"
14197 else
14198 echo "configure: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14200 rm -rf conftest*
14201 eval "ac_cv_lib_$ac_lib_var=no"
14202 fi
14203 rm -f conftest*
14204 LIBS="$ac_save_LIBS"
14205
14206 fi
14207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14208 echo "$ac_t""yes" 1>&6
14209 cat >> confdefs.h <<\EOF
14210 #define HAVE_PTHREAD_CANCEL 1
14211 EOF
14212
14213 else
14214 echo "$ac_t""no" 1>&6
14215 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14216 fi
14217
14218
14219 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14220 echo "configure:14221: checking for pthread_cleanup_push/pop" >&5
14221 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14222 echo $ac_n "(cached) $ac_c" 1>&6
14223 else
14224
14225 cat > conftest.$ac_ext <<EOF
14226 #line 14227 "configure"
14227 #include "confdefs.h"
14228 #include <pthread.h>
14229 int main() {
14230
14231 pthread_cleanup_push(NULL, NULL);
14232 pthread_cleanup_pop(0);
14233
14234 ; return 0; }
14235 EOF
14236 if { (eval echo configure:14237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14237 rm -rf conftest*
14238
14239 wx_cv_func_pthread_cleanup_push=yes
14240
14241 else
14242 echo "configure: failed program was:" >&5
14243 cat conftest.$ac_ext >&5
14244 rm -rf conftest*
14245
14246 wx_cv_func_pthread_cleanup_push=no
14247
14248 fi
14249 rm -f conftest*
14250
14251 fi
14252
14253 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14254
14255 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14256 cat >> confdefs.h <<\EOF
14257 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14258 EOF
14259
14260 fi
14261
14262
14263 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14264 echo "configure:14265: checking for pthread_mutexattr_t" >&5
14265 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14266 echo $ac_n "(cached) $ac_c" 1>&6
14267 else
14268
14269 cat > conftest.$ac_ext <<EOF
14270 #line 14271 "configure"
14271 #include "confdefs.h"
14272 #include <pthread.h>
14273 int main() {
14274
14275 pthread_mutexattr_t attr;
14276 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14277
14278 ; return 0; }
14279 EOF
14280 if { (eval echo configure:14281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14281 rm -rf conftest*
14282
14283 wx_cv_type_pthread_mutexattr_t=yes
14284
14285 else
14286 echo "configure: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 rm -rf conftest*
14289
14290 wx_cv_type_pthread_mutexattr_t=no
14291
14292
14293 fi
14294 rm -f conftest*
14295
14296 fi
14297
14298 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14299
14300 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14301 cat >> confdefs.h <<\EOF
14302 #define HAVE_PTHREAD_MUTEXATTR_T 1
14303 EOF
14304
14305 else
14306 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14307 echo "configure:14308: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14308 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14309 echo $ac_n "(cached) $ac_c" 1>&6
14310 else
14311
14312 cat > conftest.$ac_ext <<EOF
14313 #line 14314 "configure"
14314 #include "confdefs.h"
14315 #include <pthread.h>
14316 int main() {
14317
14318 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14319
14320 ; return 0; }
14321 EOF
14322 if { (eval echo configure:14323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14323 rm -rf conftest*
14324
14325 wx_cv_type_pthread_rec_mutex_init=yes
14326
14327 else
14328 echo "configure: failed program was:" >&5
14329 cat conftest.$ac_ext >&5
14330 rm -rf conftest*
14331
14332 wx_cv_type_pthread_rec_mutex_init=no
14333
14334
14335 fi
14336 rm -f conftest*
14337
14338 fi
14339
14340 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14341 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14342 cat >> confdefs.h <<\EOF
14343 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14344 EOF
14345
14346 else
14347 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14348 fi
14349 fi
14350
14351 THREADS_LINK="-l$THREADS_LINK"
14352
14353 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14354 CFLAGS="${CFLAGS} -mt"
14355 CXXFLAGS="${CXXFLAGS} -mt"
14356 LDFLAGS="${LDFLAGS} -mt"
14357 fi
14358 fi
14359
14360 fi
14361
14362 if test "$wxUSE_THREADS" = "yes"; then
14363 cat >> confdefs.h <<\EOF
14364 #define wxUSE_THREADS 1
14365 EOF
14366
14367
14368 if test "$wxUSE_MAC" = "0"; then
14369 CFLAGS="${CFLAGS} -D_REENTRANT"
14370 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14371 fi
14372
14373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14374 else
14375 if test "$ac_cv_func_strtok_r" = "yes"; then
14376 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14377 echo "configure:14378: checking if -D_REENTRANT is needed" >&5
14378 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14379 CFLAGS="${CFLAGS} -D_REENTRANT"
14380 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14381 echo "$ac_t""yes" 1>&6
14382 else
14383 echo "$ac_t""no" 1>&6
14384 fi
14385 fi
14386 fi
14387
14388 if test "$WXGTK20" = 1 ; then
14389 cat >> confdefs.h <<EOF
14390 #define __WXGTK20__ $WXGTK20
14391 EOF
14392
14393 WXGTK12=1
14394 fi
14395
14396 if test "$WXGTK12" = 1 ; then
14397 cat >> confdefs.h <<EOF
14398 #define __WXGTK12__ $WXGTK12
14399 EOF
14400
14401 fi
14402
14403 if test "$WXGTK127" = 1 ; then
14404 cat >> confdefs.h <<EOF
14405 #define __WXGTK127__ $WXGTK127
14406 EOF
14407
14408 fi
14409
14410 if test "$WXWINE" = 1 ; then
14411 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14412 fi
14413
14414 if test "$wxUSE_MAC" = 1 ; then
14415 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
14416 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
14417 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
14418 # Extract the first word of "Rez", so it can be a program name with args.
14419 set dummy Rez; ac_word=$2
14420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14421 echo "configure:14422: checking for $ac_word" >&5
14422 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14423 echo $ac_n "(cached) $ac_c" 1>&6
14424 else
14425 if test -n "$REZ"; then
14426 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14427 else
14428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14429 ac_dummy="$PATH"
14430 for ac_dir in $ac_dummy; do
14431 test -z "$ac_dir" && ac_dir=.
14432 if test -f $ac_dir/$ac_word; then
14433 ac_cv_prog_REZ="Rez"
14434 break
14435 fi
14436 done
14437 IFS="$ac_save_ifs"
14438 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14439 fi
14440 fi
14441 REZ="$ac_cv_prog_REZ"
14442 if test -n "$REZ"; then
14443 echo "$ac_t""$REZ" 1>&6
14444 else
14445 echo "$ac_t""no" 1>&6
14446 fi
14447
14448 # Extract the first word of "Derez", so it can be a program name with args.
14449 set dummy Derez; ac_word=$2
14450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14451 echo "configure:14452: checking for $ac_word" >&5
14452 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14453 echo $ac_n "(cached) $ac_c" 1>&6
14454 else
14455 if test -n "$DEREZ"; then
14456 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14457 else
14458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14459 ac_dummy="$PATH"
14460 for ac_dir in $ac_dummy; do
14461 test -z "$ac_dir" && ac_dir=.
14462 if test -f $ac_dir/$ac_word; then
14463 ac_cv_prog_DEREZ="Derez"
14464 break
14465 fi
14466 done
14467 IFS="$ac_save_ifs"
14468 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14469 fi
14470 fi
14471 DEREZ="$ac_cv_prog_DEREZ"
14472 if test -n "$DEREZ"; then
14473 echo "$ac_t""$DEREZ" 1>&6
14474 else
14475 echo "$ac_t""no" 1>&6
14476 fi
14477
14478 RESCOMP=${REZ}
14479 REZFLAGS="-d __UNIX__ -useDF"
14480 DEREZFLAGS="Carbon.r -useDF"
14481 RESFLAGS="Carbon.r -t APPL"
14482 LIBWXMACRES="\$(LIBWX_MACRES)"
14483 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14484 fi
14485
14486 if test "$wxUSE_CYGWIN" = 1 ; then
14487 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14488 fi
14489
14490 WXDEBUG=
14491
14492 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14493 WXDEBUG="-g"
14494 wxUSE_OPTIMISE=no
14495 fi
14496
14497 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14498 wxUSE_DEBUG_INFO=yes
14499 WXDEBUG="-ggdb"
14500 fi
14501
14502 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14503 cat >> confdefs.h <<\EOF
14504 #define WXDEBUG 1
14505 EOF
14506
14507 WXDEBUG_DEFINE="-D__WXDEBUG__"
14508 else
14509 if test "$wxUSE_GTK" = 1 ; then
14510 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14511 fi
14512 fi
14513
14514 if test "$wxUSE_MEM_TRACING" = "yes" ; then
14515 cat >> confdefs.h <<\EOF
14516 #define wxUSE_MEMORY_TRACING 1
14517 EOF
14518
14519 cat >> confdefs.h <<\EOF
14520 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14521 EOF
14522
14523 cat >> confdefs.h <<\EOF
14524 #define wxUSE_DEBUG_NEW_ALWAYS 1
14525 EOF
14526
14527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14528 fi
14529
14530 if test "$wxUSE_DMALLOC" = "yes" ; then
14531 DMALLOC_LINK="-ldmalloc"
14532 fi
14533
14534 PROFILE=
14535 if test "$wxUSE_PROFILE" = "yes" ; then
14536 PROFILE="-pg"
14537 fi
14538
14539 DEP_INFO_FLAGS=
14540 CODE_GEN_FLAGS=
14541 CODE_GEN_FLAGS_CXX=
14542 if test "$GCC" = yes ; then
14543 if test "$wxUSE_NO_RTTI" = "yes" ; then
14544 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14545 fi
14546 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14547 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14548 fi
14549 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14550 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14551 fi
14552 if test "$wxUSE_NO_DEPS" = "no" ; then
14553 DEP_INFO_FLAGS="-MMD"
14554 fi
14555 fi
14556
14557
14558 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14559 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14560 if test "$wxUSE_OPTIMISE" = "no" ; then
14561 OPTIMISE=
14562 else
14563 if test "$GCC" = yes ; then
14564 OPTIMISE="-O2"
14565 case "${host}" in
14566 i586-*-*|i686-*-* )
14567 OPTIMISE="${OPTIMISE} "
14568 ;;
14569 esac
14570 else
14571 OPTIMISE="-O"
14572 fi
14573 fi
14574
14575 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14576 cat >> confdefs.h <<\EOF
14577 #define WXWIN_COMPATIBILITY_2 1
14578 EOF
14579
14580
14581 WXWIN_COMPATIBILITY_2_2="yes"
14582 fi
14583
14584 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14585 cat >> confdefs.h <<\EOF
14586 #define WXWIN_COMPATIBILITY_2_2 1
14587 EOF
14588
14589 fi
14590
14591
14592 ZLIB_INCLUDE=
14593 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
14594 cat >> confdefs.h <<\EOF
14595 #define wxUSE_ZLIB 1
14596 EOF
14597
14598 if test "$wxUSE_ZLIB" = "yes" ; then
14599 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14600 else
14601 ZLIB_LINK=
14602 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14603 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
14604 echo "configure:14605: checking for zlib.h" >&5
14605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14606 echo $ac_n "(cached) $ac_c" 1>&6
14607 else
14608 cat > conftest.$ac_ext <<EOF
14609 #line 14610 "configure"
14610 #include "confdefs.h"
14611 #include <zlib.h>
14612 EOF
14613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14614 { (eval echo configure:14615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14616 if test -z "$ac_err"; then
14617 rm -rf conftest*
14618 eval "ac_cv_header_$ac_safe=yes"
14619 else
14620 echo "$ac_err" >&5
14621 echo "configure: failed program was:" >&5
14622 cat conftest.$ac_ext >&5
14623 rm -rf conftest*
14624 eval "ac_cv_header_$ac_safe=no"
14625 fi
14626 rm -f conftest*
14627 fi
14628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14629 echo "$ac_t""yes" 1>&6
14630 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
14631 echo "configure:14632: checking for deflate in -lz" >&5
14632 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14634 echo $ac_n "(cached) $ac_c" 1>&6
14635 else
14636 ac_save_LIBS="$LIBS"
14637 LIBS="-lz $LIBS"
14638 cat > conftest.$ac_ext <<EOF
14639 #line 14640 "configure"
14640 #include "confdefs.h"
14641 /* Override any gcc2 internal prototype to avoid an error. */
14642 /* We use char because int might match the return type of a gcc2
14643 builtin and then its argument prototype would still apply. */
14644 char deflate();
14645
14646 int main() {
14647 deflate()
14648 ; return 0; }
14649 EOF
14650 if { (eval echo configure:14651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14651 rm -rf conftest*
14652 eval "ac_cv_lib_$ac_lib_var=yes"
14653 else
14654 echo "configure: failed program was:" >&5
14655 cat conftest.$ac_ext >&5
14656 rm -rf conftest*
14657 eval "ac_cv_lib_$ac_lib_var=no"
14658 fi
14659 rm -f conftest*
14660 LIBS="$ac_save_LIBS"
14661
14662 fi
14663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14664 echo "$ac_t""yes" 1>&6
14665 ZLIB_LINK="-lz"
14666 else
14667 echo "$ac_t""no" 1>&6
14668 fi
14669
14670 else
14671 echo "$ac_t""no" 1>&6
14672 fi
14673
14674 if test "x$ZLIB_LINK" = "x" ; then
14675 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
14676 fi
14677 fi
14678 fi
14679
14680 PNG_INCLUDE=
14681 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
14682 cat >> confdefs.h <<\EOF
14683 #define wxUSE_LIBPNG 1
14684 EOF
14685
14686 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
14687 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
14688 wxUSE_LIBPNG=yes
14689 fi
14690
14691 if test "$wxUSE_LIBPNG" = "yes" ; then
14692 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14693 else
14694 PNG_LINK=
14695 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14696 echo $ac_n "checking for png.h""... $ac_c" 1>&6
14697 echo "configure:14698: checking for png.h" >&5
14698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14699 echo $ac_n "(cached) $ac_c" 1>&6
14700 else
14701 cat > conftest.$ac_ext <<EOF
14702 #line 14703 "configure"
14703 #include "confdefs.h"
14704 #include <png.h>
14705 EOF
14706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14707 { (eval echo configure:14708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14709 if test -z "$ac_err"; then
14710 rm -rf conftest*
14711 eval "ac_cv_header_$ac_safe=yes"
14712 else
14713 echo "$ac_err" >&5
14714 echo "configure: failed program was:" >&5
14715 cat conftest.$ac_ext >&5
14716 rm -rf conftest*
14717 eval "ac_cv_header_$ac_safe=no"
14718 fi
14719 rm -f conftest*
14720 fi
14721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14722 echo "$ac_t""yes" 1>&6
14723 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
14724 echo "configure:14725: checking for png_check_sig in -lpng" >&5
14725 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14727 echo $ac_n "(cached) $ac_c" 1>&6
14728 else
14729 ac_save_LIBS="$LIBS"
14730 LIBS="-lpng -lz -lm $LIBS"
14731 cat > conftest.$ac_ext <<EOF
14732 #line 14733 "configure"
14733 #include "confdefs.h"
14734 /* Override any gcc2 internal prototype to avoid an error. */
14735 /* We use char because int might match the return type of a gcc2
14736 builtin and then its argument prototype would still apply. */
14737 char png_check_sig();
14738
14739 int main() {
14740 png_check_sig()
14741 ; return 0; }
14742 EOF
14743 if { (eval echo configure:14744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14744 rm -rf conftest*
14745 eval "ac_cv_lib_$ac_lib_var=yes"
14746 else
14747 echo "configure: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 rm -rf conftest*
14750 eval "ac_cv_lib_$ac_lib_var=no"
14751 fi
14752 rm -f conftest*
14753 LIBS="$ac_save_LIBS"
14754
14755 fi
14756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14757 echo "$ac_t""yes" 1>&6
14758 PNG_LINK="-lpng"
14759 else
14760 echo "$ac_t""no" 1>&6
14761 fi
14762
14763
14764 else
14765 echo "$ac_t""no" 1>&6
14766 fi
14767
14768 if test "x$PNG_LINK" = "x" ; then
14769 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
14770 fi
14771 fi
14772
14773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14774 fi
14775
14776 JPEG_INCLUDE=
14777 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
14778 cat >> confdefs.h <<\EOF
14779 #define wxUSE_LIBJPEG 1
14780 EOF
14781
14782 if test "$wxUSE_LIBJPEG" = "yes" ; then
14783 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14784 else
14785 JPEG_LINK=
14786 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
14787 echo "configure:14788: checking for jpeglib.h" >&5
14788 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
14789 echo $ac_n "(cached) $ac_c" 1>&6
14790 else
14791 cat > conftest.$ac_ext <<EOF
14792 #line 14793 "configure"
14793 #include "confdefs.h"
14794
14795 #undef HAVE_STDLIB_H
14796 #include <stdio.h>
14797 #include <jpeglib.h>
14798
14799 int main() {
14800
14801
14802 ; return 0; }
14803 EOF
14804 if { (eval echo configure:14805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14805 rm -rf conftest*
14806 ac_cv_header_jpeglib_h=yes
14807 else
14808 echo "configure: failed program was:" >&5
14809 cat conftest.$ac_ext >&5
14810 rm -rf conftest*
14811 ac_cv_header_jpeglib_h=no
14812
14813 fi
14814 rm -f conftest*
14815
14816 fi
14817
14818 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
14819
14820 if test "$ac_cv_header_jpeglib_h" = "yes"; then
14821 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
14822 echo "configure:14823: checking for jpeg_read_header in -ljpeg" >&5
14823 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14825 echo $ac_n "(cached) $ac_c" 1>&6
14826 else
14827 ac_save_LIBS="$LIBS"
14828 LIBS="-ljpeg $LIBS"
14829 cat > conftest.$ac_ext <<EOF
14830 #line 14831 "configure"
14831 #include "confdefs.h"
14832 /* Override any gcc2 internal prototype to avoid an error. */
14833 /* We use char because int might match the return type of a gcc2
14834 builtin and then its argument prototype would still apply. */
14835 char jpeg_read_header();
14836
14837 int main() {
14838 jpeg_read_header()
14839 ; return 0; }
14840 EOF
14841 if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14842 rm -rf conftest*
14843 eval "ac_cv_lib_$ac_lib_var=yes"
14844 else
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14847 rm -rf conftest*
14848 eval "ac_cv_lib_$ac_lib_var=no"
14849 fi
14850 rm -f conftest*
14851 LIBS="$ac_save_LIBS"
14852
14853 fi
14854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14855 echo "$ac_t""yes" 1>&6
14856 JPEG_LINK="-ljpeg"
14857 else
14858 echo "$ac_t""no" 1>&6
14859 fi
14860
14861 fi
14862
14863 if test "x$JPEG_LINK" = "x" ; then
14864 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
14865 fi
14866 fi
14867 fi
14868
14869 TIFF_INCLUDE=
14870 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
14871 cat >> confdefs.h <<\EOF
14872 #define wxUSE_LIBTIFF 1
14873 EOF
14874
14875 if test "$wxUSE_LIBTIFF" = "yes" ; then
14876 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14877 else
14878 TIFF_LINK=
14879 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14880 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
14881 echo "configure:14882: checking for tiffio.h" >&5
14882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14883 echo $ac_n "(cached) $ac_c" 1>&6
14884 else
14885 cat > conftest.$ac_ext <<EOF
14886 #line 14887 "configure"
14887 #include "confdefs.h"
14888 #include <tiffio.h>
14889 EOF
14890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14891 { (eval echo configure:14892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14893 if test -z "$ac_err"; then
14894 rm -rf conftest*
14895 eval "ac_cv_header_$ac_safe=yes"
14896 else
14897 echo "$ac_err" >&5
14898 echo "configure: failed program was:" >&5
14899 cat conftest.$ac_ext >&5
14900 rm -rf conftest*
14901 eval "ac_cv_header_$ac_safe=no"
14902 fi
14903 rm -f conftest*
14904 fi
14905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14906 echo "$ac_t""yes" 1>&6
14907 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
14908 echo "configure:14909: checking for TIFFError in -ltiff" >&5
14909 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14911 echo $ac_n "(cached) $ac_c" 1>&6
14912 else
14913 ac_save_LIBS="$LIBS"
14914 LIBS="-ltiff -lm $LIBS"
14915 cat > conftest.$ac_ext <<EOF
14916 #line 14917 "configure"
14917 #include "confdefs.h"
14918 /* Override any gcc2 internal prototype to avoid an error. */
14919 /* We use char because int might match the return type of a gcc2
14920 builtin and then its argument prototype would still apply. */
14921 char TIFFError();
14922
14923 int main() {
14924 TIFFError()
14925 ; return 0; }
14926 EOF
14927 if { (eval echo configure:14928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14928 rm -rf conftest*
14929 eval "ac_cv_lib_$ac_lib_var=yes"
14930 else
14931 echo "configure: failed program was:" >&5
14932 cat conftest.$ac_ext >&5
14933 rm -rf conftest*
14934 eval "ac_cv_lib_$ac_lib_var=no"
14935 fi
14936 rm -f conftest*
14937 LIBS="$ac_save_LIBS"
14938
14939 fi
14940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14941 echo "$ac_t""yes" 1>&6
14942 TIFF_LINK="-ltiff"
14943 else
14944 echo "$ac_t""no" 1>&6
14945 fi
14946
14947 else
14948 echo "$ac_t""no" 1>&6
14949 fi
14950
14951 if test "x$TIFF_LINK" = "x" ; then
14952 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
14953 fi
14954 fi
14955 fi
14956
14957 FREETYPE_INCLUDE=
14958 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
14959 cat >> confdefs.h <<\EOF
14960 #define wxUSE_FREETYPE 1
14961 EOF
14962
14963 if test "$wxUSE_FREETYPE" = "yes" ; then
14964 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14965 else
14966 FREETYPE_LINK=
14967 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14968 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
14969 echo "configure:14970: checking for freetype.h" >&5
14970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14971 echo $ac_n "(cached) $ac_c" 1>&6
14972 else
14973 cat > conftest.$ac_ext <<EOF
14974 #line 14975 "configure"
14975 #include "confdefs.h"
14976 #include <freetype.h>
14977 EOF
14978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14979 { (eval echo configure:14980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14981 if test -z "$ac_err"; then
14982 rm -rf conftest*
14983 eval "ac_cv_header_$ac_safe=yes"
14984 else
14985 echo "$ac_err" >&5
14986 echo "configure: failed program was:" >&5
14987 cat conftest.$ac_ext >&5
14988 rm -rf conftest*
14989 eval "ac_cv_header_$ac_safe=no"
14990 fi
14991 rm -f conftest*
14992 fi
14993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14994 echo "$ac_t""yes" 1>&6
14995 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
14996 echo "configure:14997: checking for FT_Render_Glyph in -lfreetype" >&5
14997 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14999 echo $ac_n "(cached) $ac_c" 1>&6
15000 else
15001 ac_save_LIBS="$LIBS"
15002 LIBS="-lfreetype -lm $LIBS"
15003 cat > conftest.$ac_ext <<EOF
15004 #line 15005 "configure"
15005 #include "confdefs.h"
15006 /* Override any gcc2 internal prototype to avoid an error. */
15007 /* We use char because int might match the return type of a gcc2
15008 builtin and then its argument prototype would still apply. */
15009 char FT_Render_Glyph();
15010
15011 int main() {
15012 FT_Render_Glyph()
15013 ; return 0; }
15014 EOF
15015 if { (eval echo configure:15016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15016 rm -rf conftest*
15017 eval "ac_cv_lib_$ac_lib_var=yes"
15018 else
15019 echo "configure: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15021 rm -rf conftest*
15022 eval "ac_cv_lib_$ac_lib_var=no"
15023 fi
15024 rm -f conftest*
15025 LIBS="$ac_save_LIBS"
15026
15027 fi
15028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15029 echo "$ac_t""yes" 1>&6
15030 FREETYPE_LINK="-lfreetype"
15031 else
15032 echo "$ac_t""no" 1>&6
15033 fi
15034
15035
15036 else
15037 echo "$ac_t""no" 1>&6
15038 fi
15039
15040 if test "x$FREETYPE_LINK" = "x" ; then
15041 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15042 fi
15043 fi
15044 fi
15045
15046 if test "$wxUSE_OPENGL" = "yes"; then
15047 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15048 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15049 echo "configure:15050: checking for GL/gl.h" >&5
15050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15051 echo $ac_n "(cached) $ac_c" 1>&6
15052 else
15053 cat > conftest.$ac_ext <<EOF
15054 #line 15055 "configure"
15055 #include "confdefs.h"
15056 #include <GL/gl.h>
15057 EOF
15058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15059 { (eval echo configure:15060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15061 if test -z "$ac_err"; then
15062 rm -rf conftest*
15063 eval "ac_cv_header_$ac_safe=yes"
15064 else
15065 echo "$ac_err" >&5
15066 echo "configure: failed program was:" >&5
15067 cat conftest.$ac_ext >&5
15068 rm -rf conftest*
15069 eval "ac_cv_header_$ac_safe=no"
15070 fi
15071 rm -f conftest*
15072 fi
15073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15074 echo "$ac_t""yes" 1>&6
15075
15076 cat >> confdefs.h <<\EOF
15077 #define wxUSE_OPENGL 1
15078 EOF
15079
15080 cat >> confdefs.h <<\EOF
15081 #define wxUSE_GLCANVAS 1
15082 EOF
15083
15084 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
15085 echo "configure:15086: checking for glFlush in -lGL" >&5
15086 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15088 echo $ac_n "(cached) $ac_c" 1>&6
15089 else
15090 ac_save_LIBS="$LIBS"
15091 LIBS="-lGL $LIBS"
15092 cat > conftest.$ac_ext <<EOF
15093 #line 15094 "configure"
15094 #include "confdefs.h"
15095 /* Override any gcc2 internal prototype to avoid an error. */
15096 /* We use char because int might match the return type of a gcc2
15097 builtin and then its argument prototype would still apply. */
15098 char glFlush();
15099
15100 int main() {
15101 glFlush()
15102 ; return 0; }
15103 EOF
15104 if { (eval echo configure:15105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15105 rm -rf conftest*
15106 eval "ac_cv_lib_$ac_lib_var=yes"
15107 else
15108 echo "configure: failed program was:" >&5
15109 cat conftest.$ac_ext >&5
15110 rm -rf conftest*
15111 eval "ac_cv_lib_$ac_lib_var=no"
15112 fi
15113 rm -f conftest*
15114 LIBS="$ac_save_LIBS"
15115
15116 fi
15117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15118 echo "$ac_t""yes" 1>&6
15119
15120 OPENGL_LINK="-lGL -lGLU"
15121
15122 else
15123 echo "$ac_t""no" 1>&6
15124
15125 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
15126 echo "configure:15127: checking for glFlush in -lMesaGL" >&5
15127 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15129 echo $ac_n "(cached) $ac_c" 1>&6
15130 else
15131 ac_save_LIBS="$LIBS"
15132 LIBS="-lMesaGL $LIBS"
15133 cat > conftest.$ac_ext <<EOF
15134 #line 15135 "configure"
15135 #include "confdefs.h"
15136 /* Override any gcc2 internal prototype to avoid an error. */
15137 /* We use char because int might match the return type of a gcc2
15138 builtin and then its argument prototype would still apply. */
15139 char glFlush();
15140
15141 int main() {
15142 glFlush()
15143 ; return 0; }
15144 EOF
15145 if { (eval echo configure:15146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15146 rm -rf conftest*
15147 eval "ac_cv_lib_$ac_lib_var=yes"
15148 else
15149 echo "configure: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
15151 rm -rf conftest*
15152 eval "ac_cv_lib_$ac_lib_var=no"
15153 fi
15154 rm -f conftest*
15155 LIBS="$ac_save_LIBS"
15156
15157 fi
15158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15159 echo "$ac_t""yes" 1>&6
15160
15161 OPENGL_LINK="-lMesaGL -lMesaGLU"
15162
15163 else
15164 echo "$ac_t""no" 1>&6
15165 fi
15166
15167
15168 fi
15169
15170
15171 else
15172 echo "$ac_t""no" 1>&6
15173 wxUSE_OPENGL=0
15174 fi
15175
15176 fi
15177
15178
15179 if test "$wxUSE_GUI" = "yes"; then
15180 cat >> confdefs.h <<\EOF
15181 #define wxUSE_GUI 1
15182 EOF
15183
15184
15185 else
15186 cat >> confdefs.h <<\EOF
15187 #define wxUSE_NOGUI 1
15188 EOF
15189
15190 fi
15191
15192
15193 if test "$wxUSE_UNIX" = "yes"; then
15194 cat >> confdefs.h <<\EOF
15195 #define wxUSE_UNIX 1
15196 EOF
15197
15198 fi
15199
15200
15201 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15202 cat >> confdefs.h <<\EOF
15203 #define wxUSE_APPLE_IEEE 1
15204 EOF
15205
15206 fi
15207
15208 if test "$wxUSE_TIMER" = "yes"; then
15209 cat >> confdefs.h <<\EOF
15210 #define wxUSE_TIMER 1
15211 EOF
15212
15213 fi
15214
15215 if test "$wxUSE_WAVE" = "yes"; then
15216 cat >> confdefs.h <<\EOF
15217 #define wxUSE_WAVE 1
15218 EOF
15219
15220 fi
15221
15222 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15223 cat >> confdefs.h <<\EOF
15224 #define wxUSE_CMDLINE_PARSER 1
15225 EOF
15226
15227 fi
15228
15229 if test "$wxUSE_STOPWATCH" = "yes"; then
15230 cat >> confdefs.h <<\EOF
15231 #define wxUSE_STOPWATCH 1
15232 EOF
15233
15234 fi
15235
15236 if test "$wxUSE_DATETIME" = "yes"; then
15237 cat >> confdefs.h <<\EOF
15238 #define wxUSE_DATETIME 1
15239 EOF
15240
15241 fi
15242
15243 if test "$wxUSE_TIMEDATE" = "yes"; then
15244 cat >> confdefs.h <<\EOF
15245 #define wxUSE_TIMEDATE 1
15246 EOF
15247
15248 fi
15249
15250 if test "$wxUSE_FILE" = "yes"; then
15251 cat >> confdefs.h <<\EOF
15252 #define wxUSE_FILE 1
15253 EOF
15254
15255 fi
15256
15257 if test "$wxUSE_FFILE" = "yes"; then
15258 cat >> confdefs.h <<\EOF
15259 #define wxUSE_FFILE 1
15260 EOF
15261
15262 fi
15263
15264 if test "$wxUSE_FILESYSTEM" = "yes"; then
15265 cat >> confdefs.h <<\EOF
15266 #define wxUSE_FILESYSTEM 1
15267 EOF
15268
15269 fi
15270
15271 if test "$wxUSE_FS_INET" = "yes"; then
15272 cat >> confdefs.h <<\EOF
15273 #define wxUSE_FS_INET 1
15274 EOF
15275
15276 fi
15277
15278 if test "$wxUSE_FS_ZIP" = "yes"; then
15279 cat >> confdefs.h <<\EOF
15280 #define wxUSE_FS_ZIP 1
15281 EOF
15282
15283 fi
15284
15285 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15286 cat >> confdefs.h <<\EOF
15287 #define wxUSE_ZIPSTREAM 1
15288 EOF
15289
15290 fi
15291
15292 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15293 cat >> confdefs.h <<\EOF
15294 #define wxUSE_ON_FATAL_EXCEPTION 1
15295 EOF
15296
15297 fi
15298
15299 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15300 cat >> confdefs.h <<\EOF
15301 #define wxUSE_SNGLINST_CHECKER 1
15302 EOF
15303
15304 fi
15305
15306 if test "$wxUSE_BUSYINFO" = "yes"; then
15307 cat >> confdefs.h <<\EOF
15308 #define wxUSE_BUSYINFO 1
15309 EOF
15310
15311 fi
15312
15313 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15314 cat >> confdefs.h <<\EOF
15315 #define wxUSE_STD_IOSTREAM 1
15316 EOF
15317
15318 fi
15319
15320 if test "$wxUSE_TEXTFILE" = "yes"; then
15321 if test "$wxUSE_FILE" != "yes"; then
15322 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15323 else
15324 cat >> confdefs.h <<\EOF
15325 #define wxUSE_TEXTFILE 1
15326 EOF
15327
15328 fi
15329 fi
15330
15331 if test "$wxUSE_CONFIG" = "yes" ; then
15332 if test "$wxUSE_TEXTFILE" != "yes"; then
15333 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15334 else
15335 cat >> confdefs.h <<\EOF
15336 #define wxUSE_CONFIG 1
15337 EOF
15338
15339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15340 fi
15341 fi
15342
15343 if test "$wxUSE_INTL" = "yes" ; then
15344 if test "$wxUSE_FILE" != "yes"; then
15345 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15346 else
15347 cat >> confdefs.h <<\EOF
15348 #define wxUSE_INTL 1
15349 EOF
15350
15351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15352 GUIDIST="$GUIDIST INTL_DIST"
15353 fi
15354 fi
15355
15356 if test "$wxUSE_LOG" = "yes"; then
15357 cat >> confdefs.h <<\EOF
15358 #define wxUSE_LOG 1
15359 EOF
15360
15361
15362 if test "$wxUSE_LOGGUI" = "yes"; then
15363 cat >> confdefs.h <<\EOF
15364 #define wxUSE_LOGGUI 1
15365 EOF
15366
15367 fi
15368
15369 if test "$wxUSE_LOGWINDOW" = "yes"; then
15370 cat >> confdefs.h <<\EOF
15371 #define wxUSE_LOGWINDOW 1
15372 EOF
15373
15374 fi
15375 fi
15376
15377 if test "$wxUSE_LONGLONG" = "yes"; then
15378 cat >> confdefs.h <<\EOF
15379 #define wxUSE_LONGLONG 1
15380 EOF
15381
15382 fi
15383
15384 if test "$wxUSE_GEOMETRY" = "yes"; then
15385 cat >> confdefs.h <<\EOF
15386 #define wxUSE_GEOMETRY 1
15387 EOF
15388
15389 fi
15390
15391 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15392 cat >> confdefs.h <<\EOF
15393 #define wxUSE_DIALUP_MANAGER 1
15394 EOF
15395
15396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15397 fi
15398
15399 if test "$wxUSE_STREAMS" = "yes" ; then
15400 cat >> confdefs.h <<\EOF
15401 #define wxUSE_STREAMS 1
15402 EOF
15403
15404 fi
15405
15406
15407 if test "$wxUSE_DATETIME" = "yes"; then
15408 for ac_func in strptime
15409 do
15410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15411 echo "configure:15412: checking for $ac_func" >&5
15412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15413 echo $ac_n "(cached) $ac_c" 1>&6
15414 else
15415 cat > conftest.$ac_ext <<EOF
15416 #line 15417 "configure"
15417 #include "confdefs.h"
15418 /* System header to define __stub macros and hopefully few prototypes,
15419 which can conflict with char $ac_func(); below. */
15420 #include <assert.h>
15421 /* Override any gcc2 internal prototype to avoid an error. */
15422 /* We use char because int might match the return type of a gcc2
15423 builtin and then its argument prototype would still apply. */
15424 char $ac_func();
15425
15426 int main() {
15427
15428 /* The GNU C library defines this for functions which it implements
15429 to always fail with ENOSYS. Some functions are actually named
15430 something starting with __ and the normal name is an alias. */
15431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15432 choke me
15433 #else
15434 $ac_func();
15435 #endif
15436
15437 ; return 0; }
15438 EOF
15439 if { (eval echo configure:15440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15440 rm -rf conftest*
15441 eval "ac_cv_func_$ac_func=yes"
15442 else
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15445 rm -rf conftest*
15446 eval "ac_cv_func_$ac_func=no"
15447 fi
15448 rm -f conftest*
15449 fi
15450
15451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15452 echo "$ac_t""yes" 1>&6
15453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15454 cat >> confdefs.h <<EOF
15455 #define $ac_tr_func 1
15456 EOF
15457
15458 else
15459 echo "$ac_t""no" 1>&6
15460 fi
15461 done
15462
15463
15464 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15465 echo "configure:15466: checking for timezone variable in <time.h>" >&5
15466 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15467 echo $ac_n "(cached) $ac_c" 1>&6
15468 else
15469
15470 cat > conftest.$ac_ext <<EOF
15471 #line 15472 "configure"
15472 #include "confdefs.h"
15473
15474 #include <time.h>
15475
15476 int main() {
15477
15478 int tz;
15479 tz = __timezone;
15480
15481 ; return 0; }
15482 EOF
15483 if { (eval echo configure:15484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15484 rm -rf conftest*
15485
15486 wx_cv_var_timezone=__timezone
15487
15488 else
15489 echo "configure: failed program was:" >&5
15490 cat conftest.$ac_ext >&5
15491 rm -rf conftest*
15492
15493 cat > conftest.$ac_ext <<EOF
15494 #line 15495 "configure"
15495 #include "confdefs.h"
15496
15497 #include <time.h>
15498
15499 int main() {
15500
15501 int tz;
15502 tz = _timezone;
15503
15504 ; return 0; }
15505 EOF
15506 if { (eval echo configure:15507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15507 rm -rf conftest*
15508
15509 wx_cv_var_timezone=_timezone
15510
15511 else
15512 echo "configure: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15514 rm -rf conftest*
15515
15516 cat > conftest.$ac_ext <<EOF
15517 #line 15518 "configure"
15518 #include "confdefs.h"
15519
15520 #include <time.h>
15521
15522 int main() {
15523
15524 int tz;
15525 tz = timezone;
15526
15527 ; return 0; }
15528 EOF
15529 if { (eval echo configure:15530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15530 rm -rf conftest*
15531
15532 wx_cv_var_timezone=timezone
15533
15534 else
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15537 rm -rf conftest*
15538 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15539
15540 fi
15541 rm -f conftest*
15542
15543
15544 fi
15545 rm -f conftest*
15546
15547
15548 fi
15549 rm -f conftest*
15550
15551
15552 fi
15553
15554 echo "$ac_t""$wx_cv_var_timezone" 1>&6
15555
15556 cat >> confdefs.h <<EOF
15557 #define WX_TIMEZONE $wx_cv_var_timezone
15558 EOF
15559
15560
15561 for ac_func in localtime
15562 do
15563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15564 echo "configure:15565: checking for $ac_func" >&5
15565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15566 echo $ac_n "(cached) $ac_c" 1>&6
15567 else
15568 cat > conftest.$ac_ext <<EOF
15569 #line 15570 "configure"
15570 #include "confdefs.h"
15571 /* System header to define __stub macros and hopefully few prototypes,
15572 which can conflict with char $ac_func(); below. */
15573 #include <assert.h>
15574 /* Override any gcc2 internal prototype to avoid an error. */
15575 /* We use char because int might match the return type of a gcc2
15576 builtin and then its argument prototype would still apply. */
15577 char $ac_func();
15578
15579 int main() {
15580
15581 /* The GNU C library defines this for functions which it implements
15582 to always fail with ENOSYS. Some functions are actually named
15583 something starting with __ and the normal name is an alias. */
15584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15585 choke me
15586 #else
15587 $ac_func();
15588 #endif
15589
15590 ; return 0; }
15591 EOF
15592 if { (eval echo configure:15593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15593 rm -rf conftest*
15594 eval "ac_cv_func_$ac_func=yes"
15595 else
15596 echo "configure: failed program was:" >&5
15597 cat conftest.$ac_ext >&5
15598 rm -rf conftest*
15599 eval "ac_cv_func_$ac_func=no"
15600 fi
15601 rm -f conftest*
15602 fi
15603
15604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15605 echo "$ac_t""yes" 1>&6
15606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15607 cat >> confdefs.h <<EOF
15608 #define $ac_tr_func 1
15609 EOF
15610
15611 else
15612 echo "$ac_t""no" 1>&6
15613 fi
15614 done
15615
15616
15617 if test "$ac_cv_func_localtime" = "yes"; then
15618 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
15619 echo "configure:15620: checking for tm_gmtoff in struct tm" >&5
15620 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15621 echo $ac_n "(cached) $ac_c" 1>&6
15622 else
15623
15624 cat > conftest.$ac_ext <<EOF
15625 #line 15626 "configure"
15626 #include "confdefs.h"
15627
15628 #include <time.h>
15629
15630 int main() {
15631
15632 struct tm tm;
15633 tm.tm_gmtoff++;
15634
15635 ; return 0; }
15636 EOF
15637 if { (eval echo configure:15638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15638 rm -rf conftest*
15639
15640 wx_cv_struct_tm_has_gmtoff=yes
15641
15642 else
15643 echo "configure: failed program was:" >&5
15644 cat conftest.$ac_ext >&5
15645 rm -rf conftest*
15646 wx_cv_struct_tm_has_gmtoff=no
15647
15648 fi
15649 rm -f conftest*
15650
15651 fi
15652
15653 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
15654 fi
15655
15656 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
15657 cat >> confdefs.h <<\EOF
15658 #define WX_GMTOFF_IN_TM 1
15659 EOF
15660
15661 fi
15662
15663 for ac_func in gettimeofday ftime
15664 do
15665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15666 echo "configure:15667: checking for $ac_func" >&5
15667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15668 echo $ac_n "(cached) $ac_c" 1>&6
15669 else
15670 cat > conftest.$ac_ext <<EOF
15671 #line 15672 "configure"
15672 #include "confdefs.h"
15673 /* System header to define __stub macros and hopefully few prototypes,
15674 which can conflict with char $ac_func(); below. */
15675 #include <assert.h>
15676 /* Override any gcc2 internal prototype to avoid an error. */
15677 /* We use char because int might match the return type of a gcc2
15678 builtin and then its argument prototype would still apply. */
15679 char $ac_func();
15680
15681 int main() {
15682
15683 /* The GNU C library defines this for functions which it implements
15684 to always fail with ENOSYS. Some functions are actually named
15685 something starting with __ and the normal name is an alias. */
15686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15687 choke me
15688 #else
15689 $ac_func();
15690 #endif
15691
15692 ; return 0; }
15693 EOF
15694 if { (eval echo configure:15695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15695 rm -rf conftest*
15696 eval "ac_cv_func_$ac_func=yes"
15697 else
15698 echo "configure: failed program was:" >&5
15699 cat conftest.$ac_ext >&5
15700 rm -rf conftest*
15701 eval "ac_cv_func_$ac_func=no"
15702 fi
15703 rm -f conftest*
15704 fi
15705
15706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15707 echo "$ac_t""yes" 1>&6
15708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15709 cat >> confdefs.h <<EOF
15710 #define $ac_tr_func 1
15711 EOF
15712 break
15713 else
15714 echo "$ac_t""no" 1>&6
15715 fi
15716 done
15717
15718
15719 if test "$ac_cv_func_gettimeofday" = "yes"; then
15720 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
15721 echo "configure:15722: checking whether gettimeofday takes two arguments" >&5
15722 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15723 echo $ac_n "(cached) $ac_c" 1>&6
15724 else
15725
15726
15727 ac_ext=C
15728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15729 ac_cpp='$CXXCPP $CPPFLAGS'
15730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15732 cross_compiling=$ac_cv_prog_cxx_cross
15733
15734
15735 cat > conftest.$ac_ext <<EOF
15736 #line 15737 "configure"
15737 #include "confdefs.h"
15738
15739 #include <sys/time.h>
15740 #include <unistd.h>
15741
15742 int main() {
15743
15744 struct timeval tv;
15745 struct timezone tz;
15746 gettimeofday(&tv, &tz);
15747
15748 ; return 0; }
15749 EOF
15750 if { (eval echo configure:15751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15751 rm -rf conftest*
15752 wx_cv_func_gettimeofday_has_2_args=yes
15753 else
15754 echo "configure: failed program was:" >&5
15755 cat conftest.$ac_ext >&5
15756 rm -rf conftest*
15757 cat > conftest.$ac_ext <<EOF
15758 #line 15759 "configure"
15759 #include "confdefs.h"
15760
15761 #include <sys/time.h>
15762 #include <unistd.h>
15763
15764 int main() {
15765
15766 struct timeval tv;
15767 gettimeofday(&tv);
15768
15769 ; return 0; }
15770 EOF
15771 if { (eval echo configure:15772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15772 rm -rf conftest*
15773 wx_cv_func_gettimeofday_has_2_args=no
15774 else
15775 echo "configure: failed program was:" >&5
15776 cat conftest.$ac_ext >&5
15777 rm -rf conftest*
15778 wx_cv_func_gettimeofday_has_2_args=unknown
15779
15780 fi
15781 rm -f conftest*
15782
15783 fi
15784 rm -f conftest*
15785 ac_ext=c
15786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15787 ac_cpp='$CPP $CPPFLAGS'
15788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15790 cross_compiling=$ac_cv_prog_cc_cross
15791
15792
15793 fi
15794
15795 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
15796
15797 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
15798 cat >> confdefs.h <<\EOF
15799 #define WX_GETTIMEOFDAY_NO_TZ 1
15800 EOF
15801
15802 fi
15803 fi
15804
15805 cat >> confdefs.h <<\EOF
15806 #define wxUSE_TIMEDATE 1
15807 EOF
15808
15809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15810 fi
15811
15812
15813 if test "$TOOLKIT" != "MSW"; then
15814
15815 if test "$wxUSE_SOCKETS" = "yes"; then
15816 echo $ac_n "checking for socket""... $ac_c" 1>&6
15817 echo "configure:15818: checking for socket" >&5
15818 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15819 echo $ac_n "(cached) $ac_c" 1>&6
15820 else
15821 cat > conftest.$ac_ext <<EOF
15822 #line 15823 "configure"
15823 #include "confdefs.h"
15824 /* System header to define __stub macros and hopefully few prototypes,
15825 which can conflict with char socket(); below. */
15826 #include <assert.h>
15827 /* Override any gcc2 internal prototype to avoid an error. */
15828 /* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15830 char socket();
15831
15832 int main() {
15833
15834 /* The GNU C library defines this for functions which it implements
15835 to always fail with ENOSYS. Some functions are actually named
15836 something starting with __ and the normal name is an alias. */
15837 #if defined (__stub_socket) || defined (__stub___socket)
15838 choke me
15839 #else
15840 socket();
15841 #endif
15842
15843 ; return 0; }
15844 EOF
15845 if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15846 rm -rf conftest*
15847 eval "ac_cv_func_socket=yes"
15848 else
15849 echo "configure: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15851 rm -rf conftest*
15852 eval "ac_cv_func_socket=no"
15853 fi
15854 rm -f conftest*
15855 fi
15856
15857 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15858 echo "$ac_t""yes" 1>&6
15859 :
15860 else
15861 echo "$ac_t""no" 1>&6
15862 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
15863 echo "configure:15864: checking for socket in -lsocket" >&5
15864 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15866 echo $ac_n "(cached) $ac_c" 1>&6
15867 else
15868 ac_save_LIBS="$LIBS"
15869 LIBS="-lsocket $LIBS"
15870 cat > conftest.$ac_ext <<EOF
15871 #line 15872 "configure"
15872 #include "confdefs.h"
15873 /* Override any gcc2 internal prototype to avoid an error. */
15874 /* We use char because int might match the return type of a gcc2
15875 builtin and then its argument prototype would still apply. */
15876 char socket();
15877
15878 int main() {
15879 socket()
15880 ; return 0; }
15881 EOF
15882 if { (eval echo configure:15883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15883 rm -rf conftest*
15884 eval "ac_cv_lib_$ac_lib_var=yes"
15885 else
15886 echo "configure: failed program was:" >&5
15887 cat conftest.$ac_ext >&5
15888 rm -rf conftest*
15889 eval "ac_cv_lib_$ac_lib_var=no"
15890 fi
15891 rm -f conftest*
15892 LIBS="$ac_save_LIBS"
15893
15894 fi
15895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15896 echo "$ac_t""yes" 1>&6
15897 INET_LINK="$INET_LINK -lsocket"
15898 else
15899 echo "$ac_t""no" 1>&6
15900
15901 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
15902 wxUSE_SOCKETS=no
15903
15904
15905 fi
15906
15907
15908 fi
15909
15910 fi
15911
15912
15913 if test "$wxUSE_SOCKETS" = "yes" ; then
15914 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
15915 echo "configure:15916: checking what is the type of the third argument of getsockname" >&5
15916 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15917 echo $ac_n "(cached) $ac_c" 1>&6
15918 else
15919
15920
15921 ac_ext=C
15922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15923 ac_cpp='$CXXCPP $CPPFLAGS'
15924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15926 cross_compiling=$ac_cv_prog_cxx_cross
15927
15928
15929 cat > conftest.$ac_ext <<EOF
15930 #line 15931 "configure"
15931 #include "confdefs.h"
15932
15933 #include <sys/types.h>
15934 #include <sys/socket.h>
15935
15936 int main() {
15937
15938 socklen_t len;
15939 getsockname(0, 0, &len);
15940
15941 ; return 0; }
15942 EOF
15943 if { (eval echo configure:15944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15944 rm -rf conftest*
15945 wx_cv_type_getsockname3=socklen_t
15946 else
15947 echo "configure: failed program was:" >&5
15948 cat conftest.$ac_ext >&5
15949 rm -rf conftest*
15950 cat > conftest.$ac_ext <<EOF
15951 #line 15952 "configure"
15952 #include "confdefs.h"
15953
15954 #include <sys/types.h>
15955 #include <sys/socket.h>
15956
15957 int main() {
15958
15959 size_t len;
15960 getsockname(0, 0, &len);
15961
15962 ; return 0; }
15963 EOF
15964 if { (eval echo configure:15965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15965 rm -rf conftest*
15966 wx_cv_type_getsockname3=size_t
15967 else
15968 echo "configure: failed program was:" >&5
15969 cat conftest.$ac_ext >&5
15970 rm -rf conftest*
15971 cat > conftest.$ac_ext <<EOF
15972 #line 15973 "configure"
15973 #include "confdefs.h"
15974
15975 #include <sys/types.h>
15976 #include <sys/socket.h>
15977
15978 int main() {
15979
15980 int len;
15981 getsockname(0, 0, &len);
15982
15983 ; return 0; }
15984 EOF
15985 if { (eval echo configure:15986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15986 rm -rf conftest*
15987 wx_cv_type_getsockname3=int
15988 else
15989 echo "configure: failed program was:" >&5
15990 cat conftest.$ac_ext >&5
15991 rm -rf conftest*
15992 wx_cv_type_getsockname3=unknown
15993
15994 fi
15995 rm -f conftest*
15996
15997 fi
15998 rm -f conftest*
15999
16000 fi
16001 rm -f conftest*
16002
16003 ac_ext=c
16004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16005 ac_cpp='$CPP $CPPFLAGS'
16006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16008 cross_compiling=$ac_cv_prog_cc_cross
16009
16010
16011 fi
16012
16013 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16014
16015 if test "$wx_cv_type_getsockname3" = "unknown"; then
16016 wxUSE_SOCKETS=no
16017 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16018 else
16019 cat >> confdefs.h <<EOF
16020 #define SOCKLEN_T $wx_cv_type_getsockname3
16021 EOF
16022
16023 fi
16024 fi
16025
16026 fi
16027
16028 if test "$wxUSE_SOCKETS" = "yes" ; then
16029 cat >> confdefs.h <<\EOF
16030 #define wxUSE_SOCKETS 1
16031 EOF
16032
16033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16034 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16035 fi
16036
16037
16038 if test "$wxUSE_GUI" = "yes"; then
16039
16040 if test "$TOOLKIT" != "MSW"; then
16041
16042 if test "$wxUSE_JOYSTICK" = "yes"; then
16043 for ac_hdr in linux/joystick.h
16044 do
16045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16047 echo "configure:16048: checking for $ac_hdr" >&5
16048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16049 echo $ac_n "(cached) $ac_c" 1>&6
16050 else
16051 cat > conftest.$ac_ext <<EOF
16052 #line 16053 "configure"
16053 #include "confdefs.h"
16054 #include <$ac_hdr>
16055 EOF
16056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16057 { (eval echo configure:16058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16059 if test -z "$ac_err"; then
16060 rm -rf conftest*
16061 eval "ac_cv_header_$ac_safe=yes"
16062 else
16063 echo "$ac_err" >&5
16064 echo "configure: failed program was:" >&5
16065 cat conftest.$ac_ext >&5
16066 rm -rf conftest*
16067 eval "ac_cv_header_$ac_safe=no"
16068 fi
16069 rm -f conftest*
16070 fi
16071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16072 echo "$ac_t""yes" 1>&6
16073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16074 cat >> confdefs.h <<EOF
16075 #define $ac_tr_hdr 1
16076 EOF
16077
16078 else
16079 echo "$ac_t""no" 1>&6
16080 fi
16081 done
16082
16083 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16084 wxUSE_JOYSTICK=no
16085 echo "configure: warning: Joystick not supported by this system" 1>&2
16086 fi
16087 fi
16088
16089 fi
16090
16091 if test "$wxUSE_JOYSTICK" = "yes"; then
16092 cat >> confdefs.h <<\EOF
16093 #define wxUSE_JOYSTICK 1
16094 EOF
16095
16096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16097 fi
16098
16099 fi
16100
16101
16102 if test "$TOOLKIT" != "MSW"; then
16103
16104 HAVE_DL_FUNCS=0
16105 HAVE_SHL_FUNCS=0
16106 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16107 if test "$USE_MAC" = 1; then
16108 HAVE_DL_FUNCS=1
16109 else
16110 for ac_func in dlopen
16111 do
16112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16113 echo "configure:16114: checking for $ac_func" >&5
16114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16115 echo $ac_n "(cached) $ac_c" 1>&6
16116 else
16117 cat > conftest.$ac_ext <<EOF
16118 #line 16119 "configure"
16119 #include "confdefs.h"
16120 /* System header to define __stub macros and hopefully few prototypes,
16121 which can conflict with char $ac_func(); below. */
16122 #include <assert.h>
16123 /* Override any gcc2 internal prototype to avoid an error. */
16124 /* We use char because int might match the return type of a gcc2
16125 builtin and then its argument prototype would still apply. */
16126 char $ac_func();
16127
16128 int main() {
16129
16130 /* The GNU C library defines this for functions which it implements
16131 to always fail with ENOSYS. Some functions are actually named
16132 something starting with __ and the normal name is an alias. */
16133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16134 choke me
16135 #else
16136 $ac_func();
16137 #endif
16138
16139 ; return 0; }
16140 EOF
16141 if { (eval echo configure:16142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16142 rm -rf conftest*
16143 eval "ac_cv_func_$ac_func=yes"
16144 else
16145 echo "configure: failed program was:" >&5
16146 cat conftest.$ac_ext >&5
16147 rm -rf conftest*
16148 eval "ac_cv_func_$ac_func=no"
16149 fi
16150 rm -f conftest*
16151 fi
16152
16153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16154 echo "$ac_t""yes" 1>&6
16155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16156 cat >> confdefs.h <<EOF
16157 #define $ac_tr_func 1
16158 EOF
16159
16160 cat >> confdefs.h <<\EOF
16161 #define HAVE_DLOPEN 1
16162 EOF
16163
16164 HAVE_DL_FUNCS=1
16165
16166 else
16167 echo "$ac_t""no" 1>&6
16168 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16169 echo "configure:16170: checking for dlopen in -ldl" >&5
16170 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16172 echo $ac_n "(cached) $ac_c" 1>&6
16173 else
16174 ac_save_LIBS="$LIBS"
16175 LIBS="-ldl $LIBS"
16176 cat > conftest.$ac_ext <<EOF
16177 #line 16178 "configure"
16178 #include "confdefs.h"
16179 /* Override any gcc2 internal prototype to avoid an error. */
16180 /* We use char because int might match the return type of a gcc2
16181 builtin and then its argument prototype would still apply. */
16182 char dlopen();
16183
16184 int main() {
16185 dlopen()
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_lib_$ac_lib_var=yes"
16191 else
16192 echo "configure: failed program was:" >&5
16193 cat conftest.$ac_ext >&5
16194 rm -rf conftest*
16195 eval "ac_cv_lib_$ac_lib_var=no"
16196 fi
16197 rm -f conftest*
16198 LIBS="$ac_save_LIBS"
16199
16200 fi
16201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16202 echo "$ac_t""yes" 1>&6
16203
16204 cat >> confdefs.h <<\EOF
16205 #define HAVE_DLOPEN 1
16206 EOF
16207
16208 HAVE_DL_FUNCS=1
16209 LIBS="$LIBS -ldl"
16210
16211 else
16212 echo "$ac_t""no" 1>&6
16213
16214 for ac_func in shl_load
16215 do
16216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16217 echo "configure:16218: checking for $ac_func" >&5
16218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16219 echo $ac_n "(cached) $ac_c" 1>&6
16220 else
16221 cat > conftest.$ac_ext <<EOF
16222 #line 16223 "configure"
16223 #include "confdefs.h"
16224 /* System header to define __stub macros and hopefully few prototypes,
16225 which can conflict with char $ac_func(); below. */
16226 #include <assert.h>
16227 /* Override any gcc2 internal prototype to avoid an error. */
16228 /* We use char because int might match the return type of a gcc2
16229 builtin and then its argument prototype would still apply. */
16230 char $ac_func();
16231
16232 int main() {
16233
16234 /* The GNU C library defines this for functions which it implements
16235 to always fail with ENOSYS. Some functions are actually named
16236 something starting with __ and the normal name is an alias. */
16237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16238 choke me
16239 #else
16240 $ac_func();
16241 #endif
16242
16243 ; return 0; }
16244 EOF
16245 if { (eval echo configure:16246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16246 rm -rf conftest*
16247 eval "ac_cv_func_$ac_func=yes"
16248 else
16249 echo "configure: failed program was:" >&5
16250 cat conftest.$ac_ext >&5
16251 rm -rf conftest*
16252 eval "ac_cv_func_$ac_func=no"
16253 fi
16254 rm -f conftest*
16255 fi
16256
16257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16258 echo "$ac_t""yes" 1>&6
16259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16260 cat >> confdefs.h <<EOF
16261 #define $ac_tr_func 1
16262 EOF
16263
16264 cat >> confdefs.h <<\EOF
16265 #define HAVE_SHL_LOAD 1
16266 EOF
16267
16268 HAVE_SHL_FUNCS=1
16269
16270 else
16271 echo "$ac_t""no" 1>&6
16272 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16273 echo "configure:16274: checking for dld in -lshl_load" >&5
16274 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16276 echo $ac_n "(cached) $ac_c" 1>&6
16277 else
16278 ac_save_LIBS="$LIBS"
16279 LIBS="-lshl_load $LIBS"
16280 cat > conftest.$ac_ext <<EOF
16281 #line 16282 "configure"
16282 #include "confdefs.h"
16283 /* Override any gcc2 internal prototype to avoid an error. */
16284 /* We use char because int might match the return type of a gcc2
16285 builtin and then its argument prototype would still apply. */
16286 char dld();
16287
16288 int main() {
16289 dld()
16290 ; return 0; }
16291 EOF
16292 if { (eval echo configure:16293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16293 rm -rf conftest*
16294 eval "ac_cv_lib_$ac_lib_var=yes"
16295 else
16296 echo "configure: failed program was:" >&5
16297 cat conftest.$ac_ext >&5
16298 rm -rf conftest*
16299 eval "ac_cv_lib_$ac_lib_var=no"
16300 fi
16301 rm -f conftest*
16302 LIBS="$ac_save_LIBS"
16303
16304 fi
16305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16306 echo "$ac_t""yes" 1>&6
16307
16308 HAVE_SHL_FUNCS=1
16309 LIBS="$LIBS -ldld"
16310
16311 else
16312 echo "$ac_t""no" 1>&6
16313 fi
16314
16315
16316 fi
16317 done
16318
16319
16320 fi
16321
16322
16323 fi
16324 done
16325
16326
16327 if test "$HAVE_DL_FUNCS" = 1; then
16328 for ac_func in dlerror
16329 do
16330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16331 echo "configure:16332: checking for $ac_func" >&5
16332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16333 echo $ac_n "(cached) $ac_c" 1>&6
16334 else
16335 cat > conftest.$ac_ext <<EOF
16336 #line 16337 "configure"
16337 #include "confdefs.h"
16338 /* System header to define __stub macros and hopefully few prototypes,
16339 which can conflict with char $ac_func(); below. */
16340 #include <assert.h>
16341 /* Override any gcc2 internal prototype to avoid an error. */
16342 /* We use char because int might match the return type of a gcc2
16343 builtin and then its argument prototype would still apply. */
16344 char $ac_func();
16345
16346 int main() {
16347
16348 /* The GNU C library defines this for functions which it implements
16349 to always fail with ENOSYS. Some functions are actually named
16350 something starting with __ and the normal name is an alias. */
16351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16352 choke me
16353 #else
16354 $ac_func();
16355 #endif
16356
16357 ; return 0; }
16358 EOF
16359 if { (eval echo configure:16360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16360 rm -rf conftest*
16361 eval "ac_cv_func_$ac_func=yes"
16362 else
16363 echo "configure: failed program was:" >&5
16364 cat conftest.$ac_ext >&5
16365 rm -rf conftest*
16366 eval "ac_cv_func_$ac_func=no"
16367 fi
16368 rm -f conftest*
16369 fi
16370
16371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16372 echo "$ac_t""yes" 1>&6
16373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16374 cat >> confdefs.h <<EOF
16375 #define $ac_tr_func 1
16376 EOF
16377 cat >> confdefs.h <<\EOF
16378 #define HAVE_DLERROR 1
16379 EOF
16380
16381 else
16382 echo "$ac_t""no" 1>&6
16383 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16384 echo "configure:16385: checking for dlerror in -ldl" >&5
16385 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16387 echo $ac_n "(cached) $ac_c" 1>&6
16388 else
16389 ac_save_LIBS="$LIBS"
16390 LIBS="-ldl $LIBS"
16391 cat > conftest.$ac_ext <<EOF
16392 #line 16393 "configure"
16393 #include "confdefs.h"
16394 /* Override any gcc2 internal prototype to avoid an error. */
16395 /* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16397 char dlerror();
16398
16399 int main() {
16400 dlerror()
16401 ; return 0; }
16402 EOF
16403 if { (eval echo configure:16404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16404 rm -rf conftest*
16405 eval "ac_cv_lib_$ac_lib_var=yes"
16406 else
16407 echo "configure: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 rm -rf conftest*
16410 eval "ac_cv_lib_$ac_lib_var=no"
16411 fi
16412 rm -f conftest*
16413 LIBS="$ac_save_LIBS"
16414
16415 fi
16416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16417 echo "$ac_t""yes" 1>&6
16418 cat >> confdefs.h <<\EOF
16419 #define HAVE_DLERROR 1
16420 EOF
16421
16422 else
16423 echo "$ac_t""no" 1>&6
16424 fi
16425
16426 fi
16427 done
16428
16429 fi
16430 fi
16431
16432 if test "$HAVE_DL_FUNCS" = 0; then
16433 if test "$HAVE_SHL_FUNCS" = 0; then
16434 if test "$USE_UNIX" = 1; then
16435 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16436 wxUSE_DYNLIB_CLASS=no
16437 else
16438 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16439 fi
16440 fi
16441 fi
16442 fi
16443
16444 fi
16445
16446 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16447 cat >> confdefs.h <<\EOF
16448 #define wxUSE_DYNLIB_CLASS 1
16449 EOF
16450
16451 else
16452 wxUSE_ODBC=no
16453 wxUSE_SERIAL=no
16454 fi
16455
16456
16457 if test "$wxUSE_FONTMAP" = "yes" ; then
16458 cat >> confdefs.h <<\EOF
16459 #define wxUSE_FONTMAP 1
16460 EOF
16461
16462 fi
16463
16464 if test "$wxUSE_UNICODE" = "yes" ; then
16465 cat >> confdefs.h <<\EOF
16466 #define wxUSE_UNICODE 1
16467 EOF
16468
16469 fi
16470
16471 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16472 cat >> confdefs.h <<\EOF
16473 #define wxUSE_WCSRTOMBS 1
16474 EOF
16475
16476 fi
16477
16478 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16479 cat >> confdefs.h <<\EOF
16480 #define wxUSE_EXPERIMENTAL_PRINTF 1
16481 EOF
16482
16483 fi
16484
16485
16486 if test "$wxUSE_SERIAL" = "yes" ; then
16487 cat >> confdefs.h <<\EOF
16488 #define wxUSE_SERIAL 1
16489 EOF
16490
16491 fi
16492
16493
16494 IODBC_C_SRC=""
16495 if test "$wxUSE_ODBC" = "yes" ; then
16496 cat >> confdefs.h <<\EOF
16497 #define wxUSE_ODBC 1
16498 EOF
16499
16500 WXODBCFLAG="-D_IODBC_"
16501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16502 fi
16503
16504
16505 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16506 cat >> confdefs.h <<\EOF
16507 #define wxUSE_POSTSCRIPT 1
16508 EOF
16509
16510 fi
16511
16512 cat >> confdefs.h <<\EOF
16513 #define wxUSE_AFM_FOR_POSTSCRIPT 1
16514 EOF
16515
16516
16517 cat >> confdefs.h <<\EOF
16518 #define wxUSE_NORMALIZED_PS_FONTS 1
16519 EOF
16520
16521
16522
16523 if test "$wxUSE_CONSTRAINTS" = "yes"; then
16524 cat >> confdefs.h <<\EOF
16525 #define wxUSE_CONSTRAINTS 1
16526 EOF
16527
16528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16529 fi
16530
16531 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16532 cat >> confdefs.h <<\EOF
16533 #define wxUSE_MDI_ARCHITECTURE 1
16534 EOF
16535
16536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16537 fi
16538
16539 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16540 cat >> confdefs.h <<\EOF
16541 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
16542 EOF
16543
16544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16545 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16547 fi
16548 fi
16549
16550 if test "$wxUSE_HELP" = "yes"; then
16551 cat >> confdefs.h <<\EOF
16552 #define wxUSE_HELP 1
16553 EOF
16554
16555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16556
16557 if test "$wxUSE_WXHTML_HELP" = "yes"; then
16558 cat >> confdefs.h <<\EOF
16559 #define wxUSE_WXHTML_HELP 1
16560 EOF
16561
16562 fi
16563 fi
16564
16565 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16566 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16567 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
16568 else
16569 cat >> confdefs.h <<\EOF
16570 #define wxUSE_PRINTING_ARCHITECTURE 1
16571 EOF
16572
16573 fi
16574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16575 fi
16576
16577 if test "$wxUSE_PROLOGIO" = "yes" ; then
16578 cat >> confdefs.h <<\EOF
16579 #define wxUSE_PROLOGIO 1
16580 EOF
16581
16582 fi
16583
16584 if test "$wxUSE_RESOURCES" = "yes" ; then
16585 cat >> confdefs.h <<\EOF
16586 #define wxUSE_RESOURCES 1
16587 EOF
16588
16589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16590 fi
16591
16592 if test "$wxUSE_X_RESOURCES" = "yes"; then
16593 cat >> confdefs.h <<\EOF
16594 #define wxUSE_X_RESOURCES 1
16595 EOF
16596
16597 fi
16598
16599
16600 if test "$wxUSE_IPC" = "yes"; then
16601 if test "$wxUSE_SOCKETS" != "yes"; then
16602 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
16603 fi
16604
16605 cat >> confdefs.h <<\EOF
16606 #define wxUSE_IPC 1
16607 EOF
16608
16609 fi
16610
16611 if test "$wxUSE_CLIPBOARD" = "yes"; then
16612 cat >> confdefs.h <<\EOF
16613 #define wxUSE_CLIPBOARD 1
16614 EOF
16615
16616 cat >> confdefs.h <<\EOF
16617 #define wxUSE_DATAOBJ 1
16618 EOF
16619
16620 fi
16621
16622 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16623 if test "$wxUSE_GTK" = 1; then
16624 if test "$WXGTK12" != 1; then
16625 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
16626 wxUSE_DRAG_AND_DROP=no
16627 fi
16628 fi
16629
16630 if test "$wxUSE_MOTIF" = 1; then
16631 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
16632 wxUSE_DRAG_AND_DROP=no
16633 fi
16634
16635 if test "$wxUSE_MAC" = 1; then
16636 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
16637 wxUSE_DRAG_AND_DROP=no
16638 fi
16639
16640 if test "$USE_WIN32" = 1; then
16641
16642 for ac_hdr in ole2.h
16643 do
16644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16646 echo "configure:16647: checking for $ac_hdr" >&5
16647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16648 echo $ac_n "(cached) $ac_c" 1>&6
16649 else
16650 cat > conftest.$ac_ext <<EOF
16651 #line 16652 "configure"
16652 #include "confdefs.h"
16653 #include <$ac_hdr>
16654 EOF
16655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16656 { (eval echo configure:16657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16658 if test -z "$ac_err"; then
16659 rm -rf conftest*
16660 eval "ac_cv_header_$ac_safe=yes"
16661 else
16662 echo "$ac_err" >&5
16663 echo "configure: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16665 rm -rf conftest*
16666 eval "ac_cv_header_$ac_safe=no"
16667 fi
16668 rm -f conftest*
16669 fi
16670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16671 echo "$ac_t""yes" 1>&6
16672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16673 cat >> confdefs.h <<EOF
16674 #define $ac_tr_hdr 1
16675 EOF
16676
16677 else
16678 echo "$ac_t""no" 1>&6
16679 fi
16680 done
16681
16682
16683 if test "$ac_cv_header_ole2_h" = "yes" ; then
16684 if test "$GCC" = yes ; then
16685 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16686 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
16687 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
16688 LIBS="$LIBS -lole32 -luuid"
16689
16690 if test "$wxUSE_METAFILE" = "yes"; then
16691 cat >> confdefs.h <<\EOF
16692 #define wxUSE_METAFILE 1
16693 EOF
16694
16695 cat >> confdefs.h <<\EOF
16696 #define wxUSE_ENH_METAFILE 1
16697 EOF
16698
16699 fi
16700 fi
16701 else
16702 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
16703 wxUSE_DRAG_AND_DROP=no
16704 fi
16705 fi
16706
16707 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
16708 cat >> confdefs.h <<\EOF
16709 #define wxUSE_DRAG_AND_DROP 1
16710 EOF
16711
16712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16713 fi
16714
16715 fi
16716
16717 if test "$wxUSE_SPLINES" = "yes" ; then
16718 cat >> confdefs.h <<\EOF
16719 #define wxUSE_SPLINES 1
16720 EOF
16721
16722 fi
16723
16724
16725 USES_CONTROLS=0
16726 if test "$wxUSE_CONTROLS" = "yes"; then
16727 USES_CONTROLS=1
16728 fi
16729
16730 if test "$wxUSE_ACCEL" = "yes"; then
16731 cat >> confdefs.h <<\EOF
16732 #define wxUSE_ACCEL 1
16733 EOF
16734
16735 USES_CONTROLS=1
16736 fi
16737
16738 if test "$wxUSE_BUTTON" = "yes"; then
16739 cat >> confdefs.h <<\EOF
16740 #define wxUSE_BUTTON 1
16741 EOF
16742
16743 USES_CONTROLS=1
16744 fi
16745
16746 if test "$wxUSE_BMPBUTTON" = "yes"; then
16747 cat >> confdefs.h <<\EOF
16748 #define wxUSE_BMPBUTTON 1
16749 EOF
16750
16751 USES_CONTROLS=1
16752 fi
16753
16754 if test "$wxUSE_CALCTRL" = "yes"; then
16755 cat >> confdefs.h <<\EOF
16756 #define wxUSE_CALENDARCTRL 1
16757 EOF
16758
16759 USES_CONTROLS=1
16760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
16761 fi
16762
16763 if test "$wxUSE_CARET" = "yes"; then
16764 cat >> confdefs.h <<\EOF
16765 #define wxUSE_CARET 1
16766 EOF
16767
16768 USES_CONTROLS=1
16769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16770 fi
16771
16772 if test "$wxUSE_COMBOBOX" = "yes"; then
16773 cat >> confdefs.h <<\EOF
16774 #define wxUSE_COMBOBOX 1
16775 EOF
16776
16777 USES_CONTROLS=1
16778 fi
16779
16780 if test "$wxUSE_CHOICE" = "yes"; then
16781 cat >> confdefs.h <<\EOF
16782 #define wxUSE_CHOICE 1
16783 EOF
16784
16785 USES_CONTROLS=1
16786 fi
16787
16788 if test "$wxUSE_CHECKBOX" = "yes"; then
16789 cat >> confdefs.h <<\EOF
16790 #define wxUSE_CHECKBOX 1
16791 EOF
16792
16793 USES_CONTROLS=1
16794 fi
16795
16796 if test "$wxUSE_CHECKLST" = "yes"; then
16797 cat >> confdefs.h <<\EOF
16798 #define wxUSE_CHECKLISTBOX 1
16799 EOF
16800
16801 USES_CONTROLS=1
16802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16803 fi
16804
16805 if test "$wxUSE_GAUGE" = "yes"; then
16806 cat >> confdefs.h <<\EOF
16807 #define wxUSE_GAUGE 1
16808 EOF
16809
16810 USES_CONTROLS=1
16811 fi
16812
16813 if test "$wxUSE_NEW_GRID" = "yes"; then
16814 wxUSE_GRID="yes"
16815 cat >> confdefs.h <<\EOF
16816 #define wxUSE_NEW_GRID 1
16817 EOF
16818
16819 USES_CONTROLS=1
16820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
16821 fi
16822
16823 if test "$wxUSE_GRID" = "yes"; then
16824 cat >> confdefs.h <<\EOF
16825 #define wxUSE_GRID 1
16826 EOF
16827
16828 USES_CONTROLS=1
16829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
16830 fi
16831
16832 if test "$wxUSE_IMAGLIST" = "yes"; then
16833 cat >> confdefs.h <<\EOF
16834 #define wxUSE_IMAGLIST 1
16835 EOF
16836
16837 fi
16838
16839 if test "$wxUSE_LISTBOX" = "yes"; then
16840 cat >> confdefs.h <<\EOF
16841 #define wxUSE_LISTBOX 1
16842 EOF
16843
16844 USES_CONTROLS=1
16845 fi
16846
16847 if test "$wxUSE_LISTCTRL" = "yes"; then
16848 if test "$wxUSE_IMAGLIST" = "yes"; then
16849 cat >> confdefs.h <<\EOF
16850 #define wxUSE_LISTCTRL 1
16851 EOF
16852
16853 USES_CONTROLS=1
16854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16855 else
16856 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
16857 fi
16858 fi
16859
16860 if test "$wxUSE_NOTEBOOK" = "yes"; then
16861 cat >> confdefs.h <<\EOF
16862 #define wxUSE_NOTEBOOK 1
16863 EOF
16864
16865 USES_CONTROLS=1
16866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16867 fi
16868
16869 if test "$wxUSE_RADIOBOX" = "yes"; then
16870 cat >> confdefs.h <<\EOF
16871 #define wxUSE_RADIOBOX 1
16872 EOF
16873
16874 USES_CONTROLS=1
16875 fi
16876
16877 if test "$wxUSE_RADIOBTN" = "yes"; then
16878 cat >> confdefs.h <<\EOF
16879 #define wxUSE_RADIOBTN 1
16880 EOF
16881
16882 USES_CONTROLS=1
16883 fi
16884
16885 if test "$wxUSE_SASH" = "yes"; then
16886 cat >> confdefs.h <<\EOF
16887 #define wxUSE_SASH 1
16888 EOF
16889
16890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16891 fi
16892
16893 if test "$wxUSE_SCROLLBAR" = "yes"; then
16894 cat >> confdefs.h <<\EOF
16895 #define wxUSE_SCROLLBAR 1
16896 EOF
16897
16898 USES_CONTROLS=1
16899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
16900 fi
16901
16902 if test "$wxUSE_SLIDER" = "yes"; then
16903 cat >> confdefs.h <<\EOF
16904 #define wxUSE_SLIDER 1
16905 EOF
16906
16907 USES_CONTROLS=1
16908 fi
16909
16910 if test "$wxUSE_SPINBTN" = "yes"; then
16911 cat >> confdefs.h <<\EOF
16912 #define wxUSE_SPINBTN 1
16913 EOF
16914
16915 USES_CONTROLS=1
16916 fi
16917
16918 if test "$wxUSE_SPINCTRL" = "yes"; then
16919 cat >> confdefs.h <<\EOF
16920 #define wxUSE_SPINCTRL 1
16921 EOF
16922
16923 USES_CONTROLS=1
16924 fi
16925
16926 if test "$wxUSE_SPLITTER" = "yes"; then
16927 cat >> confdefs.h <<\EOF
16928 #define wxUSE_SPLITTER 1
16929 EOF
16930
16931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16932 fi
16933
16934 if test "$wxUSE_STATBMP" = "yes"; then
16935 cat >> confdefs.h <<\EOF
16936 #define wxUSE_STATBMP 1
16937 EOF
16938
16939 USES_CONTROLS=1
16940 fi
16941
16942 if test "$wxUSE_STATBOX" = "yes"; then
16943 cat >> confdefs.h <<\EOF
16944 #define wxUSE_STATBOX 1
16945 EOF
16946
16947 USES_CONTROLS=1
16948 fi
16949
16950 if test "$wxUSE_STATTEXT" = "yes"; then
16951 cat >> confdefs.h <<\EOF
16952 #define wxUSE_STATTEXT 1
16953 EOF
16954
16955 USES_CONTROLS=1
16956 fi
16957
16958 if test "$wxUSE_STATLINE" = "yes"; then
16959 if test "$wxUSE_WINE" = 1 ; then
16960 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
16961 else
16962 cat >> confdefs.h <<\EOF
16963 #define wxUSE_STATLINE 1
16964 EOF
16965
16966 USES_CONTROLS=1
16967 fi
16968 fi
16969
16970 if test "$wxUSE_STATUSBAR" = "yes"; then
16971 cat >> confdefs.h <<\EOF
16972 #define wxUSE_STATUSBAR 1
16973 EOF
16974
16975 USES_CONTROLS=1
16976
16977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
16978 fi
16979
16980 if test "$wxUSE_TABDIALOG" = "yes"; then
16981 cat >> confdefs.h <<\EOF
16982 #define wxUSE_TAB_DIALOG 1
16983 EOF
16984
16985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16986 fi
16987
16988 if test "$wxUSE_TEXTCTRL" = "yes"; then
16989 cat >> confdefs.h <<\EOF
16990 #define wxUSE_TEXTCTRL 1
16991 EOF
16992
16993 USES_CONTROLS=1
16994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16995 fi
16996
16997 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16998 if test "$wxUSE_MAC" = 1; then
16999 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17000 wxUSE_TOGGLEBTN=no
17001 fi
17002
17003 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17004 cat >> confdefs.h <<\EOF
17005 #define wxUSE_TOGGLEBTN 1
17006 EOF
17007
17008 USES_CONTROLS=1
17009 fi
17010 fi
17011
17012 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17013 cat >> confdefs.h <<\EOF
17014 #define wxUSE_TOOLBAR_SIMPLE 1
17015 EOF
17016
17017 wxUSE_TOOLBAR="yes"
17018 USES_CONTROLS=1
17019 fi
17020
17021 if test "$wxUSE_TOOLBAR" = "yes"; then
17022 cat >> confdefs.h <<\EOF
17023 #define wxUSE_TOOLBAR 1
17024 EOF
17025
17026 USES_CONTROLS=1
17027
17028 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17029 wxUSE_TOOLBAR_NATIVE="yes"
17030 fi
17031
17032 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17033 cat >> confdefs.h <<\EOF
17034 #define wxUSE_TOOLBAR_NATIVE 1
17035 EOF
17036
17037 USES_CONTROLS=1
17038 fi
17039
17040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17041 fi
17042
17043 if test "$wxUSE_TOOLTIPS" = "yes"; then
17044 if test "$wxUSE_MOTIF" = 1; then
17045 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17046 else
17047 if test "$wxUSE_WINE" = 1; then
17048 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17049 else
17050 cat >> confdefs.h <<\EOF
17051 #define wxUSE_TOOLTIPS 1
17052 EOF
17053
17054 fi
17055 fi
17056 fi
17057
17058 if test "$wxUSE_TREECTRL" = "yes"; then
17059 if test "$wxUSE_IMAGLIST" = "yes"; then
17060 cat >> confdefs.h <<\EOF
17061 #define wxUSE_TREECTRL 1
17062 EOF
17063
17064 USES_CONTROLS=1
17065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17066 else
17067 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17068 fi
17069 fi
17070
17071 if test "$USES_CONTROLS" = 1; then
17072 cat >> confdefs.h <<\EOF
17073 #define wxUSE_CONTROLS 1
17074 EOF
17075
17076 fi
17077
17078
17079
17080 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17081 cat >> confdefs.h <<\EOF
17082 #define wxUSE_DRAGIMAGE 1
17083 EOF
17084
17085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17086 fi
17087
17088 if test "$wxUSE_MENUS" = "yes"; then
17089 cat >> confdefs.h <<\EOF
17090 #define wxUSE_MENUS 1
17091 EOF
17092
17093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17094 fi
17095
17096 if test "$wxUSE_METAFILE" = "yes"; then
17097 cat >> confdefs.h <<\EOF
17098 #define wxUSE_METAFILE 1
17099 EOF
17100
17101 fi
17102
17103 if test "$wxUSE_MIMETYPE" = "yes"; then
17104 cat >> confdefs.h <<\EOF
17105 #define wxUSE_MIMETYPE 1
17106 EOF
17107
17108 fi
17109
17110 if test "$wxUSE_MINIFRAME" = "yes"; then
17111 cat >> confdefs.h <<\EOF
17112 #define wxUSE_MINIFRAME 1
17113 EOF
17114
17115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17116 fi
17117
17118 if test "$wxUSE_HTML" = "yes"; then
17119 cat >> confdefs.h <<\EOF
17120 #define wxUSE_HTML 1
17121 EOF
17122
17123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17124 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17125 fi
17126
17127 if test "$wxUSE_VALIDATORS" = "yes"; then
17128 cat >> confdefs.h <<\EOF
17129 #define wxUSE_VALIDATORS 1
17130 EOF
17131
17132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17133 fi
17134
17135 if test "$wxUSE_IMAGE" = "yes" ; then
17136 cat >> confdefs.h <<\EOF
17137 #define wxUSE_IMAGE 1
17138 EOF
17139
17140 fi
17141
17142 if test "$wxUSE_GIF" = "yes" ; then
17143 cat >> confdefs.h <<\EOF
17144 #define wxUSE_GIF 1
17145 EOF
17146
17147 fi
17148
17149 if test "$wxUSE_PCX" = "yes" ; then
17150 cat >> confdefs.h <<\EOF
17151 #define wxUSE_PCX 1
17152 EOF
17153
17154 fi
17155
17156 if test "$wxUSE_PNM" = "yes" ; then
17157 cat >> confdefs.h <<\EOF
17158 #define wxUSE_PNM 1
17159 EOF
17160
17161 fi
17162
17163 if test "$wxUSE_XPM" = "yes" ; then
17164 cat >> confdefs.h <<\EOF
17165 #define wxUSE_XPM 1
17166 EOF
17167
17168 fi
17169
17170
17171 if test "$wxUSE_CHOICEDLG" = "yes"; then
17172 cat >> confdefs.h <<\EOF
17173 #define wxUSE_CHOICEDLG 1
17174 EOF
17175
17176 fi
17177
17178 if test "$wxUSE_COLOURDLG" = "yes"; then
17179 cat >> confdefs.h <<\EOF
17180 #define wxUSE_COLOURDLG 1
17181 EOF
17182
17183 fi
17184
17185 if test "$wxUSE_FILEDLG" = "yes"; then
17186 cat >> confdefs.h <<\EOF
17187 #define wxUSE_FILEDLG 1
17188 EOF
17189
17190 fi
17191
17192 if test "$wxUSE_FONTDLG" = "yes"; then
17193 cat >> confdefs.h <<\EOF
17194 #define wxUSE_FONTDLG 1
17195 EOF
17196
17197 fi
17198
17199 if test "$wxUSE_DIRDLG" = "yes"; then
17200 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17201 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17202 else
17203 if test "$wxUSE_TREECTRL" != "yes"; then
17204 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17205 else
17206 cat >> confdefs.h <<\EOF
17207 #define wxUSE_DIRDLG 1
17208 EOF
17209
17210 fi
17211 fi
17212 fi
17213
17214 if test "$wxUSE_MSGDLG" = "yes"; then
17215 cat >> confdefs.h <<\EOF
17216 #define wxUSE_MSGDLG 1
17217 EOF
17218
17219 fi
17220
17221 if test "$wxUSE_NUMBERDLG" = "yes"; then
17222 cat >> confdefs.h <<\EOF
17223 #define wxUSE_NUMBERDLG 1
17224 EOF
17225
17226 fi
17227
17228 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17229 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17230 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17231 else
17232 cat >> confdefs.h <<\EOF
17233 #define wxUSE_PROGRESSDLG 1
17234 EOF
17235
17236 fi
17237 fi
17238
17239 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17240 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17241 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17242 else
17243 cat >> confdefs.h <<\EOF
17244 #define wxUSE_STARTUP_TIPS 1
17245 EOF
17246
17247 fi
17248 fi
17249
17250 if test "$wxUSE_TEXTDLG" = "yes"; then
17251 cat >> confdefs.h <<\EOF
17252 #define wxUSE_TEXTDLG 1
17253 EOF
17254
17255 fi
17256
17257 if test "$wxUSE_WIZARDDLG" = "yes"; then
17258 cat >> confdefs.h <<\EOF
17259 #define wxUSE_WIZARDDLG 1
17260 EOF
17261
17262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17263 fi
17264
17265
17266 if test "$cross_compiling" = "yes"; then
17267 OSINFO="\"$host\""
17268 else
17269 OSINFO=`uname -s -r -m`
17270 OSINFO="\"$OSINFO\""
17271 fi
17272
17273 cat >> confdefs.h <<EOF
17274 #define WXWIN_OS_DESCRIPTION $OSINFO
17275 EOF
17276
17277
17278
17279 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17280 OPENGL_LIBS="$OPENGL_LINK"
17281
17282 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17283 if test "$USE_MAC" = 1 ; then
17284 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17285 fi
17286 if test "$wxUSE_GUI" = "yes"; then
17287 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17288 fi
17289
17290 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17291
17292 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17293
17294 if test "$wxUSE_GTK" = 1; then
17295 WXCONFIG_INCLUDE=""
17296 else
17297 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17298 fi
17299
17300 if test "$GXX" = yes ; then
17301 CXXWARNINGS="-Wall"
17302 fi
17303 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17304
17305 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17306 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17307
17308 LDFLAGS="$LDFLAGS $PROFILE"
17309
17310 if test "$wxUSE_GUI" = "yes"; then
17311
17312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17313 drawing dynamic event font fractal image \
17314 minimal richedit widgets"
17315
17316 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17318 fi
17319
17320 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17321 else
17322 SAMPLES_SUBDIRS=""
17323 fi
17324
17325 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17421 echo "configure:17422: checking whether ${MAKE-make} sets \${MAKE}" >&5
17422 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17423 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17424 echo $ac_n "(cached) $ac_c" 1>&6
17425 else
17426 cat > conftestmake <<\EOF
17427 all:
17428 @echo 'ac_maketemp="${MAKE}"'
17429 EOF
17430 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17431 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17432 if test -n "$ac_maketemp"; then
17433 eval ac_cv_prog_make_${ac_make}_set=yes
17434 else
17435 eval ac_cv_prog_make_${ac_make}_set=no
17436 fi
17437 rm -f conftestmake
17438 fi
17439 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17440 echo "$ac_t""yes" 1>&6
17441 SET_MAKE=
17442 else
17443 echo "$ac_t""no" 1>&6
17444 SET_MAKE="MAKE=${MAKE-make}"
17445 fi
17446
17447
17448 if test -d include; then
17449 if test -d include/wx; then
17450 if test -d include/wx/${SETUPH_DIR}; then
17451 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17452 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17453 fi
17454 fi
17455 fi
17456 fi
17457
17458
17459
17460 if test "$wxUSE_GUI" = "yes"; then
17461 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17462 wx_cv_path_ifs=$PATH_IFS
17463 wx_cv_program_ext=$PROGRAM_EXT
17464 wx_cv_target_library=$WX_TARGET_LIBRARY
17465 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17466 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17467 wx_cv_target_library wx_cv_target_libtype
17468 subdirs="demos samples utils contrib"
17469
17470 fi
17471
17472 trap '' 1 2 15
17473 cat > confcache <<\EOF
17474 # This file is a shell script that caches the results of configure
17475 # tests run on this system so they can be shared between configure
17476 # scripts and configure runs. It is not useful on other systems.
17477 # If it contains results you don't want to keep, you may remove or edit it.
17478 #
17479 # By default, configure uses ./config.cache as the cache file,
17480 # creating it if it does not exist already. You can give configure
17481 # the --cache-file=FILE option to use a different cache file; that is
17482 # what configure does when it calls configure scripts in
17483 # subdirectories, so they share the cache.
17484 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17485 # config.status only pays attention to the cache file if you give it the
17486 # --recheck option to rerun configure.
17487 #
17488 EOF
17489 # The following way of writing the cache mishandles newlines in values,
17490 # but we know of no workaround that is simple, portable, and efficient.
17491 # So, don't put newlines in cache variables' values.
17492 # Ultrix sh set writes to stderr and can't be redirected directly,
17493 # and sets the high bit in the cache file unless we assign to the vars.
17494 (set) 2>&1 |
17495 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17496 *ac_space=\ *)
17497 # `set' does not quote correctly, so add quotes (double-quote substitution
17498 # turns \\\\ into \\, and sed turns \\ into \).
17499 sed -n \
17500 -e "s/'/'\\\\''/g" \
17501 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17502 ;;
17503 *)
17504 # `set' quotes correctly as required by POSIX, so do not add quotes.
17505 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17506 ;;
17507 esac >> confcache
17508 if cmp -s $cache_file confcache; then
17509 :
17510 else
17511 if test -w $cache_file; then
17512 echo "updating cache $cache_file"
17513 cat confcache > $cache_file
17514 else
17515 echo "not updating unwritable cache $cache_file"
17516 fi
17517 fi
17518 rm -f confcache
17519
17520 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17521
17522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17523 # Let make expand exec_prefix.
17524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17525
17526 # Any assignment to VPATH causes Sun make to only execute
17527 # the first set of double-colon rules, so remove it if not needed.
17528 # If there is a colon in the path, we need to keep it.
17529 if test "x$srcdir" = x.; then
17530 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17531 fi
17532
17533 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17534
17535 DEFS=-DHAVE_CONFIG_H
17536
17537 # Without the "./", some shells look in PATH for config.status.
17538 : ${CONFIG_STATUS=./config.status}
17539
17540 echo creating $CONFIG_STATUS
17541 rm -f $CONFIG_STATUS
17542 cat > $CONFIG_STATUS <<EOF
17543 #! /bin/sh
17544 # Generated automatically by configure.
17545 # Run this file to recreate the current configuration.
17546 # This directory was configured as follows,
17547 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17548 #
17549 # $0 $ac_configure_args
17550 #
17551 # Compiler output produced by configure, useful for debugging
17552 # configure, is in ./config.log if it exists.
17553
17554 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17555 for ac_option
17556 do
17557 case "\$ac_option" in
17558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17559 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17560 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17561 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17562 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17563 exit 0 ;;
17564 -help | --help | --hel | --he | --h)
17565 echo "\$ac_cs_usage"; exit 0 ;;
17566 *) echo "\$ac_cs_usage"; exit 1 ;;
17567 esac
17568 done
17569
17570 ac_given_srcdir=$srcdir
17571 ac_given_INSTALL="$INSTALL"
17572
17573 trap 'rm -fr `echo "
17574 wx-config
17575 src/make.env
17576 src/makeprog.env
17577 src/makelib.env
17578 Makefile
17579 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17580 EOF
17581 cat >> $CONFIG_STATUS <<EOF
17582
17583 # Protect against being on the right side of a sed subst in config.status.
17584 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17585 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17586 $ac_vpsub
17587 $extrasub
17588 s%@SHELL@%$SHELL%g
17589 s%@CFLAGS@%$CFLAGS%g
17590 s%@CPPFLAGS@%$CPPFLAGS%g
17591 s%@CXXFLAGS@%$CXXFLAGS%g
17592 s%@FFLAGS@%$FFLAGS%g
17593 s%@DEFS@%$DEFS%g
17594 s%@LDFLAGS@%$LDFLAGS%g
17595 s%@LIBS@%$LIBS%g
17596 s%@exec_prefix@%$exec_prefix%g
17597 s%@prefix@%$prefix%g
17598 s%@program_transform_name@%$program_transform_name%g
17599 s%@bindir@%$bindir%g
17600 s%@sbindir@%$sbindir%g
17601 s%@libexecdir@%$libexecdir%g
17602 s%@datadir@%$datadir%g
17603 s%@sysconfdir@%$sysconfdir%g
17604 s%@sharedstatedir@%$sharedstatedir%g
17605 s%@localstatedir@%$localstatedir%g
17606 s%@libdir@%$libdir%g
17607 s%@includedir@%$includedir%g
17608 s%@oldincludedir@%$oldincludedir%g
17609 s%@infodir@%$infodir%g
17610 s%@mandir@%$mandir%g
17611 s%@host@%$host%g
17612 s%@host_alias@%$host_alias%g
17613 s%@host_cpu@%$host_cpu%g
17614 s%@host_vendor@%$host_vendor%g
17615 s%@host_os@%$host_os%g
17616 s%@target@%$target%g
17617 s%@target_alias@%$target_alias%g
17618 s%@target_cpu@%$target_cpu%g
17619 s%@target_vendor@%$target_vendor%g
17620 s%@target_os@%$target_os%g
17621 s%@build@%$build%g
17622 s%@build_alias@%$build_alias%g
17623 s%@build_cpu@%$build_cpu%g
17624 s%@build_vendor@%$build_vendor%g
17625 s%@build_os@%$build_os%g
17626 s%@CC@%$CC%g
17627 s%@CPP@%$CPP%g
17628 s%@CXX@%$CXX%g
17629 s%@CXXCPP@%$CXXCPP%g
17630 s%@RANLIB@%$RANLIB%g
17631 s%@AR@%$AR%g
17632 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17633 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17634 s%@INSTALL_DATA@%$INSTALL_DATA%g
17635 s%@STRIP@%$STRIP%g
17636 s%@YACC@%$YACC%g
17637 s%@LEX@%$LEX%g
17638 s%@LEXLIB@%$LEXLIB%g
17639 s%@LN_S@%$LN_S%g
17640 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
17641 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17642 s%@GTK_LIBS@%$GTK_LIBS%g
17643 s%@GTK_CONFIG@%$GTK_CONFIG%g
17644 s%@X_CFLAGS@%$X_CFLAGS%g
17645 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17646 s%@X_LIBS@%$X_LIBS%g
17647 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17648 s%@REZ@%$REZ%g
17649 s%@DEREZ@%$DEREZ%g
17650 s%@LEX_STEM@%$LEX_STEM%g
17651 s%@PATH_IFS@%$PATH_IFS%g
17652 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17653 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17654 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17655 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17656 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17657 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17658 s%@WX_LIBRARY@%$WX_LIBRARY%g
17659 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17660 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17661 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17662 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17663 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17664 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17665 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17666 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17667 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17668 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17669 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17670 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17671 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17672 s%@WX_ALL@%$WX_ALL%g
17673 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17674 s%@SHARED_LD@%$SHARED_LD%g
17675 s%@PIC_FLAG@%$PIC_FLAG%g
17676 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17677 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17678 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17679 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17680 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17681 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17682 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17683 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17684 s%@USE_GUI@%$USE_GUI%g
17685 s%@AFMINSTALL@%$AFMINSTALL%g
17686 s%@SETUPH_DIR@%$SETUPH_DIR%g
17687 s%@TOOLKIT@%$TOOLKIT%g
17688 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17689 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17690 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17691 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
17692 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
17693 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17694 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17695 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17696 s%@GUIDIST@%$GUIDIST%g
17697 s%@PORT_FILES@%$PORT_FILES%g
17698 s%@DISTDIR@%$DISTDIR%g
17699 s%@RPM_SPEC@%$RPM_SPEC%g
17700 s%@RPM_FILES@%$RPM_FILES%g
17701 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17702 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17703 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17704 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17705 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17706 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17707 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17708 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17709 s%@EXTRADEFS@%$EXTRADEFS%g
17710 s%@LD_LIBS@%$LD_LIBS%g
17711 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17712 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17713 s%@RESPROGRAM@%$RESPROGRAM%g
17714 s%@RESCOMP@%$RESCOMP%g
17715 s%@RESFLAGS@%$RESFLAGS%g
17716 s%@REZFLAGS@%$REZFLAGS%g
17717 s%@DEREZFLAGS@%$DEREZFLAGS%g
17718 s%@LIBWXMACRES@%$LIBWXMACRES%g
17719 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17720 s%@DLLTOOL@%$DLLTOOL%g
17721 s%@AS@%$AS%g
17722 s%@NM@%$NM%g
17723 s%@LD@%$LD%g
17724 s%@MAKEINFO@%$MAKEINFO%g
17725 s%@SET_MAKE@%$SET_MAKE%g
17726 s%@subdirs@%$subdirs%g
17727
17728 CEOF
17729 EOF
17730
17731 cat >> $CONFIG_STATUS <<\EOF
17732
17733 # Split the substitutions into bite-sized pieces for seds with
17734 # small command number limits, like on Digital OSF/1 and HP-UX.
17735 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17736 ac_file=1 # Number of current file.
17737 ac_beg=1 # First line for current file.
17738 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17739 ac_more_lines=:
17740 ac_sed_cmds=""
17741 while $ac_more_lines; do
17742 if test $ac_beg -gt 1; then
17743 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17744 else
17745 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17746 fi
17747 if test ! -s conftest.s$ac_file; then
17748 ac_more_lines=false
17749 rm -f conftest.s$ac_file
17750 else
17751 if test -z "$ac_sed_cmds"; then
17752 ac_sed_cmds="sed -f conftest.s$ac_file"
17753 else
17754 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17755 fi
17756 ac_file=`expr $ac_file + 1`
17757 ac_beg=$ac_end
17758 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17759 fi
17760 done
17761 if test -z "$ac_sed_cmds"; then
17762 ac_sed_cmds=cat
17763 fi
17764 EOF
17765
17766 cat >> $CONFIG_STATUS <<EOF
17767
17768 CONFIG_FILES=\${CONFIG_FILES-"wx-config
17769 src/make.env
17770 src/makeprog.env
17771 src/makelib.env
17772 Makefile
17773 "}
17774 EOF
17775 cat >> $CONFIG_STATUS <<\EOF
17776 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17778 case "$ac_file" in
17779 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17780 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17781 *) ac_file_in="${ac_file}.in" ;;
17782 esac
17783
17784 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17785
17786 # Remove last slash and all that follows it. Not all systems have dirname.
17787 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17788 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17789 # The file is in a subdirectory.
17790 test ! -d "$ac_dir" && mkdir "$ac_dir"
17791 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17792 # A "../" for each directory in $ac_dir_suffix.
17793 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17794 else
17795 ac_dir_suffix= ac_dots=
17796 fi
17797
17798 case "$ac_given_srcdir" in
17799 .) srcdir=.
17800 if test -z "$ac_dots"; then top_srcdir=.
17801 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17802 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17803 *) # Relative path.
17804 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17805 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17806 esac
17807
17808 case "$ac_given_INSTALL" in
17809 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17810 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17811 esac
17812
17813 echo creating "$ac_file"
17814 rm -f "$ac_file"
17815 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17816 case "$ac_file" in
17817 *Makefile*) ac_comsub="1i\\
17818 # $configure_input" ;;
17819 *) ac_comsub= ;;
17820 esac
17821
17822 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17823 sed -e "$ac_comsub
17824 s%@configure_input@%$configure_input%g
17825 s%@srcdir@%$srcdir%g
17826 s%@top_srcdir@%$top_srcdir%g
17827 s%@INSTALL@%$INSTALL%g
17828 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17829 fi; done
17830 rm -f conftest.s*
17831
17832 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17833 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17834 #
17835 # ac_d sets the value in "#define NAME VALUE" lines.
17836 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17837 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17838 ac_dC='\3'
17839 ac_dD='%g'
17840 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17841 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17842 ac_uB='\([ ]\)%\1#\2define\3'
17843 ac_uC=' '
17844 ac_uD='\4%g'
17845 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17846 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17847 ac_eB='$%\1#\2define\3'
17848 ac_eC=' '
17849 ac_eD='%g'
17850
17851 if test "${CONFIG_HEADERS+set}" != set; then
17852 EOF
17853 cat >> $CONFIG_STATUS <<EOF
17854 CONFIG_HEADERS="setup.h:setup.h.in"
17855 EOF
17856 cat >> $CONFIG_STATUS <<\EOF
17857 fi
17858 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17860 case "$ac_file" in
17861 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17862 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17863 *) ac_file_in="${ac_file}.in" ;;
17864 esac
17865
17866 echo creating $ac_file
17867
17868 rm -f conftest.frag conftest.in conftest.out
17869 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17870 cat $ac_file_inputs > conftest.in
17871
17872 EOF
17873
17874 # Transform confdefs.h into a sed script conftest.vals that substitutes
17875 # the proper values into config.h.in to produce config.h. And first:
17876 # Protect against being on the right side of a sed subst in config.status.
17877 # Protect against being in an unquoted here document in config.status.
17878 rm -f conftest.vals
17879 cat > conftest.hdr <<\EOF
17880 s/[\\&%]/\\&/g
17881 s%[\\$`]%\\&%g
17882 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17883 s%ac_d%ac_u%gp
17884 s%ac_u%ac_e%gp
17885 EOF
17886 sed -n -f conftest.hdr confdefs.h > conftest.vals
17887 rm -f conftest.hdr
17888
17889 # This sed command replaces #undef with comments. This is necessary, for
17890 # example, in the case of _POSIX_SOURCE, which is predefined and required
17891 # on some systems where configure will not decide to define it.
17892 cat >> conftest.vals <<\EOF
17893 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17894 EOF
17895
17896 # Break up conftest.vals because some shells have a limit on
17897 # the size of here documents, and old seds have small limits too.
17898
17899 rm -f conftest.tail
17900 while :
17901 do
17902 ac_lines=`grep -c . conftest.vals`
17903 # grep -c gives empty output for an empty file on some AIX systems.
17904 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17905 # Write a limited-size here document to conftest.frag.
17906 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17907 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17908 echo 'CEOF
17909 sed -f conftest.frag conftest.in > conftest.out
17910 rm -f conftest.in
17911 mv conftest.out conftest.in
17912 ' >> $CONFIG_STATUS
17913 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17914 rm -f conftest.vals
17915 mv conftest.tail conftest.vals
17916 done
17917 rm -f conftest.vals
17918
17919 cat >> $CONFIG_STATUS <<\EOF
17920 rm -f conftest.frag conftest.h
17921 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17922 cat conftest.in >> conftest.h
17923 rm -f conftest.in
17924 if cmp -s $ac_file conftest.h 2>/dev/null; then
17925 echo "$ac_file is unchanged"
17926 rm -f conftest.h
17927 else
17928 # Remove last slash and all that follows it. Not all systems have dirname.
17929 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17930 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17931 # The file is in a subdirectory.
17932 test ! -d "$ac_dir" && mkdir "$ac_dir"
17933 fi
17934 rm -f $ac_file
17935 mv conftest.h $ac_file
17936 fi
17937 fi; done
17938
17939 EOF
17940 cat >> $CONFIG_STATUS <<EOF
17941
17942 SETUPH_DIR="${SETUPH_DIR}"
17943 TOOLKIT_NAME="${TOOLKIT_NAME}"
17944 LN_S="${LN_S}"
17945
17946
17947 EOF
17948 cat >> $CONFIG_STATUS <<\EOF
17949
17950 if test ! -f wx${TOOLKIT_NAME}-config; then
17951 chmod +x wx-config
17952 mv wx-config wx${TOOLKIT_NAME}-config
17953 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17954 fi
17955
17956
17957 if test ! -d lib; then
17958 mkdir lib
17959 fi
17960 if test ! -d lib/wx; then
17961 mkdir lib/wx
17962 fi
17963 if test ! -d lib/wx/include; then
17964 mkdir lib/wx/include
17965 fi
17966 if test ! -d lib/wx/include/wx; then
17967 mkdir lib/wx/include/wx
17968 fi
17969 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17970 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
17971 fi
17972 if test -f setup.h; then
17973 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
17974 fi
17975
17976
17977 if test ! -d include; then
17978 mkdir include
17979 fi
17980 if test ! -d include/wx; then
17981 mkdir include/wx
17982 fi
17983 if test ! -d include/wx/${SETUPH_DIR}; then
17984 mkdir include/wx/${SETUPH_DIR}
17985 fi
17986 if test -f setup.h; then
17987 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
17988 fi
17989
17990
17991 exit 0
17992 EOF
17993 chmod +x $CONFIG_STATUS
17994 rm -fr confdefs* $ac_clean_files
17995 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17996
17997 if test "$no_recursion" != yes; then
17998
17999 # Remove --cache-file and --srcdir arguments so they do not pile up.
18000 ac_sub_configure_args=
18001 ac_prev=
18002 for ac_arg in $ac_configure_args; do
18003 if test -n "$ac_prev"; then
18004 ac_prev=
18005 continue
18006 fi
18007 case "$ac_arg" in
18008 -cache-file | --cache-file | --cache-fil | --cache-fi \
18009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18010 ac_prev=cache_file ;;
18011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18013 ;;
18014 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18015 ac_prev=srcdir ;;
18016 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18017 ;;
18018 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18019 esac
18020 done
18021
18022 for ac_config_dir in demos samples utils contrib; do
18023
18024 # Do not complain, so a configure script can configure whichever
18025 # parts of a large source tree are present.
18026 if test ! -d $srcdir/$ac_config_dir; then
18027 continue
18028 fi
18029
18030 echo configuring in $ac_config_dir
18031
18032 case "$srcdir" in
18033 .) ;;
18034 *)
18035 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18036 else
18037 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18038 fi
18039 ;;
18040 esac
18041
18042 ac_popdir=`pwd`
18043 cd $ac_config_dir
18044
18045 # A "../" for each directory in /$ac_config_dir.
18046 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18047
18048 case "$srcdir" in
18049 .) # No --srcdir option. We are building in place.
18050 ac_sub_srcdir=$srcdir ;;
18051 /*) # Absolute path.
18052 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18053 *) # Relative path.
18054 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18055 esac
18056
18057 # Check for guested configure; otherwise get Cygnus style configure.
18058 if test -f $ac_sub_srcdir/configure; then
18059 ac_sub_configure=$ac_sub_srcdir/configure
18060 elif test -f $ac_sub_srcdir/configure.in; then
18061 ac_sub_configure=$ac_configure
18062 else
18063 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18064 ac_sub_configure=
18065 fi
18066
18067 # The recursion is here.
18068 if test -n "$ac_sub_configure"; then
18069
18070 # Make the cache file name correct relative to the subdirectory.
18071 case "$cache_file" in
18072 /*) ac_sub_cache_file=$cache_file ;;
18073 *) # Relative path.
18074 ac_sub_cache_file="$ac_dots$cache_file" ;;
18075 esac
18076 case "$ac_given_INSTALL" in
18077 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18078 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18079 esac
18080
18081 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18082 # The eval makes quoting arguments work.
18083 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18084 then :
18085 else
18086 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18087 fi
18088 fi
18089
18090 cd $ac_popdir
18091 done
18092 fi
18093
18094