]> git.saurik.com Git - wxWidgets.git/blob - configure
wxImage::Rotate corrections added; docview improvements (menus updated properly)
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 # Guess values for system-dependent variables and create Makefiles.
41 # Generated automatically using autoconf version 2.14
42 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43 #
44 # This configure script is free software; the Free Software Foundation
45 # gives unlimited permission to copy, distribute and modify it.
46
47 # Defaults:
48 ac_help=
49 ac_default_prefix=/usr/local
50 # Any additions from configure.in:
51 ac_help="$ac_help
52 --enable-gui use GUI classes"
53 ac_help="$ac_help
54 --with-gtk use GTK+"
55 ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57 ac_help="$ac_help
58 --with-wine use WINE"
59 ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61 ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
63 ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
65 ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67 ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69 ac_help="$ac_help
70 --with-libpng use libpng (PNG image format)"
71 ac_help="$ac_help
72 --with-libjpeg use libjpeg (JPEG file format)"
73 ac_help="$ac_help
74 --with-libtiff use libtiff (TIFF file format)"
75 ac_help="$ac_help
76 --with-opengl use OpenGL (or Mesa)"
77 ac_help="$ac_help
78 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79 ac_help="$ac_help
80 --with-zlib use zlib for LZW compression"
81 ac_help="$ac_help
82 --with-odbc use the IODBC and wxODBC classes"
83 ac_help="$ac_help
84 --enable-shared create shared library code"
85 ac_help="$ac_help
86 --enable-burnt_name create set name in shared library "
87 ac_help="$ac_help
88 --enable-optimise create optimised code"
89 ac_help="$ac_help
90 --enable-debug same as debug_flag and debug_info"
91 ac_help="$ac_help
92 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
93 ac_help="$ac_help
94 --enable-debug_info create code with debugging information"
95 ac_help="$ac_help
96 --enable-debug_gdb create code with extra GDB debugging information"
97 ac_help="$ac_help
98 --enable-debug_cntxt use wxDebugContext"
99 ac_help="$ac_help
100 --enable-mem_tracing create code with memory tracing"
101 ac_help="$ac_help
102 --enable-profile create code with profiling information"
103 ac_help="$ac_help
104 --enable-no_rtti create code without RTTI information"
105 ac_help="$ac_help
106 --enable-no_exceptions create code without exceptions information"
107 ac_help="$ac_help
108 --enable-permissive compile code disregarding strict ANSI"
109 ac_help="$ac_help
110 --enable-no_deps create code without dependency information"
111 ac_help="$ac_help
112 --enable-intl use internationalization system"
113 ac_help="$ac_help
114 --enable-config use wxConfig (and derived) classes"
115 ac_help="$ac_help
116 --enable-sockets use socket/network classes"
117 ac_help="$ac_help
118 --enable-dialupman use dialup network classes"
119 ac_help="$ac_help
120 --enable-ipc use interprocess communication (wxSocket etc.)"
121 ac_help="$ac_help
122 --enable-apple_ieee use the Apple IEEE codec"
123 ac_help="$ac_help
124 --enable-timedate use date/time classes"
125 ac_help="$ac_help
126 --enable-wave use wxWave class"
127 ac_help="$ac_help
128 --enable-fraction use wxFraction class"
129 ac_help="$ac_help
130 --enable-dynlib use wxLibrary class for DLL loading"
131 ac_help="$ac_help
132 --enable-longlong use wxLongLong class"
133 ac_help="$ac_help
134 --enable-log use logging system"
135 ac_help="$ac_help
136 --enable-streams use wxStream etc classes"
137 ac_help="$ac_help
138 --enable-file use wxFile classes"
139 ac_help="$ac_help
140 --enable-textfile use wxTextFile classes"
141 ac_help="$ac_help
142 --enable-unicode compile wxString with Unicode support"
143 ac_help="$ac_help
144 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
145 ac_help="$ac_help
146 --enable-wxprintfv use wxWindows implementation of vprintf()"
147 ac_help="$ac_help
148 --enable-joystick compile in joystick support (Linux only)"
149 ac_help="$ac_help
150 --enable-std_iostreams use standard C++ stream classes"
151 ac_help="$ac_help
152 --enable-fs_inet use virtual HTTP/FTP filesystems"
153 ac_help="$ac_help
154 --enable-fs_zip use virtual ZIP filesystems"
155 ac_help="$ac_help
156 --enable-zipstream use wxZipInputStream"
157 ac_help="$ac_help
158 --enable-threads use threads"
159 ac_help="$ac_help
160 --enable-serial use class serialization"
161 ac_help="$ac_help
162 --enable-docview use document view architecture"
163 ac_help="$ac_help
164 --enable-help use help (using external browser at present)"
165 ac_help="$ac_help
166 --enable-constraints use layout-constraints system"
167 ac_help="$ac_help
168 --enable-printarch use printing architecture"
169 ac_help="$ac_help
170 --enable-mdi use multiple document interface architecture"
171 ac_help="$ac_help
172 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
173 ac_help="$ac_help
174 --enable-prologio use Prolog IO library"
175 ac_help="$ac_help
176 --enable-resources use wxWindows resources"
177 ac_help="$ac_help
178 --enable-xresources use X resources for save (default for gtk+)"
179 ac_help="$ac_help
180 --enable-clipboard use wxClipboard classes"
181 ac_help="$ac_help
182 --enable-dnd use Drag'n'Drop classes"
183 ac_help="$ac_help
184 --enable-wxtree make wxTree library"
185 ac_help="$ac_help
186 --enable-controls use all usual controls"
187 ac_help="$ac_help
188 --enable-accel use accelerators"
189 ac_help="$ac_help
190 --enable-caret use wxCaret class"
191 ac_help="$ac_help
192 --enable-bmpbutton use wxBitmapButton class"
193 ac_help="$ac_help
194 --enable-checkbox use wxCheckBox class"
195 ac_help="$ac_help
196 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
197 ac_help="$ac_help
198 --enable-choice use wxChoice class"
199 ac_help="$ac_help
200 --enable-combobox use wxComboBox classes"
201 ac_help="$ac_help
202 --enable-gauge use wxGauge class"
203 ac_help="$ac_help
204 --enable-grid use wxGrid class"
205 ac_help="$ac_help
206 --enable-newgrid use new wxGrid class"
207 ac_help="$ac_help
208 --enable-imaglist use wxImageList class"
209 ac_help="$ac_help
210 --enable-listbox use wxListBox class"
211 ac_help="$ac_help
212 --enable-listctrl use wxListCtrl class"
213 ac_help="$ac_help
214 --enable-notebook use wxNotebook class"
215 ac_help="$ac_help
216 --enable-radiobox use wxRadioBox class"
217 ac_help="$ac_help
218 --enable-radiobtn use wxRadioButton class"
219 ac_help="$ac_help
220 --enable-sash use wxSashWindow class"
221 ac_help="$ac_help
222 --enable-scrollbar use wxScrollBar class and scrollable windows"
223 ac_help="$ac_help
224 --enable-slider use wxSlider class"
225 ac_help="$ac_help
226 --enable-spinbtn use wxSpinButton class"
227 ac_help="$ac_help
228 --enable-spinctrl use wxSpinCtrl class"
229 ac_help="$ac_help
230 --enable-splitter use wxSplitterWindow class"
231 ac_help="$ac_help
232 --enable-statbmp use wxStaticBitmap class"
233 ac_help="$ac_help
234 --enable-statbox use wxStaticBox class"
235 ac_help="$ac_help
236 --enable-statline use wxStaticLine class"
237 ac_help="$ac_help
238 --enable-statusbar use wxStatusBar class"
239 ac_help="$ac_help
240 --enable-tabdialog use wxTabControl class"
241 ac_help="$ac_help
242 --enable-toolbar use wxToolBar class"
243 ac_help="$ac_help
244 --enable-tbarnative use native wxToolBar class"
245 ac_help="$ac_help
246 --enable-tbarsmpl use wxToolBarSimple class"
247 ac_help="$ac_help
248 --enable-treectrl use wxTreeCtrl class"
249 ac_help="$ac_help
250 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
251 ac_help="$ac_help
252 --enable-dirdlg use wxDirDialog"
253 ac_help="$ac_help
254 --enable-textdlg use wxTextDialog"
255 ac_help="$ac_help
256 --enable-tipdlg use startup tips"
257 ac_help="$ac_help
258 --enable-progressdlg use wxProgressDialog"
259 ac_help="$ac_help
260 --enable-miniframe use wxMiniFrame class"
261 ac_help="$ac_help
262 --enable-html use wxHTML sub-library"
263 ac_help="$ac_help
264 --enable-tooltips use wxToolTip class"
265 ac_help="$ac_help
266 --enable-splines use spline drawing code"
267 ac_help="$ac_help
268 --enable-validators use wxValidator and derived classes"
269 ac_help="$ac_help
270 --enable-busyinfo use wxBusyInfo"
271 ac_help="$ac_help
272 --enable-plot use wxPlot"
273 ac_help="$ac_help
274 --enable-gif use gif images (GIF file format)"
275 ac_help="$ac_help
276 --enable-pcx use pcx images (PCX file format)"
277 ac_help="$ac_help
278 --enable-pnm use pnm images (PNM file format)"
279 ac_help="$ac_help
280 --with-x use the X Window System"
281
282 # Initialize some variables set by options.
283 # The variables have the same names as the options, with
284 # dashes changed to underlines.
285 build=NONE
286 cache_file=./config.cache
287 exec_prefix=NONE
288 host=NONE
289 no_create=
290 nonopt=NONE
291 no_recursion=
292 prefix=NONE
293 program_prefix=NONE
294 program_suffix=NONE
295 program_transform_name=s,x,x,
296 silent=
297 site=
298 srcdir=
299 target=NONE
300 verbose=
301 x_includes=NONE
302 x_libraries=NONE
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 # Initialize some other variables.
317 subdirs=
318 MFLAGS= MAKEFLAGS=
319 SHELL=${CONFIG_SHELL-/bin/sh}
320 # Maximum number of lines to put in a shell here document.
321 ac_max_here_lines=12
322
323 ac_prev=
324 for ac_option
325 do
326
327 # If the previous option needs an argument, assign it.
328 if test -n "$ac_prev"; then
329 eval "$ac_prev=\$ac_option"
330 ac_prev=
331 continue
332 fi
333
334 case "$ac_option" in
335 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
336 *) ac_optarg= ;;
337 esac
338
339 # Accept the important Cygnus configure options, so we can diagnose typos.
340
341 case "$ac_option" in
342
343 -bindir | --bindir | --bindi | --bind | --bin | --bi)
344 ac_prev=bindir ;;
345 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
346 bindir="$ac_optarg" ;;
347
348 -build | --build | --buil | --bui | --bu)
349 ac_prev=build ;;
350 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
351 build="$ac_optarg" ;;
352
353 -cache-file | --cache-file | --cache-fil | --cache-fi \
354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
355 ac_prev=cache_file ;;
356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
358 cache_file="$ac_optarg" ;;
359
360 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
361 ac_prev=datadir ;;
362 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
363 | --da=*)
364 datadir="$ac_optarg" ;;
365
366 -disable-* | --disable-*)
367 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
371 fi
372 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
373 eval "enable_${ac_feature}=no" ;;
374
375 -enable-* | --enable-*)
376 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
380 fi
381 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
382 case "$ac_option" in
383 *=*) ;;
384 *) ac_optarg=yes ;;
385 esac
386 eval "enable_${ac_feature}='$ac_optarg'" ;;
387
388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
390 | --exec | --exe | --ex)
391 ac_prev=exec_prefix ;;
392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
394 | --exec=* | --exe=* | --ex=*)
395 exec_prefix="$ac_optarg" ;;
396
397 -gas | --gas | --ga | --g)
398 # Obsolete; use --with-gas.
399 with_gas=yes ;;
400
401 -help | --help | --hel | --he)
402 # Omit some internal or obsolete options to make the list less imposing.
403 # This message is too long to be a string in the A/UX 3.1 sh.
404 cat << EOF
405 Usage: configure [options] [host]
406 Options: [defaults in brackets after descriptions]
407 Configuration:
408 --cache-file=FILE cache test results in FILE
409 --help print this message
410 --no-create do not create output files
411 --quiet, --silent do not print \`checking...' messages
412 --version print the version of autoconf that created configure
413 Directory and file names:
414 --prefix=PREFIX install architecture-independent files in PREFIX
415 [$ac_default_prefix]
416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
417 [same as prefix]
418 --bindir=DIR user executables in DIR [EPREFIX/bin]
419 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
420 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
421 --datadir=DIR read-only architecture-independent data in DIR
422 [PREFIX/share]
423 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
424 --sharedstatedir=DIR modifiable architecture-independent data in DIR
425 [PREFIX/com]
426 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
427 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
428 --includedir=DIR C header files in DIR [PREFIX/include]
429 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
430 --infodir=DIR info documentation in DIR [PREFIX/info]
431 --mandir=DIR man documentation in DIR [PREFIX/man]
432 --srcdir=DIR find the sources in DIR [configure dir or ..]
433 --program-prefix=PREFIX prepend PREFIX to installed program names
434 --program-suffix=SUFFIX append SUFFIX to installed program names
435 --program-transform-name=PROGRAM
436 run sed PROGRAM on installed program names
437 EOF
438 cat << EOF
439 Host type:
440 --build=BUILD configure for building on BUILD [BUILD=HOST]
441 --host=HOST configure for HOST [guessed]
442 --target=TARGET configure for TARGET [TARGET=HOST]
443 Features and packages:
444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
448 --x-includes=DIR X include files are in DIR
449 --x-libraries=DIR X library files are in DIR
450 EOF
451 if test -n "$ac_help"; then
452 echo "--enable and --with options recognized:$ac_help"
453 fi
454 exit 0 ;;
455
456 -host | --host | --hos | --ho)
457 ac_prev=host ;;
458 -host=* | --host=* | --hos=* | --ho=*)
459 host="$ac_optarg" ;;
460
461 -includedir | --includedir | --includedi | --included | --include \
462 | --includ | --inclu | --incl | --inc)
463 ac_prev=includedir ;;
464 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
465 | --includ=* | --inclu=* | --incl=* | --inc=*)
466 includedir="$ac_optarg" ;;
467
468 -infodir | --infodir | --infodi | --infod | --info | --inf)
469 ac_prev=infodir ;;
470 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
471 infodir="$ac_optarg" ;;
472
473 -libdir | --libdir | --libdi | --libd)
474 ac_prev=libdir ;;
475 -libdir=* | --libdir=* | --libdi=* | --libd=*)
476 libdir="$ac_optarg" ;;
477
478 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
479 | --libexe | --libex | --libe)
480 ac_prev=libexecdir ;;
481 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
482 | --libexe=* | --libex=* | --libe=*)
483 libexecdir="$ac_optarg" ;;
484
485 -localstatedir | --localstatedir | --localstatedi | --localstated \
486 | --localstate | --localstat | --localsta | --localst \
487 | --locals | --local | --loca | --loc | --lo)
488 ac_prev=localstatedir ;;
489 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
490 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
491 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
492 localstatedir="$ac_optarg" ;;
493
494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
495 ac_prev=mandir ;;
496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
497 mandir="$ac_optarg" ;;
498
499 -nfp | --nfp | --nf)
500 # Obsolete; use --without-fp.
501 with_fp=no ;;
502
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c)
505 no_create=yes ;;
506
507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
509 no_recursion=yes ;;
510
511 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
512 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
513 | --oldin | --oldi | --old | --ol | --o)
514 ac_prev=oldincludedir ;;
515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
518 oldincludedir="$ac_optarg" ;;
519
520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
521 ac_prev=prefix ;;
522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
523 prefix="$ac_optarg" ;;
524
525 -program-prefix | --program-prefix | --program-prefi | --program-pref \
526 | --program-pre | --program-pr | --program-p)
527 ac_prev=program_prefix ;;
528 -program-prefix=* | --program-prefix=* | --program-prefi=* \
529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
530 program_prefix="$ac_optarg" ;;
531
532 -program-suffix | --program-suffix | --program-suffi | --program-suff \
533 | --program-suf | --program-su | --program-s)
534 ac_prev=program_suffix ;;
535 -program-suffix=* | --program-suffix=* | --program-suffi=* \
536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
537 program_suffix="$ac_optarg" ;;
538
539 -program-transform-name | --program-transform-name \
540 | --program-transform-nam | --program-transform-na \
541 | --program-transform-n | --program-transform- \
542 | --program-transform | --program-transfor \
543 | --program-transfo | --program-transf \
544 | --program-trans | --program-tran \
545 | --progr-tra | --program-tr | --program-t)
546 ac_prev=program_transform_name ;;
547 -program-transform-name=* | --program-transform-name=* \
548 | --program-transform-nam=* | --program-transform-na=* \
549 | --program-transform-n=* | --program-transform-=* \
550 | --program-transform=* | --program-transfor=* \
551 | --program-transfo=* | --program-transf=* \
552 | --program-trans=* | --program-tran=* \
553 | --progr-tra=* | --program-tr=* | --program-t=*)
554 program_transform_name="$ac_optarg" ;;
555
556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
557 | -silent | --silent | --silen | --sile | --sil)
558 silent=yes ;;
559
560 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
561 ac_prev=sbindir ;;
562 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
563 | --sbi=* | --sb=*)
564 sbindir="$ac_optarg" ;;
565
566 -sharedstatedir | --sharedstatedir | --sharedstatedi \
567 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
568 | --sharedst | --shareds | --shared | --share | --shar \
569 | --sha | --sh)
570 ac_prev=sharedstatedir ;;
571 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
572 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
573 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
574 | --sha=* | --sh=*)
575 sharedstatedir="$ac_optarg" ;;
576
577 -site | --site | --sit)
578 ac_prev=site ;;
579 -site=* | --site=* | --sit=*)
580 site="$ac_optarg" ;;
581
582 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
583 ac_prev=srcdir ;;
584 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
585 srcdir="$ac_optarg" ;;
586
587 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
588 | --syscon | --sysco | --sysc | --sys | --sy)
589 ac_prev=sysconfdir ;;
590 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
591 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
592 sysconfdir="$ac_optarg" ;;
593
594 -target | --target | --targe | --targ | --tar | --ta | --t)
595 ac_prev=target ;;
596 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
597 target="$ac_optarg" ;;
598
599 -v | -verbose | --verbose | --verbos | --verbo | --verb)
600 verbose=yes ;;
601
602 -version | --version | --versio | --versi | --vers)
603 echo "configure generated by autoconf version 2.14"
604 exit 0 ;;
605
606 -with-* | --with-*)
607 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
608 # Reject names that are not valid shell variable names.
609 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
610 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
611 fi
612 ac_package=`echo $ac_package| sed 's/-/_/g'`
613 case "$ac_option" in
614 *=*) ;;
615 *) ac_optarg=yes ;;
616 esac
617 eval "with_${ac_package}='$ac_optarg'" ;;
618
619 -without-* | --without-*)
620 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
621 # Reject names that are not valid shell variable names.
622 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
623 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
624 fi
625 ac_package=`echo $ac_package| sed 's/-/_/g'`
626 eval "with_${ac_package}=no" ;;
627
628 --x)
629 # Obsolete; use --with-x.
630 with_x=yes ;;
631
632 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
633 | --x-incl | --x-inc | --x-in | --x-i)
634 ac_prev=x_includes ;;
635 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
636 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
637 x_includes="$ac_optarg" ;;
638
639 -x-libraries | --x-libraries | --x-librarie | --x-librari \
640 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
641 ac_prev=x_libraries ;;
642 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
643 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
644 x_libraries="$ac_optarg" ;;
645
646 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
647 ;;
648
649 *)
650 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
651 echo "configure: warning: $ac_option: invalid host type" 1>&2
652 fi
653 if test "x$nonopt" != xNONE; then
654 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
655 fi
656 nonopt="$ac_option"
657 ;;
658
659 esac
660 done
661
662 if test -n "$ac_prev"; then
663 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
664 fi
665
666 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
667
668 # File descriptor usage:
669 # 0 standard input
670 # 1 file creation
671 # 2 errors and warnings
672 # 3 some systems may open it to /dev/tty
673 # 4 used on the Kubota Titan
674 # 6 checking for... messages and results
675 # 5 compiler messages saved in config.log
676 if test "$silent" = yes; then
677 exec 6>/dev/null
678 else
679 exec 6>&1
680 fi
681 exec 5>./config.log
682
683 echo "\
684 This file contains any messages produced by compilers while
685 running configure, to aid debugging if configure makes a mistake.
686 " 1>&5
687
688 # Strip out --no-create and --no-recursion so they do not pile up.
689 # Also quote any args containing shell metacharacters.
690 ac_configure_args=
691 for ac_arg
692 do
693 case "$ac_arg" in
694 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
695 | --no-cr | --no-c) ;;
696 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
697 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
698 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
699 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
700 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
701 esac
702 done
703
704 # NLS nuisances.
705 # Only set these to C if already set. These must not be set unconditionally
706 # because not all systems understand e.g. LANG=C (notably SCO).
707 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
708 # Non-C LC_CTYPE values break the ctype check.
709 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
710 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
711 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
712 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
713
714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
715 rm -rf conftest* confdefs.h
716 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
717 echo > confdefs.h
718
719 # A filename unique to this package, relative to the directory that
720 # configure is in, which we can look for to find out if srcdir is correct.
721 ac_unique_file=wx-config.in
722
723 # Find the source files, if location was not specified.
724 if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent.
727 ac_prog=$0
728 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
729 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
730 srcdir=$ac_confdir
731 if test ! -r $srcdir/$ac_unique_file; then
732 srcdir=..
733 fi
734 else
735 ac_srcdir_defaulted=no
736 fi
737 if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
740 else
741 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
742 fi
743 fi
744 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
745
746 # Prefer explicitly selected file to automatically selected ones.
747 if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
750 else
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
752 fi
753 fi
754 for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then
756 echo "loading site script $ac_site_file"
757 . "$ac_site_file"
758 fi
759 done
760
761 if test -r "$cache_file"; then
762 echo "loading cache $cache_file"
763 . $cache_file
764 else
765 echo "creating cache $cache_file"
766 > $cache_file
767 fi
768
769 ac_ext=c
770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771 ac_cpp='$CPP $CPPFLAGS'
772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
774 cross_compiling=$ac_cv_prog_cc_cross
775
776 ac_exeext=
777 ac_objext=o
778 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
781 ac_n= ac_c='
782 ' ac_t=' '
783 else
784 ac_n=-n ac_c= ac_t=
785 fi
786 else
787 ac_n= ac_c='\c' ac_t=
788 fi
789
790
791
792 ac_aux_dir=
793 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
794 if test -f $ac_dir/install-sh; then
795 ac_aux_dir=$ac_dir
796 ac_install_sh="$ac_aux_dir/install-sh -c"
797 break
798 elif test -f $ac_dir/install.sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install.sh -c"
801 break
802 fi
803 done
804 if test -z "$ac_aux_dir"; then
805 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
806 fi
807 ac_config_guess=$ac_aux_dir/config.guess
808 ac_config_sub=$ac_aux_dir/config.sub
809 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
810
811
812 # Do some error checking and defaulting for the host and target type.
813 # The inputs are:
814 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
815 #
816 # The rules are:
817 # 1. You are not allowed to specify --host, --target, and nonopt at the
818 # same time.
819 # 2. Host defaults to nonopt.
820 # 3. If nonopt is not specified, then host defaults to the current host,
821 # as determined by config.guess.
822 # 4. Target and build default to nonopt.
823 # 5. If nonopt is not specified, then target and build default to host.
824
825 # The aliases save the names the user supplied, while $host etc.
826 # will get canonicalized.
827 case $host---$target---$nonopt in
828 NONE---*---* | *---NONE---* | *---*---NONE) ;;
829 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
830 esac
831
832
833 # Make sure we can run config.sub.
834 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
835 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
836 fi
837
838 echo $ac_n "checking host system type""... $ac_c" 1>&6
839 echo "configure:840: checking host system type" >&5
840
841 host_alias=$host
842 case "$host_alias" in
843 NONE)
844 case $nonopt in
845 NONE)
846 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
847 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
848 fi ;;
849 *) host_alias=$nonopt ;;
850 esac ;;
851 esac
852
853 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
854 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
855 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
856 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
857 echo "$ac_t""$host" 1>&6
858
859 echo $ac_n "checking target system type""... $ac_c" 1>&6
860 echo "configure:861: checking target system type" >&5
861
862 target_alias=$target
863 case "$target_alias" in
864 NONE)
865 case $nonopt in
866 NONE) target_alias=$host_alias ;;
867 *) target_alias=$nonopt ;;
868 esac ;;
869 esac
870
871 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
872 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
873 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
874 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
875 echo "$ac_t""$target" 1>&6
876
877 echo $ac_n "checking build system type""... $ac_c" 1>&6
878 echo "configure:879: checking build system type" >&5
879
880 build_alias=$build
881 case "$build_alias" in
882 NONE)
883 case $nonopt in
884 NONE) build_alias=$host_alias ;;
885 *) build_alias=$nonopt ;;
886 esac ;;
887 esac
888
889 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
890 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
891 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
892 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
893 echo "$ac_t""$build" 1>&6
894
895 test "$host_alias" != "$target_alias" &&
896 test "$program_prefix$program_suffix$program_transform_name" = \
897 NONENONEs,x,x, &&
898 program_prefix=${target_alias}-
899
900
901
902 WX_MAJOR_VERSION_NUMBER=2
903 WX_MINOR_VERSION_NUMBER=1
904 WX_RELEASE_NUMBER=14
905
906 WX_INTERFACE_AGE=0
907 WX_BINARY_AGE=0
908
909 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
910
911 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
912 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
913 WX_REVISION=$WX_INTERFACE_AGE
914 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
915
916
917 USE_UNIX=1
918 USE_WIN32=0
919 USE_BEOS=0
920
921 USE_LINUX=
922 USE_SGI=
923 USE_HPUX=
924 USE_SYSV=
925 USE_SVR4=
926 USE_AIX=
927 USE_SUN=
928 USE_SOLARIS=
929 USE_SUNOS=
930 USE_ALPHA=
931 USE_OSF=
932 USE_BSD=
933 USE_FREEBSD=
934 USE_VMS=
935 USE_ULTRIX=
936 USE_CYGWIN=
937 USE_MINGW=
938 USE_DATA_GENERAL=
939
940 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
941
942 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
943
944 DEFAULT_wxUSE_GTK=0
945 DEFAULT_wxUSE_MOTIF=0
946 DEFAULT_wxUSE_MSW=0
947 DEFAULT_wxUSE_WINE=0
948 DEFAULT_wxUSE_PM=0
949
950 DEFAULT_DEFAULT_wxUSE_GTK=0
951 DEFAULT_DEFAULT_wxUSE_MOTIF=0
952 DEFAULT_DEFAULT_wxUSE_MSW=0
953 DEFAULT_DEFAULT_wxUSE_WINE=0
954 DEFAULT_DEFAULT_wxUSE_PM=0
955
956 case "${host}" in
957 *-hp-hpux* )
958 USE_HPUX=1
959 DEFAULT_DEFAULT_wxUSE_MOTIF=1
960 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
961 cat >> confdefs.h <<\EOF
962 #define __HPUX__ 1
963 EOF
964
965 ;;
966 *-*-linux* )
967 USE_LINUX=1
968 cat >> confdefs.h <<\EOF
969 #define __LINUX__ 1
970 EOF
971
972 TMP=`uname -m`
973 if test "x$TMP" = "xalpha"; then
974 USE_ALPHA=1
975 cat >> confdefs.h <<\EOF
976 #define __ALPHA__ 1
977 EOF
978
979 fi
980 DEFAULT_DEFAULT_wxUSE_GTK=1
981 ;;
982 *-*-irix5* | *-*-irix6* )
983 USE_SGI=1
984 USE_SVR4=1
985 cat >> confdefs.h <<\EOF
986 #define __SGI__ 1
987 EOF
988
989 cat >> confdefs.h <<\EOF
990 #define __SVR4__ 1
991 EOF
992
993 DEFAULT_DEFAULT_wxUSE_MOTIF=1
994 ;;
995 *-*-solaris2* )
996 USE_SUN=1
997 USE_SOLARIS=1
998 USE_SVR4=1
999 cat >> confdefs.h <<\EOF
1000 #define __SUN__ 1
1001 EOF
1002
1003 cat >> confdefs.h <<\EOF
1004 #define __SOLARIS__ 1
1005 EOF
1006
1007 cat >> confdefs.h <<\EOF
1008 #define __SVR4__ 1
1009 EOF
1010
1011 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1012 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1013 ;;
1014 *-*-sunos4* )
1015 USE_SUN=1
1016 USE_SUNOS=1
1017 USE_BSD=1
1018 cat >> confdefs.h <<\EOF
1019 #define __SUN__ 1
1020 EOF
1021
1022 cat >> confdefs.h <<\EOF
1023 #define __SUNOS__ 1
1024 EOF
1025
1026 cat >> confdefs.h <<\EOF
1027 #define __BSD__ 1
1028 EOF
1029
1030 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1031 ;;
1032 *-*-freebsd* | *-*-netbsd*)
1033 USE_BSD=1
1034 USE_FREEBSD=1
1035 cat >> confdefs.h <<\EOF
1036 #define __FREEBSD__ 1
1037 EOF
1038
1039 cat >> confdefs.h <<\EOF
1040 #define __BSD__ 1
1041 EOF
1042
1043 DEFAULT_DEFAULT_wxUSE_GTK=1
1044 ;;
1045 *-*-osf* )
1046 USE_ALPHA=1
1047 USE_OSF=1
1048 cat >> confdefs.h <<\EOF
1049 #define __ALPHA__ 1
1050 EOF
1051
1052 cat >> confdefs.h <<\EOF
1053 #define __OSF__ 1
1054 EOF
1055
1056 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1057 ;;
1058 *-*-dgux5* )
1059 USE_ALPHA=1
1060 USE_SVR4=1
1061 cat >> confdefs.h <<\EOF
1062 #define __ALPHA__ 1
1063 EOF
1064
1065 cat >> confdefs.h <<\EOF
1066 #define __SVR4__ 1
1067 EOF
1068
1069 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1070 ;;
1071 *-*-sysv5* )
1072 USE_SYSV=1
1073 USE_SVR4=1
1074 cat >> confdefs.h <<\EOF
1075 #define __SYSV__ 1
1076 EOF
1077
1078 cat >> confdefs.h <<\EOF
1079 #define __SVR4__ 1
1080 EOF
1081
1082 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1083 ;;
1084 *-*-aix* )
1085 USE_AIX=1
1086 USE_SYSV=1
1087 USE_SVR4=1
1088 cat >> confdefs.h <<\EOF
1089 #define __AIX__ 1
1090 EOF
1091
1092 cat >> confdefs.h <<\EOF
1093 #define __SYSV__ 1
1094 EOF
1095
1096 cat >> confdefs.h <<\EOF
1097 #define __SVR4__ 1
1098 EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 ;;
1102
1103 *-*-cygwin32* | *-*-mingw32* )
1104 USE_UNIX=0
1105 USE_WIN32=1
1106 cat >> confdefs.h <<\EOF
1107 #define __WIN32__ 1
1108 EOF
1109
1110 cat >> confdefs.h <<\EOF
1111 #define __WIN95__ 1
1112 EOF
1113
1114 cat >> confdefs.h <<\EOF
1115 #define __WINDOWS__ 1
1116 EOF
1117
1118 cat >> confdefs.h <<\EOF
1119 #define __GNUWIN32__ 1
1120 EOF
1121
1122 cat >> confdefs.h <<\EOF
1123 #define STRICT 1
1124 EOF
1125
1126 cat >> confdefs.h <<\EOF
1127 #define WINVER 0x0400
1128 EOF
1129
1130 PROGRAM_EXT=".exe"
1131 DEFAULT_DEFAULT_wxUSE_MSW=1
1132 ;;
1133
1134 *-pc-os2_emx )
1135 cat >> confdefs.h <<\EOF
1136 #define __EMX__ 1
1137 EOF
1138
1139 PROGRAM_EXT=".exe"
1140 DEFAULT_DEFAULT_wxUSE_PM=1
1141 ;;
1142
1143 *-*-beos* )
1144 USE_BEOS=1
1145 cat >> confdefs.h <<\EOF
1146 #define __BEOS__ 1
1147 EOF
1148
1149 ;;
1150
1151 *)
1152 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1153 esac
1154
1155 if test "$USE_UNIX" = 1 ; then
1156 wxUSE_UNIX=yes
1157 cat >> confdefs.h <<\EOF
1158 #define __UNIX__ 1
1159 EOF
1160
1161
1162 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1163 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1164 fi
1165
1166 if test "$USE_BEOS" = 1; then
1167 SRC_SUBDIRS="$SRC_SUBDIRS be"
1168 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1169 fi
1170
1171 if test "$USE_LINUX" = 1; then
1172 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1173 echo "configure:1174: checking for gettext in -lc" >&5
1174 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1177 else
1178 ac_save_LIBS="$LIBS"
1179 LIBS="-lc $LIBS"
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1183 /* Override any gcc2 internal prototype to avoid an error. */
1184 /* We use char because int might match the return type of a gcc2
1185 builtin and then its argument prototype would still apply. */
1186 char gettext();
1187
1188 int main() {
1189 gettext()
1190 ; return 0; }
1191 EOF
1192 if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193 rm -rf conftest*
1194 eval "ac_cv_lib_$ac_lib_var=yes"
1195 else
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1198 rm -rf conftest*
1199 eval "ac_cv_lib_$ac_lib_var=no"
1200 fi
1201 rm -f conftest*
1202 LIBS="$ac_save_LIBS"
1203
1204 fi
1205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1206 echo "$ac_t""yes" 1>&6
1207 cat >> confdefs.h <<\EOF
1208 #define wxHAVE_GLIBC2 1
1209 EOF
1210
1211 else
1212 echo "$ac_t""no" 1>&6
1213 fi
1214
1215 fi
1216
1217
1218
1219
1220 wx_arg_cache_file="configarg.cache"
1221 echo "loading argument cache $wx_arg_cache_file"
1222 rm -f ${wx_arg_cache_file}.tmp
1223 touch ${wx_arg_cache_file}.tmp
1224 touch ${wx_arg_cache_file}
1225
1226
1227 DEBUG_CONFIGURE=0
1228 if test $DEBUG_CONFIGURE = 1; then
1229 DEFAULT_wxUSE_THREADS=yes
1230
1231 DEFAULT_wxUSE_SHARED=yes
1232 DEFAULT_wxUSE_BURNT_NAME=no
1233 DEFAULT_wxUSE_OPTIMISE=yes
1234 DEFAULT_wxUSE_PROFILE=no
1235 DEFAULT_wxUSE_NO_DEPS=no
1236 DEFAULT_wxUSE_NO_RTTI=no
1237 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1238 DEFAULT_wxUSE_PERMISSIVE=no
1239 DEFAULT_wxUSE_DEBUG_FLAG=yes
1240 DEFAULT_wxUSE_DEBUG_INFO=yes
1241 DEFAULT_wxUSE_DEBUG_GDB=yes
1242 DEFAULT_wxUSE_MEM_TRACING=no
1243 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1244 DEFAULT_wxUSE_DMALLOC=no
1245 DEFAULT_wxUSE_APPLE_IEEE=no
1246
1247 DEFAULT_wxUSE_LOG=yes
1248
1249 DEFAULT_wxUSE_GUI=yes
1250
1251 DEFAULT_wxUSE_ZLIB=no
1252 DEFAULT_wxUSE_LIBPNG=no
1253 DEFAULT_wxUSE_LIBJPEG=no
1254 DEFAULT_wxUSE_LIBTIFF=no
1255 DEFAULT_wxUSE_ODBC=no
1256
1257 DEFAULT_wxUSE_STD_IOSTREAM=no
1258 DEFAULT_wxUSE_FILE=no
1259 DEFAULT_wxUSE_TEXTFILE=no
1260 DEFAULT_wxUSE_TIMEDATE=no
1261 DEFAULT_wxUSE_WAVE=no
1262 DEFAULT_wxUSE_INTL=no
1263 DEFAULT_wxUSE_CONFIG=no
1264 DEFAULT_wxUSE_STREAMS=no
1265 DEFAULT_wxUSE_SOCKETS=no
1266 DEFAULT_wxUSE_DIALUP_MANAGER=no
1267 DEFAULT_wxUSE_SERIAL=no
1268 DEFAULT_wxUSE_JOYSTICK=no
1269 DEFAULT_wxUSE_DYNLIB_CLASS=no
1270 DEFAULT_wxUSE_LONGLONG=no
1271
1272 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1273 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1274 DEFAULT_wxUSE_POSTSCRIPT=no
1275
1276 DEFAULT_wxUSE_X_RESOURCES=no
1277 DEFAULT_wxUSE_CLIPBOARD=no
1278 DEFAULT_wxUSE_TOOLTIPS=no
1279 DEFAULT_wxUSE_DRAG_AND_DROP=no
1280 DEFAULT_wxUSE_SPLINES=no
1281
1282 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1283 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1284 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1285
1286 DEFAULT_wxUSE_PROLOGIO=no
1287 DEFAULT_wxUSE_RESOURCES=no
1288 DEFAULT_wxUSE_CONSTRAINTS=no
1289 DEFAULT_wxUSE_IPC=no
1290 DEFAULT_wxUSE_HELP=no
1291 DEFAULT_wxUSE_WXTREE=no
1292 DEFAULT_wxUSE_METAFILE=no
1293
1294 DEFAULT_wxUSE_COMMONDLGS=no
1295 DEFAULT_wxUSE_DIRDLG=no
1296 DEFAULT_wxUSE_TEXTDLG=no
1297 DEFAULT_wxUSE_STARTUP_TIPS=no
1298 DEFAULT_wxUSE_PROGRESSDLG=no
1299 DEFAULT_wxUSE_MINIFRAME=no
1300 DEFAULT_wxUSE_HTML=no
1301 DEFAULT_wxUSE_FS_INET=no
1302 DEFAULT_wxUSE_FS_ZIP=no
1303 DEFAULT_wxUSE_BUSYINFO=no
1304 DEFAULT_wxUSE_ZIPSTREAM=no
1305 DEFAULT_wxUSE_VALIDATORS=yes
1306
1307 DEFAULT_wxUSE_ACCEL=no
1308 DEFAULT_wxUSE_CARET=no
1309 DEFAULT_wxUSE_BMPBUTTON=no
1310 DEFAULT_wxUSE_CHECKBOX=no
1311 DEFAULT_wxUSE_CHECKLST=no
1312 DEFAULT_wxUSE_CHOICE=yes
1313 DEFAULT_wxUSE_COMBOBOX=no
1314 DEFAULT_wxUSE_GAUGE=no
1315 DEFAULT_wxUSE_GRID=no
1316 DEFAULT_wxUSE_NEW_GRID=no
1317 DEFAULT_wxUSE_IMAGLIST=no
1318 DEFAULT_wxUSE_LISTBOX=no
1319 DEFAULT_wxUSE_LISTCTRL=no
1320 DEFAULT_wxUSE_NOTEBOOK=no
1321 DEFAULT_wxUSE_PLOT=no
1322 DEFAULT_wxUSE_RADIOBOX=no
1323 DEFAULT_wxUSE_RADIOBTN=no
1324 DEFAULT_wxUSE_SASH=no
1325 DEFAULT_wxUSE_SCROLLBAR=no
1326 DEFAULT_wxUSE_SLIDER=no
1327 DEFAULT_wxUSE_SPINBTN=no
1328 DEFAULT_wxUSE_SPINCTRL=no
1329 DEFAULT_wxUSE_SPLITTER=no
1330 DEFAULT_wxUSE_STATBMP=no
1331 DEFAULT_wxUSE_STATBOX=no
1332 DEFAULT_wxUSE_STATLINE=no
1333 DEFAULT_wxUSE_STATUSBAR=yes
1334 DEFAULT_wxUSE_TABDIALOG=no
1335 DEFAULT_wxUSE_TOOLBAR=no
1336 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1337 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1338 DEFAULT_wxUSE_TREECTRL=no
1339
1340 DEFAULT_wxUSE_UNICODE=no
1341 DEFAULT_wxUSE_WCSRTOMBS=no
1342
1343 DEFAULT_wxUSE_GIF=no
1344 DEFAULT_wxUSE_PCX=no
1345 DEFAULT_wxUSE_PNM=no
1346 else
1347 DEFAULT_wxUSE_THREADS=yes
1348
1349 DEFAULT_wxUSE_SHARED=yes
1350 DEFAULT_wxUSE_BURNT_NAME=no
1351 DEFAULT_wxUSE_OPTIMISE=yes
1352 DEFAULT_wxUSE_PROFILE=no
1353 DEFAULT_wxUSE_NO_DEPS=no
1354 DEFAULT_wxUSE_NO_RTTI=no
1355 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1356 DEFAULT_wxUSE_PERMISSIVE=no
1357 DEFAULT_wxUSE_DEBUG_FLAG=no
1358 DEFAULT_wxUSE_DEBUG_INFO=no
1359 DEFAULT_wxUSE_DEBUG_GDB=no
1360 DEFAULT_wxUSE_MEM_TRACING=no
1361 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1362 DEFAULT_wxUSE_DMALLOC=no
1363 DEFAULT_wxUSE_APPLE_IEEE=yes
1364
1365 DEFAULT_wxUSE_LOG=yes
1366
1367 DEFAULT_wxUSE_GUI=yes
1368
1369 DEFAULT_wxUSE_ZLIB=yes
1370 DEFAULT_wxUSE_LIBPNG=yes
1371 DEFAULT_wxUSE_LIBJPEG=yes
1372 DEFAULT_wxUSE_LIBTIFF=yes
1373 DEFAULT_wxUSE_ODBC=no
1374
1375 DEFAULT_wxUSE_STD_IOSTREAM=no
1376 DEFAULT_wxUSE_FILE=yes
1377 DEFAULT_wxUSE_TEXTFILE=yes
1378 DEFAULT_wxUSE_TIMEDATE=yes
1379 DEFAULT_wxUSE_WAVE=no
1380 DEFAULT_wxUSE_INTL=yes
1381 DEFAULT_wxUSE_CONFIG=yes
1382 DEFAULT_wxUSE_STREAMS=yes
1383 DEFAULT_wxUSE_SOCKETS=yes
1384 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1385 DEFAULT_wxUSE_SERIAL=yes
1386 DEFAULT_wxUSE_JOYSTICK=yes
1387 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1388 DEFAULT_wxUSE_LONGLONG=yes
1389
1390 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1391 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1392 DEFAULT_wxUSE_POSTSCRIPT=yes
1393
1394 DEFAULT_wxUSE_X_RESOURCES=no
1395 DEFAULT_wxUSE_CLIPBOARD=yes
1396 DEFAULT_wxUSE_TOOLTIPS=yes
1397 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1398 DEFAULT_wxUSE_SPLINES=yes
1399
1400 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1401 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1402 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1403
1404 DEFAULT_wxUSE_PROLOGIO=yes
1405 DEFAULT_wxUSE_RESOURCES=yes
1406 DEFAULT_wxUSE_CONSTRAINTS=yes
1407 DEFAULT_wxUSE_IPC=yes
1408 DEFAULT_wxUSE_HELP=yes
1409 DEFAULT_wxUSE_WXTREE=yes
1410 DEFAULT_wxUSE_METAFILE=yes
1411
1412 DEFAULT_wxUSE_COMMONDLGS=yes
1413 DEFAULT_wxUSE_DIRDLG=yes
1414 DEFAULT_wxUSE_TEXTDLG=yes
1415 DEFAULT_wxUSE_STARTUP_TIPS=yes
1416 DEFAULT_wxUSE_PROGRESSDLG=yes
1417 DEFAULT_wxUSE_MINIFRAME=yes
1418 DEFAULT_wxUSE_HTML=yes
1419 DEFAULT_wxUSE_FS_INET=yes
1420 DEFAULT_wxUSE_FS_ZIP=yes
1421 DEFAULT_wxUSE_BUSYINFO=yes
1422 DEFAULT_wxUSE_ZIPSTREAM=yes
1423 DEFAULT_wxUSE_VALIDATORS=yes
1424
1425 DEFAULT_wxUSE_ACCEL=yes
1426 DEFAULT_wxUSE_CARET=yes
1427 DEFAULT_wxUSE_BMPBUTTON=yes
1428 DEFAULT_wxUSE_CHECKBOX=yes
1429 DEFAULT_wxUSE_CHECKLST=yes
1430 DEFAULT_wxUSE_CHOICE=yes
1431 DEFAULT_wxUSE_COMBOBOX=yes
1432 DEFAULT_wxUSE_GAUGE=yes
1433 DEFAULT_wxUSE_GRID=yes
1434 DEFAULT_wxUSE_NEW_GRID=yes
1435 DEFAULT_wxUSE_IMAGLIST=yes
1436 DEFAULT_wxUSE_LISTBOX=yes
1437 DEFAULT_wxUSE_LISTCTRL=yes
1438 DEFAULT_wxUSE_NOTEBOOK=yes
1439 DEFAULT_wxUSE_PLOT=yes
1440 DEFAULT_wxUSE_RADIOBOX=yes
1441 DEFAULT_wxUSE_RADIOBTN=yes
1442 DEFAULT_wxUSE_SASH=yes
1443 DEFAULT_wxUSE_SCROLLBAR=yes
1444 DEFAULT_wxUSE_SLIDER=yes
1445 DEFAULT_wxUSE_SPINBTN=yes
1446 DEFAULT_wxUSE_SPINCTRL=yes
1447 DEFAULT_wxUSE_SPLITTER=yes
1448 DEFAULT_wxUSE_STATBMP=yes
1449 DEFAULT_wxUSE_STATBOX=yes
1450 DEFAULT_wxUSE_STATLINE=yes
1451 DEFAULT_wxUSE_STATUSBAR=yes
1452 DEFAULT_wxUSE_TABDIALOG=no
1453 DEFAULT_wxUSE_TOOLBAR=yes
1454 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1455 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1456 DEFAULT_wxUSE_TREECTRL=yes
1457
1458 DEFAULT_wxUSE_UNICODE=no
1459 DEFAULT_wxUSE_WCSRTOMBS=no
1460
1461 DEFAULT_wxUSE_GIF=yes
1462 DEFAULT_wxUSE_PCX=yes
1463 DEFAULT_wxUSE_PNM=yes
1464 fi
1465
1466
1467
1468 for toolkit in `echo $ALL_TOOLKITS`; do
1469 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1470 if test "x$LINE" != x ; then
1471 has_toolkit_in_cache=1
1472 eval "DEFAULT_$LINE"
1473 eval "CACHE_$toolkit=1"
1474 fi
1475 done
1476
1477
1478
1479 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1480 echo "configure:1481: checking "for --enable-gui"" >&5
1481 no_cache=0
1482 # Check whether --enable-gui or --disable-gui was given.
1483 if test "${enable_gui+set}" = set; then
1484 enableval="$enable_gui"
1485
1486 if test "$enableval" = yes; then
1487 ac_cv_use_gui='wxUSE_GUI=yes'
1488 else
1489 ac_cv_use_gui='wxUSE_GUI=no'
1490 fi
1491
1492 else
1493
1494 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1495 if test "x$LINE" != x ; then
1496 eval "DEFAULT_$LINE"
1497 else
1498 no_cache=1
1499 fi
1500
1501 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1502
1503 fi
1504
1505
1506 eval "$ac_cv_use_gui"
1507 if test "$no_cache" != 1; then
1508 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1509 fi
1510
1511 if test "$wxUSE_GUI" = yes; then
1512 echo "$ac_t""yes" 1>&6
1513 else
1514 echo "$ac_t""no" 1>&6
1515 fi
1516
1517
1518 if test "$wxUSE_GUI" = "yes"; then
1519
1520 # Check whether --with-gtk or --without-gtk was given.
1521 if test "${with_gtk+set}" = set; then
1522 withval="$with_gtk"
1523 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1524 fi
1525
1526 # Check whether --with-motif or --without-motif was given.
1527 if test "${with_motif+set}" = set; then
1528 withval="$with_motif"
1529 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1530 fi
1531
1532 # Check whether --with-wine or --without-wine was given.
1533 if test "${with_wine+set}" = set; then
1534 withval="$with_wine"
1535 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1536 fi
1537
1538 # Check whether --with-cygwin or --without-cygwin was given.
1539 if test "${with_cygwin+set}" = set; then
1540 withval="$with_cygwin"
1541 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1542 fi
1543
1544 # Check whether --with-mingw or --without-mingw was given.
1545 if test "${with_mingw+set}" = set; then
1546 withval="$with_mingw"
1547 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1548 fi
1549
1550 # Check whether --with-pm or --without-pm was given.
1551 if test "${with_pm+set}" = set; then
1552 withval="$with_pm"
1553 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1554 fi
1555
1556
1557 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1558 if test "${with_gtk_prefix+set}" = set; then
1559 withval="$with_gtk_prefix"
1560 gtk_config_prefix="$withval"
1561 else
1562 gtk_config_prefix=""
1563 fi
1564
1565 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1566 if test "${with_gtk_exec_prefix+set}" = set; then
1567 withval="$with_gtk_exec_prefix"
1568 gtk_config_exec_prefix="$withval"
1569 else
1570 gtk_config_exec_prefix=""
1571 fi
1572
1573
1574
1575 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1576 echo "configure:1577: checking "for --with-libpng"" >&5
1577 no_cache=0
1578 # Check whether --with-libpng or --without-libpng was given.
1579 if test "${with_libpng+set}" = set; then
1580 withval="$with_libpng"
1581
1582 if test "$withval" = yes; then
1583 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1584 else
1585 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1586 fi
1587
1588 else
1589
1590 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1591 if test "x$LINE" != x ; then
1592 eval "DEFAULT_$LINE"
1593 else
1594 no_cache=1
1595 fi
1596
1597 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1598
1599 fi
1600
1601
1602 eval "$ac_cv_use_libpng"
1603 if test "$no_cache" != 1; then
1604 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1605 fi
1606
1607 if test "$wxUSE_LIBPNG" = yes; then
1608 echo "$ac_t""yes" 1>&6
1609 else
1610 echo "$ac_t""no" 1>&6
1611 fi
1612
1613
1614 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1615 echo "configure:1616: checking "for --with-libjpeg"" >&5
1616 no_cache=0
1617 # Check whether --with-libjpeg or --without-libjpeg was given.
1618 if test "${with_libjpeg+set}" = set; then
1619 withval="$with_libjpeg"
1620
1621 if test "$withval" = yes; then
1622 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1623 else
1624 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1625 fi
1626
1627 else
1628
1629 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1630 if test "x$LINE" != x ; then
1631 eval "DEFAULT_$LINE"
1632 else
1633 no_cache=1
1634 fi
1635
1636 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1637
1638 fi
1639
1640
1641 eval "$ac_cv_use_libjpeg"
1642 if test "$no_cache" != 1; then
1643 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1644 fi
1645
1646 if test "$wxUSE_LIBJPEG" = yes; then
1647 echo "$ac_t""yes" 1>&6
1648 else
1649 echo "$ac_t""no" 1>&6
1650 fi
1651
1652
1653 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1654 echo "configure:1655: checking "for --with-libtiff"" >&5
1655 no_cache=0
1656 # Check whether --with-libtiff or --without-libtiff was given.
1657 if test "${with_libtiff+set}" = set; then
1658 withval="$with_libtiff"
1659
1660 if test "$withval" = yes; then
1661 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1662 else
1663 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1664 fi
1665
1666 else
1667
1668 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1669 if test "x$LINE" != x ; then
1670 eval "DEFAULT_$LINE"
1671 else
1672 no_cache=1
1673 fi
1674
1675 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1676
1677 fi
1678
1679
1680 eval "$ac_cv_use_libtiff"
1681 if test "$no_cache" != 1; then
1682 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1683 fi
1684
1685 if test "$wxUSE_LIBTIFF" = yes; then
1686 echo "$ac_t""yes" 1>&6
1687 else
1688 echo "$ac_t""no" 1>&6
1689 fi
1690
1691
1692 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1693 echo "configure:1694: checking "for --with-opengl"" >&5
1694 no_cache=0
1695 # Check whether --with-opengl or --without-opengl was given.
1696 if test "${with_opengl+set}" = set; then
1697 withval="$with_opengl"
1698
1699 if test "$withval" = yes; then
1700 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1701 else
1702 ac_cv_use_opengl='wxUSE_OPENGL=no'
1703 fi
1704
1705 else
1706
1707 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1708 if test "x$LINE" != x ; then
1709 eval "DEFAULT_$LINE"
1710 else
1711 no_cache=1
1712 fi
1713
1714 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1715
1716 fi
1717
1718
1719 eval "$ac_cv_use_opengl"
1720 if test "$no_cache" != 1; then
1721 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1722 fi
1723
1724 if test "$wxUSE_OPENGL" = yes; then
1725 echo "$ac_t""yes" 1>&6
1726 else
1727 echo "$ac_t""no" 1>&6
1728 fi
1729
1730
1731 fi
1732
1733
1734 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1735 echo "configure:1736: checking "for --with-dmalloc"" >&5
1736 no_cache=0
1737 # Check whether --with-dmalloc or --without-dmalloc was given.
1738 if test "${with_dmalloc+set}" = set; then
1739 withval="$with_dmalloc"
1740
1741 if test "$withval" = yes; then
1742 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1743 else
1744 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1745 fi
1746
1747 else
1748
1749 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1750 if test "x$LINE" != x ; then
1751 eval "DEFAULT_$LINE"
1752 else
1753 no_cache=1
1754 fi
1755
1756 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1757
1758 fi
1759
1760
1761 eval "$ac_cv_use_dmalloc"
1762 if test "$no_cache" != 1; then
1763 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1764 fi
1765
1766 if test "$wxUSE_DMALLOC" = yes; then
1767 echo "$ac_t""yes" 1>&6
1768 else
1769 echo "$ac_t""no" 1>&6
1770 fi
1771
1772
1773 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1774 echo "configure:1775: checking "for --with-zlib"" >&5
1775 no_cache=0
1776 # Check whether --with-zlib or --without-zlib was given.
1777 if test "${with_zlib+set}" = set; then
1778 withval="$with_zlib"
1779
1780 if test "$withval" = yes; then
1781 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1782 else
1783 ac_cv_use_zlib='wxUSE_ZLIB=no'
1784 fi
1785
1786 else
1787
1788 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1789 if test "x$LINE" != x ; then
1790 eval "DEFAULT_$LINE"
1791 else
1792 no_cache=1
1793 fi
1794
1795 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1796
1797 fi
1798
1799
1800 eval "$ac_cv_use_zlib"
1801 if test "$no_cache" != 1; then
1802 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1803 fi
1804
1805 if test "$wxUSE_ZLIB" = yes; then
1806 echo "$ac_t""yes" 1>&6
1807 else
1808 echo "$ac_t""no" 1>&6
1809 fi
1810
1811
1812 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1813 echo "configure:1814: checking "for --with-odbc"" >&5
1814 no_cache=0
1815 # Check whether --with-odbc or --without-odbc was given.
1816 if test "${with_odbc+set}" = set; then
1817 withval="$with_odbc"
1818
1819 if test "$withval" = yes; then
1820 ac_cv_use_odbc='wxUSE_ODBC=yes'
1821 else
1822 ac_cv_use_odbc='wxUSE_ODBC=no'
1823 fi
1824
1825 else
1826
1827 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
1834 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1835
1836 fi
1837
1838
1839 eval "$ac_cv_use_odbc"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_ODBC" = yes; then
1845 echo "$ac_t""yes" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849
1850
1851
1852
1853
1854 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1855 echo "configure:1856: checking "for --enable-shared"" >&5
1856 no_cache=0
1857 # Check whether --enable-shared or --disable-shared was given.
1858 if test "${enable_shared+set}" = set; then
1859 enableval="$enable_shared"
1860
1861 if test "$enableval" = yes; then
1862 ac_cv_use_shared='wxUSE_SHARED=yes'
1863 else
1864 ac_cv_use_shared='wxUSE_SHARED=no'
1865 fi
1866
1867 else
1868
1869 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1877
1878 fi
1879
1880
1881 eval "$ac_cv_use_shared"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_SHARED" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892
1893 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
1894 echo "configure:1895: checking "for --enable-burnt_name"" >&5
1895 no_cache=0
1896 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1897 if test "${enable_burnt_name+set}" = set; then
1898 enableval="$enable_burnt_name"
1899
1900 if test "$enableval" = yes; then
1901 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1902 else
1903 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1904 fi
1905
1906 else
1907
1908 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1909 if test "x$LINE" != x ; then
1910 eval "DEFAULT_$LINE"
1911 else
1912 no_cache=1
1913 fi
1914
1915 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1916
1917 fi
1918
1919
1920 eval "$ac_cv_use_burnt_name"
1921 if test "$no_cache" != 1; then
1922 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1923 fi
1924
1925 if test "$wxUSE_BURNT_NAME" = yes; then
1926 echo "$ac_t""yes" 1>&6
1927 else
1928 echo "$ac_t""no" 1>&6
1929 fi
1930
1931
1932 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1933 echo "configure:1934: checking "for --enable-optimise"" >&5
1934 no_cache=0
1935 # Check whether --enable-optimise or --disable-optimise was given.
1936 if test "${enable_optimise+set}" = set; then
1937 enableval="$enable_optimise"
1938
1939 if test "$enableval" = yes; then
1940 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1941 else
1942 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1943 fi
1944
1945 else
1946
1947 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1948 if test "x$LINE" != x ; then
1949 eval "DEFAULT_$LINE"
1950 else
1951 no_cache=1
1952 fi
1953
1954 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1955
1956 fi
1957
1958
1959 eval "$ac_cv_use_optimise"
1960 if test "$no_cache" != 1; then
1961 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1962 fi
1963
1964 if test "$wxUSE_OPTIMISE" = yes; then
1965 echo "$ac_t""yes" 1>&6
1966 else
1967 echo "$ac_t""no" 1>&6
1968 fi
1969
1970
1971 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1972 echo "configure:1973: checking "for --enable-debug"" >&5
1973 no_cache=0
1974 # Check whether --enable-debug or --disable-debug was given.
1975 if test "${enable_debug+set}" = set; then
1976 enableval="$enable_debug"
1977
1978 if test "$enableval" = yes; then
1979 ac_cv_use_debug='wxUSE_DEBUG=yes'
1980 else
1981 ac_cv_use_debug='wxUSE_DEBUG=no'
1982 fi
1983
1984 else
1985
1986 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1987 if test "x$LINE" != x ; then
1988 eval "DEFAULT_$LINE"
1989 else
1990 no_cache=1
1991 fi
1992
1993 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1994
1995 fi
1996
1997
1998 eval "$ac_cv_use_debug"
1999 if test "$no_cache" != 1; then
2000 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2001 fi
2002
2003 if test "$wxUSE_DEBUG" = yes; then
2004 echo "$ac_t""yes" 1>&6
2005 else
2006 echo "$ac_t""no" 1>&6
2007 fi
2008
2009
2010 if test "$wxUSE_DEBUG" = "yes"; then
2011 DEFAULT_wxUSE_DEBUG_FLAG=yes
2012 DEFAULT_wxUSE_DEBUG_INFO=yes
2013 elif test "$wxUSE_DEBUG" = "no"; then
2014 DEFAULT_wxUSE_DEBUG_FLAG=no
2015 DEFAULT_wxUSE_DEBUG_INFO=no
2016 fi
2017
2018
2019 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2020 echo "configure:2021: checking "for --enable-debug_flag"" >&5
2021 no_cache=0
2022 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2023 if test "${enable_debug_flag+set}" = set; then
2024 enableval="$enable_debug_flag"
2025
2026 if test "$enableval" = yes; then
2027 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2028 else
2029 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2030 fi
2031
2032 else
2033
2034 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2035 if test "x$LINE" != x ; then
2036 eval "DEFAULT_$LINE"
2037 else
2038 no_cache=1
2039 fi
2040
2041 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2042
2043 fi
2044
2045
2046 eval "$ac_cv_use_debug_flag"
2047 if test "$no_cache" != 1; then
2048 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2049 fi
2050
2051 if test "$wxUSE_DEBUG_FLAG" = yes; then
2052 echo "$ac_t""yes" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2055 fi
2056
2057
2058 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2059 echo "configure:2060: checking "for --enable-debug_info"" >&5
2060 no_cache=0
2061 # Check whether --enable-debug_info or --disable-debug_info was given.
2062 if test "${enable_debug_info+set}" = set; then
2063 enableval="$enable_debug_info"
2064
2065 if test "$enableval" = yes; then
2066 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2067 else
2068 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2069 fi
2070
2071 else
2072
2073 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
2080 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2081
2082 fi
2083
2084
2085 eval "$ac_cv_use_debug_info"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_DEBUG_INFO" = yes; then
2091 echo "$ac_t""yes" 1>&6
2092 else
2093 echo "$ac_t""no" 1>&6
2094 fi
2095
2096
2097 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2098 echo "configure:2099: checking "for --enable-debug_gdb"" >&5
2099 no_cache=0
2100 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2101 if test "${enable_debug_gdb+set}" = set; then
2102 enableval="$enable_debug_gdb"
2103
2104 if test "$enableval" = yes; then
2105 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2106 else
2107 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2108 fi
2109
2110 else
2111
2112 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2113 if test "x$LINE" != x ; then
2114 eval "DEFAULT_$LINE"
2115 else
2116 no_cache=1
2117 fi
2118
2119 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2120
2121 fi
2122
2123
2124 eval "$ac_cv_use_debug_gdb"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_DEBUG_GDB" = yes; then
2130 echo "$ac_t""yes" 1>&6
2131 else
2132 echo "$ac_t""no" 1>&6
2133 fi
2134
2135
2136 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2137 echo "configure:2138: checking "for --enable-debug_cntxt"" >&5
2138 no_cache=0
2139 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2140 if test "${enable_debug_cntxt+set}" = set; then
2141 enableval="$enable_debug_cntxt"
2142
2143 if test "$enableval" = yes; then
2144 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2145 else
2146 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2147 fi
2148
2149 else
2150
2151 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2152 if test "x$LINE" != x ; then
2153 eval "DEFAULT_$LINE"
2154 else
2155 no_cache=1
2156 fi
2157
2158 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2159
2160 fi
2161
2162
2163 eval "$ac_cv_use_debug_cntxt"
2164 if test "$no_cache" != 1; then
2165 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2166 fi
2167
2168 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2169 echo "$ac_t""yes" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2172 fi
2173
2174
2175 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2176 echo "configure:2177: checking "for --enable-mem_tracing"" >&5
2177 no_cache=0
2178 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2179 if test "${enable_mem_tracing+set}" = set; then
2180 enableval="$enable_mem_tracing"
2181
2182 if test "$enableval" = yes; then
2183 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2184 else
2185 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2186 fi
2187
2188 else
2189
2190 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2191 if test "x$LINE" != x ; then
2192 eval "DEFAULT_$LINE"
2193 else
2194 no_cache=1
2195 fi
2196
2197 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2198
2199 fi
2200
2201
2202 eval "$ac_cv_use_mem_tracing"
2203 if test "$no_cache" != 1; then
2204 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2205 fi
2206
2207 if test "$wxUSE_MEM_TRACING" = yes; then
2208 echo "$ac_t""yes" 1>&6
2209 else
2210 echo "$ac_t""no" 1>&6
2211 fi
2212
2213
2214 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2215 echo "configure:2216: checking "for --enable-profile"" >&5
2216 no_cache=0
2217 # Check whether --enable-profile or --disable-profile was given.
2218 if test "${enable_profile+set}" = set; then
2219 enableval="$enable_profile"
2220
2221 if test "$enableval" = yes; then
2222 ac_cv_use_profile='wxUSE_PROFILE=yes'
2223 else
2224 ac_cv_use_profile='wxUSE_PROFILE=no'
2225 fi
2226
2227 else
2228
2229 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2237
2238 fi
2239
2240
2241 eval "$ac_cv_use_profile"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_PROFILE" = yes; then
2247 echo "$ac_t""yes" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251
2252
2253 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2254 echo "configure:2255: checking "for --enable-no_rtti"" >&5
2255 no_cache=0
2256 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2257 if test "${enable_no_rtti+set}" = set; then
2258 enableval="$enable_no_rtti"
2259
2260 if test "$enableval" = yes; then
2261 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2262 else
2263 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2264 fi
2265
2266 else
2267
2268 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2269 if test "x$LINE" != x ; then
2270 eval "DEFAULT_$LINE"
2271 else
2272 no_cache=1
2273 fi
2274
2275 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2276
2277 fi
2278
2279
2280 eval "$ac_cv_use_no_rtti"
2281 if test "$no_cache" != 1; then
2282 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2283 fi
2284
2285 if test "$wxUSE_NO_RTTI" = yes; then
2286 echo "$ac_t""yes" 1>&6
2287 else
2288 echo "$ac_t""no" 1>&6
2289 fi
2290
2291
2292 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2293 echo "configure:2294: checking "for --enable-no_exceptions"" >&5
2294 no_cache=0
2295 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2296 if test "${enable_no_exceptions+set}" = set; then
2297 enableval="$enable_no_exceptions"
2298
2299 if test "$enableval" = yes; then
2300 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2301 else
2302 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2303 fi
2304
2305 else
2306
2307 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2308 if test "x$LINE" != x ; then
2309 eval "DEFAULT_$LINE"
2310 else
2311 no_cache=1
2312 fi
2313
2314 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2315
2316 fi
2317
2318
2319 eval "$ac_cv_use_no_exceptions"
2320 if test "$no_cache" != 1; then
2321 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2322 fi
2323
2324 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2325 echo "$ac_t""yes" 1>&6
2326 else
2327 echo "$ac_t""no" 1>&6
2328 fi
2329
2330
2331 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2332 echo "configure:2333: checking "for --enable-permissive"" >&5
2333 no_cache=0
2334 # Check whether --enable-permissive or --disable-permissive was given.
2335 if test "${enable_permissive+set}" = set; then
2336 enableval="$enable_permissive"
2337
2338 if test "$enableval" = yes; then
2339 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2340 else
2341 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2342 fi
2343
2344 else
2345
2346 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2347 if test "x$LINE" != x ; then
2348 eval "DEFAULT_$LINE"
2349 else
2350 no_cache=1
2351 fi
2352
2353 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2354
2355 fi
2356
2357
2358 eval "$ac_cv_use_permissive"
2359 if test "$no_cache" != 1; then
2360 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2361 fi
2362
2363 if test "$wxUSE_PERMISSIVE" = yes; then
2364 echo "$ac_t""yes" 1>&6
2365 else
2366 echo "$ac_t""no" 1>&6
2367 fi
2368
2369
2370 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2371 echo "configure:2372: checking "for --enable-no_deps"" >&5
2372 no_cache=0
2373 # Check whether --enable-no_deps or --disable-no_deps was given.
2374 if test "${enable_no_deps+set}" = set; then
2375 enableval="$enable_no_deps"
2376
2377 if test "$enableval" = yes; then
2378 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2379 else
2380 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2381 fi
2382
2383 else
2384
2385 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2386 if test "x$LINE" != x ; then
2387 eval "DEFAULT_$LINE"
2388 else
2389 no_cache=1
2390 fi
2391
2392 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2393
2394 fi
2395
2396
2397 eval "$ac_cv_use_no_deps"
2398 if test "$no_cache" != 1; then
2399 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2400 fi
2401
2402 if test "$wxUSE_NO_DEPS" = yes; then
2403 echo "$ac_t""yes" 1>&6
2404 else
2405 echo "$ac_t""no" 1>&6
2406 fi
2407
2408
2409
2410
2411 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2412 echo "configure:2413: checking "for --enable-intl"" >&5
2413 no_cache=0
2414 # Check whether --enable-intl or --disable-intl was given.
2415 if test "${enable_intl+set}" = set; then
2416 enableval="$enable_intl"
2417
2418 if test "$enableval" = yes; then
2419 ac_cv_use_intl='wxUSE_INTL=yes'
2420 else
2421 ac_cv_use_intl='wxUSE_INTL=no'
2422 fi
2423
2424 else
2425
2426 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2434
2435 fi
2436
2437
2438 eval "$ac_cv_use_intl"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_INTL" = yes; then
2444 echo "$ac_t""yes" 1>&6
2445 else
2446 echo "$ac_t""no" 1>&6
2447 fi
2448
2449
2450 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2451 echo "configure:2452: checking "for --enable-config"" >&5
2452 no_cache=0
2453 # Check whether --enable-config or --disable-config was given.
2454 if test "${enable_config+set}" = set; then
2455 enableval="$enable_config"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_config='wxUSE_CONFIG=yes'
2459 else
2460 ac_cv_use_config='wxUSE_CONFIG=no'
2461 fi
2462
2463 else
2464
2465 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2473
2474 fi
2475
2476
2477 eval "$ac_cv_use_config"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_CONFIG" = yes; then
2483 echo "$ac_t""yes" 1>&6
2484 else
2485 echo "$ac_t""no" 1>&6
2486 fi
2487
2488
2489 if test "$wxUSE_GUI" = "yes"; then
2490
2491 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2492 echo "configure:2493: checking "for --enable-sockets"" >&5
2493 no_cache=0
2494 # Check whether --enable-sockets or --disable-sockets was given.
2495 if test "${enable_sockets+set}" = set; then
2496 enableval="$enable_sockets"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2500 else
2501 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2502 fi
2503
2504 else
2505
2506 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2514
2515 fi
2516
2517
2518 eval "$ac_cv_use_sockets"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_SOCKETS" = yes; then
2524 echo "$ac_t""yes" 1>&6
2525 else
2526 echo "$ac_t""no" 1>&6
2527 fi
2528
2529 else
2530 wxUSE_SOCKETS=no
2531 fi
2532
2533
2534 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2535 echo "configure:2536: checking "for --enable-dialupman"" >&5
2536 no_cache=0
2537 # Check whether --enable-dialupman or --disable-dialupman was given.
2538 if test "${enable_dialupman+set}" = set; then
2539 enableval="$enable_dialupman"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2543 else
2544 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2545 fi
2546
2547 else
2548
2549 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2557
2558 fi
2559
2560
2561 eval "$ac_cv_use_dialupman"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2567 echo "$ac_t""yes" 1>&6
2568 else
2569 echo "$ac_t""no" 1>&6
2570 fi
2571
2572
2573 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2574 echo "configure:2575: checking "for --enable-ipc"" >&5
2575 no_cache=0
2576 # Check whether --enable-ipc or --disable-ipc was given.
2577 if test "${enable_ipc+set}" = set; then
2578 enableval="$enable_ipc"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_ipc='wxUSE_IPC=yes'
2582 else
2583 ac_cv_use_ipc='wxUSE_IPC=no'
2584 fi
2585
2586 else
2587
2588 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2596
2597 fi
2598
2599
2600 eval "$ac_cv_use_ipc"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_IPC" = yes; then
2606 echo "$ac_t""yes" 1>&6
2607 else
2608 echo "$ac_t""no" 1>&6
2609 fi
2610
2611
2612 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2613 echo "configure:2614: checking "for --enable-apple_ieee"" >&5
2614 no_cache=0
2615 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2616 if test "${enable_apple_ieee+set}" = set; then
2617 enableval="$enable_apple_ieee"
2618
2619 if test "$enableval" = yes; then
2620 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2621 else
2622 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2623 fi
2624
2625 else
2626
2627 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2635
2636 fi
2637
2638
2639 eval "$ac_cv_use_apple_ieee"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_APPLE_IEEE" = yes; then
2645 echo "$ac_t""yes" 1>&6
2646 else
2647 echo "$ac_t""no" 1>&6
2648 fi
2649
2650
2651 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2652 echo "configure:2653: checking "for --enable-timedate"" >&5
2653 no_cache=0
2654 # Check whether --enable-timedate or --disable-timedate was given.
2655 if test "${enable_timedate+set}" = set; then
2656 enableval="$enable_timedate"
2657
2658 if test "$enableval" = yes; then
2659 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2660 else
2661 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2662 fi
2663
2664 else
2665
2666 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2667 if test "x$LINE" != x ; then
2668 eval "DEFAULT_$LINE"
2669 else
2670 no_cache=1
2671 fi
2672
2673 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2674
2675 fi
2676
2677
2678 eval "$ac_cv_use_timedate"
2679 if test "$no_cache" != 1; then
2680 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2681 fi
2682
2683 if test "$wxUSE_TIMEDATE" = yes; then
2684 echo "$ac_t""yes" 1>&6
2685 else
2686 echo "$ac_t""no" 1>&6
2687 fi
2688
2689
2690 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2691 echo "configure:2692: checking "for --enable-wave"" >&5
2692 no_cache=0
2693 # Check whether --enable-wave or --disable-wave was given.
2694 if test "${enable_wave+set}" = set; then
2695 enableval="$enable_wave"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_wave='wxUSE_WAVE=yes'
2699 else
2700 ac_cv_use_wave='wxUSE_WAVE=no'
2701 fi
2702
2703 else
2704
2705 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2713
2714 fi
2715
2716
2717 eval "$ac_cv_use_wave"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_WAVE" = yes; then
2723 echo "$ac_t""yes" 1>&6
2724 else
2725 echo "$ac_t""no" 1>&6
2726 fi
2727
2728
2729 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2730 echo "configure:2731: checking "for --enable-fraction"" >&5
2731 no_cache=0
2732 # Check whether --enable-fraction or --disable-fraction was given.
2733 if test "${enable_fraction+set}" = set; then
2734 enableval="$enable_fraction"
2735
2736 if test "$enableval" = yes; then
2737 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2738 else
2739 ac_cv_use_fraction='wxUSE_FRACTION=no'
2740 fi
2741
2742 else
2743
2744 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2745 if test "x$LINE" != x ; then
2746 eval "DEFAULT_$LINE"
2747 else
2748 no_cache=1
2749 fi
2750
2751 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2752
2753 fi
2754
2755
2756 eval "$ac_cv_use_fraction"
2757 if test "$no_cache" != 1; then
2758 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2759 fi
2760
2761 if test "$wxUSE_FRACTION" = yes; then
2762 echo "$ac_t""yes" 1>&6
2763 else
2764 echo "$ac_t""no" 1>&6
2765 fi
2766
2767
2768 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2769 echo "configure:2770: checking "for --enable-dynlib"" >&5
2770 no_cache=0
2771 # Check whether --enable-dynlib or --disable-dynlib was given.
2772 if test "${enable_dynlib+set}" = set; then
2773 enableval="$enable_dynlib"
2774
2775 if test "$enableval" = yes; then
2776 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2777 else
2778 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2779 fi
2780
2781 else
2782
2783 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2784 if test "x$LINE" != x ; then
2785 eval "DEFAULT_$LINE"
2786 else
2787 no_cache=1
2788 fi
2789
2790 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2791
2792 fi
2793
2794
2795 eval "$ac_cv_use_dynlib"
2796 if test "$no_cache" != 1; then
2797 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2798 fi
2799
2800 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2801 echo "$ac_t""yes" 1>&6
2802 else
2803 echo "$ac_t""no" 1>&6
2804 fi
2805
2806
2807 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2808 echo "configure:2809: checking "for --enable-longlong"" >&5
2809 no_cache=0
2810 # Check whether --enable-longlong or --disable-longlong was given.
2811 if test "${enable_longlong+set}" = set; then
2812 enableval="$enable_longlong"
2813
2814 if test "$enableval" = yes; then
2815 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2816 else
2817 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2818 fi
2819
2820 else
2821
2822 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
2829 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2830
2831 fi
2832
2833
2834 eval "$ac_cv_use_longlong"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$wxUSE_LONGLONG" = yes; then
2840 echo "$ac_t""yes" 1>&6
2841 else
2842 echo "$ac_t""no" 1>&6
2843 fi
2844
2845
2846 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2847 echo "configure:2848: checking "for --enable-log"" >&5
2848 no_cache=0
2849 # Check whether --enable-log or --disable-log was given.
2850 if test "${enable_log+set}" = set; then
2851 enableval="$enable_log"
2852
2853 if test "$enableval" = yes; then
2854 ac_cv_use_log='wxUSE_LOG=yes'
2855 else
2856 ac_cv_use_log='wxUSE_LOG=no'
2857 fi
2858
2859 else
2860
2861 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2862 if test "x$LINE" != x ; then
2863 eval "DEFAULT_$LINE"
2864 else
2865 no_cache=1
2866 fi
2867
2868 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2869
2870 fi
2871
2872
2873 eval "$ac_cv_use_log"
2874 if test "$no_cache" != 1; then
2875 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2876 fi
2877
2878 if test "$wxUSE_LOG" = yes; then
2879 echo "$ac_t""yes" 1>&6
2880 else
2881 echo "$ac_t""no" 1>&6
2882 fi
2883
2884
2885 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2886 echo "configure:2887: checking "for --enable-streams"" >&5
2887 no_cache=0
2888 # Check whether --enable-streams or --disable-streams was given.
2889 if test "${enable_streams+set}" = set; then
2890 enableval="$enable_streams"
2891
2892 if test "$enableval" = yes; then
2893 ac_cv_use_streams='wxUSE_STREAMS=yes'
2894 else
2895 ac_cv_use_streams='wxUSE_STREAMS=no'
2896 fi
2897
2898 else
2899
2900 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2901 if test "x$LINE" != x ; then
2902 eval "DEFAULT_$LINE"
2903 else
2904 no_cache=1
2905 fi
2906
2907 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2908
2909 fi
2910
2911
2912 eval "$ac_cv_use_streams"
2913 if test "$no_cache" != 1; then
2914 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2915 fi
2916
2917 if test "$wxUSE_STREAMS" = yes; then
2918 echo "$ac_t""yes" 1>&6
2919 else
2920 echo "$ac_t""no" 1>&6
2921 fi
2922
2923
2924 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2925 echo "configure:2926: checking "for --enable-file"" >&5
2926 no_cache=0
2927 # Check whether --enable-file or --disable-file was given.
2928 if test "${enable_file+set}" = set; then
2929 enableval="$enable_file"
2930
2931 if test "$enableval" = yes; then
2932 ac_cv_use_file='wxUSE_FILE=yes'
2933 else
2934 ac_cv_use_file='wxUSE_FILE=no'
2935 fi
2936
2937 else
2938
2939 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2940 if test "x$LINE" != x ; then
2941 eval "DEFAULT_$LINE"
2942 else
2943 no_cache=1
2944 fi
2945
2946 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2947
2948 fi
2949
2950
2951 eval "$ac_cv_use_file"
2952 if test "$no_cache" != 1; then
2953 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2954 fi
2955
2956 if test "$wxUSE_FILE" = yes; then
2957 echo "$ac_t""yes" 1>&6
2958 else
2959 echo "$ac_t""no" 1>&6
2960 fi
2961
2962
2963 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2964 echo "configure:2965: checking "for --enable-textfile"" >&5
2965 no_cache=0
2966 # Check whether --enable-textfile or --disable-textfile was given.
2967 if test "${enable_textfile+set}" = set; then
2968 enableval="$enable_textfile"
2969
2970 if test "$enableval" = yes; then
2971 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2972 else
2973 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2974 fi
2975
2976 else
2977
2978 LINE=`grep "wxUSE_TEXTFILE" ${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_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2986
2987 fi
2988
2989
2990 eval "$ac_cv_use_textfile"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_TEXTFILE" = 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-unicode"""... $ac_c" 1>&6
3003 echo "configure:3004: checking "for --enable-unicode"" >&5
3004 no_cache=0
3005 # Check whether --enable-unicode or --disable-unicode was given.
3006 if test "${enable_unicode+set}" = set; then
3007 enableval="$enable_unicode"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3011 else
3012 ac_cv_use_unicode='wxUSE_UNICODE=no'
3013 fi
3014
3015 else
3016
3017 LINE=`grep "wxUSE_UNICODE" ${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_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3025
3026 fi
3027
3028
3029 eval "$ac_cv_use_unicode"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_UNICODE" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3042 echo "configure:3043: checking "for --enable-wcsrtombs"" >&5
3043 no_cache=0
3044 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3045 if test "${enable_wcsrtombs+set}" = set; then
3046 enableval="$enable_wcsrtombs"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3050 else
3051 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3052 fi
3053
3054 else
3055
3056 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3064
3065 fi
3066
3067
3068 eval "$ac_cv_use_wcsrtombs"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_WCSRTOMBS" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3081 echo "configure:3082: checking "for --enable-wxprintfv"" >&5
3082 no_cache=0
3083 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3084 if test "${enable_wxprintfv+set}" = set; then
3085 enableval="$enable_wxprintfv"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3089 else
3090 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3091 fi
3092
3093 else
3094
3095 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3103
3104 fi
3105
3106
3107 eval "$ac_cv_use_wxprintfv"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
3119 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3120 echo "configure:3121: checking "for --enable-joystick"" >&5
3121 no_cache=0
3122 # Check whether --enable-joystick or --disable-joystick was given.
3123 if test "${enable_joystick+set}" = set; then
3124 enableval="$enable_joystick"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3128 else
3129 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3130 fi
3131
3132 else
3133
3134 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3142
3143 fi
3144
3145
3146 eval "$ac_cv_use_joystick"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_JOYSTICK" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3159 echo "configure:3160: checking "for --enable-std_iostreams"" >&5
3160 no_cache=0
3161 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3162 if test "${enable_std_iostreams+set}" = set; then
3163 enableval="$enable_std_iostreams"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3167 else
3168 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3169 fi
3170
3171 else
3172
3173 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3181
3182 fi
3183
3184
3185 eval "$ac_cv_use_std_iostreams"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_STD_IOSTREAM" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3198 echo "configure:3199: checking "for --enable-fs_inet"" >&5
3199 no_cache=0
3200 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3201 if test "${enable_fs_inet+set}" = set; then
3202 enableval="$enable_fs_inet"
3203
3204 if test "$enableval" = yes; then
3205 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3206 else
3207 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3208 fi
3209
3210 else
3211
3212 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3220
3221 fi
3222
3223
3224 eval "$ac_cv_use_fs_inet"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_FS_INET" = yes; then
3230 echo "$ac_t""yes" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 fi
3234
3235
3236 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3237 echo "configure:3238: checking "for --enable-fs_zip"" >&5
3238 no_cache=0
3239 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3240 if test "${enable_fs_zip+set}" = set; then
3241 enableval="$enable_fs_zip"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3245 else
3246 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3247 fi
3248
3249 else
3250
3251 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3259
3260 fi
3261
3262
3263 eval "$ac_cv_use_fs_zip"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_FS_ZIP" = yes; then
3269 echo "$ac_t""yes" 1>&6
3270 else
3271 echo "$ac_t""no" 1>&6
3272 fi
3273
3274
3275 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3276 echo "configure:3277: checking "for --enable-zipstream"" >&5
3277 no_cache=0
3278 # Check whether --enable-zipstream or --disable-zipstream was given.
3279 if test "${enable_zipstream+set}" = set; then
3280 enableval="$enable_zipstream"
3281
3282 if test "$enableval" = yes; then
3283 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3284 else
3285 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3286 fi
3287
3288 else
3289
3290 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3298
3299 fi
3300
3301
3302 eval "$ac_cv_use_zipstream"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_ZIPSTREAM" = yes; then
3308 echo "$ac_t""yes" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3311 fi
3312
3313
3314
3315
3316 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3317 echo "configure:3318: checking "for --enable-threads"" >&5
3318 no_cache=0
3319 # Check whether --enable-threads or --disable-threads was given.
3320 if test "${enable_threads+set}" = set; then
3321 enableval="$enable_threads"
3322
3323 if test "$enableval" = yes; then
3324 ac_cv_use_threads='wxUSE_THREADS=yes'
3325 else
3326 ac_cv_use_threads='wxUSE_THREADS=no'
3327 fi
3328
3329 else
3330
3331 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3332 if test "x$LINE" != x ; then
3333 eval "DEFAULT_$LINE"
3334 else
3335 no_cache=1
3336 fi
3337
3338 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3339
3340 fi
3341
3342
3343 eval "$ac_cv_use_threads"
3344 if test "$no_cache" != 1; then
3345 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3346 fi
3347
3348 if test "$wxUSE_THREADS" = yes; then
3349 echo "$ac_t""yes" 1>&6
3350 else
3351 echo "$ac_t""no" 1>&6
3352 fi
3353
3354
3355 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3356 echo "configure:3357: checking "for --enable-serial"" >&5
3357 no_cache=0
3358 # Check whether --enable-serial or --disable-serial was given.
3359 if test "${enable_serial+set}" = set; then
3360 enableval="$enable_serial"
3361
3362 if test "$enableval" = yes; then
3363 ac_cv_use_serial='wxUSE_SERIAL=yes'
3364 else
3365 ac_cv_use_serial='wxUSE_SERIAL=no'
3366 fi
3367
3368 else
3369
3370 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3378
3379 fi
3380
3381
3382 eval "$ac_cv_use_serial"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_SERIAL" = yes; then
3388 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393
3394 if test "$wxUSE_GUI" = "yes"; then
3395
3396
3397
3398 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3399 echo "configure:3400: checking "for --enable-docview"" >&5
3400 no_cache=0
3401 # Check whether --enable-docview or --disable-docview was given.
3402 if test "${enable_docview+set}" = set; then
3403 enableval="$enable_docview"
3404
3405 if test "$enableval" = yes; then
3406 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3407 else
3408 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3409 fi
3410
3411 else
3412
3413 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3421
3422 fi
3423
3424
3425 eval "$ac_cv_use_docview"
3426 if test "$no_cache" != 1; then
3427 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3428 fi
3429
3430 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3431 echo "$ac_t""yes" 1>&6
3432 else
3433 echo "$ac_t""no" 1>&6
3434 fi
3435
3436
3437 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3438 echo "configure:3439: checking "for --enable-help"" >&5
3439 no_cache=0
3440 # Check whether --enable-help or --disable-help was given.
3441 if test "${enable_help+set}" = set; then
3442 enableval="$enable_help"
3443
3444 if test "$enableval" = yes; then
3445 ac_cv_use_help='wxUSE_HELP=yes'
3446 else
3447 ac_cv_use_help='wxUSE_HELP=no'
3448 fi
3449
3450 else
3451
3452 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3453 if test "x$LINE" != x ; then
3454 eval "DEFAULT_$LINE"
3455 else
3456 no_cache=1
3457 fi
3458
3459 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3460
3461 fi
3462
3463
3464 eval "$ac_cv_use_help"
3465 if test "$no_cache" != 1; then
3466 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3467 fi
3468
3469 if test "$wxUSE_HELP" = yes; then
3470 echo "$ac_t""yes" 1>&6
3471 else
3472 echo "$ac_t""no" 1>&6
3473 fi
3474
3475
3476 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3477 echo "configure:3478: checking "for --enable-constraints"" >&5
3478 no_cache=0
3479 # Check whether --enable-constraints or --disable-constraints was given.
3480 if test "${enable_constraints+set}" = set; then
3481 enableval="$enable_constraints"
3482
3483 if test "$enableval" = yes; then
3484 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3485 else
3486 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3487 fi
3488
3489 else
3490
3491 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3492 if test "x$LINE" != x ; then
3493 eval "DEFAULT_$LINE"
3494 else
3495 no_cache=1
3496 fi
3497
3498 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3499
3500 fi
3501
3502
3503 eval "$ac_cv_use_constraints"
3504 if test "$no_cache" != 1; then
3505 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3506 fi
3507
3508 if test "$wxUSE_CONSTRAINTS" = yes; then
3509 echo "$ac_t""yes" 1>&6
3510 else
3511 echo "$ac_t""no" 1>&6
3512 fi
3513
3514
3515 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3516 echo "configure:3517: checking "for --enable-printarch"" >&5
3517 no_cache=0
3518 # Check whether --enable-printarch or --disable-printarch was given.
3519 if test "${enable_printarch+set}" = set; then
3520 enableval="$enable_printarch"
3521
3522 if test "$enableval" = yes; then
3523 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3524 else
3525 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3526 fi
3527
3528 else
3529
3530 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3531 if test "x$LINE" != x ; then
3532 eval "DEFAULT_$LINE"
3533 else
3534 no_cache=1
3535 fi
3536
3537 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3538
3539 fi
3540
3541
3542 eval "$ac_cv_use_printarch"
3543 if test "$no_cache" != 1; then
3544 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3545 fi
3546
3547 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3548 echo "$ac_t""yes" 1>&6
3549 else
3550 echo "$ac_t""no" 1>&6
3551 fi
3552
3553
3554 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3555 echo "configure:3556: checking "for --enable-mdi"" >&5
3556 no_cache=0
3557 # Check whether --enable-mdi or --disable-mdi was given.
3558 if test "${enable_mdi+set}" = set; then
3559 enableval="$enable_mdi"
3560
3561 if test "$enableval" = yes; then
3562 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3563 else
3564 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3565 fi
3566
3567 else
3568
3569 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3570 if test "x$LINE" != x ; then
3571 eval "DEFAULT_$LINE"
3572 else
3573 no_cache=1
3574 fi
3575
3576 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3577
3578 fi
3579
3580
3581 eval "$ac_cv_use_mdi"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3587 echo "$ac_t""yes" 1>&6
3588 else
3589 echo "$ac_t""no" 1>&6
3590 fi
3591
3592
3593
3594 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3595 echo "configure:3596: checking "for --enable-postscript"" >&5
3596 no_cache=0
3597 # Check whether --enable-postscript or --disable-postscript was given.
3598 if test "${enable_postscript+set}" = set; then
3599 enableval="$enable_postscript"
3600
3601 if test "$enableval" = yes; then
3602 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3603 else
3604 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3605 fi
3606
3607 else
3608
3609 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3610 if test "x$LINE" != x ; then
3611 eval "DEFAULT_$LINE"
3612 else
3613 no_cache=1
3614 fi
3615
3616 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3617
3618 fi
3619
3620
3621 eval "$ac_cv_use_postscript"
3622 if test "$no_cache" != 1; then
3623 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3624 fi
3625
3626 if test "$wxUSE_POSTSCRIPT" = yes; then
3627 echo "$ac_t""yes" 1>&6
3628 else
3629 echo "$ac_t""no" 1>&6
3630 fi
3631
3632
3633
3634
3635 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3636 echo "configure:3637: checking "for --enable-prologio"" >&5
3637 no_cache=0
3638 # Check whether --enable-prologio or --disable-prologio was given.
3639 if test "${enable_prologio+set}" = set; then
3640 enableval="$enable_prologio"
3641
3642 if test "$enableval" = yes; then
3643 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3644 else
3645 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3646 fi
3647
3648 else
3649
3650 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3651 if test "x$LINE" != x ; then
3652 eval "DEFAULT_$LINE"
3653 else
3654 no_cache=1
3655 fi
3656
3657 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3658
3659 fi
3660
3661
3662 eval "$ac_cv_use_prologio"
3663 if test "$no_cache" != 1; then
3664 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3665 fi
3666
3667 if test "$wxUSE_PROLOGIO" = yes; then
3668 echo "$ac_t""yes" 1>&6
3669 else
3670 echo "$ac_t""no" 1>&6
3671 fi
3672
3673
3674 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3675 echo "configure:3676: checking "for --enable-resources"" >&5
3676 no_cache=0
3677 # Check whether --enable-resources or --disable-resources was given.
3678 if test "${enable_resources+set}" = set; then
3679 enableval="$enable_resources"
3680
3681 if test "$enableval" = yes; then
3682 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3683 else
3684 ac_cv_use_resources='wxUSE_RESOURCES=no'
3685 fi
3686
3687 else
3688
3689 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3690 if test "x$LINE" != x ; then
3691 eval "DEFAULT_$LINE"
3692 else
3693 no_cache=1
3694 fi
3695
3696 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3697
3698 fi
3699
3700
3701 eval "$ac_cv_use_resources"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_RESOURCES" = yes; then
3707 echo "$ac_t""yes" 1>&6
3708 else
3709 echo "$ac_t""no" 1>&6
3710 fi
3711
3712
3713
3714 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3715 echo "configure:3716: checking "for --enable-xresources"" >&5
3716 no_cache=0
3717 # Check whether --enable-xresources or --disable-xresources was given.
3718 if test "${enable_xresources+set}" = set; then
3719 enableval="$enable_xresources"
3720
3721 if test "$enableval" = yes; then
3722 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3723 else
3724 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3725 fi
3726
3727 else
3728
3729 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3730 if test "x$LINE" != x ; then
3731 eval "DEFAULT_$LINE"
3732 else
3733 no_cache=1
3734 fi
3735
3736 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3737
3738 fi
3739
3740
3741 eval "$ac_cv_use_xresources"
3742 if test "$no_cache" != 1; then
3743 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3744 fi
3745
3746 if test "$wxUSE_X_RESOURCES" = yes; then
3747 echo "$ac_t""yes" 1>&6
3748 else
3749 echo "$ac_t""no" 1>&6
3750 fi
3751
3752
3753
3754
3755 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3756 echo "configure:3757: checking "for --enable-clipboard"" >&5
3757 no_cache=0
3758 # Check whether --enable-clipboard or --disable-clipboard was given.
3759 if test "${enable_clipboard+set}" = set; then
3760 enableval="$enable_clipboard"
3761
3762 if test "$enableval" = yes; then
3763 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3764 else
3765 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3766 fi
3767
3768 else
3769
3770 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3771 if test "x$LINE" != x ; then
3772 eval "DEFAULT_$LINE"
3773 else
3774 no_cache=1
3775 fi
3776
3777 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3778
3779 fi
3780
3781
3782 eval "$ac_cv_use_clipboard"
3783 if test "$no_cache" != 1; then
3784 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3785 fi
3786
3787 if test "$wxUSE_CLIPBOARD" = yes; then
3788 echo "$ac_t""yes" 1>&6
3789 else
3790 echo "$ac_t""no" 1>&6
3791 fi
3792
3793
3794 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3795 echo "configure:3796: checking "for --enable-dnd"" >&5
3796 no_cache=0
3797 # Check whether --enable-dnd or --disable-dnd was given.
3798 if test "${enable_dnd+set}" = set; then
3799 enableval="$enable_dnd"
3800
3801 if test "$enableval" = yes; then
3802 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3803 else
3804 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3805 fi
3806
3807 else
3808
3809 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3810 if test "x$LINE" != x ; then
3811 eval "DEFAULT_$LINE"
3812 else
3813 no_cache=1
3814 fi
3815
3816 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3817
3818 fi
3819
3820
3821 eval "$ac_cv_use_dnd"
3822 if test "$no_cache" != 1; then
3823 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3824 fi
3825
3826 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3827 echo "$ac_t""yes" 1>&6
3828 else
3829 echo "$ac_t""no" 1>&6
3830 fi
3831
3832
3833
3834 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3835 echo "configure:3836: checking "for --enable-wxtree"" >&5
3836 no_cache=0
3837 # Check whether --enable-wxtree or --disable-wxtree was given.
3838 if test "${enable_wxtree+set}" = set; then
3839 enableval="$enable_wxtree"
3840
3841 if test "$enableval" = yes; then
3842 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3843 else
3844 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3845 fi
3846
3847 else
3848
3849 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3857
3858 fi
3859
3860
3861 eval "$ac_cv_use_wxtree"
3862 if test "$no_cache" != 1; then
3863 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3864 fi
3865
3866 if test "$wxUSE_WXTREE" = yes; then
3867 echo "$ac_t""yes" 1>&6
3868 else
3869 echo "$ac_t""no" 1>&6
3870 fi
3871
3872
3873
3874
3875 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3876 echo "configure:3877: checking "for --enable-controls"" >&5
3877 no_cache=0
3878 # Check whether --enable-controls or --disable-controls was given.
3879 if test "${enable_controls+set}" = set; then
3880 enableval="$enable_controls"
3881
3882 if test "$enableval" = yes; then
3883 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3884 else
3885 ac_cv_use_controls='wxUSE_CONTROLS=no'
3886 fi
3887
3888 else
3889
3890 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3898
3899 fi
3900
3901
3902 eval "$ac_cv_use_controls"
3903 if test "$no_cache" != 1; then
3904 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3905 fi
3906
3907 if test "$wxUSE_CONTROLS" = yes; then
3908 echo "$ac_t""yes" 1>&6
3909 else
3910 echo "$ac_t""no" 1>&6
3911 fi
3912
3913
3914 if test "$wxUSE_CONTROLS" = "yes"; then
3915 DEFAULT_wxUSE_ACCEL=yes
3916 DEFAULT_wxUSE_CARET=yes
3917 DEFAULT_wxUSE_COMBOBOX=yes
3918 DEFAULT_wxUSE_BMPBUTTON=yes
3919 DEFAULT_wxUSE_CHECKBOX=yes
3920 DEFAULT_wxUSE_CHECKLISTBOX=yes
3921 DEFAULT_wxUSE_CHOICE=yes
3922 DEFAULT_wxUSE_GAUGE=yes
3923 DEFAULT_wxUSE_GRID=yes
3924 DEFAULT_wxUSE_NEW_GRID=yes
3925 DEFAULT_wxUSE_IMAGLIST=yes
3926 DEFAULT_wxUSE_LISTBOX=yes
3927 DEFAULT_wxUSE_LISTCTRL=yes
3928 DEFAULT_wxUSE_NOTEBOOK=yes
3929 DEFAULT_wxUSE_RADIOBOX=yes
3930 DEFAULT_wxUSE_RADIOBTN=yes
3931 DEFAULT_wxUSE_SASH=yes
3932 DEFAULT_wxUSE_SCROLLBAR=yes
3933 DEFAULT_wxUSE_SLIDER=yes
3934 DEFAULT_wxUSE_SPINBTN=yes
3935 DEFAULT_wxUSE_SPINCTRL=yes
3936 DEFAULT_wxUSE_SPLITTER=yes
3937 DEFAULT_wxUSE_STATBMP=yes
3938 DEFAULT_wxUSE_STATBOX=yes
3939 DEFAULT_wxUSE_STATLINE=yes
3940 DEFAULT_wxUSE_STATUSBAR=yes
3941 DEFAULT_wxUSE_TAB_DIALOG=yes
3942 DEFAULT_wxUSE_TOOLBAR=yes
3943 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3944 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
3945 DEFAULT_wxUSE_TOOLTIPS=yes
3946 DEFAULT_wxUSE_TREECTRL=yes
3947 elif test "$wxUSE_CONTROLS" = "no"; then
3948 DEFAULT_wxUSE_ACCEL=no
3949 DEFAULT_wxUSE_CARET=no
3950 DEFAULT_wxUSE_COMBOBOX=no
3951 DEFAULT_wxUSE_BMPBUTTON=no
3952 DEFAULT_wxUSE_CHECKBOX=no
3953 DEFAULT_wxUSE_CHECKLISTBOX=no
3954 DEFAULT_wxUSE_CHOICE=no
3955 DEFAULT_wxUSE_GAUGE=no
3956 DEFAULT_wxUSE_GRID=no
3957 DEFAULT_wxUSE_NEW_GRID=no
3958 DEFAULT_wxUSE_IMAGLIST=no
3959 DEFAULT_wxUSE_LISTBOX=no
3960 DEFAULT_wxUSE_LISTCTRL=no
3961 DEFAULT_wxUSE_NOTEBOOK=no
3962 DEFAULT_wxUSE_RADIOBOX=no
3963 DEFAULT_wxUSE_RADIOBTN=no
3964 DEFAULT_wxUSE_SASH=no
3965 DEFAULT_wxUSE_SCROLLBAR=no
3966 DEFAULT_wxUSE_SLIDER=no
3967 DEFAULT_wxUSE_SPINBTN=no
3968 DEFAULT_wxUSE_SPINCTRL=no
3969 DEFAULT_wxUSE_SPLITTER=no
3970 DEFAULT_wxUSE_STATBMP=no
3971 DEFAULT_wxUSE_STATBOX=no
3972 DEFAULT_wxUSE_STATLINE=no
3973 DEFAULT_wxUSE_STATUSBAR=no
3974 DEFAULT_wxUSE_TAB_DIALOG=no
3975 DEFAULT_wxUSE_TOOLBAR=no
3976 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3977 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
3978 DEFAULT_wxUSE_TOOLTIPS=no
3979 DEFAULT_wxUSE_TREECTRL=no
3980 fi
3981
3982
3983 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
3984 echo "configure:3985: checking "for --enable-accel"" >&5
3985 no_cache=0
3986 # Check whether --enable-accel or --disable-accel was given.
3987 if test "${enable_accel+set}" = set; then
3988 enableval="$enable_accel"
3989
3990 if test "$enableval" = yes; then
3991 ac_cv_use_accel='wxUSE_ACCEL=yes'
3992 else
3993 ac_cv_use_accel='wxUSE_ACCEL=no'
3994 fi
3995
3996 else
3997
3998 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4006
4007 fi
4008
4009
4010 eval "$ac_cv_use_accel"
4011 if test "$no_cache" != 1; then
4012 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4013 fi
4014
4015 if test "$wxUSE_ACCEL" = yes; then
4016 echo "$ac_t""yes" 1>&6
4017 else
4018 echo "$ac_t""no" 1>&6
4019 fi
4020
4021
4022 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4023 echo "configure:4024: checking "for --enable-caret"" >&5
4024 no_cache=0
4025 # Check whether --enable-caret or --disable-caret was given.
4026 if test "${enable_caret+set}" = set; then
4027 enableval="$enable_caret"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_caret='wxUSE_CARET=yes'
4031 else
4032 ac_cv_use_caret='wxUSE_CARET=no'
4033 fi
4034
4035 else
4036
4037 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4045
4046 fi
4047
4048
4049 eval "$ac_cv_use_caret"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_CARET" = yes; then
4055 echo "$ac_t""yes" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059
4060
4061 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4062 echo "configure:4063: checking "for --enable-bmpbutton"" >&5
4063 no_cache=0
4064 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4065 if test "${enable_bmpbutton+set}" = set; then
4066 enableval="$enable_bmpbutton"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4070 else
4071 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4072 fi
4073
4074 else
4075
4076 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4084
4085 fi
4086
4087
4088 eval "$ac_cv_use_bmpbutton"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_BMPBUTTON" = yes; then
4094 echo "$ac_t""yes" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4101 echo "configure:4102: checking "for --enable-checkbox"" >&5
4102 no_cache=0
4103 # Check whether --enable-checkbox or --disable-checkbox was given.
4104 if test "${enable_checkbox+set}" = set; then
4105 enableval="$enable_checkbox"
4106
4107 if test "$enableval" = yes; then
4108 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4109 else
4110 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4111 fi
4112
4113 else
4114
4115 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4116 if test "x$LINE" != x ; then
4117 eval "DEFAULT_$LINE"
4118 else
4119 no_cache=1
4120 fi
4121
4122 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4123
4124 fi
4125
4126
4127 eval "$ac_cv_use_checkbox"
4128 if test "$no_cache" != 1; then
4129 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4130 fi
4131
4132 if test "$wxUSE_CHECKBOX" = yes; then
4133 echo "$ac_t""yes" 1>&6
4134 else
4135 echo "$ac_t""no" 1>&6
4136 fi
4137
4138
4139 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4140 echo "configure:4141: checking "for --enable-checklst"" >&5
4141 no_cache=0
4142 # Check whether --enable-checklst or --disable-checklst was given.
4143 if test "${enable_checklst+set}" = set; then
4144 enableval="$enable_checklst"
4145
4146 if test "$enableval" = yes; then
4147 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4148 else
4149 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4150 fi
4151
4152 else
4153
4154 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4155 if test "x$LINE" != x ; then
4156 eval "DEFAULT_$LINE"
4157 else
4158 no_cache=1
4159 fi
4160
4161 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4162
4163 fi
4164
4165
4166 eval "$ac_cv_use_checklst"
4167 if test "$no_cache" != 1; then
4168 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4169 fi
4170
4171 if test "$wxUSE_CHECKLST" = yes; then
4172 echo "$ac_t""yes" 1>&6
4173 else
4174 echo "$ac_t""no" 1>&6
4175 fi
4176
4177
4178 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4179 echo "configure:4180: checking "for --enable-choice"" >&5
4180 no_cache=0
4181 # Check whether --enable-choice or --disable-choice was given.
4182 if test "${enable_choice+set}" = set; then
4183 enableval="$enable_choice"
4184
4185 if test "$enableval" = yes; then
4186 ac_cv_use_choice='wxUSE_CHOICE=yes'
4187 else
4188 ac_cv_use_choice='wxUSE_CHOICE=no'
4189 fi
4190
4191 else
4192
4193 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4201
4202 fi
4203
4204
4205 eval "$ac_cv_use_choice"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_CHOICE" = yes; then
4211 echo "$ac_t""yes" 1>&6
4212 else
4213 echo "$ac_t""no" 1>&6
4214 fi
4215
4216
4217 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4218 echo "configure:4219: checking "for --enable-combobox"" >&5
4219 no_cache=0
4220 # Check whether --enable-combobox or --disable-combobox was given.
4221 if test "${enable_combobox+set}" = set; then
4222 enableval="$enable_combobox"
4223
4224 if test "$enableval" = yes; then
4225 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4226 else
4227 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4228 fi
4229
4230 else
4231
4232 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4240
4241 fi
4242
4243
4244 eval "$ac_cv_use_combobox"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_COMBOBOX" = yes; then
4250 echo "$ac_t""yes" 1>&6
4251 else
4252 echo "$ac_t""no" 1>&6
4253 fi
4254
4255
4256 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4257 echo "configure:4258: checking "for --enable-gauge"" >&5
4258 no_cache=0
4259 # Check whether --enable-gauge or --disable-gauge was given.
4260 if test "${enable_gauge+set}" = set; then
4261 enableval="$enable_gauge"
4262
4263 if test "$enableval" = yes; then
4264 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4265 else
4266 ac_cv_use_gauge='wxUSE_GAUGE=no'
4267 fi
4268
4269 else
4270
4271 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4279
4280 fi
4281
4282
4283 eval "$ac_cv_use_gauge"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_GAUGE" = yes; then
4289 echo "$ac_t""yes" 1>&6
4290 else
4291 echo "$ac_t""no" 1>&6
4292 fi
4293
4294
4295 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4296 echo "configure:4297: checking "for --enable-grid"" >&5
4297 no_cache=0
4298 # Check whether --enable-grid or --disable-grid was given.
4299 if test "${enable_grid+set}" = set; then
4300 enableval="$enable_grid"
4301
4302 if test "$enableval" = yes; then
4303 ac_cv_use_grid='wxUSE_GRID=yes'
4304 else
4305 ac_cv_use_grid='wxUSE_GRID=no'
4306 fi
4307
4308 else
4309
4310 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4311 if test "x$LINE" != x ; then
4312 eval "DEFAULT_$LINE"
4313 else
4314 no_cache=1
4315 fi
4316
4317 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4318
4319 fi
4320
4321
4322 eval "$ac_cv_use_grid"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_GRID" = yes; then
4328 echo "$ac_t""yes" 1>&6
4329 else
4330 echo "$ac_t""no" 1>&6
4331 fi
4332
4333
4334 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4335 echo "configure:4336: checking "for --enable-newgrid"" >&5
4336 no_cache=0
4337 # Check whether --enable-newgrid or --disable-newgrid was given.
4338 if test "${enable_newgrid+set}" = set; then
4339 enableval="$enable_newgrid"
4340
4341 if test "$enableval" = yes; then
4342 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4343 else
4344 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4345 fi
4346
4347 else
4348
4349 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4350 if test "x$LINE" != x ; then
4351 eval "DEFAULT_$LINE"
4352 else
4353 no_cache=1
4354 fi
4355
4356 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4357
4358 fi
4359
4360
4361 eval "$ac_cv_use_newgrid"
4362 if test "$no_cache" != 1; then
4363 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4364 fi
4365
4366 if test "$wxUSE_NEW_GRID" = yes; then
4367 echo "$ac_t""yes" 1>&6
4368 else
4369 echo "$ac_t""no" 1>&6
4370 fi
4371
4372
4373 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4374 echo "configure:4375: checking "for --enable-imaglist"" >&5
4375 no_cache=0
4376 # Check whether --enable-imaglist or --disable-imaglist was given.
4377 if test "${enable_imaglist+set}" = set; then
4378 enableval="$enable_imaglist"
4379
4380 if test "$enableval" = yes; then
4381 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4382 else
4383 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4384 fi
4385
4386 else
4387
4388 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
4395 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4396
4397 fi
4398
4399
4400 eval "$ac_cv_use_imaglist"
4401 if test "$no_cache" != 1; then
4402 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4403 fi
4404
4405 if test "$wxUSE_IMAGLIST" = yes; then
4406 echo "$ac_t""yes" 1>&6
4407 else
4408 echo "$ac_t""no" 1>&6
4409 fi
4410
4411
4412 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4413 echo "configure:4414: checking "for --enable-listbox"" >&5
4414 no_cache=0
4415 # Check whether --enable-listbox or --disable-listbox was given.
4416 if test "${enable_listbox+set}" = set; then
4417 enableval="$enable_listbox"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4421 else
4422 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4423 fi
4424
4425 else
4426
4427 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4435
4436 fi
4437
4438
4439 eval "$ac_cv_use_listbox"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_LISTBOX" = yes; then
4445 echo "$ac_t""yes" 1>&6
4446 else
4447 echo "$ac_t""no" 1>&6
4448 fi
4449
4450
4451 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4452 echo "configure:4453: checking "for --enable-listctrl"" >&5
4453 no_cache=0
4454 # Check whether --enable-listctrl or --disable-listctrl was given.
4455 if test "${enable_listctrl+set}" = set; then
4456 enableval="$enable_listctrl"
4457
4458 if test "$enableval" = yes; then
4459 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4460 else
4461 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4462 fi
4463
4464 else
4465
4466 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4467 if test "x$LINE" != x ; then
4468 eval "DEFAULT_$LINE"
4469 else
4470 no_cache=1
4471 fi
4472
4473 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4474
4475 fi
4476
4477
4478 eval "$ac_cv_use_listctrl"
4479 if test "$no_cache" != 1; then
4480 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4481 fi
4482
4483 if test "$wxUSE_LISTCTRL" = yes; then
4484 echo "$ac_t""yes" 1>&6
4485 else
4486 echo "$ac_t""no" 1>&6
4487 fi
4488
4489
4490 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4491 echo "configure:4492: checking "for --enable-notebook"" >&5
4492 no_cache=0
4493 # Check whether --enable-notebook or --disable-notebook was given.
4494 if test "${enable_notebook+set}" = set; then
4495 enableval="$enable_notebook"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4499 else
4500 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4501 fi
4502
4503 else
4504
4505 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4513
4514 fi
4515
4516
4517 eval "$ac_cv_use_notebook"
4518 if test "$no_cache" != 1; then
4519 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4520 fi
4521
4522 if test "$wxUSE_NOTEBOOK" = yes; then
4523 echo "$ac_t""yes" 1>&6
4524 else
4525 echo "$ac_t""no" 1>&6
4526 fi
4527
4528
4529 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4530 echo "configure:4531: checking "for --enable-radiobox"" >&5
4531 no_cache=0
4532 # Check whether --enable-radiobox or --disable-radiobox was given.
4533 if test "${enable_radiobox+set}" = set; then
4534 enableval="$enable_radiobox"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4538 else
4539 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4540 fi
4541
4542 else
4543
4544 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4552
4553 fi
4554
4555
4556 eval "$ac_cv_use_radiobox"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_RADIOBOX" = yes; then
4562 echo "$ac_t""yes" 1>&6
4563 else
4564 echo "$ac_t""no" 1>&6
4565 fi
4566
4567
4568 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4569 echo "configure:4570: checking "for --enable-radiobtn"" >&5
4570 no_cache=0
4571 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4572 if test "${enable_radiobtn+set}" = set; then
4573 enableval="$enable_radiobtn"
4574
4575 if test "$enableval" = yes; then
4576 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4577 else
4578 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4579 fi
4580
4581 else
4582
4583 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4591
4592 fi
4593
4594
4595 eval "$ac_cv_use_radiobtn"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_RADIOBTN" = yes; then
4601 echo "$ac_t""yes" 1>&6
4602 else
4603 echo "$ac_t""no" 1>&6
4604 fi
4605
4606
4607 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4608 echo "configure:4609: checking "for --enable-sash"" >&5
4609 no_cache=0
4610 # Check whether --enable-sash or --disable-sash was given.
4611 if test "${enable_sash+set}" = set; then
4612 enableval="$enable_sash"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_sash='wxUSE_SASH=yes'
4616 else
4617 ac_cv_use_sash='wxUSE_SASH=no'
4618 fi
4619
4620 else
4621
4622 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4630
4631 fi
4632
4633
4634 eval "$ac_cv_use_sash"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_SASH" = yes; then
4640 echo "$ac_t""yes" 1>&6
4641 else
4642 echo "$ac_t""no" 1>&6
4643 fi
4644
4645
4646 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4647 echo "configure:4648: checking "for --enable-scrollbar"" >&5
4648 no_cache=0
4649 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4650 if test "${enable_scrollbar+set}" = set; then
4651 enableval="$enable_scrollbar"
4652
4653 if test "$enableval" = yes; then
4654 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4655 else
4656 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4657 fi
4658
4659 else
4660
4661 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4662 if test "x$LINE" != x ; then
4663 eval "DEFAULT_$LINE"
4664 else
4665 no_cache=1
4666 fi
4667
4668 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4669
4670 fi
4671
4672
4673 eval "$ac_cv_use_scrollbar"
4674 if test "$no_cache" != 1; then
4675 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4676 fi
4677
4678 if test "$wxUSE_SCROLLBAR" = yes; then
4679 echo "$ac_t""yes" 1>&6
4680 else
4681 echo "$ac_t""no" 1>&6
4682 fi
4683
4684
4685 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4686 echo "configure:4687: checking "for --enable-slider"" >&5
4687 no_cache=0
4688 # Check whether --enable-slider or --disable-slider was given.
4689 if test "${enable_slider+set}" = set; then
4690 enableval="$enable_slider"
4691
4692 if test "$enableval" = yes; then
4693 ac_cv_use_slider='wxUSE_SLIDER=yes'
4694 else
4695 ac_cv_use_slider='wxUSE_SLIDER=no'
4696 fi
4697
4698 else
4699
4700 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
4707 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4708
4709 fi
4710
4711
4712 eval "$ac_cv_use_slider"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_SLIDER" = yes; then
4718 echo "$ac_t""yes" 1>&6
4719 else
4720 echo "$ac_t""no" 1>&6
4721 fi
4722
4723
4724 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4725 echo "configure:4726: checking "for --enable-spinbtn"" >&5
4726 no_cache=0
4727 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4728 if test "${enable_spinbtn+set}" = set; then
4729 enableval="$enable_spinbtn"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4733 else
4734 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4735 fi
4736
4737 else
4738
4739 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4747
4748 fi
4749
4750
4751 eval "$ac_cv_use_spinbtn"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_SPINBTN" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
4763 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
4764 echo "configure:4765: checking "for --enable-spinctrl"" >&5
4765 no_cache=0
4766 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4767 if test "${enable_spinctrl+set}" = set; then
4768 enableval="$enable_spinctrl"
4769
4770 if test "$enableval" = yes; then
4771 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4772 else
4773 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4774 fi
4775
4776 else
4777
4778 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4779 if test "x$LINE" != x ; then
4780 eval "DEFAULT_$LINE"
4781 else
4782 no_cache=1
4783 fi
4784
4785 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4786
4787 fi
4788
4789
4790 eval "$ac_cv_use_spinctrl"
4791 if test "$no_cache" != 1; then
4792 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4793 fi
4794
4795 if test "$wxUSE_SPINCTRL" = yes; then
4796 echo "$ac_t""yes" 1>&6
4797 else
4798 echo "$ac_t""no" 1>&6
4799 fi
4800
4801
4802 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4803 echo "configure:4804: checking "for --enable-splitter"" >&5
4804 no_cache=0
4805 # Check whether --enable-splitter or --disable-splitter was given.
4806 if test "${enable_splitter+set}" = set; then
4807 enableval="$enable_splitter"
4808
4809 if test "$enableval" = yes; then
4810 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4811 else
4812 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4813 fi
4814
4815 else
4816
4817 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4825
4826 fi
4827
4828
4829 eval "$ac_cv_use_splitter"
4830 if test "$no_cache" != 1; then
4831 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4832 fi
4833
4834 if test "$wxUSE_SPLITTER" = yes; then
4835 echo "$ac_t""yes" 1>&6
4836 else
4837 echo "$ac_t""no" 1>&6
4838 fi
4839
4840
4841 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4842 echo "configure:4843: checking "for --enable-statbmp"" >&5
4843 no_cache=0
4844 # Check whether --enable-statbmp or --disable-statbmp was given.
4845 if test "${enable_statbmp+set}" = set; then
4846 enableval="$enable_statbmp"
4847
4848 if test "$enableval" = yes; then
4849 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4850 else
4851 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4852 fi
4853
4854 else
4855
4856 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4857 if test "x$LINE" != x ; then
4858 eval "DEFAULT_$LINE"
4859 else
4860 no_cache=1
4861 fi
4862
4863 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4864
4865 fi
4866
4867
4868 eval "$ac_cv_use_statbmp"
4869 if test "$no_cache" != 1; then
4870 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4871 fi
4872
4873 if test "$wxUSE_STATBMP" = yes; then
4874 echo "$ac_t""yes" 1>&6
4875 else
4876 echo "$ac_t""no" 1>&6
4877 fi
4878
4879
4880 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4881 echo "configure:4882: checking "for --enable-statbox"" >&5
4882 no_cache=0
4883 # Check whether --enable-statbox or --disable-statbox was given.
4884 if test "${enable_statbox+set}" = set; then
4885 enableval="$enable_statbox"
4886
4887 if test "$enableval" = yes; then
4888 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4889 else
4890 ac_cv_use_statbox='wxUSE_STATBOX=no'
4891 fi
4892
4893 else
4894
4895 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4896 if test "x$LINE" != x ; then
4897 eval "DEFAULT_$LINE"
4898 else
4899 no_cache=1
4900 fi
4901
4902 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4903
4904 fi
4905
4906
4907 eval "$ac_cv_use_statbox"
4908 if test "$no_cache" != 1; then
4909 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4910 fi
4911
4912 if test "$wxUSE_STATBOX" = yes; then
4913 echo "$ac_t""yes" 1>&6
4914 else
4915 echo "$ac_t""no" 1>&6
4916 fi
4917
4918
4919 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4920 echo "configure:4921: checking "for --enable-statline"" >&5
4921 no_cache=0
4922 # Check whether --enable-statline or --disable-statline was given.
4923 if test "${enable_statline+set}" = set; then
4924 enableval="$enable_statline"
4925
4926 if test "$enableval" = yes; then
4927 ac_cv_use_statline='wxUSE_STATLINE=yes'
4928 else
4929 ac_cv_use_statline='wxUSE_STATLINE=no'
4930 fi
4931
4932 else
4933
4934 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
4941 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4942
4943 fi
4944
4945
4946 eval "$ac_cv_use_statline"
4947 if test "$no_cache" != 1; then
4948 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4949 fi
4950
4951 if test "$wxUSE_STATLINE" = yes; then
4952 echo "$ac_t""yes" 1>&6
4953 else
4954 echo "$ac_t""no" 1>&6
4955 fi
4956
4957
4958 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
4959 echo "configure:4960: checking "for --enable-statusbar"" >&5
4960 no_cache=0
4961 # Check whether --enable-statusbar or --disable-statusbar was given.
4962 if test "${enable_statusbar+set}" = set; then
4963 enableval="$enable_statusbar"
4964
4965 if test "$enableval" = yes; then
4966 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4967 else
4968 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4969 fi
4970
4971 else
4972
4973 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4974 if test "x$LINE" != x ; then
4975 eval "DEFAULT_$LINE"
4976 else
4977 no_cache=1
4978 fi
4979
4980 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4981
4982 fi
4983
4984
4985 eval "$ac_cv_use_statusbar"
4986 if test "$no_cache" != 1; then
4987 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4988 fi
4989
4990 if test "$wxUSE_STATUSBAR" = yes; then
4991 echo "$ac_t""yes" 1>&6
4992 else
4993 echo "$ac_t""no" 1>&6
4994 fi
4995
4996
4997 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
4998 echo "configure:4999: checking "for --enable-tabdialog"" >&5
4999 no_cache=0
5000 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5001 if test "${enable_tabdialog+set}" = set; then
5002 enableval="$enable_tabdialog"
5003
5004 if test "$enableval" = yes; then
5005 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5006 else
5007 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5008 fi
5009
5010 else
5011
5012 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5013 if test "x$LINE" != x ; then
5014 eval "DEFAULT_$LINE"
5015 else
5016 no_cache=1
5017 fi
5018
5019 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5020
5021 fi
5022
5023
5024 eval "$ac_cv_use_tabdialog"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_TABDIALOG" = yes; then
5030 echo "$ac_t""yes" 1>&6
5031 else
5032 echo "$ac_t""no" 1>&6
5033 fi
5034
5035
5036 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5037 echo "configure:5038: checking "for --enable-toolbar"" >&5
5038 no_cache=0
5039 # Check whether --enable-toolbar or --disable-toolbar was given.
5040 if test "${enable_toolbar+set}" = set; then
5041 enableval="$enable_toolbar"
5042
5043 if test "$enableval" = yes; then
5044 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5045 else
5046 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5047 fi
5048
5049 else
5050
5051 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
5058 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5059
5060 fi
5061
5062
5063 eval "$ac_cv_use_toolbar"
5064 if test "$no_cache" != 1; then
5065 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5066 fi
5067
5068 if test "$wxUSE_TOOLBAR" = yes; then
5069 echo "$ac_t""yes" 1>&6
5070 else
5071 echo "$ac_t""no" 1>&6
5072 fi
5073
5074
5075 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5076 echo "configure:5077: checking "for --enable-tbarnative"" >&5
5077 no_cache=0
5078 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5079 if test "${enable_tbarnative+set}" = set; then
5080 enableval="$enable_tbarnative"
5081
5082 if test "$enableval" = yes; then
5083 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5084 else
5085 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5086 fi
5087
5088 else
5089
5090 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5091 if test "x$LINE" != x ; then
5092 eval "DEFAULT_$LINE"
5093 else
5094 no_cache=1
5095 fi
5096
5097 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5098
5099 fi
5100
5101
5102 eval "$ac_cv_use_tbarnative"
5103 if test "$no_cache" != 1; then
5104 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5105 fi
5106
5107 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5108 echo "$ac_t""yes" 1>&6
5109 else
5110 echo "$ac_t""no" 1>&6
5111 fi
5112
5113
5114 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5115 echo "configure:5116: checking "for --enable-tbarsmpl"" >&5
5116 no_cache=0
5117 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5118 if test "${enable_tbarsmpl+set}" = set; then
5119 enableval="$enable_tbarsmpl"
5120
5121 if test "$enableval" = yes; then
5122 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5123 else
5124 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5125 fi
5126
5127 else
5128
5129 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5130 if test "x$LINE" != x ; then
5131 eval "DEFAULT_$LINE"
5132 else
5133 no_cache=1
5134 fi
5135
5136 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5137
5138 fi
5139
5140
5141 eval "$ac_cv_use_tbarsmpl"
5142 if test "$no_cache" != 1; then
5143 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5144 fi
5145
5146 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5147 echo "$ac_t""yes" 1>&6
5148 else
5149 echo "$ac_t""no" 1>&6
5150 fi
5151
5152
5153 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5154 echo "configure:5155: checking "for --enable-treectrl"" >&5
5155 no_cache=0
5156 # Check whether --enable-treectrl or --disable-treectrl was given.
5157 if test "${enable_treectrl+set}" = set; then
5158 enableval="$enable_treectrl"
5159
5160 if test "$enableval" = yes; then
5161 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5162 else
5163 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5164 fi
5165
5166 else
5167
5168 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5169 if test "x$LINE" != x ; then
5170 eval "DEFAULT_$LINE"
5171 else
5172 no_cache=1
5173 fi
5174
5175 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5176
5177 fi
5178
5179
5180 eval "$ac_cv_use_treectrl"
5181 if test "$no_cache" != 1; then
5182 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5183 fi
5184
5185 if test "$wxUSE_TREECTRL" = yes; then
5186 echo "$ac_t""yes" 1>&6
5187 else
5188 echo "$ac_t""no" 1>&6
5189 fi
5190
5191
5192
5193
5194 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5195 echo "configure:5196: checking "for --enable-commondlg"" >&5
5196 no_cache=0
5197 # Check whether --enable-commondlg or --disable-commondlg was given.
5198 if test "${enable_commondlg+set}" = set; then
5199 enableval="$enable_commondlg"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5203 else
5204 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5205 fi
5206
5207 else
5208
5209 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5217
5218 fi
5219
5220
5221 eval "$ac_cv_use_commondlg"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_COMMONDLGS" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
5233 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5234 echo "configure:5235: checking "for --enable-dirdlg"" >&5
5235 no_cache=0
5236 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5237 if test "${enable_dirdlg+set}" = set; then
5238 enableval="$enable_dirdlg"
5239
5240 if test "$enableval" = yes; then
5241 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5242 else
5243 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5244 fi
5245
5246 else
5247
5248 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5249 if test "x$LINE" != x ; then
5250 eval "DEFAULT_$LINE"
5251 else
5252 no_cache=1
5253 fi
5254
5255 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5256
5257 fi
5258
5259
5260 eval "$ac_cv_use_dirdlg"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_DIRDLG" = yes; then
5266 echo "$ac_t""yes" 1>&6
5267 else
5268 echo "$ac_t""no" 1>&6
5269 fi
5270
5271
5272 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5273 echo "configure:5274: checking "for --enable-textdlg"" >&5
5274 no_cache=0
5275 # Check whether --enable-textdlg or --disable-textdlg was given.
5276 if test "${enable_textdlg+set}" = set; then
5277 enableval="$enable_textdlg"
5278
5279 if test "$enableval" = yes; then
5280 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5281 else
5282 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5283 fi
5284
5285 else
5286
5287 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5288 if test "x$LINE" != x ; then
5289 eval "DEFAULT_$LINE"
5290 else
5291 no_cache=1
5292 fi
5293
5294 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5295
5296 fi
5297
5298
5299 eval "$ac_cv_use_textdlg"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_TEXTDLG" = yes; then
5305 echo "$ac_t""yes" 1>&6
5306 else
5307 echo "$ac_t""no" 1>&6
5308 fi
5309
5310
5311 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5312 echo "configure:5313: checking "for --enable-tipdlg"" >&5
5313 no_cache=0
5314 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5315 if test "${enable_tipdlg+set}" = set; then
5316 enableval="$enable_tipdlg"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5320 else
5321 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5322 fi
5323
5324 else
5325
5326 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5334
5335 fi
5336
5337
5338 eval "$ac_cv_use_tipdlg"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_STARTUP_TIPS" = yes; then
5344 echo "$ac_t""yes" 1>&6
5345 else
5346 echo "$ac_t""no" 1>&6
5347 fi
5348
5349
5350 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5351 echo "configure:5352: checking "for --enable-progressdlg"" >&5
5352 no_cache=0
5353 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5354 if test "${enable_progressdlg+set}" = set; then
5355 enableval="$enable_progressdlg"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5359 else
5360 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5361 fi
5362
5363 else
5364
5365 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5373
5374 fi
5375
5376
5377 eval "$ac_cv_use_progressdlg"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_PROGRESSDLG" = yes; then
5383 echo "$ac_t""yes" 1>&6
5384 else
5385 echo "$ac_t""no" 1>&6
5386 fi
5387
5388
5389 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5390 echo "configure:5391: checking "for --enable-miniframe"" >&5
5391 no_cache=0
5392 # Check whether --enable-miniframe or --disable-miniframe was given.
5393 if test "${enable_miniframe+set}" = set; then
5394 enableval="$enable_miniframe"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5398 else
5399 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5400 fi
5401
5402 else
5403
5404 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5412
5413 fi
5414
5415
5416 eval "$ac_cv_use_miniframe"
5417 if test "$no_cache" != 1; then
5418 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5419 fi
5420
5421 if test "$wxUSE_MINIFRAME" = yes; then
5422 echo "$ac_t""yes" 1>&6
5423 else
5424 echo "$ac_t""no" 1>&6
5425 fi
5426
5427
5428 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5429 echo "configure:5430: checking "for --enable-html"" >&5
5430 no_cache=0
5431 # Check whether --enable-html or --disable-html was given.
5432 if test "${enable_html+set}" = set; then
5433 enableval="$enable_html"
5434
5435 if test "$enableval" = yes; then
5436 ac_cv_use_html='wxUSE_HTML=yes'
5437 else
5438 ac_cv_use_html='wxUSE_HTML=no'
5439 fi
5440
5441 else
5442
5443 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5451
5452 fi
5453
5454
5455 eval "$ac_cv_use_html"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_HTML" = yes; then
5461 echo "$ac_t""yes" 1>&6
5462 else
5463 echo "$ac_t""no" 1>&6
5464 fi
5465
5466
5467 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5468 echo "configure:5469: checking "for --enable-tooltips"" >&5
5469 no_cache=0
5470 # Check whether --enable-tooltips or --disable-tooltips was given.
5471 if test "${enable_tooltips+set}" = set; then
5472 enableval="$enable_tooltips"
5473
5474 if test "$enableval" = yes; then
5475 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5476 else
5477 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5478 fi
5479
5480 else
5481
5482 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5490
5491 fi
5492
5493
5494 eval "$ac_cv_use_tooltips"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_TOOLTIPS" = yes; then
5500 echo "$ac_t""yes" 1>&6
5501 else
5502 echo "$ac_t""no" 1>&6
5503 fi
5504
5505
5506 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5507 echo "configure:5508: checking "for --enable-splines"" >&5
5508 no_cache=0
5509 # Check whether --enable-splines or --disable-splines was given.
5510 if test "${enable_splines+set}" = set; then
5511 enableval="$enable_splines"
5512
5513 if test "$enableval" = yes; then
5514 ac_cv_use_splines='wxUSE_SPLINES=yes'
5515 else
5516 ac_cv_use_splines='wxUSE_SPLINES=no'
5517 fi
5518
5519 else
5520
5521 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5529
5530 fi
5531
5532
5533 eval "$ac_cv_use_splines"
5534 if test "$no_cache" != 1; then
5535 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5536 fi
5537
5538 if test "$wxUSE_SPLINES" = yes; then
5539 echo "$ac_t""yes" 1>&6
5540 else
5541 echo "$ac_t""no" 1>&6
5542 fi
5543
5544
5545 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5546 echo "configure:5547: checking "for --enable-validators"" >&5
5547 no_cache=0
5548 # Check whether --enable-validators or --disable-validators was given.
5549 if test "${enable_validators+set}" = set; then
5550 enableval="$enable_validators"
5551
5552 if test "$enableval" = yes; then
5553 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5554 else
5555 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5556 fi
5557
5558 else
5559
5560 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5561 if test "x$LINE" != x ; then
5562 eval "DEFAULT_$LINE"
5563 else
5564 no_cache=1
5565 fi
5566
5567 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5568
5569 fi
5570
5571
5572 eval "$ac_cv_use_validators"
5573 if test "$no_cache" != 1; then
5574 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5575 fi
5576
5577 if test "$wxUSE_VALIDATORS" = yes; then
5578 echo "$ac_t""yes" 1>&6
5579 else
5580 echo "$ac_t""no" 1>&6
5581 fi
5582
5583
5584 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5585 echo "configure:5586: checking "for --enable-busyinfo"" >&5
5586 no_cache=0
5587 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5588 if test "${enable_busyinfo+set}" = set; then
5589 enableval="$enable_busyinfo"
5590
5591 if test "$enableval" = yes; then
5592 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5593 else
5594 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5595 fi
5596
5597 else
5598
5599 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
5606 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5607
5608 fi
5609
5610
5611 eval "$ac_cv_use_busyinfo"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_BUSYINFO" = yes; then
5617 echo "$ac_t""yes" 1>&6
5618 else
5619 echo "$ac_t""no" 1>&6
5620 fi
5621
5622
5623 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
5624 echo "configure:5625: checking "for --enable-plot"" >&5
5625 no_cache=0
5626 # Check whether --enable-plot or --disable-plot was given.
5627 if test "${enable_plot+set}" = set; then
5628 enableval="$enable_plot"
5629
5630 if test "$enableval" = yes; then
5631 ac_cv_use_plot='wxUSE_PLOT=yes'
5632 else
5633 ac_cv_use_plot='wxUSE_PLOT=no'
5634 fi
5635
5636 else
5637
5638 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5646
5647 fi
5648
5649
5650 eval "$ac_cv_use_plot"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_PLOT" = yes; then
5656 echo "$ac_t""yes" 1>&6
5657 else
5658 echo "$ac_t""no" 1>&6
5659 fi
5660
5661
5662
5663
5664 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5665 echo "configure:5666: checking "for --enable-gif"" >&5
5666 no_cache=0
5667 # Check whether --enable-gif or --disable-gif was given.
5668 if test "${enable_gif+set}" = set; then
5669 enableval="$enable_gif"
5670
5671 if test "$enableval" = yes; then
5672 ac_cv_use_gif='wxUSE_GIF=yes'
5673 else
5674 ac_cv_use_gif='wxUSE_GIF=no'
5675 fi
5676
5677 else
5678
5679 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5680 if test "x$LINE" != x ; then
5681 eval "DEFAULT_$LINE"
5682 else
5683 no_cache=1
5684 fi
5685
5686 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5687
5688 fi
5689
5690
5691 eval "$ac_cv_use_gif"
5692 if test "$no_cache" != 1; then
5693 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5694 fi
5695
5696 if test "$wxUSE_GIF" = yes; then
5697 echo "$ac_t""yes" 1>&6
5698 else
5699 echo "$ac_t""no" 1>&6
5700 fi
5701
5702
5703 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5704 echo "configure:5705: checking "for --enable-pcx"" >&5
5705 no_cache=0
5706 # Check whether --enable-pcx or --disable-pcx was given.
5707 if test "${enable_pcx+set}" = set; then
5708 enableval="$enable_pcx"
5709
5710 if test "$enableval" = yes; then
5711 ac_cv_use_pcx='wxUSE_PCX=yes'
5712 else
5713 ac_cv_use_pcx='wxUSE_PCX=no'
5714 fi
5715
5716 else
5717
5718 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5719 if test "x$LINE" != x ; then
5720 eval "DEFAULT_$LINE"
5721 else
5722 no_cache=1
5723 fi
5724
5725 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5726
5727 fi
5728
5729
5730 eval "$ac_cv_use_pcx"
5731 if test "$no_cache" != 1; then
5732 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5733 fi
5734
5735 if test "$wxUSE_PCX" = yes; then
5736 echo "$ac_t""yes" 1>&6
5737 else
5738 echo "$ac_t""no" 1>&6
5739 fi
5740
5741
5742 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5743 echo "configure:5744: checking "for --enable-pnm"" >&5
5744 no_cache=0
5745 # Check whether --enable-pnm or --disable-pnm was given.
5746 if test "${enable_pnm+set}" = set; then
5747 enableval="$enable_pnm"
5748
5749 if test "$enableval" = yes; then
5750 ac_cv_use_pnm='wxUSE_PNM=yes'
5751 else
5752 ac_cv_use_pnm='wxUSE_PNM=no'
5753 fi
5754
5755 else
5756
5757 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5758 if test "x$LINE" != x ; then
5759 eval "DEFAULT_$LINE"
5760 else
5761 no_cache=1
5762 fi
5763
5764 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5765
5766 fi
5767
5768
5769 eval "$ac_cv_use_pnm"
5770 if test "$no_cache" != 1; then
5771 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5772 fi
5773
5774 if test "$wxUSE_PNM" = yes; then
5775 echo "$ac_t""yes" 1>&6
5776 else
5777 echo "$ac_t""no" 1>&6
5778 fi
5779
5780
5781 fi
5782
5783
5784 echo "saving argument cache $wx_arg_cache_file"
5785 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5786
5787
5788
5789 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5790 echo "configure:5791: checking for toolkit" >&5
5791
5792 if test "$wxUSE_GUI" = "yes"; then
5793
5794 if test "$USE_BEOS" = 1; then
5795 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5796 fi
5797
5798 if test "$TOOLKIT_GIVEN" = 1; then
5799 for toolkit in `echo $ALL_TOOLKITS`; do
5800 var=wxUSE_$toolkit
5801 eval "value=\$${var}"
5802 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5803 done
5804 else
5805 for toolkit in `echo $ALL_TOOLKITS`; do
5806 if test "$has_toolkit_in_cache" != 1; then
5807 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5808 else
5809 var=DEFAULT_wxUSE_$toolkit
5810 fi
5811 eval "wxUSE_$toolkit=\$${var}"
5812 done
5813 fi
5814
5815 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5816
5817 case "${host}" in
5818 *-pc-os2_emx )
5819 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5820 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5821 LEX_STEM="lexyy"
5822 ;;
5823 *)
5824 PATH_IFS=':'
5825 LEX_STEM="lex.yy"
5826 PROGRAM_EXT=
5827 ;;
5828 esac
5829
5830 case "$NUM_TOOLKITS" in
5831 1)
5832 ;;
5833 0)
5834 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5835 ;;
5836 *)
5837 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5838 esac
5839
5840 for toolkit in `echo $ALL_TOOLKITS`; do
5841 var=wxUSE_$toolkit
5842 eval "value=\$${var}"
5843 if test "x$value" != x; then
5844 cache_var=CACHE_$toolkit
5845 eval "cache=\$${cache_var}"
5846 if test "$cache" = 1; then
5847 echo "$var=$value" >> ${wx_arg_cache_file}
5848 fi
5849 if test "$value" = 1; then
5850 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5851 fi
5852 fi
5853 done
5854
5855 else
5856 PATH_IFS=':'
5857 echo "$ac_t""base only" 1>&6
5858 fi
5859
5860
5861 cat > confcache <<\EOF
5862 # This file is a shell script that caches the results of configure
5863 # tests run on this system so they can be shared between configure
5864 # scripts and configure runs. It is not useful on other systems.
5865 # If it contains results you don't want to keep, you may remove or edit it.
5866 #
5867 # By default, configure uses ./config.cache as the cache file,
5868 # creating it if it does not exist already. You can give configure
5869 # the --cache-file=FILE option to use a different cache file; that is
5870 # what configure does when it calls configure scripts in
5871 # subdirectories, so they share the cache.
5872 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5873 # config.status only pays attention to the cache file if you give it the
5874 # --recheck option to rerun configure.
5875 #
5876 EOF
5877 # The following way of writing the cache mishandles newlines in values,
5878 # but we know of no workaround that is simple, portable, and efficient.
5879 # So, don't put newlines in cache variables' values.
5880 # Ultrix sh set writes to stderr and can't be redirected directly,
5881 # and sets the high bit in the cache file unless we assign to the vars.
5882 (set) 2>&1 |
5883 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5884 *ac_space=\ *)
5885 # `set' does not quote correctly, so add quotes (double-quote substitution
5886 # turns \\\\ into \\, and sed turns \\ into \).
5887 sed -n \
5888 -e "s/'/'\\\\''/g" \
5889 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5890 ;;
5891 *)
5892 # `set' quotes correctly as required by POSIX, so do not add quotes.
5893 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5894 ;;
5895 esac >> confcache
5896 if cmp -s $cache_file confcache; then
5897 :
5898 else
5899 if test -w $cache_file; then
5900 echo "updating cache $cache_file"
5901 cat confcache > $cache_file
5902 else
5903 echo "not updating unwritable cache $cache_file"
5904 fi
5905 fi
5906 rm -f confcache
5907
5908
5909 if eval "test $host != $build"; then
5910 if eval "test $host_alias != NONE"; then
5911 CC=$host_alias-gcc
5912 CXX=$host_alias-c++
5913 AR=$host_alias-ar
5914 RANLIB=$host_alias-ranlib
5915 DLLTOOL=$host_alias-dlltool
5916 LD=$host_alias-ld
5917 NM=$host_alias-nm
5918 STRIP=$host_alias-strip
5919 fi
5920 fi
5921
5922 # Extract the first word of "gcc", so it can be a program name with args.
5923 set dummy gcc; ac_word=$2
5924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5925 echo "configure:5926: checking for $ac_word" >&5
5926 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5928 else
5929 if test -n "$CC"; then
5930 ac_cv_prog_CC="$CC" # Let the user override the test.
5931 else
5932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5933 ac_dummy="$PATH"
5934 for ac_dir in $ac_dummy; do
5935 test -z "$ac_dir" && ac_dir=.
5936 if test -f $ac_dir/$ac_word; then
5937 ac_cv_prog_CC="gcc"
5938 break
5939 fi
5940 done
5941 IFS="$ac_save_ifs"
5942 fi
5943 fi
5944 CC="$ac_cv_prog_CC"
5945 if test -n "$CC"; then
5946 echo "$ac_t""$CC" 1>&6
5947 else
5948 echo "$ac_t""no" 1>&6
5949 fi
5950
5951 if test -z "$CC"; then
5952 # Extract the first word of "cc", so it can be a program name with args.
5953 set dummy cc; ac_word=$2
5954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5955 echo "configure:5956: checking for $ac_word" >&5
5956 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5958 else
5959 if test -n "$CC"; then
5960 ac_cv_prog_CC="$CC" # Let the user override the test.
5961 else
5962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5963 ac_prog_rejected=no
5964 ac_dummy="$PATH"
5965 for ac_dir in $ac_dummy; do
5966 test -z "$ac_dir" && ac_dir=.
5967 if test -f $ac_dir/$ac_word; then
5968 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5969 ac_prog_rejected=yes
5970 continue
5971 fi
5972 ac_cv_prog_CC="cc"
5973 break
5974 fi
5975 done
5976 IFS="$ac_save_ifs"
5977 if test $ac_prog_rejected = yes; then
5978 # We found a bogon in the path, so make sure we never use it.
5979 set dummy $ac_cv_prog_CC
5980 shift
5981 if test $# -gt 0; then
5982 # We chose a different compiler from the bogus one.
5983 # However, it has the same basename, so the bogon will be chosen
5984 # first if we set CC to just the basename; use the full file name.
5985 shift
5986 set dummy "$ac_dir/$ac_word" "$@"
5987 shift
5988 ac_cv_prog_CC="$@"
5989 fi
5990 fi
5991 fi
5992 fi
5993 CC="$ac_cv_prog_CC"
5994 if test -n "$CC"; then
5995 echo "$ac_t""$CC" 1>&6
5996 else
5997 echo "$ac_t""no" 1>&6
5998 fi
5999
6000 if test -z "$CC"; then
6001 case "`uname -s`" in
6002 *win32* | *WIN32*)
6003 # Extract the first word of "cl", so it can be a program name with args.
6004 set dummy cl; ac_word=$2
6005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6006 echo "configure:6007: checking for $ac_word" >&5
6007 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6008 echo $ac_n "(cached) $ac_c" 1>&6
6009 else
6010 if test -n "$CC"; then
6011 ac_cv_prog_CC="$CC" # Let the user override the test.
6012 else
6013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6014 ac_dummy="$PATH"
6015 for ac_dir in $ac_dummy; do
6016 test -z "$ac_dir" && ac_dir=.
6017 if test -f $ac_dir/$ac_word; then
6018 ac_cv_prog_CC="cl"
6019 break
6020 fi
6021 done
6022 IFS="$ac_save_ifs"
6023 fi
6024 fi
6025 CC="$ac_cv_prog_CC"
6026 if test -n "$CC"; then
6027 echo "$ac_t""$CC" 1>&6
6028 else
6029 echo "$ac_t""no" 1>&6
6030 fi
6031 ;;
6032 esac
6033 fi
6034 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6035 fi
6036
6037 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6038 echo "configure:6039: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6039
6040 ac_ext=c
6041 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6042 ac_cpp='$CPP $CPPFLAGS'
6043 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6044 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6045 cross_compiling=$ac_cv_prog_cc_cross
6046
6047 cat > conftest.$ac_ext << EOF
6048
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051
6052 main(){return(0);}
6053 EOF
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6055 ac_cv_prog_cc_works=yes
6056 # If we can't run a trivial program, we are probably using a cross compiler.
6057 if (./conftest; exit) 2>/dev/null; then
6058 ac_cv_prog_cc_cross=no
6059 else
6060 ac_cv_prog_cc_cross=yes
6061 fi
6062 else
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 ac_cv_prog_cc_works=no
6066 fi
6067 rm -fr conftest*
6068 ac_ext=c
6069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6072 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6073 cross_compiling=$ac_cv_prog_cc_cross
6074
6075 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6076 if test $ac_cv_prog_cc_works = no; then
6077 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6078 fi
6079 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6080 echo "configure:6081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6081 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6082 cross_compiling=$ac_cv_prog_cc_cross
6083
6084 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6085 echo "configure:6086: checking whether we are using GNU C" >&5
6086 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6088 else
6089 cat > conftest.c <<EOF
6090 #ifdef __GNUC__
6091 yes;
6092 #endif
6093 EOF
6094 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6095 ac_cv_prog_gcc=yes
6096 else
6097 ac_cv_prog_gcc=no
6098 fi
6099 fi
6100
6101 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6102
6103 if test $ac_cv_prog_gcc = yes; then
6104 GCC=yes
6105 else
6106 GCC=
6107 fi
6108
6109 ac_test_CFLAGS="${CFLAGS+set}"
6110 ac_save_CFLAGS="$CFLAGS"
6111 CFLAGS=
6112 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6113 echo "configure:6114: checking whether ${CC-cc} accepts -g" >&5
6114 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6116 else
6117 echo 'void f(){}' > conftest.c
6118 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6119 ac_cv_prog_cc_g=yes
6120 else
6121 ac_cv_prog_cc_g=no
6122 fi
6123 rm -f conftest*
6124
6125 fi
6126
6127 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6128 if test "$ac_test_CFLAGS" = set; then
6129 CFLAGS="$ac_save_CFLAGS"
6130 elif test $ac_cv_prog_cc_g = yes; then
6131 if test "$GCC" = yes; then
6132 CFLAGS="-g -O2"
6133 else
6134 CFLAGS="-g"
6135 fi
6136 else
6137 if test "$GCC" = yes; then
6138 CFLAGS="-O2"
6139 else
6140 CFLAGS=
6141 fi
6142 fi
6143
6144
6145 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6146
6147 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6148 echo "configure:6149: checking how to run the C preprocessor" >&5
6149 # On Suns, sometimes $CPP names a directory.
6150 if test -n "$CPP" && test -d "$CPP"; then
6151 CPP=
6152 fi
6153 if test -z "$CPP"; then
6154 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6155 echo $ac_n "(cached) $ac_c" 1>&6
6156 else
6157 # This must be in double quotes, not single quotes, because CPP may get
6158 # substituted into the Makefile and "${CC-cc}" will confuse make.
6159 CPP="${CC-cc} -E"
6160 # On the NeXT, cc -E runs the code through the compiler's parser,
6161 # not just through cpp.
6162 cat > conftest.$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6165 #include <assert.h>
6166 Syntax Error
6167 EOF
6168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6169 { (eval echo configure:6170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6171 if test -z "$ac_err"; then
6172 :
6173 else
6174 echo "$ac_err" >&5
6175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6177 rm -rf conftest*
6178 CPP="${CC-cc} -E -traditional-cpp"
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 #include <assert.h>
6183 Syntax Error
6184 EOF
6185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6186 { (eval echo configure:6187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6188 if test -z "$ac_err"; then
6189 :
6190 else
6191 echo "$ac_err" >&5
6192 echo "configure: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6194 rm -rf conftest*
6195 CPP="${CC-cc} -nologo -E"
6196 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6199 #include <assert.h>
6200 Syntax Error
6201 EOF
6202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6203 { (eval echo configure:6204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6205 if test -z "$ac_err"; then
6206 :
6207 else
6208 echo "$ac_err" >&5
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6211 rm -rf conftest*
6212 CPP=/lib/cpp
6213 fi
6214 rm -f conftest*
6215 fi
6216 rm -f conftest*
6217 fi
6218 rm -f conftest*
6219 ac_cv_prog_CPP="$CPP"
6220 fi
6221 CPP="$ac_cv_prog_CPP"
6222 else
6223 ac_cv_prog_CPP="$CPP"
6224 fi
6225 echo "$ac_t""$CPP" 1>&6
6226
6227
6228 if test $ac_cv_prog_gcc = yes; then
6229 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6230 echo "configure:6231: checking whether ${CC-cc} needs -traditional" >&5
6231 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6233 else
6234 ac_pattern="Autoconf.*'x'"
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6238 #include <sgtty.h>
6239 Autoconf TIOCGETP
6240 EOF
6241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6242 egrep "$ac_pattern" >/dev/null 2>&1; then
6243 rm -rf conftest*
6244 ac_cv_prog_gcc_traditional=yes
6245 else
6246 rm -rf conftest*
6247 ac_cv_prog_gcc_traditional=no
6248 fi
6249 rm -f conftest*
6250
6251
6252 if test $ac_cv_prog_gcc_traditional = no; then
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 #include <termio.h>
6257 Autoconf TCGETA
6258 EOF
6259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 egrep "$ac_pattern" >/dev/null 2>&1; then
6261 rm -rf conftest*
6262 ac_cv_prog_gcc_traditional=yes
6263 fi
6264 rm -f conftest*
6265
6266 fi
6267 fi
6268
6269 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6270 if test $ac_cv_prog_gcc_traditional = yes; then
6271 CC="$CC -traditional"
6272 fi
6273 fi
6274
6275
6276
6277 ac_ext=C
6278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6279 ac_cpp='$CXXCPP $CPPFLAGS'
6280 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6281 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6282 cross_compiling=$ac_cv_prog_cxx_cross
6283
6284
6285 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6286 do
6287 # Extract the first word of "$ac_prog", so it can be a program name with args.
6288 set dummy $ac_prog; ac_word=$2
6289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6290 echo "configure:6291: checking for $ac_word" >&5
6291 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6292 echo $ac_n "(cached) $ac_c" 1>&6
6293 else
6294 if test -n "$CXX"; then
6295 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6296 else
6297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6298 ac_dummy="$PATH"
6299 for ac_dir in $ac_dummy; do
6300 test -z "$ac_dir" && ac_dir=.
6301 if test -f $ac_dir/$ac_word; then
6302 ac_cv_prog_CXX="$ac_prog"
6303 break
6304 fi
6305 done
6306 IFS="$ac_save_ifs"
6307 fi
6308 fi
6309 CXX="$ac_cv_prog_CXX"
6310 if test -n "$CXX"; then
6311 echo "$ac_t""$CXX" 1>&6
6312 else
6313 echo "$ac_t""no" 1>&6
6314 fi
6315
6316 test -n "$CXX" && break
6317 done
6318 test -n "$CXX" || CXX="gcc"
6319
6320
6321 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6322 echo "configure:6323: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6323
6324 ac_ext=C
6325 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6326 ac_cpp='$CXXCPP $CPPFLAGS'
6327 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6328 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6329 cross_compiling=$ac_cv_prog_cxx_cross
6330
6331 cat > conftest.$ac_ext << EOF
6332
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335
6336 int main(){return(0);}
6337 EOF
6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6339 ac_cv_prog_cxx_works=yes
6340 # If we can't run a trivial program, we are probably using a cross compiler.
6341 if (./conftest; exit) 2>/dev/null; then
6342 ac_cv_prog_cxx_cross=no
6343 else
6344 ac_cv_prog_cxx_cross=yes
6345 fi
6346 else
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6349 ac_cv_prog_cxx_works=no
6350 fi
6351 rm -fr conftest*
6352 ac_ext=C
6353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6354 ac_cpp='$CXXCPP $CPPFLAGS'
6355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6357 cross_compiling=$ac_cv_prog_cxx_cross
6358
6359 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6360 if test $ac_cv_prog_cxx_works = no; then
6361 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6362 fi
6363 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6364 echo "configure:6365: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6365 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6366 cross_compiling=$ac_cv_prog_cxx_cross
6367
6368 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6369 echo "configure:6370: checking whether we are using GNU C++" >&5
6370 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6372 else
6373 cat > conftest.C <<EOF
6374 #ifdef __GNUC__
6375 yes;
6376 #endif
6377 EOF
6378 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6379 ac_cv_prog_gxx=yes
6380 else
6381 ac_cv_prog_gxx=no
6382 fi
6383 fi
6384
6385 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6386
6387 if test $ac_cv_prog_gxx = yes; then
6388 GXX=yes
6389 else
6390 GXX=
6391 fi
6392
6393 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6394 ac_save_CXXFLAGS="$CXXFLAGS"
6395 CXXFLAGS=
6396 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6397 echo "configure:6398: checking whether ${CXX-g++} accepts -g" >&5
6398 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6400 else
6401 echo 'void f(){}' > conftest.cc
6402 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6403 ac_cv_prog_cxx_g=yes
6404 else
6405 ac_cv_prog_cxx_g=no
6406 fi
6407 rm -f conftest*
6408
6409 fi
6410
6411 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6412 if test "$ac_test_CXXFLAGS" = set; then
6413 CXXFLAGS="$ac_save_CXXFLAGS"
6414 elif test $ac_cv_prog_cxx_g = yes; then
6415 if test "$GXX" = yes; then
6416 CXXFLAGS="-g -O2"
6417 else
6418 CXXFLAGS="-g"
6419 fi
6420 else
6421 if test "$GXX" = yes; then
6422 CXXFLAGS="-O2"
6423 else
6424 CXXFLAGS=
6425 fi
6426 fi
6427
6428
6429 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6430 echo "configure:6431: checking how to run the C++ preprocessor" >&5
6431 if test -z "$CXXCPP"; then
6432 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6433 echo $ac_n "(cached) $ac_c" 1>&6
6434 else
6435 ac_ext=C
6436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6437 ac_cpp='$CXXCPP $CPPFLAGS'
6438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6440 cross_compiling=$ac_cv_prog_cxx_cross
6441 CXXCPP="${CXX-g++} -E"
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445 #include <stdlib.h>
6446 EOF
6447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6448 { (eval echo configure:6449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6450 if test -z "$ac_err"; then
6451 :
6452 else
6453 echo "$ac_err" >&5
6454 echo "configure: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 rm -rf conftest*
6457 CXXCPP=/lib/cpp
6458 fi
6459 rm -f conftest*
6460 ac_cv_prog_CXXCPP="$CXXCPP"
6461 ac_ext=C
6462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6463 ac_cpp='$CXXCPP $CPPFLAGS'
6464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6466 cross_compiling=$ac_cv_prog_cxx_cross
6467 fi
6468 fi
6469 CXXCPP="$ac_cv_prog_CXXCPP"
6470 echo "$ac_t""$CXXCPP" 1>&6
6471
6472
6473 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6474
6475 ac_ext=c
6476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6477 ac_cpp='$CPP $CPPFLAGS'
6478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6480 cross_compiling=$ac_cv_prog_cc_cross
6481
6482
6483 # Extract the first word of "ranlib", so it can be a program name with args.
6484 set dummy ranlib; ac_word=$2
6485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6486 echo "configure:6487: checking for $ac_word" >&5
6487 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6489 else
6490 if test -n "$RANLIB"; then
6491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6492 else
6493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6494 ac_dummy="$PATH"
6495 for ac_dir in $ac_dummy; do
6496 test -z "$ac_dir" && ac_dir=.
6497 if test -f $ac_dir/$ac_word; then
6498 ac_cv_prog_RANLIB="ranlib"
6499 break
6500 fi
6501 done
6502 IFS="$ac_save_ifs"
6503 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6504 fi
6505 fi
6506 RANLIB="$ac_cv_prog_RANLIB"
6507 if test -n "$RANLIB"; then
6508 echo "$ac_t""$RANLIB" 1>&6
6509 else
6510 echo "$ac_t""no" 1>&6
6511 fi
6512
6513
6514 # Extract the first word of "ar", so it can be a program name with args.
6515 set dummy ar; ac_word=$2
6516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6517 echo "configure:6518: checking for $ac_word" >&5
6518 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6519 echo $ac_n "(cached) $ac_c" 1>&6
6520 else
6521 if test -n "$AR"; then
6522 ac_cv_prog_AR="$AR" # Let the user override the test.
6523 else
6524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6525 ac_dummy="$PATH"
6526 for ac_dir in $ac_dummy; do
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f $ac_dir/$ac_word; then
6529 ac_cv_prog_AR="ar"
6530 break
6531 fi
6532 done
6533 IFS="$ac_save_ifs"
6534 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6535 fi
6536 fi
6537 AR="$ac_cv_prog_AR"
6538 if test -n "$AR"; then
6539 echo "$ac_t""$AR" 1>&6
6540 else
6541 echo "$ac_t""no" 1>&6
6542 fi
6543
6544
6545 # Find a good install program. We prefer a C program (faster),
6546 # so one script is as good as another. But avoid the broken or
6547 # incompatible versions:
6548 # SysV /etc/install, /usr/sbin/install
6549 # SunOS /usr/etc/install
6550 # IRIX /sbin/install
6551 # AIX /bin/install
6552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6555 # ./install, which can be erroneously created by make from ./install.sh.
6556 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6557 echo "configure:6558: checking for a BSD compatible install" >&5
6558 if test -z "$INSTALL"; then
6559 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6561 else
6562 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6563 for ac_dir in $PATH; do
6564 # Account for people who put trailing slashes in PATH elements.
6565 case "$ac_dir/" in
6566 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6567 *)
6568 # OSF1 and SCO ODT 3.0 have their own names for install.
6569 # Don't use installbsd from OSF since it installs stuff as root
6570 # by default.
6571 for ac_prog in ginstall scoinst install; do
6572 if test -f $ac_dir/$ac_prog; then
6573 if test $ac_prog = install &&
6574 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6575 # AIX install. It has an incompatible calling convention.
6576 :
6577 else
6578 ac_cv_path_install="$ac_dir/$ac_prog -c"
6579 break 2
6580 fi
6581 fi
6582 done
6583 ;;
6584 esac
6585 done
6586 IFS="$ac_save_IFS"
6587
6588 fi
6589 if test "${ac_cv_path_install+set}" = set; then
6590 INSTALL="$ac_cv_path_install"
6591 else
6592 # As a last resort, use the slow shell script. We don't cache a
6593 # path for INSTALL within a source directory, because that will
6594 # break other packages using the cache if that directory is
6595 # removed, or if the path is relative.
6596 INSTALL="$ac_install_sh"
6597 fi
6598 fi
6599 echo "$ac_t""$INSTALL" 1>&6
6600
6601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6602 # It thinks the first close brace ends the variable substitution.
6603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6604
6605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6606
6607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6608
6609
6610 # Extract the first word of "strip", so it can be a program name with args.
6611 set dummy strip; ac_word=$2
6612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6613 echo "configure:6614: checking for $ac_word" >&5
6614 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6616 else
6617 if test -n "$STRIP"; then
6618 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6619 else
6620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6621 ac_dummy="$PATH"
6622 for ac_dir in $ac_dummy; do
6623 test -z "$ac_dir" && ac_dir=.
6624 if test -f $ac_dir/$ac_word; then
6625 ac_cv_prog_STRIP="strip"
6626 break
6627 fi
6628 done
6629 IFS="$ac_save_ifs"
6630 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6631 fi
6632 fi
6633 STRIP="$ac_cv_prog_STRIP"
6634 if test -n "$STRIP"; then
6635 echo "$ac_t""$STRIP" 1>&6
6636 else
6637 echo "$ac_t""no" 1>&6
6638 fi
6639
6640
6641 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6642 echo "configure:6643: checking "make for VPATH support"" >&5
6643 cat - << EOF > confMake
6644 check : file
6645 cp \$? \$@
6646 cp \$? final_file
6647 EOF
6648
6649 if test ! -d sub ; then
6650 mkdir sub
6651 fi
6652 echo dummy > sub/file
6653 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6654 RESULT=$?
6655 rm -f sub/file check final_file confMake
6656 rmdir sub
6657 if test "$RESULT" = 0; then
6658 echo "$ac_t""yes" 1>&6
6659 else
6660 echo "$ac_t""no" 1>&6
6661 { echo "configure: error: You need a make-utility that is able to use the variable
6662 VPATH correctly.
6663 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6664 fi
6665
6666 for ac_prog in 'bison -y' byacc
6667 do
6668 # Extract the first word of "$ac_prog", so it can be a program name with args.
6669 set dummy $ac_prog; ac_word=$2
6670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6671 echo "configure:6672: checking for $ac_word" >&5
6672 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6674 else
6675 if test -n "$YACC"; then
6676 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6677 else
6678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6679 ac_dummy="$PATH"
6680 for ac_dir in $ac_dummy; do
6681 test -z "$ac_dir" && ac_dir=.
6682 if test -f $ac_dir/$ac_word; then
6683 ac_cv_prog_YACC="$ac_prog"
6684 break
6685 fi
6686 done
6687 IFS="$ac_save_ifs"
6688 fi
6689 fi
6690 YACC="$ac_cv_prog_YACC"
6691 if test -n "$YACC"; then
6692 echo "$ac_t""$YACC" 1>&6
6693 else
6694 echo "$ac_t""no" 1>&6
6695 fi
6696
6697 test -n "$YACC" && break
6698 done
6699 test -n "$YACC" || YACC="yacc"
6700
6701
6702 # Extract the first word of "flex", so it can be a program name with args.
6703 set dummy flex; ac_word=$2
6704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6705 echo "configure:6706: checking for $ac_word" >&5
6706 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6707 echo $ac_n "(cached) $ac_c" 1>&6
6708 else
6709 if test -n "$LEX"; then
6710 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6711 else
6712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6713 ac_dummy="$PATH"
6714 for ac_dir in $ac_dummy; do
6715 test -z "$ac_dir" && ac_dir=.
6716 if test -f $ac_dir/$ac_word; then
6717 ac_cv_prog_LEX="flex"
6718 break
6719 fi
6720 done
6721 IFS="$ac_save_ifs"
6722 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6723 fi
6724 fi
6725 LEX="$ac_cv_prog_LEX"
6726 if test -n "$LEX"; then
6727 echo "$ac_t""$LEX" 1>&6
6728 else
6729 echo "$ac_t""no" 1>&6
6730 fi
6731
6732 if test -z "$LEXLIB"
6733 then
6734 case "$LEX" in
6735 flex*) ac_lib=fl ;;
6736 *) ac_lib=l ;;
6737 esac
6738 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6739 echo "configure:6740: checking for yywrap in -l$ac_lib" >&5
6740 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6743 else
6744 ac_save_LIBS="$LIBS"
6745 LIBS="-l$ac_lib $LIBS"
6746 cat > conftest.$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6749 /* Override any gcc2 internal prototype to avoid an error. */
6750 /* We use char because int might match the return type of a gcc2
6751 builtin and then its argument prototype would still apply. */
6752 char yywrap();
6753
6754 int main() {
6755 yywrap()
6756 ; return 0; }
6757 EOF
6758 if { (eval echo configure:6759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6759 rm -rf conftest*
6760 eval "ac_cv_lib_$ac_lib_var=yes"
6761 else
6762 echo "configure: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6764 rm -rf conftest*
6765 eval "ac_cv_lib_$ac_lib_var=no"
6766 fi
6767 rm -f conftest*
6768 LIBS="$ac_save_LIBS"
6769
6770 fi
6771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6772 echo "$ac_t""yes" 1>&6
6773 LEXLIB="-l$ac_lib"
6774 else
6775 echo "$ac_t""no" 1>&6
6776 fi
6777
6778 fi
6779
6780
6781 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6782 echo "configure:6783: checking whether ln -s works" >&5
6783 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6785 else
6786 rm -f conftestdata
6787 if ln -s X conftestdata 2>/dev/null
6788 then
6789 rm -f conftestdata
6790 ac_cv_prog_LN_S="ln -s"
6791 else
6792 ac_cv_prog_LN_S=ln
6793 fi
6794 fi
6795 LN_S="$ac_cv_prog_LN_S"
6796 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6797 echo "$ac_t""yes" 1>&6
6798 else
6799 echo "$ac_t""no" 1>&6
6800 fi
6801
6802
6803
6804 SEARCH_INCLUDE="\
6805 /usr/local/include \
6806 \
6807 /usr/Motif-1.2/include \
6808 /usr/Motif-2.1/include \
6809 \
6810 /usr/include/Motif1.2 \
6811 /opt/xpm/include/X11 \
6812 /opt/GBxpm/include/ \
6813 /opt/GBxpm/X11/include/ \
6814 \
6815 /usr/Motif1.2/include \
6816 /usr/dt/include \
6817 /usr/openwin/include \
6818 \
6819 /usr/include/Xm \
6820 \
6821 /usr/X11R6/include \
6822 /usr/X11R6.4/include \
6823 /usr/X11R5/include \
6824 /usr/X11R4/include \
6825 \
6826 /usr/include/X11R6 \
6827 /usr/include/X11R5 \
6828 /usr/include/X11R4 \
6829 \
6830 /usr/local/X11R6/include \
6831 /usr/local/X11R5/include \
6832 /usr/local/X11R4/include \
6833 \
6834 /usr/local/include/X11R6 \
6835 /usr/local/include/X11R5 \
6836 /usr/local/include/X11R4 \
6837 \
6838 /usr/X11/include \
6839 /usr/include/X11 \
6840 /usr/local/X11/include \
6841 /usr/local/include/X11 \
6842 \
6843 /usr/X386/include \
6844 /usr/x386/include \
6845 /usr/XFree86/include/X11 \
6846 \
6847 X:/XFree86/include \
6848 X:/XFree86/include/X11 \
6849 \
6850 /usr/include/gtk \
6851 /usr/local/include/gtk \
6852 /usr/include/glib \
6853 /usr/local/include/glib \
6854 \
6855 /usr/include/qt \
6856 /usr/local/include/qt \
6857 \
6858 /usr/include/windows \
6859 /usr/include/wine \
6860 /usr/local/include/wine \
6861 \
6862 /usr/unsupported/include \
6863 /usr/athena/include \
6864 /usr/local/x11r5/include \
6865 /usr/lpp/Xamples/include \
6866 \
6867 /usr/openwin/share/include \
6868 \
6869 /usr/include"
6870
6871 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6872
6873
6874 cat > confcache <<\EOF
6875 # This file is a shell script that caches the results of configure
6876 # tests run on this system so they can be shared between configure
6877 # scripts and configure runs. It is not useful on other systems.
6878 # If it contains results you don't want to keep, you may remove or edit it.
6879 #
6880 # By default, configure uses ./config.cache as the cache file,
6881 # creating it if it does not exist already. You can give configure
6882 # the --cache-file=FILE option to use a different cache file; that is
6883 # what configure does when it calls configure scripts in
6884 # subdirectories, so they share the cache.
6885 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6886 # config.status only pays attention to the cache file if you give it the
6887 # --recheck option to rerun configure.
6888 #
6889 EOF
6890 # The following way of writing the cache mishandles newlines in values,
6891 # but we know of no workaround that is simple, portable, and efficient.
6892 # So, don't put newlines in cache variables' values.
6893 # Ultrix sh set writes to stderr and can't be redirected directly,
6894 # and sets the high bit in the cache file unless we assign to the vars.
6895 (set) 2>&1 |
6896 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6897 *ac_space=\ *)
6898 # `set' does not quote correctly, so add quotes (double-quote substitution
6899 # turns \\\\ into \\, and sed turns \\ into \).
6900 sed -n \
6901 -e "s/'/'\\\\''/g" \
6902 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6903 ;;
6904 *)
6905 # `set' quotes correctly as required by POSIX, so do not add quotes.
6906 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6907 ;;
6908 esac >> confcache
6909 if cmp -s $cache_file confcache; then
6910 :
6911 else
6912 if test -w $cache_file; then
6913 echo "updating cache $cache_file"
6914 cat confcache > $cache_file
6915 else
6916 echo "not updating unwritable cache $cache_file"
6917 fi
6918 fi
6919 rm -f confcache
6920
6921
6922
6923 AFMINSTALL=
6924
6925 if test "$wxUSE_GUI" = "yes"; then
6926
6927 USE_GUI=1
6928
6929 TOOLKIT=
6930 TOOLKIT_INCLUDE=
6931
6932 GUIOBJS=
6933 COMMONOBJS=
6934 GENERICOBJS=
6935
6936 GUI_TK_LIBRARY=
6937 GUI_TK_LINK=
6938
6939 WXGTK12=
6940 WXGTK13=
6941
6942 WXWINE=
6943
6944 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6945 if test "$cross_compiling" = "yes" ; then
6946 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6947 else
6948 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6949 echo "configure:6950: checking for Windows headers" >&5
6950
6951 ac_find_includes=
6952 for ac_dir in $SEARCH_INCLUDE;
6953 do
6954 if test -f "$ac_dir/windows.h"; then
6955 ac_find_includes=$ac_dir
6956 break
6957 fi
6958 done
6959
6960 if test "$ac_find_includes" != "" ; then
6961 echo "$ac_t""found $ac_find_includes" 1>&6
6962 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6963 else
6964 echo "$ac_t""no" 1>&6
6965 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6966 fi
6967 fi
6968
6969 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6970 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6971
6972 if test "$wxUSE_MINGW" = 1; then
6973 LDFLAGS="$LDFLAGS -mwindows"
6974 fi
6975
6976 TOOLKIT=MSW
6977
6978 GUIOBJS="\$(MSW_GUIOBJS)"
6979 GUIHEADERS="\$(MSW_HEADERS)"
6980 COMMONOBJS="\$(MSW_COMMONOBJS)"
6981 GENERICOBJS="\$(MSW_GENERICOBJS)"
6982 UNIXOBJS=
6983 GUIDIST=MSW_DIST
6984 fi
6985
6986 if test "$wxUSE_GTK" = 1; then
6987
6988 if test x$gtk_config_exec_prefix != x ; then
6989 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6990 if test x${GTK_CONFIG+set} != xset ; then
6991 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6992 fi
6993 fi
6994 if test x$gtk_config_prefix != x ; then
6995 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6996 if test x${GTK_CONFIG+set} != xset ; then
6997 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6998 fi
6999 fi
7000
7001 # Extract the first word of "gtk-config", so it can be a program name with args.
7002 set dummy gtk-config; ac_word=$2
7003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7004 echo "configure:7005: checking for $ac_word" >&5
7005 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7007 else
7008 case "$GTK_CONFIG" in
7009 /*)
7010 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7011 ;;
7012 ?:/*)
7013 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7014 ;;
7015 *)
7016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7017 ac_dummy="$PATH"
7018 for ac_dir in $ac_dummy; do
7019 test -z "$ac_dir" && ac_dir=.
7020 if test -f $ac_dir/$ac_word; then
7021 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7022 break
7023 fi
7024 done
7025 IFS="$ac_save_ifs"
7026 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7027 ;;
7028 esac
7029 fi
7030 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7031 if test -n "$GTK_CONFIG"; then
7032 echo "$ac_t""$GTK_CONFIG" 1>&6
7033 else
7034 echo "$ac_t""no" 1>&6
7035 fi
7036
7037 min_gtk_version=1.2.3
7038 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7039 echo "configure:7040: checking for GTK - version >= $min_gtk_version" >&5
7040 no_gtk=""
7041 if test "$GTK_CONFIG" != "no" ; then
7042 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7043 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7044 ac_save_CFLAGS="$CFLAGS"
7045 ac_save_LIBS="$LIBS"
7046 CFLAGS="$CFLAGS $GTK_CFLAGS"
7047 LIBS="$LIBS $GTK_LIBS"
7048 if test "$cross_compiling" = yes; then
7049 echo $ac_n "cross compiling; assumed OK... $ac_c"
7050 else
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7054
7055 #include <gtk/gtk.h>
7056 #include <gtk/gtkfeatures.h>
7057 #include <stdio.h>
7058
7059 int
7060 main ()
7061 {
7062 int major, minor, micro;
7063
7064 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7065 printf("%s, bad version string\n", "$min_gtk_version");
7066 exit(1);
7067 }
7068
7069 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7070 (GTK_MINOR_VERSION != gtk_minor_version) ||
7071 (GTK_MICRO_VERSION != gtk_micro_version)) {
7072 printf("Headers vs. library version mismatch!\n");
7073 exit(1);
7074 }
7075
7076 if (gtk_minor_version == 1) return FALSE;
7077
7078 return !((gtk_major_version > major) ||
7079 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7080 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7081 }
7082
7083 EOF
7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7085 then
7086 :
7087 else
7088 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7090 rm -fr conftest*
7091 no_gtk=yes
7092 fi
7093 rm -fr conftest*
7094 fi
7095
7096 CFLAGS="$ac_save_CFLAGS"
7097 LIBS="$ac_save_LIBS"
7098 else
7099 no_gtk=yes
7100 fi
7101 if test "x$no_gtk" = x ; then
7102 echo "$ac_t""yes" 1>&6
7103 WXGTK12=1
7104 else
7105 echo "$ac_t""no" 1>&6
7106 GTK_CFLAGS=""
7107 GTK_LIBS=""
7108 :
7109 fi
7110
7111
7112
7113
7114 if test "$WXGTK12" != 1; then
7115 { echo "configure: error:
7116 Please check that gtk-config is in path, the directory
7117 where GTK+ libraries are installed (returned by
7118 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7119 equivalent variable and GTK+ is version 1.2.3 or above.
7120 " 1>&2; exit 1; }
7121 fi
7122
7123
7124 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7125
7126
7127 GUI_TK_LIBRARY="$GTK_LIBS"
7128
7129 TOOLKIT=GTK
7130
7131 AFMINSTALL=afminstall
7132
7133 GUIOBJS="\$(GTK_GUIOBJS)"
7134 GUIHEADERS="\$(GTK_HEADERS)"
7135 COMMONOBJS="\$(GTK_COMMONOBJS)"
7136 GENERICOBJS="\$(GTK_GENERICOBJS)"
7137 GUIDEPS="\$(GTK_GUIDEPS)"
7138 COMMONDEPS="\$(GTK_COMMONDEPS)"
7139 GENERICDEPS="\$(GTK_GENERICDEPS)"
7140 UNIXOBJS="\$(UNIX_OBJS)"
7141 UNIXDEPS="\$(UNIX_DEPS)"
7142 GUIDIST=GTK_DIST
7143
7144 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7145 echo "configure:7146: checking for gdk_im_open in -lgdk" >&5
7146 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7148 echo $ac_n "(cached) $ac_c" 1>&6
7149 else
7150 ac_save_LIBS="$LIBS"
7151 LIBS="-lgdk $LIBS"
7152 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7155 /* Override any gcc2 internal prototype to avoid an error. */
7156 /* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7158 char gdk_im_open();
7159
7160 int main() {
7161 gdk_im_open()
7162 ; return 0; }
7163 EOF
7164 if { (eval echo configure:7165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7165 rm -rf conftest*
7166 eval "ac_cv_lib_$ac_lib_var=yes"
7167 else
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7170 rm -rf conftest*
7171 eval "ac_cv_lib_$ac_lib_var=no"
7172 fi
7173 rm -f conftest*
7174 LIBS="$ac_save_LIBS"
7175
7176 fi
7177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7178 echo "$ac_t""yes" 1>&6
7179 cat >> confdefs.h <<\EOF
7180 #define HAVE_XIM 1
7181 EOF
7182
7183 else
7184 echo "$ac_t""no" 1>&6
7185 fi
7186
7187 fi
7188
7189 if test "$wxUSE_WINE" = 1; then
7190 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7191 echo "configure:7192: checking for WINE includes" >&5
7192
7193 ac_find_includes=
7194 for ac_dir in $SEARCH_INCLUDE;
7195 do
7196 if test -f "$ac_dir/windows.h"; then
7197 ac_find_includes=$ac_dir
7198 break
7199 fi
7200 done
7201
7202 if test "$ac_find_includes" != "" ; then
7203 echo "$ac_t""found $ac_find_includes" 1>&6
7204 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7205 else
7206 echo "$ac_t""no" 1>&6
7207 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7208 fi
7209
7210 XPM_LINK=""
7211 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7212 echo "configure:7213: checking for Xpm library" >&5
7213
7214 ac_find_libraries=
7215 for ac_dir in $SEARCH_LIB;
7216 do
7217 for ac_extension in a so sl; do
7218 if test -f "$ac_dir/libXpm.$ac_extension"; then
7219 ac_find_libraries=$ac_dir
7220 break 2
7221 fi
7222 done
7223 done
7224
7225 if test "$ac_find_libraries" != "" ; then
7226 GUI_TK_LIBRARY="-L$ac_find_libraries"
7227 XPM_LINK="-lXpm"
7228 cat >> confdefs.h <<\EOF
7229 #define wxHAVE_LIB_XPM 1
7230 EOF
7231
7232 echo "$ac_t""found at $ac_find_libraries" 1>&6
7233 else
7234 echo "$ac_t""no" 1>&6
7235 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7236 fi
7237
7238 MESA_LINK=""
7239 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7240 echo "configure:7241: checking for Mesa library" >&5
7241
7242 ac_find_libraries=
7243 for ac_dir in $SEARCH_LIB;
7244 do
7245 for ac_extension in a so sl; do
7246 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7247 ac_find_libraries=$ac_dir
7248 break 2
7249 fi
7250 done
7251 done
7252
7253 if test "$ac_find_libraries" != "" ; then
7254 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7255 MESA_LINK="-lMesaGL"
7256 echo "$ac_t""found at $ac_find_libraries" 1>&6
7257 else
7258 { echo "configure: error: no" 1>&2; exit 1; }
7259 fi
7260
7261 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7262 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7263 WXWINE=1
7264 TOOLKIT=MSW
7265
7266 GUIHEADERS="\$(MSW_HEADERS)"
7267 GUIOBJS="\$(MSW_GUIOBJS)"
7268 COMMONOBJS="\$(MSW_COMMONOBJS)"
7269 GENERICOBJS="\$(MSW_GENERICOBJS)"
7270 GUIDEPS="\$(MSW_GUIDEPS)"
7271 COMMONDEPS="\$(MSW_COMMONDEPS)"
7272 GENERICDEPS="\$(MSW_GENERICDEPS)"
7273 UNIXOBJS="\$(UNIX_OBJS)"
7274 UNIXDEPS="\$(UNIX_DEPS)"
7275 GUIDIST=MSW_DIST
7276 fi
7277
7278 if test "$wxUSE_MOTIF" = 1; then
7279 # If we find X, set shell vars x_includes and x_libraries to the
7280 # paths, otherwise set no_x=yes.
7281 # Uses ac_ vars as temps to allow command line to override cache and checks.
7282 # --without-x overrides everything else, but does not touch the cache.
7283 echo $ac_n "checking for X""... $ac_c" 1>&6
7284 echo "configure:7285: checking for X" >&5
7285
7286 # Check whether --with-x or --without-x was given.
7287 if test "${with_x+set}" = set; then
7288 withval="$with_x"
7289 :
7290 fi
7291
7292 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7293 if test "x$with_x" = xno; then
7294 # The user explicitly disabled X.
7295 have_x=disabled
7296 else
7297 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7298 # Both variables are already set.
7299 have_x=yes
7300 else
7301 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7303 else
7304 # One or both of the vars are not set, and there is no cached value.
7305 ac_x_includes=NO ac_x_libraries=NO
7306 rm -fr conftestdir
7307 if mkdir conftestdir; then
7308 cd conftestdir
7309 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7310 cat > Imakefile <<'EOF'
7311 acfindx:
7312 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7313 EOF
7314 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7315 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7316 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7317 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7318 for ac_extension in a so sl; do
7319 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7320 test -f $ac_im_libdir/libX11.$ac_extension; then
7321 ac_im_usrlibdir=$ac_im_libdir; break
7322 fi
7323 done
7324 # Screen out bogus values from the imake configuration. They are
7325 # bogus both because they are the default anyway, and because
7326 # using them would break gcc on systems where it needs fixed includes.
7327 case "$ac_im_incroot" in
7328 /usr/include) ;;
7329 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7330 esac
7331 case "$ac_im_usrlibdir" in
7332 /usr/lib | /lib) ;;
7333 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7334 esac
7335 fi
7336 cd ..
7337 rm -fr conftestdir
7338 fi
7339
7340 if test "$ac_x_includes" = NO; then
7341 # Guess where to find include files, by looking for this one X11 .h file.
7342 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7343
7344 # First, try using that file with no special directory specified.
7345 cat > conftest.$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7348 #include <$x_direct_test_include>
7349 EOF
7350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7351 { (eval echo configure:7352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7353 if test -z "$ac_err"; then
7354 rm -rf conftest*
7355 # We can compile using X headers with no special include directory.
7356 ac_x_includes=
7357 else
7358 echo "$ac_err" >&5
7359 echo "configure: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7361 rm -rf conftest*
7362 # Look for the header file in a standard set of common directories.
7363 # Check X11 before X11Rn because it is often a symlink to the current release.
7364 for ac_dir in \
7365 /usr/X11/include \
7366 /usr/X11R6/include \
7367 /usr/X11R5/include \
7368 /usr/X11R4/include \
7369 \
7370 /usr/include/X11 \
7371 /usr/include/X11R6 \
7372 /usr/include/X11R5 \
7373 /usr/include/X11R4 \
7374 \
7375 /usr/local/X11/include \
7376 /usr/local/X11R6/include \
7377 /usr/local/X11R5/include \
7378 /usr/local/X11R4/include \
7379 \
7380 /usr/local/include/X11 \
7381 /usr/local/include/X11R6 \
7382 /usr/local/include/X11R5 \
7383 /usr/local/include/X11R4 \
7384 \
7385 /usr/X386/include \
7386 /usr/x386/include \
7387 /usr/XFree86/include/X11 \
7388 \
7389 /usr/include \
7390 /usr/local/include \
7391 /usr/unsupported/include \
7392 /usr/athena/include \
7393 /usr/local/x11r5/include \
7394 /usr/lpp/Xamples/include \
7395 \
7396 /usr/openwin/include \
7397 /usr/openwin/share/include \
7398 ; \
7399 do
7400 if test -r "$ac_dir/$x_direct_test_include"; then
7401 ac_x_includes=$ac_dir
7402 break
7403 fi
7404 done
7405 fi
7406 rm -f conftest*
7407 fi # $ac_x_includes = NO
7408
7409 if test "$ac_x_libraries" = NO; then
7410 # Check for the libraries.
7411
7412 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7413 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7414
7415 # See if we find them without any special options.
7416 # Don't add to $LIBS permanently.
7417 ac_save_LIBS="$LIBS"
7418 LIBS="-l$x_direct_test_library $LIBS"
7419 cat > conftest.$ac_ext <<EOF
7420 #line 7421 "configure"
7421 #include "confdefs.h"
7422
7423 int main() {
7424 ${x_direct_test_function}()
7425 ; return 0; }
7426 EOF
7427 if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7428 rm -rf conftest*
7429 LIBS="$ac_save_LIBS"
7430 # We can link X programs with no special library path.
7431 ac_x_libraries=
7432 else
7433 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 rm -rf conftest*
7436 LIBS="$ac_save_LIBS"
7437 # First see if replacing the include by lib works.
7438 # Check X11 before X11Rn because it is often a symlink to the current release.
7439 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7440 /usr/X11/lib \
7441 /usr/X11R6/lib \
7442 /usr/X11R5/lib \
7443 /usr/X11R4/lib \
7444 \
7445 /usr/lib/X11 \
7446 /usr/lib/X11R6 \
7447 /usr/lib/X11R5 \
7448 /usr/lib/X11R4 \
7449 \
7450 /usr/local/X11/lib \
7451 /usr/local/X11R6/lib \
7452 /usr/local/X11R5/lib \
7453 /usr/local/X11R4/lib \
7454 \
7455 /usr/local/lib/X11 \
7456 /usr/local/lib/X11R6 \
7457 /usr/local/lib/X11R5 \
7458 /usr/local/lib/X11R4 \
7459 \
7460 /usr/X386/lib \
7461 /usr/x386/lib \
7462 /usr/XFree86/lib/X11 \
7463 \
7464 /usr/lib \
7465 /usr/local/lib \
7466 /usr/unsupported/lib \
7467 /usr/athena/lib \
7468 /usr/local/x11r5/lib \
7469 /usr/lpp/Xamples/lib \
7470 /lib/usr/lib/X11 \
7471 \
7472 /usr/openwin/lib \
7473 /usr/openwin/share/lib \
7474 ; \
7475 do
7476 for ac_extension in a so sl; do
7477 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7478 ac_x_libraries=$ac_dir
7479 break 2
7480 fi
7481 done
7482 done
7483 fi
7484 rm -f conftest*
7485 fi # $ac_x_libraries = NO
7486
7487 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7488 # Didn't find X anywhere. Cache the known absence of X.
7489 ac_cv_have_x="have_x=no"
7490 else
7491 # Record where we found X for the cache.
7492 ac_cv_have_x="have_x=yes \
7493 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7494 fi
7495 fi
7496 fi
7497 eval "$ac_cv_have_x"
7498 fi # $with_x != no
7499
7500 if test "$have_x" != yes; then
7501 echo "$ac_t""$have_x" 1>&6
7502 no_x=yes
7503 else
7504 # If each of the values was on the command line, it overrides each guess.
7505 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7506 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7507 # Update the cache value to reflect the command line values.
7508 ac_cv_have_x="have_x=yes \
7509 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7510 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7511 fi
7512
7513 if test "$no_x" = yes; then
7514 # Not all programs may use this symbol, but it does not hurt to define it.
7515 cat >> confdefs.h <<\EOF
7516 #define X_DISPLAY_MISSING 1
7517 EOF
7518
7519 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7520 else
7521 if test -n "$x_includes"; then
7522 X_CFLAGS="$X_CFLAGS -I$x_includes"
7523 fi
7524
7525 # It would also be nice to do this for all -L options, not just this one.
7526 if test -n "$x_libraries"; then
7527 X_LIBS="$X_LIBS -L$x_libraries"
7528 # For Solaris; some versions of Sun CC require a space after -R and
7529 # others require no space. Words are not sufficient . . . .
7530 case "`(uname -sr) 2>/dev/null`" in
7531 "SunOS 5"*)
7532 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7533 echo "configure:7534: checking whether -R must be followed by a space" >&5
7534 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7535 cat > conftest.$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7538
7539 int main() {
7540
7541 ; return 0; }
7542 EOF
7543 if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7544 rm -rf conftest*
7545 ac_R_nospace=yes
7546 else
7547 echo "configure: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 rm -rf conftest*
7550 ac_R_nospace=no
7551 fi
7552 rm -f conftest*
7553 if test $ac_R_nospace = yes; then
7554 echo "$ac_t""no" 1>&6
7555 X_LIBS="$X_LIBS -R$x_libraries"
7556 else
7557 LIBS="$ac_xsave_LIBS -R $x_libraries"
7558 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7561
7562 int main() {
7563
7564 ; return 0; }
7565 EOF
7566 if { (eval echo configure:7567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7567 rm -rf conftest*
7568 ac_R_space=yes
7569 else
7570 echo "configure: failed program was:" >&5
7571 cat conftest.$ac_ext >&5
7572 rm -rf conftest*
7573 ac_R_space=no
7574 fi
7575 rm -f conftest*
7576 if test $ac_R_space = yes; then
7577 echo "$ac_t""yes" 1>&6
7578 X_LIBS="$X_LIBS -R $x_libraries"
7579 else
7580 echo "$ac_t""neither works" 1>&6
7581 fi
7582 fi
7583 LIBS="$ac_xsave_LIBS"
7584 esac
7585 fi
7586
7587 # Check for system-dependent libraries X programs must link with.
7588 # Do this before checking for the system-independent R6 libraries
7589 # (-lICE), since we may need -lsocket or whatever for X linking.
7590
7591 if test "$ISC" = yes; then
7592 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7593 else
7594 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7595 # libraries were built with DECnet support. And karl@cs.umb.edu says
7596 # the Alpha needs dnet_stub (dnet does not exist).
7597 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7598 echo "configure:7599: checking for dnet_ntoa in -ldnet" >&5
7599 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7602 else
7603 ac_save_LIBS="$LIBS"
7604 LIBS="-ldnet $LIBS"
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608 /* Override any gcc2 internal prototype to avoid an error. */
7609 /* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */
7611 char dnet_ntoa();
7612
7613 int main() {
7614 dnet_ntoa()
7615 ; return 0; }
7616 EOF
7617 if { (eval echo configure:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7618 rm -rf conftest*
7619 eval "ac_cv_lib_$ac_lib_var=yes"
7620 else
7621 echo "configure: failed program was:" >&5
7622 cat conftest.$ac_ext >&5
7623 rm -rf conftest*
7624 eval "ac_cv_lib_$ac_lib_var=no"
7625 fi
7626 rm -f conftest*
7627 LIBS="$ac_save_LIBS"
7628
7629 fi
7630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7631 echo "$ac_t""yes" 1>&6
7632 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7633 else
7634 echo "$ac_t""no" 1>&6
7635 fi
7636
7637 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7638 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7639 echo "configure:7640: checking for dnet_ntoa in -ldnet_stub" >&5
7640 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7643 else
7644 ac_save_LIBS="$LIBS"
7645 LIBS="-ldnet_stub $LIBS"
7646 cat > conftest.$ac_ext <<EOF
7647 #line 7648 "configure"
7648 #include "confdefs.h"
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7652 char dnet_ntoa();
7653
7654 int main() {
7655 dnet_ntoa()
7656 ; return 0; }
7657 EOF
7658 if { (eval echo configure:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7659 rm -rf conftest*
7660 eval "ac_cv_lib_$ac_lib_var=yes"
7661 else
7662 echo "configure: failed program was:" >&5
7663 cat conftest.$ac_ext >&5
7664 rm -rf conftest*
7665 eval "ac_cv_lib_$ac_lib_var=no"
7666 fi
7667 rm -f conftest*
7668 LIBS="$ac_save_LIBS"
7669
7670 fi
7671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7672 echo "$ac_t""yes" 1>&6
7673 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7674 else
7675 echo "$ac_t""no" 1>&6
7676 fi
7677
7678 fi
7679
7680 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7681 # to get the SysV transport functions.
7682 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7683 # needs -lnsl.
7684 # The nsl library prevents programs from opening the X display
7685 # on Irix 5.2, according to dickey@clark.net.
7686 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7687 echo "configure:7688: checking for gethostbyname" >&5
7688 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7690 else
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char gethostbyname(); below. */
7696 #include <assert.h>
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7700 char gethostbyname();
7701 char (*f)();
7702
7703 int main() {
7704
7705 /* The GNU C library defines this for functions which it implements
7706 to always fail with ENOSYS. Some functions are actually named
7707 something starting with __ and the normal name is an alias. */
7708 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7709 choke me
7710 #else
7711 f = gethostbyname;
7712 #endif
7713
7714 ; return 0; }
7715 EOF
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7717 rm -rf conftest*
7718 eval "ac_cv_func_gethostbyname=yes"
7719 else
7720 echo "configure: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7722 rm -rf conftest*
7723 eval "ac_cv_func_gethostbyname=no"
7724 fi
7725 rm -f conftest*
7726 fi
7727
7728 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7729 echo "$ac_t""yes" 1>&6
7730 :
7731 else
7732 echo "$ac_t""no" 1>&6
7733 fi
7734
7735 if test $ac_cv_func_gethostbyname = no; then
7736 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7737 echo "configure:7738: checking for gethostbyname in -lnsl" >&5
7738 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7741 else
7742 ac_save_LIBS="$LIBS"
7743 LIBS="-lnsl $LIBS"
7744 cat > conftest.$ac_ext <<EOF
7745 #line 7746 "configure"
7746 #include "confdefs.h"
7747 /* Override any gcc2 internal prototype to avoid an error. */
7748 /* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7750 char gethostbyname();
7751
7752 int main() {
7753 gethostbyname()
7754 ; return 0; }
7755 EOF
7756 if { (eval echo configure:7757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7757 rm -rf conftest*
7758 eval "ac_cv_lib_$ac_lib_var=yes"
7759 else
7760 echo "configure: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7762 rm -rf conftest*
7763 eval "ac_cv_lib_$ac_lib_var=no"
7764 fi
7765 rm -f conftest*
7766 LIBS="$ac_save_LIBS"
7767
7768 fi
7769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7770 echo "$ac_t""yes" 1>&6
7771 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7772 else
7773 echo "$ac_t""no" 1>&6
7774 fi
7775
7776 fi
7777
7778 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7779 # socket/setsockopt and other routines are undefined under SCO ODT
7780 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7781 # on later versions), says simon@lia.di.epfl.ch: it contains
7782 # gethostby* variants that don't use the nameserver (or something).
7783 # -lsocket must be given before -lnsl if both are needed.
7784 # We assume that if connect needs -lnsl, so does gethostbyname.
7785 echo $ac_n "checking for connect""... $ac_c" 1>&6
7786 echo "configure:7787: checking for connect" >&5
7787 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7789 else
7790 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 /* System header to define __stub macros and hopefully few prototypes,
7794 which can conflict with char connect(); below. */
7795 #include <assert.h>
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799 char connect();
7800 char (*f)();
7801
7802 int main() {
7803
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined (__stub_connect) || defined (__stub___connect)
7808 choke me
7809 #else
7810 f = connect;
7811 #endif
7812
7813 ; return 0; }
7814 EOF
7815 if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7816 rm -rf conftest*
7817 eval "ac_cv_func_connect=yes"
7818 else
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7821 rm -rf conftest*
7822 eval "ac_cv_func_connect=no"
7823 fi
7824 rm -f conftest*
7825 fi
7826
7827 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 :
7830 else
7831 echo "$ac_t""no" 1>&6
7832 fi
7833
7834 if test $ac_cv_func_connect = no; then
7835 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7836 echo "configure:7837: checking for connect in -lsocket" >&5
7837 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7840 else
7841 ac_save_LIBS="$LIBS"
7842 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7849 char connect();
7850
7851 int main() {
7852 connect()
7853 ; return 0; }
7854 EOF
7855 if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7856 rm -rf conftest*
7857 eval "ac_cv_lib_$ac_lib_var=yes"
7858 else
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 rm -rf conftest*
7862 eval "ac_cv_lib_$ac_lib_var=no"
7863 fi
7864 rm -f conftest*
7865 LIBS="$ac_save_LIBS"
7866
7867 fi
7868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7870 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7871 else
7872 echo "$ac_t""no" 1>&6
7873 fi
7874
7875 fi
7876
7877 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7878 echo $ac_n "checking for remove""... $ac_c" 1>&6
7879 echo "configure:7880: checking for remove" >&5
7880 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7882 else
7883 cat > conftest.$ac_ext <<EOF
7884 #line 7885 "configure"
7885 #include "confdefs.h"
7886 /* System header to define __stub macros and hopefully few prototypes,
7887 which can conflict with char remove(); below. */
7888 #include <assert.h>
7889 /* Override any gcc2 internal prototype to avoid an error. */
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892 char remove();
7893 char (*f)();
7894
7895 int main() {
7896
7897 /* The GNU C library defines this for functions which it implements
7898 to always fail with ENOSYS. Some functions are actually named
7899 something starting with __ and the normal name is an alias. */
7900 #if defined (__stub_remove) || defined (__stub___remove)
7901 choke me
7902 #else
7903 f = remove;
7904 #endif
7905
7906 ; return 0; }
7907 EOF
7908 if { (eval echo configure:7909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7909 rm -rf conftest*
7910 eval "ac_cv_func_remove=yes"
7911 else
7912 echo "configure: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7914 rm -rf conftest*
7915 eval "ac_cv_func_remove=no"
7916 fi
7917 rm -f conftest*
7918 fi
7919
7920 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 :
7923 else
7924 echo "$ac_t""no" 1>&6
7925 fi
7926
7927 if test $ac_cv_func_remove = no; then
7928 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7929 echo "configure:7930: checking for remove in -lposix" >&5
7930 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7933 else
7934 ac_save_LIBS="$LIBS"
7935 LIBS="-lposix $LIBS"
7936 cat > conftest.$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7939 /* Override any gcc2 internal prototype to avoid an error. */
7940 /* We use char because int might match the return type of a gcc2
7941 builtin and then its argument prototype would still apply. */
7942 char remove();
7943
7944 int main() {
7945 remove()
7946 ; return 0; }
7947 EOF
7948 if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7949 rm -rf conftest*
7950 eval "ac_cv_lib_$ac_lib_var=yes"
7951 else
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7954 rm -rf conftest*
7955 eval "ac_cv_lib_$ac_lib_var=no"
7956 fi
7957 rm -f conftest*
7958 LIBS="$ac_save_LIBS"
7959
7960 fi
7961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7962 echo "$ac_t""yes" 1>&6
7963 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7964 else
7965 echo "$ac_t""no" 1>&6
7966 fi
7967
7968 fi
7969
7970 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7971 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7972 echo "configure:7973: checking for shmat" >&5
7973 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7974 echo $ac_n "(cached) $ac_c" 1>&6
7975 else
7976 cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7979 /* System header to define __stub macros and hopefully few prototypes,
7980 which can conflict with char shmat(); below. */
7981 #include <assert.h>
7982 /* Override any gcc2 internal prototype to avoid an error. */
7983 /* We use char because int might match the return type of a gcc2
7984 builtin and then its argument prototype would still apply. */
7985 char shmat();
7986 char (*f)();
7987
7988 int main() {
7989
7990 /* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993 #if defined (__stub_shmat) || defined (__stub___shmat)
7994 choke me
7995 #else
7996 f = shmat;
7997 #endif
7998
7999 ; return 0; }
8000 EOF
8001 if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8002 rm -rf conftest*
8003 eval "ac_cv_func_shmat=yes"
8004 else
8005 echo "configure: failed program was:" >&5
8006 cat conftest.$ac_ext >&5
8007 rm -rf conftest*
8008 eval "ac_cv_func_shmat=no"
8009 fi
8010 rm -f conftest*
8011 fi
8012
8013 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8014 echo "$ac_t""yes" 1>&6
8015 :
8016 else
8017 echo "$ac_t""no" 1>&6
8018 fi
8019
8020 if test $ac_cv_func_shmat = no; then
8021 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8022 echo "configure:8023: checking for shmat in -lipc" >&5
8023 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8026 else
8027 ac_save_LIBS="$LIBS"
8028 LIBS="-lipc $LIBS"
8029 cat > conftest.$ac_ext <<EOF
8030 #line 8031 "configure"
8031 #include "confdefs.h"
8032 /* Override any gcc2 internal prototype to avoid an error. */
8033 /* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8035 char shmat();
8036
8037 int main() {
8038 shmat()
8039 ; return 0; }
8040 EOF
8041 if { (eval echo configure:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8042 rm -rf conftest*
8043 eval "ac_cv_lib_$ac_lib_var=yes"
8044 else
8045 echo "configure: failed program was:" >&5
8046 cat conftest.$ac_ext >&5
8047 rm -rf conftest*
8048 eval "ac_cv_lib_$ac_lib_var=no"
8049 fi
8050 rm -f conftest*
8051 LIBS="$ac_save_LIBS"
8052
8053 fi
8054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8055 echo "$ac_t""yes" 1>&6
8056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8057 else
8058 echo "$ac_t""no" 1>&6
8059 fi
8060
8061 fi
8062 fi
8063
8064 # Check for libraries that X11R6 Xt/Xaw programs need.
8065 ac_save_LDFLAGS="$LDFLAGS"
8066 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8067 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8068 # check for ICE first), but we must link in the order -lSM -lICE or
8069 # we get undefined symbols. So assume we have SM if we have ICE.
8070 # These have to be linked with before -lX11, unlike the other
8071 # libraries we check for below, so use a different variable.
8072 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8073 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8074 echo "configure:8075: checking for IceConnectionNumber in -lICE" >&5
8075 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8078 else
8079 ac_save_LIBS="$LIBS"
8080 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8081 cat > conftest.$ac_ext <<EOF
8082 #line 8083 "configure"
8083 #include "confdefs.h"
8084 /* Override any gcc2 internal prototype to avoid an error. */
8085 /* We use char because int might match the return type of a gcc2
8086 builtin and then its argument prototype would still apply. */
8087 char IceConnectionNumber();
8088
8089 int main() {
8090 IceConnectionNumber()
8091 ; return 0; }
8092 EOF
8093 if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8094 rm -rf conftest*
8095 eval "ac_cv_lib_$ac_lib_var=yes"
8096 else
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 rm -rf conftest*
8100 eval "ac_cv_lib_$ac_lib_var=no"
8101 fi
8102 rm -f conftest*
8103 LIBS="$ac_save_LIBS"
8104
8105 fi
8106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8107 echo "$ac_t""yes" 1>&6
8108 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8109 else
8110 echo "$ac_t""no" 1>&6
8111 fi
8112
8113 LDFLAGS="$ac_save_LDFLAGS"
8114
8115 fi
8116
8117
8118 if test "$no_x" = "yes"; then
8119 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8120 fi
8121
8122 GUI_TK_LIBRARY="$X_LIBS"
8123 TOOLKIT_INCLUDE="$X_CFLAGS"
8124
8125 AFMINSTALL=afminstall
8126
8127
8128 COMPILED_X_PROGRAM=0
8129
8130 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8131 echo "configure:8132: checking for Motif/Lesstif headers" >&5
8132
8133 ac_find_includes=
8134 for ac_dir in $SEARCH_INCLUDE;
8135 do
8136 if test -f "$ac_dir/Xm/Xm.h"; then
8137 ac_find_includes=$ac_dir
8138 break
8139 fi
8140 done
8141
8142 if test "$ac_find_includes" != "" ; then
8143 echo "$ac_t""found $ac_find_includes" 1>&6
8144 else
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148
8149 #include <Xm/Xm.h>
8150
8151 int main() {
8152
8153 int version;
8154
8155 version = xmUseVersion;
8156
8157 ; return 0; }
8158 EOF
8159 if { (eval echo configure:8160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8160 rm -rf conftest*
8161
8162 echo "$ac_t""found in default search path" 1>&6
8163 COMPILED_X_PROGRAM=1
8164
8165 else
8166 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8168 rm -rf conftest*
8169
8170 echo "$ac_t""no" 1>&6
8171 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8172
8173
8174 fi
8175 rm -f conftest*
8176 fi
8177
8178 if test "$COMPILED_X_PROGRAM" = 0; then
8179 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8180 echo "configure:8181: checking for Motif/Lesstif library" >&5
8181
8182 ac_find_libraries=
8183 for ac_dir in $SEARCH_LIB;
8184 do
8185 for ac_extension in a so sl; do
8186 if test -f "$ac_dir/libXm.$ac_extension"; then
8187 ac_find_libraries=$ac_dir
8188 break 2
8189 fi
8190 done
8191 done
8192
8193 if test "$ac_find_libraries" != "" ; then
8194
8195 ac_path_to_include=$ac_find_includes
8196 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8197 result=$?
8198 if test $result = 0; then
8199 ac_path_to_include=""
8200 else
8201 ac_path_to_include="-I$ac_find_includes"
8202 fi
8203
8204
8205 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8206 result=$?
8207 if test $result = 0; then
8208 ac_path_to_link=""
8209 else
8210 ac_path_to_link="-L$ac_find_libraries"
8211 fi
8212
8213
8214 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8215 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8216 echo "$ac_t""found at $ac_find_libraries" 1>&6
8217 else
8218 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure"
8220 #include "confdefs.h"
8221
8222 #include <Xm/Xm.h>
8223
8224 int main() {
8225
8226 int version;
8227
8228 version = xmUseVersion;
8229
8230 ; return 0; }
8231 EOF
8232 if { (eval echo configure:8233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8233 rm -rf conftest*
8234
8235 echo "$ac_t""found in default search path" 1>&6
8236 COMPILED_X_PROGRAM=1
8237
8238 else
8239 echo "configure: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8241 rm -rf conftest*
8242
8243 echo "$ac_t""no" 1>&6
8244 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8245
8246
8247 fi
8248 rm -f conftest*
8249 fi
8250 fi
8251
8252
8253 XPM_LINK=""
8254 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8255 echo "configure:8256: checking for Xpm library" >&5
8256
8257 ac_find_libraries=
8258 for ac_dir in $SEARCH_LIB;
8259 do
8260 for ac_extension in a so sl; do
8261 if test -f "$ac_dir/libXpm.$ac_extension"; then
8262 ac_find_libraries=$ac_dir
8263 break 2
8264 fi
8265 done
8266 done
8267
8268 if test "$ac_find_libraries" != "" ; then
8269
8270 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8271 result=$?
8272 if test $result = 0; then
8273 ac_path_to_link=""
8274 else
8275 ac_path_to_link="-L$ac_find_libraries"
8276 fi
8277
8278 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8279 XPM_LINK="-lXpm "
8280 cat >> confdefs.h <<\EOF
8281 #define wxHAVE_LIB_XPM 1
8282 EOF
8283
8284 echo "$ac_t""found at $ac_find_libraries" 1>&6
8285 else
8286 cat > conftest.$ac_ext <<EOF
8287 #line 8288 "configure"
8288 #include "confdefs.h"
8289
8290 #include <X11/xpm.h>
8291
8292 int main() {
8293
8294 int version;
8295
8296 version = XpmLibraryVersion();
8297
8298 ; return 0; }
8299 EOF
8300 if { (eval echo configure:8301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8301 rm -rf conftest*
8302
8303 XPM_LINK="-lXpm "
8304 cat >> confdefs.h <<\EOF
8305 #define wxHAVE_LIB_XPM 1
8306 EOF
8307
8308 echo "$ac_t""found in default search path" 1>&6
8309 COMPILED_X_PROGRAM=0
8310
8311 else
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8314 rm -rf conftest*
8315
8316 echo "$ac_t""no" 1>&6
8317 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8318
8319
8320 fi
8321 rm -f conftest*
8322 fi
8323
8324 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8325 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8326 TOOLKIT=MOTIF
8327
8328 GUIHEADERS="\$(MOTIF_HEADERS)"
8329 GUIOBJS="\$(MOTIF_GUIOBJS)"
8330 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
8331 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8332 GUIDEPS="\$(MOTIF_GUIDEPS)"
8333 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
8334 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8335 UNIXOBJS="\$(UNIX_OBJS)"
8336 UNIXDEPS="\$(UNIX_DEPS)"
8337 GUIDIST=MOTIF_DIST
8338 fi
8339
8340 if test "$wxUSE_PM" = 1; then
8341 TOOLKIT=PM
8342
8343 GUIOBJS="\$(PM_GUIOBJS)"
8344 GUIHEADERS="\$(PM_HEADERS)"
8345 COMMONOBJS="\$(PM_COMMONOBJS)"
8346 GENERICOBJS="\$(PM_GENERICOBJS)"
8347 GUIDEPS="\$(PM_GUIDEPS)"
8348 COMMONDEPS="\$(PM_COMMONDEPS)"
8349 GENERICDEPS="\$(PM_GENERICDEPS)"
8350 UNIXOBJS=
8351 UNIXDEPS=
8352 GUIDIST=GTK_DIST
8353 fi
8354
8355 if test "$TOOLKIT" != "PM" ; then
8356 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
8357 else
8358 TOOLKIT_DIR="os2"
8359 fi
8360
8361 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8362
8363 WX_LIBRARY="wx_${TOOLKIT_DIR}"
8364
8365 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)"
8366
8367 if test "$TOOLKIT" != "MSW"; then
8368 if test "$wxUSE_ODBC" = "yes" ; then
8369 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8370 fi
8371 fi
8372
8373 if test "$wxUSE_LIBJPEG" = "yes" ; then
8374 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8375 fi
8376 if test "$wxUSE_LIBTIFF" = "yes" ; then
8377 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8378 fi
8379 if test "$wxUSE_LIBPNG" = "yes" ; then
8380 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8381 fi
8382 if test "$wxUSE_ZLIB" = "yes" ; then
8383 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8384 fi
8385 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8386
8387 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8388 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8389 RPM_SPEC="wx\$(TOOLKIT).spec"
8390
8391 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8392 DISTDIR="wx\$(TOOLKIT)"
8393 else
8394
8395 USE_GUI=0
8396
8397 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8398 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
8399
8400 WX_LIBRARY="wxbase"
8401
8402 PORT_FILES="src/files.lst"
8403 RPM_FILES="src/rpmfiles.lst"
8404 RPM_SPEC="wxBase.spec"
8405
8406 GUIDIST="BASE_DIST"
8407 DISTDIR="wxBase"
8408 fi
8409
8410 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8411
8412 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8413
8414 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8415
8416 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8417 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8418 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8419
8420 SHARED_LD=
8421 PIC_FLAG=
8422 WX_ALL=
8423 WX_ALL_INSTALLED=
8424 BURNT_LIBRARY_NAME=
8425
8426
8427 if test "$wxUSE_SHARED" = "yes"; then
8428 case "${host}" in
8429 *-hp-hpux* )
8430 if test "$GCC" = yes ; then
8431 SHARED_LD="${CC} -shared -fPIC -o"
8432 PIC_FLAG="-fPIC"
8433 else
8434 SHARED_LD="${CXX} -b -o"
8435 PIC_FLAG="+Z"
8436 fi
8437 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8438 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8439 ;;
8440
8441 *-*-linux* )
8442 SHARED_LD="${CC} -shared -o"
8443 PIC_FLAG="-fPIC"
8444 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8445 WX_ALL="CREATE_LINKS"
8446 if test "$wxUSE_BURNT_NAME" = "yes" ; then
8447 BURNT_LIBRARY_NAME="-Wl,-soname -Wl,${WX_LIBRARY_NAME_SHARED}"
8448 fi
8449 ;;
8450 *-*-irix5* | *-*-irix6* )
8451 if test "$GCC" = yes ; then
8452 SHARED_LD="${CC} -shared -o"
8453 PIC_FLAG="-fPIC"
8454 else
8455 SHARED_LD="${CXX} -shared -o"
8456 fi
8457 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8458 WX_ALL="CREATE_LINKS"
8459 ;;
8460 *-*-solaris2* )
8461 if test "$GCC" = yes ; then
8462 SHARED_LD="${CC} -shared -o"
8463 PIC_FLAG="-fPIC"
8464 else
8465 SHARED_LD="${CXX} -G -o"
8466 PIC_FLAG="-KPIC"
8467 fi
8468 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8469 WX_ALL="CREATE_LINKS"
8470 ;;
8471 *-*-sunos4* )
8472 SHARED_LD="${CC} -shared -o"
8473 PIC_FLAG="-fPIC"
8474 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8475 WX_ALL="CREATE_LINKS"
8476 ;;
8477 *-*-freebsd* | *-*-netbsd*)
8478 SHARED_LD="${CC} -shared -o"
8479 PIC_FLAG="-fPIC"
8480 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8481 WX_ALL="CREATE_LINKS"
8482 ;;
8483 *-*-osf* )
8484 SHARED_LD="${CXX} -shared -o"
8485 PIC_FLAG="-fPIC"
8486 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8487 WX_ALL="CREATE_LINKS"
8488 ;;
8489 *-*-dgux5* )
8490 SHARED_LD="${CXX} -shared -o"
8491 PIC_FLAG="-fPIC"
8492 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8493 WX_ALL="CREATE_LINKS"
8494 ;;
8495 *-*-sysv5* )
8496 SHARED_LD="${CC} -shared -o"
8497 PIC_FLAG="-fPIC"
8498 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8499 WX_ALL="CREATE_LINKS"
8500 ;;
8501 *-*-aix* )
8502 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8503 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8504 ;;
8505 *-*-cygwin32* )
8506 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8507 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8508 ;;
8509 *-*-mingw32* )
8510 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8511 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8512 ;;
8513 *-pc-os2_emx )
8514 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8515 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8516 ;;
8517 *-*-beos* )
8518 SHARED_LD="${LD} -shared -o"
8519 PIC_FLAG="-fPIC"
8520 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8521 WX_ALL="CREATE_LINKS"
8522 ;;
8523 *)
8524 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8525 esac
8526
8527 if test "x$WX_TARGET_LIBRARY" = "x"; then
8528 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8529 fi
8530 else
8531 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8532 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8533 fi
8534
8535
8536 for ac_hdr in strings.h
8537 do
8538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8540 echo "configure:8541: checking for $ac_hdr" >&5
8541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8543 else
8544 cat > conftest.$ac_ext <<EOF
8545 #line 8546 "configure"
8546 #include "confdefs.h"
8547 #include <$ac_hdr>
8548 EOF
8549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8550 { (eval echo configure:8551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8552 if test -z "$ac_err"; then
8553 rm -rf conftest*
8554 eval "ac_cv_header_$ac_safe=yes"
8555 else
8556 echo "$ac_err" >&5
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 rm -rf conftest*
8560 eval "ac_cv_header_$ac_safe=no"
8561 fi
8562 rm -f conftest*
8563 fi
8564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8565 echo "$ac_t""yes" 1>&6
8566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8567 cat >> confdefs.h <<EOF
8568 #define $ac_tr_hdr 1
8569 EOF
8570
8571 else
8572 echo "$ac_t""no" 1>&6
8573 fi
8574 done
8575
8576 for ac_hdr in unistd.h
8577 do
8578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8580 echo "configure:8581: checking for $ac_hdr" >&5
8581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8583 else
8584 cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8587 #include <$ac_hdr>
8588 EOF
8589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8590 { (eval echo configure:8591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8592 if test -z "$ac_err"; then
8593 rm -rf conftest*
8594 eval "ac_cv_header_$ac_safe=yes"
8595 else
8596 echo "$ac_err" >&5
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 rm -rf conftest*
8600 eval "ac_cv_header_$ac_safe=no"
8601 fi
8602 rm -f conftest*
8603 fi
8604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8605 echo "$ac_t""yes" 1>&6
8606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8607 cat >> confdefs.h <<EOF
8608 #define $ac_tr_hdr 1
8609 EOF
8610
8611 else
8612 echo "$ac_t""no" 1>&6
8613 fi
8614 done
8615
8616 for ac_hdr in wchar.h
8617 do
8618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8620 echo "configure:8621: checking for $ac_hdr" >&5
8621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8623 else
8624 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627 #include <$ac_hdr>
8628 EOF
8629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8630 { (eval echo configure:8631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8632 if test -z "$ac_err"; then
8633 rm -rf conftest*
8634 eval "ac_cv_header_$ac_safe=yes"
8635 else
8636 echo "$ac_err" >&5
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8639 rm -rf conftest*
8640 eval "ac_cv_header_$ac_safe=no"
8641 fi
8642 rm -f conftest*
8643 fi
8644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8645 echo "$ac_t""yes" 1>&6
8646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8647 cat >> confdefs.h <<EOF
8648 #define $ac_tr_hdr 1
8649 EOF
8650
8651 else
8652 echo "$ac_t""no" 1>&6
8653 fi
8654 done
8655
8656 for ac_hdr in wcstr.h
8657 do
8658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8660 echo "configure:8661: checking for $ac_hdr" >&5
8661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8662 echo $ac_n "(cached) $ac_c" 1>&6
8663 else
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8667 #include <$ac_hdr>
8668 EOF
8669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8670 { (eval echo configure:8671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8672 if test -z "$ac_err"; then
8673 rm -rf conftest*
8674 eval "ac_cv_header_$ac_safe=yes"
8675 else
8676 echo "$ac_err" >&5
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 rm -rf conftest*
8680 eval "ac_cv_header_$ac_safe=no"
8681 fi
8682 rm -f conftest*
8683 fi
8684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8685 echo "$ac_t""yes" 1>&6
8686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8687 cat >> confdefs.h <<EOF
8688 #define $ac_tr_hdr 1
8689 EOF
8690
8691 else
8692 echo "$ac_t""no" 1>&6
8693 fi
8694 done
8695
8696 for ac_hdr in fnmatch.h
8697 do
8698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8700 echo "configure:8701: checking for $ac_hdr" >&5
8701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8703 else
8704 cat > conftest.$ac_ext <<EOF
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8707 #include <$ac_hdr>
8708 EOF
8709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8710 { (eval echo configure:8711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8712 if test -z "$ac_err"; then
8713 rm -rf conftest*
8714 eval "ac_cv_header_$ac_safe=yes"
8715 else
8716 echo "$ac_err" >&5
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8719 rm -rf conftest*
8720 eval "ac_cv_header_$ac_safe=no"
8721 fi
8722 rm -f conftest*
8723 fi
8724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8725 echo "$ac_t""yes" 1>&6
8726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8727 cat >> confdefs.h <<EOF
8728 #define $ac_tr_hdr 1
8729 EOF
8730
8731 else
8732 echo "$ac_t""no" 1>&6
8733 fi
8734 done
8735
8736
8737 if test "$wxUSE_GUI" = "yes"; then
8738 for ac_hdr in X11/XKBlib.h
8739 do
8740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8742 echo "configure:8743: checking for $ac_hdr" >&5
8743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8745 else
8746 cat > conftest.$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8749 #include <$ac_hdr>
8750 EOF
8751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8752 { (eval echo configure:8753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8754 if test -z "$ac_err"; then
8755 rm -rf conftest*
8756 eval "ac_cv_header_$ac_safe=yes"
8757 else
8758 echo "$ac_err" >&5
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 rm -rf conftest*
8762 eval "ac_cv_header_$ac_safe=no"
8763 fi
8764 rm -f conftest*
8765 fi
8766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8767 echo "$ac_t""yes" 1>&6
8768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8769 cat >> confdefs.h <<EOF
8770 #define $ac_tr_hdr 1
8771 EOF
8772
8773 else
8774 echo "$ac_t""no" 1>&6
8775 fi
8776 done
8777
8778 fi
8779
8780
8781 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8782 echo "configure:8783: checking for ANSI C header files" >&5
8783 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8785 else
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8789 #include <stdlib.h>
8790 #include <stdarg.h>
8791 #include <string.h>
8792 #include <float.h>
8793 EOF
8794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8795 { (eval echo configure:8796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8797 if test -z "$ac_err"; then
8798 rm -rf conftest*
8799 ac_cv_header_stdc=yes
8800 else
8801 echo "$ac_err" >&5
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8804 rm -rf conftest*
8805 ac_cv_header_stdc=no
8806 fi
8807 rm -f conftest*
8808
8809 if test $ac_cv_header_stdc = yes; then
8810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8811 cat > conftest.$ac_ext <<EOF
8812 #line 8813 "configure"
8813 #include "confdefs.h"
8814 #include <string.h>
8815 EOF
8816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817 egrep "memchr" >/dev/null 2>&1; then
8818 :
8819 else
8820 rm -rf conftest*
8821 ac_cv_header_stdc=no
8822 fi
8823 rm -f conftest*
8824
8825 fi
8826
8827 if test $ac_cv_header_stdc = yes; then
8828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8829 cat > conftest.$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8832 #include <stdlib.h>
8833 EOF
8834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8835 egrep "free" >/dev/null 2>&1; then
8836 :
8837 else
8838 rm -rf conftest*
8839 ac_cv_header_stdc=no
8840 fi
8841 rm -f conftest*
8842
8843 fi
8844
8845 if test $ac_cv_header_stdc = yes; then
8846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8847 if test "$cross_compiling" = yes; then
8848 :
8849 else
8850 cat > conftest.$ac_ext <<EOF
8851 #line 8852 "configure"
8852 #include "confdefs.h"
8853 #include <ctype.h>
8854 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8855 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8857 int main () { int i; for (i = 0; i < 256; i++)
8858 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8859 exit (0); }
8860
8861 EOF
8862 if { (eval echo configure:8863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8863 then
8864 :
8865 else
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8868 rm -fr conftest*
8869 ac_cv_header_stdc=no
8870 fi
8871 rm -fr conftest*
8872 fi
8873
8874 fi
8875 fi
8876
8877 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8878 if test $ac_cv_header_stdc = yes; then
8879 cat >> confdefs.h <<\EOF
8880 #define STDC_HEADERS 1
8881 EOF
8882
8883 fi
8884
8885 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8886 echo "configure:8887: checking for mode_t" >&5
8887 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8888 echo $ac_n "(cached) $ac_c" 1>&6
8889 else
8890 cat > conftest.$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8893 #include <sys/types.h>
8894 #if STDC_HEADERS
8895 #include <stdlib.h>
8896 #include <stddef.h>
8897 #endif
8898 EOF
8899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8900 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8901 rm -rf conftest*
8902 ac_cv_type_mode_t=yes
8903 else
8904 rm -rf conftest*
8905 ac_cv_type_mode_t=no
8906 fi
8907 rm -f conftest*
8908
8909 fi
8910 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8911 if test $ac_cv_type_mode_t = no; then
8912 cat >> confdefs.h <<\EOF
8913 #define mode_t int
8914 EOF
8915
8916 fi
8917
8918 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8919 echo "configure:8920: checking for off_t" >&5
8920 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922 else
8923 cat > conftest.$ac_ext <<EOF
8924 #line 8925 "configure"
8925 #include "confdefs.h"
8926 #include <sys/types.h>
8927 #if STDC_HEADERS
8928 #include <stdlib.h>
8929 #include <stddef.h>
8930 #endif
8931 EOF
8932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8933 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8934 rm -rf conftest*
8935 ac_cv_type_off_t=yes
8936 else
8937 rm -rf conftest*
8938 ac_cv_type_off_t=no
8939 fi
8940 rm -f conftest*
8941
8942 fi
8943 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8944 if test $ac_cv_type_off_t = no; then
8945 cat >> confdefs.h <<\EOF
8946 #define off_t long
8947 EOF
8948
8949 fi
8950
8951 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8952 echo "configure:8953: checking for pid_t" >&5
8953 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8954 echo $ac_n "(cached) $ac_c" 1>&6
8955 else
8956 cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure"
8958 #include "confdefs.h"
8959 #include <sys/types.h>
8960 #if STDC_HEADERS
8961 #include <stdlib.h>
8962 #include <stddef.h>
8963 #endif
8964 EOF
8965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8966 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8967 rm -rf conftest*
8968 ac_cv_type_pid_t=yes
8969 else
8970 rm -rf conftest*
8971 ac_cv_type_pid_t=no
8972 fi
8973 rm -f conftest*
8974
8975 fi
8976 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8977 if test $ac_cv_type_pid_t = no; then
8978 cat >> confdefs.h <<\EOF
8979 #define pid_t int
8980 EOF
8981
8982 fi
8983
8984 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8985 echo "configure:8986: checking for size_t" >&5
8986 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8988 else
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 #include <sys/types.h>
8993 #if STDC_HEADERS
8994 #include <stdlib.h>
8995 #include <stddef.h>
8996 #endif
8997 EOF
8998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8999 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9000 rm -rf conftest*
9001 ac_cv_type_size_t=yes
9002 else
9003 rm -rf conftest*
9004 ac_cv_type_size_t=no
9005 fi
9006 rm -f conftest*
9007
9008 fi
9009 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9010 if test $ac_cv_type_size_t = no; then
9011 cat >> confdefs.h <<\EOF
9012 #define size_t unsigned
9013 EOF
9014
9015 fi
9016
9017 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9018 echo "configure:9019: checking for uid_t in sys/types.h" >&5
9019 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9020 echo $ac_n "(cached) $ac_c" 1>&6
9021 else
9022 cat > conftest.$ac_ext <<EOF
9023 #line 9024 "configure"
9024 #include "confdefs.h"
9025 #include <sys/types.h>
9026 EOF
9027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9028 egrep "uid_t" >/dev/null 2>&1; then
9029 rm -rf conftest*
9030 ac_cv_type_uid_t=yes
9031 else
9032 rm -rf conftest*
9033 ac_cv_type_uid_t=no
9034 fi
9035 rm -f conftest*
9036
9037 fi
9038
9039 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9040 if test $ac_cv_type_uid_t = no; then
9041 cat >> confdefs.h <<\EOF
9042 #define uid_t int
9043 EOF
9044
9045 cat >> confdefs.h <<\EOF
9046 #define gid_t int
9047 EOF
9048
9049 fi
9050
9051
9052
9053 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9054 echo "configure:9055: checking for pw_gecos in struct passwd" >&5
9055 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9057 else
9058
9059 cat > conftest.$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9062 #include <pwd.h>
9063 int main() {
9064
9065 char *p;
9066 struct passwd *pw;
9067 p = pw->pw_gecos;
9068
9069 ; return 0; }
9070 EOF
9071 if { (eval echo configure:9072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9072 rm -rf conftest*
9073
9074 wx_cv_struct_pw_gecos=yes
9075 cat >> confdefs.h <<\EOF
9076 #define HAVE_PW_GECOS 1
9077 EOF
9078
9079
9080 else
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9083 rm -rf conftest*
9084
9085 wx_cv_struct_pw_gecos=no
9086
9087
9088 fi
9089 rm -f conftest*
9090
9091
9092 fi
9093
9094 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9095
9096
9097 echo $ac_n "checking for working const""... $ac_c" 1>&6
9098 echo "configure:9099: checking for working const" >&5
9099 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9101 else
9102 cat > conftest.$ac_ext <<EOF
9103 #line 9104 "configure"
9104 #include "confdefs.h"
9105
9106 int main() {
9107
9108 /* Ultrix mips cc rejects this. */
9109 typedef int charset[2]; const charset x;
9110 /* SunOS 4.1.1 cc rejects this. */
9111 char const *const *ccp;
9112 char **p;
9113 /* NEC SVR4.0.2 mips cc rejects this. */
9114 struct point {int x, y;};
9115 static struct point const zero = {0,0};
9116 /* AIX XL C 1.02.0.0 rejects this.
9117 It does not let you subtract one const X* pointer from another in an arm
9118 of an if-expression whose if-part is not a constant expression */
9119 const char *g = "string";
9120 ccp = &g + (g ? g-g : 0);
9121 /* HPUX 7.0 cc rejects these. */
9122 ++ccp;
9123 p = (char**) ccp;
9124 ccp = (char const *const *) p;
9125 { /* SCO 3.2v4 cc rejects this. */
9126 char *t;
9127 char const *s = 0 ? (char *) 0 : (char const *) 0;
9128
9129 *t++ = 0;
9130 }
9131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9132 int x[] = {25, 17};
9133 const int *foo = &x[0];
9134 ++foo;
9135 }
9136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9137 typedef const int *iptr;
9138 iptr p = 0;
9139 ++p;
9140 }
9141 { /* AIX XL C 1.02.0.0 rejects this saying
9142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9143 struct s { int j; const int *ap[3]; };
9144 struct s *b; b->j = 5;
9145 }
9146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9147 const int foo = 10;
9148 }
9149
9150 ; return 0; }
9151 EOF
9152 if { (eval echo configure:9153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9153 rm -rf conftest*
9154 ac_cv_c_const=yes
9155 else
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9158 rm -rf conftest*
9159 ac_cv_c_const=no
9160 fi
9161 rm -f conftest*
9162 fi
9163
9164 echo "$ac_t""$ac_cv_c_const" 1>&6
9165 if test $ac_cv_c_const = no; then
9166 cat >> confdefs.h <<\EOF
9167 #define const
9168 EOF
9169
9170 fi
9171
9172 echo $ac_n "checking for inline""... $ac_c" 1>&6
9173 echo "configure:9174: checking for inline" >&5
9174 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9177 ac_cv_c_inline=no
9178 for ac_kw in inline __inline__ __inline; do
9179 cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9182
9183 int main() {
9184 } $ac_kw foo() {
9185 ; return 0; }
9186 EOF
9187 if { (eval echo configure:9188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9188 rm -rf conftest*
9189 ac_cv_c_inline=$ac_kw; break
9190 else
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 fi
9194 rm -f conftest*
9195 done
9196
9197 fi
9198
9199 echo "$ac_t""$ac_cv_c_inline" 1>&6
9200 case "$ac_cv_c_inline" in
9201 inline | yes) ;;
9202 no) cat >> confdefs.h <<\EOF
9203 #define inline
9204 EOF
9205 ;;
9206 *) cat >> confdefs.h <<EOF
9207 #define inline $ac_cv_c_inline
9208 EOF
9209 ;;
9210 esac
9211
9212
9213 echo $ac_n "checking size of char""... $ac_c" 1>&6
9214 echo "configure:9215: checking size of char" >&5
9215 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9217 else
9218 if test "$cross_compiling" = yes; then
9219 ac_cv_sizeof_char=1
9220 else
9221 cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 #include <stdio.h>
9225 main()
9226 {
9227 FILE *f=fopen("conftestval", "w");
9228 if (!f) exit(1);
9229 fprintf(f, "%d\n", sizeof(char));
9230 exit(0);
9231 }
9232 EOF
9233 if { (eval echo configure:9234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9234 then
9235 ac_cv_sizeof_char=`cat conftestval`
9236 else
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9239 rm -fr conftest*
9240 ac_cv_sizeof_char=0
9241 fi
9242 rm -fr conftest*
9243 fi
9244
9245 fi
9246 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9247 cat >> confdefs.h <<EOF
9248 #define SIZEOF_CHAR $ac_cv_sizeof_char
9249 EOF
9250
9251
9252 echo $ac_n "checking size of short""... $ac_c" 1>&6
9253 echo "configure:9254: checking size of short" >&5
9254 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9256 else
9257 if test "$cross_compiling" = yes; then
9258 ac_cv_sizeof_short=2
9259 else
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9263 #include <stdio.h>
9264 main()
9265 {
9266 FILE *f=fopen("conftestval", "w");
9267 if (!f) exit(1);
9268 fprintf(f, "%d\n", sizeof(short));
9269 exit(0);
9270 }
9271 EOF
9272 if { (eval echo configure:9273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9273 then
9274 ac_cv_sizeof_short=`cat conftestval`
9275 else
9276 echo "configure: failed program was:" >&5
9277 cat conftest.$ac_ext >&5
9278 rm -fr conftest*
9279 ac_cv_sizeof_short=0
9280 fi
9281 rm -fr conftest*
9282 fi
9283
9284 fi
9285 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9286 cat >> confdefs.h <<EOF
9287 #define SIZEOF_SHORT $ac_cv_sizeof_short
9288 EOF
9289
9290
9291 echo $ac_n "checking size of int *""... $ac_c" 1>&6
9292 echo "configure:9293: checking size of int *" >&5
9293 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9294 echo $ac_n "(cached) $ac_c" 1>&6
9295 else
9296 if test "$cross_compiling" = yes; then
9297 ac_cv_sizeof_int_p=4
9298 else
9299 cat > conftest.$ac_ext <<EOF
9300 #line 9301 "configure"
9301 #include "confdefs.h"
9302 #include <stdio.h>
9303 main()
9304 {
9305 FILE *f=fopen("conftestval", "w");
9306 if (!f) exit(1);
9307 fprintf(f, "%d\n", sizeof(int *));
9308 exit(0);
9309 }
9310 EOF
9311 if { (eval echo configure:9312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9312 then
9313 ac_cv_sizeof_int_p=`cat conftestval`
9314 else
9315 echo "configure: failed program was:" >&5
9316 cat conftest.$ac_ext >&5
9317 rm -fr conftest*
9318 ac_cv_sizeof_int_p=0
9319 fi
9320 rm -fr conftest*
9321 fi
9322
9323 fi
9324 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9325 cat >> confdefs.h <<EOF
9326 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9327 EOF
9328
9329
9330 echo $ac_n "checking size of int""... $ac_c" 1>&6
9331 echo "configure:9332: checking size of int" >&5
9332 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9333 echo $ac_n "(cached) $ac_c" 1>&6
9334 else
9335 if test "$cross_compiling" = yes; then
9336 ac_cv_sizeof_int=4
9337 else
9338 cat > conftest.$ac_ext <<EOF
9339 #line 9340 "configure"
9340 #include "confdefs.h"
9341 #include <stdio.h>
9342 main()
9343 {
9344 FILE *f=fopen("conftestval", "w");
9345 if (!f) exit(1);
9346 fprintf(f, "%d\n", sizeof(int));
9347 exit(0);
9348 }
9349 EOF
9350 if { (eval echo configure:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9351 then
9352 ac_cv_sizeof_int=`cat conftestval`
9353 else
9354 echo "configure: failed program was:" >&5
9355 cat conftest.$ac_ext >&5
9356 rm -fr conftest*
9357 ac_cv_sizeof_int=0
9358 fi
9359 rm -fr conftest*
9360 fi
9361
9362 fi
9363 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9364 cat >> confdefs.h <<EOF
9365 #define SIZEOF_INT $ac_cv_sizeof_int
9366 EOF
9367
9368
9369 echo $ac_n "checking size of long""... $ac_c" 1>&6
9370 echo "configure:9371: checking size of long" >&5
9371 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9373 else
9374 if test "$cross_compiling" = yes; then
9375 ac_cv_sizeof_long=4
9376 else
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380 #include <stdio.h>
9381 main()
9382 {
9383 FILE *f=fopen("conftestval", "w");
9384 if (!f) exit(1);
9385 fprintf(f, "%d\n", sizeof(long));
9386 exit(0);
9387 }
9388 EOF
9389 if { (eval echo configure:9390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9390 then
9391 ac_cv_sizeof_long=`cat conftestval`
9392 else
9393 echo "configure: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9395 rm -fr conftest*
9396 ac_cv_sizeof_long=0
9397 fi
9398 rm -fr conftest*
9399 fi
9400
9401 fi
9402 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9403 cat >> confdefs.h <<EOF
9404 #define SIZEOF_LONG $ac_cv_sizeof_long
9405 EOF
9406
9407
9408 echo $ac_n "checking size of long long""... $ac_c" 1>&6
9409 echo "configure:9410: checking size of long long" >&5
9410 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9412 else
9413 if test "$cross_compiling" = yes; then
9414 ac_cv_sizeof_long_long=0
9415 else
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9419 #include <stdio.h>
9420 main()
9421 {
9422 FILE *f=fopen("conftestval", "w");
9423 if (!f) exit(1);
9424 fprintf(f, "%d\n", sizeof(long long));
9425 exit(0);
9426 }
9427 EOF
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9429 then
9430 ac_cv_sizeof_long_long=`cat conftestval`
9431 else
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -fr conftest*
9435 ac_cv_sizeof_long_long=0
9436 fi
9437 rm -fr conftest*
9438 fi
9439
9440 fi
9441 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9442 cat >> confdefs.h <<EOF
9443 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9444 EOF
9445
9446
9447
9448 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9449 echo "configure:9450: checking whether byte ordering is bigendian" >&5
9450 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9452 else
9453 ac_cv_c_bigendian=unknown
9454 # See if sys/param.h defines the BYTE_ORDER macro.
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 #include <sys/types.h>
9459 #include <sys/param.h>
9460 int main() {
9461
9462 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9463 bogus endian macros
9464 #endif
9465 ; return 0; }
9466 EOF
9467 if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468 rm -rf conftest*
9469 # It does; now see whether it defined to BIG_ENDIAN or not.
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 #include <sys/types.h>
9474 #include <sys/param.h>
9475 int main() {
9476
9477 #if BYTE_ORDER != BIG_ENDIAN
9478 not big endian
9479 #endif
9480 ; return 0; }
9481 EOF
9482 if { (eval echo configure:9483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9483 rm -rf conftest*
9484 ac_cv_c_bigendian=yes
9485 else
9486 echo "configure: failed program was:" >&5
9487 cat conftest.$ac_ext >&5
9488 rm -rf conftest*
9489 ac_cv_c_bigendian=no
9490 fi
9491 rm -f conftest*
9492 else
9493 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9495 fi
9496 rm -f conftest*
9497 if test $ac_cv_c_bigendian = unknown; then
9498 if test "$cross_compiling" = yes; then
9499 ac_cv_c_bigendian=unknown
9500 else
9501 cat > conftest.$ac_ext <<EOF
9502 #line 9503 "configure"
9503 #include "confdefs.h"
9504 main () {
9505 /* Are we little or big endian? From Harbison&Steele. */
9506 union
9507 {
9508 long l;
9509 char c[sizeof (long)];
9510 } u;
9511 u.l = 1;
9512 exit (u.c[sizeof (long) - 1] == 1);
9513 }
9514 EOF
9515 if { (eval echo configure:9516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9516 then
9517 ac_cv_c_bigendian=no
9518 else
9519 echo "configure: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 rm -fr conftest*
9522 ac_cv_c_bigendian=yes
9523 fi
9524 rm -fr conftest*
9525 fi
9526
9527 fi
9528 fi
9529
9530 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9531 if test $ac_cv_c_bigendian = unknown; then
9532 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
9533 fi
9534 if test $ac_cv_c_bigendian = yes; then
9535 cat >> confdefs.h <<\EOF
9536 #define WORDS_BIGENDIAN 1
9537 EOF
9538
9539 fi
9540
9541
9542
9543 if test "$cross_compiling" = "yes"; then
9544 cat >> confdefs.h <<\EOF
9545 #define wxUSE_IOSTREAMH 1
9546 EOF
9547
9548 else
9549
9550 ac_ext=C
9551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9552 ac_cpp='$CXXCPP $CPPFLAGS'
9553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9555 cross_compiling=$ac_cv_prog_cxx_cross
9556
9557
9558 for ac_hdr in iostream
9559 do
9560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9562 echo "configure:9563: checking for $ac_hdr" >&5
9563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9564 echo $ac_n "(cached) $ac_c" 1>&6
9565 else
9566 cat > conftest.$ac_ext <<EOF
9567 #line 9568 "configure"
9568 #include "confdefs.h"
9569 #include <$ac_hdr>
9570 EOF
9571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9572 { (eval echo configure:9573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9574 if test -z "$ac_err"; then
9575 rm -rf conftest*
9576 eval "ac_cv_header_$ac_safe=yes"
9577 else
9578 echo "$ac_err" >&5
9579 echo "configure: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9581 rm -rf conftest*
9582 eval "ac_cv_header_$ac_safe=no"
9583 fi
9584 rm -f conftest*
9585 fi
9586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9587 echo "$ac_t""yes" 1>&6
9588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9589 cat >> confdefs.h <<EOF
9590 #define $ac_tr_hdr 1
9591 EOF
9592
9593 else
9594 echo "$ac_t""no" 1>&6
9595 fi
9596 done
9597
9598
9599 if test "x$HAVE_IOSTREAM" = x ; then
9600 cat >> confdefs.h <<\EOF
9601 #define wxUSE_IOSTREAMH 1
9602 EOF
9603
9604 else
9605 :
9606 fi
9607
9608 ac_ext=c
9609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9610 ac_cpp='$CPP $CPPFLAGS'
9611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9613 cross_compiling=$ac_cv_prog_cc_cross
9614
9615 fi
9616
9617
9618
9619 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9620 echo "configure:9621: checking if C++ compiler supports bool" >&5
9621 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623 else
9624
9625
9626 ac_ext=C
9627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9628 ac_cpp='$CXXCPP $CPPFLAGS'
9629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9630 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9631 cross_compiling=$ac_cv_prog_cxx_cross
9632
9633
9634 cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9637
9638
9639 int main() {
9640
9641 bool b = true;
9642
9643 return 0;
9644
9645 ; return 0; }
9646 EOF
9647 if { (eval echo configure:9648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9648 rm -rf conftest*
9649
9650 cat >> confdefs.h <<\EOF
9651 #define HAVE_BOOL 1
9652 EOF
9653
9654 wx_cv_cpp_bool=yes
9655
9656 else
9657 echo "configure: failed program was:" >&5
9658 cat conftest.$ac_ext >&5
9659 rm -rf conftest*
9660
9661 wx_cv_cpp_bool=no
9662
9663
9664 fi
9665 rm -f conftest*
9666
9667 ac_ext=c
9668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9669 ac_cpp='$CPP $CPPFLAGS'
9670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9672 cross_compiling=$ac_cv_prog_cc_cross
9673
9674
9675 fi
9676
9677 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9678
9679 if test "$wx_cv_cpp_bool" = "yes"; then
9680 cat >> confdefs.h <<\EOF
9681 #define HAVE_BOOL 1
9682 EOF
9683
9684 fi
9685
9686
9687
9688 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9689 echo "configure:9690: checking if you need GNU extensions" >&5
9690 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9692 else
9693
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 #include <features.h>
9698 int main() {
9699
9700
9701 #ifndef __GNU_LIBRARY__
9702 Compile error wanted
9703 #endif
9704
9705
9706 ; return 0; }
9707 EOF
9708 if { (eval echo configure:9709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9709 rm -rf conftest*
9710 wx_cv_gnu_extensions=yes
9711 else
9712 echo "configure: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9714 rm -rf conftest*
9715 wx_cv_gnu_extensions=no
9716 fi
9717 rm -f conftest*
9718
9719 fi
9720
9721
9722 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9723 if test "$wx_cv_gnu_extensions" = "yes"; then
9724 cat >> confdefs.h <<EOF
9725 #define _GNU_SOURCE 1
9726 EOF
9727
9728 fi
9729
9730
9731
9732 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9733 echo "configure:9734: checking for wcslen in -lc" >&5
9734 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9737 else
9738 ac_save_LIBS="$LIBS"
9739 LIBS="-lc $LIBS"
9740 cat > conftest.$ac_ext <<EOF
9741 #line 9742 "configure"
9742 #include "confdefs.h"
9743 /* Override any gcc2 internal prototype to avoid an error. */
9744 /* We use char because int might match the return type of a gcc2
9745 builtin and then its argument prototype would still apply. */
9746 char wcslen();
9747
9748 int main() {
9749 wcslen()
9750 ; return 0; }
9751 EOF
9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9753 rm -rf conftest*
9754 eval "ac_cv_lib_$ac_lib_var=yes"
9755 else
9756 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 rm -rf conftest*
9759 eval "ac_cv_lib_$ac_lib_var=no"
9760 fi
9761 rm -f conftest*
9762 LIBS="$ac_save_LIBS"
9763
9764 fi
9765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9766 echo "$ac_t""yes" 1>&6
9767
9768 cat >> confdefs.h <<\EOF
9769 #define HAVE_WCSLEN 1
9770 EOF
9771
9772 WCHAR_LINK=""
9773
9774 else
9775 echo "$ac_t""no" 1>&6
9776
9777 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9778 echo "configure:9779: checking for wcslen in -lw" >&5
9779 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9781 echo $ac_n "(cached) $ac_c" 1>&6
9782 else
9783 ac_save_LIBS="$LIBS"
9784 LIBS="-lw $LIBS"
9785 cat > conftest.$ac_ext <<EOF
9786 #line 9787 "configure"
9787 #include "confdefs.h"
9788 /* Override any gcc2 internal prototype to avoid an error. */
9789 /* We use char because int might match the return type of a gcc2
9790 builtin and then its argument prototype would still apply. */
9791 char wcslen();
9792
9793 int main() {
9794 wcslen()
9795 ; return 0; }
9796 EOF
9797 if { (eval echo configure:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9798 rm -rf conftest*
9799 eval "ac_cv_lib_$ac_lib_var=yes"
9800 else
9801 echo "configure: failed program was:" >&5
9802 cat conftest.$ac_ext >&5
9803 rm -rf conftest*
9804 eval "ac_cv_lib_$ac_lib_var=no"
9805 fi
9806 rm -f conftest*
9807 LIBS="$ac_save_LIBS"
9808
9809 fi
9810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9811 echo "$ac_t""yes" 1>&6
9812
9813 cat >> confdefs.h <<\EOF
9814 #define HAVE_WCSLEN 1
9815 EOF
9816
9817 WCHAR_LINK="-lw"
9818
9819 else
9820 echo "$ac_t""no" 1>&6
9821 fi
9822
9823
9824 fi
9825
9826
9827 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9828 echo "configure:9829: checking for vprintf" >&5
9829 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
9831 else
9832 cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char vprintf(); below. */
9837 #include <assert.h>
9838 /* Override any gcc2 internal prototype to avoid an error. */
9839 /* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9841 char vprintf();
9842 char (*f)();
9843
9844 int main() {
9845
9846 /* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
9849 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9850 choke me
9851 #else
9852 f = vprintf;
9853 #endif
9854
9855 ; return 0; }
9856 EOF
9857 if { (eval echo configure:9858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9858 rm -rf conftest*
9859 eval "ac_cv_func_vprintf=yes"
9860 else
9861 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
9863 rm -rf conftest*
9864 eval "ac_cv_func_vprintf=no"
9865 fi
9866 rm -f conftest*
9867 fi
9868
9869 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9870 echo "$ac_t""yes" 1>&6
9871 cat >> confdefs.h <<\EOF
9872 #define HAVE_VPRINTF 1
9873 EOF
9874
9875 else
9876 echo "$ac_t""no" 1>&6
9877 fi
9878
9879 if test "$ac_cv_func_vprintf" != yes; then
9880 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9881 echo "configure:9882: checking for _doprnt" >&5
9882 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9884 else
9885 cat > conftest.$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9888 /* System header to define __stub macros and hopefully few prototypes,
9889 which can conflict with char _doprnt(); below. */
9890 #include <assert.h>
9891 /* Override any gcc2 internal prototype to avoid an error. */
9892 /* We use char because int might match the return type of a gcc2
9893 builtin and then its argument prototype would still apply. */
9894 char _doprnt();
9895 char (*f)();
9896
9897 int main() {
9898
9899 /* The GNU C library defines this for functions which it implements
9900 to always fail with ENOSYS. Some functions are actually named
9901 something starting with __ and the normal name is an alias. */
9902 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9903 choke me
9904 #else
9905 f = _doprnt;
9906 #endif
9907
9908 ; return 0; }
9909 EOF
9910 if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9911 rm -rf conftest*
9912 eval "ac_cv_func__doprnt=yes"
9913 else
9914 echo "configure: failed program was:" >&5
9915 cat conftest.$ac_ext >&5
9916 rm -rf conftest*
9917 eval "ac_cv_func__doprnt=no"
9918 fi
9919 rm -f conftest*
9920 fi
9921
9922 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9923 echo "$ac_t""yes" 1>&6
9924 cat >> confdefs.h <<\EOF
9925 #define HAVE_DOPRNT 1
9926 EOF
9927
9928 else
9929 echo "$ac_t""no" 1>&6
9930 fi
9931
9932 fi
9933
9934
9935 for ac_func in vsnprintf
9936 do
9937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9938 echo "configure:9939: checking for $ac_func" >&5
9939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9941 else
9942 cat > conftest.$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9945 /* System header to define __stub macros and hopefully few prototypes,
9946 which can conflict with char $ac_func(); below. */
9947 #include <assert.h>
9948 /* Override any gcc2 internal prototype to avoid an error. */
9949 /* We use char because int might match the return type of a gcc2
9950 builtin and then its argument prototype would still apply. */
9951 char $ac_func();
9952 char (*f)();
9953
9954 int main() {
9955
9956 /* The GNU C library defines this for functions which it implements
9957 to always fail with ENOSYS. Some functions are actually named
9958 something starting with __ and the normal name is an alias. */
9959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9960 choke me
9961 #else
9962 f = $ac_func;
9963 #endif
9964
9965 ; return 0; }
9966 EOF
9967 if { (eval echo configure:9968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9968 rm -rf conftest*
9969 eval "ac_cv_func_$ac_func=yes"
9970 else
9971 echo "configure: failed program was:" >&5
9972 cat conftest.$ac_ext >&5
9973 rm -rf conftest*
9974 eval "ac_cv_func_$ac_func=no"
9975 fi
9976 rm -f conftest*
9977 fi
9978
9979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9980 echo "$ac_t""yes" 1>&6
9981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9982 cat >> confdefs.h <<EOF
9983 #define $ac_tr_func 1
9984 EOF
9985 cat >> confdefs.h <<\EOF
9986 #define HAVE_VSNPRINTF 1
9987 EOF
9988
9989 else
9990 echo "$ac_t""no" 1>&6
9991 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9992
9993 fi
9994 done
9995
9996
9997
9998 ac_ext=C
9999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10000 ac_cpp='$CXXCPP $CPPFLAGS'
10001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10003 cross_compiling=$ac_cv_prog_cxx_cross
10004
10005
10006 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
10007 echo "configure:10008: checking for vsscanf" >&5
10008 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10009 echo $ac_n "(cached) $ac_c" 1>&6
10010 else
10011
10012 if test "$cross_compiling" = yes; then
10013 wx_cv_func_vsscanf=no
10014
10015 else
10016 cat > conftest.$ac_ext <<EOF
10017 #line 10018 "configure"
10018 #include "confdefs.h"
10019 #ifdef __cplusplus
10020 extern "C" void exit(int);
10021 #endif
10022
10023 #include <stdio.h>
10024 #include <stdarg.h>
10025
10026 int try_vsscanf(const char *format, ...)
10027 {
10028 va_list ap;
10029 va_start(ap, format);
10030
10031 vsscanf("17", format, ap);
10032
10033 va_end(ap);
10034 }
10035
10036 int main()
10037 {
10038 int i;
10039 try_vsscanf("%d", &i);
10040 return i == 17 ? 0 : 1;
10041 }
10042
10043 EOF
10044 if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10045 then
10046
10047 cat >> confdefs.h <<\EOF
10048 #define HAVE_VSSCANF 1
10049 EOF
10050
10051 wx_cv_func_vsscanf=yes
10052
10053 else
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10056 rm -fr conftest*
10057 wx_cv_func_vsscanf=no
10058 fi
10059 rm -fr conftest*
10060 fi
10061
10062
10063 fi
10064
10065 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10066
10067 ac_ext=c
10068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10069 ac_cpp='$CPP $CPPFLAGS'
10070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10072 cross_compiling=$ac_cv_prog_cc_cross
10073
10074
10075 if test "$TOOLKIT" != "MSW"; then
10076
10077 for ac_func in vfork
10078 do
10079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10080 echo "configure:10081: checking for $ac_func" >&5
10081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10082 echo $ac_n "(cached) $ac_c" 1>&6
10083 else
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 /* System header to define __stub macros and hopefully few prototypes,
10088 which can conflict with char $ac_func(); below. */
10089 #include <assert.h>
10090 /* Override any gcc2 internal prototype to avoid an error. */
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10093 char $ac_func();
10094 char (*f)();
10095
10096 int main() {
10097
10098 /* The GNU C library defines this for functions which it implements
10099 to always fail with ENOSYS. Some functions are actually named
10100 something starting with __ and the normal name is an alias. */
10101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10102 choke me
10103 #else
10104 f = $ac_func;
10105 #endif
10106
10107 ; return 0; }
10108 EOF
10109 if { (eval echo configure:10110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10110 rm -rf conftest*
10111 eval "ac_cv_func_$ac_func=yes"
10112 else
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10115 rm -rf conftest*
10116 eval "ac_cv_func_$ac_func=no"
10117 fi
10118 rm -f conftest*
10119 fi
10120
10121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10122 echo "$ac_t""yes" 1>&6
10123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10124 cat >> confdefs.h <<EOF
10125 #define $ac_tr_func 1
10126 EOF
10127
10128 else
10129 echo "$ac_t""no" 1>&6
10130 fi
10131 done
10132
10133
10134 for ac_func in timegm
10135 do
10136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10137 echo "configure:10138: checking for $ac_func" >&5
10138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10140 else
10141 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10144 /* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func(); below. */
10146 #include <assert.h>
10147 /* Override any gcc2 internal prototype to avoid an error. */
10148 /* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150 char $ac_func();
10151 char (*f)();
10152
10153 int main() {
10154
10155 /* The GNU C library defines this for functions which it implements
10156 to always fail with ENOSYS. Some functions are actually named
10157 something starting with __ and the normal name is an alias. */
10158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10159 choke me
10160 #else
10161 f = $ac_func;
10162 #endif
10163
10164 ; return 0; }
10165 EOF
10166 if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10167 rm -rf conftest*
10168 eval "ac_cv_func_$ac_func=yes"
10169 else
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10172 rm -rf conftest*
10173 eval "ac_cv_func_$ac_func=no"
10174 fi
10175 rm -f conftest*
10176 fi
10177
10178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10179 echo "$ac_t""yes" 1>&6
10180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10181 cat >> confdefs.h <<EOF
10182 #define $ac_tr_func 1
10183 EOF
10184
10185 else
10186 echo "$ac_t""no" 1>&6
10187 fi
10188 done
10189
10190
10191 HAVE_SOME_SLEEP_FUNC=0
10192 if test "$USE_BEOS" = 1; then
10193 cat >> confdefs.h <<\EOF
10194 #define HAVE_SLEEP 1
10195 EOF
10196
10197 HAVE_SOME_SLEEP_FUNC=1
10198 fi
10199
10200 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10201 POSIX4_LINK=
10202 for ac_func in nanosleep
10203 do
10204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10205 echo "configure:10206: checking for $ac_func" >&5
10206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10208 else
10209 cat > conftest.$ac_ext <<EOF
10210 #line 10211 "configure"
10211 #include "confdefs.h"
10212 /* System header to define __stub macros and hopefully few prototypes,
10213 which can conflict with char $ac_func(); below. */
10214 #include <assert.h>
10215 /* Override any gcc2 internal prototype to avoid an error. */
10216 /* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10218 char $ac_func();
10219 char (*f)();
10220
10221 int main() {
10222
10223 /* The GNU C library defines this for functions which it implements
10224 to always fail with ENOSYS. Some functions are actually named
10225 something starting with __ and the normal name is an alias. */
10226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10227 choke me
10228 #else
10229 f = $ac_func;
10230 #endif
10231
10232 ; return 0; }
10233 EOF
10234 if { (eval echo configure:10235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10235 rm -rf conftest*
10236 eval "ac_cv_func_$ac_func=yes"
10237 else
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 rm -rf conftest*
10241 eval "ac_cv_func_$ac_func=no"
10242 fi
10243 rm -f conftest*
10244 fi
10245
10246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10247 echo "$ac_t""yes" 1>&6
10248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10249 cat >> confdefs.h <<EOF
10250 #define $ac_tr_func 1
10251 EOF
10252 cat >> confdefs.h <<\EOF
10253 #define HAVE_NANOSLEEP 1
10254 EOF
10255
10256 else
10257 echo "$ac_t""no" 1>&6
10258 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
10259 echo "configure:10260: checking for nanosleep in -lposix4" >&5
10260 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10262 echo $ac_n "(cached) $ac_c" 1>&6
10263 else
10264 ac_save_LIBS="$LIBS"
10265 LIBS="-lposix4 $LIBS"
10266 cat > conftest.$ac_ext <<EOF
10267 #line 10268 "configure"
10268 #include "confdefs.h"
10269 /* Override any gcc2 internal prototype to avoid an error. */
10270 /* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10272 char nanosleep();
10273
10274 int main() {
10275 nanosleep()
10276 ; return 0; }
10277 EOF
10278 if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10279 rm -rf conftest*
10280 eval "ac_cv_lib_$ac_lib_var=yes"
10281 else
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 rm -rf conftest*
10285 eval "ac_cv_lib_$ac_lib_var=no"
10286 fi
10287 rm -f conftest*
10288 LIBS="$ac_save_LIBS"
10289
10290 fi
10291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10292 echo "$ac_t""yes" 1>&6
10293
10294 cat >> confdefs.h <<\EOF
10295 #define HAVE_NANOSLEEP 1
10296 EOF
10297
10298 POSIX4_LINK="-lposix4"
10299
10300 else
10301 echo "$ac_t""no" 1>&6
10302
10303 for ac_func in usleep
10304 do
10305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10306 echo "configure:10307: checking for $ac_func" >&5
10307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10308 echo $ac_n "(cached) $ac_c" 1>&6
10309 else
10310 cat > conftest.$ac_ext <<EOF
10311 #line 10312 "configure"
10312 #include "confdefs.h"
10313 /* System header to define __stub macros and hopefully few prototypes,
10314 which can conflict with char $ac_func(); below. */
10315 #include <assert.h>
10316 /* Override any gcc2 internal prototype to avoid an error. */
10317 /* We use char because int might match the return type of a gcc2
10318 builtin and then its argument prototype would still apply. */
10319 char $ac_func();
10320 char (*f)();
10321
10322 int main() {
10323
10324 /* The GNU C library defines this for functions which it implements
10325 to always fail with ENOSYS. Some functions are actually named
10326 something starting with __ and the normal name is an alias. */
10327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10328 choke me
10329 #else
10330 f = $ac_func;
10331 #endif
10332
10333 ; return 0; }
10334 EOF
10335 if { (eval echo configure:10336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10336 rm -rf conftest*
10337 eval "ac_cv_func_$ac_func=yes"
10338 else
10339 echo "configure: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10341 rm -rf conftest*
10342 eval "ac_cv_func_$ac_func=no"
10343 fi
10344 rm -f conftest*
10345 fi
10346
10347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10348 echo "$ac_t""yes" 1>&6
10349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10350 cat >> confdefs.h <<EOF
10351 #define $ac_tr_func 1
10352 EOF
10353
10354 else
10355 echo "$ac_t""no" 1>&6
10356 fi
10357 done
10358
10359 echo "configure: warning: wxSleep() function will not work" 1>&2
10360
10361
10362 fi
10363
10364
10365
10366 fi
10367 done
10368
10369 fi
10370
10371 for ac_func in uname gethostname
10372 do
10373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10374 echo "configure:10375: checking for $ac_func" >&5
10375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10376 echo $ac_n "(cached) $ac_c" 1>&6
10377 else
10378 cat > conftest.$ac_ext <<EOF
10379 #line 10380 "configure"
10380 #include "confdefs.h"
10381 /* System header to define __stub macros and hopefully few prototypes,
10382 which can conflict with char $ac_func(); below. */
10383 #include <assert.h>
10384 /* Override any gcc2 internal prototype to avoid an error. */
10385 /* We use char because int might match the return type of a gcc2
10386 builtin and then its argument prototype would still apply. */
10387 char $ac_func();
10388 char (*f)();
10389
10390 int main() {
10391
10392 /* The GNU C library defines this for functions which it implements
10393 to always fail with ENOSYS. Some functions are actually named
10394 something starting with __ and the normal name is an alias. */
10395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10396 choke me
10397 #else
10398 f = $ac_func;
10399 #endif
10400
10401 ; return 0; }
10402 EOF
10403 if { (eval echo configure:10404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10404 rm -rf conftest*
10405 eval "ac_cv_func_$ac_func=yes"
10406 else
10407 echo "configure: failed program was:" >&5
10408 cat conftest.$ac_ext >&5
10409 rm -rf conftest*
10410 eval "ac_cv_func_$ac_func=no"
10411 fi
10412 rm -f conftest*
10413 fi
10414
10415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10416 echo "$ac_t""yes" 1>&6
10417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10418 cat >> confdefs.h <<EOF
10419 #define $ac_tr_func 1
10420 EOF
10421 break
10422 else
10423 echo "$ac_t""no" 1>&6
10424 fi
10425 done
10426
10427
10428 for ac_func in strtok_r
10429 do
10430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10431 echo "configure:10432: checking for $ac_func" >&5
10432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10434 else
10435 cat > conftest.$ac_ext <<EOF
10436 #line 10437 "configure"
10437 #include "confdefs.h"
10438 /* System header to define __stub macros and hopefully few prototypes,
10439 which can conflict with char $ac_func(); below. */
10440 #include <assert.h>
10441 /* Override any gcc2 internal prototype to avoid an error. */
10442 /* We use char because int might match the return type of a gcc2
10443 builtin and then its argument prototype would still apply. */
10444 char $ac_func();
10445 char (*f)();
10446
10447 int main() {
10448
10449 /* The GNU C library defines this for functions which it implements
10450 to always fail with ENOSYS. Some functions are actually named
10451 something starting with __ and the normal name is an alias. */
10452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10453 choke me
10454 #else
10455 f = $ac_func;
10456 #endif
10457
10458 ; return 0; }
10459 EOF
10460 if { (eval echo configure:10461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10461 rm -rf conftest*
10462 eval "ac_cv_func_$ac_func=yes"
10463 else
10464 echo "configure: failed program was:" >&5
10465 cat conftest.$ac_ext >&5
10466 rm -rf conftest*
10467 eval "ac_cv_func_$ac_func=no"
10468 fi
10469 rm -f conftest*
10470 fi
10471
10472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10473 echo "$ac_t""yes" 1>&6
10474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10475 cat >> confdefs.h <<EOF
10476 #define $ac_tr_func 1
10477 EOF
10478
10479 else
10480 echo "$ac_t""no" 1>&6
10481 fi
10482 done
10483
10484
10485 INET_LINK=
10486 for ac_func in inet_addr
10487 do
10488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10489 echo "configure:10490: checking for $ac_func" >&5
10490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10491 echo $ac_n "(cached) $ac_c" 1>&6
10492 else
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10496 /* System header to define __stub macros and hopefully few prototypes,
10497 which can conflict with char $ac_func(); below. */
10498 #include <assert.h>
10499 /* Override any gcc2 internal prototype to avoid an error. */
10500 /* We use char because int might match the return type of a gcc2
10501 builtin and then its argument prototype would still apply. */
10502 char $ac_func();
10503 char (*f)();
10504
10505 int main() {
10506
10507 /* The GNU C library defines this for functions which it implements
10508 to always fail with ENOSYS. Some functions are actually named
10509 something starting with __ and the normal name is an alias. */
10510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10511 choke me
10512 #else
10513 f = $ac_func;
10514 #endif
10515
10516 ; return 0; }
10517 EOF
10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10519 rm -rf conftest*
10520 eval "ac_cv_func_$ac_func=yes"
10521 else
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 rm -rf conftest*
10525 eval "ac_cv_func_$ac_func=no"
10526 fi
10527 rm -f conftest*
10528 fi
10529
10530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10531 echo "$ac_t""yes" 1>&6
10532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10533 cat >> confdefs.h <<EOF
10534 #define $ac_tr_func 1
10535 EOF
10536 cat >> confdefs.h <<\EOF
10537 #define HAVE_INET_ADDR 1
10538 EOF
10539
10540 else
10541 echo "$ac_t""no" 1>&6
10542 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
10543 echo "configure:10544: checking for inet_addr in -lnsl" >&5
10544 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10547 else
10548 ac_save_LIBS="$LIBS"
10549 LIBS="-lnsl $LIBS"
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 /* Override any gcc2 internal prototype to avoid an error. */
10554 /* We use char because int might match the return type of a gcc2
10555 builtin and then its argument prototype would still apply. */
10556 char inet_addr();
10557
10558 int main() {
10559 inet_addr()
10560 ; return 0; }
10561 EOF
10562 if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10563 rm -rf conftest*
10564 eval "ac_cv_lib_$ac_lib_var=yes"
10565 else
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10568 rm -rf conftest*
10569 eval "ac_cv_lib_$ac_lib_var=no"
10570 fi
10571 rm -f conftest*
10572 LIBS="$ac_save_LIBS"
10573
10574 fi
10575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10576 echo "$ac_t""yes" 1>&6
10577 INET_LINK="nsl"
10578 else
10579 echo "$ac_t""no" 1>&6
10580 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
10581 echo "configure:10582: checking for inet_addr in -lresolv" >&5
10582 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10585 else
10586 ac_save_LIBS="$LIBS"
10587 LIBS="-lresolv $LIBS"
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10591 /* Override any gcc2 internal prototype to avoid an error. */
10592 /* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10594 char inet_addr();
10595
10596 int main() {
10597 inet_addr()
10598 ; return 0; }
10599 EOF
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10601 rm -rf conftest*
10602 eval "ac_cv_lib_$ac_lib_var=yes"
10603 else
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 rm -rf conftest*
10607 eval "ac_cv_lib_$ac_lib_var=no"
10608 fi
10609 rm -f conftest*
10610 LIBS="$ac_save_LIBS"
10611
10612 fi
10613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10614 echo "$ac_t""yes" 1>&6
10615 INET_LINK="resolv"
10616
10617 else
10618 echo "$ac_t""no" 1>&6
10619 fi
10620
10621
10622 fi
10623
10624
10625
10626 fi
10627 done
10628
10629
10630 for ac_func in inet_aton
10631 do
10632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10633 echo "configure:10634: checking for $ac_func" >&5
10634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10635 echo $ac_n "(cached) $ac_c" 1>&6
10636 else
10637 cat > conftest.$ac_ext <<EOF
10638 #line 10639 "configure"
10639 #include "confdefs.h"
10640 /* System header to define __stub macros and hopefully few prototypes,
10641 which can conflict with char $ac_func(); below. */
10642 #include <assert.h>
10643 /* Override any gcc2 internal prototype to avoid an error. */
10644 /* We use char because int might match the return type of a gcc2
10645 builtin and then its argument prototype would still apply. */
10646 char $ac_func();
10647 char (*f)();
10648
10649 int main() {
10650
10651 /* The GNU C library defines this for functions which it implements
10652 to always fail with ENOSYS. Some functions are actually named
10653 something starting with __ and the normal name is an alias. */
10654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10655 choke me
10656 #else
10657 f = $ac_func;
10658 #endif
10659
10660 ; return 0; }
10661 EOF
10662 if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10663 rm -rf conftest*
10664 eval "ac_cv_func_$ac_func=yes"
10665 else
10666 echo "configure: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 rm -rf conftest*
10669 eval "ac_cv_func_$ac_func=no"
10670 fi
10671 rm -f conftest*
10672 fi
10673
10674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10675 echo "$ac_t""yes" 1>&6
10676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10677 cat >> confdefs.h <<EOF
10678 #define $ac_tr_func 1
10679 EOF
10680 cat >> confdefs.h <<\EOF
10681 #define HAVE_INET_ATON 1
10682 EOF
10683
10684 else
10685 echo "$ac_t""no" 1>&6
10686 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
10687 echo "configure:10688: checking for inet_aton in -l$INET_LINK" >&5
10688 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10691 else
10692 ac_save_LIBS="$LIBS"
10693 LIBS="-l$INET_LINK $LIBS"
10694 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10697 /* Override any gcc2 internal prototype to avoid an error. */
10698 /* We use char because int might match the return type of a gcc2
10699 builtin and then its argument prototype would still apply. */
10700 char inet_aton();
10701
10702 int main() {
10703 inet_aton()
10704 ; return 0; }
10705 EOF
10706 if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10707 rm -rf conftest*
10708 eval "ac_cv_lib_$ac_lib_var=yes"
10709 else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -rf conftest*
10713 eval "ac_cv_lib_$ac_lib_var=no"
10714 fi
10715 rm -f conftest*
10716 LIBS="$ac_save_LIBS"
10717
10718 fi
10719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10720 echo "$ac_t""yes" 1>&6
10721 cat >> confdefs.h <<\EOF
10722 #define HAVE_INET_ATON 1
10723 EOF
10724
10725 else
10726 echo "$ac_t""no" 1>&6
10727 fi
10728
10729
10730 fi
10731 done
10732
10733
10734 if test "x$INET_LINK" != "x"; then
10735 cat >> confdefs.h <<\EOF
10736 #define HAVE_INET_ADDR 1
10737 EOF
10738
10739 INET_LINK="-l$INET_LINK"
10740 fi
10741
10742 fi
10743
10744
10745 cat > confcache <<\EOF
10746 # This file is a shell script that caches the results of configure
10747 # tests run on this system so they can be shared between configure
10748 # scripts and configure runs. It is not useful on other systems.
10749 # If it contains results you don't want to keep, you may remove or edit it.
10750 #
10751 # By default, configure uses ./config.cache as the cache file,
10752 # creating it if it does not exist already. You can give configure
10753 # the --cache-file=FILE option to use a different cache file; that is
10754 # what configure does when it calls configure scripts in
10755 # subdirectories, so they share the cache.
10756 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10757 # config.status only pays attention to the cache file if you give it the
10758 # --recheck option to rerun configure.
10759 #
10760 EOF
10761 # The following way of writing the cache mishandles newlines in values,
10762 # but we know of no workaround that is simple, portable, and efficient.
10763 # So, don't put newlines in cache variables' values.
10764 # Ultrix sh set writes to stderr and can't be redirected directly,
10765 # and sets the high bit in the cache file unless we assign to the vars.
10766 (set) 2>&1 |
10767 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10768 *ac_space=\ *)
10769 # `set' does not quote correctly, so add quotes (double-quote substitution
10770 # turns \\\\ into \\, and sed turns \\ into \).
10771 sed -n \
10772 -e "s/'/'\\\\''/g" \
10773 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10774 ;;
10775 *)
10776 # `set' quotes correctly as required by POSIX, so do not add quotes.
10777 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10778 ;;
10779 esac >> confcache
10780 if cmp -s $cache_file confcache; then
10781 :
10782 else
10783 if test -w $cache_file; then
10784 echo "updating cache $cache_file"
10785 cat confcache > $cache_file
10786 else
10787 echo "not updating unwritable cache $cache_file"
10788 fi
10789 fi
10790 rm -f confcache
10791
10792
10793
10794 if test "$TOOLKIT" != "MSW"; then
10795
10796
10797 THREADS_LINK=""
10798 THREADS_OBJ=""
10799
10800 if test "$wxUSE_THREADS" = "yes" ; then
10801 if test "$wxUSE_WINE" = 1 ; then
10802 echo "configure: warning: Threads are not supported under WINE" 1>&2
10803 wxUSE_THREADS="no"
10804 elif test "$USE_BEOS" = 1; then
10805 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10806 wxUSE_THREADS="no"
10807 fi
10808 fi
10809
10810 if test "$wxUSE_THREADS" = "yes" ; then
10811
10812 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10813 echo "configure:10814: checking for pthread_create in -lpthread" >&5
10814 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10816 echo $ac_n "(cached) $ac_c" 1>&6
10817 else
10818 ac_save_LIBS="$LIBS"
10819 LIBS="-lpthread $LIBS"
10820 cat > conftest.$ac_ext <<EOF
10821 #line 10822 "configure"
10822 #include "confdefs.h"
10823 /* Override any gcc2 internal prototype to avoid an error. */
10824 /* We use char because int might match the return type of a gcc2
10825 builtin and then its argument prototype would still apply. */
10826 char pthread_create();
10827
10828 int main() {
10829 pthread_create()
10830 ; return 0; }
10831 EOF
10832 if { (eval echo configure:10833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10833 rm -rf conftest*
10834 eval "ac_cv_lib_$ac_lib_var=yes"
10835 else
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10838 rm -rf conftest*
10839 eval "ac_cv_lib_$ac_lib_var=no"
10840 fi
10841 rm -f conftest*
10842 LIBS="$ac_save_LIBS"
10843
10844 fi
10845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10846 echo "$ac_t""yes" 1>&6
10847
10848 THREADS_OBJ="threadpsx.lo"
10849 THREADS_LINK="pthread"
10850
10851 else
10852 echo "$ac_t""no" 1>&6
10853
10854 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10855 echo "configure:10856: checking for pthread_create in -lc_r" >&5
10856 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10858 echo $ac_n "(cached) $ac_c" 1>&6
10859 else
10860 ac_save_LIBS="$LIBS"
10861 LIBS="-lc_r $LIBS"
10862 cat > conftest.$ac_ext <<EOF
10863 #line 10864 "configure"
10864 #include "confdefs.h"
10865 /* Override any gcc2 internal prototype to avoid an error. */
10866 /* We use char because int might match the return type of a gcc2
10867 builtin and then its argument prototype would still apply. */
10868 char pthread_create();
10869
10870 int main() {
10871 pthread_create()
10872 ; return 0; }
10873 EOF
10874 if { (eval echo configure:10875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10875 rm -rf conftest*
10876 eval "ac_cv_lib_$ac_lib_var=yes"
10877 else
10878 echo "configure: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10880 rm -rf conftest*
10881 eval "ac_cv_lib_$ac_lib_var=no"
10882 fi
10883 rm -f conftest*
10884 LIBS="$ac_save_LIBS"
10885
10886 fi
10887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10888 echo "$ac_t""yes" 1>&6
10889
10890 THREADS_OBJ="threadpsx.lo"
10891 THREADS_LINK="c_r"
10892
10893 else
10894 echo "$ac_t""no" 1>&6
10895
10896 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10897 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10898 echo "configure:10899: checking for sys/prctl.h" >&5
10899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10901 else
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 #include <sys/prctl.h>
10906 EOF
10907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10908 { (eval echo configure:10909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10910 if test -z "$ac_err"; then
10911 rm -rf conftest*
10912 eval "ac_cv_header_$ac_safe=yes"
10913 else
10914 echo "$ac_err" >&5
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 rm -rf conftest*
10918 eval "ac_cv_header_$ac_safe=no"
10919 fi
10920 rm -f conftest*
10921 fi
10922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10923 echo "$ac_t""yes" 1>&6
10924
10925 THREADS_OBJ="threadsgi.lo"
10926
10927 else
10928 echo "$ac_t""no" 1>&6
10929 fi
10930
10931
10932 fi
10933
10934
10935 fi
10936
10937
10938 if test -z "$THREADS_OBJ" ; then
10939 wxUSE_THREADS=no
10940 echo "configure: warning: No thread support on this system" 1>&2
10941 fi
10942 fi
10943
10944 if test "$wxUSE_THREADS" = "yes" ; then
10945 for ac_func in thr_setconcurrency
10946 do
10947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10948 echo "configure:10949: checking for $ac_func" >&5
10949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10950 echo $ac_n "(cached) $ac_c" 1>&6
10951 else
10952 cat > conftest.$ac_ext <<EOF
10953 #line 10954 "configure"
10954 #include "confdefs.h"
10955 /* System header to define __stub macros and hopefully few prototypes,
10956 which can conflict with char $ac_func(); below. */
10957 #include <assert.h>
10958 /* Override any gcc2 internal prototype to avoid an error. */
10959 /* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10961 char $ac_func();
10962 char (*f)();
10963
10964 int main() {
10965
10966 /* The GNU C library defines this for functions which it implements
10967 to always fail with ENOSYS. Some functions are actually named
10968 something starting with __ and the normal name is an alias. */
10969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10970 choke me
10971 #else
10972 f = $ac_func;
10973 #endif
10974
10975 ; return 0; }
10976 EOF
10977 if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10978 rm -rf conftest*
10979 eval "ac_cv_func_$ac_func=yes"
10980 else
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 rm -rf conftest*
10984 eval "ac_cv_func_$ac_func=no"
10985 fi
10986 rm -f conftest*
10987 fi
10988
10989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10990 echo "$ac_t""yes" 1>&6
10991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10992 cat >> confdefs.h <<EOF
10993 #define $ac_tr_func 1
10994 EOF
10995
10996 else
10997 echo "$ac_t""no" 1>&6
10998 fi
10999 done
11000
11001
11002
11003 for ac_hdr in sched.h
11004 do
11005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11007 echo "configure:11008: checking for $ac_hdr" >&5
11008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11009 echo $ac_n "(cached) $ac_c" 1>&6
11010 else
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11014 #include <$ac_hdr>
11015 EOF
11016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11017 { (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11019 if test -z "$ac_err"; then
11020 rm -rf conftest*
11021 eval "ac_cv_header_$ac_safe=yes"
11022 else
11023 echo "$ac_err" >&5
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11026 rm -rf conftest*
11027 eval "ac_cv_header_$ac_safe=no"
11028 fi
11029 rm -f conftest*
11030 fi
11031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11032 echo "$ac_t""yes" 1>&6
11033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11034 cat >> confdefs.h <<EOF
11035 #define $ac_tr_hdr 1
11036 EOF
11037
11038 else
11039 echo "$ac_t""no" 1>&6
11040 fi
11041 done
11042
11043
11044 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
11045 echo "configure:11046: checking for sched_yield in -l$THREADS_LINK" >&5
11046 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049 else
11050 ac_save_LIBS="$LIBS"
11051 LIBS="-l$THREADS_LINK $LIBS"
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11055 /* Override any gcc2 internal prototype to avoid an error. */
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058 char sched_yield();
11059
11060 int main() {
11061 sched_yield()
11062 ; return 0; }
11063 EOF
11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11065 rm -rf conftest*
11066 eval "ac_cv_lib_$ac_lib_var=yes"
11067 else
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071 eval "ac_cv_lib_$ac_lib_var=no"
11072 fi
11073 rm -f conftest*
11074 LIBS="$ac_save_LIBS"
11075
11076 fi
11077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11078 echo "$ac_t""yes" 1>&6
11079 cat >> confdefs.h <<\EOF
11080 #define HAVE_SCHED_YIELD 1
11081 EOF
11082
11083 else
11084 echo "$ac_t""no" 1>&6
11085 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
11086 echo "configure:11087: checking for sched_yield in -l"posix4"" >&5
11087 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11089 echo $ac_n "(cached) $ac_c" 1>&6
11090 else
11091 ac_save_LIBS="$LIBS"
11092 LIBS="-l"posix4" $LIBS"
11093 cat > conftest.$ac_ext <<EOF
11094 #line 11095 "configure"
11095 #include "confdefs.h"
11096 /* Override any gcc2 internal prototype to avoid an error. */
11097 /* We use char because int might match the return type of a gcc2
11098 builtin and then its argument prototype would still apply. */
11099 char sched_yield();
11100
11101 int main() {
11102 sched_yield()
11103 ; return 0; }
11104 EOF
11105 if { (eval echo configure:11106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11106 rm -rf conftest*
11107 eval "ac_cv_lib_$ac_lib_var=yes"
11108 else
11109 echo "configure: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11111 rm -rf conftest*
11112 eval "ac_cv_lib_$ac_lib_var=no"
11113 fi
11114 rm -f conftest*
11115 LIBS="$ac_save_LIBS"
11116
11117 fi
11118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11119 echo "$ac_t""yes" 1>&6
11120 cat >> confdefs.h <<\EOF
11121 #define HAVE_SCHED_YIELD 1
11122 EOF
11123 POSIX4_LINK="-lposix4"
11124 else
11125 echo "$ac_t""no" 1>&6
11126 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11127
11128 fi
11129
11130
11131 fi
11132
11133
11134 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
11135 echo "configure:11136: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
11136 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11138 echo $ac_n "(cached) $ac_c" 1>&6
11139 else
11140 ac_save_LIBS="$LIBS"
11141 LIBS="-l$THREADS_LINK $LIBS"
11142 cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145 /* Override any gcc2 internal prototype to avoid an error. */
11146 /* We use char because int might match the return type of a gcc2
11147 builtin and then its argument prototype would still apply. */
11148 char pthread_attr_getschedpolicy();
11149
11150 int main() {
11151 pthread_attr_getschedpolicy()
11152 ; return 0; }
11153 EOF
11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11155 rm -rf conftest*
11156 eval "ac_cv_lib_$ac_lib_var=yes"
11157 else
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11160 rm -rf conftest*
11161 eval "ac_cv_lib_$ac_lib_var=no"
11162 fi
11163 rm -f conftest*
11164 LIBS="$ac_save_LIBS"
11165
11166 fi
11167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11168 echo "$ac_t""yes" 1>&6
11169 cat >> confdefs.h <<\EOF
11170 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11171 EOF
11172
11173 else
11174 echo "$ac_t""no" 1>&6
11175 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
11176 echo "configure:11177: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
11177 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11179 echo $ac_n "(cached) $ac_c" 1>&6
11180 else
11181 ac_save_LIBS="$LIBS"
11182 LIBS="-l"posix4" $LIBS"
11183 cat > conftest.$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11186 /* Override any gcc2 internal prototype to avoid an error. */
11187 /* We use char because int might match the return type of a gcc2
11188 builtin and then its argument prototype would still apply. */
11189 char pthread_attr_getschedpolicy();
11190
11191 int main() {
11192 pthread_attr_getschedpolicy()
11193 ; return 0; }
11194 EOF
11195 if { (eval echo configure:11196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11196 rm -rf conftest*
11197 eval "ac_cv_lib_$ac_lib_var=yes"
11198 else
11199 echo "configure: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11201 rm -rf conftest*
11202 eval "ac_cv_lib_$ac_lib_var=no"
11203 fi
11204 rm -f conftest*
11205 LIBS="$ac_save_LIBS"
11206
11207 fi
11208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11209 echo "$ac_t""yes" 1>&6
11210 cat >> confdefs.h <<\EOF
11211 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11212 EOF
11213 POSIX4_LINK="-lposix4"
11214 else
11215 echo "$ac_t""no" 1>&6
11216 echo "configure: warning: Setting thread priority will not work" 1>&2
11217
11218 fi
11219
11220
11221 fi
11222
11223
11224 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
11225 echo "configure:11226: checking for pthread_cancel in -l$THREADS_LINK" >&5
11226 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11229 else
11230 ac_save_LIBS="$LIBS"
11231 LIBS="-l$THREADS_LINK $LIBS"
11232 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11235 /* Override any gcc2 internal prototype to avoid an error. */
11236 /* We use char because int might match the return type of a gcc2
11237 builtin and then its argument prototype would still apply. */
11238 char pthread_cancel();
11239
11240 int main() {
11241 pthread_cancel()
11242 ; return 0; }
11243 EOF
11244 if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11245 rm -rf conftest*
11246 eval "ac_cv_lib_$ac_lib_var=yes"
11247 else
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 eval "ac_cv_lib_$ac_lib_var=no"
11252 fi
11253 rm -f conftest*
11254 LIBS="$ac_save_LIBS"
11255
11256 fi
11257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11258 echo "$ac_t""yes" 1>&6
11259 cat >> confdefs.h <<\EOF
11260 #define HAVE_PTHREAD_CANCEL 1
11261 EOF
11262
11263 else
11264 echo "$ac_t""no" 1>&6
11265 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11266 fi
11267
11268
11269 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
11270 echo "configure:11271: checking for pthread_cleanup_push/pop" >&5
11271 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11272 echo $ac_n "(cached) $ac_c" 1>&6
11273 else
11274
11275 cat > conftest.$ac_ext <<EOF
11276 #line 11277 "configure"
11277 #include "confdefs.h"
11278 #include <pthread.h>
11279 int main() {
11280
11281 pthread_cleanup_push(NULL, NULL);
11282 pthread_cleanup_pop(0);
11283
11284 ; return 0; }
11285 EOF
11286 if { (eval echo configure:11287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11287 rm -rf conftest*
11288
11289 wx_cv_func_pthread_cleanup_push=yes
11290 cat >> confdefs.h <<\EOF
11291 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11292 EOF
11293
11294
11295 else
11296 echo "configure: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11298 rm -rf conftest*
11299
11300 wx_cv_func_pthread_cleanup_push=no
11301
11302 fi
11303 rm -f conftest*
11304
11305 fi
11306
11307 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11308
11309 THREADS_LINK="-l$THREADS_LINK"
11310 fi
11311
11312 fi
11313
11314 if test "$wxUSE_THREADS" = "yes"; then
11315 cat >> confdefs.h <<\EOF
11316 #define wxUSE_THREADS 1
11317 EOF
11318
11319
11320 CFLAGS="${CFLAGS} -D_REENTRANT"
11321 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11322
11323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11324 else
11325 if test "$ac_cv_func_strtok_r" = "yes"; then
11326 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
11327 echo "configure:11328: checking if -D_REENTRANT is needed" >&5
11328 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11329 CFLAGS="${CFLAGS} -D_REENTRANT"
11330 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11331 echo "$ac_t""yes" 1>&6
11332 else
11333 echo "$ac_t""no" 1>&6
11334 fi
11335 fi
11336 fi
11337
11338 if test "$WXGTK13" = 1 ; then
11339 cat >> confdefs.h <<EOF
11340 #define __WXGTK13__ $WXGTK13
11341 EOF
11342
11343 WXGTK12=1
11344 fi
11345
11346 if test "$WXGTK12" = 1 ; then
11347 cat >> confdefs.h <<EOF
11348 #define __WXGTK12__ $WXGTK12
11349 EOF
11350
11351 fi
11352
11353 if test "$WXWINE" = 1 ; then
11354 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11355 fi
11356
11357 if test "$wxUSE_CYGWIN" = 1 ; then
11358 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11359 fi
11360
11361 WXDEBUG=
11362
11363 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11364 WXDEBUG="-g"
11365 wxUSE_OPTIMISE=no
11366 fi
11367
11368 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11369 wxUSE_DEBUG_INFO=yes
11370 WXDEBUG="-ggdb"
11371 fi
11372
11373 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11374 cat >> confdefs.h <<\EOF
11375 #define WXDEBUG 1
11376 EOF
11377
11378 WXDEBUG_DEFINE="-D__WXDEBUG__"
11379 else
11380 if test "$wxUSE_GTK" = 1 ; then
11381 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11382 fi
11383 fi
11384
11385 if test "$wxUSE_MEM_TRACING" = "yes" ; then
11386 cat >> confdefs.h <<\EOF
11387 #define wxUSE_MEMORY_TRACING 1
11388 EOF
11389
11390 cat >> confdefs.h <<\EOF
11391 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11392 EOF
11393
11394 cat >> confdefs.h <<\EOF
11395 #define wxUSE_DEBUG_NEW_ALWAYS 1
11396 EOF
11397
11398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11399 fi
11400
11401 if test "$wxUSE_DMALLOC" = "yes" ; then
11402 DMALLOC_LINK="-ldmalloc"
11403 fi
11404
11405 PROFILE=
11406 if test "$wxUSE_PROFILE" = "yes" ; then
11407 PROFILE="-pg"
11408 fi
11409
11410 DEP_INFO_FLAGS=
11411 CODE_GEN_FLAGS=
11412 if test "$GCC" = yes ; then
11413 if test "$wxUSE_NO_RTTI" = "yes" ; then
11414 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
11415 fi
11416 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11417 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
11418 fi
11419 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11420 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
11421 fi
11422 if test "$wxUSE_NO_DEPS" = "no" ; then
11423 DEP_INFO_FLAGS="-MMD"
11424 fi
11425 fi
11426
11427
11428 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11429 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11430 if test "$wxUSE_OPTIMISE" = "no" ; then
11431 OPTIMISE=
11432 else
11433 if test "$GCC" = yes ; then
11434 OPTIMISE="-O2"
11435 case "${host}" in
11436 i586-*-*|i686-*-* )
11437 OPTIMISE="${OPTIMISE} "
11438 ;;
11439 esac
11440 else
11441 OPTIMISE="-O"
11442 fi
11443 fi
11444
11445
11446 ZLIB_INCLUDE=
11447 if test "$wxUSE_ZLIB" = "yes" ; then
11448 cat >> confdefs.h <<\EOF
11449 #define wxUSE_ZLIB 1
11450 EOF
11451
11452 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11453 fi
11454
11455 PNG_INCLUDE=
11456 if test "$wxUSE_LIBPNG" = "yes" ; then
11457 cat >> confdefs.h <<\EOF
11458 #define wxUSE_LIBPNG 1
11459 EOF
11460
11461 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11463 fi
11464
11465 JPEG_INCLUDE=
11466 if test "$wxUSE_LIBJPEG" = "yes" ; then
11467 cat >> confdefs.h <<\EOF
11468 #define wxUSE_LIBJPEG 1
11469 EOF
11470
11471 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11472 fi
11473
11474 TIFF_INCLUDE=
11475 if test "$wxUSE_LIBTIFF" = "yes" ; then
11476 cat >> confdefs.h <<\EOF
11477 #define wxUSE_LIBTIFF 1
11478 EOF
11479
11480 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11481 fi
11482
11483 if test "$wxUSE_OPENGL" = "yes"; then
11484 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11485 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11486 echo "configure:11487: checking for GL/gl.h" >&5
11487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11488 echo $ac_n "(cached) $ac_c" 1>&6
11489 else
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 #include <GL/gl.h>
11494 EOF
11495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11496 { (eval echo configure:11497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11498 if test -z "$ac_err"; then
11499 rm -rf conftest*
11500 eval "ac_cv_header_$ac_safe=yes"
11501 else
11502 echo "$ac_err" >&5
11503 echo "configure: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11505 rm -rf conftest*
11506 eval "ac_cv_header_$ac_safe=no"
11507 fi
11508 rm -f conftest*
11509 fi
11510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11511 echo "$ac_t""yes" 1>&6
11512
11513 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
11514 echo "configure:11515: checking for glInitNames in -lGL" >&5
11515 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11517 echo $ac_n "(cached) $ac_c" 1>&6
11518 else
11519 ac_save_LIBS="$LIBS"
11520 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 /* Override any gcc2 internal prototype to avoid an error. */
11525 /* We use char because int might match the return type of a gcc2
11526 builtin and then its argument prototype would still apply. */
11527 char glInitNames();
11528
11529 int main() {
11530 glInitNames()
11531 ; return 0; }
11532 EOF
11533 if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11534 rm -rf conftest*
11535 eval "ac_cv_lib_$ac_lib_var=yes"
11536 else
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11539 rm -rf conftest*
11540 eval "ac_cv_lib_$ac_lib_var=no"
11541 fi
11542 rm -f conftest*
11543 LIBS="$ac_save_LIBS"
11544
11545 fi
11546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11547 echo "$ac_t""yes" 1>&6
11548
11549 OPENGL_LINK="-lGL"
11550 cat >> confdefs.h <<\EOF
11551 #define wxUSE_OPENGL 1
11552 EOF
11553
11554 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11555
11556 else
11557 echo "$ac_t""no" 1>&6
11558
11559 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
11560 echo "configure:11561: checking for glInitNames in -lMesaGL" >&5
11561 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11563 echo $ac_n "(cached) $ac_c" 1>&6
11564 else
11565 ac_save_LIBS="$LIBS"
11566 LIBS="-lMesaGL $LIBS"
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 /* Override any gcc2 internal prototype to avoid an error. */
11571 /* We use char because int might match the return type of a gcc2
11572 builtin and then its argument prototype would still apply. */
11573 char glInitNames();
11574
11575 int main() {
11576 glInitNames()
11577 ; return 0; }
11578 EOF
11579 if { (eval echo configure:11580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11580 rm -rf conftest*
11581 eval "ac_cv_lib_$ac_lib_var=yes"
11582 else
11583 echo "configure: failed program was:" >&5
11584 cat conftest.$ac_ext >&5
11585 rm -rf conftest*
11586 eval "ac_cv_lib_$ac_lib_var=no"
11587 fi
11588 rm -f conftest*
11589 LIBS="$ac_save_LIBS"
11590
11591 fi
11592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11593 echo "$ac_t""yes" 1>&6
11594
11595 OPENGL_LINK="-lMesaGL"
11596 cat >> confdefs.h <<\EOF
11597 #define wxUSE_OPENGL 1
11598 EOF
11599
11600 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11601
11602 else
11603 echo "$ac_t""no" 1>&6
11604 wxUSE_OPENGL=0
11605 fi
11606
11607
11608 fi
11609
11610
11611 else
11612 echo "$ac_t""no" 1>&6
11613 wxUSE_OPENGL=0
11614 fi
11615
11616 fi
11617
11618
11619 if test "$wxUSE_GUI" = "yes"; then
11620 cat >> confdefs.h <<\EOF
11621 #define wxUSE_GUI 1
11622 EOF
11623
11624
11625 else
11626 cat >> confdefs.h <<\EOF
11627 #define wxUSE_NOGUI 1
11628 EOF
11629
11630 fi
11631
11632
11633 if test "$wxUSE_UNIX" = "yes"; then
11634 cat >> confdefs.h <<\EOF
11635 #define wxUSE_UNIX 1
11636 EOF
11637
11638 fi
11639
11640
11641 if test "$wxUSE_APPLE_IEEE" = "yes"; then
11642 cat >> confdefs.h <<\EOF
11643 #define wxUSE_APPLE_IEEE 1
11644 EOF
11645
11646 fi
11647
11648 if test "$wxUSE_WAVE" = "yes"; then
11649 cat >> confdefs.h <<\EOF
11650 #define wxUSE_WAVE 1
11651 EOF
11652
11653 fi
11654
11655 if test "$wxUSE_FILE" = "yes"; then
11656 cat >> confdefs.h <<\EOF
11657 #define wxUSE_FILE 1
11658 EOF
11659
11660 fi
11661
11662 if test "$wxUSE_FS_INET" = "yes"; then
11663 cat >> confdefs.h <<\EOF
11664 #define wxUSE_FS_INET 1
11665 EOF
11666
11667 fi
11668
11669 if test "$wxUSE_FS_ZIP" = "yes"; then
11670 cat >> confdefs.h <<\EOF
11671 #define wxUSE_FS_ZIP 1
11672 EOF
11673
11674 fi
11675
11676 if test "$wxUSE_ZIPSTREAM" = "yes"; then
11677 cat >> confdefs.h <<\EOF
11678 #define wxUSE_ZIPSTREAM 1
11679 EOF
11680
11681 fi
11682
11683 if test "$wxUSE_BUSYINFO" = "yes"; then
11684 cat >> confdefs.h <<\EOF
11685 #define wxUSE_BUSYINFO 1
11686 EOF
11687
11688 fi
11689
11690 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11691 cat >> confdefs.h <<\EOF
11692 #define wxUSE_STD_IOSTREAM 1
11693 EOF
11694
11695 fi
11696
11697 if test "$wxUSE_TEXTFILE" = "yes"; then
11698 if test "$wxUSE_FILE" != "yes"; then
11699 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11700 else
11701 cat >> confdefs.h <<\EOF
11702 #define wxUSE_TEXTFILE 1
11703 EOF
11704
11705 fi
11706 fi
11707
11708 if test "$wxUSE_CONFIG" = "yes" ; then
11709 if test "$wxUSE_TEXTFILE" != "yes"; then
11710 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11711 else
11712 cat >> confdefs.h <<\EOF
11713 #define wxUSE_CONFIG 1
11714 EOF
11715
11716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11717 fi
11718 fi
11719
11720 if test "$wxUSE_INTL" = "yes" ; then
11721 if test "$wxUSE_FILE" != "yes"; then
11722 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11723 else
11724 cat >> confdefs.h <<\EOF
11725 #define wxUSE_INTL 1
11726 EOF
11727
11728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11729 fi
11730 fi
11731
11732 if test "$wxUSE_LOG" = "yes"; then
11733 cat >> confdefs.h <<\EOF
11734 #define wxUSE_LOG 1
11735 EOF
11736
11737 fi
11738
11739 if test "$wxUSE_LONGLONG" = "yes"; then
11740 cat >> confdefs.h <<\EOF
11741 #define wxUSE_LONGLONG 1
11742 EOF
11743
11744 fi
11745
11746 if test "$wxUSE_PLOT" = "yes"; then
11747 cat >> confdefs.h <<\EOF
11748 #define wxUSE_PLOT 1
11749 EOF
11750
11751 fi
11752
11753 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11754 cat >> confdefs.h <<\EOF
11755 #define wxUSE_DIALUP_MANAGER 1
11756 EOF
11757
11758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
11759 fi
11760
11761 if test "$wxUSE_STREAMS" = "yes" ; then
11762 cat >> confdefs.h <<\EOF
11763 #define wxUSE_STREAMS 1
11764 EOF
11765
11766 fi
11767
11768
11769 if test "$wxUSE_TIMEDATE" = "yes"; then
11770 for ac_func in strptime
11771 do
11772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11773 echo "configure:11774: checking for $ac_func" >&5
11774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11776 else
11777 cat > conftest.$ac_ext <<EOF
11778 #line 11779 "configure"
11779 #include "confdefs.h"
11780 /* System header to define __stub macros and hopefully few prototypes,
11781 which can conflict with char $ac_func(); below. */
11782 #include <assert.h>
11783 /* Override any gcc2 internal prototype to avoid an error. */
11784 /* We use char because int might match the return type of a gcc2
11785 builtin and then its argument prototype would still apply. */
11786 char $ac_func();
11787 char (*f)();
11788
11789 int main() {
11790
11791 /* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
11794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11795 choke me
11796 #else
11797 f = $ac_func;
11798 #endif
11799
11800 ; return 0; }
11801 EOF
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11803 rm -rf conftest*
11804 eval "ac_cv_func_$ac_func=yes"
11805 else
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -rf conftest*
11809 eval "ac_cv_func_$ac_func=no"
11810 fi
11811 rm -f conftest*
11812 fi
11813
11814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11817 cat >> confdefs.h <<EOF
11818 #define $ac_tr_func 1
11819 EOF
11820
11821 else
11822 echo "$ac_t""no" 1>&6
11823 fi
11824 done
11825
11826
11827 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
11828 echo "configure:11829: checking for timezone variable in <time.h>" >&5
11829 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11831 else
11832
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836
11837 #include <time.h>
11838
11839 int main() {
11840
11841 int tz;
11842 tz = __timezone;
11843
11844 ; return 0; }
11845 EOF
11846 if { (eval echo configure:11847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11847 rm -rf conftest*
11848
11849 wx_cv_var_timezone=__timezone
11850
11851 else
11852 echo "configure: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 rm -rf conftest*
11855
11856 cat > conftest.$ac_ext <<EOF
11857 #line 11858 "configure"
11858 #include "confdefs.h"
11859
11860 #include <time.h>
11861
11862 int main() {
11863
11864 int tz;
11865 tz = _timezone;
11866
11867 ; return 0; }
11868 EOF
11869 if { (eval echo configure:11870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11870 rm -rf conftest*
11871
11872 wx_cv_var_timezone=_timezone
11873
11874 else
11875 echo "configure: failed program was:" >&5
11876 cat conftest.$ac_ext >&5
11877 rm -rf conftest*
11878
11879 cat > conftest.$ac_ext <<EOF
11880 #line 11881 "configure"
11881 #include "confdefs.h"
11882
11883 #include <time.h>
11884
11885 int main() {
11886
11887 int tz;
11888 tz = timezone;
11889
11890 ; return 0; }
11891 EOF
11892 if { (eval echo configure:11893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11893 rm -rf conftest*
11894
11895 wx_cv_var_timezone=timezone
11896
11897 else
11898 echo "configure: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 rm -rf conftest*
11901 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
11902
11903 fi
11904 rm -f conftest*
11905
11906
11907 fi
11908 rm -f conftest*
11909
11910
11911 fi
11912 rm -f conftest*
11913
11914
11915 fi
11916
11917 echo "$ac_t""$wx_cv_var_timezone" 1>&6
11918
11919 cat >> confdefs.h <<EOF
11920 #define WX_TIMEZONE $wx_cv_var_timezone
11921 EOF
11922
11923
11924 for ac_func in localtime
11925 do
11926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11927 echo "configure:11928: checking for $ac_func" >&5
11928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11929 echo $ac_n "(cached) $ac_c" 1>&6
11930 else
11931 cat > conftest.$ac_ext <<EOF
11932 #line 11933 "configure"
11933 #include "confdefs.h"
11934 /* System header to define __stub macros and hopefully few prototypes,
11935 which can conflict with char $ac_func(); below. */
11936 #include <assert.h>
11937 /* Override any gcc2 internal prototype to avoid an error. */
11938 /* We use char because int might match the return type of a gcc2
11939 builtin and then its argument prototype would still apply. */
11940 char $ac_func();
11941 char (*f)();
11942
11943 int main() {
11944
11945 /* The GNU C library defines this for functions which it implements
11946 to always fail with ENOSYS. Some functions are actually named
11947 something starting with __ and the normal name is an alias. */
11948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11949 choke me
11950 #else
11951 f = $ac_func;
11952 #endif
11953
11954 ; return 0; }
11955 EOF
11956 if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11957 rm -rf conftest*
11958 eval "ac_cv_func_$ac_func=yes"
11959 else
11960 echo "configure: failed program was:" >&5
11961 cat conftest.$ac_ext >&5
11962 rm -rf conftest*
11963 eval "ac_cv_func_$ac_func=no"
11964 fi
11965 rm -f conftest*
11966 fi
11967
11968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11969 echo "$ac_t""yes" 1>&6
11970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11971 cat >> confdefs.h <<EOF
11972 #define $ac_tr_func 1
11973 EOF
11974
11975 else
11976 echo "$ac_t""no" 1>&6
11977 fi
11978 done
11979
11980
11981 if test "$ac_cv_func_localtime" = "yes"; then
11982 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
11983 echo "configure:11984: checking for tm_gmtoff in struct tm" >&5
11984 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11985 echo $ac_n "(cached) $ac_c" 1>&6
11986 else
11987
11988 cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure"
11990 #include "confdefs.h"
11991
11992 #include <time.h>
11993
11994 int main() {
11995
11996 struct tm tm;
11997 tm.tm_gmtoff++;
11998
11999 ; return 0; }
12000 EOF
12001 if { (eval echo configure:12002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12002 rm -rf conftest*
12003
12004 wx_cv_struct_tm_has_gmtoff=yes
12005 cat >> confdefs.h <<\EOF
12006 #define WX_GMTOFF_IN_TM 1
12007 EOF
12008
12009
12010 else
12011 echo "configure: failed program was:" >&5
12012 cat conftest.$ac_ext >&5
12013 rm -rf conftest*
12014 wx_cv_struct_tm_has_gmtoff=no
12015
12016 fi
12017 rm -f conftest*
12018
12019 fi
12020
12021 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
12022 fi
12023
12024 for ac_func in gettimeofday ftime
12025 do
12026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12027 echo "configure:12028: checking for $ac_func" >&5
12028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12029 echo $ac_n "(cached) $ac_c" 1>&6
12030 else
12031 cat > conftest.$ac_ext <<EOF
12032 #line 12033 "configure"
12033 #include "confdefs.h"
12034 /* System header to define __stub macros and hopefully few prototypes,
12035 which can conflict with char $ac_func(); below. */
12036 #include <assert.h>
12037 /* Override any gcc2 internal prototype to avoid an error. */
12038 /* We use char because int might match the return type of a gcc2
12039 builtin and then its argument prototype would still apply. */
12040 char $ac_func();
12041 char (*f)();
12042
12043 int main() {
12044
12045 /* The GNU C library defines this for functions which it implements
12046 to always fail with ENOSYS. Some functions are actually named
12047 something starting with __ and the normal name is an alias. */
12048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12049 choke me
12050 #else
12051 f = $ac_func;
12052 #endif
12053
12054 ; return 0; }
12055 EOF
12056 if { (eval echo configure:12057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12057 rm -rf conftest*
12058 eval "ac_cv_func_$ac_func=yes"
12059 else
12060 echo "configure: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12062 rm -rf conftest*
12063 eval "ac_cv_func_$ac_func=no"
12064 fi
12065 rm -f conftest*
12066 fi
12067
12068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12069 echo "$ac_t""yes" 1>&6
12070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12071 cat >> confdefs.h <<EOF
12072 #define $ac_tr_func 1
12073 EOF
12074 break
12075 else
12076 echo "$ac_t""no" 1>&6
12077 fi
12078 done
12079
12080
12081 if test "$ac_cv_func_gettimeofday" = "yes"; then
12082 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
12083 echo "configure:12084: checking whether gettimeofday takes two arguments" >&5
12084 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12085 echo $ac_n "(cached) $ac_c" 1>&6
12086 else
12087
12088
12089 ac_ext=C
12090 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12091 ac_cpp='$CXXCPP $CPPFLAGS'
12092 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12093 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12094 cross_compiling=$ac_cv_prog_cxx_cross
12095
12096
12097 cat > conftest.$ac_ext <<EOF
12098 #line 12099 "configure"
12099 #include "confdefs.h"
12100
12101 #include <sys/time.h>
12102 #include <unistd.h>
12103
12104 int main() {
12105
12106 struct timeval tv;
12107 struct timezone tz;
12108 gettimeofday(&tv, &tz);
12109
12110 ; return 0; }
12111 EOF
12112 if { (eval echo configure:12113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12113 rm -rf conftest*
12114 wx_cv_func_gettimeofday_has_2_args=yes
12115 else
12116 echo "configure: failed program was:" >&5
12117 cat conftest.$ac_ext >&5
12118 rm -rf conftest*
12119 cat > conftest.$ac_ext <<EOF
12120 #line 12121 "configure"
12121 #include "confdefs.h"
12122
12123 #include <sys/time.h>
12124 #include <unistd.h>
12125
12126 int main() {
12127
12128 struct timeval tv;
12129 gettimeofday(&tv);
12130
12131 ; return 0; }
12132 EOF
12133 if { (eval echo configure:12134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12134 rm -rf conftest*
12135 wx_cv_func_gettimeofday_has_2_args=no
12136 else
12137 echo "configure: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 rm -rf conftest*
12140 wx_cv_func_gettimeofday_has_2_args=unknown
12141
12142 fi
12143 rm -f conftest*
12144
12145 fi
12146 rm -f conftest*
12147 ac_ext=c
12148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12149 ac_cpp='$CPP $CPPFLAGS'
12150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12152 cross_compiling=$ac_cv_prog_cc_cross
12153
12154
12155 fi
12156
12157 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
12158
12159 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12160 cat >> confdefs.h <<\EOF
12161 #define WX_GETTIMEOFDAY_NO_TZ 1
12162 EOF
12163
12164 fi
12165 fi
12166
12167 cat >> confdefs.h <<\EOF
12168 #define wxUSE_TIMEDATE 1
12169 EOF
12170
12171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12172 fi
12173
12174
12175 if test "$TOOLKIT" != "MSW"; then
12176
12177 if test "$wxUSE_SOCKETS" = "yes"; then
12178 echo $ac_n "checking for socket""... $ac_c" 1>&6
12179 echo "configure:12180: checking for socket" >&5
12180 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12182 else
12183 cat > conftest.$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12186 /* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char socket(); below. */
12188 #include <assert.h>
12189 /* Override any gcc2 internal prototype to avoid an error. */
12190 /* We use char because int might match the return type of a gcc2
12191 builtin and then its argument prototype would still apply. */
12192 char socket();
12193 char (*f)();
12194
12195 int main() {
12196
12197 /* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
12200 #if defined (__stub_socket) || defined (__stub___socket)
12201 choke me
12202 #else
12203 f = socket;
12204 #endif
12205
12206 ; return 0; }
12207 EOF
12208 if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12209 rm -rf conftest*
12210 eval "ac_cv_func_socket=yes"
12211 else
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -rf conftest*
12215 eval "ac_cv_func_socket=no"
12216 fi
12217 rm -f conftest*
12218 fi
12219
12220 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
12222 :
12223 else
12224 echo "$ac_t""no" 1>&6
12225 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
12226 echo "configure:12227: checking for socket in -lsocket" >&5
12227 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12229 echo $ac_n "(cached) $ac_c" 1>&6
12230 else
12231 ac_save_LIBS="$LIBS"
12232 LIBS="-lsocket $LIBS"
12233 cat > conftest.$ac_ext <<EOF
12234 #line 12235 "configure"
12235 #include "confdefs.h"
12236 /* Override any gcc2 internal prototype to avoid an error. */
12237 /* We use char because int might match the return type of a gcc2
12238 builtin and then its argument prototype would still apply. */
12239 char socket();
12240
12241 int main() {
12242 socket()
12243 ; return 0; }
12244 EOF
12245 if { (eval echo configure:12246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12246 rm -rf conftest*
12247 eval "ac_cv_lib_$ac_lib_var=yes"
12248 else
12249 echo "configure: failed program was:" >&5
12250 cat conftest.$ac_ext >&5
12251 rm -rf conftest*
12252 eval "ac_cv_lib_$ac_lib_var=no"
12253 fi
12254 rm -f conftest*
12255 LIBS="$ac_save_LIBS"
12256
12257 fi
12258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12259 echo "$ac_t""yes" 1>&6
12260 INET_LINK="$INET_LINK -lsocket"
12261 else
12262 echo "$ac_t""no" 1>&6
12263
12264 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12265 wxUSE_SOCKETS=no
12266
12267
12268 fi
12269
12270
12271 fi
12272
12273 fi
12274
12275 fi
12276
12277 if test "$wxUSE_SOCKETS" = "yes" ; then
12278 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
12279 echo "configure:12280: checking what is the type of the third argument of getsockname" >&5
12280 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12281 echo $ac_n "(cached) $ac_c" 1>&6
12282 else
12283
12284
12285 ac_ext=C
12286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12287 ac_cpp='$CXXCPP $CPPFLAGS'
12288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12290 cross_compiling=$ac_cv_prog_cxx_cross
12291
12292
12293 cat > conftest.$ac_ext <<EOF
12294 #line 12295 "configure"
12295 #include "confdefs.h"
12296
12297 #include <sys/types.h>
12298 #include <sys/socket.h>
12299
12300 int main() {
12301
12302 socklen_t len;
12303 getsockname(0, 0, &len);
12304
12305 ; return 0; }
12306 EOF
12307 if { (eval echo configure:12308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12308 rm -rf conftest*
12309 wx_cv_type_getsockname3=socklen_t
12310 else
12311 echo "configure: failed program was:" >&5
12312 cat conftest.$ac_ext >&5
12313 rm -rf conftest*
12314 cat > conftest.$ac_ext <<EOF
12315 #line 12316 "configure"
12316 #include "confdefs.h"
12317
12318 #include <sys/types.h>
12319 #include <sys/socket.h>
12320
12321 int main() {
12322
12323 size_t len;
12324 getsockname(0, 0, &len);
12325
12326 ; return 0; }
12327 EOF
12328 if { (eval echo configure:12329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12329 rm -rf conftest*
12330 wx_cv_type_getsockname3=size_t
12331 else
12332 echo "configure: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12334 rm -rf conftest*
12335 cat > conftest.$ac_ext <<EOF
12336 #line 12337 "configure"
12337 #include "confdefs.h"
12338
12339 #include <sys/types.h>
12340 #include <sys/socket.h>
12341
12342 int main() {
12343
12344 int len;
12345 getsockname(0, 0, &len);
12346
12347 ; return 0; }
12348 EOF
12349 if { (eval echo configure:12350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12350 rm -rf conftest*
12351 wx_cv_type_getsockname3=int
12352 else
12353 echo "configure: failed program was:" >&5
12354 cat conftest.$ac_ext >&5
12355 rm -rf conftest*
12356 wx_cv_type_getsockname3=unknown
12357
12358 fi
12359 rm -f conftest*
12360
12361 fi
12362 rm -f conftest*
12363
12364 fi
12365 rm -f conftest*
12366
12367 ac_ext=c
12368 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12369 ac_cpp='$CPP $CPPFLAGS'
12370 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12371 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12372 cross_compiling=$ac_cv_prog_cc_cross
12373
12374
12375 fi
12376
12377 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12378
12379 if test "$wx_cv_type_getsockname3" = "unknown"; then
12380 wxUSE_SOCKETS=no
12381 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12382 else
12383 cat >> confdefs.h <<EOF
12384 #define SOCKLEN_T $wx_cv_type_getsockname3
12385 EOF
12386
12387 fi
12388 fi
12389
12390 if test "$wxUSE_SOCKETS" = "yes" ; then
12391 cat >> confdefs.h <<\EOF
12392 #define wxUSE_SOCKETS 1
12393 EOF
12394
12395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
12396 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12397 fi
12398
12399
12400 if test "$TOOLKIT" != "MSW"; then
12401
12402 if test "$wxUSE_JOYSTICK" = 1; then
12403 for ac_hdr in linux/joystick.h
12404 do
12405 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12406 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12407 echo "configure:12408: checking for $ac_hdr" >&5
12408 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12409 echo $ac_n "(cached) $ac_c" 1>&6
12410 else
12411 cat > conftest.$ac_ext <<EOF
12412 #line 12413 "configure"
12413 #include "confdefs.h"
12414 #include <$ac_hdr>
12415 EOF
12416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12417 { (eval echo configure:12418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12419 if test -z "$ac_err"; then
12420 rm -rf conftest*
12421 eval "ac_cv_header_$ac_safe=yes"
12422 else
12423 echo "$ac_err" >&5
12424 echo "configure: failed program was:" >&5
12425 cat conftest.$ac_ext >&5
12426 rm -rf conftest*
12427 eval "ac_cv_header_$ac_safe=no"
12428 fi
12429 rm -f conftest*
12430 fi
12431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12432 echo "$ac_t""yes" 1>&6
12433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12434 cat >> confdefs.h <<EOF
12435 #define $ac_tr_hdr 1
12436 EOF
12437
12438 else
12439 echo "$ac_t""no" 1>&6
12440 fi
12441 done
12442
12443 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12444 wxUSE_JOYSTICK=0
12445 echo "configure: warning: Joystick not supported yb this system" 1>&2
12446 fi
12447 fi
12448
12449 fi
12450
12451 if test "$wxUSE_JOYSTICK" = 1; then
12452 cat >> confdefs.h <<\EOF
12453 #define wxUSE_JOYSTICK 1
12454 EOF
12455
12456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12457 fi
12458
12459
12460 if test "$TOOLKIT" != "MSW"; then
12461
12462 HAVE_DL_FUNCS=0
12463 HAVE_SHL_FUNCS=0
12464 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12465 for ac_func in dlopen
12466 do
12467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12468 echo "configure:12469: checking for $ac_func" >&5
12469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12470 echo $ac_n "(cached) $ac_c" 1>&6
12471 else
12472 cat > conftest.$ac_ext <<EOF
12473 #line 12474 "configure"
12474 #include "confdefs.h"
12475 /* System header to define __stub macros and hopefully few prototypes,
12476 which can conflict with char $ac_func(); below. */
12477 #include <assert.h>
12478 /* Override any gcc2 internal prototype to avoid an error. */
12479 /* We use char because int might match the return type of a gcc2
12480 builtin and then its argument prototype would still apply. */
12481 char $ac_func();
12482 char (*f)();
12483
12484 int main() {
12485
12486 /* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12490 choke me
12491 #else
12492 f = $ac_func;
12493 #endif
12494
12495 ; return 0; }
12496 EOF
12497 if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12498 rm -rf conftest*
12499 eval "ac_cv_func_$ac_func=yes"
12500 else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 eval "ac_cv_func_$ac_func=no"
12505 fi
12506 rm -f conftest*
12507 fi
12508
12509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12512 cat >> confdefs.h <<EOF
12513 #define $ac_tr_func 1
12514 EOF
12515
12516 cat >> confdefs.h <<\EOF
12517 #define HAVE_DLOPEN 1
12518 EOF
12519
12520 HAVE_DL_FUNCS=1
12521
12522 else
12523 echo "$ac_t""no" 1>&6
12524 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12525 echo "configure:12526: checking for dlopen in -ldl" >&5
12526 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12529 else
12530 ac_save_LIBS="$LIBS"
12531 LIBS="-ldl $LIBS"
12532 cat > conftest.$ac_ext <<EOF
12533 #line 12534 "configure"
12534 #include "confdefs.h"
12535 /* Override any gcc2 internal prototype to avoid an error. */
12536 /* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12538 char dlopen();
12539
12540 int main() {
12541 dlopen()
12542 ; return 0; }
12543 EOF
12544 if { (eval echo configure:12545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12545 rm -rf conftest*
12546 eval "ac_cv_lib_$ac_lib_var=yes"
12547 else
12548 echo "configure: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
12550 rm -rf conftest*
12551 eval "ac_cv_lib_$ac_lib_var=no"
12552 fi
12553 rm -f conftest*
12554 LIBS="$ac_save_LIBS"
12555
12556 fi
12557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12558 echo "$ac_t""yes" 1>&6
12559
12560 cat >> confdefs.h <<\EOF
12561 #define HAVE_DLOPEN 1
12562 EOF
12563
12564 HAVE_DL_FUNCS=1
12565 LIBS="$LIBS -ldl"
12566
12567 else
12568 echo "$ac_t""no" 1>&6
12569
12570 for ac_func in shl_load
12571 do
12572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12573 echo "configure:12574: checking for $ac_func" >&5
12574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12575 echo $ac_n "(cached) $ac_c" 1>&6
12576 else
12577 cat > conftest.$ac_ext <<EOF
12578 #line 12579 "configure"
12579 #include "confdefs.h"
12580 /* System header to define __stub macros and hopefully few prototypes,
12581 which can conflict with char $ac_func(); below. */
12582 #include <assert.h>
12583 /* Override any gcc2 internal prototype to avoid an error. */
12584 /* We use char because int might match the return type of a gcc2
12585 builtin and then its argument prototype would still apply. */
12586 char $ac_func();
12587 char (*f)();
12588
12589 int main() {
12590
12591 /* The GNU C library defines this for functions which it implements
12592 to always fail with ENOSYS. Some functions are actually named
12593 something starting with __ and the normal name is an alias. */
12594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12595 choke me
12596 #else
12597 f = $ac_func;
12598 #endif
12599
12600 ; return 0; }
12601 EOF
12602 if { (eval echo configure:12603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12603 rm -rf conftest*
12604 eval "ac_cv_func_$ac_func=yes"
12605 else
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12608 rm -rf conftest*
12609 eval "ac_cv_func_$ac_func=no"
12610 fi
12611 rm -f conftest*
12612 fi
12613
12614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12615 echo "$ac_t""yes" 1>&6
12616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12617 cat >> confdefs.h <<EOF
12618 #define $ac_tr_func 1
12619 EOF
12620
12621 cat >> confdefs.h <<\EOF
12622 #define HAVE_SHL_LOAD 1
12623 EOF
12624
12625 HAVE_SHL_FUNCS=1
12626
12627 else
12628 echo "$ac_t""no" 1>&6
12629 fi
12630 done
12631
12632
12633 fi
12634
12635
12636 fi
12637 done
12638
12639
12640 if test "$HAVE_DL_FUNCS" = 0; then
12641 if test "$HAVE_SHL_FUNCS" = 0; then
12642 if test "$USE_UNIX" = 1; then
12643 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
12644 wxUSE_DYNLIB_CLASS=no
12645 else
12646 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
12647 fi
12648 fi
12649 fi
12650 fi
12651
12652 fi
12653
12654 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
12655 cat >> confdefs.h <<\EOF
12656 #define wxUSE_DYNLIB_CLASS 1
12657 EOF
12658
12659 else
12660 wxUSE_ODBC=no
12661 wxUSE_SERIAL=no
12662 fi
12663
12664
12665 if test "$wxUSE_UNICODE" = "yes" ; then
12666 cat >> confdefs.h <<\EOF
12667 #define wxUSE_UNICODE 1
12668 EOF
12669
12670 fi
12671
12672 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12673 cat >> confdefs.h <<\EOF
12674 #define wxUSE_WCSRTOMBS 1
12675 EOF
12676
12677 fi
12678
12679 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12680 cat >> confdefs.h <<\EOF
12681 #define wxUSE_EXPERIMENTAL_PRINTF 1
12682 EOF
12683
12684 fi
12685
12686
12687 if test "$wxUSE_SERIAL" = "yes" ; then
12688 cat >> confdefs.h <<\EOF
12689 #define wxUSE_SERIAL 1
12690 EOF
12691
12692 fi
12693
12694
12695 IODBC_C_SRC=""
12696 if test "$wxUSE_ODBC" = "yes" ; then
12697 cat >> confdefs.h <<\EOF
12698 #define wxUSE_ODBC 1
12699 EOF
12700
12701 WXODBCFLAG="-D_IODBC_"
12702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12703 IODBCOBJS="\$(IODBC_OBJS)"
12704 else
12705 IODBCOBJS=
12706 fi
12707
12708
12709 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12710 cat >> confdefs.h <<\EOF
12711 #define wxUSE_POSTSCRIPT 1
12712 EOF
12713
12714 fi
12715
12716 cat >> confdefs.h <<\EOF
12717 #define wxUSE_AFM_FOR_POSTSCRIPT 1
12718 EOF
12719
12720
12721 cat >> confdefs.h <<\EOF
12722 #define wxUSE_NORMALIZED_PS_FONTS 1
12723 EOF
12724
12725
12726
12727 if test "$wxUSE_CONSTRAINTS" = "yes"; then
12728 cat >> confdefs.h <<\EOF
12729 #define wxUSE_CONSTRAINTS 1
12730 EOF
12731
12732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12733 fi
12734
12735 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12736 cat >> confdefs.h <<\EOF
12737 #define wxUSE_MDI_ARCHITECTURE 1
12738 EOF
12739
12740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12741 fi
12742
12743 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12744 cat >> confdefs.h <<\EOF
12745 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
12746 EOF
12747
12748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12749 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12751 fi
12752 fi
12753
12754 if test "$wxUSE_HELP" = "yes"; then
12755 cat >> confdefs.h <<\EOF
12756 #define wxUSE_HELP 1
12757 EOF
12758
12759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12760 fi
12761
12762 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12763 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12764 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12765 else
12766 cat >> confdefs.h <<\EOF
12767 #define wxUSE_PRINTING_ARCHITECTURE 1
12768 EOF
12769
12770 fi
12771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12772 fi
12773
12774 if test "$wxUSE_PROLOGIO" = "yes" ; then
12775 cat >> confdefs.h <<\EOF
12776 #define wxUSE_PROLOGIO 1
12777 EOF
12778
12779 fi
12780
12781 if test "$wxUSE_RESOURCES" = "yes" ; then
12782 if test "$wxUSE_PROLOGIO" = "yes" ; then
12783 cat >> confdefs.h <<\EOF
12784 #define wxUSE_RESOURCES 1
12785 EOF
12786
12787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12788 else
12789 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12790 fi
12791 fi
12792
12793 if test "$wxUSE_X_RESOURCES" = "yes"; then
12794 cat >> confdefs.h <<\EOF
12795 #define wxUSE_X_RESOURCES 1
12796 EOF
12797
12798 fi
12799
12800
12801 if test "$wxUSE_IPC" = "yes"; then
12802 cat >> confdefs.h <<\EOF
12803 #define wxUSE_IPC 1
12804 EOF
12805
12806 fi
12807
12808 if test "$wxUSE_CLIPBOARD" = "yes"; then
12809 cat >> confdefs.h <<\EOF
12810 #define wxUSE_CLIPBOARD 1
12811 EOF
12812
12813 fi
12814
12815 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12816 if test "$wxUSE_GTK" = 1; then
12817 if test "$WXGTK12" != 1; then
12818 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12819 wxUSE_DRAG_AND_DROP=no
12820 fi
12821 fi
12822
12823 if test "$wxUSE_MOTIF" = 1; then
12824 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12825 wxUSE_DRAG_AND_DROP=no
12826 fi
12827
12828 if test "$USE_WIN32" = 1; then
12829 for ac_hdr in ole2.h
12830 do
12831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12833 echo "configure:12834: checking for $ac_hdr" >&5
12834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12835 echo $ac_n "(cached) $ac_c" 1>&6
12836 else
12837 cat > conftest.$ac_ext <<EOF
12838 #line 12839 "configure"
12839 #include "confdefs.h"
12840 #include <$ac_hdr>
12841 EOF
12842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12843 { (eval echo configure:12844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12845 if test -z "$ac_err"; then
12846 rm -rf conftest*
12847 eval "ac_cv_header_$ac_safe=yes"
12848 else
12849 echo "$ac_err" >&5
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12852 rm -rf conftest*
12853 eval "ac_cv_header_$ac_safe=no"
12854 fi
12855 rm -f conftest*
12856 fi
12857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12858 echo "$ac_t""yes" 1>&6
12859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12860 cat >> confdefs.h <<EOF
12861 #define $ac_tr_hdr 1
12862 EOF
12863
12864 else
12865 echo "$ac_t""no" 1>&6
12866 fi
12867 done
12868
12869 if test "x$HAVE_OLE2_H" = x ; then
12870 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12871 wxUSE_DRAG_AND_DROP=no
12872 fi
12873 fi
12874
12875 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12876 cat >> confdefs.h <<\EOF
12877 #define wxUSE_DRAG_AND_DROP 1
12878 EOF
12879
12880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12881 fi
12882
12883 fi
12884
12885 if test "$wxUSE_SPLINES" = "yes" ; then
12886 cat >> confdefs.h <<\EOF
12887 #define wxUSE_SPLINES 1
12888 EOF
12889
12890 fi
12891
12892
12893 if test "$wxUSE_ACCEL" = "yes"; then
12894 cat >> confdefs.h <<\EOF
12895 #define wxUSE_ACCEL 1
12896 EOF
12897
12898 fi
12899
12900 if test "$wxUSE_CARET" = "yes"; then
12901 cat >> confdefs.h <<\EOF
12902 #define wxUSE_CARET 1
12903 EOF
12904
12905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12906 fi
12907
12908 if test "$wxUSE_COMBOBOX" = "yes"; then
12909 cat >> confdefs.h <<\EOF
12910 #define wxUSE_COMBOBOX 1
12911 EOF
12912
12913 fi
12914
12915 if test "$wxUSE_CHOICE" = "yes"; then
12916 cat >> confdefs.h <<\EOF
12917 #define wxUSE_CHOICE 1
12918 EOF
12919
12920 fi
12921
12922 if test "$wxUSE_BMPBUTTON" = "yes"; then
12923 cat >> confdefs.h <<\EOF
12924 #define wxUSE_BMPBUTTON 1
12925 EOF
12926
12927 fi
12928
12929 if test "$wxUSE_CHECKBOX" = "yes"; then
12930 cat >> confdefs.h <<\EOF
12931 #define wxUSE_CHECKBOX 1
12932 EOF
12933
12934 fi
12935
12936 if test "$wxUSE_CHECKLST" = "yes"; then
12937 cat >> confdefs.h <<\EOF
12938 #define wxUSE_CHECKLISTBOX 1
12939 EOF
12940
12941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12942 fi
12943
12944 if test "$wxUSE_GAUGE" = "yes"; then
12945 cat >> confdefs.h <<\EOF
12946 #define wxUSE_GAUGE 1
12947 EOF
12948
12949 fi
12950
12951 if test "$wxUSE_GRID" = "yes"; then
12952 cat >> confdefs.h <<\EOF
12953 #define wxUSE_GRID 1
12954 EOF
12955
12956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12957 fi
12958
12959 if test "$wxUSE_NEW_GRID" = "yes"; then
12960 cat >> confdefs.h <<\EOF
12961 #define wxUSE_NEW_GRID 1
12962 EOF
12963
12964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12965 fi
12966
12967 if test "$wxUSE_IMAGLIST" = "yes"; then
12968 cat >> confdefs.h <<\EOF
12969 #define wxUSE_IMAGLIST 1
12970 EOF
12971
12972 fi
12973
12974 if test "$wxUSE_LISTBOX" = "yes"; then
12975 cat >> confdefs.h <<\EOF
12976 #define wxUSE_LISTBOX 1
12977 EOF
12978
12979 fi
12980
12981 if test "$wxUSE_LISTCTRL" = "yes"; then
12982 if test "$wxUSE_IMAGLIST" = "yes"; then
12983 cat >> confdefs.h <<\EOF
12984 #define wxUSE_LISTCTRL 1
12985 EOF
12986
12987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12988 else
12989 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12990 fi
12991 fi
12992
12993 if test "$wxUSE_NOTEBOOK" = "yes"; then
12994 cat >> confdefs.h <<\EOF
12995 #define wxUSE_NOTEBOOK 1
12996 EOF
12997
12998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12999 fi
13000
13001 if test "$wxUSE_RADIOBOX" = "yes"; then
13002 cat >> confdefs.h <<\EOF
13003 #define wxUSE_RADIOBOX 1
13004 EOF
13005
13006 fi
13007
13008 if test "$wxUSE_RADIOBTN" = "yes"; then
13009 cat >> confdefs.h <<\EOF
13010 #define wxUSE_RADIOBTN 1
13011 EOF
13012
13013 fi
13014
13015 if test "$wxUSE_SASH" = "yes"; then
13016 cat >> confdefs.h <<\EOF
13017 #define wxUSE_SASH 1
13018 EOF
13019
13020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13021 fi
13022
13023 if test "$wxUSE_SCROLLBAR" = "yes"; then
13024 cat >> confdefs.h <<\EOF
13025 #define wxUSE_SCROLLBAR 1
13026 EOF
13027
13028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
13029 fi
13030
13031 if test "$wxUSE_SLIDER" = "yes"; then
13032 cat >> confdefs.h <<\EOF
13033 #define wxUSE_SLIDER 1
13034 EOF
13035
13036 fi
13037
13038 if test "$wxUSE_SPINBTN" = "yes"; then
13039 cat >> confdefs.h <<\EOF
13040 #define wxUSE_SPINBTN 1
13041 EOF
13042
13043 fi
13044
13045 if test "$wxUSE_SPINCTRL" = "yes"; then
13046 cat >> confdefs.h <<\EOF
13047 #define wxUSE_SPINCTRL 1
13048 EOF
13049
13050 fi
13051
13052 if test "$wxUSE_SPLITTER" = "yes"; then
13053 cat >> confdefs.h <<\EOF
13054 #define wxUSE_SPLITTER 1
13055 EOF
13056
13057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13058 fi
13059
13060 if test "$wxUSE_STATBMP" = "yes"; then
13061 cat >> confdefs.h <<\EOF
13062 #define wxUSE_STATBMP 1
13063 EOF
13064
13065 fi
13066
13067 if test "$wxUSE_STATBOX" = "yes"; then
13068 cat >> confdefs.h <<\EOF
13069 #define wxUSE_STATBOX 1
13070 EOF
13071
13072 fi
13073
13074 if test "$wxUSE_STATLINE" = "yes"; then
13075 if test "$wxUSE_WINE" = 1 ; then
13076 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13077 else
13078 cat >> confdefs.h <<\EOF
13079 #define wxUSE_STATLINE 1
13080 EOF
13081
13082 fi
13083 fi
13084
13085 if test "$wxUSE_STATUSBAR" = "yes"; then
13086 cat >> confdefs.h <<\EOF
13087 #define wxUSE_STATUSBAR 1
13088 EOF
13089
13090
13091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
13092 fi
13093
13094 if test "$wxUSE_TABDIALOG" = "yes"; then
13095 cat >> confdefs.h <<\EOF
13096 #define wxUSE_TAB_DIALOG 1
13097 EOF
13098
13099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13100 fi
13101
13102 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13103 cat >> confdefs.h <<\EOF
13104 #define wxUSE_TOOLBAR_SIMPLE 1
13105 EOF
13106
13107 wxUSE_TOOLBAR="yes"
13108 fi
13109
13110 if test "$wxUSE_TOOLBAR" = "yes"; then
13111 cat >> confdefs.h <<\EOF
13112 #define wxUSE_TOOLBAR 1
13113 EOF
13114
13115
13116 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13117 wxUSE_TOOLBAR_NATIVE="yes"
13118 fi
13119
13120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13121 fi
13122
13123 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13124 cat >> confdefs.h <<\EOF
13125 #define wxUSE_TOOLBAR_NATIVE 1
13126 EOF
13127
13128 fi
13129
13130 if test "$wxUSE_TOOLTIPS" = "yes"; then
13131 if test "$wxUSE_MOTIF" = 1; then
13132 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13133 else
13134 if test "$wxUSE_WINE" = 1; then
13135 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13136 else
13137 cat >> confdefs.h <<\EOF
13138 #define wxUSE_TOOLTIPS 1
13139 EOF
13140
13141 fi
13142 fi
13143 fi
13144
13145 if test "$wxUSE_TREECTRL" = "yes"; then
13146 if test "$wxUSE_IMAGLIST" = "yes"; then
13147 cat >> confdefs.h <<\EOF
13148 #define wxUSE_TREECTRL 1
13149 EOF
13150
13151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13152 else
13153 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13154 fi
13155 fi
13156
13157
13158
13159 if test "$wxUSE_METAFILE" = "yes"; then
13160 cat >> confdefs.h <<\EOF
13161 #define wxUSE_METAFILE 1
13162 EOF
13163
13164 fi
13165
13166 if test "$wxUSE_DIRDLG" = "yes"; then
13167 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13168 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13169 else
13170 if test "$wxUSE_TREECTRL" != "yes"; then
13171 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13172 else
13173 cat >> confdefs.h <<\EOF
13174 #define wxUSE_DIRDLG 1
13175 EOF
13176
13177 fi
13178 fi
13179 fi
13180
13181 if test "$wxUSE_TEXTDLG" = "yes"; then
13182 cat >> confdefs.h <<\EOF
13183 #define wxUSE_TEXTDLG 1
13184 EOF
13185
13186 fi
13187
13188 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13189 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13190 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13191 else
13192 cat >> confdefs.h <<\EOF
13193 #define wxUSE_STARTUP_TIPS 1
13194 EOF
13195
13196 fi
13197 fi
13198
13199 if test "$wxUSE_PROGRESSDLG" = "yes"; then
13200 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13201 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13202 else
13203 cat >> confdefs.h <<\EOF
13204 #define wxUSE_PROGRESSDLG 1
13205 EOF
13206
13207 fi
13208 fi
13209
13210 if test "$wxUSE_MINIFRAME" = "yes"; then
13211 cat >> confdefs.h <<\EOF
13212 #define wxUSE_MINIFRAME 1
13213 EOF
13214
13215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13216 fi
13217
13218 if test "$wxUSE_HTML" = "yes"; then
13219 cat >> confdefs.h <<\EOF
13220 #define wxUSE_HTML 1
13221 EOF
13222
13223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13224 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13225 fi
13226
13227 if test "$wxUSE_VALIDATORS" = "yes"; then
13228 cat >> confdefs.h <<\EOF
13229 #define wxUSE_VALIDATORS 1
13230 EOF
13231
13232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13233 fi
13234
13235 if test "$wxUSE_GIF" = "yes" ; then
13236 cat >> confdefs.h <<\EOF
13237 #define wxUSE_GIF 1
13238 EOF
13239
13240 fi
13241
13242 if test "$wxUSE_PCX" = "yes" ; then
13243 cat >> confdefs.h <<\EOF
13244 #define wxUSE_PCX 1
13245 EOF
13246
13247 fi
13248
13249 if test "$wxUSE_PNM" = "yes" ; then
13250 cat >> confdefs.h <<\EOF
13251 #define wxUSE_PNM 1
13252 EOF
13253
13254 fi
13255
13256
13257 OSINFO=`uname -s -r -m`
13258 OSINFO="\"$OSINFO\""
13259 cat >> confdefs.h <<EOF
13260 #define WXWIN_OS_DESCRIPTION $OSINFO
13261 EOF
13262
13263
13264
13265 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
13266
13267 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
13268 if test "$wxUSE_GUI" = "yes"; then
13269 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13270 fi
13271
13272 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13273
13274 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
13275
13276 if test "$GXX" = yes ; then
13277 CXXWARNINGS="-Wall"
13278 fi
13279 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13280
13281 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13282 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13283
13284 LDFLAGS="$LDFLAGS $PROFILE"
13285
13286 if test "$wxUSE_GUI" = "yes"; then
13287
13288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
13289 font fractal image minimal richedit"
13290
13291 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
13292 else
13293 SAMPLES_SUBDIRS=""
13294 fi
13295
13296 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
13365 echo "configure:13366: checking whether ${MAKE-make} sets \${MAKE}" >&5
13366 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13367 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13368 echo $ac_n "(cached) $ac_c" 1>&6
13369 else
13370 cat > conftestmake <<\EOF
13371 all:
13372 @echo 'ac_maketemp="${MAKE}"'
13373 EOF
13374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13375 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13376 if test -n "$ac_maketemp"; then
13377 eval ac_cv_prog_make_${ac_make}_set=yes
13378 else
13379 eval ac_cv_prog_make_${ac_make}_set=no
13380 fi
13381 rm -f conftestmake
13382 fi
13383 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13384 echo "$ac_t""yes" 1>&6
13385 SET_MAKE=
13386 else
13387 echo "$ac_t""no" 1>&6
13388 SET_MAKE="MAKE=${MAKE-make}"
13389 fi
13390
13391
13392 if test -d include; then
13393 if test -d include/wx; then
13394 if test -d include/wx/${TOOLKIT_DIR}; then
13395 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13396 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13397 fi
13398 fi
13399 fi
13400 fi
13401
13402
13403
13404 if test "$wxUSE_GUI" = "yes"; then
13405 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
13406 echo "configure:13407: checking glcanvas subdirectory to use" >&5
13407 if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13408 echo $ac_n "(cached) $ac_c" 1>&6
13409 else
13410
13411 if test "${TOOLKIT_DIR}" = "msw" ; then
13412 wx_cv_path_glcanvas="win"
13413 else
13414 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13415 fi
13416
13417 fi
13418
13419 echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13420
13421 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
13422
13423
13424 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
13425 subdirs="demos samples utils"
13426
13427 fi
13428
13429 trap '' 1 2 15
13430 cat > confcache <<\EOF
13431 # This file is a shell script that caches the results of configure
13432 # tests run on this system so they can be shared between configure
13433 # scripts and configure runs. It is not useful on other systems.
13434 # If it contains results you don't want to keep, you may remove or edit it.
13435 #
13436 # By default, configure uses ./config.cache as the cache file,
13437 # creating it if it does not exist already. You can give configure
13438 # the --cache-file=FILE option to use a different cache file; that is
13439 # what configure does when it calls configure scripts in
13440 # subdirectories, so they share the cache.
13441 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13442 # config.status only pays attention to the cache file if you give it the
13443 # --recheck option to rerun configure.
13444 #
13445 EOF
13446 # The following way of writing the cache mishandles newlines in values,
13447 # but we know of no workaround that is simple, portable, and efficient.
13448 # So, don't put newlines in cache variables' values.
13449 # Ultrix sh set writes to stderr and can't be redirected directly,
13450 # and sets the high bit in the cache file unless we assign to the vars.
13451 (set) 2>&1 |
13452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13453 *ac_space=\ *)
13454 # `set' does not quote correctly, so add quotes (double-quote substitution
13455 # turns \\\\ into \\, and sed turns \\ into \).
13456 sed -n \
13457 -e "s/'/'\\\\''/g" \
13458 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13459 ;;
13460 *)
13461 # `set' quotes correctly as required by POSIX, so do not add quotes.
13462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13463 ;;
13464 esac >> confcache
13465 if cmp -s $cache_file confcache; then
13466 :
13467 else
13468 if test -w $cache_file; then
13469 echo "updating cache $cache_file"
13470 cat confcache > $cache_file
13471 else
13472 echo "not updating unwritable cache $cache_file"
13473 fi
13474 fi
13475 rm -f confcache
13476
13477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13478
13479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13480 # Let make expand exec_prefix.
13481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13482
13483 # Any assignment to VPATH causes Sun make to only execute
13484 # the first set of double-colon rules, so remove it if not needed.
13485 # If there is a colon in the path, we need to keep it.
13486 if test "x$srcdir" = x.; then
13487 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13488 fi
13489
13490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13491
13492 DEFS=-DHAVE_CONFIG_H
13493
13494 # Without the "./", some shells look in PATH for config.status.
13495 : ${CONFIG_STATUS=./config.status}
13496
13497 echo creating $CONFIG_STATUS
13498 rm -f $CONFIG_STATUS
13499 cat > $CONFIG_STATUS <<EOF
13500 #! /bin/sh
13501 # Generated automatically by configure.
13502 # Run this file to recreate the current configuration.
13503 # This directory was configured as follows,
13504 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13505 #
13506 # $0 $ac_configure_args
13507 #
13508 # Compiler output produced by configure, useful for debugging
13509 # configure, is in ./config.log if it exists.
13510
13511 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13512 for ac_option
13513 do
13514 case "\$ac_option" in
13515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13516 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13517 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13518 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13519 echo "$CONFIG_STATUS generated by autoconf version 2.14"
13520 exit 0 ;;
13521 -help | --help | --hel | --he | --h)
13522 echo "\$ac_cs_usage"; exit 0 ;;
13523 *) echo "\$ac_cs_usage"; exit 1 ;;
13524 esac
13525 done
13526
13527 ac_given_srcdir=$srcdir
13528 ac_given_INSTALL="$INSTALL"
13529
13530 trap 'rm -fr `echo "
13531 wx-config
13532 src/make.env
13533 src/makeprog.env
13534 src/makelib.env
13535 Makefile
13536 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13537 EOF
13538 cat >> $CONFIG_STATUS <<EOF
13539
13540 # Protect against being on the right side of a sed subst in config.status.
13541 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13542 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13543 $ac_vpsub
13544 $extrasub
13545 s%@SHELL@%$SHELL%g
13546 s%@CFLAGS@%$CFLAGS%g
13547 s%@CPPFLAGS@%$CPPFLAGS%g
13548 s%@CXXFLAGS@%$CXXFLAGS%g
13549 s%@FFLAGS@%$FFLAGS%g
13550 s%@DEFS@%$DEFS%g
13551 s%@LDFLAGS@%$LDFLAGS%g
13552 s%@LIBS@%$LIBS%g
13553 s%@exec_prefix@%$exec_prefix%g
13554 s%@prefix@%$prefix%g
13555 s%@program_transform_name@%$program_transform_name%g
13556 s%@bindir@%$bindir%g
13557 s%@sbindir@%$sbindir%g
13558 s%@libexecdir@%$libexecdir%g
13559 s%@datadir@%$datadir%g
13560 s%@sysconfdir@%$sysconfdir%g
13561 s%@sharedstatedir@%$sharedstatedir%g
13562 s%@localstatedir@%$localstatedir%g
13563 s%@libdir@%$libdir%g
13564 s%@includedir@%$includedir%g
13565 s%@oldincludedir@%$oldincludedir%g
13566 s%@infodir@%$infodir%g
13567 s%@mandir@%$mandir%g
13568 s%@host@%$host%g
13569 s%@host_alias@%$host_alias%g
13570 s%@host_cpu@%$host_cpu%g
13571 s%@host_vendor@%$host_vendor%g
13572 s%@host_os@%$host_os%g
13573 s%@target@%$target%g
13574 s%@target_alias@%$target_alias%g
13575 s%@target_cpu@%$target_cpu%g
13576 s%@target_vendor@%$target_vendor%g
13577 s%@target_os@%$target_os%g
13578 s%@build@%$build%g
13579 s%@build_alias@%$build_alias%g
13580 s%@build_cpu@%$build_cpu%g
13581 s%@build_vendor@%$build_vendor%g
13582 s%@build_os@%$build_os%g
13583 s%@CC@%$CC%g
13584 s%@CPP@%$CPP%g
13585 s%@CXX@%$CXX%g
13586 s%@CXXCPP@%$CXXCPP%g
13587 s%@RANLIB@%$RANLIB%g
13588 s%@AR@%$AR%g
13589 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13590 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13591 s%@INSTALL_DATA@%$INSTALL_DATA%g
13592 s%@STRIP@%$STRIP%g
13593 s%@YACC@%$YACC%g
13594 s%@LEX@%$LEX%g
13595 s%@LEXLIB@%$LEXLIB%g
13596 s%@LN_S@%$LN_S%g
13597 s%@GTK_CONFIG@%$GTK_CONFIG%g
13598 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13599 s%@GTK_LIBS@%$GTK_LIBS%g
13600 s%@X_CFLAGS@%$X_CFLAGS%g
13601 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13602 s%@X_LIBS@%$X_LIBS%g
13603 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13604 s%@LEX_STEM@%$LEX_STEM%g
13605 s%@PATH_IFS@%$PATH_IFS%g
13606 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13607 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13608 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13609 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13610 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13611 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13612 s%@WX_LIBRARY@%$WX_LIBRARY%g
13613 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13614 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13615 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13616 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13617 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13618 s%@WX_ALL@%$WX_ALL%g
13619 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13620 s%@SHARED_LD@%$SHARED_LD%g
13621 s%@PIC_FLAG@%$PIC_FLAG%g
13622 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
13623 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
13624 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
13625 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
13626 s%@USE_GUI@%$USE_GUI%g
13627 s%@AFMINSTALL@%$AFMINSTALL%g
13628 s%@TOOLKIT@%$TOOLKIT%g
13629 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13630 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13631 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13632 s%@GUIHEADERS@%$GUIHEADERS%g
13633 s%@GUIOBJS@%$GUIOBJS%g
13634 s%@COMMONOBJS@%$COMMONOBJS%g
13635 s%@GENERICOBJS@%$GENERICOBJS%g
13636 s%@GUIDEPS@%$GUIDEPS%g
13637 s%@COMMONDEPS@%$COMMONDEPS%g
13638 s%@GENERICDEPS@%$GENERICDEPS%g
13639 s%@IODBCOBJS@%$IODBCOBJS%g
13640 s%@UNIXOBJS@%$UNIXOBJS%g
13641 s%@UNIXDEPS@%$UNIXDEPS%g
13642 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13643 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13644 s%@GUIDIST@%$GUIDIST%g
13645 s%@PORT_FILES@%$PORT_FILES%g
13646 s%@DISTDIR@%$DISTDIR%g
13647 s%@RPM_SPEC@%$RPM_SPEC%g
13648 s%@RPM_FILES@%$RPM_FILES%g
13649 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13650 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13651 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13652 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13653 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13654 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13655 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
13656 s%@EXTRADEFS@%$EXTRADEFS%g
13657 s%@LD_LIBS@%$LD_LIBS%g
13658 s%@SET_MAKE@%$SET_MAKE%g
13659 s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13660 s%@subdirs@%$subdirs%g
13661
13662 CEOF
13663 EOF
13664
13665 cat >> $CONFIG_STATUS <<\EOF
13666
13667 # Split the substitutions into bite-sized pieces for seds with
13668 # small command number limits, like on Digital OSF/1 and HP-UX.
13669 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13670 ac_file=1 # Number of current file.
13671 ac_beg=1 # First line for current file.
13672 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13673 ac_more_lines=:
13674 ac_sed_cmds=""
13675 while $ac_more_lines; do
13676 if test $ac_beg -gt 1; then
13677 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13678 else
13679 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13680 fi
13681 if test ! -s conftest.s$ac_file; then
13682 ac_more_lines=false
13683 rm -f conftest.s$ac_file
13684 else
13685 if test -z "$ac_sed_cmds"; then
13686 ac_sed_cmds="sed -f conftest.s$ac_file"
13687 else
13688 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13689 fi
13690 ac_file=`expr $ac_file + 1`
13691 ac_beg=$ac_end
13692 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13693 fi
13694 done
13695 if test -z "$ac_sed_cmds"; then
13696 ac_sed_cmds=cat
13697 fi
13698 EOF
13699
13700 cat >> $CONFIG_STATUS <<EOF
13701
13702 CONFIG_FILES=\${CONFIG_FILES-"wx-config
13703 src/make.env
13704 src/makeprog.env
13705 src/makelib.env
13706 Makefile
13707 "}
13708 EOF
13709 cat >> $CONFIG_STATUS <<\EOF
13710 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13711 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13712 case "$ac_file" in
13713 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13714 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13715 *) ac_file_in="${ac_file}.in" ;;
13716 esac
13717
13718 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13719
13720 # Remove last slash and all that follows it. Not all systems have dirname.
13721 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13722 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13723 # The file is in a subdirectory.
13724 test ! -d "$ac_dir" && mkdir "$ac_dir"
13725 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13726 # A "../" for each directory in $ac_dir_suffix.
13727 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13728 else
13729 ac_dir_suffix= ac_dots=
13730 fi
13731
13732 case "$ac_given_srcdir" in
13733 .) srcdir=.
13734 if test -z "$ac_dots"; then top_srcdir=.
13735 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13736 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13737 *) # Relative path.
13738 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13739 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13740 esac
13741
13742 case "$ac_given_INSTALL" in
13743 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13744 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13745 esac
13746
13747 echo creating "$ac_file"
13748 rm -f "$ac_file"
13749 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13750 case "$ac_file" in
13751 *Makefile*) ac_comsub="1i\\
13752 # $configure_input" ;;
13753 *) ac_comsub= ;;
13754 esac
13755
13756 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13757 sed -e "$ac_comsub
13758 s%@configure_input@%$configure_input%g
13759 s%@srcdir@%$srcdir%g
13760 s%@top_srcdir@%$top_srcdir%g
13761 s%@INSTALL@%$INSTALL%g
13762 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13763 fi; done
13764 rm -f conftest.s*
13765
13766 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13767 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13768 #
13769 # ac_d sets the value in "#define NAME VALUE" lines.
13770 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13771 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13772 ac_dC='\3'
13773 ac_dD='%g'
13774 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13775 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13776 ac_uB='\([ ]\)%\1#\2define\3'
13777 ac_uC=' '
13778 ac_uD='\4%g'
13779 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13780 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13781 ac_eB='$%\1#\2define\3'
13782 ac_eC=' '
13783 ac_eD='%g'
13784
13785 if test "${CONFIG_HEADERS+set}" != set; then
13786 EOF
13787 cat >> $CONFIG_STATUS <<EOF
13788 CONFIG_HEADERS="setup.h:setup.h.in"
13789 EOF
13790 cat >> $CONFIG_STATUS <<\EOF
13791 fi
13792 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13793 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13794 case "$ac_file" in
13795 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13796 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13797 *) ac_file_in="${ac_file}.in" ;;
13798 esac
13799
13800 echo creating $ac_file
13801
13802 rm -f conftest.frag conftest.in conftest.out
13803 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13804 cat $ac_file_inputs > conftest.in
13805
13806 EOF
13807
13808 # Transform confdefs.h into a sed script conftest.vals that substitutes
13809 # the proper values into config.h.in to produce config.h. And first:
13810 # Protect against being on the right side of a sed subst in config.status.
13811 # Protect against being in an unquoted here document in config.status.
13812 rm -f conftest.vals
13813 cat > conftest.hdr <<\EOF
13814 s/[\\&%]/\\&/g
13815 s%[\\$`]%\\&%g
13816 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13817 s%ac_d%ac_u%gp
13818 s%ac_u%ac_e%gp
13819 EOF
13820 sed -n -f conftest.hdr confdefs.h > conftest.vals
13821 rm -f conftest.hdr
13822
13823 # This sed command replaces #undef with comments. This is necessary, for
13824 # example, in the case of _POSIX_SOURCE, which is predefined and required
13825 # on some systems where configure will not decide to define it.
13826 cat >> conftest.vals <<\EOF
13827 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13828 EOF
13829
13830 # Break up conftest.vals because some shells have a limit on
13831 # the size of here documents, and old seds have small limits too.
13832
13833 rm -f conftest.tail
13834 while :
13835 do
13836 ac_lines=`grep -c . conftest.vals`
13837 # grep -c gives empty output for an empty file on some AIX systems.
13838 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13839 # Write a limited-size here document to conftest.frag.
13840 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13841 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13842 echo 'CEOF
13843 sed -f conftest.frag conftest.in > conftest.out
13844 rm -f conftest.in
13845 mv conftest.out conftest.in
13846 ' >> $CONFIG_STATUS
13847 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13848 rm -f conftest.vals
13849 mv conftest.tail conftest.vals
13850 done
13851 rm -f conftest.vals
13852
13853 cat >> $CONFIG_STATUS <<\EOF
13854 rm -f conftest.frag conftest.h
13855 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13856 cat conftest.in >> conftest.h
13857 rm -f conftest.in
13858 if cmp -s $ac_file conftest.h 2>/dev/null; then
13859 echo "$ac_file is unchanged"
13860 rm -f conftest.h
13861 else
13862 # Remove last slash and all that follows it. Not all systems have dirname.
13863 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13864 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13865 # The file is in a subdirectory.
13866 test ! -d "$ac_dir" && mkdir "$ac_dir"
13867 fi
13868 rm -f $ac_file
13869 mv conftest.h $ac_file
13870 fi
13871 fi; done
13872
13873 EOF
13874 cat >> $CONFIG_STATUS <<EOF
13875
13876 TOOLKIT_DIR="${TOOLKIT_DIR}"
13877
13878
13879 EOF
13880 cat >> $CONFIG_STATUS <<\EOF
13881
13882 chmod +x wx-config
13883
13884
13885 if test ! -d lib; then
13886 mkdir lib
13887 fi
13888 if test ! -d lib/wx; then
13889 mkdir lib/wx
13890 fi
13891 if test ! -d lib/wx/include; then
13892 mkdir lib/wx/include
13893 fi
13894 if test ! -d lib/wx/include/wx; then
13895 mkdir lib/wx/include/wx
13896 fi
13897 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
13898 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
13899 fi
13900 if test -f setup.h; then
13901 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
13902 fi
13903
13904
13905 if test ! -d include; then
13906 mkdir include
13907 fi
13908 if test ! -d include/wx; then
13909 mkdir include/wx
13910 fi
13911 if test ! -d include/wx/${TOOLKIT_DIR}; then
13912 mkdir include/wx/${TOOLKIT_DIR}
13913 fi
13914 if test -f setup.h; then
13915 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13916 fi
13917
13918
13919 exit 0
13920 EOF
13921 chmod +x $CONFIG_STATUS
13922 rm -fr confdefs* $ac_clean_files
13923 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13924
13925 if test "$no_recursion" != yes; then
13926
13927 # Remove --cache-file and --srcdir arguments so they do not pile up.
13928 ac_sub_configure_args=
13929 ac_prev=
13930 for ac_arg in $ac_configure_args; do
13931 if test -n "$ac_prev"; then
13932 ac_prev=
13933 continue
13934 fi
13935 case "$ac_arg" in
13936 -cache-file | --cache-file | --cache-fil | --cache-fi \
13937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13938 ac_prev=cache_file ;;
13939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13941 ;;
13942 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13943 ac_prev=srcdir ;;
13944 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13945 ;;
13946 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13947 esac
13948 done
13949
13950 for ac_config_dir in demos samples utils; do
13951
13952 # Do not complain, so a configure script can configure whichever
13953 # parts of a large source tree are present.
13954 if test ! -d $srcdir/$ac_config_dir; then
13955 continue
13956 fi
13957
13958 echo configuring in $ac_config_dir
13959
13960 case "$srcdir" in
13961 .) ;;
13962 *)
13963 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
13964 else
13965 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
13966 fi
13967 ;;
13968 esac
13969
13970 ac_popdir=`pwd`
13971 cd $ac_config_dir
13972
13973 # A "../" for each directory in /$ac_config_dir.
13974 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
13975
13976 case "$srcdir" in
13977 .) # No --srcdir option. We are building in place.
13978 ac_sub_srcdir=$srcdir ;;
13979 /*) # Absolute path.
13980 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
13981 *) # Relative path.
13982 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
13983 esac
13984
13985 # Check for guested configure; otherwise get Cygnus style configure.
13986 if test -f $ac_sub_srcdir/configure; then
13987 ac_sub_configure=$ac_sub_srcdir/configure
13988 elif test -f $ac_sub_srcdir/configure.in; then
13989 ac_sub_configure=$ac_configure
13990 else
13991 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
13992 ac_sub_configure=
13993 fi
13994
13995 # The recursion is here.
13996 if test -n "$ac_sub_configure"; then
13997
13998 # Make the cache file name correct relative to the subdirectory.
13999 case "$cache_file" in
14000 /*) ac_sub_cache_file=$cache_file ;;
14001 *) # Relative path.
14002 ac_sub_cache_file="$ac_dots$cache_file" ;;
14003 esac
14004 case "$ac_given_INSTALL" in
14005 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14006 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14007 esac
14008
14009 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14010 # The eval makes quoting arguments work.
14011 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14012 then :
14013 else
14014 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14015 fi
14016 fi
14017
14018 cd $ac_popdir
14019 done
14020 fi
14021
14022