]> git.saurik.com Git - wxWidgets.git/blob - configure
applied patch for regex building with BC++ (patch 463140)
[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 SciTech 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-regex enable support for wxRegEx class"
94 ac_help="$ac_help
95 --with-zlib use zlib for LZW compression"
96 ac_help="$ac_help
97 --with-odbc use the IODBC and wxODBC classes"
98 ac_help="$ac_help
99 --enable-shared create shared library code"
100 ac_help="$ac_help
101 --enable-soname set the DT_SONAME field in ELF shared libraries"
102 ac_help="$ac_help
103 --enable-optimise create optimised code"
104 ac_help="$ac_help
105 --enable-debug same as debug_flag and debug_info"
106 ac_help="$ac_help
107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
108 ac_help="$ac_help
109 --enable-debug_info create code with debugging information"
110 ac_help="$ac_help
111 --enable-debug_gdb create code with extra GDB debugging information"
112 ac_help="$ac_help
113 --enable-debug_cntxt use wxDebugContext"
114 ac_help="$ac_help
115 --enable-mem_tracing create code with memory tracing"
116 ac_help="$ac_help
117 --enable-profile create code with profiling information"
118 ac_help="$ac_help
119 --enable-no_rtti create code without RTTI information"
120 ac_help="$ac_help
121 --enable-no_exceptions create code without C++ exceptions handling"
122 ac_help="$ac_help
123 --enable-permissive compile code disregarding strict ANSI"
124 ac_help="$ac_help
125 --enable-no_deps create code without dependency information"
126 ac_help="$ac_help
127 --enable-compat20 enable wxWindows 2.0 compatibility"
128 ac_help="$ac_help
129 --enable-compat22 enable wxWindows 2.2 compatibility"
130 ac_help="$ac_help
131 --enable-intl use internationalization system"
132 ac_help="$ac_help
133 --enable-config use wxConfig (and derived) classes"
134 ac_help="$ac_help
135 --enable-sockets use socket/network classes"
136 ac_help="$ac_help
137 --enable-ipc use interprocess communication (wxSocket etc.)"
138 ac_help="$ac_help
139 --enable-cmdline use wxCmdLineParser class"
140 ac_help="$ac_help
141 --enable-datetime use wxDateTime class"
142 ac_help="$ac_help
143 --enable-timedate use obsolete wxDate/wxTime classes"
144 ac_help="$ac_help
145 --enable-stopwatch use wxStopWatch class"
146 ac_help="$ac_help
147 --enable-dialupman use dialup network classes"
148 ac_help="$ac_help
149 --enable-apple_ieee use the Apple IEEE codec"
150 ac_help="$ac_help
151 --enable-timer use wxTimer class"
152 ac_help="$ac_help
153 --enable-wave use wxWave class"
154 ac_help="$ac_help
155 --enable-fraction use wxFraction class"
156 ac_help="$ac_help
157 --enable-dynlib use wxLibrary class for DLL loading"
158 ac_help="$ac_help
159 --enable-longlong use wxLongLong class"
160 ac_help="$ac_help
161 --enable-geometry use geometry class"
162 ac_help="$ac_help
163 --enable-log use logging system"
164 ac_help="$ac_help
165 --enable-streams use wxStream etc classes"
166 ac_help="$ac_help
167 --enable-file use wxFile classes"
168 ac_help="$ac_help
169 --enable-ffile use wxFFile classes"
170 ac_help="$ac_help
171 --enable-textfile use wxTextFile classes"
172 ac_help="$ac_help
173 --enable-fontmap use font encodings conversion classes"
174 ac_help="$ac_help
175 --enable-unicode compile wxString with Unicode support"
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-sysoptions use wxSystemOptions"
196 ac_help="$ac_help
197 --enable-threads use threads"
198 ac_help="$ac_help
199 --enable-serial use class serialization"
200 ac_help="$ac_help
201 --enable-docview use document view architecture"
202 ac_help="$ac_help
203 --enable-help use help subsystem"
204 ac_help="$ac_help
205 --enable-mshtmlhelp use MS HTML Help (win32)"
206 ac_help="$ac_help
207 --enable-html use wxHTML sub-library"
208 ac_help="$ac_help
209 --enable-htmlhelp use wxHTML-based help"
210 ac_help="$ac_help
211 --enable-constraints use layout-constraints system"
212 ac_help="$ac_help
213 --enable-printarch use printing architecture"
214 ac_help="$ac_help
215 --enable-mdi use multiple document interface architecture"
216 ac_help="$ac_help
217 --enable-loggui use standard GUI logger"
218 ac_help="$ac_help
219 --enable-logwin use wxLogWindow"
220 ac_help="$ac_help
221 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
222 ac_help="$ac_help
223 --enable-prologio use Prolog IO library"
224 ac_help="$ac_help
225 --enable-resources use wxWindows resources"
226 ac_help="$ac_help
227 --enable-xresources use X resources for save (default for gtk+)"
228 ac_help="$ac_help
229 --enable-clipboard use wxClipboard classes"
230 ac_help="$ac_help
231 --enable-dnd use Drag'n'Drop classes"
232 ac_help="$ac_help
233 --enable-metafile use win32 metafiles"
234 ac_help="$ac_help
235 --enable-treelayout use wxTreeLayout classes"
236 ac_help="$ac_help
237 --enable-controls use all usual controls"
238 ac_help="$ac_help
239 --enable-accel use accelerators"
240 ac_help="$ac_help
241 --enable-button use wxButton class"
242 ac_help="$ac_help
243 --enable-bmpbutton use wxBitmapButton class"
244 ac_help="$ac_help
245 --enable-calendar use wxCalendarCtrl class"
246 ac_help="$ac_help
247 --enable-caret use wxCaret class"
248 ac_help="$ac_help
249 --enable-checkbox use wxCheckBox class"
250 ac_help="$ac_help
251 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
252 ac_help="$ac_help
253 --enable-choice use wxChoice class"
254 ac_help="$ac_help
255 --enable-combobox use wxComboBox classes"
256 ac_help="$ac_help
257 --enable-gauge use wxGauge class"
258 ac_help="$ac_help
259 --enable-grid use wxGrid class"
260 ac_help="$ac_help
261 --enable-newgrid use new wxGrid class"
262 ac_help="$ac_help
263 --enable-imaglist use wxImageList class"
264 ac_help="$ac_help
265 --enable-listbox use wxListBox class"
266 ac_help="$ac_help
267 --enable-listctrl use wxListCtrl class"
268 ac_help="$ac_help
269 --enable-notebook use wxNotebook class"
270 ac_help="$ac_help
271 --enable-propsheet use wxPropertySheet class"
272 ac_help="$ac_help
273 --enable-radiobox use wxRadioBox class"
274 ac_help="$ac_help
275 --enable-radiobtn use wxRadioButton class"
276 ac_help="$ac_help
277 --enable-sash use wxSashWindow class"
278 ac_help="$ac_help
279 --enable-scrollbar use wxScrollBar class and scrollable windows"
280 ac_help="$ac_help
281 --enable-slider use wxSlider class"
282 ac_help="$ac_help
283 --enable-spinbtn use wxSpinButton class"
284 ac_help="$ac_help
285 --enable-spinctrl use wxSpinCtrl class"
286 ac_help="$ac_help
287 --enable-splitter use wxSplitterWindow class"
288 ac_help="$ac_help
289 --enable-statbmp use wxStaticBitmap class"
290 ac_help="$ac_help
291 --enable-statbox use wxStaticBox class"
292 ac_help="$ac_help
293 --enable-statline use wxStaticLine class"
294 ac_help="$ac_help
295 --enable-stattext use wxStaticText class"
296 ac_help="$ac_help
297 --enable-statusbar use wxStatusBar class"
298 ac_help="$ac_help
299 --enable-tabdialog use wxTabControl class"
300 ac_help="$ac_help
301 --enable-textctrl use wxTextCtrl class"
302 ac_help="$ac_help
303 --enable-togglebtn use wxToggleButton class"
304 ac_help="$ac_help
305 --enable-toolbar use wxToolBar class"
306 ac_help="$ac_help
307 --enable-tbarnative use native wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarsmpl use wxToolBarSimple class"
310 ac_help="$ac_help
311 --enable-treectrl use wxTreeCtrl class"
312 ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
314 ac_help="$ac_help
315 --enable-commondlg use all common dialogs"
316 ac_help="$ac_help
317 --enable-choicedlg use wxChoiceDialog"
318 ac_help="$ac_help
319 --enable-coldlg use wxColourDialog"
320 ac_help="$ac_help
321 --enable-filedlg use wxFileDialog"
322 ac_help="$ac_help
323 --enable-finddlg use wxFindReplaceDialog"
324 ac_help="$ac_help
325 --enable-fontdlg use wxFontDialog"
326 ac_help="$ac_help
327 --enable-dirdlg use wxDirDialog"
328 ac_help="$ac_help
329 --enable-msgdlg use wxMessageDialog"
330 ac_help="$ac_help
331 --enable-numberdlg use wxNumberEntryDialog"
332 ac_help="$ac_help
333 --enable-splash use wxSplashScreen"
334 ac_help="$ac_help
335 --enable-textdlg use wxTextDialog"
336 ac_help="$ac_help
337 --enable-tipdlg use startup tips"
338 ac_help="$ac_help
339 --enable-progressdlg use wxProgressDialog"
340 ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
342 ac_help="$ac_help
343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
344 ac_help="$ac_help
345 --enable-miniframe use wxMiniFrame class"
346 ac_help="$ac_help
347 --enable-tooltips use wxToolTip class"
348 ac_help="$ac_help
349 --enable-splines use spline drawing code"
350 ac_help="$ac_help
351 --enable-validators use wxValidator and derived classes"
352 ac_help="$ac_help
353 --enable-busyinfo use wxBusyInfo"
354 ac_help="$ac_help
355 --enable-joystick use wxJoystick (Linux only)"
356 ac_help="$ac_help
357 --enable-metafiles use wxMetaFile (Windows only)"
358 ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
360 ac_help="$ac_help
361 --enable-image use wxImage class"
362 ac_help="$ac_help
363 --enable-gif use gif images (GIF file format)"
364 ac_help="$ac_help
365 --enable-pcx use pcx images (PCX file format)"
366 ac_help="$ac_help
367 --enable-pnm use pnm images (PNM file format)"
368 ac_help="$ac_help
369 --enable-xpm use xpm images (XPM file format)"
370 ac_help="$ac_help
371 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
372 ac_help="$ac_help
373 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
374 ac_help="$ac_help
375 --disable-gtktest Do not try to compile and run a test GTK program"
376 ac_help="$ac_help
377 --with-x use the X Window System"
378
379 # Initialize some variables set by options.
380 # The variables have the same names as the options, with
381 # dashes changed to underlines.
382 build=NONE
383 cache_file=./config.cache
384 exec_prefix=NONE
385 host=NONE
386 no_create=
387 nonopt=NONE
388 no_recursion=
389 prefix=NONE
390 program_prefix=NONE
391 program_suffix=NONE
392 program_transform_name=s,x,x,
393 silent=
394 site=
395 srcdir=
396 target=NONE
397 verbose=
398 x_includes=NONE
399 x_libraries=NONE
400 bindir='${exec_prefix}/bin'
401 sbindir='${exec_prefix}/sbin'
402 libexecdir='${exec_prefix}/libexec'
403 datadir='${prefix}/share'
404 sysconfdir='${prefix}/etc'
405 sharedstatedir='${prefix}/com'
406 localstatedir='${prefix}/var'
407 libdir='${exec_prefix}/lib'
408 includedir='${prefix}/include'
409 oldincludedir='/usr/include'
410 infodir='${prefix}/info'
411 mandir='${prefix}/man'
412
413 # Initialize some other variables.
414 subdirs=
415 MFLAGS= MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 ac_max_here_lines=12
419
420 ac_prev=
421 for ac_option
422 do
423
424 # If the previous option needs an argument, assign it.
425 if test -n "$ac_prev"; then
426 eval "$ac_prev=\$ac_option"
427 ac_prev=
428 continue
429 fi
430
431 case "$ac_option" in
432 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
433 *) ac_optarg= ;;
434 esac
435
436 # Accept the important Cygnus configure options, so we can diagnose typos.
437
438 case "$ac_option" in
439
440 -bindir | --bindir | --bindi | --bind | --bin | --bi)
441 ac_prev=bindir ;;
442 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
443 bindir="$ac_optarg" ;;
444
445 -build | --build | --buil | --bui | --bu)
446 ac_prev=build ;;
447 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
448 build="$ac_optarg" ;;
449
450 -cache-file | --cache-file | --cache-fil | --cache-fi \
451 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
452 ac_prev=cache_file ;;
453 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
454 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
455 cache_file="$ac_optarg" ;;
456
457 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
458 ac_prev=datadir ;;
459 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
460 | --da=*)
461 datadir="$ac_optarg" ;;
462
463 -disable-* | --disable-*)
464 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
465 # Reject names that are not valid shell variable names.
466 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
467 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
468 fi
469 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
470 eval "enable_${ac_feature}=no" ;;
471
472 -enable-* | --enable-*)
473 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
474 # Reject names that are not valid shell variable names.
475 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
476 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
477 fi
478 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
479 case "$ac_option" in
480 *=*) ;;
481 *) ac_optarg=yes ;;
482 esac
483 eval "enable_${ac_feature}='$ac_optarg'" ;;
484
485 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
486 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
487 | --exec | --exe | --ex)
488 ac_prev=exec_prefix ;;
489 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
490 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
491 | --exec=* | --exe=* | --ex=*)
492 exec_prefix="$ac_optarg" ;;
493
494 -gas | --gas | --ga | --g)
495 # Obsolete; use --with-gas.
496 with_gas=yes ;;
497
498 -help | --help | --hel | --he)
499 # Omit some internal or obsolete options to make the list less imposing.
500 # This message is too long to be a string in the A/UX 3.1 sh.
501 cat << EOF
502 Usage: configure [options] [host]
503 Options: [defaults in brackets after descriptions]
504 Configuration:
505 --cache-file=FILE cache test results in FILE
506 --help print this message
507 --no-create do not create output files
508 --quiet, --silent do not print \`checking...' messages
509 --version print the version of autoconf that created configure
510 Directory and file names:
511 --prefix=PREFIX install architecture-independent files in PREFIX
512 [$ac_default_prefix]
513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
514 [same as prefix]
515 --bindir=DIR user executables in DIR [EPREFIX/bin]
516 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
517 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
518 --datadir=DIR read-only architecture-independent data in DIR
519 [PREFIX/share]
520 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
521 --sharedstatedir=DIR modifiable architecture-independent data in DIR
522 [PREFIX/com]
523 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
524 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
525 --includedir=DIR C header files in DIR [PREFIX/include]
526 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
527 --infodir=DIR info documentation in DIR [PREFIX/info]
528 --mandir=DIR man documentation in DIR [PREFIX/man]
529 --srcdir=DIR find the sources in DIR [configure dir or ..]
530 --program-prefix=PREFIX prepend PREFIX to installed program names
531 --program-suffix=SUFFIX append SUFFIX to installed program names
532 --program-transform-name=PROGRAM
533 run sed PROGRAM on installed program names
534 EOF
535 cat << EOF
536 Host type:
537 --build=BUILD configure for building on BUILD [BUILD=HOST]
538 --host=HOST configure for HOST [guessed]
539 --target=TARGET configure for TARGET [TARGET=HOST]
540 Features and packages:
541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
545 --x-includes=DIR X include files are in DIR
546 --x-libraries=DIR X library files are in DIR
547 EOF
548 if test -n "$ac_help"; then
549 echo "--enable and --with options recognized:$ac_help"
550 fi
551 exit 0 ;;
552
553 -host | --host | --hos | --ho)
554 ac_prev=host ;;
555 -host=* | --host=* | --hos=* | --ho=*)
556 host="$ac_optarg" ;;
557
558 -includedir | --includedir | --includedi | --included | --include \
559 | --includ | --inclu | --incl | --inc)
560 ac_prev=includedir ;;
561 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
562 | --includ=* | --inclu=* | --incl=* | --inc=*)
563 includedir="$ac_optarg" ;;
564
565 -infodir | --infodir | --infodi | --infod | --info | --inf)
566 ac_prev=infodir ;;
567 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
568 infodir="$ac_optarg" ;;
569
570 -libdir | --libdir | --libdi | --libd)
571 ac_prev=libdir ;;
572 -libdir=* | --libdir=* | --libdi=* | --libd=*)
573 libdir="$ac_optarg" ;;
574
575 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
576 | --libexe | --libex | --libe)
577 ac_prev=libexecdir ;;
578 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
579 | --libexe=* | --libex=* | --libe=*)
580 libexecdir="$ac_optarg" ;;
581
582 -localstatedir | --localstatedir | --localstatedi | --localstated \
583 | --localstate | --localstat | --localsta | --localst \
584 | --locals | --local | --loca | --loc | --lo)
585 ac_prev=localstatedir ;;
586 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
587 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
588 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
589 localstatedir="$ac_optarg" ;;
590
591 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
592 ac_prev=mandir ;;
593 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
594 mandir="$ac_optarg" ;;
595
596 -nfp | --nfp | --nf)
597 # Obsolete; use --without-fp.
598 with_fp=no ;;
599
600 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
601 | --no-cr | --no-c)
602 no_create=yes ;;
603
604 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
605 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
606 no_recursion=yes ;;
607
608 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
609 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
610 | --oldin | --oldi | --old | --ol | --o)
611 ac_prev=oldincludedir ;;
612 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
613 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
614 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
615 oldincludedir="$ac_optarg" ;;
616
617 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
618 ac_prev=prefix ;;
619 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
620 prefix="$ac_optarg" ;;
621
622 -program-prefix | --program-prefix | --program-prefi | --program-pref \
623 | --program-pre | --program-pr | --program-p)
624 ac_prev=program_prefix ;;
625 -program-prefix=* | --program-prefix=* | --program-prefi=* \
626 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
627 program_prefix="$ac_optarg" ;;
628
629 -program-suffix | --program-suffix | --program-suffi | --program-suff \
630 | --program-suf | --program-su | --program-s)
631 ac_prev=program_suffix ;;
632 -program-suffix=* | --program-suffix=* | --program-suffi=* \
633 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
634 program_suffix="$ac_optarg" ;;
635
636 -program-transform-name | --program-transform-name \
637 | --program-transform-nam | --program-transform-na \
638 | --program-transform-n | --program-transform- \
639 | --program-transform | --program-transfor \
640 | --program-transfo | --program-transf \
641 | --program-trans | --program-tran \
642 | --progr-tra | --program-tr | --program-t)
643 ac_prev=program_transform_name ;;
644 -program-transform-name=* | --program-transform-name=* \
645 | --program-transform-nam=* | --program-transform-na=* \
646 | --program-transform-n=* | --program-transform-=* \
647 | --program-transform=* | --program-transfor=* \
648 | --program-transfo=* | --program-transf=* \
649 | --program-trans=* | --program-tran=* \
650 | --progr-tra=* | --program-tr=* | --program-t=*)
651 program_transform_name="$ac_optarg" ;;
652
653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
654 | -silent | --silent | --silen | --sile | --sil)
655 silent=yes ;;
656
657 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
658 ac_prev=sbindir ;;
659 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
660 | --sbi=* | --sb=*)
661 sbindir="$ac_optarg" ;;
662
663 -sharedstatedir | --sharedstatedir | --sharedstatedi \
664 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
665 | --sharedst | --shareds | --shared | --share | --shar \
666 | --sha | --sh)
667 ac_prev=sharedstatedir ;;
668 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
669 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
670 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
671 | --sha=* | --sh=*)
672 sharedstatedir="$ac_optarg" ;;
673
674 -site | --site | --sit)
675 ac_prev=site ;;
676 -site=* | --site=* | --sit=*)
677 site="$ac_optarg" ;;
678
679 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
680 ac_prev=srcdir ;;
681 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
682 srcdir="$ac_optarg" ;;
683
684 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
685 | --syscon | --sysco | --sysc | --sys | --sy)
686 ac_prev=sysconfdir ;;
687 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
688 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
689 sysconfdir="$ac_optarg" ;;
690
691 -target | --target | --targe | --targ | --tar | --ta | --t)
692 ac_prev=target ;;
693 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
694 target="$ac_optarg" ;;
695
696 -v | -verbose | --verbose | --verbos | --verbo | --verb)
697 verbose=yes ;;
698
699 -version | --version | --versio | --versi | --vers)
700 echo "configure generated by autoconf version 2.13"
701 exit 0 ;;
702
703 -with-* | --with-*)
704 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
705 # Reject names that are not valid shell variable names.
706 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
707 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
708 fi
709 ac_package=`echo $ac_package| sed 's/-/_/g'`
710 case "$ac_option" in
711 *=*) ;;
712 *) ac_optarg=yes ;;
713 esac
714 eval "with_${ac_package}='$ac_optarg'" ;;
715
716 -without-* | --without-*)
717 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
718 # Reject names that are not valid shell variable names.
719 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
720 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
721 fi
722 ac_package=`echo $ac_package| sed 's/-/_/g'`
723 eval "with_${ac_package}=no" ;;
724
725 --x)
726 # Obsolete; use --with-x.
727 with_x=yes ;;
728
729 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
730 | --x-incl | --x-inc | --x-in | --x-i)
731 ac_prev=x_includes ;;
732 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
733 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
734 x_includes="$ac_optarg" ;;
735
736 -x-libraries | --x-libraries | --x-librarie | --x-librari \
737 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
738 ac_prev=x_libraries ;;
739 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
740 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
741 x_libraries="$ac_optarg" ;;
742
743 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
744 ;;
745
746 *)
747 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
748 echo "configure: warning: $ac_option: invalid host type" 1>&2
749 fi
750 if test "x$nonopt" != xNONE; then
751 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
752 fi
753 nonopt="$ac_option"
754 ;;
755
756 esac
757 done
758
759 if test -n "$ac_prev"; then
760 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
761 fi
762
763 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
764
765 # File descriptor usage:
766 # 0 standard input
767 # 1 file creation
768 # 2 errors and warnings
769 # 3 some systems may open it to /dev/tty
770 # 4 used on the Kubota Titan
771 # 6 checking for... messages and results
772 # 5 compiler messages saved in config.log
773 if test "$silent" = yes; then
774 exec 6>/dev/null
775 else
776 exec 6>&1
777 fi
778 exec 5>./config.log
779
780 echo "\
781 This file contains any messages produced by compilers while
782 running configure, to aid debugging if configure makes a mistake.
783 " 1>&5
784
785 # Strip out --no-create and --no-recursion so they do not pile up.
786 # Also quote any args containing shell metacharacters.
787 ac_configure_args=
788 for ac_arg
789 do
790 case "$ac_arg" in
791 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
792 | --no-cr | --no-c) ;;
793 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
794 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
795 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
796 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
797 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
798 esac
799 done
800
801 # NLS nuisances.
802 # Only set these to C if already set. These must not be set unconditionally
803 # because not all systems understand e.g. LANG=C (notably SCO).
804 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
805 # Non-C LC_CTYPE values break the ctype check.
806 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
807 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
808 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
809 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
810
811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
812 rm -rf conftest* confdefs.h
813 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
814 echo > confdefs.h
815
816 # A filename unique to this package, relative to the directory that
817 # configure is in, which we can look for to find out if srcdir is correct.
818 ac_unique_file=wx-config.in
819
820 # Find the source files, if location was not specified.
821 if test -z "$srcdir"; then
822 ac_srcdir_defaulted=yes
823 # Try the directory containing this script, then its parent.
824 ac_prog=$0
825 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
826 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
827 srcdir=$ac_confdir
828 if test ! -r $srcdir/$ac_unique_file; then
829 srcdir=..
830 fi
831 else
832 ac_srcdir_defaulted=no
833 fi
834 if test ! -r $srcdir/$ac_unique_file; then
835 if test "$ac_srcdir_defaulted" = yes; then
836 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
837 else
838 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
839 fi
840 fi
841 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
842
843 # Prefer explicitly selected file to automatically selected ones.
844 if test -z "$CONFIG_SITE"; then
845 if test "x$prefix" != xNONE; then
846 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
847 else
848 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
849 fi
850 fi
851 for ac_site_file in $CONFIG_SITE; do
852 if test -r "$ac_site_file"; then
853 echo "loading site script $ac_site_file"
854 . "$ac_site_file"
855 fi
856 done
857
858 if test -r "$cache_file"; then
859 echo "loading cache $cache_file"
860 . $cache_file
861 else
862 echo "creating cache $cache_file"
863 > $cache_file
864 fi
865
866 ac_ext=c
867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
868 ac_cpp='$CPP $CPPFLAGS'
869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
871 cross_compiling=$ac_cv_prog_cc_cross
872
873 ac_exeext=
874 ac_objext=o
875 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
876 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
877 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
878 ac_n= ac_c='
879 ' ac_t=' '
880 else
881 ac_n=-n ac_c= ac_t=
882 fi
883 else
884 ac_n= ac_c='\c' ac_t=
885 fi
886
887
888
889 ac_aux_dir=
890 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
891 if test -f $ac_dir/install-sh; then
892 ac_aux_dir=$ac_dir
893 ac_install_sh="$ac_aux_dir/install-sh -c"
894 break
895 elif test -f $ac_dir/install.sh; then
896 ac_aux_dir=$ac_dir
897 ac_install_sh="$ac_aux_dir/install.sh -c"
898 break
899 fi
900 done
901 if test -z "$ac_aux_dir"; then
902 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
903 fi
904 ac_config_guess=$ac_aux_dir/config.guess
905 ac_config_sub=$ac_aux_dir/config.sub
906 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
907
908
909 # Do some error checking and defaulting for the host and target type.
910 # The inputs are:
911 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
912 #
913 # The rules are:
914 # 1. You are not allowed to specify --host, --target, and nonopt at the
915 # same time.
916 # 2. Host defaults to nonopt.
917 # 3. If nonopt is not specified, then host defaults to the current host,
918 # as determined by config.guess.
919 # 4. Target and build default to nonopt.
920 # 5. If nonopt is not specified, then target and build default to host.
921
922 # The aliases save the names the user supplied, while $host etc.
923 # will get canonicalized.
924 case $host---$target---$nonopt in
925 NONE---*---* | *---NONE---* | *---*---NONE) ;;
926 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
927 esac
928
929
930 # Make sure we can run config.sub.
931 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
932 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
933 fi
934
935 echo $ac_n "checking host system type""... $ac_c" 1>&6
936 echo "configure:937: checking host system type" >&5
937
938 host_alias=$host
939 case "$host_alias" in
940 NONE)
941 case $nonopt in
942 NONE)
943 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
944 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
945 fi ;;
946 *) host_alias=$nonopt ;;
947 esac ;;
948 esac
949
950 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
951 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954 echo "$ac_t""$host" 1>&6
955
956 echo $ac_n "checking target system type""... $ac_c" 1>&6
957 echo "configure:958: checking target system type" >&5
958
959 target_alias=$target
960 case "$target_alias" in
961 NONE)
962 case $nonopt in
963 NONE) target_alias=$host_alias ;;
964 *) target_alias=$nonopt ;;
965 esac ;;
966 esac
967
968 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
969 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$target" 1>&6
973
974 echo $ac_n "checking build system type""... $ac_c" 1>&6
975 echo "configure:976: checking build system type" >&5
976
977 build_alias=$build
978 case "$build_alias" in
979 NONE)
980 case $nonopt in
981 NONE) build_alias=$host_alias ;;
982 *) build_alias=$nonopt ;;
983 esac ;;
984 esac
985
986 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
987 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$build" 1>&6
991
992 test "$host_alias" != "$target_alias" &&
993 test "$program_prefix$program_suffix$program_transform_name" = \
994 NONENONEs,x,x, &&
995 program_prefix=${target_alias}-
996
997
998
999 WX_MAJOR_VERSION_NUMBER=2
1000 WX_MINOR_VERSION_NUMBER=3
1001 WX_RELEASE_NUMBER=2
1002
1003 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1004 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1005
1006 WX_CURRENT=1
1007 WX_REVISION=0
1008 WX_AGE=0
1009
1010
1011
1012 USE_UNIX=1
1013 USE_WIN32=0
1014 USE_BEOS=0
1015 USE_MAC=0
1016
1017 USE_LINUX=
1018 USE_SGI=
1019 USE_HPUX=
1020 USE_SYSV=
1021 USE_SVR4=
1022 USE_AIX=
1023 USE_SUN=
1024 USE_SOLARIS=
1025 USE_SUNOS=
1026 USE_ALPHA=
1027 USE_OSF=
1028 USE_BSD=
1029 USE_DARWIN=
1030 USE_FREEBSD=
1031 USE_OPENBSD=
1032 USE_NETBSD=
1033 USE_VMS=
1034 USE_ULTRIX=
1035 USE_CYGWIN=
1036 USE_MINGW=
1037 USE_DATA_GENERAL=
1038
1039 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1040
1041 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1042
1043 DEFAULT_wxUSE_GTK=0
1044 DEFAULT_wxUSE_MAC=0
1045 DEFAULT_wxUSE_MGL=0
1046 DEFAULT_wxUSE_MOTIF=0
1047 DEFAULT_wxUSE_MSW=0
1048 DEFAULT_wxUSE_PM=0
1049 DEFAULT_wxUSE_WINE=0
1050
1051 DEFAULT_DEFAULT_wxUSE_GTK=0
1052 DEFAULT_DEFAULT_wxUSE_MAC=0
1053 DEFAULT_DEFAULT_wxUSE_MGL=0
1054 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1055 DEFAULT_DEFAULT_wxUSE_MSW=0
1056 DEFAULT_DEFAULT_wxUSE_PM=0
1057 DEFAULT_DEFAULT_wxUSE_WINE=0
1058
1059 PROGRAM_EXT=
1060 SO_SUFFIX=so
1061
1062 case "${host}" in
1063 *-hp-hpux* )
1064 USE_HPUX=1
1065 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1066 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1067 SO_SUFFIX=sl
1068 cat >> confdefs.h <<\EOF
1069 #define __HPUX__ 1
1070 EOF
1071
1072 ;;
1073 *-*-linux* )
1074 USE_LINUX=1
1075 cat >> confdefs.h <<\EOF
1076 #define __LINUX__ 1
1077 EOF
1078
1079 TMP=`uname -m`
1080 if test "x$TMP" = "xalpha"; then
1081 USE_ALPHA=1
1082 cat >> confdefs.h <<\EOF
1083 #define __ALPHA__ 1
1084 EOF
1085
1086 fi
1087 DEFAULT_DEFAULT_wxUSE_GTK=1
1088 ;;
1089 *-*-irix5* | *-*-irix6* )
1090 USE_SGI=1
1091 USE_SVR4=1
1092 cat >> confdefs.h <<\EOF
1093 #define __SGI__ 1
1094 EOF
1095
1096 cat >> confdefs.h <<\EOF
1097 #define __SVR4__ 1
1098 EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 ;;
1102 *-*-solaris2* )
1103 USE_SUN=1
1104 USE_SOLARIS=1
1105 USE_SVR4=1
1106 cat >> confdefs.h <<\EOF
1107 #define __SUN__ 1
1108 EOF
1109
1110 cat >> confdefs.h <<\EOF
1111 #define __SOLARIS__ 1
1112 EOF
1113
1114 cat >> confdefs.h <<\EOF
1115 #define __SVR4__ 1
1116 EOF
1117
1118 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1119 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1120 ;;
1121 *-*-sunos4* )
1122 USE_SUN=1
1123 USE_SUNOS=1
1124 USE_BSD=1
1125 cat >> confdefs.h <<\EOF
1126 #define __SUN__ 1
1127 EOF
1128
1129 cat >> confdefs.h <<\EOF
1130 #define __SUNOS__ 1
1131 EOF
1132
1133 cat >> confdefs.h <<\EOF
1134 #define __BSD__ 1
1135 EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1138 ;;
1139 *-*-freebsd*)
1140 USE_BSD=1
1141 USE_FREEBSD=1
1142 cat >> confdefs.h <<\EOF
1143 #define __FREEBSD__ 1
1144 EOF
1145
1146 cat >> confdefs.h <<\EOF
1147 #define __BSD__ 1
1148 EOF
1149
1150 DEFAULT_DEFAULT_wxUSE_GTK=1
1151 ;;
1152 *-*-openbsd*)
1153 USE_BSD=1
1154 USE_OPENBSD=1
1155 cat >> confdefs.h <<\EOF
1156 #define __FREEBSD__ 1
1157 EOF
1158
1159 cat >> confdefs.h <<\EOF
1160 #define __OPENBSD__ 1
1161 EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_GTK=1
1164 ;;
1165 *-*-netbsd*)
1166 USE_BSD=1
1167 USE_NETBSD=1
1168 cat >> confdefs.h <<\EOF
1169 #define __FREEBSD__ 1
1170 EOF
1171
1172 cat >> confdefs.h <<\EOF
1173 #define __NETBSD__ 1
1174 EOF
1175
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-osf* )
1179 USE_ALPHA=1
1180 USE_OSF=1
1181 cat >> confdefs.h <<\EOF
1182 #define __ALPHA__ 1
1183 EOF
1184
1185 cat >> confdefs.h <<\EOF
1186 #define __OSF__ 1
1187 EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1191 ;;
1192 *-*-dgux5* )
1193 USE_ALPHA=1
1194 USE_SVR4=1
1195 cat >> confdefs.h <<\EOF
1196 #define __ALPHA__ 1
1197 EOF
1198
1199 cat >> confdefs.h <<\EOF
1200 #define __SVR4__ 1
1201 EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1204 ;;
1205 *-*-sysv5* )
1206 USE_SYSV=1
1207 USE_SVR4=1
1208 cat >> confdefs.h <<\EOF
1209 #define __SYSV__ 1
1210 EOF
1211
1212 cat >> confdefs.h <<\EOF
1213 #define __SVR4__ 1
1214 EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 ;;
1218 *-*-aix* )
1219 USE_AIX=1
1220 USE_SYSV=1
1221 USE_SVR4=1
1222 cat >> confdefs.h <<\EOF
1223 #define __AIX__ 1
1224 EOF
1225
1226 cat >> confdefs.h <<\EOF
1227 #define __SYSV__ 1
1228 EOF
1229
1230 cat >> confdefs.h <<\EOF
1231 #define __SVR4__ 1
1232 EOF
1233
1234 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1235 ;;
1236
1237 *-*-cygwin* | *-*-mingw32* )
1238 USE_UNIX=0
1239 USE_WIN32=1
1240 SO_SUFFIX=dll
1241 cat >> confdefs.h <<\EOF
1242 #define __WIN32__ 1
1243 EOF
1244
1245 cat >> confdefs.h <<\EOF
1246 #define __WIN95__ 1
1247 EOF
1248
1249 cat >> confdefs.h <<\EOF
1250 #define __WINDOWS__ 1
1251 EOF
1252
1253 cat >> confdefs.h <<\EOF
1254 #define __GNUWIN32__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define STRICT 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define WINVER 0x0400
1263 EOF
1264
1265 PROGRAM_EXT=".exe"
1266 DEFAULT_DEFAULT_wxUSE_MSW=1
1267 ;;
1268
1269 *-pc-os2_emx )
1270 cat >> confdefs.h <<\EOF
1271 #define __EMX__ 1
1272 EOF
1273
1274 PROGRAM_EXT=".exe"
1275 DEFAULT_DEFAULT_wxUSE_PM=1
1276 ;;
1277
1278 *-*-darwin* )
1279 USE_BSD=1
1280 USE_DARWIN=1
1281 SO_SUFFIX=dylib
1282 cat >> confdefs.h <<\EOF
1283 #define __BSD__ 1
1284 EOF
1285
1286 cat >> confdefs.h <<\EOF
1287 #define __DARWIN__ 1
1288 EOF
1289
1290 DEFAULT_DEFAULT_wxUSE_MAC=1
1291 ;;
1292
1293 *-*-beos* )
1294 USE_BEOS=1
1295 cat >> confdefs.h <<\EOF
1296 #define __BEOS__ 1
1297 EOF
1298
1299 ;;
1300
1301 *)
1302 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1303 esac
1304
1305 if test "$USE_UNIX" = 1 ; then
1306 wxUSE_UNIX=yes
1307 cat >> confdefs.h <<\EOF
1308 #define __UNIX__ 1
1309 EOF
1310
1311 fi
1312
1313 if test "$USE_LINUX" = 1; then
1314 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1315 echo "configure:1316: checking for glibc 2.1 or later" >&5
1316 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1318 else
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 #include <features.h>
1323 int main() {
1324
1325 #if !__GLIBC_PREREQ(2, 1)
1326 #error not glibc2.1
1327 #endif
1328
1329 ; return 0; }
1330 EOF
1331 if { (eval echo configure:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1332 rm -rf conftest*
1333
1334 wx_lib_glibc21=yes
1335
1336 else
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1339 rm -rf conftest*
1340
1341 wx_lib_glibc21=no
1342
1343
1344 fi
1345 rm -f conftest*
1346
1347 fi
1348
1349 echo "$ac_t""$wx_lib_glibc21" 1>&6
1350 if test "$wx_lib_glibc21" = "yes"; then
1351 cat >> confdefs.h <<\EOF
1352 #define wxHAVE_GLIBC2 1
1353 EOF
1354
1355 fi
1356 fi
1357
1358
1359
1360
1361 wx_arg_cache_file="configarg.cache"
1362 echo "loading argument cache $wx_arg_cache_file"
1363 rm -f ${wx_arg_cache_file}.tmp
1364 touch ${wx_arg_cache_file}.tmp
1365 touch ${wx_arg_cache_file}
1366
1367
1368 DEBUG_CONFIGURE=0
1369 if test $DEBUG_CONFIGURE = 1; then
1370 DEFAULT_wxUSE_UNIVERSAL=no
1371
1372 DEFAULT_wxUSE_THREADS=yes
1373
1374 DEFAULT_wxUSE_SHARED=yes
1375 DEFAULT_wxUSE_SONAME=no
1376 DEFAULT_wxUSE_OPTIMISE=no
1377 DEFAULT_wxUSE_PROFILE=no
1378 DEFAULT_wxUSE_NO_DEPS=no
1379 DEFAULT_wxUSE_NO_RTTI=no
1380 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1381 DEFAULT_wxUSE_PERMISSIVE=no
1382 DEFAULT_wxUSE_DEBUG_FLAG=yes
1383 DEFAULT_wxUSE_DEBUG_INFO=yes
1384 DEFAULT_wxUSE_DEBUG_GDB=yes
1385 DEFAULT_wxUSE_MEM_TRACING=no
1386 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1387 DEFAULT_wxUSE_DMALLOC=no
1388 DEFAULT_wxUSE_APPLE_IEEE=no
1389
1390 DEFAULT_wxUSE_LOG=yes
1391 DEFAULT_wxUSE_LOGWINDOW=no
1392 DEFAULT_wxUSE_LOGGUI=no
1393
1394 DEFAULT_wxUSE_GUI=yes
1395 DEFAULT_wxUSE_CONTROLS=no
1396
1397 DEFAULT_wxUSE_REGEX=no
1398 DEFAULT_wxUSE_ZLIB=no
1399 DEFAULT_wxUSE_LIBPNG=no
1400 DEFAULT_wxUSE_LIBJPEG=no
1401 DEFAULT_wxUSE_LIBTIFF=no
1402 DEFAULT_wxUSE_ODBC=no
1403 DEFAULT_wxUSE_FREETYPE=no
1404 DEFAULT_wxUSE_OPENGL=no
1405
1406 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1407 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1408 DEFAULT_wxUSE_STD_IOSTREAM=no
1409 DEFAULT_wxUSE_CMDLINE_PARSER=no
1410 DEFAULT_wxUSE_DATETIME=no
1411 DEFAULT_wxUSE_TIMEDATE=no
1412 DEFAULT_wxUSE_TIMER=no
1413 DEFAULT_wxUSE_STOPWATCH=no
1414 DEFAULT_wxUSE_FILE=no
1415 DEFAULT_wxUSE_FFILE=no
1416 DEFAULT_wxUSE_TEXTFILE=no
1417 DEFAULT_wxUSE_WAVE=no
1418 DEFAULT_wxUSE_INTL=no
1419 DEFAULT_wxUSE_CONFIG=no
1420 DEFAULT_wxUSE_FONTMAP=no
1421 DEFAULT_wxUSE_STREAMS=no
1422 DEFAULT_wxUSE_SOCKETS=no
1423 DEFAULT_wxUSE_DIALUP_MANAGER=no
1424 DEFAULT_wxUSE_SERIAL=no
1425 DEFAULT_wxUSE_JOYSTICK=no
1426 DEFAULT_wxUSE_DYNLIB_CLASS=no
1427 DEFAULT_wxUSE_LONGLONG=no
1428 DEFAULT_wxUSE_GEOMETRY=no
1429
1430 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1431 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1432 DEFAULT_wxUSE_POSTSCRIPT=no
1433
1434 DEFAULT_wxUSE_X_RESOURCES=no
1435 DEFAULT_wxUSE_CLIPBOARD=no
1436 DEFAULT_wxUSE_TOOLTIPS=no
1437 DEFAULT_wxUSE_DRAG_AND_DROP=no
1438 DEFAULT_wxUSE_DRAGIMAGE=no
1439 DEFAULT_wxUSE_SPLINES=no
1440
1441 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1442 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1443 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1444
1445 DEFAULT_wxUSE_PROLOGIO=no
1446 DEFAULT_wxUSE_RESOURCES=no
1447 DEFAULT_wxUSE_CONSTRAINTS=no
1448 DEFAULT_wxUSE_IPC=no
1449 DEFAULT_wxUSE_HELP=no
1450 DEFAULT_wxUSE_MS_HTML_HELP=no
1451 DEFAULT_wxUSE_WXHTML_HELP=no
1452 DEFAULT_wxUSE_TREELAYOUT=no
1453 DEFAULT_wxUSE_METAFILE=no
1454 DEFAULT_wxUSE_MIMETYPE=no
1455 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1456
1457 DEFAULT_wxUSE_COMMONDLGS=no
1458 DEFAULT_wxUSE_CHOICEDLG=no
1459 DEFAULT_wxUSE_COLOURDLG=no
1460 DEFAULT_wxUSE_DIRDLG=no
1461 DEFAULT_wxUSE_FILEDLG=no
1462 DEFAULT_wxUSE_FINDREPLDLG=no
1463 DEFAULT_wxUSE_FONTDLG=no
1464 DEFAULT_wxUSE_MSGDLG=no
1465 DEFAULT_wxUSE_NUMBERDLG=no
1466 DEFAULT_wxUSE_TEXTDLG=no
1467 DEFAULT_wxUSE_SPLASH=no
1468 DEFAULT_wxUSE_STARTUP_TIPS=no
1469 DEFAULT_wxUSE_PROGRESSDLG=no
1470 DEFAULT_wxUSE_WIZARDDLG=no
1471
1472 DEFAULT_wxUSE_MENUS=no
1473 DEFAULT_wxUSE_MINIFRAME=no
1474 DEFAULT_wxUSE_HTML=no
1475 DEFAULT_wxUSE_FILESYSTEM=no
1476 DEFAULT_wxUSE_FS_INET=no
1477 DEFAULT_wxUSE_FS_ZIP=no
1478 DEFAULT_wxUSE_BUSYINFO=no
1479 DEFAULT_wxUSE_ZIPSTREAM=no
1480 DEFAULT_wxUSE_VALIDATORS=no
1481
1482 DEFAULT_wxUSE_ACCEL=no
1483 DEFAULT_wxUSE_BUTTON=no
1484 DEFAULT_wxUSE_BMPBUTTON=no
1485 DEFAULT_wxUSE_CALCTRL=no
1486 DEFAULT_wxUSE_CARET=no
1487 DEFAULT_wxUSE_CHECKBOX=no
1488 DEFAULT_wxUSE_CHECKLST=no
1489 DEFAULT_wxUSE_CHOICE=no
1490 DEFAULT_wxUSE_COMBOBOX=no
1491 DEFAULT_wxUSE_GAUGE=no
1492 DEFAULT_wxUSE_GRID=no
1493 DEFAULT_wxUSE_NEW_GRID=no
1494 DEFAULT_wxUSE_IMAGLIST=no
1495 DEFAULT_wxUSE_LISTBOX=no
1496 DEFAULT_wxUSE_LISTCTRL=no
1497 DEFAULT_wxUSE_NOTEBOOK=no
1498 DEFAULT_wxUSE_PROPSHEET=no
1499 DEFAULT_wxUSE_RADIOBOX=no
1500 DEFAULT_wxUSE_RADIOBTN=no
1501 DEFAULT_wxUSE_SASH=no
1502 DEFAULT_wxUSE_SCROLLBAR=no
1503 DEFAULT_wxUSE_SLIDER=no
1504 DEFAULT_wxUSE_SPINBTN=no
1505 DEFAULT_wxUSE_SPINCTRL=no
1506 DEFAULT_wxUSE_SPLITTER=no
1507 DEFAULT_wxUSE_STATBMP=no
1508 DEFAULT_wxUSE_STATBOX=no
1509 DEFAULT_wxUSE_STATLINE=no
1510 DEFAULT_wxUSE_STATTEXT=no
1511 DEFAULT_wxUSE_STATUSBAR=yes
1512 DEFAULT_wxUSE_TABDIALOG=no
1513 DEFAULT_wxUSE_TEXTCTRL=no
1514 DEFAULT_wxUSE_TOGGLEBTN=no
1515 DEFAULT_wxUSE_TOOLBAR=no
1516 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1517 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1518 DEFAULT_wxUSE_TREECTRL=no
1519 DEFAULT_wxUSE_POPUPWIN=no
1520
1521 DEFAULT_wxUSE_UNICODE=no
1522 DEFAULT_wxUSE_WCSRTOMBS=no
1523
1524 DEFAULT_wxUSE_IMAGE=no
1525 DEFAULT_wxUSE_GIF=no
1526 DEFAULT_wxUSE_PCX=no
1527 DEFAULT_wxUSE_PNM=no
1528 DEFAULT_wxUSE_XPM=no
1529 else
1530 DEFAULT_wxUSE_UNIVERSAL=no
1531
1532 DEFAULT_wxUSE_THREADS=yes
1533
1534 DEFAULT_wxUSE_SHARED=yes
1535 DEFAULT_wxUSE_SONAME=no
1536 DEFAULT_wxUSE_OPTIMISE=yes
1537 DEFAULT_wxUSE_PROFILE=no
1538 DEFAULT_wxUSE_NO_DEPS=no
1539 DEFAULT_wxUSE_NO_RTTI=no
1540 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1541 DEFAULT_wxUSE_PERMISSIVE=no
1542 DEFAULT_wxUSE_DEBUG_FLAG=no
1543 DEFAULT_wxUSE_DEBUG_INFO=no
1544 DEFAULT_wxUSE_DEBUG_GDB=no
1545 DEFAULT_wxUSE_MEM_TRACING=no
1546 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1547 DEFAULT_wxUSE_DMALLOC=no
1548 DEFAULT_wxUSE_APPLE_IEEE=yes
1549
1550 DEFAULT_wxUSE_LOG=yes
1551 DEFAULT_wxUSE_LOGWINDOW=yes
1552 DEFAULT_wxUSE_LOGGUI=yes
1553
1554 DEFAULT_wxUSE_GUI=yes
1555
1556 DEFAULT_wxUSE_REGEX=yes
1557 DEFAULT_wxUSE_ZLIB=yes
1558 DEFAULT_wxUSE_LIBPNG=yes
1559 DEFAULT_wxUSE_LIBJPEG=yes
1560 DEFAULT_wxUSE_LIBTIFF=yes
1561 DEFAULT_wxUSE_ODBC=no
1562 DEFAULT_wxUSE_FREETYPE=no
1563 DEFAULT_wxUSE_OPENGL=no
1564
1565 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1566 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1567 DEFAULT_wxUSE_STD_IOSTREAM=no
1568 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1569 DEFAULT_wxUSE_DATETIME=yes
1570 DEFAULT_wxUSE_TIMEDATE=no
1571 DEFAULT_wxUSE_TIMER=yes
1572 DEFAULT_wxUSE_STOPWATCH=yes
1573 DEFAULT_wxUSE_FILE=yes
1574 DEFAULT_wxUSE_FFILE=yes
1575 DEFAULT_wxUSE_TEXTFILE=yes
1576 DEFAULT_wxUSE_WAVE=no
1577 DEFAULT_wxUSE_INTL=yes
1578 DEFAULT_wxUSE_CONFIG=yes
1579 DEFAULT_wxUSE_FONTMAP=yes
1580 DEFAULT_wxUSE_STREAMS=yes
1581 DEFAULT_wxUSE_SOCKETS=yes
1582 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1583 DEFAULT_wxUSE_SERIAL=yes
1584 DEFAULT_wxUSE_JOYSTICK=yes
1585 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1586 DEFAULT_wxUSE_LONGLONG=yes
1587 DEFAULT_wxUSE_GEOMETRY=yes
1588
1589 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1590 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1591 DEFAULT_wxUSE_POSTSCRIPT=yes
1592
1593 DEFAULT_wxUSE_X_RESOURCES=no
1594 DEFAULT_wxUSE_CLIPBOARD=yes
1595 DEFAULT_wxUSE_TOOLTIPS=yes
1596 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1597 DEFAULT_wxUSE_DRAGIMAGE=yes
1598 DEFAULT_wxUSE_SPLINES=yes
1599
1600 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1601 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1602 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1603
1604 DEFAULT_wxUSE_PROLOGIO=yes
1605 DEFAULT_wxUSE_RESOURCES=yes
1606 DEFAULT_wxUSE_CONSTRAINTS=yes
1607 DEFAULT_wxUSE_IPC=yes
1608 DEFAULT_wxUSE_HELP=yes
1609 DEFAULT_wxUSE_MS_HTML_HELP=yes
1610 DEFAULT_wxUSE_WXHTML_HELP=yes
1611 DEFAULT_wxUSE_TREELAYOUT=yes
1612 DEFAULT_wxUSE_METAFILE=yes
1613 DEFAULT_wxUSE_MIMETYPE=yes
1614 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1615
1616 DEFAULT_wxUSE_COMMONDLGS=yes
1617 DEFAULT_wxUSE_CHOICEDLG=yes
1618 DEFAULT_wxUSE_COLOURDLG=yes
1619 DEFAULT_wxUSE_DIRDLG=yes
1620 DEFAULT_wxUSE_FILEDLG=yes
1621 DEFAULT_wxUSE_FINDREPLDLG=yes
1622 DEFAULT_wxUSE_FONTDLG=yes
1623 DEFAULT_wxUSE_MSGDLG=yes
1624 DEFAULT_wxUSE_NUMBERDLG=yes
1625 DEFAULT_wxUSE_TEXTDLG=yes
1626 DEFAULT_wxUSE_SPLASH=yes
1627 DEFAULT_wxUSE_STARTUP_TIPS=yes
1628 DEFAULT_wxUSE_PROGRESSDLG=yes
1629 DEFAULT_wxUSE_WIZARDDLG=yes
1630
1631 DEFAULT_wxUSE_MENUS=yes
1632 DEFAULT_wxUSE_MINIFRAME=yes
1633 DEFAULT_wxUSE_HTML=yes
1634 DEFAULT_wxUSE_FILESYSTEM=yes
1635 DEFAULT_wxUSE_FS_INET=yes
1636 DEFAULT_wxUSE_FS_ZIP=yes
1637 DEFAULT_wxUSE_BUSYINFO=yes
1638 DEFAULT_wxUSE_ZIPSTREAM=yes
1639 DEFAULT_wxUSE_VALIDATORS=yes
1640
1641 DEFAULT_wxUSE_ACCEL=yes
1642 DEFAULT_wxUSE_BUTTON=yes
1643 DEFAULT_wxUSE_BMPBUTTON=yes
1644 DEFAULT_wxUSE_CALCTRL=yes
1645 DEFAULT_wxUSE_CARET=yes
1646 DEFAULT_wxUSE_CHECKBOX=yes
1647 DEFAULT_wxUSE_CHECKLST=yes
1648 DEFAULT_wxUSE_CHOICE=yes
1649 DEFAULT_wxUSE_COMBOBOX=yes
1650 DEFAULT_wxUSE_GAUGE=yes
1651 DEFAULT_wxUSE_GRID=yes
1652 DEFAULT_wxUSE_NEW_GRID=yes
1653 DEFAULT_wxUSE_IMAGLIST=yes
1654 DEFAULT_wxUSE_LISTBOX=yes
1655 DEFAULT_wxUSE_LISTCTRL=yes
1656 DEFAULT_wxUSE_NOTEBOOK=yes
1657 DEFAULT_wxUSE_PROPSHEET=yes
1658 DEFAULT_wxUSE_RADIOBOX=yes
1659 DEFAULT_wxUSE_RADIOBTN=yes
1660 DEFAULT_wxUSE_SASH=yes
1661 DEFAULT_wxUSE_SCROLLBAR=yes
1662 DEFAULT_wxUSE_SLIDER=yes
1663 DEFAULT_wxUSE_SPINBTN=yes
1664 DEFAULT_wxUSE_SPINCTRL=yes
1665 DEFAULT_wxUSE_SPLITTER=yes
1666 DEFAULT_wxUSE_STATBMP=yes
1667 DEFAULT_wxUSE_STATBOX=yes
1668 DEFAULT_wxUSE_STATLINE=yes
1669 DEFAULT_wxUSE_STATTEXT=yes
1670 DEFAULT_wxUSE_STATUSBAR=yes
1671 DEFAULT_wxUSE_TABDIALOG=no
1672 DEFAULT_wxUSE_TEXTCTRL=yes
1673 DEFAULT_wxUSE_TOGGLEBTN=yes
1674 DEFAULT_wxUSE_TOOLBAR=yes
1675 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1676 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1677 DEFAULT_wxUSE_TREECTRL=yes
1678 DEFAULT_wxUSE_POPUPWIN=yes
1679
1680 DEFAULT_wxUSE_UNICODE=no
1681 DEFAULT_wxUSE_WCSRTOMBS=no
1682
1683 DEFAULT_wxUSE_IMAGE=yes
1684 DEFAULT_wxUSE_GIF=yes
1685 DEFAULT_wxUSE_PCX=yes
1686 DEFAULT_wxUSE_PNM=yes
1687 DEFAULT_wxUSE_XPM=yes
1688 fi
1689
1690
1691
1692 for toolkit in `echo $ALL_TOOLKITS`; do
1693 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1694 if test "x$LINE" != x ; then
1695 has_toolkit_in_cache=1
1696 eval "DEFAULT_$LINE"
1697 eval "CACHE_$toolkit=1"
1698 fi
1699 done
1700
1701
1702
1703 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1704 echo "configure:1705: checking for --enable-gui" >&5
1705 no_cache=0
1706 # Check whether --enable-gui or --disable-gui was given.
1707 if test "${enable_gui+set}" = set; then
1708 enableval="$enable_gui"
1709
1710 if test "$enableval" = yes; then
1711 ac_cv_use_gui='wxUSE_GUI=yes'
1712 else
1713 ac_cv_use_gui='wxUSE_GUI=no'
1714 fi
1715
1716 else
1717
1718 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1719 if test "x$LINE" != x ; then
1720 eval "DEFAULT_$LINE"
1721 else
1722 no_cache=1
1723 fi
1724
1725 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1726
1727 fi
1728
1729
1730 eval "$ac_cv_use_gui"
1731 if test "$no_cache" != 1; then
1732 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1733 fi
1734
1735 if test "$wxUSE_GUI" = yes; then
1736 echo "$ac_t""yes" 1>&6
1737 else
1738 echo "$ac_t""no" 1>&6
1739 fi
1740
1741
1742 if test "$wxUSE_GUI" = "yes"; then
1743
1744
1745 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1746 echo "configure:1747: checking for --enable-universal" >&5
1747 no_cache=0
1748 # Check whether --enable-universal or --disable-universal was given.
1749 if test "${enable_universal+set}" = set; then
1750 enableval="$enable_universal"
1751
1752 if test "$enableval" = yes; then
1753 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1754 else
1755 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1756 fi
1757
1758 else
1759
1760 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1761 if test "x$LINE" != x ; then
1762 eval "DEFAULT_$LINE"
1763 else
1764 no_cache=1
1765 fi
1766
1767 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1768
1769 fi
1770
1771
1772 eval "$ac_cv_use_universal"
1773 if test "$no_cache" != 1; then
1774 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1775 fi
1776
1777 if test "$wxUSE_UNIVERSAL" = yes; then
1778 echo "$ac_t""yes" 1>&6
1779 else
1780 echo "$ac_t""no" 1>&6
1781 fi
1782
1783 # Check whether --with-gtk or --without-gtk was given.
1784 if test "${with_gtk+set}" = set; then
1785 withval="$with_gtk"
1786 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1787 fi
1788
1789 # Check whether --with-motif or --without-motif was given.
1790 if test "${with_motif+set}" = set; then
1791 withval="$with_motif"
1792 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1793 fi
1794
1795 # Check whether --with-mac or --without-mac was given.
1796 if test "${with_mac+set}" = set; then
1797 withval="$with_mac"
1798 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1799 fi
1800
1801 # Check whether --with-wine or --without-wine was given.
1802 if test "${with_wine+set}" = set; then
1803 withval="$with_wine"
1804 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1805 fi
1806
1807 # Check whether --with-cygwin or --without-cygwin was given.
1808 if test "${with_cygwin+set}" = set; then
1809 withval="$with_cygwin"
1810 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1811 fi
1812
1813 # Check whether --with-mingw or --without-mingw was given.
1814 if test "${with_mingw+set}" = set; then
1815 withval="$with_mingw"
1816 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1817 fi
1818
1819 # Check whether --with-pm or --without-pm was given.
1820 if test "${with_pm+set}" = set; then
1821 withval="$with_pm"
1822 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1823 fi
1824
1825 # Check whether --with-mgl or --without-mgl was given.
1826 if test "${with_mgl+set}" = set; then
1827 withval="$with_mgl"
1828 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1829 fi
1830
1831
1832 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1833 if test "${enable_gtk2+set}" = set; then
1834 enableval="$enable_gtk2"
1835 wxUSE_GTK2=1
1836 else
1837 wxUSE_GTK2=0
1838 fi
1839
1840
1841
1842 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1843 echo "configure:1844: checking for --with-libpng" >&5
1844 no_cache=0
1845 # Check whether --with-libpng or --without-libpng was given.
1846 if test "${with_libpng+set}" = set; then
1847 withval="$with_libpng"
1848
1849 if test "$withval" = yes; then
1850 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1851 elif test "$withval" = no; then
1852 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1853 elif test "$withval" = sys; then
1854 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1855 else
1856 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1857 fi
1858
1859 else
1860
1861 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1862 if test "x$LINE" != x ; then
1863 eval "DEFAULT_$LINE"
1864 else
1865 no_cache=1
1866 fi
1867
1868 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1869
1870 fi
1871
1872
1873 eval "$ac_cv_use_libpng"
1874 if test "$no_cache" != 1; then
1875 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1876 fi
1877
1878 if test "$wxUSE_LIBPNG" = yes; then
1879 echo "$ac_t""yes" 1>&6
1880 elif test "$wxUSE_LIBPNG" = no; then
1881 echo "$ac_t""no" 1>&6
1882 elif test "$wxUSE_LIBPNG" = sys; then
1883 echo "$ac_t""system version" 1>&6
1884 else
1885 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1886 fi
1887
1888
1889 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1890 echo "configure:1891: checking for --with-libjpeg" >&5
1891 no_cache=0
1892 # Check whether --with-libjpeg or --without-libjpeg was given.
1893 if test "${with_libjpeg+set}" = set; then
1894 withval="$with_libjpeg"
1895
1896 if test "$withval" = yes; then
1897 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1898 elif test "$withval" = no; then
1899 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1900 elif test "$withval" = sys; then
1901 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1902 else
1903 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1904 fi
1905
1906 else
1907
1908 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1909 if test "x$LINE" != x ; then
1910 eval "DEFAULT_$LINE"
1911 else
1912 no_cache=1
1913 fi
1914
1915 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1916
1917 fi
1918
1919
1920 eval "$ac_cv_use_libjpeg"
1921 if test "$no_cache" != 1; then
1922 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1923 fi
1924
1925 if test "$wxUSE_LIBJPEG" = yes; then
1926 echo "$ac_t""yes" 1>&6
1927 elif test "$wxUSE_LIBJPEG" = no; then
1928 echo "$ac_t""no" 1>&6
1929 elif test "$wxUSE_LIBJPEG" = sys; then
1930 echo "$ac_t""system version" 1>&6
1931 else
1932 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1933 fi
1934
1935
1936 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1937 echo "configure:1938: checking for --with-libtiff" >&5
1938 no_cache=0
1939 # Check whether --with-libtiff or --without-libtiff was given.
1940 if test "${with_libtiff+set}" = set; then
1941 withval="$with_libtiff"
1942
1943 if test "$withval" = yes; then
1944 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1945 elif test "$withval" = no; then
1946 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1947 elif test "$withval" = sys; then
1948 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1949 else
1950 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1951 fi
1952
1953 else
1954
1955 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1956 if test "x$LINE" != x ; then
1957 eval "DEFAULT_$LINE"
1958 else
1959 no_cache=1
1960 fi
1961
1962 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1963
1964 fi
1965
1966
1967 eval "$ac_cv_use_libtiff"
1968 if test "$no_cache" != 1; then
1969 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1970 fi
1971
1972 if test "$wxUSE_LIBTIFF" = yes; then
1973 echo "$ac_t""yes" 1>&6
1974 elif test "$wxUSE_LIBTIFF" = no; then
1975 echo "$ac_t""no" 1>&6
1976 elif test "$wxUSE_LIBTIFF" = sys; then
1977 echo "$ac_t""system version" 1>&6
1978 else
1979 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1980 fi
1981
1982
1983 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1984 echo "configure:1985: checking for --with-freetype" >&5
1985 no_cache=0
1986 # Check whether --with-freetype or --without-freetype was given.
1987 if test "${with_freetype+set}" = set; then
1988 withval="$with_freetype"
1989
1990 if test "$withval" = yes; then
1991 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1992 elif test "$withval" = no; then
1993 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1994 elif test "$withval" = sys; then
1995 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1996 else
1997 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1998 fi
1999
2000 else
2001
2002 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2003 if test "x$LINE" != x ; then
2004 eval "DEFAULT_$LINE"
2005 else
2006 no_cache=1
2007 fi
2008
2009 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2010
2011 fi
2012
2013
2014 eval "$ac_cv_use_freetype"
2015 if test "$no_cache" != 1; then
2016 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2017 fi
2018
2019 if test "$wxUSE_FREETYPE" = yes; then
2020 echo "$ac_t""yes" 1>&6
2021 elif test "$wxUSE_FREETYPE" = no; then
2022 echo "$ac_t""no" 1>&6
2023 elif test "$wxUSE_FREETYPE" = sys; then
2024 echo "$ac_t""system version" 1>&6
2025 else
2026 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2027 fi
2028
2029
2030 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2031 echo "configure:2032: checking for --with-opengl" >&5
2032 no_cache=0
2033 # Check whether --with-opengl or --without-opengl was given.
2034 if test "${with_opengl+set}" = set; then
2035 withval="$with_opengl"
2036
2037 if test "$withval" = yes; then
2038 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2039 else
2040 ac_cv_use_opengl='wxUSE_OPENGL=no'
2041 fi
2042
2043 else
2044
2045 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2046 if test "x$LINE" != x ; then
2047 eval "DEFAULT_$LINE"
2048 else
2049 no_cache=1
2050 fi
2051
2052 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2053
2054 fi
2055
2056
2057 eval "$ac_cv_use_opengl"
2058 if test "$no_cache" != 1; then
2059 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2060 fi
2061
2062 if test "$wxUSE_OPENGL" = yes; then
2063 echo "$ac_t""yes" 1>&6
2064 else
2065 echo "$ac_t""no" 1>&6
2066 fi
2067
2068
2069 fi
2070
2071
2072 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2073 echo "configure:2074: checking for --with-dmalloc" >&5
2074 no_cache=0
2075 # Check whether --with-dmalloc or --without-dmalloc was given.
2076 if test "${with_dmalloc+set}" = set; then
2077 withval="$with_dmalloc"
2078
2079 if test "$withval" = yes; then
2080 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2081 else
2082 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2083 fi
2084
2085 else
2086
2087 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2088 if test "x$LINE" != x ; then
2089 eval "DEFAULT_$LINE"
2090 else
2091 no_cache=1
2092 fi
2093
2094 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2095
2096 fi
2097
2098
2099 eval "$ac_cv_use_dmalloc"
2100 if test "$no_cache" != 1; then
2101 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2102 fi
2103
2104 if test "$wxUSE_DMALLOC" = yes; then
2105 echo "$ac_t""yes" 1>&6
2106 else
2107 echo "$ac_t""no" 1>&6
2108 fi
2109
2110
2111 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2112 echo "configure:2113: checking for --with-regex" >&5
2113 no_cache=0
2114 # Check whether --with-regex or --without-regex was given.
2115 if test "${with_regex+set}" = set; then
2116 withval="$with_regex"
2117
2118 if test "$withval" = yes; then
2119 ac_cv_use_regex='wxUSE_REGEX=yes'
2120 elif test "$withval" = no; then
2121 ac_cv_use_regex='wxUSE_REGEX=no'
2122 elif test "$withval" = sys; then
2123 ac_cv_use_regex='wxUSE_REGEX=sys'
2124 else
2125 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2126 fi
2127
2128 else
2129
2130 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2131 if test "x$LINE" != x ; then
2132 eval "DEFAULT_$LINE"
2133 else
2134 no_cache=1
2135 fi
2136
2137 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2138
2139 fi
2140
2141
2142 eval "$ac_cv_use_regex"
2143 if test "$no_cache" != 1; then
2144 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2145 fi
2146
2147 if test "$wxUSE_REGEX" = yes; then
2148 echo "$ac_t""yes" 1>&6
2149 elif test "$wxUSE_REGEX" = no; then
2150 echo "$ac_t""no" 1>&6
2151 elif test "$wxUSE_REGEX" = sys; then
2152 echo "$ac_t""system version" 1>&6
2153 else
2154 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2155 fi
2156
2157
2158 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2159 echo "configure:2160: checking for --with-zlib" >&5
2160 no_cache=0
2161 # Check whether --with-zlib or --without-zlib was given.
2162 if test "${with_zlib+set}" = set; then
2163 withval="$with_zlib"
2164
2165 if test "$withval" = yes; then
2166 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2167 elif test "$withval" = no; then
2168 ac_cv_use_zlib='wxUSE_ZLIB=no'
2169 elif test "$withval" = sys; then
2170 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2171 else
2172 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2173 fi
2174
2175 else
2176
2177 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2178 if test "x$LINE" != x ; then
2179 eval "DEFAULT_$LINE"
2180 else
2181 no_cache=1
2182 fi
2183
2184 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2185
2186 fi
2187
2188
2189 eval "$ac_cv_use_zlib"
2190 if test "$no_cache" != 1; then
2191 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2192 fi
2193
2194 if test "$wxUSE_ZLIB" = yes; then
2195 echo "$ac_t""yes" 1>&6
2196 elif test "$wxUSE_ZLIB" = no; then
2197 echo "$ac_t""no" 1>&6
2198 elif test "$wxUSE_ZLIB" = sys; then
2199 echo "$ac_t""system version" 1>&6
2200 else
2201 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2202 fi
2203
2204
2205 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2206 echo "configure:2207: checking for --with-odbc" >&5
2207 no_cache=0
2208 # Check whether --with-odbc or --without-odbc was given.
2209 if test "${with_odbc+set}" = set; then
2210 withval="$with_odbc"
2211
2212 if test "$withval" = yes; then
2213 ac_cv_use_odbc='wxUSE_ODBC=yes'
2214 else
2215 ac_cv_use_odbc='wxUSE_ODBC=no'
2216 fi
2217
2218 else
2219
2220 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2221 if test "x$LINE" != x ; then
2222 eval "DEFAULT_$LINE"
2223 else
2224 no_cache=1
2225 fi
2226
2227 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2228
2229 fi
2230
2231
2232 eval "$ac_cv_use_odbc"
2233 if test "$no_cache" != 1; then
2234 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2235 fi
2236
2237 if test "$wxUSE_ODBC" = yes; then
2238 echo "$ac_t""yes" 1>&6
2239 else
2240 echo "$ac_t""no" 1>&6
2241 fi
2242
2243
2244
2245
2246
2247 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2248 echo "configure:2249: checking for --enable-shared" >&5
2249 no_cache=0
2250 # Check whether --enable-shared or --disable-shared was given.
2251 if test "${enable_shared+set}" = set; then
2252 enableval="$enable_shared"
2253
2254 if test "$enableval" = yes; then
2255 ac_cv_use_shared='wxUSE_SHARED=yes'
2256 else
2257 ac_cv_use_shared='wxUSE_SHARED=no'
2258 fi
2259
2260 else
2261
2262 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2263 if test "x$LINE" != x ; then
2264 eval "DEFAULT_$LINE"
2265 else
2266 no_cache=1
2267 fi
2268
2269 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2270
2271 fi
2272
2273
2274 eval "$ac_cv_use_shared"
2275 if test "$no_cache" != 1; then
2276 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2277 fi
2278
2279 if test "$wxUSE_SHARED" = yes; then
2280 echo "$ac_t""yes" 1>&6
2281 else
2282 echo "$ac_t""no" 1>&6
2283 fi
2284
2285
2286 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2287 echo "configure:2288: checking for --enable-soname" >&5
2288 no_cache=0
2289 # Check whether --enable-soname or --disable-soname was given.
2290 if test "${enable_soname+set}" = set; then
2291 enableval="$enable_soname"
2292
2293 if test "$enableval" = yes; then
2294 ac_cv_use_soname='wxUSE_SONAME=yes'
2295 else
2296 ac_cv_use_soname='wxUSE_SONAME=no'
2297 fi
2298
2299 else
2300
2301 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2302 if test "x$LINE" != x ; then
2303 eval "DEFAULT_$LINE"
2304 else
2305 no_cache=1
2306 fi
2307
2308 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2309
2310 fi
2311
2312
2313 eval "$ac_cv_use_soname"
2314 if test "$no_cache" != 1; then
2315 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2316 fi
2317
2318 if test "$wxUSE_SONAME" = yes; then
2319 echo "$ac_t""yes" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2322 fi
2323
2324
2325 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2326 echo "configure:2327: checking for --enable-optimise" >&5
2327 no_cache=0
2328 # Check whether --enable-optimise or --disable-optimise was given.
2329 if test "${enable_optimise+set}" = set; then
2330 enableval="$enable_optimise"
2331
2332 if test "$enableval" = yes; then
2333 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2334 else
2335 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2336 fi
2337
2338 else
2339
2340 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2341 if test "x$LINE" != x ; then
2342 eval "DEFAULT_$LINE"
2343 else
2344 no_cache=1
2345 fi
2346
2347 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2348
2349 fi
2350
2351
2352 eval "$ac_cv_use_optimise"
2353 if test "$no_cache" != 1; then
2354 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2355 fi
2356
2357 if test "$wxUSE_OPTIMISE" = yes; then
2358 echo "$ac_t""yes" 1>&6
2359 else
2360 echo "$ac_t""no" 1>&6
2361 fi
2362
2363
2364 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2365 echo "configure:2366: checking for --enable-debug" >&5
2366 no_cache=0
2367 # Check whether --enable-debug or --disable-debug was given.
2368 if test "${enable_debug+set}" = set; then
2369 enableval="$enable_debug"
2370
2371 if test "$enableval" = yes; then
2372 ac_cv_use_debug='wxUSE_DEBUG=yes'
2373 else
2374 ac_cv_use_debug='wxUSE_DEBUG=no'
2375 fi
2376
2377 else
2378
2379 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2387
2388 fi
2389
2390
2391 eval "$ac_cv_use_debug"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_DEBUG" = yes; then
2397 echo "$ac_t""yes" 1>&6
2398 else
2399 echo "$ac_t""no" 1>&6
2400 fi
2401
2402
2403 if test "$wxUSE_DEBUG" = "yes"; then
2404 DEFAULT_wxUSE_DEBUG_FLAG=yes
2405 DEFAULT_wxUSE_DEBUG_INFO=yes
2406 elif test "$wxUSE_DEBUG" = "no"; then
2407 DEFAULT_wxUSE_DEBUG_FLAG=no
2408 DEFAULT_wxUSE_DEBUG_INFO=no
2409 fi
2410
2411
2412 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2413 echo "configure:2414: checking for --enable-debug_flag" >&5
2414 no_cache=0
2415 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2416 if test "${enable_debug_flag+set}" = set; then
2417 enableval="$enable_debug_flag"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2421 else
2422 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2423 fi
2424
2425 else
2426
2427 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2435
2436 fi
2437
2438
2439 eval "$ac_cv_use_debug_flag"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_DEBUG_FLAG" = yes; then
2445 echo "$ac_t""yes" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2448 fi
2449
2450
2451 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2452 echo "configure:2453: checking for --enable-debug_info" >&5
2453 no_cache=0
2454 # Check whether --enable-debug_info or --disable-debug_info was given.
2455 if test "${enable_debug_info+set}" = set; then
2456 enableval="$enable_debug_info"
2457
2458 if test "$enableval" = yes; then
2459 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2460 else
2461 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2462 fi
2463
2464 else
2465
2466 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2474
2475 fi
2476
2477
2478 eval "$ac_cv_use_debug_info"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_DEBUG_INFO" = yes; then
2484 echo "$ac_t""yes" 1>&6
2485 else
2486 echo "$ac_t""no" 1>&6
2487 fi
2488
2489
2490 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2491 echo "configure:2492: checking for --enable-debug_gdb" >&5
2492 no_cache=0
2493 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2494 if test "${enable_debug_gdb+set}" = set; then
2495 enableval="$enable_debug_gdb"
2496
2497 if test "$enableval" = yes; then
2498 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2499 else
2500 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2501 fi
2502
2503 else
2504
2505 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
2512 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2513
2514 fi
2515
2516
2517 eval "$ac_cv_use_debug_gdb"
2518 if test "$no_cache" != 1; then
2519 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2520 fi
2521
2522 if test "$wxUSE_DEBUG_GDB" = yes; then
2523 echo "$ac_t""yes" 1>&6
2524 else
2525 echo "$ac_t""no" 1>&6
2526 fi
2527
2528
2529 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2530 echo "configure:2531: checking for --enable-debug_cntxt" >&5
2531 no_cache=0
2532 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2533 if test "${enable_debug_cntxt+set}" = set; then
2534 enableval="$enable_debug_cntxt"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2538 else
2539 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2540 fi
2541
2542 else
2543
2544 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2552
2553 fi
2554
2555
2556 eval "$ac_cv_use_debug_cntxt"
2557 if test "$no_cache" != 1; then
2558 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2559 fi
2560
2561 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2562 echo "$ac_t""yes" 1>&6
2563 else
2564 echo "$ac_t""no" 1>&6
2565 fi
2566
2567
2568 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2569 echo "configure:2570: checking for --enable-mem_tracing" >&5
2570 no_cache=0
2571 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2572 if test "${enable_mem_tracing+set}" = set; then
2573 enableval="$enable_mem_tracing"
2574
2575 if test "$enableval" = yes; then
2576 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2577 else
2578 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2579 fi
2580
2581 else
2582
2583 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2584 if test "x$LINE" != x ; then
2585 eval "DEFAULT_$LINE"
2586 else
2587 no_cache=1
2588 fi
2589
2590 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2591
2592 fi
2593
2594
2595 eval "$ac_cv_use_mem_tracing"
2596 if test "$no_cache" != 1; then
2597 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2598 fi
2599
2600 if test "$wxUSE_MEM_TRACING" = yes; then
2601 echo "$ac_t""yes" 1>&6
2602 else
2603 echo "$ac_t""no" 1>&6
2604 fi
2605
2606
2607 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2608 echo "configure:2609: checking for --enable-profile" >&5
2609 no_cache=0
2610 # Check whether --enable-profile or --disable-profile was given.
2611 if test "${enable_profile+set}" = set; then
2612 enableval="$enable_profile"
2613
2614 if test "$enableval" = yes; then
2615 ac_cv_use_profile='wxUSE_PROFILE=yes'
2616 else
2617 ac_cv_use_profile='wxUSE_PROFILE=no'
2618 fi
2619
2620 else
2621
2622 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2623 if test "x$LINE" != x ; then
2624 eval "DEFAULT_$LINE"
2625 else
2626 no_cache=1
2627 fi
2628
2629 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2630
2631 fi
2632
2633
2634 eval "$ac_cv_use_profile"
2635 if test "$no_cache" != 1; then
2636 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2637 fi
2638
2639 if test "$wxUSE_PROFILE" = yes; then
2640 echo "$ac_t""yes" 1>&6
2641 else
2642 echo "$ac_t""no" 1>&6
2643 fi
2644
2645
2646 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2647 echo "configure:2648: checking for --enable-no_rtti" >&5
2648 no_cache=0
2649 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2650 if test "${enable_no_rtti+set}" = set; then
2651 enableval="$enable_no_rtti"
2652
2653 if test "$enableval" = yes; then
2654 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2655 else
2656 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2657 fi
2658
2659 else
2660
2661 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2662 if test "x$LINE" != x ; then
2663 eval "DEFAULT_$LINE"
2664 else
2665 no_cache=1
2666 fi
2667
2668 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2669
2670 fi
2671
2672
2673 eval "$ac_cv_use_no_rtti"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_NO_RTTI" = yes; then
2679 echo "$ac_t""yes" 1>&6
2680 else
2681 echo "$ac_t""no" 1>&6
2682 fi
2683
2684
2685 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2686 echo "configure:2687: checking for --enable-no_exceptions" >&5
2687 no_cache=0
2688 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2689 if test "${enable_no_exceptions+set}" = set; then
2690 enableval="$enable_no_exceptions"
2691
2692 if test "$enableval" = yes; then
2693 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2694 else
2695 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2696 fi
2697
2698 else
2699
2700 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2701 if test "x$LINE" != x ; then
2702 eval "DEFAULT_$LINE"
2703 else
2704 no_cache=1
2705 fi
2706
2707 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2708
2709 fi
2710
2711
2712 eval "$ac_cv_use_no_exceptions"
2713 if test "$no_cache" != 1; then
2714 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2715 fi
2716
2717 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2718 echo "$ac_t""yes" 1>&6
2719 else
2720 echo "$ac_t""no" 1>&6
2721 fi
2722
2723
2724 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2725 echo "configure:2726: checking for --enable-permissive" >&5
2726 no_cache=0
2727 # Check whether --enable-permissive or --disable-permissive was given.
2728 if test "${enable_permissive+set}" = set; then
2729 enableval="$enable_permissive"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2733 else
2734 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2735 fi
2736
2737 else
2738
2739 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2747
2748 fi
2749
2750
2751 eval "$ac_cv_use_permissive"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$wxUSE_PERMISSIVE" = yes; then
2757 echo "$ac_t""yes" 1>&6
2758 else
2759 echo "$ac_t""no" 1>&6
2760 fi
2761
2762
2763 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2764 echo "configure:2765: checking for --enable-no_deps" >&5
2765 no_cache=0
2766 # Check whether --enable-no_deps or --disable-no_deps was given.
2767 if test "${enable_no_deps+set}" = set; then
2768 enableval="$enable_no_deps"
2769
2770 if test "$enableval" = yes; then
2771 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2772 else
2773 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2774 fi
2775
2776 else
2777
2778 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2786
2787 fi
2788
2789
2790 eval "$ac_cv_use_no_deps"
2791 if test "$no_cache" != 1; then
2792 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2793 fi
2794
2795 if test "$wxUSE_NO_DEPS" = yes; then
2796 echo "$ac_t""yes" 1>&6
2797 else
2798 echo "$ac_t""no" 1>&6
2799 fi
2800
2801
2802
2803 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2804 echo "configure:2805: checking for --enable-compat20" >&5
2805 no_cache=0
2806 # Check whether --enable-compat20 or --disable-compat20 was given.
2807 if test "${enable_compat20+set}" = set; then
2808 enableval="$enable_compat20"
2809
2810 if test "$enableval" = yes; then
2811 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2812 else
2813 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2814 fi
2815
2816 else
2817
2818 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
2825 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2826
2827 fi
2828
2829
2830 eval "$ac_cv_use_compat20"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2836 echo "$ac_t""yes" 1>&6
2837 else
2838 echo "$ac_t""no" 1>&6
2839 fi
2840
2841
2842 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2843 echo "configure:2844: checking for --enable-compat22" >&5
2844 no_cache=0
2845 # Check whether --enable-compat22 or --disable-compat22 was given.
2846 if test "${enable_compat22+set}" = set; then
2847 enableval="$enable_compat22"
2848
2849 if test "$enableval" = yes; then
2850 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2851 else
2852 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2853 fi
2854
2855 else
2856
2857 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2865
2866 fi
2867
2868
2869 eval "$ac_cv_use_compat22"
2870 if test "$no_cache" != 1; then
2871 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2872 fi
2873
2874 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2875 echo "$ac_t""yes" 1>&6
2876 else
2877 echo "$ac_t""no" 1>&6
2878 fi
2879
2880
2881
2882
2883 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2884 echo "configure:2885: checking for --enable-intl" >&5
2885 no_cache=0
2886 # Check whether --enable-intl or --disable-intl was given.
2887 if test "${enable_intl+set}" = set; then
2888 enableval="$enable_intl"
2889
2890 if test "$enableval" = yes; then
2891 ac_cv_use_intl='wxUSE_INTL=yes'
2892 else
2893 ac_cv_use_intl='wxUSE_INTL=no'
2894 fi
2895
2896 else
2897
2898 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2906
2907 fi
2908
2909
2910 eval "$ac_cv_use_intl"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$wxUSE_INTL" = yes; then
2916 echo "$ac_t""yes" 1>&6
2917 else
2918 echo "$ac_t""no" 1>&6
2919 fi
2920
2921
2922 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2923 echo "configure:2924: checking for --enable-config" >&5
2924 no_cache=0
2925 # Check whether --enable-config or --disable-config was given.
2926 if test "${enable_config+set}" = set; then
2927 enableval="$enable_config"
2928
2929 if test "$enableval" = yes; then
2930 ac_cv_use_config='wxUSE_CONFIG=yes'
2931 else
2932 ac_cv_use_config='wxUSE_CONFIG=no'
2933 fi
2934
2935 else
2936
2937 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2938 if test "x$LINE" != x ; then
2939 eval "DEFAULT_$LINE"
2940 else
2941 no_cache=1
2942 fi
2943
2944 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2945
2946 fi
2947
2948
2949 eval "$ac_cv_use_config"
2950 if test "$no_cache" != 1; then
2951 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2952 fi
2953
2954 if test "$wxUSE_CONFIG" = yes; then
2955 echo "$ac_t""yes" 1>&6
2956 else
2957 echo "$ac_t""no" 1>&6
2958 fi
2959
2960
2961
2962 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2963 echo "configure:2964: checking for --enable-sockets" >&5
2964 no_cache=0
2965 # Check whether --enable-sockets or --disable-sockets was given.
2966 if test "${enable_sockets+set}" = set; then
2967 enableval="$enable_sockets"
2968
2969 if test "$enableval" = yes; then
2970 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2971 else
2972 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2973 fi
2974
2975 else
2976
2977 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2978 if test "x$LINE" != x ; then
2979 eval "DEFAULT_$LINE"
2980 else
2981 no_cache=1
2982 fi
2983
2984 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2985
2986 fi
2987
2988
2989 eval "$ac_cv_use_sockets"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_SOCKETS" = yes; then
2995 echo "$ac_t""yes" 1>&6
2996 else
2997 echo "$ac_t""no" 1>&6
2998 fi
2999
3000
3001
3002 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3003 echo "configure:3004: checking for --enable-ipc" >&5
3004 no_cache=0
3005 # Check whether --enable-ipc or --disable-ipc was given.
3006 if test "${enable_ipc+set}" = set; then
3007 enableval="$enable_ipc"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_ipc='wxUSE_IPC=yes'
3011 else
3012 ac_cv_use_ipc='wxUSE_IPC=no'
3013 fi
3014
3015 else
3016
3017 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3025
3026 fi
3027
3028
3029 eval "$ac_cv_use_ipc"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_IPC" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041
3042 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3043 echo "configure:3044: checking for --enable-cmdline" >&5
3044 no_cache=0
3045 # Check whether --enable-cmdline or --disable-cmdline was given.
3046 if test "${enable_cmdline+set}" = set; then
3047 enableval="$enable_cmdline"
3048
3049 if test "$enableval" = yes; then
3050 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3051 else
3052 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3053 fi
3054
3055 else
3056
3057 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3065
3066 fi
3067
3068
3069 eval "$ac_cv_use_cmdline"
3070 if test "$no_cache" != 1; then
3071 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3072 fi
3073
3074 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3075 echo "$ac_t""yes" 1>&6
3076 else
3077 echo "$ac_t""no" 1>&6
3078 fi
3079
3080
3081 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3082 echo "configure:3083: checking for --enable-datetime" >&5
3083 no_cache=0
3084 # Check whether --enable-datetime or --disable-datetime was given.
3085 if test "${enable_datetime+set}" = set; then
3086 enableval="$enable_datetime"
3087
3088 if test "$enableval" = yes; then
3089 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3090 else
3091 ac_cv_use_datetime='wxUSE_DATETIME=no'
3092 fi
3093
3094 else
3095
3096 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3104
3105 fi
3106
3107
3108 eval "$ac_cv_use_datetime"
3109 if test "$no_cache" != 1; then
3110 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3111 fi
3112
3113 if test "$wxUSE_DATETIME" = yes; then
3114 echo "$ac_t""yes" 1>&6
3115 else
3116 echo "$ac_t""no" 1>&6
3117 fi
3118
3119
3120 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3121 echo "configure:3122: checking for --enable-timedate" >&5
3122 no_cache=0
3123 # Check whether --enable-timedate or --disable-timedate was given.
3124 if test "${enable_timedate+set}" = set; then
3125 enableval="$enable_timedate"
3126
3127 if test "$enableval" = yes; then
3128 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3129 else
3130 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3131 fi
3132
3133 else
3134
3135 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3136 if test "x$LINE" != x ; then
3137 eval "DEFAULT_$LINE"
3138 else
3139 no_cache=1
3140 fi
3141
3142 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3143
3144 fi
3145
3146
3147 eval "$ac_cv_use_timedate"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_TIMEDATE" = yes; then
3153 echo "$ac_t""yes" 1>&6
3154 else
3155 echo "$ac_t""no" 1>&6
3156 fi
3157
3158
3159 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3160 echo "configure:3161: checking for --enable-stopwatch" >&5
3161 no_cache=0
3162 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3163 if test "${enable_stopwatch+set}" = set; then
3164 enableval="$enable_stopwatch"
3165
3166 if test "$enableval" = yes; then
3167 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3168 else
3169 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3170 fi
3171
3172 else
3173
3174 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3182
3183 fi
3184
3185
3186 eval "$ac_cv_use_stopwatch"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_STOPWATCH" = yes; then
3192 echo "$ac_t""yes" 1>&6
3193 else
3194 echo "$ac_t""no" 1>&6
3195 fi
3196
3197
3198 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3199 echo "configure:3200: checking for --enable-dialupman" >&5
3200 no_cache=0
3201 # Check whether --enable-dialupman or --disable-dialupman was given.
3202 if test "${enable_dialupman+set}" = set; then
3203 enableval="$enable_dialupman"
3204
3205 if test "$enableval" = yes; then
3206 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3207 else
3208 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3209 fi
3210
3211 else
3212
3213 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3221
3222 fi
3223
3224
3225 eval "$ac_cv_use_dialupman"
3226 if test "$no_cache" != 1; then
3227 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3228 fi
3229
3230 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3231 echo "$ac_t""yes" 1>&6
3232 else
3233 echo "$ac_t""no" 1>&6
3234 fi
3235
3236
3237 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3238 echo "configure:3239: checking for --enable-apple_ieee" >&5
3239 no_cache=0
3240 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3241 if test "${enable_apple_ieee+set}" = set; then
3242 enableval="$enable_apple_ieee"
3243
3244 if test "$enableval" = yes; then
3245 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3246 else
3247 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3248 fi
3249
3250 else
3251
3252 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3253 if test "x$LINE" != x ; then
3254 eval "DEFAULT_$LINE"
3255 else
3256 no_cache=1
3257 fi
3258
3259 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3260
3261 fi
3262
3263
3264 eval "$ac_cv_use_apple_ieee"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_APPLE_IEEE" = yes; then
3270 echo "$ac_t""yes" 1>&6
3271 else
3272 echo "$ac_t""no" 1>&6
3273 fi
3274
3275
3276 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3277 echo "configure:3278: checking for --enable-timer" >&5
3278 no_cache=0
3279 # Check whether --enable-timer or --disable-timer was given.
3280 if test "${enable_timer+set}" = set; then
3281 enableval="$enable_timer"
3282
3283 if test "$enableval" = yes; then
3284 ac_cv_use_timer='wxUSE_TIMER=yes'
3285 else
3286 ac_cv_use_timer='wxUSE_TIMER=no'
3287 fi
3288
3289 else
3290
3291 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
3298 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3299
3300 fi
3301
3302
3303 eval "$ac_cv_use_timer"
3304 if test "$no_cache" != 1; then
3305 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3306 fi
3307
3308 if test "$wxUSE_TIMER" = yes; then
3309 echo "$ac_t""yes" 1>&6
3310 else
3311 echo "$ac_t""no" 1>&6
3312 fi
3313
3314
3315 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3316 echo "configure:3317: checking for --enable-wave" >&5
3317 no_cache=0
3318 # Check whether --enable-wave or --disable-wave was given.
3319 if test "${enable_wave+set}" = set; then
3320 enableval="$enable_wave"
3321
3322 if test "$enableval" = yes; then
3323 ac_cv_use_wave='wxUSE_WAVE=yes'
3324 else
3325 ac_cv_use_wave='wxUSE_WAVE=no'
3326 fi
3327
3328 else
3329
3330 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3331 if test "x$LINE" != x ; then
3332 eval "DEFAULT_$LINE"
3333 else
3334 no_cache=1
3335 fi
3336
3337 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3338
3339 fi
3340
3341
3342 eval "$ac_cv_use_wave"
3343 if test "$no_cache" != 1; then
3344 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3345 fi
3346
3347 if test "$wxUSE_WAVE" = yes; then
3348 echo "$ac_t""yes" 1>&6
3349 else
3350 echo "$ac_t""no" 1>&6
3351 fi
3352
3353
3354 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3355 echo "configure:3356: checking for --enable-fraction" >&5
3356 no_cache=0
3357 # Check whether --enable-fraction or --disable-fraction was given.
3358 if test "${enable_fraction+set}" = set; then
3359 enableval="$enable_fraction"
3360
3361 if test "$enableval" = yes; then
3362 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3363 else
3364 ac_cv_use_fraction='wxUSE_FRACTION=no'
3365 fi
3366
3367 else
3368
3369 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3370 if test "x$LINE" != x ; then
3371 eval "DEFAULT_$LINE"
3372 else
3373 no_cache=1
3374 fi
3375
3376 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3377
3378 fi
3379
3380
3381 eval "$ac_cv_use_fraction"
3382 if test "$no_cache" != 1; then
3383 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3384 fi
3385
3386 if test "$wxUSE_FRACTION" = yes; then
3387 echo "$ac_t""yes" 1>&6
3388 else
3389 echo "$ac_t""no" 1>&6
3390 fi
3391
3392
3393 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3394 echo "configure:3395: checking for --enable-dynlib" >&5
3395 no_cache=0
3396 # Check whether --enable-dynlib or --disable-dynlib was given.
3397 if test "${enable_dynlib+set}" = set; then
3398 enableval="$enable_dynlib"
3399
3400 if test "$enableval" = yes; then
3401 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3402 else
3403 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3404 fi
3405
3406 else
3407
3408 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3416
3417 fi
3418
3419
3420 eval "$ac_cv_use_dynlib"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3426 echo "$ac_t""yes" 1>&6
3427 else
3428 echo "$ac_t""no" 1>&6
3429 fi
3430
3431
3432 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3433 echo "configure:3434: checking for --enable-longlong" >&5
3434 no_cache=0
3435 # Check whether --enable-longlong or --disable-longlong was given.
3436 if test "${enable_longlong+set}" = set; then
3437 enableval="$enable_longlong"
3438
3439 if test "$enableval" = yes; then
3440 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3441 else
3442 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3443 fi
3444
3445 else
3446
3447 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3455
3456 fi
3457
3458
3459 eval "$ac_cv_use_longlong"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_LONGLONG" = yes; then
3465 echo "$ac_t""yes" 1>&6
3466 else
3467 echo "$ac_t""no" 1>&6
3468 fi
3469
3470
3471 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3472 echo "configure:3473: checking for --enable-geometry" >&5
3473 no_cache=0
3474 # Check whether --enable-geometry or --disable-geometry was given.
3475 if test "${enable_geometry+set}" = set; then
3476 enableval="$enable_geometry"
3477
3478 if test "$enableval" = yes; then
3479 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3480 else
3481 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3482 fi
3483
3484 else
3485
3486 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3487 if test "x$LINE" != x ; then
3488 eval "DEFAULT_$LINE"
3489 else
3490 no_cache=1
3491 fi
3492
3493 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3494
3495 fi
3496
3497
3498 eval "$ac_cv_use_geometry"
3499 if test "$no_cache" != 1; then
3500 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3501 fi
3502
3503 if test "$wxUSE_GEOMETRY" = yes; then
3504 echo "$ac_t""yes" 1>&6
3505 else
3506 echo "$ac_t""no" 1>&6
3507 fi
3508
3509
3510 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3511 echo "configure:3512: checking for --enable-log" >&5
3512 no_cache=0
3513 # Check whether --enable-log or --disable-log was given.
3514 if test "${enable_log+set}" = set; then
3515 enableval="$enable_log"
3516
3517 if test "$enableval" = yes; then
3518 ac_cv_use_log='wxUSE_LOG=yes'
3519 else
3520 ac_cv_use_log='wxUSE_LOG=no'
3521 fi
3522
3523 else
3524
3525 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3526 if test "x$LINE" != x ; then
3527 eval "DEFAULT_$LINE"
3528 else
3529 no_cache=1
3530 fi
3531
3532 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3533
3534 fi
3535
3536
3537 eval "$ac_cv_use_log"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_LOG" = yes; then
3543 echo "$ac_t""yes" 1>&6
3544 else
3545 echo "$ac_t""no" 1>&6
3546 fi
3547
3548
3549 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3550 echo "configure:3551: checking for --enable-streams" >&5
3551 no_cache=0
3552 # Check whether --enable-streams or --disable-streams was given.
3553 if test "${enable_streams+set}" = set; then
3554 enableval="$enable_streams"
3555
3556 if test "$enableval" = yes; then
3557 ac_cv_use_streams='wxUSE_STREAMS=yes'
3558 else
3559 ac_cv_use_streams='wxUSE_STREAMS=no'
3560 fi
3561
3562 else
3563
3564 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3572
3573 fi
3574
3575
3576 eval "$ac_cv_use_streams"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_STREAMS" = yes; then
3582 echo "$ac_t""yes" 1>&6
3583 else
3584 echo "$ac_t""no" 1>&6
3585 fi
3586
3587
3588 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3589 echo "configure:3590: checking for --enable-file" >&5
3590 no_cache=0
3591 # Check whether --enable-file or --disable-file was given.
3592 if test "${enable_file+set}" = set; then
3593 enableval="$enable_file"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_file='wxUSE_FILE=yes'
3597 else
3598 ac_cv_use_file='wxUSE_FILE=no'
3599 fi
3600
3601 else
3602
3603 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3611
3612 fi
3613
3614
3615 eval "$ac_cv_use_file"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_FILE" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3628 echo "configure:3629: checking for --enable-ffile" >&5
3629 no_cache=0
3630 # Check whether --enable-ffile or --disable-ffile was given.
3631 if test "${enable_ffile+set}" = set; then
3632 enableval="$enable_ffile"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_ffile='wxUSE_FFILE=yes'
3636 else
3637 ac_cv_use_ffile='wxUSE_FFILE=no'
3638 fi
3639
3640 else
3641
3642 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3650
3651 fi
3652
3653
3654 eval "$ac_cv_use_ffile"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_FFILE" = yes; then
3660 echo "$ac_t""yes" 1>&6
3661 else
3662 echo "$ac_t""no" 1>&6
3663 fi
3664
3665
3666 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3667 echo "configure:3668: checking for --enable-textfile" >&5
3668 no_cache=0
3669 # Check whether --enable-textfile or --disable-textfile was given.
3670 if test "${enable_textfile+set}" = set; then
3671 enableval="$enable_textfile"
3672
3673 if test "$enableval" = yes; then
3674 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3675 else
3676 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3677 fi
3678
3679 else
3680
3681 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3682 if test "x$LINE" != x ; then
3683 eval "DEFAULT_$LINE"
3684 else
3685 no_cache=1
3686 fi
3687
3688 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3689
3690 fi
3691
3692
3693 eval "$ac_cv_use_textfile"
3694 if test "$no_cache" != 1; then
3695 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3696 fi
3697
3698 if test "$wxUSE_TEXTFILE" = yes; then
3699 echo "$ac_t""yes" 1>&6
3700 else
3701 echo "$ac_t""no" 1>&6
3702 fi
3703
3704
3705 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3706 echo "configure:3707: checking for --enable-fontmap" >&5
3707 no_cache=0
3708 # Check whether --enable-fontmap or --disable-fontmap was given.
3709 if test "${enable_fontmap+set}" = set; then
3710 enableval="$enable_fontmap"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3714 else
3715 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3716 fi
3717
3718 else
3719
3720 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3728
3729 fi
3730
3731
3732 eval "$ac_cv_use_fontmap"
3733 if test "$no_cache" != 1; then
3734 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3735 fi
3736
3737 if test "$wxUSE_FONTMAP" = yes; then
3738 echo "$ac_t""yes" 1>&6
3739 else
3740 echo "$ac_t""no" 1>&6
3741 fi
3742
3743
3744 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3745 echo "configure:3746: checking for --enable-unicode" >&5
3746 no_cache=0
3747 # Check whether --enable-unicode or --disable-unicode was given.
3748 if test "${enable_unicode+set}" = set; then
3749 enableval="$enable_unicode"
3750
3751 if test "$enableval" = yes; then
3752 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3753 else
3754 ac_cv_use_unicode='wxUSE_UNICODE=no'
3755 fi
3756
3757 else
3758
3759 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3760 if test "x$LINE" != x ; then
3761 eval "DEFAULT_$LINE"
3762 else
3763 no_cache=1
3764 fi
3765
3766 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3767
3768 fi
3769
3770
3771 eval "$ac_cv_use_unicode"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_UNICODE" = yes; then
3777 echo "$ac_t""yes" 1>&6
3778 else
3779 echo "$ac_t""no" 1>&6
3780 fi
3781
3782
3783 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3784 echo "configure:3785: checking for --enable-wxprintfv" >&5
3785 no_cache=0
3786 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3787 if test "${enable_wxprintfv+set}" = set; then
3788 enableval="$enable_wxprintfv"
3789
3790 if test "$enableval" = yes; then
3791 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3792 else
3793 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3794 fi
3795
3796 else
3797
3798 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3799 if test "x$LINE" != x ; then
3800 eval "DEFAULT_$LINE"
3801 else
3802 no_cache=1
3803 fi
3804
3805 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3806
3807 fi
3808
3809
3810 eval "$ac_cv_use_wxprintfv"
3811 if test "$no_cache" != 1; then
3812 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3813 fi
3814
3815 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3816 echo "$ac_t""yes" 1>&6
3817 else
3818 echo "$ac_t""no" 1>&6
3819 fi
3820
3821
3822 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3823 echo "configure:3824: checking for --enable-std_iostreams" >&5
3824 no_cache=0
3825 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3826 if test "${enable_std_iostreams+set}" = set; then
3827 enableval="$enable_std_iostreams"
3828
3829 if test "$enableval" = yes; then
3830 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3831 else
3832 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3833 fi
3834
3835 else
3836
3837 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3838 if test "x$LINE" != x ; then
3839 eval "DEFAULT_$LINE"
3840 else
3841 no_cache=1
3842 fi
3843
3844 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3845
3846 fi
3847
3848
3849 eval "$ac_cv_use_std_iostreams"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_STD_IOSTREAM" = yes; then
3855 echo "$ac_t""yes" 1>&6
3856 else
3857 echo "$ac_t""no" 1>&6
3858 fi
3859
3860
3861 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3862 echo "configure:3863: checking for --enable-filesystem" >&5
3863 no_cache=0
3864 # Check whether --enable-filesystem or --disable-filesystem was given.
3865 if test "${enable_filesystem+set}" = set; then
3866 enableval="$enable_filesystem"
3867
3868 if test "$enableval" = yes; then
3869 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3870 else
3871 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3872 fi
3873
3874 else
3875
3876 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3877 if test "x$LINE" != x ; then
3878 eval "DEFAULT_$LINE"
3879 else
3880 no_cache=1
3881 fi
3882
3883 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3884
3885 fi
3886
3887
3888 eval "$ac_cv_use_filesystem"
3889 if test "$no_cache" != 1; then
3890 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3891 fi
3892
3893 if test "$wxUSE_FILESYSTEM" = yes; then
3894 echo "$ac_t""yes" 1>&6
3895 else
3896 echo "$ac_t""no" 1>&6
3897 fi
3898
3899
3900 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3901 echo "configure:3902: checking for --enable-fs_inet" >&5
3902 no_cache=0
3903 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3904 if test "${enable_fs_inet+set}" = set; then
3905 enableval="$enable_fs_inet"
3906
3907 if test "$enableval" = yes; then
3908 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3909 else
3910 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3911 fi
3912
3913 else
3914
3915 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3916 if test "x$LINE" != x ; then
3917 eval "DEFAULT_$LINE"
3918 else
3919 no_cache=1
3920 fi
3921
3922 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3923
3924 fi
3925
3926
3927 eval "$ac_cv_use_fs_inet"
3928 if test "$no_cache" != 1; then
3929 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3930 fi
3931
3932 if test "$wxUSE_FS_INET" = yes; then
3933 echo "$ac_t""yes" 1>&6
3934 else
3935 echo "$ac_t""no" 1>&6
3936 fi
3937
3938
3939 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3940 echo "configure:3941: checking for --enable-fs_zip" >&5
3941 no_cache=0
3942 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3943 if test "${enable_fs_zip+set}" = set; then
3944 enableval="$enable_fs_zip"
3945
3946 if test "$enableval" = yes; then
3947 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3948 else
3949 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3950 fi
3951
3952 else
3953
3954 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3962
3963 fi
3964
3965
3966 eval "$ac_cv_use_fs_zip"
3967 if test "$no_cache" != 1; then
3968 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3969 fi
3970
3971 if test "$wxUSE_FS_ZIP" = yes; then
3972 echo "$ac_t""yes" 1>&6
3973 else
3974 echo "$ac_t""no" 1>&6
3975 fi
3976
3977
3978 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3979 echo "configure:3980: checking for --enable-zipstream" >&5
3980 no_cache=0
3981 # Check whether --enable-zipstream or --disable-zipstream was given.
3982 if test "${enable_zipstream+set}" = set; then
3983 enableval="$enable_zipstream"
3984
3985 if test "$enableval" = yes; then
3986 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3987 else
3988 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3989 fi
3990
3991 else
3992
3993 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4001
4002 fi
4003
4004
4005 eval "$ac_cv_use_zipstream"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_ZIPSTREAM" = yes; then
4011 echo "$ac_t""yes" 1>&6
4012 else
4013 echo "$ac_t""no" 1>&6
4014 fi
4015
4016
4017
4018 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4019 echo "configure:4020: checking for --enable-catch_segvs" >&5
4020 no_cache=0
4021 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4022 if test "${enable_catch_segvs+set}" = set; then
4023 enableval="$enable_catch_segvs"
4024
4025 if test "$enableval" = yes; then
4026 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4027 else
4028 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4029 fi
4030
4031 else
4032
4033 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4041
4042 fi
4043
4044
4045 eval "$ac_cv_use_catch_segvs"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4051 echo "$ac_t""yes" 1>&6
4052 else
4053 echo "$ac_t""no" 1>&6
4054 fi
4055
4056
4057 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4058 echo "configure:4059: checking for --enable-snglinst" >&5
4059 no_cache=0
4060 # Check whether --enable-snglinst or --disable-snglinst was given.
4061 if test "${enable_snglinst+set}" = set; then
4062 enableval="$enable_snglinst"
4063
4064 if test "$enableval" = yes; then
4065 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4066 else
4067 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4068 fi
4069
4070 else
4071
4072 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
4079 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4080
4081 fi
4082
4083
4084 eval "$ac_cv_use_snglinst"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4090 echo "$ac_t""yes" 1>&6
4091 else
4092 echo "$ac_t""no" 1>&6
4093 fi
4094
4095
4096
4097 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4098 echo "configure:4099: checking for --enable-mimetype" >&5
4099 no_cache=0
4100 # Check whether --enable-mimetype or --disable-mimetype was given.
4101 if test "${enable_mimetype+set}" = set; then
4102 enableval="$enable_mimetype"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4106 else
4107 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4108 fi
4109
4110 else
4111
4112 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4120
4121 fi
4122
4123
4124 eval "$ac_cv_use_mimetype"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_MIMETYPE" = yes; then
4130 echo "$ac_t""yes" 1>&6
4131 else
4132 echo "$ac_t""no" 1>&6
4133 fi
4134
4135
4136 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4137 echo "configure:4138: checking for --enable-system_options" >&5
4138 no_cache=0
4139 # Check whether --enable-system_options or --disable-system_options was given.
4140 if test "${enable_system_options+set}" = set; then
4141 enableval="$enable_system_options"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4145 else
4146 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4147 fi
4148
4149 else
4150
4151 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4159
4160 fi
4161
4162
4163 eval "$ac_cv_use_system_options"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
4175
4176
4177 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4178 echo "configure:4179: checking for --enable-threads" >&5
4179 no_cache=0
4180 # Check whether --enable-threads or --disable-threads was given.
4181 if test "${enable_threads+set}" = set; then
4182 enableval="$enable_threads"
4183
4184 if test "$enableval" = yes; then
4185 ac_cv_use_threads='wxUSE_THREADS=yes'
4186 else
4187 ac_cv_use_threads='wxUSE_THREADS=no'
4188 fi
4189
4190 else
4191
4192 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4193 if test "x$LINE" != x ; then
4194 eval "DEFAULT_$LINE"
4195 else
4196 no_cache=1
4197 fi
4198
4199 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4200
4201 fi
4202
4203
4204 eval "$ac_cv_use_threads"
4205 if test "$no_cache" != 1; then
4206 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4207 fi
4208
4209 if test "$wxUSE_THREADS" = yes; then
4210 echo "$ac_t""yes" 1>&6
4211 else
4212 echo "$ac_t""no" 1>&6
4213 fi
4214
4215
4216 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4217 echo "configure:4218: checking for --enable-serial" >&5
4218 no_cache=0
4219 # Check whether --enable-serial or --disable-serial was given.
4220 if test "${enable_serial+set}" = set; then
4221 enableval="$enable_serial"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_serial='wxUSE_SERIAL=yes'
4225 else
4226 ac_cv_use_serial='wxUSE_SERIAL=no'
4227 fi
4228
4229 else
4230
4231 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4239
4240 fi
4241
4242
4243 eval "$ac_cv_use_serial"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_SERIAL" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255 if test "$wxUSE_GUI" = "yes"; then
4256
4257
4258
4259 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4260 echo "configure:4261: checking for --enable-docview" >&5
4261 no_cache=0
4262 # Check whether --enable-docview or --disable-docview was given.
4263 if test "${enable_docview+set}" = set; then
4264 enableval="$enable_docview"
4265
4266 if test "$enableval" = yes; then
4267 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4268 else
4269 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4270 fi
4271
4272 else
4273
4274 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4282
4283 fi
4284
4285
4286 eval "$ac_cv_use_docview"
4287 if test "$no_cache" != 1; then
4288 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4289 fi
4290
4291 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4292 echo "$ac_t""yes" 1>&6
4293 else
4294 echo "$ac_t""no" 1>&6
4295 fi
4296
4297
4298 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4299 echo "configure:4300: checking for --enable-help" >&5
4300 no_cache=0
4301 # Check whether --enable-help or --disable-help was given.
4302 if test "${enable_help+set}" = set; then
4303 enableval="$enable_help"
4304
4305 if test "$enableval" = yes; then
4306 ac_cv_use_help='wxUSE_HELP=yes'
4307 else
4308 ac_cv_use_help='wxUSE_HELP=no'
4309 fi
4310
4311 else
4312
4313 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4321
4322 fi
4323
4324
4325 eval "$ac_cv_use_help"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_HELP" = yes; then
4331 echo "$ac_t""yes" 1>&6
4332 else
4333 echo "$ac_t""no" 1>&6
4334 fi
4335
4336
4337 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4338 echo "configure:4339: checking for --enable-mshtmlhelp" >&5
4339 no_cache=0
4340 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4341 if test "${enable_mshtmlhelp+set}" = set; then
4342 enableval="$enable_mshtmlhelp"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4346 else
4347 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4348 fi
4349
4350 else
4351
4352 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4360
4361 fi
4362
4363
4364 eval "$ac_cv_use_mshtmlhelp"
4365 if test "$no_cache" != 1; then
4366 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4367 fi
4368
4369 if test "$wxUSE_MS_HTML_HELP" = yes; then
4370 echo "$ac_t""yes" 1>&6
4371 else
4372 echo "$ac_t""no" 1>&6
4373 fi
4374
4375
4376 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4377 echo "configure:4378: checking for --enable-html" >&5
4378 no_cache=0
4379 # Check whether --enable-html or --disable-html was given.
4380 if test "${enable_html+set}" = set; then
4381 enableval="$enable_html"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_html='wxUSE_HTML=yes'
4385 else
4386 ac_cv_use_html='wxUSE_HTML=no'
4387 fi
4388
4389 else
4390
4391 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4399
4400 fi
4401
4402
4403 eval "$ac_cv_use_html"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_HTML" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
4415 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4416 echo "configure:4417: checking for --enable-htmlhelp" >&5
4417 no_cache=0
4418 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4419 if test "${enable_htmlhelp+set}" = set; then
4420 enableval="$enable_htmlhelp"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4424 else
4425 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4426 fi
4427
4428 else
4429
4430 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
4437 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4438
4439 fi
4440
4441
4442 eval "$ac_cv_use_htmlhelp"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_WXHTML_HELP" = yes; then
4448 echo "$ac_t""yes" 1>&6
4449 else
4450 echo "$ac_t""no" 1>&6
4451 fi
4452
4453
4454 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4455 echo "configure:4456: checking for --enable-constraints" >&5
4456 no_cache=0
4457 # Check whether --enable-constraints or --disable-constraints was given.
4458 if test "${enable_constraints+set}" = set; then
4459 enableval="$enable_constraints"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4463 else
4464 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4465 fi
4466
4467 else
4468
4469 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4477
4478 fi
4479
4480
4481 eval "$ac_cv_use_constraints"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_CONSTRAINTS" = yes; then
4487 echo "$ac_t""yes" 1>&6
4488 else
4489 echo "$ac_t""no" 1>&6
4490 fi
4491
4492
4493 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4494 echo "configure:4495: checking for --enable-printarch" >&5
4495 no_cache=0
4496 # Check whether --enable-printarch or --disable-printarch was given.
4497 if test "${enable_printarch+set}" = set; then
4498 enableval="$enable_printarch"
4499
4500 if test "$enableval" = yes; then
4501 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4502 else
4503 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4504 fi
4505
4506 else
4507
4508 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
4515 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4516
4517 fi
4518
4519
4520 eval "$ac_cv_use_printarch"
4521 if test "$no_cache" != 1; then
4522 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4523 fi
4524
4525 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4526 echo "$ac_t""yes" 1>&6
4527 else
4528 echo "$ac_t""no" 1>&6
4529 fi
4530
4531
4532 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4533 echo "configure:4534: checking for --enable-mdi" >&5
4534 no_cache=0
4535 # Check whether --enable-mdi or --disable-mdi was given.
4536 if test "${enable_mdi+set}" = set; then
4537 enableval="$enable_mdi"
4538
4539 if test "$enableval" = yes; then
4540 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4541 else
4542 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4543 fi
4544
4545 else
4546
4547 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4548 if test "x$LINE" != x ; then
4549 eval "DEFAULT_$LINE"
4550 else
4551 no_cache=1
4552 fi
4553
4554 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4555
4556 fi
4557
4558
4559 eval "$ac_cv_use_mdi"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4565 echo "$ac_t""yes" 1>&6
4566 else
4567 echo "$ac_t""no" 1>&6
4568 fi
4569
4570
4571 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4572 echo "configure:4573: checking for --enable-loggui" >&5
4573 no_cache=0
4574 # Check whether --enable-loggui or --disable-loggui was given.
4575 if test "${enable_loggui+set}" = set; then
4576 enableval="$enable_loggui"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4580 else
4581 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4582 fi
4583
4584 else
4585
4586 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4594
4595 fi
4596
4597
4598 eval "$ac_cv_use_loggui"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_LOGGUI" = yes; then
4604 echo "$ac_t""yes" 1>&6
4605 else
4606 echo "$ac_t""no" 1>&6
4607 fi
4608
4609
4610 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4611 echo "configure:4612: checking for --enable-logwin" >&5
4612 no_cache=0
4613 # Check whether --enable-logwin or --disable-logwin was given.
4614 if test "${enable_logwin+set}" = set; then
4615 enableval="$enable_logwin"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4619 else
4620 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4621 fi
4622
4623 else
4624
4625 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4633
4634 fi
4635
4636
4637 eval "$ac_cv_use_logwin"
4638 if test "$no_cache" != 1; then
4639 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4640 fi
4641
4642 if test "$wxUSE_LOGWINDOW" = yes; then
4643 echo "$ac_t""yes" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4646 fi
4647
4648
4649
4650 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4651 echo "configure:4652: checking for --enable-postscript" >&5
4652 no_cache=0
4653 # Check whether --enable-postscript or --disable-postscript was given.
4654 if test "${enable_postscript+set}" = set; then
4655 enableval="$enable_postscript"
4656
4657 if test "$enableval" = yes; then
4658 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4659 else
4660 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4661 fi
4662
4663 else
4664
4665 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4666 if test "x$LINE" != x ; then
4667 eval "DEFAULT_$LINE"
4668 else
4669 no_cache=1
4670 fi
4671
4672 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4673
4674 fi
4675
4676
4677 eval "$ac_cv_use_postscript"
4678 if test "$no_cache" != 1; then
4679 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4680 fi
4681
4682 if test "$wxUSE_POSTSCRIPT" = yes; then
4683 echo "$ac_t""yes" 1>&6
4684 else
4685 echo "$ac_t""no" 1>&6
4686 fi
4687
4688
4689
4690
4691
4692 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4693 echo "configure:4694: checking for --enable-prologio" >&5
4694 no_cache=0
4695 # Check whether --enable-prologio or --disable-prologio was given.
4696 if test "${enable_prologio+set}" = set; then
4697 enableval="$enable_prologio"
4698
4699 if test "$enableval" = yes; then
4700 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4701 else
4702 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4703 fi
4704
4705 else
4706
4707 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4715
4716 fi
4717
4718
4719 eval "$ac_cv_use_prologio"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_PROLOGIO" = yes; then
4725 echo "$ac_t""yes" 1>&6
4726 else
4727 echo "$ac_t""no" 1>&6
4728 fi
4729
4730
4731 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4732 echo "configure:4733: checking for --enable-resources" >&5
4733 no_cache=0
4734 # Check whether --enable-resources or --disable-resources was given.
4735 if test "${enable_resources+set}" = set; then
4736 enableval="$enable_resources"
4737
4738 if test "$enableval" = yes; then
4739 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4740 else
4741 ac_cv_use_resources='wxUSE_RESOURCES=no'
4742 fi
4743
4744 else
4745
4746 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
4753 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4754
4755 fi
4756
4757
4758 eval "$ac_cv_use_resources"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_RESOURCES" = yes; then
4764 echo "$ac_t""yes" 1>&6
4765 else
4766 echo "$ac_t""no" 1>&6
4767 fi
4768
4769
4770
4771 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4772 echo "configure:4773: checking for --enable-xresources" >&5
4773 no_cache=0
4774 # Check whether --enable-xresources or --disable-xresources was given.
4775 if test "${enable_xresources+set}" = set; then
4776 enableval="$enable_xresources"
4777
4778 if test "$enableval" = yes; then
4779 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4780 else
4781 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4782 fi
4783
4784 else
4785
4786 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4787 if test "x$LINE" != x ; then
4788 eval "DEFAULT_$LINE"
4789 else
4790 no_cache=1
4791 fi
4792
4793 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4794
4795 fi
4796
4797
4798 eval "$ac_cv_use_xresources"
4799 if test "$no_cache" != 1; then
4800 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4801 fi
4802
4803 if test "$wxUSE_X_RESOURCES" = yes; then
4804 echo "$ac_t""yes" 1>&6
4805 else
4806 echo "$ac_t""no" 1>&6
4807 fi
4808
4809
4810
4811
4812 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4813 echo "configure:4814: checking for --enable-clipboard" >&5
4814 no_cache=0
4815 # Check whether --enable-clipboard or --disable-clipboard was given.
4816 if test "${enable_clipboard+set}" = set; then
4817 enableval="$enable_clipboard"
4818
4819 if test "$enableval" = yes; then
4820 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4821 else
4822 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4823 fi
4824
4825 else
4826
4827 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4828 if test "x$LINE" != x ; then
4829 eval "DEFAULT_$LINE"
4830 else
4831 no_cache=1
4832 fi
4833
4834 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4835
4836 fi
4837
4838
4839 eval "$ac_cv_use_clipboard"
4840 if test "$no_cache" != 1; then
4841 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4842 fi
4843
4844 if test "$wxUSE_CLIPBOARD" = yes; then
4845 echo "$ac_t""yes" 1>&6
4846 else
4847 echo "$ac_t""no" 1>&6
4848 fi
4849
4850
4851 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4852 echo "configure:4853: checking for --enable-dnd" >&5
4853 no_cache=0
4854 # Check whether --enable-dnd or --disable-dnd was given.
4855 if test "${enable_dnd+set}" = set; then
4856 enableval="$enable_dnd"
4857
4858 if test "$enableval" = yes; then
4859 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4860 else
4861 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4862 fi
4863
4864 else
4865
4866 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4867 if test "x$LINE" != x ; then
4868 eval "DEFAULT_$LINE"
4869 else
4870 no_cache=1
4871 fi
4872
4873 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4874
4875 fi
4876
4877
4878 eval "$ac_cv_use_dnd"
4879 if test "$no_cache" != 1; then
4880 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4881 fi
4882
4883 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4884 echo "$ac_t""yes" 1>&6
4885 else
4886 echo "$ac_t""no" 1>&6
4887 fi
4888
4889
4890 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4891 echo "configure:4892: checking for --enable-metafile" >&5
4892 no_cache=0
4893 # Check whether --enable-metafile or --disable-metafile was given.
4894 if test "${enable_metafile+set}" = set; then
4895 enableval="$enable_metafile"
4896
4897 if test "$enableval" = yes; then
4898 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4899 else
4900 ac_cv_use_metafile='wxUSE_METAFILE=no'
4901 fi
4902
4903 else
4904
4905 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4906 if test "x$LINE" != x ; then
4907 eval "DEFAULT_$LINE"
4908 else
4909 no_cache=1
4910 fi
4911
4912 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4913
4914 fi
4915
4916
4917 eval "$ac_cv_use_metafile"
4918 if test "$no_cache" != 1; then
4919 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4920 fi
4921
4922 if test "$wxUSE_METAFILE" = yes; then
4923 echo "$ac_t""yes" 1>&6
4924 else
4925 echo "$ac_t""no" 1>&6
4926 fi
4927
4928
4929
4930 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4931 echo "configure:4932: checking for --enable-treelayout" >&5
4932 no_cache=0
4933 # Check whether --enable-treelayout or --disable-treelayout was given.
4934 if test "${enable_treelayout+set}" = set; then
4935 enableval="$enable_treelayout"
4936
4937 if test "$enableval" = yes; then
4938 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4939 else
4940 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4941 fi
4942
4943 else
4944
4945 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4946 if test "x$LINE" != x ; then
4947 eval "DEFAULT_$LINE"
4948 else
4949 no_cache=1
4950 fi
4951
4952 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4953
4954 fi
4955
4956
4957 eval "$ac_cv_use_treelayout"
4958 if test "$no_cache" != 1; then
4959 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
4960 fi
4961
4962 if test "$wxUSE_TREELAYOUT" = yes; then
4963 echo "$ac_t""yes" 1>&6
4964 else
4965 echo "$ac_t""no" 1>&6
4966 fi
4967
4968
4969
4970
4971 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4972 echo "configure:4973: checking for --enable-controls" >&5
4973 no_cache=0
4974 # Check whether --enable-controls or --disable-controls was given.
4975 if test "${enable_controls+set}" = set; then
4976 enableval="$enable_controls"
4977
4978 if test "$enableval" = yes; then
4979 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4980 else
4981 ac_cv_use_controls='wxUSE_CONTROLS=no'
4982 fi
4983
4984 else
4985
4986 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4987 if test "x$LINE" != x ; then
4988 eval "DEFAULT_$LINE"
4989 else
4990 no_cache=1
4991 fi
4992
4993 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4994
4995 fi
4996
4997
4998 eval "$ac_cv_use_controls"
4999 if test "$no_cache" != 1; then
5000 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5001 fi
5002
5003 if test "$wxUSE_CONTROLS" = yes; then
5004 echo "$ac_t""yes" 1>&6
5005 else
5006 echo "$ac_t""no" 1>&6
5007 fi
5008
5009
5010 if test "$wxUSE_CONTROLS" = "yes"; then
5011 DEFAULT_wxUSE_ACCEL=yes
5012 DEFAULT_wxUSE_BMPBUTTON=yes
5013 DEFAULT_wxUSE_BUTTON=yes
5014 DEFAULT_wxUSE_CALCTRL=no
5015 DEFAULT_wxUSE_CARET=yes
5016 DEFAULT_wxUSE_COMBOBOX=yes
5017 DEFAULT_wxUSE_CHECKBOX=yes
5018 DEFAULT_wxUSE_CHECKLISTBOX=yes
5019 DEFAULT_wxUSE_CHOICE=yes
5020 DEFAULT_wxUSE_GAUGE=yes
5021 DEFAULT_wxUSE_GRID=yes
5022 DEFAULT_wxUSE_NEW_GRID=yes
5023 DEFAULT_wxUSE_IMAGLIST=yes
5024 DEFAULT_wxUSE_LISTBOX=yes
5025 DEFAULT_wxUSE_LISTCTRL=yes
5026 DEFAULT_wxUSE_NOTEBOOK=yes
5027 DEFAULT_wxUSE_PROPSHEET=yes
5028 DEFAULT_wxUSE_RADIOBOX=yes
5029 DEFAULT_wxUSE_RADIOBTN=yes
5030 DEFAULT_wxUSE_SASH=yes
5031 DEFAULT_wxUSE_SCROLLBAR=yes
5032 DEFAULT_wxUSE_SLIDER=yes
5033 DEFAULT_wxUSE_SPINBTN=yes
5034 DEFAULT_wxUSE_SPINCTRL=yes
5035 DEFAULT_wxUSE_SPLITTER=yes
5036 DEFAULT_wxUSE_STATBMP=yes
5037 DEFAULT_wxUSE_STATBOX=yes
5038 DEFAULT_wxUSE_STATLINE=yes
5039 DEFAULT_wxUSE_STATUSBAR=yes
5040 DEFAULT_wxUSE_TAB_DIALOG=yes
5041 DEFAULT_wxUSE_TOGGLEBTN=yes
5042 DEFAULT_wxUSE_TOOLBAR=yes
5043 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5044 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5045 DEFAULT_wxUSE_TOOLTIPS=yes
5046 DEFAULT_wxUSE_TREECTRL=yes
5047 DEFAULT_wxUSE_POPUPWIN=yes
5048 elif test "$wxUSE_CONTROLS" = "no"; then
5049 DEFAULT_wxUSE_ACCEL=no
5050 DEFAULT_wxUSE_BMPBUTTON=no
5051 DEFAULT_wxUSE_BUTTON=no
5052 DEFAULT_wxUSE_CALCTRL=no
5053 DEFAULT_wxUSE_CARET=no
5054 DEFAULT_wxUSE_COMBOBOX=no
5055 DEFAULT_wxUSE_CHECKBOX=no
5056 DEFAULT_wxUSE_CHECKLISTBOX=no
5057 DEFAULT_wxUSE_CHOICE=no
5058 DEFAULT_wxUSE_GAUGE=no
5059 DEFAULT_wxUSE_GRID=no
5060 DEFAULT_wxUSE_NEW_GRID=no
5061 DEFAULT_wxUSE_IMAGLIST=no
5062 DEFAULT_wxUSE_LISTBOX=no
5063 DEFAULT_wxUSE_LISTCTRL=no
5064 DEFAULT_wxUSE_NOTEBOOK=no
5065 DEFAULT_wxUSE_PROPSHEET=no
5066 DEFAULT_wxUSE_RADIOBOX=no
5067 DEFAULT_wxUSE_RADIOBTN=no
5068 DEFAULT_wxUSE_SASH=no
5069 DEFAULT_wxUSE_SCROLLBAR=no
5070 DEFAULT_wxUSE_SLIDER=no
5071 DEFAULT_wxUSE_SPINBTN=no
5072 DEFAULT_wxUSE_SPINCTRL=no
5073 DEFAULT_wxUSE_SPLITTER=no
5074 DEFAULT_wxUSE_STATBMP=no
5075 DEFAULT_wxUSE_STATBOX=no
5076 DEFAULT_wxUSE_STATLINE=no
5077 DEFAULT_wxUSE_STATUSBAR=no
5078 DEFAULT_wxUSE_TAB_DIALOG=no
5079 DEFAULT_wxUSE_TOGGLEBTN=no
5080 DEFAULT_wxUSE_TOOLBAR=no
5081 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5082 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5083 DEFAULT_wxUSE_TOOLTIPS=no
5084 DEFAULT_wxUSE_TREECTRL=no
5085 DEFAULT_wxUSE_POPUPWIN=no
5086 fi
5087
5088
5089 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5090 echo "configure:5091: checking for --enable-accel" >&5
5091 no_cache=0
5092 # Check whether --enable-accel or --disable-accel was given.
5093 if test "${enable_accel+set}" = set; then
5094 enableval="$enable_accel"
5095
5096 if test "$enableval" = yes; then
5097 ac_cv_use_accel='wxUSE_ACCEL=yes'
5098 else
5099 ac_cv_use_accel='wxUSE_ACCEL=no'
5100 fi
5101
5102 else
5103
5104 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5112
5113 fi
5114
5115
5116 eval "$ac_cv_use_accel"
5117 if test "$no_cache" != 1; then
5118 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5119 fi
5120
5121 if test "$wxUSE_ACCEL" = yes; then
5122 echo "$ac_t""yes" 1>&6
5123 else
5124 echo "$ac_t""no" 1>&6
5125 fi
5126
5127
5128 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5129 echo "configure:5130: checking for --enable-button" >&5
5130 no_cache=0
5131 # Check whether --enable-button or --disable-button was given.
5132 if test "${enable_button+set}" = set; then
5133 enableval="$enable_button"
5134
5135 if test "$enableval" = yes; then
5136 ac_cv_use_button='wxUSE_BUTTON=yes'
5137 else
5138 ac_cv_use_button='wxUSE_BUTTON=no'
5139 fi
5140
5141 else
5142
5143 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5144 if test "x$LINE" != x ; then
5145 eval "DEFAULT_$LINE"
5146 else
5147 no_cache=1
5148 fi
5149
5150 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5151
5152 fi
5153
5154
5155 eval "$ac_cv_use_button"
5156 if test "$no_cache" != 1; then
5157 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5158 fi
5159
5160 if test "$wxUSE_BUTTON" = yes; then
5161 echo "$ac_t""yes" 1>&6
5162 else
5163 echo "$ac_t""no" 1>&6
5164 fi
5165
5166
5167 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5168 echo "configure:5169: checking for --enable-bmpbutton" >&5
5169 no_cache=0
5170 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5171 if test "${enable_bmpbutton+set}" = set; then
5172 enableval="$enable_bmpbutton"
5173
5174 if test "$enableval" = yes; then
5175 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5176 else
5177 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5178 fi
5179
5180 else
5181
5182 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5183 if test "x$LINE" != x ; then
5184 eval "DEFAULT_$LINE"
5185 else
5186 no_cache=1
5187 fi
5188
5189 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5190
5191 fi
5192
5193
5194 eval "$ac_cv_use_bmpbutton"
5195 if test "$no_cache" != 1; then
5196 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5197 fi
5198
5199 if test "$wxUSE_BMPBUTTON" = yes; then
5200 echo "$ac_t""yes" 1>&6
5201 else
5202 echo "$ac_t""no" 1>&6
5203 fi
5204
5205
5206 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5207 echo "configure:5208: checking for --enable-calendar" >&5
5208 no_cache=0
5209 # Check whether --enable-calendar or --disable-calendar was given.
5210 if test "${enable_calendar+set}" = set; then
5211 enableval="$enable_calendar"
5212
5213 if test "$enableval" = yes; then
5214 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5215 else
5216 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5217 fi
5218
5219 else
5220
5221 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5229
5230 fi
5231
5232
5233 eval "$ac_cv_use_calendar"
5234 if test "$no_cache" != 1; then
5235 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5236 fi
5237
5238 if test "$wxUSE_CALCTRL" = yes; then
5239 echo "$ac_t""yes" 1>&6
5240 else
5241 echo "$ac_t""no" 1>&6
5242 fi
5243
5244
5245 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5246 echo "configure:5247: checking for --enable-caret" >&5
5247 no_cache=0
5248 # Check whether --enable-caret or --disable-caret was given.
5249 if test "${enable_caret+set}" = set; then
5250 enableval="$enable_caret"
5251
5252 if test "$enableval" = yes; then
5253 ac_cv_use_caret='wxUSE_CARET=yes'
5254 else
5255 ac_cv_use_caret='wxUSE_CARET=no'
5256 fi
5257
5258 else
5259
5260 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5261 if test "x$LINE" != x ; then
5262 eval "DEFAULT_$LINE"
5263 else
5264 no_cache=1
5265 fi
5266
5267 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5268
5269 fi
5270
5271
5272 eval "$ac_cv_use_caret"
5273 if test "$no_cache" != 1; then
5274 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5275 fi
5276
5277 if test "$wxUSE_CARET" = yes; then
5278 echo "$ac_t""yes" 1>&6
5279 else
5280 echo "$ac_t""no" 1>&6
5281 fi
5282
5283
5284 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5285 echo "configure:5286: checking for --enable-checkbox" >&5
5286 no_cache=0
5287 # Check whether --enable-checkbox or --disable-checkbox was given.
5288 if test "${enable_checkbox+set}" = set; then
5289 enableval="$enable_checkbox"
5290
5291 if test "$enableval" = yes; then
5292 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5293 else
5294 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5295 fi
5296
5297 else
5298
5299 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5300 if test "x$LINE" != x ; then
5301 eval "DEFAULT_$LINE"
5302 else
5303 no_cache=1
5304 fi
5305
5306 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5307
5308 fi
5309
5310
5311 eval "$ac_cv_use_checkbox"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_CHECKBOX" = yes; then
5317 echo "$ac_t""yes" 1>&6
5318 else
5319 echo "$ac_t""no" 1>&6
5320 fi
5321
5322
5323 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5324 echo "configure:5325: checking for --enable-checklst" >&5
5325 no_cache=0
5326 # Check whether --enable-checklst or --disable-checklst was given.
5327 if test "${enable_checklst+set}" = set; then
5328 enableval="$enable_checklst"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5332 else
5333 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5334 fi
5335
5336 else
5337
5338 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5346
5347 fi
5348
5349
5350 eval "$ac_cv_use_checklst"
5351 if test "$no_cache" != 1; then
5352 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5353 fi
5354
5355 if test "$wxUSE_CHECKLST" = yes; then
5356 echo "$ac_t""yes" 1>&6
5357 else
5358 echo "$ac_t""no" 1>&6
5359 fi
5360
5361
5362 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5363 echo "configure:5364: checking for --enable-choice" >&5
5364 no_cache=0
5365 # Check whether --enable-choice or --disable-choice was given.
5366 if test "${enable_choice+set}" = set; then
5367 enableval="$enable_choice"
5368
5369 if test "$enableval" = yes; then
5370 ac_cv_use_choice='wxUSE_CHOICE=yes'
5371 else
5372 ac_cv_use_choice='wxUSE_CHOICE=no'
5373 fi
5374
5375 else
5376
5377 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5378 if test "x$LINE" != x ; then
5379 eval "DEFAULT_$LINE"
5380 else
5381 no_cache=1
5382 fi
5383
5384 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5385
5386 fi
5387
5388
5389 eval "$ac_cv_use_choice"
5390 if test "$no_cache" != 1; then
5391 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5392 fi
5393
5394 if test "$wxUSE_CHOICE" = yes; then
5395 echo "$ac_t""yes" 1>&6
5396 else
5397 echo "$ac_t""no" 1>&6
5398 fi
5399
5400
5401 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5402 echo "configure:5403: checking for --enable-combobox" >&5
5403 no_cache=0
5404 # Check whether --enable-combobox or --disable-combobox was given.
5405 if test "${enable_combobox+set}" = set; then
5406 enableval="$enable_combobox"
5407
5408 if test "$enableval" = yes; then
5409 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5410 else
5411 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5412 fi
5413
5414 else
5415
5416 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5424
5425 fi
5426
5427
5428 eval "$ac_cv_use_combobox"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_COMBOBOX" = yes; then
5434 echo "$ac_t""yes" 1>&6
5435 else
5436 echo "$ac_t""no" 1>&6
5437 fi
5438
5439
5440 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5441 echo "configure:5442: checking for --enable-gauge" >&5
5442 no_cache=0
5443 # Check whether --enable-gauge or --disable-gauge was given.
5444 if test "${enable_gauge+set}" = set; then
5445 enableval="$enable_gauge"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5449 else
5450 ac_cv_use_gauge='wxUSE_GAUGE=no'
5451 fi
5452
5453 else
5454
5455 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5463
5464 fi
5465
5466
5467 eval "$ac_cv_use_gauge"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_GAUGE" = yes; then
5473 echo "$ac_t""yes" 1>&6
5474 else
5475 echo "$ac_t""no" 1>&6
5476 fi
5477
5478
5479 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5480 echo "configure:5481: checking for --enable-grid" >&5
5481 no_cache=0
5482 # Check whether --enable-grid or --disable-grid was given.
5483 if test "${enable_grid+set}" = set; then
5484 enableval="$enable_grid"
5485
5486 if test "$enableval" = yes; then
5487 ac_cv_use_grid='wxUSE_GRID=yes'
5488 else
5489 ac_cv_use_grid='wxUSE_GRID=no'
5490 fi
5491
5492 else
5493
5494 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5502
5503 fi
5504
5505
5506 eval "$ac_cv_use_grid"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_GRID" = yes; then
5512 echo "$ac_t""yes" 1>&6
5513 else
5514 echo "$ac_t""no" 1>&6
5515 fi
5516
5517
5518 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5519 echo "configure:5520: checking for --enable-newgrid" >&5
5520 no_cache=0
5521 # Check whether --enable-newgrid or --disable-newgrid was given.
5522 if test "${enable_newgrid+set}" = set; then
5523 enableval="$enable_newgrid"
5524
5525 if test "$enableval" = yes; then
5526 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5527 else
5528 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5529 fi
5530
5531 else
5532
5533 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5534 if test "x$LINE" != x ; then
5535 eval "DEFAULT_$LINE"
5536 else
5537 no_cache=1
5538 fi
5539
5540 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5541
5542 fi
5543
5544
5545 eval "$ac_cv_use_newgrid"
5546 if test "$no_cache" != 1; then
5547 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5548 fi
5549
5550 if test "$wxUSE_NEW_GRID" = yes; then
5551 echo "$ac_t""yes" 1>&6
5552 else
5553 echo "$ac_t""no" 1>&6
5554 fi
5555
5556
5557 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5558 echo "configure:5559: checking for --enable-imaglist" >&5
5559 no_cache=0
5560 # Check whether --enable-imaglist or --disable-imaglist was given.
5561 if test "${enable_imaglist+set}" = set; then
5562 enableval="$enable_imaglist"
5563
5564 if test "$enableval" = yes; then
5565 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5566 else
5567 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5568 fi
5569
5570 else
5571
5572 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
5579 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5580
5581 fi
5582
5583
5584 eval "$ac_cv_use_imaglist"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_IMAGLIST" = yes; then
5590 echo "$ac_t""yes" 1>&6
5591 else
5592 echo "$ac_t""no" 1>&6
5593 fi
5594
5595
5596 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5597 echo "configure:5598: checking for --enable-listbox" >&5
5598 no_cache=0
5599 # Check whether --enable-listbox or --disable-listbox was given.
5600 if test "${enable_listbox+set}" = set; then
5601 enableval="$enable_listbox"
5602
5603 if test "$enableval" = yes; then
5604 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5605 else
5606 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5607 fi
5608
5609 else
5610
5611 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5612 if test "x$LINE" != x ; then
5613 eval "DEFAULT_$LINE"
5614 else
5615 no_cache=1
5616 fi
5617
5618 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5619
5620 fi
5621
5622
5623 eval "$ac_cv_use_listbox"
5624 if test "$no_cache" != 1; then
5625 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5626 fi
5627
5628 if test "$wxUSE_LISTBOX" = yes; then
5629 echo "$ac_t""yes" 1>&6
5630 else
5631 echo "$ac_t""no" 1>&6
5632 fi
5633
5634
5635 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5636 echo "configure:5637: checking for --enable-listctrl" >&5
5637 no_cache=0
5638 # Check whether --enable-listctrl or --disable-listctrl was given.
5639 if test "${enable_listctrl+set}" = set; then
5640 enableval="$enable_listctrl"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5644 else
5645 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5646 fi
5647
5648 else
5649
5650 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5658
5659 fi
5660
5661
5662 eval "$ac_cv_use_listctrl"
5663 if test "$no_cache" != 1; then
5664 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5665 fi
5666
5667 if test "$wxUSE_LISTCTRL" = yes; then
5668 echo "$ac_t""yes" 1>&6
5669 else
5670 echo "$ac_t""no" 1>&6
5671 fi
5672
5673
5674 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5675 echo "configure:5676: checking for --enable-notebook" >&5
5676 no_cache=0
5677 # Check whether --enable-notebook or --disable-notebook was given.
5678 if test "${enable_notebook+set}" = set; then
5679 enableval="$enable_notebook"
5680
5681 if test "$enableval" = yes; then
5682 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5683 else
5684 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5685 fi
5686
5687 else
5688
5689 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5690 if test "x$LINE" != x ; then
5691 eval "DEFAULT_$LINE"
5692 else
5693 no_cache=1
5694 fi
5695
5696 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5697
5698 fi
5699
5700
5701 eval "$ac_cv_use_notebook"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_NOTEBOOK" = yes; then
5707 echo "$ac_t""yes" 1>&6
5708 else
5709 echo "$ac_t""no" 1>&6
5710 fi
5711
5712
5713 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5714 echo "configure:5715: checking for --enable-propsheet" >&5
5715 no_cache=0
5716 # Check whether --enable-propsheet or --disable-propsheet was given.
5717 if test "${enable_propsheet+set}" = set; then
5718 enableval="$enable_propsheet"
5719
5720 if test "$enableval" = yes; then
5721 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5722 else
5723 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5724 fi
5725
5726 else
5727
5728 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5729 if test "x$LINE" != x ; then
5730 eval "DEFAULT_$LINE"
5731 else
5732 no_cache=1
5733 fi
5734
5735 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5736
5737 fi
5738
5739
5740 eval "$ac_cv_use_propsheet"
5741 if test "$no_cache" != 1; then
5742 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5743 fi
5744
5745 if test "$wxUSE_PROPSHEET" = yes; then
5746 echo "$ac_t""yes" 1>&6
5747 else
5748 echo "$ac_t""no" 1>&6
5749 fi
5750
5751
5752 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5753 echo "configure:5754: checking for --enable-radiobox" >&5
5754 no_cache=0
5755 # Check whether --enable-radiobox or --disable-radiobox was given.
5756 if test "${enable_radiobox+set}" = set; then
5757 enableval="$enable_radiobox"
5758
5759 if test "$enableval" = yes; then
5760 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5761 else
5762 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5763 fi
5764
5765 else
5766
5767 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5768 if test "x$LINE" != x ; then
5769 eval "DEFAULT_$LINE"
5770 else
5771 no_cache=1
5772 fi
5773
5774 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5775
5776 fi
5777
5778
5779 eval "$ac_cv_use_radiobox"
5780 if test "$no_cache" != 1; then
5781 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5782 fi
5783
5784 if test "$wxUSE_RADIOBOX" = yes; then
5785 echo "$ac_t""yes" 1>&6
5786 else
5787 echo "$ac_t""no" 1>&6
5788 fi
5789
5790
5791 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5792 echo "configure:5793: checking for --enable-radiobtn" >&5
5793 no_cache=0
5794 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5795 if test "${enable_radiobtn+set}" = set; then
5796 enableval="$enable_radiobtn"
5797
5798 if test "$enableval" = yes; then
5799 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5800 else
5801 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5802 fi
5803
5804 else
5805
5806 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5807 if test "x$LINE" != x ; then
5808 eval "DEFAULT_$LINE"
5809 else
5810 no_cache=1
5811 fi
5812
5813 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5814
5815 fi
5816
5817
5818 eval "$ac_cv_use_radiobtn"
5819 if test "$no_cache" != 1; then
5820 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5821 fi
5822
5823 if test "$wxUSE_RADIOBTN" = yes; then
5824 echo "$ac_t""yes" 1>&6
5825 else
5826 echo "$ac_t""no" 1>&6
5827 fi
5828
5829
5830 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5831 echo "configure:5832: checking for --enable-sash" >&5
5832 no_cache=0
5833 # Check whether --enable-sash or --disable-sash was given.
5834 if test "${enable_sash+set}" = set; then
5835 enableval="$enable_sash"
5836
5837 if test "$enableval" = yes; then
5838 ac_cv_use_sash='wxUSE_SASH=yes'
5839 else
5840 ac_cv_use_sash='wxUSE_SASH=no'
5841 fi
5842
5843 else
5844
5845 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5846 if test "x$LINE" != x ; then
5847 eval "DEFAULT_$LINE"
5848 else
5849 no_cache=1
5850 fi
5851
5852 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5853
5854 fi
5855
5856
5857 eval "$ac_cv_use_sash"
5858 if test "$no_cache" != 1; then
5859 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5860 fi
5861
5862 if test "$wxUSE_SASH" = yes; then
5863 echo "$ac_t""yes" 1>&6
5864 else
5865 echo "$ac_t""no" 1>&6
5866 fi
5867
5868
5869 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5870 echo "configure:5871: checking for --enable-scrollbar" >&5
5871 no_cache=0
5872 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5873 if test "${enable_scrollbar+set}" = set; then
5874 enableval="$enable_scrollbar"
5875
5876 if test "$enableval" = yes; then
5877 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5878 else
5879 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5880 fi
5881
5882 else
5883
5884 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5885 if test "x$LINE" != x ; then
5886 eval "DEFAULT_$LINE"
5887 else
5888 no_cache=1
5889 fi
5890
5891 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5892
5893 fi
5894
5895
5896 eval "$ac_cv_use_scrollbar"
5897 if test "$no_cache" != 1; then
5898 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5899 fi
5900
5901 if test "$wxUSE_SCROLLBAR" = yes; then
5902 echo "$ac_t""yes" 1>&6
5903 else
5904 echo "$ac_t""no" 1>&6
5905 fi
5906
5907
5908 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5909 echo "configure:5910: checking for --enable-slider" >&5
5910 no_cache=0
5911 # Check whether --enable-slider or --disable-slider was given.
5912 if test "${enable_slider+set}" = set; then
5913 enableval="$enable_slider"
5914
5915 if test "$enableval" = yes; then
5916 ac_cv_use_slider='wxUSE_SLIDER=yes'
5917 else
5918 ac_cv_use_slider='wxUSE_SLIDER=no'
5919 fi
5920
5921 else
5922
5923 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5931
5932 fi
5933
5934
5935 eval "$ac_cv_use_slider"
5936 if test "$no_cache" != 1; then
5937 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5938 fi
5939
5940 if test "$wxUSE_SLIDER" = yes; then
5941 echo "$ac_t""yes" 1>&6
5942 else
5943 echo "$ac_t""no" 1>&6
5944 fi
5945
5946
5947 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5948 echo "configure:5949: checking for --enable-spinbtn" >&5
5949 no_cache=0
5950 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5951 if test "${enable_spinbtn+set}" = set; then
5952 enableval="$enable_spinbtn"
5953
5954 if test "$enableval" = yes; then
5955 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5956 else
5957 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5958 fi
5959
5960 else
5961
5962 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5963 if test "x$LINE" != x ; then
5964 eval "DEFAULT_$LINE"
5965 else
5966 no_cache=1
5967 fi
5968
5969 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5970
5971 fi
5972
5973
5974 eval "$ac_cv_use_spinbtn"
5975 if test "$no_cache" != 1; then
5976 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5977 fi
5978
5979 if test "$wxUSE_SPINBTN" = yes; then
5980 echo "$ac_t""yes" 1>&6
5981 else
5982 echo "$ac_t""no" 1>&6
5983 fi
5984
5985
5986 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5987 echo "configure:5988: checking for --enable-spinctrl" >&5
5988 no_cache=0
5989 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5990 if test "${enable_spinctrl+set}" = set; then
5991 enableval="$enable_spinctrl"
5992
5993 if test "$enableval" = yes; then
5994 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5995 else
5996 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5997 fi
5998
5999 else
6000
6001 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6002 if test "x$LINE" != x ; then
6003 eval "DEFAULT_$LINE"
6004 else
6005 no_cache=1
6006 fi
6007
6008 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6009
6010 fi
6011
6012
6013 eval "$ac_cv_use_spinctrl"
6014 if test "$no_cache" != 1; then
6015 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6016 fi
6017
6018 if test "$wxUSE_SPINCTRL" = yes; then
6019 echo "$ac_t""yes" 1>&6
6020 else
6021 echo "$ac_t""no" 1>&6
6022 fi
6023
6024
6025 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6026 echo "configure:6027: checking for --enable-splitter" >&5
6027 no_cache=0
6028 # Check whether --enable-splitter or --disable-splitter was given.
6029 if test "${enable_splitter+set}" = set; then
6030 enableval="$enable_splitter"
6031
6032 if test "$enableval" = yes; then
6033 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6034 else
6035 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6036 fi
6037
6038 else
6039
6040 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6041 if test "x$LINE" != x ; then
6042 eval "DEFAULT_$LINE"
6043 else
6044 no_cache=1
6045 fi
6046
6047 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6048
6049 fi
6050
6051
6052 eval "$ac_cv_use_splitter"
6053 if test "$no_cache" != 1; then
6054 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6055 fi
6056
6057 if test "$wxUSE_SPLITTER" = yes; then
6058 echo "$ac_t""yes" 1>&6
6059 else
6060 echo "$ac_t""no" 1>&6
6061 fi
6062
6063
6064 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6065 echo "configure:6066: checking for --enable-statbmp" >&5
6066 no_cache=0
6067 # Check whether --enable-statbmp or --disable-statbmp was given.
6068 if test "${enable_statbmp+set}" = set; then
6069 enableval="$enable_statbmp"
6070
6071 if test "$enableval" = yes; then
6072 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6073 else
6074 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6075 fi
6076
6077 else
6078
6079 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6080 if test "x$LINE" != x ; then
6081 eval "DEFAULT_$LINE"
6082 else
6083 no_cache=1
6084 fi
6085
6086 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6087
6088 fi
6089
6090
6091 eval "$ac_cv_use_statbmp"
6092 if test "$no_cache" != 1; then
6093 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6094 fi
6095
6096 if test "$wxUSE_STATBMP" = yes; then
6097 echo "$ac_t""yes" 1>&6
6098 else
6099 echo "$ac_t""no" 1>&6
6100 fi
6101
6102
6103 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6104 echo "configure:6105: checking for --enable-statbox" >&5
6105 no_cache=0
6106 # Check whether --enable-statbox or --disable-statbox was given.
6107 if test "${enable_statbox+set}" = set; then
6108 enableval="$enable_statbox"
6109
6110 if test "$enableval" = yes; then
6111 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6112 else
6113 ac_cv_use_statbox='wxUSE_STATBOX=no'
6114 fi
6115
6116 else
6117
6118 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6126
6127 fi
6128
6129
6130 eval "$ac_cv_use_statbox"
6131 if test "$no_cache" != 1; then
6132 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6133 fi
6134
6135 if test "$wxUSE_STATBOX" = yes; then
6136 echo "$ac_t""yes" 1>&6
6137 else
6138 echo "$ac_t""no" 1>&6
6139 fi
6140
6141
6142 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6143 echo "configure:6144: checking for --enable-statline" >&5
6144 no_cache=0
6145 # Check whether --enable-statline or --disable-statline was given.
6146 if test "${enable_statline+set}" = set; then
6147 enableval="$enable_statline"
6148
6149 if test "$enableval" = yes; then
6150 ac_cv_use_statline='wxUSE_STATLINE=yes'
6151 else
6152 ac_cv_use_statline='wxUSE_STATLINE=no'
6153 fi
6154
6155 else
6156
6157 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6158 if test "x$LINE" != x ; then
6159 eval "DEFAULT_$LINE"
6160 else
6161 no_cache=1
6162 fi
6163
6164 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6165
6166 fi
6167
6168
6169 eval "$ac_cv_use_statline"
6170 if test "$no_cache" != 1; then
6171 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6172 fi
6173
6174 if test "$wxUSE_STATLINE" = yes; then
6175 echo "$ac_t""yes" 1>&6
6176 else
6177 echo "$ac_t""no" 1>&6
6178 fi
6179
6180
6181 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6182 echo "configure:6183: checking for --enable-stattext" >&5
6183 no_cache=0
6184 # Check whether --enable-stattext or --disable-stattext was given.
6185 if test "${enable_stattext+set}" = set; then
6186 enableval="$enable_stattext"
6187
6188 if test "$enableval" = yes; then
6189 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6190 else
6191 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6192 fi
6193
6194 else
6195
6196 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6197 if test "x$LINE" != x ; then
6198 eval "DEFAULT_$LINE"
6199 else
6200 no_cache=1
6201 fi
6202
6203 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6204
6205 fi
6206
6207
6208 eval "$ac_cv_use_stattext"
6209 if test "$no_cache" != 1; then
6210 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6211 fi
6212
6213 if test "$wxUSE_STATTEXT" = yes; then
6214 echo "$ac_t""yes" 1>&6
6215 else
6216 echo "$ac_t""no" 1>&6
6217 fi
6218
6219
6220 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6221 echo "configure:6222: checking for --enable-statusbar" >&5
6222 no_cache=0
6223 # Check whether --enable-statusbar or --disable-statusbar was given.
6224 if test "${enable_statusbar+set}" = set; then
6225 enableval="$enable_statusbar"
6226
6227 if test "$enableval" = yes; then
6228 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6229 else
6230 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6231 fi
6232
6233 else
6234
6235 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6236 if test "x$LINE" != x ; then
6237 eval "DEFAULT_$LINE"
6238 else
6239 no_cache=1
6240 fi
6241
6242 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6243
6244 fi
6245
6246
6247 eval "$ac_cv_use_statusbar"
6248 if test "$no_cache" != 1; then
6249 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6250 fi
6251
6252 if test "$wxUSE_STATUSBAR" = yes; then
6253 echo "$ac_t""yes" 1>&6
6254 else
6255 echo "$ac_t""no" 1>&6
6256 fi
6257
6258
6259 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6260 echo "configure:6261: checking for --enable-tabdialog" >&5
6261 no_cache=0
6262 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6263 if test "${enable_tabdialog+set}" = set; then
6264 enableval="$enable_tabdialog"
6265
6266 if test "$enableval" = yes; then
6267 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6268 else
6269 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6270 fi
6271
6272 else
6273
6274 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6275 if test "x$LINE" != x ; then
6276 eval "DEFAULT_$LINE"
6277 else
6278 no_cache=1
6279 fi
6280
6281 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6282
6283 fi
6284
6285
6286 eval "$ac_cv_use_tabdialog"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_TABDIALOG" = yes; then
6292 echo "$ac_t""yes" 1>&6
6293 else
6294 echo "$ac_t""no" 1>&6
6295 fi
6296
6297
6298 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6299 echo "configure:6300: checking for --enable-textctrl" >&5
6300 no_cache=0
6301 # Check whether --enable-textctrl or --disable-textctrl was given.
6302 if test "${enable_textctrl+set}" = set; then
6303 enableval="$enable_textctrl"
6304
6305 if test "$enableval" = yes; then
6306 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6307 else
6308 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6309 fi
6310
6311 else
6312
6313 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6314 if test "x$LINE" != x ; then
6315 eval "DEFAULT_$LINE"
6316 else
6317 no_cache=1
6318 fi
6319
6320 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6321
6322 fi
6323
6324
6325 eval "$ac_cv_use_textctrl"
6326 if test "$no_cache" != 1; then
6327 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6328 fi
6329
6330 if test "$wxUSE_TEXTCTRL" = yes; then
6331 echo "$ac_t""yes" 1>&6
6332 else
6333 echo "$ac_t""no" 1>&6
6334 fi
6335
6336
6337 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6338 echo "configure:6339: checking for --enable-togglebtn" >&5
6339 no_cache=0
6340 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6341 if test "${enable_togglebtn+set}" = set; then
6342 enableval="$enable_togglebtn"
6343
6344 if test "$enableval" = yes; then
6345 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6346 else
6347 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6348 fi
6349
6350 else
6351
6352 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6353 if test "x$LINE" != x ; then
6354 eval "DEFAULT_$LINE"
6355 else
6356 no_cache=1
6357 fi
6358
6359 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6360
6361 fi
6362
6363
6364 eval "$ac_cv_use_togglebtn"
6365 if test "$no_cache" != 1; then
6366 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6367 fi
6368
6369 if test "$wxUSE_TOGGLEBTN" = yes; then
6370 echo "$ac_t""yes" 1>&6
6371 else
6372 echo "$ac_t""no" 1>&6
6373 fi
6374
6375
6376 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6377 echo "configure:6378: checking for --enable-toolbar" >&5
6378 no_cache=0
6379 # Check whether --enable-toolbar or --disable-toolbar was given.
6380 if test "${enable_toolbar+set}" = set; then
6381 enableval="$enable_toolbar"
6382
6383 if test "$enableval" = yes; then
6384 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6385 else
6386 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6387 fi
6388
6389 else
6390
6391 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6392 if test "x$LINE" != x ; then
6393 eval "DEFAULT_$LINE"
6394 else
6395 no_cache=1
6396 fi
6397
6398 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6399
6400 fi
6401
6402
6403 eval "$ac_cv_use_toolbar"
6404 if test "$no_cache" != 1; then
6405 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6406 fi
6407
6408 if test "$wxUSE_TOOLBAR" = yes; then
6409 echo "$ac_t""yes" 1>&6
6410 else
6411 echo "$ac_t""no" 1>&6
6412 fi
6413
6414
6415 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6416 echo "configure:6417: checking for --enable-tbarnative" >&5
6417 no_cache=0
6418 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6419 if test "${enable_tbarnative+set}" = set; then
6420 enableval="$enable_tbarnative"
6421
6422 if test "$enableval" = yes; then
6423 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6424 else
6425 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6426 fi
6427
6428 else
6429
6430 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6431 if test "x$LINE" != x ; then
6432 eval "DEFAULT_$LINE"
6433 else
6434 no_cache=1
6435 fi
6436
6437 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6438
6439 fi
6440
6441
6442 eval "$ac_cv_use_tbarnative"
6443 if test "$no_cache" != 1; then
6444 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6445 fi
6446
6447 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6448 echo "$ac_t""yes" 1>&6
6449 else
6450 echo "$ac_t""no" 1>&6
6451 fi
6452
6453
6454 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6455 echo "configure:6456: checking for --enable-tbarsmpl" >&5
6456 no_cache=0
6457 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6458 if test "${enable_tbarsmpl+set}" = set; then
6459 enableval="$enable_tbarsmpl"
6460
6461 if test "$enableval" = yes; then
6462 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6463 else
6464 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6465 fi
6466
6467 else
6468
6469 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6470 if test "x$LINE" != x ; then
6471 eval "DEFAULT_$LINE"
6472 else
6473 no_cache=1
6474 fi
6475
6476 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6477
6478 fi
6479
6480
6481 eval "$ac_cv_use_tbarsmpl"
6482 if test "$no_cache" != 1; then
6483 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6484 fi
6485
6486 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6487 echo "$ac_t""yes" 1>&6
6488 else
6489 echo "$ac_t""no" 1>&6
6490 fi
6491
6492
6493 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6494 echo "configure:6495: checking for --enable-treectrl" >&5
6495 no_cache=0
6496 # Check whether --enable-treectrl or --disable-treectrl was given.
6497 if test "${enable_treectrl+set}" = set; then
6498 enableval="$enable_treectrl"
6499
6500 if test "$enableval" = yes; then
6501 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6502 else
6503 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6504 fi
6505
6506 else
6507
6508 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6509 if test "x$LINE" != x ; then
6510 eval "DEFAULT_$LINE"
6511 else
6512 no_cache=1
6513 fi
6514
6515 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6516
6517 fi
6518
6519
6520 eval "$ac_cv_use_treectrl"
6521 if test "$no_cache" != 1; then
6522 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6523 fi
6524
6525 if test "$wxUSE_TREECTRL" = yes; then
6526 echo "$ac_t""yes" 1>&6
6527 else
6528 echo "$ac_t""no" 1>&6
6529 fi
6530
6531
6532 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6533 echo "configure:6534: checking for --enable-popupwin" >&5
6534 no_cache=0
6535 # Check whether --enable-popupwin or --disable-popupwin was given.
6536 if test "${enable_popupwin+set}" = set; then
6537 enableval="$enable_popupwin"
6538
6539 if test "$enableval" = yes; then
6540 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6541 else
6542 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6543 fi
6544
6545 else
6546
6547 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6548 if test "x$LINE" != x ; then
6549 eval "DEFAULT_$LINE"
6550 else
6551 no_cache=1
6552 fi
6553
6554 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6555
6556 fi
6557
6558
6559 eval "$ac_cv_use_popupwin"
6560 if test "$no_cache" != 1; then
6561 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6562 fi
6563
6564 if test "$wxUSE_POPUPWIN" = yes; then
6565 echo "$ac_t""yes" 1>&6
6566 else
6567 echo "$ac_t""no" 1>&6
6568 fi
6569
6570
6571
6572
6573 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6574 echo "configure:6575: checking for --enable-commondlg" >&5
6575 no_cache=0
6576 # Check whether --enable-commondlg or --disable-commondlg was given.
6577 if test "${enable_commondlg+set}" = set; then
6578 enableval="$enable_commondlg"
6579
6580 if test "$enableval" = yes; then
6581 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6582 else
6583 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6584 fi
6585
6586 else
6587
6588 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6596
6597 fi
6598
6599
6600 eval "$ac_cv_use_commondlg"
6601 if test "$no_cache" != 1; then
6602 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6603 fi
6604
6605 if test "$wxUSE_COMMONDLGS" = yes; then
6606 echo "$ac_t""yes" 1>&6
6607 else
6608 echo "$ac_t""no" 1>&6
6609 fi
6610
6611
6612 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6613 echo "configure:6614: checking for --enable-choicedlg" >&5
6614 no_cache=0
6615 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6616 if test "${enable_choicedlg+set}" = set; then
6617 enableval="$enable_choicedlg"
6618
6619 if test "$enableval" = yes; then
6620 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6621 else
6622 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6623 fi
6624
6625 else
6626
6627 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6628 if test "x$LINE" != x ; then
6629 eval "DEFAULT_$LINE"
6630 else
6631 no_cache=1
6632 fi
6633
6634 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6635
6636 fi
6637
6638
6639 eval "$ac_cv_use_choicedlg"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_CHOICEDLG" = yes; then
6645 echo "$ac_t""yes" 1>&6
6646 else
6647 echo "$ac_t""no" 1>&6
6648 fi
6649
6650
6651 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6652 echo "configure:6653: checking for --enable-coldlg" >&5
6653 no_cache=0
6654 # Check whether --enable-coldlg or --disable-coldlg was given.
6655 if test "${enable_coldlg+set}" = set; then
6656 enableval="$enable_coldlg"
6657
6658 if test "$enableval" = yes; then
6659 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6660 else
6661 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6662 fi
6663
6664 else
6665
6666 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6667 if test "x$LINE" != x ; then
6668 eval "DEFAULT_$LINE"
6669 else
6670 no_cache=1
6671 fi
6672
6673 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6674
6675 fi
6676
6677
6678 eval "$ac_cv_use_coldlg"
6679 if test "$no_cache" != 1; then
6680 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6681 fi
6682
6683 if test "$wxUSE_COLOURDLG" = yes; then
6684 echo "$ac_t""yes" 1>&6
6685 else
6686 echo "$ac_t""no" 1>&6
6687 fi
6688
6689
6690 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6691 echo "configure:6692: checking for --enable-filedlg" >&5
6692 no_cache=0
6693 # Check whether --enable-filedlg or --disable-filedlg was given.
6694 if test "${enable_filedlg+set}" = set; then
6695 enableval="$enable_filedlg"
6696
6697 if test "$enableval" = yes; then
6698 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6699 else
6700 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6701 fi
6702
6703 else
6704
6705 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6706 if test "x$LINE" != x ; then
6707 eval "DEFAULT_$LINE"
6708 else
6709 no_cache=1
6710 fi
6711
6712 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6713
6714 fi
6715
6716
6717 eval "$ac_cv_use_filedlg"
6718 if test "$no_cache" != 1; then
6719 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6720 fi
6721
6722 if test "$wxUSE_FILEDLG" = yes; then
6723 echo "$ac_t""yes" 1>&6
6724 else
6725 echo "$ac_t""no" 1>&6
6726 fi
6727
6728
6729 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6730 echo "configure:6731: checking for --enable-filedlg" >&5
6731 no_cache=0
6732 # Check whether --enable-filedlg or --disable-filedlg was given.
6733 if test "${enable_filedlg+set}" = set; then
6734 enableval="$enable_filedlg"
6735
6736 if test "$enableval" = yes; then
6737 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6738 else
6739 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6740 fi
6741
6742 else
6743
6744 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6745 if test "x$LINE" != x ; then
6746 eval "DEFAULT_$LINE"
6747 else
6748 no_cache=1
6749 fi
6750
6751 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6752
6753 fi
6754
6755
6756 eval "$ac_cv_use_filedlg"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_FINDREPLDLG" = yes; then
6762 echo "$ac_t""yes" 1>&6
6763 else
6764 echo "$ac_t""no" 1>&6
6765 fi
6766
6767
6768 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6769 echo "configure:6770: checking for --enable-fontdlg" >&5
6770 no_cache=0
6771 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6772 if test "${enable_fontdlg+set}" = set; then
6773 enableval="$enable_fontdlg"
6774
6775 if test "$enableval" = yes; then
6776 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6777 else
6778 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6779 fi
6780
6781 else
6782
6783 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6784 if test "x$LINE" != x ; then
6785 eval "DEFAULT_$LINE"
6786 else
6787 no_cache=1
6788 fi
6789
6790 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6791
6792 fi
6793
6794
6795 eval "$ac_cv_use_fontdlg"
6796 if test "$no_cache" != 1; then
6797 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6798 fi
6799
6800 if test "$wxUSE_FONTDLG" = yes; then
6801 echo "$ac_t""yes" 1>&6
6802 else
6803 echo "$ac_t""no" 1>&6
6804 fi
6805
6806
6807 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6808 echo "configure:6809: checking for --enable-dirdlg" >&5
6809 no_cache=0
6810 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6811 if test "${enable_dirdlg+set}" = set; then
6812 enableval="$enable_dirdlg"
6813
6814 if test "$enableval" = yes; then
6815 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6816 else
6817 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6818 fi
6819
6820 else
6821
6822 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6823 if test "x$LINE" != x ; then
6824 eval "DEFAULT_$LINE"
6825 else
6826 no_cache=1
6827 fi
6828
6829 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6830
6831 fi
6832
6833
6834 eval "$ac_cv_use_dirdlg"
6835 if test "$no_cache" != 1; then
6836 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6837 fi
6838
6839 if test "$wxUSE_DIRDLG" = yes; then
6840 echo "$ac_t""yes" 1>&6
6841 else
6842 echo "$ac_t""no" 1>&6
6843 fi
6844
6845
6846 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6847 echo "configure:6848: checking for --enable-msgdlg" >&5
6848 no_cache=0
6849 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6850 if test "${enable_msgdlg+set}" = set; then
6851 enableval="$enable_msgdlg"
6852
6853 if test "$enableval" = yes; then
6854 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6855 else
6856 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6857 fi
6858
6859 else
6860
6861 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6862 if test "x$LINE" != x ; then
6863 eval "DEFAULT_$LINE"
6864 else
6865 no_cache=1
6866 fi
6867
6868 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6869
6870 fi
6871
6872
6873 eval "$ac_cv_use_msgdlg"
6874 if test "$no_cache" != 1; then
6875 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6876 fi
6877
6878 if test "$wxUSE_MSGDLG" = yes; then
6879 echo "$ac_t""yes" 1>&6
6880 else
6881 echo "$ac_t""no" 1>&6
6882 fi
6883
6884
6885 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6886 echo "configure:6887: checking for --enable-numberdlg" >&5
6887 no_cache=0
6888 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6889 if test "${enable_numberdlg+set}" = set; then
6890 enableval="$enable_numberdlg"
6891
6892 if test "$enableval" = yes; then
6893 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6894 else
6895 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6896 fi
6897
6898 else
6899
6900 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6901 if test "x$LINE" != x ; then
6902 eval "DEFAULT_$LINE"
6903 else
6904 no_cache=1
6905 fi
6906
6907 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6908
6909 fi
6910
6911
6912 eval "$ac_cv_use_numberdlg"
6913 if test "$no_cache" != 1; then
6914 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6915 fi
6916
6917 if test "$wxUSE_NUMBERDLG" = yes; then
6918 echo "$ac_t""yes" 1>&6
6919 else
6920 echo "$ac_t""no" 1>&6
6921 fi
6922
6923
6924 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
6925 echo "configure:6926: checking for --enable-splash" >&5
6926 no_cache=0
6927 # Check whether --enable-splash or --disable-splash was given.
6928 if test "${enable_splash+set}" = set; then
6929 enableval="$enable_splash"
6930
6931 if test "$enableval" = yes; then
6932 ac_cv_use_splash='wxUSE_SPLASH=yes'
6933 else
6934 ac_cv_use_splash='wxUSE_SPLASH=no'
6935 fi
6936
6937 else
6938
6939 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6940 if test "x$LINE" != x ; then
6941 eval "DEFAULT_$LINE"
6942 else
6943 no_cache=1
6944 fi
6945
6946 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6947
6948 fi
6949
6950
6951 eval "$ac_cv_use_splash"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_SPLASH" = yes; then
6957 echo "$ac_t""yes" 1>&6
6958 else
6959 echo "$ac_t""no" 1>&6
6960 fi
6961
6962
6963 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6964 echo "configure:6965: checking for --enable-textdlg" >&5
6965 no_cache=0
6966 # Check whether --enable-textdlg or --disable-textdlg was given.
6967 if test "${enable_textdlg+set}" = set; then
6968 enableval="$enable_textdlg"
6969
6970 if test "$enableval" = yes; then
6971 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6972 else
6973 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6974 fi
6975
6976 else
6977
6978 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6979 if test "x$LINE" != x ; then
6980 eval "DEFAULT_$LINE"
6981 else
6982 no_cache=1
6983 fi
6984
6985 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6986
6987 fi
6988
6989
6990 eval "$ac_cv_use_textdlg"
6991 if test "$no_cache" != 1; then
6992 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6993 fi
6994
6995 if test "$wxUSE_TEXTDLG" = yes; then
6996 echo "$ac_t""yes" 1>&6
6997 else
6998 echo "$ac_t""no" 1>&6
6999 fi
7000
7001
7002 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7003 echo "configure:7004: checking for --enable-tipdlg" >&5
7004 no_cache=0
7005 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7006 if test "${enable_tipdlg+set}" = set; then
7007 enableval="$enable_tipdlg"
7008
7009 if test "$enableval" = yes; then
7010 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7011 else
7012 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7013 fi
7014
7015 else
7016
7017 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7018 if test "x$LINE" != x ; then
7019 eval "DEFAULT_$LINE"
7020 else
7021 no_cache=1
7022 fi
7023
7024 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7025
7026 fi
7027
7028
7029 eval "$ac_cv_use_tipdlg"
7030 if test "$no_cache" != 1; then
7031 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7032 fi
7033
7034 if test "$wxUSE_STARTUP_TIPS" = yes; then
7035 echo "$ac_t""yes" 1>&6
7036 else
7037 echo "$ac_t""no" 1>&6
7038 fi
7039
7040
7041 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7042 echo "configure:7043: checking for --enable-progressdlg" >&5
7043 no_cache=0
7044 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7045 if test "${enable_progressdlg+set}" = set; then
7046 enableval="$enable_progressdlg"
7047
7048 if test "$enableval" = yes; then
7049 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7050 else
7051 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7052 fi
7053
7054 else
7055
7056 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7057 if test "x$LINE" != x ; then
7058 eval "DEFAULT_$LINE"
7059 else
7060 no_cache=1
7061 fi
7062
7063 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7064
7065 fi
7066
7067
7068 eval "$ac_cv_use_progressdlg"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_PROGRESSDLG" = yes; then
7074 echo "$ac_t""yes" 1>&6
7075 else
7076 echo "$ac_t""no" 1>&6
7077 fi
7078
7079
7080 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7081 echo "configure:7082: checking for --enable-wizarddlg" >&5
7082 no_cache=0
7083 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7084 if test "${enable_wizarddlg+set}" = set; then
7085 enableval="$enable_wizarddlg"
7086
7087 if test "$enableval" = yes; then
7088 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7089 else
7090 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7091 fi
7092
7093 else
7094
7095 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7096 if test "x$LINE" != x ; then
7097 eval "DEFAULT_$LINE"
7098 else
7099 no_cache=1
7100 fi
7101
7102 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7103
7104 fi
7105
7106
7107 eval "$ac_cv_use_wizarddlg"
7108 if test "$no_cache" != 1; then
7109 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7110 fi
7111
7112 if test "$wxUSE_WIZARDDLG" = yes; then
7113 echo "$ac_t""yes" 1>&6
7114 else
7115 echo "$ac_t""no" 1>&6
7116 fi
7117
7118
7119
7120
7121 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7122 echo "configure:7123: checking for --enable-menus" >&5
7123 no_cache=0
7124 # Check whether --enable-menus or --disable-menus was given.
7125 if test "${enable_menus+set}" = set; then
7126 enableval="$enable_menus"
7127
7128 if test "$enableval" = yes; then
7129 ac_cv_use_menus='wxUSE_MENUS=yes'
7130 else
7131 ac_cv_use_menus='wxUSE_MENUS=no'
7132 fi
7133
7134 else
7135
7136 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7137 if test "x$LINE" != x ; then
7138 eval "DEFAULT_$LINE"
7139 else
7140 no_cache=1
7141 fi
7142
7143 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7144
7145 fi
7146
7147
7148 eval "$ac_cv_use_menus"
7149 if test "$no_cache" != 1; then
7150 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7151 fi
7152
7153 if test "$wxUSE_MENUS" = yes; then
7154 echo "$ac_t""yes" 1>&6
7155 else
7156 echo "$ac_t""no" 1>&6
7157 fi
7158
7159
7160 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7161 echo "configure:7162: checking for --enable-miniframe" >&5
7162 no_cache=0
7163 # Check whether --enable-miniframe or --disable-miniframe was given.
7164 if test "${enable_miniframe+set}" = set; then
7165 enableval="$enable_miniframe"
7166
7167 if test "$enableval" = yes; then
7168 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7169 else
7170 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7171 fi
7172
7173 else
7174
7175 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7176 if test "x$LINE" != x ; then
7177 eval "DEFAULT_$LINE"
7178 else
7179 no_cache=1
7180 fi
7181
7182 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7183
7184 fi
7185
7186
7187 eval "$ac_cv_use_miniframe"
7188 if test "$no_cache" != 1; then
7189 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7190 fi
7191
7192 if test "$wxUSE_MINIFRAME" = yes; then
7193 echo "$ac_t""yes" 1>&6
7194 else
7195 echo "$ac_t""no" 1>&6
7196 fi
7197
7198
7199 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7200 echo "configure:7201: checking for --enable-tooltips" >&5
7201 no_cache=0
7202 # Check whether --enable-tooltips or --disable-tooltips was given.
7203 if test "${enable_tooltips+set}" = set; then
7204 enableval="$enable_tooltips"
7205
7206 if test "$enableval" = yes; then
7207 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7208 else
7209 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7210 fi
7211
7212 else
7213
7214 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7215 if test "x$LINE" != x ; then
7216 eval "DEFAULT_$LINE"
7217 else
7218 no_cache=1
7219 fi
7220
7221 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7222
7223 fi
7224
7225
7226 eval "$ac_cv_use_tooltips"
7227 if test "$no_cache" != 1; then
7228 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7229 fi
7230
7231 if test "$wxUSE_TOOLTIPS" = yes; then
7232 echo "$ac_t""yes" 1>&6
7233 else
7234 echo "$ac_t""no" 1>&6
7235 fi
7236
7237
7238 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7239 echo "configure:7240: checking for --enable-splines" >&5
7240 no_cache=0
7241 # Check whether --enable-splines or --disable-splines was given.
7242 if test "${enable_splines+set}" = set; then
7243 enableval="$enable_splines"
7244
7245 if test "$enableval" = yes; then
7246 ac_cv_use_splines='wxUSE_SPLINES=yes'
7247 else
7248 ac_cv_use_splines='wxUSE_SPLINES=no'
7249 fi
7250
7251 else
7252
7253 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7254 if test "x$LINE" != x ; then
7255 eval "DEFAULT_$LINE"
7256 else
7257 no_cache=1
7258 fi
7259
7260 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7261
7262 fi
7263
7264
7265 eval "$ac_cv_use_splines"
7266 if test "$no_cache" != 1; then
7267 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7268 fi
7269
7270 if test "$wxUSE_SPLINES" = yes; then
7271 echo "$ac_t""yes" 1>&6
7272 else
7273 echo "$ac_t""no" 1>&6
7274 fi
7275
7276
7277 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7278 echo "configure:7279: checking for --enable-validators" >&5
7279 no_cache=0
7280 # Check whether --enable-validators or --disable-validators was given.
7281 if test "${enable_validators+set}" = set; then
7282 enableval="$enable_validators"
7283
7284 if test "$enableval" = yes; then
7285 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7286 else
7287 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7288 fi
7289
7290 else
7291
7292 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7293 if test "x$LINE" != x ; then
7294 eval "DEFAULT_$LINE"
7295 else
7296 no_cache=1
7297 fi
7298
7299 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7300
7301 fi
7302
7303
7304 eval "$ac_cv_use_validators"
7305 if test "$no_cache" != 1; then
7306 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7307 fi
7308
7309 if test "$wxUSE_VALIDATORS" = yes; then
7310 echo "$ac_t""yes" 1>&6
7311 else
7312 echo "$ac_t""no" 1>&6
7313 fi
7314
7315
7316 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7317 echo "configure:7318: checking for --enable-busyinfo" >&5
7318 no_cache=0
7319 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7320 if test "${enable_busyinfo+set}" = set; then
7321 enableval="$enable_busyinfo"
7322
7323 if test "$enableval" = yes; then
7324 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7325 else
7326 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7327 fi
7328
7329 else
7330
7331 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7332 if test "x$LINE" != x ; then
7333 eval "DEFAULT_$LINE"
7334 else
7335 no_cache=1
7336 fi
7337
7338 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7339
7340 fi
7341
7342
7343 eval "$ac_cv_use_busyinfo"
7344 if test "$no_cache" != 1; then
7345 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7346 fi
7347
7348 if test "$wxUSE_BUSYINFO" = yes; then
7349 echo "$ac_t""yes" 1>&6
7350 else
7351 echo "$ac_t""no" 1>&6
7352 fi
7353
7354
7355 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7356 echo "configure:7357: checking for --enable-joystick" >&5
7357 no_cache=0
7358 # Check whether --enable-joystick or --disable-joystick was given.
7359 if test "${enable_joystick+set}" = set; then
7360 enableval="$enable_joystick"
7361
7362 if test "$enableval" = yes; then
7363 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7364 else
7365 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7366 fi
7367
7368 else
7369
7370 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7371 if test "x$LINE" != x ; then
7372 eval "DEFAULT_$LINE"
7373 else
7374 no_cache=1
7375 fi
7376
7377 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7378
7379 fi
7380
7381
7382 eval "$ac_cv_use_joystick"
7383 if test "$no_cache" != 1; then
7384 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7385 fi
7386
7387 if test "$wxUSE_JOYSTICK" = yes; then
7388 echo "$ac_t""yes" 1>&6
7389 else
7390 echo "$ac_t""no" 1>&6
7391 fi
7392
7393
7394 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7395 echo "configure:7396: checking for --enable-metafile" >&5
7396 no_cache=0
7397 # Check whether --enable-metafile or --disable-metafile was given.
7398 if test "${enable_metafile+set}" = set; then
7399 enableval="$enable_metafile"
7400
7401 if test "$enableval" = yes; then
7402 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7403 else
7404 ac_cv_use_metafile='wxUSE_METAFILE=no'
7405 fi
7406
7407 else
7408
7409 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7410 if test "x$LINE" != x ; then
7411 eval "DEFAULT_$LINE"
7412 else
7413 no_cache=1
7414 fi
7415
7416 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7417
7418 fi
7419
7420
7421 eval "$ac_cv_use_metafile"
7422 if test "$no_cache" != 1; then
7423 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7424 fi
7425
7426 if test "$wxUSE_METAFILE" = yes; then
7427 echo "$ac_t""yes" 1>&6
7428 else
7429 echo "$ac_t""no" 1>&6
7430 fi
7431
7432
7433 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7434 echo "configure:7435: checking for --enable-dragimage" >&5
7435 no_cache=0
7436 # Check whether --enable-dragimage or --disable-dragimage was given.
7437 if test "${enable_dragimage+set}" = set; then
7438 enableval="$enable_dragimage"
7439
7440 if test "$enableval" = yes; then
7441 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7442 else
7443 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7444 fi
7445
7446 else
7447
7448 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7449 if test "x$LINE" != x ; then
7450 eval "DEFAULT_$LINE"
7451 else
7452 no_cache=1
7453 fi
7454
7455 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7456
7457 fi
7458
7459
7460 eval "$ac_cv_use_dragimage"
7461 if test "$no_cache" != 1; then
7462 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7463 fi
7464
7465 if test "$wxUSE_DRAGIMAGE" = yes; then
7466 echo "$ac_t""yes" 1>&6
7467 else
7468 echo "$ac_t""no" 1>&6
7469 fi
7470
7471
7472
7473
7474 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7475 echo "configure:7476: checking for --enable-image" >&5
7476 no_cache=0
7477 # Check whether --enable-image or --disable-image was given.
7478 if test "${enable_image+set}" = set; then
7479 enableval="$enable_image"
7480
7481 if test "$enableval" = yes; then
7482 ac_cv_use_image='wxUSE_IMAGE=yes'
7483 else
7484 ac_cv_use_image='wxUSE_IMAGE=no'
7485 fi
7486
7487 else
7488
7489 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7490 if test "x$LINE" != x ; then
7491 eval "DEFAULT_$LINE"
7492 else
7493 no_cache=1
7494 fi
7495
7496 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7497
7498 fi
7499
7500
7501 eval "$ac_cv_use_image"
7502 if test "$no_cache" != 1; then
7503 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7504 fi
7505
7506 if test "$wxUSE_IMAGE" = yes; then
7507 echo "$ac_t""yes" 1>&6
7508 else
7509 echo "$ac_t""no" 1>&6
7510 fi
7511
7512
7513 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7514 echo "configure:7515: checking for --enable-gif" >&5
7515 no_cache=0
7516 # Check whether --enable-gif or --disable-gif was given.
7517 if test "${enable_gif+set}" = set; then
7518 enableval="$enable_gif"
7519
7520 if test "$enableval" = yes; then
7521 ac_cv_use_gif='wxUSE_GIF=yes'
7522 else
7523 ac_cv_use_gif='wxUSE_GIF=no'
7524 fi
7525
7526 else
7527
7528 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7536
7537 fi
7538
7539
7540 eval "$ac_cv_use_gif"
7541 if test "$no_cache" != 1; then
7542 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7543 fi
7544
7545 if test "$wxUSE_GIF" = yes; then
7546 echo "$ac_t""yes" 1>&6
7547 else
7548 echo "$ac_t""no" 1>&6
7549 fi
7550
7551
7552 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7553 echo "configure:7554: checking for --enable-pcx" >&5
7554 no_cache=0
7555 # Check whether --enable-pcx or --disable-pcx was given.
7556 if test "${enable_pcx+set}" = set; then
7557 enableval="$enable_pcx"
7558
7559 if test "$enableval" = yes; then
7560 ac_cv_use_pcx='wxUSE_PCX=yes'
7561 else
7562 ac_cv_use_pcx='wxUSE_PCX=no'
7563 fi
7564
7565 else
7566
7567 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7568 if test "x$LINE" != x ; then
7569 eval "DEFAULT_$LINE"
7570 else
7571 no_cache=1
7572 fi
7573
7574 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7575
7576 fi
7577
7578
7579 eval "$ac_cv_use_pcx"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_PCX" = yes; then
7585 echo "$ac_t""yes" 1>&6
7586 else
7587 echo "$ac_t""no" 1>&6
7588 fi
7589
7590
7591 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7592 echo "configure:7593: checking for --enable-pnm" >&5
7593 no_cache=0
7594 # Check whether --enable-pnm or --disable-pnm was given.
7595 if test "${enable_pnm+set}" = set; then
7596 enableval="$enable_pnm"
7597
7598 if test "$enableval" = yes; then
7599 ac_cv_use_pnm='wxUSE_PNM=yes'
7600 else
7601 ac_cv_use_pnm='wxUSE_PNM=no'
7602 fi
7603
7604 else
7605
7606 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7607 if test "x$LINE" != x ; then
7608 eval "DEFAULT_$LINE"
7609 else
7610 no_cache=1
7611 fi
7612
7613 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7614
7615 fi
7616
7617
7618 eval "$ac_cv_use_pnm"
7619 if test "$no_cache" != 1; then
7620 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7621 fi
7622
7623 if test "$wxUSE_PNM" = yes; then
7624 echo "$ac_t""yes" 1>&6
7625 else
7626 echo "$ac_t""no" 1>&6
7627 fi
7628
7629
7630 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7631 echo "configure:7632: checking for --enable-pnm" >&5
7632 no_cache=0
7633 # Check whether --enable-pnm or --disable-pnm was given.
7634 if test "${enable_pnm+set}" = set; then
7635 enableval="$enable_pnm"
7636
7637 if test "$enableval" = yes; then
7638 ac_cv_use_pnm='wxUSE_XPM=yes'
7639 else
7640 ac_cv_use_pnm='wxUSE_XPM=no'
7641 fi
7642
7643 else
7644
7645 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7646 if test "x$LINE" != x ; then
7647 eval "DEFAULT_$LINE"
7648 else
7649 no_cache=1
7650 fi
7651
7652 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7653
7654 fi
7655
7656
7657 eval "$ac_cv_use_pnm"
7658 if test "$no_cache" != 1; then
7659 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7660 fi
7661
7662 if test "$wxUSE_XPM" = yes; then
7663 echo "$ac_t""yes" 1>&6
7664 else
7665 echo "$ac_t""no" 1>&6
7666 fi
7667
7668
7669 fi
7670
7671
7672 echo "saving argument cache $wx_arg_cache_file"
7673 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7674
7675
7676
7677 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7678 echo "configure:7679: checking for toolkit" >&5
7679
7680 if test "$wxUSE_GUI" = "yes"; then
7681
7682 if test "$USE_BEOS" = 1; then
7683 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7684 fi
7685
7686 if test "$TOOLKIT_GIVEN" = 1; then
7687 for toolkit in `echo $ALL_TOOLKITS`; do
7688 var=wxUSE_$toolkit
7689 eval "value=\$${var}"
7690 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7691 done
7692 else
7693 for toolkit in `echo $ALL_TOOLKITS`; do
7694 if test "$has_toolkit_in_cache" != 1; then
7695 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7696 else
7697 var=DEFAULT_wxUSE_$toolkit
7698 fi
7699 eval "wxUSE_$toolkit=\$${var}"
7700 done
7701 fi
7702
7703 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7704 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7705 + ${wxUSE_MGL:-0}`
7706
7707 case "${host}" in
7708 *-pc-os2_emx )
7709 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7710 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7711 LEX_STEM="lexyy"
7712 ;;
7713 *)
7714 PATH_IFS=':'
7715 LEX_STEM="lex.yy"
7716 ;;
7717 esac
7718
7719 case "$NUM_TOOLKITS" in
7720 1)
7721 ;;
7722 0)
7723 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7724 ;;
7725 *)
7726 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7727 esac
7728
7729 for toolkit in `echo $ALL_TOOLKITS`; do
7730 var=wxUSE_$toolkit
7731 eval "value=\$${var}"
7732 if test "x$value" != x; then
7733 cache_var=CACHE_$toolkit
7734 eval "cache=\$${cache_var}"
7735 if test "$cache" = 1; then
7736 echo "$var=$value" >> ${wx_arg_cache_file}
7737 fi
7738 if test "$value" = 1; then
7739 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7740 echo "$ac_t""$toolkit_echo" 1>&6
7741 fi
7742 fi
7743 done
7744 else
7745 PATH_IFS=':'
7746 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7747 fi
7748
7749
7750 cat > confcache <<\EOF
7751 # This file is a shell script that caches the results of configure
7752 # tests run on this system so they can be shared between configure
7753 # scripts and configure runs. It is not useful on other systems.
7754 # If it contains results you don't want to keep, you may remove or edit it.
7755 #
7756 # By default, configure uses ./config.cache as the cache file,
7757 # creating it if it does not exist already. You can give configure
7758 # the --cache-file=FILE option to use a different cache file; that is
7759 # what configure does when it calls configure scripts in
7760 # subdirectories, so they share the cache.
7761 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7762 # config.status only pays attention to the cache file if you give it the
7763 # --recheck option to rerun configure.
7764 #
7765 EOF
7766 # The following way of writing the cache mishandles newlines in values,
7767 # but we know of no workaround that is simple, portable, and efficient.
7768 # So, don't put newlines in cache variables' values.
7769 # Ultrix sh set writes to stderr and can't be redirected directly,
7770 # and sets the high bit in the cache file unless we assign to the vars.
7771 (set) 2>&1 |
7772 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7773 *ac_space=\ *)
7774 # `set' does not quote correctly, so add quotes (double-quote substitution
7775 # turns \\\\ into \\, and sed turns \\ into \).
7776 sed -n \
7777 -e "s/'/'\\\\''/g" \
7778 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7779 ;;
7780 *)
7781 # `set' quotes correctly as required by POSIX, so do not add quotes.
7782 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7783 ;;
7784 esac >> confcache
7785 if cmp -s $cache_file confcache; then
7786 :
7787 else
7788 if test -w $cache_file; then
7789 echo "updating cache $cache_file"
7790 cat confcache > $cache_file
7791 else
7792 echo "not updating unwritable cache $cache_file"
7793 fi
7794 fi
7795 rm -f confcache
7796
7797
7798 if test "$build" != "$host" ; then
7799 if test "$USE_WIN32" = 1 ; then
7800 CC=$host_alias-gcc
7801 CXX=$host_alias-c++
7802 AR=$host_alias-ar
7803 RANLIB=$host_alias-ranlib
7804 DLLTOOL=$host_alias-dlltool
7805 RESCOMP=$host_alias-windres
7806 LD=$host_alias-ld
7807 NM=$host_alias-nm
7808 STRIP=$host_alias-strip
7809 else
7810 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7811 fi
7812 fi
7813
7814 # Extract the first word of "gcc", so it can be a program name with args.
7815 set dummy gcc; ac_word=$2
7816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7817 echo "configure:7818: checking for $ac_word" >&5
7818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7820 else
7821 if test -n "$CC"; then
7822 ac_cv_prog_CC="$CC" # Let the user override the test.
7823 else
7824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7825 ac_dummy="$PATH"
7826 for ac_dir in $ac_dummy; do
7827 test -z "$ac_dir" && ac_dir=.
7828 if test -f $ac_dir/$ac_word; then
7829 ac_cv_prog_CC="gcc"
7830 break
7831 fi
7832 done
7833 IFS="$ac_save_ifs"
7834 fi
7835 fi
7836 CC="$ac_cv_prog_CC"
7837 if test -n "$CC"; then
7838 echo "$ac_t""$CC" 1>&6
7839 else
7840 echo "$ac_t""no" 1>&6
7841 fi
7842
7843 if test -z "$CC"; then
7844 # Extract the first word of "cc", so it can be a program name with args.
7845 set dummy cc; ac_word=$2
7846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7847 echo "configure:7848: checking for $ac_word" >&5
7848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
7850 else
7851 if test -n "$CC"; then
7852 ac_cv_prog_CC="$CC" # Let the user override the test.
7853 else
7854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7855 ac_prog_rejected=no
7856 ac_dummy="$PATH"
7857 for ac_dir in $ac_dummy; do
7858 test -z "$ac_dir" && ac_dir=.
7859 if test -f $ac_dir/$ac_word; then
7860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7861 ac_prog_rejected=yes
7862 continue
7863 fi
7864 ac_cv_prog_CC="cc"
7865 break
7866 fi
7867 done
7868 IFS="$ac_save_ifs"
7869 if test $ac_prog_rejected = yes; then
7870 # We found a bogon in the path, so make sure we never use it.
7871 set dummy $ac_cv_prog_CC
7872 shift
7873 if test $# -gt 0; then
7874 # We chose a different compiler from the bogus one.
7875 # However, it has the same basename, so the bogon will be chosen
7876 # first if we set CC to just the basename; use the full file name.
7877 shift
7878 set dummy "$ac_dir/$ac_word" "$@"
7879 shift
7880 ac_cv_prog_CC="$@"
7881 fi
7882 fi
7883 fi
7884 fi
7885 CC="$ac_cv_prog_CC"
7886 if test -n "$CC"; then
7887 echo "$ac_t""$CC" 1>&6
7888 else
7889 echo "$ac_t""no" 1>&6
7890 fi
7891
7892 if test -z "$CC"; then
7893 case "`uname -s`" in
7894 *win32* | *WIN32*)
7895 # Extract the first word of "cl", so it can be a program name with args.
7896 set dummy cl; ac_word=$2
7897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_word" >&5
7899 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7901 else
7902 if test -n "$CC"; then
7903 ac_cv_prog_CC="$CC" # Let the user override the test.
7904 else
7905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7906 ac_dummy="$PATH"
7907 for ac_dir in $ac_dummy; do
7908 test -z "$ac_dir" && ac_dir=.
7909 if test -f $ac_dir/$ac_word; then
7910 ac_cv_prog_CC="cl"
7911 break
7912 fi
7913 done
7914 IFS="$ac_save_ifs"
7915 fi
7916 fi
7917 CC="$ac_cv_prog_CC"
7918 if test -n "$CC"; then
7919 echo "$ac_t""$CC" 1>&6
7920 else
7921 echo "$ac_t""no" 1>&6
7922 fi
7923 ;;
7924 esac
7925 fi
7926 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7927 fi
7928
7929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7930 echo "configure:7931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7931
7932 ac_ext=c
7933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7934 ac_cpp='$CPP $CPPFLAGS'
7935 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7936 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7937 cross_compiling=$ac_cv_prog_cc_cross
7938
7939 cat > conftest.$ac_ext << EOF
7940
7941 #line 7942 "configure"
7942 #include "confdefs.h"
7943
7944 main(){return(0);}
7945 EOF
7946 if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7947 ac_cv_prog_cc_works=yes
7948 # If we can't run a trivial program, we are probably using a cross compiler.
7949 if (./conftest; exit) 2>/dev/null; then
7950 ac_cv_prog_cc_cross=no
7951 else
7952 ac_cv_prog_cc_cross=yes
7953 fi
7954 else
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 ac_cv_prog_cc_works=no
7958 fi
7959 rm -fr conftest*
7960 ac_ext=c
7961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7962 ac_cpp='$CPP $CPPFLAGS'
7963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7965 cross_compiling=$ac_cv_prog_cc_cross
7966
7967 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7968 if test $ac_cv_prog_cc_works = no; then
7969 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7970 fi
7971 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7972 echo "configure:7973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7973 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7974 cross_compiling=$ac_cv_prog_cc_cross
7975
7976 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7977 echo "configure:7978: checking whether we are using GNU C" >&5
7978 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7980 else
7981 cat > conftest.c <<EOF
7982 #ifdef __GNUC__
7983 yes;
7984 #endif
7985 EOF
7986 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7987 ac_cv_prog_gcc=yes
7988 else
7989 ac_cv_prog_gcc=no
7990 fi
7991 fi
7992
7993 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7994
7995 if test $ac_cv_prog_gcc = yes; then
7996 GCC=yes
7997 else
7998 GCC=
7999 fi
8000
8001 ac_test_CFLAGS="${CFLAGS+set}"
8002 ac_save_CFLAGS="$CFLAGS"
8003 CFLAGS=
8004 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8005 echo "configure:8006: checking whether ${CC-cc} accepts -g" >&5
8006 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8008 else
8009 echo 'void f(){}' > conftest.c
8010 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8011 ac_cv_prog_cc_g=yes
8012 else
8013 ac_cv_prog_cc_g=no
8014 fi
8015 rm -f conftest*
8016
8017 fi
8018
8019 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8020 if test "$ac_test_CFLAGS" = set; then
8021 CFLAGS="$ac_save_CFLAGS"
8022 elif test $ac_cv_prog_cc_g = yes; then
8023 if test "$GCC" = yes; then
8024 CFLAGS="-g -O2"
8025 else
8026 CFLAGS="-g"
8027 fi
8028 else
8029 if test "$GCC" = yes; then
8030 CFLAGS="-O2"
8031 else
8032 CFLAGS=
8033 fi
8034 fi
8035
8036
8037 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8038
8039 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8040 echo "configure:8041: checking how to run the C preprocessor" >&5
8041 # On Suns, sometimes $CPP names a directory.
8042 if test -n "$CPP" && test -d "$CPP"; then
8043 CPP=
8044 fi
8045 if test -z "$CPP"; then
8046 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8048 else
8049 # This must be in double quotes, not single quotes, because CPP may get
8050 # substituted into the Makefile and "${CC-cc}" will confuse make.
8051 CPP="${CC-cc} -E"
8052 # On the NeXT, cc -E runs the code through the compiler's parser,
8053 # not just through cpp.
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 #include <assert.h>
8058 Syntax Error
8059 EOF
8060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8061 { (eval echo configure:8062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8063 if test -z "$ac_err"; then
8064 :
8065 else
8066 echo "$ac_err" >&5
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8069 rm -rf conftest*
8070 CPP="${CC-cc} -E -traditional-cpp"
8071 cat > conftest.$ac_ext <<EOF
8072 #line 8073 "configure"
8073 #include "confdefs.h"
8074 #include <assert.h>
8075 Syntax Error
8076 EOF
8077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8078 { (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8080 if test -z "$ac_err"; then
8081 :
8082 else
8083 echo "$ac_err" >&5
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8086 rm -rf conftest*
8087 CPP="${CC-cc} -nologo -E"
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8091 #include <assert.h>
8092 Syntax Error
8093 EOF
8094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8095 { (eval echo configure:8096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8097 if test -z "$ac_err"; then
8098 :
8099 else
8100 echo "$ac_err" >&5
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 rm -rf conftest*
8104 CPP=/lib/cpp
8105 fi
8106 rm -f conftest*
8107 fi
8108 rm -f conftest*
8109 fi
8110 rm -f conftest*
8111 ac_cv_prog_CPP="$CPP"
8112 fi
8113 CPP="$ac_cv_prog_CPP"
8114 else
8115 ac_cv_prog_CPP="$CPP"
8116 fi
8117 echo "$ac_t""$CPP" 1>&6
8118
8119 if test $ac_cv_prog_gcc = yes; then
8120 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8121 echo "configure:8122: checking whether ${CC-cc} needs -traditional" >&5
8122 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8124 else
8125 ac_pattern="Autoconf.*'x'"
8126 cat > conftest.$ac_ext <<EOF
8127 #line 8128 "configure"
8128 #include "confdefs.h"
8129 #include <sgtty.h>
8130 Autoconf TIOCGETP
8131 EOF
8132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133 egrep "$ac_pattern" >/dev/null 2>&1; then
8134 rm -rf conftest*
8135 ac_cv_prog_gcc_traditional=yes
8136 else
8137 rm -rf conftest*
8138 ac_cv_prog_gcc_traditional=no
8139 fi
8140 rm -f conftest*
8141
8142
8143 if test $ac_cv_prog_gcc_traditional = no; then
8144 cat > conftest.$ac_ext <<EOF
8145 #line 8146 "configure"
8146 #include "confdefs.h"
8147 #include <termio.h>
8148 Autoconf TCGETA
8149 EOF
8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151 egrep "$ac_pattern" >/dev/null 2>&1; then
8152 rm -rf conftest*
8153 ac_cv_prog_gcc_traditional=yes
8154 fi
8155 rm -f conftest*
8156
8157 fi
8158 fi
8159
8160 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8161 if test $ac_cv_prog_gcc_traditional = yes; then
8162 CC="$CC -traditional"
8163 fi
8164 fi
8165
8166
8167
8168 ac_ext=C
8169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8170 ac_cpp='$CXXCPP $CPPFLAGS'
8171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8173 cross_compiling=$ac_cv_prog_cxx_cross
8174
8175
8176 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8177 do
8178 # Extract the first word of "$ac_prog", so it can be a program name with args.
8179 set dummy $ac_prog; ac_word=$2
8180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8181 echo "configure:8182: checking for $ac_word" >&5
8182 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
8184 else
8185 if test -n "$CXX"; then
8186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8187 else
8188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8189 ac_dummy="$PATH"
8190 for ac_dir in $ac_dummy; do
8191 test -z "$ac_dir" && ac_dir=.
8192 if test -f $ac_dir/$ac_word; then
8193 ac_cv_prog_CXX="$ac_prog"
8194 break
8195 fi
8196 done
8197 IFS="$ac_save_ifs"
8198 fi
8199 fi
8200 CXX="$ac_cv_prog_CXX"
8201 if test -n "$CXX"; then
8202 echo "$ac_t""$CXX" 1>&6
8203 else
8204 echo "$ac_t""no" 1>&6
8205 fi
8206
8207 test -n "$CXX" && break
8208 done
8209 test -n "$CXX" || CXX="gcc"
8210
8211
8212 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8213 echo "configure:8214: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8214
8215 ac_ext=C
8216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8217 ac_cpp='$CXXCPP $CPPFLAGS'
8218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8220 cross_compiling=$ac_cv_prog_cxx_cross
8221
8222 cat > conftest.$ac_ext << EOF
8223
8224 #line 8225 "configure"
8225 #include "confdefs.h"
8226
8227 int main(){return(0);}
8228 EOF
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8230 ac_cv_prog_cxx_works=yes
8231 # If we can't run a trivial program, we are probably using a cross compiler.
8232 if (./conftest; exit) 2>/dev/null; then
8233 ac_cv_prog_cxx_cross=no
8234 else
8235 ac_cv_prog_cxx_cross=yes
8236 fi
8237 else
8238 echo "configure: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8240 ac_cv_prog_cxx_works=no
8241 fi
8242 rm -fr conftest*
8243 ac_ext=C
8244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8245 ac_cpp='$CXXCPP $CPPFLAGS'
8246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8248 cross_compiling=$ac_cv_prog_cxx_cross
8249
8250 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8251 if test $ac_cv_prog_cxx_works = no; then
8252 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8253 fi
8254 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8255 echo "configure:8256: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8256 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8257 cross_compiling=$ac_cv_prog_cxx_cross
8258
8259 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8260 echo "configure:8261: checking whether we are using GNU C++" >&5
8261 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8263 else
8264 cat > conftest.C <<EOF
8265 #ifdef __GNUC__
8266 yes;
8267 #endif
8268 EOF
8269 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8270 ac_cv_prog_gxx=yes
8271 else
8272 ac_cv_prog_gxx=no
8273 fi
8274 fi
8275
8276 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8277
8278 if test $ac_cv_prog_gxx = yes; then
8279 GXX=yes
8280 else
8281 GXX=
8282 fi
8283
8284 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8285 ac_save_CXXFLAGS="$CXXFLAGS"
8286 CXXFLAGS=
8287 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8288 echo "configure:8289: checking whether ${CXX-g++} accepts -g" >&5
8289 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8290 echo $ac_n "(cached) $ac_c" 1>&6
8291 else
8292 echo 'void f(){}' > conftest.cc
8293 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8294 ac_cv_prog_cxx_g=yes
8295 else
8296 ac_cv_prog_cxx_g=no
8297 fi
8298 rm -f conftest*
8299
8300 fi
8301
8302 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8303 if test "$ac_test_CXXFLAGS" = set; then
8304 CXXFLAGS="$ac_save_CXXFLAGS"
8305 elif test $ac_cv_prog_cxx_g = yes; then
8306 if test "$GXX" = yes; then
8307 CXXFLAGS="-g -O2"
8308 else
8309 CXXFLAGS="-g"
8310 fi
8311 else
8312 if test "$GXX" = yes; then
8313 CXXFLAGS="-O2"
8314 else
8315 CXXFLAGS=
8316 fi
8317 fi
8318
8319
8320 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8321
8322 ac_ext=c
8323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8324 ac_cpp='$CPP $CPPFLAGS'
8325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8327 cross_compiling=$ac_cv_prog_cc_cross
8328
8329
8330 # Extract the first word of "ranlib", so it can be a program name with args.
8331 set dummy ranlib; ac_word=$2
8332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_word" >&5
8334 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8336 else
8337 if test -n "$RANLIB"; then
8338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8339 else
8340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8341 ac_dummy="$PATH"
8342 for ac_dir in $ac_dummy; do
8343 test -z "$ac_dir" && ac_dir=.
8344 if test -f $ac_dir/$ac_word; then
8345 ac_cv_prog_RANLIB="ranlib"
8346 break
8347 fi
8348 done
8349 IFS="$ac_save_ifs"
8350 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8351 fi
8352 fi
8353 RANLIB="$ac_cv_prog_RANLIB"
8354 if test -n "$RANLIB"; then
8355 echo "$ac_t""$RANLIB" 1>&6
8356 else
8357 echo "$ac_t""no" 1>&6
8358 fi
8359
8360
8361 # Extract the first word of "ar", so it can be a program name with args.
8362 set dummy ar; ac_word=$2
8363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8364 echo "configure:8365: checking for $ac_word" >&5
8365 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8366 echo $ac_n "(cached) $ac_c" 1>&6
8367 else
8368 if test -n "$AR"; then
8369 ac_cv_prog_AR="$AR" # Let the user override the test.
8370 else
8371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8372 ac_dummy="$PATH"
8373 for ac_dir in $ac_dummy; do
8374 test -z "$ac_dir" && ac_dir=.
8375 if test -f $ac_dir/$ac_word; then
8376 ac_cv_prog_AR="ar"
8377 break
8378 fi
8379 done
8380 IFS="$ac_save_ifs"
8381 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8382 fi
8383 fi
8384 AR="$ac_cv_prog_AR"
8385 if test -n "$AR"; then
8386 echo "$ac_t""$AR" 1>&6
8387 else
8388 echo "$ac_t""no" 1>&6
8389 fi
8390
8391
8392 # Find a good install program. We prefer a C program (faster),
8393 # so one script is as good as another. But avoid the broken or
8394 # incompatible versions:
8395 # SysV /etc/install, /usr/sbin/install
8396 # SunOS /usr/etc/install
8397 # IRIX /sbin/install
8398 # AIX /bin/install
8399 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8402 # ./install, which can be erroneously created by make from ./install.sh.
8403 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8404 echo "configure:8405: checking for a BSD compatible install" >&5
8405 if test -z "$INSTALL"; then
8406 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8407 echo $ac_n "(cached) $ac_c" 1>&6
8408 else
8409 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8410 for ac_dir in $PATH; do
8411 # Account for people who put trailing slashes in PATH elements.
8412 case "$ac_dir/" in
8413 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8414 *)
8415 # OSF1 and SCO ODT 3.0 have their own names for install.
8416 # Don't use installbsd from OSF since it installs stuff as root
8417 # by default.
8418 for ac_prog in ginstall scoinst install; do
8419 if test -f $ac_dir/$ac_prog; then
8420 if test $ac_prog = install &&
8421 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8422 # AIX install. It has an incompatible calling convention.
8423 :
8424 else
8425 ac_cv_path_install="$ac_dir/$ac_prog -c"
8426 break 2
8427 fi
8428 fi
8429 done
8430 ;;
8431 esac
8432 done
8433 IFS="$ac_save_IFS"
8434
8435 fi
8436 if test "${ac_cv_path_install+set}" = set; then
8437 INSTALL="$ac_cv_path_install"
8438 else
8439 # As a last resort, use the slow shell script. We don't cache a
8440 # path for INSTALL within a source directory, because that will
8441 # break other packages using the cache if that directory is
8442 # removed, or if the path is relative.
8443 INSTALL="$ac_install_sh"
8444 fi
8445 fi
8446 echo "$ac_t""$INSTALL" 1>&6
8447
8448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8449 # It thinks the first close brace ends the variable substitution.
8450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8451
8452 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8453
8454 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8455
8456
8457 # Extract the first word of "strip", so it can be a program name with args.
8458 set dummy strip; ac_word=$2
8459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8460 echo "configure:8461: checking for $ac_word" >&5
8461 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8462 echo $ac_n "(cached) $ac_c" 1>&6
8463 else
8464 if test -n "$STRIP"; then
8465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8466 else
8467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8468 ac_dummy="$PATH"
8469 for ac_dir in $ac_dummy; do
8470 test -z "$ac_dir" && ac_dir=.
8471 if test -f $ac_dir/$ac_word; then
8472 ac_cv_prog_STRIP="strip"
8473 break
8474 fi
8475 done
8476 IFS="$ac_save_ifs"
8477 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8478 fi
8479 fi
8480 STRIP="$ac_cv_prog_STRIP"
8481 if test -n "$STRIP"; then
8482 echo "$ac_t""$STRIP" 1>&6
8483 else
8484 echo "$ac_t""no" 1>&6
8485 fi
8486
8487
8488 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8489 echo "configure:8490: checking make for VPATH support" >&5
8490 cat - << EOF > confMake
8491 check : file
8492 cp \$? \$@
8493 cp \$? final_file
8494 EOF
8495
8496 if test ! -d sub ; then
8497 mkdir sub
8498 fi
8499 echo dummy > sub/file
8500 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8501 RESULT=$?
8502 rm -f sub/file check final_file confMake
8503 rmdir sub
8504 if test "$RESULT" = 0; then
8505 echo "$ac_t""yes" 1>&6
8506 else
8507 echo "$ac_t""no" 1>&6
8508 { echo "configure: error:
8509 You need a make-utility that is able to use the variable
8510 VPATH correctly.
8511 If your version of make does not support VPATH correctly,
8512 please install GNU-make (possibly as gmake), and start
8513 configure with the following command:
8514 export MAKE=gmake; ./configure for sh-type shells
8515 setenv MAKE gmake; ./configure for csh-type shells
8516 Also please do remember to use gmake in this case every time
8517 you are trying to compile.
8518 " 1>&2; exit 1; }
8519 fi
8520
8521 for ac_prog in 'bison -y' byacc
8522 do
8523 # Extract the first word of "$ac_prog", so it can be a program name with args.
8524 set dummy $ac_prog; ac_word=$2
8525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8526 echo "configure:8527: checking for $ac_word" >&5
8527 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8529 else
8530 if test -n "$YACC"; then
8531 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8532 else
8533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8534 ac_dummy="$PATH"
8535 for ac_dir in $ac_dummy; do
8536 test -z "$ac_dir" && ac_dir=.
8537 if test -f $ac_dir/$ac_word; then
8538 ac_cv_prog_YACC="$ac_prog"
8539 break
8540 fi
8541 done
8542 IFS="$ac_save_ifs"
8543 fi
8544 fi
8545 YACC="$ac_cv_prog_YACC"
8546 if test -n "$YACC"; then
8547 echo "$ac_t""$YACC" 1>&6
8548 else
8549 echo "$ac_t""no" 1>&6
8550 fi
8551
8552 test -n "$YACC" && break
8553 done
8554 test -n "$YACC" || YACC="yacc"
8555
8556
8557 # Extract the first word of "flex", so it can be a program name with args.
8558 set dummy flex; ac_word=$2
8559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8560 echo "configure:8561: checking for $ac_word" >&5
8561 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8563 else
8564 if test -n "$LEX"; then
8565 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8566 else
8567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8568 ac_dummy="$PATH"
8569 for ac_dir in $ac_dummy; do
8570 test -z "$ac_dir" && ac_dir=.
8571 if test -f $ac_dir/$ac_word; then
8572 ac_cv_prog_LEX="flex"
8573 break
8574 fi
8575 done
8576 IFS="$ac_save_ifs"
8577 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8578 fi
8579 fi
8580 LEX="$ac_cv_prog_LEX"
8581 if test -n "$LEX"; then
8582 echo "$ac_t""$LEX" 1>&6
8583 else
8584 echo "$ac_t""no" 1>&6
8585 fi
8586
8587 if test -z "$LEXLIB"
8588 then
8589 case "$LEX" in
8590 flex*) ac_lib=fl ;;
8591 *) ac_lib=l ;;
8592 esac
8593 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8594 echo "configure:8595: checking for yywrap in -l$ac_lib" >&5
8595 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8598 else
8599 ac_save_LIBS="$LIBS"
8600 LIBS="-l$ac_lib $LIBS"
8601 cat > conftest.$ac_ext <<EOF
8602 #line 8603 "configure"
8603 #include "confdefs.h"
8604 /* Override any gcc2 internal prototype to avoid an error. */
8605 /* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8607 char yywrap();
8608
8609 int main() {
8610 yywrap()
8611 ; return 0; }
8612 EOF
8613 if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8614 rm -rf conftest*
8615 eval "ac_cv_lib_$ac_lib_var=yes"
8616 else
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8619 rm -rf conftest*
8620 eval "ac_cv_lib_$ac_lib_var=no"
8621 fi
8622 rm -f conftest*
8623 LIBS="$ac_save_LIBS"
8624
8625 fi
8626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8627 echo "$ac_t""yes" 1>&6
8628 LEXLIB="-l$ac_lib"
8629 else
8630 echo "$ac_t""no" 1>&6
8631 fi
8632
8633 fi
8634
8635
8636 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8637 echo "configure:8638: checking whether ln -s works" >&5
8638 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
8640 else
8641 rm -f conftestdata
8642 if ln -s X conftestdata 2>/dev/null
8643 then
8644 rm -f conftestdata
8645 ac_cv_prog_LN_S="ln -s"
8646 else
8647 ac_cv_prog_LN_S=ln
8648 fi
8649 fi
8650 LN_S="$ac_cv_prog_LN_S"
8651 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8652 echo "$ac_t""yes" 1>&6
8653 else
8654 echo "$ac_t""no" 1>&6
8655 fi
8656
8657
8658
8659 SEARCH_INCLUDE="\
8660 /usr/local/include \
8661 \
8662 /usr/Motif-1.2/include \
8663 /usr/Motif-2.1/include \
8664 \
8665 /usr/include/Motif1.2 \
8666 /opt/xpm/include/X11 \
8667 /opt/GBxpm/include/ \
8668 /opt/GBxpm/X11/include/ \
8669 \
8670 /usr/Motif1.2/include \
8671 /usr/dt/include \
8672 /usr/openwin/include \
8673 \
8674 /usr/include/Xm \
8675 \
8676 /usr/X11R6/include \
8677 /usr/X11R6.4/include \
8678 /usr/X11R5/include \
8679 /usr/X11R4/include \
8680 \
8681 /usr/include/X11R6 \
8682 /usr/include/X11R5 \
8683 /usr/include/X11R4 \
8684 \
8685 /usr/local/X11R6/include \
8686 /usr/local/X11R5/include \
8687 /usr/local/X11R4/include \
8688 \
8689 /usr/local/include/X11R6 \
8690 /usr/local/include/X11R5 \
8691 /usr/local/include/X11R4 \
8692 \
8693 /usr/X11/include \
8694 /usr/include/X11 \
8695 /usr/local/X11/include \
8696 /usr/local/include/X11 \
8697 \
8698 /usr/X386/include \
8699 /usr/x386/include \
8700 /usr/XFree86/include/X11 \
8701 \
8702 X:/XFree86/include \
8703 X:/XFree86/include/X11 \
8704 \
8705 /usr/include/gtk \
8706 /usr/local/include/gtk \
8707 /usr/include/glib \
8708 /usr/local/include/glib \
8709 \
8710 /usr/include/qt \
8711 /usr/local/include/qt \
8712 \
8713 /usr/include/windows \
8714 /usr/include/wine \
8715 /usr/local/include/wine \
8716 \
8717 /usr/unsupported/include \
8718 /usr/athena/include \
8719 /usr/local/x11r5/include \
8720 /usr/lpp/Xamples/include \
8721 \
8722 /usr/openwin/share/include \
8723 \
8724 /usr/include"
8725
8726 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8727
8728
8729 cat > confcache <<\EOF
8730 # This file is a shell script that caches the results of configure
8731 # tests run on this system so they can be shared between configure
8732 # scripts and configure runs. It is not useful on other systems.
8733 # If it contains results you don't want to keep, you may remove or edit it.
8734 #
8735 # By default, configure uses ./config.cache as the cache file,
8736 # creating it if it does not exist already. You can give configure
8737 # the --cache-file=FILE option to use a different cache file; that is
8738 # what configure does when it calls configure scripts in
8739 # subdirectories, so they share the cache.
8740 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8741 # config.status only pays attention to the cache file if you give it the
8742 # --recheck option to rerun configure.
8743 #
8744 EOF
8745 # The following way of writing the cache mishandles newlines in values,
8746 # but we know of no workaround that is simple, portable, and efficient.
8747 # So, don't put newlines in cache variables' values.
8748 # Ultrix sh set writes to stderr and can't be redirected directly,
8749 # and sets the high bit in the cache file unless we assign to the vars.
8750 (set) 2>&1 |
8751 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8752 *ac_space=\ *)
8753 # `set' does not quote correctly, so add quotes (double-quote substitution
8754 # turns \\\\ into \\, and sed turns \\ into \).
8755 sed -n \
8756 -e "s/'/'\\\\''/g" \
8757 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8758 ;;
8759 *)
8760 # `set' quotes correctly as required by POSIX, so do not add quotes.
8761 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8762 ;;
8763 esac >> confcache
8764 if cmp -s $cache_file confcache; then
8765 :
8766 else
8767 if test -w $cache_file; then
8768 echo "updating cache $cache_file"
8769 cat confcache > $cache_file
8770 else
8771 echo "not updating unwritable cache $cache_file"
8772 fi
8773 fi
8774 rm -f confcache
8775
8776
8777
8778 REGEX_INCLUDE=
8779 if test "$wxUSE_REGEX" != "no"; then
8780 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8781 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8782 echo "configure:8783: checking for regex.h" >&5
8783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8785 else
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8789 #include <regex.h>
8790 EOF
8791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8792 { (eval echo configure:8793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8794 if test -z "$ac_err"; then
8795 rm -rf conftest*
8796 eval "ac_cv_header_$ac_safe=yes"
8797 else
8798 echo "$ac_err" >&5
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 rm -rf conftest*
8802 eval "ac_cv_header_$ac_safe=no"
8803 fi
8804 rm -f conftest*
8805 fi
8806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8807 echo "$ac_t""yes" 1>&6
8808 for ac_func in regcomp
8809 do
8810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8811 echo "configure:8812: checking for $ac_func" >&5
8812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8814 else
8815 cat > conftest.$ac_ext <<EOF
8816 #line 8817 "configure"
8817 #include "confdefs.h"
8818 /* System header to define __stub macros and hopefully few prototypes,
8819 which can conflict with char $ac_func(); below. */
8820 #include <assert.h>
8821 /* Override any gcc2 internal prototype to avoid an error. */
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8824 char $ac_func();
8825
8826 int main() {
8827
8828 /* The GNU C library defines this for functions which it implements
8829 to always fail with ENOSYS. Some functions are actually named
8830 something starting with __ and the normal name is an alias. */
8831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8832 choke me
8833 #else
8834 $ac_func();
8835 #endif
8836
8837 ; return 0; }
8838 EOF
8839 if { (eval echo configure:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8840 rm -rf conftest*
8841 eval "ac_cv_func_$ac_func=yes"
8842 else
8843 echo "configure: failed program was:" >&5
8844 cat conftest.$ac_ext >&5
8845 rm -rf conftest*
8846 eval "ac_cv_func_$ac_func=no"
8847 fi
8848 rm -f conftest*
8849 fi
8850
8851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8852 echo "$ac_t""yes" 1>&6
8853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8854 cat >> confdefs.h <<EOF
8855 #define $ac_tr_func 1
8856 EOF
8857
8858 else
8859 echo "$ac_t""no" 1>&6
8860 fi
8861 done
8862
8863 else
8864 echo "$ac_t""no" 1>&6
8865 fi
8866
8867
8868 if test "x$ac_cv_func_regcomp" != "xyes"; then
8869 if test "$wxUSE_REGEX" = "sys"; then
8870 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8871 fi
8872
8873 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8874 fi
8875
8876 cat >> confdefs.h <<\EOF
8877 #define wxUSE_REGEX 1
8878 EOF
8879
8880 fi
8881
8882
8883 AFMINSTALL=
8884
8885 TOOLKIT=
8886 TOOLKIT_INCLUDE=
8887 WIDGET_SET=
8888
8889 if test "$USE_WIN32" = 1 ; then
8890 for ac_hdr in w32api.h
8891 do
8892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8894 echo "configure:8895: checking for $ac_hdr" >&5
8895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8897 else
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 #include <$ac_hdr>
8902 EOF
8903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8904 { (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8906 if test -z "$ac_err"; then
8907 rm -rf conftest*
8908 eval "ac_cv_header_$ac_safe=yes"
8909 else
8910 echo "$ac_err" >&5
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 rm -rf conftest*
8914 eval "ac_cv_header_$ac_safe=no"
8915 fi
8916 rm -f conftest*
8917 fi
8918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8919 echo "$ac_t""yes" 1>&6
8920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8921 cat >> confdefs.h <<EOF
8922 #define $ac_tr_hdr 1
8923 EOF
8924
8925 else
8926 echo "$ac_t""no" 1>&6
8927 fi
8928 done
8929
8930 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8931 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8932 echo "configure:8933: checking for windows.h" >&5
8933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8935 else
8936 cat > conftest.$ac_ext <<EOF
8937 #line 8938 "configure"
8938 #include "confdefs.h"
8939 #include <windows.h>
8940 EOF
8941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8942 { (eval echo configure:8943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8944 if test -z "$ac_err"; then
8945 rm -rf conftest*
8946 eval "ac_cv_header_$ac_safe=yes"
8947 else
8948 echo "$ac_err" >&5
8949 echo "configure: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8951 rm -rf conftest*
8952 eval "ac_cv_header_$ac_safe=no"
8953 fi
8954 rm -f conftest*
8955 fi
8956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8957 echo "$ac_t""yes" 1>&6
8958 :
8959 else
8960 echo "$ac_t""no" 1>&6
8961
8962 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8963
8964 fi
8965
8966
8967 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
8968 echo "configure:8969: checking if w32api has good enough MSIE support" >&5
8969 if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
8970 echo $ac_n "(cached) $ac_c" 1>&6
8971 else
8972
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8976 #include <w32api.h>
8977 int main() {
8978
8979 #define wxCHECK_W32API_VERSION( major, minor ) \
8980 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
8981 && ( ( __W32API_MAJOR_VERSION > (major) ) \
8982 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
8983
8984 #if !wxCHECK_W32API_VERSION(1,1)
8985 #error You need w32api 1.1 or newer
8986 #endif
8987
8988 ; return 0; }
8989 EOF
8990 if { (eval echo configure:8991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8991 rm -rf conftest*
8992
8993 wx_cv_w32api_win_ie=yes
8994 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
8995
8996 else
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 rm -rf conftest*
9000
9001 wx_cv_w32api_win_ie=no
9002
9003 fi
9004 rm -f conftest*
9005
9006 fi
9007
9008 echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
9009
9010 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9011
9012 if test "$wxUSE_ODBC" = "yes" ; then
9013 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9014 fi
9015
9016 if test "$wxUSE_MINGW" = 1; then
9017 LDFLAGS="$LDFLAGS -mwindows"
9018 fi
9019
9020 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9021 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9022 fi
9023
9024 if test "$wxUSE_GUI" = "yes"; then
9025 USE_GUI=1
9026
9027 GUI_TK_LIBRARY=
9028
9029 WXGTK12=
9030 WXGTK127=
9031 WXGTK20=
9032
9033 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9034 TOOLKIT=MSW
9035 GUIDIST=MSW_DIST
9036 fi
9037
9038 if test "$wxUSE_GTK" = 1; then
9039 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9040 echo "configure:9041: checking for GTK+ version" >&5
9041
9042 gtk_version_cached=1
9043 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9045 else
9046
9047 gtk_version_cached=0
9048 echo "$ac_t""""" 1>&6
9049
9050 wx_cv_lib_gtk=
9051 if test "x$wxUSE_GTK2" = "xyes"; then
9052 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9053 if test "${with_gtk_prefix+set}" = set; then
9054 withval="$with_gtk_prefix"
9055 gtk_config_prefix="$withval"
9056 else
9057 gtk_config_prefix=""
9058 fi
9059
9060 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9061 if test "${with_gtk_exec_prefix+set}" = set; then
9062 withval="$with_gtk_exec_prefix"
9063 gtk_config_exec_prefix="$withval"
9064 else
9065 gtk_config_exec_prefix=""
9066 fi
9067
9068 # Check whether --enable-gtktest or --disable-gtktest was given.
9069 if test "${enable_gtktest+set}" = set; then
9070 enableval="$enable_gtktest"
9071 :
9072 else
9073 enable_gtktest=yes
9074 fi
9075
9076
9077 for module in .
9078 do
9079 case "$module" in
9080 gthread)
9081 gtk_config_args="$gtk_config_args gthread"
9082 ;;
9083 esac
9084 done
9085
9086 if test x$gtk_config_exec_prefix != x ; then
9087 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9088 if test x${GTK_CONFIG_2_0+set} != xset ; then
9089 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9090 fi
9091 fi
9092 if test x$gtk_config_prefix != x ; then
9093 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9094 if test x${GTK_CONFIG_2_0+set} != xset ; then
9095 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9096 fi
9097 fi
9098
9099 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9100 set dummy gtk-config-2.0; ac_word=$2
9101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9102 echo "configure:9103: checking for $ac_word" >&5
9103 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9105 else
9106 case "$GTK_CONFIG_2_0" in
9107 /*)
9108 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9109 ;;
9110 ?:/*)
9111 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9112 ;;
9113 *)
9114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9115 ac_dummy="$PATH"
9116 for ac_dir in $ac_dummy; do
9117 test -z "$ac_dir" && ac_dir=.
9118 if test -f $ac_dir/$ac_word; then
9119 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9120 break
9121 fi
9122 done
9123 IFS="$ac_save_ifs"
9124 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9125 ;;
9126 esac
9127 fi
9128 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9129 if test -n "$GTK_CONFIG_2_0"; then
9130 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9131 else
9132 echo "$ac_t""no" 1>&6
9133 fi
9134
9135 min_gtk_version=1.3.1
9136 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9137 echo "configure:9138: checking for GTK - version >= $min_gtk_version" >&5
9138 no_gtk=""
9139 if test "$GTK_CONFIG_2_0" = "no" ; then
9140 no_gtk=yes
9141 else
9142 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9143 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9144 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9145 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9146 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9147 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9148 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9149 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9150 if test "x$enable_gtktest" = "xyes" ; then
9151 ac_save_CFLAGS="$CFLAGS"
9152 ac_save_LIBS="$LIBS"
9153 CFLAGS="$CFLAGS $GTK_CFLAGS"
9154 LIBS="$GTK_LIBS $LIBS"
9155 rm -f conf.gtktest
9156 if test "$cross_compiling" = yes; then
9157 echo $ac_n "cross compiling; assumed OK... $ac_c"
9158 else
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9161 "configure"
9161 #include "confdefs.h"
9162
9163 #include <gtk/gtk.h>
9164 #include <stdio.h>
9165 #include <stdlib.h>
9166
9167 int
9168 main ()
9169 {
9170 int major, minor, micro;
9171 char *tmp_version;
9172
9173 system ("touch conf.gtktest");
9174
9175 /* HP/UX 9 (%@#!) writes to sscanf strings */
9176 tmp_version = g_strdup("$min_gtk_version");
9177 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9178 printf("%s, bad version string\n", "$min_gtk_version");
9179 exit(1);
9180 }
9181
9182 if ((gtk_major_version != $gtk_config_major_version) ||
9183 (gtk_minor_version != $gtk_config_minor_version) ||
9184 (gtk_micro_version != $gtk_config_micro_version))
9185 {
9186 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9187 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9188 gtk_major_version, gtk_minor_version, gtk_micro_version);
9189 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9190 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9191 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9192 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9193 printf("*** required on your system.\n");
9194 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9195 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9196 printf("*** before re-running configure\n");
9197 }
9198 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9199 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9200 (gtk_minor_version != GTK_MINOR_VERSION) ||
9201 (gtk_micro_version != GTK_MICRO_VERSION))
9202 {
9203 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9204 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9205 printf("*** library (version %d.%d.%d)\n",
9206 gtk_major_version, gtk_minor_version, gtk_micro_version);
9207 }
9208 #endif /* defined (GTK_MAJOR_VERSION) ... */
9209 else
9210 {
9211 if ((gtk_major_version > major) ||
9212 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9213 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9214 {
9215 return 0;
9216 }
9217 else
9218 {
9219 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9220 gtk_major_version, gtk_minor_version, gtk_micro_version);
9221 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9222 major, minor, micro);
9223 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9224 printf("***\n");
9225 printf("*** If you have already installed a sufficiently new version, this error\n");
9226 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9227 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9228 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9229 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9230 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9231 printf("*** so that the correct libraries are found at run-time))\n");
9232 }
9233 }
9234 return 1;
9235 }
9236
9237 EOF
9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9239 then
9240 :
9241 else
9242 echo "configure: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9244 rm -fr conftest*
9245 no_gtk=yes
9246 fi
9247 rm -fr conftest*
9248 fi
9249
9250 CFLAGS="$ac_save_CFLAGS"
9251 LIBS="$ac_save_LIBS"
9252 fi
9253 fi
9254 if test "x$no_gtk" = x ; then
9255 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9256 wx_cv_lib_gtk=2.0
9257 else
9258 echo "$ac_t""no" 1>&6
9259 if test "$GTK_CONFIG_2_0" = "no" ; then
9260 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9261 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9262 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9263 echo "*** full path to gtk-config-2.0."
9264 else
9265 if test -f conf.gtktest ; then
9266 :
9267 else
9268 echo "*** Could not run GTK test program, checking why..."
9269 CFLAGS="$CFLAGS $GTK_CFLAGS"
9270 LIBS="$LIBS $GTK_LIBS"
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9274
9275 #include <gtk/gtk.h>
9276 #include <stdio.h>
9277
9278 int main() {
9279 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9280 ; return 0; }
9281 EOF
9282 if { (eval echo configure:9283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9283 rm -rf conftest*
9284 echo "*** The test program compiled, but did not run. This usually means"
9285 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9286 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9287 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9288 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9289 echo "*** is required on your system"
9290 echo "***"
9291 echo "*** If you have an old version installed, it is best to remove it, although"
9292 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9293 echo "***"
9294 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9295 echo "*** came with the system with the command"
9296 echo "***"
9297 echo "*** rpm --erase --nodeps gtk gtk-devel"
9298 else
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9301 rm -rf conftest*
9302 echo "*** The test program failed to compile or link. See the file config.log for the"
9303 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9304 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9305 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9306 fi
9307 rm -f conftest*
9308 CFLAGS="$ac_save_CFLAGS"
9309 LIBS="$ac_save_LIBS"
9310 fi
9311 fi
9312 GTK_CFLAGS=""
9313 GTK_LIBS=""
9314 gthread
9315 fi
9316
9317
9318 rm -f conf.gtktest
9319
9320 fi
9321
9322 if test -z "$wx_cv_lib_gtk"; then
9323
9324 if test x$gtk_config_exec_prefix != x ; then
9325 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9326 if test x${GTK_CONFIG+set} != xset ; then
9327 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9328 fi
9329 fi
9330 if test x$gtk_config_prefix != x ; then
9331 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9332 if test x${GTK_CONFIG+set} != xset ; then
9333 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9334 fi
9335 fi
9336
9337 # Extract the first word of "gtk-config", so it can be a program name with args.
9338 set dummy gtk-config; ac_word=$2
9339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9340 echo "configure:9341: checking for $ac_word" >&5
9341 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9342 echo $ac_n "(cached) $ac_c" 1>&6
9343 else
9344 case "$GTK_CONFIG" in
9345 /*)
9346 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9347 ;;
9348 ?:/*)
9349 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9350 ;;
9351 *)
9352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9353 ac_dummy="$PATH"
9354 for ac_dir in $ac_dummy; do
9355 test -z "$ac_dir" && ac_dir=.
9356 if test -f $ac_dir/$ac_word; then
9357 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9358 break
9359 fi
9360 done
9361 IFS="$ac_save_ifs"
9362 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9363 ;;
9364 esac
9365 fi
9366 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9367 if test -n "$GTK_CONFIG"; then
9368 echo "$ac_t""$GTK_CONFIG" 1>&6
9369 else
9370 echo "$ac_t""no" 1>&6
9371 fi
9372
9373 min_gtk_version=1.2.7
9374 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9375 echo "configure:9376: checking for GTK - version >= $min_gtk_version" >&5
9376 no_gtk=""
9377 if test "$GTK_CONFIG" != "no" ; then
9378 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9379 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9380 ac_save_CFLAGS="$CFLAGS"
9381 ac_save_LIBS="$LIBS"
9382 CFLAGS="$CFLAGS $GTK_CFLAGS"
9383 LIBS="$LIBS $GTK_LIBS"
9384 if test "$cross_compiling" = yes; then
9385 echo $ac_n "cross compiling; assumed OK... $ac_c"
9386 else
9387 cat > conftest.$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9390
9391 #include <gtk/gtk.h>
9392 #include <gtk/gtkfeatures.h>
9393 #include <stdio.h>
9394 #include <stdlib.h>
9395
9396 int
9397 main ()
9398 {
9399 int major, minor, micro;
9400
9401 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9402 printf("%s, bad version string\n", "$min_gtk_version");
9403 exit(1);
9404 }
9405
9406 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9407 (GTK_MINOR_VERSION != gtk_minor_version) ||
9408 (GTK_MICRO_VERSION != gtk_micro_version)) {
9409 printf("Headers vs. library version mismatch!\n");
9410 exit(1);
9411 }
9412
9413 if (gtk_minor_version == 1) return FALSE;
9414
9415 return !((gtk_major_version > major) ||
9416 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9417 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9418 }
9419
9420 EOF
9421 if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9422 then
9423 :
9424 else
9425 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 rm -fr conftest*
9428 no_gtk=yes
9429 fi
9430 rm -fr conftest*
9431 fi
9432
9433 CFLAGS="$ac_save_CFLAGS"
9434 LIBS="$ac_save_LIBS"
9435 else
9436 no_gtk=yes
9437 fi
9438 if test "x$no_gtk" = x ; then
9439 echo "$ac_t""yes" 1>&6
9440 wx_cv_lib_gtk=1.2.7
9441 else
9442 echo "$ac_t""no" 1>&6
9443 GTK_CFLAGS=""
9444 GTK_LIBS=""
9445 :
9446 fi
9447
9448
9449
9450 fi
9451
9452 if test -z "$wx_cv_lib_gtk"; then
9453
9454 if test x$gtk_config_exec_prefix != x ; then
9455 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9456 if test x${GTK_CONFIG+set} != xset ; then
9457 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9458 fi
9459 fi
9460 if test x$gtk_config_prefix != x ; then
9461 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9462 if test x${GTK_CONFIG+set} != xset ; then
9463 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9464 fi
9465 fi
9466
9467 # Extract the first word of "gtk-config", so it can be a program name with args.
9468 set dummy gtk-config; ac_word=$2
9469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9470 echo "configure:9471: checking for $ac_word" >&5
9471 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
9473 else
9474 case "$GTK_CONFIG" in
9475 /*)
9476 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9477 ;;
9478 ?:/*)
9479 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9480 ;;
9481 *)
9482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9483 ac_dummy="$PATH"
9484 for ac_dir in $ac_dummy; do
9485 test -z "$ac_dir" && ac_dir=.
9486 if test -f $ac_dir/$ac_word; then
9487 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9488 break
9489 fi
9490 done
9491 IFS="$ac_save_ifs"
9492 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9493 ;;
9494 esac
9495 fi
9496 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9497 if test -n "$GTK_CONFIG"; then
9498 echo "$ac_t""$GTK_CONFIG" 1>&6
9499 else
9500 echo "$ac_t""no" 1>&6
9501 fi
9502
9503 min_gtk_version=1.2.3
9504 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9505 echo "configure:9506: checking for GTK - version >= $min_gtk_version" >&5
9506 no_gtk=""
9507 if test "$GTK_CONFIG" != "no" ; then
9508 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9509 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9510 ac_save_CFLAGS="$CFLAGS"
9511 ac_save_LIBS="$LIBS"
9512 CFLAGS="$CFLAGS $GTK_CFLAGS"
9513 LIBS="$LIBS $GTK_LIBS"
9514 if test "$cross_compiling" = yes; then
9515 echo $ac_n "cross compiling; assumed OK... $ac_c"
9516 else
9517 cat > conftest.$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9520
9521 #include <gtk/gtk.h>
9522 #include <gtk/gtkfeatures.h>
9523 #include <stdio.h>
9524 #include <stdlib.h>
9525
9526 int
9527 main ()
9528 {
9529 int major, minor, micro;
9530
9531 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9532 printf("%s, bad version string\n", "$min_gtk_version");
9533 exit(1);
9534 }
9535
9536 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9537 (GTK_MINOR_VERSION != gtk_minor_version) ||
9538 (GTK_MICRO_VERSION != gtk_micro_version)) {
9539 printf("Headers vs. library version mismatch!\n");
9540 exit(1);
9541 }
9542
9543 if (gtk_minor_version == 1) return FALSE;
9544
9545 return !((gtk_major_version > major) ||
9546 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9547 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9548 }
9549
9550 EOF
9551 if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9552 then
9553 :
9554 else
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9557 rm -fr conftest*
9558 no_gtk=yes
9559 fi
9560 rm -fr conftest*
9561 fi
9562
9563 CFLAGS="$ac_save_CFLAGS"
9564 LIBS="$ac_save_LIBS"
9565 else
9566 no_gtk=yes
9567 fi
9568 if test "x$no_gtk" = x ; then
9569 echo "$ac_t""yes" 1>&6
9570 wx_cv_lib_gtk=1.2.3
9571 else
9572 echo "$ac_t""no" 1>&6
9573 GTK_CFLAGS=""
9574 GTK_LIBS=""
9575 :
9576 fi
9577
9578
9579
9580 fi
9581
9582 if test -z "$wx_cv_lib_gtk"; then
9583 wx_cv_lib_gtk=none
9584 else
9585 wx_cv_cflags_gtk=$GTK_CFLAGS
9586 wx_cv_libs_gtk=$GTK_LIBS
9587 fi
9588
9589
9590 fi
9591
9592
9593 if test "$gtk_version_cached" = 1; then
9594 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9595 fi
9596
9597 case "$wx_cv_lib_gtk" in
9598 2.0) WXGTK20=1
9599 ;;
9600 1.2.7) WXGTK127=1
9601 WXGTK12=1
9602 ;;
9603 1.2.3) WXGTK12=1
9604 ;;
9605 *) { echo "configure: error:
9606 Please check that gtk-config is in path, the directory
9607 where GTK+ libraries are installed (returned by
9608 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9609 equivalent variable and GTK+ is version 1.2.3 or above.
9610 " 1>&2; exit 1; }
9611 ;;
9612 esac
9613
9614 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9615 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9616
9617 AFMINSTALL=afminstall
9618 TOOLKIT=GTK
9619 GUIDIST=GTK_DIST
9620
9621 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9622 echo "configure:9623: checking for gdk_im_open in -lgdk" >&5
9623 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9626 else
9627 ac_save_LIBS="$LIBS"
9628 LIBS="-lgdk $LIBS"
9629 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9632 /* Override any gcc2 internal prototype to avoid an error. */
9633 /* We use char because int might match the return type of a gcc2
9634 builtin and then its argument prototype would still apply. */
9635 char gdk_im_open();
9636
9637 int main() {
9638 gdk_im_open()
9639 ; return 0; }
9640 EOF
9641 if { (eval echo configure:9642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9642 rm -rf conftest*
9643 eval "ac_cv_lib_$ac_lib_var=yes"
9644 else
9645 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9647 rm -rf conftest*
9648 eval "ac_cv_lib_$ac_lib_var=no"
9649 fi
9650 rm -f conftest*
9651 LIBS="$ac_save_LIBS"
9652
9653 fi
9654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9655 echo "$ac_t""yes" 1>&6
9656 cat >> confdefs.h <<\EOF
9657 #define HAVE_XIM 1
9658 EOF
9659
9660 else
9661 echo "$ac_t""no" 1>&6
9662 fi
9663
9664 fi
9665
9666 if test "$wxUSE_MGL" = 1; then
9667
9668 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9669 echo "configure:9670: checking for SciTech MGL library" >&5
9670 if test "x$MGL_ROOT" = x ; then
9671 echo "$ac_t""not found" 1>&6
9672 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9673 else
9674 echo "$ac_t""$MGL_ROOT" 1>&6
9675 fi
9676
9677 mgl_os=linux/gcc/glibc
9678 mgl_lib_type=""
9679
9680 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9681 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9682 mgl_lib_type=debug
9683 fi
9684 fi
9685 if test "x$mgl_lib_type" = x ; then
9686 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9687 mgl_lib_type=release
9688 else
9689 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9690 fi
9691 fi
9692
9693 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9694 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
9695
9696 AFMINSTALL=afminstall
9697 TOOLKIT=MGL
9698 GUIDIST=MGL_DIST
9699 fi
9700
9701 if test "$wxUSE_WINE" = 1; then
9702 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9703 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9704 echo "configure:9705: checking for windows.h" >&5
9705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9706 echo $ac_n "(cached) $ac_c" 1>&6
9707 else
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 #include <windows.h>
9712 EOF
9713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9714 { (eval echo configure:9715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9716 if test -z "$ac_err"; then
9717 rm -rf conftest*
9718 eval "ac_cv_header_$ac_safe=yes"
9719 else
9720 echo "$ac_err" >&5
9721 echo "configure: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 rm -rf conftest*
9724 eval "ac_cv_header_$ac_safe=no"
9725 fi
9726 rm -f conftest*
9727 fi
9728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9729 echo "$ac_t""yes" 1>&6
9730 :
9731 else
9732 echo "$ac_t""no" 1>&6
9733
9734 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9735
9736 fi
9737
9738
9739 xpm_link=""
9740 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9741 echo "configure:9742: checking for Xpm library" >&5
9742
9743 ac_find_libraries=
9744 for ac_dir in $SEARCH_LIB;
9745 do
9746 for ac_extension in a so sl dylib; do
9747 if test -f "$ac_dir/libXpm.$ac_extension"; then
9748 ac_find_libraries=$ac_dir
9749 break 2
9750 fi
9751 done
9752 done
9753
9754 if test "$ac_find_libraries" != "" ; then
9755 GUI_TK_LIBRARY="-L$ac_find_libraries"
9756 xpm_link="-lXpm"
9757 cat >> confdefs.h <<\EOF
9758 #define wxHAVE_LIB_XPM 1
9759 EOF
9760
9761 echo "$ac_t""found at $ac_find_libraries" 1>&6
9762 else
9763 echo "$ac_t""no" 1>&6
9764 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9765 fi
9766
9767 mesa_link=""
9768 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9769 echo "configure:9770: checking for Mesa library" >&5
9770
9771 ac_find_libraries=
9772 for ac_dir in $SEARCH_LIB;
9773 do
9774 for ac_extension in a so sl dylib; do
9775 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9776 ac_find_libraries=$ac_dir
9777 break 2
9778 fi
9779 done
9780 done
9781
9782 if test "$ac_find_libraries" != "" ; then
9783 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9784 mesa_link="-lMesaGL"
9785 echo "$ac_t""found at $ac_find_libraries" 1>&6
9786 else
9787 { echo "configure: error: no" 1>&2; exit 1; }
9788 fi
9789
9790 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9791 TOOLKIT=MSW
9792 GUIDIST=MSW_DIST
9793 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
9794 fi
9795
9796
9797 # If we find X, set shell vars x_includes and x_libraries to the
9798 # paths, otherwise set no_x=yes.
9799 # Uses ac_ vars as temps to allow command line to override cache and checks.
9800 # --without-x overrides everything else, but does not touch the cache.
9801 echo $ac_n "checking for X""... $ac_c" 1>&6
9802 echo "configure:9803: checking for X" >&5
9803
9804 # Check whether --with-x or --without-x was given.
9805 if test "${with_x+set}" = set; then
9806 withval="$with_x"
9807 :
9808 fi
9809
9810 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9811 if test "x$with_x" = xno; then
9812 # The user explicitly disabled X.
9813 have_x=disabled
9814 else
9815 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9816 # Both variables are already set.
9817 have_x=yes
9818 else
9819 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9820 echo $ac_n "(cached) $ac_c" 1>&6
9821 else
9822 # One or both of the vars are not set, and there is no cached value.
9823 ac_x_includes=NO ac_x_libraries=NO
9824 rm -fr conftestdir
9825 if mkdir conftestdir; then
9826 cd conftestdir
9827 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9828 cat > Imakefile <<'EOF'
9829 acfindx:
9830 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9831 EOF
9832 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9834 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9835 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9836 for ac_extension in a so sl; do
9837 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9838 test -f $ac_im_libdir/libX11.$ac_extension; then
9839 ac_im_usrlibdir=$ac_im_libdir; break
9840 fi
9841 done
9842 # Screen out bogus values from the imake configuration. They are
9843 # bogus both because they are the default anyway, and because
9844 # using them would break gcc on systems where it needs fixed includes.
9845 case "$ac_im_incroot" in
9846 /usr/include) ;;
9847 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9848 esac
9849 case "$ac_im_usrlibdir" in
9850 /usr/lib | /lib) ;;
9851 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9852 esac
9853 fi
9854 cd ..
9855 rm -fr conftestdir
9856 fi
9857
9858 if test "$ac_x_includes" = NO; then
9859 # Guess where to find include files, by looking for this one X11 .h file.
9860 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9861
9862 # First, try using that file with no special directory specified.
9863 cat > conftest.$ac_ext <<EOF
9864 #line 9865 "configure"
9865 #include "confdefs.h"
9866 #include <$x_direct_test_include>
9867 EOF
9868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9869 { (eval echo configure:9870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9871 if test -z "$ac_err"; then
9872 rm -rf conftest*
9873 # We can compile using X headers with no special include directory.
9874 ac_x_includes=
9875 else
9876 echo "$ac_err" >&5
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 rm -rf conftest*
9880 # Look for the header file in a standard set of common directories.
9881 # Check X11 before X11Rn because it is often a symlink to the current release.
9882 for ac_dir in \
9883 /usr/X11/include \
9884 /usr/X11R6/include \
9885 /usr/X11R5/include \
9886 /usr/X11R4/include \
9887 \
9888 /usr/include/X11 \
9889 /usr/include/X11R6 \
9890 /usr/include/X11R5 \
9891 /usr/include/X11R4 \
9892 \
9893 /usr/local/X11/include \
9894 /usr/local/X11R6/include \
9895 /usr/local/X11R5/include \
9896 /usr/local/X11R4/include \
9897 \
9898 /usr/local/include/X11 \
9899 /usr/local/include/X11R6 \
9900 /usr/local/include/X11R5 \
9901 /usr/local/include/X11R4 \
9902 \
9903 /usr/X386/include \
9904 /usr/x386/include \
9905 /usr/XFree86/include/X11 \
9906 \
9907 /usr/include \
9908 /usr/local/include \
9909 /usr/unsupported/include \
9910 /usr/athena/include \
9911 /usr/local/x11r5/include \
9912 /usr/lpp/Xamples/include \
9913 \
9914 /usr/openwin/include \
9915 /usr/openwin/share/include \
9916 ; \
9917 do
9918 if test -r "$ac_dir/$x_direct_test_include"; then
9919 ac_x_includes=$ac_dir
9920 break
9921 fi
9922 done
9923 fi
9924 rm -f conftest*
9925 fi # $ac_x_includes = NO
9926
9927 if test "$ac_x_libraries" = NO; then
9928 # Check for the libraries.
9929
9930 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9931 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9932
9933 # See if we find them without any special options.
9934 # Don't add to $LIBS permanently.
9935 ac_save_LIBS="$LIBS"
9936 LIBS="-l$x_direct_test_library $LIBS"
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940
9941 int main() {
9942 ${x_direct_test_function}()
9943 ; return 0; }
9944 EOF
9945 if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9946 rm -rf conftest*
9947 LIBS="$ac_save_LIBS"
9948 # We can link X programs with no special library path.
9949 ac_x_libraries=
9950 else
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -rf conftest*
9954 LIBS="$ac_save_LIBS"
9955 # First see if replacing the include by lib works.
9956 # Check X11 before X11Rn because it is often a symlink to the current release.
9957 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9958 /usr/X11/lib \
9959 /usr/X11R6/lib \
9960 /usr/X11R5/lib \
9961 /usr/X11R4/lib \
9962 \
9963 /usr/lib/X11 \
9964 /usr/lib/X11R6 \
9965 /usr/lib/X11R5 \
9966 /usr/lib/X11R4 \
9967 \
9968 /usr/local/X11/lib \
9969 /usr/local/X11R6/lib \
9970 /usr/local/X11R5/lib \
9971 /usr/local/X11R4/lib \
9972 \
9973 /usr/local/lib/X11 \
9974 /usr/local/lib/X11R6 \
9975 /usr/local/lib/X11R5 \
9976 /usr/local/lib/X11R4 \
9977 \
9978 /usr/X386/lib \
9979 /usr/x386/lib \
9980 /usr/XFree86/lib/X11 \
9981 \
9982 /usr/lib \
9983 /usr/local/lib \
9984 /usr/unsupported/lib \
9985 /usr/athena/lib \
9986 /usr/local/x11r5/lib \
9987 /usr/lpp/Xamples/lib \
9988 /lib/usr/lib/X11 \
9989 \
9990 /usr/openwin/lib \
9991 /usr/openwin/share/lib \
9992 ; \
9993 do
9994 for ac_extension in a so sl; do
9995 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9996 ac_x_libraries=$ac_dir
9997 break 2
9998 fi
9999 done
10000 done
10001 fi
10002 rm -f conftest*
10003 fi # $ac_x_libraries = NO
10004
10005 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10006 # Didn't find X anywhere. Cache the known absence of X.
10007 ac_cv_have_x="have_x=no"
10008 else
10009 # Record where we found X for the cache.
10010 ac_cv_have_x="have_x=yes \
10011 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10012 fi
10013 fi
10014 fi
10015 eval "$ac_cv_have_x"
10016 fi # $with_x != no
10017
10018 if test "$have_x" != yes; then
10019 echo "$ac_t""$have_x" 1>&6
10020 no_x=yes
10021 else
10022 # If each of the values was on the command line, it overrides each guess.
10023 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10024 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10025 # Update the cache value to reflect the command line values.
10026 ac_cv_have_x="have_x=yes \
10027 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10028 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10029 fi
10030
10031 if test "$no_x" = yes; then
10032 # Not all programs may use this symbol, but it does not hurt to define it.
10033 cat >> confdefs.h <<\EOF
10034 #define X_DISPLAY_MISSING 1
10035 EOF
10036
10037 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10038 else
10039 if test -n "$x_includes"; then
10040 X_CFLAGS="$X_CFLAGS -I$x_includes"
10041 fi
10042
10043 # It would also be nice to do this for all -L options, not just this one.
10044 if test -n "$x_libraries"; then
10045 X_LIBS="$X_LIBS -L$x_libraries"
10046 # For Solaris; some versions of Sun CC require a space after -R and
10047 # others require no space. Words are not sufficient . . . .
10048 case "`(uname -sr) 2>/dev/null`" in
10049 "SunOS 5"*)
10050 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10051 echo "configure:10052: checking whether -R must be followed by a space" >&5
10052 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10053 cat > conftest.$ac_ext <<EOF
10054 #line 10055 "configure"
10055 #include "confdefs.h"
10056
10057 int main() {
10058
10059 ; return 0; }
10060 EOF
10061 if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10062 rm -rf conftest*
10063 ac_R_nospace=yes
10064 else
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 rm -rf conftest*
10068 ac_R_nospace=no
10069 fi
10070 rm -f conftest*
10071 if test $ac_R_nospace = yes; then
10072 echo "$ac_t""no" 1>&6
10073 X_LIBS="$X_LIBS -R$x_libraries"
10074 else
10075 LIBS="$ac_xsave_LIBS -R $x_libraries"
10076 cat > conftest.$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10079
10080 int main() {
10081
10082 ; return 0; }
10083 EOF
10084 if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10085 rm -rf conftest*
10086 ac_R_space=yes
10087 else
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 rm -rf conftest*
10091 ac_R_space=no
10092 fi
10093 rm -f conftest*
10094 if test $ac_R_space = yes; then
10095 echo "$ac_t""yes" 1>&6
10096 X_LIBS="$X_LIBS -R $x_libraries"
10097 else
10098 echo "$ac_t""neither works" 1>&6
10099 fi
10100 fi
10101 LIBS="$ac_xsave_LIBS"
10102 esac
10103 fi
10104
10105 # Check for system-dependent libraries X programs must link with.
10106 # Do this before checking for the system-independent R6 libraries
10107 # (-lICE), since we may need -lsocket or whatever for X linking.
10108
10109 if test "$ISC" = yes; then
10110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10111 else
10112 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10113 # libraries were built with DECnet support. And karl@cs.umb.edu says
10114 # the Alpha needs dnet_stub (dnet does not exist).
10115 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10116 echo "configure:10117: checking for dnet_ntoa in -ldnet" >&5
10117 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10120 else
10121 ac_save_LIBS="$LIBS"
10122 LIBS="-ldnet $LIBS"
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 /* Override any gcc2 internal prototype to avoid an error. */
10127 /* We use char because int might match the return type of a gcc2
10128 builtin and then its argument prototype would still apply. */
10129 char dnet_ntoa();
10130
10131 int main() {
10132 dnet_ntoa()
10133 ; return 0; }
10134 EOF
10135 if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10136 rm -rf conftest*
10137 eval "ac_cv_lib_$ac_lib_var=yes"
10138 else
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10141 rm -rf conftest*
10142 eval "ac_cv_lib_$ac_lib_var=no"
10143 fi
10144 rm -f conftest*
10145 LIBS="$ac_save_LIBS"
10146
10147 fi
10148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10149 echo "$ac_t""yes" 1>&6
10150 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10151 else
10152 echo "$ac_t""no" 1>&6
10153 fi
10154
10155 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10156 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10157 echo "configure:10158: checking for dnet_ntoa in -ldnet_stub" >&5
10158 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10161 else
10162 ac_save_LIBS="$LIBS"
10163 LIBS="-ldnet_stub $LIBS"
10164 cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10167 /* Override any gcc2 internal prototype to avoid an error. */
10168 /* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10170 char dnet_ntoa();
10171
10172 int main() {
10173 dnet_ntoa()
10174 ; return 0; }
10175 EOF
10176 if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10177 rm -rf conftest*
10178 eval "ac_cv_lib_$ac_lib_var=yes"
10179 else
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10182 rm -rf conftest*
10183 eval "ac_cv_lib_$ac_lib_var=no"
10184 fi
10185 rm -f conftest*
10186 LIBS="$ac_save_LIBS"
10187
10188 fi
10189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10190 echo "$ac_t""yes" 1>&6
10191 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10192 else
10193 echo "$ac_t""no" 1>&6
10194 fi
10195
10196 fi
10197
10198 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10199 # to get the SysV transport functions.
10200 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10201 # needs -lnsl.
10202 # The nsl library prevents programs from opening the X display
10203 # on Irix 5.2, according to dickey@clark.net.
10204 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10205 echo "configure:10206: checking for gethostbyname" >&5
10206 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10208 else
10209 cat > conftest.$ac_ext <<EOF
10210 #line 10211 "configure"
10211 #include "confdefs.h"
10212 /* System header to define __stub macros and hopefully few prototypes,
10213 which can conflict with char gethostbyname(); below. */
10214 #include <assert.h>
10215 /* Override any gcc2 internal prototype to avoid an error. */
10216 /* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10218 char gethostbyname();
10219
10220 int main() {
10221
10222 /* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
10225 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10226 choke me
10227 #else
10228 gethostbyname();
10229 #endif
10230
10231 ; return 0; }
10232 EOF
10233 if { (eval echo configure:10234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10234 rm -rf conftest*
10235 eval "ac_cv_func_gethostbyname=yes"
10236 else
10237 echo "configure: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10239 rm -rf conftest*
10240 eval "ac_cv_func_gethostbyname=no"
10241 fi
10242 rm -f conftest*
10243 fi
10244
10245 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10246 echo "$ac_t""yes" 1>&6
10247 :
10248 else
10249 echo "$ac_t""no" 1>&6
10250 fi
10251
10252 if test $ac_cv_func_gethostbyname = no; then
10253 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10254 echo "configure:10255: checking for gethostbyname in -lnsl" >&5
10255 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10257 echo $ac_n "(cached) $ac_c" 1>&6
10258 else
10259 ac_save_LIBS="$LIBS"
10260 LIBS="-lnsl $LIBS"
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 /* Override any gcc2 internal prototype to avoid an error. */
10265 /* We use char because int might match the return type of a gcc2
10266 builtin and then its argument prototype would still apply. */
10267 char gethostbyname();
10268
10269 int main() {
10270 gethostbyname()
10271 ; return 0; }
10272 EOF
10273 if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10274 rm -rf conftest*
10275 eval "ac_cv_lib_$ac_lib_var=yes"
10276 else
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10279 rm -rf conftest*
10280 eval "ac_cv_lib_$ac_lib_var=no"
10281 fi
10282 rm -f conftest*
10283 LIBS="$ac_save_LIBS"
10284
10285 fi
10286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10287 echo "$ac_t""yes" 1>&6
10288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10289 else
10290 echo "$ac_t""no" 1>&6
10291 fi
10292
10293 fi
10294
10295 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10296 # socket/setsockopt and other routines are undefined under SCO ODT
10297 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10298 # on later versions), says simon@lia.di.epfl.ch: it contains
10299 # gethostby* variants that don't use the nameserver (or something).
10300 # -lsocket must be given before -lnsl if both are needed.
10301 # We assume that if connect needs -lnsl, so does gethostbyname.
10302 echo $ac_n "checking for connect""... $ac_c" 1>&6
10303 echo "configure:10304: checking for connect" >&5
10304 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10306 else
10307 cat > conftest.$ac_ext <<EOF
10308 #line 10309 "configure"
10309 #include "confdefs.h"
10310 /* System header to define __stub macros and hopefully few prototypes,
10311 which can conflict with char connect(); below. */
10312 #include <assert.h>
10313 /* Override any gcc2 internal prototype to avoid an error. */
10314 /* We use char because int might match the return type of a gcc2
10315 builtin and then its argument prototype would still apply. */
10316 char connect();
10317
10318 int main() {
10319
10320 /* The GNU C library defines this for functions which it implements
10321 to always fail with ENOSYS. Some functions are actually named
10322 something starting with __ and the normal name is an alias. */
10323 #if defined (__stub_connect) || defined (__stub___connect)
10324 choke me
10325 #else
10326 connect();
10327 #endif
10328
10329 ; return 0; }
10330 EOF
10331 if { (eval echo configure:10332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10332 rm -rf conftest*
10333 eval "ac_cv_func_connect=yes"
10334 else
10335 echo "configure: failed program was:" >&5
10336 cat conftest.$ac_ext >&5
10337 rm -rf conftest*
10338 eval "ac_cv_func_connect=no"
10339 fi
10340 rm -f conftest*
10341 fi
10342
10343 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10344 echo "$ac_t""yes" 1>&6
10345 :
10346 else
10347 echo "$ac_t""no" 1>&6
10348 fi
10349
10350 if test $ac_cv_func_connect = no; then
10351 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10352 echo "configure:10353: checking for connect in -lsocket" >&5
10353 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10356 else
10357 ac_save_LIBS="$LIBS"
10358 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10359 cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10362 /* Override any gcc2 internal prototype to avoid an error. */
10363 /* We use char because int might match the return type of a gcc2
10364 builtin and then its argument prototype would still apply. */
10365 char connect();
10366
10367 int main() {
10368 connect()
10369 ; return 0; }
10370 EOF
10371 if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10372 rm -rf conftest*
10373 eval "ac_cv_lib_$ac_lib_var=yes"
10374 else
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10377 rm -rf conftest*
10378 eval "ac_cv_lib_$ac_lib_var=no"
10379 fi
10380 rm -f conftest*
10381 LIBS="$ac_save_LIBS"
10382
10383 fi
10384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10385 echo "$ac_t""yes" 1>&6
10386 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10387 else
10388 echo "$ac_t""no" 1>&6
10389 fi
10390
10391 fi
10392
10393 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10394 echo $ac_n "checking for remove""... $ac_c" 1>&6
10395 echo "configure:10396: checking for remove" >&5
10396 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10398 else
10399 cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10402 /* System header to define __stub macros and hopefully few prototypes,
10403 which can conflict with char remove(); below. */
10404 #include <assert.h>
10405 /* Override any gcc2 internal prototype to avoid an error. */
10406 /* We use char because int might match the return type of a gcc2
10407 builtin and then its argument prototype would still apply. */
10408 char remove();
10409
10410 int main() {
10411
10412 /* The GNU C library defines this for functions which it implements
10413 to always fail with ENOSYS. Some functions are actually named
10414 something starting with __ and the normal name is an alias. */
10415 #if defined (__stub_remove) || defined (__stub___remove)
10416 choke me
10417 #else
10418 remove();
10419 #endif
10420
10421 ; return 0; }
10422 EOF
10423 if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10424 rm -rf conftest*
10425 eval "ac_cv_func_remove=yes"
10426 else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 rm -rf conftest*
10430 eval "ac_cv_func_remove=no"
10431 fi
10432 rm -f conftest*
10433 fi
10434
10435 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
10437 :
10438 else
10439 echo "$ac_t""no" 1>&6
10440 fi
10441
10442 if test $ac_cv_func_remove = no; then
10443 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10444 echo "configure:10445: checking for remove in -lposix" >&5
10445 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10447 echo $ac_n "(cached) $ac_c" 1>&6
10448 else
10449 ac_save_LIBS="$LIBS"
10450 LIBS="-lposix $LIBS"
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 /* Override any gcc2 internal prototype to avoid an error. */
10455 /* We use char because int might match the return type of a gcc2
10456 builtin and then its argument prototype would still apply. */
10457 char remove();
10458
10459 int main() {
10460 remove()
10461 ; return 0; }
10462 EOF
10463 if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10464 rm -rf conftest*
10465 eval "ac_cv_lib_$ac_lib_var=yes"
10466 else
10467 echo "configure: failed program was:" >&5
10468 cat conftest.$ac_ext >&5
10469 rm -rf conftest*
10470 eval "ac_cv_lib_$ac_lib_var=no"
10471 fi
10472 rm -f conftest*
10473 LIBS="$ac_save_LIBS"
10474
10475 fi
10476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10477 echo "$ac_t""yes" 1>&6
10478 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10479 else
10480 echo "$ac_t""no" 1>&6
10481 fi
10482
10483 fi
10484
10485 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10486 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10487 echo "configure:10488: checking for shmat" >&5
10488 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10489 echo $ac_n "(cached) $ac_c" 1>&6
10490 else
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 /* System header to define __stub macros and hopefully few prototypes,
10495 which can conflict with char shmat(); below. */
10496 #include <assert.h>
10497 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500 char shmat();
10501
10502 int main() {
10503
10504 /* The GNU C library defines this for functions which it implements
10505 to always fail with ENOSYS. Some functions are actually named
10506 something starting with __ and the normal name is an alias. */
10507 #if defined (__stub_shmat) || defined (__stub___shmat)
10508 choke me
10509 #else
10510 shmat();
10511 #endif
10512
10513 ; return 0; }
10514 EOF
10515 if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10516 rm -rf conftest*
10517 eval "ac_cv_func_shmat=yes"
10518 else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522 eval "ac_cv_func_shmat=no"
10523 fi
10524 rm -f conftest*
10525 fi
10526
10527 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10528 echo "$ac_t""yes" 1>&6
10529 :
10530 else
10531 echo "$ac_t""no" 1>&6
10532 fi
10533
10534 if test $ac_cv_func_shmat = no; then
10535 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10536 echo "configure:10537: checking for shmat in -lipc" >&5
10537 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10539 echo $ac_n "(cached) $ac_c" 1>&6
10540 else
10541 ac_save_LIBS="$LIBS"
10542 LIBS="-lipc $LIBS"
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 /* Override any gcc2 internal prototype to avoid an error. */
10547 /* We use char because int might match the return type of a gcc2
10548 builtin and then its argument prototype would still apply. */
10549 char shmat();
10550
10551 int main() {
10552 shmat()
10553 ; return 0; }
10554 EOF
10555 if { (eval echo configure:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10556 rm -rf conftest*
10557 eval "ac_cv_lib_$ac_lib_var=yes"
10558 else
10559 echo "configure: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 rm -rf conftest*
10562 eval "ac_cv_lib_$ac_lib_var=no"
10563 fi
10564 rm -f conftest*
10565 LIBS="$ac_save_LIBS"
10566
10567 fi
10568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10571 else
10572 echo "$ac_t""no" 1>&6
10573 fi
10574
10575 fi
10576 fi
10577
10578 # Check for libraries that X11R6 Xt/Xaw programs need.
10579 ac_save_LDFLAGS="$LDFLAGS"
10580 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10581 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10582 # check for ICE first), but we must link in the order -lSM -lICE or
10583 # we get undefined symbols. So assume we have SM if we have ICE.
10584 # These have to be linked with before -lX11, unlike the other
10585 # libraries we check for below, so use a different variable.
10586 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10587 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10588 echo "configure:10589: checking for IceConnectionNumber in -lICE" >&5
10589 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10592 else
10593 ac_save_LIBS="$LIBS"
10594 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10595 cat > conftest.$ac_ext <<EOF
10596 #line 10597 "configure"
10597 #include "confdefs.h"
10598 /* Override any gcc2 internal prototype to avoid an error. */
10599 /* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601 char IceConnectionNumber();
10602
10603 int main() {
10604 IceConnectionNumber()
10605 ; return 0; }
10606 EOF
10607 if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10608 rm -rf conftest*
10609 eval "ac_cv_lib_$ac_lib_var=yes"
10610 else
10611 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 rm -rf conftest*
10614 eval "ac_cv_lib_$ac_lib_var=no"
10615 fi
10616 rm -f conftest*
10617 LIBS="$ac_save_LIBS"
10618
10619 fi
10620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10621 echo "$ac_t""yes" 1>&6
10622 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10623 else
10624 echo "$ac_t""no" 1>&6
10625 fi
10626
10627 LDFLAGS="$ac_save_LDFLAGS"
10628
10629 fi
10630
10631 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10632 LDFLAGS="$LDFLAGS $X_LIBS"
10633
10634 if test "$wxUSE_MOTIF" = 1; then
10635 if test "$no_x" = "yes"; then
10636 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10637 fi
10638
10639 GUI_TK_LIBRARY="$X_LIBS"
10640 TOOLKIT_INCLUDE="$X_CFLAGS"
10641 AFMINSTALL=afminstall
10642 COMPILED_X_PROGRAM=0
10643
10644 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10645 echo "configure:10646: checking for Motif/Lesstif headers" >&5
10646
10647 ac_find_includes=
10648 for ac_dir in $SEARCH_INCLUDE;
10649 do
10650 if test -f "$ac_dir/Xm/Xm.h"; then
10651 ac_find_includes=$ac_dir
10652 break
10653 fi
10654 done
10655
10656 if test "$ac_find_includes" != "" ; then
10657 echo "$ac_t""found $ac_find_includes" 1>&6
10658 else
10659 cat > conftest.$ac_ext <<EOF
10660 #line 10661 "configure"
10661 #include "confdefs.h"
10662
10663 #include <Xm/Xm.h>
10664
10665 int main() {
10666
10667 int version;
10668 version = xmUseVersion;
10669
10670 ; return 0; }
10671 EOF
10672 if { (eval echo configure:10673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10673 rm -rf conftest*
10674
10675 echo "$ac_t""found in default search path" 1>&6
10676 COMPILED_X_PROGRAM=1
10677
10678 else
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 rm -rf conftest*
10682
10683 echo "$ac_t""no" 1>&6
10684 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10685
10686
10687 fi
10688 rm -f conftest*
10689 fi
10690
10691 if test "$COMPILED_X_PROGRAM" = 0; then
10692 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10693 echo "configure:10694: checking for Motif/Lesstif library" >&5
10694
10695 ac_find_libraries=
10696 for ac_dir in $SEARCH_LIB;
10697 do
10698 for ac_extension in a so sl dylib; do
10699 if test -f "$ac_dir/libXm.$ac_extension"; then
10700 ac_find_libraries=$ac_dir
10701 break 2
10702 fi
10703 done
10704 done
10705
10706 if test "$ac_find_libraries" != "" ; then
10707
10708 ac_path_to_include=$ac_find_includes
10709 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10710 result=$?
10711 if test $result = 0; then
10712 ac_path_to_include=""
10713 else
10714 ac_path_to_include="-I$ac_find_includes"
10715 fi
10716
10717
10718 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10719 result=$?
10720 if test $result = 0; then
10721 ac_path_to_link=""
10722 else
10723 ac_path_to_link="-L$ac_find_libraries"
10724 fi
10725
10726
10727 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10728 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10729 echo "$ac_t""found at $ac_find_libraries" 1>&6
10730 else
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734
10735 #include <Xm/Xm.h>
10736
10737 int main() {
10738
10739 int version;
10740 version = xmUseVersion;
10741
10742 ; return 0; }
10743 EOF
10744 if { (eval echo configure:10745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10745 rm -rf conftest*
10746
10747 echo "$ac_t""found in default search path" 1>&6
10748 COMPILED_X_PROGRAM=1
10749
10750 else
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 rm -rf conftest*
10754
10755 echo "$ac_t""no" 1>&6
10756 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10757
10758
10759 fi
10760 rm -f conftest*
10761 fi
10762 fi
10763
10764 xpm_link=""
10765 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10766 echo "configure:10767: checking for Xpm library" >&5
10767
10768 ac_find_libraries=
10769 for ac_dir in $SEARCH_LIB;
10770 do
10771 for ac_extension in a so sl dylib; do
10772 if test -f "$ac_dir/libXpm.$ac_extension"; then
10773 ac_find_libraries=$ac_dir
10774 break 2
10775 fi
10776 done
10777 done
10778
10779 if test "$ac_find_libraries" != "" ; then
10780
10781 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10782 result=$?
10783 if test $result = 0; then
10784 ac_path_to_link=""
10785 else
10786 ac_path_to_link="-L$ac_find_libraries"
10787 fi
10788
10789 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10790 xpm_link="-lXpm "
10791 cat >> confdefs.h <<\EOF
10792 #define wxHAVE_LIB_XPM 1
10793 EOF
10794
10795 echo "$ac_t""found at $ac_find_libraries" 1>&6
10796 else
10797 cat > conftest.$ac_ext <<EOF
10798 #line 10799 "configure"
10799 #include "confdefs.h"
10800
10801 #include <X11/xpm.h>
10802
10803 int main() {
10804
10805 int version;
10806 version = XpmLibraryVersion();
10807
10808 ; return 0; }
10809 EOF
10810 if { (eval echo configure:10811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10811 rm -rf conftest*
10812
10813 xpm_link="-lXpm "
10814 cat >> confdefs.h <<\EOF
10815 #define wxHAVE_LIB_XPM 1
10816 EOF
10817
10818 echo "$ac_t""found in default search path" 1>&6
10819 COMPILED_X_PROGRAM=0
10820
10821 else
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 rm -rf conftest*
10825
10826 echo "$ac_t""no" 1>&6
10827 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10828
10829
10830 fi
10831 rm -f conftest*
10832 fi
10833
10834 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
10835 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10836 TOOLKIT=MOTIF
10837 GUIDIST=MOTIF_DIST
10838 fi
10839
10840 if test "$wxUSE_MAC" = 1; then
10841 TOOLKIT=MAC
10842 GUIDIST=MACX_DIST
10843 fi
10844
10845 if test "$wxUSE_PM" = 1; then
10846 TOOLKIT=PM
10847 GUIDIST=GTK_DIST
10848 fi
10849
10850 if test "$TOOLKIT" = "PM" ; then
10851 TOOLKIT_DIR="os2"
10852 else
10853 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10854 fi
10855
10856 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10857
10858 if test "$wxUSE_UNIVERSAL" = "yes"; then
10859 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10860 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10861 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10862 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10863 WIDGET_SET=univ
10864 else
10865 ALL_OBJECTS="\$(GUIOBJS)"
10866 fi
10867
10868 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10869
10870 if test "$TOOLKIT" != "MSW"; then
10871 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10872 fi
10873
10874 if test "$wxUSE_HTML" = "yes"; then
10875 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10876 fi
10877
10878 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10879 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10880 fi
10881 if test "$wxUSE_LIBJPEG" = "yes" ; then
10882 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10883 fi
10884 if test "$wxUSE_LIBTIFF" = "yes" ; then
10885 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10886 fi
10887 if test "$wxUSE_LIBPNG" = "yes" ; then
10888 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10889 fi
10890 if test "$wxUSE_FREETYPE" = "yes" ; then
10891 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10892 fi
10893
10894 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10895 RPM_SPEC="wx\$(TOOLKIT).spec"
10896
10897 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10898 DISTDIR="wx\$(TOOLKIT)"
10899 else
10900 USE_GUI=0
10901
10902 TOOLKIT_DIR="base"
10903
10904 if test "$USE_WIN32" = 1 ; then
10905 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
10906 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
10907
10908 TOOLKIT="MSW"
10909 else
10910 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
10911 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
10912 fi
10913
10914 PORT_FILES="\${top_srcdir}/src/files.lst"
10915 RPM_FILES="src/rpmfiles.lst"
10916 RPM_SPEC="wxBase.spec"
10917
10918 GUIDIST="BASE_DIST"
10919 DISTDIR="wxBase"
10920 fi
10921
10922 if test "x$REGEX_INCLUDE" != "x" ; then
10923 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10924 fi
10925 if test "$wxUSE_ZLIB" = "yes" ; then
10926 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10927 fi
10928
10929 if test "$wxUSE_OPENGL" = "yes"; then
10930 if test "$wxUSE_MAC" = 1; then
10931 cat >> confdefs.h <<\EOF
10932 #define wxUSE_OPENGL 1
10933 EOF
10934
10935 cat >> confdefs.h <<\EOF
10936 #define wxUSE_GLCANVAS 1
10937 EOF
10938
10939 OPENGL_LIBS="-framework OpenGL -framework AGL"
10940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
10941 else
10942 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10943 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
10944 echo "configure:10945: checking for GL/gl.h" >&5
10945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10947 else
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 #include <GL/gl.h>
10952 EOF
10953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10954 { (eval echo configure:10955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10956 if test -z "$ac_err"; then
10957 rm -rf conftest*
10958 eval "ac_cv_header_$ac_safe=yes"
10959 else
10960 echo "$ac_err" >&5
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 rm -rf conftest*
10964 eval "ac_cv_header_$ac_safe=no"
10965 fi
10966 rm -f conftest*
10967 fi
10968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10969 echo "$ac_t""yes" 1>&6
10970
10971 cat >> confdefs.h <<\EOF
10972 #define wxUSE_OPENGL 1
10973 EOF
10974
10975 cat >> confdefs.h <<\EOF
10976 #define wxUSE_GLCANVAS 1
10977 EOF
10978
10979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
10980 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
10981 echo "configure:10982: checking for glFlush in -lGL" >&5
10982 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10984 echo $ac_n "(cached) $ac_c" 1>&6
10985 else
10986 ac_save_LIBS="$LIBS"
10987 LIBS="-lGL $LIBS"
10988 cat > conftest.$ac_ext <<EOF
10989 #line 10990 "configure"
10990 #include "confdefs.h"
10991 /* Override any gcc2 internal prototype to avoid an error. */
10992 /* We use char because int might match the return type of a gcc2
10993 builtin and then its argument prototype would still apply. */
10994 char glFlush();
10995
10996 int main() {
10997 glFlush()
10998 ; return 0; }
10999 EOF
11000 if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11001 rm -rf conftest*
11002 eval "ac_cv_lib_$ac_lib_var=yes"
11003 else
11004 echo "configure: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11006 rm -rf conftest*
11007 eval "ac_cv_lib_$ac_lib_var=no"
11008 fi
11009 rm -f conftest*
11010 LIBS="$ac_save_LIBS"
11011
11012 fi
11013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11014 echo "$ac_t""yes" 1>&6
11015
11016 OPENGL_LIBS="-lGL -lGLU"
11017
11018 else
11019 echo "$ac_t""no" 1>&6
11020
11021 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11022 echo "configure:11023: checking for glFlush in -lMesaGL" >&5
11023 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11026 else
11027 ac_save_LIBS="$LIBS"
11028 LIBS="-lMesaGL $LIBS"
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 /* Override any gcc2 internal prototype to avoid an error. */
11033 /* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035 char glFlush();
11036
11037 int main() {
11038 glFlush()
11039 ; return 0; }
11040 EOF
11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11042 rm -rf conftest*
11043 eval "ac_cv_lib_$ac_lib_var=yes"
11044 else
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11047 rm -rf conftest*
11048 eval "ac_cv_lib_$ac_lib_var=no"
11049 fi
11050 rm -f conftest*
11051 LIBS="$ac_save_LIBS"
11052
11053 fi
11054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11055 echo "$ac_t""yes" 1>&6
11056
11057 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11058
11059 else
11060 echo "$ac_t""no" 1>&6
11061 fi
11062
11063
11064 fi
11065
11066
11067 else
11068 echo "$ac_t""no" 1>&6
11069 wxUSE_OPENGL=0
11070 fi
11071
11072 fi
11073 fi
11074
11075 if test -z "$TOOLKIT_VPATH" ; then
11076 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11077 fi
11078
11079 if test -n "$TOOLKIT" ; then
11080 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11081 fi
11082
11083 if test "$wxUSE_CYGWIN" = 1 ; then
11084 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11085 fi
11086
11087 lib_debug_suffix=
11088 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11089 lib_debug_suffix=d
11090 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11091 fi
11092
11093 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11094 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11095
11096 if test "$cross_compiling" = "yes"; then
11097 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11098 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11099 fi
11100
11101 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11102 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11103
11104 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11105
11106 if test "$wxUSE_OPENGL" = "yes"; then
11107 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11108 fi
11109
11110 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11111 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11112
11113 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11114 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11115
11116 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11117 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11118 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11119 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11120
11121 WX_RESOURCES_DARWIN="lib${WX_LIBRARY}.rsrc"
11122
11123
11124
11125 if test "$wxUSE_SHARED" = "yes"; then
11126
11127 if test "$wxUSE_OPENGL" = "yes"; then
11128 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11129 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11130 else
11131 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11132 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11133 fi
11134
11135 if test "$GCC" = "yes"; then
11136 PIC_FLAG="-fPIC"
11137 fi
11138
11139 SHARED_LD="${CXX} -shared -o"
11140
11141 case "${host}" in
11142 *-hp-hpux* )
11143 if test "$GCC" != "yes"; then
11144 LDFLAGS="-L/usr/lib"
11145
11146 SHARED_LD="${CXX} -b -o"
11147 PIC_FLAG="+Z"
11148 fi
11149
11150 ;;
11151
11152 *-*-linux* )
11153 if test "$GCC" != "yes"; then
11154 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11155 echo "configure:11156: checking for Intel compiler" >&5
11156 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11158 else
11159
11160 cat > conftest.$ac_ext <<EOF
11161 #line 11162 "configure"
11162 #include "confdefs.h"
11163
11164 int main() {
11165
11166 #ifndef __INTEL_COMPILER
11167 #error Not icc
11168 #endif
11169
11170 ; return 0; }
11171 EOF
11172 if { (eval echo configure:11173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11173 rm -rf conftest*
11174 wx_cv_prog_icc=yes
11175 else
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 rm -rf conftest*
11179 wx_cv_prog_icc=no
11180
11181 fi
11182 rm -f conftest*
11183
11184 fi
11185
11186 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11187 if test "$wx_cv_prog_icc" = "yes"; then
11188 PIC_FLAG="-KPIC"
11189 fi
11190 fi
11191
11192 if test "$wxUSE_SONAME" = "yes" ; then
11193 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11194 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11195 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11196 fi
11197 ;;
11198
11199 *-*-solaris2* )
11200 if test "$GCC" = yes ; then
11201 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11202 else
11203 SHARED_LD="${CXX} -G -o"
11204 PIC_FLAG="-KPIC"
11205 fi
11206 ;;
11207
11208 *-*-darwin* )
11209 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
11210 CPPFLAGS="${CPPFLAGS} -fno-common"
11211 SHARED_LD="${CXX} -dynamiclib -o"
11212 PIC_FLAG="-dynamic -fPIC"
11213
11214 if test "$wxUSE_MAC" = 1 ; then
11215 WX_ALL="${WX_ALL} lib${WX_LIBRARY}.r"
11216 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
11217 CPPFLAGS="${CPPFLAGS} -fpascal-strings"
11218 CXXFLAGS="${CXXFLAGS} -cpp-precomp"
11219 # Extract the first word of "Rez", so it can be a program name with args.
11220 set dummy Rez; ac_word=$2
11221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11222 echo "configure:11223: checking for $ac_word" >&5
11223 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11225 else
11226 if test -n "$RESCOMP"; then
11227 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11228 else
11229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11230 ac_dummy="$PATH"
11231 for ac_dir in $ac_dummy; do
11232 test -z "$ac_dir" && ac_dir=.
11233 if test -f $ac_dir/$ac_word; then
11234 ac_cv_prog_RESCOMP="Rez"
11235 break
11236 fi
11237 done
11238 IFS="$ac_save_ifs"
11239 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11240 fi
11241 fi
11242 RESCOMP="$ac_cv_prog_RESCOMP"
11243 if test -n "$RESCOMP"; then
11244 echo "$ac_t""$RESCOMP" 1>&6
11245 else
11246 echo "$ac_t""no" 1>&6
11247 fi
11248
11249 # Extract the first word of "Derez", so it can be a program name with args.
11250 set dummy Derez; ac_word=$2
11251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11252 echo "configure:11253: checking for $ac_word" >&5
11253 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11254 echo $ac_n "(cached) $ac_c" 1>&6
11255 else
11256 if test -n "$DEREZ"; then
11257 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11258 else
11259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11260 ac_dummy="$PATH"
11261 for ac_dir in $ac_dummy; do
11262 test -z "$ac_dir" && ac_dir=.
11263 if test -f $ac_dir/$ac_word; then
11264 ac_cv_prog_DEREZ="Derez"
11265 break
11266 fi
11267 done
11268 IFS="$ac_save_ifs"
11269 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11270 fi
11271 fi
11272 DEREZ="$ac_cv_prog_DEREZ"
11273 if test -n "$DEREZ"; then
11274 echo "$ac_t""$DEREZ" 1>&6
11275 else
11276 echo "$ac_t""no" 1>&6
11277 fi
11278
11279 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11280 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11281 fi
11282 ;;
11283
11284 *-*-aix* )
11285 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11286 ;;
11287
11288 *-*-cygwin* )
11289 echo "configure: warning: Shared libs unsupported for $host_alias -- forcing static build." 1>&2
11290 wxUSE_SHARED=no
11291 ;;
11292
11293 *-*-mingw32* )
11294 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11295 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
11296 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11297 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11298 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11299 if test "$wxUSE_OPENGL" = "yes"; then
11300 WX_ALL_INSTALLED="preinstall_gl"
11301 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11302 else
11303 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11304 fi
11305 ;;
11306
11307 *-pc-os2_emx )
11308 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11309 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11310 ;;
11311
11312 *-*-beos* )
11313 SHARED_LD="${LD} -shared -o"
11314 ;;
11315
11316 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11317 *-*-sunos4* | \
11318 *-*-irix5* | *-*-irix6* | \
11319 *-*-osf* | \
11320 *-*-dgux5* | \
11321 *-*-sysv5* )
11322 ;;
11323
11324 *)
11325 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
11326 esac
11327
11328 if test "x$WX_TARGET_LIBRARY" = "x"; then
11329 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11330 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11331 fi
11332
11333 WX_TARGET_LIBRARY_TYPE="so"
11334 fi
11335
11336 if test "$wxUSE_SHARED" = "no"; then
11337
11338 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11339 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11340 fi
11341
11342 if test "$wxUSE_OPENGL" = "yes"; then
11343 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11344 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11345 else
11346 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11347 fi
11348
11349 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11350 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11351
11352 WX_TARGET_LIBRARY_TYPE="a"
11353 fi
11354
11355
11356 for ac_hdr in strings.h
11357 do
11358 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11360 echo "configure:11361: checking for $ac_hdr" >&5
11361 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11362 echo $ac_n "(cached) $ac_c" 1>&6
11363 else
11364 cat > conftest.$ac_ext <<EOF
11365 #line 11366 "configure"
11366 #include "confdefs.h"
11367 #include <$ac_hdr>
11368 EOF
11369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11370 { (eval echo configure:11371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11372 if test -z "$ac_err"; then
11373 rm -rf conftest*
11374 eval "ac_cv_header_$ac_safe=yes"
11375 else
11376 echo "$ac_err" >&5
11377 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11379 rm -rf conftest*
11380 eval "ac_cv_header_$ac_safe=no"
11381 fi
11382 rm -f conftest*
11383 fi
11384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11385 echo "$ac_t""yes" 1>&6
11386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11387 cat >> confdefs.h <<EOF
11388 #define $ac_tr_hdr 1
11389 EOF
11390
11391 else
11392 echo "$ac_t""no" 1>&6
11393 fi
11394 done
11395
11396 for ac_hdr in stdlib.h
11397 do
11398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11400 echo "configure:11401: checking for $ac_hdr" >&5
11401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11403 else
11404 cat > conftest.$ac_ext <<EOF
11405 #line 11406 "configure"
11406 #include "confdefs.h"
11407 #include <$ac_hdr>
11408 EOF
11409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11410 { (eval echo configure:11411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11412 if test -z "$ac_err"; then
11413 rm -rf conftest*
11414 eval "ac_cv_header_$ac_safe=yes"
11415 else
11416 echo "$ac_err" >&5
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11419 rm -rf conftest*
11420 eval "ac_cv_header_$ac_safe=no"
11421 fi
11422 rm -f conftest*
11423 fi
11424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11425 echo "$ac_t""yes" 1>&6
11426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11427 cat >> confdefs.h <<EOF
11428 #define $ac_tr_hdr 1
11429 EOF
11430
11431 else
11432 echo "$ac_t""no" 1>&6
11433 fi
11434 done
11435
11436 for ac_hdr in unistd.h
11437 do
11438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11440 echo "configure:11441: checking for $ac_hdr" >&5
11441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11442 echo $ac_n "(cached) $ac_c" 1>&6
11443 else
11444 cat > conftest.$ac_ext <<EOF
11445 #line 11446 "configure"
11446 #include "confdefs.h"
11447 #include <$ac_hdr>
11448 EOF
11449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11450 { (eval echo configure:11451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11452 if test -z "$ac_err"; then
11453 rm -rf conftest*
11454 eval "ac_cv_header_$ac_safe=yes"
11455 else
11456 echo "$ac_err" >&5
11457 echo "configure: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11459 rm -rf conftest*
11460 eval "ac_cv_header_$ac_safe=no"
11461 fi
11462 rm -f conftest*
11463 fi
11464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11465 echo "$ac_t""yes" 1>&6
11466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11467 cat >> confdefs.h <<EOF
11468 #define $ac_tr_hdr 1
11469 EOF
11470
11471 else
11472 echo "$ac_t""no" 1>&6
11473 fi
11474 done
11475
11476 for ac_hdr in wchar.h
11477 do
11478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11480 echo "configure:11481: checking for $ac_hdr" >&5
11481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11482 echo $ac_n "(cached) $ac_c" 1>&6
11483 else
11484 cat > conftest.$ac_ext <<EOF
11485 #line 11486 "configure"
11486 #include "confdefs.h"
11487 #include <$ac_hdr>
11488 EOF
11489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11490 { (eval echo configure:11491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11492 if test -z "$ac_err"; then
11493 rm -rf conftest*
11494 eval "ac_cv_header_$ac_safe=yes"
11495 else
11496 echo "$ac_err" >&5
11497 echo "configure: failed program was:" >&5
11498 cat conftest.$ac_ext >&5
11499 rm -rf conftest*
11500 eval "ac_cv_header_$ac_safe=no"
11501 fi
11502 rm -f conftest*
11503 fi
11504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11505 echo "$ac_t""yes" 1>&6
11506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11507 cat >> confdefs.h <<EOF
11508 #define $ac_tr_hdr 1
11509 EOF
11510
11511 else
11512 echo "$ac_t""no" 1>&6
11513 fi
11514 done
11515
11516 for ac_hdr in wcstr.h
11517 do
11518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11520 echo "configure:11521: checking for $ac_hdr" >&5
11521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11522 echo $ac_n "(cached) $ac_c" 1>&6
11523 else
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 #include <$ac_hdr>
11528 EOF
11529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11530 { (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11532 if test -z "$ac_err"; then
11533 rm -rf conftest*
11534 eval "ac_cv_header_$ac_safe=yes"
11535 else
11536 echo "$ac_err" >&5
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11539 rm -rf conftest*
11540 eval "ac_cv_header_$ac_safe=no"
11541 fi
11542 rm -f conftest*
11543 fi
11544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11545 echo "$ac_t""yes" 1>&6
11546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11547 cat >> confdefs.h <<EOF
11548 #define $ac_tr_hdr 1
11549 EOF
11550
11551 else
11552 echo "$ac_t""no" 1>&6
11553 fi
11554 done
11555
11556 for ac_hdr in fnmatch.h
11557 do
11558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11560 echo "configure:11561: checking for $ac_hdr" >&5
11561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11562 echo $ac_n "(cached) $ac_c" 1>&6
11563 else
11564 cat > conftest.$ac_ext <<EOF
11565 #line 11566 "configure"
11566 #include "confdefs.h"
11567 #include <$ac_hdr>
11568 EOF
11569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11570 { (eval echo configure:11571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11572 if test -z "$ac_err"; then
11573 rm -rf conftest*
11574 eval "ac_cv_header_$ac_safe=yes"
11575 else
11576 echo "$ac_err" >&5
11577 echo "configure: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11579 rm -rf conftest*
11580 eval "ac_cv_header_$ac_safe=no"
11581 fi
11582 rm -f conftest*
11583 fi
11584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11585 echo "$ac_t""yes" 1>&6
11586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11587 cat >> confdefs.h <<EOF
11588 #define $ac_tr_hdr 1
11589 EOF
11590
11591 else
11592 echo "$ac_t""no" 1>&6
11593 fi
11594 done
11595
11596 for ac_hdr in iconv.h
11597 do
11598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11600 echo "configure:11601: checking for $ac_hdr" >&5
11601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
11603 else
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11607 #include <$ac_hdr>
11608 EOF
11609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11610 { (eval echo configure:11611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11612 if test -z "$ac_err"; then
11613 rm -rf conftest*
11614 eval "ac_cv_header_$ac_safe=yes"
11615 else
11616 echo "$ac_err" >&5
11617 echo "configure: failed program was:" >&5
11618 cat conftest.$ac_ext >&5
11619 rm -rf conftest*
11620 eval "ac_cv_header_$ac_safe=no"
11621 fi
11622 rm -f conftest*
11623 fi
11624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11625 echo "$ac_t""yes" 1>&6
11626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11627 cat >> confdefs.h <<EOF
11628 #define $ac_tr_hdr 1
11629 EOF
11630
11631 else
11632 echo "$ac_t""no" 1>&6
11633 fi
11634 done
11635
11636 for ac_hdr in langinfo.h
11637 do
11638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11640 echo "configure:11641: checking for $ac_hdr" >&5
11641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
11643 else
11644 cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11647 #include <$ac_hdr>
11648 EOF
11649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11650 { (eval echo configure:11651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11652 if test -z "$ac_err"; then
11653 rm -rf conftest*
11654 eval "ac_cv_header_$ac_safe=yes"
11655 else
11656 echo "$ac_err" >&5
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -rf conftest*
11660 eval "ac_cv_header_$ac_safe=no"
11661 fi
11662 rm -f conftest*
11663 fi
11664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11665 echo "$ac_t""yes" 1>&6
11666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11667 cat >> confdefs.h <<EOF
11668 #define $ac_tr_hdr 1
11669 EOF
11670
11671 else
11672 echo "$ac_t""no" 1>&6
11673 fi
11674 done
11675
11676
11677 if test "$wxUSE_GUI" = "yes"; then
11678 if test "$wxUSE_UNIX" = "yes"; then
11679 for ac_hdr in X11/XKBlib.h
11680 do
11681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11683 echo "configure:11684: checking for $ac_hdr" >&5
11684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11685 echo $ac_n "(cached) $ac_c" 1>&6
11686 else
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 #include <$ac_hdr>
11691 EOF
11692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11693 { (eval echo configure:11694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11695 if test -z "$ac_err"; then
11696 rm -rf conftest*
11697 eval "ac_cv_header_$ac_safe=yes"
11698 else
11699 echo "$ac_err" >&5
11700 echo "configure: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11702 rm -rf conftest*
11703 eval "ac_cv_header_$ac_safe=no"
11704 fi
11705 rm -f conftest*
11706 fi
11707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11708 echo "$ac_t""yes" 1>&6
11709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11710 cat >> confdefs.h <<EOF
11711 #define $ac_tr_hdr 1
11712 EOF
11713
11714 else
11715 echo "$ac_t""no" 1>&6
11716 fi
11717 done
11718
11719 fi
11720 fi
11721
11722
11723 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11724 echo "configure:11725: checking for ANSI C header files" >&5
11725 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
11727 else
11728 cat > conftest.$ac_ext <<EOF
11729 #line 11730 "configure"
11730 #include "confdefs.h"
11731 #include <stdlib.h>
11732 #include <stdarg.h>
11733 #include <string.h>
11734 #include <float.h>
11735 EOF
11736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11737 { (eval echo configure:11738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11739 if test -z "$ac_err"; then
11740 rm -rf conftest*
11741 ac_cv_header_stdc=yes
11742 else
11743 echo "$ac_err" >&5
11744 echo "configure: failed program was:" >&5
11745 cat conftest.$ac_ext >&5
11746 rm -rf conftest*
11747 ac_cv_header_stdc=no
11748 fi
11749 rm -f conftest*
11750
11751 if test $ac_cv_header_stdc = yes; then
11752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11753 cat > conftest.$ac_ext <<EOF
11754 #line 11755 "configure"
11755 #include "confdefs.h"
11756 #include <string.h>
11757 EOF
11758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11759 egrep "memchr" >/dev/null 2>&1; then
11760 :
11761 else
11762 rm -rf conftest*
11763 ac_cv_header_stdc=no
11764 fi
11765 rm -f conftest*
11766
11767 fi
11768
11769 if test $ac_cv_header_stdc = yes; then
11770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11771 cat > conftest.$ac_ext <<EOF
11772 #line 11773 "configure"
11773 #include "confdefs.h"
11774 #include <stdlib.h>
11775 EOF
11776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11777 egrep "free" >/dev/null 2>&1; then
11778 :
11779 else
11780 rm -rf conftest*
11781 ac_cv_header_stdc=no
11782 fi
11783 rm -f conftest*
11784
11785 fi
11786
11787 if test $ac_cv_header_stdc = yes; then
11788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11789 if test "$cross_compiling" = yes; then
11790 :
11791 else
11792 cat > conftest.$ac_ext <<EOF
11793 #line 11794 "configure"
11794 #include "confdefs.h"
11795 #include <ctype.h>
11796 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11797 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11799 int main () { int i; for (i = 0; i < 256; i++)
11800 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11801 exit (0); }
11802
11803 EOF
11804 if { (eval echo configure:11805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11805 then
11806 :
11807 else
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11810 rm -fr conftest*
11811 ac_cv_header_stdc=no
11812 fi
11813 rm -fr conftest*
11814 fi
11815
11816 fi
11817 fi
11818
11819 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11820 if test $ac_cv_header_stdc = yes; then
11821 cat >> confdefs.h <<\EOF
11822 #define STDC_HEADERS 1
11823 EOF
11824
11825 fi
11826
11827 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11828 echo "configure:11829: checking for mode_t" >&5
11829 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11831 else
11832 cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11835 #include <sys/types.h>
11836 #if STDC_HEADERS
11837 #include <stdlib.h>
11838 #include <stddef.h>
11839 #endif
11840 EOF
11841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11842 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11843 rm -rf conftest*
11844 ac_cv_type_mode_t=yes
11845 else
11846 rm -rf conftest*
11847 ac_cv_type_mode_t=no
11848 fi
11849 rm -f conftest*
11850
11851 fi
11852 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11853 if test $ac_cv_type_mode_t = no; then
11854 cat >> confdefs.h <<\EOF
11855 #define mode_t int
11856 EOF
11857
11858 fi
11859
11860 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11861 echo "configure:11862: checking for off_t" >&5
11862 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11863 echo $ac_n "(cached) $ac_c" 1>&6
11864 else
11865 cat > conftest.$ac_ext <<EOF
11866 #line 11867 "configure"
11867 #include "confdefs.h"
11868 #include <sys/types.h>
11869 #if STDC_HEADERS
11870 #include <stdlib.h>
11871 #include <stddef.h>
11872 #endif
11873 EOF
11874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11875 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11876 rm -rf conftest*
11877 ac_cv_type_off_t=yes
11878 else
11879 rm -rf conftest*
11880 ac_cv_type_off_t=no
11881 fi
11882 rm -f conftest*
11883
11884 fi
11885 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11886 if test $ac_cv_type_off_t = no; then
11887 cat >> confdefs.h <<\EOF
11888 #define off_t long
11889 EOF
11890
11891 fi
11892
11893 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11894 echo "configure:11895: checking for pid_t" >&5
11895 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11896 echo $ac_n "(cached) $ac_c" 1>&6
11897 else
11898 cat > conftest.$ac_ext <<EOF
11899 #line 11900 "configure"
11900 #include "confdefs.h"
11901 #include <sys/types.h>
11902 #if STDC_HEADERS
11903 #include <stdlib.h>
11904 #include <stddef.h>
11905 #endif
11906 EOF
11907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11908 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11909 rm -rf conftest*
11910 ac_cv_type_pid_t=yes
11911 else
11912 rm -rf conftest*
11913 ac_cv_type_pid_t=no
11914 fi
11915 rm -f conftest*
11916
11917 fi
11918 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11919 if test $ac_cv_type_pid_t = no; then
11920 cat >> confdefs.h <<\EOF
11921 #define pid_t int
11922 EOF
11923
11924 fi
11925
11926 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11927 echo "configure:11928: checking for size_t" >&5
11928 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11929 echo $ac_n "(cached) $ac_c" 1>&6
11930 else
11931 cat > conftest.$ac_ext <<EOF
11932 #line 11933 "configure"
11933 #include "confdefs.h"
11934 #include <sys/types.h>
11935 #if STDC_HEADERS
11936 #include <stdlib.h>
11937 #include <stddef.h>
11938 #endif
11939 EOF
11940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11941 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11942 rm -rf conftest*
11943 ac_cv_type_size_t=yes
11944 else
11945 rm -rf conftest*
11946 ac_cv_type_size_t=no
11947 fi
11948 rm -f conftest*
11949
11950 fi
11951 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11952 if test $ac_cv_type_size_t = no; then
11953 cat >> confdefs.h <<\EOF
11954 #define size_t unsigned
11955 EOF
11956
11957 fi
11958
11959 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11960 echo "configure:11961: checking for uid_t in sys/types.h" >&5
11961 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11962 echo $ac_n "(cached) $ac_c" 1>&6
11963 else
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 #include <sys/types.h>
11968 EOF
11969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11970 egrep "uid_t" >/dev/null 2>&1; then
11971 rm -rf conftest*
11972 ac_cv_type_uid_t=yes
11973 else
11974 rm -rf conftest*
11975 ac_cv_type_uid_t=no
11976 fi
11977 rm -f conftest*
11978
11979 fi
11980
11981 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11982 if test $ac_cv_type_uid_t = no; then
11983 cat >> confdefs.h <<\EOF
11984 #define uid_t int
11985 EOF
11986
11987 cat >> confdefs.h <<\EOF
11988 #define gid_t int
11989 EOF
11990
11991 fi
11992
11993
11994 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11995 echo "configure:11996: checking for wchar_t" >&5
11996 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11998 else
11999
12000 cat > conftest.$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12003 #include <wchar.h>
12004 int main() {
12005
12006 wchar_t wc, *ws;
12007 wc = L'a';
12008 ws = L"Hello, world!";
12009
12010 ; return 0; }
12011 EOF
12012 if { (eval echo configure:12013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12013 rm -rf conftest*
12014 wx_cv_type_wchar_t=yes
12015 else
12016 echo "configure: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12018 rm -rf conftest*
12019 cat > conftest.$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12022 #include <stdlib.h>
12023 int main() {
12024
12025 wchar_t wc, *ws;
12026 wc = L'a';
12027 ws = L"Hello, world!";
12028
12029 ; return 0; }
12030 EOF
12031 if { (eval echo configure:12032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12032 rm -rf conftest*
12033 wx_cv_type_wchar_t=yes
12034 else
12035 echo "configure: failed program was:" >&5
12036 cat conftest.$ac_ext >&5
12037 rm -rf conftest*
12038 wx_cv_type_wchar_t=no
12039 fi
12040 rm -f conftest*
12041
12042 fi
12043 rm -f conftest*
12044
12045 fi
12046
12047 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12048
12049 if test "$wx_cv_type_wchar_t" = "yes"; then
12050 cat >> confdefs.h <<\EOF
12051 #define wxUSE_WCHAR_T 1
12052 EOF
12053
12054 fi
12055
12056
12057 ac_ext=C
12058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12059 ac_cpp='$CXXCPP $CPPFLAGS'
12060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12062 cross_compiling=$ac_cv_prog_cxx_cross
12063
12064 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12065 echo "configure:12066: checking if size_t is unsigned int" >&5
12066 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12067 echo $ac_n "(cached) $ac_c" 1>&6
12068 else
12069 cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 #include <stddef.h>
12073 int main() {
12074
12075 return 0; }
12076
12077 struct Foo { void foo(size_t); void foo(unsigned int); };
12078
12079 int bar() {
12080
12081 ; return 0; }
12082 EOF
12083 if { (eval echo configure:12084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12084 rm -rf conftest*
12085 wx_cv_size_t_is_uint=no
12086 else
12087 echo "configure: failed program was:" >&5
12088 cat conftest.$ac_ext >&5
12089 rm -rf conftest*
12090 wx_cv_size_t_is_uint=yes
12091
12092 fi
12093 rm -f conftest*
12094
12095 fi
12096
12097 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12098
12099 if test "$wx_cv_size_t_is_uint" = "yes"; then
12100 cat >> confdefs.h <<\EOF
12101 #define wxSIZE_T_IS_UINT 1
12102 EOF
12103
12104 else
12105 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12106 echo "configure:12107: checking if size_t is unsigned long" >&5
12107 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12109 else
12110 cat > conftest.$ac_ext <<EOF
12111 #line 12112 "configure"
12112 #include "confdefs.h"
12113 #include <stddef.h>
12114 int main() {
12115
12116 return 0; }
12117
12118 struct Foo { void foo(size_t); void foo(unsigned long); };
12119
12120 int bar() {
12121
12122 ; return 0; }
12123 EOF
12124 if { (eval echo configure:12125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12125 rm -rf conftest*
12126 wx_cv_size_t_is_ulong=no
12127 else
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 rm -rf conftest*
12131 wx_cv_size_t_is_ulong=yes
12132
12133 fi
12134 rm -f conftest*
12135
12136 fi
12137
12138 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12139
12140 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12141 cat >> confdefs.h <<\EOF
12142 #define wxSIZE_T_IS_ULONG 1
12143 EOF
12144
12145 fi
12146 fi
12147
12148 ac_ext=c
12149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12150 ac_cpp='$CPP $CPPFLAGS'
12151 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12152 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12153 cross_compiling=$ac_cv_prog_cc_cross
12154
12155
12156
12157 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12158 echo "configure:12159: checking for pw_gecos in struct passwd" >&5
12159 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161 else
12162
12163 cat > conftest.$ac_ext <<EOF
12164 #line 12165 "configure"
12165 #include "confdefs.h"
12166 #include <pwd.h>
12167 int main() {
12168
12169 char *p;
12170 struct passwd *pw;
12171 p = pw->pw_gecos;
12172
12173 ; return 0; }
12174 EOF
12175 if { (eval echo configure:12176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12176 rm -rf conftest*
12177
12178 wx_cv_struct_pw_gecos=yes
12179
12180 else
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 rm -rf conftest*
12184
12185 wx_cv_struct_pw_gecos=no
12186
12187
12188 fi
12189 rm -f conftest*
12190
12191
12192 fi
12193
12194 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12195
12196 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12197 cat >> confdefs.h <<\EOF
12198 #define HAVE_PW_GECOS 1
12199 EOF
12200
12201 fi
12202
12203
12204 echo $ac_n "checking for working const""... $ac_c" 1>&6
12205 echo "configure:12206: checking for working const" >&5
12206 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208 else
12209 cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12212
12213 int main() {
12214
12215 /* Ultrix mips cc rejects this. */
12216 typedef int charset[2]; const charset x;
12217 /* SunOS 4.1.1 cc rejects this. */
12218 char const *const *ccp;
12219 char **p;
12220 /* NEC SVR4.0.2 mips cc rejects this. */
12221 struct point {int x, y;};
12222 static struct point const zero = {0,0};
12223 /* AIX XL C 1.02.0.0 rejects this.
12224 It does not let you subtract one const X* pointer from another in an arm
12225 of an if-expression whose if-part is not a constant expression */
12226 const char *g = "string";
12227 ccp = &g + (g ? g-g : 0);
12228 /* HPUX 7.0 cc rejects these. */
12229 ++ccp;
12230 p = (char**) ccp;
12231 ccp = (char const *const *) p;
12232 { /* SCO 3.2v4 cc rejects this. */
12233 char *t;
12234 char const *s = 0 ? (char *) 0 : (char const *) 0;
12235
12236 *t++ = 0;
12237 }
12238 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12239 int x[] = {25, 17};
12240 const int *foo = &x[0];
12241 ++foo;
12242 }
12243 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12244 typedef const int *iptr;
12245 iptr p = 0;
12246 ++p;
12247 }
12248 { /* AIX XL C 1.02.0.0 rejects this saying
12249 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12250 struct s { int j; const int *ap[3]; };
12251 struct s *b; b->j = 5;
12252 }
12253 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12254 const int foo = 10;
12255 }
12256
12257 ; return 0; }
12258 EOF
12259 if { (eval echo configure:12260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12260 rm -rf conftest*
12261 ac_cv_c_const=yes
12262 else
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12265 rm -rf conftest*
12266 ac_cv_c_const=no
12267 fi
12268 rm -f conftest*
12269 fi
12270
12271 echo "$ac_t""$ac_cv_c_const" 1>&6
12272 if test $ac_cv_c_const = no; then
12273 cat >> confdefs.h <<\EOF
12274 #define const
12275 EOF
12276
12277 fi
12278
12279 echo $ac_n "checking for inline""... $ac_c" 1>&6
12280 echo "configure:12281: checking for inline" >&5
12281 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12283 else
12284 ac_cv_c_inline=no
12285 for ac_kw in inline __inline__ __inline; do
12286 cat > conftest.$ac_ext <<EOF
12287 #line 12288 "configure"
12288 #include "confdefs.h"
12289
12290 int main() {
12291 } $ac_kw foo() {
12292 ; return 0; }
12293 EOF
12294 if { (eval echo configure:12295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12295 rm -rf conftest*
12296 ac_cv_c_inline=$ac_kw; break
12297 else
12298 echo "configure: failed program was:" >&5
12299 cat conftest.$ac_ext >&5
12300 fi
12301 rm -f conftest*
12302 done
12303
12304 fi
12305
12306 echo "$ac_t""$ac_cv_c_inline" 1>&6
12307 case "$ac_cv_c_inline" in
12308 inline | yes) ;;
12309 no) cat >> confdefs.h <<\EOF
12310 #define inline
12311 EOF
12312 ;;
12313 *) cat >> confdefs.h <<EOF
12314 #define inline $ac_cv_c_inline
12315 EOF
12316 ;;
12317 esac
12318
12319
12320 echo $ac_n "checking size of char""... $ac_c" 1>&6
12321 echo "configure:12322: checking size of char" >&5
12322 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12324 else
12325 if test "$cross_compiling" = yes; then
12326 ac_cv_sizeof_char=1
12327 else
12328 cat > conftest.$ac_ext <<EOF
12329 #line 12330 "configure"
12330 #include "confdefs.h"
12331 #include <stdio.h>
12332 main()
12333 {
12334 FILE *f=fopen("conftestval", "w");
12335 if (!f) exit(1);
12336 fprintf(f, "%d\n", sizeof(char));
12337 exit(0);
12338 }
12339 EOF
12340 if { (eval echo configure:12341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12341 then
12342 ac_cv_sizeof_char=`cat conftestval`
12343 else
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 rm -fr conftest*
12347 ac_cv_sizeof_char=0
12348 fi
12349 rm -fr conftest*
12350 fi
12351
12352 fi
12353 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12354 cat >> confdefs.h <<EOF
12355 #define SIZEOF_CHAR $ac_cv_sizeof_char
12356 EOF
12357
12358
12359 echo $ac_n "checking size of short""... $ac_c" 1>&6
12360 echo "configure:12361: checking size of short" >&5
12361 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12362 echo $ac_n "(cached) $ac_c" 1>&6
12363 else
12364 if test "$cross_compiling" = yes; then
12365 ac_cv_sizeof_short=2
12366 else
12367 cat > conftest.$ac_ext <<EOF
12368 #line 12369 "configure"
12369 #include "confdefs.h"
12370 #include <stdio.h>
12371 main()
12372 {
12373 FILE *f=fopen("conftestval", "w");
12374 if (!f) exit(1);
12375 fprintf(f, "%d\n", sizeof(short));
12376 exit(0);
12377 }
12378 EOF
12379 if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12380 then
12381 ac_cv_sizeof_short=`cat conftestval`
12382 else
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 rm -fr conftest*
12386 ac_cv_sizeof_short=0
12387 fi
12388 rm -fr conftest*
12389 fi
12390
12391 fi
12392 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12393 cat >> confdefs.h <<EOF
12394 #define SIZEOF_SHORT $ac_cv_sizeof_short
12395 EOF
12396
12397
12398 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12399 echo "configure:12400: checking size of int *" >&5
12400 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
12402 else
12403 if test "$cross_compiling" = yes; then
12404 ac_cv_sizeof_int_p=4
12405 else
12406 cat > conftest.$ac_ext <<EOF
12407 #line 12408 "configure"
12408 #include "confdefs.h"
12409 #include <stdio.h>
12410 main()
12411 {
12412 FILE *f=fopen("conftestval", "w");
12413 if (!f) exit(1);
12414 fprintf(f, "%d\n", sizeof(int *));
12415 exit(0);
12416 }
12417 EOF
12418 if { (eval echo configure:12419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12419 then
12420 ac_cv_sizeof_int_p=`cat conftestval`
12421 else
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 rm -fr conftest*
12425 ac_cv_sizeof_int_p=0
12426 fi
12427 rm -fr conftest*
12428 fi
12429
12430 fi
12431 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12432 cat >> confdefs.h <<EOF
12433 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12434 EOF
12435
12436
12437 echo $ac_n "checking size of int""... $ac_c" 1>&6
12438 echo "configure:12439: checking size of int" >&5
12439 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12440 echo $ac_n "(cached) $ac_c" 1>&6
12441 else
12442 if test "$cross_compiling" = yes; then
12443 ac_cv_sizeof_int=4
12444 else
12445 cat > conftest.$ac_ext <<EOF
12446 #line 12447 "configure"
12447 #include "confdefs.h"
12448 #include <stdio.h>
12449 main()
12450 {
12451 FILE *f=fopen("conftestval", "w");
12452 if (!f) exit(1);
12453 fprintf(f, "%d\n", sizeof(int));
12454 exit(0);
12455 }
12456 EOF
12457 if { (eval echo configure:12458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12458 then
12459 ac_cv_sizeof_int=`cat conftestval`
12460 else
12461 echo "configure: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12463 rm -fr conftest*
12464 ac_cv_sizeof_int=0
12465 fi
12466 rm -fr conftest*
12467 fi
12468
12469 fi
12470 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12471 cat >> confdefs.h <<EOF
12472 #define SIZEOF_INT $ac_cv_sizeof_int
12473 EOF
12474
12475
12476 echo $ac_n "checking size of long""... $ac_c" 1>&6
12477 echo "configure:12478: checking size of long" >&5
12478 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12479 echo $ac_n "(cached) $ac_c" 1>&6
12480 else
12481 if test "$cross_compiling" = yes; then
12482 ac_cv_sizeof_long=4
12483 else
12484 cat > conftest.$ac_ext <<EOF
12485 #line 12486 "configure"
12486 #include "confdefs.h"
12487 #include <stdio.h>
12488 main()
12489 {
12490 FILE *f=fopen("conftestval", "w");
12491 if (!f) exit(1);
12492 fprintf(f, "%d\n", sizeof(long));
12493 exit(0);
12494 }
12495 EOF
12496 if { (eval echo configure:12497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12497 then
12498 ac_cv_sizeof_long=`cat conftestval`
12499 else
12500 echo "configure: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12502 rm -fr conftest*
12503 ac_cv_sizeof_long=0
12504 fi
12505 rm -fr conftest*
12506 fi
12507
12508 fi
12509 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12510 cat >> confdefs.h <<EOF
12511 #define SIZEOF_LONG $ac_cv_sizeof_long
12512 EOF
12513
12514
12515 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12516 echo "configure:12517: checking size of long long" >&5
12517 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12518 echo $ac_n "(cached) $ac_c" 1>&6
12519 else
12520 if test "$cross_compiling" = yes; then
12521 ac_cv_sizeof_long_long=0
12522 else
12523 cat > conftest.$ac_ext <<EOF
12524 #line 12525 "configure"
12525 #include "confdefs.h"
12526 #include <stdio.h>
12527 main()
12528 {
12529 FILE *f=fopen("conftestval", "w");
12530 if (!f) exit(1);
12531 fprintf(f, "%d\n", sizeof(long long));
12532 exit(0);
12533 }
12534 EOF
12535 if { (eval echo configure:12536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12536 then
12537 ac_cv_sizeof_long_long=`cat conftestval`
12538 else
12539 echo "configure: failed program was:" >&5
12540 cat conftest.$ac_ext >&5
12541 rm -fr conftest*
12542 ac_cv_sizeof_long_long=0
12543 fi
12544 rm -fr conftest*
12545 fi
12546
12547 fi
12548 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12549 cat >> confdefs.h <<EOF
12550 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12551 EOF
12552
12553
12554
12555 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12556 echo "configure:12557: checking size of wchar_t" >&5
12557 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12558 echo $ac_n "(cached) $ac_c" 1>&6
12559 else
12560
12561 if test "$cross_compiling" = yes; then
12562 wx_cv_sizeof_wchar_t=4
12563
12564 else
12565 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12568
12569 #ifdef HAVE_WCHAR_H
12570 # include <wchar.h>
12571 #endif
12572 #ifdef HAVE_STDLIB_H
12573 # include <stdlib.h>
12574 #endif
12575 #include <stdio.h>
12576 int main()
12577 {
12578 FILE *f=fopen("conftestval", "w");
12579 if (!f) exit(1);
12580 fprintf(f, "%i", sizeof(wchar_t));
12581 exit(0);
12582 }
12583
12584 EOF
12585 if { (eval echo configure:12586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12586 then
12587 wx_cv_sizeof_wchar_t=`cat conftestval`
12588 else
12589 echo "configure: failed program was:" >&5
12590 cat conftest.$ac_ext >&5
12591 rm -fr conftest*
12592 wx_cv_sizeof_wchar_t=0
12593 fi
12594 rm -fr conftest*
12595 fi
12596
12597
12598 fi
12599
12600 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12601
12602 cat >> confdefs.h <<EOF
12603 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12604 EOF
12605
12606
12607 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12608 echo "configure:12609: checking whether byte ordering is bigendian" >&5
12609 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12610 echo $ac_n "(cached) $ac_c" 1>&6
12611 else
12612 ac_cv_c_bigendian=unknown
12613 # See if sys/param.h defines the BYTE_ORDER macro.
12614 cat > conftest.$ac_ext <<EOF
12615 #line 12616 "configure"
12616 #include "confdefs.h"
12617 #include <sys/types.h>
12618 #include <sys/param.h>
12619 int main() {
12620
12621 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12622 bogus endian macros
12623 #endif
12624 ; return 0; }
12625 EOF
12626 if { (eval echo configure:12627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12627 rm -rf conftest*
12628 # It does; now see whether it defined to BIG_ENDIAN or not.
12629 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12632 #include <sys/types.h>
12633 #include <sys/param.h>
12634 int main() {
12635
12636 #if BYTE_ORDER != BIG_ENDIAN
12637 not big endian
12638 #endif
12639 ; return 0; }
12640 EOF
12641 if { (eval echo configure:12642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12642 rm -rf conftest*
12643 ac_cv_c_bigendian=yes
12644 else
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12647 rm -rf conftest*
12648 ac_cv_c_bigendian=no
12649 fi
12650 rm -f conftest*
12651 else
12652 echo "configure: failed program was:" >&5
12653 cat conftest.$ac_ext >&5
12654 fi
12655 rm -f conftest*
12656 if test $ac_cv_c_bigendian = unknown; then
12657 if test "$cross_compiling" = yes; then
12658 ac_cv_c_bigendian=unknown
12659 else
12660 cat > conftest.$ac_ext <<EOF
12661 #line 12662 "configure"
12662 #include "confdefs.h"
12663 main () {
12664 /* Are we little or big endian? From Harbison&Steele. */
12665 union
12666 {
12667 long l;
12668 char c[sizeof (long)];
12669 } u;
12670 u.l = 1;
12671 exit (u.c[sizeof (long) - 1] == 1);
12672 }
12673 EOF
12674 if { (eval echo configure:12675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12675 then
12676 ac_cv_c_bigendian=no
12677 else
12678 echo "configure: failed program was:" >&5
12679 cat conftest.$ac_ext >&5
12680 rm -fr conftest*
12681 ac_cv_c_bigendian=yes
12682 fi
12683 rm -fr conftest*
12684 fi
12685
12686 fi
12687 fi
12688
12689 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12690 if test $ac_cv_c_bigendian = unknown; then
12691 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
12692 fi
12693 if test $ac_cv_c_bigendian = yes; then
12694 cat >> confdefs.h <<\EOF
12695 #define WORDS_BIGENDIAN 1
12696 EOF
12697
12698 fi
12699
12700
12701 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
12702 echo "configure:12703: checking how to run the C++ preprocessor" >&5
12703 if test -z "$CXXCPP"; then
12704 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12705 echo $ac_n "(cached) $ac_c" 1>&6
12706 else
12707 ac_ext=C
12708 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12709 ac_cpp='$CXXCPP $CPPFLAGS'
12710 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12711 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12712 cross_compiling=$ac_cv_prog_cxx_cross
12713 CXXCPP="${CXX-g++} -E"
12714 cat > conftest.$ac_ext <<EOF
12715 #line 12716 "configure"
12716 #include "confdefs.h"
12717 #include <stdlib.h>
12718 EOF
12719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12720 { (eval echo configure:12721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12722 if test -z "$ac_err"; then
12723 :
12724 else
12725 echo "$ac_err" >&5
12726 echo "configure: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12728 rm -rf conftest*
12729 CXXCPP=/lib/cpp
12730 fi
12731 rm -f conftest*
12732 ac_cv_prog_CXXCPP="$CXXCPP"
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 fi
12740 fi
12741 CXXCPP="$ac_cv_prog_CXXCPP"
12742 echo "$ac_t""$CXXCPP" 1>&6
12743
12744
12745 if test "$cross_compiling" = "yes"; then
12746 cat >> confdefs.h <<\EOF
12747 #define wxUSE_IOSTREAMH 1
12748 EOF
12749
12750 else
12751
12752 ac_ext=C
12753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12754 ac_cpp='$CXXCPP $CPPFLAGS'
12755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12757 cross_compiling=$ac_cv_prog_cxx_cross
12758
12759
12760 for ac_hdr in iostream
12761 do
12762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12764 echo "configure:12765: checking for $ac_hdr" >&5
12765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12766 echo $ac_n "(cached) $ac_c" 1>&6
12767 else
12768 cat > conftest.$ac_ext <<EOF
12769 #line 12770 "configure"
12770 #include "confdefs.h"
12771 #include <$ac_hdr>
12772 EOF
12773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12774 { (eval echo configure:12775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12776 if test -z "$ac_err"; then
12777 rm -rf conftest*
12778 eval "ac_cv_header_$ac_safe=yes"
12779 else
12780 echo "$ac_err" >&5
12781 echo "configure: failed program was:" >&5
12782 cat conftest.$ac_ext >&5
12783 rm -rf conftest*
12784 eval "ac_cv_header_$ac_safe=no"
12785 fi
12786 rm -f conftest*
12787 fi
12788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12789 echo "$ac_t""yes" 1>&6
12790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12791 cat >> confdefs.h <<EOF
12792 #define $ac_tr_hdr 1
12793 EOF
12794
12795 else
12796 echo "$ac_t""no" 1>&6
12797 fi
12798 done
12799
12800
12801 if test "$ac_cv_header_iostream" = "yes" ; then
12802 :
12803 else
12804 cat >> confdefs.h <<\EOF
12805 #define wxUSE_IOSTREAMH 1
12806 EOF
12807
12808 fi
12809
12810 ac_ext=c
12811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12812 ac_cpp='$CPP $CPPFLAGS'
12813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12815 cross_compiling=$ac_cv_prog_cc_cross
12816
12817 fi
12818
12819
12820
12821 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12822 echo "configure:12823: checking if C++ compiler supports bool" >&5
12823 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12824 echo $ac_n "(cached) $ac_c" 1>&6
12825 else
12826
12827
12828 ac_ext=C
12829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12830 ac_cpp='$CXXCPP $CPPFLAGS'
12831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12833 cross_compiling=$ac_cv_prog_cxx_cross
12834
12835
12836 cat > conftest.$ac_ext <<EOF
12837 #line 12838 "configure"
12838 #include "confdefs.h"
12839
12840
12841 int main() {
12842
12843 bool b = true;
12844
12845 return 0;
12846
12847 ; return 0; }
12848 EOF
12849 if { (eval echo configure:12850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12850 rm -rf conftest*
12851
12852 wx_cv_cpp_bool=yes
12853
12854 else
12855 echo "configure: failed program was:" >&5
12856 cat conftest.$ac_ext >&5
12857 rm -rf conftest*
12858
12859 wx_cv_cpp_bool=no
12860
12861
12862 fi
12863 rm -f conftest*
12864
12865 ac_ext=c
12866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12867 ac_cpp='$CPP $CPPFLAGS'
12868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12870 cross_compiling=$ac_cv_prog_cc_cross
12871
12872
12873 fi
12874
12875 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12876
12877 if test "$wx_cv_cpp_bool" = "yes"; then
12878 cat >> confdefs.h <<\EOF
12879 #define HAVE_BOOL 1
12880 EOF
12881
12882 fi
12883
12884
12885
12886 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12887 echo "configure:12888: checking for wcslen in -lc" >&5
12888 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12890 echo $ac_n "(cached) $ac_c" 1>&6
12891 else
12892 ac_save_LIBS="$LIBS"
12893 LIBS="-lc $LIBS"
12894 cat > conftest.$ac_ext <<EOF
12895 #line 12896 "configure"
12896 #include "confdefs.h"
12897 /* Override any gcc2 internal prototype to avoid an error. */
12898 /* We use char because int might match the return type of a gcc2
12899 builtin and then its argument prototype would still apply. */
12900 char wcslen();
12901
12902 int main() {
12903 wcslen()
12904 ; return 0; }
12905 EOF
12906 if { (eval echo configure:12907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12907 rm -rf conftest*
12908 eval "ac_cv_lib_$ac_lib_var=yes"
12909 else
12910 echo "configure: failed program was:" >&5
12911 cat conftest.$ac_ext >&5
12912 rm -rf conftest*
12913 eval "ac_cv_lib_$ac_lib_var=no"
12914 fi
12915 rm -f conftest*
12916 LIBS="$ac_save_LIBS"
12917
12918 fi
12919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12920 echo "$ac_t""yes" 1>&6
12921
12922 cat >> confdefs.h <<\EOF
12923 #define HAVE_WCSLEN 1
12924 EOF
12925
12926 WCHAR_LINK=""
12927
12928 else
12929 echo "$ac_t""no" 1>&6
12930
12931 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12932 echo "configure:12933: checking for wcslen in -lw" >&5
12933 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12934 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12935 echo $ac_n "(cached) $ac_c" 1>&6
12936 else
12937 ac_save_LIBS="$LIBS"
12938 LIBS="-lw $LIBS"
12939 cat > conftest.$ac_ext <<EOF
12940 #line 12941 "configure"
12941 #include "confdefs.h"
12942 /* Override any gcc2 internal prototype to avoid an error. */
12943 /* We use char because int might match the return type of a gcc2
12944 builtin and then its argument prototype would still apply. */
12945 char wcslen();
12946
12947 int main() {
12948 wcslen()
12949 ; return 0; }
12950 EOF
12951 if { (eval echo configure:12952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12952 rm -rf conftest*
12953 eval "ac_cv_lib_$ac_lib_var=yes"
12954 else
12955 echo "configure: failed program was:" >&5
12956 cat conftest.$ac_ext >&5
12957 rm -rf conftest*
12958 eval "ac_cv_lib_$ac_lib_var=no"
12959 fi
12960 rm -f conftest*
12961 LIBS="$ac_save_LIBS"
12962
12963 fi
12964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12965 echo "$ac_t""yes" 1>&6
12966
12967 cat >> confdefs.h <<\EOF
12968 #define HAVE_WCSLEN 1
12969 EOF
12970
12971 WCHAR_LINK="-lw"
12972
12973 else
12974 echo "$ac_t""no" 1>&6
12975
12976 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
12977 echo "configure:12978: checking for wcslen in -lmsvcrt" >&5
12978 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
12979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12980 echo $ac_n "(cached) $ac_c" 1>&6
12981 else
12982 ac_save_LIBS="$LIBS"
12983 LIBS="-lmsvcrt $LIBS"
12984 cat > conftest.$ac_ext <<EOF
12985 #line 12986 "configure"
12986 #include "confdefs.h"
12987 /* Override any gcc2 internal prototype to avoid an error. */
12988 /* We use char because int might match the return type of a gcc2
12989 builtin and then its argument prototype would still apply. */
12990 char wcslen();
12991
12992 int main() {
12993 wcslen()
12994 ; return 0; }
12995 EOF
12996 if { (eval echo configure:12997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12997 rm -rf conftest*
12998 eval "ac_cv_lib_$ac_lib_var=yes"
12999 else
13000 echo "configure: failed program was:" >&5
13001 cat conftest.$ac_ext >&5
13002 rm -rf conftest*
13003 eval "ac_cv_lib_$ac_lib_var=no"
13004 fi
13005 rm -f conftest*
13006 LIBS="$ac_save_LIBS"
13007
13008 fi
13009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13010 echo "$ac_t""yes" 1>&6
13011
13012 cat >> confdefs.h <<\EOF
13013 #define HAVE_WCSLEN 1
13014 EOF
13015
13016 WCHAR_LINK=""
13017
13018 else
13019 echo "$ac_t""no" 1>&6
13020 fi
13021
13022
13023 fi
13024
13025
13026 fi
13027
13028
13029 for ac_func in wcsrtombs
13030 do
13031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13032 echo "configure:13033: checking for $ac_func" >&5
13033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13035 else
13036 cat > conftest.$ac_ext <<EOF
13037 #line 13038 "configure"
13038 #include "confdefs.h"
13039 /* System header to define __stub macros and hopefully few prototypes,
13040 which can conflict with char $ac_func(); below. */
13041 #include <assert.h>
13042 /* Override any gcc2 internal prototype to avoid an error. */
13043 /* We use char because int might match the return type of a gcc2
13044 builtin and then its argument prototype would still apply. */
13045 char $ac_func();
13046
13047 int main() {
13048
13049 /* The GNU C library defines this for functions which it implements
13050 to always fail with ENOSYS. Some functions are actually named
13051 something starting with __ and the normal name is an alias. */
13052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13053 choke me
13054 #else
13055 $ac_func();
13056 #endif
13057
13058 ; return 0; }
13059 EOF
13060 if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13061 rm -rf conftest*
13062 eval "ac_cv_func_$ac_func=yes"
13063 else
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 rm -rf conftest*
13067 eval "ac_cv_func_$ac_func=no"
13068 fi
13069 rm -f conftest*
13070 fi
13071
13072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13073 echo "$ac_t""yes" 1>&6
13074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13075 cat >> confdefs.h <<EOF
13076 #define $ac_tr_func 1
13077 EOF
13078
13079 else
13080 echo "$ac_t""no" 1>&6
13081 fi
13082 done
13083
13084
13085 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13086 echo "configure:13087: checking for vprintf" >&5
13087 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13088 echo $ac_n "(cached) $ac_c" 1>&6
13089 else
13090 cat > conftest.$ac_ext <<EOF
13091 #line 13092 "configure"
13092 #include "confdefs.h"
13093 /* System header to define __stub macros and hopefully few prototypes,
13094 which can conflict with char vprintf(); below. */
13095 #include <assert.h>
13096 /* Override any gcc2 internal prototype to avoid an error. */
13097 /* We use char because int might match the return type of a gcc2
13098 builtin and then its argument prototype would still apply. */
13099 char vprintf();
13100
13101 int main() {
13102
13103 /* The GNU C library defines this for functions which it implements
13104 to always fail with ENOSYS. Some functions are actually named
13105 something starting with __ and the normal name is an alias. */
13106 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13107 choke me
13108 #else
13109 vprintf();
13110 #endif
13111
13112 ; return 0; }
13113 EOF
13114 if { (eval echo configure:13115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13115 rm -rf conftest*
13116 eval "ac_cv_func_vprintf=yes"
13117 else
13118 echo "configure: failed program was:" >&5
13119 cat conftest.$ac_ext >&5
13120 rm -rf conftest*
13121 eval "ac_cv_func_vprintf=no"
13122 fi
13123 rm -f conftest*
13124 fi
13125
13126 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13127 echo "$ac_t""yes" 1>&6
13128 cat >> confdefs.h <<\EOF
13129 #define HAVE_VPRINTF 1
13130 EOF
13131
13132 else
13133 echo "$ac_t""no" 1>&6
13134 fi
13135
13136 if test "$ac_cv_func_vprintf" != yes; then
13137 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13138 echo "configure:13139: checking for _doprnt" >&5
13139 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13140 echo $ac_n "(cached) $ac_c" 1>&6
13141 else
13142 cat > conftest.$ac_ext <<EOF
13143 #line 13144 "configure"
13144 #include "confdefs.h"
13145 /* System header to define __stub macros and hopefully few prototypes,
13146 which can conflict with char _doprnt(); below. */
13147 #include <assert.h>
13148 /* Override any gcc2 internal prototype to avoid an error. */
13149 /* We use char because int might match the return type of a gcc2
13150 builtin and then its argument prototype would still apply. */
13151 char _doprnt();
13152
13153 int main() {
13154
13155 /* The GNU C library defines this for functions which it implements
13156 to always fail with ENOSYS. Some functions are actually named
13157 something starting with __ and the normal name is an alias. */
13158 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13159 choke me
13160 #else
13161 _doprnt();
13162 #endif
13163
13164 ; return 0; }
13165 EOF
13166 if { (eval echo configure:13167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13167 rm -rf conftest*
13168 eval "ac_cv_func__doprnt=yes"
13169 else
13170 echo "configure: failed program was:" >&5
13171 cat conftest.$ac_ext >&5
13172 rm -rf conftest*
13173 eval "ac_cv_func__doprnt=no"
13174 fi
13175 rm -f conftest*
13176 fi
13177
13178 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13179 echo "$ac_t""yes" 1>&6
13180 cat >> confdefs.h <<\EOF
13181 #define HAVE_DOPRNT 1
13182 EOF
13183
13184 else
13185 echo "$ac_t""no" 1>&6
13186 fi
13187
13188 fi
13189
13190
13191
13192
13193
13194
13195 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13196 echo "configure:13197: checking for vsnprintf" >&5
13197 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13198 echo $ac_n "(cached) $ac_c" 1>&6
13199 else
13200
13201 cat > conftest.$ac_ext <<EOF
13202 #line 13203 "configure"
13203 #include "confdefs.h"
13204
13205 #include <stdio.h>
13206 #include <stdarg.h>
13207
13208 int main() {
13209
13210 int wx_test_vsnprintf(const char *, ...);
13211
13212 wx_test_vsnprintf("%s");
13213 return 0;
13214 }
13215
13216 int wx_test_vsnprintf(const char *fmt, ...)
13217 {
13218 char *s;
13219
13220 va_list argp;
13221 va_start(argp, fmt);
13222 vsnprintf(s, 42, fmt, argp);
13223 va_end(argp);
13224
13225 ; return 0; }
13226 EOF
13227 if { (eval echo configure:13228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13228 rm -rf conftest*
13229
13230 wx_cv_func_vsnprintf=yes
13231
13232 else
13233 echo "configure: failed program was:" >&5
13234 cat conftest.$ac_ext >&5
13235 rm -rf conftest*
13236
13237 cat > conftest.$ac_ext <<EOF
13238 #line 13239 "configure"
13239 #include "confdefs.h"
13240
13241 #include <stdio.h>
13242 #include <stdarg.h>
13243
13244 int main() {
13245
13246 int wx_test_vsnprintf(const char *, ...);
13247
13248 wx_test_vsnprintf("%s");
13249 return 0;
13250 }
13251
13252 int wx_test_vsnprintf(const char *fmt, ...)
13253 {
13254 char *s;
13255
13256 va_list argp;
13257 va_start(argp, fmt);
13258 _vsnprintf(s, 42, fmt, argp);
13259 va_end(argp);
13260
13261 ; return 0; }
13262 EOF
13263 if { (eval echo configure:13264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13264 rm -rf conftest*
13265
13266 wx_cv_func_vsnprintf=yes
13267
13268 else
13269 echo "configure: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13271 rm -rf conftest*
13272
13273 wx_cv_func_vsnprintf=no
13274
13275 fi
13276 rm -f conftest*
13277
13278 fi
13279 rm -f conftest*
13280
13281 fi
13282
13283 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13284
13285 if test "$wx_cv_func_vsnprintf" = yes; then
13286 cat >> confdefs.h <<\EOF
13287 #define HAVE_VSNPRINTF 1
13288 EOF
13289
13290 else
13291 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13292 fi
13293
13294 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13295 echo "configure:13296: checking for vsscanf" >&5
13296 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13297 echo $ac_n "(cached) $ac_c" 1>&6
13298 else
13299
13300 cat > conftest.$ac_ext <<EOF
13301 #line 13302 "configure"
13302 #include "confdefs.h"
13303
13304 #include <stdio.h>
13305 #include <stdarg.h>
13306
13307 int main() {
13308
13309 int wx_test_vsscanf(const char *, ...);
13310
13311 wx_test_vsscanf("%d");
13312 return 0;
13313 }
13314
13315 int wx_test_vsscanf(const char *fmt, ...)
13316 {
13317 va_list argp;
13318 va_start(argp, fmt);
13319 vsscanf("42", fmt, argp);
13320 va_end(argp);
13321
13322 ; return 0; }
13323 EOF
13324 if { (eval echo configure:13325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13325 rm -rf conftest*
13326
13327 wx_cv_func_vsscanf=yes
13328
13329 else
13330 echo "configure: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13332 rm -rf conftest*
13333
13334 wx_cv_func_vsscanf=no
13335
13336 fi
13337 rm -f conftest*
13338
13339 fi
13340
13341 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13342
13343 if test "$wx_cv_func_vsscanf" = yes; then
13344 cat >> confdefs.h <<\EOF
13345 #define HAVE_VSSCANF 1
13346 EOF
13347
13348 fi
13349
13350 if test "$TOOLKIT" != "MSW"; then
13351
13352
13353
13354 ac_ext=C
13355 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13356 ac_cpp='$CXXCPP $CPPFLAGS'
13357 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13358 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13359 cross_compiling=$ac_cv_prog_cxx_cross
13360
13361 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
13362 echo "configure:13363: checking if iconv() takes char**" >&5
13363 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13364 echo $ac_n "(cached) $ac_c" 1>&6
13365 else
13366
13367 cat > conftest.$ac_ext <<EOF
13368 #line 13369 "configure"
13369 #include "confdefs.h"
13370 #include <iconv.h>
13371 int main() {
13372
13373 char **inbuf, **outbuf;
13374 iconv_t cd;
13375 size_t insz, outsz;
13376 iconv(cd, inbuf, &insz, outbuf, &outsz);
13377
13378 ; return 0; }
13379 EOF
13380 if { (eval echo configure:13381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13381 rm -rf conftest*
13382 wx_cv_iconv_takes_char=yes
13383 else
13384 echo "configure: failed program was:" >&5
13385 cat conftest.$ac_ext >&5
13386 rm -rf conftest*
13387 wx_cv_iconv_takes_char=no
13388 fi
13389 rm -f conftest*
13390
13391 fi
13392
13393 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
13394 ac_ext=c
13395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13396 ac_cpp='$CPP $CPPFLAGS'
13397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13399 cross_compiling=$ac_cv_prog_cc_cross
13400
13401 if test "$wx_cv_iconv_takes_char" = yes ; then
13402 cat >> confdefs.h <<\EOF
13403 #define WX_ICONV_TAKES_CHAR 1
13404 EOF
13405
13406 fi
13407
13408
13409 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13410 for ac_func in sigaction
13411 do
13412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13413 echo "configure:13414: checking for $ac_func" >&5
13414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13415 echo $ac_n "(cached) $ac_c" 1>&6
13416 else
13417 cat > conftest.$ac_ext <<EOF
13418 #line 13419 "configure"
13419 #include "confdefs.h"
13420 /* System header to define __stub macros and hopefully few prototypes,
13421 which can conflict with char $ac_func(); below. */
13422 #include <assert.h>
13423 /* Override any gcc2 internal prototype to avoid an error. */
13424 /* We use char because int might match the return type of a gcc2
13425 builtin and then its argument prototype would still apply. */
13426 char $ac_func();
13427
13428 int main() {
13429
13430 /* The GNU C library defines this for functions which it implements
13431 to always fail with ENOSYS. Some functions are actually named
13432 something starting with __ and the normal name is an alias. */
13433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13434 choke me
13435 #else
13436 $ac_func();
13437 #endif
13438
13439 ; return 0; }
13440 EOF
13441 if { (eval echo configure:13442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13442 rm -rf conftest*
13443 eval "ac_cv_func_$ac_func=yes"
13444 else
13445 echo "configure: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13447 rm -rf conftest*
13448 eval "ac_cv_func_$ac_func=no"
13449 fi
13450 rm -f conftest*
13451 fi
13452
13453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13454 echo "$ac_t""yes" 1>&6
13455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13456 cat >> confdefs.h <<EOF
13457 #define $ac_tr_func 1
13458 EOF
13459
13460 else
13461 echo "$ac_t""no" 1>&6
13462 fi
13463 done
13464
13465
13466 if test "$ac_cv_func_sigaction" = "no"; then
13467 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13468 wxUSE_ON_FATAL_EXCEPTION=no
13469 fi
13470
13471 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13472
13473 ac_ext=C
13474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13475 ac_cpp='$CXXCPP $CPPFLAGS'
13476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13478 cross_compiling=$ac_cv_prog_cxx_cross
13479
13480
13481 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13482 echo "configure:13483: checking for sa_handler type" >&5
13483 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13484 echo $ac_n "(cached) $ac_c" 1>&6
13485 else
13486
13487 cat > conftest.$ac_ext <<EOF
13488 #line 13489 "configure"
13489 #include "confdefs.h"
13490 #include <signal.h>
13491 int main() {
13492
13493 extern void testSigHandler(int);
13494
13495 struct sigaction sa;
13496 sa.sa_handler = testSigHandler;
13497
13498 ; return 0; }
13499 EOF
13500 if { (eval echo configure:13501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13501 rm -rf conftest*
13502
13503 wx_cv_type_sa_handler=int
13504
13505 else
13506 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 rm -rf conftest*
13509
13510 wx_cv_type_sa_handler=void
13511
13512 fi
13513 rm -f conftest*
13514
13515 fi
13516
13517 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13518
13519 ac_ext=c
13520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13521 ac_cpp='$CPP $CPPFLAGS'
13522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13524 cross_compiling=$ac_cv_prog_cc_cross
13525
13526
13527 cat >> confdefs.h <<EOF
13528 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13529 EOF
13530
13531 fi
13532 fi
13533
13534 for ac_func in vfork
13535 do
13536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13537 echo "configure:13538: checking for $ac_func" >&5
13538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13539 echo $ac_n "(cached) $ac_c" 1>&6
13540 else
13541 cat > conftest.$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13544 /* System header to define __stub macros and hopefully few prototypes,
13545 which can conflict with char $ac_func(); below. */
13546 #include <assert.h>
13547 /* Override any gcc2 internal prototype to avoid an error. */
13548 /* We use char because int might match the return type of a gcc2
13549 builtin and then its argument prototype would still apply. */
13550 char $ac_func();
13551
13552 int main() {
13553
13554 /* The GNU C library defines this for functions which it implements
13555 to always fail with ENOSYS. Some functions are actually named
13556 something starting with __ and the normal name is an alias. */
13557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13558 choke me
13559 #else
13560 $ac_func();
13561 #endif
13562
13563 ; return 0; }
13564 EOF
13565 if { (eval echo configure:13566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13566 rm -rf conftest*
13567 eval "ac_cv_func_$ac_func=yes"
13568 else
13569 echo "configure: failed program was:" >&5
13570 cat conftest.$ac_ext >&5
13571 rm -rf conftest*
13572 eval "ac_cv_func_$ac_func=no"
13573 fi
13574 rm -f conftest*
13575 fi
13576
13577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13578 echo "$ac_t""yes" 1>&6
13579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13580 cat >> confdefs.h <<EOF
13581 #define $ac_tr_func 1
13582 EOF
13583
13584 else
13585 echo "$ac_t""no" 1>&6
13586 fi
13587 done
13588
13589
13590 echo $ac_n "checking for statfs""... $ac_c" 1>&6
13591 echo "configure:13592: checking for statfs" >&5
13592 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13593 echo $ac_n "(cached) $ac_c" 1>&6
13594 else
13595 cat > conftest.$ac_ext <<EOF
13596 #line 13597 "configure"
13597 #include "confdefs.h"
13598
13599 #include <sys/vfs.h>
13600
13601 int main() {
13602
13603 long l;
13604 struct statfs fs;
13605 statfs("/", &fs);
13606 l = fs.f_bsize;
13607 l += fs.f_blocks;
13608 l += fs.f_bavail;
13609
13610 ; return 0; }
13611 EOF
13612 if { (eval echo configure:13613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13613 rm -rf conftest*
13614
13615 wx_cv_func_statfs=yes
13616
13617 else
13618 echo "configure: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 rm -rf conftest*
13621
13622 wx_cv_func_statfs=no
13623
13624
13625 fi
13626 rm -f conftest*
13627
13628 fi
13629
13630 echo "$ac_t""$wx_cv_func_statfs" 1>&6
13631
13632 if test "$wx_cv_func_statfs" = "yes"; then
13633 cat >> confdefs.h <<\EOF
13634 #define HAVE_STATFS 1
13635 EOF
13636
13637 else
13638 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13639 fi
13640
13641 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13642 for ac_func in fcntl flock
13643 do
13644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13645 echo "configure:13646: checking for $ac_func" >&5
13646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13647 echo $ac_n "(cached) $ac_c" 1>&6
13648 else
13649 cat > conftest.$ac_ext <<EOF
13650 #line 13651 "configure"
13651 #include "confdefs.h"
13652 /* System header to define __stub macros and hopefully few prototypes,
13653 which can conflict with char $ac_func(); below. */
13654 #include <assert.h>
13655 /* Override any gcc2 internal prototype to avoid an error. */
13656 /* We use char because int might match the return type of a gcc2
13657 builtin and then its argument prototype would still apply. */
13658 char $ac_func();
13659
13660 int main() {
13661
13662 /* The GNU C library defines this for functions which it implements
13663 to always fail with ENOSYS. Some functions are actually named
13664 something starting with __ and the normal name is an alias. */
13665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13666 choke me
13667 #else
13668 $ac_func();
13669 #endif
13670
13671 ; return 0; }
13672 EOF
13673 if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13674 rm -rf conftest*
13675 eval "ac_cv_func_$ac_func=yes"
13676 else
13677 echo "configure: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13679 rm -rf conftest*
13680 eval "ac_cv_func_$ac_func=no"
13681 fi
13682 rm -f conftest*
13683 fi
13684
13685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13686 echo "$ac_t""yes" 1>&6
13687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13688 cat >> confdefs.h <<EOF
13689 #define $ac_tr_func 1
13690 EOF
13691 break
13692 else
13693 echo "$ac_t""no" 1>&6
13694 fi
13695 done
13696
13697
13698 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13699 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13700 wxUSE_SNGLINST_CHECKER=no
13701 fi
13702 fi
13703
13704 for ac_func in timegm
13705 do
13706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13707 echo "configure:13708: checking for $ac_func" >&5
13708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13710 else
13711 cat > conftest.$ac_ext <<EOF
13712 #line 13713 "configure"
13713 #include "confdefs.h"
13714 /* System header to define __stub macros and hopefully few prototypes,
13715 which can conflict with char $ac_func(); below. */
13716 #include <assert.h>
13717 /* Override any gcc2 internal prototype to avoid an error. */
13718 /* We use char because int might match the return type of a gcc2
13719 builtin and then its argument prototype would still apply. */
13720 char $ac_func();
13721
13722 int main() {
13723
13724 /* The GNU C library defines this for functions which it implements
13725 to always fail with ENOSYS. Some functions are actually named
13726 something starting with __ and the normal name is an alias. */
13727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13728 choke me
13729 #else
13730 $ac_func();
13731 #endif
13732
13733 ; return 0; }
13734 EOF
13735 if { (eval echo configure:13736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13736 rm -rf conftest*
13737 eval "ac_cv_func_$ac_func=yes"
13738 else
13739 echo "configure: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13741 rm -rf conftest*
13742 eval "ac_cv_func_$ac_func=no"
13743 fi
13744 rm -f conftest*
13745 fi
13746
13747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13750 cat >> confdefs.h <<EOF
13751 #define $ac_tr_func 1
13752 EOF
13753
13754 else
13755 echo "$ac_t""no" 1>&6
13756 fi
13757 done
13758
13759
13760 for ac_func in putenv setenv
13761 do
13762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13763 echo "configure:13764: checking for $ac_func" >&5
13764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13765 echo $ac_n "(cached) $ac_c" 1>&6
13766 else
13767 cat > conftest.$ac_ext <<EOF
13768 #line 13769 "configure"
13769 #include "confdefs.h"
13770 /* System header to define __stub macros and hopefully few prototypes,
13771 which can conflict with char $ac_func(); below. */
13772 #include <assert.h>
13773 /* Override any gcc2 internal prototype to avoid an error. */
13774 /* We use char because int might match the return type of a gcc2
13775 builtin and then its argument prototype would still apply. */
13776 char $ac_func();
13777
13778 int main() {
13779
13780 /* The GNU C library defines this for functions which it implements
13781 to always fail with ENOSYS. Some functions are actually named
13782 something starting with __ and the normal name is an alias. */
13783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13784 choke me
13785 #else
13786 $ac_func();
13787 #endif
13788
13789 ; return 0; }
13790 EOF
13791 if { (eval echo configure:13792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13792 rm -rf conftest*
13793 eval "ac_cv_func_$ac_func=yes"
13794 else
13795 echo "configure: failed program was:" >&5
13796 cat conftest.$ac_ext >&5
13797 rm -rf conftest*
13798 eval "ac_cv_func_$ac_func=no"
13799 fi
13800 rm -f conftest*
13801 fi
13802
13803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13804 echo "$ac_t""yes" 1>&6
13805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13806 cat >> confdefs.h <<EOF
13807 #define $ac_tr_func 1
13808 EOF
13809 break
13810 else
13811 echo "$ac_t""no" 1>&6
13812 fi
13813 done
13814
13815
13816 HAVE_SOME_SLEEP_FUNC=0
13817 if test "$USE_BEOS" = 1; then
13818 cat >> confdefs.h <<\EOF
13819 #define HAVE_SLEEP 1
13820 EOF
13821
13822 HAVE_SOME_SLEEP_FUNC=1
13823 fi
13824
13825 if test "$USE_DARWIN" = 1; then
13826 cat >> confdefs.h <<\EOF
13827 #define HAVE_USLEEP 1
13828 EOF
13829
13830 HAVE_SOME_SLEEP_FUNC=1
13831 fi
13832
13833 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13834 POSIX4_LINK=
13835 for ac_func in nanosleep
13836 do
13837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13838 echo "configure:13839: checking for $ac_func" >&5
13839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13840 echo $ac_n "(cached) $ac_c" 1>&6
13841 else
13842 cat > conftest.$ac_ext <<EOF
13843 #line 13844 "configure"
13844 #include "confdefs.h"
13845 /* System header to define __stub macros and hopefully few prototypes,
13846 which can conflict with char $ac_func(); below. */
13847 #include <assert.h>
13848 /* Override any gcc2 internal prototype to avoid an error. */
13849 /* We use char because int might match the return type of a gcc2
13850 builtin and then its argument prototype would still apply. */
13851 char $ac_func();
13852
13853 int main() {
13854
13855 /* The GNU C library defines this for functions which it implements
13856 to always fail with ENOSYS. Some functions are actually named
13857 something starting with __ and the normal name is an alias. */
13858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13859 choke me
13860 #else
13861 $ac_func();
13862 #endif
13863
13864 ; return 0; }
13865 EOF
13866 if { (eval echo configure:13867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13867 rm -rf conftest*
13868 eval "ac_cv_func_$ac_func=yes"
13869 else
13870 echo "configure: failed program was:" >&5
13871 cat conftest.$ac_ext >&5
13872 rm -rf conftest*
13873 eval "ac_cv_func_$ac_func=no"
13874 fi
13875 rm -f conftest*
13876 fi
13877
13878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13879 echo "$ac_t""yes" 1>&6
13880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13881 cat >> confdefs.h <<EOF
13882 #define $ac_tr_func 1
13883 EOF
13884 cat >> confdefs.h <<\EOF
13885 #define HAVE_NANOSLEEP 1
13886 EOF
13887
13888 else
13889 echo "$ac_t""no" 1>&6
13890 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13891 echo "configure:13892: checking for nanosleep in -lposix4" >&5
13892 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
13895 else
13896 ac_save_LIBS="$LIBS"
13897 LIBS="-lposix4 $LIBS"
13898 cat > conftest.$ac_ext <<EOF
13899 #line 13900 "configure"
13900 #include "confdefs.h"
13901 /* Override any gcc2 internal prototype to avoid an error. */
13902 /* We use char because int might match the return type of a gcc2
13903 builtin and then its argument prototype would still apply. */
13904 char nanosleep();
13905
13906 int main() {
13907 nanosleep()
13908 ; return 0; }
13909 EOF
13910 if { (eval echo configure:13911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13911 rm -rf conftest*
13912 eval "ac_cv_lib_$ac_lib_var=yes"
13913 else
13914 echo "configure: failed program was:" >&5
13915 cat conftest.$ac_ext >&5
13916 rm -rf conftest*
13917 eval "ac_cv_lib_$ac_lib_var=no"
13918 fi
13919 rm -f conftest*
13920 LIBS="$ac_save_LIBS"
13921
13922 fi
13923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13924 echo "$ac_t""yes" 1>&6
13925
13926 cat >> confdefs.h <<\EOF
13927 #define HAVE_NANOSLEEP 1
13928 EOF
13929
13930 POSIX4_LINK="-lposix4"
13931
13932 else
13933 echo "$ac_t""no" 1>&6
13934
13935 for ac_func in usleep
13936 do
13937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13938 echo "configure:13939: checking for $ac_func" >&5
13939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13940 echo $ac_n "(cached) $ac_c" 1>&6
13941 else
13942 cat > conftest.$ac_ext <<EOF
13943 #line 13944 "configure"
13944 #include "confdefs.h"
13945 /* System header to define __stub macros and hopefully few prototypes,
13946 which can conflict with char $ac_func(); below. */
13947 #include <assert.h>
13948 /* Override any gcc2 internal prototype to avoid an error. */
13949 /* We use char because int might match the return type of a gcc2
13950 builtin and then its argument prototype would still apply. */
13951 char $ac_func();
13952
13953 int main() {
13954
13955 /* The GNU C library defines this for functions which it implements
13956 to always fail with ENOSYS. Some functions are actually named
13957 something starting with __ and the normal name is an alias. */
13958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13959 choke me
13960 #else
13961 $ac_func();
13962 #endif
13963
13964 ; return 0; }
13965 EOF
13966 if { (eval echo configure:13967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13967 rm -rf conftest*
13968 eval "ac_cv_func_$ac_func=yes"
13969 else
13970 echo "configure: failed program was:" >&5
13971 cat conftest.$ac_ext >&5
13972 rm -rf conftest*
13973 eval "ac_cv_func_$ac_func=no"
13974 fi
13975 rm -f conftest*
13976 fi
13977
13978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13979 echo "$ac_t""yes" 1>&6
13980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13981 cat >> confdefs.h <<EOF
13982 #define $ac_tr_func 1
13983 EOF
13984 cat >> confdefs.h <<\EOF
13985 #define HAVE_USLEEP 1
13986 EOF
13987
13988 else
13989 echo "$ac_t""no" 1>&6
13990 echo "configure: warning: wxSleep() function will not work" 1>&2
13991
13992 fi
13993 done
13994
13995
13996
13997 fi
13998
13999
14000
14001 fi
14002 done
14003
14004 fi
14005
14006 for ac_func in uname gethostname
14007 do
14008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14009 echo "configure:14010: checking for $ac_func" >&5
14010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14011 echo $ac_n "(cached) $ac_c" 1>&6
14012 else
14013 cat > conftest.$ac_ext <<EOF
14014 #line 14015 "configure"
14015 #include "confdefs.h"
14016 /* System header to define __stub macros and hopefully few prototypes,
14017 which can conflict with char $ac_func(); below. */
14018 #include <assert.h>
14019 /* Override any gcc2 internal prototype to avoid an error. */
14020 /* We use char because int might match the return type of a gcc2
14021 builtin and then its argument prototype would still apply. */
14022 char $ac_func();
14023
14024 int main() {
14025
14026 /* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14030 choke me
14031 #else
14032 $ac_func();
14033 #endif
14034
14035 ; return 0; }
14036 EOF
14037 if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14038 rm -rf conftest*
14039 eval "ac_cv_func_$ac_func=yes"
14040 else
14041 echo "configure: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14043 rm -rf conftest*
14044 eval "ac_cv_func_$ac_func=no"
14045 fi
14046 rm -f conftest*
14047 fi
14048
14049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14050 echo "$ac_t""yes" 1>&6
14051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14052 cat >> confdefs.h <<EOF
14053 #define $ac_tr_func 1
14054 EOF
14055 break
14056 else
14057 echo "$ac_t""no" 1>&6
14058 fi
14059 done
14060
14061
14062
14063 ac_ext=C
14064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14065 ac_cpp='$CXXCPP $CPPFLAGS'
14066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14068 cross_compiling=$ac_cv_prog_cxx_cross
14069
14070
14071 for ac_func in strtok_r
14072 do
14073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14074 echo "configure:14075: checking for $ac_func" >&5
14075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14076 echo $ac_n "(cached) $ac_c" 1>&6
14077 else
14078 cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081 /* System header to define __stub macros and hopefully few prototypes,
14082 which can conflict with char $ac_func(); below. */
14083 #include <assert.h>
14084 /* Override any gcc2 internal prototype to avoid an error. */
14085 #ifdef __cplusplus
14086 extern "C"
14087 #endif
14088 /* We use char because int might match the return type of a gcc2
14089 builtin and then its argument prototype would still apply. */
14090 char $ac_func();
14091
14092 int main() {
14093
14094 /* The GNU C library defines this for functions which it implements
14095 to always fail with ENOSYS. Some functions are actually named
14096 something starting with __ and the normal name is an alias. */
14097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14098 choke me
14099 #else
14100 $ac_func();
14101 #endif
14102
14103 ; return 0; }
14104 EOF
14105 if { (eval echo configure:14106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14106 rm -rf conftest*
14107 eval "ac_cv_func_$ac_func=yes"
14108 else
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14111 rm -rf conftest*
14112 eval "ac_cv_func_$ac_func=no"
14113 fi
14114 rm -f conftest*
14115 fi
14116
14117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14118 echo "$ac_t""yes" 1>&6
14119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14120 cat >> confdefs.h <<EOF
14121 #define $ac_tr_func 1
14122 EOF
14123
14124 else
14125 echo "$ac_t""no" 1>&6
14126 fi
14127 done
14128
14129
14130 ac_ext=c
14131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14132 ac_cpp='$CPP $CPPFLAGS'
14133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14135 cross_compiling=$ac_cv_prog_cc_cross
14136
14137
14138 INET_LINK=
14139 for ac_func in inet_addr
14140 do
14141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14142 echo "configure:14143: checking for $ac_func" >&5
14143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14144 echo $ac_n "(cached) $ac_c" 1>&6
14145 else
14146 cat > conftest.$ac_ext <<EOF
14147 #line 14148 "configure"
14148 #include "confdefs.h"
14149 /* System header to define __stub macros and hopefully few prototypes,
14150 which can conflict with char $ac_func(); below. */
14151 #include <assert.h>
14152 /* Override any gcc2 internal prototype to avoid an error. */
14153 /* We use char because int might match the return type of a gcc2
14154 builtin and then its argument prototype would still apply. */
14155 char $ac_func();
14156
14157 int main() {
14158
14159 /* The GNU C library defines this for functions which it implements
14160 to always fail with ENOSYS. Some functions are actually named
14161 something starting with __ and the normal name is an alias. */
14162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14163 choke me
14164 #else
14165 $ac_func();
14166 #endif
14167
14168 ; return 0; }
14169 EOF
14170 if { (eval echo configure:14171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14171 rm -rf conftest*
14172 eval "ac_cv_func_$ac_func=yes"
14173 else
14174 echo "configure: failed program was:" >&5
14175 cat conftest.$ac_ext >&5
14176 rm -rf conftest*
14177 eval "ac_cv_func_$ac_func=no"
14178 fi
14179 rm -f conftest*
14180 fi
14181
14182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14183 echo "$ac_t""yes" 1>&6
14184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14185 cat >> confdefs.h <<EOF
14186 #define $ac_tr_func 1
14187 EOF
14188 cat >> confdefs.h <<\EOF
14189 #define HAVE_INET_ADDR 1
14190 EOF
14191
14192 else
14193 echo "$ac_t""no" 1>&6
14194 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
14195 echo "configure:14196: checking for inet_addr in -lnsl" >&5
14196 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14198 echo $ac_n "(cached) $ac_c" 1>&6
14199 else
14200 ac_save_LIBS="$LIBS"
14201 LIBS="-lnsl $LIBS"
14202 cat > conftest.$ac_ext <<EOF
14203 #line 14204 "configure"
14204 #include "confdefs.h"
14205 /* Override any gcc2 internal prototype to avoid an error. */
14206 /* We use char because int might match the return type of a gcc2
14207 builtin and then its argument prototype would still apply. */
14208 char inet_addr();
14209
14210 int main() {
14211 inet_addr()
14212 ; return 0; }
14213 EOF
14214 if { (eval echo configure:14215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14215 rm -rf conftest*
14216 eval "ac_cv_lib_$ac_lib_var=yes"
14217 else
14218 echo "configure: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14220 rm -rf conftest*
14221 eval "ac_cv_lib_$ac_lib_var=no"
14222 fi
14223 rm -f conftest*
14224 LIBS="$ac_save_LIBS"
14225
14226 fi
14227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14228 echo "$ac_t""yes" 1>&6
14229 INET_LINK="nsl"
14230 else
14231 echo "$ac_t""no" 1>&6
14232 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
14233 echo "configure:14234: checking for inet_addr in -lresolv" >&5
14234 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14236 echo $ac_n "(cached) $ac_c" 1>&6
14237 else
14238 ac_save_LIBS="$LIBS"
14239 LIBS="-lresolv $LIBS"
14240 cat > conftest.$ac_ext <<EOF
14241 #line 14242 "configure"
14242 #include "confdefs.h"
14243 /* Override any gcc2 internal prototype to avoid an error. */
14244 /* We use char because int might match the return type of a gcc2
14245 builtin and then its argument prototype would still apply. */
14246 char inet_addr();
14247
14248 int main() {
14249 inet_addr()
14250 ; return 0; }
14251 EOF
14252 if { (eval echo configure:14253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14253 rm -rf conftest*
14254 eval "ac_cv_lib_$ac_lib_var=yes"
14255 else
14256 echo "configure: failed program was:" >&5
14257 cat conftest.$ac_ext >&5
14258 rm -rf conftest*
14259 eval "ac_cv_lib_$ac_lib_var=no"
14260 fi
14261 rm -f conftest*
14262 LIBS="$ac_save_LIBS"
14263
14264 fi
14265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14266 echo "$ac_t""yes" 1>&6
14267 INET_LINK="resolv"
14268
14269 else
14270 echo "$ac_t""no" 1>&6
14271 fi
14272
14273
14274 fi
14275
14276
14277
14278 fi
14279 done
14280
14281
14282 for ac_func in inet_aton
14283 do
14284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14285 echo "configure:14286: checking for $ac_func" >&5
14286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14287 echo $ac_n "(cached) $ac_c" 1>&6
14288 else
14289 cat > conftest.$ac_ext <<EOF
14290 #line 14291 "configure"
14291 #include "confdefs.h"
14292 /* System header to define __stub macros and hopefully few prototypes,
14293 which can conflict with char $ac_func(); below. */
14294 #include <assert.h>
14295 /* Override any gcc2 internal prototype to avoid an error. */
14296 /* We use char because int might match the return type of a gcc2
14297 builtin and then its argument prototype would still apply. */
14298 char $ac_func();
14299
14300 int main() {
14301
14302 /* The GNU C library defines this for functions which it implements
14303 to always fail with ENOSYS. Some functions are actually named
14304 something starting with __ and the normal name is an alias. */
14305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14306 choke me
14307 #else
14308 $ac_func();
14309 #endif
14310
14311 ; return 0; }
14312 EOF
14313 if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14314 rm -rf conftest*
14315 eval "ac_cv_func_$ac_func=yes"
14316 else
14317 echo "configure: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
14319 rm -rf conftest*
14320 eval "ac_cv_func_$ac_func=no"
14321 fi
14322 rm -f conftest*
14323 fi
14324
14325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14326 echo "$ac_t""yes" 1>&6
14327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14328 cat >> confdefs.h <<EOF
14329 #define $ac_tr_func 1
14330 EOF
14331 cat >> confdefs.h <<\EOF
14332 #define HAVE_INET_ATON 1
14333 EOF
14334
14335 else
14336 echo "$ac_t""no" 1>&6
14337 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
14338 echo "configure:14339: checking for inet_aton in -l$INET_LINK" >&5
14339 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14341 echo $ac_n "(cached) $ac_c" 1>&6
14342 else
14343 ac_save_LIBS="$LIBS"
14344 LIBS="-l$INET_LINK $LIBS"
14345 cat > conftest.$ac_ext <<EOF
14346 #line 14347 "configure"
14347 #include "confdefs.h"
14348 /* Override any gcc2 internal prototype to avoid an error. */
14349 /* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14351 char inet_aton();
14352
14353 int main() {
14354 inet_aton()
14355 ; return 0; }
14356 EOF
14357 if { (eval echo configure:14358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14358 rm -rf conftest*
14359 eval "ac_cv_lib_$ac_lib_var=yes"
14360 else
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 rm -rf conftest*
14364 eval "ac_cv_lib_$ac_lib_var=no"
14365 fi
14366 rm -f conftest*
14367 LIBS="$ac_save_LIBS"
14368
14369 fi
14370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14371 echo "$ac_t""yes" 1>&6
14372 cat >> confdefs.h <<\EOF
14373 #define HAVE_INET_ATON 1
14374 EOF
14375
14376 else
14377 echo "$ac_t""no" 1>&6
14378 fi
14379
14380
14381 fi
14382 done
14383
14384
14385 if test "x$INET_LINK" != "x"; then
14386 cat >> confdefs.h <<\EOF
14387 #define HAVE_INET_ADDR 1
14388 EOF
14389
14390 INET_LINK="-l$INET_LINK"
14391 fi
14392
14393 fi
14394
14395
14396 cat > confcache <<\EOF
14397 # This file is a shell script that caches the results of configure
14398 # tests run on this system so they can be shared between configure
14399 # scripts and configure runs. It is not useful on other systems.
14400 # If it contains results you don't want to keep, you may remove or edit it.
14401 #
14402 # By default, configure uses ./config.cache as the cache file,
14403 # creating it if it does not exist already. You can give configure
14404 # the --cache-file=FILE option to use a different cache file; that is
14405 # what configure does when it calls configure scripts in
14406 # subdirectories, so they share the cache.
14407 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14408 # config.status only pays attention to the cache file if you give it the
14409 # --recheck option to rerun configure.
14410 #
14411 EOF
14412 # The following way of writing the cache mishandles newlines in values,
14413 # but we know of no workaround that is simple, portable, and efficient.
14414 # So, don't put newlines in cache variables' values.
14415 # Ultrix sh set writes to stderr and can't be redirected directly,
14416 # and sets the high bit in the cache file unless we assign to the vars.
14417 (set) 2>&1 |
14418 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14419 *ac_space=\ *)
14420 # `set' does not quote correctly, so add quotes (double-quote substitution
14421 # turns \\\\ into \\, and sed turns \\ into \).
14422 sed -n \
14423 -e "s/'/'\\\\''/g" \
14424 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14425 ;;
14426 *)
14427 # `set' quotes correctly as required by POSIX, so do not add quotes.
14428 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14429 ;;
14430 esac >> confcache
14431 if cmp -s $cache_file confcache; then
14432 :
14433 else
14434 if test -w $cache_file; then
14435 echo "updating cache $cache_file"
14436 cat confcache > $cache_file
14437 else
14438 echo "not updating unwritable cache $cache_file"
14439 fi
14440 fi
14441 rm -f confcache
14442
14443
14444
14445 if test "$TOOLKIT" != "MSW"; then
14446
14447
14448 THREADS_LINK=
14449 THREADS_OBJ=
14450 CODE_GEN_FLAGS=
14451 CODE_GEN_FLAGS_CXX=
14452
14453 if test "$wxUSE_THREADS" = "yes" ; then
14454 if test "$wxUSE_WINE" = 1 ; then
14455 echo "configure: warning: Threads are not supported under WINE" 1>&2
14456 wxUSE_THREADS="no"
14457 elif test "$USE_BEOS" = 1; then
14458 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14459 wxUSE_THREADS="no"
14460 fi
14461 fi
14462
14463 if test "$wxUSE_THREADS" = "yes" ; then
14464
14465 if test "$USE_AIX" = 1; then
14466 THREADS_LIB=pthreads
14467 else
14468 THREADS_LIB=pthread
14469 fi
14470
14471 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14472 echo "configure:14473: checking for pthread_create in -l$THREADS_LIB" >&5
14473 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14475 echo $ac_n "(cached) $ac_c" 1>&6
14476 else
14477 ac_save_LIBS="$LIBS"
14478 LIBS="-l$THREADS_LIB $LIBS"
14479 cat > conftest.$ac_ext <<EOF
14480 #line 14481 "configure"
14481 #include "confdefs.h"
14482 /* Override any gcc2 internal prototype to avoid an error. */
14483 /* We use char because int might match the return type of a gcc2
14484 builtin and then its argument prototype would still apply. */
14485 char pthread_create();
14486
14487 int main() {
14488 pthread_create()
14489 ; return 0; }
14490 EOF
14491 if { (eval echo configure:14492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14492 rm -rf conftest*
14493 eval "ac_cv_lib_$ac_lib_var=yes"
14494 else
14495 echo "configure: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14497 rm -rf conftest*
14498 eval "ac_cv_lib_$ac_lib_var=no"
14499 fi
14500 rm -f conftest*
14501 LIBS="$ac_save_LIBS"
14502
14503 fi
14504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14505 echo "$ac_t""yes" 1>&6
14506
14507 THREADS_OBJ="threadpsx.lo"
14508 THREADS_LINK=$THREADS_LIB
14509
14510 else
14511 echo "$ac_t""no" 1>&6
14512
14513 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14514 echo "configure:14515: checking for pthread_create in -lc_r" >&5
14515 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14517 echo $ac_n "(cached) $ac_c" 1>&6
14518 else
14519 ac_save_LIBS="$LIBS"
14520 LIBS="-lc_r $LIBS"
14521 cat > conftest.$ac_ext <<EOF
14522 #line 14523 "configure"
14523 #include "confdefs.h"
14524 /* Override any gcc2 internal prototype to avoid an error. */
14525 /* We use char because int might match the return type of a gcc2
14526 builtin and then its argument prototype would still apply. */
14527 char pthread_create();
14528
14529 int main() {
14530 pthread_create()
14531 ; return 0; }
14532 EOF
14533 if { (eval echo configure:14534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14534 rm -rf conftest*
14535 eval "ac_cv_lib_$ac_lib_var=yes"
14536 else
14537 echo "configure: failed program was:" >&5
14538 cat conftest.$ac_ext >&5
14539 rm -rf conftest*
14540 eval "ac_cv_lib_$ac_lib_var=no"
14541 fi
14542 rm -f conftest*
14543 LIBS="$ac_save_LIBS"
14544
14545 fi
14546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14547 echo "$ac_t""yes" 1>&6
14548
14549 THREADS_OBJ="threadpsx.lo"
14550 THREADS_LINK="c_r"
14551
14552 else
14553 echo "$ac_t""no" 1>&6
14554
14555 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14556 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14557 echo "configure:14558: checking for sys/prctl.h" >&5
14558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14559 echo $ac_n "(cached) $ac_c" 1>&6
14560 else
14561 cat > conftest.$ac_ext <<EOF
14562 #line 14563 "configure"
14563 #include "confdefs.h"
14564 #include <sys/prctl.h>
14565 EOF
14566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14567 { (eval echo configure:14568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14569 if test -z "$ac_err"; then
14570 rm -rf conftest*
14571 eval "ac_cv_header_$ac_safe=yes"
14572 else
14573 echo "$ac_err" >&5
14574 echo "configure: failed program was:" >&5
14575 cat conftest.$ac_ext >&5
14576 rm -rf conftest*
14577 eval "ac_cv_header_$ac_safe=no"
14578 fi
14579 rm -f conftest*
14580 fi
14581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14582 echo "$ac_t""yes" 1>&6
14583
14584 THREADS_OBJ="threadsgi.lo"
14585
14586 else
14587 echo "$ac_t""no" 1>&6
14588 fi
14589
14590
14591 fi
14592
14593
14594 fi
14595
14596
14597 if test -z "$THREADS_OBJ" ; then
14598 wxUSE_THREADS=no
14599 echo "configure: warning: No thread support on this system" 1>&2
14600 fi
14601 fi
14602
14603 if test "$wxUSE_THREADS" = "yes" ; then
14604 for ac_func in thr_setconcurrency
14605 do
14606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14607 echo "configure:14608: checking for $ac_func" >&5
14608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14610 else
14611 cat > conftest.$ac_ext <<EOF
14612 #line 14613 "configure"
14613 #include "confdefs.h"
14614 /* System header to define __stub macros and hopefully few prototypes,
14615 which can conflict with char $ac_func(); below. */
14616 #include <assert.h>
14617 /* Override any gcc2 internal prototype to avoid an error. */
14618 /* We use char because int might match the return type of a gcc2
14619 builtin and then its argument prototype would still apply. */
14620 char $ac_func();
14621
14622 int main() {
14623
14624 /* The GNU C library defines this for functions which it implements
14625 to always fail with ENOSYS. Some functions are actually named
14626 something starting with __ and the normal name is an alias. */
14627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14628 choke me
14629 #else
14630 $ac_func();
14631 #endif
14632
14633 ; return 0; }
14634 EOF
14635 if { (eval echo configure:14636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14636 rm -rf conftest*
14637 eval "ac_cv_func_$ac_func=yes"
14638 else
14639 echo "configure: failed program was:" >&5
14640 cat conftest.$ac_ext >&5
14641 rm -rf conftest*
14642 eval "ac_cv_func_$ac_func=no"
14643 fi
14644 rm -f conftest*
14645 fi
14646
14647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14648 echo "$ac_t""yes" 1>&6
14649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14650 cat >> confdefs.h <<EOF
14651 #define $ac_tr_func 1
14652 EOF
14653
14654 else
14655 echo "$ac_t""no" 1>&6
14656 fi
14657 done
14658
14659
14660
14661 for ac_hdr in sched.h
14662 do
14663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14665 echo "configure:14666: checking for $ac_hdr" >&5
14666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14667 echo $ac_n "(cached) $ac_c" 1>&6
14668 else
14669 cat > conftest.$ac_ext <<EOF
14670 #line 14671 "configure"
14671 #include "confdefs.h"
14672 #include <$ac_hdr>
14673 EOF
14674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14675 { (eval echo configure:14676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14677 if test -z "$ac_err"; then
14678 rm -rf conftest*
14679 eval "ac_cv_header_$ac_safe=yes"
14680 else
14681 echo "$ac_err" >&5
14682 echo "configure: failed program was:" >&5
14683 cat conftest.$ac_ext >&5
14684 rm -rf conftest*
14685 eval "ac_cv_header_$ac_safe=no"
14686 fi
14687 rm -f conftest*
14688 fi
14689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14690 echo "$ac_t""yes" 1>&6
14691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14692 cat >> confdefs.h <<EOF
14693 #define $ac_tr_hdr 1
14694 EOF
14695
14696 else
14697 echo "$ac_t""no" 1>&6
14698 fi
14699 done
14700
14701
14702 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14703 echo "configure:14704: checking for sched_yield in -l$THREADS_LINK" >&5
14704 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14706 echo $ac_n "(cached) $ac_c" 1>&6
14707 else
14708 ac_save_LIBS="$LIBS"
14709 LIBS="-l$THREADS_LINK $LIBS"
14710 cat > conftest.$ac_ext <<EOF
14711 #line 14712 "configure"
14712 #include "confdefs.h"
14713 /* Override any gcc2 internal prototype to avoid an error. */
14714 /* We use char because int might match the return type of a gcc2
14715 builtin and then its argument prototype would still apply. */
14716 char sched_yield();
14717
14718 int main() {
14719 sched_yield()
14720 ; return 0; }
14721 EOF
14722 if { (eval echo configure:14723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14723 rm -rf conftest*
14724 eval "ac_cv_lib_$ac_lib_var=yes"
14725 else
14726 echo "configure: failed program was:" >&5
14727 cat conftest.$ac_ext >&5
14728 rm -rf conftest*
14729 eval "ac_cv_lib_$ac_lib_var=no"
14730 fi
14731 rm -f conftest*
14732 LIBS="$ac_save_LIBS"
14733
14734 fi
14735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14736 echo "$ac_t""yes" 1>&6
14737 cat >> confdefs.h <<\EOF
14738 #define HAVE_SCHED_YIELD 1
14739 EOF
14740
14741 else
14742 echo "$ac_t""no" 1>&6
14743 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14744 echo "configure:14745: checking for sched_yield in -lposix4" >&5
14745 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14747 echo $ac_n "(cached) $ac_c" 1>&6
14748 else
14749 ac_save_LIBS="$LIBS"
14750 LIBS="-lposix4 $LIBS"
14751 cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 /* Override any gcc2 internal prototype to avoid an error. */
14755 /* We use char because int might match the return type of a gcc2
14756 builtin and then its argument prototype would still apply. */
14757 char sched_yield();
14758
14759 int main() {
14760 sched_yield()
14761 ; return 0; }
14762 EOF
14763 if { (eval echo configure:14764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14764 rm -rf conftest*
14765 eval "ac_cv_lib_$ac_lib_var=yes"
14766 else
14767 echo "configure: failed program was:" >&5
14768 cat conftest.$ac_ext >&5
14769 rm -rf conftest*
14770 eval "ac_cv_lib_$ac_lib_var=no"
14771 fi
14772 rm -f conftest*
14773 LIBS="$ac_save_LIBS"
14774
14775 fi
14776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14777 echo "$ac_t""yes" 1>&6
14778 cat >> confdefs.h <<\EOF
14779 #define HAVE_SCHED_YIELD 1
14780 EOF
14781 POSIX4_LINK="-lposix4"
14782 else
14783 echo "$ac_t""no" 1>&6
14784 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14785
14786 fi
14787
14788
14789 fi
14790
14791
14792 HAVE_PRIOR_FUNCS=0
14793 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14794 echo "configure:14795: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14795 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14797 echo $ac_n "(cached) $ac_c" 1>&6
14798 else
14799 ac_save_LIBS="$LIBS"
14800 LIBS="-l$THREADS_LINK $LIBS"
14801 cat > conftest.$ac_ext <<EOF
14802 #line 14803 "configure"
14803 #include "confdefs.h"
14804 /* Override any gcc2 internal prototype to avoid an error. */
14805 /* We use char because int might match the return type of a gcc2
14806 builtin and then its argument prototype would still apply. */
14807 char pthread_attr_getschedpolicy();
14808
14809 int main() {
14810 pthread_attr_getschedpolicy()
14811 ; return 0; }
14812 EOF
14813 if { (eval echo configure:14814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14814 rm -rf conftest*
14815 eval "ac_cv_lib_$ac_lib_var=yes"
14816 else
14817 echo "configure: failed program was:" >&5
14818 cat conftest.$ac_ext >&5
14819 rm -rf conftest*
14820 eval "ac_cv_lib_$ac_lib_var=no"
14821 fi
14822 rm -f conftest*
14823 LIBS="$ac_save_LIBS"
14824
14825 fi
14826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14827 echo "$ac_t""yes" 1>&6
14828 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14829 echo "configure:14830: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14830 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14832 echo $ac_n "(cached) $ac_c" 1>&6
14833 else
14834 ac_save_LIBS="$LIBS"
14835 LIBS="-l$THREADS_LINK $LIBS"
14836 cat > conftest.$ac_ext <<EOF
14837 #line 14838 "configure"
14838 #include "confdefs.h"
14839 /* Override any gcc2 internal prototype to avoid an error. */
14840 /* We use char because int might match the return type of a gcc2
14841 builtin and then its argument prototype would still apply. */
14842 char pthread_attr_setschedparam();
14843
14844 int main() {
14845 pthread_attr_setschedparam()
14846 ; return 0; }
14847 EOF
14848 if { (eval echo configure:14849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14849 rm -rf conftest*
14850 eval "ac_cv_lib_$ac_lib_var=yes"
14851 else
14852 echo "configure: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14854 rm -rf conftest*
14855 eval "ac_cv_lib_$ac_lib_var=no"
14856 fi
14857 rm -f conftest*
14858 LIBS="$ac_save_LIBS"
14859
14860 fi
14861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14862 echo "$ac_t""yes" 1>&6
14863 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14864 echo "configure:14865: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14865 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14867 echo $ac_n "(cached) $ac_c" 1>&6
14868 else
14869 ac_save_LIBS="$LIBS"
14870 LIBS="-l$THREADS_LINK $LIBS"
14871 cat > conftest.$ac_ext <<EOF
14872 #line 14873 "configure"
14873 #include "confdefs.h"
14874 /* Override any gcc2 internal prototype to avoid an error. */
14875 /* We use char because int might match the return type of a gcc2
14876 builtin and then its argument prototype would still apply. */
14877 char sched_get_priority_max();
14878
14879 int main() {
14880 sched_get_priority_max()
14881 ; return 0; }
14882 EOF
14883 if { (eval echo configure:14884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14884 rm -rf conftest*
14885 eval "ac_cv_lib_$ac_lib_var=yes"
14886 else
14887 echo "configure: failed program was:" >&5
14888 cat conftest.$ac_ext >&5
14889 rm -rf conftest*
14890 eval "ac_cv_lib_$ac_lib_var=no"
14891 fi
14892 rm -f conftest*
14893 LIBS="$ac_save_LIBS"
14894
14895 fi
14896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14897 echo "$ac_t""yes" 1>&6
14898 HAVE_PRIOR_FUNCS=1
14899 else
14900 echo "$ac_t""no" 1>&6
14901 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14902 echo "configure:14903: checking for sched_get_priority_max in -lposix4" >&5
14903 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14905 echo $ac_n "(cached) $ac_c" 1>&6
14906 else
14907 ac_save_LIBS="$LIBS"
14908 LIBS="-lposix4 $LIBS"
14909 cat > conftest.$ac_ext <<EOF
14910 #line 14911 "configure"
14911 #include "confdefs.h"
14912 /* Override any gcc2 internal prototype to avoid an error. */
14913 /* We use char because int might match the return type of a gcc2
14914 builtin and then its argument prototype would still apply. */
14915 char sched_get_priority_max();
14916
14917 int main() {
14918 sched_get_priority_max()
14919 ; return 0; }
14920 EOF
14921 if { (eval echo configure:14922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14922 rm -rf conftest*
14923 eval "ac_cv_lib_$ac_lib_var=yes"
14924 else
14925 echo "configure: failed program was:" >&5
14926 cat conftest.$ac_ext >&5
14927 rm -rf conftest*
14928 eval "ac_cv_lib_$ac_lib_var=no"
14929 fi
14930 rm -f conftest*
14931 LIBS="$ac_save_LIBS"
14932
14933 fi
14934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14935 echo "$ac_t""yes" 1>&6
14936
14937 HAVE_PRIOR_FUNCS=1
14938 POSIX4_LINK="-lposix4"
14939
14940 else
14941 echo "$ac_t""no" 1>&6
14942 fi
14943
14944
14945 fi
14946
14947
14948 else
14949 echo "$ac_t""no" 1>&6
14950 fi
14951
14952
14953 else
14954 echo "$ac_t""no" 1>&6
14955 fi
14956
14957
14958 if test "$HAVE_PRIOR_FUNCS" = 1; then
14959 cat >> confdefs.h <<\EOF
14960 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14961 EOF
14962
14963 else
14964 echo "configure: warning: Setting thread priority will not work" 1>&2
14965 fi
14966
14967 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14968 echo "configure:14969: checking for pthread_cancel in -l$THREADS_LINK" >&5
14969 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14971 echo $ac_n "(cached) $ac_c" 1>&6
14972 else
14973 ac_save_LIBS="$LIBS"
14974 LIBS="-l$THREADS_LINK $LIBS"
14975 cat > conftest.$ac_ext <<EOF
14976 #line 14977 "configure"
14977 #include "confdefs.h"
14978 /* Override any gcc2 internal prototype to avoid an error. */
14979 /* We use char because int might match the return type of a gcc2
14980 builtin and then its argument prototype would still apply. */
14981 char pthread_cancel();
14982
14983 int main() {
14984 pthread_cancel()
14985 ; return 0; }
14986 EOF
14987 if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14988 rm -rf conftest*
14989 eval "ac_cv_lib_$ac_lib_var=yes"
14990 else
14991 echo "configure: failed program was:" >&5
14992 cat conftest.$ac_ext >&5
14993 rm -rf conftest*
14994 eval "ac_cv_lib_$ac_lib_var=no"
14995 fi
14996 rm -f conftest*
14997 LIBS="$ac_save_LIBS"
14998
14999 fi
15000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15001 echo "$ac_t""yes" 1>&6
15002 cat >> confdefs.h <<\EOF
15003 #define HAVE_PTHREAD_CANCEL 1
15004 EOF
15005
15006 else
15007 echo "$ac_t""no" 1>&6
15008 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15009 fi
15010
15011
15012 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15013 echo "configure:15014: checking for pthread_cleanup_push/pop" >&5
15014 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15015 echo $ac_n "(cached) $ac_c" 1>&6
15016 else
15017
15018 cat > conftest.$ac_ext <<EOF
15019 #line 15020 "configure"
15020 #include "confdefs.h"
15021 #include <pthread.h>
15022 int main() {
15023
15024 pthread_cleanup_push(NULL, NULL);
15025 pthread_cleanup_pop(0);
15026
15027 ; return 0; }
15028 EOF
15029 if { (eval echo configure:15030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15030 rm -rf conftest*
15031
15032 wx_cv_func_pthread_cleanup_push=yes
15033
15034 else
15035 echo "configure: failed program was:" >&5
15036 cat conftest.$ac_ext >&5
15037 rm -rf conftest*
15038
15039 wx_cv_func_pthread_cleanup_push=no
15040
15041 fi
15042 rm -f conftest*
15043
15044 fi
15045
15046 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15047
15048 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15049 cat >> confdefs.h <<\EOF
15050 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15051 EOF
15052
15053 fi
15054
15055
15056 if test "x$wx_lib_glibc21" = "xyes"; then
15057 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15058 fi
15059
15060 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15061 echo "configure:15062: checking for pthread_mutexattr_t" >&5
15062 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15063 echo $ac_n "(cached) $ac_c" 1>&6
15064 else
15065
15066 cat > conftest.$ac_ext <<EOF
15067 #line 15068 "configure"
15068 #include "confdefs.h"
15069 #include <pthread.h>
15070 int main() {
15071
15072 pthread_mutexattr_t attr;
15073 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15074
15075 ; return 0; }
15076 EOF
15077 if { (eval echo configure:15078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15078 rm -rf conftest*
15079
15080 wx_cv_type_pthread_mutexattr_t=yes
15081
15082 else
15083 echo "configure: failed program was:" >&5
15084 cat conftest.$ac_ext >&5
15085 rm -rf conftest*
15086
15087 wx_cv_type_pthread_mutexattr_t=no
15088
15089
15090 fi
15091 rm -f conftest*
15092
15093 fi
15094
15095 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15096
15097 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15098 cat >> confdefs.h <<\EOF
15099 #define HAVE_PTHREAD_MUTEXATTR_T 1
15100 EOF
15101
15102 else
15103 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15104 echo "configure:15105: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15105 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107 else
15108
15109 cat > conftest.$ac_ext <<EOF
15110 #line 15111 "configure"
15111 #include "confdefs.h"
15112 #include <pthread.h>
15113 int main() {
15114
15115 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15116
15117 ; return 0; }
15118 EOF
15119 if { (eval echo configure:15120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15120 rm -rf conftest*
15121
15122 wx_cv_type_pthread_rec_mutex_init=yes
15123
15124 else
15125 echo "configure: failed program was:" >&5
15126 cat conftest.$ac_ext >&5
15127 rm -rf conftest*
15128
15129 wx_cv_type_pthread_rec_mutex_init=no
15130
15131
15132 fi
15133 rm -f conftest*
15134
15135 fi
15136
15137 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15138 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15139 cat >> confdefs.h <<\EOF
15140 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15141 EOF
15142
15143 else
15144 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15145 fi
15146 fi
15147
15148 THREADS_LINK="-l$THREADS_LINK"
15149
15150 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15151 CPPFLAGS="${CFLAGS} -mt"
15152 CXXFLAGS="${CXXFLAGS} -mt"
15153 LDFLAGS="${LDFLAGS} -mt"
15154 fi
15155 fi
15156
15157 fi
15158
15159 if test "$wxUSE_THREADS" = "yes"; then
15160 cat >> confdefs.h <<\EOF
15161 #define wxUSE_THREADS 1
15162 EOF
15163
15164
15165 if test "$USE_DARWIN" != 1; then
15166 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15167 fi
15168
15169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15170 else
15171 if test "$ac_cv_func_strtok_r" = "yes"; then
15172 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15173 echo "configure:15174: checking if -D_REENTRANT is needed" >&5
15174 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15175 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15176 echo "$ac_t""yes" 1>&6
15177 else
15178 echo "$ac_t""no" 1>&6
15179 fi
15180 fi
15181 fi
15182
15183 if test "$WXGTK20" = 1 ; then
15184 cat >> confdefs.h <<EOF
15185 #define __WXGTK20__ $WXGTK20
15186 EOF
15187
15188 WXGTK12=1
15189 fi
15190
15191 if test "$WXGTK12" = 1 ; then
15192 cat >> confdefs.h <<EOF
15193 #define __WXGTK12__ $WXGTK12
15194 EOF
15195
15196 fi
15197
15198 if test "$WXGTK127" = 1 ; then
15199 cat >> confdefs.h <<EOF
15200 #define __WXGTK127__ $WXGTK127
15201 EOF
15202
15203 fi
15204
15205 WXDEBUG=
15206
15207 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15208 WXDEBUG="-g"
15209 wxUSE_OPTIMISE=no
15210 fi
15211
15212 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15213 wxUSE_DEBUG_INFO=yes
15214 WXDEBUG="-ggdb"
15215 fi
15216
15217 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15218 cat >> confdefs.h <<\EOF
15219 #define WXDEBUG 1
15220 EOF
15221
15222 WXDEBUG_DEFINE="-D__WXDEBUG__"
15223 else
15224 if test "$wxUSE_GTK" = 1 ; then
15225 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15226 fi
15227 fi
15228
15229 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15230 cat >> confdefs.h <<\EOF
15231 #define wxUSE_MEMORY_TRACING 1
15232 EOF
15233
15234 cat >> confdefs.h <<\EOF
15235 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15236 EOF
15237
15238 cat >> confdefs.h <<\EOF
15239 #define wxUSE_DEBUG_NEW_ALWAYS 1
15240 EOF
15241
15242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15243 fi
15244
15245 if test "$wxUSE_DMALLOC" = "yes" ; then
15246 DMALLOC_LINK="-ldmalloc"
15247 fi
15248
15249 PROFILE=
15250 if test "$wxUSE_PROFILE" = "yes" ; then
15251 PROFILE="-pg"
15252 fi
15253
15254 if test "$GCC" = yes ; then
15255 if test "$wxUSE_NO_RTTI" = "yes" ; then
15256 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
15257 fi
15258 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15259 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
15260 fi
15261 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15262 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15263 fi
15264 if test "$wxUSE_NO_DEPS" = "no" ; then
15265 CFLAGS="-MMD ${CFLAGS}"
15266 CXXFLAGS="-MMD ${CXXFLAGS}"
15267 fi
15268 if test "$USE_WIN32" = 1 ; then
15269 # I'm not even really sure what this was ever added to solve,
15270 # but someone added it for mingw native builds, so I guess
15271 # they had a reason, right??
15272 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
15273 fi
15274 fi
15275
15276
15277 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15278 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15279 if test "$wxUSE_OPTIMISE" = "no" ; then
15280 OPTIMISE=
15281 else
15282 if test "$GCC" = yes ; then
15283 OPTIMISE="-O2"
15284 case "${host}" in
15285 i586-*-*|i686-*-* )
15286 OPTIMISE="${OPTIMISE} "
15287 ;;
15288 esac
15289 else
15290 OPTIMISE="-O"
15291 fi
15292 fi
15293
15294 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15295 cat >> confdefs.h <<\EOF
15296 #define WXWIN_COMPATIBILITY_2 1
15297 EOF
15298
15299
15300 WXWIN_COMPATIBILITY_2_2="yes"
15301 fi
15302
15303 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15304 cat >> confdefs.h <<\EOF
15305 #define WXWIN_COMPATIBILITY_2_2 1
15306 EOF
15307
15308 fi
15309
15310
15311 ZLIB_INCLUDE=
15312 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15313 cat >> confdefs.h <<\EOF
15314 #define wxUSE_ZLIB 1
15315 EOF
15316
15317 if test "$wxUSE_ZLIB" = "yes" ; then
15318 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15319 else
15320 ZLIB_LINK=
15321 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15322 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15323 echo "configure:15324: checking for zlib.h" >&5
15324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15325 echo $ac_n "(cached) $ac_c" 1>&6
15326 else
15327 cat > conftest.$ac_ext <<EOF
15328 #line 15329 "configure"
15329 #include "confdefs.h"
15330 #include <zlib.h>
15331 EOF
15332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15333 { (eval echo configure:15334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15335 if test -z "$ac_err"; then
15336 rm -rf conftest*
15337 eval "ac_cv_header_$ac_safe=yes"
15338 else
15339 echo "$ac_err" >&5
15340 echo "configure: failed program was:" >&5
15341 cat conftest.$ac_ext >&5
15342 rm -rf conftest*
15343 eval "ac_cv_header_$ac_safe=no"
15344 fi
15345 rm -f conftest*
15346 fi
15347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15348 echo "$ac_t""yes" 1>&6
15349 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15350 echo "configure:15351: checking for deflate in -lz" >&5
15351 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15353 echo $ac_n "(cached) $ac_c" 1>&6
15354 else
15355 ac_save_LIBS="$LIBS"
15356 LIBS="-lz $LIBS"
15357 cat > conftest.$ac_ext <<EOF
15358 #line 15359 "configure"
15359 #include "confdefs.h"
15360 /* Override any gcc2 internal prototype to avoid an error. */
15361 /* We use char because int might match the return type of a gcc2
15362 builtin and then its argument prototype would still apply. */
15363 char deflate();
15364
15365 int main() {
15366 deflate()
15367 ; return 0; }
15368 EOF
15369 if { (eval echo configure:15370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15370 rm -rf conftest*
15371 eval "ac_cv_lib_$ac_lib_var=yes"
15372 else
15373 echo "configure: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15375 rm -rf conftest*
15376 eval "ac_cv_lib_$ac_lib_var=no"
15377 fi
15378 rm -f conftest*
15379 LIBS="$ac_save_LIBS"
15380
15381 fi
15382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15383 echo "$ac_t""yes" 1>&6
15384 ZLIB_LINK="-lz"
15385 else
15386 echo "$ac_t""no" 1>&6
15387 fi
15388
15389 else
15390 echo "$ac_t""no" 1>&6
15391 fi
15392
15393 if test "x$ZLIB_LINK" = "x" ; then
15394 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15395 fi
15396 fi
15397 fi
15398
15399 PNG_INCLUDE=
15400 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15401 cat >> confdefs.h <<\EOF
15402 #define wxUSE_LIBPNG 1
15403 EOF
15404
15405 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15406 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15407 wxUSE_LIBPNG=yes
15408 fi
15409
15410 if test "$wxUSE_LIBPNG" = "yes" ; then
15411 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15412 else
15413 PNG_LINK=
15414 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15415 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15416 echo "configure:15417: checking for png.h" >&5
15417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419 else
15420 cat > conftest.$ac_ext <<EOF
15421 #line 15422 "configure"
15422 #include "confdefs.h"
15423 #include <png.h>
15424 EOF
15425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15426 { (eval echo configure:15427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15428 if test -z "$ac_err"; then
15429 rm -rf conftest*
15430 eval "ac_cv_header_$ac_safe=yes"
15431 else
15432 echo "$ac_err" >&5
15433 echo "configure: failed program was:" >&5
15434 cat conftest.$ac_ext >&5
15435 rm -rf conftest*
15436 eval "ac_cv_header_$ac_safe=no"
15437 fi
15438 rm -f conftest*
15439 fi
15440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15441 echo "$ac_t""yes" 1>&6
15442 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15443 echo "configure:15444: checking for png_check_sig in -lpng" >&5
15444 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15446 echo $ac_n "(cached) $ac_c" 1>&6
15447 else
15448 ac_save_LIBS="$LIBS"
15449 LIBS="-lpng -lz -lm $LIBS"
15450 cat > conftest.$ac_ext <<EOF
15451 #line 15452 "configure"
15452 #include "confdefs.h"
15453 /* Override any gcc2 internal prototype to avoid an error. */
15454 /* We use char because int might match the return type of a gcc2
15455 builtin and then its argument prototype would still apply. */
15456 char png_check_sig();
15457
15458 int main() {
15459 png_check_sig()
15460 ; return 0; }
15461 EOF
15462 if { (eval echo configure:15463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15463 rm -rf conftest*
15464 eval "ac_cv_lib_$ac_lib_var=yes"
15465 else
15466 echo "configure: failed program was:" >&5
15467 cat conftest.$ac_ext >&5
15468 rm -rf conftest*
15469 eval "ac_cv_lib_$ac_lib_var=no"
15470 fi
15471 rm -f conftest*
15472 LIBS="$ac_save_LIBS"
15473
15474 fi
15475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15476 echo "$ac_t""yes" 1>&6
15477 PNG_LINK="-lpng"
15478 else
15479 echo "$ac_t""no" 1>&6
15480 fi
15481
15482
15483 else
15484 echo "$ac_t""no" 1>&6
15485 fi
15486
15487 if test "x$PNG_LINK" = "x" ; then
15488 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15489 fi
15490 fi
15491
15492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15493 fi
15494
15495 JPEG_INCLUDE=
15496 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15497 cat >> confdefs.h <<\EOF
15498 #define wxUSE_LIBJPEG 1
15499 EOF
15500
15501 if test "$wxUSE_LIBJPEG" = "yes" ; then
15502 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15503 else
15504 JPEG_LINK=
15505 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15506 echo "configure:15507: checking for jpeglib.h" >&5
15507 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15508 echo $ac_n "(cached) $ac_c" 1>&6
15509 else
15510 cat > conftest.$ac_ext <<EOF
15511 #line 15512 "configure"
15512 #include "confdefs.h"
15513
15514 #undef HAVE_STDLIB_H
15515 #include <stdio.h>
15516 #include <jpeglib.h>
15517
15518 int main() {
15519
15520
15521 ; return 0; }
15522 EOF
15523 if { (eval echo configure:15524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15524 rm -rf conftest*
15525 ac_cv_header_jpeglib_h=yes
15526 else
15527 echo "configure: failed program was:" >&5
15528 cat conftest.$ac_ext >&5
15529 rm -rf conftest*
15530 ac_cv_header_jpeglib_h=no
15531
15532 fi
15533 rm -f conftest*
15534
15535 fi
15536
15537 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15538
15539 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15540 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15541 echo "configure:15542: checking for jpeg_read_header in -ljpeg" >&5
15542 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15544 echo $ac_n "(cached) $ac_c" 1>&6
15545 else
15546 ac_save_LIBS="$LIBS"
15547 LIBS="-ljpeg $LIBS"
15548 cat > conftest.$ac_ext <<EOF
15549 #line 15550 "configure"
15550 #include "confdefs.h"
15551 /* Override any gcc2 internal prototype to avoid an error. */
15552 /* We use char because int might match the return type of a gcc2
15553 builtin and then its argument prototype would still apply. */
15554 char jpeg_read_header();
15555
15556 int main() {
15557 jpeg_read_header()
15558 ; return 0; }
15559 EOF
15560 if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15561 rm -rf conftest*
15562 eval "ac_cv_lib_$ac_lib_var=yes"
15563 else
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 rm -rf conftest*
15567 eval "ac_cv_lib_$ac_lib_var=no"
15568 fi
15569 rm -f conftest*
15570 LIBS="$ac_save_LIBS"
15571
15572 fi
15573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15574 echo "$ac_t""yes" 1>&6
15575 JPEG_LINK="-ljpeg"
15576 else
15577 echo "$ac_t""no" 1>&6
15578 fi
15579
15580 fi
15581
15582 if test "x$JPEG_LINK" = "x" ; then
15583 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15584 fi
15585 fi
15586 fi
15587
15588 TIFF_INCLUDE=
15589 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15590 cat >> confdefs.h <<\EOF
15591 #define wxUSE_LIBTIFF 1
15592 EOF
15593
15594 if test "$wxUSE_LIBTIFF" = "yes" ; then
15595 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15596 else
15597 TIFF_LINK=
15598 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15599 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15600 echo "configure:15601: checking for tiffio.h" >&5
15601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15602 echo $ac_n "(cached) $ac_c" 1>&6
15603 else
15604 cat > conftest.$ac_ext <<EOF
15605 #line 15606 "configure"
15606 #include "confdefs.h"
15607 #include <tiffio.h>
15608 EOF
15609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15610 { (eval echo configure:15611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15612 if test -z "$ac_err"; then
15613 rm -rf conftest*
15614 eval "ac_cv_header_$ac_safe=yes"
15615 else
15616 echo "$ac_err" >&5
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15619 rm -rf conftest*
15620 eval "ac_cv_header_$ac_safe=no"
15621 fi
15622 rm -f conftest*
15623 fi
15624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15625 echo "$ac_t""yes" 1>&6
15626 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15627 echo "configure:15628: checking for TIFFError in -ltiff" >&5
15628 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15630 echo $ac_n "(cached) $ac_c" 1>&6
15631 else
15632 ac_save_LIBS="$LIBS"
15633 LIBS="-ltiff -lm $LIBS"
15634 cat > conftest.$ac_ext <<EOF
15635 #line 15636 "configure"
15636 #include "confdefs.h"
15637 /* Override any gcc2 internal prototype to avoid an error. */
15638 /* We use char because int might match the return type of a gcc2
15639 builtin and then its argument prototype would still apply. */
15640 char TIFFError();
15641
15642 int main() {
15643 TIFFError()
15644 ; return 0; }
15645 EOF
15646 if { (eval echo configure:15647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15647 rm -rf conftest*
15648 eval "ac_cv_lib_$ac_lib_var=yes"
15649 else
15650 echo "configure: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15652 rm -rf conftest*
15653 eval "ac_cv_lib_$ac_lib_var=no"
15654 fi
15655 rm -f conftest*
15656 LIBS="$ac_save_LIBS"
15657
15658 fi
15659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15660 echo "$ac_t""yes" 1>&6
15661 TIFF_LINK="-ltiff"
15662 else
15663 echo "$ac_t""no" 1>&6
15664 fi
15665
15666 else
15667 echo "$ac_t""no" 1>&6
15668 fi
15669
15670 if test "x$TIFF_LINK" = "x" ; then
15671 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15672 fi
15673 fi
15674 fi
15675
15676 FREETYPE_INCLUDE=
15677 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15678 cat >> confdefs.h <<\EOF
15679 #define wxUSE_FREETYPE 1
15680 EOF
15681
15682 if test "$wxUSE_FREETYPE" = "yes" ; then
15683 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15684 else
15685 FREETYPE_LINK=
15686 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15687 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15688 echo "configure:15689: checking for freetype.h" >&5
15689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15690 echo $ac_n "(cached) $ac_c" 1>&6
15691 else
15692 cat > conftest.$ac_ext <<EOF
15693 #line 15694 "configure"
15694 #include "confdefs.h"
15695 #include <freetype.h>
15696 EOF
15697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15698 { (eval echo configure:15699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15700 if test -z "$ac_err"; then
15701 rm -rf conftest*
15702 eval "ac_cv_header_$ac_safe=yes"
15703 else
15704 echo "$ac_err" >&5
15705 echo "configure: failed program was:" >&5
15706 cat conftest.$ac_ext >&5
15707 rm -rf conftest*
15708 eval "ac_cv_header_$ac_safe=no"
15709 fi
15710 rm -f conftest*
15711 fi
15712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15713 echo "$ac_t""yes" 1>&6
15714 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15715 echo "configure:15716: checking for FT_Render_Glyph in -lfreetype" >&5
15716 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15718 echo $ac_n "(cached) $ac_c" 1>&6
15719 else
15720 ac_save_LIBS="$LIBS"
15721 LIBS="-lfreetype -lm $LIBS"
15722 cat > conftest.$ac_ext <<EOF
15723 #line 15724 "configure"
15724 #include "confdefs.h"
15725 /* Override any gcc2 internal prototype to avoid an error. */
15726 /* We use char because int might match the return type of a gcc2
15727 builtin and then its argument prototype would still apply. */
15728 char FT_Render_Glyph();
15729
15730 int main() {
15731 FT_Render_Glyph()
15732 ; return 0; }
15733 EOF
15734 if { (eval echo configure:15735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15735 rm -rf conftest*
15736 eval "ac_cv_lib_$ac_lib_var=yes"
15737 else
15738 echo "configure: failed program was:" >&5
15739 cat conftest.$ac_ext >&5
15740 rm -rf conftest*
15741 eval "ac_cv_lib_$ac_lib_var=no"
15742 fi
15743 rm -f conftest*
15744 LIBS="$ac_save_LIBS"
15745
15746 fi
15747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15748 echo "$ac_t""yes" 1>&6
15749 FREETYPE_LINK="-lfreetype"
15750 else
15751 echo "$ac_t""no" 1>&6
15752 fi
15753
15754
15755 else
15756 echo "$ac_t""no" 1>&6
15757 fi
15758
15759 if test "x$FREETYPE_LINK" = "x" ; then
15760 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15761 fi
15762 fi
15763 fi
15764
15765
15766 if test "$wxUSE_GUI" = "yes"; then
15767 cat >> confdefs.h <<\EOF
15768 #define wxUSE_GUI 1
15769 EOF
15770
15771
15772 else
15773 cat >> confdefs.h <<\EOF
15774 #define wxUSE_NOGUI 1
15775 EOF
15776
15777 fi
15778
15779
15780 if test "$wxUSE_UNIX" = "yes"; then
15781 cat >> confdefs.h <<\EOF
15782 #define wxUSE_UNIX 1
15783 EOF
15784
15785 fi
15786
15787
15788 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15789 cat >> confdefs.h <<\EOF
15790 #define wxUSE_APPLE_IEEE 1
15791 EOF
15792
15793 fi
15794
15795 if test "$wxUSE_TIMER" = "yes"; then
15796 cat >> confdefs.h <<\EOF
15797 #define wxUSE_TIMER 1
15798 EOF
15799
15800 fi
15801
15802 if test "$wxUSE_WAVE" = "yes"; then
15803 cat >> confdefs.h <<\EOF
15804 #define wxUSE_WAVE 1
15805 EOF
15806
15807 fi
15808
15809 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15810 cat >> confdefs.h <<\EOF
15811 #define wxUSE_CMDLINE_PARSER 1
15812 EOF
15813
15814 fi
15815
15816 if test "$wxUSE_STOPWATCH" = "yes"; then
15817 cat >> confdefs.h <<\EOF
15818 #define wxUSE_STOPWATCH 1
15819 EOF
15820
15821 fi
15822
15823 if test "$wxUSE_DATETIME" = "yes"; then
15824 cat >> confdefs.h <<\EOF
15825 #define wxUSE_DATETIME 1
15826 EOF
15827
15828 fi
15829
15830 if test "$wxUSE_TIMEDATE" = "yes"; then
15831 cat >> confdefs.h <<\EOF
15832 #define wxUSE_TIMEDATE 1
15833 EOF
15834
15835 fi
15836
15837 if test "$wxUSE_FILE" = "yes"; then
15838 cat >> confdefs.h <<\EOF
15839 #define wxUSE_FILE 1
15840 EOF
15841
15842 fi
15843
15844 if test "$wxUSE_FFILE" = "yes"; then
15845 cat >> confdefs.h <<\EOF
15846 #define wxUSE_FFILE 1
15847 EOF
15848
15849 fi
15850
15851 if test "$wxUSE_FILESYSTEM" = "yes"; then
15852 cat >> confdefs.h <<\EOF
15853 #define wxUSE_FILESYSTEM 1
15854 EOF
15855
15856 fi
15857
15858 if test "$wxUSE_FS_INET" = "yes"; then
15859 cat >> confdefs.h <<\EOF
15860 #define wxUSE_FS_INET 1
15861 EOF
15862
15863 fi
15864
15865 if test "$wxUSE_FS_ZIP" = "yes"; then
15866 cat >> confdefs.h <<\EOF
15867 #define wxUSE_FS_ZIP 1
15868 EOF
15869
15870 fi
15871
15872 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15873 cat >> confdefs.h <<\EOF
15874 #define wxUSE_ZIPSTREAM 1
15875 EOF
15876
15877 fi
15878
15879 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15880 cat >> confdefs.h <<\EOF
15881 #define wxUSE_ON_FATAL_EXCEPTION 1
15882 EOF
15883
15884 fi
15885
15886 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15887 cat >> confdefs.h <<\EOF
15888 #define wxUSE_SNGLINST_CHECKER 1
15889 EOF
15890
15891 fi
15892
15893 if test "$wxUSE_BUSYINFO" = "yes"; then
15894 cat >> confdefs.h <<\EOF
15895 #define wxUSE_BUSYINFO 1
15896 EOF
15897
15898 fi
15899
15900 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15901 cat >> confdefs.h <<\EOF
15902 #define wxUSE_STD_IOSTREAM 1
15903 EOF
15904
15905 fi
15906
15907 if test "$wxUSE_TEXTFILE" = "yes"; then
15908 if test "$wxUSE_FILE" != "yes"; then
15909 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15910 else
15911 cat >> confdefs.h <<\EOF
15912 #define wxUSE_TEXTFILE 1
15913 EOF
15914
15915 fi
15916 fi
15917
15918 if test "$wxUSE_CONFIG" = "yes" ; then
15919 if test "$wxUSE_TEXTFILE" != "yes"; then
15920 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15921 else
15922 cat >> confdefs.h <<\EOF
15923 #define wxUSE_CONFIG 1
15924 EOF
15925
15926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15927 fi
15928 fi
15929
15930 if test "$wxUSE_INTL" = "yes" ; then
15931 if test "$wxUSE_FILE" != "yes"; then
15932 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15933 else
15934 cat >> confdefs.h <<\EOF
15935 #define wxUSE_INTL 1
15936 EOF
15937
15938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15939 GUIDIST="$GUIDIST INTL_DIST"
15940 fi
15941 fi
15942
15943 if test "$wxUSE_LOG" = "yes"; then
15944 cat >> confdefs.h <<\EOF
15945 #define wxUSE_LOG 1
15946 EOF
15947
15948
15949 if test "$wxUSE_LOGGUI" = "yes"; then
15950 cat >> confdefs.h <<\EOF
15951 #define wxUSE_LOGGUI 1
15952 EOF
15953
15954 fi
15955
15956 if test "$wxUSE_LOGWINDOW" = "yes"; then
15957 cat >> confdefs.h <<\EOF
15958 #define wxUSE_LOGWINDOW 1
15959 EOF
15960
15961 fi
15962 fi
15963
15964 if test "$wxUSE_LONGLONG" = "yes"; then
15965 cat >> confdefs.h <<\EOF
15966 #define wxUSE_LONGLONG 1
15967 EOF
15968
15969 fi
15970
15971 if test "$wxUSE_GEOMETRY" = "yes"; then
15972 cat >> confdefs.h <<\EOF
15973 #define wxUSE_GEOMETRY 1
15974 EOF
15975
15976 fi
15977
15978 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15979 cat >> confdefs.h <<\EOF
15980 #define wxUSE_DIALUP_MANAGER 1
15981 EOF
15982
15983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15984 fi
15985
15986 if test "$wxUSE_STREAMS" = "yes" ; then
15987 cat >> confdefs.h <<\EOF
15988 #define wxUSE_STREAMS 1
15989 EOF
15990
15991 fi
15992
15993
15994 if test "$wxUSE_DATETIME" = "yes"; then
15995 for ac_func in strptime
15996 do
15997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15998 echo "configure:15999: checking for $ac_func" >&5
15999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16000 echo $ac_n "(cached) $ac_c" 1>&6
16001 else
16002 cat > conftest.$ac_ext <<EOF
16003 #line 16004 "configure"
16004 #include "confdefs.h"
16005 /* System header to define __stub macros and hopefully few prototypes,
16006 which can conflict with char $ac_func(); below. */
16007 #include <assert.h>
16008 /* Override any gcc2 internal prototype to avoid an error. */
16009 /* We use char because int might match the return type of a gcc2
16010 builtin and then its argument prototype would still apply. */
16011 char $ac_func();
16012
16013 int main() {
16014
16015 /* The GNU C library defines this for functions which it implements
16016 to always fail with ENOSYS. Some functions are actually named
16017 something starting with __ and the normal name is an alias. */
16018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16019 choke me
16020 #else
16021 $ac_func();
16022 #endif
16023
16024 ; return 0; }
16025 EOF
16026 if { (eval echo configure:16027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16027 rm -rf conftest*
16028 eval "ac_cv_func_$ac_func=yes"
16029 else
16030 echo "configure: failed program was:" >&5
16031 cat conftest.$ac_ext >&5
16032 rm -rf conftest*
16033 eval "ac_cv_func_$ac_func=no"
16034 fi
16035 rm -f conftest*
16036 fi
16037
16038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16039 echo "$ac_t""yes" 1>&6
16040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16041 cat >> confdefs.h <<EOF
16042 #define $ac_tr_func 1
16043 EOF
16044
16045 else
16046 echo "$ac_t""no" 1>&6
16047 fi
16048 done
16049
16050
16051 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16052 echo "configure:16053: checking for timezone variable in <time.h>" >&5
16053 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16054 echo $ac_n "(cached) $ac_c" 1>&6
16055 else
16056
16057 cat > conftest.$ac_ext <<EOF
16058 #line 16059 "configure"
16059 #include "confdefs.h"
16060
16061 #include <time.h>
16062
16063 int main() {
16064
16065 int tz;
16066 tz = timezone;
16067
16068 ; return 0; }
16069 EOF
16070 if { (eval echo configure:16071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16071 rm -rf conftest*
16072
16073 wx_cv_var_timezone=timezone
16074
16075 else
16076 echo "configure: failed program was:" >&5
16077 cat conftest.$ac_ext >&5
16078 rm -rf conftest*
16079
16080 cat > conftest.$ac_ext <<EOF
16081 #line 16082 "configure"
16082 #include "confdefs.h"
16083
16084 #include <time.h>
16085
16086 int main() {
16087
16088 int tz;
16089 tz = _timezone;
16090
16091 ; return 0; }
16092 EOF
16093 if { (eval echo configure:16094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16094 rm -rf conftest*
16095
16096 wx_cv_var_timezone=_timezone
16097
16098 else
16099 echo "configure: failed program was:" >&5
16100 cat conftest.$ac_ext >&5
16101 rm -rf conftest*
16102
16103 cat > conftest.$ac_ext <<EOF
16104 #line 16105 "configure"
16105 #include "confdefs.h"
16106
16107 #include <time.h>
16108
16109 int main() {
16110
16111 int tz;
16112 tz = __timezone;
16113
16114 ; return 0; }
16115 EOF
16116 if { (eval echo configure:16117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16117 rm -rf conftest*
16118
16119 wx_cv_var_timezone=__timezone
16120
16121 else
16122 echo "configure: failed program was:" >&5
16123 cat conftest.$ac_ext >&5
16124 rm -rf conftest*
16125 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16126
16127 fi
16128 rm -f conftest*
16129
16130
16131 fi
16132 rm -f conftest*
16133
16134
16135 fi
16136 rm -f conftest*
16137
16138
16139 fi
16140
16141 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16142
16143 cat >> confdefs.h <<EOF
16144 #define WX_TIMEZONE $wx_cv_var_timezone
16145 EOF
16146
16147
16148 for ac_func in localtime
16149 do
16150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16151 echo "configure:16152: checking for $ac_func" >&5
16152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16153 echo $ac_n "(cached) $ac_c" 1>&6
16154 else
16155 cat > conftest.$ac_ext <<EOF
16156 #line 16157 "configure"
16157 #include "confdefs.h"
16158 /* System header to define __stub macros and hopefully few prototypes,
16159 which can conflict with char $ac_func(); below. */
16160 #include <assert.h>
16161 /* Override any gcc2 internal prototype to avoid an error. */
16162 /* We use char because int might match the return type of a gcc2
16163 builtin and then its argument prototype would still apply. */
16164 char $ac_func();
16165
16166 int main() {
16167
16168 /* The GNU C library defines this for functions which it implements
16169 to always fail with ENOSYS. Some functions are actually named
16170 something starting with __ and the normal name is an alias. */
16171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16172 choke me
16173 #else
16174 $ac_func();
16175 #endif
16176
16177 ; return 0; }
16178 EOF
16179 if { (eval echo configure:16180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16180 rm -rf conftest*
16181 eval "ac_cv_func_$ac_func=yes"
16182 else
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16185 rm -rf conftest*
16186 eval "ac_cv_func_$ac_func=no"
16187 fi
16188 rm -f conftest*
16189 fi
16190
16191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16192 echo "$ac_t""yes" 1>&6
16193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16194 cat >> confdefs.h <<EOF
16195 #define $ac_tr_func 1
16196 EOF
16197
16198 else
16199 echo "$ac_t""no" 1>&6
16200 fi
16201 done
16202
16203
16204 if test "$ac_cv_func_localtime" = "yes"; then
16205 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16206 echo "configure:16207: checking for tm_gmtoff in struct tm" >&5
16207 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16208 echo $ac_n "(cached) $ac_c" 1>&6
16209 else
16210
16211 cat > conftest.$ac_ext <<EOF
16212 #line 16213 "configure"
16213 #include "confdefs.h"
16214
16215 #include <time.h>
16216
16217 int main() {
16218
16219 struct tm tm;
16220 tm.tm_gmtoff++;
16221
16222 ; return 0; }
16223 EOF
16224 if { (eval echo configure:16225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16225 rm -rf conftest*
16226
16227 wx_cv_struct_tm_has_gmtoff=yes
16228
16229 else
16230 echo "configure: failed program was:" >&5
16231 cat conftest.$ac_ext >&5
16232 rm -rf conftest*
16233 wx_cv_struct_tm_has_gmtoff=no
16234
16235 fi
16236 rm -f conftest*
16237
16238 fi
16239
16240 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16241 fi
16242
16243 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16244 cat >> confdefs.h <<\EOF
16245 #define WX_GMTOFF_IN_TM 1
16246 EOF
16247
16248 fi
16249
16250 for ac_func in gettimeofday ftime
16251 do
16252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16253 echo "configure:16254: checking for $ac_func" >&5
16254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16255 echo $ac_n "(cached) $ac_c" 1>&6
16256 else
16257 cat > conftest.$ac_ext <<EOF
16258 #line 16259 "configure"
16259 #include "confdefs.h"
16260 /* System header to define __stub macros and hopefully few prototypes,
16261 which can conflict with char $ac_func(); below. */
16262 #include <assert.h>
16263 /* Override any gcc2 internal prototype to avoid an error. */
16264 /* We use char because int might match the return type of a gcc2
16265 builtin and then its argument prototype would still apply. */
16266 char $ac_func();
16267
16268 int main() {
16269
16270 /* The GNU C library defines this for functions which it implements
16271 to always fail with ENOSYS. Some functions are actually named
16272 something starting with __ and the normal name is an alias. */
16273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16274 choke me
16275 #else
16276 $ac_func();
16277 #endif
16278
16279 ; return 0; }
16280 EOF
16281 if { (eval echo configure:16282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16282 rm -rf conftest*
16283 eval "ac_cv_func_$ac_func=yes"
16284 else
16285 echo "configure: failed program was:" >&5
16286 cat conftest.$ac_ext >&5
16287 rm -rf conftest*
16288 eval "ac_cv_func_$ac_func=no"
16289 fi
16290 rm -f conftest*
16291 fi
16292
16293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16294 echo "$ac_t""yes" 1>&6
16295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16296 cat >> confdefs.h <<EOF
16297 #define $ac_tr_func 1
16298 EOF
16299 break
16300 else
16301 echo "$ac_t""no" 1>&6
16302 fi
16303 done
16304
16305
16306 if test "$ac_cv_func_gettimeofday" = "yes"; then
16307 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16308 echo "configure:16309: checking whether gettimeofday takes two arguments" >&5
16309 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16310 echo $ac_n "(cached) $ac_c" 1>&6
16311 else
16312
16313
16314 ac_ext=C
16315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16316 ac_cpp='$CXXCPP $CPPFLAGS'
16317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16319 cross_compiling=$ac_cv_prog_cxx_cross
16320
16321
16322 cat > conftest.$ac_ext <<EOF
16323 #line 16324 "configure"
16324 #include "confdefs.h"
16325
16326 #include <sys/time.h>
16327 #include <unistd.h>
16328
16329 int main() {
16330
16331 struct timeval tv;
16332 gettimeofday(&tv, NULL);
16333
16334 ; return 0; }
16335 EOF
16336 if { (eval echo configure:16337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16337 rm -rf conftest*
16338 wx_cv_func_gettimeofday_has_2_args=yes
16339 else
16340 echo "configure: failed program was:" >&5
16341 cat conftest.$ac_ext >&5
16342 rm -rf conftest*
16343 cat > conftest.$ac_ext <<EOF
16344 #line 16345 "configure"
16345 #include "confdefs.h"
16346
16347 #include <sys/time.h>
16348 #include <unistd.h>
16349
16350 int main() {
16351
16352 struct timeval tv;
16353 gettimeofday(&tv);
16354
16355 ; return 0; }
16356 EOF
16357 if { (eval echo configure:16358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16358 rm -rf conftest*
16359 wx_cv_func_gettimeofday_has_2_args=no
16360 else
16361 echo "configure: failed program was:" >&5
16362 cat conftest.$ac_ext >&5
16363 rm -rf conftest*
16364
16365 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16366 wx_cv_func_gettimeofday_has_2_args=unknown
16367
16368
16369 fi
16370 rm -f conftest*
16371
16372 fi
16373 rm -f conftest*
16374 ac_ext=c
16375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16376 ac_cpp='$CPP $CPPFLAGS'
16377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16379 cross_compiling=$ac_cv_prog_cc_cross
16380
16381
16382 fi
16383
16384 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16385
16386 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16387 cat >> confdefs.h <<\EOF
16388 #define WX_GETTIMEOFDAY_NO_TZ 1
16389 EOF
16390
16391 fi
16392 fi
16393
16394 cat >> confdefs.h <<\EOF
16395 #define wxUSE_TIMEDATE 1
16396 EOF
16397
16398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16399 fi
16400
16401
16402 if test "$TOOLKIT" != "MSW"; then
16403
16404 if test "$wxUSE_SOCKETS" = "yes"; then
16405 echo $ac_n "checking for socket""... $ac_c" 1>&6
16406 echo "configure:16407: checking for socket" >&5
16407 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16408 echo $ac_n "(cached) $ac_c" 1>&6
16409 else
16410 cat > conftest.$ac_ext <<EOF
16411 #line 16412 "configure"
16412 #include "confdefs.h"
16413 /* System header to define __stub macros and hopefully few prototypes,
16414 which can conflict with char socket(); below. */
16415 #include <assert.h>
16416 /* Override any gcc2 internal prototype to avoid an error. */
16417 /* We use char because int might match the return type of a gcc2
16418 builtin and then its argument prototype would still apply. */
16419 char socket();
16420
16421 int main() {
16422
16423 /* The GNU C library defines this for functions which it implements
16424 to always fail with ENOSYS. Some functions are actually named
16425 something starting with __ and the normal name is an alias. */
16426 #if defined (__stub_socket) || defined (__stub___socket)
16427 choke me
16428 #else
16429 socket();
16430 #endif
16431
16432 ; return 0; }
16433 EOF
16434 if { (eval echo configure:16435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16435 rm -rf conftest*
16436 eval "ac_cv_func_socket=yes"
16437 else
16438 echo "configure: failed program was:" >&5
16439 cat conftest.$ac_ext >&5
16440 rm -rf conftest*
16441 eval "ac_cv_func_socket=no"
16442 fi
16443 rm -f conftest*
16444 fi
16445
16446 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16447 echo "$ac_t""yes" 1>&6
16448 :
16449 else
16450 echo "$ac_t""no" 1>&6
16451 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16452 echo "configure:16453: checking for socket in -lsocket" >&5
16453 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16455 echo $ac_n "(cached) $ac_c" 1>&6
16456 else
16457 ac_save_LIBS="$LIBS"
16458 LIBS="-lsocket $LIBS"
16459 cat > conftest.$ac_ext <<EOF
16460 #line 16461 "configure"
16461 #include "confdefs.h"
16462 /* Override any gcc2 internal prototype to avoid an error. */
16463 /* We use char because int might match the return type of a gcc2
16464 builtin and then its argument prototype would still apply. */
16465 char socket();
16466
16467 int main() {
16468 socket()
16469 ; return 0; }
16470 EOF
16471 if { (eval echo configure:16472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16472 rm -rf conftest*
16473 eval "ac_cv_lib_$ac_lib_var=yes"
16474 else
16475 echo "configure: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16477 rm -rf conftest*
16478 eval "ac_cv_lib_$ac_lib_var=no"
16479 fi
16480 rm -f conftest*
16481 LIBS="$ac_save_LIBS"
16482
16483 fi
16484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16485 echo "$ac_t""yes" 1>&6
16486 INET_LINK="$INET_LINK -lsocket"
16487 else
16488 echo "$ac_t""no" 1>&6
16489
16490 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16491 wxUSE_SOCKETS=no
16492
16493
16494 fi
16495
16496
16497 fi
16498
16499 fi
16500
16501
16502 if test "$wxUSE_SOCKETS" = "yes" ; then
16503 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16504 echo "configure:16505: checking what is the type of the third argument of getsockname" >&5
16505 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16506 echo $ac_n "(cached) $ac_c" 1>&6
16507 else
16508
16509
16510 ac_ext=C
16511 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16512 ac_cpp='$CXXCPP $CPPFLAGS'
16513 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16514 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16515 cross_compiling=$ac_cv_prog_cxx_cross
16516
16517
16518 cat > conftest.$ac_ext <<EOF
16519 #line 16520 "configure"
16520 #include "confdefs.h"
16521
16522 #include <sys/types.h>
16523 #include <sys/socket.h>
16524
16525 int main() {
16526
16527 socklen_t len;
16528 getsockname(0, 0, &len);
16529
16530 ; return 0; }
16531 EOF
16532 if { (eval echo configure:16533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16533 rm -rf conftest*
16534 wx_cv_type_getsockname3=socklen_t
16535 else
16536 echo "configure: failed program was:" >&5
16537 cat conftest.$ac_ext >&5
16538 rm -rf conftest*
16539 cat > conftest.$ac_ext <<EOF
16540 #line 16541 "configure"
16541 #include "confdefs.h"
16542
16543 #include <sys/types.h>
16544 #include <sys/socket.h>
16545
16546 int main() {
16547
16548 size_t len;
16549 getsockname(0, 0, &len);
16550
16551 ; return 0; }
16552 EOF
16553 if { (eval echo configure:16554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16554 rm -rf conftest*
16555 wx_cv_type_getsockname3=size_t
16556 else
16557 echo "configure: failed program was:" >&5
16558 cat conftest.$ac_ext >&5
16559 rm -rf conftest*
16560 cat > conftest.$ac_ext <<EOF
16561 #line 16562 "configure"
16562 #include "confdefs.h"
16563
16564 #include <sys/types.h>
16565 #include <sys/socket.h>
16566
16567 int main() {
16568
16569 int len;
16570 getsockname(0, 0, &len);
16571
16572 ; return 0; }
16573 EOF
16574 if { (eval echo configure:16575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16575 rm -rf conftest*
16576 wx_cv_type_getsockname3=int
16577 else
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16580 rm -rf conftest*
16581 wx_cv_type_getsockname3=unknown
16582
16583 fi
16584 rm -f conftest*
16585
16586 fi
16587 rm -f conftest*
16588
16589 fi
16590 rm -f conftest*
16591
16592 ac_ext=c
16593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16594 ac_cpp='$CPP $CPPFLAGS'
16595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16597 cross_compiling=$ac_cv_prog_cc_cross
16598
16599
16600 fi
16601
16602 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16603
16604 if test "$wx_cv_type_getsockname3" = "unknown"; then
16605 wxUSE_SOCKETS=no
16606 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16607 else
16608 cat >> confdefs.h <<EOF
16609 #define SOCKLEN_T $wx_cv_type_getsockname3
16610 EOF
16611
16612 fi
16613 fi
16614 fi
16615
16616 if test "$wxUSE_SOCKETS" = "yes" ; then
16617 cat >> confdefs.h <<\EOF
16618 #define wxUSE_SOCKETS 1
16619 EOF
16620
16621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16622 fi
16623
16624
16625 if test "$wxUSE_GUI" = "yes"; then
16626
16627 if test "$TOOLKIT" != "MSW"; then
16628 if test "$wxUSE_JOYSTICK" = "yes"; then
16629 for ac_hdr in linux/joystick.h
16630 do
16631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16633 echo "configure:16634: checking for $ac_hdr" >&5
16634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16635 echo $ac_n "(cached) $ac_c" 1>&6
16636 else
16637 cat > conftest.$ac_ext <<EOF
16638 #line 16639 "configure"
16639 #include "confdefs.h"
16640 #include <$ac_hdr>
16641 EOF
16642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16643 { (eval echo configure:16644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16645 if test -z "$ac_err"; then
16646 rm -rf conftest*
16647 eval "ac_cv_header_$ac_safe=yes"
16648 else
16649 echo "$ac_err" >&5
16650 echo "configure: failed program was:" >&5
16651 cat conftest.$ac_ext >&5
16652 rm -rf conftest*
16653 eval "ac_cv_header_$ac_safe=no"
16654 fi
16655 rm -f conftest*
16656 fi
16657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16658 echo "$ac_t""yes" 1>&6
16659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16660 cat >> confdefs.h <<EOF
16661 #define $ac_tr_hdr 1
16662 EOF
16663
16664 else
16665 echo "$ac_t""no" 1>&6
16666 fi
16667 done
16668
16669 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16670 wxUSE_JOYSTICK=no
16671 echo "configure: warning: Joystick not supported by this system" 1>&2
16672 fi
16673 fi
16674 fi
16675
16676 if test "$wxUSE_JOYSTICK" = "yes"; then
16677 cat >> confdefs.h <<\EOF
16678 #define wxUSE_JOYSTICK 1
16679 EOF
16680
16681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16682 fi
16683 fi
16684
16685
16686 if test "$TOOLKIT" != "MSW"; then
16687
16688 HAVE_DL_FUNCS=0
16689 HAVE_SHL_FUNCS=0
16690 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16691 if test "$USE_DARWIN" = 1; then
16692 HAVE_DL_FUNCS=1
16693 else
16694 for ac_func in dlopen
16695 do
16696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16697 echo "configure:16698: checking for $ac_func" >&5
16698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16699 echo $ac_n "(cached) $ac_c" 1>&6
16700 else
16701 cat > conftest.$ac_ext <<EOF
16702 #line 16703 "configure"
16703 #include "confdefs.h"
16704 /* System header to define __stub macros and hopefully few prototypes,
16705 which can conflict with char $ac_func(); below. */
16706 #include <assert.h>
16707 /* Override any gcc2 internal prototype to avoid an error. */
16708 /* We use char because int might match the return type of a gcc2
16709 builtin and then its argument prototype would still apply. */
16710 char $ac_func();
16711
16712 int main() {
16713
16714 /* The GNU C library defines this for functions which it implements
16715 to always fail with ENOSYS. Some functions are actually named
16716 something starting with __ and the normal name is an alias. */
16717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718 choke me
16719 #else
16720 $ac_func();
16721 #endif
16722
16723 ; return 0; }
16724 EOF
16725 if { (eval echo configure:16726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16726 rm -rf conftest*
16727 eval "ac_cv_func_$ac_func=yes"
16728 else
16729 echo "configure: failed program was:" >&5
16730 cat conftest.$ac_ext >&5
16731 rm -rf conftest*
16732 eval "ac_cv_func_$ac_func=no"
16733 fi
16734 rm -f conftest*
16735 fi
16736
16737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16738 echo "$ac_t""yes" 1>&6
16739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16740 cat >> confdefs.h <<EOF
16741 #define $ac_tr_func 1
16742 EOF
16743
16744 cat >> confdefs.h <<\EOF
16745 #define HAVE_DLOPEN 1
16746 EOF
16747
16748 HAVE_DL_FUNCS=1
16749
16750 else
16751 echo "$ac_t""no" 1>&6
16752 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16753 echo "configure:16754: checking for dlopen in -ldl" >&5
16754 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16756 echo $ac_n "(cached) $ac_c" 1>&6
16757 else
16758 ac_save_LIBS="$LIBS"
16759 LIBS="-ldl $LIBS"
16760 cat > conftest.$ac_ext <<EOF
16761 #line 16762 "configure"
16762 #include "confdefs.h"
16763 /* Override any gcc2 internal prototype to avoid an error. */
16764 /* We use char because int might match the return type of a gcc2
16765 builtin and then its argument prototype would still apply. */
16766 char dlopen();
16767
16768 int main() {
16769 dlopen()
16770 ; return 0; }
16771 EOF
16772 if { (eval echo configure:16773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16773 rm -rf conftest*
16774 eval "ac_cv_lib_$ac_lib_var=yes"
16775 else
16776 echo "configure: failed program was:" >&5
16777 cat conftest.$ac_ext >&5
16778 rm -rf conftest*
16779 eval "ac_cv_lib_$ac_lib_var=no"
16780 fi
16781 rm -f conftest*
16782 LIBS="$ac_save_LIBS"
16783
16784 fi
16785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16786 echo "$ac_t""yes" 1>&6
16787
16788 cat >> confdefs.h <<\EOF
16789 #define HAVE_DLOPEN 1
16790 EOF
16791
16792 HAVE_DL_FUNCS=1
16793 LIBS="$LIBS -ldl"
16794
16795 else
16796 echo "$ac_t""no" 1>&6
16797
16798 for ac_func in shl_load
16799 do
16800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16801 echo "configure:16802: checking for $ac_func" >&5
16802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16803 echo $ac_n "(cached) $ac_c" 1>&6
16804 else
16805 cat > conftest.$ac_ext <<EOF
16806 #line 16807 "configure"
16807 #include "confdefs.h"
16808 /* System header to define __stub macros and hopefully few prototypes,
16809 which can conflict with char $ac_func(); below. */
16810 #include <assert.h>
16811 /* Override any gcc2 internal prototype to avoid an error. */
16812 /* We use char because int might match the return type of a gcc2
16813 builtin and then its argument prototype would still apply. */
16814 char $ac_func();
16815
16816 int main() {
16817
16818 /* The GNU C library defines this for functions which it implements
16819 to always fail with ENOSYS. Some functions are actually named
16820 something starting with __ and the normal name is an alias. */
16821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16822 choke me
16823 #else
16824 $ac_func();
16825 #endif
16826
16827 ; return 0; }
16828 EOF
16829 if { (eval echo configure:16830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16830 rm -rf conftest*
16831 eval "ac_cv_func_$ac_func=yes"
16832 else
16833 echo "configure: failed program was:" >&5
16834 cat conftest.$ac_ext >&5
16835 rm -rf conftest*
16836 eval "ac_cv_func_$ac_func=no"
16837 fi
16838 rm -f conftest*
16839 fi
16840
16841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16842 echo "$ac_t""yes" 1>&6
16843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16844 cat >> confdefs.h <<EOF
16845 #define $ac_tr_func 1
16846 EOF
16847
16848 cat >> confdefs.h <<\EOF
16849 #define HAVE_SHL_LOAD 1
16850 EOF
16851
16852 HAVE_SHL_FUNCS=1
16853
16854 else
16855 echo "$ac_t""no" 1>&6
16856 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16857 echo "configure:16858: checking for dld in -lshl_load" >&5
16858 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16860 echo $ac_n "(cached) $ac_c" 1>&6
16861 else
16862 ac_save_LIBS="$LIBS"
16863 LIBS="-lshl_load $LIBS"
16864 cat > conftest.$ac_ext <<EOF
16865 #line 16866 "configure"
16866 #include "confdefs.h"
16867 /* Override any gcc2 internal prototype to avoid an error. */
16868 /* We use char because int might match the return type of a gcc2
16869 builtin and then its argument prototype would still apply. */
16870 char dld();
16871
16872 int main() {
16873 dld()
16874 ; return 0; }
16875 EOF
16876 if { (eval echo configure:16877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16877 rm -rf conftest*
16878 eval "ac_cv_lib_$ac_lib_var=yes"
16879 else
16880 echo "configure: failed program was:" >&5
16881 cat conftest.$ac_ext >&5
16882 rm -rf conftest*
16883 eval "ac_cv_lib_$ac_lib_var=no"
16884 fi
16885 rm -f conftest*
16886 LIBS="$ac_save_LIBS"
16887
16888 fi
16889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16890 echo "$ac_t""yes" 1>&6
16891
16892 HAVE_SHL_FUNCS=1
16893 LIBS="$LIBS -ldld"
16894
16895 else
16896 echo "$ac_t""no" 1>&6
16897 fi
16898
16899
16900 fi
16901 done
16902
16903
16904 fi
16905
16906
16907 fi
16908 done
16909
16910
16911 if test "$HAVE_DL_FUNCS" = 1; then
16912 for ac_func in dlerror
16913 do
16914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16915 echo "configure:16916: checking for $ac_func" >&5
16916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16917 echo $ac_n "(cached) $ac_c" 1>&6
16918 else
16919 cat > conftest.$ac_ext <<EOF
16920 #line 16921 "configure"
16921 #include "confdefs.h"
16922 /* System header to define __stub macros and hopefully few prototypes,
16923 which can conflict with char $ac_func(); below. */
16924 #include <assert.h>
16925 /* Override any gcc2 internal prototype to avoid an error. */
16926 /* We use char because int might match the return type of a gcc2
16927 builtin and then its argument prototype would still apply. */
16928 char $ac_func();
16929
16930 int main() {
16931
16932 /* The GNU C library defines this for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16936 choke me
16937 #else
16938 $ac_func();
16939 #endif
16940
16941 ; return 0; }
16942 EOF
16943 if { (eval echo configure:16944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16944 rm -rf conftest*
16945 eval "ac_cv_func_$ac_func=yes"
16946 else
16947 echo "configure: failed program was:" >&5
16948 cat conftest.$ac_ext >&5
16949 rm -rf conftest*
16950 eval "ac_cv_func_$ac_func=no"
16951 fi
16952 rm -f conftest*
16953 fi
16954
16955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16956 echo "$ac_t""yes" 1>&6
16957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16958 cat >> confdefs.h <<EOF
16959 #define $ac_tr_func 1
16960 EOF
16961 cat >> confdefs.h <<\EOF
16962 #define HAVE_DLERROR 1
16963 EOF
16964
16965 else
16966 echo "$ac_t""no" 1>&6
16967 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16968 echo "configure:16969: checking for dlerror in -ldl" >&5
16969 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16971 echo $ac_n "(cached) $ac_c" 1>&6
16972 else
16973 ac_save_LIBS="$LIBS"
16974 LIBS="-ldl $LIBS"
16975 cat > conftest.$ac_ext <<EOF
16976 #line 16977 "configure"
16977 #include "confdefs.h"
16978 /* Override any gcc2 internal prototype to avoid an error. */
16979 /* We use char because int might match the return type of a gcc2
16980 builtin and then its argument prototype would still apply. */
16981 char dlerror();
16982
16983 int main() {
16984 dlerror()
16985 ; return 0; }
16986 EOF
16987 if { (eval echo configure:16988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16988 rm -rf conftest*
16989 eval "ac_cv_lib_$ac_lib_var=yes"
16990 else
16991 echo "configure: failed program was:" >&5
16992 cat conftest.$ac_ext >&5
16993 rm -rf conftest*
16994 eval "ac_cv_lib_$ac_lib_var=no"
16995 fi
16996 rm -f conftest*
16997 LIBS="$ac_save_LIBS"
16998
16999 fi
17000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17001 echo "$ac_t""yes" 1>&6
17002 cat >> confdefs.h <<\EOF
17003 #define HAVE_DLERROR 1
17004 EOF
17005
17006 else
17007 echo "$ac_t""no" 1>&6
17008 fi
17009
17010 fi
17011 done
17012
17013 fi
17014 fi
17015
17016 if test "$HAVE_DL_FUNCS" = 0; then
17017 if test "$HAVE_SHL_FUNCS" = 0; then
17018 if test "$USE_UNIX" = 1; then
17019 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17020 wxUSE_DYNLIB_CLASS=no
17021 else
17022 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17023 fi
17024 fi
17025 fi
17026 fi
17027 fi
17028
17029 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17030 cat >> confdefs.h <<\EOF
17031 #define wxUSE_DYNLIB_CLASS 1
17032 EOF
17033
17034 else
17035 wxUSE_ODBC=no
17036 wxUSE_SERIAL=no
17037 fi
17038
17039
17040 if test "$wxUSE_FONTMAP" = "yes" ; then
17041 cat >> confdefs.h <<\EOF
17042 #define wxUSE_FONTMAP 1
17043 EOF
17044
17045 fi
17046
17047 if test "$wxUSE_UNICODE" = "yes" ; then
17048 cat >> confdefs.h <<\EOF
17049 #define wxUSE_UNICODE 1
17050 EOF
17051
17052 fi
17053
17054 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17055 cat >> confdefs.h <<\EOF
17056 #define wxUSE_EXPERIMENTAL_PRINTF 1
17057 EOF
17058
17059 fi
17060
17061
17062 if test "$wxUSE_SERIAL" = "yes" ; then
17063 cat >> confdefs.h <<\EOF
17064 #define wxUSE_SERIAL 1
17065 EOF
17066
17067 fi
17068
17069
17070 IODBC_C_SRC=""
17071 if test "$wxUSE_ODBC" = "yes" ; then
17072 cat >> confdefs.h <<\EOF
17073 #define wxUSE_ODBC 1
17074 EOF
17075
17076 WXODBCFLAG="-D_IODBC_"
17077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17078 fi
17079
17080
17081 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17082 cat >> confdefs.h <<\EOF
17083 #define wxUSE_POSTSCRIPT 1
17084 EOF
17085
17086 fi
17087
17088 cat >> confdefs.h <<\EOF
17089 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17090 EOF
17091
17092
17093 cat >> confdefs.h <<\EOF
17094 #define wxUSE_NORMALIZED_PS_FONTS 1
17095 EOF
17096
17097
17098
17099 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17100 cat >> confdefs.h <<\EOF
17101 #define wxUSE_CONSTRAINTS 1
17102 EOF
17103
17104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17105 fi
17106
17107 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17108 cat >> confdefs.h <<\EOF
17109 #define wxUSE_MDI_ARCHITECTURE 1
17110 EOF
17111
17112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17113 fi
17114
17115 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17116 cat >> confdefs.h <<\EOF
17117 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17118 EOF
17119
17120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17121 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17123 fi
17124 fi
17125
17126 if test "$wxUSE_HELP" = "yes"; then
17127 cat >> confdefs.h <<\EOF
17128 #define wxUSE_HELP 1
17129 EOF
17130
17131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17132
17133 if test "$USE_WIN32" = 1; then
17134 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17135 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17136 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17137 echo "configure:17138: checking for htmlhelp.h" >&5
17138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17139 echo $ac_n "(cached) $ac_c" 1>&6
17140 else
17141 cat > conftest.$ac_ext <<EOF
17142 #line 17143 "configure"
17143 #include "confdefs.h"
17144 #include <htmlhelp.h>
17145 EOF
17146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17147 { (eval echo configure:17148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17149 if test -z "$ac_err"; then
17150 rm -rf conftest*
17151 eval "ac_cv_header_$ac_safe=yes"
17152 else
17153 echo "$ac_err" >&5
17154 echo "configure: failed program was:" >&5
17155 cat conftest.$ac_ext >&5
17156 rm -rf conftest*
17157 eval "ac_cv_header_$ac_safe=no"
17158 fi
17159 rm -f conftest*
17160 fi
17161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17162 echo "$ac_t""yes" 1>&6
17163
17164 cat >> confdefs.h <<\EOF
17165 #define wxUSE_MS_HTML_HELP 1
17166 EOF
17167
17168
17169 else
17170 echo "$ac_t""no" 1>&6
17171
17172 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2
17173 wxUSE_MS_HTML_HELP=no
17174
17175 fi
17176
17177 fi
17178 fi
17179
17180 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17181 if test "$wxUSE_HTML" = "yes"; then
17182 cat >> confdefs.h <<\EOF
17183 #define wxUSE_WXHTML_HELP 1
17184 EOF
17185
17186 else
17187 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17188 wxUSE_WXHTML_HELP=no
17189 fi
17190 fi
17191 fi
17192
17193 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17194 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17195 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17196 else
17197 cat >> confdefs.h <<\EOF
17198 #define wxUSE_PRINTING_ARCHITECTURE 1
17199 EOF
17200
17201 fi
17202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17203 fi
17204
17205 if test "$wxUSE_PROLOGIO" = "yes" ; then
17206 cat >> confdefs.h <<\EOF
17207 #define wxUSE_PROLOGIO 1
17208 EOF
17209
17210 fi
17211
17212 if test "$wxUSE_RESOURCES" = "yes" ; then
17213 cat >> confdefs.h <<\EOF
17214 #define wxUSE_RESOURCES 1
17215 EOF
17216
17217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17218 fi
17219
17220 if test "$wxUSE_X_RESOURCES" = "yes"; then
17221 cat >> confdefs.h <<\EOF
17222 #define wxUSE_X_RESOURCES 1
17223 EOF
17224
17225 fi
17226
17227
17228 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17229 -o "$wxUSE_CLIPBOARD" = "yes" \
17230 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17231 for ac_hdr in ole2.h
17232 do
17233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17235 echo "configure:17236: checking for $ac_hdr" >&5
17236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17237 echo $ac_n "(cached) $ac_c" 1>&6
17238 else
17239 cat > conftest.$ac_ext <<EOF
17240 #line 17241 "configure"
17241 #include "confdefs.h"
17242 #include <$ac_hdr>
17243 EOF
17244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17245 { (eval echo configure:17246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17247 if test -z "$ac_err"; then
17248 rm -rf conftest*
17249 eval "ac_cv_header_$ac_safe=yes"
17250 else
17251 echo "$ac_err" >&5
17252 echo "configure: failed program was:" >&5
17253 cat conftest.$ac_ext >&5
17254 rm -rf conftest*
17255 eval "ac_cv_header_$ac_safe=no"
17256 fi
17257 rm -f conftest*
17258 fi
17259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17260 echo "$ac_t""yes" 1>&6
17261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17262 cat >> confdefs.h <<EOF
17263 #define $ac_tr_hdr 1
17264 EOF
17265
17266 else
17267 echo "$ac_t""no" 1>&6
17268 fi
17269 done
17270
17271
17272 if test "$ac_cv_header_ole2_h" = "yes" ; then
17273 if test "$GCC" = yes ; then
17274 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17275 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17276 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17277 cat >> confdefs.h <<\EOF
17278 #define wxUSE_OLE 1
17279 EOF
17280
17281
17282 fi
17283
17284 cat >> confdefs.h <<\EOF
17285 #define wxUSE_DATAOBJ 1
17286 EOF
17287
17288 else
17289 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17290
17291 wxUSE_CLIPBOARD=no
17292 wxUSE_DRAG_AND_DROP=no
17293 wxUSE_DATAOBJ=no
17294 fi
17295
17296 if test "$wxUSE_METAFILE" = "yes"; then
17297 cat >> confdefs.h <<\EOF
17298 #define wxUSE_METAFILE 1
17299 EOF
17300
17301
17302 cat >> confdefs.h <<\EOF
17303 #define wxUSE_ENH_METAFILE 1
17304 EOF
17305
17306 fi
17307 fi
17308
17309 if test "$wxUSE_IPC" = "yes"; then
17310 if test "$wxUSE_SOCKETS" != "yes"; then
17311 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17312 fi
17313
17314 cat >> confdefs.h <<\EOF
17315 #define wxUSE_IPC 1
17316 EOF
17317
17318 fi
17319
17320 if test "$wxUSE_CLIPBOARD" = "yes"; then
17321 cat >> confdefs.h <<\EOF
17322 #define wxUSE_CLIPBOARD 1
17323 EOF
17324
17325
17326 cat >> confdefs.h <<\EOF
17327 #define wxUSE_DATAOBJ 1
17328 EOF
17329
17330 fi
17331
17332 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17333 if test "$wxUSE_GTK" = 1; then
17334 if test "$WXGTK12" != 1; then
17335 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17336 wxUSE_DRAG_AND_DROP=no
17337 fi
17338 fi
17339
17340 if test "$wxUSE_MOTIF" = 1; then
17341 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17342 wxUSE_DRAG_AND_DROP=no
17343 fi
17344
17345 if test "$wxUSE_MAC" = 1; then
17346 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17347 wxUSE_DRAG_AND_DROP=no
17348 fi
17349
17350 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17351 cat >> confdefs.h <<\EOF
17352 #define wxUSE_DRAG_AND_DROP 1
17353 EOF
17354
17355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17356 fi
17357
17358 fi
17359
17360 if test "$wxUSE_SPLINES" = "yes" ; then
17361 cat >> confdefs.h <<\EOF
17362 #define wxUSE_SPLINES 1
17363 EOF
17364
17365 fi
17366
17367
17368 USES_CONTROLS=0
17369 if test "$wxUSE_CONTROLS" = "yes"; then
17370 USES_CONTROLS=1
17371 fi
17372
17373 if test "$wxUSE_ACCEL" = "yes"; then
17374 cat >> confdefs.h <<\EOF
17375 #define wxUSE_ACCEL 1
17376 EOF
17377
17378 USES_CONTROLS=1
17379 fi
17380
17381 if test "$wxUSE_BUTTON" = "yes"; then
17382 cat >> confdefs.h <<\EOF
17383 #define wxUSE_BUTTON 1
17384 EOF
17385
17386 USES_CONTROLS=1
17387 fi
17388
17389 if test "$wxUSE_BMPBUTTON" = "yes"; then
17390 cat >> confdefs.h <<\EOF
17391 #define wxUSE_BMPBUTTON 1
17392 EOF
17393
17394 USES_CONTROLS=1
17395 fi
17396
17397 if test "$wxUSE_CALCTRL" = "yes"; then
17398 cat >> confdefs.h <<\EOF
17399 #define wxUSE_CALENDARCTRL 1
17400 EOF
17401
17402 USES_CONTROLS=1
17403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17404 fi
17405
17406 if test "$wxUSE_CARET" = "yes"; then
17407 cat >> confdefs.h <<\EOF
17408 #define wxUSE_CARET 1
17409 EOF
17410
17411 USES_CONTROLS=1
17412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17413 fi
17414
17415 if test "$wxUSE_COMBOBOX" = "yes"; then
17416 cat >> confdefs.h <<\EOF
17417 #define wxUSE_COMBOBOX 1
17418 EOF
17419
17420 USES_CONTROLS=1
17421 fi
17422
17423 if test "$wxUSE_CHOICE" = "yes"; then
17424 cat >> confdefs.h <<\EOF
17425 #define wxUSE_CHOICE 1
17426 EOF
17427
17428 USES_CONTROLS=1
17429 fi
17430
17431 if test "$wxUSE_CHECKBOX" = "yes"; then
17432 cat >> confdefs.h <<\EOF
17433 #define wxUSE_CHECKBOX 1
17434 EOF
17435
17436 USES_CONTROLS=1
17437 fi
17438
17439 if test "$wxUSE_CHECKLST" = "yes"; then
17440 cat >> confdefs.h <<\EOF
17441 #define wxUSE_CHECKLISTBOX 1
17442 EOF
17443
17444 USES_CONTROLS=1
17445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17446 fi
17447
17448 if test "$wxUSE_GAUGE" = "yes"; then
17449 cat >> confdefs.h <<\EOF
17450 #define wxUSE_GAUGE 1
17451 EOF
17452
17453 USES_CONTROLS=1
17454 fi
17455
17456 if test "$wxUSE_NEW_GRID" = "yes"; then
17457 wxUSE_GRID="yes"
17458 cat >> confdefs.h <<\EOF
17459 #define wxUSE_NEW_GRID 1
17460 EOF
17461
17462 USES_CONTROLS=1
17463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17464 fi
17465
17466 if test "$wxUSE_GRID" = "yes"; then
17467 cat >> confdefs.h <<\EOF
17468 #define wxUSE_GRID 1
17469 EOF
17470
17471 USES_CONTROLS=1
17472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17473 fi
17474
17475 if test "$wxUSE_IMAGLIST" = "yes"; then
17476 cat >> confdefs.h <<\EOF
17477 #define wxUSE_IMAGLIST 1
17478 EOF
17479
17480 fi
17481
17482 if test "$wxUSE_LISTBOX" = "yes"; then
17483 cat >> confdefs.h <<\EOF
17484 #define wxUSE_LISTBOX 1
17485 EOF
17486
17487 USES_CONTROLS=1
17488 fi
17489
17490 if test "$wxUSE_LISTCTRL" = "yes"; then
17491 if test "$wxUSE_IMAGLIST" = "yes"; then
17492 cat >> confdefs.h <<\EOF
17493 #define wxUSE_LISTCTRL 1
17494 EOF
17495
17496 USES_CONTROLS=1
17497 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17498 else
17499 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17500 fi
17501 fi
17502
17503 if test "$wxUSE_NOTEBOOK" = "yes"; then
17504 cat >> confdefs.h <<\EOF
17505 #define wxUSE_NOTEBOOK 1
17506 EOF
17507
17508 USES_CONTROLS=1
17509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17510 fi
17511
17512 if test "$wxUSE_PROPSHEET" = "yes"; then
17513 cat >> confdefs.h <<\EOF
17514 #define wxUSE_PROPSHEET 1
17515 EOF
17516
17517 USES_CONTROLS=1
17518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17519 fi
17520
17521 if test "$wxUSE_RADIOBOX" = "yes"; then
17522 cat >> confdefs.h <<\EOF
17523 #define wxUSE_RADIOBOX 1
17524 EOF
17525
17526 USES_CONTROLS=1
17527 fi
17528
17529 if test "$wxUSE_RADIOBTN" = "yes"; then
17530 cat >> confdefs.h <<\EOF
17531 #define wxUSE_RADIOBTN 1
17532 EOF
17533
17534 USES_CONTROLS=1
17535 fi
17536
17537 if test "$wxUSE_SASH" = "yes"; then
17538 cat >> confdefs.h <<\EOF
17539 #define wxUSE_SASH 1
17540 EOF
17541
17542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17543 fi
17544
17545 if test "$wxUSE_SCROLLBAR" = "yes"; then
17546 cat >> confdefs.h <<\EOF
17547 #define wxUSE_SCROLLBAR 1
17548 EOF
17549
17550 USES_CONTROLS=1
17551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17552 fi
17553
17554 if test "$wxUSE_SLIDER" = "yes"; then
17555 cat >> confdefs.h <<\EOF
17556 #define wxUSE_SLIDER 1
17557 EOF
17558
17559 USES_CONTROLS=1
17560 fi
17561
17562 if test "$wxUSE_SPINBTN" = "yes"; then
17563 cat >> confdefs.h <<\EOF
17564 #define wxUSE_SPINBTN 1
17565 EOF
17566
17567 USES_CONTROLS=1
17568 fi
17569
17570 if test "$wxUSE_SPINCTRL" = "yes"; then
17571 cat >> confdefs.h <<\EOF
17572 #define wxUSE_SPINCTRL 1
17573 EOF
17574
17575 USES_CONTROLS=1
17576 fi
17577
17578 if test "$wxUSE_SPLITTER" = "yes"; then
17579 cat >> confdefs.h <<\EOF
17580 #define wxUSE_SPLITTER 1
17581 EOF
17582
17583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17584 fi
17585
17586 if test "$wxUSE_STATBMP" = "yes"; then
17587 cat >> confdefs.h <<\EOF
17588 #define wxUSE_STATBMP 1
17589 EOF
17590
17591 USES_CONTROLS=1
17592 fi
17593
17594 if test "$wxUSE_STATBOX" = "yes"; then
17595 cat >> confdefs.h <<\EOF
17596 #define wxUSE_STATBOX 1
17597 EOF
17598
17599 USES_CONTROLS=1
17600 fi
17601
17602 if test "$wxUSE_STATTEXT" = "yes"; then
17603 cat >> confdefs.h <<\EOF
17604 #define wxUSE_STATTEXT 1
17605 EOF
17606
17607 USES_CONTROLS=1
17608 fi
17609
17610 if test "$wxUSE_STATLINE" = "yes"; then
17611 if test "$wxUSE_WINE" = 1 ; then
17612 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17613 else
17614 cat >> confdefs.h <<\EOF
17615 #define wxUSE_STATLINE 1
17616 EOF
17617
17618 USES_CONTROLS=1
17619 fi
17620 fi
17621
17622 if test "$wxUSE_STATUSBAR" = "yes"; then
17623 cat >> confdefs.h <<\EOF
17624 #define wxUSE_STATUSBAR 1
17625 EOF
17626
17627 USES_CONTROLS=1
17628
17629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17630 fi
17631
17632 if test "$wxUSE_TABDIALOG" = "yes"; then
17633 cat >> confdefs.h <<\EOF
17634 #define wxUSE_TAB_DIALOG 1
17635 EOF
17636
17637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17638 fi
17639
17640 if test "$wxUSE_TEXTCTRL" = "yes"; then
17641 cat >> confdefs.h <<\EOF
17642 #define wxUSE_TEXTCTRL 1
17643 EOF
17644
17645 USES_CONTROLS=1
17646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17647 fi
17648
17649 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17650 if test "$wxUSE_MAC" = 1; then
17651 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17652 wxUSE_TOGGLEBTN=no
17653 fi
17654
17655 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17656 cat >> confdefs.h <<\EOF
17657 #define wxUSE_TOGGLEBTN 1
17658 EOF
17659
17660 USES_CONTROLS=1
17661 fi
17662 fi
17663
17664 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17665 cat >> confdefs.h <<\EOF
17666 #define wxUSE_TOOLBAR_SIMPLE 1
17667 EOF
17668
17669 wxUSE_TOOLBAR="yes"
17670 USES_CONTROLS=1
17671 fi
17672
17673 if test "$wxUSE_TOOLBAR" = "yes"; then
17674 cat >> confdefs.h <<\EOF
17675 #define wxUSE_TOOLBAR 1
17676 EOF
17677
17678 USES_CONTROLS=1
17679
17680 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17681 wxUSE_TOOLBAR_NATIVE="yes"
17682 fi
17683
17684 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17685 cat >> confdefs.h <<\EOF
17686 #define wxUSE_TOOLBAR_NATIVE 1
17687 EOF
17688
17689 USES_CONTROLS=1
17690 fi
17691
17692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17693 fi
17694
17695 if test "$wxUSE_TOOLTIPS" = "yes"; then
17696 if test "$wxUSE_MOTIF" = 1; then
17697 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17698 else
17699 if test "$wxUSE_WINE" = 1; then
17700 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17701 else
17702 cat >> confdefs.h <<\EOF
17703 #define wxUSE_TOOLTIPS 1
17704 EOF
17705
17706 fi
17707 fi
17708 fi
17709
17710 if test "$wxUSE_TREECTRL" = "yes"; then
17711 if test "$wxUSE_IMAGLIST" = "yes"; then
17712 cat >> confdefs.h <<\EOF
17713 #define wxUSE_TREECTRL 1
17714 EOF
17715
17716 USES_CONTROLS=1
17717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17718 else
17719 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17720 fi
17721 fi
17722
17723 if test "$wxUSE_POPUPWIN" = "yes"; then
17724 if test "$wxUSE_MAC" = 1; then
17725 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17726 else
17727 cat >> confdefs.h <<\EOF
17728 #define wxUSE_POPUPWIN 1
17729 EOF
17730
17731 USES_CONTROLS=1
17732 fi
17733 fi
17734
17735 if test "$USES_CONTROLS" = 1; then
17736 cat >> confdefs.h <<\EOF
17737 #define wxUSE_CONTROLS 1
17738 EOF
17739
17740 fi
17741
17742
17743 if test "$wxUSE_TREELAYOUT" = "yes"; then
17744 cat >> confdefs.h <<\EOF
17745 #define wxUSE_TREELAYOUT 1
17746 EOF
17747
17748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17749 fi
17750
17751 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17752 cat >> confdefs.h <<\EOF
17753 #define wxUSE_DRAGIMAGE 1
17754 EOF
17755
17756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17757 fi
17758
17759 if test "$wxUSE_MENUS" = "yes"; then
17760 cat >> confdefs.h <<\EOF
17761 #define wxUSE_MENUS 1
17762 EOF
17763
17764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17765 fi
17766
17767 if test "$wxUSE_METAFILE" = "yes"; then
17768 cat >> confdefs.h <<\EOF
17769 #define wxUSE_METAFILE 1
17770 EOF
17771
17772 fi
17773
17774 if test "$wxUSE_MIMETYPE" = "yes"; then
17775 cat >> confdefs.h <<\EOF
17776 #define wxUSE_MIMETYPE 1
17777 EOF
17778
17779 fi
17780
17781 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17782 cat >> confdefs.h <<\EOF
17783 #define wxUSE_SYSTEM_OPTIONS 1
17784 EOF
17785
17786 fi
17787
17788 if test "$wxUSE_MINIFRAME" = "yes"; then
17789 cat >> confdefs.h <<\EOF
17790 #define wxUSE_MINIFRAME 1
17791 EOF
17792
17793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17794 fi
17795
17796 if test "$wxUSE_HTML" = "yes"; then
17797 cat >> confdefs.h <<\EOF
17798 #define wxUSE_HTML 1
17799 EOF
17800
17801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17802 fi
17803
17804 if test "$wxUSE_VALIDATORS" = "yes"; then
17805 cat >> confdefs.h <<\EOF
17806 #define wxUSE_VALIDATORS 1
17807 EOF
17808
17809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17810 fi
17811
17812 if test "$wxUSE_IMAGE" = "yes" ; then
17813 cat >> confdefs.h <<\EOF
17814 #define wxUSE_IMAGE 1
17815 EOF
17816
17817 fi
17818
17819 if test "$wxUSE_GIF" = "yes" ; then
17820 cat >> confdefs.h <<\EOF
17821 #define wxUSE_GIF 1
17822 EOF
17823
17824 fi
17825
17826 if test "$wxUSE_PCX" = "yes" ; then
17827 cat >> confdefs.h <<\EOF
17828 #define wxUSE_PCX 1
17829 EOF
17830
17831 fi
17832
17833 if test "$wxUSE_PNM" = "yes" ; then
17834 cat >> confdefs.h <<\EOF
17835 #define wxUSE_PNM 1
17836 EOF
17837
17838 fi
17839
17840 if test "$wxUSE_XPM" = "yes" ; then
17841 cat >> confdefs.h <<\EOF
17842 #define wxUSE_XPM 1
17843 EOF
17844
17845 fi
17846
17847
17848 if test "$wxUSE_CHOICEDLG" = "yes"; then
17849 cat >> confdefs.h <<\EOF
17850 #define wxUSE_CHOICEDLG 1
17851 EOF
17852
17853 fi
17854
17855 if test "$wxUSE_COLOURDLG" = "yes"; then
17856 cat >> confdefs.h <<\EOF
17857 #define wxUSE_COLOURDLG 1
17858 EOF
17859
17860 fi
17861
17862 if test "$wxUSE_FILEDLG" = "yes"; then
17863 cat >> confdefs.h <<\EOF
17864 #define wxUSE_FILEDLG 1
17865 EOF
17866
17867 fi
17868
17869 if test "$wxUSE_FINDREPLDLG" = "yes"; then
17870 cat >> confdefs.h <<\EOF
17871 #define wxUSE_FINDREPLDLG 1
17872 EOF
17873
17874 fi
17875
17876 if test "$wxUSE_FONTDLG" = "yes"; then
17877 cat >> confdefs.h <<\EOF
17878 #define wxUSE_FONTDLG 1
17879 EOF
17880
17881 fi
17882
17883 if test "$wxUSE_DIRDLG" = "yes"; then
17884 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17885 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17886 else
17887 if test "$wxUSE_TREECTRL" != "yes"; then
17888 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17889 else
17890 cat >> confdefs.h <<\EOF
17891 #define wxUSE_DIRDLG 1
17892 EOF
17893
17894 fi
17895 fi
17896 fi
17897
17898 if test "$wxUSE_MSGDLG" = "yes"; then
17899 cat >> confdefs.h <<\EOF
17900 #define wxUSE_MSGDLG 1
17901 EOF
17902
17903 fi
17904
17905 if test "$wxUSE_NUMBERDLG" = "yes"; then
17906 cat >> confdefs.h <<\EOF
17907 #define wxUSE_NUMBERDLG 1
17908 EOF
17909
17910 fi
17911
17912 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17913 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17914 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17915 else
17916 cat >> confdefs.h <<\EOF
17917 #define wxUSE_PROGRESSDLG 1
17918 EOF
17919
17920 fi
17921 fi
17922
17923 if test "$wxUSE_SPLASH" = "yes"; then
17924 cat >> confdefs.h <<\EOF
17925 #define wxUSE_SPLASH 1
17926 EOF
17927
17928 fi
17929
17930 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17931 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17932 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17933 else
17934 cat >> confdefs.h <<\EOF
17935 #define wxUSE_STARTUP_TIPS 1
17936 EOF
17937
17938 fi
17939 fi
17940
17941 if test "$wxUSE_TEXTDLG" = "yes"; then
17942 cat >> confdefs.h <<\EOF
17943 #define wxUSE_TEXTDLG 1
17944 EOF
17945
17946 fi
17947
17948 if test "$wxUSE_WIZARDDLG" = "yes"; then
17949 cat >> confdefs.h <<\EOF
17950 #define wxUSE_WIZARDDLG 1
17951 EOF
17952
17953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17954 fi
17955
17956
17957 if test "$cross_compiling" = "yes"; then
17958 OSINFO="\"$host\""
17959 else
17960 OSINFO=`uname -s -r -m`
17961 OSINFO="\"$OSINFO\""
17962 fi
17963
17964 cat >> confdefs.h <<EOF
17965 #define WXWIN_OS_DESCRIPTION $OSINFO
17966 EOF
17967
17968
17969
17970 if test "x$prefix" != "xNONE"; then
17971 wxPREFIX=$prefix
17972 else
17973 wxPREFIX=$ac_default_prefix
17974 fi
17975
17976 cat >> confdefs.h <<EOF
17977 #define wxINSTALL_PREFIX "$wxPREFIX"
17978 EOF
17979
17980
17981
17982 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17983
17984 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17985
17986 if test "$wxUSE_MAC" = 1 ; then
17987 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17988 fi
17989
17990 if test "$wxUSE_GUI" = "yes"; then
17991 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17992
17993
17994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17995 drawing dynamic erase event exec font image \
17996 minimal richedit rotate widgets"
17997
17998 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
18000 fi
18001
18002 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18003 else
18004 SAMPLES_SUBDIRS="console"
18005 fi
18006
18007 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18008
18009 INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18010 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18011 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18012
18013 if test "$wxUSE_GTK" = 1; then
18014 WXCONFIG_INCLUDE=""
18015 else
18016 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18017 fi
18018
18019 if test "$GXX" = yes ; then
18020 CXXWARNINGS="-Wall"
18021 fi
18022 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18023
18024 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18025 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18026
18027 LDFLAGS="$LDFLAGS $PROFILE"
18028
18029 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18113 echo "configure:18114: checking whether ${MAKE-make} sets \${MAKE}" >&5
18114 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18115 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18116 echo $ac_n "(cached) $ac_c" 1>&6
18117 else
18118 cat > conftestmake <<\EOF
18119 all:
18120 @echo 'ac_maketemp="${MAKE}"'
18121 EOF
18122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18123 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18124 if test -n "$ac_maketemp"; then
18125 eval ac_cv_prog_make_${ac_make}_set=yes
18126 else
18127 eval ac_cv_prog_make_${ac_make}_set=no
18128 fi
18129 rm -f conftestmake
18130 fi
18131 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18132 echo "$ac_t""yes" 1>&6
18133 SET_MAKE=
18134 else
18135 echo "$ac_t""no" 1>&6
18136 SET_MAKE="MAKE=${MAKE-make}"
18137 fi
18138
18139
18140 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18141 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18142 fi
18143
18144
18145
18146 if test "$wxUSE_GUI" = "yes"; then
18147 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18148 wx_cv_path_ifs=$PATH_IFS
18149 wx_cv_program_ext=$PROGRAM_EXT
18150 wx_cv_target_library=$WX_TARGET_LIBRARY
18151 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18152 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18153 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18154 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18155 subdirs="demos samples utils contrib"
18156
18157 fi
18158
18159 trap '' 1 2 15
18160 cat > confcache <<\EOF
18161 # This file is a shell script that caches the results of configure
18162 # tests run on this system so they can be shared between configure
18163 # scripts and configure runs. It is not useful on other systems.
18164 # If it contains results you don't want to keep, you may remove or edit it.
18165 #
18166 # By default, configure uses ./config.cache as the cache file,
18167 # creating it if it does not exist already. You can give configure
18168 # the --cache-file=FILE option to use a different cache file; that is
18169 # what configure does when it calls configure scripts in
18170 # subdirectories, so they share the cache.
18171 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18172 # config.status only pays attention to the cache file if you give it the
18173 # --recheck option to rerun configure.
18174 #
18175 EOF
18176 # The following way of writing the cache mishandles newlines in values,
18177 # but we know of no workaround that is simple, portable, and efficient.
18178 # So, don't put newlines in cache variables' values.
18179 # Ultrix sh set writes to stderr and can't be redirected directly,
18180 # and sets the high bit in the cache file unless we assign to the vars.
18181 (set) 2>&1 |
18182 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18183 *ac_space=\ *)
18184 # `set' does not quote correctly, so add quotes (double-quote substitution
18185 # turns \\\\ into \\, and sed turns \\ into \).
18186 sed -n \
18187 -e "s/'/'\\\\''/g" \
18188 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18189 ;;
18190 *)
18191 # `set' quotes correctly as required by POSIX, so do not add quotes.
18192 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18193 ;;
18194 esac >> confcache
18195 if cmp -s $cache_file confcache; then
18196 :
18197 else
18198 if test -w $cache_file; then
18199 echo "updating cache $cache_file"
18200 cat confcache > $cache_file
18201 else
18202 echo "not updating unwritable cache $cache_file"
18203 fi
18204 fi
18205 rm -f confcache
18206
18207 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18208
18209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18210 # Let make expand exec_prefix.
18211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18212
18213 # Any assignment to VPATH causes Sun make to only execute
18214 # the first set of double-colon rules, so remove it if not needed.
18215 # If there is a colon in the path, we need to keep it.
18216 if test "x$srcdir" = x.; then
18217 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18218 fi
18219
18220 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18221
18222 DEFS=-DHAVE_CONFIG_H
18223
18224 # Without the "./", some shells look in PATH for config.status.
18225 : ${CONFIG_STATUS=./config.status}
18226
18227 echo creating $CONFIG_STATUS
18228 rm -f $CONFIG_STATUS
18229 cat > $CONFIG_STATUS <<EOF
18230 #! /bin/sh
18231 # Generated automatically by configure.
18232 # Run this file to recreate the current configuration.
18233 # This directory was configured as follows,
18234 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18235 #
18236 # $0 $ac_configure_args
18237 #
18238 # Compiler output produced by configure, useful for debugging
18239 # configure, is in ./config.log if it exists.
18240
18241 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18242 for ac_option
18243 do
18244 case "\$ac_option" in
18245 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18246 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18247 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18248 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18249 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18250 exit 0 ;;
18251 -help | --help | --hel | --he | --h)
18252 echo "\$ac_cs_usage"; exit 0 ;;
18253 *) echo "\$ac_cs_usage"; exit 1 ;;
18254 esac
18255 done
18256
18257 ac_given_srcdir=$srcdir
18258 ac_given_INSTALL="$INSTALL"
18259
18260 trap 'rm -fr `echo "
18261 wx-config
18262 src/make.env
18263 src/makeprog.env
18264 src/makelib.env
18265 Makefile
18266 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18267 EOF
18268 cat >> $CONFIG_STATUS <<EOF
18269
18270 # Protect against being on the right side of a sed subst in config.status.
18271 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18272 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18273 $ac_vpsub
18274 $extrasub
18275 s%@SHELL@%$SHELL%g
18276 s%@CFLAGS@%$CFLAGS%g
18277 s%@CPPFLAGS@%$CPPFLAGS%g
18278 s%@CXXFLAGS@%$CXXFLAGS%g
18279 s%@FFLAGS@%$FFLAGS%g
18280 s%@DEFS@%$DEFS%g
18281 s%@LDFLAGS@%$LDFLAGS%g
18282 s%@LIBS@%$LIBS%g
18283 s%@exec_prefix@%$exec_prefix%g
18284 s%@prefix@%$prefix%g
18285 s%@program_transform_name@%$program_transform_name%g
18286 s%@bindir@%$bindir%g
18287 s%@sbindir@%$sbindir%g
18288 s%@libexecdir@%$libexecdir%g
18289 s%@datadir@%$datadir%g
18290 s%@sysconfdir@%$sysconfdir%g
18291 s%@sharedstatedir@%$sharedstatedir%g
18292 s%@localstatedir@%$localstatedir%g
18293 s%@libdir@%$libdir%g
18294 s%@includedir@%$includedir%g
18295 s%@oldincludedir@%$oldincludedir%g
18296 s%@infodir@%$infodir%g
18297 s%@mandir@%$mandir%g
18298 s%@host@%$host%g
18299 s%@host_alias@%$host_alias%g
18300 s%@host_cpu@%$host_cpu%g
18301 s%@host_vendor@%$host_vendor%g
18302 s%@host_os@%$host_os%g
18303 s%@target@%$target%g
18304 s%@target_alias@%$target_alias%g
18305 s%@target_cpu@%$target_cpu%g
18306 s%@target_vendor@%$target_vendor%g
18307 s%@target_os@%$target_os%g
18308 s%@build@%$build%g
18309 s%@build_alias@%$build_alias%g
18310 s%@build_cpu@%$build_cpu%g
18311 s%@build_vendor@%$build_vendor%g
18312 s%@build_os@%$build_os%g
18313 s%@CC@%$CC%g
18314 s%@CPP@%$CPP%g
18315 s%@CXX@%$CXX%g
18316 s%@RANLIB@%$RANLIB%g
18317 s%@AR@%$AR%g
18318 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18319 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18320 s%@INSTALL_DATA@%$INSTALL_DATA%g
18321 s%@STRIP@%$STRIP%g
18322 s%@YACC@%$YACC%g
18323 s%@LEX@%$LEX%g
18324 s%@LEXLIB@%$LEXLIB%g
18325 s%@LN_S@%$LN_S%g
18326 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18327 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18328 s%@GTK_LIBS@%$GTK_LIBS%g
18329 s%@GTK_CONFIG@%$GTK_CONFIG%g
18330 s%@X_CFLAGS@%$X_CFLAGS%g
18331 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18332 s%@X_LIBS@%$X_LIBS%g
18333 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18334 s%@RESCOMP@%$RESCOMP%g
18335 s%@DEREZ@%$DEREZ%g
18336 s%@CXXCPP@%$CXXCPP%g
18337 s%@LEX_STEM@%$LEX_STEM%g
18338 s%@PATH_IFS@%$PATH_IFS%g
18339 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18340 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18341 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18342 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18343 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18344 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18345 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18346 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18347 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18348 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18349 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18350 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18351 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18352 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18353 s%@WX_ALL@%$WX_ALL%g
18354 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18355 s%@SHARED_LD@%$SHARED_LD%g
18356 s%@PIC_FLAG@%$PIC_FLAG%g
18357 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18358 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18359 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18360 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18361 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18362 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18363 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18364 s%@USE_GUI@%$USE_GUI%g
18365 s%@AFMINSTALL@%$AFMINSTALL%g
18366 s%@TOOLKIT@%$TOOLKIT%g
18367 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18368 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18369 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18370 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18371 s%@cross_compiling@%$cross_compiling%g
18372 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18373 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18374 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18375 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18376 s%@GUIDIST@%$GUIDIST%g
18377 s%@PORT_FILES@%$PORT_FILES%g
18378 s%@DISTDIR@%$DISTDIR%g
18379 s%@RPM_SPEC@%$RPM_SPEC%g
18380 s%@RPM_FILES@%$RPM_FILES%g
18381 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18382 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18383 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18384 s%@EXTRADEFS@%$EXTRADEFS%g
18385 s%@LD_LIBS@%$LD_LIBS%g
18386 s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18387 s%@RESFLAGS@%$RESFLAGS%g
18388 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18389 s%@WX_RESOURCES_DARWIN@%$WX_RESOURCES_DARWIN%g
18390 s%@LIBWXMACRES@%$LIBWXMACRES%g
18391 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18392 s%@DLLTOOL@%$DLLTOOL%g
18393 s%@AS@%$AS%g
18394 s%@NM@%$NM%g
18395 s%@LD@%$LD%g
18396 s%@MAKEINFO@%$MAKEINFO%g
18397 s%@SET_MAKE@%$SET_MAKE%g
18398 s%@subdirs@%$subdirs%g
18399
18400 CEOF
18401 EOF
18402
18403 cat >> $CONFIG_STATUS <<\EOF
18404
18405 # Split the substitutions into bite-sized pieces for seds with
18406 # small command number limits, like on Digital OSF/1 and HP-UX.
18407 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18408 ac_file=1 # Number of current file.
18409 ac_beg=1 # First line for current file.
18410 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18411 ac_more_lines=:
18412 ac_sed_cmds=""
18413 while $ac_more_lines; do
18414 if test $ac_beg -gt 1; then
18415 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18416 else
18417 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18418 fi
18419 if test ! -s conftest.s$ac_file; then
18420 ac_more_lines=false
18421 rm -f conftest.s$ac_file
18422 else
18423 if test -z "$ac_sed_cmds"; then
18424 ac_sed_cmds="sed -f conftest.s$ac_file"
18425 else
18426 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18427 fi
18428 ac_file=`expr $ac_file + 1`
18429 ac_beg=$ac_end
18430 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18431 fi
18432 done
18433 if test -z "$ac_sed_cmds"; then
18434 ac_sed_cmds=cat
18435 fi
18436 EOF
18437
18438 cat >> $CONFIG_STATUS <<EOF
18439
18440 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18441 src/make.env
18442 src/makeprog.env
18443 src/makelib.env
18444 Makefile
18445 "}
18446 EOF
18447 cat >> $CONFIG_STATUS <<\EOF
18448 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18450 case "$ac_file" in
18451 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18452 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18453 *) ac_file_in="${ac_file}.in" ;;
18454 esac
18455
18456 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18457
18458 # Remove last slash and all that follows it. Not all systems have dirname.
18459 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18460 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18461 # The file is in a subdirectory.
18462 test ! -d "$ac_dir" && mkdir "$ac_dir"
18463 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18464 # A "../" for each directory in $ac_dir_suffix.
18465 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18466 else
18467 ac_dir_suffix= ac_dots=
18468 fi
18469
18470 case "$ac_given_srcdir" in
18471 .) srcdir=.
18472 if test -z "$ac_dots"; then top_srcdir=.
18473 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18474 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18475 *) # Relative path.
18476 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18477 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18478 esac
18479
18480 case "$ac_given_INSTALL" in
18481 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18482 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18483 esac
18484
18485 echo creating "$ac_file"
18486 rm -f "$ac_file"
18487 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18488 case "$ac_file" in
18489 *Makefile*) ac_comsub="1i\\
18490 # $configure_input" ;;
18491 *) ac_comsub= ;;
18492 esac
18493
18494 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18495 sed -e "$ac_comsub
18496 s%@configure_input@%$configure_input%g
18497 s%@srcdir@%$srcdir%g
18498 s%@top_srcdir@%$top_srcdir%g
18499 s%@INSTALL@%$INSTALL%g
18500 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18501 fi; done
18502 rm -f conftest.s*
18503
18504 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18505 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18506 #
18507 # ac_d sets the value in "#define NAME VALUE" lines.
18508 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18509 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18510 ac_dC='\3'
18511 ac_dD='%g'
18512 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18513 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18514 ac_uB='\([ ]\)%\1#\2define\3'
18515 ac_uC=' '
18516 ac_uD='\4%g'
18517 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18518 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18519 ac_eB='$%\1#\2define\3'
18520 ac_eC=' '
18521 ac_eD='%g'
18522
18523 if test "${CONFIG_HEADERS+set}" != set; then
18524 EOF
18525 cat >> $CONFIG_STATUS <<EOF
18526 CONFIG_HEADERS="setup.h:setup.h.in"
18527 EOF
18528 cat >> $CONFIG_STATUS <<\EOF
18529 fi
18530 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18532 case "$ac_file" in
18533 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18534 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18535 *) ac_file_in="${ac_file}.in" ;;
18536 esac
18537
18538 echo creating $ac_file
18539
18540 rm -f conftest.frag conftest.in conftest.out
18541 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18542 cat $ac_file_inputs > conftest.in
18543
18544 EOF
18545
18546 # Transform confdefs.h into a sed script conftest.vals that substitutes
18547 # the proper values into config.h.in to produce config.h. And first:
18548 # Protect against being on the right side of a sed subst in config.status.
18549 # Protect against being in an unquoted here document in config.status.
18550 rm -f conftest.vals
18551 cat > conftest.hdr <<\EOF
18552 s/[\\&%]/\\&/g
18553 s%[\\$`]%\\&%g
18554 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18555 s%ac_d%ac_u%gp
18556 s%ac_u%ac_e%gp
18557 EOF
18558 sed -n -f conftest.hdr confdefs.h > conftest.vals
18559 rm -f conftest.hdr
18560
18561 # This sed command replaces #undef with comments. This is necessary, for
18562 # example, in the case of _POSIX_SOURCE, which is predefined and required
18563 # on some systems where configure will not decide to define it.
18564 cat >> conftest.vals <<\EOF
18565 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18566 EOF
18567
18568 # Break up conftest.vals because some shells have a limit on
18569 # the size of here documents, and old seds have small limits too.
18570
18571 rm -f conftest.tail
18572 while :
18573 do
18574 ac_lines=`grep -c . conftest.vals`
18575 # grep -c gives empty output for an empty file on some AIX systems.
18576 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18577 # Write a limited-size here document to conftest.frag.
18578 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18579 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18580 echo 'CEOF
18581 sed -f conftest.frag conftest.in > conftest.out
18582 rm -f conftest.in
18583 mv conftest.out conftest.in
18584 ' >> $CONFIG_STATUS
18585 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18586 rm -f conftest.vals
18587 mv conftest.tail conftest.vals
18588 done
18589 rm -f conftest.vals
18590
18591 cat >> $CONFIG_STATUS <<\EOF
18592 rm -f conftest.frag conftest.h
18593 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18594 cat conftest.in >> conftest.h
18595 rm -f conftest.in
18596 if cmp -s $ac_file conftest.h 2>/dev/null; then
18597 echo "$ac_file is unchanged"
18598 rm -f conftest.h
18599 else
18600 # Remove last slash and all that follows it. Not all systems have dirname.
18601 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18602 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18603 # The file is in a subdirectory.
18604 test ! -d "$ac_dir" && mkdir "$ac_dir"
18605 fi
18606 rm -f $ac_file
18607 mv conftest.h $ac_file
18608 fi
18609 fi; done
18610
18611 EOF
18612 cat >> $CONFIG_STATUS <<EOF
18613
18614 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18615 LN_S="${LN_S}"
18616
18617
18618 EOF
18619 cat >> $CONFIG_STATUS <<\EOF
18620
18621 if test ! -L wx-config; then
18622 chmod +x wx-config
18623 mv wx-config wx${TOOLCHAIN_NAME}-config
18624 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
18625 fi
18626
18627 if test ! -d lib; then
18628 mkdir lib
18629 fi
18630 if test ! -d lib/wx; then
18631 mkdir lib/wx
18632 fi
18633 if test ! -d lib/wx/include; then
18634 mkdir lib/wx/include
18635 fi
18636 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18637 mkdir lib/wx/include/${TOOLCHAIN_NAME}
18638 fi
18639 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18640 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
18641 fi
18642 if test -f setup.h; then
18643 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
18644 fi
18645
18646 exit 0
18647 EOF
18648 chmod +x $CONFIG_STATUS
18649 rm -fr confdefs* $ac_clean_files
18650 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18651
18652 if test "$no_recursion" != yes; then
18653
18654 # Remove --cache-file and --srcdir arguments so they do not pile up.
18655 ac_sub_configure_args=
18656 ac_prev=
18657 for ac_arg in $ac_configure_args; do
18658 if test -n "$ac_prev"; then
18659 ac_prev=
18660 continue
18661 fi
18662 case "$ac_arg" in
18663 -cache-file | --cache-file | --cache-fil | --cache-fi \
18664 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18665 ac_prev=cache_file ;;
18666 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18667 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18668 ;;
18669 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18670 ac_prev=srcdir ;;
18671 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18672 ;;
18673 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18674 esac
18675 done
18676
18677 for ac_config_dir in demos samples utils contrib; do
18678
18679 # Do not complain, so a configure script can configure whichever
18680 # parts of a large source tree are present.
18681 if test ! -d $srcdir/$ac_config_dir; then
18682 continue
18683 fi
18684
18685 echo configuring in $ac_config_dir
18686
18687 case "$srcdir" in
18688 .) ;;
18689 *)
18690 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18691 else
18692 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18693 fi
18694 ;;
18695 esac
18696
18697 ac_popdir=`pwd`
18698 cd $ac_config_dir
18699
18700 # A "../" for each directory in /$ac_config_dir.
18701 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18702
18703 case "$srcdir" in
18704 .) # No --srcdir option. We are building in place.
18705 ac_sub_srcdir=$srcdir ;;
18706 /*) # Absolute path.
18707 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18708 *) # Relative path.
18709 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18710 esac
18711
18712 # Check for guested configure; otherwise get Cygnus style configure.
18713 if test -f $ac_sub_srcdir/configure; then
18714 ac_sub_configure=$ac_sub_srcdir/configure
18715 elif test -f $ac_sub_srcdir/configure.in; then
18716 ac_sub_configure=$ac_configure
18717 else
18718 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18719 ac_sub_configure=
18720 fi
18721
18722 # The recursion is here.
18723 if test -n "$ac_sub_configure"; then
18724
18725 # Make the cache file name correct relative to the subdirectory.
18726 case "$cache_file" in
18727 /*) ac_sub_cache_file=$cache_file ;;
18728 *) # Relative path.
18729 ac_sub_cache_file="$ac_dots$cache_file" ;;
18730 esac
18731 case "$ac_given_INSTALL" in
18732 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18733 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18734 esac
18735
18736 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18737 # The eval makes quoting arguments work.
18738 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18739 then :
18740 else
18741 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18742 fi
18743 fi
18744
18745 cd $ac_popdir
18746 done
18747 fi
18748
18749