]> git.saurik.com Git - wxWidgets.git/blob - configure
fix for Unicode build
[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-msw use MS-Windows"
72 ac_help="$ac_help
73 --with-pm use OS/2 Presentation Manager"
74 ac_help="$ac_help
75 --with-mgl use SciTech MGL"
76 ac_help="$ac_help
77 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
78 ac_help="$ac_help
79 --with-libpng use libpng (PNG image format)"
80 ac_help="$ac_help
81 --with-libjpeg use libjpeg (JPEG file format)"
82 ac_help="$ac_help
83 --with-libtiff use libtiff (TIFF file format)"
84 ac_help="$ac_help
85 --with-freetype use freetype (font rasterizer)"
86 ac_help="$ac_help
87 --with-opengl use OpenGL (or Mesa)"
88 ac_help="$ac_help
89 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
90 ac_help="$ac_help
91 --with-regex enable support for wxRegEx class"
92 ac_help="$ac_help
93 --with-zlib use zlib for LZW compression"
94 ac_help="$ac_help
95 --with-odbc use the IODBC and wxODBC classes"
96 ac_help="$ac_help
97 --enable-shared create shared library code"
98 ac_help="$ac_help
99 --enable-soname set the DT_SONAME field in ELF shared libraries"
100 ac_help="$ac_help
101 --enable-optimise create optimised code"
102 ac_help="$ac_help
103 --enable-debug same as debug_flag and debug_info"
104 ac_help="$ac_help
105 --enable-precomp enable use of precompiled headers (Mac OS X)"
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-textbuf use wxTextBuffer class"
172 ac_help="$ac_help
173 --enable-textfile use wxTextFile class"
174 ac_help="$ac_help
175 --enable-fontmap use font encodings conversion classes"
176 ac_help="$ac_help
177 --enable-unicode compile wxString with Unicode support"
178 ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180 ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182 ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184 ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186 ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188 ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190 ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192 ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194 ac_help="$ac_help
195 --enable-mimetypes use wxMimeTypesManager"
196 ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198 ac_help="$ac_help
199 --enable-threads use threads"
200 ac_help="$ac_help
201 --enable-serial use class serialization"
202 ac_help="$ac_help
203 --enable-docview use document view architecture"
204 ac_help="$ac_help
205 --enable-help use help subsystem"
206 ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208 ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210 ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212 ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214 ac_help="$ac_help
215 --enable-printarch use printing architecture"
216 ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218 ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220 ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222 ac_help="$ac_help
223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
224 ac_help="$ac_help
225 --enable-prologio use Prolog IO library"
226 ac_help="$ac_help
227 --enable-resources use wxWindows resources"
228 ac_help="$ac_help
229 --enable-xresources use X resources for save (default for gtk+)"
230 ac_help="$ac_help
231 --enable-clipboard use wxClipboard classes"
232 ac_help="$ac_help
233 --enable-dnd use Drag'n'Drop classes"
234 ac_help="$ac_help
235 --enable-metafile use win32 metafiles"
236 ac_help="$ac_help
237 --enable-treelayout use wxTreeLayout classes"
238 ac_help="$ac_help
239 --enable-controls use all usual controls"
240 ac_help="$ac_help
241 --enable-accel use accelerators"
242 ac_help="$ac_help
243 --enable-button use wxButton class"
244 ac_help="$ac_help
245 --enable-bmpbutton use wxBitmapButton class"
246 ac_help="$ac_help
247 --enable-calendar use wxCalendarCtrl class"
248 ac_help="$ac_help
249 --enable-caret use wxCaret class"
250 ac_help="$ac_help
251 --enable-checkbox use wxCheckBox class"
252 ac_help="$ac_help
253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
254 ac_help="$ac_help
255 --enable-choice use wxChoice class"
256 ac_help="$ac_help
257 --enable-combobox use wxComboBox classes"
258 ac_help="$ac_help
259 --enable-gauge use wxGauge class"
260 ac_help="$ac_help
261 --enable-grid use wxGrid class"
262 ac_help="$ac_help
263 --enable-newgrid use new wxGrid class"
264 ac_help="$ac_help
265 --enable-imaglist use wxImageList class"
266 ac_help="$ac_help
267 --enable-listbox use wxListBox class"
268 ac_help="$ac_help
269 --enable-listctrl use wxListCtrl class"
270 ac_help="$ac_help
271 --enable-notebook use wxNotebook class"
272 ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
274 ac_help="$ac_help
275 --enable-radiobox use wxRadioBox class"
276 ac_help="$ac_help
277 --enable-radiobtn use wxRadioButton class"
278 ac_help="$ac_help
279 --enable-sash use wxSashWindow class"
280 ac_help="$ac_help
281 --enable-scrollbar use wxScrollBar class and scrollable windows"
282 ac_help="$ac_help
283 --enable-slider use wxSlider class"
284 ac_help="$ac_help
285 --enable-spinbtn use wxSpinButton class"
286 ac_help="$ac_help
287 --enable-spinctrl use wxSpinCtrl class"
288 ac_help="$ac_help
289 --enable-splitter use wxSplitterWindow class"
290 ac_help="$ac_help
291 --enable-statbmp use wxStaticBitmap class"
292 ac_help="$ac_help
293 --enable-statbox use wxStaticBox class"
294 ac_help="$ac_help
295 --enable-statline use wxStaticLine class"
296 ac_help="$ac_help
297 --enable-stattext use wxStaticText class"
298 ac_help="$ac_help
299 --enable-statusbar use wxStatusBar class"
300 ac_help="$ac_help
301 --enable-tabdialog use wxTabControl class"
302 ac_help="$ac_help
303 --enable-textctrl use wxTextCtrl class"
304 ac_help="$ac_help
305 --enable-togglebtn use wxToggleButton class"
306 ac_help="$ac_help
307 --enable-toolbar use wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarnative use native wxToolBar class"
310 ac_help="$ac_help
311 --enable-tbarsmpl use wxToolBarSimple class"
312 ac_help="$ac_help
313 --enable-treectrl use wxTreeCtrl class"
314 ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
316 ac_help="$ac_help
317 --enable-commondlg use all common dialogs"
318 ac_help="$ac_help
319 --enable-choicedlg use wxChoiceDialog"
320 ac_help="$ac_help
321 --enable-coldlg use wxColourDialog"
322 ac_help="$ac_help
323 --enable-filedlg use wxFileDialog"
324 ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
326 ac_help="$ac_help
327 --enable-fontdlg use wxFontDialog"
328 ac_help="$ac_help
329 --enable-dirdlg use wxDirDialog"
330 ac_help="$ac_help
331 --enable-msgdlg use wxMessageDialog"
332 ac_help="$ac_help
333 --enable-numberdlg use wxNumberEntryDialog"
334 ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
336 ac_help="$ac_help
337 --enable-textdlg use wxTextDialog"
338 ac_help="$ac_help
339 --enable-tipdlg use startup tips"
340 ac_help="$ac_help
341 --enable-progressdlg use wxProgressDialog"
342 ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
344 ac_help="$ac_help
345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
346 ac_help="$ac_help
347 --enable-miniframe use wxMiniFrame class"
348 ac_help="$ac_help
349 --enable-tooltips use wxToolTip class"
350 ac_help="$ac_help
351 --enable-splines use spline drawing code"
352 ac_help="$ac_help
353 --enable-validators use wxValidator and derived classes"
354 ac_help="$ac_help
355 --enable-busyinfo use wxBusyInfo"
356 ac_help="$ac_help
357 --enable-joystick use wxJoystick (Linux only)"
358 ac_help="$ac_help
359 --enable-metafiles use wxMetaFile (Windows only)"
360 ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
362 ac_help="$ac_help
363 --enable-palette use wxPalette class"
364 ac_help="$ac_help
365 --enable-image use wxImage class"
366 ac_help="$ac_help
367 --enable-gif use gif images (GIF file format)"
368 ac_help="$ac_help
369 --enable-pcx use pcx images (PCX file format)"
370 ac_help="$ac_help
371 --enable-pnm use pnm images (PNM file format)"
372 ac_help="$ac_help
373 --enable-xpm use xpm images (XPM file format)"
374 ac_help="$ac_help
375 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
376 ac_help="$ac_help
377 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
378 ac_help="$ac_help
379 --disable-gtktest Do not try to compile and run a test GTK program"
380 ac_help="$ac_help
381 --with-x use the X Window System"
382
383 # Initialize some variables set by options.
384 # The variables have the same names as the options, with
385 # dashes changed to underlines.
386 build=NONE
387 cache_file=./config.cache
388 exec_prefix=NONE
389 host=NONE
390 no_create=
391 nonopt=NONE
392 no_recursion=
393 prefix=NONE
394 program_prefix=NONE
395 program_suffix=NONE
396 program_transform_name=s,x,x,
397 silent=
398 site=
399 srcdir=
400 target=NONE
401 verbose=
402 x_includes=NONE
403 x_libraries=NONE
404 bindir='${exec_prefix}/bin'
405 sbindir='${exec_prefix}/sbin'
406 libexecdir='${exec_prefix}/libexec'
407 datadir='${prefix}/share'
408 sysconfdir='${prefix}/etc'
409 sharedstatedir='${prefix}/com'
410 localstatedir='${prefix}/var'
411 libdir='${exec_prefix}/lib'
412 includedir='${prefix}/include'
413 oldincludedir='/usr/include'
414 infodir='${prefix}/info'
415 mandir='${prefix}/man'
416
417 # Initialize some other variables.
418 subdirs=
419 MFLAGS= MAKEFLAGS=
420 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 ac_max_here_lines=12
423
424 ac_prev=
425 for ac_option
426 do
427
428 # If the previous option needs an argument, assign it.
429 if test -n "$ac_prev"; then
430 eval "$ac_prev=\$ac_option"
431 ac_prev=
432 continue
433 fi
434
435 case "$ac_option" in
436 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
437 *) ac_optarg= ;;
438 esac
439
440 # Accept the important Cygnus configure options, so we can diagnose typos.
441
442 case "$ac_option" in
443
444 -bindir | --bindir | --bindi | --bind | --bin | --bi)
445 ac_prev=bindir ;;
446 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
447 bindir="$ac_optarg" ;;
448
449 -build | --build | --buil | --bui | --bu)
450 ac_prev=build ;;
451 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
452 build="$ac_optarg" ;;
453
454 -cache-file | --cache-file | --cache-fil | --cache-fi \
455 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
456 ac_prev=cache_file ;;
457 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
458 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
459 cache_file="$ac_optarg" ;;
460
461 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
462 ac_prev=datadir ;;
463 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
464 | --da=*)
465 datadir="$ac_optarg" ;;
466
467 -disable-* | --disable-*)
468 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
469 # Reject names that are not valid shell variable names.
470 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
472 fi
473 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
474 eval "enable_${ac_feature}=no" ;;
475
476 -enable-* | --enable-*)
477 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
478 # Reject names that are not valid shell variable names.
479 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
481 fi
482 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
483 case "$ac_option" in
484 *=*) ;;
485 *) ac_optarg=yes ;;
486 esac
487 eval "enable_${ac_feature}='$ac_optarg'" ;;
488
489 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
490 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
491 | --exec | --exe | --ex)
492 ac_prev=exec_prefix ;;
493 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
494 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
495 | --exec=* | --exe=* | --ex=*)
496 exec_prefix="$ac_optarg" ;;
497
498 -gas | --gas | --ga | --g)
499 # Obsolete; use --with-gas.
500 with_gas=yes ;;
501
502 -help | --help | --hel | --he)
503 # Omit some internal or obsolete options to make the list less imposing.
504 # This message is too long to be a string in the A/UX 3.1 sh.
505 cat << EOF
506 Usage: configure [options] [host]
507 Options: [defaults in brackets after descriptions]
508 Configuration:
509 --cache-file=FILE cache test results in FILE
510 --help print this message
511 --no-create do not create output files
512 --quiet, --silent do not print \`checking...' messages
513 --version print the version of autoconf that created configure
514 Directory and file names:
515 --prefix=PREFIX install architecture-independent files in PREFIX
516 [$ac_default_prefix]
517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
518 [same as prefix]
519 --bindir=DIR user executables in DIR [EPREFIX/bin]
520 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
521 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
522 --datadir=DIR read-only architecture-independent data in DIR
523 [PREFIX/share]
524 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
525 --sharedstatedir=DIR modifiable architecture-independent data in DIR
526 [PREFIX/com]
527 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
528 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
529 --includedir=DIR C header files in DIR [PREFIX/include]
530 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
531 --infodir=DIR info documentation in DIR [PREFIX/info]
532 --mandir=DIR man documentation in DIR [PREFIX/man]
533 --srcdir=DIR find the sources in DIR [configure dir or ..]
534 --program-prefix=PREFIX prepend PREFIX to installed program names
535 --program-suffix=SUFFIX append SUFFIX to installed program names
536 --program-transform-name=PROGRAM
537 run sed PROGRAM on installed program names
538 EOF
539 cat << EOF
540 Host type:
541 --build=BUILD configure for building on BUILD [BUILD=HOST]
542 --host=HOST configure for HOST [guessed]
543 --target=TARGET configure for TARGET [TARGET=HOST]
544 Features and packages:
545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
549 --x-includes=DIR X include files are in DIR
550 --x-libraries=DIR X library files are in DIR
551 EOF
552 if test -n "$ac_help"; then
553 echo "--enable and --with options recognized:$ac_help"
554 fi
555 exit 0 ;;
556
557 -host | --host | --hos | --ho)
558 ac_prev=host ;;
559 -host=* | --host=* | --hos=* | --ho=*)
560 host="$ac_optarg" ;;
561
562 -includedir | --includedir | --includedi | --included | --include \
563 | --includ | --inclu | --incl | --inc)
564 ac_prev=includedir ;;
565 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
566 | --includ=* | --inclu=* | --incl=* | --inc=*)
567 includedir="$ac_optarg" ;;
568
569 -infodir | --infodir | --infodi | --infod | --info | --inf)
570 ac_prev=infodir ;;
571 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
572 infodir="$ac_optarg" ;;
573
574 -libdir | --libdir | --libdi | --libd)
575 ac_prev=libdir ;;
576 -libdir=* | --libdir=* | --libdi=* | --libd=*)
577 libdir="$ac_optarg" ;;
578
579 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
580 | --libexe | --libex | --libe)
581 ac_prev=libexecdir ;;
582 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
583 | --libexe=* | --libex=* | --libe=*)
584 libexecdir="$ac_optarg" ;;
585
586 -localstatedir | --localstatedir | --localstatedi | --localstated \
587 | --localstate | --localstat | --localsta | --localst \
588 | --locals | --local | --loca | --loc | --lo)
589 ac_prev=localstatedir ;;
590 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
591 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
592 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
593 localstatedir="$ac_optarg" ;;
594
595 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
596 ac_prev=mandir ;;
597 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
598 mandir="$ac_optarg" ;;
599
600 -nfp | --nfp | --nf)
601 # Obsolete; use --without-fp.
602 with_fp=no ;;
603
604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
605 | --no-cr | --no-c)
606 no_create=yes ;;
607
608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
610 no_recursion=yes ;;
611
612 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
613 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
614 | --oldin | --oldi | --old | --ol | --o)
615 ac_prev=oldincludedir ;;
616 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
617 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
618 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
619 oldincludedir="$ac_optarg" ;;
620
621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
622 ac_prev=prefix ;;
623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
624 prefix="$ac_optarg" ;;
625
626 -program-prefix | --program-prefix | --program-prefi | --program-pref \
627 | --program-pre | --program-pr | --program-p)
628 ac_prev=program_prefix ;;
629 -program-prefix=* | --program-prefix=* | --program-prefi=* \
630 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
631 program_prefix="$ac_optarg" ;;
632
633 -program-suffix | --program-suffix | --program-suffi | --program-suff \
634 | --program-suf | --program-su | --program-s)
635 ac_prev=program_suffix ;;
636 -program-suffix=* | --program-suffix=* | --program-suffi=* \
637 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
638 program_suffix="$ac_optarg" ;;
639
640 -program-transform-name | --program-transform-name \
641 | --program-transform-nam | --program-transform-na \
642 | --program-transform-n | --program-transform- \
643 | --program-transform | --program-transfor \
644 | --program-transfo | --program-transf \
645 | --program-trans | --program-tran \
646 | --progr-tra | --program-tr | --program-t)
647 ac_prev=program_transform_name ;;
648 -program-transform-name=* | --program-transform-name=* \
649 | --program-transform-nam=* | --program-transform-na=* \
650 | --program-transform-n=* | --program-transform-=* \
651 | --program-transform=* | --program-transfor=* \
652 | --program-transfo=* | --program-transf=* \
653 | --program-trans=* | --program-tran=* \
654 | --progr-tra=* | --program-tr=* | --program-t=*)
655 program_transform_name="$ac_optarg" ;;
656
657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
658 | -silent | --silent | --silen | --sile | --sil)
659 silent=yes ;;
660
661 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
662 ac_prev=sbindir ;;
663 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
664 | --sbi=* | --sb=*)
665 sbindir="$ac_optarg" ;;
666
667 -sharedstatedir | --sharedstatedir | --sharedstatedi \
668 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
669 | --sharedst | --shareds | --shared | --share | --shar \
670 | --sha | --sh)
671 ac_prev=sharedstatedir ;;
672 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
673 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
674 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
675 | --sha=* | --sh=*)
676 sharedstatedir="$ac_optarg" ;;
677
678 -site | --site | --sit)
679 ac_prev=site ;;
680 -site=* | --site=* | --sit=*)
681 site="$ac_optarg" ;;
682
683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
684 ac_prev=srcdir ;;
685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
686 srcdir="$ac_optarg" ;;
687
688 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
689 | --syscon | --sysco | --sysc | --sys | --sy)
690 ac_prev=sysconfdir ;;
691 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
692 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
693 sysconfdir="$ac_optarg" ;;
694
695 -target | --target | --targe | --targ | --tar | --ta | --t)
696 ac_prev=target ;;
697 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698 target="$ac_optarg" ;;
699
700 -v | -verbose | --verbose | --verbos | --verbo | --verb)
701 verbose=yes ;;
702
703 -version | --version | --versio | --versi | --vers)
704 echo "configure generated by autoconf version 2.13"
705 exit 0 ;;
706
707 -with-* | --with-*)
708 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
709 # Reject names that are not valid shell variable names.
710 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
711 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
712 fi
713 ac_package=`echo $ac_package| sed 's/-/_/g'`
714 case "$ac_option" in
715 *=*) ;;
716 *) ac_optarg=yes ;;
717 esac
718 eval "with_${ac_package}='$ac_optarg'" ;;
719
720 -without-* | --without-*)
721 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
722 # Reject names that are not valid shell variable names.
723 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
724 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
725 fi
726 ac_package=`echo $ac_package| sed 's/-/_/g'`
727 eval "with_${ac_package}=no" ;;
728
729 --x)
730 # Obsolete; use --with-x.
731 with_x=yes ;;
732
733 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
734 | --x-incl | --x-inc | --x-in | --x-i)
735 ac_prev=x_includes ;;
736 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
737 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
738 x_includes="$ac_optarg" ;;
739
740 -x-libraries | --x-libraries | --x-librarie | --x-librari \
741 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
742 ac_prev=x_libraries ;;
743 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
744 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
745 x_libraries="$ac_optarg" ;;
746
747 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
748 ;;
749
750 *)
751 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
752 echo "configure: warning: $ac_option: invalid host type" 1>&2
753 fi
754 if test "x$nonopt" != xNONE; then
755 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
756 fi
757 nonopt="$ac_option"
758 ;;
759
760 esac
761 done
762
763 if test -n "$ac_prev"; then
764 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
765 fi
766
767 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
768
769 # File descriptor usage:
770 # 0 standard input
771 # 1 file creation
772 # 2 errors and warnings
773 # 3 some systems may open it to /dev/tty
774 # 4 used on the Kubota Titan
775 # 6 checking for... messages and results
776 # 5 compiler messages saved in config.log
777 if test "$silent" = yes; then
778 exec 6>/dev/null
779 else
780 exec 6>&1
781 fi
782 exec 5>./config.log
783
784 echo "\
785 This file contains any messages produced by compilers while
786 running configure, to aid debugging if configure makes a mistake.
787 " 1>&5
788
789 # Strip out --no-create and --no-recursion so they do not pile up.
790 # Also quote any args containing shell metacharacters.
791 ac_configure_args=
792 for ac_arg
793 do
794 case "$ac_arg" in
795 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
796 | --no-cr | --no-c) ;;
797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
800 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
801 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
802 esac
803 done
804
805 # NLS nuisances.
806 # Only set these to C if already set. These must not be set unconditionally
807 # because not all systems understand e.g. LANG=C (notably SCO).
808 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
809 # Non-C LC_CTYPE values break the ctype check.
810 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
811 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
812 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
813 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
814
815 # confdefs.h avoids OS command line length limits that DEFS can exceed.
816 rm -rf conftest* confdefs.h
817 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
818 echo > confdefs.h
819
820 # A filename unique to this package, relative to the directory that
821 # configure is in, which we can look for to find out if srcdir is correct.
822 ac_unique_file=wx-config.in
823
824 # Find the source files, if location was not specified.
825 if test -z "$srcdir"; then
826 ac_srcdir_defaulted=yes
827 # Try the directory containing this script, then its parent.
828 ac_prog=$0
829 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
830 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
831 srcdir=$ac_confdir
832 if test ! -r $srcdir/$ac_unique_file; then
833 srcdir=..
834 fi
835 else
836 ac_srcdir_defaulted=no
837 fi
838 if test ! -r $srcdir/$ac_unique_file; then
839 if test "$ac_srcdir_defaulted" = yes; then
840 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
841 else
842 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
843 fi
844 fi
845 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
846
847 # Prefer explicitly selected file to automatically selected ones.
848 if test -z "$CONFIG_SITE"; then
849 if test "x$prefix" != xNONE; then
850 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
851 else
852 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
853 fi
854 fi
855 for ac_site_file in $CONFIG_SITE; do
856 if test -r "$ac_site_file"; then
857 echo "loading site script $ac_site_file"
858 . "$ac_site_file"
859 fi
860 done
861
862 if test -r "$cache_file"; then
863 echo "loading cache $cache_file"
864 . $cache_file
865 else
866 echo "creating cache $cache_file"
867 > $cache_file
868 fi
869
870 ac_ext=c
871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
872 ac_cpp='$CPP $CPPFLAGS'
873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875 cross_compiling=$ac_cv_prog_cc_cross
876
877 ac_exeext=
878 ac_objext=o
879 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
880 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
881 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
882 ac_n= ac_c='
883 ' ac_t=' '
884 else
885 ac_n=-n ac_c= ac_t=
886 fi
887 else
888 ac_n= ac_c='\c' ac_t=
889 fi
890
891
892
893 ac_aux_dir=
894 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
895 if 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 elif test -f $ac_dir/install.sh; then
900 ac_aux_dir=$ac_dir
901 ac_install_sh="$ac_aux_dir/install.sh -c"
902 break
903 fi
904 done
905 if test -z "$ac_aux_dir"; then
906 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
907 fi
908 ac_config_guess=$ac_aux_dir/config.guess
909 ac_config_sub=$ac_aux_dir/config.sub
910 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
911
912
913 # Do some error checking and defaulting for the host and target type.
914 # The inputs are:
915 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
916 #
917 # The rules are:
918 # 1. You are not allowed to specify --host, --target, and nonopt at the
919 # same time.
920 # 2. Host defaults to nonopt.
921 # 3. If nonopt is not specified, then host defaults to the current host,
922 # as determined by config.guess.
923 # 4. Target and build default to nonopt.
924 # 5. If nonopt is not specified, then target and build default to host.
925
926 # The aliases save the names the user supplied, while $host etc.
927 # will get canonicalized.
928 case $host---$target---$nonopt in
929 NONE---*---* | *---NONE---* | *---*---NONE) ;;
930 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
931 esac
932
933
934 # Make sure we can run config.sub.
935 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
936 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937 fi
938
939 echo $ac_n "checking host system type""... $ac_c" 1>&6
940 echo "configure:941: checking host system type" >&5
941
942 host_alias=$host
943 case "$host_alias" in
944 NONE)
945 case $nonopt in
946 NONE)
947 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
948 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
949 fi ;;
950 *) host_alias=$nonopt ;;
951 esac ;;
952 esac
953
954 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
955 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
958 echo "$ac_t""$host" 1>&6
959
960 echo $ac_n "checking target system type""... $ac_c" 1>&6
961 echo "configure:962: checking target system type" >&5
962
963 target_alias=$target
964 case "$target_alias" in
965 NONE)
966 case $nonopt in
967 NONE) target_alias=$host_alias ;;
968 *) target_alias=$nonopt ;;
969 esac ;;
970 esac
971
972 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
973 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976 echo "$ac_t""$target" 1>&6
977
978 echo $ac_n "checking build system type""... $ac_c" 1>&6
979 echo "configure:980: checking build system type" >&5
980
981 build_alias=$build
982 case "$build_alias" in
983 NONE)
984 case $nonopt in
985 NONE) build_alias=$host_alias ;;
986 *) build_alias=$nonopt ;;
987 esac ;;
988 esac
989
990 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
991 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994 echo "$ac_t""$build" 1>&6
995
996 test "$host_alias" != "$target_alias" &&
997 test "$program_prefix$program_suffix$program_transform_name" = \
998 NONENONEs,x,x, &&
999 program_prefix=${target_alias}-
1000
1001
1002
1003 WX_MAJOR_VERSION_NUMBER=2
1004 WX_MINOR_VERSION_NUMBER=3
1005 WX_RELEASE_NUMBER=2
1006
1007 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1008 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1009
1010 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1011
1012 WX_CURRENT=1
1013 WX_REVISION=0
1014 WX_AGE=0
1015
1016
1017
1018 USE_UNIX=1
1019 USE_WIN32=0
1020 USE_BEOS=0
1021 USE_MAC=0
1022
1023 USE_LINUX=
1024 USE_SGI=
1025 USE_HPUX=
1026 USE_SYSV=
1027 USE_SVR4=
1028 USE_AIX=
1029 USE_SUN=
1030 USE_SOLARIS=
1031 USE_SUNOS=
1032 USE_ALPHA=
1033 USE_IA64=
1034 USE_OSF=
1035 USE_BSD=
1036 USE_DARWIN=
1037 USE_FREEBSD=
1038 USE_OPENBSD=
1039 USE_NETBSD=
1040 USE_VMS=
1041 USE_ULTRIX=
1042 USE_DATA_GENERAL=
1043
1044 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1045
1046 ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
1047
1048 DEFAULT_wxUSE_GTK=0
1049 DEFAULT_wxUSE_MAC=0
1050 DEFAULT_wxUSE_MGL=0
1051 DEFAULT_wxUSE_MOTIF=0
1052 DEFAULT_wxUSE_MSW=0
1053 DEFAULT_wxUSE_PM=0
1054 DEFAULT_wxUSE_WINE=0
1055
1056 DEFAULT_DEFAULT_wxUSE_GTK=0
1057 DEFAULT_DEFAULT_wxUSE_MAC=0
1058 DEFAULT_DEFAULT_wxUSE_MGL=0
1059 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1060 DEFAULT_DEFAULT_wxUSE_MSW=0
1061 DEFAULT_DEFAULT_wxUSE_PM=0
1062 DEFAULT_DEFAULT_wxUSE_WINE=0
1063
1064 PROGRAM_EXT=
1065 SO_SUFFIX=so
1066
1067 case "${host}" in
1068 *-hp-hpux* )
1069 USE_HPUX=1
1070 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1071 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1072 SO_SUFFIX=sl
1073 cat >> confdefs.h <<\EOF
1074 #define __HPUX__ 1
1075 EOF
1076
1077 ;;
1078 *-*-linux* )
1079 USE_LINUX=1
1080 cat >> confdefs.h <<\EOF
1081 #define __LINUX__ 1
1082 EOF
1083
1084 TMP=`uname -m`
1085 if test "x$TMP" = "xalpha"; then
1086 USE_ALPHA=1
1087 cat >> confdefs.h <<\EOF
1088 #define __ALPHA__ 1
1089 EOF
1090
1091 fi
1092 if test "x$TMP" = "xia64"; then
1093 USE_IA64=1
1094 cat >> confdefs.h <<\EOF
1095 #define __IA64__ 1
1096 EOF
1097
1098 fi
1099 DEFAULT_DEFAULT_wxUSE_GTK=1
1100 ;;
1101 *-*-irix5* | *-*-irix6* )
1102 USE_SGI=1
1103 USE_SVR4=1
1104 cat >> confdefs.h <<\EOF
1105 #define __SGI__ 1
1106 EOF
1107
1108 cat >> confdefs.h <<\EOF
1109 #define __SVR4__ 1
1110 EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1113 ;;
1114 *-*-solaris2* )
1115 USE_SUN=1
1116 USE_SOLARIS=1
1117 USE_SVR4=1
1118 cat >> confdefs.h <<\EOF
1119 #define __SUN__ 1
1120 EOF
1121
1122 cat >> confdefs.h <<\EOF
1123 #define __SOLARIS__ 1
1124 EOF
1125
1126 cat >> confdefs.h <<\EOF
1127 #define __SVR4__ 1
1128 EOF
1129
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1132 ;;
1133 *-*-sunos4* )
1134 USE_SUN=1
1135 USE_SUNOS=1
1136 USE_BSD=1
1137 cat >> confdefs.h <<\EOF
1138 #define __SUN__ 1
1139 EOF
1140
1141 cat >> confdefs.h <<\EOF
1142 #define __SUNOS__ 1
1143 EOF
1144
1145 cat >> confdefs.h <<\EOF
1146 #define __BSD__ 1
1147 EOF
1148
1149 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1150 ;;
1151 *-*-freebsd*)
1152 USE_BSD=1
1153 USE_FREEBSD=1
1154 cat >> confdefs.h <<\EOF
1155 #define __FREEBSD__ 1
1156 EOF
1157
1158 cat >> confdefs.h <<\EOF
1159 #define __BSD__ 1
1160 EOF
1161
1162 DEFAULT_DEFAULT_wxUSE_GTK=1
1163 ;;
1164 *-*-openbsd*)
1165 USE_BSD=1
1166 USE_OPENBSD=1
1167 cat >> confdefs.h <<\EOF
1168 #define __FREEBSD__ 1
1169 EOF
1170
1171 cat >> confdefs.h <<\EOF
1172 #define __OPENBSD__ 1
1173 EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_GTK=1
1176 ;;
1177 *-*-netbsd*)
1178 USE_BSD=1
1179 USE_NETBSD=1
1180 cat >> confdefs.h <<\EOF
1181 #define __FREEBSD__ 1
1182 EOF
1183
1184 cat >> confdefs.h <<\EOF
1185 #define __NETBSD__ 1
1186 EOF
1187
1188 DEFAULT_DEFAULT_wxUSE_GTK=1
1189 ;;
1190 *-*-osf* )
1191 USE_ALPHA=1
1192 USE_OSF=1
1193 cat >> confdefs.h <<\EOF
1194 #define __ALPHA__ 1
1195 EOF
1196
1197 cat >> confdefs.h <<\EOF
1198 #define __OSF__ 1
1199 EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1202 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1203 ;;
1204 *-*-dgux5* )
1205 USE_ALPHA=1
1206 USE_SVR4=1
1207 cat >> confdefs.h <<\EOF
1208 #define __ALPHA__ 1
1209 EOF
1210
1211 cat >> confdefs.h <<\EOF
1212 #define __SVR4__ 1
1213 EOF
1214
1215 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1216 ;;
1217 *-*-sysv5* )
1218 USE_SYSV=1
1219 USE_SVR4=1
1220 cat >> confdefs.h <<\EOF
1221 #define __SYSV__ 1
1222 EOF
1223
1224 cat >> confdefs.h <<\EOF
1225 #define __SVR4__ 1
1226 EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-aix* )
1231 USE_AIX=1
1232 USE_SYSV=1
1233 USE_SVR4=1
1234 cat >> confdefs.h <<\EOF
1235 #define __AIX__ 1
1236 EOF
1237
1238 cat >> confdefs.h <<\EOF
1239 #define __SYSV__ 1
1240 EOF
1241
1242 cat >> confdefs.h <<\EOF
1243 #define __SVR4__ 1
1244 EOF
1245
1246 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1247 ;;
1248
1249 *-*-cygwin* | *-*-mingw32* )
1250 USE_UNIX=0
1251 USE_WIN32=1
1252 SO_SUFFIX=dll
1253 cat >> confdefs.h <<\EOF
1254 #define __WIN32__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __WIN95__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define __WINDOWS__ 1
1263 EOF
1264
1265 cat >> confdefs.h <<\EOF
1266 #define __GNUWIN32__ 1
1267 EOF
1268
1269 cat >> confdefs.h <<\EOF
1270 #define STRICT 1
1271 EOF
1272
1273 cat >> confdefs.h <<\EOF
1274 #define WINVER 0x0400
1275 EOF
1276
1277 PROGRAM_EXT=".exe"
1278 RESCOMP=windres
1279 DEFAULT_DEFAULT_wxUSE_MSW=1
1280 ;;
1281
1282 *-pc-os2_emx | *-pc-os2-emx )
1283 cat >> confdefs.h <<\EOF
1284 #define __EMX__ 1
1285 EOF
1286
1287 PROGRAM_EXT=".exe"
1288 DEFAULT_DEFAULT_wxUSE_PM=1
1289 ;;
1290
1291 powerpc-*-darwin* )
1292 USE_BSD=1
1293 USE_DARWIN=1
1294 SO_SUFFIX=dylib
1295 cat >> confdefs.h <<\EOF
1296 #define __BSD__ 1
1297 EOF
1298
1299 cat >> confdefs.h <<\EOF
1300 #define __DARWIN__ 1
1301 EOF
1302
1303 cat >> confdefs.h <<\EOF
1304 #define __POWERPC__ 1
1305 EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MAC=1
1308 ;;
1309
1310 *-*-beos* )
1311 USE_BEOS=1
1312 cat >> confdefs.h <<\EOF
1313 #define __BEOS__ 1
1314 EOF
1315
1316 ;;
1317
1318 *)
1319 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1320 esac
1321
1322 if test "$USE_UNIX" = 1 ; then
1323 wxUSE_UNIX=yes
1324 cat >> confdefs.h <<\EOF
1325 #define __UNIX__ 1
1326 EOF
1327
1328 fi
1329
1330 if test "$USE_LINUX" = 1; then
1331 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1332 echo "configure:1333: checking for glibc 2.1 or later" >&5
1333 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336 cat > conftest.$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339 #include <features.h>
1340 int main() {
1341
1342 #if !__GLIBC_PREREQ(2, 1)
1343 #error not glibc2.1
1344 #endif
1345
1346 ; return 0; }
1347 EOF
1348 if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1349 rm -rf conftest*
1350
1351 wx_lib_glibc21=yes
1352
1353 else
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1356 rm -rf conftest*
1357
1358 wx_lib_glibc21=no
1359
1360
1361 fi
1362 rm -f conftest*
1363
1364 fi
1365
1366 echo "$ac_t""$wx_lib_glibc21" 1>&6
1367 if test "$wx_lib_glibc21" = "yes"; then
1368 cat >> confdefs.h <<\EOF
1369 #define wxHAVE_GLIBC2 1
1370 EOF
1371
1372 fi
1373 fi
1374
1375
1376
1377
1378 wx_arg_cache_file="configarg.cache"
1379 echo "loading argument cache $wx_arg_cache_file"
1380 rm -f ${wx_arg_cache_file}.tmp
1381 touch ${wx_arg_cache_file}.tmp
1382 touch ${wx_arg_cache_file}
1383
1384
1385 DEBUG_CONFIGURE=0
1386 if test $DEBUG_CONFIGURE = 1; then
1387 DEFAULT_wxUSE_UNIVERSAL=no
1388
1389 DEFAULT_wxUSE_THREADS=yes
1390
1391 DEFAULT_wxUSE_SHARED=yes
1392 DEFAULT_wxUSE_SONAME=no
1393 DEFAULT_wxUSE_OPTIMISE=no
1394 DEFAULT_wxUSE_PROFILE=no
1395 DEFAULT_wxUSE_NO_DEPS=no
1396 DEFAULT_wxUSE_NO_RTTI=yes
1397 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1398 DEFAULT_wxUSE_PERMISSIVE=no
1399 DEFAULT_wxUSE_DEBUG_FLAG=yes
1400 DEFAULT_wxUSE_DEBUG_INFO=yes
1401 DEFAULT_wxUSE_DEBUG_GDB=yes
1402 DEFAULT_wxUSE_MEM_TRACING=no
1403 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1404 DEFAULT_wxUSE_DMALLOC=no
1405 DEFAULT_wxUSE_PRECOMP=yes
1406 DEFAULT_wxUSE_APPLE_IEEE=no
1407
1408 DEFAULT_wxUSE_LOG=yes
1409 DEFAULT_wxUSE_LOGWINDOW=no
1410 DEFAULT_wxUSE_LOGGUI=no
1411
1412 DEFAULT_wxUSE_GUI=yes
1413 DEFAULT_wxUSE_CONTROLS=no
1414
1415 DEFAULT_wxUSE_REGEX=no
1416 DEFAULT_wxUSE_ZLIB=no
1417 DEFAULT_wxUSE_LIBPNG=no
1418 DEFAULT_wxUSE_LIBJPEG=no
1419 DEFAULT_wxUSE_LIBTIFF=no
1420 DEFAULT_wxUSE_ODBC=no
1421 DEFAULT_wxUSE_FREETYPE=no
1422 DEFAULT_wxUSE_OPENGL=no
1423
1424 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1425 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1426 DEFAULT_wxUSE_STD_IOSTREAM=no
1427 DEFAULT_wxUSE_CMDLINE_PARSER=no
1428 DEFAULT_wxUSE_DATETIME=no
1429 DEFAULT_wxUSE_TIMEDATE=no
1430 DEFAULT_wxUSE_TIMER=no
1431 DEFAULT_wxUSE_STOPWATCH=no
1432 DEFAULT_wxUSE_FILE=no
1433 DEFAULT_wxUSE_FFILE=no
1434 DEFAULT_wxUSE_TEXTBUFFER=no
1435 DEFAULT_wxUSE_TEXTFILE=no
1436 DEFAULT_wxUSE_WAVE=no
1437 DEFAULT_wxUSE_INTL=no
1438 DEFAULT_wxUSE_CONFIG=no
1439 DEFAULT_wxUSE_FONTMAP=no
1440 DEFAULT_wxUSE_STREAMS=no
1441 DEFAULT_wxUSE_SOCKETS=no
1442 DEFAULT_wxUSE_DIALUP_MANAGER=no
1443 DEFAULT_wxUSE_SERIAL=no
1444 DEFAULT_wxUSE_JOYSTICK=no
1445 DEFAULT_wxUSE_DYNLIB_CLASS=no
1446 DEFAULT_wxUSE_LONGLONG=no
1447 DEFAULT_wxUSE_GEOMETRY=no
1448
1449 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1450 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1451 DEFAULT_wxUSE_POSTSCRIPT=no
1452
1453 DEFAULT_wxUSE_X_RESOURCES=no
1454 DEFAULT_wxUSE_CLIPBOARD=no
1455 DEFAULT_wxUSE_TOOLTIPS=no
1456 DEFAULT_wxUSE_DRAG_AND_DROP=no
1457 DEFAULT_wxUSE_DRAGIMAGE=no
1458 DEFAULT_wxUSE_SPLINES=no
1459
1460 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1461 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1462 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1463
1464 DEFAULT_wxUSE_PROLOGIO=no
1465 DEFAULT_wxUSE_RESOURCES=no
1466 DEFAULT_wxUSE_CONSTRAINTS=no
1467 DEFAULT_wxUSE_IPC=no
1468 DEFAULT_wxUSE_HELP=no
1469 DEFAULT_wxUSE_MS_HTML_HELP=no
1470 DEFAULT_wxUSE_WXHTML_HELP=no
1471 DEFAULT_wxUSE_TREELAYOUT=no
1472 DEFAULT_wxUSE_METAFILE=no
1473 DEFAULT_wxUSE_MIMETYPE=no
1474 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1475
1476 DEFAULT_wxUSE_COMMONDLGS=no
1477 DEFAULT_wxUSE_CHOICEDLG=no
1478 DEFAULT_wxUSE_COLOURDLG=no
1479 DEFAULT_wxUSE_DIRDLG=no
1480 DEFAULT_wxUSE_FILEDLG=no
1481 DEFAULT_wxUSE_FINDREPLDLG=no
1482 DEFAULT_wxUSE_FONTDLG=no
1483 DEFAULT_wxUSE_MSGDLG=no
1484 DEFAULT_wxUSE_NUMBERDLG=no
1485 DEFAULT_wxUSE_TEXTDLG=no
1486 DEFAULT_wxUSE_SPLASH=no
1487 DEFAULT_wxUSE_STARTUP_TIPS=no
1488 DEFAULT_wxUSE_PROGRESSDLG=no
1489 DEFAULT_wxUSE_WIZARDDLG=no
1490
1491 DEFAULT_wxUSE_MENUS=no
1492 DEFAULT_wxUSE_MINIFRAME=no
1493 DEFAULT_wxUSE_HTML=no
1494 DEFAULT_wxUSE_FILESYSTEM=no
1495 DEFAULT_wxUSE_FS_INET=no
1496 DEFAULT_wxUSE_FS_ZIP=no
1497 DEFAULT_wxUSE_BUSYINFO=no
1498 DEFAULT_wxUSE_ZIPSTREAM=no
1499 DEFAULT_wxUSE_VALIDATORS=no
1500
1501 DEFAULT_wxUSE_ACCEL=no
1502 DEFAULT_wxUSE_BUTTON=no
1503 DEFAULT_wxUSE_BMPBUTTON=no
1504 DEFAULT_wxUSE_CALCTRL=no
1505 DEFAULT_wxUSE_CARET=no
1506 DEFAULT_wxUSE_CHECKBOX=no
1507 DEFAULT_wxUSE_CHECKLST=no
1508 DEFAULT_wxUSE_CHOICE=no
1509 DEFAULT_wxUSE_COMBOBOX=no
1510 DEFAULT_wxUSE_GAUGE=no
1511 DEFAULT_wxUSE_GRID=no
1512 DEFAULT_wxUSE_NEW_GRID=no
1513 DEFAULT_wxUSE_IMAGLIST=no
1514 DEFAULT_wxUSE_LISTBOX=no
1515 DEFAULT_wxUSE_LISTCTRL=no
1516 DEFAULT_wxUSE_NOTEBOOK=no
1517 DEFAULT_wxUSE_PROPSHEET=no
1518 DEFAULT_wxUSE_RADIOBOX=no
1519 DEFAULT_wxUSE_RADIOBTN=no
1520 DEFAULT_wxUSE_SASH=no
1521 DEFAULT_wxUSE_SCROLLBAR=no
1522 DEFAULT_wxUSE_SLIDER=no
1523 DEFAULT_wxUSE_SPINBTN=no
1524 DEFAULT_wxUSE_SPINCTRL=no
1525 DEFAULT_wxUSE_SPLITTER=no
1526 DEFAULT_wxUSE_STATBMP=no
1527 DEFAULT_wxUSE_STATBOX=no
1528 DEFAULT_wxUSE_STATLINE=no
1529 DEFAULT_wxUSE_STATTEXT=no
1530 DEFAULT_wxUSE_STATUSBAR=yes
1531 DEFAULT_wxUSE_TABDIALOG=no
1532 DEFAULT_wxUSE_TEXTCTRL=no
1533 DEFAULT_wxUSE_TOGGLEBTN=no
1534 DEFAULT_wxUSE_TOOLBAR=no
1535 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1536 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1537 DEFAULT_wxUSE_TREECTRL=no
1538 DEFAULT_wxUSE_POPUPWIN=no
1539
1540 DEFAULT_wxUSE_UNICODE=no
1541 DEFAULT_wxUSE_WCSRTOMBS=no
1542
1543 DEFAULT_wxUSE_PALETTE=no
1544 DEFAULT_wxUSE_IMAGE=no
1545 DEFAULT_wxUSE_GIF=no
1546 DEFAULT_wxUSE_PCX=no
1547 DEFAULT_wxUSE_PNM=no
1548 DEFAULT_wxUSE_XPM=no
1549 else
1550 DEFAULT_wxUSE_UNIVERSAL=no
1551
1552 DEFAULT_wxUSE_THREADS=yes
1553
1554 DEFAULT_wxUSE_SHARED=yes
1555 DEFAULT_wxUSE_SONAME=no
1556 DEFAULT_wxUSE_OPTIMISE=yes
1557 DEFAULT_wxUSE_PROFILE=no
1558 DEFAULT_wxUSE_NO_DEPS=no
1559 DEFAULT_wxUSE_NO_RTTI=yes
1560 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1561 DEFAULT_wxUSE_PERMISSIVE=no
1562 DEFAULT_wxUSE_DEBUG_FLAG=no
1563 DEFAULT_wxUSE_DEBUG_INFO=no
1564 DEFAULT_wxUSE_DEBUG_GDB=no
1565 DEFAULT_wxUSE_MEM_TRACING=no
1566 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1567 DEFAULT_wxUSE_DMALLOC=no
1568 DEFAULT_wxUSE_PRECOMP=yes
1569 DEFAULT_wxUSE_APPLE_IEEE=yes
1570
1571 DEFAULT_wxUSE_LOG=yes
1572 DEFAULT_wxUSE_LOGWINDOW=yes
1573 DEFAULT_wxUSE_LOGGUI=yes
1574
1575 DEFAULT_wxUSE_GUI=yes
1576
1577 DEFAULT_wxUSE_REGEX=yes
1578 DEFAULT_wxUSE_ZLIB=yes
1579 DEFAULT_wxUSE_LIBPNG=yes
1580 DEFAULT_wxUSE_LIBJPEG=yes
1581 DEFAULT_wxUSE_LIBTIFF=yes
1582 DEFAULT_wxUSE_ODBC=no
1583 DEFAULT_wxUSE_FREETYPE=no
1584 DEFAULT_wxUSE_OPENGL=no
1585
1586 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1587 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1588 DEFAULT_wxUSE_STD_IOSTREAM=no
1589 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1590 DEFAULT_wxUSE_DATETIME=yes
1591 DEFAULT_wxUSE_TIMEDATE=no
1592 DEFAULT_wxUSE_TIMER=yes
1593 DEFAULT_wxUSE_STOPWATCH=yes
1594 DEFAULT_wxUSE_FILE=yes
1595 DEFAULT_wxUSE_FFILE=yes
1596 DEFAULT_wxUSE_TEXTBUFFER=yes
1597 DEFAULT_wxUSE_TEXTFILE=yes
1598 DEFAULT_wxUSE_WAVE=no
1599 DEFAULT_wxUSE_INTL=yes
1600 DEFAULT_wxUSE_CONFIG=yes
1601 DEFAULT_wxUSE_FONTMAP=yes
1602 DEFAULT_wxUSE_STREAMS=yes
1603 DEFAULT_wxUSE_SOCKETS=yes
1604 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1605 DEFAULT_wxUSE_SERIAL=yes
1606 DEFAULT_wxUSE_JOYSTICK=yes
1607 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1608 DEFAULT_wxUSE_LONGLONG=yes
1609 DEFAULT_wxUSE_GEOMETRY=yes
1610
1611 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1612 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1613 DEFAULT_wxUSE_POSTSCRIPT=yes
1614
1615 DEFAULT_wxUSE_X_RESOURCES=no
1616 DEFAULT_wxUSE_CLIPBOARD=yes
1617 DEFAULT_wxUSE_TOOLTIPS=yes
1618 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1619 DEFAULT_wxUSE_DRAGIMAGE=yes
1620 DEFAULT_wxUSE_SPLINES=yes
1621
1622 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1623 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1624 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1625
1626 DEFAULT_wxUSE_PROLOGIO=yes
1627 DEFAULT_wxUSE_RESOURCES=yes
1628 DEFAULT_wxUSE_CONSTRAINTS=yes
1629 DEFAULT_wxUSE_IPC=yes
1630 DEFAULT_wxUSE_HELP=yes
1631 DEFAULT_wxUSE_MS_HTML_HELP=yes
1632 DEFAULT_wxUSE_WXHTML_HELP=yes
1633 DEFAULT_wxUSE_TREELAYOUT=yes
1634 DEFAULT_wxUSE_METAFILE=yes
1635 DEFAULT_wxUSE_MIMETYPE=yes
1636 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1637
1638 DEFAULT_wxUSE_COMMONDLGS=yes
1639 DEFAULT_wxUSE_CHOICEDLG=yes
1640 DEFAULT_wxUSE_COLOURDLG=yes
1641 DEFAULT_wxUSE_DIRDLG=yes
1642 DEFAULT_wxUSE_FILEDLG=yes
1643 DEFAULT_wxUSE_FINDREPLDLG=yes
1644 DEFAULT_wxUSE_FONTDLG=yes
1645 DEFAULT_wxUSE_MSGDLG=yes
1646 DEFAULT_wxUSE_NUMBERDLG=yes
1647 DEFAULT_wxUSE_TEXTDLG=yes
1648 DEFAULT_wxUSE_SPLASH=yes
1649 DEFAULT_wxUSE_STARTUP_TIPS=yes
1650 DEFAULT_wxUSE_PROGRESSDLG=yes
1651 DEFAULT_wxUSE_WIZARDDLG=yes
1652
1653 DEFAULT_wxUSE_MENUS=yes
1654 DEFAULT_wxUSE_MINIFRAME=yes
1655 DEFAULT_wxUSE_HTML=yes
1656 DEFAULT_wxUSE_FILESYSTEM=yes
1657 DEFAULT_wxUSE_FS_INET=yes
1658 DEFAULT_wxUSE_FS_ZIP=yes
1659 DEFAULT_wxUSE_BUSYINFO=yes
1660 DEFAULT_wxUSE_ZIPSTREAM=yes
1661 DEFAULT_wxUSE_VALIDATORS=yes
1662
1663 DEFAULT_wxUSE_ACCEL=yes
1664 DEFAULT_wxUSE_BUTTON=yes
1665 DEFAULT_wxUSE_BMPBUTTON=yes
1666 DEFAULT_wxUSE_CALCTRL=yes
1667 DEFAULT_wxUSE_CARET=yes
1668 DEFAULT_wxUSE_CHECKBOX=yes
1669 DEFAULT_wxUSE_CHECKLST=yes
1670 DEFAULT_wxUSE_CHOICE=yes
1671 DEFAULT_wxUSE_COMBOBOX=yes
1672 DEFAULT_wxUSE_GAUGE=yes
1673 DEFAULT_wxUSE_GRID=yes
1674 DEFAULT_wxUSE_NEW_GRID=yes
1675 DEFAULT_wxUSE_IMAGLIST=yes
1676 DEFAULT_wxUSE_LISTBOX=yes
1677 DEFAULT_wxUSE_LISTCTRL=yes
1678 DEFAULT_wxUSE_NOTEBOOK=yes
1679 DEFAULT_wxUSE_PROPSHEET=yes
1680 DEFAULT_wxUSE_RADIOBOX=yes
1681 DEFAULT_wxUSE_RADIOBTN=yes
1682 DEFAULT_wxUSE_SASH=yes
1683 DEFAULT_wxUSE_SCROLLBAR=yes
1684 DEFAULT_wxUSE_SLIDER=yes
1685 DEFAULT_wxUSE_SPINBTN=yes
1686 DEFAULT_wxUSE_SPINCTRL=yes
1687 DEFAULT_wxUSE_SPLITTER=yes
1688 DEFAULT_wxUSE_STATBMP=yes
1689 DEFAULT_wxUSE_STATBOX=yes
1690 DEFAULT_wxUSE_STATLINE=yes
1691 DEFAULT_wxUSE_STATTEXT=yes
1692 DEFAULT_wxUSE_STATUSBAR=yes
1693 DEFAULT_wxUSE_TABDIALOG=no
1694 DEFAULT_wxUSE_TEXTCTRL=yes
1695 DEFAULT_wxUSE_TOGGLEBTN=yes
1696 DEFAULT_wxUSE_TOOLBAR=yes
1697 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1698 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1699 DEFAULT_wxUSE_TREECTRL=yes
1700 DEFAULT_wxUSE_POPUPWIN=yes
1701
1702 DEFAULT_wxUSE_UNICODE=no
1703 DEFAULT_wxUSE_WCSRTOMBS=no
1704
1705 DEFAULT_wxUSE_PALETTE=yes
1706 DEFAULT_wxUSE_IMAGE=yes
1707 DEFAULT_wxUSE_GIF=yes
1708 DEFAULT_wxUSE_PCX=yes
1709 DEFAULT_wxUSE_PNM=yes
1710 DEFAULT_wxUSE_XPM=yes
1711 fi
1712
1713
1714
1715 for toolkit in `echo $ALL_TOOLKITS`; do
1716 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1717 if test "x$LINE" != x ; then
1718 has_toolkit_in_cache=1
1719 eval "DEFAULT_$LINE"
1720 eval "CACHE_$toolkit=1"
1721 fi
1722 done
1723
1724
1725
1726 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1727 echo "configure:1728: checking for --enable-gui" >&5
1728 no_cache=0
1729 # Check whether --enable-gui or --disable-gui was given.
1730 if test "${enable_gui+set}" = set; then
1731 enableval="$enable_gui"
1732
1733 if test "$enableval" = yes; then
1734 ac_cv_use_gui='wxUSE_GUI=yes'
1735 else
1736 ac_cv_use_gui='wxUSE_GUI=no'
1737 fi
1738
1739 else
1740
1741 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
1748 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1749
1750 fi
1751
1752
1753 eval "$ac_cv_use_gui"
1754 if test "$no_cache" != 1; then
1755 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1756 fi
1757
1758 if test "$wxUSE_GUI" = yes; then
1759 echo "$ac_t""yes" 1>&6
1760 else
1761 echo "$ac_t""no" 1>&6
1762 fi
1763
1764
1765 if test "$wxUSE_GUI" = "yes"; then
1766
1767
1768 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1769 echo "configure:1770: checking for --enable-universal" >&5
1770 no_cache=0
1771 # Check whether --enable-universal or --disable-universal was given.
1772 if test "${enable_universal+set}" = set; then
1773 enableval="$enable_universal"
1774
1775 if test "$enableval" = yes; then
1776 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1777 else
1778 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1779 fi
1780
1781 else
1782
1783 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
1790 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1791
1792 fi
1793
1794
1795 eval "$ac_cv_use_universal"
1796 if test "$no_cache" != 1; then
1797 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1798 fi
1799
1800 if test "$wxUSE_UNIVERSAL" = yes; then
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806 # Check whether --with-gtk or --without-gtk was given.
1807 if test "${with_gtk+set}" = set; then
1808 withval="$with_gtk"
1809 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1810 fi
1811
1812 # Check whether --with-motif or --without-motif was given.
1813 if test "${with_motif+set}" = set; then
1814 withval="$with_motif"
1815 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1816 fi
1817
1818 # Check whether --with-mac or --without-mac was given.
1819 if test "${with_mac+set}" = set; then
1820 withval="$with_mac"
1821 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1822 fi
1823
1824 # Check whether --with-wine or --without-wine was given.
1825 if test "${with_wine+set}" = set; then
1826 withval="$with_wine"
1827 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1828 fi
1829
1830 # Check whether --with-msw or --without-msw was given.
1831 if test "${with_msw+set}" = set; then
1832 withval="$with_msw"
1833 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1834 fi
1835
1836 # Check whether --with-pm or --without-pm was given.
1837 if test "${with_pm+set}" = set; then
1838 withval="$with_pm"
1839 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1840 fi
1841
1842 # Check whether --with-mgl or --without-mgl was given.
1843 if test "${with_mgl+set}" = set; then
1844 withval="$with_mgl"
1845 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1846 fi
1847
1848
1849 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1850 if test "${enable_gtk2+set}" = set; then
1851 enableval="$enable_gtk2"
1852 wxUSE_GTK2=1
1853 else
1854 wxUSE_GTK2=0
1855 fi
1856
1857
1858
1859 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1860 echo "configure:1861: checking for --with-libpng" >&5
1861 no_cache=0
1862 # Check whether --with-libpng or --without-libpng was given.
1863 if test "${with_libpng+set}" = set; then
1864 withval="$with_libpng"
1865
1866 if test "$withval" = yes; then
1867 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1868 elif test "$withval" = no; then
1869 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1870 elif test "$withval" = sys; then
1871 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1872 elif test "$withval" = builtin; then
1873 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1874 else
1875 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1876 fi
1877
1878 else
1879
1880 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1881 if test "x$LINE" != x ; then
1882 eval "DEFAULT_$LINE"
1883 else
1884 no_cache=1
1885 fi
1886
1887 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1888
1889 fi
1890
1891
1892 eval "$ac_cv_use_libpng"
1893 if test "$no_cache" != 1; then
1894 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1895 fi
1896
1897 if test "$wxUSE_LIBPNG" = yes; then
1898 echo "$ac_t""yes" 1>&6
1899 elif test "$wxUSE_LIBPNG" = no; then
1900 echo "$ac_t""no" 1>&6
1901 elif test "$wxUSE_LIBPNG" = sys; then
1902 echo "$ac_t""system version" 1>&6
1903 elif test "$wxUSE_LIBPNG" = builtin; then
1904 echo "$ac_t""builtin version" 1>&6
1905 else
1906 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1907 fi
1908
1909
1910 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1911 echo "configure:1912: checking for --with-libjpeg" >&5
1912 no_cache=0
1913 # Check whether --with-libjpeg or --without-libjpeg was given.
1914 if test "${with_libjpeg+set}" = set; then
1915 withval="$with_libjpeg"
1916
1917 if test "$withval" = yes; then
1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1919 elif test "$withval" = no; then
1920 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1921 elif test "$withval" = sys; then
1922 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1923 elif test "$withval" = builtin; then
1924 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1925 else
1926 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1927 fi
1928
1929 else
1930
1931 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1932 if test "x$LINE" != x ; then
1933 eval "DEFAULT_$LINE"
1934 else
1935 no_cache=1
1936 fi
1937
1938 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1939
1940 fi
1941
1942
1943 eval "$ac_cv_use_libjpeg"
1944 if test "$no_cache" != 1; then
1945 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1946 fi
1947
1948 if test "$wxUSE_LIBJPEG" = yes; then
1949 echo "$ac_t""yes" 1>&6
1950 elif test "$wxUSE_LIBJPEG" = no; then
1951 echo "$ac_t""no" 1>&6
1952 elif test "$wxUSE_LIBJPEG" = sys; then
1953 echo "$ac_t""system version" 1>&6
1954 elif test "$wxUSE_LIBJPEG" = builtin; then
1955 echo "$ac_t""builtin version" 1>&6
1956 else
1957 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1958 fi
1959
1960
1961 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1962 echo "configure:1963: checking for --with-libtiff" >&5
1963 no_cache=0
1964 # Check whether --with-libtiff or --without-libtiff was given.
1965 if test "${with_libtiff+set}" = set; then
1966 withval="$with_libtiff"
1967
1968 if test "$withval" = yes; then
1969 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1970 elif test "$withval" = no; then
1971 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1972 elif test "$withval" = sys; then
1973 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1974 elif test "$withval" = builtin; then
1975 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
1976 else
1977 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1978 fi
1979
1980 else
1981
1982 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1983 if test "x$LINE" != x ; then
1984 eval "DEFAULT_$LINE"
1985 else
1986 no_cache=1
1987 fi
1988
1989 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1990
1991 fi
1992
1993
1994 eval "$ac_cv_use_libtiff"
1995 if test "$no_cache" != 1; then
1996 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1997 fi
1998
1999 if test "$wxUSE_LIBTIFF" = yes; then
2000 echo "$ac_t""yes" 1>&6
2001 elif test "$wxUSE_LIBTIFF" = no; then
2002 echo "$ac_t""no" 1>&6
2003 elif test "$wxUSE_LIBTIFF" = sys; then
2004 echo "$ac_t""system version" 1>&6
2005 elif test "$wxUSE_LIBTIFF" = builtin; then
2006 echo "$ac_t""builtin version" 1>&6
2007 else
2008 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2009 fi
2010
2011
2012 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2013 echo "configure:2014: checking for --with-freetype" >&5
2014 no_cache=0
2015 # Check whether --with-freetype or --without-freetype was given.
2016 if test "${with_freetype+set}" = set; then
2017 withval="$with_freetype"
2018
2019 if test "$withval" = yes; then
2020 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2021 elif test "$withval" = no; then
2022 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2023 elif test "$withval" = sys; then
2024 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2025 elif test "$withval" = builtin; then
2026 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2027 else
2028 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2029 fi
2030
2031 else
2032
2033 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2034 if test "x$LINE" != x ; then
2035 eval "DEFAULT_$LINE"
2036 else
2037 no_cache=1
2038 fi
2039
2040 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2041
2042 fi
2043
2044
2045 eval "$ac_cv_use_freetype"
2046 if test "$no_cache" != 1; then
2047 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2048 fi
2049
2050 if test "$wxUSE_FREETYPE" = yes; then
2051 echo "$ac_t""yes" 1>&6
2052 elif test "$wxUSE_FREETYPE" = no; then
2053 echo "$ac_t""no" 1>&6
2054 elif test "$wxUSE_FREETYPE" = sys; then
2055 echo "$ac_t""system version" 1>&6
2056 elif test "$wxUSE_FREETYPE" = builtin; then
2057 echo "$ac_t""builtin version" 1>&6
2058 else
2059 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2060 fi
2061
2062
2063 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2064 echo "configure:2065: checking for --with-opengl" >&5
2065 no_cache=0
2066 # Check whether --with-opengl or --without-opengl was given.
2067 if test "${with_opengl+set}" = set; then
2068 withval="$with_opengl"
2069
2070 if test "$withval" = yes; then
2071 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2072 else
2073 ac_cv_use_opengl='wxUSE_OPENGL=no'
2074 fi
2075
2076 else
2077
2078 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2079 if test "x$LINE" != x ; then
2080 eval "DEFAULT_$LINE"
2081 else
2082 no_cache=1
2083 fi
2084
2085 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2086
2087 fi
2088
2089
2090 eval "$ac_cv_use_opengl"
2091 if test "$no_cache" != 1; then
2092 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2093 fi
2094
2095 if test "$wxUSE_OPENGL" = yes; then
2096 echo "$ac_t""yes" 1>&6
2097 else
2098 echo "$ac_t""no" 1>&6
2099 fi
2100
2101
2102 fi
2103
2104
2105 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2106 echo "configure:2107: checking for --with-dmalloc" >&5
2107 no_cache=0
2108 # Check whether --with-dmalloc or --without-dmalloc was given.
2109 if test "${with_dmalloc+set}" = set; then
2110 withval="$with_dmalloc"
2111
2112 if test "$withval" = yes; then
2113 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2114 else
2115 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2116 fi
2117
2118 else
2119
2120 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2121 if test "x$LINE" != x ; then
2122 eval "DEFAULT_$LINE"
2123 else
2124 no_cache=1
2125 fi
2126
2127 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2128
2129 fi
2130
2131
2132 eval "$ac_cv_use_dmalloc"
2133 if test "$no_cache" != 1; then
2134 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2135 fi
2136
2137 if test "$wxUSE_DMALLOC" = yes; then
2138 echo "$ac_t""yes" 1>&6
2139 else
2140 echo "$ac_t""no" 1>&6
2141 fi
2142
2143
2144 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2145 echo "configure:2146: checking for --with-regex" >&5
2146 no_cache=0
2147 # Check whether --with-regex or --without-regex was given.
2148 if test "${with_regex+set}" = set; then
2149 withval="$with_regex"
2150
2151 if test "$withval" = yes; then
2152 ac_cv_use_regex='wxUSE_REGEX=yes'
2153 elif test "$withval" = no; then
2154 ac_cv_use_regex='wxUSE_REGEX=no'
2155 elif test "$withval" = sys; then
2156 ac_cv_use_regex='wxUSE_REGEX=sys'
2157 elif test "$withval" = builtin; then
2158 ac_cv_use_regex='wxUSE_REGEX=builtin'
2159 else
2160 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2161 fi
2162
2163 else
2164
2165 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2166 if test "x$LINE" != x ; then
2167 eval "DEFAULT_$LINE"
2168 else
2169 no_cache=1
2170 fi
2171
2172 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2173
2174 fi
2175
2176
2177 eval "$ac_cv_use_regex"
2178 if test "$no_cache" != 1; then
2179 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2180 fi
2181
2182 if test "$wxUSE_REGEX" = yes; then
2183 echo "$ac_t""yes" 1>&6
2184 elif test "$wxUSE_REGEX" = no; then
2185 echo "$ac_t""no" 1>&6
2186 elif test "$wxUSE_REGEX" = sys; then
2187 echo "$ac_t""system version" 1>&6
2188 elif test "$wxUSE_REGEX" = builtin; then
2189 echo "$ac_t""builtin version" 1>&6
2190 else
2191 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2192 fi
2193
2194
2195 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2196 echo "configure:2197: checking for --with-zlib" >&5
2197 no_cache=0
2198 # Check whether --with-zlib or --without-zlib was given.
2199 if test "${with_zlib+set}" = set; then
2200 withval="$with_zlib"
2201
2202 if test "$withval" = yes; then
2203 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2204 elif test "$withval" = no; then
2205 ac_cv_use_zlib='wxUSE_ZLIB=no'
2206 elif test "$withval" = sys; then
2207 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2208 elif test "$withval" = builtin; then
2209 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2210 else
2211 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2212 fi
2213
2214 else
2215
2216 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2217 if test "x$LINE" != x ; then
2218 eval "DEFAULT_$LINE"
2219 else
2220 no_cache=1
2221 fi
2222
2223 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2224
2225 fi
2226
2227
2228 eval "$ac_cv_use_zlib"
2229 if test "$no_cache" != 1; then
2230 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2231 fi
2232
2233 if test "$wxUSE_ZLIB" = yes; then
2234 echo "$ac_t""yes" 1>&6
2235 elif test "$wxUSE_ZLIB" = no; then
2236 echo "$ac_t""no" 1>&6
2237 elif test "$wxUSE_ZLIB" = sys; then
2238 echo "$ac_t""system version" 1>&6
2239 elif test "$wxUSE_ZLIB" = builtin; then
2240 echo "$ac_t""builtin version" 1>&6
2241 else
2242 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2243 fi
2244
2245
2246 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2247 echo "configure:2248: checking for --with-odbc" >&5
2248 no_cache=0
2249 # Check whether --with-odbc or --without-odbc was given.
2250 if test "${with_odbc+set}" = set; then
2251 withval="$with_odbc"
2252
2253 if test "$withval" = yes; then
2254 ac_cv_use_odbc='wxUSE_ODBC=yes'
2255 else
2256 ac_cv_use_odbc='wxUSE_ODBC=no'
2257 fi
2258
2259 else
2260
2261 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2269
2270 fi
2271
2272
2273 eval "$ac_cv_use_odbc"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_ODBC" = yes; then
2279 echo "$ac_t""yes" 1>&6
2280 else
2281 echo "$ac_t""no" 1>&6
2282 fi
2283
2284
2285
2286
2287 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2288 echo "configure:2289: checking for --enable-shared" >&5
2289 no_cache=0
2290 # Check whether --enable-shared or --disable-shared was given.
2291 if test "${enable_shared+set}" = set; then
2292 enableval="$enable_shared"
2293
2294 if test "$enableval" = yes; then
2295 ac_cv_use_shared='wxUSE_SHARED=yes'
2296 else
2297 ac_cv_use_shared='wxUSE_SHARED=no'
2298 fi
2299
2300 else
2301
2302 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2310
2311 fi
2312
2313
2314 eval "$ac_cv_use_shared"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_SHARED" = yes; then
2320 echo "$ac_t""yes" 1>&6
2321 else
2322 echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2327 echo "configure:2328: checking for --enable-soname" >&5
2328 no_cache=0
2329 # Check whether --enable-soname or --disable-soname was given.
2330 if test "${enable_soname+set}" = set; then
2331 enableval="$enable_soname"
2332
2333 if test "$enableval" = yes; then
2334 ac_cv_use_soname='wxUSE_SONAME=yes'
2335 else
2336 ac_cv_use_soname='wxUSE_SONAME=no'
2337 fi
2338
2339 else
2340
2341 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2342 if test "x$LINE" != x ; then
2343 eval "DEFAULT_$LINE"
2344 else
2345 no_cache=1
2346 fi
2347
2348 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2349
2350 fi
2351
2352
2353 eval "$ac_cv_use_soname"
2354 if test "$no_cache" != 1; then
2355 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2356 fi
2357
2358 if test "$wxUSE_SONAME" = yes; then
2359 echo "$ac_t""yes" 1>&6
2360 else
2361 echo "$ac_t""no" 1>&6
2362 fi
2363
2364
2365 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2366 echo "configure:2367: checking for --enable-optimise" >&5
2367 no_cache=0
2368 # Check whether --enable-optimise or --disable-optimise was given.
2369 if test "${enable_optimise+set}" = set; then
2370 enableval="$enable_optimise"
2371
2372 if test "$enableval" = yes; then
2373 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2374 else
2375 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2376 fi
2377
2378 else
2379
2380 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2381 if test "x$LINE" != x ; then
2382 eval "DEFAULT_$LINE"
2383 else
2384 no_cache=1
2385 fi
2386
2387 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2388
2389 fi
2390
2391
2392 eval "$ac_cv_use_optimise"
2393 if test "$no_cache" != 1; then
2394 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2395 fi
2396
2397 if test "$wxUSE_OPTIMISE" = yes; then
2398 echo "$ac_t""yes" 1>&6
2399 else
2400 echo "$ac_t""no" 1>&6
2401 fi
2402
2403
2404 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2405 echo "configure:2406: checking for --enable-debug" >&5
2406 no_cache=0
2407 # Check whether --enable-debug or --disable-debug was given.
2408 if test "${enable_debug+set}" = set; then
2409 enableval="$enable_debug"
2410
2411 if test "$enableval" = yes; then
2412 ac_cv_use_debug='wxUSE_DEBUG=yes'
2413 else
2414 ac_cv_use_debug='wxUSE_DEBUG=no'
2415 fi
2416
2417 else
2418
2419 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2420 if test "x$LINE" != x ; then
2421 eval "DEFAULT_$LINE"
2422 else
2423 no_cache=1
2424 fi
2425
2426 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2427
2428 fi
2429
2430
2431 eval "$ac_cv_use_debug"
2432 if test "$no_cache" != 1; then
2433 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2434 fi
2435
2436 if test "$wxUSE_DEBUG" = yes; then
2437 echo "$ac_t""yes" 1>&6
2438 else
2439 echo "$ac_t""no" 1>&6
2440 fi
2441
2442
2443
2444 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2445 echo "configure:2446: checking for --enable-precomp" >&5
2446 no_cache=0
2447 # Check whether --enable-precomp or --disable-precomp was given.
2448 if test "${enable_precomp+set}" = set; then
2449 enableval="$enable_precomp"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2453 else
2454 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2455 fi
2456
2457 else
2458
2459 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2467
2468 fi
2469
2470
2471 eval "$ac_cv_use_precomp"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_PRECOMP" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
2483 if test "$wxUSE_DEBUG" = "yes"; then
2484 DEFAULT_wxUSE_DEBUG_FLAG=yes
2485 DEFAULT_wxUSE_DEBUG_INFO=yes
2486 elif test "$wxUSE_DEBUG" = "no"; then
2487 DEFAULT_wxUSE_DEBUG_FLAG=no
2488 DEFAULT_wxUSE_DEBUG_INFO=no
2489 fi
2490
2491
2492 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2493 echo "configure:2494: checking for --enable-debug_flag" >&5
2494 no_cache=0
2495 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2496 if test "${enable_debug_flag+set}" = set; then
2497 enableval="$enable_debug_flag"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2501 else
2502 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2503 fi
2504
2505 else
2506
2507 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2515
2516 fi
2517
2518
2519 eval "$ac_cv_use_debug_flag"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_DEBUG_FLAG" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
2531 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2532 echo "configure:2533: checking for --enable-debug_info" >&5
2533 no_cache=0
2534 # Check whether --enable-debug_info or --disable-debug_info was given.
2535 if test "${enable_debug_info+set}" = set; then
2536 enableval="$enable_debug_info"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2540 else
2541 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2542 fi
2543
2544 else
2545
2546 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2554
2555 fi
2556
2557
2558 eval "$ac_cv_use_debug_info"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_DEBUG_INFO" = yes; then
2564 echo "$ac_t""yes" 1>&6
2565 else
2566 echo "$ac_t""no" 1>&6
2567 fi
2568
2569
2570 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2571 echo "configure:2572: checking for --enable-debug_gdb" >&5
2572 no_cache=0
2573 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2574 if test "${enable_debug_gdb+set}" = set; then
2575 enableval="$enable_debug_gdb"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2579 else
2580 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2581 fi
2582
2583 else
2584
2585 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2593
2594 fi
2595
2596
2597 eval "$ac_cv_use_debug_gdb"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_DEBUG_GDB" = yes; then
2603 echo "$ac_t""yes" 1>&6
2604 else
2605 echo "$ac_t""no" 1>&6
2606 fi
2607
2608
2609 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2610 echo "configure:2611: checking for --enable-debug_cntxt" >&5
2611 no_cache=0
2612 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2613 if test "${enable_debug_cntxt+set}" = set; then
2614 enableval="$enable_debug_cntxt"
2615
2616 if test "$enableval" = yes; then
2617 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2618 else
2619 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2620 fi
2621
2622 else
2623
2624 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2632
2633 fi
2634
2635
2636 eval "$ac_cv_use_debug_cntxt"
2637 if test "$no_cache" != 1; then
2638 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2639 fi
2640
2641 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2642 echo "$ac_t""yes" 1>&6
2643 else
2644 echo "$ac_t""no" 1>&6
2645 fi
2646
2647
2648 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2649 echo "configure:2650: checking for --enable-mem_tracing" >&5
2650 no_cache=0
2651 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2652 if test "${enable_mem_tracing+set}" = set; then
2653 enableval="$enable_mem_tracing"
2654
2655 if test "$enableval" = yes; then
2656 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2657 else
2658 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2659 fi
2660
2661 else
2662
2663 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2664 if test "x$LINE" != x ; then
2665 eval "DEFAULT_$LINE"
2666 else
2667 no_cache=1
2668 fi
2669
2670 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2671
2672 fi
2673
2674
2675 eval "$ac_cv_use_mem_tracing"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_MEM_TRACING" = yes; then
2681 echo "$ac_t""yes" 1>&6
2682 else
2683 echo "$ac_t""no" 1>&6
2684 fi
2685
2686
2687 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2688 echo "configure:2689: checking for --enable-profile" >&5
2689 no_cache=0
2690 # Check whether --enable-profile or --disable-profile was given.
2691 if test "${enable_profile+set}" = set; then
2692 enableval="$enable_profile"
2693
2694 if test "$enableval" = yes; then
2695 ac_cv_use_profile='wxUSE_PROFILE=yes'
2696 else
2697 ac_cv_use_profile='wxUSE_PROFILE=no'
2698 fi
2699
2700 else
2701
2702 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2710
2711 fi
2712
2713
2714 eval "$ac_cv_use_profile"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_PROFILE" = yes; then
2720 echo "$ac_t""yes" 1>&6
2721 else
2722 echo "$ac_t""no" 1>&6
2723 fi
2724
2725
2726 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2727 echo "configure:2728: checking for --enable-no_rtti" >&5
2728 no_cache=0
2729 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2730 if test "${enable_no_rtti+set}" = set; then
2731 enableval="$enable_no_rtti"
2732
2733 if test "$enableval" = yes; then
2734 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2735 else
2736 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2737 fi
2738
2739 else
2740
2741 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2742 if test "x$LINE" != x ; then
2743 eval "DEFAULT_$LINE"
2744 else
2745 no_cache=1
2746 fi
2747
2748 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2749
2750 fi
2751
2752
2753 eval "$ac_cv_use_no_rtti"
2754 if test "$no_cache" != 1; then
2755 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2756 fi
2757
2758 if test "$wxUSE_NO_RTTI" = yes; then
2759 echo "$ac_t""yes" 1>&6
2760 else
2761 echo "$ac_t""no" 1>&6
2762 fi
2763
2764
2765 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2766 echo "configure:2767: checking for --enable-no_exceptions" >&5
2767 no_cache=0
2768 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2769 if test "${enable_no_exceptions+set}" = set; then
2770 enableval="$enable_no_exceptions"
2771
2772 if test "$enableval" = yes; then
2773 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2774 else
2775 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2776 fi
2777
2778 else
2779
2780 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2781 if test "x$LINE" != x ; then
2782 eval "DEFAULT_$LINE"
2783 else
2784 no_cache=1
2785 fi
2786
2787 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2788
2789 fi
2790
2791
2792 eval "$ac_cv_use_no_exceptions"
2793 if test "$no_cache" != 1; then
2794 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2795 fi
2796
2797 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2798 echo "$ac_t""yes" 1>&6
2799 else
2800 echo "$ac_t""no" 1>&6
2801 fi
2802
2803
2804 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2805 echo "configure:2806: checking for --enable-permissive" >&5
2806 no_cache=0
2807 # Check whether --enable-permissive or --disable-permissive was given.
2808 if test "${enable_permissive+set}" = set; then
2809 enableval="$enable_permissive"
2810
2811 if test "$enableval" = yes; then
2812 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2813 else
2814 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2815 fi
2816
2817 else
2818
2819 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2827
2828 fi
2829
2830
2831 eval "$ac_cv_use_permissive"
2832 if test "$no_cache" != 1; then
2833 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2834 fi
2835
2836 if test "$wxUSE_PERMISSIVE" = yes; then
2837 echo "$ac_t""yes" 1>&6
2838 else
2839 echo "$ac_t""no" 1>&6
2840 fi
2841
2842
2843 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2844 echo "configure:2845: checking for --enable-no_deps" >&5
2845 no_cache=0
2846 # Check whether --enable-no_deps or --disable-no_deps was given.
2847 if test "${enable_no_deps+set}" = set; then
2848 enableval="$enable_no_deps"
2849
2850 if test "$enableval" = yes; then
2851 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2852 else
2853 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2854 fi
2855
2856 else
2857
2858 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2859 if test "x$LINE" != x ; then
2860 eval "DEFAULT_$LINE"
2861 else
2862 no_cache=1
2863 fi
2864
2865 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2866
2867 fi
2868
2869
2870 eval "$ac_cv_use_no_deps"
2871 if test "$no_cache" != 1; then
2872 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2873 fi
2874
2875 if test "$wxUSE_NO_DEPS" = yes; then
2876 echo "$ac_t""yes" 1>&6
2877 else
2878 echo "$ac_t""no" 1>&6
2879 fi
2880
2881
2882
2883 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2884 echo "configure:2885: checking for --enable-compat20" >&5
2885 no_cache=0
2886 # Check whether --enable-compat20 or --disable-compat20 was given.
2887 if test "${enable_compat20+set}" = set; then
2888 enableval="$enable_compat20"
2889
2890 if test "$enableval" = yes; then
2891 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2892 else
2893 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2894 fi
2895
2896 else
2897
2898 LINE=`grep "WXWIN_COMPATIBILITY_2" ${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_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2906
2907 fi
2908
2909
2910 eval "$ac_cv_use_compat20"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$WXWIN_COMPATIBILITY_2" = 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-compat22""... $ac_c" 1>&6
2923 echo "configure:2924: checking for --enable-compat22" >&5
2924 no_cache=0
2925 # Check whether --enable-compat22 or --disable-compat22 was given.
2926 if test "${enable_compat22+set}" = set; then
2927 enableval="$enable_compat22"
2928
2929 if test "$enableval" = yes; then
2930 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2931 else
2932 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2933 fi
2934
2935 else
2936
2937 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${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_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2945
2946 fi
2947
2948
2949 eval "$ac_cv_use_compat22"
2950 if test "$no_cache" != 1; then
2951 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2952 fi
2953
2954 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2955 echo "$ac_t""yes" 1>&6
2956 else
2957 echo "$ac_t""no" 1>&6
2958 fi
2959
2960
2961
2962
2963 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2964 echo "configure:2965: checking for --enable-intl" >&5
2965 no_cache=0
2966 # Check whether --enable-intl or --disable-intl was given.
2967 if test "${enable_intl+set}" = set; then
2968 enableval="$enable_intl"
2969
2970 if test "$enableval" = yes; then
2971 ac_cv_use_intl='wxUSE_INTL=yes'
2972 else
2973 ac_cv_use_intl='wxUSE_INTL=no'
2974 fi
2975
2976 else
2977
2978 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2986
2987 fi
2988
2989
2990 eval "$ac_cv_use_intl"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_INTL" = yes; then
2996 echo "$ac_t""yes" 1>&6
2997 else
2998 echo "$ac_t""no" 1>&6
2999 fi
3000
3001
3002 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3003 echo "configure:3004: checking for --enable-config" >&5
3004 no_cache=0
3005 # Check whether --enable-config or --disable-config was given.
3006 if test "${enable_config+set}" = set; then
3007 enableval="$enable_config"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_config='wxUSE_CONFIG=yes'
3011 else
3012 ac_cv_use_config='wxUSE_CONFIG=no'
3013 fi
3014
3015 else
3016
3017 LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3025
3026 fi
3027
3028
3029 eval "$ac_cv_use_config"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_CONFIG" = 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-sockets""... $ac_c" 1>&6
3043 echo "configure:3044: checking for --enable-sockets" >&5
3044 no_cache=0
3045 # Check whether --enable-sockets or --disable-sockets was given.
3046 if test "${enable_sockets+set}" = set; then
3047 enableval="$enable_sockets"
3048
3049 if test "$enableval" = yes; then
3050 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3051 else
3052 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3053 fi
3054
3055 else
3056
3057 LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3065
3066 fi
3067
3068
3069 eval "$ac_cv_use_sockets"
3070 if test "$no_cache" != 1; then
3071 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3072 fi
3073
3074 if test "$wxUSE_SOCKETS" = yes; then
3075 echo "$ac_t""yes" 1>&6
3076 else
3077 echo "$ac_t""no" 1>&6
3078 fi
3079
3080
3081
3082 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3083 echo "configure:3084: checking for --enable-ipc" >&5
3084 no_cache=0
3085 # Check whether --enable-ipc or --disable-ipc was given.
3086 if test "${enable_ipc+set}" = set; then
3087 enableval="$enable_ipc"
3088
3089 if test "$enableval" = yes; then
3090 ac_cv_use_ipc='wxUSE_IPC=yes'
3091 else
3092 ac_cv_use_ipc='wxUSE_IPC=no'
3093 fi
3094
3095 else
3096
3097 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
3104 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3105
3106 fi
3107
3108
3109 eval "$ac_cv_use_ipc"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_IPC" = yes; then
3115 echo "$ac_t""yes" 1>&6
3116 else
3117 echo "$ac_t""no" 1>&6
3118 fi
3119
3120
3121
3122 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3123 echo "configure:3124: checking for --enable-cmdline" >&5
3124 no_cache=0
3125 # Check whether --enable-cmdline or --disable-cmdline was given.
3126 if test "${enable_cmdline+set}" = set; then
3127 enableval="$enable_cmdline"
3128
3129 if test "$enableval" = yes; then
3130 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3131 else
3132 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3133 fi
3134
3135 else
3136
3137 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3145
3146 fi
3147
3148
3149 eval "$ac_cv_use_cmdline"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3155 echo "$ac_t""yes" 1>&6
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159
3160
3161 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3162 echo "configure:3163: checking for --enable-datetime" >&5
3163 no_cache=0
3164 # Check whether --enable-datetime or --disable-datetime was given.
3165 if test "${enable_datetime+set}" = set; then
3166 enableval="$enable_datetime"
3167
3168 if test "$enableval" = yes; then
3169 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3170 else
3171 ac_cv_use_datetime='wxUSE_DATETIME=no'
3172 fi
3173
3174 else
3175
3176 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3184
3185 fi
3186
3187
3188 eval "$ac_cv_use_datetime"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_DATETIME" = yes; then
3194 echo "$ac_t""yes" 1>&6
3195 else
3196 echo "$ac_t""no" 1>&6
3197 fi
3198
3199
3200 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3201 echo "configure:3202: checking for --enable-timedate" >&5
3202 no_cache=0
3203 # Check whether --enable-timedate or --disable-timedate was given.
3204 if test "${enable_timedate+set}" = set; then
3205 enableval="$enable_timedate"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3209 else
3210 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3211 fi
3212
3213 else
3214
3215 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3223
3224 fi
3225
3226
3227 eval "$ac_cv_use_timedate"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_TIMEDATE" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
3239 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3240 echo "configure:3241: checking for --enable-stopwatch" >&5
3241 no_cache=0
3242 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3243 if test "${enable_stopwatch+set}" = set; then
3244 enableval="$enable_stopwatch"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3248 else
3249 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3250 fi
3251
3252 else
3253
3254 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3262
3263 fi
3264
3265
3266 eval "$ac_cv_use_stopwatch"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_STOPWATCH" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
3278 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3279 echo "configure:3280: checking for --enable-dialupman" >&5
3280 no_cache=0
3281 # Check whether --enable-dialupman or --disable-dialupman was given.
3282 if test "${enable_dialupman+set}" = set; then
3283 enableval="$enable_dialupman"
3284
3285 if test "$enableval" = yes; then
3286 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3287 else
3288 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3289 fi
3290
3291 else
3292
3293 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3301
3302 fi
3303
3304
3305 eval "$ac_cv_use_dialupman"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3311 echo "$ac_t""yes" 1>&6
3312 else
3313 echo "$ac_t""no" 1>&6
3314 fi
3315
3316
3317 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3318 echo "configure:3319: checking for --enable-apple_ieee" >&5
3319 no_cache=0
3320 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3321 if test "${enable_apple_ieee+set}" = set; then
3322 enableval="$enable_apple_ieee"
3323
3324 if test "$enableval" = yes; then
3325 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3326 else
3327 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3328 fi
3329
3330 else
3331
3332 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3340
3341 fi
3342
3343
3344 eval "$ac_cv_use_apple_ieee"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_APPLE_IEEE" = yes; then
3350 echo "$ac_t""yes" 1>&6
3351 else
3352 echo "$ac_t""no" 1>&6
3353 fi
3354
3355
3356 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3357 echo "configure:3358: checking for --enable-timer" >&5
3358 no_cache=0
3359 # Check whether --enable-timer or --disable-timer was given.
3360 if test "${enable_timer+set}" = set; then
3361 enableval="$enable_timer"
3362
3363 if test "$enableval" = yes; then
3364 ac_cv_use_timer='wxUSE_TIMER=yes'
3365 else
3366 ac_cv_use_timer='wxUSE_TIMER=no'
3367 fi
3368
3369 else
3370
3371 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3379
3380 fi
3381
3382
3383 eval "$ac_cv_use_timer"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_TIMER" = yes; then
3389 echo "$ac_t""yes" 1>&6
3390 else
3391 echo "$ac_t""no" 1>&6
3392 fi
3393
3394
3395 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3396 echo "configure:3397: checking for --enable-wave" >&5
3397 no_cache=0
3398 # Check whether --enable-wave or --disable-wave was given.
3399 if test "${enable_wave+set}" = set; then
3400 enableval="$enable_wave"
3401
3402 if test "$enableval" = yes; then
3403 ac_cv_use_wave='wxUSE_WAVE=yes'
3404 else
3405 ac_cv_use_wave='wxUSE_WAVE=no'
3406 fi
3407
3408 else
3409
3410 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3418
3419 fi
3420
3421
3422 eval "$ac_cv_use_wave"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_WAVE" = yes; then
3428 echo "$ac_t""yes" 1>&6
3429 else
3430 echo "$ac_t""no" 1>&6
3431 fi
3432
3433
3434 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3435 echo "configure:3436: checking for --enable-fraction" >&5
3436 no_cache=0
3437 # Check whether --enable-fraction or --disable-fraction was given.
3438 if test "${enable_fraction+set}" = set; then
3439 enableval="$enable_fraction"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3443 else
3444 ac_cv_use_fraction='wxUSE_FRACTION=no'
3445 fi
3446
3447 else
3448
3449 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3457
3458 fi
3459
3460
3461 eval "$ac_cv_use_fraction"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_FRACTION" = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 else
3469 echo "$ac_t""no" 1>&6
3470 fi
3471
3472
3473 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3474 echo "configure:3475: checking for --enable-dynlib" >&5
3475 no_cache=0
3476 # Check whether --enable-dynlib or --disable-dynlib was given.
3477 if test "${enable_dynlib+set}" = set; then
3478 enableval="$enable_dynlib"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3482 else
3483 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3484 fi
3485
3486 else
3487
3488 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3496
3497 fi
3498
3499
3500 eval "$ac_cv_use_dynlib"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3506 echo "$ac_t""yes" 1>&6
3507 else
3508 echo "$ac_t""no" 1>&6
3509 fi
3510
3511
3512 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3513 echo "configure:3514: checking for --enable-longlong" >&5
3514 no_cache=0
3515 # Check whether --enable-longlong or --disable-longlong was given.
3516 if test "${enable_longlong+set}" = set; then
3517 enableval="$enable_longlong"
3518
3519 if test "$enableval" = yes; then
3520 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3521 else
3522 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3523 fi
3524
3525 else
3526
3527 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3535
3536 fi
3537
3538
3539 eval "$ac_cv_use_longlong"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_LONGLONG" = yes; then
3545 echo "$ac_t""yes" 1>&6
3546 else
3547 echo "$ac_t""no" 1>&6
3548 fi
3549
3550
3551 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3552 echo "configure:3553: checking for --enable-geometry" >&5
3553 no_cache=0
3554 # Check whether --enable-geometry or --disable-geometry was given.
3555 if test "${enable_geometry+set}" = set; then
3556 enableval="$enable_geometry"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3560 else
3561 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3562 fi
3563
3564 else
3565
3566 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3574
3575 fi
3576
3577
3578 eval "$ac_cv_use_geometry"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_GEOMETRY" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3591 echo "configure:3592: checking for --enable-log" >&5
3592 no_cache=0
3593 # Check whether --enable-log or --disable-log was given.
3594 if test "${enable_log+set}" = set; then
3595 enableval="$enable_log"
3596
3597 if test "$enableval" = yes; then
3598 ac_cv_use_log='wxUSE_LOG=yes'
3599 else
3600 ac_cv_use_log='wxUSE_LOG=no'
3601 fi
3602
3603 else
3604
3605 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3613
3614 fi
3615
3616
3617 eval "$ac_cv_use_log"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_LOG" = yes; then
3623 echo "$ac_t""yes" 1>&6
3624 else
3625 echo "$ac_t""no" 1>&6
3626 fi
3627
3628
3629 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3630 echo "configure:3631: checking for --enable-streams" >&5
3631 no_cache=0
3632 # Check whether --enable-streams or --disable-streams was given.
3633 if test "${enable_streams+set}" = set; then
3634 enableval="$enable_streams"
3635
3636 if test "$enableval" = yes; then
3637 ac_cv_use_streams='wxUSE_STREAMS=yes'
3638 else
3639 ac_cv_use_streams='wxUSE_STREAMS=no'
3640 fi
3641
3642 else
3643
3644 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3652
3653 fi
3654
3655
3656 eval "$ac_cv_use_streams"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_STREAMS" = yes; then
3662 echo "$ac_t""yes" 1>&6
3663 else
3664 echo "$ac_t""no" 1>&6
3665 fi
3666
3667
3668 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3669 echo "configure:3670: checking for --enable-file" >&5
3670 no_cache=0
3671 # Check whether --enable-file or --disable-file was given.
3672 if test "${enable_file+set}" = set; then
3673 enableval="$enable_file"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_file='wxUSE_FILE=yes'
3677 else
3678 ac_cv_use_file='wxUSE_FILE=no'
3679 fi
3680
3681 else
3682
3683 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3691
3692 fi
3693
3694
3695 eval "$ac_cv_use_file"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_FILE" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3708 echo "configure:3709: checking for --enable-ffile" >&5
3709 no_cache=0
3710 # Check whether --enable-ffile or --disable-ffile was given.
3711 if test "${enable_ffile+set}" = set; then
3712 enableval="$enable_ffile"
3713
3714 if test "$enableval" = yes; then
3715 ac_cv_use_ffile='wxUSE_FFILE=yes'
3716 else
3717 ac_cv_use_ffile='wxUSE_FFILE=no'
3718 fi
3719
3720 else
3721
3722 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3730
3731 fi
3732
3733
3734 eval "$ac_cv_use_ffile"
3735 if test "$no_cache" != 1; then
3736 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3737 fi
3738
3739 if test "$wxUSE_FFILE" = yes; then
3740 echo "$ac_t""yes" 1>&6
3741 else
3742 echo "$ac_t""no" 1>&6
3743 fi
3744
3745
3746 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3747 echo "configure:3748: checking for --enable-textbuf" >&5
3748 no_cache=0
3749 # Check whether --enable-textbuf or --disable-textbuf was given.
3750 if test "${enable_textbuf+set}" = set; then
3751 enableval="$enable_textbuf"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3755 else
3756 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3757 fi
3758
3759 else
3760
3761 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3769
3770 fi
3771
3772
3773 eval "$ac_cv_use_textbuf"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$wxUSE_TEXTBUFFER" = yes; then
3779 echo "$ac_t""yes" 1>&6
3780 else
3781 echo "$ac_t""no" 1>&6
3782 fi
3783
3784
3785 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3786 echo "configure:3787: checking for --enable-textfile" >&5
3787 no_cache=0
3788 # Check whether --enable-textfile or --disable-textfile was given.
3789 if test "${enable_textfile+set}" = set; then
3790 enableval="$enable_textfile"
3791
3792 if test "$enableval" = yes; then
3793 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3794 else
3795 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3796 fi
3797
3798 else
3799
3800 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3808
3809 fi
3810
3811
3812 eval "$ac_cv_use_textfile"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_TEXTFILE" = yes; then
3818 echo "$ac_t""yes" 1>&6
3819 else
3820 echo "$ac_t""no" 1>&6
3821 fi
3822
3823
3824 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3825 echo "configure:3826: checking for --enable-fontmap" >&5
3826 no_cache=0
3827 # Check whether --enable-fontmap or --disable-fontmap was given.
3828 if test "${enable_fontmap+set}" = set; then
3829 enableval="$enable_fontmap"
3830
3831 if test "$enableval" = yes; then
3832 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3833 else
3834 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3835 fi
3836
3837 else
3838
3839 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3840 if test "x$LINE" != x ; then
3841 eval "DEFAULT_$LINE"
3842 else
3843 no_cache=1
3844 fi
3845
3846 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3847
3848 fi
3849
3850
3851 eval "$ac_cv_use_fontmap"
3852 if test "$no_cache" != 1; then
3853 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3854 fi
3855
3856 if test "$wxUSE_FONTMAP" = yes; then
3857 echo "$ac_t""yes" 1>&6
3858 else
3859 echo "$ac_t""no" 1>&6
3860 fi
3861
3862
3863 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3864 echo "configure:3865: checking for --enable-unicode" >&5
3865 no_cache=0
3866 # Check whether --enable-unicode or --disable-unicode was given.
3867 if test "${enable_unicode+set}" = set; then
3868 enableval="$enable_unicode"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3872 else
3873 ac_cv_use_unicode='wxUSE_UNICODE=no'
3874 fi
3875
3876 else
3877
3878 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3886
3887 fi
3888
3889
3890 eval "$ac_cv_use_unicode"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_UNICODE" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
3902 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3903 echo "configure:3904: checking for --enable-wxprintfv" >&5
3904 no_cache=0
3905 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3906 if test "${enable_wxprintfv+set}" = set; then
3907 enableval="$enable_wxprintfv"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3911 else
3912 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3913 fi
3914
3915 else
3916
3917 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3925
3926 fi
3927
3928
3929 eval "$ac_cv_use_wxprintfv"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3942 echo "configure:3943: checking for --enable-std_iostreams" >&5
3943 no_cache=0
3944 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3945 if test "${enable_std_iostreams+set}" = set; then
3946 enableval="$enable_std_iostreams"
3947
3948 if test "$enableval" = yes; then
3949 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3950 else
3951 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3952 fi
3953
3954 else
3955
3956 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3964
3965 fi
3966
3967
3968 eval "$ac_cv_use_std_iostreams"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_STD_IOSTREAM" = yes; then
3974 echo "$ac_t""yes" 1>&6
3975 else
3976 echo "$ac_t""no" 1>&6
3977 fi
3978
3979
3980 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3981 echo "configure:3982: checking for --enable-filesystem" >&5
3982 no_cache=0
3983 # Check whether --enable-filesystem or --disable-filesystem was given.
3984 if test "${enable_filesystem+set}" = set; then
3985 enableval="$enable_filesystem"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3989 else
3990 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3991 fi
3992
3993 else
3994
3995 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4003
4004 fi
4005
4006
4007 eval "$ac_cv_use_filesystem"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_FILESYSTEM" = yes; then
4013 echo "$ac_t""yes" 1>&6
4014 else
4015 echo "$ac_t""no" 1>&6
4016 fi
4017
4018
4019 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4020 echo "configure:4021: checking for --enable-fs_inet" >&5
4021 no_cache=0
4022 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4023 if test "${enable_fs_inet+set}" = set; then
4024 enableval="$enable_fs_inet"
4025
4026 if test "$enableval" = yes; then
4027 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4028 else
4029 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4030 fi
4031
4032 else
4033
4034 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4042
4043 fi
4044
4045
4046 eval "$ac_cv_use_fs_inet"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_FS_INET" = yes; then
4052 echo "$ac_t""yes" 1>&6
4053 else
4054 echo "$ac_t""no" 1>&6
4055 fi
4056
4057
4058 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4059 echo "configure:4060: checking for --enable-fs_zip" >&5
4060 no_cache=0
4061 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4062 if test "${enable_fs_zip+set}" = set; then
4063 enableval="$enable_fs_zip"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4067 else
4068 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4069 fi
4070
4071 else
4072
4073 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4081
4082 fi
4083
4084
4085 eval "$ac_cv_use_fs_zip"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_FS_ZIP" = yes; then
4091 echo "$ac_t""yes" 1>&6
4092 else
4093 echo "$ac_t""no" 1>&6
4094 fi
4095
4096
4097 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4098 echo "configure:4099: checking for --enable-zipstream" >&5
4099 no_cache=0
4100 # Check whether --enable-zipstream or --disable-zipstream was given.
4101 if test "${enable_zipstream+set}" = set; then
4102 enableval="$enable_zipstream"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4106 else
4107 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4108 fi
4109
4110 else
4111
4112 LINE=`grep "wxUSE_ZIPSTREAM" ${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_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4120
4121 fi
4122
4123
4124 eval "$ac_cv_use_zipstream"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_ZIPSTREAM" = yes; then
4130 echo "$ac_t""yes" 1>&6
4131 else
4132 echo "$ac_t""no" 1>&6
4133 fi
4134
4135
4136
4137 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4138 echo "configure:4139: checking for --enable-catch_segvs" >&5
4139 no_cache=0
4140 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4141 if test "${enable_catch_segvs+set}" = set; then
4142 enableval="$enable_catch_segvs"
4143
4144 if test "$enableval" = yes; then
4145 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4146 else
4147 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4148 fi
4149
4150 else
4151
4152 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4153 if test "x$LINE" != x ; then
4154 eval "DEFAULT_$LINE"
4155 else
4156 no_cache=1
4157 fi
4158
4159 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4160
4161 fi
4162
4163
4164 eval "$ac_cv_use_catch_segvs"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4170 echo "$ac_t""yes" 1>&6
4171 else
4172 echo "$ac_t""no" 1>&6
4173 fi
4174
4175
4176 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4177 echo "configure:4178: checking for --enable-snglinst" >&5
4178 no_cache=0
4179 # Check whether --enable-snglinst or --disable-snglinst was given.
4180 if test "${enable_snglinst+set}" = set; then
4181 enableval="$enable_snglinst"
4182
4183 if test "$enableval" = yes; then
4184 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4185 else
4186 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4187 fi
4188
4189 else
4190
4191 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4199
4200 fi
4201
4202
4203 eval "$ac_cv_use_snglinst"
4204 if test "$no_cache" != 1; then
4205 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4206 fi
4207
4208 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4209 echo "$ac_t""yes" 1>&6
4210 else
4211 echo "$ac_t""no" 1>&6
4212 fi
4213
4214
4215
4216 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4217 echo "configure:4218: checking for --enable-mimetype" >&5
4218 no_cache=0
4219 # Check whether --enable-mimetype or --disable-mimetype was given.
4220 if test "${enable_mimetype+set}" = set; then
4221 enableval="$enable_mimetype"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4225 else
4226 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4227 fi
4228
4229 else
4230
4231 LINE=`grep "wxUSE_MIMETYPE" ${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_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4239
4240 fi
4241
4242
4243 eval "$ac_cv_use_mimetype"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_MIMETYPE" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4256 echo "configure:4257: checking for --enable-system_options" >&5
4257 no_cache=0
4258 # Check whether --enable-system_options or --disable-system_options was given.
4259 if test "${enable_system_options+set}" = set; then
4260 enableval="$enable_system_options"
4261
4262 if test "$enableval" = yes; then
4263 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4264 else
4265 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4266 fi
4267
4268 else
4269
4270 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4278
4279 fi
4280
4281
4282 eval "$ac_cv_use_system_options"
4283 if test "$no_cache" != 1; then
4284 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4285 fi
4286
4287 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4288 echo "$ac_t""yes" 1>&6
4289 else
4290 echo "$ac_t""no" 1>&6
4291 fi
4292
4293
4294
4295
4296 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4297 echo "configure:4298: checking for --enable-threads" >&5
4298 no_cache=0
4299 # Check whether --enable-threads or --disable-threads was given.
4300 if test "${enable_threads+set}" = set; then
4301 enableval="$enable_threads"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_threads='wxUSE_THREADS=yes'
4305 else
4306 ac_cv_use_threads='wxUSE_THREADS=no'
4307 fi
4308
4309 else
4310
4311 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4319
4320 fi
4321
4322
4323 eval "$ac_cv_use_threads"
4324 if test "$no_cache" != 1; then
4325 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4326 fi
4327
4328 if test "$wxUSE_THREADS" = yes; then
4329 echo "$ac_t""yes" 1>&6
4330 else
4331 echo "$ac_t""no" 1>&6
4332 fi
4333
4334
4335 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4336 echo "configure:4337: checking for --enable-serial" >&5
4337 no_cache=0
4338 # Check whether --enable-serial or --disable-serial was given.
4339 if test "${enable_serial+set}" = set; then
4340 enableval="$enable_serial"
4341
4342 if test "$enableval" = yes; then
4343 ac_cv_use_serial='wxUSE_SERIAL=yes'
4344 else
4345 ac_cv_use_serial='wxUSE_SERIAL=no'
4346 fi
4347
4348 else
4349
4350 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4351 if test "x$LINE" != x ; then
4352 eval "DEFAULT_$LINE"
4353 else
4354 no_cache=1
4355 fi
4356
4357 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4358
4359 fi
4360
4361
4362 eval "$ac_cv_use_serial"
4363 if test "$no_cache" != 1; then
4364 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4365 fi
4366
4367 if test "$wxUSE_SERIAL" = yes; then
4368 echo "$ac_t""yes" 1>&6
4369 else
4370 echo "$ac_t""no" 1>&6
4371 fi
4372
4373
4374 if test "$wxUSE_GUI" = "yes"; then
4375
4376
4377
4378 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4379 echo "configure:4380: checking for --enable-docview" >&5
4380 no_cache=0
4381 # Check whether --enable-docview or --disable-docview was given.
4382 if test "${enable_docview+set}" = set; then
4383 enableval="$enable_docview"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4387 else
4388 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4389 fi
4390
4391 else
4392
4393 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4401
4402 fi
4403
4404
4405 eval "$ac_cv_use_docview"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4411 echo "$ac_t""yes" 1>&6
4412 else
4413 echo "$ac_t""no" 1>&6
4414 fi
4415
4416
4417 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4418 echo "configure:4419: checking for --enable-help" >&5
4419 no_cache=0
4420 # Check whether --enable-help or --disable-help was given.
4421 if test "${enable_help+set}" = set; then
4422 enableval="$enable_help"
4423
4424 if test "$enableval" = yes; then
4425 ac_cv_use_help='wxUSE_HELP=yes'
4426 else
4427 ac_cv_use_help='wxUSE_HELP=no'
4428 fi
4429
4430 else
4431
4432 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4433 if test "x$LINE" != x ; then
4434 eval "DEFAULT_$LINE"
4435 else
4436 no_cache=1
4437 fi
4438
4439 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4440
4441 fi
4442
4443
4444 eval "$ac_cv_use_help"
4445 if test "$no_cache" != 1; then
4446 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4447 fi
4448
4449 if test "$wxUSE_HELP" = yes; then
4450 echo "$ac_t""yes" 1>&6
4451 else
4452 echo "$ac_t""no" 1>&6
4453 fi
4454
4455
4456 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4457 echo "configure:4458: checking for --enable-mshtmlhelp" >&5
4458 no_cache=0
4459 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4460 if test "${enable_mshtmlhelp+set}" = set; then
4461 enableval="$enable_mshtmlhelp"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4465 else
4466 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4467 fi
4468
4469 else
4470
4471 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4479
4480 fi
4481
4482
4483 eval "$ac_cv_use_mshtmlhelp"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_MS_HTML_HELP" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
4495 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4496 echo "configure:4497: checking for --enable-html" >&5
4497 no_cache=0
4498 # Check whether --enable-html or --disable-html was given.
4499 if test "${enable_html+set}" = set; then
4500 enableval="$enable_html"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_html='wxUSE_HTML=yes'
4504 else
4505 ac_cv_use_html='wxUSE_HTML=no'
4506 fi
4507
4508 else
4509
4510 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4518
4519 fi
4520
4521
4522 eval "$ac_cv_use_html"
4523 if test "$no_cache" != 1; then
4524 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4525 fi
4526
4527 if test "$wxUSE_HTML" = yes; then
4528 echo "$ac_t""yes" 1>&6
4529 else
4530 echo "$ac_t""no" 1>&6
4531 fi
4532
4533
4534 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4535 echo "configure:4536: checking for --enable-htmlhelp" >&5
4536 no_cache=0
4537 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4538 if test "${enable_htmlhelp+set}" = set; then
4539 enableval="$enable_htmlhelp"
4540
4541 if test "$enableval" = yes; then
4542 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4543 else
4544 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4545 fi
4546
4547 else
4548
4549 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4550 if test "x$LINE" != x ; then
4551 eval "DEFAULT_$LINE"
4552 else
4553 no_cache=1
4554 fi
4555
4556 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4557
4558 fi
4559
4560
4561 eval "$ac_cv_use_htmlhelp"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_WXHTML_HELP" = yes; then
4567 echo "$ac_t""yes" 1>&6
4568 else
4569 echo "$ac_t""no" 1>&6
4570 fi
4571
4572
4573 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4574 echo "configure:4575: checking for --enable-constraints" >&5
4575 no_cache=0
4576 # Check whether --enable-constraints or --disable-constraints was given.
4577 if test "${enable_constraints+set}" = set; then
4578 enableval="$enable_constraints"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4582 else
4583 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4584 fi
4585
4586 else
4587
4588 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4596
4597 fi
4598
4599
4600 eval "$ac_cv_use_constraints"
4601 if test "$no_cache" != 1; then
4602 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4603 fi
4604
4605 if test "$wxUSE_CONSTRAINTS" = yes; then
4606 echo "$ac_t""yes" 1>&6
4607 else
4608 echo "$ac_t""no" 1>&6
4609 fi
4610
4611
4612 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4613 echo "configure:4614: checking for --enable-printarch" >&5
4614 no_cache=0
4615 # Check whether --enable-printarch or --disable-printarch was given.
4616 if test "${enable_printarch+set}" = set; then
4617 enableval="$enable_printarch"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4621 else
4622 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4623 fi
4624
4625 else
4626
4627 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4635
4636 fi
4637
4638
4639 eval "$ac_cv_use_printarch"
4640 if test "$no_cache" != 1; then
4641 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4642 fi
4643
4644 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4645 echo "$ac_t""yes" 1>&6
4646 else
4647 echo "$ac_t""no" 1>&6
4648 fi
4649
4650
4651 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4652 echo "configure:4653: checking for --enable-mdi" >&5
4653 no_cache=0
4654 # Check whether --enable-mdi or --disable-mdi was given.
4655 if test "${enable_mdi+set}" = set; then
4656 enableval="$enable_mdi"
4657
4658 if test "$enableval" = yes; then
4659 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4660 else
4661 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4662 fi
4663
4664 else
4665
4666 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4674
4675 fi
4676
4677
4678 eval "$ac_cv_use_mdi"
4679 if test "$no_cache" != 1; then
4680 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4681 fi
4682
4683 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4684 echo "$ac_t""yes" 1>&6
4685 else
4686 echo "$ac_t""no" 1>&6
4687 fi
4688
4689
4690 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4691 echo "configure:4692: checking for --enable-loggui" >&5
4692 no_cache=0
4693 # Check whether --enable-loggui or --disable-loggui was given.
4694 if test "${enable_loggui+set}" = set; then
4695 enableval="$enable_loggui"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4699 else
4700 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4701 fi
4702
4703 else
4704
4705 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4713
4714 fi
4715
4716
4717 eval "$ac_cv_use_loggui"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_LOGGUI" = yes; then
4723 echo "$ac_t""yes" 1>&6
4724 else
4725 echo "$ac_t""no" 1>&6
4726 fi
4727
4728
4729 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4730 echo "configure:4731: checking for --enable-logwin" >&5
4731 no_cache=0
4732 # Check whether --enable-logwin or --disable-logwin was given.
4733 if test "${enable_logwin+set}" = set; then
4734 enableval="$enable_logwin"
4735
4736 if test "$enableval" = yes; then
4737 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4738 else
4739 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4740 fi
4741
4742 else
4743
4744 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4745 if test "x$LINE" != x ; then
4746 eval "DEFAULT_$LINE"
4747 else
4748 no_cache=1
4749 fi
4750
4751 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4752
4753 fi
4754
4755
4756 eval "$ac_cv_use_logwin"
4757 if test "$no_cache" != 1; then
4758 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4759 fi
4760
4761 if test "$wxUSE_LOGWINDOW" = yes; then
4762 echo "$ac_t""yes" 1>&6
4763 else
4764 echo "$ac_t""no" 1>&6
4765 fi
4766
4767
4768
4769 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4770 echo "configure:4771: checking for --enable-postscript" >&5
4771 no_cache=0
4772 # Check whether --enable-postscript or --disable-postscript was given.
4773 if test "${enable_postscript+set}" = set; then
4774 enableval="$enable_postscript"
4775
4776 if test "$enableval" = yes; then
4777 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4778 else
4779 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4780 fi
4781
4782 else
4783
4784 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4792
4793 fi
4794
4795
4796 eval "$ac_cv_use_postscript"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_POSTSCRIPT" = yes; then
4802 echo "$ac_t""yes" 1>&6
4803 else
4804 echo "$ac_t""no" 1>&6
4805 fi
4806
4807
4808
4809
4810
4811 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4812 echo "configure:4813: checking for --enable-prologio" >&5
4813 no_cache=0
4814 # Check whether --enable-prologio or --disable-prologio was given.
4815 if test "${enable_prologio+set}" = set; then
4816 enableval="$enable_prologio"
4817
4818 if test "$enableval" = yes; then
4819 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4820 else
4821 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4822 fi
4823
4824 else
4825
4826 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4827 if test "x$LINE" != x ; then
4828 eval "DEFAULT_$LINE"
4829 else
4830 no_cache=1
4831 fi
4832
4833 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4834
4835 fi
4836
4837
4838 eval "$ac_cv_use_prologio"
4839 if test "$no_cache" != 1; then
4840 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4841 fi
4842
4843 if test "$wxUSE_PROLOGIO" = yes; then
4844 echo "$ac_t""yes" 1>&6
4845 else
4846 echo "$ac_t""no" 1>&6
4847 fi
4848
4849
4850 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4851 echo "configure:4852: checking for --enable-resources" >&5
4852 no_cache=0
4853 # Check whether --enable-resources or --disable-resources was given.
4854 if test "${enable_resources+set}" = set; then
4855 enableval="$enable_resources"
4856
4857 if test "$enableval" = yes; then
4858 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4859 else
4860 ac_cv_use_resources='wxUSE_RESOURCES=no'
4861 fi
4862
4863 else
4864
4865 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4873
4874 fi
4875
4876
4877 eval "$ac_cv_use_resources"
4878 if test "$no_cache" != 1; then
4879 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4880 fi
4881
4882 if test "$wxUSE_RESOURCES" = yes; then
4883 echo "$ac_t""yes" 1>&6
4884 else
4885 echo "$ac_t""no" 1>&6
4886 fi
4887
4888
4889
4890 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4891 echo "configure:4892: checking for --enable-xresources" >&5
4892 no_cache=0
4893 # Check whether --enable-xresources or --disable-xresources was given.
4894 if test "${enable_xresources+set}" = set; then
4895 enableval="$enable_xresources"
4896
4897 if test "$enableval" = yes; then
4898 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4899 else
4900 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4901 fi
4902
4903 else
4904
4905 LINE=`grep "wxUSE_X_RESOURCES" ${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_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4913
4914 fi
4915
4916
4917 eval "$ac_cv_use_xresources"
4918 if test "$no_cache" != 1; then
4919 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4920 fi
4921
4922 if test "$wxUSE_X_RESOURCES" = yes; then
4923 echo "$ac_t""yes" 1>&6
4924 else
4925 echo "$ac_t""no" 1>&6
4926 fi
4927
4928
4929
4930
4931 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4932 echo "configure:4933: checking for --enable-clipboard" >&5
4933 no_cache=0
4934 # Check whether --enable-clipboard or --disable-clipboard was given.
4935 if test "${enable_clipboard+set}" = set; then
4936 enableval="$enable_clipboard"
4937
4938 if test "$enableval" = yes; then
4939 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4940 else
4941 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4942 fi
4943
4944 else
4945
4946 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4947 if test "x$LINE" != x ; then
4948 eval "DEFAULT_$LINE"
4949 else
4950 no_cache=1
4951 fi
4952
4953 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4954
4955 fi
4956
4957
4958 eval "$ac_cv_use_clipboard"
4959 if test "$no_cache" != 1; then
4960 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4961 fi
4962
4963 if test "$wxUSE_CLIPBOARD" = yes; then
4964 echo "$ac_t""yes" 1>&6
4965 else
4966 echo "$ac_t""no" 1>&6
4967 fi
4968
4969
4970 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4971 echo "configure:4972: checking for --enable-dnd" >&5
4972 no_cache=0
4973 # Check whether --enable-dnd or --disable-dnd was given.
4974 if test "${enable_dnd+set}" = set; then
4975 enableval="$enable_dnd"
4976
4977 if test "$enableval" = yes; then
4978 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4979 else
4980 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4981 fi
4982
4983 else
4984
4985 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
4992 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4993
4994 fi
4995
4996
4997 eval "$ac_cv_use_dnd"
4998 if test "$no_cache" != 1; then
4999 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5000 fi
5001
5002 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5003 echo "$ac_t""yes" 1>&6
5004 else
5005 echo "$ac_t""no" 1>&6
5006 fi
5007
5008
5009 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5010 echo "configure:5011: checking for --enable-metafile" >&5
5011 no_cache=0
5012 # Check whether --enable-metafile or --disable-metafile was given.
5013 if test "${enable_metafile+set}" = set; then
5014 enableval="$enable_metafile"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5018 else
5019 ac_cv_use_metafile='wxUSE_METAFILE=no'
5020 fi
5021
5022 else
5023
5024 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5032
5033 fi
5034
5035
5036 eval "$ac_cv_use_metafile"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_METAFILE" = yes; then
5042 echo "$ac_t""yes" 1>&6
5043 else
5044 echo "$ac_t""no" 1>&6
5045 fi
5046
5047
5048
5049 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5050 echo "configure:5051: checking for --enable-treelayout" >&5
5051 no_cache=0
5052 # Check whether --enable-treelayout or --disable-treelayout was given.
5053 if test "${enable_treelayout+set}" = set; then
5054 enableval="$enable_treelayout"
5055
5056 if test "$enableval" = yes; then
5057 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5058 else
5059 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5060 fi
5061
5062 else
5063
5064 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5065 if test "x$LINE" != x ; then
5066 eval "DEFAULT_$LINE"
5067 else
5068 no_cache=1
5069 fi
5070
5071 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5072
5073 fi
5074
5075
5076 eval "$ac_cv_use_treelayout"
5077 if test "$no_cache" != 1; then
5078 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5079 fi
5080
5081 if test "$wxUSE_TREELAYOUT" = yes; then
5082 echo "$ac_t""yes" 1>&6
5083 else
5084 echo "$ac_t""no" 1>&6
5085 fi
5086
5087
5088
5089
5090 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5091 echo "configure:5092: checking for --enable-controls" >&5
5092 no_cache=0
5093 # Check whether --enable-controls or --disable-controls was given.
5094 if test "${enable_controls+set}" = set; then
5095 enableval="$enable_controls"
5096
5097 if test "$enableval" = yes; then
5098 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5099 else
5100 ac_cv_use_controls='wxUSE_CONTROLS=no'
5101 fi
5102
5103 else
5104
5105 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5106 if test "x$LINE" != x ; then
5107 eval "DEFAULT_$LINE"
5108 else
5109 no_cache=1
5110 fi
5111
5112 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5113
5114 fi
5115
5116
5117 eval "$ac_cv_use_controls"
5118 if test "$no_cache" != 1; then
5119 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5120 fi
5121
5122 if test "$wxUSE_CONTROLS" = yes; then
5123 echo "$ac_t""yes" 1>&6
5124 else
5125 echo "$ac_t""no" 1>&6
5126 fi
5127
5128
5129 if test "$wxUSE_CONTROLS" = "yes"; then
5130 DEFAULT_wxUSE_ACCEL=yes
5131 DEFAULT_wxUSE_BMPBUTTON=yes
5132 DEFAULT_wxUSE_BUTTON=yes
5133 DEFAULT_wxUSE_CALCTRL=no
5134 DEFAULT_wxUSE_CARET=yes
5135 DEFAULT_wxUSE_COMBOBOX=yes
5136 DEFAULT_wxUSE_CHECKBOX=yes
5137 DEFAULT_wxUSE_CHECKLISTBOX=yes
5138 DEFAULT_wxUSE_CHOICE=yes
5139 DEFAULT_wxUSE_GAUGE=yes
5140 DEFAULT_wxUSE_GRID=yes
5141 DEFAULT_wxUSE_NEW_GRID=yes
5142 DEFAULT_wxUSE_IMAGLIST=yes
5143 DEFAULT_wxUSE_LISTBOX=yes
5144 DEFAULT_wxUSE_LISTCTRL=yes
5145 DEFAULT_wxUSE_NOTEBOOK=yes
5146 DEFAULT_wxUSE_PROPSHEET=yes
5147 DEFAULT_wxUSE_RADIOBOX=yes
5148 DEFAULT_wxUSE_RADIOBTN=yes
5149 DEFAULT_wxUSE_SASH=yes
5150 DEFAULT_wxUSE_SCROLLBAR=yes
5151 DEFAULT_wxUSE_SLIDER=yes
5152 DEFAULT_wxUSE_SPINBTN=yes
5153 DEFAULT_wxUSE_SPINCTRL=yes
5154 DEFAULT_wxUSE_SPLITTER=yes
5155 DEFAULT_wxUSE_STATBMP=yes
5156 DEFAULT_wxUSE_STATBOX=yes
5157 DEFAULT_wxUSE_STATLINE=yes
5158 DEFAULT_wxUSE_STATUSBAR=yes
5159 DEFAULT_wxUSE_TAB_DIALOG=yes
5160 DEFAULT_wxUSE_TOGGLEBTN=yes
5161 DEFAULT_wxUSE_TOOLBAR=yes
5162 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5163 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5164 DEFAULT_wxUSE_TOOLTIPS=yes
5165 DEFAULT_wxUSE_TREECTRL=yes
5166 DEFAULT_wxUSE_POPUPWIN=yes
5167 elif test "$wxUSE_CONTROLS" = "no"; then
5168 DEFAULT_wxUSE_ACCEL=no
5169 DEFAULT_wxUSE_BMPBUTTON=no
5170 DEFAULT_wxUSE_BUTTON=no
5171 DEFAULT_wxUSE_CALCTRL=no
5172 DEFAULT_wxUSE_CARET=no
5173 DEFAULT_wxUSE_COMBOBOX=no
5174 DEFAULT_wxUSE_CHECKBOX=no
5175 DEFAULT_wxUSE_CHECKLISTBOX=no
5176 DEFAULT_wxUSE_CHOICE=no
5177 DEFAULT_wxUSE_GAUGE=no
5178 DEFAULT_wxUSE_GRID=no
5179 DEFAULT_wxUSE_NEW_GRID=no
5180 DEFAULT_wxUSE_IMAGLIST=no
5181 DEFAULT_wxUSE_LISTBOX=no
5182 DEFAULT_wxUSE_LISTCTRL=no
5183 DEFAULT_wxUSE_NOTEBOOK=no
5184 DEFAULT_wxUSE_PROPSHEET=no
5185 DEFAULT_wxUSE_RADIOBOX=no
5186 DEFAULT_wxUSE_RADIOBTN=no
5187 DEFAULT_wxUSE_SASH=no
5188 DEFAULT_wxUSE_SCROLLBAR=no
5189 DEFAULT_wxUSE_SLIDER=no
5190 DEFAULT_wxUSE_SPINBTN=no
5191 DEFAULT_wxUSE_SPINCTRL=no
5192 DEFAULT_wxUSE_SPLITTER=no
5193 DEFAULT_wxUSE_STATBMP=no
5194 DEFAULT_wxUSE_STATBOX=no
5195 DEFAULT_wxUSE_STATLINE=no
5196 DEFAULT_wxUSE_STATUSBAR=no
5197 DEFAULT_wxUSE_TAB_DIALOG=no
5198 DEFAULT_wxUSE_TOGGLEBTN=no
5199 DEFAULT_wxUSE_TOOLBAR=no
5200 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5201 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5202 DEFAULT_wxUSE_TOOLTIPS=no
5203 DEFAULT_wxUSE_TREECTRL=no
5204 DEFAULT_wxUSE_POPUPWIN=no
5205 fi
5206
5207
5208 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5209 echo "configure:5210: checking for --enable-accel" >&5
5210 no_cache=0
5211 # Check whether --enable-accel or --disable-accel was given.
5212 if test "${enable_accel+set}" = set; then
5213 enableval="$enable_accel"
5214
5215 if test "$enableval" = yes; then
5216 ac_cv_use_accel='wxUSE_ACCEL=yes'
5217 else
5218 ac_cv_use_accel='wxUSE_ACCEL=no'
5219 fi
5220
5221 else
5222
5223 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5224 if test "x$LINE" != x ; then
5225 eval "DEFAULT_$LINE"
5226 else
5227 no_cache=1
5228 fi
5229
5230 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5231
5232 fi
5233
5234
5235 eval "$ac_cv_use_accel"
5236 if test "$no_cache" != 1; then
5237 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5238 fi
5239
5240 if test "$wxUSE_ACCEL" = yes; then
5241 echo "$ac_t""yes" 1>&6
5242 else
5243 echo "$ac_t""no" 1>&6
5244 fi
5245
5246
5247 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5248 echo "configure:5249: checking for --enable-button" >&5
5249 no_cache=0
5250 # Check whether --enable-button or --disable-button was given.
5251 if test "${enable_button+set}" = set; then
5252 enableval="$enable_button"
5253
5254 if test "$enableval" = yes; then
5255 ac_cv_use_button='wxUSE_BUTTON=yes'
5256 else
5257 ac_cv_use_button='wxUSE_BUTTON=no'
5258 fi
5259
5260 else
5261
5262 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5270
5271 fi
5272
5273
5274 eval "$ac_cv_use_button"
5275 if test "$no_cache" != 1; then
5276 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5277 fi
5278
5279 if test "$wxUSE_BUTTON" = yes; then
5280 echo "$ac_t""yes" 1>&6
5281 else
5282 echo "$ac_t""no" 1>&6
5283 fi
5284
5285
5286 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5287 echo "configure:5288: checking for --enable-bmpbutton" >&5
5288 no_cache=0
5289 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5290 if test "${enable_bmpbutton+set}" = set; then
5291 enableval="$enable_bmpbutton"
5292
5293 if test "$enableval" = yes; then
5294 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5295 else
5296 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5297 fi
5298
5299 else
5300
5301 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5302 if test "x$LINE" != x ; then
5303 eval "DEFAULT_$LINE"
5304 else
5305 no_cache=1
5306 fi
5307
5308 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5309
5310 fi
5311
5312
5313 eval "$ac_cv_use_bmpbutton"
5314 if test "$no_cache" != 1; then
5315 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5316 fi
5317
5318 if test "$wxUSE_BMPBUTTON" = yes; then
5319 echo "$ac_t""yes" 1>&6
5320 else
5321 echo "$ac_t""no" 1>&6
5322 fi
5323
5324
5325 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5326 echo "configure:5327: checking for --enable-calendar" >&5
5327 no_cache=0
5328 # Check whether --enable-calendar or --disable-calendar was given.
5329 if test "${enable_calendar+set}" = set; then
5330 enableval="$enable_calendar"
5331
5332 if test "$enableval" = yes; then
5333 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5334 else
5335 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5336 fi
5337
5338 else
5339
5340 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5341 if test "x$LINE" != x ; then
5342 eval "DEFAULT_$LINE"
5343 else
5344 no_cache=1
5345 fi
5346
5347 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5348
5349 fi
5350
5351
5352 eval "$ac_cv_use_calendar"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_CALCTRL" = yes; then
5358 echo "$ac_t""yes" 1>&6
5359 else
5360 echo "$ac_t""no" 1>&6
5361 fi
5362
5363
5364 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5365 echo "configure:5366: checking for --enable-caret" >&5
5366 no_cache=0
5367 # Check whether --enable-caret or --disable-caret was given.
5368 if test "${enable_caret+set}" = set; then
5369 enableval="$enable_caret"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_caret='wxUSE_CARET=yes'
5373 else
5374 ac_cv_use_caret='wxUSE_CARET=no'
5375 fi
5376
5377 else
5378
5379 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5387
5388 fi
5389
5390
5391 eval "$ac_cv_use_caret"
5392 if test "$no_cache" != 1; then
5393 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5394 fi
5395
5396 if test "$wxUSE_CARET" = yes; then
5397 echo "$ac_t""yes" 1>&6
5398 else
5399 echo "$ac_t""no" 1>&6
5400 fi
5401
5402
5403 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5404 echo "configure:5405: checking for --enable-checkbox" >&5
5405 no_cache=0
5406 # Check whether --enable-checkbox or --disable-checkbox was given.
5407 if test "${enable_checkbox+set}" = set; then
5408 enableval="$enable_checkbox"
5409
5410 if test "$enableval" = yes; then
5411 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5412 else
5413 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5414 fi
5415
5416 else
5417
5418 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5419 if test "x$LINE" != x ; then
5420 eval "DEFAULT_$LINE"
5421 else
5422 no_cache=1
5423 fi
5424
5425 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5426
5427 fi
5428
5429
5430 eval "$ac_cv_use_checkbox"
5431 if test "$no_cache" != 1; then
5432 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5433 fi
5434
5435 if test "$wxUSE_CHECKBOX" = yes; then
5436 echo "$ac_t""yes" 1>&6
5437 else
5438 echo "$ac_t""no" 1>&6
5439 fi
5440
5441
5442 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5443 echo "configure:5444: checking for --enable-checklst" >&5
5444 no_cache=0
5445 # Check whether --enable-checklst or --disable-checklst was given.
5446 if test "${enable_checklst+set}" = set; then
5447 enableval="$enable_checklst"
5448
5449 if test "$enableval" = yes; then
5450 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5451 else
5452 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5453 fi
5454
5455 else
5456
5457 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5458 if test "x$LINE" != x ; then
5459 eval "DEFAULT_$LINE"
5460 else
5461 no_cache=1
5462 fi
5463
5464 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5465
5466 fi
5467
5468
5469 eval "$ac_cv_use_checklst"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_CHECKLST" = yes; then
5475 echo "$ac_t""yes" 1>&6
5476 else
5477 echo "$ac_t""no" 1>&6
5478 fi
5479
5480
5481 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5482 echo "configure:5483: checking for --enable-choice" >&5
5483 no_cache=0
5484 # Check whether --enable-choice or --disable-choice was given.
5485 if test "${enable_choice+set}" = set; then
5486 enableval="$enable_choice"
5487
5488 if test "$enableval" = yes; then
5489 ac_cv_use_choice='wxUSE_CHOICE=yes'
5490 else
5491 ac_cv_use_choice='wxUSE_CHOICE=no'
5492 fi
5493
5494 else
5495
5496 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5497 if test "x$LINE" != x ; then
5498 eval "DEFAULT_$LINE"
5499 else
5500 no_cache=1
5501 fi
5502
5503 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5504
5505 fi
5506
5507
5508 eval "$ac_cv_use_choice"
5509 if test "$no_cache" != 1; then
5510 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5511 fi
5512
5513 if test "$wxUSE_CHOICE" = yes; then
5514 echo "$ac_t""yes" 1>&6
5515 else
5516 echo "$ac_t""no" 1>&6
5517 fi
5518
5519
5520 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5521 echo "configure:5522: checking for --enable-combobox" >&5
5522 no_cache=0
5523 # Check whether --enable-combobox or --disable-combobox was given.
5524 if test "${enable_combobox+set}" = set; then
5525 enableval="$enable_combobox"
5526
5527 if test "$enableval" = yes; then
5528 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5529 else
5530 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5531 fi
5532
5533 else
5534
5535 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5536 if test "x$LINE" != x ; then
5537 eval "DEFAULT_$LINE"
5538 else
5539 no_cache=1
5540 fi
5541
5542 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5543
5544 fi
5545
5546
5547 eval "$ac_cv_use_combobox"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_COMBOBOX" = yes; then
5553 echo "$ac_t""yes" 1>&6
5554 else
5555 echo "$ac_t""no" 1>&6
5556 fi
5557
5558
5559 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5560 echo "configure:5561: checking for --enable-gauge" >&5
5561 no_cache=0
5562 # Check whether --enable-gauge or --disable-gauge was given.
5563 if test "${enable_gauge+set}" = set; then
5564 enableval="$enable_gauge"
5565
5566 if test "$enableval" = yes; then
5567 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5568 else
5569 ac_cv_use_gauge='wxUSE_GAUGE=no'
5570 fi
5571
5572 else
5573
5574 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5575 if test "x$LINE" != x ; then
5576 eval "DEFAULT_$LINE"
5577 else
5578 no_cache=1
5579 fi
5580
5581 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5582
5583 fi
5584
5585
5586 eval "$ac_cv_use_gauge"
5587 if test "$no_cache" != 1; then
5588 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5589 fi
5590
5591 if test "$wxUSE_GAUGE" = yes; then
5592 echo "$ac_t""yes" 1>&6
5593 else
5594 echo "$ac_t""no" 1>&6
5595 fi
5596
5597
5598 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5599 echo "configure:5600: checking for --enable-grid" >&5
5600 no_cache=0
5601 # Check whether --enable-grid or --disable-grid was given.
5602 if test "${enable_grid+set}" = set; then
5603 enableval="$enable_grid"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_grid='wxUSE_GRID=yes'
5607 else
5608 ac_cv_use_grid='wxUSE_GRID=no'
5609 fi
5610
5611 else
5612
5613 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5621
5622 fi
5623
5624
5625 eval "$ac_cv_use_grid"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_GRID" = yes; then
5631 echo "$ac_t""yes" 1>&6
5632 else
5633 echo "$ac_t""no" 1>&6
5634 fi
5635
5636
5637 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5638 echo "configure:5639: checking for --enable-newgrid" >&5
5639 no_cache=0
5640 # Check whether --enable-newgrid or --disable-newgrid was given.
5641 if test "${enable_newgrid+set}" = set; then
5642 enableval="$enable_newgrid"
5643
5644 if test "$enableval" = yes; then
5645 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5646 else
5647 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5648 fi
5649
5650 else
5651
5652 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5653 if test "x$LINE" != x ; then
5654 eval "DEFAULT_$LINE"
5655 else
5656 no_cache=1
5657 fi
5658
5659 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5660
5661 fi
5662
5663
5664 eval "$ac_cv_use_newgrid"
5665 if test "$no_cache" != 1; then
5666 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5667 fi
5668
5669 if test "$wxUSE_NEW_GRID" = yes; then
5670 echo "$ac_t""yes" 1>&6
5671 else
5672 echo "$ac_t""no" 1>&6
5673 fi
5674
5675
5676 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5677 echo "configure:5678: checking for --enable-imaglist" >&5
5678 no_cache=0
5679 # Check whether --enable-imaglist or --disable-imaglist was given.
5680 if test "${enable_imaglist+set}" = set; then
5681 enableval="$enable_imaglist"
5682
5683 if test "$enableval" = yes; then
5684 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5685 else
5686 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5687 fi
5688
5689 else
5690
5691 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5699
5700 fi
5701
5702
5703 eval "$ac_cv_use_imaglist"
5704 if test "$no_cache" != 1; then
5705 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5706 fi
5707
5708 if test "$wxUSE_IMAGLIST" = yes; then
5709 echo "$ac_t""yes" 1>&6
5710 else
5711 echo "$ac_t""no" 1>&6
5712 fi
5713
5714
5715 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5716 echo "configure:5717: checking for --enable-listbox" >&5
5717 no_cache=0
5718 # Check whether --enable-listbox or --disable-listbox was given.
5719 if test "${enable_listbox+set}" = set; then
5720 enableval="$enable_listbox"
5721
5722 if test "$enableval" = yes; then
5723 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5724 else
5725 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5726 fi
5727
5728 else
5729
5730 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
5737 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5738
5739 fi
5740
5741
5742 eval "$ac_cv_use_listbox"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_LISTBOX" = yes; then
5748 echo "$ac_t""yes" 1>&6
5749 else
5750 echo "$ac_t""no" 1>&6
5751 fi
5752
5753
5754 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5755 echo "configure:5756: checking for --enable-listctrl" >&5
5756 no_cache=0
5757 # Check whether --enable-listctrl or --disable-listctrl was given.
5758 if test "${enable_listctrl+set}" = set; then
5759 enableval="$enable_listctrl"
5760
5761 if test "$enableval" = yes; then
5762 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5763 else
5764 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5765 fi
5766
5767 else
5768
5769 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5770 if test "x$LINE" != x ; then
5771 eval "DEFAULT_$LINE"
5772 else
5773 no_cache=1
5774 fi
5775
5776 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5777
5778 fi
5779
5780
5781 eval "$ac_cv_use_listctrl"
5782 if test "$no_cache" != 1; then
5783 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5784 fi
5785
5786 if test "$wxUSE_LISTCTRL" = yes; then
5787 echo "$ac_t""yes" 1>&6
5788 else
5789 echo "$ac_t""no" 1>&6
5790 fi
5791
5792
5793 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5794 echo "configure:5795: checking for --enable-notebook" >&5
5795 no_cache=0
5796 # Check whether --enable-notebook or --disable-notebook was given.
5797 if test "${enable_notebook+set}" = set; then
5798 enableval="$enable_notebook"
5799
5800 if test "$enableval" = yes; then
5801 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5802 else
5803 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5804 fi
5805
5806 else
5807
5808 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5809 if test "x$LINE" != x ; then
5810 eval "DEFAULT_$LINE"
5811 else
5812 no_cache=1
5813 fi
5814
5815 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5816
5817 fi
5818
5819
5820 eval "$ac_cv_use_notebook"
5821 if test "$no_cache" != 1; then
5822 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5823 fi
5824
5825 if test "$wxUSE_NOTEBOOK" = yes; then
5826 echo "$ac_t""yes" 1>&6
5827 else
5828 echo "$ac_t""no" 1>&6
5829 fi
5830
5831
5832 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5833 echo "configure:5834: checking for --enable-propsheet" >&5
5834 no_cache=0
5835 # Check whether --enable-propsheet or --disable-propsheet was given.
5836 if test "${enable_propsheet+set}" = set; then
5837 enableval="$enable_propsheet"
5838
5839 if test "$enableval" = yes; then
5840 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5841 else
5842 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5843 fi
5844
5845 else
5846
5847 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5848 if test "x$LINE" != x ; then
5849 eval "DEFAULT_$LINE"
5850 else
5851 no_cache=1
5852 fi
5853
5854 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5855
5856 fi
5857
5858
5859 eval "$ac_cv_use_propsheet"
5860 if test "$no_cache" != 1; then
5861 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5862 fi
5863
5864 if test "$wxUSE_PROPSHEET" = yes; then
5865 echo "$ac_t""yes" 1>&6
5866 else
5867 echo "$ac_t""no" 1>&6
5868 fi
5869
5870
5871 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5872 echo "configure:5873: checking for --enable-radiobox" >&5
5873 no_cache=0
5874 # Check whether --enable-radiobox or --disable-radiobox was given.
5875 if test "${enable_radiobox+set}" = set; then
5876 enableval="$enable_radiobox"
5877
5878 if test "$enableval" = yes; then
5879 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5880 else
5881 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5882 fi
5883
5884 else
5885
5886 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5887 if test "x$LINE" != x ; then
5888 eval "DEFAULT_$LINE"
5889 else
5890 no_cache=1
5891 fi
5892
5893 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5894
5895 fi
5896
5897
5898 eval "$ac_cv_use_radiobox"
5899 if test "$no_cache" != 1; then
5900 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5901 fi
5902
5903 if test "$wxUSE_RADIOBOX" = yes; then
5904 echo "$ac_t""yes" 1>&6
5905 else
5906 echo "$ac_t""no" 1>&6
5907 fi
5908
5909
5910 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5911 echo "configure:5912: checking for --enable-radiobtn" >&5
5912 no_cache=0
5913 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5914 if test "${enable_radiobtn+set}" = set; then
5915 enableval="$enable_radiobtn"
5916
5917 if test "$enableval" = yes; then
5918 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5919 else
5920 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5921 fi
5922
5923 else
5924
5925 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5926 if test "x$LINE" != x ; then
5927 eval "DEFAULT_$LINE"
5928 else
5929 no_cache=1
5930 fi
5931
5932 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5933
5934 fi
5935
5936
5937 eval "$ac_cv_use_radiobtn"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_RADIOBTN" = yes; then
5943 echo "$ac_t""yes" 1>&6
5944 else
5945 echo "$ac_t""no" 1>&6
5946 fi
5947
5948
5949 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5950 echo "configure:5951: checking for --enable-sash" >&5
5951 no_cache=0
5952 # Check whether --enable-sash or --disable-sash was given.
5953 if test "${enable_sash+set}" = set; then
5954 enableval="$enable_sash"
5955
5956 if test "$enableval" = yes; then
5957 ac_cv_use_sash='wxUSE_SASH=yes'
5958 else
5959 ac_cv_use_sash='wxUSE_SASH=no'
5960 fi
5961
5962 else
5963
5964 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5972
5973 fi
5974
5975
5976 eval "$ac_cv_use_sash"
5977 if test "$no_cache" != 1; then
5978 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5979 fi
5980
5981 if test "$wxUSE_SASH" = yes; then
5982 echo "$ac_t""yes" 1>&6
5983 else
5984 echo "$ac_t""no" 1>&6
5985 fi
5986
5987
5988 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5989 echo "configure:5990: checking for --enable-scrollbar" >&5
5990 no_cache=0
5991 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5992 if test "${enable_scrollbar+set}" = set; then
5993 enableval="$enable_scrollbar"
5994
5995 if test "$enableval" = yes; then
5996 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5997 else
5998 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5999 fi
6000
6001 else
6002
6003 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6004 if test "x$LINE" != x ; then
6005 eval "DEFAULT_$LINE"
6006 else
6007 no_cache=1
6008 fi
6009
6010 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6011
6012 fi
6013
6014
6015 eval "$ac_cv_use_scrollbar"
6016 if test "$no_cache" != 1; then
6017 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6018 fi
6019
6020 if test "$wxUSE_SCROLLBAR" = yes; then
6021 echo "$ac_t""yes" 1>&6
6022 else
6023 echo "$ac_t""no" 1>&6
6024 fi
6025
6026
6027 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6028 echo "configure:6029: checking for --enable-slider" >&5
6029 no_cache=0
6030 # Check whether --enable-slider or --disable-slider was given.
6031 if test "${enable_slider+set}" = set; then
6032 enableval="$enable_slider"
6033
6034 if test "$enableval" = yes; then
6035 ac_cv_use_slider='wxUSE_SLIDER=yes'
6036 else
6037 ac_cv_use_slider='wxUSE_SLIDER=no'
6038 fi
6039
6040 else
6041
6042 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6043 if test "x$LINE" != x ; then
6044 eval "DEFAULT_$LINE"
6045 else
6046 no_cache=1
6047 fi
6048
6049 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6050
6051 fi
6052
6053
6054 eval "$ac_cv_use_slider"
6055 if test "$no_cache" != 1; then
6056 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6057 fi
6058
6059 if test "$wxUSE_SLIDER" = yes; then
6060 echo "$ac_t""yes" 1>&6
6061 else
6062 echo "$ac_t""no" 1>&6
6063 fi
6064
6065
6066 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6067 echo "configure:6068: checking for --enable-spinbtn" >&5
6068 no_cache=0
6069 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6070 if test "${enable_spinbtn+set}" = set; then
6071 enableval="$enable_spinbtn"
6072
6073 if test "$enableval" = yes; then
6074 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6075 else
6076 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6077 fi
6078
6079 else
6080
6081 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6082 if test "x$LINE" != x ; then
6083 eval "DEFAULT_$LINE"
6084 else
6085 no_cache=1
6086 fi
6087
6088 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6089
6090 fi
6091
6092
6093 eval "$ac_cv_use_spinbtn"
6094 if test "$no_cache" != 1; then
6095 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6096 fi
6097
6098 if test "$wxUSE_SPINBTN" = yes; then
6099 echo "$ac_t""yes" 1>&6
6100 else
6101 echo "$ac_t""no" 1>&6
6102 fi
6103
6104
6105 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6106 echo "configure:6107: checking for --enable-spinctrl" >&5
6107 no_cache=0
6108 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6109 if test "${enable_spinctrl+set}" = set; then
6110 enableval="$enable_spinctrl"
6111
6112 if test "$enableval" = yes; then
6113 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6114 else
6115 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6116 fi
6117
6118 else
6119
6120 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6121 if test "x$LINE" != x ; then
6122 eval "DEFAULT_$LINE"
6123 else
6124 no_cache=1
6125 fi
6126
6127 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6128
6129 fi
6130
6131
6132 eval "$ac_cv_use_spinctrl"
6133 if test "$no_cache" != 1; then
6134 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6135 fi
6136
6137 if test "$wxUSE_SPINCTRL" = yes; then
6138 echo "$ac_t""yes" 1>&6
6139 else
6140 echo "$ac_t""no" 1>&6
6141 fi
6142
6143
6144 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6145 echo "configure:6146: checking for --enable-splitter" >&5
6146 no_cache=0
6147 # Check whether --enable-splitter or --disable-splitter was given.
6148 if test "${enable_splitter+set}" = set; then
6149 enableval="$enable_splitter"
6150
6151 if test "$enableval" = yes; then
6152 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6153 else
6154 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6155 fi
6156
6157 else
6158
6159 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6167
6168 fi
6169
6170
6171 eval "$ac_cv_use_splitter"
6172 if test "$no_cache" != 1; then
6173 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6174 fi
6175
6176 if test "$wxUSE_SPLITTER" = yes; then
6177 echo "$ac_t""yes" 1>&6
6178 else
6179 echo "$ac_t""no" 1>&6
6180 fi
6181
6182
6183 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6184 echo "configure:6185: checking for --enable-statbmp" >&5
6185 no_cache=0
6186 # Check whether --enable-statbmp or --disable-statbmp was given.
6187 if test "${enable_statbmp+set}" = set; then
6188 enableval="$enable_statbmp"
6189
6190 if test "$enableval" = yes; then
6191 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6192 else
6193 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6194 fi
6195
6196 else
6197
6198 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6199 if test "x$LINE" != x ; then
6200 eval "DEFAULT_$LINE"
6201 else
6202 no_cache=1
6203 fi
6204
6205 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6206
6207 fi
6208
6209
6210 eval "$ac_cv_use_statbmp"
6211 if test "$no_cache" != 1; then
6212 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6213 fi
6214
6215 if test "$wxUSE_STATBMP" = yes; then
6216 echo "$ac_t""yes" 1>&6
6217 else
6218 echo "$ac_t""no" 1>&6
6219 fi
6220
6221
6222 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6223 echo "configure:6224: checking for --enable-statbox" >&5
6224 no_cache=0
6225 # Check whether --enable-statbox or --disable-statbox was given.
6226 if test "${enable_statbox+set}" = set; then
6227 enableval="$enable_statbox"
6228
6229 if test "$enableval" = yes; then
6230 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6231 else
6232 ac_cv_use_statbox='wxUSE_STATBOX=no'
6233 fi
6234
6235 else
6236
6237 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6245
6246 fi
6247
6248
6249 eval "$ac_cv_use_statbox"
6250 if test "$no_cache" != 1; then
6251 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6252 fi
6253
6254 if test "$wxUSE_STATBOX" = yes; then
6255 echo "$ac_t""yes" 1>&6
6256 else
6257 echo "$ac_t""no" 1>&6
6258 fi
6259
6260
6261 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6262 echo "configure:6263: checking for --enable-statline" >&5
6263 no_cache=0
6264 # Check whether --enable-statline or --disable-statline was given.
6265 if test "${enable_statline+set}" = set; then
6266 enableval="$enable_statline"
6267
6268 if test "$enableval" = yes; then
6269 ac_cv_use_statline='wxUSE_STATLINE=yes'
6270 else
6271 ac_cv_use_statline='wxUSE_STATLINE=no'
6272 fi
6273
6274 else
6275
6276 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6277 if test "x$LINE" != x ; then
6278 eval "DEFAULT_$LINE"
6279 else
6280 no_cache=1
6281 fi
6282
6283 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6284
6285 fi
6286
6287
6288 eval "$ac_cv_use_statline"
6289 if test "$no_cache" != 1; then
6290 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6291 fi
6292
6293 if test "$wxUSE_STATLINE" = yes; then
6294 echo "$ac_t""yes" 1>&6
6295 else
6296 echo "$ac_t""no" 1>&6
6297 fi
6298
6299
6300 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6301 echo "configure:6302: checking for --enable-stattext" >&5
6302 no_cache=0
6303 # Check whether --enable-stattext or --disable-stattext was given.
6304 if test "${enable_stattext+set}" = set; then
6305 enableval="$enable_stattext"
6306
6307 if test "$enableval" = yes; then
6308 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6309 else
6310 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6311 fi
6312
6313 else
6314
6315 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6316 if test "x$LINE" != x ; then
6317 eval "DEFAULT_$LINE"
6318 else
6319 no_cache=1
6320 fi
6321
6322 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6323
6324 fi
6325
6326
6327 eval "$ac_cv_use_stattext"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_STATTEXT" = yes; then
6333 echo "$ac_t""yes" 1>&6
6334 else
6335 echo "$ac_t""no" 1>&6
6336 fi
6337
6338
6339 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6340 echo "configure:6341: checking for --enable-statusbar" >&5
6341 no_cache=0
6342 # Check whether --enable-statusbar or --disable-statusbar was given.
6343 if test "${enable_statusbar+set}" = set; then
6344 enableval="$enable_statusbar"
6345
6346 if test "$enableval" = yes; then
6347 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6348 else
6349 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6350 fi
6351
6352 else
6353
6354 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6355 if test "x$LINE" != x ; then
6356 eval "DEFAULT_$LINE"
6357 else
6358 no_cache=1
6359 fi
6360
6361 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6362
6363 fi
6364
6365
6366 eval "$ac_cv_use_statusbar"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_STATUSBAR" = yes; then
6372 echo "$ac_t""yes" 1>&6
6373 else
6374 echo "$ac_t""no" 1>&6
6375 fi
6376
6377
6378 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6379 echo "configure:6380: checking for --enable-tabdialog" >&5
6380 no_cache=0
6381 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6382 if test "${enable_tabdialog+set}" = set; then
6383 enableval="$enable_tabdialog"
6384
6385 if test "$enableval" = yes; then
6386 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6387 else
6388 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6389 fi
6390
6391 else
6392
6393 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6401
6402 fi
6403
6404
6405 eval "$ac_cv_use_tabdialog"
6406 if test "$no_cache" != 1; then
6407 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6408 fi
6409
6410 if test "$wxUSE_TABDIALOG" = yes; then
6411 echo "$ac_t""yes" 1>&6
6412 else
6413 echo "$ac_t""no" 1>&6
6414 fi
6415
6416
6417 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6418 echo "configure:6419: checking for --enable-textctrl" >&5
6419 no_cache=0
6420 # Check whether --enable-textctrl or --disable-textctrl was given.
6421 if test "${enable_textctrl+set}" = set; then
6422 enableval="$enable_textctrl"
6423
6424 if test "$enableval" = yes; then
6425 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6426 else
6427 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6428 fi
6429
6430 else
6431
6432 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6433 if test "x$LINE" != x ; then
6434 eval "DEFAULT_$LINE"
6435 else
6436 no_cache=1
6437 fi
6438
6439 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6440
6441 fi
6442
6443
6444 eval "$ac_cv_use_textctrl"
6445 if test "$no_cache" != 1; then
6446 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6447 fi
6448
6449 if test "$wxUSE_TEXTCTRL" = yes; then
6450 echo "$ac_t""yes" 1>&6
6451 else
6452 echo "$ac_t""no" 1>&6
6453 fi
6454
6455
6456 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6457 echo "configure:6458: checking for --enable-togglebtn" >&5
6458 no_cache=0
6459 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6460 if test "${enable_togglebtn+set}" = set; then
6461 enableval="$enable_togglebtn"
6462
6463 if test "$enableval" = yes; then
6464 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6465 else
6466 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6467 fi
6468
6469 else
6470
6471 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6472 if test "x$LINE" != x ; then
6473 eval "DEFAULT_$LINE"
6474 else
6475 no_cache=1
6476 fi
6477
6478 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6479
6480 fi
6481
6482
6483 eval "$ac_cv_use_togglebtn"
6484 if test "$no_cache" != 1; then
6485 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6486 fi
6487
6488 if test "$wxUSE_TOGGLEBTN" = yes; then
6489 echo "$ac_t""yes" 1>&6
6490 else
6491 echo "$ac_t""no" 1>&6
6492 fi
6493
6494
6495 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6496 echo "configure:6497: checking for --enable-toolbar" >&5
6497 no_cache=0
6498 # Check whether --enable-toolbar or --disable-toolbar was given.
6499 if test "${enable_toolbar+set}" = set; then
6500 enableval="$enable_toolbar"
6501
6502 if test "$enableval" = yes; then
6503 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6504 else
6505 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6506 fi
6507
6508 else
6509
6510 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6511 if test "x$LINE" != x ; then
6512 eval "DEFAULT_$LINE"
6513 else
6514 no_cache=1
6515 fi
6516
6517 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6518
6519 fi
6520
6521
6522 eval "$ac_cv_use_toolbar"
6523 if test "$no_cache" != 1; then
6524 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6525 fi
6526
6527 if test "$wxUSE_TOOLBAR" = yes; then
6528 echo "$ac_t""yes" 1>&6
6529 else
6530 echo "$ac_t""no" 1>&6
6531 fi
6532
6533
6534 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6535 echo "configure:6536: checking for --enable-tbarnative" >&5
6536 no_cache=0
6537 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6538 if test "${enable_tbarnative+set}" = set; then
6539 enableval="$enable_tbarnative"
6540
6541 if test "$enableval" = yes; then
6542 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6543 else
6544 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6545 fi
6546
6547 else
6548
6549 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6550 if test "x$LINE" != x ; then
6551 eval "DEFAULT_$LINE"
6552 else
6553 no_cache=1
6554 fi
6555
6556 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6557
6558 fi
6559
6560
6561 eval "$ac_cv_use_tbarnative"
6562 if test "$no_cache" != 1; then
6563 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6564 fi
6565
6566 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6567 echo "$ac_t""yes" 1>&6
6568 else
6569 echo "$ac_t""no" 1>&6
6570 fi
6571
6572
6573 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6574 echo "configure:6575: checking for --enable-tbarsmpl" >&5
6575 no_cache=0
6576 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6577 if test "${enable_tbarsmpl+set}" = set; then
6578 enableval="$enable_tbarsmpl"
6579
6580 if test "$enableval" = yes; then
6581 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6582 else
6583 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6584 fi
6585
6586 else
6587
6588 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${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_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6596
6597 fi
6598
6599
6600 eval "$ac_cv_use_tbarsmpl"
6601 if test "$no_cache" != 1; then
6602 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6603 fi
6604
6605 if test "$wxUSE_TOOLBAR_SIMPLE" = 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-treectrl""... $ac_c" 1>&6
6613 echo "configure:6614: checking for --enable-treectrl" >&5
6614 no_cache=0
6615 # Check whether --enable-treectrl or --disable-treectrl was given.
6616 if test "${enable_treectrl+set}" = set; then
6617 enableval="$enable_treectrl"
6618
6619 if test "$enableval" = yes; then
6620 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6621 else
6622 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6623 fi
6624
6625 else
6626
6627 LINE=`grep "wxUSE_TREECTRL" ${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_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6635
6636 fi
6637
6638
6639 eval "$ac_cv_use_treectrl"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_TREECTRL" = 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-popupwin""... $ac_c" 1>&6
6652 echo "configure:6653: checking for --enable-popupwin" >&5
6653 no_cache=0
6654 # Check whether --enable-popupwin or --disable-popupwin was given.
6655 if test "${enable_popupwin+set}" = set; then
6656 enableval="$enable_popupwin"
6657
6658 if test "$enableval" = yes; then
6659 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6660 else
6661 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6662 fi
6663
6664 else
6665
6666 LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6674
6675 fi
6676
6677
6678 eval "$ac_cv_use_popupwin"
6679 if test "$no_cache" != 1; then
6680 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6681 fi
6682
6683 if test "$wxUSE_POPUPWIN" = yes; then
6684 echo "$ac_t""yes" 1>&6
6685 else
6686 echo "$ac_t""no" 1>&6
6687 fi
6688
6689
6690
6691
6692 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6693 echo "configure:6694: checking for --enable-commondlg" >&5
6694 no_cache=0
6695 # Check whether --enable-commondlg or --disable-commondlg was given.
6696 if test "${enable_commondlg+set}" = set; then
6697 enableval="$enable_commondlg"
6698
6699 if test "$enableval" = yes; then
6700 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6701 else
6702 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6703 fi
6704
6705 else
6706
6707 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6708 if test "x$LINE" != x ; then
6709 eval "DEFAULT_$LINE"
6710 else
6711 no_cache=1
6712 fi
6713
6714 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6715
6716 fi
6717
6718
6719 eval "$ac_cv_use_commondlg"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_COMMONDLGS" = yes; then
6725 echo "$ac_t""yes" 1>&6
6726 else
6727 echo "$ac_t""no" 1>&6
6728 fi
6729
6730
6731 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6732 echo "configure:6733: checking for --enable-choicedlg" >&5
6733 no_cache=0
6734 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6735 if test "${enable_choicedlg+set}" = set; then
6736 enableval="$enable_choicedlg"
6737
6738 if test "$enableval" = yes; then
6739 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6740 else
6741 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6742 fi
6743
6744 else
6745
6746 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6747 if test "x$LINE" != x ; then
6748 eval "DEFAULT_$LINE"
6749 else
6750 no_cache=1
6751 fi
6752
6753 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6754
6755 fi
6756
6757
6758 eval "$ac_cv_use_choicedlg"
6759 if test "$no_cache" != 1; then
6760 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6761 fi
6762
6763 if test "$wxUSE_CHOICEDLG" = yes; then
6764 echo "$ac_t""yes" 1>&6
6765 else
6766 echo "$ac_t""no" 1>&6
6767 fi
6768
6769
6770 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6771 echo "configure:6772: checking for --enable-coldlg" >&5
6772 no_cache=0
6773 # Check whether --enable-coldlg or --disable-coldlg was given.
6774 if test "${enable_coldlg+set}" = set; then
6775 enableval="$enable_coldlg"
6776
6777 if test "$enableval" = yes; then
6778 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6779 else
6780 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6781 fi
6782
6783 else
6784
6785 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6786 if test "x$LINE" != x ; then
6787 eval "DEFAULT_$LINE"
6788 else
6789 no_cache=1
6790 fi
6791
6792 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6793
6794 fi
6795
6796
6797 eval "$ac_cv_use_coldlg"
6798 if test "$no_cache" != 1; then
6799 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6800 fi
6801
6802 if test "$wxUSE_COLOURDLG" = yes; then
6803 echo "$ac_t""yes" 1>&6
6804 else
6805 echo "$ac_t""no" 1>&6
6806 fi
6807
6808
6809 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6810 echo "configure:6811: checking for --enable-filedlg" >&5
6811 no_cache=0
6812 # Check whether --enable-filedlg or --disable-filedlg was given.
6813 if test "${enable_filedlg+set}" = set; then
6814 enableval="$enable_filedlg"
6815
6816 if test "$enableval" = yes; then
6817 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6818 else
6819 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6820 fi
6821
6822 else
6823
6824 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6832
6833 fi
6834
6835
6836 eval "$ac_cv_use_filedlg"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_FILEDLG" = yes; then
6842 echo "$ac_t""yes" 1>&6
6843 else
6844 echo "$ac_t""no" 1>&6
6845 fi
6846
6847
6848 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6849 echo "configure:6850: checking for --enable-filedlg" >&5
6850 no_cache=0
6851 # Check whether --enable-filedlg or --disable-filedlg was given.
6852 if test "${enable_filedlg+set}" = set; then
6853 enableval="$enable_filedlg"
6854
6855 if test "$enableval" = yes; then
6856 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6857 else
6858 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6859 fi
6860
6861 else
6862
6863 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
6870 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6871
6872 fi
6873
6874
6875 eval "$ac_cv_use_filedlg"
6876 if test "$no_cache" != 1; then
6877 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6878 fi
6879
6880 if test "$wxUSE_FINDREPLDLG" = yes; then
6881 echo "$ac_t""yes" 1>&6
6882 else
6883 echo "$ac_t""no" 1>&6
6884 fi
6885
6886
6887 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6888 echo "configure:6889: checking for --enable-fontdlg" >&5
6889 no_cache=0
6890 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6891 if test "${enable_fontdlg+set}" = set; then
6892 enableval="$enable_fontdlg"
6893
6894 if test "$enableval" = yes; then
6895 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6896 else
6897 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6898 fi
6899
6900 else
6901
6902 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6903 if test "x$LINE" != x ; then
6904 eval "DEFAULT_$LINE"
6905 else
6906 no_cache=1
6907 fi
6908
6909 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6910
6911 fi
6912
6913
6914 eval "$ac_cv_use_fontdlg"
6915 if test "$no_cache" != 1; then
6916 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6917 fi
6918
6919 if test "$wxUSE_FONTDLG" = yes; then
6920 echo "$ac_t""yes" 1>&6
6921 else
6922 echo "$ac_t""no" 1>&6
6923 fi
6924
6925
6926 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6927 echo "configure:6928: checking for --enable-dirdlg" >&5
6928 no_cache=0
6929 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6930 if test "${enable_dirdlg+set}" = set; then
6931 enableval="$enable_dirdlg"
6932
6933 if test "$enableval" = yes; then
6934 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6935 else
6936 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6937 fi
6938
6939 else
6940
6941 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6942 if test "x$LINE" != x ; then
6943 eval "DEFAULT_$LINE"
6944 else
6945 no_cache=1
6946 fi
6947
6948 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6949
6950 fi
6951
6952
6953 eval "$ac_cv_use_dirdlg"
6954 if test "$no_cache" != 1; then
6955 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6956 fi
6957
6958 if test "$wxUSE_DIRDLG" = yes; then
6959 echo "$ac_t""yes" 1>&6
6960 else
6961 echo "$ac_t""no" 1>&6
6962 fi
6963
6964
6965 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6966 echo "configure:6967: checking for --enable-msgdlg" >&5
6967 no_cache=0
6968 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6969 if test "${enable_msgdlg+set}" = set; then
6970 enableval="$enable_msgdlg"
6971
6972 if test "$enableval" = yes; then
6973 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6974 else
6975 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6976 fi
6977
6978 else
6979
6980 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6981 if test "x$LINE" != x ; then
6982 eval "DEFAULT_$LINE"
6983 else
6984 no_cache=1
6985 fi
6986
6987 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6988
6989 fi
6990
6991
6992 eval "$ac_cv_use_msgdlg"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_MSGDLG" = yes; then
6998 echo "$ac_t""yes" 1>&6
6999 else
7000 echo "$ac_t""no" 1>&6
7001 fi
7002
7003
7004 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7005 echo "configure:7006: checking for --enable-numberdlg" >&5
7006 no_cache=0
7007 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7008 if test "${enable_numberdlg+set}" = set; then
7009 enableval="$enable_numberdlg"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7013 else
7014 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7015 fi
7016
7017 else
7018
7019 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7027
7028 fi
7029
7030
7031 eval "$ac_cv_use_numberdlg"
7032 if test "$no_cache" != 1; then
7033 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7034 fi
7035
7036 if test "$wxUSE_NUMBERDLG" = yes; then
7037 echo "$ac_t""yes" 1>&6
7038 else
7039 echo "$ac_t""no" 1>&6
7040 fi
7041
7042
7043 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7044 echo "configure:7045: checking for --enable-splash" >&5
7045 no_cache=0
7046 # Check whether --enable-splash or --disable-splash was given.
7047 if test "${enable_splash+set}" = set; then
7048 enableval="$enable_splash"
7049
7050 if test "$enableval" = yes; then
7051 ac_cv_use_splash='wxUSE_SPLASH=yes'
7052 else
7053 ac_cv_use_splash='wxUSE_SPLASH=no'
7054 fi
7055
7056 else
7057
7058 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7059 if test "x$LINE" != x ; then
7060 eval "DEFAULT_$LINE"
7061 else
7062 no_cache=1
7063 fi
7064
7065 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7066
7067 fi
7068
7069
7070 eval "$ac_cv_use_splash"
7071 if test "$no_cache" != 1; then
7072 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7073 fi
7074
7075 if test "$wxUSE_SPLASH" = yes; then
7076 echo "$ac_t""yes" 1>&6
7077 else
7078 echo "$ac_t""no" 1>&6
7079 fi
7080
7081
7082 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7083 echo "configure:7084: checking for --enable-textdlg" >&5
7084 no_cache=0
7085 # Check whether --enable-textdlg or --disable-textdlg was given.
7086 if test "${enable_textdlg+set}" = set; then
7087 enableval="$enable_textdlg"
7088
7089 if test "$enableval" = yes; then
7090 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7091 else
7092 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7093 fi
7094
7095 else
7096
7097 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7098 if test "x$LINE" != x ; then
7099 eval "DEFAULT_$LINE"
7100 else
7101 no_cache=1
7102 fi
7103
7104 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7105
7106 fi
7107
7108
7109 eval "$ac_cv_use_textdlg"
7110 if test "$no_cache" != 1; then
7111 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7112 fi
7113
7114 if test "$wxUSE_TEXTDLG" = yes; then
7115 echo "$ac_t""yes" 1>&6
7116 else
7117 echo "$ac_t""no" 1>&6
7118 fi
7119
7120
7121 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7122 echo "configure:7123: checking for --enable-tipdlg" >&5
7123 no_cache=0
7124 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7125 if test "${enable_tipdlg+set}" = set; then
7126 enableval="$enable_tipdlg"
7127
7128 if test "$enableval" = yes; then
7129 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7130 else
7131 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7132 fi
7133
7134 else
7135
7136 LINE=`grep "wxUSE_STARTUP_TIPS" ${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_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7144
7145 fi
7146
7147
7148 eval "$ac_cv_use_tipdlg"
7149 if test "$no_cache" != 1; then
7150 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7151 fi
7152
7153 if test "$wxUSE_STARTUP_TIPS" = 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-progressdlg""... $ac_c" 1>&6
7161 echo "configure:7162: checking for --enable-progressdlg" >&5
7162 no_cache=0
7163 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7164 if test "${enable_progressdlg+set}" = set; then
7165 enableval="$enable_progressdlg"
7166
7167 if test "$enableval" = yes; then
7168 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7169 else
7170 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7171 fi
7172
7173 else
7174
7175 LINE=`grep "wxUSE_PROGRESSDLG" ${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_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7183
7184 fi
7185
7186
7187 eval "$ac_cv_use_progressdlg"
7188 if test "$no_cache" != 1; then
7189 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7190 fi
7191
7192 if test "$wxUSE_PROGRESSDLG" = 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-wizarddlg""... $ac_c" 1>&6
7200 echo "configure:7201: checking for --enable-wizarddlg" >&5
7201 no_cache=0
7202 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7203 if test "${enable_wizarddlg+set}" = set; then
7204 enableval="$enable_wizarddlg"
7205
7206 if test "$enableval" = yes; then
7207 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7208 else
7209 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7210 fi
7211
7212 else
7213
7214 LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7222
7223 fi
7224
7225
7226 eval "$ac_cv_use_wizarddlg"
7227 if test "$no_cache" != 1; then
7228 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7229 fi
7230
7231 if test "$wxUSE_WIZARDDLG" = yes; then
7232 echo "$ac_t""yes" 1>&6
7233 else
7234 echo "$ac_t""no" 1>&6
7235 fi
7236
7237
7238
7239
7240 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7241 echo "configure:7242: checking for --enable-menus" >&5
7242 no_cache=0
7243 # Check whether --enable-menus or --disable-menus was given.
7244 if test "${enable_menus+set}" = set; then
7245 enableval="$enable_menus"
7246
7247 if test "$enableval" = yes; then
7248 ac_cv_use_menus='wxUSE_MENUS=yes'
7249 else
7250 ac_cv_use_menus='wxUSE_MENUS=no'
7251 fi
7252
7253 else
7254
7255 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7256 if test "x$LINE" != x ; then
7257 eval "DEFAULT_$LINE"
7258 else
7259 no_cache=1
7260 fi
7261
7262 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7263
7264 fi
7265
7266
7267 eval "$ac_cv_use_menus"
7268 if test "$no_cache" != 1; then
7269 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7270 fi
7271
7272 if test "$wxUSE_MENUS" = yes; then
7273 echo "$ac_t""yes" 1>&6
7274 else
7275 echo "$ac_t""no" 1>&6
7276 fi
7277
7278
7279 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7280 echo "configure:7281: checking for --enable-miniframe" >&5
7281 no_cache=0
7282 # Check whether --enable-miniframe or --disable-miniframe was given.
7283 if test "${enable_miniframe+set}" = set; then
7284 enableval="$enable_miniframe"
7285
7286 if test "$enableval" = yes; then
7287 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7288 else
7289 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7290 fi
7291
7292 else
7293
7294 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7295 if test "x$LINE" != x ; then
7296 eval "DEFAULT_$LINE"
7297 else
7298 no_cache=1
7299 fi
7300
7301 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7302
7303 fi
7304
7305
7306 eval "$ac_cv_use_miniframe"
7307 if test "$no_cache" != 1; then
7308 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7309 fi
7310
7311 if test "$wxUSE_MINIFRAME" = yes; then
7312 echo "$ac_t""yes" 1>&6
7313 else
7314 echo "$ac_t""no" 1>&6
7315 fi
7316
7317
7318 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7319 echo "configure:7320: checking for --enable-tooltips" >&5
7320 no_cache=0
7321 # Check whether --enable-tooltips or --disable-tooltips was given.
7322 if test "${enable_tooltips+set}" = set; then
7323 enableval="$enable_tooltips"
7324
7325 if test "$enableval" = yes; then
7326 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7327 else
7328 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7329 fi
7330
7331 else
7332
7333 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7334 if test "x$LINE" != x ; then
7335 eval "DEFAULT_$LINE"
7336 else
7337 no_cache=1
7338 fi
7339
7340 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7341
7342 fi
7343
7344
7345 eval "$ac_cv_use_tooltips"
7346 if test "$no_cache" != 1; then
7347 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7348 fi
7349
7350 if test "$wxUSE_TOOLTIPS" = yes; then
7351 echo "$ac_t""yes" 1>&6
7352 else
7353 echo "$ac_t""no" 1>&6
7354 fi
7355
7356
7357 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7358 echo "configure:7359: checking for --enable-splines" >&5
7359 no_cache=0
7360 # Check whether --enable-splines or --disable-splines was given.
7361 if test "${enable_splines+set}" = set; then
7362 enableval="$enable_splines"
7363
7364 if test "$enableval" = yes; then
7365 ac_cv_use_splines='wxUSE_SPLINES=yes'
7366 else
7367 ac_cv_use_splines='wxUSE_SPLINES=no'
7368 fi
7369
7370 else
7371
7372 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7373 if test "x$LINE" != x ; then
7374 eval "DEFAULT_$LINE"
7375 else
7376 no_cache=1
7377 fi
7378
7379 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7380
7381 fi
7382
7383
7384 eval "$ac_cv_use_splines"
7385 if test "$no_cache" != 1; then
7386 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7387 fi
7388
7389 if test "$wxUSE_SPLINES" = yes; then
7390 echo "$ac_t""yes" 1>&6
7391 else
7392 echo "$ac_t""no" 1>&6
7393 fi
7394
7395
7396 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7397 echo "configure:7398: checking for --enable-validators" >&5
7398 no_cache=0
7399 # Check whether --enable-validators or --disable-validators was given.
7400 if test "${enable_validators+set}" = set; then
7401 enableval="$enable_validators"
7402
7403 if test "$enableval" = yes; then
7404 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7405 else
7406 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7407 fi
7408
7409 else
7410
7411 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7412 if test "x$LINE" != x ; then
7413 eval "DEFAULT_$LINE"
7414 else
7415 no_cache=1
7416 fi
7417
7418 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7419
7420 fi
7421
7422
7423 eval "$ac_cv_use_validators"
7424 if test "$no_cache" != 1; then
7425 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7426 fi
7427
7428 if test "$wxUSE_VALIDATORS" = yes; then
7429 echo "$ac_t""yes" 1>&6
7430 else
7431 echo "$ac_t""no" 1>&6
7432 fi
7433
7434
7435 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7436 echo "configure:7437: checking for --enable-busyinfo" >&5
7437 no_cache=0
7438 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7439 if test "${enable_busyinfo+set}" = set; then
7440 enableval="$enable_busyinfo"
7441
7442 if test "$enableval" = yes; then
7443 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7444 else
7445 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7446 fi
7447
7448 else
7449
7450 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7451 if test "x$LINE" != x ; then
7452 eval "DEFAULT_$LINE"
7453 else
7454 no_cache=1
7455 fi
7456
7457 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7458
7459 fi
7460
7461
7462 eval "$ac_cv_use_busyinfo"
7463 if test "$no_cache" != 1; then
7464 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7465 fi
7466
7467 if test "$wxUSE_BUSYINFO" = yes; then
7468 echo "$ac_t""yes" 1>&6
7469 else
7470 echo "$ac_t""no" 1>&6
7471 fi
7472
7473
7474 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7475 echo "configure:7476: checking for --enable-joystick" >&5
7476 no_cache=0
7477 # Check whether --enable-joystick or --disable-joystick was given.
7478 if test "${enable_joystick+set}" = set; then
7479 enableval="$enable_joystick"
7480
7481 if test "$enableval" = yes; then
7482 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7483 else
7484 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7485 fi
7486
7487 else
7488
7489 LINE=`grep "wxUSE_JOYSTICK" ${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_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7497
7498 fi
7499
7500
7501 eval "$ac_cv_use_joystick"
7502 if test "$no_cache" != 1; then
7503 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7504 fi
7505
7506 if test "$wxUSE_JOYSTICK" = 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-metafile""... $ac_c" 1>&6
7514 echo "configure:7515: checking for --enable-metafile" >&5
7515 no_cache=0
7516 # Check whether --enable-metafile or --disable-metafile was given.
7517 if test "${enable_metafile+set}" = set; then
7518 enableval="$enable_metafile"
7519
7520 if test "$enableval" = yes; then
7521 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7522 else
7523 ac_cv_use_metafile='wxUSE_METAFILE=no'
7524 fi
7525
7526 else
7527
7528 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7536
7537 fi
7538
7539
7540 eval "$ac_cv_use_metafile"
7541 if test "$no_cache" != 1; then
7542 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7543 fi
7544
7545 if test "$wxUSE_METAFILE" = 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-dragimage""... $ac_c" 1>&6
7553 echo "configure:7554: checking for --enable-dragimage" >&5
7554 no_cache=0
7555 # Check whether --enable-dragimage or --disable-dragimage was given.
7556 if test "${enable_dragimage+set}" = set; then
7557 enableval="$enable_dragimage"
7558
7559 if test "$enableval" = yes; then
7560 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7561 else
7562 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7563 fi
7564
7565 else
7566
7567 LINE=`grep "wxUSE_DRAGIMAGE" ${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_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7575
7576 fi
7577
7578
7579 eval "$ac_cv_use_dragimage"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_DRAGIMAGE" = yes; then
7585 echo "$ac_t""yes" 1>&6
7586 else
7587 echo "$ac_t""no" 1>&6
7588 fi
7589
7590
7591
7592
7593 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7594 echo "configure:7595: checking for --enable-palette" >&5
7595 no_cache=0
7596 # Check whether --enable-palette or --disable-palette was given.
7597 if test "${enable_palette+set}" = set; then
7598 enableval="$enable_palette"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_palette='wxUSE_PALETTE=yes'
7602 else
7603 ac_cv_use_palette='wxUSE_PALETTE=no'
7604 fi
7605
7606 else
7607
7608 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7616
7617 fi
7618
7619
7620 eval "$ac_cv_use_palette"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_PALETTE" = yes; then
7626 echo "$ac_t""yes" 1>&6
7627 else
7628 echo "$ac_t""no" 1>&6
7629 fi
7630
7631
7632 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7633 echo "configure:7634: checking for --enable-image" >&5
7634 no_cache=0
7635 # Check whether --enable-image or --disable-image was given.
7636 if test "${enable_image+set}" = set; then
7637 enableval="$enable_image"
7638
7639 if test "$enableval" = yes; then
7640 ac_cv_use_image='wxUSE_IMAGE=yes'
7641 else
7642 ac_cv_use_image='wxUSE_IMAGE=no'
7643 fi
7644
7645 else
7646
7647 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7655
7656 fi
7657
7658
7659 eval "$ac_cv_use_image"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_IMAGE" = yes; then
7665 echo "$ac_t""yes" 1>&6
7666 else
7667 echo "$ac_t""no" 1>&6
7668 fi
7669
7670
7671 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7672 echo "configure:7673: checking for --enable-gif" >&5
7673 no_cache=0
7674 # Check whether --enable-gif or --disable-gif was given.
7675 if test "${enable_gif+set}" = set; then
7676 enableval="$enable_gif"
7677
7678 if test "$enableval" = yes; then
7679 ac_cv_use_gif='wxUSE_GIF=yes'
7680 else
7681 ac_cv_use_gif='wxUSE_GIF=no'
7682 fi
7683
7684 else
7685
7686 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7694
7695 fi
7696
7697
7698 eval "$ac_cv_use_gif"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_GIF" = yes; then
7704 echo "$ac_t""yes" 1>&6
7705 else
7706 echo "$ac_t""no" 1>&6
7707 fi
7708
7709
7710 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7711 echo "configure:7712: checking for --enable-pcx" >&5
7712 no_cache=0
7713 # Check whether --enable-pcx or --disable-pcx was given.
7714 if test "${enable_pcx+set}" = set; then
7715 enableval="$enable_pcx"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_pcx='wxUSE_PCX=yes'
7719 else
7720 ac_cv_use_pcx='wxUSE_PCX=no'
7721 fi
7722
7723 else
7724
7725 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7733
7734 fi
7735
7736
7737 eval "$ac_cv_use_pcx"
7738 if test "$no_cache" != 1; then
7739 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7740 fi
7741
7742 if test "$wxUSE_PCX" = yes; then
7743 echo "$ac_t""yes" 1>&6
7744 else
7745 echo "$ac_t""no" 1>&6
7746 fi
7747
7748
7749 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7750 echo "configure:7751: checking for --enable-pnm" >&5
7751 no_cache=0
7752 # Check whether --enable-pnm or --disable-pnm was given.
7753 if test "${enable_pnm+set}" = set; then
7754 enableval="$enable_pnm"
7755
7756 if test "$enableval" = yes; then
7757 ac_cv_use_pnm='wxUSE_PNM=yes'
7758 else
7759 ac_cv_use_pnm='wxUSE_PNM=no'
7760 fi
7761
7762 else
7763
7764 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7772
7773 fi
7774
7775
7776 eval "$ac_cv_use_pnm"
7777 if test "$no_cache" != 1; then
7778 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7779 fi
7780
7781 if test "$wxUSE_PNM" = yes; then
7782 echo "$ac_t""yes" 1>&6
7783 else
7784 echo "$ac_t""no" 1>&6
7785 fi
7786
7787
7788 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7789 echo "configure:7790: checking for --enable-pnm" >&5
7790 no_cache=0
7791 # Check whether --enable-pnm or --disable-pnm was given.
7792 if test "${enable_pnm+set}" = set; then
7793 enableval="$enable_pnm"
7794
7795 if test "$enableval" = yes; then
7796 ac_cv_use_pnm='wxUSE_XPM=yes'
7797 else
7798 ac_cv_use_pnm='wxUSE_XPM=no'
7799 fi
7800
7801 else
7802
7803 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7804 if test "x$LINE" != x ; then
7805 eval "DEFAULT_$LINE"
7806 else
7807 no_cache=1
7808 fi
7809
7810 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7811
7812 fi
7813
7814
7815 eval "$ac_cv_use_pnm"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_XPM" = yes; then
7821 echo "$ac_t""yes" 1>&6
7822 else
7823 echo "$ac_t""no" 1>&6
7824 fi
7825
7826
7827 fi
7828
7829
7830 echo "saving argument cache $wx_arg_cache_file"
7831 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7832
7833
7834
7835 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7836 echo "configure:7837: checking for toolkit" >&5
7837
7838 if test "$wxUSE_GUI" = "yes"; then
7839
7840 if test "$USE_BEOS" = 1; then
7841 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7842 fi
7843
7844 if test "$TOOLKIT_GIVEN" = 1; then
7845 for toolkit in `echo $ALL_TOOLKITS`; do
7846 var=wxUSE_$toolkit
7847 eval "value=\$${var}"
7848 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7849 done
7850 else
7851 for toolkit in `echo $ALL_TOOLKITS`; do
7852 if test "$has_toolkit_in_cache" != 1; then
7853 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7854 else
7855 var=DEFAULT_wxUSE_$toolkit
7856 fi
7857 eval "wxUSE_$toolkit=\$${var}"
7858 done
7859 fi
7860
7861 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7862 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
7863
7864 case "${host}" in
7865 *-pc-os2_emx | *-pc-os2-emx )
7866 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7867 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7868 LEX_STEM="lexyy"
7869 ;;
7870 *)
7871 PATH_IFS=':'
7872 LEX_STEM="lex.yy"
7873 ;;
7874 esac
7875
7876 case "$NUM_TOOLKITS" in
7877 1)
7878 ;;
7879 0)
7880 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7881 ;;
7882 *)
7883 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7884 esac
7885
7886 for toolkit in `echo $ALL_TOOLKITS`; do
7887 var=wxUSE_$toolkit
7888 eval "value=\$${var}"
7889 if test "x$value" != x; then
7890 cache_var=CACHE_$toolkit
7891 eval "cache=\$${cache_var}"
7892 if test "$cache" = 1; then
7893 echo "$var=$value" >> ${wx_arg_cache_file}
7894 fi
7895 if test "$value" = 1; then
7896 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7897 echo "$ac_t""$toolkit_echo" 1>&6
7898 fi
7899 fi
7900 done
7901 else
7902 PATH_IFS=':'
7903 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7904 fi
7905
7906
7907 cat > confcache <<\EOF
7908 # This file is a shell script that caches the results of configure
7909 # tests run on this system so they can be shared between configure
7910 # scripts and configure runs. It is not useful on other systems.
7911 # If it contains results you don't want to keep, you may remove or edit it.
7912 #
7913 # By default, configure uses ./config.cache as the cache file,
7914 # creating it if it does not exist already. You can give configure
7915 # the --cache-file=FILE option to use a different cache file; that is
7916 # what configure does when it calls configure scripts in
7917 # subdirectories, so they share the cache.
7918 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7919 # config.status only pays attention to the cache file if you give it the
7920 # --recheck option to rerun configure.
7921 #
7922 EOF
7923 # The following way of writing the cache mishandles newlines in values,
7924 # but we know of no workaround that is simple, portable, and efficient.
7925 # So, don't put newlines in cache variables' values.
7926 # Ultrix sh set writes to stderr and can't be redirected directly,
7927 # and sets the high bit in the cache file unless we assign to the vars.
7928 (set) 2>&1 |
7929 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7930 *ac_space=\ *)
7931 # `set' does not quote correctly, so add quotes (double-quote substitution
7932 # turns \\\\ into \\, and sed turns \\ into \).
7933 sed -n \
7934 -e "s/'/'\\\\''/g" \
7935 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7936 ;;
7937 *)
7938 # `set' quotes correctly as required by POSIX, so do not add quotes.
7939 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7940 ;;
7941 esac >> confcache
7942 if cmp -s $cache_file confcache; then
7943 :
7944 else
7945 if test -w $cache_file; then
7946 echo "updating cache $cache_file"
7947 cat confcache > $cache_file
7948 else
7949 echo "not updating unwritable cache $cache_file"
7950 fi
7951 fi
7952 rm -f confcache
7953
7954
7955 if test "$build" != "$host" ; then
7956 if test "$USE_WIN32" = 1 ; then
7957 CC=$host_alias-gcc
7958 CXX=$host_alias-c++
7959 AR=$host_alias-ar
7960 RANLIB=$host_alias-ranlib
7961 DLLTOOL=$host_alias-dlltool
7962 RESCOMP=$host_alias-windres
7963 LD=$host_alias-ld
7964 NM=$host_alias-nm
7965 STRIP=$host_alias-strip
7966 else
7967 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7968 fi
7969 fi
7970
7971 # Extract the first word of "gcc", so it can be a program name with args.
7972 set dummy gcc; ac_word=$2
7973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7974 echo "configure:7975: checking for $ac_word" >&5
7975 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7976 echo $ac_n "(cached) $ac_c" 1>&6
7977 else
7978 if test -n "$CC"; then
7979 ac_cv_prog_CC="$CC" # Let the user override the test.
7980 else
7981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7982 ac_dummy="$PATH"
7983 for ac_dir in $ac_dummy; do
7984 test -z "$ac_dir" && ac_dir=.
7985 if test -f $ac_dir/$ac_word; then
7986 ac_cv_prog_CC="gcc"
7987 break
7988 fi
7989 done
7990 IFS="$ac_save_ifs"
7991 fi
7992 fi
7993 CC="$ac_cv_prog_CC"
7994 if test -n "$CC"; then
7995 echo "$ac_t""$CC" 1>&6
7996 else
7997 echo "$ac_t""no" 1>&6
7998 fi
7999
8000 if test -z "$CC"; then
8001 # Extract the first word of "cc", so it can be a program name with args.
8002 set dummy cc; ac_word=$2
8003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8004 echo "configure:8005: checking for $ac_word" >&5
8005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8007 else
8008 if test -n "$CC"; then
8009 ac_cv_prog_CC="$CC" # Let the user override the test.
8010 else
8011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8012 ac_prog_rejected=no
8013 ac_dummy="$PATH"
8014 for ac_dir in $ac_dummy; do
8015 test -z "$ac_dir" && ac_dir=.
8016 if test -f $ac_dir/$ac_word; then
8017 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8018 ac_prog_rejected=yes
8019 continue
8020 fi
8021 ac_cv_prog_CC="cc"
8022 break
8023 fi
8024 done
8025 IFS="$ac_save_ifs"
8026 if test $ac_prog_rejected = yes; then
8027 # We found a bogon in the path, so make sure we never use it.
8028 set dummy $ac_cv_prog_CC
8029 shift
8030 if test $# -gt 0; then
8031 # We chose a different compiler from the bogus one.
8032 # However, it has the same basename, so the bogon will be chosen
8033 # first if we set CC to just the basename; use the full file name.
8034 shift
8035 set dummy "$ac_dir/$ac_word" "$@"
8036 shift
8037 ac_cv_prog_CC="$@"
8038 fi
8039 fi
8040 fi
8041 fi
8042 CC="$ac_cv_prog_CC"
8043 if test -n "$CC"; then
8044 echo "$ac_t""$CC" 1>&6
8045 else
8046 echo "$ac_t""no" 1>&6
8047 fi
8048
8049 if test -z "$CC"; then
8050 case "`uname -s`" in
8051 *win32* | *WIN32*)
8052 # Extract the first word of "cl", so it can be a program name with args.
8053 set dummy cl; ac_word=$2
8054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8055 echo "configure:8056: checking for $ac_word" >&5
8056 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8057 echo $ac_n "(cached) $ac_c" 1>&6
8058 else
8059 if test -n "$CC"; then
8060 ac_cv_prog_CC="$CC" # Let the user override the test.
8061 else
8062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8063 ac_dummy="$PATH"
8064 for ac_dir in $ac_dummy; do
8065 test -z "$ac_dir" && ac_dir=.
8066 if test -f $ac_dir/$ac_word; then
8067 ac_cv_prog_CC="cl"
8068 break
8069 fi
8070 done
8071 IFS="$ac_save_ifs"
8072 fi
8073 fi
8074 CC="$ac_cv_prog_CC"
8075 if test -n "$CC"; then
8076 echo "$ac_t""$CC" 1>&6
8077 else
8078 echo "$ac_t""no" 1>&6
8079 fi
8080 ;;
8081 esac
8082 fi
8083 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8084 fi
8085
8086 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8087 echo "configure:8088: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8088
8089 ac_ext=c
8090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8091 ac_cpp='$CPP $CPPFLAGS'
8092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8094 cross_compiling=$ac_cv_prog_cc_cross
8095
8096 cat > conftest.$ac_ext << EOF
8097
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100
8101 main(){return(0);}
8102 EOF
8103 if { (eval echo configure:8104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8104 ac_cv_prog_cc_works=yes
8105 # If we can't run a trivial program, we are probably using a cross compiler.
8106 if (./conftest; exit) 2>/dev/null; then
8107 ac_cv_prog_cc_cross=no
8108 else
8109 ac_cv_prog_cc_cross=yes
8110 fi
8111 else
8112 echo "configure: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8114 ac_cv_prog_cc_works=no
8115 fi
8116 rm -fr conftest*
8117 ac_ext=c
8118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8119 ac_cpp='$CPP $CPPFLAGS'
8120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8122 cross_compiling=$ac_cv_prog_cc_cross
8123
8124 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8125 if test $ac_cv_prog_cc_works = no; then
8126 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8127 fi
8128 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8129 echo "configure:8130: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8130 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8131 cross_compiling=$ac_cv_prog_cc_cross
8132
8133 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8134 echo "configure:8135: checking whether we are using GNU C" >&5
8135 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8136 echo $ac_n "(cached) $ac_c" 1>&6
8137 else
8138 cat > conftest.c <<EOF
8139 #ifdef __GNUC__
8140 yes;
8141 #endif
8142 EOF
8143 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8144 ac_cv_prog_gcc=yes
8145 else
8146 ac_cv_prog_gcc=no
8147 fi
8148 fi
8149
8150 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8151
8152 if test $ac_cv_prog_gcc = yes; then
8153 GCC=yes
8154 else
8155 GCC=
8156 fi
8157
8158 ac_test_CFLAGS="${CFLAGS+set}"
8159 ac_save_CFLAGS="$CFLAGS"
8160 CFLAGS=
8161 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8162 echo "configure:8163: checking whether ${CC-cc} accepts -g" >&5
8163 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8165 else
8166 echo 'void f(){}' > conftest.c
8167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8168 ac_cv_prog_cc_g=yes
8169 else
8170 ac_cv_prog_cc_g=no
8171 fi
8172 rm -f conftest*
8173
8174 fi
8175
8176 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8177 if test "$ac_test_CFLAGS" = set; then
8178 CFLAGS="$ac_save_CFLAGS"
8179 elif test $ac_cv_prog_cc_g = yes; then
8180 if test "$GCC" = yes; then
8181 CFLAGS="-g -O2"
8182 else
8183 CFLAGS="-g"
8184 fi
8185 else
8186 if test "$GCC" = yes; then
8187 CFLAGS="-O2"
8188 else
8189 CFLAGS=
8190 fi
8191 fi
8192
8193
8194 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8195
8196 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8197 echo "configure:8198: checking how to run the C preprocessor" >&5
8198 # On Suns, sometimes $CPP names a directory.
8199 if test -n "$CPP" && test -d "$CPP"; then
8200 CPP=
8201 fi
8202 if test -z "$CPP"; then
8203 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8205 else
8206 # This must be in double quotes, not single quotes, because CPP may get
8207 # substituted into the Makefile and "${CC-cc}" will confuse make.
8208 CPP="${CC-cc} -E"
8209 # On the NeXT, cc -E runs the code through the compiler's parser,
8210 # not just through cpp.
8211 cat > conftest.$ac_ext <<EOF
8212 #line 8213 "configure"
8213 #include "confdefs.h"
8214 #include <assert.h>
8215 Syntax Error
8216 EOF
8217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8218 { (eval echo configure:8219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8220 if test -z "$ac_err"; then
8221 :
8222 else
8223 echo "$ac_err" >&5
8224 echo "configure: failed program was:" >&5
8225 cat conftest.$ac_ext >&5
8226 rm -rf conftest*
8227 CPP="${CC-cc} -E -traditional-cpp"
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 #include <assert.h>
8232 Syntax Error
8233 EOF
8234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8235 { (eval echo configure:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8237 if test -z "$ac_err"; then
8238 :
8239 else
8240 echo "$ac_err" >&5
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8243 rm -rf conftest*
8244 CPP="${CC-cc} -nologo -E"
8245 cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure"
8247 #include "confdefs.h"
8248 #include <assert.h>
8249 Syntax Error
8250 EOF
8251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8252 { (eval echo configure:8253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8254 if test -z "$ac_err"; then
8255 :
8256 else
8257 echo "$ac_err" >&5
8258 echo "configure: failed program was:" >&5
8259 cat conftest.$ac_ext >&5
8260 rm -rf conftest*
8261 CPP=/lib/cpp
8262 fi
8263 rm -f conftest*
8264 fi
8265 rm -f conftest*
8266 fi
8267 rm -f conftest*
8268 ac_cv_prog_CPP="$CPP"
8269 fi
8270 CPP="$ac_cv_prog_CPP"
8271 else
8272 ac_cv_prog_CPP="$CPP"
8273 fi
8274 echo "$ac_t""$CPP" 1>&6
8275
8276 if test $ac_cv_prog_gcc = yes; then
8277 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8278 echo "configure:8279: checking whether ${CC-cc} needs -traditional" >&5
8279 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8280 echo $ac_n "(cached) $ac_c" 1>&6
8281 else
8282 ac_pattern="Autoconf.*'x'"
8283 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8286 #include <sgtty.h>
8287 Autoconf TIOCGETP
8288 EOF
8289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8290 egrep "$ac_pattern" >/dev/null 2>&1; then
8291 rm -rf conftest*
8292 ac_cv_prog_gcc_traditional=yes
8293 else
8294 rm -rf conftest*
8295 ac_cv_prog_gcc_traditional=no
8296 fi
8297 rm -f conftest*
8298
8299
8300 if test $ac_cv_prog_gcc_traditional = no; then
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 #include <termio.h>
8305 Autoconf TCGETA
8306 EOF
8307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308 egrep "$ac_pattern" >/dev/null 2>&1; then
8309 rm -rf conftest*
8310 ac_cv_prog_gcc_traditional=yes
8311 fi
8312 rm -f conftest*
8313
8314 fi
8315 fi
8316
8317 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8318 if test $ac_cv_prog_gcc_traditional = yes; then
8319 CC="$CC -traditional"
8320 fi
8321 fi
8322
8323
8324
8325 ac_ext=C
8326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8327 ac_cpp='$CXXCPP $CPPFLAGS'
8328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8329 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8330 cross_compiling=$ac_cv_prog_cxx_cross
8331
8332
8333 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8334 do
8335 # Extract the first word of "$ac_prog", so it can be a program name with args.
8336 set dummy $ac_prog; ac_word=$2
8337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8338 echo "configure:8339: checking for $ac_word" >&5
8339 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8341 else
8342 if test -n "$CXX"; then
8343 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8344 else
8345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8346 ac_dummy="$PATH"
8347 for ac_dir in $ac_dummy; do
8348 test -z "$ac_dir" && ac_dir=.
8349 if test -f $ac_dir/$ac_word; then
8350 ac_cv_prog_CXX="$ac_prog"
8351 break
8352 fi
8353 done
8354 IFS="$ac_save_ifs"
8355 fi
8356 fi
8357 CXX="$ac_cv_prog_CXX"
8358 if test -n "$CXX"; then
8359 echo "$ac_t""$CXX" 1>&6
8360 else
8361 echo "$ac_t""no" 1>&6
8362 fi
8363
8364 test -n "$CXX" && break
8365 done
8366 test -n "$CXX" || CXX="gcc"
8367
8368
8369 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8370 echo "configure:8371: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8371
8372 ac_ext=C
8373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8374 ac_cpp='$CXXCPP $CPPFLAGS'
8375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8377 cross_compiling=$ac_cv_prog_cxx_cross
8378
8379 cat > conftest.$ac_ext << EOF
8380
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383
8384 int main(){return(0);}
8385 EOF
8386 if { (eval echo configure:8387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387 ac_cv_prog_cxx_works=yes
8388 # If we can't run a trivial program, we are probably using a cross compiler.
8389 if (./conftest; exit) 2>/dev/null; then
8390 ac_cv_prog_cxx_cross=no
8391 else
8392 ac_cv_prog_cxx_cross=yes
8393 fi
8394 else
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 ac_cv_prog_cxx_works=no
8398 fi
8399 rm -fr conftest*
8400 ac_ext=C
8401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8402 ac_cpp='$CXXCPP $CPPFLAGS'
8403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8405 cross_compiling=$ac_cv_prog_cxx_cross
8406
8407 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8408 if test $ac_cv_prog_cxx_works = no; then
8409 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8410 fi
8411 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8412 echo "configure:8413: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8413 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8414 cross_compiling=$ac_cv_prog_cxx_cross
8415
8416 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8417 echo "configure:8418: checking whether we are using GNU C++" >&5
8418 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8420 else
8421 cat > conftest.C <<EOF
8422 #ifdef __GNUC__
8423 yes;
8424 #endif
8425 EOF
8426 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8427 ac_cv_prog_gxx=yes
8428 else
8429 ac_cv_prog_gxx=no
8430 fi
8431 fi
8432
8433 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8434
8435 if test $ac_cv_prog_gxx = yes; then
8436 GXX=yes
8437 else
8438 GXX=
8439 fi
8440
8441 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8442 ac_save_CXXFLAGS="$CXXFLAGS"
8443 CXXFLAGS=
8444 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8445 echo "configure:8446: checking whether ${CXX-g++} accepts -g" >&5
8446 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8447 echo $ac_n "(cached) $ac_c" 1>&6
8448 else
8449 echo 'void f(){}' > conftest.cc
8450 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8451 ac_cv_prog_cxx_g=yes
8452 else
8453 ac_cv_prog_cxx_g=no
8454 fi
8455 rm -f conftest*
8456
8457 fi
8458
8459 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8460 if test "$ac_test_CXXFLAGS" = set; then
8461 CXXFLAGS="$ac_save_CXXFLAGS"
8462 elif test $ac_cv_prog_cxx_g = yes; then
8463 if test "$GXX" = yes; then
8464 CXXFLAGS="-g -O2"
8465 else
8466 CXXFLAGS="-g"
8467 fi
8468 else
8469 if test "$GXX" = yes; then
8470 CXXFLAGS="-O2"
8471 else
8472 CXXFLAGS=
8473 fi
8474 fi
8475
8476
8477 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8478
8479 ac_ext=c
8480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8481 ac_cpp='$CPP $CPPFLAGS'
8482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8484 cross_compiling=$ac_cv_prog_cc_cross
8485
8486
8487 # Extract the first word of "ranlib", so it can be a program name with args.
8488 set dummy ranlib; ac_word=$2
8489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8490 echo "configure:8491: checking for $ac_word" >&5
8491 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8493 else
8494 if test -n "$RANLIB"; then
8495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8496 else
8497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8498 ac_dummy="$PATH"
8499 for ac_dir in $ac_dummy; do
8500 test -z "$ac_dir" && ac_dir=.
8501 if test -f $ac_dir/$ac_word; then
8502 ac_cv_prog_RANLIB="ranlib"
8503 break
8504 fi
8505 done
8506 IFS="$ac_save_ifs"
8507 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8508 fi
8509 fi
8510 RANLIB="$ac_cv_prog_RANLIB"
8511 if test -n "$RANLIB"; then
8512 echo "$ac_t""$RANLIB" 1>&6
8513 else
8514 echo "$ac_t""no" 1>&6
8515 fi
8516
8517
8518 # Extract the first word of "ar", so it can be a program name with args.
8519 set dummy ar; ac_word=$2
8520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8521 echo "configure:8522: checking for $ac_word" >&5
8522 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8524 else
8525 if test -n "$AR"; then
8526 ac_cv_prog_AR="$AR" # Let the user override the test.
8527 else
8528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8529 ac_dummy="$PATH"
8530 for ac_dir in $ac_dummy; do
8531 test -z "$ac_dir" && ac_dir=.
8532 if test -f $ac_dir/$ac_word; then
8533 ac_cv_prog_AR="ar"
8534 break
8535 fi
8536 done
8537 IFS="$ac_save_ifs"
8538 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8539 fi
8540 fi
8541 AR="$ac_cv_prog_AR"
8542 if test -n "$AR"; then
8543 echo "$ac_t""$AR" 1>&6
8544 else
8545 echo "$ac_t""no" 1>&6
8546 fi
8547
8548
8549 # Find a good install program. We prefer a C program (faster),
8550 # so one script is as good as another. But avoid the broken or
8551 # incompatible versions:
8552 # SysV /etc/install, /usr/sbin/install
8553 # SunOS /usr/etc/install
8554 # IRIX /sbin/install
8555 # AIX /bin/install
8556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8559 # ./install, which can be erroneously created by make from ./install.sh.
8560 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8561 echo "configure:8562: checking for a BSD compatible install" >&5
8562 if test -z "$INSTALL"; then
8563 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8564 echo $ac_n "(cached) $ac_c" 1>&6
8565 else
8566 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8567 for ac_dir in $PATH; do
8568 # Account for people who put trailing slashes in PATH elements.
8569 case "$ac_dir/" in
8570 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8571 *)
8572 # OSF1 and SCO ODT 3.0 have their own names for install.
8573 # Don't use installbsd from OSF since it installs stuff as root
8574 # by default.
8575 for ac_prog in ginstall scoinst install; do
8576 if test -f $ac_dir/$ac_prog; then
8577 if test $ac_prog = install &&
8578 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8579 # AIX install. It has an incompatible calling convention.
8580 :
8581 else
8582 ac_cv_path_install="$ac_dir/$ac_prog -c"
8583 break 2
8584 fi
8585 fi
8586 done
8587 ;;
8588 esac
8589 done
8590 IFS="$ac_save_IFS"
8591
8592 fi
8593 if test "${ac_cv_path_install+set}" = set; then
8594 INSTALL="$ac_cv_path_install"
8595 else
8596 # As a last resort, use the slow shell script. We don't cache a
8597 # path for INSTALL within a source directory, because that will
8598 # break other packages using the cache if that directory is
8599 # removed, or if the path is relative.
8600 INSTALL="$ac_install_sh"
8601 fi
8602 fi
8603 echo "$ac_t""$INSTALL" 1>&6
8604
8605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8606 # It thinks the first close brace ends the variable substitution.
8607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8608
8609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8610
8611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8612
8613 case "${host}" in
8614
8615 powerpc-*-darwin* )
8616 INSTALL_PROGRAM="cp -fp"
8617 INSTALL_DATA="cp -fp"
8618 ;;
8619 *)
8620 ;;
8621 esac
8622
8623 # Extract the first word of "strip", so it can be a program name with args.
8624 set dummy strip; ac_word=$2
8625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8626 echo "configure:8627: checking for $ac_word" >&5
8627 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8629 else
8630 if test -n "$STRIP"; then
8631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8632 else
8633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8634 ac_dummy="$PATH"
8635 for ac_dir in $ac_dummy; do
8636 test -z "$ac_dir" && ac_dir=.
8637 if test -f $ac_dir/$ac_word; then
8638 ac_cv_prog_STRIP="strip"
8639 break
8640 fi
8641 done
8642 IFS="$ac_save_ifs"
8643 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8644 fi
8645 fi
8646 STRIP="$ac_cv_prog_STRIP"
8647 if test -n "$STRIP"; then
8648 echo "$ac_t""$STRIP" 1>&6
8649 else
8650 echo "$ac_t""no" 1>&6
8651 fi
8652
8653
8654 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8655 echo "configure:8656: checking make for VPATH support" >&5
8656 cat - << EOF > confMake
8657 check : file
8658 cp \$? \$@
8659 cp \$? final_file
8660 EOF
8661
8662 if test ! -d sub ; then
8663 mkdir sub
8664 fi
8665 echo dummy > sub/file
8666 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8667 RESULT=$?
8668 rm -f sub/file check final_file confMake
8669 rmdir sub
8670 if test "$RESULT" = 0; then
8671 echo "$ac_t""yes" 1>&6
8672 else
8673 echo "$ac_t""no" 1>&6
8674 { echo "configure: error:
8675 You need a make-utility that is able to use the variable
8676 VPATH correctly.
8677 If your version of make does not support VPATH correctly,
8678 please install GNU-make (possibly as gmake), and start
8679 configure with the following command:
8680 export MAKE=gmake; ./configure for sh-type shells
8681 setenv MAKE gmake; ./configure for csh-type shells
8682 Also please do remember to use gmake in this case every time
8683 you are trying to compile.
8684 " 1>&2; exit 1; }
8685 fi
8686
8687 for ac_prog in 'bison -y' byacc
8688 do
8689 # Extract the first word of "$ac_prog", so it can be a program name with args.
8690 set dummy $ac_prog; ac_word=$2
8691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8692 echo "configure:8693: checking for $ac_word" >&5
8693 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
8695 else
8696 if test -n "$YACC"; then
8697 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8698 else
8699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8700 ac_dummy="$PATH"
8701 for ac_dir in $ac_dummy; do
8702 test -z "$ac_dir" && ac_dir=.
8703 if test -f $ac_dir/$ac_word; then
8704 ac_cv_prog_YACC="$ac_prog"
8705 break
8706 fi
8707 done
8708 IFS="$ac_save_ifs"
8709 fi
8710 fi
8711 YACC="$ac_cv_prog_YACC"
8712 if test -n "$YACC"; then
8713 echo "$ac_t""$YACC" 1>&6
8714 else
8715 echo "$ac_t""no" 1>&6
8716 fi
8717
8718 test -n "$YACC" && break
8719 done
8720 test -n "$YACC" || YACC="yacc"
8721
8722
8723 # Extract the first word of "flex", so it can be a program name with args.
8724 set dummy flex; ac_word=$2
8725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8726 echo "configure:8727: checking for $ac_word" >&5
8727 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8729 else
8730 if test -n "$LEX"; then
8731 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8732 else
8733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8734 ac_dummy="$PATH"
8735 for ac_dir in $ac_dummy; do
8736 test -z "$ac_dir" && ac_dir=.
8737 if test -f $ac_dir/$ac_word; then
8738 ac_cv_prog_LEX="flex"
8739 break
8740 fi
8741 done
8742 IFS="$ac_save_ifs"
8743 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8744 fi
8745 fi
8746 LEX="$ac_cv_prog_LEX"
8747 if test -n "$LEX"; then
8748 echo "$ac_t""$LEX" 1>&6
8749 else
8750 echo "$ac_t""no" 1>&6
8751 fi
8752
8753 if test -z "$LEXLIB"
8754 then
8755 case "$LEX" in
8756 flex*) ac_lib=fl ;;
8757 *) ac_lib=l ;;
8758 esac
8759 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8760 echo "configure:8761: checking for yywrap in -l$ac_lib" >&5
8761 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8764 else
8765 ac_save_LIBS="$LIBS"
8766 LIBS="-l$ac_lib $LIBS"
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8770 /* Override any gcc2 internal prototype to avoid an error. */
8771 /* We use char because int might match the return type of a gcc2
8772 builtin and then its argument prototype would still apply. */
8773 char yywrap();
8774
8775 int main() {
8776 yywrap()
8777 ; return 0; }
8778 EOF
8779 if { (eval echo configure:8780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8780 rm -rf conftest*
8781 eval "ac_cv_lib_$ac_lib_var=yes"
8782 else
8783 echo "configure: failed program was:" >&5
8784 cat conftest.$ac_ext >&5
8785 rm -rf conftest*
8786 eval "ac_cv_lib_$ac_lib_var=no"
8787 fi
8788 rm -f conftest*
8789 LIBS="$ac_save_LIBS"
8790
8791 fi
8792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8793 echo "$ac_t""yes" 1>&6
8794 LEXLIB="-l$ac_lib"
8795 else
8796 echo "$ac_t""no" 1>&6
8797 fi
8798
8799 fi
8800
8801
8802 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8803 echo "configure:8804: checking whether ln -s works" >&5
8804 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806 else
8807 rm -f conftestdata
8808 if ln -s X conftestdata 2>/dev/null
8809 then
8810 rm -f conftestdata
8811 ac_cv_prog_LN_S="ln -s"
8812 else
8813 ac_cv_prog_LN_S=ln
8814 fi
8815 fi
8816 LN_S="$ac_cv_prog_LN_S"
8817 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8818 echo "$ac_t""yes" 1>&6
8819 else
8820 echo "$ac_t""no" 1>&6
8821 fi
8822
8823
8824
8825 SEARCH_INCLUDE="\
8826 /usr/local/include \
8827 \
8828 /usr/Motif-1.2/include \
8829 /usr/Motif-2.1/include \
8830 \
8831 /usr/include/Motif1.2 \
8832 /opt/xpm/include/X11 \
8833 /opt/GBxpm/include/ \
8834 /opt/GBxpm/X11/include/ \
8835 \
8836 /usr/Motif1.2/include \
8837 /usr/dt/include \
8838 /usr/openwin/include \
8839 \
8840 /usr/include/Xm \
8841 \
8842 /usr/X11R6/include \
8843 /usr/X11R6.4/include \
8844 /usr/X11R5/include \
8845 /usr/X11R4/include \
8846 \
8847 /usr/include/X11R6 \
8848 /usr/include/X11R5 \
8849 /usr/include/X11R4 \
8850 \
8851 /usr/local/X11R6/include \
8852 /usr/local/X11R5/include \
8853 /usr/local/X11R4/include \
8854 \
8855 /usr/local/include/X11R6 \
8856 /usr/local/include/X11R5 \
8857 /usr/local/include/X11R4 \
8858 \
8859 /usr/X11/include \
8860 /usr/include/X11 \
8861 /usr/local/X11/include \
8862 /usr/local/include/X11 \
8863 \
8864 /usr/X386/include \
8865 /usr/x386/include \
8866 /usr/XFree86/include/X11 \
8867 \
8868 X:/XFree86/include \
8869 X:/XFree86/include/X11 \
8870 \
8871 /usr/include/gtk \
8872 /usr/local/include/gtk \
8873 /usr/include/glib \
8874 /usr/local/include/glib \
8875 \
8876 /usr/include/qt \
8877 /usr/local/include/qt \
8878 \
8879 /usr/include/windows \
8880 /usr/include/wine \
8881 /usr/local/include/wine \
8882 \
8883 /usr/unsupported/include \
8884 /usr/athena/include \
8885 /usr/local/x11r5/include \
8886 /usr/lpp/Xamples/include \
8887 \
8888 /usr/openwin/share/include \
8889 \
8890 /usr/include"
8891
8892 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8893
8894
8895 cat > confcache <<\EOF
8896 # This file is a shell script that caches the results of configure
8897 # tests run on this system so they can be shared between configure
8898 # scripts and configure runs. It is not useful on other systems.
8899 # If it contains results you don't want to keep, you may remove or edit it.
8900 #
8901 # By default, configure uses ./config.cache as the cache file,
8902 # creating it if it does not exist already. You can give configure
8903 # the --cache-file=FILE option to use a different cache file; that is
8904 # what configure does when it calls configure scripts in
8905 # subdirectories, so they share the cache.
8906 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8907 # config.status only pays attention to the cache file if you give it the
8908 # --recheck option to rerun configure.
8909 #
8910 EOF
8911 # The following way of writing the cache mishandles newlines in values,
8912 # but we know of no workaround that is simple, portable, and efficient.
8913 # So, don't put newlines in cache variables' values.
8914 # Ultrix sh set writes to stderr and can't be redirected directly,
8915 # and sets the high bit in the cache file unless we assign to the vars.
8916 (set) 2>&1 |
8917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8918 *ac_space=\ *)
8919 # `set' does not quote correctly, so add quotes (double-quote substitution
8920 # turns \\\\ into \\, and sed turns \\ into \).
8921 sed -n \
8922 -e "s/'/'\\\\''/g" \
8923 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8924 ;;
8925 *)
8926 # `set' quotes correctly as required by POSIX, so do not add quotes.
8927 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8928 ;;
8929 esac >> confcache
8930 if cmp -s $cache_file confcache; then
8931 :
8932 else
8933 if test -w $cache_file; then
8934 echo "updating cache $cache_file"
8935 cat confcache > $cache_file
8936 else
8937 echo "not updating unwritable cache $cache_file"
8938 fi
8939 fi
8940 rm -f confcache
8941
8942
8943
8944
8945 REGEX_INCLUDE=
8946 if test "$wxUSE_REGEX" != "no"; then
8947 cat >> confdefs.h <<\EOF
8948 #define wxUSE_REGEX 1
8949 EOF
8950
8951
8952 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
8953 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8954 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8955 echo "configure:8956: checking for regex.h" >&5
8956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8958 else
8959 cat > conftest.$ac_ext <<EOF
8960 #line 8961 "configure"
8961 #include "confdefs.h"
8962 #include <regex.h>
8963 EOF
8964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8965 { (eval echo configure:8966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8967 if test -z "$ac_err"; then
8968 rm -rf conftest*
8969 eval "ac_cv_header_$ac_safe=yes"
8970 else
8971 echo "$ac_err" >&5
8972 echo "configure: failed program was:" >&5
8973 cat conftest.$ac_ext >&5
8974 rm -rf conftest*
8975 eval "ac_cv_header_$ac_safe=no"
8976 fi
8977 rm -f conftest*
8978 fi
8979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8980 echo "$ac_t""yes" 1>&6
8981 for ac_func in regcomp
8982 do
8983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8984 echo "configure:8985: checking for $ac_func" >&5
8985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8987 else
8988 cat > conftest.$ac_ext <<EOF
8989 #line 8990 "configure"
8990 #include "confdefs.h"
8991 /* System header to define __stub macros and hopefully few prototypes,
8992 which can conflict with char $ac_func(); below. */
8993 #include <assert.h>
8994 /* Override any gcc2 internal prototype to avoid an error. */
8995 /* We use char because int might match the return type of a gcc2
8996 builtin and then its argument prototype would still apply. */
8997 char $ac_func();
8998
8999 int main() {
9000
9001 /* The GNU C library defines this for functions which it implements
9002 to always fail with ENOSYS. Some functions are actually named
9003 something starting with __ and the normal name is an alias. */
9004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9005 choke me
9006 #else
9007 $ac_func();
9008 #endif
9009
9010 ; return 0; }
9011 EOF
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9013 rm -rf conftest*
9014 eval "ac_cv_func_$ac_func=yes"
9015 else
9016 echo "configure: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9018 rm -rf conftest*
9019 eval "ac_cv_func_$ac_func=no"
9020 fi
9021 rm -f conftest*
9022 fi
9023
9024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9025 echo "$ac_t""yes" 1>&6
9026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9027 cat >> confdefs.h <<EOF
9028 #define $ac_tr_func 1
9029 EOF
9030
9031 else
9032 echo "$ac_t""no" 1>&6
9033 fi
9034 done
9035
9036 else
9037 echo "$ac_t""no" 1>&6
9038 fi
9039
9040
9041 if test "x$ac_cv_func_regcomp" != "xyes"; then
9042 if test "$wxUSE_REGEX" = "sys" ; then
9043 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9044 else
9045 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9046 wxUSE_REGEX=builtin
9047 fi
9048 else
9049 wxUSE_REGEX=sys
9050 fi
9051 fi
9052
9053 if test "$wxUSE_REGEX" = "builtin" ; then
9054 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9055 fi
9056 fi
9057
9058
9059 ZLIB_INCLUDE=
9060 ZLIB_LINK=
9061 if test "$wxUSE_ZLIB" != "no" ; then
9062 cat >> confdefs.h <<\EOF
9063 #define wxUSE_ZLIB 1
9064 EOF
9065
9066
9067 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9068 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9069 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9070 echo "configure:9071: checking for zlib.h" >&5
9071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9072 echo $ac_n "(cached) $ac_c" 1>&6
9073 else
9074 cat > conftest.$ac_ext <<EOF
9075 #line 9076 "configure"
9076 #include "confdefs.h"
9077 #include <zlib.h>
9078 EOF
9079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9080 { (eval echo configure:9081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9082 if test -z "$ac_err"; then
9083 rm -rf conftest*
9084 eval "ac_cv_header_$ac_safe=yes"
9085 else
9086 echo "$ac_err" >&5
9087 echo "configure: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9089 rm -rf conftest*
9090 eval "ac_cv_header_$ac_safe=no"
9091 fi
9092 rm -f conftest*
9093 fi
9094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9095 echo "$ac_t""yes" 1>&6
9096 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9097 echo "configure:9098: checking for deflate in -lz" >&5
9098 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9101 else
9102 ac_save_LIBS="$LIBS"
9103 LIBS="-lz $LIBS"
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9107 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9110 char deflate();
9111
9112 int main() {
9113 deflate()
9114 ; return 0; }
9115 EOF
9116 if { (eval echo configure:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9117 rm -rf conftest*
9118 eval "ac_cv_lib_$ac_lib_var=yes"
9119 else
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9122 rm -rf conftest*
9123 eval "ac_cv_lib_$ac_lib_var=no"
9124 fi
9125 rm -f conftest*
9126 LIBS="$ac_save_LIBS"
9127
9128 fi
9129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9130 echo "$ac_t""yes" 1>&6
9131 ZLIB_LINK=" -lz"
9132 else
9133 echo "$ac_t""no" 1>&6
9134 fi
9135
9136 else
9137 echo "$ac_t""no" 1>&6
9138 fi
9139
9140
9141 if test "x$ZLIB_LINK" = "x" ; then
9142 if test "$wxUSE_ZLIB" = "sys" ; then
9143 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9144 else
9145 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9146 wxUSE_ZLIB=builtin
9147 fi
9148 else
9149 wxUSE_ZLIB=sys
9150 fi
9151 fi
9152
9153 if test "$wxUSE_ZLIB" = "builtin" ; then
9154 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9155 fi
9156 fi
9157
9158
9159 PNG_INCLUDE=
9160 PNG_LINK=
9161 if test "$wxUSE_LIBPNG" != "no" ; then
9162 cat >> confdefs.h <<\EOF
9163 #define wxUSE_LIBPNG 1
9164 EOF
9165
9166
9167 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9168 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9169 wxUSE_LIBPNG=builtin
9170 fi
9171
9172 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9173 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9174 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9175 echo "configure:9176: checking for png.h" >&5
9176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9178 else
9179 cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9182 #include <png.h>
9183 EOF
9184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9185 { (eval echo configure:9186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9187 if test -z "$ac_err"; then
9188 rm -rf conftest*
9189 eval "ac_cv_header_$ac_safe=yes"
9190 else
9191 echo "$ac_err" >&5
9192 echo "configure: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9194 rm -rf conftest*
9195 eval "ac_cv_header_$ac_safe=no"
9196 fi
9197 rm -f conftest*
9198 fi
9199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9200 echo "$ac_t""yes" 1>&6
9201 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9202 echo "configure:9203: checking for png_check_sig in -lpng" >&5
9203 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9206 else
9207 ac_save_LIBS="$LIBS"
9208 LIBS="-lpng -lz -lm $LIBS"
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 /* Override any gcc2 internal prototype to avoid an error. */
9213 /* We use char because int might match the return type of a gcc2
9214 builtin and then its argument prototype would still apply. */
9215 char png_check_sig();
9216
9217 int main() {
9218 png_check_sig()
9219 ; return 0; }
9220 EOF
9221 if { (eval echo configure:9222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9222 rm -rf conftest*
9223 eval "ac_cv_lib_$ac_lib_var=yes"
9224 else
9225 echo "configure: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9227 rm -rf conftest*
9228 eval "ac_cv_lib_$ac_lib_var=no"
9229 fi
9230 rm -f conftest*
9231 LIBS="$ac_save_LIBS"
9232
9233 fi
9234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9235 echo "$ac_t""yes" 1>&6
9236 PNG_LINK=" -lpng"
9237 else
9238 echo "$ac_t""no" 1>&6
9239 fi
9240
9241
9242 else
9243 echo "$ac_t""no" 1>&6
9244 fi
9245
9246
9247 if test "x$PNG_LINK" = "x" ; then
9248 if test "$wxUSE_LIBPNG" = "sys" ; then
9249 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9250 else
9251 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9252 wxUSE_LIBPNG=builtin
9253 fi
9254 else
9255 wxUSE_LIBPNG=yes
9256 fi
9257 fi
9258
9259 if test "$wxUSE_LIBPNG" = "builtin" ; then
9260 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9261 fi
9262
9263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9264 fi
9265
9266
9267 JPEG_INCLUDE=
9268 JPEG_LINK=
9269 if test "$wxUSE_LIBJPEG" != "no" ; then
9270 cat >> confdefs.h <<\EOF
9271 #define wxUSE_LIBJPEG 1
9272 EOF
9273
9274
9275 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9276 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9277 echo "configure:9278: checking for jpeglib.h" >&5
9278 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9279 echo $ac_n "(cached) $ac_c" 1>&6
9280 else
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9284
9285 #undef HAVE_STDLIB_H
9286 #include <stdio.h>
9287 #include <jpeglib.h>
9288
9289 int main() {
9290
9291
9292 ; return 0; }
9293 EOF
9294 if { (eval echo configure:9295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9295 rm -rf conftest*
9296 ac_cv_header_jpeglib_h=yes
9297 else
9298 echo "configure: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 rm -rf conftest*
9301 ac_cv_header_jpeglib_h=no
9302
9303 fi
9304 rm -f conftest*
9305
9306 fi
9307
9308 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9309
9310 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9311 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9312 echo "configure:9313: checking for jpeg_read_header in -ljpeg" >&5
9313 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316 else
9317 ac_save_LIBS="$LIBS"
9318 LIBS="-ljpeg $LIBS"
9319 cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9322 /* Override any gcc2 internal prototype to avoid an error. */
9323 /* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */
9325 char jpeg_read_header();
9326
9327 int main() {
9328 jpeg_read_header()
9329 ; return 0; }
9330 EOF
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9332 rm -rf conftest*
9333 eval "ac_cv_lib_$ac_lib_var=yes"
9334 else
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9337 rm -rf conftest*
9338 eval "ac_cv_lib_$ac_lib_var=no"
9339 fi
9340 rm -f conftest*
9341 LIBS="$ac_save_LIBS"
9342
9343 fi
9344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9345 echo "$ac_t""yes" 1>&6
9346 JPEG_LINK=" -ljpeg"
9347 else
9348 echo "$ac_t""no" 1>&6
9349 fi
9350
9351 fi
9352
9353 if test "x$JPEG_LINK" = "x" ; then
9354 if test "$wxUSE_LIBJPEG" = "sys" ; then
9355 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9356 else
9357 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9358 wxUSE_LIBJPEG=builtin
9359 fi
9360 else
9361 wxUSE_LIBJPEG=sys
9362 fi
9363 fi
9364
9365 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9366 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9367 fi
9368 fi
9369
9370
9371 TIFF_INCLUDE=
9372 TIFF_LINK=
9373 if test "$wxUSE_LIBTIFF" != "no" ; then
9374 cat >> confdefs.h <<\EOF
9375 #define wxUSE_LIBTIFF 1
9376 EOF
9377
9378
9379 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9380 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9381 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9382 echo "configure:9383: checking for tiffio.h" >&5
9383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9384 echo $ac_n "(cached) $ac_c" 1>&6
9385 else
9386 cat > conftest.$ac_ext <<EOF
9387 #line 9388 "configure"
9388 #include "confdefs.h"
9389 #include <tiffio.h>
9390 EOF
9391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9392 { (eval echo configure:9393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9394 if test -z "$ac_err"; then
9395 rm -rf conftest*
9396 eval "ac_cv_header_$ac_safe=yes"
9397 else
9398 echo "$ac_err" >&5
9399 echo "configure: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9401 rm -rf conftest*
9402 eval "ac_cv_header_$ac_safe=no"
9403 fi
9404 rm -f conftest*
9405 fi
9406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9407 echo "$ac_t""yes" 1>&6
9408 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9409 echo "configure:9410: checking for TIFFError in -ltiff" >&5
9410 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9413 else
9414 ac_save_LIBS="$LIBS"
9415 LIBS="-ltiff -lm $LIBS"
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9419 /* Override any gcc2 internal prototype to avoid an error. */
9420 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422 char TIFFError();
9423
9424 int main() {
9425 TIFFError()
9426 ; return 0; }
9427 EOF
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 rm -rf conftest*
9430 eval "ac_cv_lib_$ac_lib_var=yes"
9431 else
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -rf conftest*
9435 eval "ac_cv_lib_$ac_lib_var=no"
9436 fi
9437 rm -f conftest*
9438 LIBS="$ac_save_LIBS"
9439
9440 fi
9441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9443 TIFF_LINK=" -ltiff"
9444 else
9445 echo "$ac_t""no" 1>&6
9446 fi
9447
9448
9449 else
9450 echo "$ac_t""no" 1>&6
9451 fi
9452
9453
9454 if test "x$TIFF_LINK" = "x" ; then
9455 if test "$wxUSE_LIBTIFF" = "sys" ; then
9456 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9457 else
9458 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
9459 wxUSE_LIBTIFF=builtin
9460 fi
9461 else
9462 wxUSE_LIBTIFF=sys
9463 fi
9464 fi
9465
9466 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9467 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9468 fi
9469 fi
9470
9471
9472 FREETYPE_INCLUDE=
9473 FREETYPE_LINK=
9474 if test "$wxUSE_FREETYPE" != "no" ; then
9475 cat >> confdefs.h <<\EOF
9476 #define wxUSE_FREETYPE 1
9477 EOF
9478
9479
9480 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9481 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9482 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9483 echo "configure:9484: checking for freetype.h" >&5
9484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9485 echo $ac_n "(cached) $ac_c" 1>&6
9486 else
9487 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9490 #include <freetype.h>
9491 EOF
9492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9493 { (eval echo configure:9494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9495 if test -z "$ac_err"; then
9496 rm -rf conftest*
9497 eval "ac_cv_header_$ac_safe=yes"
9498 else
9499 echo "$ac_err" >&5
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 rm -rf conftest*
9503 eval "ac_cv_header_$ac_safe=no"
9504 fi
9505 rm -f conftest*
9506 fi
9507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9508 echo "$ac_t""yes" 1>&6
9509 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9510 echo "configure:9511: checking for FT_Render_Glyph in -lfreetype" >&5
9511 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9513 echo $ac_n "(cached) $ac_c" 1>&6
9514 else
9515 ac_save_LIBS="$LIBS"
9516 LIBS="-lfreetype -lm $LIBS"
9517 cat > conftest.$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9520 /* Override any gcc2 internal prototype to avoid an error. */
9521 /* We use char because int might match the return type of a gcc2
9522 builtin and then its argument prototype would still apply. */
9523 char FT_Render_Glyph();
9524
9525 int main() {
9526 FT_Render_Glyph()
9527 ; return 0; }
9528 EOF
9529 if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9530 rm -rf conftest*
9531 eval "ac_cv_lib_$ac_lib_var=yes"
9532 else
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 rm -rf conftest*
9536 eval "ac_cv_lib_$ac_lib_var=no"
9537 fi
9538 rm -f conftest*
9539 LIBS="$ac_save_LIBS"
9540
9541 fi
9542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9543 echo "$ac_t""yes" 1>&6
9544 FREETYPE_LINK=" -lfreetype"
9545 else
9546 echo "$ac_t""no" 1>&6
9547 fi
9548
9549
9550 else
9551 echo "$ac_t""no" 1>&6
9552 fi
9553
9554
9555 if test "x$FREETYPE_LINK" = "x" ; then
9556 if test "$wxUSE_FREETYPE" = "sys" ; then
9557 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9558 else
9559 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
9560 wxUSE_FREETYPE=builtin
9561 fi
9562 else
9563 wxUSE_FREETYPE=sys
9564 fi
9565 fi
9566
9567 if test "$wxUSE_FREETYPE" = "builtin" ; then
9568 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9569 fi
9570 fi
9571
9572
9573 AFMINSTALL=
9574
9575 TOOLKIT=
9576 TOOLKIT_INCLUDE=
9577 WIDGET_SET=
9578
9579 if test "$USE_WIN32" = 1 ; then
9580 for ac_hdr in w32api.h
9581 do
9582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9584 echo "configure:9585: checking for $ac_hdr" >&5
9585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9587 else
9588 cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure"
9590 #include "confdefs.h"
9591 #include <$ac_hdr>
9592 EOF
9593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9594 { (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9596 if test -z "$ac_err"; then
9597 rm -rf conftest*
9598 eval "ac_cv_header_$ac_safe=yes"
9599 else
9600 echo "$ac_err" >&5
9601 echo "configure: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9603 rm -rf conftest*
9604 eval "ac_cv_header_$ac_safe=no"
9605 fi
9606 rm -f conftest*
9607 fi
9608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9611 cat >> confdefs.h <<EOF
9612 #define $ac_tr_hdr 1
9613 EOF
9614
9615 else
9616 echo "$ac_t""no" 1>&6
9617 fi
9618 done
9619
9620 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9621 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9622 echo "configure:9623: checking for windows.h" >&5
9623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9625 else
9626 cat > conftest.$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9629 #include <windows.h>
9630 EOF
9631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9632 { (eval echo configure:9633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9634 if test -z "$ac_err"; then
9635 rm -rf conftest*
9636 eval "ac_cv_header_$ac_safe=yes"
9637 else
9638 echo "$ac_err" >&5
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9641 rm -rf conftest*
9642 eval "ac_cv_header_$ac_safe=no"
9643 fi
9644 rm -f conftest*
9645 fi
9646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9647 echo "$ac_t""yes" 1>&6
9648 :
9649 else
9650 echo "$ac_t""no" 1>&6
9651
9652 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9653
9654 fi
9655
9656
9657 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9658 echo "configure:9659: checking if w32api has good enough MSIE support" >&5
9659 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
9660 echo $ac_n "(cached) $ac_c" 1>&6
9661 else
9662
9663 cat > conftest.$ac_ext <<EOF
9664 #line 9665 "configure"
9665 #include "confdefs.h"
9666 #include <w32api.h>
9667 int main() {
9668
9669 #define wxCHECK_W32API_VERSION( major, minor ) \
9670 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9671 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9672 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9673
9674 #if !wxCHECK_W32API_VERSION(1,1)
9675 #error You need w32api 1.1 or newer
9676 #endif
9677
9678 ; return 0; }
9679 EOF
9680 if { (eval echo configure:9681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9681 rm -rf conftest*
9682
9683 wx_cv_w32api_win32_ie=yes
9684
9685 else
9686 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 rm -rf conftest*
9689
9690 wx_cv_w32api_win32_ie=no
9691
9692 fi
9693 rm -f conftest*
9694
9695 fi
9696
9697 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9698 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9699 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9700 fi
9701
9702 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9703
9704 case "${host}" in
9705 *-*-cygwin* )
9706 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9707 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9708 esac
9709
9710 if test "$wxUSE_ODBC" = "yes" ; then
9711 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
9712 fi
9713
9714 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9715 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9716 fi
9717
9718 if test "$wxUSE_GUI" = "yes"; then
9719 USE_GUI=1
9720
9721 GUI_TK_LIBRARY=
9722
9723 WXGTK12=
9724 WXGTK127=
9725 WXGTK20=
9726
9727 if test "$wxUSE_MSW" = 1 ; then
9728 TOOLKIT=MSW
9729 GUIDIST=MSW_DIST
9730
9731 case "${host}" in
9732 *-*-mingw32* )
9733 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
9734 esac
9735 fi
9736
9737 if test "$wxUSE_GTK" = 1; then
9738 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9739 echo "configure:9740: checking for GTK+ version" >&5
9740
9741 gtk_version_cached=1
9742 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9744 else
9745
9746 gtk_version_cached=0
9747 echo "$ac_t""" 1>&6
9748
9749 wx_cv_lib_gtk=
9750 if test "x$wxUSE_GTK2" = "xyes"; then
9751 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9752 if test "${with_gtk_prefix+set}" = set; then
9753 withval="$with_gtk_prefix"
9754 gtk_config_prefix="$withval"
9755 else
9756 gtk_config_prefix=""
9757 fi
9758
9759 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9760 if test "${with_gtk_exec_prefix+set}" = set; then
9761 withval="$with_gtk_exec_prefix"
9762 gtk_config_exec_prefix="$withval"
9763 else
9764 gtk_config_exec_prefix=""
9765 fi
9766
9767 # Check whether --enable-gtktest or --disable-gtktest was given.
9768 if test "${enable_gtktest+set}" = set; then
9769 enableval="$enable_gtktest"
9770 :
9771 else
9772 enable_gtktest=yes
9773 fi
9774
9775
9776 for module in .
9777 do
9778 case "$module" in
9779 gthread)
9780 gtk_config_args="$gtk_config_args gthread"
9781 ;;
9782 esac
9783 done
9784
9785 if test x$gtk_config_exec_prefix != x ; then
9786 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9787 if test x${GTK_CONFIG_2_0+set} != xset ; then
9788 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9789 fi
9790 fi
9791 if test x$gtk_config_prefix != x ; then
9792 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9793 if test x${GTK_CONFIG_2_0+set} != xset ; then
9794 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9795 fi
9796 fi
9797
9798 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9799 set dummy gtk-config-2.0; ac_word=$2
9800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9801 echo "configure:9802: checking for $ac_word" >&5
9802 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9804 else
9805 case "$GTK_CONFIG_2_0" in
9806 /*)
9807 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9808 ;;
9809 ?:/*)
9810 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9811 ;;
9812 *)
9813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9814 ac_dummy="$PATH"
9815 for ac_dir in $ac_dummy; do
9816 test -z "$ac_dir" && ac_dir=.
9817 if test -f $ac_dir/$ac_word; then
9818 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9819 break
9820 fi
9821 done
9822 IFS="$ac_save_ifs"
9823 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9824 ;;
9825 esac
9826 fi
9827 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9828 if test -n "$GTK_CONFIG_2_0"; then
9829 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9830 else
9831 echo "$ac_t""no" 1>&6
9832 fi
9833
9834 min_gtk_version=1.3.1
9835 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9836 echo "configure:9837: checking for GTK - version >= $min_gtk_version" >&5
9837 no_gtk=""
9838 if test "$GTK_CONFIG_2_0" = "no" ; then
9839 no_gtk=yes
9840 else
9841 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9842 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9843 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9844 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9845 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9846 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9847 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9848 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9849 if test "x$enable_gtktest" = "xyes" ; then
9850 ac_save_CFLAGS="$CFLAGS"
9851 ac_save_LIBS="$LIBS"
9852 CFLAGS="$CFLAGS $GTK_CFLAGS"
9853 LIBS="$GTK_LIBS $LIBS"
9854 rm -f conf.gtktest
9855 if test "$cross_compiling" = yes; then
9856 echo $ac_n "cross compiling; assumed OK... $ac_c"
9857 else
9858 cat > conftest.$ac_ext <<EOF
9859 #line 9860 "configure"
9860 #include "confdefs.h"
9861
9862 #include <gtk/gtk.h>
9863 #include <stdio.h>
9864 #include <stdlib.h>
9865
9866 int
9867 main ()
9868 {
9869 int major, minor, micro;
9870 char *tmp_version;
9871
9872 system ("touch conf.gtktest");
9873
9874 /* HP/UX 9 (%@#!) writes to sscanf strings */
9875 tmp_version = g_strdup("$min_gtk_version");
9876 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9877 printf("%s, bad version string\n", "$min_gtk_version");
9878 exit(1);
9879 }
9880
9881 if ((gtk_major_version != $gtk_config_major_version) ||
9882 (gtk_minor_version != $gtk_config_minor_version) ||
9883 (gtk_micro_version != $gtk_config_micro_version))
9884 {
9885 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9886 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9887 gtk_major_version, gtk_minor_version, gtk_micro_version);
9888 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9889 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9890 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9891 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9892 printf("*** required on your system.\n");
9893 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9894 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9895 printf("*** before re-running configure\n");
9896 }
9897 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9898 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9899 (gtk_minor_version != GTK_MINOR_VERSION) ||
9900 (gtk_micro_version != GTK_MICRO_VERSION))
9901 {
9902 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9903 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9904 printf("*** library (version %d.%d.%d)\n",
9905 gtk_major_version, gtk_minor_version, gtk_micro_version);
9906 }
9907 #endif /* defined (GTK_MAJOR_VERSION) ... */
9908 else
9909 {
9910 if ((gtk_major_version > major) ||
9911 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9912 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9913 {
9914 return 0;
9915 }
9916 else
9917 {
9918 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9919 gtk_major_version, gtk_minor_version, gtk_micro_version);
9920 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9921 major, minor, micro);
9922 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9923 printf("***\n");
9924 printf("*** If you have already installed a sufficiently new version, this error\n");
9925 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9926 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9927 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9928 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9929 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9930 printf("*** so that the correct libraries are found at run-time))\n");
9931 }
9932 }
9933 return 1;
9934 }
9935
9936 EOF
9937 if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9938 then
9939 :
9940 else
9941 echo "configure: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 rm -fr conftest*
9944 no_gtk=yes
9945 fi
9946 rm -fr conftest*
9947 fi
9948
9949 CFLAGS="$ac_save_CFLAGS"
9950 LIBS="$ac_save_LIBS"
9951 fi
9952 fi
9953 if test "x$no_gtk" = x ; then
9954 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9955 wx_cv_lib_gtk=2.0
9956 else
9957 echo "$ac_t""no" 1>&6
9958 if test "$GTK_CONFIG_2_0" = "no" ; then
9959 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9960 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9961 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9962 echo "*** full path to gtk-config-2.0."
9963 else
9964 if test -f conf.gtktest ; then
9965 :
9966 else
9967 echo "*** Could not run GTK test program, checking why..."
9968 CFLAGS="$CFLAGS $GTK_CFLAGS"
9969 LIBS="$LIBS $GTK_LIBS"
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973
9974 #include <gtk/gtk.h>
9975 #include <stdio.h>
9976
9977 int main() {
9978 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9979 ; return 0; }
9980 EOF
9981 if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9982 rm -rf conftest*
9983 echo "*** The test program compiled, but did not run. This usually means"
9984 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9985 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9986 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9987 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9988 echo "*** is required on your system"
9989 echo "***"
9990 echo "*** If you have an old version installed, it is best to remove it, although"
9991 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9992 echo "***"
9993 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9994 echo "*** came with the system with the command"
9995 echo "***"
9996 echo "*** rpm --erase --nodeps gtk gtk-devel"
9997 else
9998 echo "configure: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 rm -rf conftest*
10001 echo "*** The test program failed to compile or link. See the file config.log for the"
10002 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10003 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10004 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10005 fi
10006 rm -f conftest*
10007 CFLAGS="$ac_save_CFLAGS"
10008 LIBS="$ac_save_LIBS"
10009 fi
10010 fi
10011 GTK_CFLAGS=""
10012 GTK_LIBS=""
10013 gthread
10014 fi
10015
10016
10017 rm -f conf.gtktest
10018
10019 fi
10020
10021 if test -z "$wx_cv_lib_gtk"; then
10022
10023 if test x$gtk_config_exec_prefix != x ; then
10024 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10025 if test x${GTK_CONFIG+set} != xset ; then
10026 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10027 fi
10028 fi
10029 if test x$gtk_config_prefix != x ; then
10030 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10031 if test x${GTK_CONFIG+set} != xset ; then
10032 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10033 fi
10034 fi
10035
10036 # Extract the first word of "gtk-config", so it can be a program name with args.
10037 set dummy gtk-config; ac_word=$2
10038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10039 echo "configure:10040: checking for $ac_word" >&5
10040 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10042 else
10043 case "$GTK_CONFIG" in
10044 /*)
10045 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10046 ;;
10047 ?:/*)
10048 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10049 ;;
10050 *)
10051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10052 ac_dummy="$PATH"
10053 for ac_dir in $ac_dummy; do
10054 test -z "$ac_dir" && ac_dir=.
10055 if test -f $ac_dir/$ac_word; then
10056 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10057 break
10058 fi
10059 done
10060 IFS="$ac_save_ifs"
10061 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10062 ;;
10063 esac
10064 fi
10065 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10066 if test -n "$GTK_CONFIG"; then
10067 echo "$ac_t""$GTK_CONFIG" 1>&6
10068 else
10069 echo "$ac_t""no" 1>&6
10070 fi
10071
10072 min_gtk_version=1.2.7
10073 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10074 echo "configure:10075: checking for GTK - version >= $min_gtk_version" >&5
10075 no_gtk=""
10076 if test "$GTK_CONFIG" != "no" ; then
10077 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10078 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10079 ac_save_CFLAGS="$CFLAGS"
10080 ac_save_LIBS="$LIBS"
10081 CFLAGS="$CFLAGS $GTK_CFLAGS"
10082 LIBS="$LIBS $GTK_LIBS"
10083 if test "$cross_compiling" = yes; then
10084 echo $ac_n "cross compiling; assumed OK... $ac_c"
10085 else
10086 cat > conftest.$ac_ext <<EOF
10087 #line 10088 "configure"
10088 #include "confdefs.h"
10089
10090 #include <gtk/gtk.h>
10091 #include <gtk/gtkfeatures.h>
10092 #include <stdio.h>
10093 #include <stdlib.h>
10094
10095 int
10096 main ()
10097 {
10098 int major, minor, micro;
10099
10100 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10101 printf("%s, bad version string\n", "$min_gtk_version");
10102 exit(1);
10103 }
10104
10105 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10106 (GTK_MINOR_VERSION != gtk_minor_version) ||
10107 (GTK_MICRO_VERSION != gtk_micro_version)) {
10108 printf("Headers vs. library version mismatch!\n");
10109 exit(1);
10110 }
10111
10112 if (gtk_minor_version == 1) return FALSE;
10113
10114 return !((gtk_major_version > major) ||
10115 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10116 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10117 }
10118
10119 EOF
10120 if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10121 then
10122 :
10123 else
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 rm -fr conftest*
10127 no_gtk=yes
10128 fi
10129 rm -fr conftest*
10130 fi
10131
10132 CFLAGS="$ac_save_CFLAGS"
10133 LIBS="$ac_save_LIBS"
10134 else
10135 no_gtk=yes
10136 fi
10137 if test "x$no_gtk" = x ; then
10138 echo "$ac_t""yes" 1>&6
10139 wx_cv_lib_gtk=1.2.7
10140 else
10141 echo "$ac_t""no" 1>&6
10142 GTK_CFLAGS=""
10143 GTK_LIBS=""
10144 :
10145 fi
10146
10147
10148
10149 fi
10150
10151 if test -z "$wx_cv_lib_gtk"; then
10152
10153 if test x$gtk_config_exec_prefix != x ; then
10154 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10155 if test x${GTK_CONFIG+set} != xset ; then
10156 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10157 fi
10158 fi
10159 if test x$gtk_config_prefix != x ; then
10160 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10161 if test x${GTK_CONFIG+set} != xset ; then
10162 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10163 fi
10164 fi
10165
10166 # Extract the first word of "gtk-config", so it can be a program name with args.
10167 set dummy gtk-config; ac_word=$2
10168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10169 echo "configure:10170: checking for $ac_word" >&5
10170 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10171 echo $ac_n "(cached) $ac_c" 1>&6
10172 else
10173 case "$GTK_CONFIG" in
10174 /*)
10175 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10176 ;;
10177 ?:/*)
10178 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10179 ;;
10180 *)
10181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10182 ac_dummy="$PATH"
10183 for ac_dir in $ac_dummy; do
10184 test -z "$ac_dir" && ac_dir=.
10185 if test -f $ac_dir/$ac_word; then
10186 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10187 break
10188 fi
10189 done
10190 IFS="$ac_save_ifs"
10191 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10192 ;;
10193 esac
10194 fi
10195 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10196 if test -n "$GTK_CONFIG"; then
10197 echo "$ac_t""$GTK_CONFIG" 1>&6
10198 else
10199 echo "$ac_t""no" 1>&6
10200 fi
10201
10202 min_gtk_version=1.2.3
10203 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10204 echo "configure:10205: checking for GTK - version >= $min_gtk_version" >&5
10205 no_gtk=""
10206 if test "$GTK_CONFIG" != "no" ; then
10207 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10208 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10209 ac_save_CFLAGS="$CFLAGS"
10210 ac_save_LIBS="$LIBS"
10211 CFLAGS="$CFLAGS $GTK_CFLAGS"
10212 LIBS="$LIBS $GTK_LIBS"
10213 if test "$cross_compiling" = yes; then
10214 echo $ac_n "cross compiling; assumed OK... $ac_c"
10215 else
10216 cat > conftest.$ac_ext <<EOF
10217 #line 10218 "configure"
10218 #include "confdefs.h"
10219
10220 #include <gtk/gtk.h>
10221 #include <gtk/gtkfeatures.h>
10222 #include <stdio.h>
10223 #include <stdlib.h>
10224
10225 int
10226 main ()
10227 {
10228 int major, minor, micro;
10229
10230 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10231 printf("%s, bad version string\n", "$min_gtk_version");
10232 exit(1);
10233 }
10234
10235 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10236 (GTK_MINOR_VERSION != gtk_minor_version) ||
10237 (GTK_MICRO_VERSION != gtk_micro_version)) {
10238 printf("Headers vs. library version mismatch!\n");
10239 exit(1);
10240 }
10241
10242 if (gtk_minor_version == 1) return FALSE;
10243
10244 return !((gtk_major_version > major) ||
10245 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10246 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10247 }
10248
10249 EOF
10250 if { (eval echo configure:10251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10251 then
10252 :
10253 else
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10256 rm -fr conftest*
10257 no_gtk=yes
10258 fi
10259 rm -fr conftest*
10260 fi
10261
10262 CFLAGS="$ac_save_CFLAGS"
10263 LIBS="$ac_save_LIBS"
10264 else
10265 no_gtk=yes
10266 fi
10267 if test "x$no_gtk" = x ; then
10268 echo "$ac_t""yes" 1>&6
10269 wx_cv_lib_gtk=1.2.3
10270 else
10271 echo "$ac_t""no" 1>&6
10272 GTK_CFLAGS=""
10273 GTK_LIBS=""
10274 :
10275 fi
10276
10277
10278
10279 fi
10280
10281 if test -z "$wx_cv_lib_gtk"; then
10282 wx_cv_lib_gtk=none
10283 else
10284 wx_cv_cflags_gtk=$GTK_CFLAGS
10285 wx_cv_libs_gtk=$GTK_LIBS
10286 fi
10287
10288
10289 fi
10290
10291
10292 if test "$gtk_version_cached" = 1; then
10293 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
10294 fi
10295
10296 case "$wx_cv_lib_gtk" in
10297 2.0) WXGTK20=1
10298 ;;
10299 1.2.7) WXGTK127=1
10300 WXGTK12=1
10301 ;;
10302 1.2.3) WXGTK12=1
10303 ;;
10304 *) { echo "configure: error:
10305 Please check that gtk-config is in path, the directory
10306 where GTK+ libraries are installed (returned by
10307 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10308 equivalent variable and GTK+ is version 1.2.3 or above.
10309 " 1>&2; exit 1; }
10310 ;;
10311 esac
10312
10313 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
10314 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
10315
10316 AFMINSTALL=afminstall
10317 TOOLKIT=GTK
10318 GUIDIST=GTK_DIST
10319
10320 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
10321 echo "configure:10322: checking for gdk_im_open in -lgdk" >&5
10322 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10325 else
10326 ac_save_LIBS="$LIBS"
10327 LIBS="-lgdk $LIBS"
10328 cat > conftest.$ac_ext <<EOF
10329 #line 10330 "configure"
10330 #include "confdefs.h"
10331 /* Override any gcc2 internal prototype to avoid an error. */
10332 /* We use char because int might match the return type of a gcc2
10333 builtin and then its argument prototype would still apply. */
10334 char gdk_im_open();
10335
10336 int main() {
10337 gdk_im_open()
10338 ; return 0; }
10339 EOF
10340 if { (eval echo configure:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10341 rm -rf conftest*
10342 eval "ac_cv_lib_$ac_lib_var=yes"
10343 else
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10346 rm -rf conftest*
10347 eval "ac_cv_lib_$ac_lib_var=no"
10348 fi
10349 rm -f conftest*
10350 LIBS="$ac_save_LIBS"
10351
10352 fi
10353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10354 echo "$ac_t""yes" 1>&6
10355 cat >> confdefs.h <<\EOF
10356 #define HAVE_XIM 1
10357 EOF
10358
10359 else
10360 echo "$ac_t""no" 1>&6
10361 fi
10362
10363 fi
10364
10365 if test "$wxUSE_MGL" = 1; then
10366
10367 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
10368 echo "configure:10369: checking for SciTech MGL library" >&5
10369 if test "x$MGL_ROOT" = x ; then
10370 echo "$ac_t""not found" 1>&6
10371 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10372 else
10373 echo "$ac_t""$MGL_ROOT" 1>&6
10374 fi
10375
10376 mgl_os=linux/gcc/glibc
10377 mgl_lib_type=""
10378
10379 if test "$wxUSE_DEBUG_FLAG" = yes ; then
10380 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10381 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
10382 mgl_lib_type=debug
10383 fi
10384 fi
10385 if test "x$mgl_lib_type" = x ; then
10386 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10387 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
10388 mgl_lib_type=release
10389 else
10390 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10391 fi
10392 fi
10393
10394 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
10395 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
10396
10397 AFMINSTALL=afminstall
10398 TOOLKIT=MGL
10399 GUIDIST=MGL_DIST
10400 fi
10401
10402 if test "$wxUSE_WINE" = 1; then
10403 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10404 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10405 echo "configure:10406: checking for windows.h" >&5
10406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10407 echo $ac_n "(cached) $ac_c" 1>&6
10408 else
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10412 #include <windows.h>
10413 EOF
10414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10415 { (eval echo configure:10416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10417 if test -z "$ac_err"; then
10418 rm -rf conftest*
10419 eval "ac_cv_header_$ac_safe=yes"
10420 else
10421 echo "$ac_err" >&5
10422 echo "configure: failed program was:" >&5
10423 cat conftest.$ac_ext >&5
10424 rm -rf conftest*
10425 eval "ac_cv_header_$ac_safe=no"
10426 fi
10427 rm -f conftest*
10428 fi
10429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10430 echo "$ac_t""yes" 1>&6
10431 :
10432 else
10433 echo "$ac_t""no" 1>&6
10434
10435 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10436
10437 fi
10438
10439
10440 xpm_link=
10441 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10442 echo "configure:10443: checking for Xpm library" >&5
10443
10444 ac_find_libraries=
10445 for ac_dir in $SEARCH_LIB;
10446 do
10447 for ac_extension in a so sl dylib; do
10448 if test -f "$ac_dir/libXpm.$ac_extension"; then
10449 ac_find_libraries=$ac_dir
10450 break 2
10451 fi
10452 done
10453 done
10454
10455 if test "$ac_find_libraries" != "" ; then
10456 GUI_TK_LIBRARY="-L$ac_find_libraries"
10457 xpm_link=" -lXpm"
10458 cat >> confdefs.h <<\EOF
10459 #define wxHAVE_LIB_XPM 1
10460 EOF
10461
10462 echo "$ac_t""found at $ac_find_libraries" 1>&6
10463 else
10464 echo "$ac_t""no" 1>&6
10465 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10466 fi
10467
10468 mesa_link=
10469 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
10470 echo "configure:10471: checking for Mesa library" >&5
10471
10472 ac_find_libraries=
10473 for ac_dir in $SEARCH_LIB;
10474 do
10475 for ac_extension in a so sl dylib; do
10476 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10477 ac_find_libraries=$ac_dir
10478 break 2
10479 fi
10480 done
10481 done
10482
10483 if test "$ac_find_libraries" != "" ; then
10484 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
10485 mesa_link=" -lMesaGL"
10486 echo "$ac_t""found at $ac_find_libraries" 1>&6
10487 else
10488 { echo "configure: error: no" 1>&2; exit 1; }
10489 fi
10490
10491 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10492 TOOLKIT=MSW
10493 GUIDIST=MSW_DIST
10494 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
10495 fi
10496
10497 if test "$wxUSE_MOTIF" = 1; then
10498 # If we find X, set shell vars x_includes and x_libraries to the
10499 # paths, otherwise set no_x=yes.
10500 # Uses ac_ vars as temps to allow command line to override cache and checks.
10501 # --without-x overrides everything else, but does not touch the cache.
10502 echo $ac_n "checking for X""... $ac_c" 1>&6
10503 echo "configure:10504: checking for X" >&5
10504
10505 # Check whether --with-x or --without-x was given.
10506 if test "${with_x+set}" = set; then
10507 withval="$with_x"
10508 :
10509 fi
10510
10511 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10512 if test "x$with_x" = xno; then
10513 # The user explicitly disabled X.
10514 have_x=disabled
10515 else
10516 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10517 # Both variables are already set.
10518 have_x=yes
10519 else
10520 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10521 echo $ac_n "(cached) $ac_c" 1>&6
10522 else
10523 # One or both of the vars are not set, and there is no cached value.
10524 ac_x_includes=NO ac_x_libraries=NO
10525 rm -fr conftestdir
10526 if mkdir conftestdir; then
10527 cd conftestdir
10528 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10529 cat > Imakefile <<'EOF'
10530 acfindx:
10531 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10532 EOF
10533 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10534 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10535 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10536 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10537 for ac_extension in a so sl; do
10538 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10539 test -f $ac_im_libdir/libX11.$ac_extension; then
10540 ac_im_usrlibdir=$ac_im_libdir; break
10541 fi
10542 done
10543 # Screen out bogus values from the imake configuration. They are
10544 # bogus both because they are the default anyway, and because
10545 # using them would break gcc on systems where it needs fixed includes.
10546 case "$ac_im_incroot" in
10547 /usr/include) ;;
10548 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10549 esac
10550 case "$ac_im_usrlibdir" in
10551 /usr/lib | /lib) ;;
10552 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10553 esac
10554 fi
10555 cd ..
10556 rm -fr conftestdir
10557 fi
10558
10559 if test "$ac_x_includes" = NO; then
10560 # Guess where to find include files, by looking for this one X11 .h file.
10561 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10562
10563 # First, try using that file with no special directory specified.
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10567 #include <$x_direct_test_include>
10568 EOF
10569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10570 { (eval echo configure:10571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10572 if test -z "$ac_err"; then
10573 rm -rf conftest*
10574 # We can compile using X headers with no special include directory.
10575 ac_x_includes=
10576 else
10577 echo "$ac_err" >&5
10578 echo "configure: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10580 rm -rf conftest*
10581 # Look for the header file in a standard set of common directories.
10582 # Check X11 before X11Rn because it is often a symlink to the current release.
10583 for ac_dir in \
10584 /usr/X11/include \
10585 /usr/X11R6/include \
10586 /usr/X11R5/include \
10587 /usr/X11R4/include \
10588 \
10589 /usr/include/X11 \
10590 /usr/include/X11R6 \
10591 /usr/include/X11R5 \
10592 /usr/include/X11R4 \
10593 \
10594 /usr/local/X11/include \
10595 /usr/local/X11R6/include \
10596 /usr/local/X11R5/include \
10597 /usr/local/X11R4/include \
10598 \
10599 /usr/local/include/X11 \
10600 /usr/local/include/X11R6 \
10601 /usr/local/include/X11R5 \
10602 /usr/local/include/X11R4 \
10603 \
10604 /usr/X386/include \
10605 /usr/x386/include \
10606 /usr/XFree86/include/X11 \
10607 \
10608 /usr/include \
10609 /usr/local/include \
10610 /usr/unsupported/include \
10611 /usr/athena/include \
10612 /usr/local/x11r5/include \
10613 /usr/lpp/Xamples/include \
10614 \
10615 /usr/openwin/include \
10616 /usr/openwin/share/include \
10617 ; \
10618 do
10619 if test -r "$ac_dir/$x_direct_test_include"; then
10620 ac_x_includes=$ac_dir
10621 break
10622 fi
10623 done
10624 fi
10625 rm -f conftest*
10626 fi # $ac_x_includes = NO
10627
10628 if test "$ac_x_libraries" = NO; then
10629 # Check for the libraries.
10630
10631 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10632 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10633
10634 # See if we find them without any special options.
10635 # Don't add to $LIBS permanently.
10636 ac_save_LIBS="$LIBS"
10637 LIBS="-l$x_direct_test_library $LIBS"
10638 cat > conftest.$ac_ext <<EOF
10639 #line 10640 "configure"
10640 #include "confdefs.h"
10641
10642 int main() {
10643 ${x_direct_test_function}()
10644 ; return 0; }
10645 EOF
10646 if { (eval echo configure:10647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10647 rm -rf conftest*
10648 LIBS="$ac_save_LIBS"
10649 # We can link X programs with no special library path.
10650 ac_x_libraries=
10651 else
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10654 rm -rf conftest*
10655 LIBS="$ac_save_LIBS"
10656 # First see if replacing the include by lib works.
10657 # Check X11 before X11Rn because it is often a symlink to the current release.
10658 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10659 /usr/X11/lib \
10660 /usr/X11R6/lib \
10661 /usr/X11R5/lib \
10662 /usr/X11R4/lib \
10663 \
10664 /usr/lib/X11 \
10665 /usr/lib/X11R6 \
10666 /usr/lib/X11R5 \
10667 /usr/lib/X11R4 \
10668 \
10669 /usr/local/X11/lib \
10670 /usr/local/X11R6/lib \
10671 /usr/local/X11R5/lib \
10672 /usr/local/X11R4/lib \
10673 \
10674 /usr/local/lib/X11 \
10675 /usr/local/lib/X11R6 \
10676 /usr/local/lib/X11R5 \
10677 /usr/local/lib/X11R4 \
10678 \
10679 /usr/X386/lib \
10680 /usr/x386/lib \
10681 /usr/XFree86/lib/X11 \
10682 \
10683 /usr/lib \
10684 /usr/local/lib \
10685 /usr/unsupported/lib \
10686 /usr/athena/lib \
10687 /usr/local/x11r5/lib \
10688 /usr/lpp/Xamples/lib \
10689 /lib/usr/lib/X11 \
10690 \
10691 /usr/openwin/lib \
10692 /usr/openwin/share/lib \
10693 ; \
10694 do
10695 for ac_extension in a so sl; do
10696 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10697 ac_x_libraries=$ac_dir
10698 break 2
10699 fi
10700 done
10701 done
10702 fi
10703 rm -f conftest*
10704 fi # $ac_x_libraries = NO
10705
10706 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10707 # Didn't find X anywhere. Cache the known absence of X.
10708 ac_cv_have_x="have_x=no"
10709 else
10710 # Record where we found X for the cache.
10711 ac_cv_have_x="have_x=yes \
10712 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10713 fi
10714 fi
10715 fi
10716 eval "$ac_cv_have_x"
10717 fi # $with_x != no
10718
10719 if test "$have_x" != yes; then
10720 echo "$ac_t""$have_x" 1>&6
10721 no_x=yes
10722 else
10723 # If each of the values was on the command line, it overrides each guess.
10724 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10725 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10726 # Update the cache value to reflect the command line values.
10727 ac_cv_have_x="have_x=yes \
10728 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10729 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10730 fi
10731
10732 if test "$no_x" = yes; then
10733 # Not all programs may use this symbol, but it does not hurt to define it.
10734 cat >> confdefs.h <<\EOF
10735 #define X_DISPLAY_MISSING 1
10736 EOF
10737
10738 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10739 else
10740 if test -n "$x_includes"; then
10741 X_CFLAGS="$X_CFLAGS -I$x_includes"
10742 fi
10743
10744 # It would also be nice to do this for all -L options, not just this one.
10745 if test -n "$x_libraries"; then
10746 X_LIBS="$X_LIBS -L$x_libraries"
10747 # For Solaris; some versions of Sun CC require a space after -R and
10748 # others require no space. Words are not sufficient . . . .
10749 case "`(uname -sr) 2>/dev/null`" in
10750 "SunOS 5"*)
10751 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10752 echo "configure:10753: checking whether -R must be followed by a space" >&5
10753 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10754 cat > conftest.$ac_ext <<EOF
10755 #line 10756 "configure"
10756 #include "confdefs.h"
10757
10758 int main() {
10759
10760 ; return 0; }
10761 EOF
10762 if { (eval echo configure:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10763 rm -rf conftest*
10764 ac_R_nospace=yes
10765 else
10766 echo "configure: failed program was:" >&5
10767 cat conftest.$ac_ext >&5
10768 rm -rf conftest*
10769 ac_R_nospace=no
10770 fi
10771 rm -f conftest*
10772 if test $ac_R_nospace = yes; then
10773 echo "$ac_t""no" 1>&6
10774 X_LIBS="$X_LIBS -R$x_libraries"
10775 else
10776 LIBS="$ac_xsave_LIBS -R $x_libraries"
10777 cat > conftest.$ac_ext <<EOF
10778 #line 10779 "configure"
10779 #include "confdefs.h"
10780
10781 int main() {
10782
10783 ; return 0; }
10784 EOF
10785 if { (eval echo configure:10786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10786 rm -rf conftest*
10787 ac_R_space=yes
10788 else
10789 echo "configure: failed program was:" >&5
10790 cat conftest.$ac_ext >&5
10791 rm -rf conftest*
10792 ac_R_space=no
10793 fi
10794 rm -f conftest*
10795 if test $ac_R_space = yes; then
10796 echo "$ac_t""yes" 1>&6
10797 X_LIBS="$X_LIBS -R $x_libraries"
10798 else
10799 echo "$ac_t""neither works" 1>&6
10800 fi
10801 fi
10802 LIBS="$ac_xsave_LIBS"
10803 esac
10804 fi
10805
10806 # Check for system-dependent libraries X programs must link with.
10807 # Do this before checking for the system-independent R6 libraries
10808 # (-lICE), since we may need -lsocket or whatever for X linking.
10809
10810 if test "$ISC" = yes; then
10811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10812 else
10813 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10814 # libraries were built with DECnet support. And karl@cs.umb.edu says
10815 # the Alpha needs dnet_stub (dnet does not exist).
10816 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10817 echo "configure:10818: checking for dnet_ntoa in -ldnet" >&5
10818 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10821 else
10822 ac_save_LIBS="$LIBS"
10823 LIBS="-ldnet $LIBS"
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 /* We use char because int might match the return type of a gcc2
10829 builtin and then its argument prototype would still apply. */
10830 char dnet_ntoa();
10831
10832 int main() {
10833 dnet_ntoa()
10834 ; return 0; }
10835 EOF
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837 rm -rf conftest*
10838 eval "ac_cv_lib_$ac_lib_var=yes"
10839 else
10840 echo "configure: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10842 rm -rf conftest*
10843 eval "ac_cv_lib_$ac_lib_var=no"
10844 fi
10845 rm -f conftest*
10846 LIBS="$ac_save_LIBS"
10847
10848 fi
10849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10850 echo "$ac_t""yes" 1>&6
10851 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10852 else
10853 echo "$ac_t""no" 1>&6
10854 fi
10855
10856 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10857 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10858 echo "configure:10859: checking for dnet_ntoa in -ldnet_stub" >&5
10859 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10862 else
10863 ac_save_LIBS="$LIBS"
10864 LIBS="-ldnet_stub $LIBS"
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10868 /* Override any gcc2 internal prototype to avoid an error. */
10869 /* We use char because int might match the return type of a gcc2
10870 builtin and then its argument prototype would still apply. */
10871 char dnet_ntoa();
10872
10873 int main() {
10874 dnet_ntoa()
10875 ; return 0; }
10876 EOF
10877 if { (eval echo configure:10878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10878 rm -rf conftest*
10879 eval "ac_cv_lib_$ac_lib_var=yes"
10880 else
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10883 rm -rf conftest*
10884 eval "ac_cv_lib_$ac_lib_var=no"
10885 fi
10886 rm -f conftest*
10887 LIBS="$ac_save_LIBS"
10888
10889 fi
10890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10891 echo "$ac_t""yes" 1>&6
10892 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10893 else
10894 echo "$ac_t""no" 1>&6
10895 fi
10896
10897 fi
10898
10899 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10900 # to get the SysV transport functions.
10901 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10902 # needs -lnsl.
10903 # The nsl library prevents programs from opening the X display
10904 # on Irix 5.2, according to dickey@clark.net.
10905 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10906 echo "configure:10907: checking for gethostbyname" >&5
10907 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10908 echo $ac_n "(cached) $ac_c" 1>&6
10909 else
10910 cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure"
10912 #include "confdefs.h"
10913 /* System header to define __stub macros and hopefully few prototypes,
10914 which can conflict with char gethostbyname(); below. */
10915 #include <assert.h>
10916 /* Override any gcc2 internal prototype to avoid an error. */
10917 /* We use char because int might match the return type of a gcc2
10918 builtin and then its argument prototype would still apply. */
10919 char gethostbyname();
10920
10921 int main() {
10922
10923 /* The GNU C library defines this for functions which it implements
10924 to always fail with ENOSYS. Some functions are actually named
10925 something starting with __ and the normal name is an alias. */
10926 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10927 choke me
10928 #else
10929 gethostbyname();
10930 #endif
10931
10932 ; return 0; }
10933 EOF
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10935 rm -rf conftest*
10936 eval "ac_cv_func_gethostbyname=yes"
10937 else
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 rm -rf conftest*
10941 eval "ac_cv_func_gethostbyname=no"
10942 fi
10943 rm -f conftest*
10944 fi
10945
10946 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10947 echo "$ac_t""yes" 1>&6
10948 :
10949 else
10950 echo "$ac_t""no" 1>&6
10951 fi
10952
10953 if test $ac_cv_func_gethostbyname = no; then
10954 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10955 echo "configure:10956: checking for gethostbyname in -lnsl" >&5
10956 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10958 echo $ac_n "(cached) $ac_c" 1>&6
10959 else
10960 ac_save_LIBS="$LIBS"
10961 LIBS="-lnsl $LIBS"
10962 cat > conftest.$ac_ext <<EOF
10963 #line 10964 "configure"
10964 #include "confdefs.h"
10965 /* Override any gcc2 internal prototype to avoid an error. */
10966 /* We use char because int might match the return type of a gcc2
10967 builtin and then its argument prototype would still apply. */
10968 char gethostbyname();
10969
10970 int main() {
10971 gethostbyname()
10972 ; return 0; }
10973 EOF
10974 if { (eval echo configure:10975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10975 rm -rf conftest*
10976 eval "ac_cv_lib_$ac_lib_var=yes"
10977 else
10978 echo "configure: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 rm -rf conftest*
10981 eval "ac_cv_lib_$ac_lib_var=no"
10982 fi
10983 rm -f conftest*
10984 LIBS="$ac_save_LIBS"
10985
10986 fi
10987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10990 else
10991 echo "$ac_t""no" 1>&6
10992 fi
10993
10994 fi
10995
10996 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10997 # socket/setsockopt and other routines are undefined under SCO ODT
10998 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10999 # on later versions), says simon@lia.di.epfl.ch: it contains
11000 # gethostby* variants that don't use the nameserver (or something).
11001 # -lsocket must be given before -lnsl if both are needed.
11002 # We assume that if connect needs -lnsl, so does gethostbyname.
11003 echo $ac_n "checking for connect""... $ac_c" 1>&6
11004 echo "configure:11005: checking for connect" >&5
11005 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11006 echo $ac_n "(cached) $ac_c" 1>&6
11007 else
11008 cat > conftest.$ac_ext <<EOF
11009 #line 11010 "configure"
11010 #include "confdefs.h"
11011 /* System header to define __stub macros and hopefully few prototypes,
11012 which can conflict with char connect(); below. */
11013 #include <assert.h>
11014 /* Override any gcc2 internal prototype to avoid an error. */
11015 /* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11017 char connect();
11018
11019 int main() {
11020
11021 /* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024 #if defined (__stub_connect) || defined (__stub___connect)
11025 choke me
11026 #else
11027 connect();
11028 #endif
11029
11030 ; return 0; }
11031 EOF
11032 if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11033 rm -rf conftest*
11034 eval "ac_cv_func_connect=yes"
11035 else
11036 echo "configure: failed program was:" >&5
11037 cat conftest.$ac_ext >&5
11038 rm -rf conftest*
11039 eval "ac_cv_func_connect=no"
11040 fi
11041 rm -f conftest*
11042 fi
11043
11044 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11045 echo "$ac_t""yes" 1>&6
11046 :
11047 else
11048 echo "$ac_t""no" 1>&6
11049 fi
11050
11051 if test $ac_cv_func_connect = no; then
11052 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11053 echo "configure:11054: checking for connect in -lsocket" >&5
11054 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
11057 else
11058 ac_save_LIBS="$LIBS"
11059 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11060 cat > conftest.$ac_ext <<EOF
11061 #line 11062 "configure"
11062 #include "confdefs.h"
11063 /* Override any gcc2 internal prototype to avoid an error. */
11064 /* We use char because int might match the return type of a gcc2
11065 builtin and then its argument prototype would still apply. */
11066 char connect();
11067
11068 int main() {
11069 connect()
11070 ; return 0; }
11071 EOF
11072 if { (eval echo configure:11073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11073 rm -rf conftest*
11074 eval "ac_cv_lib_$ac_lib_var=yes"
11075 else
11076 echo "configure: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 rm -rf conftest*
11079 eval "ac_cv_lib_$ac_lib_var=no"
11080 fi
11081 rm -f conftest*
11082 LIBS="$ac_save_LIBS"
11083
11084 fi
11085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11086 echo "$ac_t""yes" 1>&6
11087 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11088 else
11089 echo "$ac_t""no" 1>&6
11090 fi
11091
11092 fi
11093
11094 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11095 echo $ac_n "checking for remove""... $ac_c" 1>&6
11096 echo "configure:11097: checking for remove" >&5
11097 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11098 echo $ac_n "(cached) $ac_c" 1>&6
11099 else
11100 cat > conftest.$ac_ext <<EOF
11101 #line 11102 "configure"
11102 #include "confdefs.h"
11103 /* System header to define __stub macros and hopefully few prototypes,
11104 which can conflict with char remove(); below. */
11105 #include <assert.h>
11106 /* Override any gcc2 internal prototype to avoid an error. */
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11109 char remove();
11110
11111 int main() {
11112
11113 /* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116 #if defined (__stub_remove) || defined (__stub___remove)
11117 choke me
11118 #else
11119 remove();
11120 #endif
11121
11122 ; return 0; }
11123 EOF
11124 if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11125 rm -rf conftest*
11126 eval "ac_cv_func_remove=yes"
11127 else
11128 echo "configure: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11130 rm -rf conftest*
11131 eval "ac_cv_func_remove=no"
11132 fi
11133 rm -f conftest*
11134 fi
11135
11136 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11137 echo "$ac_t""yes" 1>&6
11138 :
11139 else
11140 echo "$ac_t""no" 1>&6
11141 fi
11142
11143 if test $ac_cv_func_remove = no; then
11144 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11145 echo "configure:11146: checking for remove in -lposix" >&5
11146 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11148 echo $ac_n "(cached) $ac_c" 1>&6
11149 else
11150 ac_save_LIBS="$LIBS"
11151 LIBS="-lposix $LIBS"
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 /* Override any gcc2 internal prototype to avoid an error. */
11156 /* We use char because int might match the return type of a gcc2
11157 builtin and then its argument prototype would still apply. */
11158 char remove();
11159
11160 int main() {
11161 remove()
11162 ; return 0; }
11163 EOF
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11165 rm -rf conftest*
11166 eval "ac_cv_lib_$ac_lib_var=yes"
11167 else
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 rm -rf conftest*
11171 eval "ac_cv_lib_$ac_lib_var=no"
11172 fi
11173 rm -f conftest*
11174 LIBS="$ac_save_LIBS"
11175
11176 fi
11177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11178 echo "$ac_t""yes" 1>&6
11179 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11180 else
11181 echo "$ac_t""no" 1>&6
11182 fi
11183
11184 fi
11185
11186 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11187 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11188 echo "configure:11189: checking for shmat" >&5
11189 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
11191 else
11192 cat > conftest.$ac_ext <<EOF
11193 #line 11194 "configure"
11194 #include "confdefs.h"
11195 /* System header to define __stub macros and hopefully few prototypes,
11196 which can conflict with char shmat(); below. */
11197 #include <assert.h>
11198 /* Override any gcc2 internal prototype to avoid an error. */
11199 /* We use char because int might match the return type of a gcc2
11200 builtin and then its argument prototype would still apply. */
11201 char shmat();
11202
11203 int main() {
11204
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined (__stub_shmat) || defined (__stub___shmat)
11209 choke me
11210 #else
11211 shmat();
11212 #endif
11213
11214 ; return 0; }
11215 EOF
11216 if { (eval echo configure:11217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11217 rm -rf conftest*
11218 eval "ac_cv_func_shmat=yes"
11219 else
11220 echo "configure: failed program was:" >&5
11221 cat conftest.$ac_ext >&5
11222 rm -rf conftest*
11223 eval "ac_cv_func_shmat=no"
11224 fi
11225 rm -f conftest*
11226 fi
11227
11228 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11229 echo "$ac_t""yes" 1>&6
11230 :
11231 else
11232 echo "$ac_t""no" 1>&6
11233 fi
11234
11235 if test $ac_cv_func_shmat = no; then
11236 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
11237 echo "configure:11238: checking for shmat in -lipc" >&5
11238 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11240 echo $ac_n "(cached) $ac_c" 1>&6
11241 else
11242 ac_save_LIBS="$LIBS"
11243 LIBS="-lipc $LIBS"
11244 cat > conftest.$ac_ext <<EOF
11245 #line 11246 "configure"
11246 #include "confdefs.h"
11247 /* Override any gcc2 internal prototype to avoid an error. */
11248 /* We use char because int might match the return type of a gcc2
11249 builtin and then its argument prototype would still apply. */
11250 char shmat();
11251
11252 int main() {
11253 shmat()
11254 ; return 0; }
11255 EOF
11256 if { (eval echo configure:11257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11257 rm -rf conftest*
11258 eval "ac_cv_lib_$ac_lib_var=yes"
11259 else
11260 echo "configure: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11262 rm -rf conftest*
11263 eval "ac_cv_lib_$ac_lib_var=no"
11264 fi
11265 rm -f conftest*
11266 LIBS="$ac_save_LIBS"
11267
11268 fi
11269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11270 echo "$ac_t""yes" 1>&6
11271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11272 else
11273 echo "$ac_t""no" 1>&6
11274 fi
11275
11276 fi
11277 fi
11278
11279 # Check for libraries that X11R6 Xt/Xaw programs need.
11280 ac_save_LDFLAGS="$LDFLAGS"
11281 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11282 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11283 # check for ICE first), but we must link in the order -lSM -lICE or
11284 # we get undefined symbols. So assume we have SM if we have ICE.
11285 # These have to be linked with before -lX11, unlike the other
11286 # libraries we check for below, so use a different variable.
11287 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11288 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
11289 echo "configure:11290: checking for IceConnectionNumber in -lICE" >&5
11290 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11293 else
11294 ac_save_LIBS="$LIBS"
11295 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11296 cat > conftest.$ac_ext <<EOF
11297 #line 11298 "configure"
11298 #include "confdefs.h"
11299 /* Override any gcc2 internal prototype to avoid an error. */
11300 /* We use char because int might match the return type of a gcc2
11301 builtin and then its argument prototype would still apply. */
11302 char IceConnectionNumber();
11303
11304 int main() {
11305 IceConnectionNumber()
11306 ; return 0; }
11307 EOF
11308 if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11309 rm -rf conftest*
11310 eval "ac_cv_lib_$ac_lib_var=yes"
11311 else
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 rm -rf conftest*
11315 eval "ac_cv_lib_$ac_lib_var=no"
11316 fi
11317 rm -f conftest*
11318 LIBS="$ac_save_LIBS"
11319
11320 fi
11321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11322 echo "$ac_t""yes" 1>&6
11323 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11324 else
11325 echo "$ac_t""no" 1>&6
11326 fi
11327
11328 LDFLAGS="$ac_save_LDFLAGS"
11329
11330 fi
11331
11332
11333 if test "$no_x" = "yes"; then
11334 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11335 fi
11336
11337 GUI_TK_LIBRARY="$X_LIBS"
11338 TOOLKIT_INCLUDE="$X_CFLAGS"
11339 AFMINSTALL=afminstall
11340 COMPILED_X_PROGRAM=0
11341
11342 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
11343 echo "configure:11344: checking for Motif/Lesstif headers" >&5
11344
11345 ac_find_includes=
11346 for ac_dir in $SEARCH_INCLUDE;
11347 do
11348 if test -f "$ac_dir/Xm/Xm.h"; then
11349 ac_find_includes=$ac_dir
11350 break
11351 fi
11352 done
11353
11354 if test "$ac_find_includes" != "" ; then
11355 echo "$ac_t""found $ac_find_includes" 1>&6
11356 else
11357 cat > conftest.$ac_ext <<EOF
11358 #line 11359 "configure"
11359 #include "confdefs.h"
11360
11361 #include <Xm/Xm.h>
11362
11363 int main() {
11364
11365 int version;
11366 version = xmUseVersion;
11367
11368 ; return 0; }
11369 EOF
11370 if { (eval echo configure:11371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11371 rm -rf conftest*
11372
11373 echo "$ac_t""found in default search path" 1>&6
11374 COMPILED_X_PROGRAM=1
11375
11376 else
11377 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11379 rm -rf conftest*
11380
11381 echo "$ac_t""no" 1>&6
11382 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11383
11384
11385 fi
11386 rm -f conftest*
11387 fi
11388
11389 if test "$COMPILED_X_PROGRAM" = 0; then
11390 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
11391 echo "configure:11392: checking for Motif/Lesstif library" >&5
11392
11393 ac_find_libraries=
11394 for ac_dir in $SEARCH_LIB;
11395 do
11396 for ac_extension in a so sl dylib; do
11397 if test -f "$ac_dir/libXm.$ac_extension"; then
11398 ac_find_libraries=$ac_dir
11399 break 2
11400 fi
11401 done
11402 done
11403
11404 if test "$ac_find_libraries" != "" ; then
11405
11406 ac_path_to_include=$ac_find_includes
11407 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11408 result=$?
11409 if test $result = 0; then
11410 ac_path_to_include=""
11411 else
11412 ac_path_to_include=" -I$ac_find_includes"
11413 fi
11414
11415
11416 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11417 result=$?
11418 if test $result = 0; then
11419 ac_path_to_link=""
11420 else
11421 ac_path_to_link=" -L$ac_find_libraries"
11422 fi
11423
11424
11425 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11426 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
11427 echo "$ac_t""found at $ac_find_libraries" 1>&6
11428 else
11429 cat > conftest.$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11432
11433 #include <Xm/Xm.h>
11434
11435 int main() {
11436
11437 int version;
11438 version = xmUseVersion;
11439
11440 ; return 0; }
11441 EOF
11442 if { (eval echo configure:11443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11443 rm -rf conftest*
11444
11445 echo "$ac_t""found in default search path" 1>&6
11446 COMPILED_X_PROGRAM=1
11447
11448 else
11449 echo "configure: failed program was:" >&5
11450 cat conftest.$ac_ext >&5
11451 rm -rf conftest*
11452
11453 echo "$ac_t""no" 1>&6
11454 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11455
11456
11457 fi
11458 rm -f conftest*
11459 fi
11460 fi
11461
11462 xpm_link=
11463 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11464 echo "configure:11465: checking for Xpm library" >&5
11465
11466 ac_find_libraries=
11467 for ac_dir in $SEARCH_LIB;
11468 do
11469 for ac_extension in a so sl dylib; do
11470 if test -f "$ac_dir/libXpm.$ac_extension"; then
11471 ac_find_libraries=$ac_dir
11472 break 2
11473 fi
11474 done
11475 done
11476
11477 if test "$ac_find_libraries" != "" ; then
11478
11479 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11480 result=$?
11481 if test $result = 0; then
11482 ac_path_to_link=""
11483 else
11484 ac_path_to_link=" -L$ac_find_libraries"
11485 fi
11486
11487 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11488 xpm_link=" -lXpm"
11489 cat >> confdefs.h <<\EOF
11490 #define wxHAVE_LIB_XPM 1
11491 EOF
11492
11493 echo "$ac_t""found at $ac_find_libraries" 1>&6
11494 else
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11498
11499 #include <X11/xpm.h>
11500
11501 int main() {
11502
11503 int version;
11504 version = XpmLibraryVersion();
11505
11506 ; return 0; }
11507 EOF
11508 if { (eval echo configure:11509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11509 rm -rf conftest*
11510
11511 xpm_link=" -lXpm"
11512 cat >> confdefs.h <<\EOF
11513 #define wxHAVE_LIB_XPM 1
11514 EOF
11515
11516 echo "$ac_t""found in default search path" 1>&6
11517 COMPILED_X_PROGRAM=0
11518
11519 else
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 rm -rf conftest*
11523
11524 echo "$ac_t""no" 1>&6
11525 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11526
11527
11528 fi
11529 rm -f conftest*
11530 fi
11531
11532 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
11533 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
11534 TOOLKIT=MOTIF
11535 GUIDIST=MOTIF_DIST
11536 fi
11537
11538 if test "$wxUSE_MAC" = 1; then
11539 if test "$wxUSE_PRECOMP" = "yes"; then
11540 CPPFLAGS="$CPPFLAGS -cpp-precomp"
11541 fi
11542 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11543 CFLAGS="$CFLAGS -fpascal-strings"
11544 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11545 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
11546
11547 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
11548 TOOLKIT=MAC
11549 GUIDIST=MACX_DIST
11550 fi
11551
11552 if test "$wxUSE_PM" = 1; then
11553 TOOLKIT=PM
11554 GUIDIST=GTK_DIST
11555 fi
11556
11557 if test "$TOOLKIT" = "PM" ; then
11558 TOOLKIT_DIR="os2"
11559 else
11560 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
11561 fi
11562
11563 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
11564
11565 if test "$wxUSE_UNIVERSAL" = "yes"; then
11566 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11567 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11568 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11569 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11570 WIDGET_SET=univ
11571 else
11572 ALL_OBJECTS="\$(GUIOBJS)"
11573 fi
11574
11575 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
11576
11577 if test "$TOOLKIT" != "MSW"; then
11578 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11579 fi
11580
11581 if test "$wxUSE_HTML" = "yes"; then
11582 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11583 fi
11584
11585 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11586 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
11587 fi
11588 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11589 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
11590 fi
11591 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11592 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11593 fi
11594 if test "$wxUSE_LIBPNG" = "builtin" ; then
11595 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11596 fi
11597 if test "$wxUSE_FREETYPE" = "builtin" ; then
11598 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11599 fi
11600
11601 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11602 DISTDIR="wx\$(TOOLKIT)"
11603 else
11604 USE_GUI=0
11605
11606 TOOLKIT_DIR="base"
11607
11608 if test "$USE_WIN32" = 1 ; then
11609 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11610 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
11611
11612 TOOLKIT="MSW"
11613 else
11614 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11615 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
11616 fi
11617
11618 PORT_FILES="\${top_srcdir}/src/files.lst"
11619
11620 GUIDIST="BASE_DIST"
11621 DISTDIR="wxBase"
11622 fi
11623
11624 if test "$wxUSE_REGEX" = "builtin" ; then
11625 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11626 fi
11627 if test "$wxUSE_ZLIB" = "builtin" ; then
11628 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11629 fi
11630
11631 if test "$wxUSE_OPENGL" = "yes"; then
11632 if test "$wxUSE_MAC" = 1; then
11633 OPENGL_LIBS="-framework OpenGL -framework AGL"
11634 else
11635
11636 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11637 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11638 echo "configure:11639: checking for GL/gl.h" >&5
11639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11640 echo $ac_n "(cached) $ac_c" 1>&6
11641 else
11642 cat > conftest.$ac_ext <<EOF
11643 #line 11644 "configure"
11644 #include "confdefs.h"
11645 #include <GL/gl.h>
11646 EOF
11647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11648 { (eval echo configure:11649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11650 if test -z "$ac_err"; then
11651 rm -rf conftest*
11652 eval "ac_cv_header_$ac_safe=yes"
11653 else
11654 echo "$ac_err" >&5
11655 echo "configure: failed program was:" >&5
11656 cat conftest.$ac_ext >&5
11657 rm -rf conftest*
11658 eval "ac_cv_header_$ac_safe=no"
11659 fi
11660 rm -f conftest*
11661 fi
11662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11663 echo "$ac_t""yes" 1>&6
11664
11665 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
11666 echo "configure:11667: checking for -lGL" >&5
11667
11668 ac_find_libraries=
11669 for ac_dir in $SEARCH_LIB;
11670 do
11671 for ac_extension in a so sl dylib; do
11672 if test -f "$ac_dir/libGL.$ac_extension"; then
11673 ac_find_libraries=$ac_dir
11674 break 2
11675 fi
11676 done
11677 done
11678
11679 if test "$ac_find_libraries" != "" ; then
11680
11681 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11682 result=$?
11683 if test $result = 0; then
11684 ac_path_to_link=""
11685 else
11686 ac_path_to_link=" -L$ac_find_libraries"
11687 fi
11688
11689 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11690 OPENGL_LIBS="-lGL -lGLU"
11691 echo "$ac_t""yes" 1>&6
11692 else
11693 echo "$ac_t""no" 1>&6
11694 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
11695 echo "configure:11696: checking for -lMesaGL" >&5
11696
11697 ac_find_libraries=
11698 for ac_dir in $SEARCH_LIB;
11699 do
11700 for ac_extension in a so sl dylib; do
11701 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11702 ac_find_libraries=$ac_dir
11703 break 2
11704 fi
11705 done
11706 done
11707
11708 if test "$ac_find_libraries" != "" ; then
11709
11710 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11711 result=$?
11712 if test $result = 0; then
11713 ac_path_to_link=""
11714 else
11715 ac_path_to_link=" -L$ac_find_libraries"
11716 fi
11717
11718 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11719 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11720 echo "$ac_t""yes" 1>&6
11721 else
11722 echo "$ac_t""no" 1>&6
11723 fi
11724 fi
11725
11726 else
11727 echo "$ac_t""no" 1>&6
11728 fi
11729
11730
11731
11732 # AC_CHECK_HEADER(GL/gl.h,
11733 # [
11734 # AC_CHECK_LIB(GL, glFlush,
11735 # [
11736 # OPENGL_LIBS="-lGL -lGLU"
11737 # ],
11738 # [
11739 # AC_CHECK_LIB(MesaGL, glFlush,
11740 # [
11741 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
11742 # ],
11743 # [],
11744 # [-lm])
11745 # ],
11746 # [-lm])
11747 # ])
11748
11749 if test "x$OPENGL_LIBS" = "x"; then
11750 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
11751 fi
11752 fi
11753
11754 if test "$wxUSE_OPENGL" = "yes"; then
11755 cat >> confdefs.h <<\EOF
11756 #define wxUSE_OPENGL 1
11757 EOF
11758
11759 cat >> confdefs.h <<\EOF
11760 #define wxUSE_GLCANVAS 1
11761 EOF
11762
11763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11764 fi
11765 fi
11766
11767 if test -z "$TOOLKIT_VPATH" ; then
11768 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11769 fi
11770
11771 if test -n "$TOOLKIT" ; then
11772 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11773 fi
11774
11775 lib_unicode_suffix=
11776 if test "$wxUSE_UNICODE" = "yes"; then
11777 lib_unicode_suffix=u
11778 fi
11779
11780 lib_debug_suffix=
11781 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11782 lib_debug_suffix=d
11783 fi
11784
11785 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11786 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
11787
11788 if test "$cross_compiling" = "yes"; then
11789 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11790 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11791 fi
11792
11793 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11794 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11795
11796 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11797 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11798
11799 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11800 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11801 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11802 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11803
11804 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
11805 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
11806
11807 case "${host}" in
11808 *-*-cygwin* | *-*-mingw32* )
11809
11810
11811
11812 if test "$cross_compiling" != "yes"; then
11813 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11814 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11815 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
11816 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
11817 else
11818 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
11819 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11820 fi
11821
11822 esac
11823
11824 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11825 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11826
11827 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11828 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
11829
11830 if test "$wxUSE_OPENGL" = "yes"; then
11831 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
11832 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
11833 fi
11834
11835
11836
11837 if test "$wxUSE_SHARED" = "yes"; then
11838
11839 if test "$wxUSE_OPENGL" = "yes"; then
11840 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11841 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11842 else
11843 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11844 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11845 fi
11846
11847 if test "$GCC" = "yes"; then
11848 PIC_FLAG="-fPIC"
11849 fi
11850
11851 SHARED_LD="${CXX} -shared -o"
11852
11853 case "${host}" in
11854 *-hp-hpux* )
11855 if test "$GCC" != "yes"; then
11856 LDFLAGS="$LDFLAGS -L/usr/lib"
11857
11858 SHARED_LD="${CXX} -b -o"
11859 PIC_FLAG="+Z"
11860 fi
11861
11862 if test "$wxUSE_OPENGL" = "yes"; then
11863 WX_ALL_INSTALLED="preinstall_gl"
11864 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11865 else
11866 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11867 fi
11868 ;;
11869
11870 *-*-linux* )
11871 if test "$GCC" != "yes"; then
11872 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11873 echo "configure:11874: checking for Intel compiler" >&5
11874 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11875 echo $ac_n "(cached) $ac_c" 1>&6
11876 else
11877
11878 cat > conftest.$ac_ext <<EOF
11879 #line 11880 "configure"
11880 #include "confdefs.h"
11881
11882 int main() {
11883
11884 #ifndef __INTEL_COMPILER
11885 #error Not icc
11886 #endif
11887
11888 ; return 0; }
11889 EOF
11890 if { (eval echo configure:11891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11891 rm -rf conftest*
11892 wx_cv_prog_icc=yes
11893 else
11894 echo "configure: failed program was:" >&5
11895 cat conftest.$ac_ext >&5
11896 rm -rf conftest*
11897 wx_cv_prog_icc=no
11898
11899 fi
11900 rm -f conftest*
11901
11902 fi
11903
11904 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11905 if test "$wx_cv_prog_icc" = "yes"; then
11906 PIC_FLAG="-KPIC"
11907 fi
11908 fi
11909
11910 if test "$wxUSE_SONAME" = "yes" ; then
11911 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11912 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11913 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11914 fi
11915 ;;
11916
11917 *-*-solaris2* )
11918 if test "$GCC" = yes ; then
11919 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11920 else
11921 SHARED_LD="${CXX} -G -o"
11922 PIC_FLAG="-KPIC"
11923 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11924 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
11925 fi
11926 ;;
11927
11928 *-*-darwin* )
11929 CFLAGS="$CFLAGS -fno-common"
11930 CXXFLAGS="$CXXFLAGS -fno-common"
11931 SHARED_LD="$CXX -dynamiclib -o"
11932 PIC_FLAG="-dynamic -fPIC"
11933 ;;
11934
11935 *-*-aix* )
11936 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11937 ;;
11938
11939 *-*-cygwin* | *-*-mingw32* )
11940
11941 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
11942
11943 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
11944 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
11945
11946 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11947
11948 if test "$wxUSE_OPENGL" = "yes"; then
11949 WX_ALL_INSTALLED="preinstall_gl"
11950 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11951 else
11952 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11953 fi
11954 ;;
11955
11956 *-pc-os2_emx | *-pc-os2-emx )
11957 wxUSE_SHARED=no
11958 ;;
11959
11960 *-*-beos* )
11961 SHARED_LD="${LD} -shared -o"
11962 ;;
11963
11964 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11965 *-*-sunos4* | \
11966 *-*-irix5* | *-*-irix6* | \
11967 *-*-osf* | \
11968 *-*-dgux5* | \
11969 *-*-sysv5* )
11970 ;;
11971
11972 *)
11973 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
11974 esac
11975
11976 if test "x$WX_TARGET_LIBRARY" = "x"; then
11977 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11978 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11979 fi
11980
11981 WX_TARGET_LIBRARY_TYPE="so"
11982 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
11983 fi
11984
11985 if test "$wxUSE_SHARED" = "no"; then
11986
11987 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11988 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11989 fi
11990
11991 if test "$wxUSE_MAC" = 1; then
11992 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11993 fi
11994
11995 if test "$wxUSE_OPENGL" = "yes"; then
11996 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11997 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11998 else
11999 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12000 fi
12001
12002 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12003 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12004
12005 WX_TARGET_LIBRARY_TYPE="a"
12006 INSTALL_LIBRARY='$(INSTALL_DATA)'
12007 fi
12008
12009 if test "$wxUSE_MAC" = 1; then
12010 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
12011 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
12012 # Extract the first word of "Rez", so it can be a program name with args.
12013 set dummy Rez; ac_word=$2
12014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12015 echo "configure:12016: checking for $ac_word" >&5
12016 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12017 echo $ac_n "(cached) $ac_c" 1>&6
12018 else
12019 if test -n "$RESCOMP"; then
12020 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12021 else
12022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12023 ac_dummy="$PATH"
12024 for ac_dir in $ac_dummy; do
12025 test -z "$ac_dir" && ac_dir=.
12026 if test -f $ac_dir/$ac_word; then
12027 ac_cv_prog_RESCOMP="Rez"
12028 break
12029 fi
12030 done
12031 IFS="$ac_save_ifs"
12032 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12033 fi
12034 fi
12035 RESCOMP="$ac_cv_prog_RESCOMP"
12036 if test -n "$RESCOMP"; then
12037 echo "$ac_t""$RESCOMP" 1>&6
12038 else
12039 echo "$ac_t""no" 1>&6
12040 fi
12041
12042 # Extract the first word of "Derez", so it can be a program name with args.
12043 set dummy Derez; ac_word=$2
12044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12045 echo "configure:12046: checking for $ac_word" >&5
12046 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12047 echo $ac_n "(cached) $ac_c" 1>&6
12048 else
12049 if test -n "$DEREZ"; then
12050 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12051 else
12052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12053 ac_dummy="$PATH"
12054 for ac_dir in $ac_dummy; do
12055 test -z "$ac_dir" && ac_dir=.
12056 if test -f $ac_dir/$ac_word; then
12057 ac_cv_prog_DEREZ="Derez"
12058 break
12059 fi
12060 done
12061 IFS="$ac_save_ifs"
12062 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
12063 fi
12064 fi
12065 DEREZ="$ac_cv_prog_DEREZ"
12066 if test -n "$DEREZ"; then
12067 echo "$ac_t""$DEREZ" 1>&6
12068 else
12069 echo "$ac_t""no" 1>&6
12070 fi
12071
12072 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12073 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12074 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12075 fi
12076
12077
12078 if test "$wxUSE_MAC" != 1; then
12079 for ac_hdr in strings.h
12080 do
12081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12083 echo "configure:12084: checking for $ac_hdr" >&5
12084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12085 echo $ac_n "(cached) $ac_c" 1>&6
12086 else
12087 cat > conftest.$ac_ext <<EOF
12088 #line 12089 "configure"
12089 #include "confdefs.h"
12090 #include <$ac_hdr>
12091 EOF
12092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12093 { (eval echo configure:12094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12095 if test -z "$ac_err"; then
12096 rm -rf conftest*
12097 eval "ac_cv_header_$ac_safe=yes"
12098 else
12099 echo "$ac_err" >&5
12100 echo "configure: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12102 rm -rf conftest*
12103 eval "ac_cv_header_$ac_safe=no"
12104 fi
12105 rm -f conftest*
12106 fi
12107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12108 echo "$ac_t""yes" 1>&6
12109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12110 cat >> confdefs.h <<EOF
12111 #define $ac_tr_hdr 1
12112 EOF
12113
12114 else
12115 echo "$ac_t""no" 1>&6
12116 fi
12117 done
12118
12119 fi
12120
12121 for ac_hdr in stdlib.h
12122 do
12123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12125 echo "configure:12126: checking for $ac_hdr" >&5
12126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12127 echo $ac_n "(cached) $ac_c" 1>&6
12128 else
12129 cat > conftest.$ac_ext <<EOF
12130 #line 12131 "configure"
12131 #include "confdefs.h"
12132 #include <$ac_hdr>
12133 EOF
12134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12135 { (eval echo configure:12136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12137 if test -z "$ac_err"; then
12138 rm -rf conftest*
12139 eval "ac_cv_header_$ac_safe=yes"
12140 else
12141 echo "$ac_err" >&5
12142 echo "configure: failed program was:" >&5
12143 cat conftest.$ac_ext >&5
12144 rm -rf conftest*
12145 eval "ac_cv_header_$ac_safe=no"
12146 fi
12147 rm -f conftest*
12148 fi
12149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12150 echo "$ac_t""yes" 1>&6
12151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12152 cat >> confdefs.h <<EOF
12153 #define $ac_tr_hdr 1
12154 EOF
12155
12156 else
12157 echo "$ac_t""no" 1>&6
12158 fi
12159 done
12160
12161 for ac_hdr in unistd.h
12162 do
12163 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12165 echo "configure:12166: checking for $ac_hdr" >&5
12166 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12167 echo $ac_n "(cached) $ac_c" 1>&6
12168 else
12169 cat > conftest.$ac_ext <<EOF
12170 #line 12171 "configure"
12171 #include "confdefs.h"
12172 #include <$ac_hdr>
12173 EOF
12174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12175 { (eval echo configure:12176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12177 if test -z "$ac_err"; then
12178 rm -rf conftest*
12179 eval "ac_cv_header_$ac_safe=yes"
12180 else
12181 echo "$ac_err" >&5
12182 echo "configure: failed program was:" >&5
12183 cat conftest.$ac_ext >&5
12184 rm -rf conftest*
12185 eval "ac_cv_header_$ac_safe=no"
12186 fi
12187 rm -f conftest*
12188 fi
12189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12190 echo "$ac_t""yes" 1>&6
12191 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12192 cat >> confdefs.h <<EOF
12193 #define $ac_tr_hdr 1
12194 EOF
12195
12196 else
12197 echo "$ac_t""no" 1>&6
12198 fi
12199 done
12200
12201 for ac_hdr in wchar.h
12202 do
12203 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12204 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12205 echo "configure:12206: checking for $ac_hdr" >&5
12206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
12213 EOF
12214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12215 { (eval echo configure:12216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12217 if test -z "$ac_err"; then
12218 rm -rf conftest*
12219 eval "ac_cv_header_$ac_safe=yes"
12220 else
12221 echo "$ac_err" >&5
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12224 rm -rf conftest*
12225 eval "ac_cv_header_$ac_safe=no"
12226 fi
12227 rm -f conftest*
12228 fi
12229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12230 echo "$ac_t""yes" 1>&6
12231 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12232 cat >> confdefs.h <<EOF
12233 #define $ac_tr_hdr 1
12234 EOF
12235
12236 else
12237 echo "$ac_t""no" 1>&6
12238 fi
12239 done
12240
12241 for ac_hdr in wcstr.h
12242 do
12243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12245 echo "configure:12246: checking for $ac_hdr" >&5
12246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12247 echo $ac_n "(cached) $ac_c" 1>&6
12248 else
12249 cat > conftest.$ac_ext <<EOF
12250 #line 12251 "configure"
12251 #include "confdefs.h"
12252 #include <$ac_hdr>
12253 EOF
12254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12255 { (eval echo configure:12256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12257 if test -z "$ac_err"; then
12258 rm -rf conftest*
12259 eval "ac_cv_header_$ac_safe=yes"
12260 else
12261 echo "$ac_err" >&5
12262 echo "configure: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 rm -rf conftest*
12265 eval "ac_cv_header_$ac_safe=no"
12266 fi
12267 rm -f conftest*
12268 fi
12269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12272 cat >> confdefs.h <<EOF
12273 #define $ac_tr_hdr 1
12274 EOF
12275
12276 else
12277 echo "$ac_t""no" 1>&6
12278 fi
12279 done
12280
12281 for ac_hdr in fnmatch.h
12282 do
12283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12285 echo "configure:12286: checking for $ac_hdr" >&5
12286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12287 echo $ac_n "(cached) $ac_c" 1>&6
12288 else
12289 cat > conftest.$ac_ext <<EOF
12290 #line 12291 "configure"
12291 #include "confdefs.h"
12292 #include <$ac_hdr>
12293 EOF
12294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12295 { (eval echo configure:12296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12297 if test -z "$ac_err"; then
12298 rm -rf conftest*
12299 eval "ac_cv_header_$ac_safe=yes"
12300 else
12301 echo "$ac_err" >&5
12302 echo "configure: failed program was:" >&5
12303 cat conftest.$ac_ext >&5
12304 rm -rf conftest*
12305 eval "ac_cv_header_$ac_safe=no"
12306 fi
12307 rm -f conftest*
12308 fi
12309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12310 echo "$ac_t""yes" 1>&6
12311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12312 cat >> confdefs.h <<EOF
12313 #define $ac_tr_hdr 1
12314 EOF
12315
12316 else
12317 echo "$ac_t""no" 1>&6
12318 fi
12319 done
12320
12321 for ac_hdr in iconv.h
12322 do
12323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12325 echo "configure:12326: checking for $ac_hdr" >&5
12326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12327 echo $ac_n "(cached) $ac_c" 1>&6
12328 else
12329 cat > conftest.$ac_ext <<EOF
12330 #line 12331 "configure"
12331 #include "confdefs.h"
12332 #include <$ac_hdr>
12333 EOF
12334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12335 { (eval echo configure:12336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12337 if test -z "$ac_err"; then
12338 rm -rf conftest*
12339 eval "ac_cv_header_$ac_safe=yes"
12340 else
12341 echo "$ac_err" >&5
12342 echo "configure: failed program was:" >&5
12343 cat conftest.$ac_ext >&5
12344 rm -rf conftest*
12345 eval "ac_cv_header_$ac_safe=no"
12346 fi
12347 rm -f conftest*
12348 fi
12349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12350 echo "$ac_t""yes" 1>&6
12351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12352 cat >> confdefs.h <<EOF
12353 #define $ac_tr_hdr 1
12354 EOF
12355
12356 else
12357 echo "$ac_t""no" 1>&6
12358 fi
12359 done
12360
12361 for ac_hdr in langinfo.h
12362 do
12363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12365 echo "configure:12366: checking for $ac_hdr" >&5
12366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
12368 else
12369 cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12372 #include <$ac_hdr>
12373 EOF
12374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12375 { (eval echo configure:12376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12377 if test -z "$ac_err"; then
12378 rm -rf conftest*
12379 eval "ac_cv_header_$ac_safe=yes"
12380 else
12381 echo "$ac_err" >&5
12382 echo "configure: failed program was:" >&5
12383 cat conftest.$ac_ext >&5
12384 rm -rf conftest*
12385 eval "ac_cv_header_$ac_safe=no"
12386 fi
12387 rm -f conftest*
12388 fi
12389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12390 echo "$ac_t""yes" 1>&6
12391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12392 cat >> confdefs.h <<EOF
12393 #define $ac_tr_hdr 1
12394 EOF
12395
12396 else
12397 echo "$ac_t""no" 1>&6
12398 fi
12399 done
12400
12401
12402 if test "$wxUSE_GUI" = "yes"; then
12403 if test "$wxUSE_UNIX" = "yes"; then
12404 for ac_hdr in X11/XKBlib.h
12405 do
12406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12408 echo "configure:12409: checking for $ac_hdr" >&5
12409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12410 echo $ac_n "(cached) $ac_c" 1>&6
12411 else
12412 cat > conftest.$ac_ext <<EOF
12413 #line 12414 "configure"
12414 #include "confdefs.h"
12415 #include <$ac_hdr>
12416 EOF
12417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12418 { (eval echo configure:12419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12420 if test -z "$ac_err"; then
12421 rm -rf conftest*
12422 eval "ac_cv_header_$ac_safe=yes"
12423 else
12424 echo "$ac_err" >&5
12425 echo "configure: failed program was:" >&5
12426 cat conftest.$ac_ext >&5
12427 rm -rf conftest*
12428 eval "ac_cv_header_$ac_safe=no"
12429 fi
12430 rm -f conftest*
12431 fi
12432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12433 echo "$ac_t""yes" 1>&6
12434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12435 cat >> confdefs.h <<EOF
12436 #define $ac_tr_hdr 1
12437 EOF
12438
12439 else
12440 echo "$ac_t""no" 1>&6
12441 fi
12442 done
12443
12444 fi
12445 fi
12446
12447
12448 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12449 echo "configure:12450: checking for ANSI C header files" >&5
12450 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12451 echo $ac_n "(cached) $ac_c" 1>&6
12452 else
12453 cat > conftest.$ac_ext <<EOF
12454 #line 12455 "configure"
12455 #include "confdefs.h"
12456 #include <stdlib.h>
12457 #include <stdarg.h>
12458 #include <string.h>
12459 #include <float.h>
12460 EOF
12461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12462 { (eval echo configure:12463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12464 if test -z "$ac_err"; then
12465 rm -rf conftest*
12466 ac_cv_header_stdc=yes
12467 else
12468 echo "$ac_err" >&5
12469 echo "configure: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12471 rm -rf conftest*
12472 ac_cv_header_stdc=no
12473 fi
12474 rm -f conftest*
12475
12476 if test $ac_cv_header_stdc = yes; then
12477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12478 cat > conftest.$ac_ext <<EOF
12479 #line 12480 "configure"
12480 #include "confdefs.h"
12481 #include <string.h>
12482 EOF
12483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12484 egrep "memchr" >/dev/null 2>&1; then
12485 :
12486 else
12487 rm -rf conftest*
12488 ac_cv_header_stdc=no
12489 fi
12490 rm -f conftest*
12491
12492 fi
12493
12494 if test $ac_cv_header_stdc = yes; then
12495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12496 cat > conftest.$ac_ext <<EOF
12497 #line 12498 "configure"
12498 #include "confdefs.h"
12499 #include <stdlib.h>
12500 EOF
12501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12502 egrep "free" >/dev/null 2>&1; then
12503 :
12504 else
12505 rm -rf conftest*
12506 ac_cv_header_stdc=no
12507 fi
12508 rm -f conftest*
12509
12510 fi
12511
12512 if test $ac_cv_header_stdc = yes; then
12513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12514 if test "$cross_compiling" = yes; then
12515 :
12516 else
12517 cat > conftest.$ac_ext <<EOF
12518 #line 12519 "configure"
12519 #include "confdefs.h"
12520 #include <ctype.h>
12521 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12522 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12524 int main () { int i; for (i = 0; i < 256; i++)
12525 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12526 exit (0); }
12527
12528 EOF
12529 if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12530 then
12531 :
12532 else
12533 echo "configure: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 rm -fr conftest*
12536 ac_cv_header_stdc=no
12537 fi
12538 rm -fr conftest*
12539 fi
12540
12541 fi
12542 fi
12543
12544 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12545 if test $ac_cv_header_stdc = yes; then
12546 cat >> confdefs.h <<\EOF
12547 #define STDC_HEADERS 1
12548 EOF
12549
12550 fi
12551
12552 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12553 echo "configure:12554: checking for mode_t" >&5
12554 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12555 echo $ac_n "(cached) $ac_c" 1>&6
12556 else
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12559 "configure"
12559 #include "confdefs.h"
12560 #include <sys/types.h>
12561 #if STDC_HEADERS
12562 #include <stdlib.h>
12563 #include <stddef.h>
12564 #endif
12565 EOF
12566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12567 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12568 rm -rf conftest*
12569 ac_cv_type_mode_t=yes
12570 else
12571 rm -rf conftest*
12572 ac_cv_type_mode_t=no
12573 fi
12574 rm -f conftest*
12575
12576 fi
12577 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12578 if test $ac_cv_type_mode_t = no; then
12579 cat >> confdefs.h <<\EOF
12580 #define mode_t int
12581 EOF
12582
12583 fi
12584
12585 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12586 echo "configure:12587: checking for off_t" >&5
12587 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12588 echo $ac_n "(cached) $ac_c" 1>&6
12589 else
12590 cat > conftest.$ac_ext <<EOF
12591 #line 12592 "configure"
12592 #include "confdefs.h"
12593 #include <sys/types.h>
12594 #if STDC_HEADERS
12595 #include <stdlib.h>
12596 #include <stddef.h>
12597 #endif
12598 EOF
12599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12600 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12601 rm -rf conftest*
12602 ac_cv_type_off_t=yes
12603 else
12604 rm -rf conftest*
12605 ac_cv_type_off_t=no
12606 fi
12607 rm -f conftest*
12608
12609 fi
12610 echo "$ac_t""$ac_cv_type_off_t" 1>&6
12611 if test $ac_cv_type_off_t = no; then
12612 cat >> confdefs.h <<\EOF
12613 #define off_t long
12614 EOF
12615
12616 fi
12617
12618 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12619 echo "configure:12620: checking for pid_t" >&5
12620 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12621 echo $ac_n "(cached) $ac_c" 1>&6
12622 else
12623 cat > conftest.$ac_ext <<EOF
12624 #line 12625 "configure"
12625 #include "confdefs.h"
12626 #include <sys/types.h>
12627 #if STDC_HEADERS
12628 #include <stdlib.h>
12629 #include <stddef.h>
12630 #endif
12631 EOF
12632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12633 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12634 rm -rf conftest*
12635 ac_cv_type_pid_t=yes
12636 else
12637 rm -rf conftest*
12638 ac_cv_type_pid_t=no
12639 fi
12640 rm -f conftest*
12641
12642 fi
12643 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12644 if test $ac_cv_type_pid_t = no; then
12645 cat >> confdefs.h <<\EOF
12646 #define pid_t int
12647 EOF
12648
12649 fi
12650
12651 echo $ac_n "checking for size_t""... $ac_c" 1>&6
12652 echo "configure:12653: checking for size_t" >&5
12653 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12655 else
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12659 #include <sys/types.h>
12660 #if STDC_HEADERS
12661 #include <stdlib.h>
12662 #include <stddef.h>
12663 #endif
12664 EOF
12665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12666 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12667 rm -rf conftest*
12668 ac_cv_type_size_t=yes
12669 else
12670 rm -rf conftest*
12671 ac_cv_type_size_t=no
12672 fi
12673 rm -f conftest*
12674
12675 fi
12676 echo "$ac_t""$ac_cv_type_size_t" 1>&6
12677 if test $ac_cv_type_size_t = no; then
12678 cat >> confdefs.h <<\EOF
12679 #define size_t unsigned
12680 EOF
12681
12682 fi
12683
12684 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12685 echo "configure:12686: checking for uid_t in sys/types.h" >&5
12686 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12687 echo $ac_n "(cached) $ac_c" 1>&6
12688 else
12689 cat > conftest.$ac_ext <<EOF
12690 #line 12691 "configure"
12691 #include "confdefs.h"
12692 #include <sys/types.h>
12693 EOF
12694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12695 egrep "uid_t" >/dev/null 2>&1; then
12696 rm -rf conftest*
12697 ac_cv_type_uid_t=yes
12698 else
12699 rm -rf conftest*
12700 ac_cv_type_uid_t=no
12701 fi
12702 rm -f conftest*
12703
12704 fi
12705
12706 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12707 if test $ac_cv_type_uid_t = no; then
12708 cat >> confdefs.h <<\EOF
12709 #define uid_t int
12710 EOF
12711
12712 cat >> confdefs.h <<\EOF
12713 #define gid_t int
12714 EOF
12715
12716 fi
12717
12718
12719 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12720 echo "configure:12721: checking for wchar_t" >&5
12721 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12722 echo $ac_n "(cached) $ac_c" 1>&6
12723 else
12724
12725 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure"
12727 #include "confdefs.h"
12728
12729 #ifdef HAVE_WCHAR_H
12730 # include <wchar.h>
12731 #endif
12732 #ifdef HAVE_STDLIB_H
12733 # include <stdlib.h>
12734 #endif
12735
12736 int main() {
12737
12738 wchar_t wc, *ws;
12739 wc = L'a';
12740 ws = L"Hello, world!";
12741
12742 ; return 0; }
12743 EOF
12744 if { (eval echo configure:12745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12745 rm -rf conftest*
12746 wx_cv_type_wchar_t=yes
12747 else
12748 echo "configure: failed program was:" >&5
12749 cat conftest.$ac_ext >&5
12750 rm -rf conftest*
12751 wx_cv_type_wchar_t=no
12752
12753 fi
12754 rm -f conftest*
12755
12756 fi
12757
12758 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12759
12760 if test "$wx_cv_type_wchar_t" = "yes"; then
12761 cat >> confdefs.h <<\EOF
12762 #define wxUSE_WCHAR_T 1
12763 EOF
12764
12765 fi
12766
12767
12768 ac_ext=C
12769 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12770 ac_cpp='$CXXCPP $CPPFLAGS'
12771 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12772 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12773 cross_compiling=$ac_cv_prog_cxx_cross
12774
12775 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12776 echo "configure:12777: checking if size_t is unsigned int" >&5
12777 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12778 echo $ac_n "(cached) $ac_c" 1>&6
12779 else
12780 cat > conftest.$ac_ext <<EOF
12781 #line 12782 "configure"
12782 #include "confdefs.h"
12783 #include <stddef.h>
12784 int main() {
12785
12786 return 0; }
12787
12788 struct Foo { void foo(size_t); void foo(unsigned int); };
12789
12790 int bar() {
12791
12792 ; return 0; }
12793 EOF
12794 if { (eval echo configure:12795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12795 rm -rf conftest*
12796 wx_cv_size_t_is_uint=no
12797 else
12798 echo "configure: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12800 rm -rf conftest*
12801 wx_cv_size_t_is_uint=yes
12802
12803 fi
12804 rm -f conftest*
12805
12806 fi
12807
12808 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12809
12810 if test "$wx_cv_size_t_is_uint" = "yes"; then
12811 cat >> confdefs.h <<\EOF
12812 #define wxSIZE_T_IS_UINT 1
12813 EOF
12814
12815 else
12816 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12817 echo "configure:12818: checking if size_t is unsigned long" >&5
12818 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12819 echo $ac_n "(cached) $ac_c" 1>&6
12820 else
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 #include <stddef.h>
12825 int main() {
12826
12827 return 0; }
12828
12829 struct Foo { void foo(size_t); void foo(unsigned long); };
12830
12831 int bar() {
12832
12833 ; return 0; }
12834 EOF
12835 if { (eval echo configure:12836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12836 rm -rf conftest*
12837 wx_cv_size_t_is_ulong=no
12838 else
12839 echo "configure: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 rm -rf conftest*
12842 wx_cv_size_t_is_ulong=yes
12843
12844 fi
12845 rm -f conftest*
12846
12847 fi
12848
12849 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12850
12851 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12852 cat >> confdefs.h <<\EOF
12853 #define wxSIZE_T_IS_ULONG 1
12854 EOF
12855
12856 fi
12857 fi
12858
12859 ac_ext=c
12860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12861 ac_cpp='$CPP $CPPFLAGS'
12862 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12863 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12864 cross_compiling=$ac_cv_prog_cc_cross
12865
12866
12867
12868 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12869 echo "configure:12870: checking for pw_gecos in struct passwd" >&5
12870 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12871 echo $ac_n "(cached) $ac_c" 1>&6
12872 else
12873
12874 cat > conftest.$ac_ext <<EOF
12875 #line 12876 "configure"
12876 #include "confdefs.h"
12877 #include <pwd.h>
12878 int main() {
12879
12880 char *p;
12881 struct passwd *pw;
12882 p = pw->pw_gecos;
12883
12884 ; return 0; }
12885 EOF
12886 if { (eval echo configure:12887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12887 rm -rf conftest*
12888
12889 wx_cv_struct_pw_gecos=yes
12890
12891 else
12892 echo "configure: failed program was:" >&5
12893 cat conftest.$ac_ext >&5
12894 rm -rf conftest*
12895
12896 wx_cv_struct_pw_gecos=no
12897
12898
12899 fi
12900 rm -f conftest*
12901
12902
12903 fi
12904
12905 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12906
12907 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12908 cat >> confdefs.h <<\EOF
12909 #define HAVE_PW_GECOS 1
12910 EOF
12911
12912 fi
12913
12914
12915 echo $ac_n "checking for working const""... $ac_c" 1>&6
12916 echo "configure:12917: checking for working const" >&5
12917 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12918 echo $ac_n "(cached) $ac_c" 1>&6
12919 else
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12923
12924 int main() {
12925
12926 /* Ultrix mips cc rejects this. */
12927 typedef int charset[2]; const charset x;
12928 /* SunOS 4.1.1 cc rejects this. */
12929 char const *const *ccp;
12930 char **p;
12931 /* NEC SVR4.0.2 mips cc rejects this. */
12932 struct point {int x, y;};
12933 static struct point const zero = {0,0};
12934 /* AIX XL C 1.02.0.0 rejects this.
12935 It does not let you subtract one const X* pointer from another in an arm
12936 of an if-expression whose if-part is not a constant expression */
12937 const char *g = "string";
12938 ccp = &g + (g ? g-g : 0);
12939 /* HPUX 7.0 cc rejects these. */
12940 ++ccp;
12941 p = (char**) ccp;
12942 ccp = (char const *const *) p;
12943 { /* SCO 3.2v4 cc rejects this. */
12944 char *t;
12945 char const *s = 0 ? (char *) 0 : (char const *) 0;
12946
12947 *t++ = 0;
12948 }
12949 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12950 int x[] = {25, 17};
12951 const int *foo = &x[0];
12952 ++foo;
12953 }
12954 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12955 typedef const int *iptr;
12956 iptr p = 0;
12957 ++p;
12958 }
12959 { /* AIX XL C 1.02.0.0 rejects this saying
12960 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12961 struct s { int j; const int *ap[3]; };
12962 struct s *b; b->j = 5;
12963 }
12964 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12965 const int foo = 10;
12966 }
12967
12968 ; return 0; }
12969 EOF
12970 if { (eval echo configure:12971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12971 rm -rf conftest*
12972 ac_cv_c_const=yes
12973 else
12974 echo "configure: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 rm -rf conftest*
12977 ac_cv_c_const=no
12978 fi
12979 rm -f conftest*
12980 fi
12981
12982 echo "$ac_t""$ac_cv_c_const" 1>&6
12983 if test $ac_cv_c_const = no; then
12984 cat >> confdefs.h <<\EOF
12985 #define const
12986 EOF
12987
12988 fi
12989
12990 echo $ac_n "checking for inline""... $ac_c" 1>&6
12991 echo "configure:12992: checking for inline" >&5
12992 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12993 echo $ac_n "(cached) $ac_c" 1>&6
12994 else
12995 ac_cv_c_inline=no
12996 for ac_kw in inline __inline__ __inline; do
12997 cat > conftest.$ac_ext <<EOF
12998 #line 12999 "configure"
12999 #include "confdefs.h"
13000
13001 int main() {
13002 } $ac_kw foo() {
13003 ; return 0; }
13004 EOF
13005 if { (eval echo configure:13006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13006 rm -rf conftest*
13007 ac_cv_c_inline=$ac_kw; break
13008 else
13009 echo "configure: failed program was:" >&5
13010 cat conftest.$ac_ext >&5
13011 fi
13012 rm -f conftest*
13013 done
13014
13015 fi
13016
13017 echo "$ac_t""$ac_cv_c_inline" 1>&6
13018 case "$ac_cv_c_inline" in
13019 inline | yes) ;;
13020 no) cat >> confdefs.h <<\EOF
13021 #define inline
13022 EOF
13023 ;;
13024 *) cat >> confdefs.h <<EOF
13025 #define inline $ac_cv_c_inline
13026 EOF
13027 ;;
13028 esac
13029
13030
13031 echo $ac_n "checking size of char""... $ac_c" 1>&6
13032 echo "configure:13033: checking size of char" >&5
13033 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13035 else
13036 if test "$cross_compiling" = yes; then
13037 ac_cv_sizeof_char=1
13038 else
13039 cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure"
13041 #include "confdefs.h"
13042 #include <stdio.h>
13043 main()
13044 {
13045 FILE *f=fopen("conftestval", "w");
13046 if (!f) exit(1);
13047 fprintf(f, "%d\n", sizeof(char));
13048 exit(0);
13049 }
13050 EOF
13051 if { (eval echo configure:13052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13052 then
13053 ac_cv_sizeof_char=`cat conftestval`
13054 else
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13057 rm -fr conftest*
13058 ac_cv_sizeof_char=0
13059 fi
13060 rm -fr conftest*
13061 fi
13062
13063 fi
13064 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
13065 cat >> confdefs.h <<EOF
13066 #define SIZEOF_CHAR $ac_cv_sizeof_char
13067 EOF
13068
13069
13070 echo $ac_n "checking size of short""... $ac_c" 1>&6
13071 echo "configure:13072: checking size of short" >&5
13072 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13073 echo $ac_n "(cached) $ac_c" 1>&6
13074 else
13075 if test "$cross_compiling" = yes; then
13076 ac_cv_sizeof_short=2
13077 else
13078 cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13081 #include <stdio.h>
13082 main()
13083 {
13084 FILE *f=fopen("conftestval", "w");
13085 if (!f) exit(1);
13086 fprintf(f, "%d\n", sizeof(short));
13087 exit(0);
13088 }
13089 EOF
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13091 then
13092 ac_cv_sizeof_short=`cat conftestval`
13093 else
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13096 rm -fr conftest*
13097 ac_cv_sizeof_short=0
13098 fi
13099 rm -fr conftest*
13100 fi
13101
13102 fi
13103 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13104 cat >> confdefs.h <<EOF
13105 #define SIZEOF_SHORT $ac_cv_sizeof_short
13106 EOF
13107
13108
13109 echo $ac_n "checking size of int *""... $ac_c" 1>&6
13110 echo "configure:13111: checking size of int *" >&5
13111 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
13112 echo $ac_n "(cached) $ac_c" 1>&6
13113 else
13114 if test "$cross_compiling" = yes; then
13115 ac_cv_sizeof_int_p=4
13116 else
13117 cat > conftest.$ac_ext <<EOF
13118 #line 13119 "configure"
13119 #include "confdefs.h"
13120 #include <stdio.h>
13121 main()
13122 {
13123 FILE *f=fopen("conftestval", "w");
13124 if (!f) exit(1);
13125 fprintf(f, "%d\n", sizeof(int *));
13126 exit(0);
13127 }
13128 EOF
13129 if { (eval echo configure:13130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13130 then
13131 ac_cv_sizeof_int_p=`cat conftestval`
13132 else
13133 echo "configure: failed program was:" >&5
13134 cat conftest.$ac_ext >&5
13135 rm -fr conftest*
13136 ac_cv_sizeof_int_p=0
13137 fi
13138 rm -fr conftest*
13139 fi
13140
13141 fi
13142 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13143 cat >> confdefs.h <<EOF
13144 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13145 EOF
13146
13147
13148 echo $ac_n "checking size of int""... $ac_c" 1>&6
13149 echo "configure:13150: checking size of int" >&5
13150 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13151 echo $ac_n "(cached) $ac_c" 1>&6
13152 else
13153 if test "$cross_compiling" = yes; then
13154 ac_cv_sizeof_int=4
13155 else
13156 cat > conftest.$ac_ext <<EOF
13157 #line 13158 "configure"
13158 #include "confdefs.h"
13159 #include <stdio.h>
13160 main()
13161 {
13162 FILE *f=fopen("conftestval", "w");
13163 if (!f) exit(1);
13164 fprintf(f, "%d\n", sizeof(int));
13165 exit(0);
13166 }
13167 EOF
13168 if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13169 then
13170 ac_cv_sizeof_int=`cat conftestval`
13171 else
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 rm -fr conftest*
13175 ac_cv_sizeof_int=0
13176 fi
13177 rm -fr conftest*
13178 fi
13179
13180 fi
13181 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13182 cat >> confdefs.h <<EOF
13183 #define SIZEOF_INT $ac_cv_sizeof_int
13184 EOF
13185
13186
13187 echo $ac_n "checking size of long""... $ac_c" 1>&6
13188 echo "configure:13189: checking size of long" >&5
13189 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13190 echo $ac_n "(cached) $ac_c" 1>&6
13191 else
13192 if test "$cross_compiling" = yes; then
13193 ac_cv_sizeof_long=4
13194 else
13195 cat > conftest.$ac_ext <<EOF
13196 #line 13197 "configure"
13197 #include "confdefs.h"
13198 #include <stdio.h>
13199 main()
13200 {
13201 FILE *f=fopen("conftestval", "w");
13202 if (!f) exit(1);
13203 fprintf(f, "%d\n", sizeof(long));
13204 exit(0);
13205 }
13206 EOF
13207 if { (eval echo configure:13208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13208 then
13209 ac_cv_sizeof_long=`cat conftestval`
13210 else
13211 echo "configure: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13213 rm -fr conftest*
13214 ac_cv_sizeof_long=0
13215 fi
13216 rm -fr conftest*
13217 fi
13218
13219 fi
13220 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13221 cat >> confdefs.h <<EOF
13222 #define SIZEOF_LONG $ac_cv_sizeof_long
13223 EOF
13224
13225
13226 echo $ac_n "checking size of long long""... $ac_c" 1>&6
13227 echo "configure:13228: checking size of long long" >&5
13228 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
13229 echo $ac_n "(cached) $ac_c" 1>&6
13230 else
13231 if test "$cross_compiling" = yes; then
13232 ac_cv_sizeof_long_long=0
13233 else
13234 cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 #include <stdio.h>
13238 main()
13239 {
13240 FILE *f=fopen("conftestval", "w");
13241 if (!f) exit(1);
13242 fprintf(f, "%d\n", sizeof(long long));
13243 exit(0);
13244 }
13245 EOF
13246 if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13247 then
13248 ac_cv_sizeof_long_long=`cat conftestval`
13249 else
13250 echo "configure: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 rm -fr conftest*
13253 ac_cv_sizeof_long_long=0
13254 fi
13255 rm -fr conftest*
13256 fi
13257
13258 fi
13259 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13260 cat >> confdefs.h <<EOF
13261 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13262 EOF
13263
13264
13265
13266 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
13267 echo "configure:13268: checking size of wchar_t" >&5
13268 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
13269 echo $ac_n "(cached) $ac_c" 1>&6
13270 else
13271
13272 if test "$cross_compiling" = yes; then
13273 wx_cv_sizeof_wchar_t=4
13274
13275 else
13276 cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279
13280 #ifdef HAVE_WCHAR_H
13281 # include <wchar.h>
13282 #endif
13283 #ifdef HAVE_STDLIB_H
13284 # include <stdlib.h>
13285 #endif
13286 #include <stdio.h>
13287 int main()
13288 {
13289 FILE *f=fopen("conftestval", "w");
13290 if (!f) exit(1);
13291 fprintf(f, "%i", sizeof(wchar_t));
13292 exit(0);
13293 }
13294
13295 EOF
13296 if { (eval echo configure:13297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13297 then
13298 wx_cv_sizeof_wchar_t=`cat conftestval`
13299 else
13300 echo "configure: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13302 rm -fr conftest*
13303 wx_cv_sizeof_wchar_t=0
13304 fi
13305 rm -fr conftest*
13306 fi
13307
13308
13309 fi
13310
13311 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13312
13313 cat >> confdefs.h <<EOF
13314 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13315 EOF
13316
13317
13318 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13319 echo "configure:13320: checking whether byte ordering is bigendian" >&5
13320 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
13321 echo $ac_n "(cached) $ac_c" 1>&6
13322 else
13323 ac_cv_c_bigendian=unknown
13324 # See if sys/param.h defines the BYTE_ORDER macro.
13325 cat > conftest.$ac_ext <<EOF
13326 #line 13327 "configure"
13327 #include "confdefs.h"
13328 #include <sys/types.h>
13329 #include <sys/param.h>
13330 int main() {
13331
13332 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13333 bogus endian macros
13334 #endif
13335 ; return 0; }
13336 EOF
13337 if { (eval echo configure:13338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13338 rm -rf conftest*
13339 # It does; now see whether it defined to BIG_ENDIAN or not.
13340 cat > conftest.$ac_ext <<EOF
13341 #line 13342 "configure"
13342 #include "confdefs.h"
13343 #include <sys/types.h>
13344 #include <sys/param.h>
13345 int main() {
13346
13347 #if BYTE_ORDER != BIG_ENDIAN
13348 not big endian
13349 #endif
13350 ; return 0; }
13351 EOF
13352 if { (eval echo configure:13353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13353 rm -rf conftest*
13354 ac_cv_c_bigendian=yes
13355 else
13356 echo "configure: failed program was:" >&5
13357 cat conftest.$ac_ext >&5
13358 rm -rf conftest*
13359 ac_cv_c_bigendian=no
13360 fi
13361 rm -f conftest*
13362 else
13363 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13365 fi
13366 rm -f conftest*
13367 if test $ac_cv_c_bigendian = unknown; then
13368 if test "$cross_compiling" = yes; then
13369 ac_cv_c_bigendian=unknown
13370 else
13371 cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 main () {
13375 /* Are we little or big endian? From Harbison&Steele. */
13376 union
13377 {
13378 long l;
13379 char c[sizeof (long)];
13380 } u;
13381 u.l = 1;
13382 exit (u.c[sizeof (long) - 1] == 1);
13383 }
13384 EOF
13385 if { (eval echo configure:13386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13386 then
13387 ac_cv_c_bigendian=no
13388 else
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13391 rm -fr conftest*
13392 ac_cv_c_bigendian=yes
13393 fi
13394 rm -fr conftest*
13395 fi
13396
13397 fi
13398 fi
13399
13400 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13401 if test $ac_cv_c_bigendian = unknown; then
13402 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
13403 fi
13404 if test $ac_cv_c_bigendian = yes; then
13405 cat >> confdefs.h <<\EOF
13406 #define WORDS_BIGENDIAN 1
13407 EOF
13408
13409 fi
13410
13411
13412 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
13413 echo "configure:13414: checking how to run the C++ preprocessor" >&5
13414 if test -z "$CXXCPP"; then
13415 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
13416 echo $ac_n "(cached) $ac_c" 1>&6
13417 else
13418 ac_ext=C
13419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13420 ac_cpp='$CXXCPP $CPPFLAGS'
13421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13423 cross_compiling=$ac_cv_prog_cxx_cross
13424 CXXCPP="${CXX-g++} -E"
13425 cat > conftest.$ac_ext <<EOF
13426 #line 13427 "configure"
13427 #include "confdefs.h"
13428 #include <stdlib.h>
13429 EOF
13430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13431 { (eval echo configure:13432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13433 if test -z "$ac_err"; then
13434 :
13435 else
13436 echo "$ac_err" >&5
13437 echo "configure: failed program was:" >&5
13438 cat conftest.$ac_ext >&5
13439 rm -rf conftest*
13440 CXXCPP=/lib/cpp
13441 fi
13442 rm -f conftest*
13443 ac_cv_prog_CXXCPP="$CXXCPP"
13444 ac_ext=C
13445 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13446 ac_cpp='$CXXCPP $CPPFLAGS'
13447 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13448 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13449 cross_compiling=$ac_cv_prog_cxx_cross
13450 fi
13451 fi
13452 CXXCPP="$ac_cv_prog_CXXCPP"
13453 echo "$ac_t""$CXXCPP" 1>&6
13454
13455
13456 if test "$cross_compiling" = "yes"; then
13457 cat >> confdefs.h <<\EOF
13458 #define wxUSE_IOSTREAMH 1
13459 EOF
13460
13461 else
13462
13463 ac_ext=C
13464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13465 ac_cpp='$CXXCPP $CPPFLAGS'
13466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13468 cross_compiling=$ac_cv_prog_cxx_cross
13469
13470
13471 for ac_hdr in iostream
13472 do
13473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13475 echo "configure:13476: checking for $ac_hdr" >&5
13476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13478 else
13479 cat > conftest.$ac_ext <<EOF
13480 #line 13481 "configure"
13481 #include "confdefs.h"
13482 #include <$ac_hdr>
13483 EOF
13484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13485 { (eval echo configure:13486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13487 if test -z "$ac_err"; then
13488 rm -rf conftest*
13489 eval "ac_cv_header_$ac_safe=yes"
13490 else
13491 echo "$ac_err" >&5
13492 echo "configure: failed program was:" >&5
13493 cat conftest.$ac_ext >&5
13494 rm -rf conftest*
13495 eval "ac_cv_header_$ac_safe=no"
13496 fi
13497 rm -f conftest*
13498 fi
13499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13500 echo "$ac_t""yes" 1>&6
13501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13502 cat >> confdefs.h <<EOF
13503 #define $ac_tr_hdr 1
13504 EOF
13505
13506 else
13507 echo "$ac_t""no" 1>&6
13508 fi
13509 done
13510
13511
13512 if test "$ac_cv_header_iostream" = "yes" ; then
13513 :
13514 else
13515 cat >> confdefs.h <<\EOF
13516 #define wxUSE_IOSTREAMH 1
13517 EOF
13518
13519 fi
13520
13521 ac_ext=c
13522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13523 ac_cpp='$CPP $CPPFLAGS'
13524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13526 cross_compiling=$ac_cv_prog_cc_cross
13527
13528 fi
13529
13530
13531
13532 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
13533 echo "configure:13534: checking if C++ compiler supports bool" >&5
13534 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
13535 echo $ac_n "(cached) $ac_c" 1>&6
13536 else
13537
13538
13539 ac_ext=C
13540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13541 ac_cpp='$CXXCPP $CPPFLAGS'
13542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13543 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13544 cross_compiling=$ac_cv_prog_cxx_cross
13545
13546
13547 cat > conftest.$ac_ext <<EOF
13548 #line 13549 "configure"
13549 #include "confdefs.h"
13550
13551
13552 int main() {
13553
13554 bool b = true;
13555
13556 return 0;
13557
13558 ; return 0; }
13559 EOF
13560 if { (eval echo configure:13561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13561 rm -rf conftest*
13562
13563 wx_cv_cpp_bool=yes
13564
13565 else
13566 echo "configure: failed program was:" >&5
13567 cat conftest.$ac_ext >&5
13568 rm -rf conftest*
13569
13570 wx_cv_cpp_bool=no
13571
13572
13573 fi
13574 rm -f conftest*
13575
13576 ac_ext=c
13577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13578 ac_cpp='$CPP $CPPFLAGS'
13579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13581 cross_compiling=$ac_cv_prog_cc_cross
13582
13583
13584 fi
13585
13586 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
13587
13588 if test "$wx_cv_cpp_bool" = "yes"; then
13589 cat >> confdefs.h <<\EOF
13590 #define HAVE_BOOL 1
13591 EOF
13592
13593 fi
13594
13595
13596
13597 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
13598 echo "configure:13599: checking for wcslen in -lc" >&5
13599 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13601 echo $ac_n "(cached) $ac_c" 1>&6
13602 else
13603 ac_save_LIBS="$LIBS"
13604 LIBS="-lc $LIBS"
13605 cat > conftest.$ac_ext <<EOF
13606 #line 13607 "configure"
13607 #include "confdefs.h"
13608 /* Override any gcc2 internal prototype to avoid an error. */
13609 /* We use char because int might match the return type of a gcc2
13610 builtin and then its argument prototype would still apply. */
13611 char wcslen();
13612
13613 int main() {
13614 wcslen()
13615 ; return 0; }
13616 EOF
13617 if { (eval echo configure:13618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13618 rm -rf conftest*
13619 eval "ac_cv_lib_$ac_lib_var=yes"
13620 else
13621 echo "configure: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 rm -rf conftest*
13624 eval "ac_cv_lib_$ac_lib_var=no"
13625 fi
13626 rm -f conftest*
13627 LIBS="$ac_save_LIBS"
13628
13629 fi
13630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13631 echo "$ac_t""yes" 1>&6
13632
13633 cat >> confdefs.h <<\EOF
13634 #define HAVE_WCSLEN 1
13635 EOF
13636
13637 WCHAR_LINK=
13638
13639 else
13640 echo "$ac_t""no" 1>&6
13641
13642 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
13643 echo "configure:13644: checking for wcslen in -lw" >&5
13644 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13646 echo $ac_n "(cached) $ac_c" 1>&6
13647 else
13648 ac_save_LIBS="$LIBS"
13649 LIBS="-lw $LIBS"
13650 cat > conftest.$ac_ext <<EOF
13651 #line 13652 "configure"
13652 #include "confdefs.h"
13653 /* Override any gcc2 internal prototype to avoid an error. */
13654 /* We use char because int might match the return type of a gcc2
13655 builtin and then its argument prototype would still apply. */
13656 char wcslen();
13657
13658 int main() {
13659 wcslen()
13660 ; return 0; }
13661 EOF
13662 if { (eval echo configure:13663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13663 rm -rf conftest*
13664 eval "ac_cv_lib_$ac_lib_var=yes"
13665 else
13666 echo "configure: failed program was:" >&5
13667 cat conftest.$ac_ext >&5
13668 rm -rf conftest*
13669 eval "ac_cv_lib_$ac_lib_var=no"
13670 fi
13671 rm -f conftest*
13672 LIBS="$ac_save_LIBS"
13673
13674 fi
13675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13676 echo "$ac_t""yes" 1>&6
13677
13678 cat >> confdefs.h <<\EOF
13679 #define HAVE_WCSLEN 1
13680 EOF
13681
13682 WCHAR_LINK=" -lw"
13683
13684 else
13685 echo "$ac_t""no" 1>&6
13686
13687 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13688 echo "configure:13689: checking for wcslen in -lmsvcrt" >&5
13689 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13691 echo $ac_n "(cached) $ac_c" 1>&6
13692 else
13693 ac_save_LIBS="$LIBS"
13694 LIBS="-lmsvcrt $LIBS"
13695 cat > conftest.$ac_ext <<EOF
13696 #line 13697 "configure"
13697 #include "confdefs.h"
13698 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701 char wcslen();
13702
13703 int main() {
13704 wcslen()
13705 ; return 0; }
13706 EOF
13707 if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13708 rm -rf conftest*
13709 eval "ac_cv_lib_$ac_lib_var=yes"
13710 else
13711 echo "configure: failed program was:" >&5
13712 cat conftest.$ac_ext >&5
13713 rm -rf conftest*
13714 eval "ac_cv_lib_$ac_lib_var=no"
13715 fi
13716 rm -f conftest*
13717 LIBS="$ac_save_LIBS"
13718
13719 fi
13720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13722
13723 cat >> confdefs.h <<\EOF
13724 #define HAVE_WCSLEN 1
13725 EOF
13726
13727 WCHAR_LINK=
13728
13729 else
13730 echo "$ac_t""no" 1>&6
13731 fi
13732
13733
13734 fi
13735
13736
13737 fi
13738
13739
13740 for ac_func in wcsrtombs
13741 do
13742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13743 echo "configure:13744: checking for $ac_func" >&5
13744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13745 echo $ac_n "(cached) $ac_c" 1>&6
13746 else
13747 cat > conftest.$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13750 /* System header to define __stub macros and hopefully few prototypes,
13751 which can conflict with char $ac_func(); below. */
13752 #include <assert.h>
13753 /* Override any gcc2 internal prototype to avoid an error. */
13754 /* We use char because int might match the return type of a gcc2
13755 builtin and then its argument prototype would still apply. */
13756 char $ac_func();
13757
13758 int main() {
13759
13760 /* The GNU C library defines this for functions which it implements
13761 to always fail with ENOSYS. Some functions are actually named
13762 something starting with __ and the normal name is an alias. */
13763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13764 choke me
13765 #else
13766 $ac_func();
13767 #endif
13768
13769 ; return 0; }
13770 EOF
13771 if { (eval echo configure:13772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13772 rm -rf conftest*
13773 eval "ac_cv_func_$ac_func=yes"
13774 else
13775 echo "configure: failed program was:" >&5
13776 cat conftest.$ac_ext >&5
13777 rm -rf conftest*
13778 eval "ac_cv_func_$ac_func=no"
13779 fi
13780 rm -f conftest*
13781 fi
13782
13783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13784 echo "$ac_t""yes" 1>&6
13785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13786 cat >> confdefs.h <<EOF
13787 #define $ac_tr_func 1
13788 EOF
13789
13790 else
13791 echo "$ac_t""no" 1>&6
13792 fi
13793 done
13794
13795
13796 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13797 echo "configure:13798: checking for vprintf" >&5
13798 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13799 echo $ac_n "(cached) $ac_c" 1>&6
13800 else
13801 cat > conftest.$ac_ext <<EOF
13802 #line 13803 "configure"
13803 #include "confdefs.h"
13804 /* System header to define __stub macros and hopefully few prototypes,
13805 which can conflict with char vprintf(); below. */
13806 #include <assert.h>
13807 /* Override any gcc2 internal prototype to avoid an error. */
13808 /* We use char because int might match the return type of a gcc2
13809 builtin and then its argument prototype would still apply. */
13810 char vprintf();
13811
13812 int main() {
13813
13814 /* The GNU C library defines this for functions which it implements
13815 to always fail with ENOSYS. Some functions are actually named
13816 something starting with __ and the normal name is an alias. */
13817 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13818 choke me
13819 #else
13820 vprintf();
13821 #endif
13822
13823 ; return 0; }
13824 EOF
13825 if { (eval echo configure:13826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13826 rm -rf conftest*
13827 eval "ac_cv_func_vprintf=yes"
13828 else
13829 echo "configure: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13831 rm -rf conftest*
13832 eval "ac_cv_func_vprintf=no"
13833 fi
13834 rm -f conftest*
13835 fi
13836
13837 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13838 echo "$ac_t""yes" 1>&6
13839 cat >> confdefs.h <<\EOF
13840 #define HAVE_VPRINTF 1
13841 EOF
13842
13843 else
13844 echo "$ac_t""no" 1>&6
13845 fi
13846
13847 if test "$ac_cv_func_vprintf" != yes; then
13848 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13849 echo "configure:13850: checking for _doprnt" >&5
13850 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13851 echo $ac_n "(cached) $ac_c" 1>&6
13852 else
13853 cat > conftest.$ac_ext <<EOF
13854 #line 13855 "configure"
13855 #include "confdefs.h"
13856 /* System header to define __stub macros and hopefully few prototypes,
13857 which can conflict with char _doprnt(); below. */
13858 #include <assert.h>
13859 /* Override any gcc2 internal prototype to avoid an error. */
13860 /* We use char because int might match the return type of a gcc2
13861 builtin and then its argument prototype would still apply. */
13862 char _doprnt();
13863
13864 int main() {
13865
13866 /* The GNU C library defines this for functions which it implements
13867 to always fail with ENOSYS. Some functions are actually named
13868 something starting with __ and the normal name is an alias. */
13869 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13870 choke me
13871 #else
13872 _doprnt();
13873 #endif
13874
13875 ; return 0; }
13876 EOF
13877 if { (eval echo configure:13878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13878 rm -rf conftest*
13879 eval "ac_cv_func__doprnt=yes"
13880 else
13881 echo "configure: failed program was:" >&5
13882 cat conftest.$ac_ext >&5
13883 rm -rf conftest*
13884 eval "ac_cv_func__doprnt=no"
13885 fi
13886 rm -f conftest*
13887 fi
13888
13889 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13890 echo "$ac_t""yes" 1>&6
13891 cat >> confdefs.h <<\EOF
13892 #define HAVE_DOPRNT 1
13893 EOF
13894
13895 else
13896 echo "$ac_t""no" 1>&6
13897 fi
13898
13899 fi
13900
13901
13902
13903
13904
13905
13906 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13907 echo "configure:13908: checking for vsnprintf" >&5
13908 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13909 echo $ac_n "(cached) $ac_c" 1>&6
13910 else
13911
13912 cat > conftest.$ac_ext <<EOF
13913 #line 13914 "configure"
13914 #include "confdefs.h"
13915
13916 #include <stdio.h>
13917 #include <stdarg.h>
13918
13919 int main() {
13920
13921 int wx_test_vsnprintf(const char *, ...);
13922
13923 wx_test_vsnprintf("%s");
13924 return 0;
13925 }
13926
13927 int wx_test_vsnprintf(const char *fmt, ...)
13928 {
13929 char *s;
13930
13931 va_list argp;
13932 va_start(argp, fmt);
13933 vsnprintf(s, 42, fmt, argp);
13934 va_end(argp);
13935
13936 ; return 0; }
13937 EOF
13938 if { (eval echo configure:13939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13939 rm -rf conftest*
13940
13941 wx_cv_func_vsnprintf=yes
13942
13943 else
13944 echo "configure: failed program was:" >&5
13945 cat conftest.$ac_ext >&5
13946 rm -rf conftest*
13947
13948 cat > conftest.$ac_ext <<EOF
13949 #line 13950 "configure"
13950 #include "confdefs.h"
13951
13952 #include <stdio.h>
13953 #include <stdarg.h>
13954
13955 int main() {
13956
13957 int wx_test_vsnprintf(const char *, ...);
13958
13959 wx_test_vsnprintf("%s");
13960 return 0;
13961 }
13962
13963 int wx_test_vsnprintf(const char *fmt, ...)
13964 {
13965 char *s;
13966
13967 va_list argp;
13968 va_start(argp, fmt);
13969 _vsnprintf(s, 42, fmt, argp);
13970 va_end(argp);
13971
13972 ; return 0; }
13973 EOF
13974 if { (eval echo configure:13975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13975 rm -rf conftest*
13976
13977 wx_cv_func_vsnprintf=yes
13978
13979 else
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 rm -rf conftest*
13983
13984 wx_cv_func_vsnprintf=no
13985
13986 fi
13987 rm -f conftest*
13988
13989 fi
13990 rm -f conftest*
13991
13992 fi
13993
13994 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13995
13996 if test "$wx_cv_func_vsnprintf" = yes; then
13997 cat >> confdefs.h <<\EOF
13998 #define HAVE_VSNPRINTF 1
13999 EOF
14000
14001 else
14002 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
14003 fi
14004
14005 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
14006 echo "configure:14007: checking for vsscanf" >&5
14007 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
14008 echo $ac_n "(cached) $ac_c" 1>&6
14009 else
14010
14011 cat > conftest.$ac_ext <<EOF
14012 #line 14013 "configure"
14013 #include "confdefs.h"
14014
14015 #include <stdio.h>
14016 #include <stdarg.h>
14017
14018 int main() {
14019
14020 int wx_test_vsscanf(const char *, ...);
14021
14022 wx_test_vsscanf("%d");
14023 return 0;
14024 }
14025
14026 int wx_test_vsscanf(const char *fmt, ...)
14027 {
14028 va_list argp;
14029 va_start(argp, fmt);
14030 vsscanf("42", fmt, argp);
14031 va_end(argp);
14032
14033 ; return 0; }
14034 EOF
14035 if { (eval echo configure:14036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14036 rm -rf conftest*
14037
14038 wx_cv_func_vsscanf=yes
14039
14040 else
14041 echo "configure: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14043 rm -rf conftest*
14044
14045 wx_cv_func_vsscanf=no
14046
14047 fi
14048 rm -f conftest*
14049
14050 fi
14051
14052 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14053
14054 if test "$wx_cv_func_vsscanf" = yes; then
14055 cat >> confdefs.h <<\EOF
14056 #define HAVE_VSSCANF 1
14057 EOF
14058
14059 fi
14060
14061 if test "$TOOLKIT" != "MSW"; then
14062
14063
14064
14065 ac_ext=C
14066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14067 ac_cpp='$CXXCPP $CPPFLAGS'
14068 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14069 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14070 cross_compiling=$ac_cv_prog_cxx_cross
14071
14072 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
14073 echo "configure:14074: checking if iconv() takes char**" >&5
14074 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
14075 echo $ac_n "(cached) $ac_c" 1>&6
14076 else
14077
14078 cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081 #include <iconv.h>
14082 int main() {
14083
14084 char **inbuf, **outbuf;
14085 iconv_t cd;
14086 size_t insz, outsz;
14087 iconv(cd, inbuf, &insz, outbuf, &outsz);
14088
14089 ; return 0; }
14090 EOF
14091 if { (eval echo configure:14092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14092 rm -rf conftest*
14093 wx_cv_iconv_takes_char=yes
14094 else
14095 echo "configure: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
14097 rm -rf conftest*
14098 wx_cv_iconv_takes_char=no
14099 fi
14100 rm -f conftest*
14101
14102 fi
14103
14104 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14105 ac_ext=c
14106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14107 ac_cpp='$CPP $CPPFLAGS'
14108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14110 cross_compiling=$ac_cv_prog_cc_cross
14111
14112 if test "$wx_cv_iconv_takes_char" = yes ; then
14113 cat >> confdefs.h <<\EOF
14114 #define WX_ICONV_TAKES_CHAR 1
14115 EOF
14116
14117 fi
14118
14119
14120 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14121 for ac_func in sigaction
14122 do
14123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14124 echo "configure:14125: checking for $ac_func" >&5
14125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14126 echo $ac_n "(cached) $ac_c" 1>&6
14127 else
14128 cat > conftest.$ac_ext <<EOF
14129 #line 14130 "configure"
14130 #include "confdefs.h"
14131 /* System header to define __stub macros and hopefully few prototypes,
14132 which can conflict with char $ac_func(); below. */
14133 #include <assert.h>
14134 /* Override any gcc2 internal prototype to avoid an error. */
14135 /* We use char because int might match the return type of a gcc2
14136 builtin and then its argument prototype would still apply. */
14137 char $ac_func();
14138
14139 int main() {
14140
14141 /* The GNU C library defines this for functions which it implements
14142 to always fail with ENOSYS. Some functions are actually named
14143 something starting with __ and the normal name is an alias. */
14144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14145 choke me
14146 #else
14147 $ac_func();
14148 #endif
14149
14150 ; return 0; }
14151 EOF
14152 if { (eval echo configure:14153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14153 rm -rf conftest*
14154 eval "ac_cv_func_$ac_func=yes"
14155 else
14156 echo "configure: failed program was:" >&5
14157 cat conftest.$ac_ext >&5
14158 rm -rf conftest*
14159 eval "ac_cv_func_$ac_func=no"
14160 fi
14161 rm -f conftest*
14162 fi
14163
14164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14165 echo "$ac_t""yes" 1>&6
14166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14167 cat >> confdefs.h <<EOF
14168 #define $ac_tr_func 1
14169 EOF
14170
14171 else
14172 echo "$ac_t""no" 1>&6
14173 fi
14174 done
14175
14176
14177 if test "$ac_cv_func_sigaction" = "no"; then
14178 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14179 wxUSE_ON_FATAL_EXCEPTION=no
14180 fi
14181
14182 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14183
14184 ac_ext=C
14185 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14186 ac_cpp='$CXXCPP $CPPFLAGS'
14187 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14188 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14189 cross_compiling=$ac_cv_prog_cxx_cross
14190
14191
14192 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
14193 echo "configure:14194: checking for sa_handler type" >&5
14194 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
14195 echo $ac_n "(cached) $ac_c" 1>&6
14196 else
14197
14198 cat > conftest.$ac_ext <<EOF
14199 #line 14200 "configure"
14200 #include "confdefs.h"
14201 #include <signal.h>
14202 int main() {
14203
14204 extern void testSigHandler(int);
14205
14206 struct sigaction sa;
14207 sa.sa_handler = testSigHandler;
14208
14209 ; return 0; }
14210 EOF
14211 if { (eval echo configure:14212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14212 rm -rf conftest*
14213
14214 wx_cv_type_sa_handler=int
14215
14216 else
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 rm -rf conftest*
14220
14221 wx_cv_type_sa_handler=void
14222
14223 fi
14224 rm -f conftest*
14225
14226 fi
14227
14228 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14229
14230 ac_ext=c
14231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14232 ac_cpp='$CPP $CPPFLAGS'
14233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14235 cross_compiling=$ac_cv_prog_cc_cross
14236
14237
14238 cat >> confdefs.h <<EOF
14239 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
14240 EOF
14241
14242 fi
14243 fi
14244
14245 for ac_func in vfork
14246 do
14247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14248 echo "configure:14249: checking for $ac_func" >&5
14249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14250 echo $ac_n "(cached) $ac_c" 1>&6
14251 else
14252 cat > conftest.$ac_ext <<EOF
14253 #line 14254 "configure"
14254 #include "confdefs.h"
14255 /* System header to define __stub macros and hopefully few prototypes,
14256 which can conflict with char $ac_func(); below. */
14257 #include <assert.h>
14258 /* Override any gcc2 internal prototype to avoid an error. */
14259 /* We use char because int might match the return type of a gcc2
14260 builtin and then its argument prototype would still apply. */
14261 char $ac_func();
14262
14263 int main() {
14264
14265 /* The GNU C library defines this for functions which it implements
14266 to always fail with ENOSYS. Some functions are actually named
14267 something starting with __ and the normal name is an alias. */
14268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14269 choke me
14270 #else
14271 $ac_func();
14272 #endif
14273
14274 ; return 0; }
14275 EOF
14276 if { (eval echo configure:14277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14277 rm -rf conftest*
14278 eval "ac_cv_func_$ac_func=yes"
14279 else
14280 echo "configure: failed program was:" >&5
14281 cat conftest.$ac_ext >&5
14282 rm -rf conftest*
14283 eval "ac_cv_func_$ac_func=no"
14284 fi
14285 rm -f conftest*
14286 fi
14287
14288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14289 echo "$ac_t""yes" 1>&6
14290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14291 cat >> confdefs.h <<EOF
14292 #define $ac_tr_func 1
14293 EOF
14294
14295 else
14296 echo "$ac_t""no" 1>&6
14297 fi
14298 done
14299
14300
14301 echo $ac_n "checking for statfs""... $ac_c" 1>&6
14302 echo "configure:14303: checking for statfs" >&5
14303 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14304 echo $ac_n "(cached) $ac_c" 1>&6
14305 else
14306 cat > conftest.$ac_ext <<EOF
14307 #line 14308 "configure"
14308 #include "confdefs.h"
14309
14310 #if defined(__BSD__)
14311 #include <sys/param.h>
14312 #include <sys/mount.h>
14313 #else
14314 #include <sys/vfs.h>
14315 #endif
14316
14317 int main() {
14318
14319 long l;
14320 struct statfs fs;
14321 statfs("/", &fs);
14322 l = fs.f_bsize;
14323 l += fs.f_blocks;
14324 l += fs.f_bavail;
14325
14326 ; return 0; }
14327 EOF
14328 if { (eval echo configure:14329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14329 rm -rf conftest*
14330
14331 wx_cv_func_statfs=yes
14332
14333 else
14334 echo "configure: failed program was:" >&5
14335 cat conftest.$ac_ext >&5
14336 rm -rf conftest*
14337
14338 wx_cv_func_statfs=no
14339
14340
14341 fi
14342 rm -f conftest*
14343
14344 fi
14345
14346 echo "$ac_t""$wx_cv_func_statfs" 1>&6
14347
14348 if test "$wx_cv_func_statfs" = "yes"; then
14349 cat >> confdefs.h <<\EOF
14350 #define HAVE_STATFS 1
14351 EOF
14352
14353 else
14354 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
14355 echo "configure:14356: checking for statvfs" >&5
14356 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
14357 echo $ac_n "(cached) $ac_c" 1>&6
14358 else
14359 cat > conftest.$ac_ext <<EOF
14360 #line 14361 "configure"
14361 #include "confdefs.h"
14362
14363 #include <sys/statvfs.h>
14364
14365 int main() {
14366
14367 long l;
14368 struct statvfs fs;
14369 statvfs("/", &fs);
14370 l = fs.f_bsize;
14371 l += fs.f_blocks;
14372 l += fs.f_bavail;
14373
14374 ; return 0; }
14375 EOF
14376 if { (eval echo configure:14377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14377 rm -rf conftest*
14378
14379 wx_cv_func_statvfs=yes
14380
14381 else
14382 echo "configure: failed program was:" >&5
14383 cat conftest.$ac_ext >&5
14384 rm -rf conftest*
14385
14386 wx_cv_func_statvfs=no
14387
14388
14389 fi
14390 rm -f conftest*
14391
14392 fi
14393
14394 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
14395
14396 if test "$wx_cv_func_statvfs" = "yes"; then
14397 cat >> confdefs.h <<\EOF
14398 #define HAVE_STATVFS 1
14399 EOF
14400
14401 else
14402 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14403 fi
14404 fi
14405
14406 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14407 for ac_func in fcntl flock
14408 do
14409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14410 echo "configure:14411: checking for $ac_func" >&5
14411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14412 echo $ac_n "(cached) $ac_c" 1>&6
14413 else
14414 cat > conftest.$ac_ext <<EOF
14415 #line 14416 "configure"
14416 #include "confdefs.h"
14417 /* System header to define __stub macros and hopefully few prototypes,
14418 which can conflict with char $ac_func(); below. */
14419 #include <assert.h>
14420 /* Override any gcc2 internal prototype to avoid an error. */
14421 /* We use char because int might match the return type of a gcc2
14422 builtin and then its argument prototype would still apply. */
14423 char $ac_func();
14424
14425 int main() {
14426
14427 /* The GNU C library defines this for functions which it implements
14428 to always fail with ENOSYS. Some functions are actually named
14429 something starting with __ and the normal name is an alias. */
14430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14431 choke me
14432 #else
14433 $ac_func();
14434 #endif
14435
14436 ; return 0; }
14437 EOF
14438 if { (eval echo configure:14439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14439 rm -rf conftest*
14440 eval "ac_cv_func_$ac_func=yes"
14441 else
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14444 rm -rf conftest*
14445 eval "ac_cv_func_$ac_func=no"
14446 fi
14447 rm -f conftest*
14448 fi
14449
14450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14451 echo "$ac_t""yes" 1>&6
14452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14453 cat >> confdefs.h <<EOF
14454 #define $ac_tr_func 1
14455 EOF
14456 break
14457 else
14458 echo "$ac_t""no" 1>&6
14459 fi
14460 done
14461
14462
14463 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14464 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14465 wxUSE_SNGLINST_CHECKER=no
14466 fi
14467 fi
14468
14469 for ac_func in timegm
14470 do
14471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14472 echo "configure:14473: checking for $ac_func" >&5
14473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14474 echo $ac_n "(cached) $ac_c" 1>&6
14475 else
14476 cat > conftest.$ac_ext <<EOF
14477 #line 14478 "configure"
14478 #include "confdefs.h"
14479 /* System header to define __stub macros and hopefully few prototypes,
14480 which can conflict with char $ac_func(); below. */
14481 #include <assert.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 $ac_func();
14486
14487 int main() {
14488
14489 /* The GNU C library defines this for functions which it implements
14490 to always fail with ENOSYS. Some functions are actually named
14491 something starting with __ and the normal name is an alias. */
14492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14493 choke me
14494 #else
14495 $ac_func();
14496 #endif
14497
14498 ; return 0; }
14499 EOF
14500 if { (eval echo configure:14501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14501 rm -rf conftest*
14502 eval "ac_cv_func_$ac_func=yes"
14503 else
14504 echo "configure: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14506 rm -rf conftest*
14507 eval "ac_cv_func_$ac_func=no"
14508 fi
14509 rm -f conftest*
14510 fi
14511
14512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14513 echo "$ac_t""yes" 1>&6
14514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14515 cat >> confdefs.h <<EOF
14516 #define $ac_tr_func 1
14517 EOF
14518
14519 else
14520 echo "$ac_t""no" 1>&6
14521 fi
14522 done
14523
14524
14525 for ac_func in putenv setenv
14526 do
14527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14528 echo "configure:14529: checking for $ac_func" >&5
14529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14530 echo $ac_n "(cached) $ac_c" 1>&6
14531 else
14532 cat > conftest.$ac_ext <<EOF
14533 #line 14534 "configure"
14534 #include "confdefs.h"
14535 /* System header to define __stub macros and hopefully few prototypes,
14536 which can conflict with char $ac_func(); below. */
14537 #include <assert.h>
14538 /* Override any gcc2 internal prototype to avoid an error. */
14539 /* We use char because int might match the return type of a gcc2
14540 builtin and then its argument prototype would still apply. */
14541 char $ac_func();
14542
14543 int main() {
14544
14545 /* The GNU C library defines this for functions which it implements
14546 to always fail with ENOSYS. Some functions are actually named
14547 something starting with __ and the normal name is an alias. */
14548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14549 choke me
14550 #else
14551 $ac_func();
14552 #endif
14553
14554 ; return 0; }
14555 EOF
14556 if { (eval echo configure:14557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14557 rm -rf conftest*
14558 eval "ac_cv_func_$ac_func=yes"
14559 else
14560 echo "configure: failed program was:" >&5
14561 cat conftest.$ac_ext >&5
14562 rm -rf conftest*
14563 eval "ac_cv_func_$ac_func=no"
14564 fi
14565 rm -f conftest*
14566 fi
14567
14568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14569 echo "$ac_t""yes" 1>&6
14570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14571 cat >> confdefs.h <<EOF
14572 #define $ac_tr_func 1
14573 EOF
14574 break
14575 else
14576 echo "$ac_t""no" 1>&6
14577 fi
14578 done
14579
14580
14581 HAVE_SOME_SLEEP_FUNC=0
14582 if test "$USE_BEOS" = 1; then
14583 cat >> confdefs.h <<\EOF
14584 #define HAVE_SLEEP 1
14585 EOF
14586
14587 HAVE_SOME_SLEEP_FUNC=1
14588 fi
14589
14590 if test "$USE_DARWIN" = 1; then
14591 cat >> confdefs.h <<\EOF
14592 #define HAVE_USLEEP 1
14593 EOF
14594
14595 HAVE_SOME_SLEEP_FUNC=1
14596 fi
14597
14598 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14599 POSIX4_LINK=
14600 for ac_func in nanosleep
14601 do
14602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14603 echo "configure:14604: checking for $ac_func" >&5
14604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14605 echo $ac_n "(cached) $ac_c" 1>&6
14606 else
14607 cat > conftest.$ac_ext <<EOF
14608 #line 14609 "configure"
14609 #include "confdefs.h"
14610 /* System header to define __stub macros and hopefully few prototypes,
14611 which can conflict with char $ac_func(); below. */
14612 #include <assert.h>
14613 /* Override any gcc2 internal prototype to avoid an error. */
14614 /* We use char because int might match the return type of a gcc2
14615 builtin and then its argument prototype would still apply. */
14616 char $ac_func();
14617
14618 int main() {
14619
14620 /* The GNU C library defines this for functions which it implements
14621 to always fail with ENOSYS. Some functions are actually named
14622 something starting with __ and the normal name is an alias. */
14623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14624 choke me
14625 #else
14626 $ac_func();
14627 #endif
14628
14629 ; return 0; }
14630 EOF
14631 if { (eval echo configure:14632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14632 rm -rf conftest*
14633 eval "ac_cv_func_$ac_func=yes"
14634 else
14635 echo "configure: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14637 rm -rf conftest*
14638 eval "ac_cv_func_$ac_func=no"
14639 fi
14640 rm -f conftest*
14641 fi
14642
14643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14644 echo "$ac_t""yes" 1>&6
14645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14646 cat >> confdefs.h <<EOF
14647 #define $ac_tr_func 1
14648 EOF
14649 cat >> confdefs.h <<\EOF
14650 #define HAVE_NANOSLEEP 1
14651 EOF
14652
14653 else
14654 echo "$ac_t""no" 1>&6
14655 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
14656 echo "configure:14657: checking for nanosleep in -lposix4" >&5
14657 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
14658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14659 echo $ac_n "(cached) $ac_c" 1>&6
14660 else
14661 ac_save_LIBS="$LIBS"
14662 LIBS="-lposix4 $LIBS"
14663 cat > conftest.$ac_ext <<EOF
14664 #line 14665 "configure"
14665 #include "confdefs.h"
14666 /* Override any gcc2 internal prototype to avoid an error. */
14667 /* We use char because int might match the return type of a gcc2
14668 builtin and then its argument prototype would still apply. */
14669 char nanosleep();
14670
14671 int main() {
14672 nanosleep()
14673 ; return 0; }
14674 EOF
14675 if { (eval echo configure:14676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14676 rm -rf conftest*
14677 eval "ac_cv_lib_$ac_lib_var=yes"
14678 else
14679 echo "configure: failed program was:" >&5
14680 cat conftest.$ac_ext >&5
14681 rm -rf conftest*
14682 eval "ac_cv_lib_$ac_lib_var=no"
14683 fi
14684 rm -f conftest*
14685 LIBS="$ac_save_LIBS"
14686
14687 fi
14688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14689 echo "$ac_t""yes" 1>&6
14690
14691 cat >> confdefs.h <<\EOF
14692 #define HAVE_NANOSLEEP 1
14693 EOF
14694
14695 POSIX4_LINK=" -lposix4"
14696
14697 else
14698 echo "$ac_t""no" 1>&6
14699
14700 for ac_func in usleep
14701 do
14702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14703 echo "configure:14704: checking for $ac_func" >&5
14704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14705 echo $ac_n "(cached) $ac_c" 1>&6
14706 else
14707 cat > conftest.$ac_ext <<EOF
14708 #line 14709 "configure"
14709 #include "confdefs.h"
14710 /* System header to define __stub macros and hopefully few prototypes,
14711 which can conflict with char $ac_func(); below. */
14712 #include <assert.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 $ac_func();
14717
14718 int main() {
14719
14720 /* The GNU C library defines this for functions which it implements
14721 to always fail with ENOSYS. Some functions are actually named
14722 something starting with __ and the normal name is an alias. */
14723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14724 choke me
14725 #else
14726 $ac_func();
14727 #endif
14728
14729 ; return 0; }
14730 EOF
14731 if { (eval echo configure:14732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14732 rm -rf conftest*
14733 eval "ac_cv_func_$ac_func=yes"
14734 else
14735 echo "configure: failed program was:" >&5
14736 cat conftest.$ac_ext >&5
14737 rm -rf conftest*
14738 eval "ac_cv_func_$ac_func=no"
14739 fi
14740 rm -f conftest*
14741 fi
14742
14743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14744 echo "$ac_t""yes" 1>&6
14745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14746 cat >> confdefs.h <<EOF
14747 #define $ac_tr_func 1
14748 EOF
14749 cat >> confdefs.h <<\EOF
14750 #define HAVE_USLEEP 1
14751 EOF
14752
14753 else
14754 echo "$ac_t""no" 1>&6
14755 echo "configure: warning: wxSleep() function will not work" 1>&2
14756
14757 fi
14758 done
14759
14760
14761
14762 fi
14763
14764
14765
14766 fi
14767 done
14768
14769 fi
14770
14771 for ac_func in uname gethostname
14772 do
14773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14774 echo "configure:14775: checking for $ac_func" >&5
14775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14776 echo $ac_n "(cached) $ac_c" 1>&6
14777 else
14778 cat > conftest.$ac_ext <<EOF
14779 #line 14780 "configure"
14780 #include "confdefs.h"
14781 /* System header to define __stub macros and hopefully few prototypes,
14782 which can conflict with char $ac_func(); below. */
14783 #include <assert.h>
14784 /* Override any gcc2 internal prototype to avoid an error. */
14785 /* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14787 char $ac_func();
14788
14789 int main() {
14790
14791 /* The GNU C library defines this for functions which it implements
14792 to always fail with ENOSYS. Some functions are actually named
14793 something starting with __ and the normal name is an alias. */
14794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14795 choke me
14796 #else
14797 $ac_func();
14798 #endif
14799
14800 ; return 0; }
14801 EOF
14802 if { (eval echo configure:14803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14803 rm -rf conftest*
14804 eval "ac_cv_func_$ac_func=yes"
14805 else
14806 echo "configure: failed program was:" >&5
14807 cat conftest.$ac_ext >&5
14808 rm -rf conftest*
14809 eval "ac_cv_func_$ac_func=no"
14810 fi
14811 rm -f conftest*
14812 fi
14813
14814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14815 echo "$ac_t""yes" 1>&6
14816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14817 cat >> confdefs.h <<EOF
14818 #define $ac_tr_func 1
14819 EOF
14820 break
14821 else
14822 echo "$ac_t""no" 1>&6
14823 fi
14824 done
14825
14826
14827
14828 ac_ext=C
14829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14830 ac_cpp='$CXXCPP $CPPFLAGS'
14831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14833 cross_compiling=$ac_cv_prog_cxx_cross
14834
14835
14836 for ac_func in strtok_r
14837 do
14838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14839 echo "configure:14840: checking for $ac_func" >&5
14840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14841 echo $ac_n "(cached) $ac_c" 1>&6
14842 else
14843 cat > conftest.$ac_ext <<EOF
14844 #line 14845 "configure"
14845 #include "confdefs.h"
14846 /* System header to define __stub macros and hopefully few prototypes,
14847 which can conflict with char $ac_func(); below. */
14848 #include <assert.h>
14849 /* Override any gcc2 internal prototype to avoid an error. */
14850 #ifdef __cplusplus
14851 extern "C"
14852 #endif
14853 /* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855 char $ac_func();
14856
14857 int main() {
14858
14859 /* The GNU C library defines this for functions which it implements
14860 to always fail with ENOSYS. Some functions are actually named
14861 something starting with __ and the normal name is an alias. */
14862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14863 choke me
14864 #else
14865 $ac_func();
14866 #endif
14867
14868 ; return 0; }
14869 EOF
14870 if { (eval echo configure:14871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14871 rm -rf conftest*
14872 eval "ac_cv_func_$ac_func=yes"
14873 else
14874 echo "configure: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14876 rm -rf conftest*
14877 eval "ac_cv_func_$ac_func=no"
14878 fi
14879 rm -f conftest*
14880 fi
14881
14882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14883 echo "$ac_t""yes" 1>&6
14884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14885 cat >> confdefs.h <<EOF
14886 #define $ac_tr_func 1
14887 EOF
14888
14889 else
14890 echo "$ac_t""no" 1>&6
14891 fi
14892 done
14893
14894
14895 ac_ext=c
14896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14897 ac_cpp='$CPP $CPPFLAGS'
14898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14900 cross_compiling=$ac_cv_prog_cc_cross
14901
14902
14903 INET_LINK=
14904 for ac_func in inet_addr
14905 do
14906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14907 echo "configure:14908: checking for $ac_func" >&5
14908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14909 echo $ac_n "(cached) $ac_c" 1>&6
14910 else
14911 cat > conftest.$ac_ext <<EOF
14912 #line 14913 "configure"
14913 #include "confdefs.h"
14914 /* System header to define __stub macros and hopefully few prototypes,
14915 which can conflict with char $ac_func(); below. */
14916 #include <assert.h>
14917 /* Override any gcc2 internal prototype to avoid an error. */
14918 /* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920 char $ac_func();
14921
14922 int main() {
14923
14924 /* The GNU C library defines this for functions which it implements
14925 to always fail with ENOSYS. Some functions are actually named
14926 something starting with __ and the normal name is an alias. */
14927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14928 choke me
14929 #else
14930 $ac_func();
14931 #endif
14932
14933 ; return 0; }
14934 EOF
14935 if { (eval echo configure:14936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14936 rm -rf conftest*
14937 eval "ac_cv_func_$ac_func=yes"
14938 else
14939 echo "configure: failed program was:" >&5
14940 cat conftest.$ac_ext >&5
14941 rm -rf conftest*
14942 eval "ac_cv_func_$ac_func=no"
14943 fi
14944 rm -f conftest*
14945 fi
14946
14947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14948 echo "$ac_t""yes" 1>&6
14949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14950 cat >> confdefs.h <<EOF
14951 #define $ac_tr_func 1
14952 EOF
14953 cat >> confdefs.h <<\EOF
14954 #define HAVE_INET_ADDR 1
14955 EOF
14956
14957 else
14958 echo "$ac_t""no" 1>&6
14959 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
14960 echo "configure:14961: checking for inet_addr in -lnsl" >&5
14961 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14963 echo $ac_n "(cached) $ac_c" 1>&6
14964 else
14965 ac_save_LIBS="$LIBS"
14966 LIBS="-lnsl $LIBS"
14967 cat > conftest.$ac_ext <<EOF
14968 #line 14969 "configure"
14969 #include "confdefs.h"
14970 /* Override any gcc2 internal prototype to avoid an error. */
14971 /* We use char because int might match the return type of a gcc2
14972 builtin and then its argument prototype would still apply. */
14973 char inet_addr();
14974
14975 int main() {
14976 inet_addr()
14977 ; return 0; }
14978 EOF
14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14980 rm -rf conftest*
14981 eval "ac_cv_lib_$ac_lib_var=yes"
14982 else
14983 echo "configure: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14985 rm -rf conftest*
14986 eval "ac_cv_lib_$ac_lib_var=no"
14987 fi
14988 rm -f conftest*
14989 LIBS="$ac_save_LIBS"
14990
14991 fi
14992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14993 echo "$ac_t""yes" 1>&6
14994 INET_LINK="nsl"
14995 else
14996 echo "$ac_t""no" 1>&6
14997 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
14998 echo "configure:14999: checking for inet_addr in -lresolv" >&5
14999 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
15000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15001 echo $ac_n "(cached) $ac_c" 1>&6
15002 else
15003 ac_save_LIBS="$LIBS"
15004 LIBS="-lresolv $LIBS"
15005 cat > conftest.$ac_ext <<EOF
15006 #line 15007 "configure"
15007 #include "confdefs.h"
15008 /* Override any gcc2 internal prototype to avoid an error. */
15009 /* We use char because int might match the return type of a gcc2
15010 builtin and then its argument prototype would still apply. */
15011 char inet_addr();
15012
15013 int main() {
15014 inet_addr()
15015 ; return 0; }
15016 EOF
15017 if { (eval echo configure:15018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15018 rm -rf conftest*
15019 eval "ac_cv_lib_$ac_lib_var=yes"
15020 else
15021 echo "configure: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15023 rm -rf conftest*
15024 eval "ac_cv_lib_$ac_lib_var=no"
15025 fi
15026 rm -f conftest*
15027 LIBS="$ac_save_LIBS"
15028
15029 fi
15030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15031 echo "$ac_t""yes" 1>&6
15032 INET_LINK="resolv"
15033
15034 else
15035 echo "$ac_t""no" 1>&6
15036 fi
15037
15038
15039 fi
15040
15041
15042
15043 fi
15044 done
15045
15046
15047 for ac_func in inet_aton
15048 do
15049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15050 echo "configure:15051: checking for $ac_func" >&5
15051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15052 echo $ac_n "(cached) $ac_c" 1>&6
15053 else
15054 cat > conftest.$ac_ext <<EOF
15055 #line 15056 "configure"
15056 #include "confdefs.h"
15057 /* System header to define __stub macros and hopefully few prototypes,
15058 which can conflict with char $ac_func(); below. */
15059 #include <assert.h>
15060 /* Override any gcc2 internal prototype to avoid an error. */
15061 /* We use char because int might match the return type of a gcc2
15062 builtin and then its argument prototype would still apply. */
15063 char $ac_func();
15064
15065 int main() {
15066
15067 /* The GNU C library defines this for functions which it implements
15068 to always fail with ENOSYS. Some functions are actually named
15069 something starting with __ and the normal name is an alias. */
15070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15071 choke me
15072 #else
15073 $ac_func();
15074 #endif
15075
15076 ; return 0; }
15077 EOF
15078 if { (eval echo configure:15079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15079 rm -rf conftest*
15080 eval "ac_cv_func_$ac_func=yes"
15081 else
15082 echo "configure: failed program was:" >&5
15083 cat conftest.$ac_ext >&5
15084 rm -rf conftest*
15085 eval "ac_cv_func_$ac_func=no"
15086 fi
15087 rm -f conftest*
15088 fi
15089
15090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15091 echo "$ac_t""yes" 1>&6
15092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15093 cat >> confdefs.h <<EOF
15094 #define $ac_tr_func 1
15095 EOF
15096 cat >> confdefs.h <<\EOF
15097 #define HAVE_INET_ATON 1
15098 EOF
15099
15100 else
15101 echo "$ac_t""no" 1>&6
15102 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
15103 echo "configure:15104: checking for inet_aton in -l$INET_LINK" >&5
15104 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
15105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107 else
15108 ac_save_LIBS="$LIBS"
15109 LIBS="-l$INET_LINK $LIBS"
15110 cat > conftest.$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15113 /* Override any gcc2 internal prototype to avoid an error. */
15114 /* We use char because int might match the return type of a gcc2
15115 builtin and then its argument prototype would still apply. */
15116 char inet_aton();
15117
15118 int main() {
15119 inet_aton()
15120 ; return 0; }
15121 EOF
15122 if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15123 rm -rf conftest*
15124 eval "ac_cv_lib_$ac_lib_var=yes"
15125 else
15126 echo "configure: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
15128 rm -rf conftest*
15129 eval "ac_cv_lib_$ac_lib_var=no"
15130 fi
15131 rm -f conftest*
15132 LIBS="$ac_save_LIBS"
15133
15134 fi
15135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15136 echo "$ac_t""yes" 1>&6
15137 cat >> confdefs.h <<\EOF
15138 #define HAVE_INET_ATON 1
15139 EOF
15140
15141 else
15142 echo "$ac_t""no" 1>&6
15143 fi
15144
15145
15146 fi
15147 done
15148
15149
15150 if test "x$INET_LINK" != "x"; then
15151 cat >> confdefs.h <<\EOF
15152 #define HAVE_INET_ADDR 1
15153 EOF
15154
15155 INET_LINK=" -l$INET_LINK"
15156 fi
15157
15158 fi
15159
15160
15161 cat > confcache <<\EOF
15162 # This file is a shell script that caches the results of configure
15163 # tests run on this system so they can be shared between configure
15164 # scripts and configure runs. It is not useful on other systems.
15165 # If it contains results you don't want to keep, you may remove or edit it.
15166 #
15167 # By default, configure uses ./config.cache as the cache file,
15168 # creating it if it does not exist already. You can give configure
15169 # the --cache-file=FILE option to use a different cache file; that is
15170 # what configure does when it calls configure scripts in
15171 # subdirectories, so they share the cache.
15172 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15173 # config.status only pays attention to the cache file if you give it the
15174 # --recheck option to rerun configure.
15175 #
15176 EOF
15177 # The following way of writing the cache mishandles newlines in values,
15178 # but we know of no workaround that is simple, portable, and efficient.
15179 # So, don't put newlines in cache variables' values.
15180 # Ultrix sh set writes to stderr and can't be redirected directly,
15181 # and sets the high bit in the cache file unless we assign to the vars.
15182 (set) 2>&1 |
15183 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15184 *ac_space=\ *)
15185 # `set' does not quote correctly, so add quotes (double-quote substitution
15186 # turns \\\\ into \\, and sed turns \\ into \).
15187 sed -n \
15188 -e "s/'/'\\\\''/g" \
15189 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15190 ;;
15191 *)
15192 # `set' quotes correctly as required by POSIX, so do not add quotes.
15193 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15194 ;;
15195 esac >> confcache
15196 if cmp -s $cache_file confcache; then
15197 :
15198 else
15199 if test -w $cache_file; then
15200 echo "updating cache $cache_file"
15201 cat confcache > $cache_file
15202 else
15203 echo "not updating unwritable cache $cache_file"
15204 fi
15205 fi
15206 rm -f confcache
15207
15208
15209
15210 if test "$TOOLKIT" != "MSW"; then
15211
15212
15213 THREADS_LINK=
15214 THREADS_OBJ=
15215 CODE_GEN_FLAGS=
15216 CODE_GEN_FLAGS_CXX=
15217
15218 if test "$wxUSE_THREADS" = "yes" ; then
15219 if test "$wxUSE_WINE" = 1 ; then
15220 echo "configure: warning: Threads are not supported under WINE" 1>&2
15221 wxUSE_THREADS="no"
15222 elif test "$USE_BEOS" = 1; then
15223 echo "configure: warning: BeOS threads are not yet supported" 1>&2
15224 wxUSE_THREADS="no"
15225 fi
15226 fi
15227
15228 if test "$wxUSE_THREADS" = "yes" ; then
15229
15230 if test "$USE_AIX" = 1; then
15231 THREADS_LIB=pthreads
15232 else
15233 THREADS_LIB=pthread
15234 fi
15235
15236 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
15237 echo "configure:15238: checking for pthread_create in -l$THREADS_LIB" >&5
15238 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
15239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15240 echo $ac_n "(cached) $ac_c" 1>&6
15241 else
15242 ac_save_LIBS="$LIBS"
15243 LIBS="-l$THREADS_LIB $LIBS"
15244 cat > conftest.$ac_ext <<EOF
15245 #line 15246 "configure"
15246 #include "confdefs.h"
15247 /* Override any gcc2 internal prototype to avoid an error. */
15248 /* We use char because int might match the return type of a gcc2
15249 builtin and then its argument prototype would still apply. */
15250 char pthread_create();
15251
15252 int main() {
15253 pthread_create()
15254 ; return 0; }
15255 EOF
15256 if { (eval echo configure:15257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15257 rm -rf conftest*
15258 eval "ac_cv_lib_$ac_lib_var=yes"
15259 else
15260 echo "configure: failed program was:" >&5
15261 cat conftest.$ac_ext >&5
15262 rm -rf conftest*
15263 eval "ac_cv_lib_$ac_lib_var=no"
15264 fi
15265 rm -f conftest*
15266 LIBS="$ac_save_LIBS"
15267
15268 fi
15269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15270 echo "$ac_t""yes" 1>&6
15271
15272 THREADS_OBJ="threadpsx.lo"
15273 THREADS_LINK=$THREADS_LIB
15274
15275 else
15276 echo "$ac_t""no" 1>&6
15277
15278 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
15279 echo "configure:15280: checking for pthread_create in -lc_r" >&5
15280 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15282 echo $ac_n "(cached) $ac_c" 1>&6
15283 else
15284 ac_save_LIBS="$LIBS"
15285 LIBS="-lc_r $LIBS"
15286 cat > conftest.$ac_ext <<EOF
15287 #line 15288 "configure"
15288 #include "confdefs.h"
15289 /* Override any gcc2 internal prototype to avoid an error. */
15290 /* We use char because int might match the return type of a gcc2
15291 builtin and then its argument prototype would still apply. */
15292 char pthread_create();
15293
15294 int main() {
15295 pthread_create()
15296 ; return 0; }
15297 EOF
15298 if { (eval echo configure:15299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15299 rm -rf conftest*
15300 eval "ac_cv_lib_$ac_lib_var=yes"
15301 else
15302 echo "configure: failed program was:" >&5
15303 cat conftest.$ac_ext >&5
15304 rm -rf conftest*
15305 eval "ac_cv_lib_$ac_lib_var=no"
15306 fi
15307 rm -f conftest*
15308 LIBS="$ac_save_LIBS"
15309
15310 fi
15311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15312 echo "$ac_t""yes" 1>&6
15313
15314 THREADS_OBJ="threadpsx.lo"
15315 THREADS_LINK="c_r"
15316
15317 else
15318 echo "$ac_t""no" 1>&6
15319
15320 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
15321 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
15322 echo "configure:15323: checking for sys/prctl.h" >&5
15323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15324 echo $ac_n "(cached) $ac_c" 1>&6
15325 else
15326 cat > conftest.$ac_ext <<EOF
15327 #line 15328 "configure"
15328 #include "confdefs.h"
15329 #include <sys/prctl.h>
15330 EOF
15331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15332 { (eval echo configure:15333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15334 if test -z "$ac_err"; then
15335 rm -rf conftest*
15336 eval "ac_cv_header_$ac_safe=yes"
15337 else
15338 echo "$ac_err" >&5
15339 echo "configure: failed program was:" >&5
15340 cat conftest.$ac_ext >&5
15341 rm -rf conftest*
15342 eval "ac_cv_header_$ac_safe=no"
15343 fi
15344 rm -f conftest*
15345 fi
15346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15347 echo "$ac_t""yes" 1>&6
15348
15349 THREADS_OBJ="threadsgi.lo"
15350
15351 else
15352 echo "$ac_t""no" 1>&6
15353 fi
15354
15355
15356 fi
15357
15358
15359 fi
15360
15361
15362 if test -z "$THREADS_OBJ" ; then
15363 wxUSE_THREADS=no
15364 echo "configure: warning: No thread support on this system" 1>&2
15365 fi
15366 fi
15367
15368 if test "$wxUSE_THREADS" = "yes" ; then
15369 for ac_func in thr_setconcurrency
15370 do
15371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15372 echo "configure:15373: checking for $ac_func" >&5
15373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15374 echo $ac_n "(cached) $ac_c" 1>&6
15375 else
15376 cat > conftest.$ac_ext <<EOF
15377 #line 15378 "configure"
15378 #include "confdefs.h"
15379 /* System header to define __stub macros and hopefully few prototypes,
15380 which can conflict with char $ac_func(); below. */
15381 #include <assert.h>
15382 /* Override any gcc2 internal prototype to avoid an error. */
15383 /* We use char because int might match the return type of a gcc2
15384 builtin and then its argument prototype would still apply. */
15385 char $ac_func();
15386
15387 int main() {
15388
15389 /* The GNU C library defines this for functions which it implements
15390 to always fail with ENOSYS. Some functions are actually named
15391 something starting with __ and the normal name is an alias. */
15392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15393 choke me
15394 #else
15395 $ac_func();
15396 #endif
15397
15398 ; return 0; }
15399 EOF
15400 if { (eval echo configure:15401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15401 rm -rf conftest*
15402 eval "ac_cv_func_$ac_func=yes"
15403 else
15404 echo "configure: failed program was:" >&5
15405 cat conftest.$ac_ext >&5
15406 rm -rf conftest*
15407 eval "ac_cv_func_$ac_func=no"
15408 fi
15409 rm -f conftest*
15410 fi
15411
15412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15413 echo "$ac_t""yes" 1>&6
15414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15415 cat >> confdefs.h <<EOF
15416 #define $ac_tr_func 1
15417 EOF
15418
15419 else
15420 echo "$ac_t""no" 1>&6
15421 fi
15422 done
15423
15424
15425
15426 for ac_hdr in sched.h
15427 do
15428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15430 echo "configure:15431: checking for $ac_hdr" >&5
15431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15432 echo $ac_n "(cached) $ac_c" 1>&6
15433 else
15434 cat > conftest.$ac_ext <<EOF
15435 #line 15436 "configure"
15436 #include "confdefs.h"
15437 #include <$ac_hdr>
15438 EOF
15439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15440 { (eval echo configure:15441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15442 if test -z "$ac_err"; then
15443 rm -rf conftest*
15444 eval "ac_cv_header_$ac_safe=yes"
15445 else
15446 echo "$ac_err" >&5
15447 echo "configure: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15449 rm -rf conftest*
15450 eval "ac_cv_header_$ac_safe=no"
15451 fi
15452 rm -f conftest*
15453 fi
15454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15455 echo "$ac_t""yes" 1>&6
15456 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15457 cat >> confdefs.h <<EOF
15458 #define $ac_tr_hdr 1
15459 EOF
15460
15461 else
15462 echo "$ac_t""no" 1>&6
15463 fi
15464 done
15465
15466
15467 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
15468 echo "configure:15469: checking for sched_yield in -l$THREADS_LINK" >&5
15469 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15471 echo $ac_n "(cached) $ac_c" 1>&6
15472 else
15473 ac_save_LIBS="$LIBS"
15474 LIBS="-l$THREADS_LINK $LIBS"
15475 cat > conftest.$ac_ext <<EOF
15476 #line 15477 "configure"
15477 #include "confdefs.h"
15478 /* Override any gcc2 internal prototype to avoid an error. */
15479 /* We use char because int might match the return type of a gcc2
15480 builtin and then its argument prototype would still apply. */
15481 char sched_yield();
15482
15483 int main() {
15484 sched_yield()
15485 ; return 0; }
15486 EOF
15487 if { (eval echo configure:15488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15488 rm -rf conftest*
15489 eval "ac_cv_lib_$ac_lib_var=yes"
15490 else
15491 echo "configure: failed program was:" >&5
15492 cat conftest.$ac_ext >&5
15493 rm -rf conftest*
15494 eval "ac_cv_lib_$ac_lib_var=no"
15495 fi
15496 rm -f conftest*
15497 LIBS="$ac_save_LIBS"
15498
15499 fi
15500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15501 echo "$ac_t""yes" 1>&6
15502 cat >> confdefs.h <<\EOF
15503 #define HAVE_SCHED_YIELD 1
15504 EOF
15505
15506 else
15507 echo "$ac_t""no" 1>&6
15508 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
15509 echo "configure:15510: checking for sched_yield in -lposix4" >&5
15510 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15512 echo $ac_n "(cached) $ac_c" 1>&6
15513 else
15514 ac_save_LIBS="$LIBS"
15515 LIBS="-lposix4 $LIBS"
15516 cat > conftest.$ac_ext <<EOF
15517 #line 15518 "configure"
15518 #include "confdefs.h"
15519 /* Override any gcc2 internal prototype to avoid an error. */
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15522 char sched_yield();
15523
15524 int main() {
15525 sched_yield()
15526 ; return 0; }
15527 EOF
15528 if { (eval echo configure:15529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15529 rm -rf conftest*
15530 eval "ac_cv_lib_$ac_lib_var=yes"
15531 else
15532 echo "configure: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15534 rm -rf conftest*
15535 eval "ac_cv_lib_$ac_lib_var=no"
15536 fi
15537 rm -f conftest*
15538 LIBS="$ac_save_LIBS"
15539
15540 fi
15541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15542 echo "$ac_t""yes" 1>&6
15543 cat >> confdefs.h <<\EOF
15544 #define HAVE_SCHED_YIELD 1
15545 EOF
15546 POSIX4_LINK=" -lposix4"
15547 else
15548 echo "$ac_t""no" 1>&6
15549 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
15550
15551 fi
15552
15553
15554 fi
15555
15556
15557 HAVE_PRIOR_FUNCS=0
15558 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
15559 echo "configure:15560: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
15560 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15562 echo $ac_n "(cached) $ac_c" 1>&6
15563 else
15564 ac_save_LIBS="$LIBS"
15565 LIBS="-l$THREADS_LINK $LIBS"
15566 cat > conftest.$ac_ext <<EOF
15567 #line 15568 "configure"
15568 #include "confdefs.h"
15569 /* Override any gcc2 internal prototype to avoid an error. */
15570 /* We use char because int might match the return type of a gcc2
15571 builtin and then its argument prototype would still apply. */
15572 char pthread_attr_getschedpolicy();
15573
15574 int main() {
15575 pthread_attr_getschedpolicy()
15576 ; return 0; }
15577 EOF
15578 if { (eval echo configure:15579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15579 rm -rf conftest*
15580 eval "ac_cv_lib_$ac_lib_var=yes"
15581 else
15582 echo "configure: failed program was:" >&5
15583 cat conftest.$ac_ext >&5
15584 rm -rf conftest*
15585 eval "ac_cv_lib_$ac_lib_var=no"
15586 fi
15587 rm -f conftest*
15588 LIBS="$ac_save_LIBS"
15589
15590 fi
15591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15592 echo "$ac_t""yes" 1>&6
15593 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
15594 echo "configure:15595: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
15595 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
15596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15597 echo $ac_n "(cached) $ac_c" 1>&6
15598 else
15599 ac_save_LIBS="$LIBS"
15600 LIBS="-l$THREADS_LINK $LIBS"
15601 cat > conftest.$ac_ext <<EOF
15602 #line 15603 "configure"
15603 #include "confdefs.h"
15604 /* Override any gcc2 internal prototype to avoid an error. */
15605 /* We use char because int might match the return type of a gcc2
15606 builtin and then its argument prototype would still apply. */
15607 char pthread_attr_setschedparam();
15608
15609 int main() {
15610 pthread_attr_setschedparam()
15611 ; return 0; }
15612 EOF
15613 if { (eval echo configure:15614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15614 rm -rf conftest*
15615 eval "ac_cv_lib_$ac_lib_var=yes"
15616 else
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15619 rm -rf conftest*
15620 eval "ac_cv_lib_$ac_lib_var=no"
15621 fi
15622 rm -f conftest*
15623 LIBS="$ac_save_LIBS"
15624
15625 fi
15626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15627 echo "$ac_t""yes" 1>&6
15628 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
15629 echo "configure:15630: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
15630 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15632 echo $ac_n "(cached) $ac_c" 1>&6
15633 else
15634 ac_save_LIBS="$LIBS"
15635 LIBS="-l$THREADS_LINK $LIBS"
15636 cat > conftest.$ac_ext <<EOF
15637 #line 15638 "configure"
15638 #include "confdefs.h"
15639 /* Override any gcc2 internal prototype to avoid an error. */
15640 /* We use char because int might match the return type of a gcc2
15641 builtin and then its argument prototype would still apply. */
15642 char sched_get_priority_max();
15643
15644 int main() {
15645 sched_get_priority_max()
15646 ; return 0; }
15647 EOF
15648 if { (eval echo configure:15649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15649 rm -rf conftest*
15650 eval "ac_cv_lib_$ac_lib_var=yes"
15651 else
15652 echo "configure: failed program was:" >&5
15653 cat conftest.$ac_ext >&5
15654 rm -rf conftest*
15655 eval "ac_cv_lib_$ac_lib_var=no"
15656 fi
15657 rm -f conftest*
15658 LIBS="$ac_save_LIBS"
15659
15660 fi
15661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15662 echo "$ac_t""yes" 1>&6
15663 HAVE_PRIOR_FUNCS=1
15664 else
15665 echo "$ac_t""no" 1>&6
15666 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
15667 echo "configure:15668: checking for sched_get_priority_max in -lposix4" >&5
15668 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15670 echo $ac_n "(cached) $ac_c" 1>&6
15671 else
15672 ac_save_LIBS="$LIBS"
15673 LIBS="-lposix4 $LIBS"
15674 cat > conftest.$ac_ext <<EOF
15675 #line 15676 "configure"
15676 #include "confdefs.h"
15677 /* Override any gcc2 internal prototype to avoid an error. */
15678 /* We use char because int might match the return type of a gcc2
15679 builtin and then its argument prototype would still apply. */
15680 char sched_get_priority_max();
15681
15682 int main() {
15683 sched_get_priority_max()
15684 ; return 0; }
15685 EOF
15686 if { (eval echo configure:15687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15687 rm -rf conftest*
15688 eval "ac_cv_lib_$ac_lib_var=yes"
15689 else
15690 echo "configure: failed program was:" >&5
15691 cat conftest.$ac_ext >&5
15692 rm -rf conftest*
15693 eval "ac_cv_lib_$ac_lib_var=no"
15694 fi
15695 rm -f conftest*
15696 LIBS="$ac_save_LIBS"
15697
15698 fi
15699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15700 echo "$ac_t""yes" 1>&6
15701
15702 HAVE_PRIOR_FUNCS=1
15703 POSIX4_LINK=" -lposix4"
15704
15705 else
15706 echo "$ac_t""no" 1>&6
15707 fi
15708
15709
15710 fi
15711
15712
15713 else
15714 echo "$ac_t""no" 1>&6
15715 fi
15716
15717
15718 else
15719 echo "$ac_t""no" 1>&6
15720 fi
15721
15722
15723 if test "$HAVE_PRIOR_FUNCS" = 1; then
15724 cat >> confdefs.h <<\EOF
15725 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15726 EOF
15727
15728 else
15729 echo "configure: warning: Setting thread priority will not work" 1>&2
15730 fi
15731
15732 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15733 echo "configure:15734: checking for pthread_cancel in -l$THREADS_LINK" >&5
15734 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15736 echo $ac_n "(cached) $ac_c" 1>&6
15737 else
15738 ac_save_LIBS="$LIBS"
15739 LIBS="-l$THREADS_LINK $LIBS"
15740 cat > conftest.$ac_ext <<EOF
15741 #line 15742 "configure"
15742 #include "confdefs.h"
15743 /* Override any gcc2 internal prototype to avoid an error. */
15744 /* We use char because int might match the return type of a gcc2
15745 builtin and then its argument prototype would still apply. */
15746 char pthread_cancel();
15747
15748 int main() {
15749 pthread_cancel()
15750 ; return 0; }
15751 EOF
15752 if { (eval echo configure:15753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15753 rm -rf conftest*
15754 eval "ac_cv_lib_$ac_lib_var=yes"
15755 else
15756 echo "configure: failed program was:" >&5
15757 cat conftest.$ac_ext >&5
15758 rm -rf conftest*
15759 eval "ac_cv_lib_$ac_lib_var=no"
15760 fi
15761 rm -f conftest*
15762 LIBS="$ac_save_LIBS"
15763
15764 fi
15765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15766 echo "$ac_t""yes" 1>&6
15767 cat >> confdefs.h <<\EOF
15768 #define HAVE_PTHREAD_CANCEL 1
15769 EOF
15770
15771 else
15772 echo "$ac_t""no" 1>&6
15773 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15774 fi
15775
15776
15777 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15778 echo "configure:15779: checking for pthread_cleanup_push/pop" >&5
15779 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15780 echo $ac_n "(cached) $ac_c" 1>&6
15781 else
15782
15783 cat > conftest.$ac_ext <<EOF
15784 #line 15785 "configure"
15785 #include "confdefs.h"
15786 #include <pthread.h>
15787 int main() {
15788
15789 pthread_cleanup_push(NULL, NULL);
15790 pthread_cleanup_pop(0);
15791
15792 ; return 0; }
15793 EOF
15794 if { (eval echo configure:15795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15795 rm -rf conftest*
15796
15797 wx_cv_func_pthread_cleanup_push=yes
15798
15799 else
15800 echo "configure: failed program was:" >&5
15801 cat conftest.$ac_ext >&5
15802 rm -rf conftest*
15803
15804 wx_cv_func_pthread_cleanup_push=no
15805
15806 fi
15807 rm -f conftest*
15808
15809 fi
15810
15811 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15812
15813 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15814 cat >> confdefs.h <<\EOF
15815 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15816 EOF
15817
15818 fi
15819
15820
15821 if test "x$wx_lib_glibc21" = "xyes"; then
15822 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15823 fi
15824
15825 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15826 echo "configure:15827: checking for pthread_mutexattr_t" >&5
15827 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15828 echo $ac_n "(cached) $ac_c" 1>&6
15829 else
15830
15831 cat > conftest.$ac_ext <<EOF
15832 #line 15833 "configure"
15833 #include "confdefs.h"
15834 #include <pthread.h>
15835 int main() {
15836
15837 pthread_mutexattr_t attr;
15838 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15839
15840 ; return 0; }
15841 EOF
15842 if { (eval echo configure:15843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15843 rm -rf conftest*
15844
15845 wx_cv_type_pthread_mutexattr_t=yes
15846
15847 else
15848 echo "configure: failed program was:" >&5
15849 cat conftest.$ac_ext >&5
15850 rm -rf conftest*
15851
15852 wx_cv_type_pthread_mutexattr_t=no
15853
15854
15855 fi
15856 rm -f conftest*
15857
15858 fi
15859
15860 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15861
15862 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15863 cat >> confdefs.h <<\EOF
15864 #define HAVE_PTHREAD_MUTEXATTR_T 1
15865 EOF
15866
15867 else
15868 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15869 echo "configure:15870: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15870 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15871 echo $ac_n "(cached) $ac_c" 1>&6
15872 else
15873
15874 cat > conftest.$ac_ext <<EOF
15875 #line 15876 "configure"
15876 #include "confdefs.h"
15877 #include <pthread.h>
15878 int main() {
15879
15880 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15881
15882 ; return 0; }
15883 EOF
15884 if { (eval echo configure:15885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15885 rm -rf conftest*
15886
15887 wx_cv_type_pthread_rec_mutex_init=yes
15888
15889 else
15890 echo "configure: failed program was:" >&5
15891 cat conftest.$ac_ext >&5
15892 rm -rf conftest*
15893
15894 wx_cv_type_pthread_rec_mutex_init=no
15895
15896
15897 fi
15898 rm -f conftest*
15899
15900 fi
15901
15902 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15903 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15904 cat >> confdefs.h <<\EOF
15905 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15906 EOF
15907
15908 else
15909 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15910 fi
15911 fi
15912
15913 THREADS_LINK=" -l$THREADS_LINK"
15914
15915 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15916 CPPFLAGS="$CFLAGS -mt"
15917 CXXFLAGS="$CXXFLAGS -mt"
15918 LDFLAGS="$LDFLAGS -mt"
15919 fi
15920 fi
15921
15922 fi
15923
15924 if test "$wxUSE_THREADS" = "yes"; then
15925 cat >> confdefs.h <<\EOF
15926 #define wxUSE_THREADS 1
15927 EOF
15928
15929
15930 if test "$USE_DARWIN" != 1; then
15931 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT"
15932 fi
15933
15934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15935 else
15936 if test "$ac_cv_func_strtok_r" = "yes"; then
15937 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15938 echo "configure:15939: checking if -D_REENTRANT is needed" >&5
15939 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15940 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15941 echo "$ac_t""yes" 1>&6
15942 else
15943 echo "$ac_t""no" 1>&6
15944 fi
15945 fi
15946 fi
15947
15948 if test "$WXGTK20" = 1 ; then
15949 cat >> confdefs.h <<EOF
15950 #define __WXGTK20__ $WXGTK20
15951 EOF
15952
15953 WXGTK12=1
15954 fi
15955
15956 if test "$WXGTK12" = 1 ; then
15957 cat >> confdefs.h <<EOF
15958 #define __WXGTK12__ $WXGTK12
15959 EOF
15960
15961 fi
15962
15963 if test "$WXGTK127" = 1 ; then
15964 cat >> confdefs.h <<EOF
15965 #define __WXGTK127__ $WXGTK127
15966 EOF
15967
15968 fi
15969
15970 WXDEBUG=
15971
15972 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15973 WXDEBUG="-g"
15974 wxUSE_OPTIMISE=no
15975 fi
15976
15977 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15978 wxUSE_DEBUG_INFO=yes
15979 WXDEBUG="-ggdb"
15980 fi
15981
15982 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15983 cat >> confdefs.h <<\EOF
15984 #define WXDEBUG 1
15985 EOF
15986
15987 WXDEBUG_DEFINE="-D__WXDEBUG__"
15988 else
15989 if test "$wxUSE_GTK" = 1 ; then
15990 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15991 fi
15992 fi
15993
15994 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15995 cat >> confdefs.h <<\EOF
15996 #define wxUSE_MEMORY_TRACING 1
15997 EOF
15998
15999 cat >> confdefs.h <<\EOF
16000 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16001 EOF
16002
16003 cat >> confdefs.h <<\EOF
16004 #define wxUSE_DEBUG_NEW_ALWAYS 1
16005 EOF
16006
16007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16008 fi
16009
16010 if test "$wxUSE_DMALLOC" = "yes" ; then
16011 DMALLOC_LIBS="-ldmalloc"
16012 fi
16013
16014 PROFILE=
16015 if test "$wxUSE_PROFILE" = "yes" ; then
16016 PROFILE=" -pg"
16017 fi
16018
16019 if test "$GCC" = "yes" ; then
16020 if test "$wxUSE_NO_RTTI" = "yes" ; then
16021 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
16022 fi
16023 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16024 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16025 fi
16026 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16027 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16028 fi
16029 if test "$USE_WIN32" = 1 ; then
16030 # I'm not even really sure what this was ever added to solve,
16031 # but someone added it for mingw native builds, so I guess
16032 # they had a reason, right??
16033 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16034 fi
16035 fi
16036
16037
16038 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16039 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16040 if test "$wxUSE_OPTIMISE" = "no" ; then
16041 OPTIMISE=
16042 else
16043 if test "$GCC" = yes ; then
16044 OPTIMISE="-O2"
16045 case "${host}" in
16046 i586-*-*|i686-*-* )
16047 OPTIMISE="${OPTIMISE} "
16048 ;;
16049 esac
16050 else
16051 OPTIMISE="-O"
16052 fi
16053 fi
16054
16055 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16056 cat >> confdefs.h <<\EOF
16057 #define WXWIN_COMPATIBILITY_2 1
16058 EOF
16059
16060
16061 WXWIN_COMPATIBILITY_2_2="yes"
16062 fi
16063
16064 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16065 cat >> confdefs.h <<\EOF
16066 #define WXWIN_COMPATIBILITY_2_2 1
16067 EOF
16068
16069 fi
16070
16071
16072 if test "$wxUSE_GUI" = "yes"; then
16073 cat >> confdefs.h <<\EOF
16074 #define wxUSE_GUI 1
16075 EOF
16076
16077
16078 else
16079 cat >> confdefs.h <<\EOF
16080 #define wxUSE_NOGUI 1
16081 EOF
16082
16083 fi
16084
16085
16086 if test "$wxUSE_UNIX" = "yes"; then
16087 cat >> confdefs.h <<\EOF
16088 #define wxUSE_UNIX 1
16089 EOF
16090
16091 fi
16092
16093
16094 if test "$wxUSE_APPLE_IEEE" = "yes"; then
16095 cat >> confdefs.h <<\EOF
16096 #define wxUSE_APPLE_IEEE 1
16097 EOF
16098
16099 fi
16100
16101 if test "$wxUSE_TIMER" = "yes"; then
16102 cat >> confdefs.h <<\EOF
16103 #define wxUSE_TIMER 1
16104 EOF
16105
16106 fi
16107
16108 if test "$wxUSE_WAVE" = "yes"; then
16109 cat >> confdefs.h <<\EOF
16110 #define wxUSE_WAVE 1
16111 EOF
16112
16113 fi
16114
16115 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16116 cat >> confdefs.h <<\EOF
16117 #define wxUSE_CMDLINE_PARSER 1
16118 EOF
16119
16120 fi
16121
16122 if test "$wxUSE_STOPWATCH" = "yes"; then
16123 cat >> confdefs.h <<\EOF
16124 #define wxUSE_STOPWATCH 1
16125 EOF
16126
16127 fi
16128
16129 if test "$wxUSE_DATETIME" = "yes"; then
16130 cat >> confdefs.h <<\EOF
16131 #define wxUSE_DATETIME 1
16132 EOF
16133
16134 fi
16135
16136 if test "$wxUSE_TIMEDATE" = "yes"; then
16137 cat >> confdefs.h <<\EOF
16138 #define wxUSE_TIMEDATE 1
16139 EOF
16140
16141 fi
16142
16143 if test "$wxUSE_FILE" = "yes"; then
16144 cat >> confdefs.h <<\EOF
16145 #define wxUSE_FILE 1
16146 EOF
16147
16148 fi
16149
16150 if test "$wxUSE_FFILE" = "yes"; then
16151 cat >> confdefs.h <<\EOF
16152 #define wxUSE_FFILE 1
16153 EOF
16154
16155 fi
16156
16157 if test "$wxUSE_FILESYSTEM" = "yes"; then
16158 cat >> confdefs.h <<\EOF
16159 #define wxUSE_FILESYSTEM 1
16160 EOF
16161
16162 fi
16163
16164 if test "$wxUSE_FS_INET" = "yes"; then
16165 cat >> confdefs.h <<\EOF
16166 #define wxUSE_FS_INET 1
16167 EOF
16168
16169 fi
16170
16171 if test "$wxUSE_FS_ZIP" = "yes"; then
16172 cat >> confdefs.h <<\EOF
16173 #define wxUSE_FS_ZIP 1
16174 EOF
16175
16176 fi
16177
16178 if test "$wxUSE_ZIPSTREAM" = "yes"; then
16179 cat >> confdefs.h <<\EOF
16180 #define wxUSE_ZIPSTREAM 1
16181 EOF
16182
16183 fi
16184
16185 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16186 cat >> confdefs.h <<\EOF
16187 #define wxUSE_ON_FATAL_EXCEPTION 1
16188 EOF
16189
16190 fi
16191
16192 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16193 cat >> confdefs.h <<\EOF
16194 #define wxUSE_SNGLINST_CHECKER 1
16195 EOF
16196
16197 fi
16198
16199 if test "$wxUSE_BUSYINFO" = "yes"; then
16200 cat >> confdefs.h <<\EOF
16201 #define wxUSE_BUSYINFO 1
16202 EOF
16203
16204 fi
16205
16206 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16207 cat >> confdefs.h <<\EOF
16208 #define wxUSE_STD_IOSTREAM 1
16209 EOF
16210
16211 fi
16212
16213 if test "$wxUSE_TEXTBUFFER" = "yes"; then
16214 cat >> confdefs.h <<\EOF
16215 #define wxUSE_TEXTBUFFER 1
16216 EOF
16217
16218 fi
16219
16220 if test "$wxUSE_TEXTFILE" = "yes"; then
16221 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
16222 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer and won't be compiled without them" 1>&2
16223 else
16224 cat >> confdefs.h <<\EOF
16225 #define wxUSE_TEXTFILE 1
16226 EOF
16227
16228 fi
16229 fi
16230
16231 if test "$wxUSE_CONFIG" = "yes" ; then
16232 if test "$wxUSE_TEXTFILE" != "yes"; then
16233 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
16234 else
16235 cat >> confdefs.h <<\EOF
16236 #define wxUSE_CONFIG 1
16237 EOF
16238
16239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16240 fi
16241 fi
16242
16243 if test "$wxUSE_INTL" = "yes" ; then
16244 if test "$wxUSE_FILE" != "yes"; then
16245 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
16246 else
16247 cat >> confdefs.h <<\EOF
16248 #define wxUSE_INTL 1
16249 EOF
16250
16251 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16252 GUIDIST="$GUIDIST INTL_DIST"
16253 fi
16254 fi
16255
16256 if test "$wxUSE_LOG" = "yes"; then
16257 cat >> confdefs.h <<\EOF
16258 #define wxUSE_LOG 1
16259 EOF
16260
16261
16262 if test "$wxUSE_LOGGUI" = "yes"; then
16263 cat >> confdefs.h <<\EOF
16264 #define wxUSE_LOGGUI 1
16265 EOF
16266
16267 fi
16268
16269 if test "$wxUSE_LOGWINDOW" = "yes"; then
16270 cat >> confdefs.h <<\EOF
16271 #define wxUSE_LOGWINDOW 1
16272 EOF
16273
16274 fi
16275 fi
16276
16277 if test "$wxUSE_LONGLONG" = "yes"; then
16278 cat >> confdefs.h <<\EOF
16279 #define wxUSE_LONGLONG 1
16280 EOF
16281
16282 fi
16283
16284 if test "$wxUSE_GEOMETRY" = "yes"; then
16285 cat >> confdefs.h <<\EOF
16286 #define wxUSE_GEOMETRY 1
16287 EOF
16288
16289 fi
16290
16291 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16292 cat >> confdefs.h <<\EOF
16293 #define wxUSE_DIALUP_MANAGER 1
16294 EOF
16295
16296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16297 fi
16298
16299 if test "$wxUSE_STREAMS" = "yes" ; then
16300 cat >> confdefs.h <<\EOF
16301 #define wxUSE_STREAMS 1
16302 EOF
16303
16304 fi
16305
16306
16307 if test "$wxUSE_DATETIME" = "yes"; then
16308 for ac_func in strptime
16309 do
16310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16311 echo "configure:16312: checking for $ac_func" >&5
16312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16313 echo $ac_n "(cached) $ac_c" 1>&6
16314 else
16315 cat > conftest.$ac_ext <<EOF
16316 #line 16317 "configure"
16317 #include "confdefs.h"
16318 /* System header to define __stub macros and hopefully few prototypes,
16319 which can conflict with char $ac_func(); below. */
16320 #include <assert.h>
16321 /* Override any gcc2 internal prototype to avoid an error. */
16322 /* We use char because int might match the return type of a gcc2
16323 builtin and then its argument prototype would still apply. */
16324 char $ac_func();
16325
16326 int main() {
16327
16328 /* The GNU C library defines this for functions which it implements
16329 to always fail with ENOSYS. Some functions are actually named
16330 something starting with __ and the normal name is an alias. */
16331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16332 choke me
16333 #else
16334 $ac_func();
16335 #endif
16336
16337 ; return 0; }
16338 EOF
16339 if { (eval echo configure:16340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16340 rm -rf conftest*
16341 eval "ac_cv_func_$ac_func=yes"
16342 else
16343 echo "configure: failed program was:" >&5
16344 cat conftest.$ac_ext >&5
16345 rm -rf conftest*
16346 eval "ac_cv_func_$ac_func=no"
16347 fi
16348 rm -f conftest*
16349 fi
16350
16351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16352 echo "$ac_t""yes" 1>&6
16353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16354 cat >> confdefs.h <<EOF
16355 #define $ac_tr_func 1
16356 EOF
16357
16358 else
16359 echo "$ac_t""no" 1>&6
16360 fi
16361 done
16362
16363
16364 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16365 echo "configure:16366: checking for timezone variable in <time.h>" >&5
16366 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16367 echo $ac_n "(cached) $ac_c" 1>&6
16368 else
16369
16370 cat > conftest.$ac_ext <<EOF
16371 #line 16372 "configure"
16372 #include "confdefs.h"
16373
16374 #include <time.h>
16375
16376 int main() {
16377
16378 int tz;
16379 tz = timezone;
16380
16381 ; return 0; }
16382 EOF
16383 if { (eval echo configure:16384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16384 rm -rf conftest*
16385
16386 wx_cv_var_timezone=timezone
16387
16388 else
16389 echo "configure: failed program was:" >&5
16390 cat conftest.$ac_ext >&5
16391 rm -rf conftest*
16392
16393 cat > conftest.$ac_ext <<EOF
16394 #line 16395 "configure"
16395 #include "confdefs.h"
16396
16397 #include <time.h>
16398
16399 int main() {
16400
16401 int tz;
16402 tz = _timezone;
16403
16404 ; return 0; }
16405 EOF
16406 if { (eval echo configure:16407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16407 rm -rf conftest*
16408
16409 wx_cv_var_timezone=_timezone
16410
16411 else
16412 echo "configure: failed program was:" >&5
16413 cat conftest.$ac_ext >&5
16414 rm -rf conftest*
16415
16416 cat > conftest.$ac_ext <<EOF
16417 #line 16418 "configure"
16418 #include "confdefs.h"
16419
16420 #include <time.h>
16421
16422 int main() {
16423
16424 int tz;
16425 tz = __timezone;
16426
16427 ; return 0; }
16428 EOF
16429 if { (eval echo configure:16430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16430 rm -rf conftest*
16431
16432 wx_cv_var_timezone=__timezone
16433
16434 else
16435 echo "configure: failed program was:" >&5
16436 cat conftest.$ac_ext >&5
16437 rm -rf conftest*
16438 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16439
16440 fi
16441 rm -f conftest*
16442
16443
16444 fi
16445 rm -f conftest*
16446
16447
16448 fi
16449 rm -f conftest*
16450
16451
16452 fi
16453
16454 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16455
16456 cat >> confdefs.h <<EOF
16457 #define WX_TIMEZONE $wx_cv_var_timezone
16458 EOF
16459
16460
16461 for ac_func in localtime
16462 do
16463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16464 echo "configure:16465: checking for $ac_func" >&5
16465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16466 echo $ac_n "(cached) $ac_c" 1>&6
16467 else
16468 cat > conftest.$ac_ext <<EOF
16469 #line 16470 "configure"
16470 #include "confdefs.h"
16471 /* System header to define __stub macros and hopefully few prototypes,
16472 which can conflict with char $ac_func(); below. */
16473 #include <assert.h>
16474 /* Override any gcc2 internal prototype to avoid an error. */
16475 /* We use char because int might match the return type of a gcc2
16476 builtin and then its argument prototype would still apply. */
16477 char $ac_func();
16478
16479 int main() {
16480
16481 /* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485 choke me
16486 #else
16487 $ac_func();
16488 #endif
16489
16490 ; return 0; }
16491 EOF
16492 if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16493 rm -rf conftest*
16494 eval "ac_cv_func_$ac_func=yes"
16495 else
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16498 rm -rf conftest*
16499 eval "ac_cv_func_$ac_func=no"
16500 fi
16501 rm -f conftest*
16502 fi
16503
16504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16505 echo "$ac_t""yes" 1>&6
16506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16507 cat >> confdefs.h <<EOF
16508 #define $ac_tr_func 1
16509 EOF
16510
16511 else
16512 echo "$ac_t""no" 1>&6
16513 fi
16514 done
16515
16516
16517 if test "$ac_cv_func_localtime" = "yes"; then
16518 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16519 echo "configure:16520: checking for tm_gmtoff in struct tm" >&5
16520 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16521 echo $ac_n "(cached) $ac_c" 1>&6
16522 else
16523
16524 cat > conftest.$ac_ext <<EOF
16525 #line 16526 "configure"
16526 #include "confdefs.h"
16527
16528 #include <time.h>
16529
16530 int main() {
16531
16532 struct tm tm;
16533 tm.tm_gmtoff++;
16534
16535 ; return 0; }
16536 EOF
16537 if { (eval echo configure:16538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16538 rm -rf conftest*
16539
16540 wx_cv_struct_tm_has_gmtoff=yes
16541
16542 else
16543 echo "configure: failed program was:" >&5
16544 cat conftest.$ac_ext >&5
16545 rm -rf conftest*
16546 wx_cv_struct_tm_has_gmtoff=no
16547
16548 fi
16549 rm -f conftest*
16550
16551 fi
16552
16553 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16554 fi
16555
16556 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16557 cat >> confdefs.h <<\EOF
16558 #define WX_GMTOFF_IN_TM 1
16559 EOF
16560
16561 fi
16562
16563 for ac_func in gettimeofday ftime
16564 do
16565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16566 echo "configure:16567: checking for $ac_func" >&5
16567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16568 echo $ac_n "(cached) $ac_c" 1>&6
16569 else
16570 cat > conftest.$ac_ext <<EOF
16571 #line 16572 "configure"
16572 #include "confdefs.h"
16573 /* System header to define __stub macros and hopefully few prototypes,
16574 which can conflict with char $ac_func(); below. */
16575 #include <assert.h>
16576 /* Override any gcc2 internal prototype to avoid an error. */
16577 /* We use char because int might match the return type of a gcc2
16578 builtin and then its argument prototype would still apply. */
16579 char $ac_func();
16580
16581 int main() {
16582
16583 /* The GNU C library defines this for functions which it implements
16584 to always fail with ENOSYS. Some functions are actually named
16585 something starting with __ and the normal name is an alias. */
16586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16587 choke me
16588 #else
16589 $ac_func();
16590 #endif
16591
16592 ; return 0; }
16593 EOF
16594 if { (eval echo configure:16595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16595 rm -rf conftest*
16596 eval "ac_cv_func_$ac_func=yes"
16597 else
16598 echo "configure: failed program was:" >&5
16599 cat conftest.$ac_ext >&5
16600 rm -rf conftest*
16601 eval "ac_cv_func_$ac_func=no"
16602 fi
16603 rm -f conftest*
16604 fi
16605
16606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16607 echo "$ac_t""yes" 1>&6
16608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16609 cat >> confdefs.h <<EOF
16610 #define $ac_tr_func 1
16611 EOF
16612 break
16613 else
16614 echo "$ac_t""no" 1>&6
16615 fi
16616 done
16617
16618
16619 if test "$ac_cv_func_gettimeofday" = "yes"; then
16620 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16621 echo "configure:16622: checking whether gettimeofday takes two arguments" >&5
16622 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16623 echo $ac_n "(cached) $ac_c" 1>&6
16624 else
16625
16626
16627 ac_ext=C
16628 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16629 ac_cpp='$CXXCPP $CPPFLAGS'
16630 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16631 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16632 cross_compiling=$ac_cv_prog_cxx_cross
16633
16634
16635 cat > conftest.$ac_ext <<EOF
16636 #line 16637 "configure"
16637 #include "confdefs.h"
16638
16639 #include <sys/time.h>
16640 #include <unistd.h>
16641
16642 int main() {
16643
16644 struct timeval tv;
16645 gettimeofday(&tv, NULL);
16646
16647 ; return 0; }
16648 EOF
16649 if { (eval echo configure:16650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16650 rm -rf conftest*
16651 wx_cv_func_gettimeofday_has_2_args=yes
16652 else
16653 echo "configure: failed program was:" >&5
16654 cat conftest.$ac_ext >&5
16655 rm -rf conftest*
16656 cat > conftest.$ac_ext <<EOF
16657 #line 16658 "configure"
16658 #include "confdefs.h"
16659
16660 #include <sys/time.h>
16661 #include <unistd.h>
16662
16663 int main() {
16664
16665 struct timeval tv;
16666 gettimeofday(&tv);
16667
16668 ; return 0; }
16669 EOF
16670 if { (eval echo configure:16671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16671 rm -rf conftest*
16672 wx_cv_func_gettimeofday_has_2_args=no
16673 else
16674 echo "configure: failed program was:" >&5
16675 cat conftest.$ac_ext >&5
16676 rm -rf conftest*
16677
16678 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16679 wx_cv_func_gettimeofday_has_2_args=unknown
16680
16681
16682 fi
16683 rm -f conftest*
16684
16685 fi
16686 rm -f conftest*
16687 ac_ext=c
16688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16689 ac_cpp='$CPP $CPPFLAGS'
16690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16692 cross_compiling=$ac_cv_prog_cc_cross
16693
16694
16695 fi
16696
16697 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16698
16699 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16700 cat >> confdefs.h <<\EOF
16701 #define WX_GETTIMEOFDAY_NO_TZ 1
16702 EOF
16703
16704 fi
16705 fi
16706
16707 cat >> confdefs.h <<\EOF
16708 #define wxUSE_TIMEDATE 1
16709 EOF
16710
16711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16712 fi
16713
16714
16715 if test "$TOOLKIT" != "MSW"; then
16716
16717 if test "$wxUSE_SOCKETS" = "yes"; then
16718 echo $ac_n "checking for socket""... $ac_c" 1>&6
16719 echo "configure:16720: checking for socket" >&5
16720 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16721 echo $ac_n "(cached) $ac_c" 1>&6
16722 else
16723 cat > conftest.$ac_ext <<EOF
16724 #line 16725 "configure"
16725 #include "confdefs.h"
16726 /* System header to define __stub macros and hopefully few prototypes,
16727 which can conflict with char socket(); below. */
16728 #include <assert.h>
16729 /* Override any gcc2 internal prototype to avoid an error. */
16730 /* We use char because int might match the return type of a gcc2
16731 builtin and then its argument prototype would still apply. */
16732 char socket();
16733
16734 int main() {
16735
16736 /* The GNU C library defines this for functions which it implements
16737 to always fail with ENOSYS. Some functions are actually named
16738 something starting with __ and the normal name is an alias. */
16739 #if defined (__stub_socket) || defined (__stub___socket)
16740 choke me
16741 #else
16742 socket();
16743 #endif
16744
16745 ; return 0; }
16746 EOF
16747 if { (eval echo configure:16748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16748 rm -rf conftest*
16749 eval "ac_cv_func_socket=yes"
16750 else
16751 echo "configure: failed program was:" >&5
16752 cat conftest.$ac_ext >&5
16753 rm -rf conftest*
16754 eval "ac_cv_func_socket=no"
16755 fi
16756 rm -f conftest*
16757 fi
16758
16759 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16760 echo "$ac_t""yes" 1>&6
16761 :
16762 else
16763 echo "$ac_t""no" 1>&6
16764 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16765 echo "configure:16766: checking for socket in -lsocket" >&5
16766 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16768 echo $ac_n "(cached) $ac_c" 1>&6
16769 else
16770 ac_save_LIBS="$LIBS"
16771 LIBS="-lsocket $LIBS"
16772 cat > conftest.$ac_ext <<EOF
16773 #line 16774 "configure"
16774 #include "confdefs.h"
16775 /* Override any gcc2 internal prototype to avoid an error. */
16776 /* We use char because int might match the return type of a gcc2
16777 builtin and then its argument prototype would still apply. */
16778 char socket();
16779
16780 int main() {
16781 socket()
16782 ; return 0; }
16783 EOF
16784 if { (eval echo configure:16785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16785 rm -rf conftest*
16786 eval "ac_cv_lib_$ac_lib_var=yes"
16787 else
16788 echo "configure: failed program was:" >&5
16789 cat conftest.$ac_ext >&5
16790 rm -rf conftest*
16791 eval "ac_cv_lib_$ac_lib_var=no"
16792 fi
16793 rm -f conftest*
16794 LIBS="$ac_save_LIBS"
16795
16796 fi
16797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16798 echo "$ac_t""yes" 1>&6
16799 INET_LINK="$INET_LINK -lsocket"
16800 else
16801 echo "$ac_t""no" 1>&6
16802
16803 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16804 wxUSE_SOCKETS=no
16805
16806
16807 fi
16808
16809
16810 fi
16811
16812 fi
16813
16814
16815 if test "$wxUSE_SOCKETS" = "yes" ; then
16816 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16817 echo "configure:16818: checking what is the type of the third argument of getsockname" >&5
16818 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16819 echo $ac_n "(cached) $ac_c" 1>&6
16820 else
16821
16822
16823 ac_ext=C
16824 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16825 ac_cpp='$CXXCPP $CPPFLAGS'
16826 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16827 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16828 cross_compiling=$ac_cv_prog_cxx_cross
16829
16830
16831 cat > conftest.$ac_ext <<EOF
16832 #line 16833 "configure"
16833 #include "confdefs.h"
16834
16835 #include <sys/types.h>
16836 #include <sys/socket.h>
16837
16838 int main() {
16839
16840 socklen_t len;
16841 getsockname(0, 0, &len);
16842
16843 ; return 0; }
16844 EOF
16845 if { (eval echo configure:16846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16846 rm -rf conftest*
16847 wx_cv_type_getsockname3=socklen_t
16848 else
16849 echo "configure: failed program was:" >&5
16850 cat conftest.$ac_ext >&5
16851 rm -rf conftest*
16852 cat > conftest.$ac_ext <<EOF
16853 #line 16854 "configure"
16854 #include "confdefs.h"
16855
16856 #include <sys/types.h>
16857 #include <sys/socket.h>
16858
16859 int main() {
16860
16861 size_t len;
16862 getsockname(0, 0, &len);
16863
16864 ; return 0; }
16865 EOF
16866 if { (eval echo configure:16867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16867 rm -rf conftest*
16868 wx_cv_type_getsockname3=size_t
16869 else
16870 echo "configure: failed program was:" >&5
16871 cat conftest.$ac_ext >&5
16872 rm -rf conftest*
16873 cat > conftest.$ac_ext <<EOF
16874 #line 16875 "configure"
16875 #include "confdefs.h"
16876
16877 #include <sys/types.h>
16878 #include <sys/socket.h>
16879
16880 int main() {
16881
16882 int len;
16883 getsockname(0, 0, &len);
16884
16885 ; return 0; }
16886 EOF
16887 if { (eval echo configure:16888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16888 rm -rf conftest*
16889 wx_cv_type_getsockname3=int
16890 else
16891 echo "configure: failed program was:" >&5
16892 cat conftest.$ac_ext >&5
16893 rm -rf conftest*
16894 wx_cv_type_getsockname3=unknown
16895
16896 fi
16897 rm -f conftest*
16898
16899 fi
16900 rm -f conftest*
16901
16902 fi
16903 rm -f conftest*
16904
16905 ac_ext=c
16906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16907 ac_cpp='$CPP $CPPFLAGS'
16908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16910 cross_compiling=$ac_cv_prog_cc_cross
16911
16912
16913 fi
16914
16915 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16916
16917 if test "$wx_cv_type_getsockname3" = "unknown"; then
16918 wxUSE_SOCKETS=no
16919 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16920 else
16921 cat >> confdefs.h <<EOF
16922 #define SOCKLEN_T $wx_cv_type_getsockname3
16923 EOF
16924
16925 fi
16926 fi
16927 fi
16928
16929 if test "$wxUSE_SOCKETS" = "yes" ; then
16930 cat >> confdefs.h <<\EOF
16931 #define wxUSE_SOCKETS 1
16932 EOF
16933
16934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16935 fi
16936
16937
16938 if test "$wxUSE_GUI" = "yes"; then
16939
16940 if test "$TOOLKIT" != "MSW"; then
16941 if test "$wxUSE_JOYSTICK" = "yes"; then
16942 for ac_hdr in linux/joystick.h
16943 do
16944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16946 echo "configure:16947: checking for $ac_hdr" >&5
16947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16948 echo $ac_n "(cached) $ac_c" 1>&6
16949 else
16950 cat > conftest.$ac_ext <<EOF
16951 #line 16952 "configure"
16952 #include "confdefs.h"
16953 #include <$ac_hdr>
16954 EOF
16955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16956 { (eval echo configure:16957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16958 if test -z "$ac_err"; then
16959 rm -rf conftest*
16960 eval "ac_cv_header_$ac_safe=yes"
16961 else
16962 echo "$ac_err" >&5
16963 echo "configure: failed program was:" >&5
16964 cat conftest.$ac_ext >&5
16965 rm -rf conftest*
16966 eval "ac_cv_header_$ac_safe=no"
16967 fi
16968 rm -f conftest*
16969 fi
16970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16971 echo "$ac_t""yes" 1>&6
16972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16973 cat >> confdefs.h <<EOF
16974 #define $ac_tr_hdr 1
16975 EOF
16976
16977 else
16978 echo "$ac_t""no" 1>&6
16979 fi
16980 done
16981
16982 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16983 wxUSE_JOYSTICK=no
16984 echo "configure: warning: Joystick not supported by this system" 1>&2
16985 fi
16986 fi
16987 fi
16988
16989 if test "$wxUSE_JOYSTICK" = "yes"; then
16990 cat >> confdefs.h <<\EOF
16991 #define wxUSE_JOYSTICK 1
16992 EOF
16993
16994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16995 fi
16996 fi
16997
16998
16999 if test "$TOOLKIT" != "MSW"; then
17000
17001 HAVE_DL_FUNCS=0
17002 HAVE_SHL_FUNCS=0
17003 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
17004 if test "$USE_DARWIN" = 1; then
17005 HAVE_DL_FUNCS=1
17006 else
17007 for ac_func in dlopen
17008 do
17009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17010 echo "configure:17011: checking for $ac_func" >&5
17011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17012 echo $ac_n "(cached) $ac_c" 1>&6
17013 else
17014 cat > conftest.$ac_ext <<EOF
17015 #line 17016 "configure"
17016 #include "confdefs.h"
17017 /* System header to define __stub macros and hopefully few prototypes,
17018 which can conflict with char $ac_func(); below. */
17019 #include <assert.h>
17020 /* Override any gcc2 internal prototype to avoid an error. */
17021 /* We use char because int might match the return type of a gcc2
17022 builtin and then its argument prototype would still apply. */
17023 char $ac_func();
17024
17025 int main() {
17026
17027 /* The GNU C library defines this for functions which it implements
17028 to always fail with ENOSYS. Some functions are actually named
17029 something starting with __ and the normal name is an alias. */
17030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17031 choke me
17032 #else
17033 $ac_func();
17034 #endif
17035
17036 ; return 0; }
17037 EOF
17038 if { (eval echo configure:17039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17039 rm -rf conftest*
17040 eval "ac_cv_func_$ac_func=yes"
17041 else
17042 echo "configure: failed program was:" >&5
17043 cat conftest.$ac_ext >&5
17044 rm -rf conftest*
17045 eval "ac_cv_func_$ac_func=no"
17046 fi
17047 rm -f conftest*
17048 fi
17049
17050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17051 echo "$ac_t""yes" 1>&6
17052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17053 cat >> confdefs.h <<EOF
17054 #define $ac_tr_func 1
17055 EOF
17056
17057 cat >> confdefs.h <<\EOF
17058 #define HAVE_DLOPEN 1
17059 EOF
17060
17061 HAVE_DL_FUNCS=1
17062
17063 else
17064 echo "$ac_t""no" 1>&6
17065 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17066 echo "configure:17067: checking for dlopen in -ldl" >&5
17067 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17069 echo $ac_n "(cached) $ac_c" 1>&6
17070 else
17071 ac_save_LIBS="$LIBS"
17072 LIBS="-ldl $LIBS"
17073 cat > conftest.$ac_ext <<EOF
17074 #line 17075 "configure"
17075 #include "confdefs.h"
17076 /* Override any gcc2 internal prototype to avoid an error. */
17077 /* We use char because int might match the return type of a gcc2
17078 builtin and then its argument prototype would still apply. */
17079 char dlopen();
17080
17081 int main() {
17082 dlopen()
17083 ; return 0; }
17084 EOF
17085 if { (eval echo configure:17086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17086 rm -rf conftest*
17087 eval "ac_cv_lib_$ac_lib_var=yes"
17088 else
17089 echo "configure: failed program was:" >&5
17090 cat conftest.$ac_ext >&5
17091 rm -rf conftest*
17092 eval "ac_cv_lib_$ac_lib_var=no"
17093 fi
17094 rm -f conftest*
17095 LIBS="$ac_save_LIBS"
17096
17097 fi
17098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17099 echo "$ac_t""yes" 1>&6
17100
17101 cat >> confdefs.h <<\EOF
17102 #define HAVE_DLOPEN 1
17103 EOF
17104
17105 HAVE_DL_FUNCS=1
17106 DL_LINK=" -ldl$DL_LINK"
17107
17108 else
17109 echo "$ac_t""no" 1>&6
17110
17111 for ac_func in shl_load
17112 do
17113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17114 echo "configure:17115: checking for $ac_func" >&5
17115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17116 echo $ac_n "(cached) $ac_c" 1>&6
17117 else
17118 cat > conftest.$ac_ext <<EOF
17119 #line 17120 "configure"
17120 #include "confdefs.h"
17121 /* System header to define __stub macros and hopefully few prototypes,
17122 which can conflict with char $ac_func(); below. */
17123 #include <assert.h>
17124 /* Override any gcc2 internal prototype to avoid an error. */
17125 /* We use char because int might match the return type of a gcc2
17126 builtin and then its argument prototype would still apply. */
17127 char $ac_func();
17128
17129 int main() {
17130
17131 /* The GNU C library defines this for functions which it implements
17132 to always fail with ENOSYS. Some functions are actually named
17133 something starting with __ and the normal name is an alias. */
17134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17135 choke me
17136 #else
17137 $ac_func();
17138 #endif
17139
17140 ; return 0; }
17141 EOF
17142 if { (eval echo configure:17143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17143 rm -rf conftest*
17144 eval "ac_cv_func_$ac_func=yes"
17145 else
17146 echo "configure: failed program was:" >&5
17147 cat conftest.$ac_ext >&5
17148 rm -rf conftest*
17149 eval "ac_cv_func_$ac_func=no"
17150 fi
17151 rm -f conftest*
17152 fi
17153
17154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17155 echo "$ac_t""yes" 1>&6
17156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17157 cat >> confdefs.h <<EOF
17158 #define $ac_tr_func 1
17159 EOF
17160
17161 cat >> confdefs.h <<\EOF
17162 #define HAVE_SHL_LOAD 1
17163 EOF
17164
17165 HAVE_SHL_FUNCS=1
17166
17167 else
17168 echo "$ac_t""no" 1>&6
17169 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17170 echo "configure:17171: checking for dld in -lshl_load" >&5
17171 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17173 echo $ac_n "(cached) $ac_c" 1>&6
17174 else
17175 ac_save_LIBS="$LIBS"
17176 LIBS="-lshl_load $LIBS"
17177 cat > conftest.$ac_ext <<EOF
17178 #line 17179 "configure"
17179 #include "confdefs.h"
17180 /* Override any gcc2 internal prototype to avoid an error. */
17181 /* We use char because int might match the return type of a gcc2
17182 builtin and then its argument prototype would still apply. */
17183 char dld();
17184
17185 int main() {
17186 dld()
17187 ; return 0; }
17188 EOF
17189 if { (eval echo configure:17190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17190 rm -rf conftest*
17191 eval "ac_cv_lib_$ac_lib_var=yes"
17192 else
17193 echo "configure: failed program was:" >&5
17194 cat conftest.$ac_ext >&5
17195 rm -rf conftest*
17196 eval "ac_cv_lib_$ac_lib_var=no"
17197 fi
17198 rm -f conftest*
17199 LIBS="$ac_save_LIBS"
17200
17201 fi
17202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17203 echo "$ac_t""yes" 1>&6
17204
17205 HAVE_SHL_FUNCS=1
17206 DL_LINK=" -ldld$DL_LINK"
17207
17208 else
17209 echo "$ac_t""no" 1>&6
17210 fi
17211
17212
17213 fi
17214 done
17215
17216
17217 fi
17218
17219
17220 fi
17221 done
17222
17223
17224 if test "$HAVE_DL_FUNCS" = 1; then
17225 for ac_func in dlerror
17226 do
17227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17228 echo "configure:17229: checking for $ac_func" >&5
17229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17230 echo $ac_n "(cached) $ac_c" 1>&6
17231 else
17232 cat > conftest.$ac_ext <<EOF
17233 #line 17234 "configure"
17234 #include "confdefs.h"
17235 /* System header to define __stub macros and hopefully few prototypes,
17236 which can conflict with char $ac_func(); below. */
17237 #include <assert.h>
17238 /* Override any gcc2 internal prototype to avoid an error. */
17239 /* We use char because int might match the return type of a gcc2
17240 builtin and then its argument prototype would still apply. */
17241 char $ac_func();
17242
17243 int main() {
17244
17245 /* The GNU C library defines this for functions which it implements
17246 to always fail with ENOSYS. Some functions are actually named
17247 something starting with __ and the normal name is an alias. */
17248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17249 choke me
17250 #else
17251 $ac_func();
17252 #endif
17253
17254 ; return 0; }
17255 EOF
17256 if { (eval echo configure:17257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17257 rm -rf conftest*
17258 eval "ac_cv_func_$ac_func=yes"
17259 else
17260 echo "configure: failed program was:" >&5
17261 cat conftest.$ac_ext >&5
17262 rm -rf conftest*
17263 eval "ac_cv_func_$ac_func=no"
17264 fi
17265 rm -f conftest*
17266 fi
17267
17268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17269 echo "$ac_t""yes" 1>&6
17270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17271 cat >> confdefs.h <<EOF
17272 #define $ac_tr_func 1
17273 EOF
17274 cat >> confdefs.h <<\EOF
17275 #define HAVE_DLERROR 1
17276 EOF
17277
17278 else
17279 echo "$ac_t""no" 1>&6
17280 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17281 echo "configure:17282: checking for dlerror in -ldl" >&5
17282 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17284 echo $ac_n "(cached) $ac_c" 1>&6
17285 else
17286 ac_save_LIBS="$LIBS"
17287 LIBS="-ldl $LIBS"
17288 cat > conftest.$ac_ext <<EOF
17289 #line 17290 "configure"
17290 #include "confdefs.h"
17291 /* Override any gcc2 internal prototype to avoid an error. */
17292 /* We use char because int might match the return type of a gcc2
17293 builtin and then its argument prototype would still apply. */
17294 char dlerror();
17295
17296 int main() {
17297 dlerror()
17298 ; return 0; }
17299 EOF
17300 if { (eval echo configure:17301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17301 rm -rf conftest*
17302 eval "ac_cv_lib_$ac_lib_var=yes"
17303 else
17304 echo "configure: failed program was:" >&5
17305 cat conftest.$ac_ext >&5
17306 rm -rf conftest*
17307 eval "ac_cv_lib_$ac_lib_var=no"
17308 fi
17309 rm -f conftest*
17310 LIBS="$ac_save_LIBS"
17311
17312 fi
17313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17314 echo "$ac_t""yes" 1>&6
17315 cat >> confdefs.h <<\EOF
17316 #define HAVE_DLERROR 1
17317 EOF
17318
17319 else
17320 echo "$ac_t""no" 1>&6
17321 fi
17322
17323 fi
17324 done
17325
17326 fi
17327 fi
17328
17329 if test "$HAVE_DL_FUNCS" = 0; then
17330 if test "$HAVE_SHL_FUNCS" = 0; then
17331 if test "$USE_UNIX" = 1; then
17332 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17333 wxUSE_DYNLIB_CLASS=no
17334 else
17335 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17336 fi
17337 fi
17338 fi
17339 fi
17340 fi
17341
17342 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17343 cat >> confdefs.h <<\EOF
17344 #define wxUSE_DYNLIB_CLASS 1
17345 EOF
17346
17347 else
17348 wxUSE_ODBC=no
17349 wxUSE_SERIAL=no
17350 fi
17351
17352
17353 if test "$wxUSE_FONTMAP" = "yes" ; then
17354 cat >> confdefs.h <<\EOF
17355 #define wxUSE_FONTMAP 1
17356 EOF
17357
17358 fi
17359
17360 if test "$wxUSE_UNICODE" = "yes" ; then
17361 cat >> confdefs.h <<\EOF
17362 #define wxUSE_UNICODE 1
17363 EOF
17364
17365 fi
17366
17367 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17368 cat >> confdefs.h <<\EOF
17369 #define wxUSE_EXPERIMENTAL_PRINTF 1
17370 EOF
17371
17372 fi
17373
17374
17375 if test "$wxUSE_SERIAL" = "yes" ; then
17376 cat >> confdefs.h <<\EOF
17377 #define wxUSE_SERIAL 1
17378 EOF
17379
17380 fi
17381
17382
17383 IODBC_C_SRC=""
17384 if test "$wxUSE_ODBC" = "yes" ; then
17385 cat >> confdefs.h <<\EOF
17386 #define wxUSE_ODBC 1
17387 EOF
17388
17389 WXODBCFLAG="-D_IODBC_"
17390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17391 fi
17392
17393
17394 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17395 cat >> confdefs.h <<\EOF
17396 #define wxUSE_POSTSCRIPT 1
17397 EOF
17398
17399 fi
17400
17401 cat >> confdefs.h <<\EOF
17402 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17403 EOF
17404
17405
17406 cat >> confdefs.h <<\EOF
17407 #define wxUSE_NORMALIZED_PS_FONTS 1
17408 EOF
17409
17410
17411
17412 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17413 cat >> confdefs.h <<\EOF
17414 #define wxUSE_CONSTRAINTS 1
17415 EOF
17416
17417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17418 fi
17419
17420 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17421 if test "$wxUSE_UNIVERSAL" = "yes"; then
17422 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17423 wxUSE_MDI_ARCHITECTURE=no
17424 fi
17425
17426 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17427 cat >> confdefs.h <<\EOF
17428 #define wxUSE_MDI_ARCHITECTURE 1
17429 EOF
17430
17431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17432 fi
17433 fi
17434
17435 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17436 cat >> confdefs.h <<\EOF
17437 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17438 EOF
17439
17440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17441 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17443 fi
17444 fi
17445
17446 if test "$wxUSE_HELP" = "yes"; then
17447 cat >> confdefs.h <<\EOF
17448 #define wxUSE_HELP 1
17449 EOF
17450
17451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17452
17453 if test "$wxUSE_MSW" = 1; then
17454 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17455 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17456 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17457 echo "configure:17458: checking for htmlhelp.h" >&5
17458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17459 echo $ac_n "(cached) $ac_c" 1>&6
17460 else
17461 cat > conftest.$ac_ext <<EOF
17462 #line 17463 "configure"
17463 #include "confdefs.h"
17464 #include <htmlhelp.h>
17465 EOF
17466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17467 { (eval echo configure:17468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17469 if test -z "$ac_err"; then
17470 rm -rf conftest*
17471 eval "ac_cv_header_$ac_safe=yes"
17472 else
17473 echo "$ac_err" >&5
17474 echo "configure: failed program was:" >&5
17475 cat conftest.$ac_ext >&5
17476 rm -rf conftest*
17477 eval "ac_cv_header_$ac_safe=no"
17478 fi
17479 rm -f conftest*
17480 fi
17481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17482 echo "$ac_t""yes" 1>&6
17483
17484 cat >> confdefs.h <<\EOF
17485 #define wxUSE_MS_HTML_HELP 1
17486 EOF
17487
17488
17489 else
17490 echo "$ac_t""no" 1>&6
17491
17492 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
17493 wxUSE_MS_HTML_HELP=no
17494
17495 fi
17496
17497 fi
17498 fi
17499
17500 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17501 if test "$wxUSE_HTML" = "yes"; then
17502 cat >> confdefs.h <<\EOF
17503 #define wxUSE_WXHTML_HELP 1
17504 EOF
17505
17506 else
17507 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17508 wxUSE_WXHTML_HELP=no
17509 fi
17510 fi
17511 fi
17512
17513 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17514 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17515 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17516 else
17517 cat >> confdefs.h <<\EOF
17518 #define wxUSE_PRINTING_ARCHITECTURE 1
17519 EOF
17520
17521 fi
17522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17523 fi
17524
17525 if test "$wxUSE_PROLOGIO" = "yes" ; then
17526 cat >> confdefs.h <<\EOF
17527 #define wxUSE_PROLOGIO 1
17528 EOF
17529
17530 fi
17531
17532 if test "$wxUSE_RESOURCES" = "yes" ; then
17533 cat >> confdefs.h <<\EOF
17534 #define wxUSE_RESOURCES 1
17535 EOF
17536
17537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17538 fi
17539
17540 if test "$wxUSE_X_RESOURCES" = "yes"; then
17541 cat >> confdefs.h <<\EOF
17542 #define wxUSE_X_RESOURCES 1
17543 EOF
17544
17545 fi
17546
17547
17548 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17549 -o "$wxUSE_CLIPBOARD" = "yes" \
17550 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17551 for ac_hdr in ole2.h
17552 do
17553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17555 echo "configure:17556: checking for $ac_hdr" >&5
17556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17557 echo $ac_n "(cached) $ac_c" 1>&6
17558 else
17559 cat > conftest.$ac_ext <<EOF
17560 #line 17561 "configure"
17561 #include "confdefs.h"
17562 #include <$ac_hdr>
17563 EOF
17564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17565 { (eval echo configure:17566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17567 if test -z "$ac_err"; then
17568 rm -rf conftest*
17569 eval "ac_cv_header_$ac_safe=yes"
17570 else
17571 echo "$ac_err" >&5
17572 echo "configure: failed program was:" >&5
17573 cat conftest.$ac_ext >&5
17574 rm -rf conftest*
17575 eval "ac_cv_header_$ac_safe=no"
17576 fi
17577 rm -f conftest*
17578 fi
17579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17580 echo "$ac_t""yes" 1>&6
17581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17582 cat >> confdefs.h <<EOF
17583 #define $ac_tr_hdr 1
17584 EOF
17585
17586 else
17587 echo "$ac_t""no" 1>&6
17588 fi
17589 done
17590
17591
17592 if test "$ac_cv_header_ole2_h" = "yes" ; then
17593 if test "$GCC" = yes ; then
17594 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17595 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17596 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
17597 cat >> confdefs.h <<\EOF
17598 #define wxUSE_OLE 1
17599 EOF
17600
17601
17602 fi
17603
17604 cat >> confdefs.h <<\EOF
17605 #define wxUSE_DATAOBJ 1
17606 EOF
17607
17608 else
17609 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17610
17611 wxUSE_CLIPBOARD=no
17612 wxUSE_DRAG_AND_DROP=no
17613 wxUSE_DATAOBJ=no
17614 fi
17615
17616 if test "$wxUSE_METAFILE" = "yes"; then
17617 cat >> confdefs.h <<\EOF
17618 #define wxUSE_METAFILE 1
17619 EOF
17620
17621
17622 cat >> confdefs.h <<\EOF
17623 #define wxUSE_ENH_METAFILE 1
17624 EOF
17625
17626 fi
17627 fi
17628
17629 if test "$wxUSE_IPC" = "yes"; then
17630 if test "$wxUSE_SOCKETS" != "yes"; then
17631 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17632 fi
17633
17634 cat >> confdefs.h <<\EOF
17635 #define wxUSE_IPC 1
17636 EOF
17637
17638 fi
17639
17640 if test "$wxUSE_CLIPBOARD" = "yes"; then
17641 cat >> confdefs.h <<\EOF
17642 #define wxUSE_CLIPBOARD 1
17643 EOF
17644
17645
17646 cat >> confdefs.h <<\EOF
17647 #define wxUSE_DATAOBJ 1
17648 EOF
17649
17650 fi
17651
17652 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17653 if test "$wxUSE_GTK" = 1; then
17654 if test "$WXGTK12" != 1; then
17655 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17656 wxUSE_DRAG_AND_DROP=no
17657 fi
17658 fi
17659
17660 if test "$wxUSE_MOTIF" = 1; then
17661 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17662 wxUSE_DRAG_AND_DROP=no
17663 fi
17664
17665 if test "$wxUSE_MAC" = 1; then
17666 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17667 wxUSE_DRAG_AND_DROP=no
17668 fi
17669
17670 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17671 cat >> confdefs.h <<\EOF
17672 #define wxUSE_DRAG_AND_DROP 1
17673 EOF
17674
17675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17676 fi
17677
17678 fi
17679
17680 if test "$wxUSE_SPLINES" = "yes" ; then
17681 cat >> confdefs.h <<\EOF
17682 #define wxUSE_SPLINES 1
17683 EOF
17684
17685 fi
17686
17687
17688 USES_CONTROLS=0
17689 if test "$wxUSE_CONTROLS" = "yes"; then
17690 USES_CONTROLS=1
17691 fi
17692
17693 if test "$wxUSE_ACCEL" = "yes"; then
17694 cat >> confdefs.h <<\EOF
17695 #define wxUSE_ACCEL 1
17696 EOF
17697
17698 USES_CONTROLS=1
17699 fi
17700
17701 if test "$wxUSE_BUTTON" = "yes"; then
17702 cat >> confdefs.h <<\EOF
17703 #define wxUSE_BUTTON 1
17704 EOF
17705
17706 USES_CONTROLS=1
17707 fi
17708
17709 if test "$wxUSE_BMPBUTTON" = "yes"; then
17710 cat >> confdefs.h <<\EOF
17711 #define wxUSE_BMPBUTTON 1
17712 EOF
17713
17714 USES_CONTROLS=1
17715 fi
17716
17717 if test "$wxUSE_CALCTRL" = "yes"; then
17718 cat >> confdefs.h <<\EOF
17719 #define wxUSE_CALENDARCTRL 1
17720 EOF
17721
17722 USES_CONTROLS=1
17723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17724 fi
17725
17726 if test "$wxUSE_CARET" = "yes"; then
17727 cat >> confdefs.h <<\EOF
17728 #define wxUSE_CARET 1
17729 EOF
17730
17731 USES_CONTROLS=1
17732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17733 fi
17734
17735 if test "$wxUSE_COMBOBOX" = "yes"; then
17736 cat >> confdefs.h <<\EOF
17737 #define wxUSE_COMBOBOX 1
17738 EOF
17739
17740 USES_CONTROLS=1
17741 fi
17742
17743 if test "$wxUSE_CHOICE" = "yes"; then
17744 cat >> confdefs.h <<\EOF
17745 #define wxUSE_CHOICE 1
17746 EOF
17747
17748 USES_CONTROLS=1
17749 fi
17750
17751 if test "$wxUSE_CHECKBOX" = "yes"; then
17752 cat >> confdefs.h <<\EOF
17753 #define wxUSE_CHECKBOX 1
17754 EOF
17755
17756 USES_CONTROLS=1
17757 fi
17758
17759 if test "$wxUSE_CHECKLST" = "yes"; then
17760 cat >> confdefs.h <<\EOF
17761 #define wxUSE_CHECKLISTBOX 1
17762 EOF
17763
17764 USES_CONTROLS=1
17765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17766 fi
17767
17768 if test "$wxUSE_GAUGE" = "yes"; then
17769 cat >> confdefs.h <<\EOF
17770 #define wxUSE_GAUGE 1
17771 EOF
17772
17773 USES_CONTROLS=1
17774 fi
17775
17776 if test "$wxUSE_NEW_GRID" = "yes"; then
17777 wxUSE_GRID="yes"
17778 cat >> confdefs.h <<\EOF
17779 #define wxUSE_NEW_GRID 1
17780 EOF
17781
17782 USES_CONTROLS=1
17783 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17784 fi
17785
17786 if test "$wxUSE_GRID" = "yes"; then
17787 cat >> confdefs.h <<\EOF
17788 #define wxUSE_GRID 1
17789 EOF
17790
17791 USES_CONTROLS=1
17792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17793 fi
17794
17795 if test "$wxUSE_IMAGLIST" = "yes"; then
17796 cat >> confdefs.h <<\EOF
17797 #define wxUSE_IMAGLIST 1
17798 EOF
17799
17800 fi
17801
17802 if test "$wxUSE_LISTBOX" = "yes"; then
17803 cat >> confdefs.h <<\EOF
17804 #define wxUSE_LISTBOX 1
17805 EOF
17806
17807 USES_CONTROLS=1
17808 fi
17809
17810 if test "$wxUSE_LISTCTRL" = "yes"; then
17811 if test "$wxUSE_IMAGLIST" = "yes"; then
17812 cat >> confdefs.h <<\EOF
17813 #define wxUSE_LISTCTRL 1
17814 EOF
17815
17816 USES_CONTROLS=1
17817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17818 else
17819 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17820 fi
17821 fi
17822
17823 if test "$wxUSE_NOTEBOOK" = "yes"; then
17824 cat >> confdefs.h <<\EOF
17825 #define wxUSE_NOTEBOOK 1
17826 EOF
17827
17828 USES_CONTROLS=1
17829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17830 fi
17831
17832 if test "$wxUSE_PROPSHEET" = "yes"; then
17833 cat >> confdefs.h <<\EOF
17834 #define wxUSE_PROPSHEET 1
17835 EOF
17836
17837 USES_CONTROLS=1
17838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17839 fi
17840
17841 if test "$wxUSE_RADIOBOX" = "yes"; then
17842 cat >> confdefs.h <<\EOF
17843 #define wxUSE_RADIOBOX 1
17844 EOF
17845
17846 USES_CONTROLS=1
17847 fi
17848
17849 if test "$wxUSE_RADIOBTN" = "yes"; then
17850 cat >> confdefs.h <<\EOF
17851 #define wxUSE_RADIOBTN 1
17852 EOF
17853
17854 USES_CONTROLS=1
17855 fi
17856
17857 if test "$wxUSE_SASH" = "yes"; then
17858 cat >> confdefs.h <<\EOF
17859 #define wxUSE_SASH 1
17860 EOF
17861
17862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17863 fi
17864
17865 if test "$wxUSE_SCROLLBAR" = "yes"; then
17866 cat >> confdefs.h <<\EOF
17867 #define wxUSE_SCROLLBAR 1
17868 EOF
17869
17870 USES_CONTROLS=1
17871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17872 fi
17873
17874 if test "$wxUSE_SLIDER" = "yes"; then
17875 cat >> confdefs.h <<\EOF
17876 #define wxUSE_SLIDER 1
17877 EOF
17878
17879 USES_CONTROLS=1
17880 fi
17881
17882 if test "$wxUSE_SPINBTN" = "yes"; then
17883 cat >> confdefs.h <<\EOF
17884 #define wxUSE_SPINBTN 1
17885 EOF
17886
17887 USES_CONTROLS=1
17888 fi
17889
17890 if test "$wxUSE_SPINCTRL" = "yes"; then
17891 cat >> confdefs.h <<\EOF
17892 #define wxUSE_SPINCTRL 1
17893 EOF
17894
17895 USES_CONTROLS=1
17896 fi
17897
17898 if test "$wxUSE_SPLITTER" = "yes"; then
17899 cat >> confdefs.h <<\EOF
17900 #define wxUSE_SPLITTER 1
17901 EOF
17902
17903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17904 fi
17905
17906 if test "$wxUSE_STATBMP" = "yes"; then
17907 cat >> confdefs.h <<\EOF
17908 #define wxUSE_STATBMP 1
17909 EOF
17910
17911 USES_CONTROLS=1
17912 fi
17913
17914 if test "$wxUSE_STATBOX" = "yes"; then
17915 cat >> confdefs.h <<\EOF
17916 #define wxUSE_STATBOX 1
17917 EOF
17918
17919 USES_CONTROLS=1
17920 fi
17921
17922 if test "$wxUSE_STATTEXT" = "yes"; then
17923 cat >> confdefs.h <<\EOF
17924 #define wxUSE_STATTEXT 1
17925 EOF
17926
17927 USES_CONTROLS=1
17928 fi
17929
17930 if test "$wxUSE_STATLINE" = "yes"; then
17931 if test "$wxUSE_WINE" = 1 ; then
17932 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17933 else
17934 cat >> confdefs.h <<\EOF
17935 #define wxUSE_STATLINE 1
17936 EOF
17937
17938 USES_CONTROLS=1
17939 fi
17940 fi
17941
17942 if test "$wxUSE_STATUSBAR" = "yes"; then
17943 cat >> confdefs.h <<\EOF
17944 #define wxUSE_STATUSBAR 1
17945 EOF
17946
17947 USES_CONTROLS=1
17948
17949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17950 fi
17951
17952 if test "$wxUSE_TABDIALOG" = "yes"; then
17953 cat >> confdefs.h <<\EOF
17954 #define wxUSE_TAB_DIALOG 1
17955 EOF
17956
17957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17958 fi
17959
17960 if test "$wxUSE_TEXTCTRL" = "yes"; then
17961 cat >> confdefs.h <<\EOF
17962 #define wxUSE_TEXTCTRL 1
17963 EOF
17964
17965 USES_CONTROLS=1
17966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17967 fi
17968
17969 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17970 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
17971 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
17972 wxUSE_TOGGLEBTN=no
17973 fi
17974
17975 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17976 cat >> confdefs.h <<\EOF
17977 #define wxUSE_TOGGLEBTN 1
17978 EOF
17979
17980 USES_CONTROLS=1
17981 fi
17982 fi
17983
17984 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17985 cat >> confdefs.h <<\EOF
17986 #define wxUSE_TOOLBAR_SIMPLE 1
17987 EOF
17988
17989 wxUSE_TOOLBAR="yes"
17990 USES_CONTROLS=1
17991 fi
17992
17993 if test "$wxUSE_TOOLBAR" = "yes"; then
17994 cat >> confdefs.h <<\EOF
17995 #define wxUSE_TOOLBAR 1
17996 EOF
17997
17998 USES_CONTROLS=1
17999
18000 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18001 wxUSE_TOOLBAR_NATIVE="yes"
18002 fi
18003
18004 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18005 cat >> confdefs.h <<\EOF
18006 #define wxUSE_TOOLBAR_NATIVE 1
18007 EOF
18008
18009 USES_CONTROLS=1
18010 fi
18011
18012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
18013 fi
18014
18015 if test "$wxUSE_TOOLTIPS" = "yes"; then
18016 if test "$wxUSE_MOTIF" = 1; then
18017 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
18018 else
18019 if test "$wxUSE_WINE" = 1; then
18020 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
18021 else
18022 cat >> confdefs.h <<\EOF
18023 #define wxUSE_TOOLTIPS 1
18024 EOF
18025
18026 fi
18027 fi
18028 fi
18029
18030 if test "$wxUSE_TREECTRL" = "yes"; then
18031 if test "$wxUSE_IMAGLIST" = "yes"; then
18032 cat >> confdefs.h <<\EOF
18033 #define wxUSE_TREECTRL 1
18034 EOF
18035
18036 USES_CONTROLS=1
18037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18038 else
18039 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
18040 fi
18041 fi
18042
18043 if test "$wxUSE_POPUPWIN" = "yes"; then
18044 if test "$wxUSE_MAC" = 1; then
18045 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
18046 else
18047 cat >> confdefs.h <<\EOF
18048 #define wxUSE_POPUPWIN 1
18049 EOF
18050
18051 USES_CONTROLS=1
18052 fi
18053 fi
18054
18055 if test "$USES_CONTROLS" = 1; then
18056 cat >> confdefs.h <<\EOF
18057 #define wxUSE_CONTROLS 1
18058 EOF
18059
18060 fi
18061
18062
18063 if test "$wxUSE_TREELAYOUT" = "yes"; then
18064 cat >> confdefs.h <<\EOF
18065 #define wxUSE_TREELAYOUT 1
18066 EOF
18067
18068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18069 fi
18070
18071 if test "$wxUSE_DRAGIMAGE" = "yes"; then
18072 cat >> confdefs.h <<\EOF
18073 #define wxUSE_DRAGIMAGE 1
18074 EOF
18075
18076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18077 fi
18078
18079 if test "$wxUSE_MENUS" = "yes"; then
18080 cat >> confdefs.h <<\EOF
18081 #define wxUSE_MENUS 1
18082 EOF
18083
18084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
18085 fi
18086
18087 if test "$wxUSE_METAFILE" = "yes"; then
18088 cat >> confdefs.h <<\EOF
18089 #define wxUSE_METAFILE 1
18090 EOF
18091
18092 fi
18093
18094 if test "$wxUSE_MIMETYPE" = "yes"; then
18095 cat >> confdefs.h <<\EOF
18096 #define wxUSE_MIMETYPE 1
18097 EOF
18098
18099 fi
18100
18101 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18102 cat >> confdefs.h <<\EOF
18103 #define wxUSE_SYSTEM_OPTIONS 1
18104 EOF
18105
18106 fi
18107
18108 if test "$wxUSE_MINIFRAME" = "yes"; then
18109 cat >> confdefs.h <<\EOF
18110 #define wxUSE_MINIFRAME 1
18111 EOF
18112
18113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18114 fi
18115
18116 if test "$wxUSE_HTML" = "yes"; then
18117 cat >> confdefs.h <<\EOF
18118 #define wxUSE_HTML 1
18119 EOF
18120
18121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
18122 fi
18123
18124 if test "$wxUSE_VALIDATORS" = "yes"; then
18125 cat >> confdefs.h <<\EOF
18126 #define wxUSE_VALIDATORS 1
18127 EOF
18128
18129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18130 fi
18131
18132 if test "$wxUSE_PALETTE" = "yes" ; then
18133 cat >> confdefs.h <<\EOF
18134 #define wxUSE_PALETTE 1
18135 EOF
18136
18137 fi
18138
18139 if test "$wxUSE_IMAGE" = "yes" ; then
18140 cat >> confdefs.h <<\EOF
18141 #define wxUSE_IMAGE 1
18142 EOF
18143
18144 fi
18145
18146 if test "$wxUSE_GIF" = "yes" ; then
18147 cat >> confdefs.h <<\EOF
18148 #define wxUSE_GIF 1
18149 EOF
18150
18151 fi
18152
18153 if test "$wxUSE_PCX" = "yes" ; then
18154 cat >> confdefs.h <<\EOF
18155 #define wxUSE_PCX 1
18156 EOF
18157
18158 fi
18159
18160 if test "$wxUSE_PNM" = "yes" ; then
18161 cat >> confdefs.h <<\EOF
18162 #define wxUSE_PNM 1
18163 EOF
18164
18165 fi
18166
18167 if test "$wxUSE_XPM" = "yes" ; then
18168 cat >> confdefs.h <<\EOF
18169 #define wxUSE_XPM 1
18170 EOF
18171
18172 fi
18173
18174
18175 if test "$wxUSE_CHOICEDLG" = "yes"; then
18176 cat >> confdefs.h <<\EOF
18177 #define wxUSE_CHOICEDLG 1
18178 EOF
18179
18180 fi
18181
18182 if test "$wxUSE_COLOURDLG" = "yes"; then
18183 cat >> confdefs.h <<\EOF
18184 #define wxUSE_COLOURDLG 1
18185 EOF
18186
18187 fi
18188
18189 if test "$wxUSE_FILEDLG" = "yes"; then
18190 cat >> confdefs.h <<\EOF
18191 #define wxUSE_FILEDLG 1
18192 EOF
18193
18194 fi
18195
18196 if test "$wxUSE_FINDREPLDLG" = "yes"; then
18197 cat >> confdefs.h <<\EOF
18198 #define wxUSE_FINDREPLDLG 1
18199 EOF
18200
18201 fi
18202
18203 if test "$wxUSE_FONTDLG" = "yes"; then
18204 cat >> confdefs.h <<\EOF
18205 #define wxUSE_FONTDLG 1
18206 EOF
18207
18208 fi
18209
18210 if test "$wxUSE_DIRDLG" = "yes"; then
18211 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18212 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18213 else
18214 if test "$wxUSE_TREECTRL" != "yes"; then
18215 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18216 else
18217 cat >> confdefs.h <<\EOF
18218 #define wxUSE_DIRDLG 1
18219 EOF
18220
18221 fi
18222 fi
18223 fi
18224
18225 if test "$wxUSE_MSGDLG" = "yes"; then
18226 cat >> confdefs.h <<\EOF
18227 #define wxUSE_MSGDLG 1
18228 EOF
18229
18230 fi
18231
18232 if test "$wxUSE_NUMBERDLG" = "yes"; then
18233 cat >> confdefs.h <<\EOF
18234 #define wxUSE_NUMBERDLG 1
18235 EOF
18236
18237 fi
18238
18239 if test "$wxUSE_PROGRESSDLG" = "yes"; then
18240 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18241 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18242 else
18243 cat >> confdefs.h <<\EOF
18244 #define wxUSE_PROGRESSDLG 1
18245 EOF
18246
18247 fi
18248 fi
18249
18250 if test "$wxUSE_SPLASH" = "yes"; then
18251 cat >> confdefs.h <<\EOF
18252 #define wxUSE_SPLASH 1
18253 EOF
18254
18255 fi
18256
18257 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18258 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18259 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18260 else
18261 cat >> confdefs.h <<\EOF
18262 #define wxUSE_STARTUP_TIPS 1
18263 EOF
18264
18265 fi
18266 fi
18267
18268 if test "$wxUSE_TEXTDLG" = "yes"; then
18269 cat >> confdefs.h <<\EOF
18270 #define wxUSE_TEXTDLG 1
18271 EOF
18272
18273 fi
18274
18275 if test "$wxUSE_WIZARDDLG" = "yes"; then
18276 cat >> confdefs.h <<\EOF
18277 #define wxUSE_WIZARDDLG 1
18278 EOF
18279
18280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18281 fi
18282
18283
18284 if test "$cross_compiling" = "yes"; then
18285 OSINFO="\"$host\""
18286 else
18287 OSINFO=`uname -s -r -m`
18288 OSINFO="\"$OSINFO\""
18289 fi
18290
18291 cat >> confdefs.h <<EOF
18292 #define WXWIN_OS_DESCRIPTION $OSINFO
18293 EOF
18294
18295
18296
18297 if test "x$prefix" != "xNONE"; then
18298 wxPREFIX=$prefix
18299 else
18300 wxPREFIX=$ac_default_prefix
18301 fi
18302
18303 cat >> confdefs.h <<EOF
18304 #define wxINSTALL_PREFIX "$wxPREFIX"
18305 EOF
18306
18307
18308
18309
18310
18311 if test "$wxUSE_MAC" = 1 ; then
18312 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
18313 fi
18314
18315
18316 LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18317
18318 if test "$wxUSE_GUI" = "yes"; then
18319
18320 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
18321
18322
18323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18324 drawing dynamic erase event exec font image \
18325 minimal richedit rotate widgets"
18326
18327 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18328 else
18329 SAMPLES_SUBDIRS="console"
18330 fi
18331
18332
18333 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18334 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18335 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18336
18337 if test "$wxUSE_GTK" = 1; then
18338 WXCONFIG_INCLUDE=
18339 else
18340 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18341 fi
18342
18343 if test "$GXX" = yes ; then
18344 CXXWARNINGS="-Wall"
18345
18346 if test "$wxUSE_NO_DEPS" = "no" ; then
18347 CFLAGS="-MMD $CFLAGS"
18348 CXXFLAGS="-MMD $CXXFLAGS"
18349 fi
18350 fi
18351
18352 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES"
18353
18354 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18355 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18356
18357 LDFLAGS="$LDFLAGS$PROFILE"
18358
18359 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18448 echo "configure:18449: checking whether ${MAKE-make} sets \${MAKE}" >&5
18449 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18450 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18451 echo $ac_n "(cached) $ac_c" 1>&6
18452 else
18453 cat > conftestmake <<\EOF
18454 all:
18455 @echo 'ac_maketemp="${MAKE}"'
18456 EOF
18457 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18458 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18459 if test -n "$ac_maketemp"; then
18460 eval ac_cv_prog_make_${ac_make}_set=yes
18461 else
18462 eval ac_cv_prog_make_${ac_make}_set=no
18463 fi
18464 rm -f conftestmake
18465 fi
18466 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18467 echo "$ac_t""yes" 1>&6
18468 SET_MAKE=
18469 else
18470 echo "$ac_t""no" 1>&6
18471 SET_MAKE="MAKE=${MAKE-make}"
18472 fi
18473
18474
18475 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18476 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18477 fi
18478
18479
18480
18481 if test "$wxUSE_GUI" = "yes"; then
18482 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18483 wx_cv_path_ifs=$PATH_IFS
18484 wx_cv_program_ext=$PROGRAM_EXT
18485 wx_cv_target_library=$WX_TARGET_LIBRARY
18486 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18487 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18488 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18489 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18490 subdirs="demos samples utils contrib"
18491
18492 fi
18493
18494 trap '' 1 2 15
18495 cat > confcache <<\EOF
18496 # This file is a shell script that caches the results of configure
18497 # tests run on this system so they can be shared between configure
18498 # scripts and configure runs. It is not useful on other systems.
18499 # If it contains results you don't want to keep, you may remove or edit it.
18500 #
18501 # By default, configure uses ./config.cache as the cache file,
18502 # creating it if it does not exist already. You can give configure
18503 # the --cache-file=FILE option to use a different cache file; that is
18504 # what configure does when it calls configure scripts in
18505 # subdirectories, so they share the cache.
18506 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18507 # config.status only pays attention to the cache file if you give it the
18508 # --recheck option to rerun configure.
18509 #
18510 EOF
18511 # The following way of writing the cache mishandles newlines in values,
18512 # but we know of no workaround that is simple, portable, and efficient.
18513 # So, don't put newlines in cache variables' values.
18514 # Ultrix sh set writes to stderr and can't be redirected directly,
18515 # and sets the high bit in the cache file unless we assign to the vars.
18516 (set) 2>&1 |
18517 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18518 *ac_space=\ *)
18519 # `set' does not quote correctly, so add quotes (double-quote substitution
18520 # turns \\\\ into \\, and sed turns \\ into \).
18521 sed -n \
18522 -e "s/'/'\\\\''/g" \
18523 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18524 ;;
18525 *)
18526 # `set' quotes correctly as required by POSIX, so do not add quotes.
18527 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18528 ;;
18529 esac >> confcache
18530 if cmp -s $cache_file confcache; then
18531 :
18532 else
18533 if test -w $cache_file; then
18534 echo "updating cache $cache_file"
18535 cat confcache > $cache_file
18536 else
18537 echo "not updating unwritable cache $cache_file"
18538 fi
18539 fi
18540 rm -f confcache
18541
18542 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18543
18544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18545 # Let make expand exec_prefix.
18546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18547
18548 # Any assignment to VPATH causes Sun make to only execute
18549 # the first set of double-colon rules, so remove it if not needed.
18550 # If there is a colon in the path, we need to keep it.
18551 if test "x$srcdir" = x.; then
18552 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18553 fi
18554
18555 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18556
18557 DEFS=-DHAVE_CONFIG_H
18558
18559 # Without the "./", some shells look in PATH for config.status.
18560 : ${CONFIG_STATUS=./config.status}
18561
18562 echo creating $CONFIG_STATUS
18563 rm -f $CONFIG_STATUS
18564 cat > $CONFIG_STATUS <<EOF
18565 #! /bin/sh
18566 # Generated automatically by configure.
18567 # Run this file to recreate the current configuration.
18568 # This directory was configured as follows,
18569 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18570 #
18571 # $0 $ac_configure_args
18572 #
18573 # Compiler output produced by configure, useful for debugging
18574 # configure, is in ./config.log if it exists.
18575
18576 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18577 for ac_option
18578 do
18579 case "\$ac_option" in
18580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18581 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18582 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18583 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18584 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18585 exit 0 ;;
18586 -help | --help | --hel | --he | --h)
18587 echo "\$ac_cs_usage"; exit 0 ;;
18588 *) echo "\$ac_cs_usage"; exit 1 ;;
18589 esac
18590 done
18591
18592 ac_given_srcdir=$srcdir
18593 ac_given_INSTALL="$INSTALL"
18594
18595 trap 'rm -fr `echo "
18596 wx-config
18597 src/make.env
18598 src/makeprog.env
18599 src/makelib.env
18600 Makefile
18601 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18602 EOF
18603 cat >> $CONFIG_STATUS <<EOF
18604
18605 # Protect against being on the right side of a sed subst in config.status.
18606 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18607 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18608 $ac_vpsub
18609 $extrasub
18610 s%@SHELL@%$SHELL%g
18611 s%@CFLAGS@%$CFLAGS%g
18612 s%@CPPFLAGS@%$CPPFLAGS%g
18613 s%@CXXFLAGS@%$CXXFLAGS%g
18614 s%@FFLAGS@%$FFLAGS%g
18615 s%@DEFS@%$DEFS%g
18616 s%@LDFLAGS@%$LDFLAGS%g
18617 s%@LIBS@%$LIBS%g
18618 s%@exec_prefix@%$exec_prefix%g
18619 s%@prefix@%$prefix%g
18620 s%@program_transform_name@%$program_transform_name%g
18621 s%@bindir@%$bindir%g
18622 s%@sbindir@%$sbindir%g
18623 s%@libexecdir@%$libexecdir%g
18624 s%@datadir@%$datadir%g
18625 s%@sysconfdir@%$sysconfdir%g
18626 s%@sharedstatedir@%$sharedstatedir%g
18627 s%@localstatedir@%$localstatedir%g
18628 s%@libdir@%$libdir%g
18629 s%@includedir@%$includedir%g
18630 s%@oldincludedir@%$oldincludedir%g
18631 s%@infodir@%$infodir%g
18632 s%@mandir@%$mandir%g
18633 s%@host@%$host%g
18634 s%@host_alias@%$host_alias%g
18635 s%@host_cpu@%$host_cpu%g
18636 s%@host_vendor@%$host_vendor%g
18637 s%@host_os@%$host_os%g
18638 s%@target@%$target%g
18639 s%@target_alias@%$target_alias%g
18640 s%@target_cpu@%$target_cpu%g
18641 s%@target_vendor@%$target_vendor%g
18642 s%@target_os@%$target_os%g
18643 s%@build@%$build%g
18644 s%@build_alias@%$build_alias%g
18645 s%@build_cpu@%$build_cpu%g
18646 s%@build_vendor@%$build_vendor%g
18647 s%@build_os@%$build_os%g
18648 s%@CC@%$CC%g
18649 s%@CPP@%$CPP%g
18650 s%@CXX@%$CXX%g
18651 s%@RANLIB@%$RANLIB%g
18652 s%@AR@%$AR%g
18653 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18654 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18655 s%@INSTALL_DATA@%$INSTALL_DATA%g
18656 s%@STRIP@%$STRIP%g
18657 s%@YACC@%$YACC%g
18658 s%@LEX@%$LEX%g
18659 s%@LEXLIB@%$LEXLIB%g
18660 s%@LN_S@%$LN_S%g
18661 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18662 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18663 s%@GTK_LIBS@%$GTK_LIBS%g
18664 s%@GTK_CONFIG@%$GTK_CONFIG%g
18665 s%@X_CFLAGS@%$X_CFLAGS%g
18666 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18667 s%@X_LIBS@%$X_LIBS%g
18668 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18669 s%@RESCOMP@%$RESCOMP%g
18670 s%@DEREZ@%$DEREZ%g
18671 s%@CXXCPP@%$CXXCPP%g
18672 s%@LEX_STEM@%$LEX_STEM%g
18673 s%@PATH_IFS@%$PATH_IFS%g
18674 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18675 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18676 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18677 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18678 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18679 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
18680 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18681 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18682 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18683 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18684 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18685 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18686 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18687 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18688 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18689 s%@WX_ALL@%$WX_ALL%g
18690 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18691 s%@SHARED_LD@%$SHARED_LD%g
18692 s%@PIC_FLAG@%$PIC_FLAG%g
18693 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18694 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18695 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18696 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18697 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18698 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18699 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18700 s%@USE_GUI@%$USE_GUI%g
18701 s%@AFMINSTALL@%$AFMINSTALL%g
18702 s%@TOOLKIT@%$TOOLKIT%g
18703 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18704 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18705 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18706 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18707 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
18708 s%@cross_compiling@%$cross_compiling%g
18709 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18710 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18711 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
18712 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
18713 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18714 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18715 s%@GUIDIST@%$GUIDIST%g
18716 s%@PORT_FILES@%$PORT_FILES%g
18717 s%@DISTDIR@%$DISTDIR%g
18718 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18719 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
18720 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18721 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
18722 s%@EXTRADEFS@%$EXTRADEFS%g
18723 s%@RESFLAGS@%$RESFLAGS%g
18724 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18725 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
18726 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
18727 s%@LIBWXMACRES@%$LIBWXMACRES%g
18728 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18729 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
18730 s%@DLLTOOL@%$DLLTOOL%g
18731 s%@AS@%$AS%g
18732 s%@NM@%$NM%g
18733 s%@LD@%$LD%g
18734 s%@MAKEINFO@%$MAKEINFO%g
18735 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
18736 s%@SET_MAKE@%$SET_MAKE%g
18737 s%@subdirs@%$subdirs%g
18738
18739 CEOF
18740 EOF
18741
18742 cat >> $CONFIG_STATUS <<\EOF
18743
18744 # Split the substitutions into bite-sized pieces for seds with
18745 # small command number limits, like on Digital OSF/1 and HP-UX.
18746 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18747 ac_file=1 # Number of current file.
18748 ac_beg=1 # First line for current file.
18749 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18750 ac_more_lines=:
18751 ac_sed_cmds=""
18752 while $ac_more_lines; do
18753 if test $ac_beg -gt 1; then
18754 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18755 else
18756 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18757 fi
18758 if test ! -s conftest.s$ac_file; then
18759 ac_more_lines=false
18760 rm -f conftest.s$ac_file
18761 else
18762 if test -z "$ac_sed_cmds"; then
18763 ac_sed_cmds="sed -f conftest.s$ac_file"
18764 else
18765 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18766 fi
18767 ac_file=`expr $ac_file + 1`
18768 ac_beg=$ac_end
18769 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18770 fi
18771 done
18772 if test -z "$ac_sed_cmds"; then
18773 ac_sed_cmds=cat
18774 fi
18775 EOF
18776
18777 cat >> $CONFIG_STATUS <<EOF
18778
18779 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18780 src/make.env
18781 src/makeprog.env
18782 src/makelib.env
18783 Makefile
18784 "}
18785 EOF
18786 cat >> $CONFIG_STATUS <<\EOF
18787 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18788 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18789 case "$ac_file" in
18790 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18791 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18792 *) ac_file_in="${ac_file}.in" ;;
18793 esac
18794
18795 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18796
18797 # Remove last slash and all that follows it. Not all systems have dirname.
18798 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18799 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18800 # The file is in a subdirectory.
18801 test ! -d "$ac_dir" && mkdir "$ac_dir"
18802 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18803 # A "../" for each directory in $ac_dir_suffix.
18804 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18805 else
18806 ac_dir_suffix= ac_dots=
18807 fi
18808
18809 case "$ac_given_srcdir" in
18810 .) srcdir=.
18811 if test -z "$ac_dots"; then top_srcdir=.
18812 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18813 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18814 *) # Relative path.
18815 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18816 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18817 esac
18818
18819 case "$ac_given_INSTALL" in
18820 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18821 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18822 esac
18823
18824 echo creating "$ac_file"
18825 rm -f "$ac_file"
18826 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18827 case "$ac_file" in
18828 *Makefile*) ac_comsub="1i\\
18829 # $configure_input" ;;
18830 *) ac_comsub= ;;
18831 esac
18832
18833 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18834 sed -e "$ac_comsub
18835 s%@configure_input@%$configure_input%g
18836 s%@srcdir@%$srcdir%g
18837 s%@top_srcdir@%$top_srcdir%g
18838 s%@INSTALL@%$INSTALL%g
18839 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18840 fi; done
18841 rm -f conftest.s*
18842
18843 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18844 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18845 #
18846 # ac_d sets the value in "#define NAME VALUE" lines.
18847 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18848 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18849 ac_dC='\3'
18850 ac_dD='%g'
18851 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18852 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18853 ac_uB='\([ ]\)%\1#\2define\3'
18854 ac_uC=' '
18855 ac_uD='\4%g'
18856 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18857 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18858 ac_eB='$%\1#\2define\3'
18859 ac_eC=' '
18860 ac_eD='%g'
18861
18862 if test "${CONFIG_HEADERS+set}" != set; then
18863 EOF
18864 cat >> $CONFIG_STATUS <<EOF
18865 CONFIG_HEADERS="setup.h:setup.h.in"
18866 EOF
18867 cat >> $CONFIG_STATUS <<\EOF
18868 fi
18869 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18870 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18871 case "$ac_file" in
18872 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18873 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18874 *) ac_file_in="${ac_file}.in" ;;
18875 esac
18876
18877 echo creating $ac_file
18878
18879 rm -f conftest.frag conftest.in conftest.out
18880 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18881 cat $ac_file_inputs > conftest.in
18882
18883 EOF
18884
18885 # Transform confdefs.h into a sed script conftest.vals that substitutes
18886 # the proper values into config.h.in to produce config.h. And first:
18887 # Protect against being on the right side of a sed subst in config.status.
18888 # Protect against being in an unquoted here document in config.status.
18889 rm -f conftest.vals
18890 cat > conftest.hdr <<\EOF
18891 s/[\\&%]/\\&/g
18892 s%[\\$`]%\\&%g
18893 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18894 s%ac_d%ac_u%gp
18895 s%ac_u%ac_e%gp
18896 EOF
18897 sed -n -f conftest.hdr confdefs.h > conftest.vals
18898 rm -f conftest.hdr
18899
18900 # This sed command replaces #undef with comments. This is necessary, for
18901 # example, in the case of _POSIX_SOURCE, which is predefined and required
18902 # on some systems where configure will not decide to define it.
18903 cat >> conftest.vals <<\EOF
18904 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18905 EOF
18906
18907 # Break up conftest.vals because some shells have a limit on
18908 # the size of here documents, and old seds have small limits too.
18909
18910 rm -f conftest.tail
18911 while :
18912 do
18913 ac_lines=`grep -c . conftest.vals`
18914 # grep -c gives empty output for an empty file on some AIX systems.
18915 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18916 # Write a limited-size here document to conftest.frag.
18917 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18918 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18919 echo 'CEOF
18920 sed -f conftest.frag conftest.in > conftest.out
18921 rm -f conftest.in
18922 mv conftest.out conftest.in
18923 ' >> $CONFIG_STATUS
18924 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18925 rm -f conftest.vals
18926 mv conftest.tail conftest.vals
18927 done
18928 rm -f conftest.vals
18929
18930 cat >> $CONFIG_STATUS <<\EOF
18931 rm -f conftest.frag conftest.h
18932 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18933 cat conftest.in >> conftest.h
18934 rm -f conftest.in
18935 if cmp -s $ac_file conftest.h 2>/dev/null; then
18936 echo "$ac_file is unchanged"
18937 rm -f conftest.h
18938 else
18939 # Remove last slash and all that follows it. Not all systems have dirname.
18940 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18941 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18942 # The file is in a subdirectory.
18943 test ! -d "$ac_dir" && mkdir "$ac_dir"
18944 fi
18945 rm -f $ac_file
18946 mv conftest.h $ac_file
18947 fi
18948 fi; done
18949
18950 EOF
18951 cat >> $CONFIG_STATUS <<EOF
18952
18953 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18954 LN_S="${LN_S}"
18955
18956
18957 EOF
18958 cat >> $CONFIG_STATUS <<\EOF
18959
18960 if test ! -h wx-config; then
18961 chmod +x wx-config
18962 mv wx-config wx${TOOLCHAIN_NAME}-config
18963 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
18964 fi
18965
18966 if test ! -d lib; then
18967 mkdir lib
18968 fi
18969 if test ! -d lib/wx; then
18970 mkdir lib/wx
18971 fi
18972 if test ! -d lib/wx/include; then
18973 mkdir lib/wx/include
18974 fi
18975 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18976 mkdir lib/wx/include/${TOOLCHAIN_NAME}
18977 fi
18978 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18979 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
18980 fi
18981 if test -f setup.h; then
18982 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
18983 fi
18984
18985 exit 0
18986 EOF
18987 chmod +x $CONFIG_STATUS
18988 rm -fr confdefs* $ac_clean_files
18989 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18990
18991 if test "$no_recursion" != yes; then
18992
18993 # Remove --cache-file and --srcdir arguments so they do not pile up.
18994 ac_sub_configure_args=
18995 ac_prev=
18996 for ac_arg in $ac_configure_args; do
18997 if test -n "$ac_prev"; then
18998 ac_prev=
18999 continue
19000 fi
19001 case "$ac_arg" in
19002 -cache-file | --cache-file | --cache-fil | --cache-fi \
19003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19004 ac_prev=cache_file ;;
19005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
19007 ;;
19008 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19009 ac_prev=srcdir ;;
19010 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19011 ;;
19012 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19013 esac
19014 done
19015
19016 for ac_config_dir in demos samples utils contrib; do
19017
19018 # Do not complain, so a configure script can configure whichever
19019 # parts of a large source tree are present.
19020 if test ! -d $srcdir/$ac_config_dir; then
19021 continue
19022 fi
19023
19024 echo configuring in $ac_config_dir
19025
19026 case "$srcdir" in
19027 .) ;;
19028 *)
19029 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19030 else
19031 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19032 fi
19033 ;;
19034 esac
19035
19036 ac_popdir=`pwd`
19037 cd $ac_config_dir
19038
19039 # A "../" for each directory in /$ac_config_dir.
19040 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
19041
19042 case "$srcdir" in
19043 .) # No --srcdir option. We are building in place.
19044 ac_sub_srcdir=$srcdir ;;
19045 /*) # Absolute path.
19046 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
19047 *) # Relative path.
19048 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
19049 esac
19050
19051 # Check for guested configure; otherwise get Cygnus style configure.
19052 if test -f $ac_sub_srcdir/configure; then
19053 ac_sub_configure=$ac_sub_srcdir/configure
19054 elif test -f $ac_sub_srcdir/configure.in; then
19055 ac_sub_configure=$ac_configure
19056 else
19057 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
19058 ac_sub_configure=
19059 fi
19060
19061 # The recursion is here.
19062 if test -n "$ac_sub_configure"; then
19063
19064 # Make the cache file name correct relative to the subdirectory.
19065 case "$cache_file" in
19066 /*) ac_sub_cache_file=$cache_file ;;
19067 *) # Relative path.
19068 ac_sub_cache_file="$ac_dots$cache_file" ;;
19069 esac
19070 case "$ac_given_INSTALL" in
19071 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19072 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19073 esac
19074
19075 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
19076 # The eval makes quoting arguments work.
19077 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19078 then :
19079 else
19080 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19081 fi
19082 fi
19083
19084 cd $ac_popdir
19085 done
19086 fi
19087
19088