]> git.saurik.com Git - wxWidgets.git/blob - configure
Added right/middle click item support
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 # Guess values for system-dependent variables and create Makefiles.
44 # Generated automatically using autoconf version 2.12
45 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
46 #
47 # This configure script is free software; the Free Software Foundation
48 # gives unlimited permission to copy, distribute and modify it.
49
50 # Defaults:
51 ac_help=
52 ac_default_prefix=/usr/local
53 # Any additions from configure.in:
54 ac_help="$ac_help
55 --enable-gui use GUI classes"
56 ac_help="$ac_help
57 --with-gtk use GTK+"
58 ac_help="$ac_help
59 --with-motif use Motif/Lesstif"
60 ac_help="$ac_help
61 --with-wine use WINE"
62 ac_help="$ac_help
63 --with-cygwin use Cygwin for MS-Windows"
64 ac_help="$ac_help
65 --with-mingw use GCC Minimal MS-Windows"
66 ac_help="$ac_help
67 --with-gtk-prefix=PFX Prefix where GTK is installed"
68 ac_help="$ac_help
69 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
70 ac_help="$ac_help
71 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
72 ac_help="$ac_help
73 --with-zlib use zlib for LZW compression"
74 ac_help="$ac_help
75 --with-libpng use libpng (PNG image format)"
76 ac_help="$ac_help
77 --with-libjpeg use libjpeg (JPEG file format)"
78 ac_help="$ac_help
79 --with-opengl use OpenGL (or Mesa)"
80 ac_help="$ac_help
81 --with-odbc use the IODBC and wxODBC classes"
82 ac_help="$ac_help
83 --enable-shared create shared library code"
84 ac_help="$ac_help
85 --enable-optimise create optimised code"
86 ac_help="$ac_help
87 --enable-debug same as debug_flag and debug_info"
88 ac_help="$ac_help
89 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
90 ac_help="$ac_help
91 --enable-debug_info create code with debugging information"
92 ac_help="$ac_help
93 --enable-debug_gdb create code with extra GDB debugging information"
94 ac_help="$ac_help
95 --enable-debug_cntxt use wxDebugContext"
96 ac_help="$ac_help
97 --enable-mem_tracing create code with memory tracing"
98 ac_help="$ac_help
99 --enable-profile create code with profiling information"
100 ac_help="$ac_help
101 --enable-no_rtti create code without RTTI information"
102 ac_help="$ac_help
103 --enable-no_exceptions create code without exceptions information"
104 ac_help="$ac_help
105 --enable-permissive compile code disregarding strict ANSI"
106 ac_help="$ac_help
107 --enable-no_deps create code without dependency information"
108 ac_help="$ac_help
109 --enable-intl use internationalization system"
110 ac_help="$ac_help
111 --enable-config use wxConfig (and derived) classes"
112 ac_help="$ac_help
113 --enable-sockets use socket/network classes"
114 ac_help="$ac_help
115 --enable-dialupman use dialup network classes"
116 ac_help="$ac_help
117 --enable-ipc use interprocess communication (wxSocket etc.)"
118 ac_help="$ac_help
119 --enable-apple_ieee use the Apple IEEE codec"
120 ac_help="$ac_help
121 --enable-timedate use date/time classes"
122 ac_help="$ac_help
123 --enable-wave use wxWave class"
124 ac_help="$ac_help
125 --enable-fraction use wxFraction class"
126 ac_help="$ac_help
127 --enable-dynlib use wxLibrary class for DLL loading"
128 ac_help="$ac_help
129 --enable-longlong use wxLongLong class"
130 ac_help="$ac_help
131 --enable-log use logging system"
132 ac_help="$ac_help
133 --enable-streams use wxStream etc classes"
134 ac_help="$ac_help
135 --enable-file use wxFile classes"
136 ac_help="$ac_help
137 --enable-textfile use wxTextFile classes"
138 ac_help="$ac_help
139 --enable-unicode compile wxString with Unicode support"
140 ac_help="$ac_help
141 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
142 ac_help="$ac_help
143 --enable-wxprintfv use wxWindows implementation of vprintf()"
144 ac_help="$ac_help
145 --enable-joystick compile in joystick support (Linux only)"
146 ac_help="$ac_help
147 --enable-std_iostreams use standard C++ stream classes"
148 ac_help="$ac_help
149 --enable-fs_inet use virtual HTTP/FTP filesystems"
150 ac_help="$ac_help
151 --enable-fs_zip use virtual ZIP filesystems"
152 ac_help="$ac_help
153 --enable-zipstream use wxZipInputStream"
154 ac_help="$ac_help
155 --enable-threads use threads"
156 ac_help="$ac_help
157 --enable-serial use class serialization"
158 ac_help="$ac_help
159 --enable-docview use document view architecture"
160 ac_help="$ac_help
161 --enable-help use help (using external browser at present)"
162 ac_help="$ac_help
163 --enable-constraints use layout-constraints system"
164 ac_help="$ac_help
165 --enable-printarch use printing architecture"
166 ac_help="$ac_help
167 --enable-mdi use multiple document interface architecture"
168 ac_help="$ac_help
169 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
170 ac_help="$ac_help
171 --enable-prologio use Prolog IO library"
172 ac_help="$ac_help
173 --enable-resources use wxWindows resources"
174 ac_help="$ac_help
175 --enable-xresources use X resources for save (default for gtk+)"
176 ac_help="$ac_help
177 --enable-clipboard use wxClipboard classes"
178 ac_help="$ac_help
179 --enable-dnd use Drag'n'Drop classes"
180 ac_help="$ac_help
181 --enable-wxtree make wxTree library"
182 ac_help="$ac_help
183 --enable-controls use all usual controls"
184 ac_help="$ac_help
185 --enable-accel use accelerators"
186 ac_help="$ac_help
187 --enable-caret use wxCaret class"
188 ac_help="$ac_help
189 --enable-bmpbutton use wxBitmapButton class"
190 ac_help="$ac_help
191 --enable-checkbox use wxCheckBox class"
192 ac_help="$ac_help
193 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
194 ac_help="$ac_help
195 --enable-choice use wxChoice class"
196 ac_help="$ac_help
197 --enable-combobox use wxComboBox classes"
198 ac_help="$ac_help
199 --enable-gauge use wxGauge class"
200 ac_help="$ac_help
201 --enable-grid use wxGrid class"
202 ac_help="$ac_help
203 --enable-newgrid use new wxGrid class"
204 ac_help="$ac_help
205 --enable-imaglist use wxImageList class"
206 ac_help="$ac_help
207 --enable-listbox use wxListBox class"
208 ac_help="$ac_help
209 --enable-listctrl use wxListCtrl class"
210 ac_help="$ac_help
211 --enable-notebook use wxNotebook class"
212 ac_help="$ac_help
213 --enable-radiobox use wxRadioBox class"
214 ac_help="$ac_help
215 --enable-radiobtn use wxRadioButton class"
216 ac_help="$ac_help
217 --enable-sash use wxSashWindow class"
218 ac_help="$ac_help
219 --enable-scrollbar use wxScrollBar class and scrollable windows"
220 ac_help="$ac_help
221 --enable-slider use wxSlider class"
222 ac_help="$ac_help
223 --enable-spinbtn use wxSpinButton class"
224 ac_help="$ac_help
225 --enable-splitter use wxSplitterWindow class"
226 ac_help="$ac_help
227 --enable-statbmp use wxStaticBitmap class"
228 ac_help="$ac_help
229 --enable-statbox use wxStaticBox class"
230 ac_help="$ac_help
231 --enable-statline use wxStaticLine class"
232 ac_help="$ac_help
233 --enable-statusbar use wxStatusBar class"
234 ac_help="$ac_help
235 --enable-tabdialog use wxTabControl class"
236 ac_help="$ac_help
237 --enable-toolbar use wxToolBar class"
238 ac_help="$ac_help
239 --enable-treectrl use wxTreeCtrl class"
240 ac_help="$ac_help
241 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
242 ac_help="$ac_help
243 --enable-dirdlg use wxDirDialog"
244 ac_help="$ac_help
245 --enable-textdlg use wxTextDialog"
246 ac_help="$ac_help
247 --enable-tipdlg use startup tips"
248 ac_help="$ac_help
249 --enable-progressdlg use wxProgressDialog"
250 ac_help="$ac_help
251 --enable-miniframe use wxMiniFrame class"
252 ac_help="$ac_help
253 --enable-html use wxHTML sub-library"
254 ac_help="$ac_help
255 --enable-tooltips use wxToolTip class"
256 ac_help="$ac_help
257 --enable-splines use spline drawing code"
258 ac_help="$ac_help
259 --enable-validators use wxValidator and derived classes"
260 ac_help="$ac_help
261 --enable-busyinfo use wxBusyInfo"
262 ac_help="$ac_help
263 --enable-gif use gif images (GIF file format)"
264 ac_help="$ac_help
265 --enable-pcx use pcx images (PCX file format)"
266 ac_help="$ac_help
267 --enable-pnm use pnm images (PNM file format)"
268 ac_help="$ac_help
269 --with-x use the X Window System"
270
271 # Initialize some variables set by options.
272 # The variables have the same names as the options, with
273 # dashes changed to underlines.
274 build=NONE
275 cache_file=./config.cache
276 exec_prefix=NONE
277 host=NONE
278 no_create=
279 nonopt=NONE
280 no_recursion=
281 prefix=NONE
282 program_prefix=NONE
283 program_suffix=NONE
284 program_transform_name=s,x,x,
285 silent=
286 site=
287 srcdir=
288 target=NONE
289 verbose=
290 x_includes=NONE
291 x_libraries=NONE
292 bindir='${exec_prefix}/bin'
293 sbindir='${exec_prefix}/sbin'
294 libexecdir='${exec_prefix}/libexec'
295 datadir='${prefix}/share'
296 sysconfdir='${prefix}/etc'
297 sharedstatedir='${prefix}/com'
298 localstatedir='${prefix}/var'
299 libdir='${exec_prefix}/lib'
300 includedir='${prefix}/include'
301 oldincludedir='/usr/include'
302 infodir='${prefix}/info'
303 mandir='${prefix}/man'
304
305 # Initialize some other variables.
306 subdirs=
307 MFLAGS= MAKEFLAGS=
308 # Maximum number of lines to put in a shell here document.
309 ac_max_here_lines=12
310
311 ac_prev=
312 for ac_option
313 do
314
315 # If the previous option needs an argument, assign it.
316 if test -n "$ac_prev"; then
317 eval "$ac_prev=\$ac_option"
318 ac_prev=
319 continue
320 fi
321
322 case "$ac_option" in
323 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
324 *) ac_optarg= ;;
325 esac
326
327 # Accept the important Cygnus configure options, so we can diagnose typos.
328
329 case "$ac_option" in
330
331 -bindir | --bindir | --bindi | --bind | --bin | --bi)
332 ac_prev=bindir ;;
333 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334 bindir="$ac_optarg" ;;
335
336 -build | --build | --buil | --bui | --bu)
337 ac_prev=build ;;
338 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339 build="$ac_optarg" ;;
340
341 -cache-file | --cache-file | --cache-fil | --cache-fi \
342 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343 ac_prev=cache_file ;;
344 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346 cache_file="$ac_optarg" ;;
347
348 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
349 ac_prev=datadir ;;
350 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
351 | --da=*)
352 datadir="$ac_optarg" ;;
353
354 -disable-* | --disable-*)
355 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
359 fi
360 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
361 eval "enable_${ac_feature}=no" ;;
362
363 -enable-* | --enable-*)
364 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
368 fi
369 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
370 case "$ac_option" in
371 *=*) ;;
372 *) ac_optarg=yes ;;
373 esac
374 eval "enable_${ac_feature}='$ac_optarg'" ;;
375
376 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
377 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
378 | --exec | --exe | --ex)
379 ac_prev=exec_prefix ;;
380 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
381 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
382 | --exec=* | --exe=* | --ex=*)
383 exec_prefix="$ac_optarg" ;;
384
385 -gas | --gas | --ga | --g)
386 # Obsolete; use --with-gas.
387 with_gas=yes ;;
388
389 -help | --help | --hel | --he)
390 # Omit some internal or obsolete options to make the list less imposing.
391 # This message is too long to be a string in the A/UX 3.1 sh.
392 cat << EOF
393 Usage: configure [options] [host]
394 Options: [defaults in brackets after descriptions]
395 Configuration:
396 --cache-file=FILE cache test results in FILE
397 --help print this message
398 --no-create do not create output files
399 --quiet, --silent do not print \`checking...' messages
400 --version print the version of autoconf that created configure
401 Directory and file names:
402 --prefix=PREFIX install architecture-independent files in PREFIX
403 [$ac_default_prefix]
404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
405 [same as prefix]
406 --bindir=DIR user executables in DIR [EPREFIX/bin]
407 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
408 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
409 --datadir=DIR read-only architecture-independent data in DIR
410 [PREFIX/share]
411 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
412 --sharedstatedir=DIR modifiable architecture-independent data in DIR
413 [PREFIX/com]
414 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
415 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
416 --includedir=DIR C header files in DIR [PREFIX/include]
417 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
418 --infodir=DIR info documentation in DIR [PREFIX/info]
419 --mandir=DIR man documentation in DIR [PREFIX/man]
420 --srcdir=DIR find the sources in DIR [configure dir or ..]
421 --program-prefix=PREFIX prepend PREFIX to installed program names
422 --program-suffix=SUFFIX append SUFFIX to installed program names
423 --program-transform-name=PROGRAM
424 run sed PROGRAM on installed program names
425 EOF
426 cat << EOF
427 Host type:
428 --build=BUILD configure for building on BUILD [BUILD=HOST]
429 --host=HOST configure for HOST [guessed]
430 --target=TARGET configure for TARGET [TARGET=HOST]
431 Features and packages:
432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
436 --x-includes=DIR X include files are in DIR
437 --x-libraries=DIR X library files are in DIR
438 EOF
439 if test -n "$ac_help"; then
440 echo "--enable and --with options recognized:$ac_help"
441 fi
442 exit 0 ;;
443
444 -host | --host | --hos | --ho)
445 ac_prev=host ;;
446 -host=* | --host=* | --hos=* | --ho=*)
447 host="$ac_optarg" ;;
448
449 -includedir | --includedir | --includedi | --included | --include \
450 | --includ | --inclu | --incl | --inc)
451 ac_prev=includedir ;;
452 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
453 | --includ=* | --inclu=* | --incl=* | --inc=*)
454 includedir="$ac_optarg" ;;
455
456 -infodir | --infodir | --infodi | --infod | --info | --inf)
457 ac_prev=infodir ;;
458 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
459 infodir="$ac_optarg" ;;
460
461 -libdir | --libdir | --libdi | --libd)
462 ac_prev=libdir ;;
463 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 libdir="$ac_optarg" ;;
465
466 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
467 | --libexe | --libex | --libe)
468 ac_prev=libexecdir ;;
469 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
470 | --libexe=* | --libex=* | --libe=*)
471 libexecdir="$ac_optarg" ;;
472
473 -localstatedir | --localstatedir | --localstatedi | --localstated \
474 | --localstate | --localstat | --localsta | --localst \
475 | --locals | --local | --loca | --loc | --lo)
476 ac_prev=localstatedir ;;
477 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
478 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
479 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
480 localstatedir="$ac_optarg" ;;
481
482 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483 ac_prev=mandir ;;
484 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485 mandir="$ac_optarg" ;;
486
487 -nfp | --nfp | --nf)
488 # Obsolete; use --without-fp.
489 with_fp=no ;;
490
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c)
493 no_create=yes ;;
494
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 no_recursion=yes ;;
498
499 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
500 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
501 | --oldin | --oldi | --old | --ol | --o)
502 ac_prev=oldincludedir ;;
503 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
504 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
505 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
506 oldincludedir="$ac_optarg" ;;
507
508 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509 ac_prev=prefix ;;
510 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 prefix="$ac_optarg" ;;
512
513 -program-prefix | --program-prefix | --program-prefi | --program-pref \
514 | --program-pre | --program-pr | --program-p)
515 ac_prev=program_prefix ;;
516 -program-prefix=* | --program-prefix=* | --program-prefi=* \
517 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
518 program_prefix="$ac_optarg" ;;
519
520 -program-suffix | --program-suffix | --program-suffi | --program-suff \
521 | --program-suf | --program-su | --program-s)
522 ac_prev=program_suffix ;;
523 -program-suffix=* | --program-suffix=* | --program-suffi=* \
524 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
525 program_suffix="$ac_optarg" ;;
526
527 -program-transform-name | --program-transform-name \
528 | --program-transform-nam | --program-transform-na \
529 | --program-transform-n | --program-transform- \
530 | --program-transform | --program-transfor \
531 | --program-transfo | --program-transf \
532 | --program-trans | --program-tran \
533 | --progr-tra | --program-tr | --program-t)
534 ac_prev=program_transform_name ;;
535 -program-transform-name=* | --program-transform-name=* \
536 | --program-transform-nam=* | --program-transform-na=* \
537 | --program-transform-n=* | --program-transform-=* \
538 | --program-transform=* | --program-transfor=* \
539 | --program-transfo=* | --program-transf=* \
540 | --program-trans=* | --program-tran=* \
541 | --progr-tra=* | --program-tr=* | --program-t=*)
542 program_transform_name="$ac_optarg" ;;
543
544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
545 | -silent | --silent | --silen | --sile | --sil)
546 silent=yes ;;
547
548 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549 ac_prev=sbindir ;;
550 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551 | --sbi=* | --sb=*)
552 sbindir="$ac_optarg" ;;
553
554 -sharedstatedir | --sharedstatedir | --sharedstatedi \
555 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
556 | --sharedst | --shareds | --shared | --share | --shar \
557 | --sha | --sh)
558 ac_prev=sharedstatedir ;;
559 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
560 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
561 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562 | --sha=* | --sh=*)
563 sharedstatedir="$ac_optarg" ;;
564
565 -site | --site | --sit)
566 ac_prev=site ;;
567 -site=* | --site=* | --sit=*)
568 site="$ac_optarg" ;;
569
570 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571 ac_prev=srcdir ;;
572 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 srcdir="$ac_optarg" ;;
574
575 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
576 | --syscon | --sysco | --sysc | --sys | --sy)
577 ac_prev=sysconfdir ;;
578 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
579 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
580 sysconfdir="$ac_optarg" ;;
581
582 -target | --target | --targe | --targ | --tar | --ta | --t)
583 ac_prev=target ;;
584 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
585 target="$ac_optarg" ;;
586
587 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 verbose=yes ;;
589
590 -version | --version | --versio | --versi | --vers)
591 echo "configure generated by autoconf version 2.12"
592 exit 0 ;;
593
594 -with-* | --with-*)
595 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
596 # Reject names that are not valid shell variable names.
597 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
598 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
599 fi
600 ac_package=`echo $ac_package| sed 's/-/_/g'`
601 case "$ac_option" in
602 *=*) ;;
603 *) ac_optarg=yes ;;
604 esac
605 eval "with_${ac_package}='$ac_optarg'" ;;
606
607 -without-* | --without-*)
608 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
609 # Reject names that are not valid shell variable names.
610 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
611 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
612 fi
613 ac_package=`echo $ac_package| sed 's/-/_/g'`
614 eval "with_${ac_package}=no" ;;
615
616 --x)
617 # Obsolete; use --with-x.
618 with_x=yes ;;
619
620 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
621 | --x-incl | --x-inc | --x-in | --x-i)
622 ac_prev=x_includes ;;
623 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
624 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
625 x_includes="$ac_optarg" ;;
626
627 -x-libraries | --x-libraries | --x-librarie | --x-librari \
628 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
629 ac_prev=x_libraries ;;
630 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
631 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
632 x_libraries="$ac_optarg" ;;
633
634 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
635 ;;
636
637 *)
638 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
639 echo "configure: warning: $ac_option: invalid host type" 1>&2
640 fi
641 if test "x$nonopt" != xNONE; then
642 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
643 fi
644 nonopt="$ac_option"
645 ;;
646
647 esac
648 done
649
650 if test -n "$ac_prev"; then
651 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
652 fi
653
654 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
655
656 # File descriptor usage:
657 # 0 standard input
658 # 1 file creation
659 # 2 errors and warnings
660 # 3 some systems may open it to /dev/tty
661 # 4 used on the Kubota Titan
662 # 6 checking for... messages and results
663 # 5 compiler messages saved in config.log
664 if test "$silent" = yes; then
665 exec 6>/dev/null
666 else
667 exec 6>&1
668 fi
669 exec 5>./config.log
670
671 echo "\
672 This file contains any messages produced by compilers while
673 running configure, to aid debugging if configure makes a mistake.
674 " 1>&5
675
676 # Strip out --no-create and --no-recursion so they do not pile up.
677 # Also quote any args containing shell metacharacters.
678 ac_configure_args=
679 for ac_arg
680 do
681 case "$ac_arg" in
682 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
683 | --no-cr | --no-c) ;;
684 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
685 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
686 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
687 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
688 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
689 esac
690 done
691
692 # NLS nuisances.
693 # Only set these to C if already set. These must not be set unconditionally
694 # because not all systems understand e.g. LANG=C (notably SCO).
695 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
696 # Non-C LC_CTYPE values break the ctype check.
697 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
698 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
699 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
700 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
701
702 # confdefs.h avoids OS command line length limits that DEFS can exceed.
703 rm -rf conftest* confdefs.h
704 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
705 echo > confdefs.h
706
707 # A filename unique to this package, relative to the directory that
708 # configure is in, which we can look for to find out if srcdir is correct.
709 ac_unique_file=wx-config.in
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_prog=$0
716 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
717 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
718 srcdir=$ac_confdir
719 if test ! -r $srcdir/$ac_unique_file; then
720 srcdir=..
721 fi
722 else
723 ac_srcdir_defaulted=no
724 fi
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
728 else
729 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
730 fi
731 fi
732 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
733
734 # Prefer explicitly selected file to automatically selected ones.
735 if test -z "$CONFIG_SITE"; then
736 if test "x$prefix" != xNONE; then
737 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
738 else
739 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
740 fi
741 fi
742 for ac_site_file in $CONFIG_SITE; do
743 if test -r "$ac_site_file"; then
744 echo "loading site script $ac_site_file"
745 . "$ac_site_file"
746 fi
747 done
748
749 if test -r "$cache_file"; then
750 echo "loading cache $cache_file"
751 . $cache_file
752 else
753 echo "creating cache $cache_file"
754 > $cache_file
755 fi
756
757 ac_ext=c
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp='$CPP $CPPFLAGS'
760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling=$ac_cv_prog_cc_cross
763
764 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
765 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
766 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
767 ac_n= ac_c='
768 ' ac_t=' '
769 else
770 ac_n=-n ac_c= ac_t=
771 fi
772 else
773 ac_n= ac_c='\c' ac_t=
774 fi
775
776
777
778 ac_aux_dir=
779 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
780 if test -f $ac_dir/install-sh; then
781 ac_aux_dir=$ac_dir
782 ac_install_sh="$ac_aux_dir/install-sh -c"
783 break
784 elif test -f $ac_dir/install.sh; then
785 ac_aux_dir=$ac_dir
786 ac_install_sh="$ac_aux_dir/install.sh -c"
787 break
788 fi
789 done
790 if test -z "$ac_aux_dir"; then
791 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
792 fi
793 ac_config_guess=$ac_aux_dir/config.guess
794 ac_config_sub=$ac_aux_dir/config.sub
795 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
796
797
798 # Do some error checking and defaulting for the host and target type.
799 # The inputs are:
800 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
801 #
802 # The rules are:
803 # 1. You are not allowed to specify --host, --target, and nonopt at the
804 # same time.
805 # 2. Host defaults to nonopt.
806 # 3. If nonopt is not specified, then host defaults to the current host,
807 # as determined by config.guess.
808 # 4. Target and build default to nonopt.
809 # 5. If nonopt is not specified, then target and build default to host.
810
811 # The aliases save the names the user supplied, while $host etc.
812 # will get canonicalized.
813 case $host---$target---$nonopt in
814 NONE---*---* | *---NONE---* | *---*---NONE) ;;
815 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
816 esac
817
818
819 # Make sure we can run config.sub.
820 if $ac_config_sub sun4 >/dev/null 2>&1; then :
821 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
822 fi
823
824 echo $ac_n "checking host system type""... $ac_c" 1>&6
825 echo "configure:826: checking host system type" >&5
826
827 host_alias=$host
828 case "$host_alias" in
829 NONE)
830 case $nonopt in
831 NONE)
832 if host_alias=`$ac_config_guess`; then :
833 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
834 fi ;;
835 *) host_alias=$nonopt ;;
836 esac ;;
837 esac
838
839 host=`$ac_config_sub $host_alias`
840 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
841 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
842 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
843 echo "$ac_t""$host" 1>&6
844
845 echo $ac_n "checking target system type""... $ac_c" 1>&6
846 echo "configure:847: checking target system type" >&5
847
848 target_alias=$target
849 case "$target_alias" in
850 NONE)
851 case $nonopt in
852 NONE) target_alias=$host_alias ;;
853 *) target_alias=$nonopt ;;
854 esac ;;
855 esac
856
857 target=`$ac_config_sub $target_alias`
858 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861 echo "$ac_t""$target" 1>&6
862
863 echo $ac_n "checking build system type""... $ac_c" 1>&6
864 echo "configure:865: checking build system type" >&5
865
866 build_alias=$build
867 case "$build_alias" in
868 NONE)
869 case $nonopt in
870 NONE) build_alias=$host_alias ;;
871 *) build_alias=$nonopt ;;
872 esac ;;
873 esac
874
875 build=`$ac_config_sub $build_alias`
876 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879 echo "$ac_t""$build" 1>&6
880
881 test "$host_alias" != "$target_alias" &&
882 test "$program_prefix$program_suffix$program_transform_name" = \
883 NONENONEs,x,x, &&
884 program_prefix=${target_alias}-
885
886
887
888 WX_MAJOR_VERSION_NUMBER=2
889 WX_MINOR_VERSION_NUMBER=1
890 WX_RELEASE_NUMBER=0
891
892 WX_INTERFACE_AGE=0
893 WX_BINARY_AGE=0
894
895 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
896
897 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
898 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
899 WX_REVISION=$WX_INTERFACE_AGE
900 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
901
902
903 USE_UNIX=1
904 USE_LINUX=
905 USE_SGI=
906 USE_HPUX=
907 USE_SYSV=
908 USE_SVR4=
909 USE_AIX=
910 USE_SUN=
911 USE_SOLARIS=
912 USE_SUNOS=
913 USE_ALPHA=
914 USE_OSF=
915 USE_BSD=
916 USE_FREEBSD=
917 USE_VMS=
918 USE_ULTRIX=
919 USE_CYGWIN=
920 USE_MINGW=
921 USE_DATA_GENERAL=
922
923 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
924
925 DEFAULT_wxUSE_GTK=0
926 DEFAULT_wxUSE_MOTIF=0
927 DEFAULT_wxUSE_MSW=0
928 DEFAULT_wxUSE_WINE=0
929
930 DEFAULT_DEFAULT_wxUSE_GTK=0
931 DEFAULT_DEFAULT_wxUSE_MOTIF=0
932 DEFAULT_DEFAULT_wxUSE_MSW=0
933 DEFAULT_DEFAULT_wxUSE_WINE=0
934
935 case "${host}" in
936 *-hp-hpux* )
937 USE_HPUX=1
938 DEFAULT_DEFAULT_wxUSE_MOTIF=1
939 cat >> confdefs.h <<\EOF
940 #define __HPUX__ 1
941 EOF
942
943 ;;
944 *-*-linux* )
945 USE_LINUX=1
946 cat >> confdefs.h <<\EOF
947 #define __LINUX__ 1
948 EOF
949
950 TMP=`uname -m`
951 if test "x$TMP" = "xalpha"; then
952 USE_ALPHA=1
953 cat >> confdefs.h <<\EOF
954 #define __ALPHA__ 1
955 EOF
956
957 fi
958 DEFAULT_DEFAULT_wxUSE_GTK=1
959 ;;
960 *-*-irix5* | *-*-irix6* )
961 USE_SGI=1
962 USE_SVR4=1
963 cat >> confdefs.h <<\EOF
964 #define __SGI__ 1
965 EOF
966
967 cat >> confdefs.h <<\EOF
968 #define __SVR4__ 1
969 EOF
970
971 DEFAULT_DEFAULT_wxUSE_MOTIF=1
972 ;;
973 *-*-solaris2* )
974 USE_SUN=1
975 USE_SOLARIS=1
976 USE_SVR4=1
977 cat >> confdefs.h <<\EOF
978 #define __SUN__ 1
979 EOF
980
981 cat >> confdefs.h <<\EOF
982 #define __SOLARIS__ 1
983 EOF
984
985 cat >> confdefs.h <<\EOF
986 #define __SVR4__ 1
987 EOF
988
989 DEFAULT_DEFAULT_wxUSE_MOTIF=1
990 ;;
991 *-*-sunos4* )
992 USE_SUN=1
993 USE_SUNOS=1
994 USE_BSD=1
995 cat >> confdefs.h <<\EOF
996 #define __SUN__ 1
997 EOF
998
999 cat >> confdefs.h <<\EOF
1000 #define __SUNOS__ 1
1001 EOF
1002
1003 cat >> confdefs.h <<\EOF
1004 #define __BSD__ 1
1005 EOF
1006
1007 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1008 ;;
1009 *-*-freebsd* | *-*-netbsd*)
1010 USE_BSD=1
1011 USE_FREEBSD=1
1012 cat >> confdefs.h <<\EOF
1013 #define __FREEBSD__ 1
1014 EOF
1015
1016 cat >> confdefs.h <<\EOF
1017 #define __BSD__ 1
1018 EOF
1019
1020 DEFAULT_DEFAULT_wxUSE_GTK=1
1021 ;;
1022 *-*-osf* )
1023 USE_ALPHA=1
1024 USE_OSF=1
1025 cat >> confdefs.h <<\EOF
1026 #define __ALPHA__ 1
1027 EOF
1028
1029 cat >> confdefs.h <<\EOF
1030 #define __OSF__ 1
1031 EOF
1032
1033 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1034 ;;
1035 *-*-dgux5* )
1036 USE_ALPHA=1
1037 USE_SVR4=1
1038 cat >> confdefs.h <<\EOF
1039 #define __ALPHA__ 1
1040 EOF
1041
1042 cat >> confdefs.h <<\EOF
1043 #define __SVR4__ 1
1044 EOF
1045
1046 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1047 ;;
1048 *-*-sysv5* )
1049 USE_SYSV=1
1050 USE_SVR4=1
1051 cat >> confdefs.h <<\EOF
1052 #define __SYSV__ 1
1053 EOF
1054
1055 cat >> confdefs.h <<\EOF
1056 #define __SVR4__ 1
1057 EOF
1058
1059 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1060 ;;
1061 *-*-aix* )
1062 USE_AIX=1
1063 USE_SYSV=1
1064 USE_SVR4=1
1065 cat >> confdefs.h <<\EOF
1066 #define __AIX__ 1
1067 EOF
1068
1069 cat >> confdefs.h <<\EOF
1070 #define __SYSV__ 1
1071 EOF
1072
1073 cat >> confdefs.h <<\EOF
1074 #define __SVR4__ 1
1075 EOF
1076
1077 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1078 ;;
1079
1080 *-*-cygwin32* )
1081 USE_UNIX=0
1082 cat >> confdefs.h <<\EOF
1083 #define __WIN32__ 1
1084 EOF
1085
1086 cat >> confdefs.h <<\EOF
1087 #define __WIN95__ 1
1088 EOF
1089
1090 cat >> confdefs.h <<\EOF
1091 #define __WINDOWS__ 1
1092 EOF
1093
1094 cat >> confdefs.h <<\EOF
1095 #define __GNUWIN32__ 1
1096 EOF
1097
1098 cat >> confdefs.h <<\EOF
1099 #define STRICT 1
1100 EOF
1101
1102 cat >> confdefs.h <<\EOF
1103 #define WINVER 0x0400
1104 EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MSW=1
1107 ;;
1108 *-*-mingw32* )
1109 USE_UNIX=0
1110 cat >> confdefs.h <<\EOF
1111 #define __WIN32__ 1
1112 EOF
1113
1114 cat >> confdefs.h <<\EOF
1115 #define __WIN95__ 1
1116 EOF
1117
1118 cat >> confdefs.h <<\EOF
1119 #define __WINDOWS__ 1
1120 EOF
1121
1122 cat >> confdefs.h <<\EOF
1123 #define __GNUWIN32__ 1
1124 EOF
1125
1126 cat >> confdefs.h <<\EOF
1127 #define STRICT 1
1128 EOF
1129
1130 cat >> confdefs.h <<\EOF
1131 #define WINVER 0x0400
1132 EOF
1133
1134 DEFAULT_DEFAULT_wxUSE_MSW=1
1135 ;;
1136
1137 *-pc-os2_emx )
1138 cat >> confdefs.h <<\EOF
1139 #define __EMX__ 1
1140 EOF
1141
1142 ;;
1143
1144 *)
1145 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1146 esac
1147
1148 if test "$USE_UNIX" = 1 ; then
1149 wxUSE_UNIX=yes
1150 cat >> confdefs.h <<\EOF
1151 #define __UNIX__ 1
1152 EOF
1153
1154 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1155 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1156 fi
1157
1158 if test "$USE_LINUX" = 1; then
1159 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1160 echo "configure:1161: checking for gettext in -lc" >&5
1161 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1164 else
1165 ac_save_LIBS="$LIBS"
1166 LIBS="-lc $LIBS"
1167 cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 /* Override any gcc2 internal prototype to avoid an error. */
1171 /* We use char because int might match the return type of a gcc2
1172 builtin and then its argument prototype would still apply. */
1173 char gettext();
1174
1175 int main() {
1176 gettext()
1177 ; return 0; }
1178 EOF
1179 if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1180 rm -rf conftest*
1181 eval "ac_cv_lib_$ac_lib_var=yes"
1182 else
1183 echo "configure: failed program was:" >&5
1184 cat conftest.$ac_ext >&5
1185 rm -rf conftest*
1186 eval "ac_cv_lib_$ac_lib_var=no"
1187 fi
1188 rm -f conftest*
1189 LIBS="$ac_save_LIBS"
1190
1191 fi
1192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1193 echo "$ac_t""yes" 1>&6
1194 cat >> confdefs.h <<\EOF
1195 #define wxHAVE_GLIBC2 1
1196 EOF
1197
1198 else
1199 echo "$ac_t""no" 1>&6
1200 fi
1201
1202 fi
1203
1204
1205
1206
1207 wx_arg_cache_file="configarg.cache"
1208 echo "loading argument cache $wx_arg_cache_file"
1209 rm -f ${wx_arg_cache_file}.tmp
1210 touch ${wx_arg_cache_file}.tmp
1211 touch ${wx_arg_cache_file}
1212
1213
1214 DEBUG_CONFIGURE=0
1215 if test $DEBUG_CONFIGURE = 1; then
1216 DEFAULT_wxUSE_THREADS=yes
1217
1218 DEFAULT_wxUSE_SHARED=yes
1219 DEFAULT_wxUSE_OPTIMISE=yes
1220 DEFAULT_wxUSE_PROFILE=no
1221 DEFAULT_wxUSE_NO_DEPS=no
1222 DEFAULT_wxUSE_NO_RTTI=no
1223 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1224 DEFAULT_wxUSE_PERMISSIVE=no
1225 DEFAULT_wxUSE_DEBUG_FLAG=yes
1226 DEFAULT_wxUSE_DEBUG_INFO=yes
1227 DEFAULT_wxUSE_DEBUG_GDB=yes
1228 DEFAULT_wxUSE_MEM_TRACING=no
1229 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1230 DEFAULT_wxUSE_DMALLOC=no
1231 DEFAULT_wxUSE_APPLE_IEEE=no
1232
1233 DEFAULT_wxUSE_LOG=yes
1234
1235 DEFAULT_wxUSE_GUI=yes
1236
1237 DEFAULT_wxUSE_ZLIB=no
1238 DEFAULT_wxUSE_LIBPNG=no
1239 DEFAULT_wxUSE_LIBJPEG=no
1240 DEFAULT_wxUSE_ODBC=no
1241
1242 DEFAULT_wxUSE_STD_IOSTREAM=no
1243 DEFAULT_wxUSE_FILE=no
1244 DEFAULT_wxUSE_TEXTFILE=no
1245 DEFAULT_wxUSE_TIMEDATE=no
1246 DEFAULT_wxUSE_WAVE=no
1247 DEFAULT_wxUSE_INTL=no
1248 DEFAULT_wxUSE_CONFIG=no
1249 DEFAULT_wxUSE_STREAMS=no
1250 DEFAULT_wxUSE_SOCKETS=no
1251 DEFAULT_wxUSE_DIALUP_MANAGER=no
1252 DEFAULT_wxUSE_SERIAL=no
1253 DEFAULT_wxUSE_JOYSTICK=no
1254 DEFAULT_wxUSE_DYNLIB_CLASS=no
1255 DEFAULT_wxUSE_LONGLONG=no
1256
1257 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1258 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1259 DEFAULT_wxUSE_POSTSCRIPT=no
1260
1261 DEFAULT_wxUSE_X_RESOURCES=no
1262 DEFAULT_wxUSE_CLIPBOARD=no
1263 DEFAULT_wxUSE_TOOLTIPS=no
1264 DEFAULT_wxUSE_DRAG_AND_DROP=no
1265 DEFAULT_wxUSE_SPLINES=no
1266
1267 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1268 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1269 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1270
1271 DEFAULT_wxUSE_PROLOGIO=no
1272 DEFAULT_wxUSE_RESOURCES=no
1273 DEFAULT_wxUSE_CONSTRAINTS=no
1274 DEFAULT_wxUSE_IPC=no
1275 DEFAULT_wxUSE_HELP=no
1276 DEFAULT_wxUSE_WXTREE=no
1277 DEFAULT_wxUSE_METAFILE=no
1278
1279 DEFAULT_wxUSE_COMMONDLGS=no
1280 DEFAULT_wxUSE_DIRDLG=no
1281 DEFAULT_wxUSE_TEXTDLG=no
1282 DEFAULT_wxUSE_STARTUP_TIPS=no
1283 DEFAULT_wxUSE_PROGRESSDLG=no
1284 DEFAULT_wxUSE_MINIFRAME=no
1285 DEFAULT_wxUSE_HTML=no
1286 DEFAULT_wxUSE_FS_INET=no
1287 DEFAULT_wxUSE_FS_ZIP=no
1288 DEFAULT_wxUSE_BUSYINFO=no
1289 DEFAULT_wxUSE_ZIPSTREAM=no
1290 DEFAULT_wxUSE_VALIDATORS=yes
1291
1292 DEFAULT_wxUSE_ACCEL=no
1293 DEFAULT_wxUSE_CARET=no
1294 DEFAULT_wxUSE_BMPBUTTON=no
1295 DEFAULT_wxUSE_CHECKBOX=no
1296 DEFAULT_wxUSE_CHECKLST=no
1297 DEFAULT_wxUSE_CHOICE=yes
1298 DEFAULT_wxUSE_COMBOBOX=no
1299 DEFAULT_wxUSE_GAUGE=no
1300 DEFAULT_wxUSE_GRID=no
1301 DEFAULT_wxUSE_NEW_GRID=no
1302 DEFAULT_wxUSE_IMAGLIST=no
1303 DEFAULT_wxUSE_LISTBOX=no
1304 DEFAULT_wxUSE_LISTCTRL=no
1305 DEFAULT_wxUSE_NOTEBOOK=no
1306 DEFAULT_wxUSE_RADIOBOX=no
1307 DEFAULT_wxUSE_RADIOBTN=no
1308 DEFAULT_wxUSE_SASH=no
1309 DEFAULT_wxUSE_SCROLLBAR=no
1310 DEFAULT_wxUSE_SLIDER=no
1311 DEFAULT_wxUSE_SPINBTN=no
1312 DEFAULT_wxUSE_SPLITTER=no
1313 DEFAULT_wxUSE_STATBMP=no
1314 DEFAULT_wxUSE_STATBOX=no
1315 DEFAULT_wxUSE_STATLINE=no
1316 DEFAULT_wxUSE_STATUSBAR=yes
1317 DEFAULT_wxUSE_TABDIALOG=no
1318 DEFAULT_wxUSE_TOOLBAR=no
1319 DEFAULT_wxUSE_TREECTRL=no
1320
1321 DEFAULT_wxUSE_UNICODE=no
1322 DEFAULT_wxUSE_WCSRTOMBS=no
1323
1324 DEFAULT_wxUSE_GIF=no
1325 DEFAULT_wxUSE_PCX=no
1326 DEFAULT_wxUSE_PNM=no
1327 else
1328 DEFAULT_wxUSE_THREADS=yes
1329
1330 DEFAULT_wxUSE_SHARED=yes
1331 DEFAULT_wxUSE_OPTIMISE=yes
1332 DEFAULT_wxUSE_PROFILE=no
1333 DEFAULT_wxUSE_NO_DEPS=no
1334 DEFAULT_wxUSE_NO_RTTI=no
1335 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1336 DEFAULT_wxUSE_PERMISSIVE=no
1337 DEFAULT_wxUSE_DEBUG_FLAG=no
1338 DEFAULT_wxUSE_DEBUG_INFO=no
1339 DEFAULT_wxUSE_DEBUG_GDB=no
1340 DEFAULT_wxUSE_MEM_TRACING=no
1341 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1342 DEFAULT_wxUSE_DMALLOC=no
1343 DEFAULT_wxUSE_APPLE_IEEE=yes
1344
1345 DEFAULT_wxUSE_LOG=yes
1346
1347 DEFAULT_wxUSE_GUI=yes
1348
1349 DEFAULT_wxUSE_ZLIB=yes
1350 DEFAULT_wxUSE_LIBPNG=yes
1351 DEFAULT_wxUSE_LIBJPEG=yes
1352 DEFAULT_wxUSE_ODBC=yes
1353
1354 DEFAULT_wxUSE_STD_IOSTREAM=no
1355 DEFAULT_wxUSE_FILE=yes
1356 DEFAULT_wxUSE_TEXTFILE=yes
1357 DEFAULT_wxUSE_TIMEDATE=yes
1358 DEFAULT_wxUSE_WAVE=no
1359 DEFAULT_wxUSE_INTL=yes
1360 DEFAULT_wxUSE_CONFIG=yes
1361 DEFAULT_wxUSE_STREAMS=yes
1362 DEFAULT_wxUSE_SOCKETS=yes
1363 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1364 DEFAULT_wxUSE_SERIAL=yes
1365 DEFAULT_wxUSE_JOYSTICK=yes
1366 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1367 DEFAULT_wxUSE_LONGLONG=no
1368
1369 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1370 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1371 DEFAULT_wxUSE_POSTSCRIPT=yes
1372
1373 DEFAULT_wxUSE_X_RESOURCES=no
1374 DEFAULT_wxUSE_CLIPBOARD=yes
1375 DEFAULT_wxUSE_TOOLTIPS=yes
1376 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1377 DEFAULT_wxUSE_SPLINES=yes
1378
1379 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1380 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1381 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1382
1383 DEFAULT_wxUSE_PROLOGIO=yes
1384 DEFAULT_wxUSE_RESOURCES=yes
1385 DEFAULT_wxUSE_CONSTRAINTS=yes
1386 DEFAULT_wxUSE_IPC=yes
1387 DEFAULT_wxUSE_HELP=yes
1388 DEFAULT_wxUSE_WXTREE=yes
1389 DEFAULT_wxUSE_METAFILE=yes
1390
1391 DEFAULT_wxUSE_COMMONDLGS=yes
1392 DEFAULT_wxUSE_DIRDLG=yes
1393 DEFAULT_wxUSE_TEXTDLG=yes
1394 DEFAULT_wxUSE_STARTUP_TIPS=yes
1395 DEFAULT_wxUSE_PROGRESSDLG=yes
1396 DEFAULT_wxUSE_MINIFRAME=yes
1397 DEFAULT_wxUSE_HTML=yes
1398 DEFAULT_wxUSE_FS_INET=yes
1399 DEFAULT_wxUSE_FS_ZIP=yes
1400 DEFAULT_wxUSE_BUSYINFO=yes
1401 DEFAULT_wxUSE_ZIPSTREAM=yes
1402 DEFAULT_wxUSE_VALIDATORS=yes
1403
1404 DEFAULT_wxUSE_ACCEL=yes
1405 DEFAULT_wxUSE_CARET=yes
1406 DEFAULT_wxUSE_BMPBUTTON=yes
1407 DEFAULT_wxUSE_CHECKBOX=yes
1408 DEFAULT_wxUSE_CHECKLST=yes
1409 DEFAULT_wxUSE_CHOICE=yes
1410 DEFAULT_wxUSE_COMBOBOX=yes
1411 DEFAULT_wxUSE_GAUGE=yes
1412 DEFAULT_wxUSE_GRID=yes
1413 DEFAULT_wxUSE_NEW_GRID=yes
1414 DEFAULT_wxUSE_IMAGLIST=yes
1415 DEFAULT_wxUSE_LISTBOX=yes
1416 DEFAULT_wxUSE_LISTCTRL=yes
1417 DEFAULT_wxUSE_NOTEBOOK=yes
1418 DEFAULT_wxUSE_RADIOBOX=yes
1419 DEFAULT_wxUSE_RADIOBTN=yes
1420 DEFAULT_wxUSE_SASH=yes
1421 DEFAULT_wxUSE_SCROLLBAR=yes
1422 DEFAULT_wxUSE_SLIDER=yes
1423 DEFAULT_wxUSE_SPINBTN=yes
1424 DEFAULT_wxUSE_SPLITTER=yes
1425 DEFAULT_wxUSE_STATBMP=yes
1426 DEFAULT_wxUSE_STATBOX=yes
1427 DEFAULT_wxUSE_STATLINE=yes
1428 DEFAULT_wxUSE_STATUSBAR=yes
1429 DEFAULT_wxUSE_TABDIALOG=no
1430 DEFAULT_wxUSE_TOOLBAR=yes
1431 DEFAULT_wxUSE_TREECTRL=yes
1432
1433 DEFAULT_wxUSE_UNICODE=no
1434 DEFAULT_wxUSE_WCSRTOMBS=no
1435
1436 DEFAULT_wxUSE_GIF=yes
1437 DEFAULT_wxUSE_PCX=yes
1438 DEFAULT_wxUSE_PNM=yes
1439 fi
1440
1441
1442
1443 for toolkit in `echo $ALL_TOOLKITS`; do
1444 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1445 if test "x$LINE" != x ; then
1446 has_toolkit_in_cache=1
1447 eval "DEFAULT_$LINE"
1448 eval "CACHE_$toolkit=1"
1449 fi
1450 done
1451
1452
1453
1454 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1455 echo "configure:1456: checking "for --enable-gui"" >&5
1456 no_cache=0
1457 # Check whether --enable-gui or --disable-gui was given.
1458 if test "${enable_gui+set}" = set; then
1459 enableval="$enable_gui"
1460
1461 if test "$enableval" = yes; then
1462 ac_cv_use_gui='wxUSE_GUI=yes'
1463 else
1464 ac_cv_use_gui='wxUSE_GUI=no'
1465 fi
1466
1467 else
1468
1469 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1470 if test "x$LINE" != x ; then
1471 eval "DEFAULT_$LINE"
1472 else
1473 no_cache=1
1474 fi
1475
1476 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1477
1478 fi
1479
1480
1481 eval "$ac_cv_use_gui"
1482 if test "$no_cache" != 1; then
1483 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1484 fi
1485
1486 if test "$wxUSE_GUI" = yes; then
1487 echo "$ac_t""yes" 1>&6
1488 else
1489 echo "$ac_t""no" 1>&6
1490 fi
1491
1492
1493 if test "$wxUSE_GUI" = "no"; then
1494 DEFAULT_wxUSE_ZLIB=no
1495 DEFAULT_wxUSE_LIBPNG=no
1496 DEFAULT_wxUSE_LIBJPEG=no
1497 DEFAULT_wxUSE_SOCKETS=no
1498 DEFAULT_wxUSE_JOYSTICK=no
1499 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1500 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1501 DEFAULT_wxUSE_POSTSCRIPT=no
1502 DEFAULT_wxUSE_X_RESOURCES=no
1503 DEFAULT_wxUSE_CLIPBOARD=no
1504 DEFAULT_wxUSE_TOOLTIPS=no
1505 DEFAULT_wxUSE_DRAG_AND_DROP=no
1506 DEFAULT_wxUSE_SPLINES=no
1507 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1508 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1509 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1510 DEFAULT_wxUSE_PROLOGIO=no
1511 DEFAULT_wxUSE_RESOURCES=no
1512 DEFAULT_wxUSE_CONSTRAINTS=no
1513 DEFAULT_wxUSE_IPC=no
1514 DEFAULT_wxUSE_HELP=no
1515 DEFAULT_wxUSE_WXTREE=no
1516 DEFAULT_wxUSE_METAFILE=no
1517 DEFAULT_wxUSE_COMMONDLGS=no
1518 DEFAULT_wxUSE_DIRDLG=no
1519 DEFAULT_wxUSE_TEXTDLG=no
1520 DEFAULT_wxUSE_STARTUP_TIPS=no
1521 DEFAULT_wxUSE_PROGRESSDLG=no
1522 DEFAULT_wxUSE_MINIFRAME=no
1523 DEFAULT_wxUSE_HTML=no
1524 DEFAULT_wxUSE_FS_INET=no
1525 DEFAULT_wxUSE_FS_ZIP=no
1526 DEFAULT_wxUSE_BUSYINFO=no
1527 DEFAULT_wxUSE_ZIPSTREAM=no
1528 DEFAULT_wxUSE_VALIDATORS=yes
1529 DEFAULT_wxUSE_ACCEL=no
1530 DEFAULT_wxUSE_CARET=no
1531 DEFAULT_wxUSE_BMPBUTTON=no
1532 DEFAULT_wxUSE_CHECKBOX=no
1533 DEFAULT_wxUSE_CHECKLST=no
1534 DEFAULT_wxUSE_CHOICE=yes
1535 DEFAULT_wxUSE_COMBOBOX=no
1536 DEFAULT_wxUSE_GAUGE=no
1537 DEFAULT_wxUSE_GRID=no
1538 DEFAULT_wxUSE_NEW_GRID=no
1539 DEFAULT_wxUSE_IMAGLIST=no
1540 DEFAULT_wxUSE_LISTBOX=no
1541 DEFAULT_wxUSE_LISTCTRL=no
1542 DEFAULT_wxUSE_NOTEBOOK=no
1543 DEFAULT_wxUSE_RADIOBOX=no
1544 DEFAULT_wxUSE_RADIOBTN=no
1545 DEFAULT_wxUSE_SASH=no
1546 DEFAULT_wxUSE_SCROLLBAR=no
1547 DEFAULT_wxUSE_SLIDER=no
1548 DEFAULT_wxUSE_SPINBTN=no
1549 DEFAULT_wxUSE_SPLITTER=no
1550 DEFAULT_wxUSE_STATBMP=no
1551 DEFAULT_wxUSE_STATBOX=no
1552 DEFAULT_wxUSE_STATLINE=no
1553 DEFAULT_wxUSE_STATUSBAR=yes
1554 DEFAULT_wxUSE_TABDIALOG=no
1555 DEFAULT_wxUSE_TOOLBAR=no
1556 DEFAULT_wxUSE_TREECTRL=no
1557 DEFAULT_wxUSE_GIF=no
1558 DEFAULT_wxUSE_PCX=no
1559 DEFAULT_wxUSE_PNM=no
1560 fi
1561
1562 # Check whether --with-gtk or --without-gtk was given.
1563 if test "${with_gtk+set}" = set; then
1564 withval="$with_gtk"
1565 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1566 fi
1567
1568 # Check whether --with-motif or --without-motif was given.
1569 if test "${with_motif+set}" = set; then
1570 withval="$with_motif"
1571 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1572 fi
1573
1574 # Check whether --with-wine or --without-wine was given.
1575 if test "${with_wine+set}" = set; then
1576 withval="$with_wine"
1577 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1578 fi
1579
1580 # Check whether --with-cygwin or --without-cygwin was given.
1581 if test "${with_cygwin+set}" = set; then
1582 withval="$with_cygwin"
1583 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1584 fi
1585
1586 # Check whether --with-mingw or --without-mingw was given.
1587 if test "${with_mingw+set}" = set; then
1588 withval="$with_mingw"
1589 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1590 fi
1591
1592
1593 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1594 if test "${with_gtk_prefix+set}" = set; then
1595 withval="$with_gtk_prefix"
1596 gtk_config_prefix="$withval"
1597 else
1598 gtk_config_prefix=""
1599 fi
1600
1601 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1602 if test "${with_gtk_exec_prefix+set}" = set; then
1603 withval="$with_gtk_exec_prefix"
1604 gtk_config_exec_prefix="$withval"
1605 else
1606 gtk_config_exec_prefix=""
1607 fi
1608
1609
1610
1611 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1612 echo "configure:1613: checking "for --with-dmalloc"" >&5
1613 no_cache=0
1614 # Check whether --with-dmalloc or --without-dmalloc was given.
1615 if test "${with_dmalloc+set}" = set; then
1616 withval="$with_dmalloc"
1617
1618 if test "$withval" = yes; then
1619 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1620 else
1621 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1622 fi
1623
1624 else
1625
1626 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1627 if test "x$LINE" != x ; then
1628 eval "DEFAULT_$LINE"
1629 else
1630 no_cache=1
1631 fi
1632
1633 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1634
1635 fi
1636
1637
1638 eval "$ac_cv_use_dmalloc"
1639 if test "$no_cache" != 1; then
1640 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1641 fi
1642
1643 if test "$wxUSE_DMALLOC" = yes; then
1644 echo "$ac_t""yes" 1>&6
1645 else
1646 echo "$ac_t""no" 1>&6
1647 fi
1648
1649
1650 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1651 echo "configure:1652: checking "for --with-zlib"" >&5
1652 no_cache=0
1653 # Check whether --with-zlib or --without-zlib was given.
1654 if test "${with_zlib+set}" = set; then
1655 withval="$with_zlib"
1656
1657 if test "$withval" = yes; then
1658 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1659 else
1660 ac_cv_use_zlib='wxUSE_ZLIB=no'
1661 fi
1662
1663 else
1664
1665 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1666 if test "x$LINE" != x ; then
1667 eval "DEFAULT_$LINE"
1668 else
1669 no_cache=1
1670 fi
1671
1672 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1673
1674 fi
1675
1676
1677 eval "$ac_cv_use_zlib"
1678 if test "$no_cache" != 1; then
1679 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1680 fi
1681
1682 if test "$wxUSE_ZLIB" = yes; then
1683 echo "$ac_t""yes" 1>&6
1684 else
1685 echo "$ac_t""no" 1>&6
1686 fi
1687
1688
1689 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1690 echo "configure:1691: checking "for --with-libpng"" >&5
1691 no_cache=0
1692 # Check whether --with-libpng or --without-libpng was given.
1693 if test "${with_libpng+set}" = set; then
1694 withval="$with_libpng"
1695
1696 if test "$withval" = yes; then
1697 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1698 else
1699 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1700 fi
1701
1702 else
1703
1704 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1705 if test "x$LINE" != x ; then
1706 eval "DEFAULT_$LINE"
1707 else
1708 no_cache=1
1709 fi
1710
1711 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1712
1713 fi
1714
1715
1716 eval "$ac_cv_use_libpng"
1717 if test "$no_cache" != 1; then
1718 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1719 fi
1720
1721 if test "$wxUSE_LIBPNG" = yes; then
1722 echo "$ac_t""yes" 1>&6
1723 else
1724 echo "$ac_t""no" 1>&6
1725 fi
1726
1727
1728 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1729 echo "configure:1730: checking "for --with-libjpeg"" >&5
1730 no_cache=0
1731 # Check whether --with-libjpeg or --without-libjpeg was given.
1732 if test "${with_libjpeg+set}" = set; then
1733 withval="$with_libjpeg"
1734
1735 if test "$withval" = yes; then
1736 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1737 else
1738 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1739 fi
1740
1741 else
1742
1743 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1744 if test "x$LINE" != x ; then
1745 eval "DEFAULT_$LINE"
1746 else
1747 no_cache=1
1748 fi
1749
1750 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1751
1752 fi
1753
1754
1755 eval "$ac_cv_use_libjpeg"
1756 if test "$no_cache" != 1; then
1757 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1758 fi
1759
1760 if test "$wxUSE_LIBJPEG" = yes; then
1761 echo "$ac_t""yes" 1>&6
1762 else
1763 echo "$ac_t""no" 1>&6
1764 fi
1765
1766
1767 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1768 echo "configure:1769: checking "for --with-opengl"" >&5
1769 no_cache=0
1770 # Check whether --with-opengl or --without-opengl was given.
1771 if test "${with_opengl+set}" = set; then
1772 withval="$with_opengl"
1773
1774 if test "$withval" = yes; then
1775 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1776 else
1777 ac_cv_use_opengl='wxUSE_OPENGL=no'
1778 fi
1779
1780 else
1781
1782 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1783 if test "x$LINE" != x ; then
1784 eval "DEFAULT_$LINE"
1785 else
1786 no_cache=1
1787 fi
1788
1789 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1790
1791 fi
1792
1793
1794 eval "$ac_cv_use_opengl"
1795 if test "$no_cache" != 1; then
1796 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1797 fi
1798
1799 if test "$wxUSE_OPENGL" = yes; then
1800 echo "$ac_t""yes" 1>&6
1801 else
1802 echo "$ac_t""no" 1>&6
1803 fi
1804
1805
1806 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1807 echo "configure:1808: checking "for --with-odbc"" >&5
1808 no_cache=0
1809 # Check whether --with-odbc or --without-odbc was given.
1810 if test "${with_odbc+set}" = set; then
1811 withval="$with_odbc"
1812
1813 if test "$withval" = yes; then
1814 ac_cv_use_odbc='wxUSE_ODBC=yes'
1815 else
1816 ac_cv_use_odbc='wxUSE_ODBC=no'
1817 fi
1818
1819 else
1820
1821 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1822 if test "x$LINE" != x ; then
1823 eval "DEFAULT_$LINE"
1824 else
1825 no_cache=1
1826 fi
1827
1828 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1829
1830 fi
1831
1832
1833 eval "$ac_cv_use_odbc"
1834 if test "$no_cache" != 1; then
1835 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1836 fi
1837
1838 if test "$wxUSE_ODBC" = yes; then
1839 echo "$ac_t""yes" 1>&6
1840 else
1841 echo "$ac_t""no" 1>&6
1842 fi
1843
1844
1845
1846
1847
1848 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1849 echo "configure:1850: checking "for --enable-shared"" >&5
1850 no_cache=0
1851 # Check whether --enable-shared or --disable-shared was given.
1852 if test "${enable_shared+set}" = set; then
1853 enableval="$enable_shared"
1854
1855 if test "$enableval" = yes; then
1856 ac_cv_use_shared='wxUSE_SHARED=yes'
1857 else
1858 ac_cv_use_shared='wxUSE_SHARED=no'
1859 fi
1860
1861 else
1862
1863 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1864 if test "x$LINE" != x ; then
1865 eval "DEFAULT_$LINE"
1866 else
1867 no_cache=1
1868 fi
1869
1870 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1871
1872 fi
1873
1874
1875 eval "$ac_cv_use_shared"
1876 if test "$no_cache" != 1; then
1877 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1878 fi
1879
1880 if test "$wxUSE_SHARED" = yes; then
1881 echo "$ac_t""yes" 1>&6
1882 else
1883 echo "$ac_t""no" 1>&6
1884 fi
1885
1886
1887 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1888 echo "configure:1889: checking "for --enable-optimise"" >&5
1889 no_cache=0
1890 # Check whether --enable-optimise or --disable-optimise was given.
1891 if test "${enable_optimise+set}" = set; then
1892 enableval="$enable_optimise"
1893
1894 if test "$enableval" = yes; then
1895 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1896 else
1897 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1898 fi
1899
1900 else
1901
1902 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1903 if test "x$LINE" != x ; then
1904 eval "DEFAULT_$LINE"
1905 else
1906 no_cache=1
1907 fi
1908
1909 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1910
1911 fi
1912
1913
1914 eval "$ac_cv_use_optimise"
1915 if test "$no_cache" != 1; then
1916 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1917 fi
1918
1919 if test "$wxUSE_OPTIMISE" = yes; then
1920 echo "$ac_t""yes" 1>&6
1921 else
1922 echo "$ac_t""no" 1>&6
1923 fi
1924
1925
1926 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1927 echo "configure:1928: checking "for --enable-debug"" >&5
1928 no_cache=0
1929 # Check whether --enable-debug or --disable-debug was given.
1930 if test "${enable_debug+set}" = set; then
1931 enableval="$enable_debug"
1932
1933 if test "$enableval" = yes; then
1934 ac_cv_use_debug='wxUSE_DEBUG=yes'
1935 else
1936 ac_cv_use_debug='wxUSE_DEBUG=no'
1937 fi
1938
1939 else
1940
1941 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1942 if test "x$LINE" != x ; then
1943 eval "DEFAULT_$LINE"
1944 else
1945 no_cache=1
1946 fi
1947
1948 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1949
1950 fi
1951
1952
1953 eval "$ac_cv_use_debug"
1954 if test "$no_cache" != 1; then
1955 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1956 fi
1957
1958 if test "$wxUSE_DEBUG" = yes; then
1959 echo "$ac_t""yes" 1>&6
1960 else
1961 echo "$ac_t""no" 1>&6
1962 fi
1963
1964
1965 if test "$wxUSE_DEBUG" = "yes"; then
1966 DEFAULT_wxUSE_DEBUG_FLAG=yes
1967 DEFAULT_wxUSE_DEBUG_INFO=yes
1968 elif test "$wxUSE_DEBUG" = "no"; then
1969 DEFAULT_wxUSE_DEBUG_FLAG=no
1970 DEFAULT_wxUSE_DEBUG_INFO=no
1971 fi
1972
1973
1974 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
1975 echo "configure:1976: checking "for --enable-debug_flag"" >&5
1976 no_cache=0
1977 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1978 if test "${enable_debug_flag+set}" = set; then
1979 enableval="$enable_debug_flag"
1980
1981 if test "$enableval" = yes; then
1982 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1983 else
1984 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1985 fi
1986
1987 else
1988
1989 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1990 if test "x$LINE" != x ; then
1991 eval "DEFAULT_$LINE"
1992 else
1993 no_cache=1
1994 fi
1995
1996 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1997
1998 fi
1999
2000
2001 eval "$ac_cv_use_debug_flag"
2002 if test "$no_cache" != 1; then
2003 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2004 fi
2005
2006 if test "$wxUSE_DEBUG_FLAG" = yes; then
2007 echo "$ac_t""yes" 1>&6
2008 else
2009 echo "$ac_t""no" 1>&6
2010 fi
2011
2012
2013 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2014 echo "configure:2015: checking "for --enable-debug_info"" >&5
2015 no_cache=0
2016 # Check whether --enable-debug_info or --disable-debug_info was given.
2017 if test "${enable_debug_info+set}" = set; then
2018 enableval="$enable_debug_info"
2019
2020 if test "$enableval" = yes; then
2021 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2022 else
2023 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2024 fi
2025
2026 else
2027
2028 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2029 if test "x$LINE" != x ; then
2030 eval "DEFAULT_$LINE"
2031 else
2032 no_cache=1
2033 fi
2034
2035 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2036
2037 fi
2038
2039
2040 eval "$ac_cv_use_debug_info"
2041 if test "$no_cache" != 1; then
2042 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2043 fi
2044
2045 if test "$wxUSE_DEBUG_INFO" = yes; then
2046 echo "$ac_t""yes" 1>&6
2047 else
2048 echo "$ac_t""no" 1>&6
2049 fi
2050
2051
2052 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2053 echo "configure:2054: checking "for --enable-debug_gdb"" >&5
2054 no_cache=0
2055 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2056 if test "${enable_debug_gdb+set}" = set; then
2057 enableval="$enable_debug_gdb"
2058
2059 if test "$enableval" = yes; then
2060 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2061 else
2062 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2063 fi
2064
2065 else
2066
2067 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2068 if test "x$LINE" != x ; then
2069 eval "DEFAULT_$LINE"
2070 else
2071 no_cache=1
2072 fi
2073
2074 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2075
2076 fi
2077
2078
2079 eval "$ac_cv_use_debug_gdb"
2080 if test "$no_cache" != 1; then
2081 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2082 fi
2083
2084 if test "$wxUSE_DEBUG_GDB" = yes; then
2085 echo "$ac_t""yes" 1>&6
2086 else
2087 echo "$ac_t""no" 1>&6
2088 fi
2089
2090
2091 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2092 echo "configure:2093: checking "for --enable-debug_cntxt"" >&5
2093 no_cache=0
2094 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2095 if test "${enable_debug_cntxt+set}" = set; then
2096 enableval="$enable_debug_cntxt"
2097
2098 if test "$enableval" = yes; then
2099 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2100 else
2101 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2102 fi
2103
2104 else
2105
2106 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2107 if test "x$LINE" != x ; then
2108 eval "DEFAULT_$LINE"
2109 else
2110 no_cache=1
2111 fi
2112
2113 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2114
2115 fi
2116
2117
2118 eval "$ac_cv_use_debug_cntxt"
2119 if test "$no_cache" != 1; then
2120 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2121 fi
2122
2123 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2124 echo "$ac_t""yes" 1>&6
2125 else
2126 echo "$ac_t""no" 1>&6
2127 fi
2128
2129
2130 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2131 echo "configure:2132: checking "for --enable-mem_tracing"" >&5
2132 no_cache=0
2133 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2134 if test "${enable_mem_tracing+set}" = set; then
2135 enableval="$enable_mem_tracing"
2136
2137 if test "$enableval" = yes; then
2138 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2139 else
2140 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2141 fi
2142
2143 else
2144
2145 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2146 if test "x$LINE" != x ; then
2147 eval "DEFAULT_$LINE"
2148 else
2149 no_cache=1
2150 fi
2151
2152 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2153
2154 fi
2155
2156
2157 eval "$ac_cv_use_mem_tracing"
2158 if test "$no_cache" != 1; then
2159 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2160 fi
2161
2162 if test "$wxUSE_MEM_TRACING" = yes; then
2163 echo "$ac_t""yes" 1>&6
2164 else
2165 echo "$ac_t""no" 1>&6
2166 fi
2167
2168
2169 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2170 echo "configure:2171: checking "for --enable-profile"" >&5
2171 no_cache=0
2172 # Check whether --enable-profile or --disable-profile was given.
2173 if test "${enable_profile+set}" = set; then
2174 enableval="$enable_profile"
2175
2176 if test "$enableval" = yes; then
2177 ac_cv_use_profile='wxUSE_PROFILE=yes'
2178 else
2179 ac_cv_use_profile='wxUSE_PROFILE=no'
2180 fi
2181
2182 else
2183
2184 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2185 if test "x$LINE" != x ; then
2186 eval "DEFAULT_$LINE"
2187 else
2188 no_cache=1
2189 fi
2190
2191 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2192
2193 fi
2194
2195
2196 eval "$ac_cv_use_profile"
2197 if test "$no_cache" != 1; then
2198 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2199 fi
2200
2201 if test "$wxUSE_PROFILE" = yes; then
2202 echo "$ac_t""yes" 1>&6
2203 else
2204 echo "$ac_t""no" 1>&6
2205 fi
2206
2207
2208 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2209 echo "configure:2210: checking "for --enable-no_rtti"" >&5
2210 no_cache=0
2211 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2212 if test "${enable_no_rtti+set}" = set; then
2213 enableval="$enable_no_rtti"
2214
2215 if test "$enableval" = yes; then
2216 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2217 else
2218 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2219 fi
2220
2221 else
2222
2223 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2224 if test "x$LINE" != x ; then
2225 eval "DEFAULT_$LINE"
2226 else
2227 no_cache=1
2228 fi
2229
2230 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2231
2232 fi
2233
2234
2235 eval "$ac_cv_use_no_rtti"
2236 if test "$no_cache" != 1; then
2237 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2238 fi
2239
2240 if test "$wxUSE_NO_RTTI" = yes; then
2241 echo "$ac_t""yes" 1>&6
2242 else
2243 echo "$ac_t""no" 1>&6
2244 fi
2245
2246
2247 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2248 echo "configure:2249: checking "for --enable-no_exceptions"" >&5
2249 no_cache=0
2250 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2251 if test "${enable_no_exceptions+set}" = set; then
2252 enableval="$enable_no_exceptions"
2253
2254 if test "$enableval" = yes; then
2255 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2256 else
2257 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2258 fi
2259
2260 else
2261
2262 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2263 if test "x$LINE" != x ; then
2264 eval "DEFAULT_$LINE"
2265 else
2266 no_cache=1
2267 fi
2268
2269 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2270
2271 fi
2272
2273
2274 eval "$ac_cv_use_no_exceptions"
2275 if test "$no_cache" != 1; then
2276 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2277 fi
2278
2279 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2280 echo "$ac_t""yes" 1>&6
2281 else
2282 echo "$ac_t""no" 1>&6
2283 fi
2284
2285
2286 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2287 echo "configure:2288: checking "for --enable-permissive"" >&5
2288 no_cache=0
2289 # Check whether --enable-permissive or --disable-permissive was given.
2290 if test "${enable_permissive+set}" = set; then
2291 enableval="$enable_permissive"
2292
2293 if test "$enableval" = yes; then
2294 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2295 else
2296 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2297 fi
2298
2299 else
2300
2301 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2302 if test "x$LINE" != x ; then
2303 eval "DEFAULT_$LINE"
2304 else
2305 no_cache=1
2306 fi
2307
2308 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2309
2310 fi
2311
2312
2313 eval "$ac_cv_use_permissive"
2314 if test "$no_cache" != 1; then
2315 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2316 fi
2317
2318 if test "$wxUSE_PERMISSIVE" = yes; then
2319 echo "$ac_t""yes" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2322 fi
2323
2324
2325 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2326 echo "configure:2327: checking "for --enable-no_deps"" >&5
2327 no_cache=0
2328 # Check whether --enable-no_deps or --disable-no_deps was given.
2329 if test "${enable_no_deps+set}" = set; then
2330 enableval="$enable_no_deps"
2331
2332 if test "$enableval" = yes; then
2333 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2334 else
2335 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2336 fi
2337
2338 else
2339
2340 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2341 if test "x$LINE" != x ; then
2342 eval "DEFAULT_$LINE"
2343 else
2344 no_cache=1
2345 fi
2346
2347 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2348
2349 fi
2350
2351
2352 eval "$ac_cv_use_no_deps"
2353 if test "$no_cache" != 1; then
2354 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2355 fi
2356
2357 if test "$wxUSE_NO_DEPS" = yes; then
2358 echo "$ac_t""yes" 1>&6
2359 else
2360 echo "$ac_t""no" 1>&6
2361 fi
2362
2363
2364
2365
2366 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2367 echo "configure:2368: checking "for --enable-intl"" >&5
2368 no_cache=0
2369 # Check whether --enable-intl or --disable-intl was given.
2370 if test "${enable_intl+set}" = set; then
2371 enableval="$enable_intl"
2372
2373 if test "$enableval" = yes; then
2374 ac_cv_use_intl='wxUSE_INTL=yes'
2375 else
2376 ac_cv_use_intl='wxUSE_INTL=no'
2377 fi
2378
2379 else
2380
2381 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2382 if test "x$LINE" != x ; then
2383 eval "DEFAULT_$LINE"
2384 else
2385 no_cache=1
2386 fi
2387
2388 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2389
2390 fi
2391
2392
2393 eval "$ac_cv_use_intl"
2394 if test "$no_cache" != 1; then
2395 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2396 fi
2397
2398 if test "$wxUSE_INTL" = yes; then
2399 echo "$ac_t""yes" 1>&6
2400 else
2401 echo "$ac_t""no" 1>&6
2402 fi
2403
2404
2405 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2406 echo "configure:2407: checking "for --enable-config"" >&5
2407 no_cache=0
2408 # Check whether --enable-config or --disable-config was given.
2409 if test "${enable_config+set}" = set; then
2410 enableval="$enable_config"
2411
2412 if test "$enableval" = yes; then
2413 ac_cv_use_config='wxUSE_CONFIG=yes'
2414 else
2415 ac_cv_use_config='wxUSE_CONFIG=no'
2416 fi
2417
2418 else
2419
2420 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2421 if test "x$LINE" != x ; then
2422 eval "DEFAULT_$LINE"
2423 else
2424 no_cache=1
2425 fi
2426
2427 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2428
2429 fi
2430
2431
2432 eval "$ac_cv_use_config"
2433 if test "$no_cache" != 1; then
2434 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2435 fi
2436
2437 if test "$wxUSE_CONFIG" = yes; then
2438 echo "$ac_t""yes" 1>&6
2439 else
2440 echo "$ac_t""no" 1>&6
2441 fi
2442
2443
2444 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2445 echo "configure:2446: checking "for --enable-sockets"" >&5
2446 no_cache=0
2447 # Check whether --enable-sockets or --disable-sockets was given.
2448 if test "${enable_sockets+set}" = set; then
2449 enableval="$enable_sockets"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2453 else
2454 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2455 fi
2456
2457 else
2458
2459 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2467
2468 fi
2469
2470
2471 eval "$ac_cv_use_sockets"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_SOCKETS" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
2483 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2484 echo "configure:2485: checking "for --enable-dialupman"" >&5
2485 no_cache=0
2486 # Check whether --enable-dialupman or --disable-dialupman was given.
2487 if test "${enable_dialupman+set}" = set; then
2488 enableval="$enable_dialupman"
2489
2490 if test "$enableval" = yes; then
2491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2492 else
2493 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2494 fi
2495
2496 else
2497
2498 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2499 if test "x$LINE" != x ; then
2500 eval "DEFAULT_$LINE"
2501 else
2502 no_cache=1
2503 fi
2504
2505 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2506
2507 fi
2508
2509
2510 eval "$ac_cv_use_dialupman"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2516 echo "$ac_t""yes" 1>&6
2517 else
2518 echo "$ac_t""no" 1>&6
2519 fi
2520
2521
2522 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2523 echo "configure:2524: checking "for --enable-ipc"" >&5
2524 no_cache=0
2525 # Check whether --enable-ipc or --disable-ipc was given.
2526 if test "${enable_ipc+set}" = set; then
2527 enableval="$enable_ipc"
2528
2529 if test "$enableval" = yes; then
2530 ac_cv_use_ipc='wxUSE_IPC=yes'
2531 else
2532 ac_cv_use_ipc='wxUSE_IPC=no'
2533 fi
2534
2535 else
2536
2537 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2538 if test "x$LINE" != x ; then
2539 eval "DEFAULT_$LINE"
2540 else
2541 no_cache=1
2542 fi
2543
2544 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2545
2546 fi
2547
2548
2549 eval "$ac_cv_use_ipc"
2550 if test "$no_cache" != 1; then
2551 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2552 fi
2553
2554 if test "$wxUSE_IPC" = yes; then
2555 echo "$ac_t""yes" 1>&6
2556 else
2557 echo "$ac_t""no" 1>&6
2558 fi
2559
2560
2561 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2562 echo "configure:2563: checking "for --enable-apple_ieee"" >&5
2563 no_cache=0
2564 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2565 if test "${enable_apple_ieee+set}" = set; then
2566 enableval="$enable_apple_ieee"
2567
2568 if test "$enableval" = yes; then
2569 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2570 else
2571 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2572 fi
2573
2574 else
2575
2576 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2577 if test "x$LINE" != x ; then
2578 eval "DEFAULT_$LINE"
2579 else
2580 no_cache=1
2581 fi
2582
2583 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2584
2585 fi
2586
2587
2588 eval "$ac_cv_use_apple_ieee"
2589 if test "$no_cache" != 1; then
2590 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2591 fi
2592
2593 if test "$wxUSE_APPLE_IEEE" = yes; then
2594 echo "$ac_t""yes" 1>&6
2595 else
2596 echo "$ac_t""no" 1>&6
2597 fi
2598
2599
2600 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2601 echo "configure:2602: checking "for --enable-timedate"" >&5
2602 no_cache=0
2603 # Check whether --enable-timedate or --disable-timedate was given.
2604 if test "${enable_timedate+set}" = set; then
2605 enableval="$enable_timedate"
2606
2607 if test "$enableval" = yes; then
2608 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2609 else
2610 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2611 fi
2612
2613 else
2614
2615 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2616 if test "x$LINE" != x ; then
2617 eval "DEFAULT_$LINE"
2618 else
2619 no_cache=1
2620 fi
2621
2622 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2623
2624 fi
2625
2626
2627 eval "$ac_cv_use_timedate"
2628 if test "$no_cache" != 1; then
2629 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2630 fi
2631
2632 if test "$wxUSE_TIMEDATE" = yes; then
2633 echo "$ac_t""yes" 1>&6
2634 else
2635 echo "$ac_t""no" 1>&6
2636 fi
2637
2638
2639 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2640 echo "configure:2641: checking "for --enable-wave"" >&5
2641 no_cache=0
2642 # Check whether --enable-wave or --disable-wave was given.
2643 if test "${enable_wave+set}" = set; then
2644 enableval="$enable_wave"
2645
2646 if test "$enableval" = yes; then
2647 ac_cv_use_wave='wxUSE_WAVE=yes'
2648 else
2649 ac_cv_use_wave='wxUSE_WAVE=no'
2650 fi
2651
2652 else
2653
2654 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2655 if test "x$LINE" != x ; then
2656 eval "DEFAULT_$LINE"
2657 else
2658 no_cache=1
2659 fi
2660
2661 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2662
2663 fi
2664
2665
2666 eval "$ac_cv_use_wave"
2667 if test "$no_cache" != 1; then
2668 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2669 fi
2670
2671 if test "$wxUSE_WAVE" = yes; then
2672 echo "$ac_t""yes" 1>&6
2673 else
2674 echo "$ac_t""no" 1>&6
2675 fi
2676
2677
2678 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2679 echo "configure:2680: checking "for --enable-fraction"" >&5
2680 no_cache=0
2681 # Check whether --enable-fraction or --disable-fraction was given.
2682 if test "${enable_fraction+set}" = set; then
2683 enableval="$enable_fraction"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2687 else
2688 ac_cv_use_fraction='wxUSE_FRACTION=no'
2689 fi
2690
2691 else
2692
2693 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2701
2702 fi
2703
2704
2705 eval "$ac_cv_use_fraction"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_FRACTION" = yes; then
2711 echo "$ac_t""yes" 1>&6
2712 else
2713 echo "$ac_t""no" 1>&6
2714 fi
2715
2716
2717 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2718 echo "configure:2719: checking "for --enable-dynlib"" >&5
2719 no_cache=0
2720 # Check whether --enable-dynlib or --disable-dynlib was given.
2721 if test "${enable_dynlib+set}" = set; then
2722 enableval="$enable_dynlib"
2723
2724 if test "$enableval" = yes; then
2725 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2726 else
2727 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2728 fi
2729
2730 else
2731
2732 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2733 if test "x$LINE" != x ; then
2734 eval "DEFAULT_$LINE"
2735 else
2736 no_cache=1
2737 fi
2738
2739 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2740
2741 fi
2742
2743
2744 eval "$ac_cv_use_dynlib"
2745 if test "$no_cache" != 1; then
2746 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2747 fi
2748
2749 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2750 echo "$ac_t""yes" 1>&6
2751 else
2752 echo "$ac_t""no" 1>&6
2753 fi
2754
2755
2756 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2757 echo "configure:2758: checking "for --enable-longlong"" >&5
2758 no_cache=0
2759 # Check whether --enable-longlong or --disable-longlong was given.
2760 if test "${enable_longlong+set}" = set; then
2761 enableval="$enable_longlong"
2762
2763 if test "$enableval" = yes; then
2764 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2765 else
2766 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2767 fi
2768
2769 else
2770
2771 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2772 if test "x$LINE" != x ; then
2773 eval "DEFAULT_$LINE"
2774 else
2775 no_cache=1
2776 fi
2777
2778 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2779
2780 fi
2781
2782
2783 eval "$ac_cv_use_longlong"
2784 if test "$no_cache" != 1; then
2785 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2786 fi
2787
2788 if test "$wxUSE_LONGLONG" = yes; then
2789 echo "$ac_t""yes" 1>&6
2790 else
2791 echo "$ac_t""no" 1>&6
2792 fi
2793
2794
2795 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2796 echo "configure:2797: checking "for --enable-log"" >&5
2797 no_cache=0
2798 # Check whether --enable-log or --disable-log was given.
2799 if test "${enable_log+set}" = set; then
2800 enableval="$enable_log"
2801
2802 if test "$enableval" = yes; then
2803 ac_cv_use_log='wxUSE_LOG=yes'
2804 else
2805 ac_cv_use_log='wxUSE_LOG=no'
2806 fi
2807
2808 else
2809
2810 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
2817 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2818
2819 fi
2820
2821
2822 eval "$ac_cv_use_log"
2823 if test "$no_cache" != 1; then
2824 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2825 fi
2826
2827 if test "$wxUSE_LOG" = yes; then
2828 echo "$ac_t""yes" 1>&6
2829 else
2830 echo "$ac_t""no" 1>&6
2831 fi
2832
2833
2834 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2835 echo "configure:2836: checking "for --enable-streams"" >&5
2836 no_cache=0
2837 # Check whether --enable-streams or --disable-streams was given.
2838 if test "${enable_streams+set}" = set; then
2839 enableval="$enable_streams"
2840
2841 if test "$enableval" = yes; then
2842 ac_cv_use_streams='wxUSE_STREAMS=yes'
2843 else
2844 ac_cv_use_streams='wxUSE_STREAMS=no'
2845 fi
2846
2847 else
2848
2849 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2850 if test "x$LINE" != x ; then
2851 eval "DEFAULT_$LINE"
2852 else
2853 no_cache=1
2854 fi
2855
2856 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2857
2858 fi
2859
2860
2861 eval "$ac_cv_use_streams"
2862 if test "$no_cache" != 1; then
2863 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2864 fi
2865
2866 if test "$wxUSE_STREAMS" = yes; then
2867 echo "$ac_t""yes" 1>&6
2868 else
2869 echo "$ac_t""no" 1>&6
2870 fi
2871
2872
2873 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2874 echo "configure:2875: checking "for --enable-file"" >&5
2875 no_cache=0
2876 # Check whether --enable-file or --disable-file was given.
2877 if test "${enable_file+set}" = set; then
2878 enableval="$enable_file"
2879
2880 if test "$enableval" = yes; then
2881 ac_cv_use_file='wxUSE_FILE=yes'
2882 else
2883 ac_cv_use_file='wxUSE_FILE=no'
2884 fi
2885
2886 else
2887
2888 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2889 if test "x$LINE" != x ; then
2890 eval "DEFAULT_$LINE"
2891 else
2892 no_cache=1
2893 fi
2894
2895 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2896
2897 fi
2898
2899
2900 eval "$ac_cv_use_file"
2901 if test "$no_cache" != 1; then
2902 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2903 fi
2904
2905 if test "$wxUSE_FILE" = yes; then
2906 echo "$ac_t""yes" 1>&6
2907 else
2908 echo "$ac_t""no" 1>&6
2909 fi
2910
2911
2912 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2913 echo "configure:2914: checking "for --enable-textfile"" >&5
2914 no_cache=0
2915 # Check whether --enable-textfile or --disable-textfile was given.
2916 if test "${enable_textfile+set}" = set; then
2917 enableval="$enable_textfile"
2918
2919 if test "$enableval" = yes; then
2920 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2921 else
2922 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2923 fi
2924
2925 else
2926
2927 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
2934 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2935
2936 fi
2937
2938
2939 eval "$ac_cv_use_textfile"
2940 if test "$no_cache" != 1; then
2941 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2942 fi
2943
2944 if test "$wxUSE_TEXTFILE" = yes; then
2945 echo "$ac_t""yes" 1>&6
2946 else
2947 echo "$ac_t""no" 1>&6
2948 fi
2949
2950
2951 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
2952 echo "configure:2953: checking "for --enable-unicode"" >&5
2953 no_cache=0
2954 # Check whether --enable-unicode or --disable-unicode was given.
2955 if test "${enable_unicode+set}" = set; then
2956 enableval="$enable_unicode"
2957
2958 if test "$enableval" = yes; then
2959 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2960 else
2961 ac_cv_use_unicode='wxUSE_UNICODE=no'
2962 fi
2963
2964 else
2965
2966 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2967 if test "x$LINE" != x ; then
2968 eval "DEFAULT_$LINE"
2969 else
2970 no_cache=1
2971 fi
2972
2973 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2974
2975 fi
2976
2977
2978 eval "$ac_cv_use_unicode"
2979 if test "$no_cache" != 1; then
2980 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2981 fi
2982
2983 if test "$wxUSE_UNICODE" = yes; then
2984 echo "$ac_t""yes" 1>&6
2985 else
2986 echo "$ac_t""no" 1>&6
2987 fi
2988
2989
2990 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
2991 echo "configure:2992: checking "for --enable-wcsrtombs"" >&5
2992 no_cache=0
2993 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2994 if test "${enable_wcsrtombs+set}" = set; then
2995 enableval="$enable_wcsrtombs"
2996
2997 if test "$enableval" = yes; then
2998 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
2999 else
3000 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3001 fi
3002
3003 else
3004
3005 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3006 if test "x$LINE" != x ; then
3007 eval "DEFAULT_$LINE"
3008 else
3009 no_cache=1
3010 fi
3011
3012 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3013
3014 fi
3015
3016
3017 eval "$ac_cv_use_wcsrtombs"
3018 if test "$no_cache" != 1; then
3019 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3020 fi
3021
3022 if test "$wxUSE_WCSRTOMBS" = yes; then
3023 echo "$ac_t""yes" 1>&6
3024 else
3025 echo "$ac_t""no" 1>&6
3026 fi
3027
3028
3029 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3030 echo "configure:3031: checking "for --enable-wxprintfv"" >&5
3031 no_cache=0
3032 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3033 if test "${enable_wxprintfv+set}" = set; then
3034 enableval="$enable_wxprintfv"
3035
3036 if test "$enableval" = yes; then
3037 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3038 else
3039 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3040 fi
3041
3042 else
3043
3044 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3045 if test "x$LINE" != x ; then
3046 eval "DEFAULT_$LINE"
3047 else
3048 no_cache=1
3049 fi
3050
3051 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3052
3053 fi
3054
3055
3056 eval "$ac_cv_use_wxprintfv"
3057 if test "$no_cache" != 1; then
3058 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3059 fi
3060
3061 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3062 echo "$ac_t""yes" 1>&6
3063 else
3064 echo "$ac_t""no" 1>&6
3065 fi
3066
3067
3068 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3069 echo "configure:3070: checking "for --enable-joystick"" >&5
3070 no_cache=0
3071 # Check whether --enable-joystick or --disable-joystick was given.
3072 if test "${enable_joystick+set}" = set; then
3073 enableval="$enable_joystick"
3074
3075 if test "$enableval" = yes; then
3076 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3077 else
3078 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3079 fi
3080
3081 else
3082
3083 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3084 if test "x$LINE" != x ; then
3085 eval "DEFAULT_$LINE"
3086 else
3087 no_cache=1
3088 fi
3089
3090 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3091
3092 fi
3093
3094
3095 eval "$ac_cv_use_joystick"
3096 if test "$no_cache" != 1; then
3097 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3098 fi
3099
3100 if test "$wxUSE_JOYSTICK" = yes; then
3101 echo "$ac_t""yes" 1>&6
3102 else
3103 echo "$ac_t""no" 1>&6
3104 fi
3105
3106
3107 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3108 echo "configure:3109: checking "for --enable-std_iostreams"" >&5
3109 no_cache=0
3110 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3111 if test "${enable_std_iostreams+set}" = set; then
3112 enableval="$enable_std_iostreams"
3113
3114 if test "$enableval" = yes; then
3115 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3116 else
3117 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3118 fi
3119
3120 else
3121
3122 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3123 if test "x$LINE" != x ; then
3124 eval "DEFAULT_$LINE"
3125 else
3126 no_cache=1
3127 fi
3128
3129 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3130
3131 fi
3132
3133
3134 eval "$ac_cv_use_std_iostreams"
3135 if test "$no_cache" != 1; then
3136 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3137 fi
3138
3139 if test "$wxUSE_STD_IOSTREAM" = yes; then
3140 echo "$ac_t""yes" 1>&6
3141 else
3142 echo "$ac_t""no" 1>&6
3143 fi
3144
3145
3146 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3147 echo "configure:3148: checking "for --enable-fs_inet"" >&5
3148 no_cache=0
3149 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3150 if test "${enable_fs_inet+set}" = set; then
3151 enableval="$enable_fs_inet"
3152
3153 if test "$enableval" = yes; then
3154 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3155 else
3156 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3157 fi
3158
3159 else
3160
3161 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3162 if test "x$LINE" != x ; then
3163 eval "DEFAULT_$LINE"
3164 else
3165 no_cache=1
3166 fi
3167
3168 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3169
3170 fi
3171
3172
3173 eval "$ac_cv_use_fs_inet"
3174 if test "$no_cache" != 1; then
3175 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3176 fi
3177
3178 if test "$wxUSE_FS_INET" = yes; then
3179 echo "$ac_t""yes" 1>&6
3180 else
3181 echo "$ac_t""no" 1>&6
3182 fi
3183
3184
3185 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3186 echo "configure:3187: checking "for --enable-fs_zip"" >&5
3187 no_cache=0
3188 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3189 if test "${enable_fs_zip+set}" = set; then
3190 enableval="$enable_fs_zip"
3191
3192 if test "$enableval" = yes; then
3193 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3194 else
3195 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3196 fi
3197
3198 else
3199
3200 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3201 if test "x$LINE" != x ; then
3202 eval "DEFAULT_$LINE"
3203 else
3204 no_cache=1
3205 fi
3206
3207 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3208
3209 fi
3210
3211
3212 eval "$ac_cv_use_fs_zip"
3213 if test "$no_cache" != 1; then
3214 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3215 fi
3216
3217 if test "$wxUSE_FS_ZIP" = yes; then
3218 echo "$ac_t""yes" 1>&6
3219 else
3220 echo "$ac_t""no" 1>&6
3221 fi
3222
3223
3224 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3225 echo "configure:3226: checking "for --enable-zipstream"" >&5
3226 no_cache=0
3227 # Check whether --enable-zipstream or --disable-zipstream was given.
3228 if test "${enable_zipstream+set}" = set; then
3229 enableval="$enable_zipstream"
3230
3231 if test "$enableval" = yes; then
3232 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3233 else
3234 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3235 fi
3236
3237 else
3238
3239 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3240 if test "x$LINE" != x ; then
3241 eval "DEFAULT_$LINE"
3242 else
3243 no_cache=1
3244 fi
3245
3246 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3247
3248 fi
3249
3250
3251 eval "$ac_cv_use_zipstream"
3252 if test "$no_cache" != 1; then
3253 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3254 fi
3255
3256 if test "$wxUSE_ZIPSTREAM" = yes; then
3257 echo "$ac_t""yes" 1>&6
3258 else
3259 echo "$ac_t""no" 1>&6
3260 fi
3261
3262
3263
3264
3265 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3266 echo "configure:3267: checking "for --enable-threads"" >&5
3267 no_cache=0
3268 # Check whether --enable-threads or --disable-threads was given.
3269 if test "${enable_threads+set}" = set; then
3270 enableval="$enable_threads"
3271
3272 if test "$enableval" = yes; then
3273 ac_cv_use_threads='wxUSE_THREADS=yes'
3274 else
3275 ac_cv_use_threads='wxUSE_THREADS=no'
3276 fi
3277
3278 else
3279
3280 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3281 if test "x$LINE" != x ; then
3282 eval "DEFAULT_$LINE"
3283 else
3284 no_cache=1
3285 fi
3286
3287 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3288
3289 fi
3290
3291
3292 eval "$ac_cv_use_threads"
3293 if test "$no_cache" != 1; then
3294 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3295 fi
3296
3297 if test "$wxUSE_THREADS" = yes; then
3298 echo "$ac_t""yes" 1>&6
3299 else
3300 echo "$ac_t""no" 1>&6
3301 fi
3302
3303
3304 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3305 echo "configure:3306: checking "for --enable-serial"" >&5
3306 no_cache=0
3307 # Check whether --enable-serial or --disable-serial was given.
3308 if test "${enable_serial+set}" = set; then
3309 enableval="$enable_serial"
3310
3311 if test "$enableval" = yes; then
3312 ac_cv_use_serial='wxUSE_SERIAL=yes'
3313 else
3314 ac_cv_use_serial='wxUSE_SERIAL=no'
3315 fi
3316
3317 else
3318
3319 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3320 if test "x$LINE" != x ; then
3321 eval "DEFAULT_$LINE"
3322 else
3323 no_cache=1
3324 fi
3325
3326 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3327
3328 fi
3329
3330
3331 eval "$ac_cv_use_serial"
3332 if test "$no_cache" != 1; then
3333 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3334 fi
3335
3336 if test "$wxUSE_SERIAL" = yes; then
3337 echo "$ac_t""yes" 1>&6
3338 else
3339 echo "$ac_t""no" 1>&6
3340 fi
3341
3342
3343
3344
3345 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3346 echo "configure:3347: checking "for --enable-docview"" >&5
3347 no_cache=0
3348 # Check whether --enable-docview or --disable-docview was given.
3349 if test "${enable_docview+set}" = set; then
3350 enableval="$enable_docview"
3351
3352 if test "$enableval" = yes; then
3353 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3354 else
3355 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3356 fi
3357
3358 else
3359
3360 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3361 if test "x$LINE" != x ; then
3362 eval "DEFAULT_$LINE"
3363 else
3364 no_cache=1
3365 fi
3366
3367 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3368
3369 fi
3370
3371
3372 eval "$ac_cv_use_docview"
3373 if test "$no_cache" != 1; then
3374 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3375 fi
3376
3377 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3378 echo "$ac_t""yes" 1>&6
3379 else
3380 echo "$ac_t""no" 1>&6
3381 fi
3382
3383
3384 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3385 echo "configure:3386: checking "for --enable-help"" >&5
3386 no_cache=0
3387 # Check whether --enable-help or --disable-help was given.
3388 if test "${enable_help+set}" = set; then
3389 enableval="$enable_help"
3390
3391 if test "$enableval" = yes; then
3392 ac_cv_use_help='wxUSE_HELP=yes'
3393 else
3394 ac_cv_use_help='wxUSE_HELP=no'
3395 fi
3396
3397 else
3398
3399 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3400 if test "x$LINE" != x ; then
3401 eval "DEFAULT_$LINE"
3402 else
3403 no_cache=1
3404 fi
3405
3406 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3407
3408 fi
3409
3410
3411 eval "$ac_cv_use_help"
3412 if test "$no_cache" != 1; then
3413 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3414 fi
3415
3416 if test "$wxUSE_HELP" = yes; then
3417 echo "$ac_t""yes" 1>&6
3418 else
3419 echo "$ac_t""no" 1>&6
3420 fi
3421
3422
3423 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3424 echo "configure:3425: checking "for --enable-constraints"" >&5
3425 no_cache=0
3426 # Check whether --enable-constraints or --disable-constraints was given.
3427 if test "${enable_constraints+set}" = set; then
3428 enableval="$enable_constraints"
3429
3430 if test "$enableval" = yes; then
3431 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3432 else
3433 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3434 fi
3435
3436 else
3437
3438 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3439 if test "x$LINE" != x ; then
3440 eval "DEFAULT_$LINE"
3441 else
3442 no_cache=1
3443 fi
3444
3445 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3446
3447 fi
3448
3449
3450 eval "$ac_cv_use_constraints"
3451 if test "$no_cache" != 1; then
3452 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3453 fi
3454
3455 if test "$wxUSE_CONSTRAINTS" = yes; then
3456 echo "$ac_t""yes" 1>&6
3457 else
3458 echo "$ac_t""no" 1>&6
3459 fi
3460
3461
3462 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3463 echo "configure:3464: checking "for --enable-printarch"" >&5
3464 no_cache=0
3465 # Check whether --enable-printarch or --disable-printarch was given.
3466 if test "${enable_printarch+set}" = set; then
3467 enableval="$enable_printarch"
3468
3469 if test "$enableval" = yes; then
3470 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3471 else
3472 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3473 fi
3474
3475 else
3476
3477 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3478 if test "x$LINE" != x ; then
3479 eval "DEFAULT_$LINE"
3480 else
3481 no_cache=1
3482 fi
3483
3484 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3485
3486 fi
3487
3488
3489 eval "$ac_cv_use_printarch"
3490 if test "$no_cache" != 1; then
3491 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3492 fi
3493
3494 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3495 echo "$ac_t""yes" 1>&6
3496 else
3497 echo "$ac_t""no" 1>&6
3498 fi
3499
3500
3501 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3502 echo "configure:3503: checking "for --enable-mdi"" >&5
3503 no_cache=0
3504 # Check whether --enable-mdi or --disable-mdi was given.
3505 if test "${enable_mdi+set}" = set; then
3506 enableval="$enable_mdi"
3507
3508 if test "$enableval" = yes; then
3509 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3510 else
3511 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3512 fi
3513
3514 else
3515
3516 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3517 if test "x$LINE" != x ; then
3518 eval "DEFAULT_$LINE"
3519 else
3520 no_cache=1
3521 fi
3522
3523 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3524
3525 fi
3526
3527
3528 eval "$ac_cv_use_mdi"
3529 if test "$no_cache" != 1; then
3530 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3531 fi
3532
3533 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3534 echo "$ac_t""yes" 1>&6
3535 else
3536 echo "$ac_t""no" 1>&6
3537 fi
3538
3539
3540
3541 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3542 echo "configure:3543: checking "for --enable-postscript"" >&5
3543 no_cache=0
3544 # Check whether --enable-postscript or --disable-postscript was given.
3545 if test "${enable_postscript+set}" = set; then
3546 enableval="$enable_postscript"
3547
3548 if test "$enableval" = yes; then
3549 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3550 else
3551 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3552 fi
3553
3554 else
3555
3556 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3557 if test "x$LINE" != x ; then
3558 eval "DEFAULT_$LINE"
3559 else
3560 no_cache=1
3561 fi
3562
3563 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3564
3565 fi
3566
3567
3568 eval "$ac_cv_use_postscript"
3569 if test "$no_cache" != 1; then
3570 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3571 fi
3572
3573 if test "$wxUSE_POSTSCRIPT" = yes; then
3574 echo "$ac_t""yes" 1>&6
3575 else
3576 echo "$ac_t""no" 1>&6
3577 fi
3578
3579
3580
3581
3582 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3583 echo "configure:3584: checking "for --enable-prologio"" >&5
3584 no_cache=0
3585 # Check whether --enable-prologio or --disable-prologio was given.
3586 if test "${enable_prologio+set}" = set; then
3587 enableval="$enable_prologio"
3588
3589 if test "$enableval" = yes; then
3590 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3591 else
3592 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3593 fi
3594
3595 else
3596
3597 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3598 if test "x$LINE" != x ; then
3599 eval "DEFAULT_$LINE"
3600 else
3601 no_cache=1
3602 fi
3603
3604 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3605
3606 fi
3607
3608
3609 eval "$ac_cv_use_prologio"
3610 if test "$no_cache" != 1; then
3611 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3612 fi
3613
3614 if test "$wxUSE_PROLOGIO" = yes; then
3615 echo "$ac_t""yes" 1>&6
3616 else
3617 echo "$ac_t""no" 1>&6
3618 fi
3619
3620
3621 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3622 echo "configure:3623: checking "for --enable-resources"" >&5
3623 no_cache=0
3624 # Check whether --enable-resources or --disable-resources was given.
3625 if test "${enable_resources+set}" = set; then
3626 enableval="$enable_resources"
3627
3628 if test "$enableval" = yes; then
3629 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3630 else
3631 ac_cv_use_resources='wxUSE_RESOURCES=no'
3632 fi
3633
3634 else
3635
3636 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3637 if test "x$LINE" != x ; then
3638 eval "DEFAULT_$LINE"
3639 else
3640 no_cache=1
3641 fi
3642
3643 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3644
3645 fi
3646
3647
3648 eval "$ac_cv_use_resources"
3649 if test "$no_cache" != 1; then
3650 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3651 fi
3652
3653 if test "$wxUSE_RESOURCES" = yes; then
3654 echo "$ac_t""yes" 1>&6
3655 else
3656 echo "$ac_t""no" 1>&6
3657 fi
3658
3659
3660
3661 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3662 echo "configure:3663: checking "for --enable-xresources"" >&5
3663 no_cache=0
3664 # Check whether --enable-xresources or --disable-xresources was given.
3665 if test "${enable_xresources+set}" = set; then
3666 enableval="$enable_xresources"
3667
3668 if test "$enableval" = yes; then
3669 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3670 else
3671 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3672 fi
3673
3674 else
3675
3676 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3677 if test "x$LINE" != x ; then
3678 eval "DEFAULT_$LINE"
3679 else
3680 no_cache=1
3681 fi
3682
3683 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3684
3685 fi
3686
3687
3688 eval "$ac_cv_use_xresources"
3689 if test "$no_cache" != 1; then
3690 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3691 fi
3692
3693 if test "$wxUSE_X_RESOURCES" = yes; then
3694 echo "$ac_t""yes" 1>&6
3695 else
3696 echo "$ac_t""no" 1>&6
3697 fi
3698
3699
3700
3701
3702 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3703 echo "configure:3704: checking "for --enable-clipboard"" >&5
3704 no_cache=0
3705 # Check whether --enable-clipboard or --disable-clipboard was given.
3706 if test "${enable_clipboard+set}" = set; then
3707 enableval="$enable_clipboard"
3708
3709 if test "$enableval" = yes; then
3710 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3711 else
3712 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3713 fi
3714
3715 else
3716
3717 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3725
3726 fi
3727
3728
3729 eval "$ac_cv_use_clipboard"
3730 if test "$no_cache" != 1; then
3731 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3732 fi
3733
3734 if test "$wxUSE_CLIPBOARD" = yes; then
3735 echo "$ac_t""yes" 1>&6
3736 else
3737 echo "$ac_t""no" 1>&6
3738 fi
3739
3740
3741 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3742 echo "configure:3743: checking "for --enable-dnd"" >&5
3743 no_cache=0
3744 # Check whether --enable-dnd or --disable-dnd was given.
3745 if test "${enable_dnd+set}" = set; then
3746 enableval="$enable_dnd"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3750 else
3751 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3752 fi
3753
3754 else
3755
3756 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3764
3765 fi
3766
3767
3768 eval "$ac_cv_use_dnd"
3769 if test "$no_cache" != 1; then
3770 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3771 fi
3772
3773 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3774 echo "$ac_t""yes" 1>&6
3775 else
3776 echo "$ac_t""no" 1>&6
3777 fi
3778
3779
3780
3781 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3782 echo "configure:3783: checking "for --enable-wxtree"" >&5
3783 no_cache=0
3784 # Check whether --enable-wxtree or --disable-wxtree was given.
3785 if test "${enable_wxtree+set}" = set; then
3786 enableval="$enable_wxtree"
3787
3788 if test "$enableval" = yes; then
3789 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3790 else
3791 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3792 fi
3793
3794 else
3795
3796 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3797 if test "x$LINE" != x ; then
3798 eval "DEFAULT_$LINE"
3799 else
3800 no_cache=1
3801 fi
3802
3803 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3804
3805 fi
3806
3807
3808 eval "$ac_cv_use_wxtree"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_WXTREE" = yes; then
3814 echo "$ac_t""yes" 1>&6
3815 else
3816 echo "$ac_t""no" 1>&6
3817 fi
3818
3819
3820
3821
3822 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3823 echo "configure:3824: checking "for --enable-controls"" >&5
3824 no_cache=0
3825 # Check whether --enable-controls or --disable-controls was given.
3826 if test "${enable_controls+set}" = set; then
3827 enableval="$enable_controls"
3828
3829 if test "$enableval" = yes; then
3830 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3831 else
3832 ac_cv_use_controls='wxUSE_CONTROLS=no'
3833 fi
3834
3835 else
3836
3837 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3838 if test "x$LINE" != x ; then
3839 eval "DEFAULT_$LINE"
3840 else
3841 no_cache=1
3842 fi
3843
3844 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3845
3846 fi
3847
3848
3849 eval "$ac_cv_use_controls"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_CONTROLS" = yes; then
3855 echo "$ac_t""yes" 1>&6
3856 else
3857 echo "$ac_t""no" 1>&6
3858 fi
3859
3860
3861 if test "$wxUSE_CONTROLS" = "yes"; then
3862 DEFAULT_wxUSE_ACCEL=yes
3863 DEFAULT_wxUSE_CARET=yes
3864 DEFAULT_wxUSE_COMBOBOX=yes
3865 DEFAULT_wxUSE_BMPBUTTON=yes
3866 DEFAULT_wxUSE_CHECKBOX=yes
3867 DEFAULT_wxUSE_CHECKLISTBOX=yes
3868 DEFAULT_wxUSE_CHOICE=yes
3869 DEFAULT_wxUSE_GAUGE=yes
3870 DEFAULT_wxUSE_GRID=yes
3871 DEFAULT_wxUSE_NEW_GRID=yes
3872 DEFAULT_wxUSE_IMAGLIST=yes
3873 DEFAULT_wxUSE_LISTBOX=yes
3874 DEFAULT_wxUSE_LISTCTRL=yes
3875 DEFAULT_wxUSE_NOTEBOOK=yes
3876 DEFAULT_wxUSE_RADIOBOX=yes
3877 DEFAULT_wxUSE_RADIOBTN=yes
3878 DEFAULT_wxUSE_SASH=yes
3879 DEFAULT_wxUSE_SCROLLBAR=yes
3880 DEFAULT_wxUSE_SLIDER=yes
3881 DEFAULT_wxUSE_SPINBTN=yes
3882 DEFAULT_wxUSE_SPLITTER=yes
3883 DEFAULT_wxUSE_STATBMP=yes
3884 DEFAULT_wxUSE_STATBOX=yes
3885 DEFAULT_wxUSE_STATLINE=yes
3886 DEFAULT_wxUSE_STATUSBAR=yes
3887 DEFAULT_wxUSE_TAB_DIALOG=yes
3888 DEFAULT_wxUSE_TOOLBAR=yes
3889 DEFAULT_wxUSE_TOOLTIPS=yes
3890 DEFAULT_wxUSE_TREECTRL=yes
3891 elif test "$wxUSE_CONTROLS" = "no"; then
3892 DEFAULT_wxUSE_ACCEL=no
3893 DEFAULT_wxUSE_CARET=no
3894 DEFAULT_wxUSE_COMBOBOX=no
3895 DEFAULT_wxUSE_BMPBUTTON=no
3896 DEFAULT_wxUSE_CHECKBOX=no
3897 DEFAULT_wxUSE_CHECKLISTBOX=no
3898 DEFAULT_wxUSE_CHOICE=no
3899 DEFAULT_wxUSE_GAUGE=no
3900 DEFAULT_wxUSE_GRID=no
3901 DEFAULT_wxUSE_NEW_GRID=no
3902 DEFAULT_wxUSE_IMAGLIST=no
3903 DEFAULT_wxUSE_LISTBOX=no
3904 DEFAULT_wxUSE_LISTCTRL=no
3905 DEFAULT_wxUSE_NOTEBOOK=no
3906 DEFAULT_wxUSE_RADIOBOX=no
3907 DEFAULT_wxUSE_RADIOBTN=no
3908 DEFAULT_wxUSE_SASH=no
3909 DEFAULT_wxUSE_SCROLLBAR=no
3910 DEFAULT_wxUSE_SLIDER=no
3911 DEFAULT_wxUSE_SPINBTN=no
3912 DEFAULT_wxUSE_SPLITTER=no
3913 DEFAULT_wxUSE_STATBMP=no
3914 DEFAULT_wxUSE_STATBOX=no
3915 DEFAULT_wxUSE_STATLINE=no
3916 DEFAULT_wxUSE_STATUSBAR=no
3917 DEFAULT_wxUSE_TAB_DIALOG=no
3918 DEFAULT_wxUSE_TOOLBAR=no
3919 DEFAULT_wxUSE_TOOLTIPS=no
3920 DEFAULT_wxUSE_TREECTRL=no
3921 fi
3922
3923
3924 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
3925 echo "configure:3926: checking "for --enable-accel"" >&5
3926 no_cache=0
3927 # Check whether --enable-accel or --disable-accel was given.
3928 if test "${enable_accel+set}" = set; then
3929 enableval="$enable_accel"
3930
3931 if test "$enableval" = yes; then
3932 ac_cv_use_accel='wxUSE_ACCEL=yes'
3933 else
3934 ac_cv_use_accel='wxUSE_ACCEL=no'
3935 fi
3936
3937 else
3938
3939 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3940 if test "x$LINE" != x ; then
3941 eval "DEFAULT_$LINE"
3942 else
3943 no_cache=1
3944 fi
3945
3946 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3947
3948 fi
3949
3950
3951 eval "$ac_cv_use_accel"
3952 if test "$no_cache" != 1; then
3953 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3954 fi
3955
3956 if test "$wxUSE_ACCEL" = yes; then
3957 echo "$ac_t""yes" 1>&6
3958 else
3959 echo "$ac_t""no" 1>&6
3960 fi
3961
3962
3963 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
3964 echo "configure:3965: checking "for --enable-caret"" >&5
3965 no_cache=0
3966 # Check whether --enable-caret or --disable-caret was given.
3967 if test "${enable_caret+set}" = set; then
3968 enableval="$enable_caret"
3969
3970 if test "$enableval" = yes; then
3971 ac_cv_use_caret='wxUSE_CARET=yes'
3972 else
3973 ac_cv_use_caret='wxUSE_CARET=no'
3974 fi
3975
3976 else
3977
3978 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3979 if test "x$LINE" != x ; then
3980 eval "DEFAULT_$LINE"
3981 else
3982 no_cache=1
3983 fi
3984
3985 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3986
3987 fi
3988
3989
3990 eval "$ac_cv_use_caret"
3991 if test "$no_cache" != 1; then
3992 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3993 fi
3994
3995 if test "$wxUSE_CARET" = yes; then
3996 echo "$ac_t""yes" 1>&6
3997 else
3998 echo "$ac_t""no" 1>&6
3999 fi
4000
4001
4002 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4003 echo "configure:4004: checking "for --enable-bmpbutton"" >&5
4004 no_cache=0
4005 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4006 if test "${enable_bmpbutton+set}" = set; then
4007 enableval="$enable_bmpbutton"
4008
4009 if test "$enableval" = yes; then
4010 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4011 else
4012 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4013 fi
4014
4015 else
4016
4017 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4018 if test "x$LINE" != x ; then
4019 eval "DEFAULT_$LINE"
4020 else
4021 no_cache=1
4022 fi
4023
4024 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4025
4026 fi
4027
4028
4029 eval "$ac_cv_use_bmpbutton"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_BMPBUTTON" = yes; then
4035 echo "$ac_t""yes" 1>&6
4036 else
4037 echo "$ac_t""no" 1>&6
4038 fi
4039
4040
4041 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4042 echo "configure:4043: checking "for --enable-checkbox"" >&5
4043 no_cache=0
4044 # Check whether --enable-checkbox or --disable-checkbox was given.
4045 if test "${enable_checkbox+set}" = set; then
4046 enableval="$enable_checkbox"
4047
4048 if test "$enableval" = yes; then
4049 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4050 else
4051 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4052 fi
4053
4054 else
4055
4056 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4064
4065 fi
4066
4067
4068 eval "$ac_cv_use_checkbox"
4069 if test "$no_cache" != 1; then
4070 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4071 fi
4072
4073 if test "$wxUSE_CHECKBOX" = yes; then
4074 echo "$ac_t""yes" 1>&6
4075 else
4076 echo "$ac_t""no" 1>&6
4077 fi
4078
4079
4080 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4081 echo "configure:4082: checking "for --enable-checklst"" >&5
4082 no_cache=0
4083 # Check whether --enable-checklst or --disable-checklst was given.
4084 if test "${enable_checklst+set}" = set; then
4085 enableval="$enable_checklst"
4086
4087 if test "$enableval" = yes; then
4088 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4089 else
4090 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4091 fi
4092
4093 else
4094
4095 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4096 if test "x$LINE" != x ; then
4097 eval "DEFAULT_$LINE"
4098 else
4099 no_cache=1
4100 fi
4101
4102 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4103
4104 fi
4105
4106
4107 eval "$ac_cv_use_checklst"
4108 if test "$no_cache" != 1; then
4109 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4110 fi
4111
4112 if test "$wxUSE_CHECKLST" = yes; then
4113 echo "$ac_t""yes" 1>&6
4114 else
4115 echo "$ac_t""no" 1>&6
4116 fi
4117
4118
4119 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4120 echo "configure:4121: checking "for --enable-choice"" >&5
4121 no_cache=0
4122 # Check whether --enable-choice or --disable-choice was given.
4123 if test "${enable_choice+set}" = set; then
4124 enableval="$enable_choice"
4125
4126 if test "$enableval" = yes; then
4127 ac_cv_use_choice='wxUSE_CHOICE=yes'
4128 else
4129 ac_cv_use_choice='wxUSE_CHOICE=no'
4130 fi
4131
4132 else
4133
4134 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4135 if test "x$LINE" != x ; then
4136 eval "DEFAULT_$LINE"
4137 else
4138 no_cache=1
4139 fi
4140
4141 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4142
4143 fi
4144
4145
4146 eval "$ac_cv_use_choice"
4147 if test "$no_cache" != 1; then
4148 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4149 fi
4150
4151 if test "$wxUSE_CHOICE" = yes; then
4152 echo "$ac_t""yes" 1>&6
4153 else
4154 echo "$ac_t""no" 1>&6
4155 fi
4156
4157
4158 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4159 echo "configure:4160: checking "for --enable-combobox"" >&5
4160 no_cache=0
4161 # Check whether --enable-combobox or --disable-combobox was given.
4162 if test "${enable_combobox+set}" = set; then
4163 enableval="$enable_combobox"
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4167 else
4168 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4169 fi
4170
4171 else
4172
4173 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4181
4182 fi
4183
4184
4185 eval "$ac_cv_use_combobox"
4186 if test "$no_cache" != 1; then
4187 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4188 fi
4189
4190 if test "$wxUSE_COMBOBOX" = yes; then
4191 echo "$ac_t""yes" 1>&6
4192 else
4193 echo "$ac_t""no" 1>&6
4194 fi
4195
4196
4197 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4198 echo "configure:4199: checking "for --enable-gauge"" >&5
4199 no_cache=0
4200 # Check whether --enable-gauge or --disable-gauge was given.
4201 if test "${enable_gauge+set}" = set; then
4202 enableval="$enable_gauge"
4203
4204 if test "$enableval" = yes; then
4205 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4206 else
4207 ac_cv_use_gauge='wxUSE_GAUGE=no'
4208 fi
4209
4210 else
4211
4212 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4213 if test "x$LINE" != x ; then
4214 eval "DEFAULT_$LINE"
4215 else
4216 no_cache=1
4217 fi
4218
4219 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4220
4221 fi
4222
4223
4224 eval "$ac_cv_use_gauge"
4225 if test "$no_cache" != 1; then
4226 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4227 fi
4228
4229 if test "$wxUSE_GAUGE" = yes; then
4230 echo "$ac_t""yes" 1>&6
4231 else
4232 echo "$ac_t""no" 1>&6
4233 fi
4234
4235
4236 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4237 echo "configure:4238: checking "for --enable-grid"" >&5
4238 no_cache=0
4239 # Check whether --enable-grid or --disable-grid was given.
4240 if test "${enable_grid+set}" = set; then
4241 enableval="$enable_grid"
4242
4243 if test "$enableval" = yes; then
4244 ac_cv_use_grid='wxUSE_GRID=yes'
4245 else
4246 ac_cv_use_grid='wxUSE_GRID=no'
4247 fi
4248
4249 else
4250
4251 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4252 if test "x$LINE" != x ; then
4253 eval "DEFAULT_$LINE"
4254 else
4255 no_cache=1
4256 fi
4257
4258 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4259
4260 fi
4261
4262
4263 eval "$ac_cv_use_grid"
4264 if test "$no_cache" != 1; then
4265 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4266 fi
4267
4268 if test "$wxUSE_GRID" = yes; then
4269 echo "$ac_t""yes" 1>&6
4270 else
4271 echo "$ac_t""no" 1>&6
4272 fi
4273
4274
4275 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4276 echo "configure:4277: checking "for --enable-newgrid"" >&5
4277 no_cache=0
4278 # Check whether --enable-newgrid or --disable-newgrid was given.
4279 if test "${enable_newgrid+set}" = set; then
4280 enableval="$enable_newgrid"
4281
4282 if test "$enableval" = yes; then
4283 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4284 else
4285 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4286 fi
4287
4288 else
4289
4290 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4291 if test "x$LINE" != x ; then
4292 eval "DEFAULT_$LINE"
4293 else
4294 no_cache=1
4295 fi
4296
4297 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4298
4299 fi
4300
4301
4302 eval "$ac_cv_use_newgrid"
4303 if test "$no_cache" != 1; then
4304 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4305 fi
4306
4307 if test "$wxUSE_NEW_GRID" = yes; then
4308 echo "$ac_t""yes" 1>&6
4309 else
4310 echo "$ac_t""no" 1>&6
4311 fi
4312
4313
4314 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4315 echo "configure:4316: checking "for --enable-imaglist"" >&5
4316 no_cache=0
4317 # Check whether --enable-imaglist or --disable-imaglist was given.
4318 if test "${enable_imaglist+set}" = set; then
4319 enableval="$enable_imaglist"
4320
4321 if test "$enableval" = yes; then
4322 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4323 else
4324 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4325 fi
4326
4327 else
4328
4329 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4330 if test "x$LINE" != x ; then
4331 eval "DEFAULT_$LINE"
4332 else
4333 no_cache=1
4334 fi
4335
4336 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4337
4338 fi
4339
4340
4341 eval "$ac_cv_use_imaglist"
4342 if test "$no_cache" != 1; then
4343 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4344 fi
4345
4346 if test "$wxUSE_IMAGLIST" = yes; then
4347 echo "$ac_t""yes" 1>&6
4348 else
4349 echo "$ac_t""no" 1>&6
4350 fi
4351
4352
4353 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4354 echo "configure:4355: checking "for --enable-listbox"" >&5
4355 no_cache=0
4356 # Check whether --enable-listbox or --disable-listbox was given.
4357 if test "${enable_listbox+set}" = set; then
4358 enableval="$enable_listbox"
4359
4360 if test "$enableval" = yes; then
4361 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4362 else
4363 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4364 fi
4365
4366 else
4367
4368 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4369 if test "x$LINE" != x ; then
4370 eval "DEFAULT_$LINE"
4371 else
4372 no_cache=1
4373 fi
4374
4375 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4376
4377 fi
4378
4379
4380 eval "$ac_cv_use_listbox"
4381 if test "$no_cache" != 1; then
4382 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4383 fi
4384
4385 if test "$wxUSE_LISTBOX" = yes; then
4386 echo "$ac_t""yes" 1>&6
4387 else
4388 echo "$ac_t""no" 1>&6
4389 fi
4390
4391
4392 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4393 echo "configure:4394: checking "for --enable-listctrl"" >&5
4394 no_cache=0
4395 # Check whether --enable-listctrl or --disable-listctrl was given.
4396 if test "${enable_listctrl+set}" = set; then
4397 enableval="$enable_listctrl"
4398
4399 if test "$enableval" = yes; then
4400 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4401 else
4402 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4403 fi
4404
4405 else
4406
4407 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4408 if test "x$LINE" != x ; then
4409 eval "DEFAULT_$LINE"
4410 else
4411 no_cache=1
4412 fi
4413
4414 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4415
4416 fi
4417
4418
4419 eval "$ac_cv_use_listctrl"
4420 if test "$no_cache" != 1; then
4421 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4422 fi
4423
4424 if test "$wxUSE_LISTCTRL" = yes; then
4425 echo "$ac_t""yes" 1>&6
4426 else
4427 echo "$ac_t""no" 1>&6
4428 fi
4429
4430
4431 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4432 echo "configure:4433: checking "for --enable-notebook"" >&5
4433 no_cache=0
4434 # Check whether --enable-notebook or --disable-notebook was given.
4435 if test "${enable_notebook+set}" = set; then
4436 enableval="$enable_notebook"
4437
4438 if test "$enableval" = yes; then
4439 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4440 else
4441 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4442 fi
4443
4444 else
4445
4446 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4447 if test "x$LINE" != x ; then
4448 eval "DEFAULT_$LINE"
4449 else
4450 no_cache=1
4451 fi
4452
4453 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4454
4455 fi
4456
4457
4458 eval "$ac_cv_use_notebook"
4459 if test "$no_cache" != 1; then
4460 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4461 fi
4462
4463 if test "$wxUSE_NOTEBOOK" = yes; then
4464 echo "$ac_t""yes" 1>&6
4465 else
4466 echo "$ac_t""no" 1>&6
4467 fi
4468
4469
4470 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4471 echo "configure:4472: checking "for --enable-radiobox"" >&5
4472 no_cache=0
4473 # Check whether --enable-radiobox or --disable-radiobox was given.
4474 if test "${enable_radiobox+set}" = set; then
4475 enableval="$enable_radiobox"
4476
4477 if test "$enableval" = yes; then
4478 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4479 else
4480 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4481 fi
4482
4483 else
4484
4485 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4486 if test "x$LINE" != x ; then
4487 eval "DEFAULT_$LINE"
4488 else
4489 no_cache=1
4490 fi
4491
4492 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4493
4494 fi
4495
4496
4497 eval "$ac_cv_use_radiobox"
4498 if test "$no_cache" != 1; then
4499 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4500 fi
4501
4502 if test "$wxUSE_RADIOBOX" = yes; then
4503 echo "$ac_t""yes" 1>&6
4504 else
4505 echo "$ac_t""no" 1>&6
4506 fi
4507
4508
4509 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4510 echo "configure:4511: checking "for --enable-radiobtn"" >&5
4511 no_cache=0
4512 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4513 if test "${enable_radiobtn+set}" = set; then
4514 enableval="$enable_radiobtn"
4515
4516 if test "$enableval" = yes; then
4517 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4518 else
4519 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4520 fi
4521
4522 else
4523
4524 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4525 if test "x$LINE" != x ; then
4526 eval "DEFAULT_$LINE"
4527 else
4528 no_cache=1
4529 fi
4530
4531 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4532
4533 fi
4534
4535
4536 eval "$ac_cv_use_radiobtn"
4537 if test "$no_cache" != 1; then
4538 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4539 fi
4540
4541 if test "$wxUSE_RADIOBTN" = yes; then
4542 echo "$ac_t""yes" 1>&6
4543 else
4544 echo "$ac_t""no" 1>&6
4545 fi
4546
4547
4548 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4549 echo "configure:4550: checking "for --enable-sash"" >&5
4550 no_cache=0
4551 # Check whether --enable-sash or --disable-sash was given.
4552 if test "${enable_sash+set}" = set; then
4553 enableval="$enable_sash"
4554
4555 if test "$enableval" = yes; then
4556 ac_cv_use_sash='wxUSE_SASH=yes'
4557 else
4558 ac_cv_use_sash='wxUSE_SASH=no'
4559 fi
4560
4561 else
4562
4563 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4571
4572 fi
4573
4574
4575 eval "$ac_cv_use_sash"
4576 if test "$no_cache" != 1; then
4577 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4578 fi
4579
4580 if test "$wxUSE_SASH" = yes; then
4581 echo "$ac_t""yes" 1>&6
4582 else
4583 echo "$ac_t""no" 1>&6
4584 fi
4585
4586
4587 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4588 echo "configure:4589: checking "for --enable-scrollbar"" >&5
4589 no_cache=0
4590 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4591 if test "${enable_scrollbar+set}" = set; then
4592 enableval="$enable_scrollbar"
4593
4594 if test "$enableval" = yes; then
4595 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4596 else
4597 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4598 fi
4599
4600 else
4601
4602 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4610
4611 fi
4612
4613
4614 eval "$ac_cv_use_scrollbar"
4615 if test "$no_cache" != 1; then
4616 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4617 fi
4618
4619 if test "$wxUSE_SCROLLBAR" = yes; then
4620 echo "$ac_t""yes" 1>&6
4621 else
4622 echo "$ac_t""no" 1>&6
4623 fi
4624
4625
4626 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4627 echo "configure:4628: checking "for --enable-slider"" >&5
4628 no_cache=0
4629 # Check whether --enable-slider or --disable-slider was given.
4630 if test "${enable_slider+set}" = set; then
4631 enableval="$enable_slider"
4632
4633 if test "$enableval" = yes; then
4634 ac_cv_use_slider='wxUSE_SLIDER=yes'
4635 else
4636 ac_cv_use_slider='wxUSE_SLIDER=no'
4637 fi
4638
4639 else
4640
4641 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4649
4650 fi
4651
4652
4653 eval "$ac_cv_use_slider"
4654 if test "$no_cache" != 1; then
4655 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4656 fi
4657
4658 if test "$wxUSE_SLIDER" = yes; then
4659 echo "$ac_t""yes" 1>&6
4660 else
4661 echo "$ac_t""no" 1>&6
4662 fi
4663
4664
4665 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4666 echo "configure:4667: checking "for --enable-spinbtn"" >&5
4667 no_cache=0
4668 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4669 if test "${enable_spinbtn+set}" = set; then
4670 enableval="$enable_spinbtn"
4671
4672 if test "$enableval" = yes; then
4673 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4674 else
4675 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4676 fi
4677
4678 else
4679
4680 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4681 if test "x$LINE" != x ; then
4682 eval "DEFAULT_$LINE"
4683 else
4684 no_cache=1
4685 fi
4686
4687 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4688
4689 fi
4690
4691
4692 eval "$ac_cv_use_spinbtn"
4693 if test "$no_cache" != 1; then
4694 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4695 fi
4696
4697 if test "$wxUSE_SPINBTN" = yes; then
4698 echo "$ac_t""yes" 1>&6
4699 else
4700 echo "$ac_t""no" 1>&6
4701 fi
4702
4703
4704 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4705 echo "configure:4706: checking "for --enable-splitter"" >&5
4706 no_cache=0
4707 # Check whether --enable-splitter or --disable-splitter was given.
4708 if test "${enable_splitter+set}" = set; then
4709 enableval="$enable_splitter"
4710
4711 if test "$enableval" = yes; then
4712 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4713 else
4714 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4715 fi
4716
4717 else
4718
4719 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4720 if test "x$LINE" != x ; then
4721 eval "DEFAULT_$LINE"
4722 else
4723 no_cache=1
4724 fi
4725
4726 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4727
4728 fi
4729
4730
4731 eval "$ac_cv_use_splitter"
4732 if test "$no_cache" != 1; then
4733 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4734 fi
4735
4736 if test "$wxUSE_SPLITTER" = yes; then
4737 echo "$ac_t""yes" 1>&6
4738 else
4739 echo "$ac_t""no" 1>&6
4740 fi
4741
4742
4743 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4744 echo "configure:4745: checking "for --enable-statbmp"" >&5
4745 no_cache=0
4746 # Check whether --enable-statbmp or --disable-statbmp was given.
4747 if test "${enable_statbmp+set}" = set; then
4748 enableval="$enable_statbmp"
4749
4750 if test "$enableval" = yes; then
4751 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4752 else
4753 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4754 fi
4755
4756 else
4757
4758 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4759 if test "x$LINE" != x ; then
4760 eval "DEFAULT_$LINE"
4761 else
4762 no_cache=1
4763 fi
4764
4765 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4766
4767 fi
4768
4769
4770 eval "$ac_cv_use_statbmp"
4771 if test "$no_cache" != 1; then
4772 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4773 fi
4774
4775 if test "$wxUSE_STATBMP" = yes; then
4776 echo "$ac_t""yes" 1>&6
4777 else
4778 echo "$ac_t""no" 1>&6
4779 fi
4780
4781
4782 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4783 echo "configure:4784: checking "for --enable-statbox"" >&5
4784 no_cache=0
4785 # Check whether --enable-statbox or --disable-statbox was given.
4786 if test "${enable_statbox+set}" = set; then
4787 enableval="$enable_statbox"
4788
4789 if test "$enableval" = yes; then
4790 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4791 else
4792 ac_cv_use_statbox='wxUSE_STATBOX=no'
4793 fi
4794
4795 else
4796
4797 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4798 if test "x$LINE" != x ; then
4799 eval "DEFAULT_$LINE"
4800 else
4801 no_cache=1
4802 fi
4803
4804 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4805
4806 fi
4807
4808
4809 eval "$ac_cv_use_statbox"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_STATBOX" = yes; then
4815 echo "$ac_t""yes" 1>&6
4816 else
4817 echo "$ac_t""no" 1>&6
4818 fi
4819
4820
4821 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4822 echo "configure:4823: checking "for --enable-statline"" >&5
4823 no_cache=0
4824 # Check whether --enable-statline or --disable-statline was given.
4825 if test "${enable_statline+set}" = set; then
4826 enableval="$enable_statline"
4827
4828 if test "$enableval" = yes; then
4829 ac_cv_use_statline='wxUSE_STATLINE=yes'
4830 else
4831 ac_cv_use_statline='wxUSE_STATLINE=no'
4832 fi
4833
4834 else
4835
4836 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4837 if test "x$LINE" != x ; then
4838 eval "DEFAULT_$LINE"
4839 else
4840 no_cache=1
4841 fi
4842
4843 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4844
4845 fi
4846
4847
4848 eval "$ac_cv_use_statline"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_STATLINE" = yes; then
4854 echo "$ac_t""yes" 1>&6
4855 else
4856 echo "$ac_t""no" 1>&6
4857 fi
4858
4859
4860 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
4861 echo "configure:4862: checking "for --enable-statusbar"" >&5
4862 no_cache=0
4863 # Check whether --enable-statusbar or --disable-statusbar was given.
4864 if test "${enable_statusbar+set}" = set; then
4865 enableval="$enable_statusbar"
4866
4867 if test "$enableval" = yes; then
4868 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4869 else
4870 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4871 fi
4872
4873 else
4874
4875 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4883
4884 fi
4885
4886
4887 eval "$ac_cv_use_statusbar"
4888 if test "$no_cache" != 1; then
4889 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4890 fi
4891
4892 if test "$wxUSE_STATUSBAR" = yes; then
4893 echo "$ac_t""yes" 1>&6
4894 else
4895 echo "$ac_t""no" 1>&6
4896 fi
4897
4898
4899 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
4900 echo "configure:4901: checking "for --enable-tabdialog"" >&5
4901 no_cache=0
4902 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4903 if test "${enable_tabdialog+set}" = set; then
4904 enableval="$enable_tabdialog"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4908 else
4909 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4910 fi
4911
4912 else
4913
4914 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4922
4923 fi
4924
4925
4926 eval "$ac_cv_use_tabdialog"
4927 if test "$no_cache" != 1; then
4928 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4929 fi
4930
4931 if test "$wxUSE_TABDIALOG" = yes; then
4932 echo "$ac_t""yes" 1>&6
4933 else
4934 echo "$ac_t""no" 1>&6
4935 fi
4936
4937
4938 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
4939 echo "configure:4940: checking "for --enable-toolbar"" >&5
4940 no_cache=0
4941 # Check whether --enable-toolbar or --disable-toolbar was given.
4942 if test "${enable_toolbar+set}" = set; then
4943 enableval="$enable_toolbar"
4944
4945 if test "$enableval" = yes; then
4946 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4947 else
4948 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4949 fi
4950
4951 else
4952
4953 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
4960 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4961
4962 fi
4963
4964
4965 eval "$ac_cv_use_toolbar"
4966 if test "$no_cache" != 1; then
4967 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4968 fi
4969
4970 if test "$wxUSE_TOOLBAR" = yes; then
4971 echo "$ac_t""yes" 1>&6
4972 else
4973 echo "$ac_t""no" 1>&6
4974 fi
4975
4976
4977 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
4978 echo "configure:4979: checking "for --enable-treectrl"" >&5
4979 no_cache=0
4980 # Check whether --enable-treectrl or --disable-treectrl was given.
4981 if test "${enable_treectrl+set}" = set; then
4982 enableval="$enable_treectrl"
4983
4984 if test "$enableval" = yes; then
4985 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4986 else
4987 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4988 fi
4989
4990 else
4991
4992 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
4993 if test "x$LINE" != x ; then
4994 eval "DEFAULT_$LINE"
4995 else
4996 no_cache=1
4997 fi
4998
4999 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5000
5001 fi
5002
5003
5004 eval "$ac_cv_use_treectrl"
5005 if test "$no_cache" != 1; then
5006 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5007 fi
5008
5009 if test "$wxUSE_TREECTRL" = yes; then
5010 echo "$ac_t""yes" 1>&6
5011 else
5012 echo "$ac_t""no" 1>&6
5013 fi
5014
5015
5016
5017
5018 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5019 echo "configure:5020: checking "for --enable-commondlg"" >&5
5020 no_cache=0
5021 # Check whether --enable-commondlg or --disable-commondlg was given.
5022 if test "${enable_commondlg+set}" = set; then
5023 enableval="$enable_commondlg"
5024
5025 if test "$enableval" = yes; then
5026 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5027 else
5028 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5029 fi
5030
5031 else
5032
5033 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5034 if test "x$LINE" != x ; then
5035 eval "DEFAULT_$LINE"
5036 else
5037 no_cache=1
5038 fi
5039
5040 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5041
5042 fi
5043
5044
5045 eval "$ac_cv_use_commondlg"
5046 if test "$no_cache" != 1; then
5047 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5048 fi
5049
5050 if test "$wxUSE_COMMONDLGS" = yes; then
5051 echo "$ac_t""yes" 1>&6
5052 else
5053 echo "$ac_t""no" 1>&6
5054 fi
5055
5056
5057 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5058 echo "configure:5059: checking "for --enable-dirdlg"" >&5
5059 no_cache=0
5060 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5061 if test "${enable_dirdlg+set}" = set; then
5062 enableval="$enable_dirdlg"
5063
5064 if test "$enableval" = yes; then
5065 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5066 else
5067 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5068 fi
5069
5070 else
5071
5072 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5073 if test "x$LINE" != x ; then
5074 eval "DEFAULT_$LINE"
5075 else
5076 no_cache=1
5077 fi
5078
5079 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5080
5081 fi
5082
5083
5084 eval "$ac_cv_use_dirdlg"
5085 if test "$no_cache" != 1; then
5086 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5087 fi
5088
5089 if test "$wxUSE_DIRDLG" = yes; then
5090 echo "$ac_t""yes" 1>&6
5091 else
5092 echo "$ac_t""no" 1>&6
5093 fi
5094
5095
5096 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5097 echo "configure:5098: checking "for --enable-textdlg"" >&5
5098 no_cache=0
5099 # Check whether --enable-textdlg or --disable-textdlg was given.
5100 if test "${enable_textdlg+set}" = set; then
5101 enableval="$enable_textdlg"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5105 else
5106 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5107 fi
5108
5109 else
5110
5111 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5119
5120 fi
5121
5122
5123 eval "$ac_cv_use_textdlg"
5124 if test "$no_cache" != 1; then
5125 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5126 fi
5127
5128 if test "$wxUSE_TEXTDLG" = yes; then
5129 echo "$ac_t""yes" 1>&6
5130 else
5131 echo "$ac_t""no" 1>&6
5132 fi
5133
5134
5135 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5136 echo "configure:5137: checking "for --enable-tipdlg"" >&5
5137 no_cache=0
5138 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5139 if test "${enable_tipdlg+set}" = set; then
5140 enableval="$enable_tipdlg"
5141
5142 if test "$enableval" = yes; then
5143 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5144 else
5145 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5146 fi
5147
5148 else
5149
5150 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5158
5159 fi
5160
5161
5162 eval "$ac_cv_use_tipdlg"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_STARTUP_TIPS" = yes; then
5168 echo "$ac_t""yes" 1>&6
5169 else
5170 echo "$ac_t""no" 1>&6
5171 fi
5172
5173
5174 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5175 echo "configure:5176: checking "for --enable-progressdlg"" >&5
5176 no_cache=0
5177 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5178 if test "${enable_progressdlg+set}" = set; then
5179 enableval="$enable_progressdlg"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5183 else
5184 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5185 fi
5186
5187 else
5188
5189 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5197
5198 fi
5199
5200
5201 eval "$ac_cv_use_progressdlg"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_PROGRESSDLG" = yes; then
5207 echo "$ac_t""yes" 1>&6
5208 else
5209 echo "$ac_t""no" 1>&6
5210 fi
5211
5212
5213 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5214 echo "configure:5215: checking "for --enable-miniframe"" >&5
5215 no_cache=0
5216 # Check whether --enable-miniframe or --disable-miniframe was given.
5217 if test "${enable_miniframe+set}" = set; then
5218 enableval="$enable_miniframe"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5222 else
5223 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5224 fi
5225
5226 else
5227
5228 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5236
5237 fi
5238
5239
5240 eval "$ac_cv_use_miniframe"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_MINIFRAME" = yes; then
5246 echo "$ac_t""yes" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5249 fi
5250
5251
5252 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5253 echo "configure:5254: checking "for --enable-html"" >&5
5254 no_cache=0
5255 # Check whether --enable-html or --disable-html was given.
5256 if test "${enable_html+set}" = set; then
5257 enableval="$enable_html"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_html='wxUSE_HTML=yes'
5261 else
5262 ac_cv_use_html='wxUSE_HTML=no'
5263 fi
5264
5265 else
5266
5267 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5275
5276 fi
5277
5278
5279 eval "$ac_cv_use_html"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_HTML" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5292 echo "configure:5293: checking "for --enable-tooltips"" >&5
5293 no_cache=0
5294 # Check whether --enable-tooltips or --disable-tooltips was given.
5295 if test "${enable_tooltips+set}" = set; then
5296 enableval="$enable_tooltips"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5300 else
5301 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5302 fi
5303
5304 else
5305
5306 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5314
5315 fi
5316
5317
5318 eval "$ac_cv_use_tooltips"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_TOOLTIPS" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
5330 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5331 echo "configure:5332: checking "for --enable-splines"" >&5
5332 no_cache=0
5333 # Check whether --enable-splines or --disable-splines was given.
5334 if test "${enable_splines+set}" = set; then
5335 enableval="$enable_splines"
5336
5337 if test "$enableval" = yes; then
5338 ac_cv_use_splines='wxUSE_SPLINES=yes'
5339 else
5340 ac_cv_use_splines='wxUSE_SPLINES=no'
5341 fi
5342
5343 else
5344
5345 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5353
5354 fi
5355
5356
5357 eval "$ac_cv_use_splines"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_SPLINES" = yes; then
5363 echo "$ac_t""yes" 1>&6
5364 else
5365 echo "$ac_t""no" 1>&6
5366 fi
5367
5368
5369 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5370 echo "configure:5371: checking "for --enable-validators"" >&5
5371 no_cache=0
5372 # Check whether --enable-validators or --disable-validators was given.
5373 if test "${enable_validators+set}" = set; then
5374 enableval="$enable_validators"
5375
5376 if test "$enableval" = yes; then
5377 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5378 else
5379 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5380 fi
5381
5382 else
5383
5384 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5392
5393 fi
5394
5395
5396 eval "$ac_cv_use_validators"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_VALIDATORS" = yes; then
5402 echo "$ac_t""yes" 1>&6
5403 else
5404 echo "$ac_t""no" 1>&6
5405 fi
5406
5407
5408 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5409 echo "configure:5410: checking "for --enable-busyinfo"" >&5
5410 no_cache=0
5411 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5412 if test "${enable_busyinfo+set}" = set; then
5413 enableval="$enable_busyinfo"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5417 else
5418 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5419 fi
5420
5421 else
5422
5423 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5431
5432 fi
5433
5434
5435 eval "$ac_cv_use_busyinfo"
5436 if test "$no_cache" != 1; then
5437 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5438 fi
5439
5440 if test "$wxUSE_BUSYINFO" = yes; then
5441 echo "$ac_t""yes" 1>&6
5442 else
5443 echo "$ac_t""no" 1>&6
5444 fi
5445
5446
5447
5448
5449 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5450 echo "configure:5451: checking "for --enable-gif"" >&5
5451 no_cache=0
5452 # Check whether --enable-gif or --disable-gif was given.
5453 if test "${enable_gif+set}" = set; then
5454 enableval="$enable_gif"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_gif='wxUSE_GIF=yes'
5458 else
5459 ac_cv_use_gif='wxUSE_GIF=no'
5460 fi
5461
5462 else
5463
5464 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5472
5473 fi
5474
5475
5476 eval "$ac_cv_use_gif"
5477 if test "$no_cache" != 1; then
5478 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5479 fi
5480
5481 if test "$wxUSE_GIF" = yes; then
5482 echo "$ac_t""yes" 1>&6
5483 else
5484 echo "$ac_t""no" 1>&6
5485 fi
5486
5487
5488 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5489 echo "configure:5490: checking "for --enable-pcx"" >&5
5490 no_cache=0
5491 # Check whether --enable-pcx or --disable-pcx was given.
5492 if test "${enable_pcx+set}" = set; then
5493 enableval="$enable_pcx"
5494
5495 if test "$enableval" = yes; then
5496 ac_cv_use_pcx='wxUSE_PCX=yes'
5497 else
5498 ac_cv_use_pcx='wxUSE_PCX=no'
5499 fi
5500
5501 else
5502
5503 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5504 if test "x$LINE" != x ; then
5505 eval "DEFAULT_$LINE"
5506 else
5507 no_cache=1
5508 fi
5509
5510 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5511
5512 fi
5513
5514
5515 eval "$ac_cv_use_pcx"
5516 if test "$no_cache" != 1; then
5517 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5518 fi
5519
5520 if test "$wxUSE_PCX" = yes; then
5521 echo "$ac_t""yes" 1>&6
5522 else
5523 echo "$ac_t""no" 1>&6
5524 fi
5525
5526
5527 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5528 echo "configure:5529: checking "for --enable-pnm"" >&5
5529 no_cache=0
5530 # Check whether --enable-pnm or --disable-pnm was given.
5531 if test "${enable_pnm+set}" = set; then
5532 enableval="$enable_pnm"
5533
5534 if test "$enableval" = yes; then
5535 ac_cv_use_pnm='wxUSE_PNM=yes'
5536 else
5537 ac_cv_use_pnm='wxUSE_PNM=no'
5538 fi
5539
5540 else
5541
5542 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5543 if test "x$LINE" != x ; then
5544 eval "DEFAULT_$LINE"
5545 else
5546 no_cache=1
5547 fi
5548
5549 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5550
5551 fi
5552
5553
5554 eval "$ac_cv_use_pnm"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_PNM" = yes; then
5560 echo "$ac_t""yes" 1>&6
5561 else
5562 echo "$ac_t""no" 1>&6
5563 fi
5564
5565
5566
5567 echo "saving argument cache $wx_arg_cache_file"
5568 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5569
5570
5571
5572 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5573 echo "configure:5574: checking for toolkit" >&5
5574
5575 if test "$wxUSE_GUI" = "yes"; then
5576
5577 if test "$TOOLKIT_GIVEN" = 1; then
5578 for toolkit in `echo $ALL_TOOLKITS`; do
5579 var=wxUSE_$toolkit
5580 eval "value=\$${var}"
5581 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5582 done
5583 else
5584 for toolkit in `echo $ALL_TOOLKITS`; do
5585 if test "$has_toolkit_in_cache" != 1; then
5586 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5587 else
5588 var=DEFAULT_wxUSE_$toolkit
5589 fi
5590 eval "wxUSE_$toolkit=\$${var}"
5591 done
5592 fi
5593
5594 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5595
5596 case "$NUM_TOOLKITS" in
5597 1)
5598 ;;
5599 0)
5600 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5601 ;;
5602 *)
5603 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5604 esac
5605
5606 for toolkit in `echo $ALL_TOOLKITS`; do
5607 var=wxUSE_$toolkit
5608 eval "value=\$${var}"
5609 if test "x$value" != x; then
5610 cache_var=CACHE_$toolkit
5611 eval "cache=\$${cache_var}"
5612 if test "$cache" = 1; then
5613 echo "$var=$value" >> ${wx_arg_cache_file}
5614 fi
5615 if test "$value" = 1; then
5616 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5617 fi
5618 fi
5619 done
5620
5621 else
5622 echo "$ac_t""base only" 1>&6
5623 fi
5624
5625
5626 cat > confcache <<\EOF
5627 # This file is a shell script that caches the results of configure
5628 # tests run on this system so they can be shared between configure
5629 # scripts and configure runs. It is not useful on other systems.
5630 # If it contains results you don't want to keep, you may remove or edit it.
5631 #
5632 # By default, configure uses ./config.cache as the cache file,
5633 # creating it if it does not exist already. You can give configure
5634 # the --cache-file=FILE option to use a different cache file; that is
5635 # what configure does when it calls configure scripts in
5636 # subdirectories, so they share the cache.
5637 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5638 # config.status only pays attention to the cache file if you give it the
5639 # --recheck option to rerun configure.
5640 #
5641 EOF
5642 # The following way of writing the cache mishandles newlines in values,
5643 # but we know of no workaround that is simple, portable, and efficient.
5644 # So, don't put newlines in cache variables' values.
5645 # Ultrix sh set writes to stderr and can't be redirected directly,
5646 # and sets the high bit in the cache file unless we assign to the vars.
5647 (set) 2>&1 |
5648 case `(ac_space=' '; set) 2>&1` in
5649 *ac_space=\ *)
5650 # `set' does not quote correctly, so add quotes (double-quote substitution
5651 # turns \\\\ into \\, and sed turns \\ into \).
5652 sed -n \
5653 -e "s/'/'\\\\''/g" \
5654 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5655 ;;
5656 *)
5657 # `set' quotes correctly as required by POSIX, so do not add quotes.
5658 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5659 ;;
5660 esac >> confcache
5661 if cmp -s $cache_file confcache; then
5662 :
5663 else
5664 if test -w $cache_file; then
5665 echo "updating cache $cache_file"
5666 cat confcache > $cache_file
5667 else
5668 echo "not updating unwritable cache $cache_file"
5669 fi
5670 fi
5671 rm -f confcache
5672
5673
5674 if eval "test $host != $build"; then
5675 if eval "test $host_alias != NONE"; then
5676 CC=$host_alias-gcc
5677 CXX=$host_alias-c++
5678 AR=$host_alias-ar
5679 RANLIB=$host_alias-ranlib
5680 DLLTOOL=$host_alias-dlltool
5681 LD=$host_alias-ld
5682 NM=$host_alias-nm
5683 STRIP=$host_alias-strip
5684 fi
5685 fi
5686
5687 # Extract the first word of "gcc", so it can be a program name with args.
5688 set dummy gcc; ac_word=$2
5689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5690 echo "configure:5691: checking for $ac_word" >&5
5691 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5692 echo $ac_n "(cached) $ac_c" 1>&6
5693 else
5694 if test -n "$CC"; then
5695 ac_cv_prog_CC="$CC" # Let the user override the test.
5696 else
5697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5698 for ac_dir in $PATH; do
5699 test -z "$ac_dir" && ac_dir=.
5700 if test -f $ac_dir/$ac_word; then
5701 ac_cv_prog_CC="gcc"
5702 break
5703 fi
5704 done
5705 IFS="$ac_save_ifs"
5706 fi
5707 fi
5708 CC="$ac_cv_prog_CC"
5709 if test -n "$CC"; then
5710 echo "$ac_t""$CC" 1>&6
5711 else
5712 echo "$ac_t""no" 1>&6
5713 fi
5714
5715 if test -z "$CC"; then
5716 # Extract the first word of "cc", so it can be a program name with args.
5717 set dummy cc; ac_word=$2
5718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5719 echo "configure:5720: checking for $ac_word" >&5
5720 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5722 else
5723 if test -n "$CC"; then
5724 ac_cv_prog_CC="$CC" # Let the user override the test.
5725 else
5726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5727 ac_prog_rejected=no
5728 for ac_dir in $PATH; do
5729 test -z "$ac_dir" && ac_dir=.
5730 if test -f $ac_dir/$ac_word; then
5731 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5732 ac_prog_rejected=yes
5733 continue
5734 fi
5735 ac_cv_prog_CC="cc"
5736 break
5737 fi
5738 done
5739 IFS="$ac_save_ifs"
5740 if test $ac_prog_rejected = yes; then
5741 # We found a bogon in the path, so make sure we never use it.
5742 set dummy $ac_cv_prog_CC
5743 shift
5744 if test $# -gt 0; then
5745 # We chose a different compiler from the bogus one.
5746 # However, it has the same basename, so the bogon will be chosen
5747 # first if we set CC to just the basename; use the full file name.
5748 shift
5749 set dummy "$ac_dir/$ac_word" "$@"
5750 shift
5751 ac_cv_prog_CC="$@"
5752 fi
5753 fi
5754 fi
5755 fi
5756 CC="$ac_cv_prog_CC"
5757 if test -n "$CC"; then
5758 echo "$ac_t""$CC" 1>&6
5759 else
5760 echo "$ac_t""no" 1>&6
5761 fi
5762
5763 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5764 fi
5765
5766 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5767 echo "configure:5768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
5768
5769 ac_ext=c
5770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5771 ac_cpp='$CPP $CPPFLAGS'
5772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5773 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5774 cross_compiling=$ac_cv_prog_cc_cross
5775
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 main(){return(0);}
5780 EOF
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5782 ac_cv_prog_cc_works=yes
5783 # If we can't run a trivial program, we are probably using a cross compiler.
5784 if (./conftest; exit) 2>/dev/null; then
5785 ac_cv_prog_cc_cross=no
5786 else
5787 ac_cv_prog_cc_cross=yes
5788 fi
5789 else
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5792 ac_cv_prog_cc_works=no
5793 fi
5794 rm -fr conftest*
5795
5796 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5797 if test $ac_cv_prog_cc_works = no; then
5798 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5799 fi
5800 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5801 echo "configure:5802: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
5802 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5803 cross_compiling=$ac_cv_prog_cc_cross
5804
5805 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5806 echo "configure:5807: checking whether we are using GNU C" >&5
5807 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5809 else
5810 cat > conftest.c <<EOF
5811 #ifdef __GNUC__
5812 yes;
5813 #endif
5814 EOF
5815 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
5816 ac_cv_prog_gcc=yes
5817 else
5818 ac_cv_prog_gcc=no
5819 fi
5820 fi
5821
5822 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5823
5824 if test $ac_cv_prog_gcc = yes; then
5825 GCC=yes
5826 ac_test_CFLAGS="${CFLAGS+set}"
5827 ac_save_CFLAGS="$CFLAGS"
5828 CFLAGS=
5829 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5830 echo "configure:5831: checking whether ${CC-cc} accepts -g" >&5
5831 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5833 else
5834 echo 'void f(){}' > conftest.c
5835 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5836 ac_cv_prog_cc_g=yes
5837 else
5838 ac_cv_prog_cc_g=no
5839 fi
5840 rm -f conftest*
5841
5842 fi
5843
5844 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5845 if test "$ac_test_CFLAGS" = set; then
5846 CFLAGS="$ac_save_CFLAGS"
5847 elif test $ac_cv_prog_cc_g = yes; then
5848 CFLAGS="-g -O2"
5849 else
5850 CFLAGS="-O2"
5851 fi
5852 else
5853 GCC=
5854 test "${CFLAGS+set}" = set || CFLAGS="-g"
5855 fi
5856
5857
5858 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5859
5860 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
5861 echo "configure:5862: checking how to run the C preprocessor" >&5
5862 # On Suns, sometimes $CPP names a directory.
5863 if test -n "$CPP" && test -d "$CPP"; then
5864 CPP=
5865 fi
5866 if test -z "$CPP"; then
5867 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5869 else
5870 # This must be in double quotes, not single quotes, because CPP may get
5871 # substituted into the Makefile and "${CC-cc}" will confuse make.
5872 CPP="${CC-cc} -E"
5873 # On the NeXT, cc -E runs the code through the compiler's parser,
5874 # not just through cpp.
5875 cat > conftest.$ac_ext <<EOF
5876 #line 5877 "configure"
5877 #include "confdefs.h"
5878 #include <assert.h>
5879 Syntax Error
5880 EOF
5881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5882 { (eval echo configure:5883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5883 ac_err=`grep -v '^ *+' conftest.out`
5884 if test -z "$ac_err"; then
5885 :
5886 else
5887 echo "$ac_err" >&5
5888 echo "configure: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5890 rm -rf conftest*
5891 CPP="${CC-cc} -E -traditional-cpp"
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 #include <assert.h>
5896 Syntax Error
5897 EOF
5898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5899 { (eval echo configure:5900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5900 ac_err=`grep -v '^ *+' conftest.out`
5901 if test -z "$ac_err"; then
5902 :
5903 else
5904 echo "$ac_err" >&5
5905 echo "configure: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5907 rm -rf conftest*
5908 CPP=/lib/cpp
5909 fi
5910 rm -f conftest*
5911 fi
5912 rm -f conftest*
5913 ac_cv_prog_CPP="$CPP"
5914 fi
5915 CPP="$ac_cv_prog_CPP"
5916 else
5917 ac_cv_prog_CPP="$CPP"
5918 fi
5919 echo "$ac_t""$CPP" 1>&6
5920
5921
5922 if test $ac_cv_prog_gcc = yes; then
5923 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5924 echo "configure:5925: checking whether ${CC-cc} needs -traditional" >&5
5925 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5927 else
5928 ac_pattern="Autoconf.*'x'"
5929 cat > conftest.$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5932 #include <sgtty.h>
5933 Autoconf TIOCGETP
5934 EOF
5935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936 egrep "$ac_pattern" >/dev/null 2>&1; then
5937 rm -rf conftest*
5938 ac_cv_prog_gcc_traditional=yes
5939 else
5940 rm -rf conftest*
5941 ac_cv_prog_gcc_traditional=no
5942 fi
5943 rm -f conftest*
5944
5945
5946 if test $ac_cv_prog_gcc_traditional = no; then
5947 cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5950 #include <termio.h>
5951 Autoconf TCGETA
5952 EOF
5953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5954 egrep "$ac_pattern" >/dev/null 2>&1; then
5955 rm -rf conftest*
5956 ac_cv_prog_gcc_traditional=yes
5957 fi
5958 rm -f conftest*
5959
5960 fi
5961 fi
5962
5963 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5964 if test $ac_cv_prog_gcc_traditional = yes; then
5965 CC="$CC -traditional"
5966 fi
5967 fi
5968
5969
5970
5971 ac_ext=C
5972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5973 ac_cpp='$CXXCPP $CPPFLAGS'
5974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5975 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5976 cross_compiling=$ac_cv_prog_cxx_cross
5977
5978
5979 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
5980 do
5981 # Extract the first word of "$ac_prog", so it can be a program name with args.
5982 set dummy $ac_prog; ac_word=$2
5983 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5984 echo "configure:5985: checking for $ac_word" >&5
5985 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5987 else
5988 if test -n "$CXX"; then
5989 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5990 else
5991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5992 for ac_dir in $PATH; do
5993 test -z "$ac_dir" && ac_dir=.
5994 if test -f $ac_dir/$ac_word; then
5995 ac_cv_prog_CXX="$ac_prog"
5996 break
5997 fi
5998 done
5999 IFS="$ac_save_ifs"
6000 fi
6001 fi
6002 CXX="$ac_cv_prog_CXX"
6003 if test -n "$CXX"; then
6004 echo "$ac_t""$CXX" 1>&6
6005 else
6006 echo "$ac_t""no" 1>&6
6007 fi
6008
6009 test -n "$CXX" && break
6010 done
6011 test -n "$CXX" || CXX="gcc"
6012
6013
6014 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6015 echo "configure:6016: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6016
6017 ac_ext=C
6018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6019 ac_cpp='$CXXCPP $CPPFLAGS'
6020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6021 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6022 cross_compiling=$ac_cv_prog_cxx_cross
6023
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6027 main(){return(0);}
6028 EOF
6029 if { (eval echo configure:6030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6030 ac_cv_prog_cxx_works=yes
6031 # If we can't run a trivial program, we are probably using a cross compiler.
6032 if (./conftest; exit) 2>/dev/null; then
6033 ac_cv_prog_cxx_cross=no
6034 else
6035 ac_cv_prog_cxx_cross=yes
6036 fi
6037 else
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6040 ac_cv_prog_cxx_works=no
6041 fi
6042 rm -fr conftest*
6043
6044 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6045 if test $ac_cv_prog_cxx_works = no; then
6046 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6047 fi
6048 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6049 echo "configure:6050: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6050 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6051 cross_compiling=$ac_cv_prog_cxx_cross
6052
6053 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6054 echo "configure:6055: checking whether we are using GNU C++" >&5
6055 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6057 else
6058 cat > conftest.C <<EOF
6059 #ifdef __GNUC__
6060 yes;
6061 #endif
6062 EOF
6063 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6064 ac_cv_prog_gxx=yes
6065 else
6066 ac_cv_prog_gxx=no
6067 fi
6068 fi
6069
6070 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6071
6072 if test $ac_cv_prog_gxx = yes; then
6073 GXX=yes
6074 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6075 ac_save_CXXFLAGS="$CXXFLAGS"
6076 CXXFLAGS=
6077 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6078 echo "configure:6079: checking whether ${CXX-g++} accepts -g" >&5
6079 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6081 else
6082 echo 'void f(){}' > conftest.cc
6083 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6084 ac_cv_prog_cxx_g=yes
6085 else
6086 ac_cv_prog_cxx_g=no
6087 fi
6088 rm -f conftest*
6089
6090 fi
6091
6092 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6093 if test "$ac_test_CXXFLAGS" = set; then
6094 CXXFLAGS="$ac_save_CXXFLAGS"
6095 elif test $ac_cv_prog_cxx_g = yes; then
6096 CXXFLAGS="-g -O2"
6097 else
6098 CXXFLAGS="-O2"
6099 fi
6100 else
6101 GXX=
6102 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
6103 fi
6104
6105
6106 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6107 echo "configure:6108: checking how to run the C++ preprocessor" >&5
6108 if test -z "$CXXCPP"; then
6109 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6111 else
6112 ac_ext=C
6113 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6114 ac_cpp='$CXXCPP $CPPFLAGS'
6115 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6116 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6117 cross_compiling=$ac_cv_prog_cxx_cross
6118 CXXCPP="${CXX-g++} -E"
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6122 #include <stdlib.h>
6123 EOF
6124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6125 { (eval echo configure:6126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6126 ac_err=`grep -v '^ *+' conftest.out`
6127 if test -z "$ac_err"; then
6128 :
6129 else
6130 echo "$ac_err" >&5
6131 echo "configure: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 rm -rf conftest*
6134 CXXCPP=/lib/cpp
6135 fi
6136 rm -f conftest*
6137 ac_cv_prog_CXXCPP="$CXXCPP"
6138 fi
6139 fi
6140 CXXCPP="$ac_cv_prog_CXXCPP"
6141 echo "$ac_t""$CXXCPP" 1>&6
6142
6143
6144 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6145
6146 ac_ext=c
6147 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6150 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6151 cross_compiling=$ac_cv_prog_cc_cross
6152
6153
6154 # Extract the first word of "ranlib", so it can be a program name with args.
6155 set dummy ranlib; ac_word=$2
6156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6157 echo "configure:6158: checking for $ac_word" >&5
6158 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6160 else
6161 if test -n "$RANLIB"; then
6162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6163 else
6164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6165 for ac_dir in $PATH; do
6166 test -z "$ac_dir" && ac_dir=.
6167 if test -f $ac_dir/$ac_word; then
6168 ac_cv_prog_RANLIB="ranlib"
6169 break
6170 fi
6171 done
6172 IFS="$ac_save_ifs"
6173 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6174 fi
6175 fi
6176 RANLIB="$ac_cv_prog_RANLIB"
6177 if test -n "$RANLIB"; then
6178 echo "$ac_t""$RANLIB" 1>&6
6179 else
6180 echo "$ac_t""no" 1>&6
6181 fi
6182
6183
6184 # Extract the first word of "ar", so it can be a program name with args.
6185 set dummy ar; ac_word=$2
6186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6187 echo "configure:6188: checking for $ac_word" >&5
6188 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6190 else
6191 if test -n "$AR"; then
6192 ac_cv_prog_AR="$AR" # Let the user override the test.
6193 else
6194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6195 for ac_dir in $PATH; do
6196 test -z "$ac_dir" && ac_dir=.
6197 if test -f $ac_dir/$ac_word; then
6198 ac_cv_prog_AR="ar"
6199 break
6200 fi
6201 done
6202 IFS="$ac_save_ifs"
6203 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6204 fi
6205 fi
6206 AR="$ac_cv_prog_AR"
6207 if test -n "$AR"; then
6208 echo "$ac_t""$AR" 1>&6
6209 else
6210 echo "$ac_t""no" 1>&6
6211 fi
6212
6213
6214 # Find a good install program. We prefer a C program (faster),
6215 # so one script is as good as another. But avoid the broken or
6216 # incompatible versions:
6217 # SysV /etc/install, /usr/sbin/install
6218 # SunOS /usr/etc/install
6219 # IRIX /sbin/install
6220 # AIX /bin/install
6221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6223 # ./install, which can be erroneously created by make from ./install.sh.
6224 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6225 echo "configure:6226: checking for a BSD compatible install" >&5
6226 if test -z "$INSTALL"; then
6227 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6
6229 else
6230 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
6231 for ac_dir in $PATH; do
6232 # Account for people who put trailing slashes in PATH elements.
6233 case "$ac_dir/" in
6234 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6235 *)
6236 # OSF1 and SCO ODT 3.0 have their own names for install.
6237 for ac_prog in ginstall installbsd scoinst install; do
6238 if test -f $ac_dir/$ac_prog; then
6239 if test $ac_prog = install &&
6240 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6241 # AIX install. It has an incompatible calling convention.
6242 # OSF/1 installbsd also uses dspmsg, but is usable.
6243 :
6244 else
6245 ac_cv_path_install="$ac_dir/$ac_prog -c"
6246 break 2
6247 fi
6248 fi
6249 done
6250 ;;
6251 esac
6252 done
6253 IFS="$ac_save_IFS"
6254
6255 fi
6256 if test "${ac_cv_path_install+set}" = set; then
6257 INSTALL="$ac_cv_path_install"
6258 else
6259 # As a last resort, use the slow shell script. We don't cache a
6260 # path for INSTALL within a source directory, because that will
6261 # break other packages using the cache if that directory is
6262 # removed, or if the path is relative.
6263 INSTALL="$ac_install_sh"
6264 fi
6265 fi
6266 echo "$ac_t""$INSTALL" 1>&6
6267
6268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6269 # It thinks the first close brace ends the variable substitution.
6270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6271
6272 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6273
6274
6275 # Extract the first word of "strip", so it can be a program name with args.
6276 set dummy strip; ac_word=$2
6277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6278 echo "configure:6279: checking for $ac_word" >&5
6279 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6281 else
6282 if test -n "$STRIP"; then
6283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6284 else
6285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6286 for ac_dir in $PATH; do
6287 test -z "$ac_dir" && ac_dir=.
6288 if test -f $ac_dir/$ac_word; then
6289 ac_cv_prog_STRIP="strip"
6290 break
6291 fi
6292 done
6293 IFS="$ac_save_ifs"
6294 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6295 fi
6296 fi
6297 STRIP="$ac_cv_prog_STRIP"
6298 if test -n "$STRIP"; then
6299 echo "$ac_t""$STRIP" 1>&6
6300 else
6301 echo "$ac_t""no" 1>&6
6302 fi
6303
6304
6305 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6306 echo "configure:6307: checking "make for VPATH support"" >&5
6307 cat - << EOF > confMake
6308 check : file
6309 cp \$? \$@
6310 cp \$? final_file
6311 EOF
6312
6313 if test ! -d sub ; then
6314 mkdir sub
6315 fi
6316 echo dummy > sub/file
6317 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6318 RESULT=$?
6319 rm -f sub/file check final_file confMake
6320 rmdir sub
6321 if test "$RESULT" = 0; then
6322 echo "$ac_t""yes" 1>&6
6323 else
6324 echo "$ac_t""no" 1>&6
6325 { echo "configure: error: You need a make-utility that is able to use the variable
6326 VPATH correctly.
6327 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6328 fi
6329
6330 for ac_prog in 'bison -y' byacc
6331 do
6332 # Extract the first word of "$ac_prog", so it can be a program name with args.
6333 set dummy $ac_prog; ac_word=$2
6334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6335 echo "configure:6336: checking for $ac_word" >&5
6336 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6337 echo $ac_n "(cached) $ac_c" 1>&6
6338 else
6339 if test -n "$YACC"; then
6340 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6341 else
6342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6343 for ac_dir in $PATH; do
6344 test -z "$ac_dir" && ac_dir=.
6345 if test -f $ac_dir/$ac_word; then
6346 ac_cv_prog_YACC="$ac_prog"
6347 break
6348 fi
6349 done
6350 IFS="$ac_save_ifs"
6351 fi
6352 fi
6353 YACC="$ac_cv_prog_YACC"
6354 if test -n "$YACC"; then
6355 echo "$ac_t""$YACC" 1>&6
6356 else
6357 echo "$ac_t""no" 1>&6
6358 fi
6359
6360 test -n "$YACC" && break
6361 done
6362 test -n "$YACC" || YACC="yacc"
6363
6364
6365 # Extract the first word of "flex", so it can be a program name with args.
6366 set dummy flex; ac_word=$2
6367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6368 echo "configure:6369: checking for $ac_word" >&5
6369 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6371 else
6372 if test -n "$LEX"; then
6373 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6374 else
6375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6376 for ac_dir in $PATH; do
6377 test -z "$ac_dir" && ac_dir=.
6378 if test -f $ac_dir/$ac_word; then
6379 ac_cv_prog_LEX="flex"
6380 break
6381 fi
6382 done
6383 IFS="$ac_save_ifs"
6384 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6385 fi
6386 fi
6387 LEX="$ac_cv_prog_LEX"
6388 if test -n "$LEX"; then
6389 echo "$ac_t""$LEX" 1>&6
6390 else
6391 echo "$ac_t""no" 1>&6
6392 fi
6393
6394 if test -z "$LEXLIB"
6395 then
6396 case "$LEX" in
6397 flex*) ac_lib=fl ;;
6398 *) ac_lib=l ;;
6399 esac
6400 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6401 echo "configure:6402: checking for yywrap in -l$ac_lib" >&5
6402 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6405 else
6406 ac_save_LIBS="$LIBS"
6407 LIBS="-l$ac_lib $LIBS"
6408 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure"
6410 #include "confdefs.h"
6411 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6414 char yywrap();
6415
6416 int main() {
6417 yywrap()
6418 ; return 0; }
6419 EOF
6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6421 rm -rf conftest*
6422 eval "ac_cv_lib_$ac_lib_var=yes"
6423 else
6424 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6426 rm -rf conftest*
6427 eval "ac_cv_lib_$ac_lib_var=no"
6428 fi
6429 rm -f conftest*
6430 LIBS="$ac_save_LIBS"
6431
6432 fi
6433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6434 echo "$ac_t""yes" 1>&6
6435 LEXLIB="-l$ac_lib"
6436 else
6437 echo "$ac_t""no" 1>&6
6438 fi
6439
6440 fi
6441
6442
6443 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6444 echo "configure:6445: checking whether ln -s works" >&5
6445 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6447 else
6448 rm -f conftestdata
6449 if ln -s X conftestdata 2>/dev/null
6450 then
6451 rm -f conftestdata
6452 ac_cv_prog_LN_S="ln -s"
6453 else
6454 ac_cv_prog_LN_S=ln
6455 fi
6456 fi
6457 LN_S="$ac_cv_prog_LN_S"
6458 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6459 echo "$ac_t""yes" 1>&6
6460 else
6461 echo "$ac_t""no" 1>&6
6462 fi
6463
6464
6465
6466 SEARCH_INCLUDE="\
6467 /usr/Motif-1.2/include \
6468 /usr/Motif-2.1/include \
6469 \
6470 /usr/include/Motif1.2 \
6471 /opt/xpm/include/X11 \
6472 /opt/GBxpm/include/ \
6473 /opt/GBxpm/X11/include/ \
6474 \
6475 /usr/Motif1.2/include \
6476 /usr/dt/include \
6477 /usr/include/Xm \
6478 \
6479 /usr/X11R6/include \
6480 /usr/X11R5/include \
6481 /usr/X11R4/include \
6482 \
6483 /usr/X11R6/lib \
6484 /usr/X11R5/lib \
6485 /usr/X11R4/lib \
6486 \
6487 /usr/include/X11R6 \
6488 /usr/include/X11R5 \
6489 /usr/include/X11R4 \
6490 \
6491 /usr/local/X11R6/include \
6492 /usr/local/X11R5/include \
6493 /usr/local/X11R4/include \
6494 \
6495 /usr/local/include/X11R6 \
6496 /usr/local/include/X11R5 \
6497 /usr/local/include/X11R4 \
6498 \
6499 /usr/X11/include \
6500 /usr/include/X11 \
6501 /usr/local/X11/include \
6502 /usr/local/include/X11 \
6503 \
6504 /usr/X386/include \
6505 /usr/x386/include \
6506 /usr/XFree86/include/X11 \
6507 \
6508 /usr/include \
6509 /usr/local/include \
6510 \
6511 /usr/include/gtk \
6512 /usr/local/include/gtk \
6513 /usr/include/glib \
6514 /usr/local/include/glib \
6515 \
6516 /usr/include/qt \
6517 /usr/local/include/qt \
6518 \
6519 /usr/include/windows \
6520 /usr/include/wine \
6521 /usr/local/include/wine \
6522 \
6523 /usr/unsupported/include \
6524 /usr/athena/include \
6525 /usr/local/x11r5/include \
6526 /usr/lpp/Xamples/include \
6527 \
6528 /usr/openwin/include \
6529 /usr/openwin/share/include \
6530 "
6531
6532 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6533
6534
6535 cat > confcache <<\EOF
6536 # This file is a shell script that caches the results of configure
6537 # tests run on this system so they can be shared between configure
6538 # scripts and configure runs. It is not useful on other systems.
6539 # If it contains results you don't want to keep, you may remove or edit it.
6540 #
6541 # By default, configure uses ./config.cache as the cache file,
6542 # creating it if it does not exist already. You can give configure
6543 # the --cache-file=FILE option to use a different cache file; that is
6544 # what configure does when it calls configure scripts in
6545 # subdirectories, so they share the cache.
6546 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6547 # config.status only pays attention to the cache file if you give it the
6548 # --recheck option to rerun configure.
6549 #
6550 EOF
6551 # The following way of writing the cache mishandles newlines in values,
6552 # but we know of no workaround that is simple, portable, and efficient.
6553 # So, don't put newlines in cache variables' values.
6554 # Ultrix sh set writes to stderr and can't be redirected directly,
6555 # and sets the high bit in the cache file unless we assign to the vars.
6556 (set) 2>&1 |
6557 case `(ac_space=' '; set) 2>&1` in
6558 *ac_space=\ *)
6559 # `set' does not quote correctly, so add quotes (double-quote substitution
6560 # turns \\\\ into \\, and sed turns \\ into \).
6561 sed -n \
6562 -e "s/'/'\\\\''/g" \
6563 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6564 ;;
6565 *)
6566 # `set' quotes correctly as required by POSIX, so do not add quotes.
6567 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6568 ;;
6569 esac >> confcache
6570 if cmp -s $cache_file confcache; then
6571 :
6572 else
6573 if test -w $cache_file; then
6574 echo "updating cache $cache_file"
6575 cat confcache > $cache_file
6576 else
6577 echo "not updating unwritable cache $cache_file"
6578 fi
6579 fi
6580 rm -f confcache
6581
6582
6583
6584 if test "$wxUSE_GUI" = "yes"; then
6585
6586 TOOLKIT=
6587 TOOLKIT_INCLUDE=
6588
6589 GUIOBJS=
6590 COMMONOBJS=
6591 GENERICOBJS=
6592
6593 GUI_TK_LIBRARY=
6594 GUI_TK_LINK=
6595
6596 WXGTK12=
6597
6598 WXWINE=
6599
6600 PROGRAM_EXT=
6601
6602 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6603 if test "$cross_compiling" = "yes" ; then
6604 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6605 else
6606 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6607 echo "configure:6608: checking for Windows headers" >&5
6608
6609 ac_find_includes=
6610 for ac_dir in $SEARCH_INCLUDE;
6611 do
6612 if test -f "$ac_dir/windows.h"; then
6613 ac_find_includes=$ac_dir
6614 break
6615 fi
6616 done
6617
6618 if test "$ac_find_includes" != "" ; then
6619 echo "$ac_t""found $ac_find_includes" 1>&6
6620 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6621 else
6622 echo "$ac_t""no" 1>&6
6623 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6624 fi
6625 fi
6626
6627 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6628 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6629
6630 TOOLKIT=MSW
6631
6632 GUIOBJS="\$(MSW_GUIOBJS)"
6633 GUIHEADERS="\$(MSW_HEADERS)"
6634 COMMONOBJS="\$(MSW_COMMONOBJS)"
6635 GENERICOBJS="\$(MSW_GENERICOBJS)"
6636 UNIXOBJS=
6637 GUIDIST=MSW_DIST
6638 PROGRAM_EXT=.exe
6639 fi
6640
6641 if test "$wxUSE_GTK" = 1; then
6642
6643 if test x$gtk_config_exec_prefix != x ; then
6644 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6645 if test x${GTK_CONFIG+set} != xset ; then
6646 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6647 fi
6648 fi
6649 if test x$gtk_config_prefix != x ; then
6650 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6651 if test x${GTK_CONFIG+set} != xset ; then
6652 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6653 fi
6654 fi
6655
6656 # Extract the first word of "gtk-config", so it can be a program name with args.
6657 set dummy gtk-config; ac_word=$2
6658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6659 echo "configure:6660: checking for $ac_word" >&5
6660 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6662 else
6663 case "$GTK_CONFIG" in
6664 /*)
6665 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6666 ;;
6667 *)
6668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6669 for ac_dir in $PATH; do
6670 test -z "$ac_dir" && ac_dir=.
6671 if test -f $ac_dir/$ac_word; then
6672 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6673 break
6674 fi
6675 done
6676 IFS="$ac_save_ifs"
6677 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6678 ;;
6679 esac
6680 fi
6681 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6682 if test -n "$GTK_CONFIG"; then
6683 echo "$ac_t""$GTK_CONFIG" 1>&6
6684 else
6685 echo "$ac_t""no" 1>&6
6686 fi
6687
6688 min_gtk_version=1.2.0
6689 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6690 echo "configure:6691: checking for GTK - version >= $min_gtk_version" >&5
6691 no_gtk=""
6692 if test "$GTK_CONFIG" != "no" ; then
6693 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6694 GTK_LIBS=`$GTK_CONFIG --libs`
6695 ac_save_CFLAGS="$CFLAGS"
6696 ac_save_LIBS="$LIBS"
6697 CFLAGS="$CFLAGS $GTK_CFLAGS"
6698 LIBS="$LIBS $GTK_LIBS"
6699 if test "$cross_compiling" = yes; then
6700 echo $ac_n "cross compiling; assumed OK... $ac_c"
6701 else
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6705
6706 #include <gtk/gtk.h>
6707 #include <stdio.h>
6708
6709 int
6710 main ()
6711 {
6712 int major, minor, micro;
6713
6714 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6715 printf("%s, bad version string\n", "$min_gtk_version");
6716 exit(1);
6717 }
6718
6719 if (gtk_minor_version == 1) return FALSE;
6720
6721 return !((gtk_major_version > major) ||
6722 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6723 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6724 }
6725
6726 EOF
6727 if { (eval echo configure:6728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6728 then
6729 :
6730 else
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 rm -fr conftest*
6734 no_gtk=yes
6735 fi
6736 rm -fr conftest*
6737 fi
6738
6739 CFLAGS="$ac_save_CFLAGS"
6740 LIBS="$ac_save_LIBS"
6741 else
6742 no_gtk=yes
6743 fi
6744 if test "x$no_gtk" = x ; then
6745 echo "$ac_t""yes" 1>&6
6746 WXGTK12=1
6747 else
6748 echo "$ac_t""no" 1>&6
6749 GTK_CFLAGS=""
6750 GTK_LIBS=""
6751 :
6752 fi
6753
6754
6755
6756 if test "$WXGTK12" != 1; then
6757
6758 if test x$gtk_config_exec_prefix != x ; then
6759 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6760 if test x${GTK_CONFIG+set} != xset ; then
6761 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6762 fi
6763 fi
6764 if test x$gtk_config_prefix != x ; then
6765 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6766 if test x${GTK_CONFIG+set} != xset ; then
6767 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6768 fi
6769 fi
6770
6771 # Extract the first word of "gtk-config", so it can be a program name with args.
6772 set dummy gtk-config; ac_word=$2
6773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6774 echo "configure:6775: checking for $ac_word" >&5
6775 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6776 echo $ac_n "(cached) $ac_c" 1>&6
6777 else
6778 case "$GTK_CONFIG" in
6779 /*)
6780 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6781 ;;
6782 *)
6783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6784 for ac_dir in $PATH; do
6785 test -z "$ac_dir" && ac_dir=.
6786 if test -f $ac_dir/$ac_word; then
6787 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6788 break
6789 fi
6790 done
6791 IFS="$ac_save_ifs"
6792 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6793 ;;
6794 esac
6795 fi
6796 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6797 if test -n "$GTK_CONFIG"; then
6798 echo "$ac_t""$GTK_CONFIG" 1>&6
6799 else
6800 echo "$ac_t""no" 1>&6
6801 fi
6802
6803 min_gtk_version=1.0.0
6804 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6805 echo "configure:6806: checking for GTK - version >= $min_gtk_version" >&5
6806 no_gtk=""
6807 if test "$GTK_CONFIG" != "no" ; then
6808 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6809 GTK_LIBS=`$GTK_CONFIG --libs`
6810 ac_save_CFLAGS="$CFLAGS"
6811 ac_save_LIBS="$LIBS"
6812 CFLAGS="$CFLAGS $GTK_CFLAGS"
6813 LIBS="$LIBS $GTK_LIBS"
6814 if test "$cross_compiling" = yes; then
6815 echo $ac_n "cross compiling; assumed OK... $ac_c"
6816 else
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820
6821 #include <gtk/gtk.h>
6822 #include <stdio.h>
6823
6824 int
6825 main ()
6826 {
6827 int major, minor, micro;
6828
6829 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6830 printf("%s, bad version string\n", "$min_gtk_version");
6831 exit(1);
6832 }
6833
6834 if (gtk_minor_version == 1) return FALSE;
6835
6836 return !((gtk_major_version > major) ||
6837 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6838 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6839 }
6840
6841 EOF
6842 if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6843 then
6844 :
6845 else
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6848 rm -fr conftest*
6849 no_gtk=yes
6850 fi
6851 rm -fr conftest*
6852 fi
6853
6854 CFLAGS="$ac_save_CFLAGS"
6855 LIBS="$ac_save_LIBS"
6856 else
6857 no_gtk=yes
6858 fi
6859 if test "x$no_gtk" = x ; then
6860 echo "$ac_t""yes" 1>&6
6861 :
6862 else
6863 echo "$ac_t""no" 1>&6
6864 GTK_CFLAGS=""
6865 GTK_LIBS=""
6866 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
6867 fi
6868
6869
6870
6871 fi
6872
6873 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6874 GUI_TK_LIBRARY="$GTK_LIBS"
6875 TOOLKIT=GTK
6876
6877 GUIOBJS="\$(GTK_GUIOBJS)"
6878 GUIHEADERS="\$(GTK_HEADERS)"
6879 COMMONOBJS="\$(GTK_COMMONOBJS)"
6880 GENERICOBJS="\$(GTK_GENERICOBJS)"
6881 GUIDEPS="\$(GTK_GUIDEPS)"
6882 COMMONDEPS="\$(GTK_COMMONDEPS)"
6883 GENERICDEPS="\$(GTK_GENERICDEPS)"
6884 UNIXOBJS="\$(UNIX_OBJS)"
6885 GUIDIST=GTK_DIST
6886 fi
6887
6888 if test "$wxUSE_WINE" = 1; then
6889 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
6890 echo "configure:6891: checking for WINE includes" >&5
6891
6892 ac_find_includes=
6893 for ac_dir in $SEARCH_INCLUDE;
6894 do
6895 if test -f "$ac_dir/windows.h"; then
6896 ac_find_includes=$ac_dir
6897 break
6898 fi
6899 done
6900
6901 if test "$ac_find_includes" != "" ; then
6902 echo "$ac_t""found $ac_find_includes" 1>&6
6903 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6904 else
6905 echo "$ac_t""no" 1>&6
6906 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6907 fi
6908
6909 XPM_LINK=""
6910 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6911 echo "configure:6912: checking for Xpm library" >&5
6912
6913 ac_find_libraries=
6914 for ac_dir in $SEARCH_LIB;
6915 do
6916 for ac_extension in a so sl; do
6917 if test -f "$ac_dir/libXpm.$ac_extension"; then
6918 ac_find_libraries=$ac_dir
6919 break 2
6920 fi
6921 done
6922 done
6923
6924 if test "$ac_find_libraries" != "" ; then
6925 GUI_TK_LIBRARY="-L$ac_find_libraries"
6926 XPM_LINK="-lXpm"
6927 cat >> confdefs.h <<\EOF
6928 #define wxHAVE_LIB_XPM 1
6929 EOF
6930
6931 echo "$ac_t""found at $ac_find_libraries" 1>&6
6932 else
6933 echo "$ac_t""no" 1>&6
6934 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
6935 fi
6936
6937 MESA_LINK=""
6938 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
6939 echo "configure:6940: checking for Mesa library" >&5
6940
6941 ac_find_libraries=
6942 for ac_dir in $SEARCH_LIB;
6943 do
6944 for ac_extension in a so sl; do
6945 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6946 ac_find_libraries=$ac_dir
6947 break 2
6948 fi
6949 done
6950 done
6951
6952 if test "$ac_find_libraries" != "" ; then
6953 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
6954 MESA_LINK="-lMesaGL"
6955 echo "$ac_t""found at $ac_find_libraries" 1>&6
6956 else
6957 { echo "configure: error: no" 1>&2; exit 1; }
6958 fi
6959
6960 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
6961 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
6962 WXWINE=1
6963 TOOLKIT=MSW
6964
6965 GUIHEADERS="\$(MSW_HEADERS)"
6966 GUIOBJS="\$(MSW_GUIOBJS)"
6967 COMMONOBJS="\$(MSW_COMMONOBJS)"
6968 GENERICOBJS="\$(MSW_GENERICOBJS)"
6969 GUIDEPS="\$(MSW_GUIDEPS)"
6970 COMMONDEPS="\$(MSW_COMMONDEPS)"
6971 GENERICDEPS="\$(MSW_GENERICDEPS)"
6972 UNIXOBJS="\$(UNIX_OBJS)"
6973 GUIDIST=MSW_DIST
6974 fi
6975
6976 if test "$wxUSE_MOTIF" = 1; then
6977 # If we find X, set shell vars x_includes and x_libraries to the
6978 # paths, otherwise set no_x=yes.
6979 # Uses ac_ vars as temps to allow command line to override cache and checks.
6980 # --without-x overrides everything else, but does not touch the cache.
6981 echo $ac_n "checking for X""... $ac_c" 1>&6
6982 echo "configure:6983: checking for X" >&5
6983
6984 # Check whether --with-x or --without-x was given.
6985 if test "${with_x+set}" = set; then
6986 withval="$with_x"
6987 :
6988 fi
6989
6990 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6991 if test "x$with_x" = xno; then
6992 # The user explicitly disabled X.
6993 have_x=disabled
6994 else
6995 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6996 # Both variables are already set.
6997 have_x=yes
6998 else
6999 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7000 echo $ac_n "(cached) $ac_c" 1>&6
7001 else
7002 # One or both of the vars are not set, and there is no cached value.
7003 ac_x_includes=NO ac_x_libraries=NO
7004 rm -fr conftestdir
7005 if mkdir conftestdir; then
7006 cd conftestdir
7007 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7008 cat > Imakefile <<'EOF'
7009 acfindx:
7010 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7011 EOF
7012 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7013 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7014 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7015 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7016 for ac_extension in a so sl; do
7017 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7018 test -f $ac_im_libdir/libX11.$ac_extension; then
7019 ac_im_usrlibdir=$ac_im_libdir; break
7020 fi
7021 done
7022 # Screen out bogus values from the imake configuration. They are
7023 # bogus both because they are the default anyway, and because
7024 # using them would break gcc on systems where it needs fixed includes.
7025 case "$ac_im_incroot" in
7026 /usr/include) ;;
7027 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7028 esac
7029 case "$ac_im_usrlibdir" in
7030 /usr/lib | /lib) ;;
7031 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7032 esac
7033 fi
7034 cd ..
7035 rm -fr conftestdir
7036 fi
7037
7038 if test "$ac_x_includes" = NO; then
7039 # Guess where to find include files, by looking for this one X11 .h file.
7040 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7041
7042 # First, try using that file with no special directory specified.
7043 cat > conftest.$ac_ext <<EOF
7044 #line 7045 "configure"
7045 #include "confdefs.h"
7046 #include <$x_direct_test_include>
7047 EOF
7048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7049 { (eval echo configure:7050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7050 ac_err=`grep -v '^ *+' conftest.out`
7051 if test -z "$ac_err"; then
7052 rm -rf conftest*
7053 # We can compile using X headers with no special include directory.
7054 ac_x_includes=
7055 else
7056 echo "$ac_err" >&5
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7059 rm -rf conftest*
7060 # Look for the header file in a standard set of common directories.
7061 # Check X11 before X11Rn because it is often a symlink to the current release.
7062 for ac_dir in \
7063 /usr/X11/include \
7064 /usr/X11R6/include \
7065 /usr/X11R5/include \
7066 /usr/X11R4/include \
7067 \
7068 /usr/include/X11 \
7069 /usr/include/X11R6 \
7070 /usr/include/X11R5 \
7071 /usr/include/X11R4 \
7072 \
7073 /usr/local/X11/include \
7074 /usr/local/X11R6/include \
7075 /usr/local/X11R5/include \
7076 /usr/local/X11R4/include \
7077 \
7078 /usr/local/include/X11 \
7079 /usr/local/include/X11R6 \
7080 /usr/local/include/X11R5 \
7081 /usr/local/include/X11R4 \
7082 \
7083 /usr/X386/include \
7084 /usr/x386/include \
7085 /usr/XFree86/include/X11 \
7086 \
7087 /usr/include \
7088 /usr/local/include \
7089 /usr/unsupported/include \
7090 /usr/athena/include \
7091 /usr/local/x11r5/include \
7092 /usr/lpp/Xamples/include \
7093 \
7094 /usr/openwin/include \
7095 /usr/openwin/share/include \
7096 ; \
7097 do
7098 if test -r "$ac_dir/$x_direct_test_include"; then
7099 ac_x_includes=$ac_dir
7100 break
7101 fi
7102 done
7103 fi
7104 rm -f conftest*
7105 fi # $ac_x_includes = NO
7106
7107 if test "$ac_x_libraries" = NO; then
7108 # Check for the libraries.
7109
7110 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7111 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7112
7113 # See if we find them without any special options.
7114 # Don't add to $LIBS permanently.
7115 ac_save_LIBS="$LIBS"
7116 LIBS="-l$x_direct_test_library $LIBS"
7117 cat > conftest.$ac_ext <<EOF
7118 #line 7119 "configure"
7119 #include "confdefs.h"
7120
7121 int main() {
7122 ${x_direct_test_function}()
7123 ; return 0; }
7124 EOF
7125 if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7126 rm -rf conftest*
7127 LIBS="$ac_save_LIBS"
7128 # We can link X programs with no special library path.
7129 ac_x_libraries=
7130 else
7131 echo "configure: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7133 rm -rf conftest*
7134 LIBS="$ac_save_LIBS"
7135 # First see if replacing the include by lib works.
7136 # Check X11 before X11Rn because it is often a symlink to the current release.
7137 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7138 /usr/X11/lib \
7139 /usr/X11R6/lib \
7140 /usr/X11R5/lib \
7141 /usr/X11R4/lib \
7142 \
7143 /usr/lib/X11 \
7144 /usr/lib/X11R6 \
7145 /usr/lib/X11R5 \
7146 /usr/lib/X11R4 \
7147 \
7148 /usr/local/X11/lib \
7149 /usr/local/X11R6/lib \
7150 /usr/local/X11R5/lib \
7151 /usr/local/X11R4/lib \
7152 \
7153 /usr/local/lib/X11 \
7154 /usr/local/lib/X11R6 \
7155 /usr/local/lib/X11R5 \
7156 /usr/local/lib/X11R4 \
7157 \
7158 /usr/X386/lib \
7159 /usr/x386/lib \
7160 /usr/XFree86/lib/X11 \
7161 \
7162 /usr/lib \
7163 /usr/local/lib \
7164 /usr/unsupported/lib \
7165 /usr/athena/lib \
7166 /usr/local/x11r5/lib \
7167 /usr/lpp/Xamples/lib \
7168 /lib/usr/lib/X11 \
7169 \
7170 /usr/openwin/lib \
7171 /usr/openwin/share/lib \
7172 ; \
7173 do
7174 for ac_extension in a so sl; do
7175 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7176 ac_x_libraries=$ac_dir
7177 break 2
7178 fi
7179 done
7180 done
7181 fi
7182 rm -f conftest*
7183 fi # $ac_x_libraries = NO
7184
7185 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7186 # Didn't find X anywhere. Cache the known absence of X.
7187 ac_cv_have_x="have_x=no"
7188 else
7189 # Record where we found X for the cache.
7190 ac_cv_have_x="have_x=yes \
7191 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7192 fi
7193 fi
7194 fi
7195 eval "$ac_cv_have_x"
7196 fi # $with_x != no
7197
7198 if test "$have_x" != yes; then
7199 echo "$ac_t""$have_x" 1>&6
7200 no_x=yes
7201 else
7202 # If each of the values was on the command line, it overrides each guess.
7203 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7204 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7205 # Update the cache value to reflect the command line values.
7206 ac_cv_have_x="have_x=yes \
7207 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7208 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7209 fi
7210
7211 if test "$no_x" = yes; then
7212 # Not all programs may use this symbol, but it does not hurt to define it.
7213 cat >> confdefs.h <<\EOF
7214 #define X_DISPLAY_MISSING 1
7215 EOF
7216
7217 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7218 else
7219 if test -n "$x_includes"; then
7220 X_CFLAGS="$X_CFLAGS -I$x_includes"
7221 fi
7222
7223 # It would also be nice to do this for all -L options, not just this one.
7224 if test -n "$x_libraries"; then
7225 X_LIBS="$X_LIBS -L$x_libraries"
7226 # For Solaris; some versions of Sun CC require a space after -R and
7227 # others require no space. Words are not sufficient . . . .
7228 case "`(uname -sr) 2>/dev/null`" in
7229 "SunOS 5"*)
7230 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7231 echo "configure:7232: checking whether -R must be followed by a space" >&5
7232 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236
7237 int main() {
7238
7239 ; return 0; }
7240 EOF
7241 if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7242 rm -rf conftest*
7243 ac_R_nospace=yes
7244 else
7245 echo "configure: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7247 rm -rf conftest*
7248 ac_R_nospace=no
7249 fi
7250 rm -f conftest*
7251 if test $ac_R_nospace = yes; then
7252 echo "$ac_t""no" 1>&6
7253 X_LIBS="$X_LIBS -R$x_libraries"
7254 else
7255 LIBS="$ac_xsave_LIBS -R $x_libraries"
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7259
7260 int main() {
7261
7262 ; return 0; }
7263 EOF
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7265 rm -rf conftest*
7266 ac_R_space=yes
7267 else
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 rm -rf conftest*
7271 ac_R_space=no
7272 fi
7273 rm -f conftest*
7274 if test $ac_R_space = yes; then
7275 echo "$ac_t""yes" 1>&6
7276 X_LIBS="$X_LIBS -R $x_libraries"
7277 else
7278 echo "$ac_t""neither works" 1>&6
7279 fi
7280 fi
7281 LIBS="$ac_xsave_LIBS"
7282 esac
7283 fi
7284
7285 # Check for system-dependent libraries X programs must link with.
7286 # Do this before checking for the system-independent R6 libraries
7287 # (-lICE), since we may need -lsocket or whatever for X linking.
7288
7289 if test "$ISC" = yes; then
7290 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7291 else
7292 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7293 # libraries were built with DECnet support. And karl@cs.umb.edu says
7294 # the Alpha needs dnet_stub (dnet does not exist).
7295 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7296 echo "configure:7297: checking for dnet_ntoa in -ldnet" >&5
7297 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7299 echo $ac_n "(cached) $ac_c" 1>&6
7300 else
7301 ac_save_LIBS="$LIBS"
7302 LIBS="-ldnet $LIBS"
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7306 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7309 char dnet_ntoa();
7310
7311 int main() {
7312 dnet_ntoa()
7313 ; return 0; }
7314 EOF
7315 if { (eval echo configure:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7316 rm -rf conftest*
7317 eval "ac_cv_lib_$ac_lib_var=yes"
7318 else
7319 echo "configure: failed program was:" >&5
7320 cat conftest.$ac_ext >&5
7321 rm -rf conftest*
7322 eval "ac_cv_lib_$ac_lib_var=no"
7323 fi
7324 rm -f conftest*
7325 LIBS="$ac_save_LIBS"
7326
7327 fi
7328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7329 echo "$ac_t""yes" 1>&6
7330 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7331 else
7332 echo "$ac_t""no" 1>&6
7333 fi
7334
7335 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7336 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7337 echo "configure:7338: checking for dnet_ntoa in -ldnet_stub" >&5
7338 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7341 else
7342 ac_save_LIBS="$LIBS"
7343 LIBS="-ldnet_stub $LIBS"
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7347 /* Override any gcc2 internal prototype to avoid an error. */
7348 /* We use char because int might match the return type of a gcc2
7349 builtin and then its argument prototype would still apply. */
7350 char dnet_ntoa();
7351
7352 int main() {
7353 dnet_ntoa()
7354 ; return 0; }
7355 EOF
7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7357 rm -rf conftest*
7358 eval "ac_cv_lib_$ac_lib_var=yes"
7359 else
7360 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7362 rm -rf conftest*
7363 eval "ac_cv_lib_$ac_lib_var=no"
7364 fi
7365 rm -f conftest*
7366 LIBS="$ac_save_LIBS"
7367
7368 fi
7369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7370 echo "$ac_t""yes" 1>&6
7371 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7372 else
7373 echo "$ac_t""no" 1>&6
7374 fi
7375
7376 fi
7377
7378 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7379 # to get the SysV transport functions.
7380 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7381 # needs -lnsl.
7382 # The nsl library prevents programs from opening the X display
7383 # on Irix 5.2, according to dickey@clark.net.
7384 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7385 echo "configure:7386: checking for gethostbyname" >&5
7386 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7387 echo $ac_n "(cached) $ac_c" 1>&6
7388 else
7389 cat > conftest.$ac_ext <<EOF
7390 #line 7391 "configure"
7391 #include "confdefs.h"
7392 /* System header to define __stub macros and hopefully few prototypes,
7393 which can conflict with char gethostbyname(); below. */
7394 #include <assert.h>
7395 /* Override any gcc2 internal prototype to avoid an error. */
7396 /* We use char because int might match the return type of a gcc2
7397 builtin and then its argument prototype would still apply. */
7398 char gethostbyname();
7399
7400 int main() {
7401
7402 /* The GNU C library defines this for functions which it implements
7403 to always fail with ENOSYS. Some functions are actually named
7404 something starting with __ and the normal name is an alias. */
7405 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7406 choke me
7407 #else
7408 gethostbyname();
7409 #endif
7410
7411 ; return 0; }
7412 EOF
7413 if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7414 rm -rf conftest*
7415 eval "ac_cv_func_gethostbyname=yes"
7416 else
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7419 rm -rf conftest*
7420 eval "ac_cv_func_gethostbyname=no"
7421 fi
7422 rm -f conftest*
7423 fi
7424
7425 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7426 echo "$ac_t""yes" 1>&6
7427 :
7428 else
7429 echo "$ac_t""no" 1>&6
7430 fi
7431
7432 if test $ac_cv_func_gethostbyname = no; then
7433 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7434 echo "configure:7435: checking for gethostbyname in -lnsl" >&5
7435 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7437 echo $ac_n "(cached) $ac_c" 1>&6
7438 else
7439 ac_save_LIBS="$LIBS"
7440 LIBS="-lnsl $LIBS"
7441 cat > conftest.$ac_ext <<EOF
7442 #line 7443 "configure"
7443 #include "confdefs.h"
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 /* We use char because int might match the return type of a gcc2
7446 builtin and then its argument prototype would still apply. */
7447 char gethostbyname();
7448
7449 int main() {
7450 gethostbyname()
7451 ; return 0; }
7452 EOF
7453 if { (eval echo configure:7454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7454 rm -rf conftest*
7455 eval "ac_cv_lib_$ac_lib_var=yes"
7456 else
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7459 rm -rf conftest*
7460 eval "ac_cv_lib_$ac_lib_var=no"
7461 fi
7462 rm -f conftest*
7463 LIBS="$ac_save_LIBS"
7464
7465 fi
7466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7467 echo "$ac_t""yes" 1>&6
7468 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7469 else
7470 echo "$ac_t""no" 1>&6
7471 fi
7472
7473 fi
7474
7475 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7476 # socket/setsockopt and other routines are undefined under SCO ODT
7477 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7478 # on later versions), says simon@lia.di.epfl.ch: it contains
7479 # gethostby* variants that don't use the nameserver (or something).
7480 # -lsocket must be given before -lnsl if both are needed.
7481 # We assume that if connect needs -lnsl, so does gethostbyname.
7482 echo $ac_n "checking for connect""... $ac_c" 1>&6
7483 echo "configure:7484: checking for connect" >&5
7484 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7486 else
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 /* System header to define __stub macros and hopefully few prototypes,
7491 which can conflict with char connect(); below. */
7492 #include <assert.h>
7493 /* Override any gcc2 internal prototype to avoid an error. */
7494 /* We use char because int might match the return type of a gcc2
7495 builtin and then its argument prototype would still apply. */
7496 char connect();
7497
7498 int main() {
7499
7500 /* The GNU C library defines this for functions which it implements
7501 to always fail with ENOSYS. Some functions are actually named
7502 something starting with __ and the normal name is an alias. */
7503 #if defined (__stub_connect) || defined (__stub___connect)
7504 choke me
7505 #else
7506 connect();
7507 #endif
7508
7509 ; return 0; }
7510 EOF
7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7512 rm -rf conftest*
7513 eval "ac_cv_func_connect=yes"
7514 else
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7517 rm -rf conftest*
7518 eval "ac_cv_func_connect=no"
7519 fi
7520 rm -f conftest*
7521 fi
7522
7523 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7524 echo "$ac_t""yes" 1>&6
7525 :
7526 else
7527 echo "$ac_t""no" 1>&6
7528 fi
7529
7530 if test $ac_cv_func_connect = no; then
7531 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7532 echo "configure:7533: checking for connect in -lsocket" >&5
7533 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7535 echo $ac_n "(cached) $ac_c" 1>&6
7536 else
7537 ac_save_LIBS="$LIBS"
7538 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7539 cat > conftest.$ac_ext <<EOF
7540 #line 7541 "configure"
7541 #include "confdefs.h"
7542 /* Override any gcc2 internal prototype to avoid an error. */
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7545 char connect();
7546
7547 int main() {
7548 connect()
7549 ; return 0; }
7550 EOF
7551 if { (eval echo configure:7552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7552 rm -rf conftest*
7553 eval "ac_cv_lib_$ac_lib_var=yes"
7554 else
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7557 rm -rf conftest*
7558 eval "ac_cv_lib_$ac_lib_var=no"
7559 fi
7560 rm -f conftest*
7561 LIBS="$ac_save_LIBS"
7562
7563 fi
7564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7565 echo "$ac_t""yes" 1>&6
7566 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7567 else
7568 echo "$ac_t""no" 1>&6
7569 fi
7570
7571 fi
7572
7573 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7574 echo $ac_n "checking for remove""... $ac_c" 1>&6
7575 echo "configure:7576: checking for remove" >&5
7576 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7578 else
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7582 /* System header to define __stub macros and hopefully few prototypes,
7583 which can conflict with char remove(); below. */
7584 #include <assert.h>
7585 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7588 char remove();
7589
7590 int main() {
7591
7592 /* The GNU C library defines this for functions which it implements
7593 to always fail with ENOSYS. Some functions are actually named
7594 something starting with __ and the normal name is an alias. */
7595 #if defined (__stub_remove) || defined (__stub___remove)
7596 choke me
7597 #else
7598 remove();
7599 #endif
7600
7601 ; return 0; }
7602 EOF
7603 if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7604 rm -rf conftest*
7605 eval "ac_cv_func_remove=yes"
7606 else
7607 echo "configure: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7609 rm -rf conftest*
7610 eval "ac_cv_func_remove=no"
7611 fi
7612 rm -f conftest*
7613 fi
7614
7615 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7616 echo "$ac_t""yes" 1>&6
7617 :
7618 else
7619 echo "$ac_t""no" 1>&6
7620 fi
7621
7622 if test $ac_cv_func_remove = no; then
7623 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7624 echo "configure:7625: checking for remove in -lposix" >&5
7625 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7628 else
7629 ac_save_LIBS="$LIBS"
7630 LIBS="-lposix $LIBS"
7631 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7637 char remove();
7638
7639 int main() {
7640 remove()
7641 ; return 0; }
7642 EOF
7643 if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7644 rm -rf conftest*
7645 eval "ac_cv_lib_$ac_lib_var=yes"
7646 else
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7649 rm -rf conftest*
7650 eval "ac_cv_lib_$ac_lib_var=no"
7651 fi
7652 rm -f conftest*
7653 LIBS="$ac_save_LIBS"
7654
7655 fi
7656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7657 echo "$ac_t""yes" 1>&6
7658 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7659 else
7660 echo "$ac_t""no" 1>&6
7661 fi
7662
7663 fi
7664
7665 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7666 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7667 echo "configure:7668: checking for shmat" >&5
7668 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7670 else
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* System header to define __stub macros and hopefully few prototypes,
7675 which can conflict with char shmat(); below. */
7676 #include <assert.h>
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7680 char shmat();
7681
7682 int main() {
7683
7684 /* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687 #if defined (__stub_shmat) || defined (__stub___shmat)
7688 choke me
7689 #else
7690 shmat();
7691 #endif
7692
7693 ; return 0; }
7694 EOF
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7696 rm -rf conftest*
7697 eval "ac_cv_func_shmat=yes"
7698 else
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7701 rm -rf conftest*
7702 eval "ac_cv_func_shmat=no"
7703 fi
7704 rm -f conftest*
7705 fi
7706
7707 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7708 echo "$ac_t""yes" 1>&6
7709 :
7710 else
7711 echo "$ac_t""no" 1>&6
7712 fi
7713
7714 if test $ac_cv_func_shmat = no; then
7715 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7716 echo "configure:7717: checking for shmat in -lipc" >&5
7717 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7720 else
7721 ac_save_LIBS="$LIBS"
7722 LIBS="-lipc $LIBS"
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* Override any gcc2 internal prototype to avoid an error. */
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7729 char shmat();
7730
7731 int main() {
7732 shmat()
7733 ; return 0; }
7734 EOF
7735 if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7736 rm -rf conftest*
7737 eval "ac_cv_lib_$ac_lib_var=yes"
7738 else
7739 echo "configure: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7741 rm -rf conftest*
7742 eval "ac_cv_lib_$ac_lib_var=no"
7743 fi
7744 rm -f conftest*
7745 LIBS="$ac_save_LIBS"
7746
7747 fi
7748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7749 echo "$ac_t""yes" 1>&6
7750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7751 else
7752 echo "$ac_t""no" 1>&6
7753 fi
7754
7755 fi
7756 fi
7757
7758 # Check for libraries that X11R6 Xt/Xaw programs need.
7759 ac_save_LDFLAGS="$LDFLAGS"
7760 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7761 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7762 # check for ICE first), but we must link in the order -lSM -lICE or
7763 # we get undefined symbols. So assume we have SM if we have ICE.
7764 # These have to be linked with before -lX11, unlike the other
7765 # libraries we check for below, so use a different variable.
7766 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7767 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7768 echo "configure:7769: checking for IceConnectionNumber in -lICE" >&5
7769 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7771 echo $ac_n "(cached) $ac_c" 1>&6
7772 else
7773 ac_save_LIBS="$LIBS"
7774 LIBS="-lICE $LIBS"
7775 cat > conftest.$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7778 /* Override any gcc2 internal prototype to avoid an error. */
7779 /* We use char because int might match the return type of a gcc2
7780 builtin and then its argument prototype would still apply. */
7781 char IceConnectionNumber();
7782
7783 int main() {
7784 IceConnectionNumber()
7785 ; return 0; }
7786 EOF
7787 if { (eval echo configure:7788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7788 rm -rf conftest*
7789 eval "ac_cv_lib_$ac_lib_var=yes"
7790 else
7791 echo "configure: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7793 rm -rf conftest*
7794 eval "ac_cv_lib_$ac_lib_var=no"
7795 fi
7796 rm -f conftest*
7797 LIBS="$ac_save_LIBS"
7798
7799 fi
7800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7801 echo "$ac_t""yes" 1>&6
7802 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7803 else
7804 echo "$ac_t""no" 1>&6
7805 fi
7806
7807 LDFLAGS="$ac_save_LDFLAGS"
7808
7809 fi
7810
7811
7812 if test "$no_x" = "yes"; then
7813 { echo "configure: error: X11 libraries not found" 1>&2; exit 1; }
7814 fi
7815
7816 TOOLKIT_INCLUDE="$X_CFLAGS"
7817 GUI_TK_LIBRARY="$X_LIBS"
7818
7819 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
7820 echo "configure:7821: checking for Motif/Lesstif includes" >&5
7821
7822 ac_find_includes=
7823 for ac_dir in $SEARCH_INCLUDE;
7824 do
7825 if test -f "$ac_dir/Xm/Xm.h"; then
7826 ac_find_includes=$ac_dir
7827 break
7828 fi
7829 done
7830
7831 if test "$ac_find_includes" != "" ; then
7832 echo "$ac_t""found $ac_find_includes" 1>&6
7833 else
7834 echo "$ac_t""no" 1>&6
7835 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7836 fi
7837
7838 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7839 echo "configure:7840: checking for Motif/Lesstif library" >&5
7840
7841 ac_find_libraries=
7842 for ac_dir in $SEARCH_LIB;
7843 do
7844 for ac_extension in a so sl; do
7845 if test -f "$ac_dir/libXm.$ac_extension"; then
7846 ac_find_libraries=$ac_dir
7847 break 2
7848 fi
7849 done
7850 done
7851
7852 if test "$ac_find_libraries" != "" ; then
7853
7854 ac_path_to_include=$ac_find_includes
7855 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7856 result=$?
7857 if test $result = 0; then
7858 ac_path_to_include=""
7859 else
7860 ac_path_to_include="-I$ac_find_includes"
7861 fi
7862
7863
7864 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7865 result=$?
7866 if test $result = 0; then
7867 ac_path_to_link=""
7868 else
7869 ac_path_to_link="-L$ac_find_libraries"
7870 fi
7871
7872
7873 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7874 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7875 echo "$ac_t""found at $ac_find_libraries" 1>&6
7876 else
7877 echo "$ac_t""no" 1>&6
7878 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7879 fi
7880
7881 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7882 echo "configure:7883: checking for Xt library" >&5
7883
7884 ac_find_libraries=
7885 for ac_dir in $SEARCH_LIB;
7886 do
7887 for ac_extension in a so sl; do
7888 if test -f "$ac_dir/libXt.$ac_extension"; then
7889 ac_find_libraries=$ac_dir
7890 break 2
7891 fi
7892 done
7893 done
7894
7895 if test "$ac_find_libraries" != "" ; then
7896
7897 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7898 result=$?
7899 if test $result = 0; then
7900 ac_path_to_link=""
7901 else
7902 ac_path_to_link="-L$ac_find_libraries"
7903 fi
7904
7905 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7906 echo "$ac_t""found at $ac_find_libraries" 1>&6
7907 else
7908 echo "$ac_t""no" 1>&6
7909 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7910 fi
7911
7912 XPM_LINK=""
7913 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7914 echo "configure:7915: checking for Xpm library" >&5
7915
7916 ac_find_libraries=
7917 for ac_dir in $SEARCH_LIB;
7918 do
7919 for ac_extension in a so sl; do
7920 if test -f "$ac_dir/libXpm.$ac_extension"; then
7921 ac_find_libraries=$ac_dir
7922 break 2
7923 fi
7924 done
7925 done
7926
7927 if test "$ac_find_libraries" != "" ; then
7928
7929 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7930 result=$?
7931 if test $result = 0; then
7932 ac_path_to_link=""
7933 else
7934 ac_path_to_link="-L$ac_find_libraries"
7935 fi
7936
7937 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7938 XPM_LINK="-lXpm "
7939 cat >> confdefs.h <<\EOF
7940 #define wxHAVE_LIB_XPM 1
7941 EOF
7942
7943 echo "$ac_t""found at $ac_find_libraries" 1>&6
7944 else
7945 echo "$ac_t""no" 1>&6
7946 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7947 fi
7948
7949 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -lm"
7950 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7951 TOOLKIT=MOTIF
7952
7953 GUIHEADERS="\$(MOTIF_HEADERS)"
7954 GUIOBJS="\$(MOTIF_GUIOBJS)"
7955 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
7956 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
7957 GUIDEPS="\$(MOTIF_GUIDEPS)"
7958 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
7959 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
7960 UNIXOBJS="\$(UNIX_OBJS)"
7961 GUIDIST=MOTIF_DIST
7962 fi
7963
7964 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
7965
7966 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
7967
7968 WX_LIBRARY="wx_${TOOLKIT_DIR}"
7969
7970 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS)"
7971 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
7972 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
7973 else
7974
7975 ALL_OBJECTS="\$(BASE_OBJS)"
7976 ALL_DEPFILES="\${BASE_DEPS}"
7977 ALL_HEADERS="\${BASE_HEADERS}"
7978
7979 WX_LIBRARY="wxbase"
7980 fi
7981
7982 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
7983
7984 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
7985
7986 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
7987
7988 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
7989 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
7990 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
7991
7992 SHARED_LD=
7993 PIC_FLAG=
7994 WX_ALL=
7995 WX_ALL_INSTALLED=
7996
7997 if test "$wxUSE_SHARED" = "yes"; then
7998 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
7999
8000 case "${host}" in
8001 *-hp-hpux* )
8002 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8003 SHARED_LD="${CXX} -b -o"
8004 PIC_FLAG="+Z"
8005 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8006 ;;
8007 *-*-linux* )
8008 SHARED_LD="${CC} -shared -o"
8009 PIC_FLAG="-fPIC"
8010 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8011 WX_ALL="CREATE_LINKS"
8012 ;;
8013 *-*-irix5* | *-*-irix6* )
8014 if test "$GCC" = yes ; then
8015 SHARED_LD="${CC} -shared -o"
8016 PIC_FLAG="-fPIC"
8017 else
8018 SHARED_LD="${CXX} -shared -o"
8019 fi
8020 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8021 WX_ALL="CREATE_LINKS"
8022 ;;
8023 *-*-solaris2* )
8024 if test "$GCC" = yes ; then
8025 SHARED_LD="${CC} -shared -o"
8026 PIC_FLAG="-fPIC"
8027 else
8028 SHARED_LD="${CXX} -G -o"
8029 PIC_FLAG="PIC"
8030 fi
8031 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8032 WX_ALL="CREATE_LINKS"
8033 ;;
8034 *-*-sunos4* )
8035 SHARED_LD="${CC} -shared -o"
8036 PIC_FLAG="-fPIC"
8037 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8038 WX_ALL="CREATE_LINKS"
8039 ;;
8040 *-*-freebsd* | *-*-netbsd*)
8041 SHARED_LD="${CC} -shared -o"
8042 PIC_FLAG="-fPIC"
8043 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8044 WX_ALL="CREATE_LINKS"
8045 ;;
8046 *-*-osf* )
8047 SHARED_LD="${CXX} -shared -o"
8048 PIC_FLAG="-fPIC"
8049 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8050 WX_ALL="CREATE_LINKS"
8051 ;;
8052 *-*-dgux5* )
8053 SHARED_LD="${CXX} -shared -o"
8054 PIC_FLAG="-fPIC"
8055 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8056 WX_ALL="CREATE_LINKS"
8057 ;;
8058 *-*-sysv5* )
8059 SHARED_LD="${CC} -shared -o"
8060 PIC_FLAG="-fPIC"
8061 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8062 WX_ALL="CREATE_LINKS"
8063 ;;
8064 *-*-aix* )
8065 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8066 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8067 ;;
8068 *-*-cygwin32* )
8069 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8070 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8071 ;;
8072 *-*-mingw32* )
8073 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8074 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8075 ;;
8076 *-pc-os2_emx )
8077 ;;
8078 *)
8079 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8080 esac
8081
8082 else
8083 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8084 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8085 fi
8086
8087
8088 for ac_hdr in strings.h
8089 do
8090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8092 echo "configure:8093: checking for $ac_hdr" >&5
8093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8095 else
8096 cat > conftest.$ac_ext <<EOF
8097 #line 8098 "configure"
8098 #include "confdefs.h"
8099 #include <$ac_hdr>
8100 EOF
8101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8102 { (eval echo configure:8103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8103 ac_err=`grep -v '^ *+' conftest.out`
8104 if test -z "$ac_err"; then
8105 rm -rf conftest*
8106 eval "ac_cv_header_$ac_safe=yes"
8107 else
8108 echo "$ac_err" >&5
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8111 rm -rf conftest*
8112 eval "ac_cv_header_$ac_safe=no"
8113 fi
8114 rm -f conftest*
8115 fi
8116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8117 echo "$ac_t""yes" 1>&6
8118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8119 cat >> confdefs.h <<EOF
8120 #define $ac_tr_hdr 1
8121 EOF
8122
8123 else
8124 echo "$ac_t""no" 1>&6
8125 fi
8126 done
8127
8128 for ac_hdr in unistd.h
8129 do
8130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8132 echo "configure:8133: checking for $ac_hdr" >&5
8133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8134 echo $ac_n "(cached) $ac_c" 1>&6
8135 else
8136 cat > conftest.$ac_ext <<EOF
8137 #line 8138 "configure"
8138 #include "confdefs.h"
8139 #include <$ac_hdr>
8140 EOF
8141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8142 { (eval echo configure:8143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8143 ac_err=`grep -v '^ *+' conftest.out`
8144 if test -z "$ac_err"; then
8145 rm -rf conftest*
8146 eval "ac_cv_header_$ac_safe=yes"
8147 else
8148 echo "$ac_err" >&5
8149 echo "configure: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 rm -rf conftest*
8152 eval "ac_cv_header_$ac_safe=no"
8153 fi
8154 rm -f conftest*
8155 fi
8156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8157 echo "$ac_t""yes" 1>&6
8158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8159 cat >> confdefs.h <<EOF
8160 #define $ac_tr_hdr 1
8161 EOF
8162
8163 else
8164 echo "$ac_t""no" 1>&6
8165 fi
8166 done
8167
8168 for ac_hdr in wchar.h
8169 do
8170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8172 echo "configure:8173: checking for $ac_hdr" >&5
8173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8174 echo $ac_n "(cached) $ac_c" 1>&6
8175 else
8176 cat > conftest.$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8179 #include <$ac_hdr>
8180 EOF
8181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8182 { (eval echo configure:8183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8183 ac_err=`grep -v '^ *+' conftest.out`
8184 if test -z "$ac_err"; then
8185 rm -rf conftest*
8186 eval "ac_cv_header_$ac_safe=yes"
8187 else
8188 echo "$ac_err" >&5
8189 echo "configure: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8191 rm -rf conftest*
8192 eval "ac_cv_header_$ac_safe=no"
8193 fi
8194 rm -f conftest*
8195 fi
8196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8197 echo "$ac_t""yes" 1>&6
8198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8199 cat >> confdefs.h <<EOF
8200 #define $ac_tr_hdr 1
8201 EOF
8202
8203 else
8204 echo "$ac_t""no" 1>&6
8205 fi
8206 done
8207
8208 for ac_hdr in wcstr.h
8209 do
8210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8212 echo "configure:8213: checking for $ac_hdr" >&5
8213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8215 else
8216 cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 #include <$ac_hdr>
8220 EOF
8221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8222 { (eval echo configure:8223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8223 ac_err=`grep -v '^ *+' conftest.out`
8224 if test -z "$ac_err"; then
8225 rm -rf conftest*
8226 eval "ac_cv_header_$ac_safe=yes"
8227 else
8228 echo "$ac_err" >&5
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8231 rm -rf conftest*
8232 eval "ac_cv_header_$ac_safe=no"
8233 fi
8234 rm -f conftest*
8235 fi
8236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8237 echo "$ac_t""yes" 1>&6
8238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8239 cat >> confdefs.h <<EOF
8240 #define $ac_tr_hdr 1
8241 EOF
8242
8243 else
8244 echo "$ac_t""no" 1>&6
8245 fi
8246 done
8247
8248 for ac_hdr in fnmatch.h
8249 do
8250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8252 echo "configure:8253: checking for $ac_hdr" >&5
8253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8254 echo $ac_n "(cached) $ac_c" 1>&6
8255 else
8256 cat > conftest.$ac_ext <<EOF
8257 #line 8258 "configure"
8258 #include "confdefs.h"
8259 #include <$ac_hdr>
8260 EOF
8261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8262 { (eval echo configure:8263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8263 ac_err=`grep -v '^ *+' conftest.out`
8264 if test -z "$ac_err"; then
8265 rm -rf conftest*
8266 eval "ac_cv_header_$ac_safe=yes"
8267 else
8268 echo "$ac_err" >&5
8269 echo "configure: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8271 rm -rf conftest*
8272 eval "ac_cv_header_$ac_safe=no"
8273 fi
8274 rm -f conftest*
8275 fi
8276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8277 echo "$ac_t""yes" 1>&6
8278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8279 cat >> confdefs.h <<EOF
8280 #define $ac_tr_hdr 1
8281 EOF
8282
8283 else
8284 echo "$ac_t""no" 1>&6
8285 fi
8286 done
8287
8288
8289 if test "$wxUSE_GUI" = "yes"; then
8290 for ac_hdr in X11/XKBlib.h
8291 do
8292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8294 echo "configure:8295: checking for $ac_hdr" >&5
8295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8297 else
8298 cat > conftest.$ac_ext <<EOF
8299 #line 8300 "configure"
8300 #include "confdefs.h"
8301 #include <$ac_hdr>
8302 EOF
8303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8304 { (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8305 ac_err=`grep -v '^ *+' conftest.out`
8306 if test -z "$ac_err"; then
8307 rm -rf conftest*
8308 eval "ac_cv_header_$ac_safe=yes"
8309 else
8310 echo "$ac_err" >&5
8311 echo "configure: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8313 rm -rf conftest*
8314 eval "ac_cv_header_$ac_safe=no"
8315 fi
8316 rm -f conftest*
8317 fi
8318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8319 echo "$ac_t""yes" 1>&6
8320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8321 cat >> confdefs.h <<EOF
8322 #define $ac_tr_hdr 1
8323 EOF
8324
8325 else
8326 echo "$ac_t""no" 1>&6
8327 fi
8328 done
8329
8330 fi
8331
8332
8333 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8334 echo "configure:8335: checking for ANSI C header files" >&5
8335 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8336 echo $ac_n "(cached) $ac_c" 1>&6
8337 else
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8341 #include <stdlib.h>
8342 #include <stdarg.h>
8343 #include <string.h>
8344 #include <float.h>
8345 EOF
8346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8347 { (eval echo configure:8348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8348 ac_err=`grep -v '^ *+' conftest.out`
8349 if test -z "$ac_err"; then
8350 rm -rf conftest*
8351 ac_cv_header_stdc=yes
8352 else
8353 echo "$ac_err" >&5
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8356 rm -rf conftest*
8357 ac_cv_header_stdc=no
8358 fi
8359 rm -f conftest*
8360
8361 if test $ac_cv_header_stdc = yes; then
8362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8366 #include <string.h>
8367 EOF
8368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8369 egrep "memchr" >/dev/null 2>&1; then
8370 :
8371 else
8372 rm -rf conftest*
8373 ac_cv_header_stdc=no
8374 fi
8375 rm -f conftest*
8376
8377 fi
8378
8379 if test $ac_cv_header_stdc = yes; then
8380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8384 #include <stdlib.h>
8385 EOF
8386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8387 egrep "free" >/dev/null 2>&1; then
8388 :
8389 else
8390 rm -rf conftest*
8391 ac_cv_header_stdc=no
8392 fi
8393 rm -f conftest*
8394
8395 fi
8396
8397 if test $ac_cv_header_stdc = yes; then
8398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8399 if test "$cross_compiling" = yes; then
8400 :
8401 else
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8405 #include <ctype.h>
8406 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8407 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8409 int main () { int i; for (i = 0; i < 256; i++)
8410 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8411 exit (0); }
8412
8413 EOF
8414 if { (eval echo configure:8415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8415 then
8416 :
8417 else
8418 echo "configure: failed program was:" >&5
8419 cat conftest.$ac_ext >&5
8420 rm -fr conftest*
8421 ac_cv_header_stdc=no
8422 fi
8423 rm -fr conftest*
8424 fi
8425
8426 fi
8427 fi
8428
8429 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8430 if test $ac_cv_header_stdc = yes; then
8431 cat >> confdefs.h <<\EOF
8432 #define STDC_HEADERS 1
8433 EOF
8434
8435 fi
8436
8437 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8438 echo "configure:8439: checking for mode_t" >&5
8439 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8440 echo $ac_n "(cached) $ac_c" 1>&6
8441 else
8442 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 #include <sys/types.h>
8446 #if STDC_HEADERS
8447 #include <stdlib.h>
8448 #include <stddef.h>
8449 #endif
8450 EOF
8451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8452 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8453 rm -rf conftest*
8454 ac_cv_type_mode_t=yes
8455 else
8456 rm -rf conftest*
8457 ac_cv_type_mode_t=no
8458 fi
8459 rm -f conftest*
8460
8461 fi
8462 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8463 if test $ac_cv_type_mode_t = no; then
8464 cat >> confdefs.h <<\EOF
8465 #define mode_t int
8466 EOF
8467
8468 fi
8469
8470 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8471 echo "configure:8472: checking for off_t" >&5
8472 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8474 else
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8478 #include <sys/types.h>
8479 #if STDC_HEADERS
8480 #include <stdlib.h>
8481 #include <stddef.h>
8482 #endif
8483 EOF
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8486 rm -rf conftest*
8487 ac_cv_type_off_t=yes
8488 else
8489 rm -rf conftest*
8490 ac_cv_type_off_t=no
8491 fi
8492 rm -f conftest*
8493
8494 fi
8495 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8496 if test $ac_cv_type_off_t = no; then
8497 cat >> confdefs.h <<\EOF
8498 #define off_t long
8499 EOF
8500
8501 fi
8502
8503 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8504 echo "configure:8505: checking for pid_t" >&5
8505 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8506 echo $ac_n "(cached) $ac_c" 1>&6
8507 else
8508 cat > conftest.$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8511 #include <sys/types.h>
8512 #if STDC_HEADERS
8513 #include <stdlib.h>
8514 #include <stddef.h>
8515 #endif
8516 EOF
8517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8518 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8519 rm -rf conftest*
8520 ac_cv_type_pid_t=yes
8521 else
8522 rm -rf conftest*
8523 ac_cv_type_pid_t=no
8524 fi
8525 rm -f conftest*
8526
8527 fi
8528 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8529 if test $ac_cv_type_pid_t = no; then
8530 cat >> confdefs.h <<\EOF
8531 #define pid_t int
8532 EOF
8533
8534 fi
8535
8536 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8537 echo "configure:8538: checking for size_t" >&5
8538 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8539 echo $ac_n "(cached) $ac_c" 1>&6
8540 else
8541 cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 #include <sys/types.h>
8545 #if STDC_HEADERS
8546 #include <stdlib.h>
8547 #include <stddef.h>
8548 #endif
8549 EOF
8550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8551 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8552 rm -rf conftest*
8553 ac_cv_type_size_t=yes
8554 else
8555 rm -rf conftest*
8556 ac_cv_type_size_t=no
8557 fi
8558 rm -f conftest*
8559
8560 fi
8561 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8562 if test $ac_cv_type_size_t = no; then
8563 cat >> confdefs.h <<\EOF
8564 #define size_t unsigned
8565 EOF
8566
8567 fi
8568
8569 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8570 echo "configure:8571: checking for uid_t in sys/types.h" >&5
8571 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8573 else
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8577 #include <sys/types.h>
8578 EOF
8579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8580 egrep "uid_t" >/dev/null 2>&1; then
8581 rm -rf conftest*
8582 ac_cv_type_uid_t=yes
8583 else
8584 rm -rf conftest*
8585 ac_cv_type_uid_t=no
8586 fi
8587 rm -f conftest*
8588
8589 fi
8590
8591 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8592 if test $ac_cv_type_uid_t = no; then
8593 cat >> confdefs.h <<\EOF
8594 #define uid_t int
8595 EOF
8596
8597 cat >> confdefs.h <<\EOF
8598 #define gid_t int
8599 EOF
8600
8601 fi
8602
8603
8604
8605
8606 echo $ac_n "checking for working const""... $ac_c" 1>&6
8607 echo "configure:8608: checking for working const" >&5
8608 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
8610 else
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614
8615 int main() {
8616
8617 /* Ultrix mips cc rejects this. */
8618 typedef int charset[2]; const charset x;
8619 /* SunOS 4.1.1 cc rejects this. */
8620 char const *const *ccp;
8621 char **p;
8622 /* NEC SVR4.0.2 mips cc rejects this. */
8623 struct point {int x, y;};
8624 static struct point const zero = {0,0};
8625 /* AIX XL C 1.02.0.0 rejects this.
8626 It does not let you subtract one const X* pointer from another in an arm
8627 of an if-expression whose if-part is not a constant expression */
8628 const char *g = "string";
8629 ccp = &g + (g ? g-g : 0);
8630 /* HPUX 7.0 cc rejects these. */
8631 ++ccp;
8632 p = (char**) ccp;
8633 ccp = (char const *const *) p;
8634 { /* SCO 3.2v4 cc rejects this. */
8635 char *t;
8636 char const *s = 0 ? (char *) 0 : (char const *) 0;
8637
8638 *t++ = 0;
8639 }
8640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8641 int x[] = {25, 17};
8642 const int *foo = &x[0];
8643 ++foo;
8644 }
8645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8646 typedef const int *iptr;
8647 iptr p = 0;
8648 ++p;
8649 }
8650 { /* AIX XL C 1.02.0.0 rejects this saying
8651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8652 struct s { int j; const int *ap[3]; };
8653 struct s *b; b->j = 5;
8654 }
8655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8656 const int foo = 10;
8657 }
8658
8659 ; return 0; }
8660 EOF
8661 if { (eval echo configure:8662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8662 rm -rf conftest*
8663 ac_cv_c_const=yes
8664 else
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8667 rm -rf conftest*
8668 ac_cv_c_const=no
8669 fi
8670 rm -f conftest*
8671 fi
8672
8673 echo "$ac_t""$ac_cv_c_const" 1>&6
8674 if test $ac_cv_c_const = no; then
8675 cat >> confdefs.h <<\EOF
8676 #define const
8677 EOF
8678
8679 fi
8680
8681 echo $ac_n "checking for inline""... $ac_c" 1>&6
8682 echo "configure:8683: checking for inline" >&5
8683 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8685 else
8686 ac_cv_c_inline=no
8687 for ac_kw in inline __inline__ __inline; do
8688 cat > conftest.$ac_ext <<EOF
8689 #line 8690 "configure"
8690 #include "confdefs.h"
8691
8692 int main() {
8693 } $ac_kw foo() {
8694 ; return 0; }
8695 EOF
8696 if { (eval echo configure:8697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8697 rm -rf conftest*
8698 ac_cv_c_inline=$ac_kw; break
8699 else
8700 echo "configure: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8702 fi
8703 rm -f conftest*
8704 done
8705
8706 fi
8707
8708 echo "$ac_t""$ac_cv_c_inline" 1>&6
8709 case "$ac_cv_c_inline" in
8710 inline | yes) ;;
8711 no) cat >> confdefs.h <<\EOF
8712 #define inline
8713 EOF
8714 ;;
8715 *) cat >> confdefs.h <<EOF
8716 #define inline $ac_cv_c_inline
8717 EOF
8718 ;;
8719 esac
8720
8721
8722 echo $ac_n "checking size of char""... $ac_c" 1>&6
8723 echo "configure:8724: checking size of char" >&5
8724 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8725 echo $ac_n "(cached) $ac_c" 1>&6
8726 else
8727 if test "$cross_compiling" = yes; then
8728 ac_cv_sizeof_char=1
8729 else
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 #include <stdio.h>
8734 main()
8735 {
8736 FILE *f=fopen("conftestval", "w");
8737 if (!f) exit(1);
8738 fprintf(f, "%d\n", sizeof(char));
8739 exit(0);
8740 }
8741 EOF
8742 if { (eval echo configure:8743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8743 then
8744 ac_cv_sizeof_char=`cat conftestval`
8745 else
8746 echo "configure: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8748 rm -fr conftest*
8749 ac_cv_sizeof_char=0
8750 fi
8751 rm -fr conftest*
8752 fi
8753
8754 fi
8755 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8756 cat >> confdefs.h <<EOF
8757 #define SIZEOF_CHAR $ac_cv_sizeof_char
8758 EOF
8759
8760
8761 echo $ac_n "checking size of short""... $ac_c" 1>&6
8762 echo "configure:8763: checking size of short" >&5
8763 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8765 else
8766 if test "$cross_compiling" = yes; then
8767 ac_cv_sizeof_short=2
8768 else
8769 cat > conftest.$ac_ext <<EOF
8770 #line 8771 "configure"
8771 #include "confdefs.h"
8772 #include <stdio.h>
8773 main()
8774 {
8775 FILE *f=fopen("conftestval", "w");
8776 if (!f) exit(1);
8777 fprintf(f, "%d\n", sizeof(short));
8778 exit(0);
8779 }
8780 EOF
8781 if { (eval echo configure:8782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8782 then
8783 ac_cv_sizeof_short=`cat conftestval`
8784 else
8785 echo "configure: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8787 rm -fr conftest*
8788 ac_cv_sizeof_short=0
8789 fi
8790 rm -fr conftest*
8791 fi
8792
8793 fi
8794 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8795 cat >> confdefs.h <<EOF
8796 #define SIZEOF_SHORT $ac_cv_sizeof_short
8797 EOF
8798
8799
8800 echo $ac_n "checking size of int *""... $ac_c" 1>&6
8801 echo "configure:8802: checking size of int *" >&5
8802 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8804 else
8805 if test "$cross_compiling" = yes; then
8806 ac_cv_sizeof_int_p=4
8807 else
8808 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811 #include <stdio.h>
8812 main()
8813 {
8814 FILE *f=fopen("conftestval", "w");
8815 if (!f) exit(1);
8816 fprintf(f, "%d\n", sizeof(int *));
8817 exit(0);
8818 }
8819 EOF
8820 if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8821 then
8822 ac_cv_sizeof_int_p=`cat conftestval`
8823 else
8824 echo "configure: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 rm -fr conftest*
8827 ac_cv_sizeof_int_p=0
8828 fi
8829 rm -fr conftest*
8830 fi
8831
8832 fi
8833 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8834 cat >> confdefs.h <<EOF
8835 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
8836 EOF
8837
8838
8839 echo $ac_n "checking size of int""... $ac_c" 1>&6
8840 echo "configure:8841: checking size of int" >&5
8841 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8842 echo $ac_n "(cached) $ac_c" 1>&6
8843 else
8844 if test "$cross_compiling" = yes; then
8845 ac_cv_sizeof_int=4
8846 else
8847 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 #include <stdio.h>
8851 main()
8852 {
8853 FILE *f=fopen("conftestval", "w");
8854 if (!f) exit(1);
8855 fprintf(f, "%d\n", sizeof(int));
8856 exit(0);
8857 }
8858 EOF
8859 if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8860 then
8861 ac_cv_sizeof_int=`cat conftestval`
8862 else
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 rm -fr conftest*
8866 ac_cv_sizeof_int=0
8867 fi
8868 rm -fr conftest*
8869 fi
8870
8871 fi
8872 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8873 cat >> confdefs.h <<EOF
8874 #define SIZEOF_INT $ac_cv_sizeof_int
8875 EOF
8876
8877
8878 echo $ac_n "checking size of long""... $ac_c" 1>&6
8879 echo "configure:8880: checking size of long" >&5
8880 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8882 else
8883 if test "$cross_compiling" = yes; then
8884 ac_cv_sizeof_long=4
8885 else
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 #include <stdio.h>
8890 main()
8891 {
8892 FILE *f=fopen("conftestval", "w");
8893 if (!f) exit(1);
8894 fprintf(f, "%d\n", sizeof(long));
8895 exit(0);
8896 }
8897 EOF
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8899 then
8900 ac_cv_sizeof_long=`cat conftestval`
8901 else
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8904 rm -fr conftest*
8905 ac_cv_sizeof_long=0
8906 fi
8907 rm -fr conftest*
8908 fi
8909
8910 fi
8911 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8912 cat >> confdefs.h <<EOF
8913 #define SIZEOF_LONG $ac_cv_sizeof_long
8914 EOF
8915
8916
8917 echo $ac_n "checking size of long long""... $ac_c" 1>&6
8918 echo "configure:8919: checking size of long long" >&5
8919 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
8921 else
8922 if test "$cross_compiling" = yes; then
8923 ac_cv_sizeof_long_long=0
8924 else
8925 cat > conftest.$ac_ext <<EOF
8926 #line 8927 "configure"
8927 #include "confdefs.h"
8928 #include <stdio.h>
8929 main()
8930 {
8931 FILE *f=fopen("conftestval", "w");
8932 if (!f) exit(1);
8933 fprintf(f, "%d\n", sizeof(long long));
8934 exit(0);
8935 }
8936 EOF
8937 if { (eval echo configure:8938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8938 then
8939 ac_cv_sizeof_long_long=`cat conftestval`
8940 else
8941 echo "configure: failed program was:" >&5
8942 cat conftest.$ac_ext >&5
8943 rm -fr conftest*
8944 ac_cv_sizeof_long_long=0
8945 fi
8946 rm -fr conftest*
8947 fi
8948
8949 fi
8950 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8951 cat >> confdefs.h <<EOF
8952 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8953 EOF
8954
8955
8956
8957 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8958 echo "configure:8959: checking whether byte ordering is bigendian" >&5
8959 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8960 echo $ac_n "(cached) $ac_c" 1>&6
8961 else
8962 ac_cv_c_bigendian=unknown
8963 # See if sys/param.h defines the BYTE_ORDER macro.
8964 cat > conftest.$ac_ext <<EOF
8965 #line 8966 "configure"
8966 #include "confdefs.h"
8967 #include <sys/types.h>
8968 #include <sys/param.h>
8969 int main() {
8970
8971 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8972 bogus endian macros
8973 #endif
8974 ; return 0; }
8975 EOF
8976 if { (eval echo configure:8977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8977 rm -rf conftest*
8978 # It does; now see whether it defined to BIG_ENDIAN or not.
8979 cat > conftest.$ac_ext <<EOF
8980 #line 8981 "configure"
8981 #include "confdefs.h"
8982 #include <sys/types.h>
8983 #include <sys/param.h>
8984 int main() {
8985
8986 #if BYTE_ORDER != BIG_ENDIAN
8987 not big endian
8988 #endif
8989 ; return 0; }
8990 EOF
8991 if { (eval echo configure:8992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8992 rm -rf conftest*
8993 ac_cv_c_bigendian=yes
8994 else
8995 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5
8997 rm -rf conftest*
8998 ac_cv_c_bigendian=no
8999 fi
9000 rm -f conftest*
9001 else
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9004 fi
9005 rm -f conftest*
9006 if test $ac_cv_c_bigendian = unknown; then
9007 if test "$cross_compiling" = yes; then
9008 ac_cv_c_bigendian=unknown
9009 else
9010 cat > conftest.$ac_ext <<EOF
9011 #line 9012 "configure"
9012 #include "confdefs.h"
9013 main () {
9014 /* Are we little or big endian? From Harbison&Steele. */
9015 union
9016 {
9017 long l;
9018 char c[sizeof (long)];
9019 } u;
9020 u.l = 1;
9021 exit (u.c[sizeof (long) - 1] == 1);
9022 }
9023 EOF
9024 if { (eval echo configure:9025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9025 then
9026 ac_cv_c_bigendian=no
9027 else
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 rm -fr conftest*
9031 ac_cv_c_bigendian=yes
9032 fi
9033 rm -fr conftest*
9034 fi
9035
9036 fi
9037 fi
9038
9039 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9040 if test $ac_cv_c_bigendian = unknown; then
9041 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
9042 fi
9043 if test $ac_cv_c_bigendian = yes; then
9044 cat >> confdefs.h <<\EOF
9045 #define WORDS_BIGENDIAN 1
9046 EOF
9047
9048 fi
9049
9050
9051
9052 if test "$cross_compiling" = "yes"; then
9053 cat >> confdefs.h <<\EOF
9054 #define wxUSE_IOSTREAMH 1
9055 EOF
9056
9057 else
9058
9059 ac_ext=C
9060 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9061 ac_cpp='$CXXCPP $CPPFLAGS'
9062 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9063 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9064 cross_compiling=$ac_cv_prog_cxx_cross
9065
9066
9067 for ac_hdr in iostream
9068 do
9069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9071 echo "configure:9072: checking for $ac_hdr" >&5
9072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9074 else
9075 cat > conftest.$ac_ext <<EOF
9076 #line 9077 "configure"
9077 #include "confdefs.h"
9078 #include <$ac_hdr>
9079 EOF
9080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9081 { (eval echo configure:9082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9082 ac_err=`grep -v '^ *+' conftest.out`
9083 if test -z "$ac_err"; then
9084 rm -rf conftest*
9085 eval "ac_cv_header_$ac_safe=yes"
9086 else
9087 echo "$ac_err" >&5
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 rm -rf conftest*
9091 eval "ac_cv_header_$ac_safe=no"
9092 fi
9093 rm -f conftest*
9094 fi
9095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9096 echo "$ac_t""yes" 1>&6
9097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9098 cat >> confdefs.h <<EOF
9099 #define $ac_tr_hdr 1
9100 EOF
9101
9102 else
9103 echo "$ac_t""no" 1>&6
9104 fi
9105 done
9106
9107
9108 if test "x$HAVE_IOSTREAM" = x ; then
9109 cat >> confdefs.h <<\EOF
9110 #define wxUSE_IOSTREAMH 1
9111 EOF
9112
9113 else
9114 :
9115 fi
9116
9117 ac_ext=c
9118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9119 ac_cpp='$CPP $CPPFLAGS'
9120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9121 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9122 cross_compiling=$ac_cv_prog_cc_cross
9123
9124 fi
9125
9126
9127
9128 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9129 echo "configure:9130: checking if C++ compiler supports bool" >&5
9130 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9132 else
9133
9134
9135 ac_ext=C
9136 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9137 ac_cpp='$CXXCPP $CPPFLAGS'
9138 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9139 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9140 cross_compiling=$ac_cv_prog_cxx_cross
9141
9142
9143 cat > conftest.$ac_ext <<EOF
9144 #line 9145 "configure"
9145 #include "confdefs.h"
9146
9147
9148 int main() {
9149
9150 bool b = true;
9151
9152 return 0;
9153
9154 ; return 0; }
9155 EOF
9156 if { (eval echo configure:9157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9157 rm -rf conftest*
9158
9159 cat >> confdefs.h <<\EOF
9160 #define HAVE_BOOL 1
9161 EOF
9162
9163 wx_cv_cpp_bool=yes
9164
9165 else
9166 echo "configure: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9168 rm -rf conftest*
9169
9170 wx_cv_cpp_bool=no
9171
9172
9173 fi
9174 rm -f conftest*
9175
9176 ac_ext=c
9177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9178 ac_cpp='$CPP $CPPFLAGS'
9179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9180 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9181 cross_compiling=$ac_cv_prog_cc_cross
9182
9183
9184 fi
9185
9186 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9187
9188 if test "$wx_cv_cpp_bool" = "yes"; then
9189 cat >> confdefs.h <<\EOF
9190 #define HAVE_BOOL 1
9191 EOF
9192
9193 fi
9194
9195
9196
9197 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
9198 echo "configure:9199: checking if size_t and int are different types" >&5
9199 if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then
9200 echo $ac_n "(cached) $ac_c" 1>&6
9201 else
9202
9203
9204 ac_ext=C
9205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9206 ac_cpp='$CXXCPP $CPPFLAGS'
9207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9208 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9209 cross_compiling=$ac_cv_prog_cxx_cross
9210
9211
9212 if test "$cross_compiling" = yes; then
9213 wx_cv_cpp_sizet_not_int=no
9214
9215 else
9216 cat > conftest.$ac_ext <<EOF
9217 #line 9218 "configure"
9218 #include "confdefs.h"
9219 #ifdef __cplusplus
9220 extern "C" void exit(int);
9221 #endif
9222
9223 #include <stdlib.h>
9224
9225 class S
9226 {
9227 public:
9228 S(char *s) { m_s = s; }
9229
9230 char operator[](size_t n) const { return m_s[n]; }
9231 char operator[](int n) const { return m_s[n]; }
9232
9233 private:
9234 char *m_s;
9235 };
9236
9237 int main()
9238 {
9239 S s("dummy");
9240 size_t n1 = 2;
9241 int n2 = 3;
9242
9243 return s[n1] == s[n2];
9244 }
9245
9246 EOF
9247 if { (eval echo configure:9248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9248 then
9249 cat >> confdefs.h <<\EOF
9250 #define wxUSE_SIZE_T_STRING_OPERATOR 1
9251 EOF
9252 wx_cv_cpp_sizet_not_int=yes
9253 else
9254 echo "configure: failed program was:" >&5
9255 cat conftest.$ac_ext >&5
9256 rm -fr conftest*
9257 wx_cv_cpp_sizet_not_int=no
9258 fi
9259 rm -fr conftest*
9260 fi
9261
9262
9263 ac_ext=c
9264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9265 ac_cpp='$CPP $CPPFLAGS'
9266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9267 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9268 cross_compiling=$ac_cv_prog_cc_cross
9269
9270
9271 fi
9272
9273 echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6
9274
9275
9276
9277 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9278 echo "configure:9279: checking if you need GNU extensions" >&5
9279 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281 else
9282
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <features.h>
9287 int main() {
9288
9289
9290 #ifndef __GNU_LIBRARY__
9291 Compile error wanted
9292 #endif
9293
9294
9295 ; return 0; }
9296 EOF
9297 if { (eval echo configure:9298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9298 rm -rf conftest*
9299 wx_cv_gnu_extensions=yes
9300 else
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 rm -rf conftest*
9304 wx_cv_gnu_extensions=no
9305 fi
9306 rm -f conftest*
9307
9308 fi
9309
9310
9311 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9312 if test "$wx_cv_gnu_extensions" = "yes"; then
9313 cat >> confdefs.h <<EOF
9314 #define _GNU_SOURCE 1
9315 EOF
9316
9317 fi
9318
9319
9320
9321 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9322 echo "configure:9323: checking for wcslen in -lc" >&5
9323 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326 else
9327 ac_save_LIBS="$LIBS"
9328 LIBS="-lc $LIBS"
9329 cat > conftest.$ac_ext <<EOF
9330 #line 9331 "configure"
9331 #include "confdefs.h"
9332 /* Override any gcc2 internal prototype to avoid an error. */
9333 /* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9335 char wcslen();
9336
9337 int main() {
9338 wcslen()
9339 ; return 0; }
9340 EOF
9341 if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9342 rm -rf conftest*
9343 eval "ac_cv_lib_$ac_lib_var=yes"
9344 else
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9347 rm -rf conftest*
9348 eval "ac_cv_lib_$ac_lib_var=no"
9349 fi
9350 rm -f conftest*
9351 LIBS="$ac_save_LIBS"
9352
9353 fi
9354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9355 echo "$ac_t""yes" 1>&6
9356
9357 cat >> confdefs.h <<\EOF
9358 #define HAVE_WCSLEN 1
9359 EOF
9360
9361 WCHAR_LINK=""
9362
9363 else
9364 echo "$ac_t""no" 1>&6
9365
9366 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9367 echo "configure:9368: checking for wcslen in -lw" >&5
9368 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9371 else
9372 ac_save_LIBS="$LIBS"
9373 LIBS="-lw $LIBS"
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9377 /* Override any gcc2 internal prototype to avoid an error. */
9378 /* We use char because int might match the return type of a gcc2
9379 builtin and then its argument prototype would still apply. */
9380 char wcslen();
9381
9382 int main() {
9383 wcslen()
9384 ; return 0; }
9385 EOF
9386 if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9387 rm -rf conftest*
9388 eval "ac_cv_lib_$ac_lib_var=yes"
9389 else
9390 echo "configure: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9392 rm -rf conftest*
9393 eval "ac_cv_lib_$ac_lib_var=no"
9394 fi
9395 rm -f conftest*
9396 LIBS="$ac_save_LIBS"
9397
9398 fi
9399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9400 echo "$ac_t""yes" 1>&6
9401
9402 cat >> confdefs.h <<\EOF
9403 #define HAVE_WCSLEN 1
9404 EOF
9405
9406 WCHAR_LINK="-lw"
9407
9408 else
9409 echo "$ac_t""no" 1>&6
9410 fi
9411
9412
9413 fi
9414
9415
9416 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9417 echo "configure:9418: checking for vprintf" >&5
9418 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9420 else
9421 cat > conftest.$ac_ext <<EOF
9422 #line 9423 "configure"
9423 #include "confdefs.h"
9424 /* System header to define __stub macros and hopefully few prototypes,
9425 which can conflict with char vprintf(); below. */
9426 #include <assert.h>
9427 /* Override any gcc2 internal prototype to avoid an error. */
9428 /* We use char because int might match the return type of a gcc2
9429 builtin and then its argument prototype would still apply. */
9430 char vprintf();
9431
9432 int main() {
9433
9434 /* The GNU C library defines this for functions which it implements
9435 to always fail with ENOSYS. Some functions are actually named
9436 something starting with __ and the normal name is an alias. */
9437 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9438 choke me
9439 #else
9440 vprintf();
9441 #endif
9442
9443 ; return 0; }
9444 EOF
9445 if { (eval echo configure:9446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9446 rm -rf conftest*
9447 eval "ac_cv_func_vprintf=yes"
9448 else
9449 echo "configure: failed program was:" >&5
9450 cat conftest.$ac_ext >&5
9451 rm -rf conftest*
9452 eval "ac_cv_func_vprintf=no"
9453 fi
9454 rm -f conftest*
9455 fi
9456
9457 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9458 echo "$ac_t""yes" 1>&6
9459 cat >> confdefs.h <<\EOF
9460 #define HAVE_VPRINTF 1
9461 EOF
9462
9463 else
9464 echo "$ac_t""no" 1>&6
9465 fi
9466
9467 if test "$ac_cv_func_vprintf" != yes; then
9468 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9469 echo "configure:9470: checking for _doprnt" >&5
9470 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9471 echo $ac_n "(cached) $ac_c" 1>&6
9472 else
9473 cat > conftest.$ac_ext <<EOF
9474 #line 9475 "configure"
9475 #include "confdefs.h"
9476 /* System header to define __stub macros and hopefully few prototypes,
9477 which can conflict with char _doprnt(); below. */
9478 #include <assert.h>
9479 /* Override any gcc2 internal prototype to avoid an error. */
9480 /* We use char because int might match the return type of a gcc2
9481 builtin and then its argument prototype would still apply. */
9482 char _doprnt();
9483
9484 int main() {
9485
9486 /* The GNU C library defines this for functions which it implements
9487 to always fail with ENOSYS. Some functions are actually named
9488 something starting with __ and the normal name is an alias. */
9489 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9490 choke me
9491 #else
9492 _doprnt();
9493 #endif
9494
9495 ; return 0; }
9496 EOF
9497 if { (eval echo configure:9498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9498 rm -rf conftest*
9499 eval "ac_cv_func__doprnt=yes"
9500 else
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9503 rm -rf conftest*
9504 eval "ac_cv_func__doprnt=no"
9505 fi
9506 rm -f conftest*
9507 fi
9508
9509 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9510 echo "$ac_t""yes" 1>&6
9511 cat >> confdefs.h <<\EOF
9512 #define HAVE_DOPRNT 1
9513 EOF
9514
9515 else
9516 echo "$ac_t""no" 1>&6
9517 fi
9518
9519 fi
9520
9521
9522 for ac_func in vsnprintf
9523 do
9524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9525 echo "configure:9526: checking for $ac_func" >&5
9526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9528 else
9529 cat > conftest.$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 /* System header to define __stub macros and hopefully few prototypes,
9533 which can conflict with char $ac_func(); below. */
9534 #include <assert.h>
9535 /* Override any gcc2 internal prototype to avoid an error. */
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9538 char $ac_func();
9539
9540 int main() {
9541
9542 /* The GNU C library defines this for functions which it implements
9543 to always fail with ENOSYS. Some functions are actually named
9544 something starting with __ and the normal name is an alias. */
9545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9546 choke me
9547 #else
9548 $ac_func();
9549 #endif
9550
9551 ; return 0; }
9552 EOF
9553 if { (eval echo configure:9554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9554 rm -rf conftest*
9555 eval "ac_cv_func_$ac_func=yes"
9556 else
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -rf conftest*
9560 eval "ac_cv_func_$ac_func=no"
9561 fi
9562 rm -f conftest*
9563 fi
9564
9565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9566 echo "$ac_t""yes" 1>&6
9567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9568 cat >> confdefs.h <<EOF
9569 #define $ac_tr_func 1
9570 EOF
9571 cat >> confdefs.h <<\EOF
9572 #define HAVE_VSNPRINTF 1
9573 EOF
9574
9575 else
9576 echo "$ac_t""no" 1>&6
9577 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9578
9579 fi
9580 done
9581
9582
9583
9584 ac_ext=C
9585 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9586 ac_cpp='$CXXCPP $CPPFLAGS'
9587 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9588 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9589 cross_compiling=$ac_cv_prog_cxx_cross
9590
9591
9592 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
9593 echo "configure:9594: checking for vsscanf" >&5
9594 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9596 else
9597
9598 if test "$cross_compiling" = yes; then
9599 wx_cv_func_vsscanf=no
9600
9601 else
9602 cat > conftest.$ac_ext <<EOF
9603 #line 9604 "configure"
9604 #include "confdefs.h"
9605 #ifdef __cplusplus
9606 extern "C" void exit(int);
9607 #endif
9608
9609 #include <stdio.h>
9610 #include <stdarg.h>
9611
9612 int try_vsscanf(const char *format, ...)
9613 {
9614 va_list ap;
9615 va_start(ap, format);
9616
9617 vsscanf("17", format, ap);
9618
9619 va_end(ap);
9620 }
9621
9622 int main()
9623 {
9624 int i;
9625 try_vsscanf("%d", &i);
9626 return i == 17 ? 0 : 1;
9627 }
9628
9629 EOF
9630 if { (eval echo configure:9631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9631 then
9632
9633 cat >> confdefs.h <<\EOF
9634 #define HAVE_VSSCANF 1
9635 EOF
9636
9637 wx_cv_func_vsscanf=yes
9638
9639 else
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 rm -fr conftest*
9643 wx_cv_func_vsscanf=no
9644 fi
9645 rm -fr conftest*
9646 fi
9647
9648
9649 fi
9650
9651 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9652
9653 ac_ext=c
9654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9655 ac_cpp='$CPP $CPPFLAGS'
9656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9657 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9658 cross_compiling=$ac_cv_prog_cc_cross
9659
9660
9661 for ac_func in vfork
9662 do
9663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9664 echo "configure:9665: checking for $ac_func" >&5
9665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9667 else
9668 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9671 /* System header to define __stub macros and hopefully few prototypes,
9672 which can conflict with char $ac_func(); below. */
9673 #include <assert.h>
9674 /* Override any gcc2 internal prototype to avoid an error. */
9675 /* We use char because int might match the return type of a gcc2
9676 builtin and then its argument prototype would still apply. */
9677 char $ac_func();
9678
9679 int main() {
9680
9681 /* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9685 choke me
9686 #else
9687 $ac_func();
9688 #endif
9689
9690 ; return 0; }
9691 EOF
9692 if { (eval echo configure:9693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9693 rm -rf conftest*
9694 eval "ac_cv_func_$ac_func=yes"
9695 else
9696 echo "configure: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9698 rm -rf conftest*
9699 eval "ac_cv_func_$ac_func=no"
9700 fi
9701 rm -f conftest*
9702 fi
9703
9704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9705 echo "$ac_t""yes" 1>&6
9706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9707 cat >> confdefs.h <<EOF
9708 #define $ac_tr_func 1
9709 EOF
9710
9711 else
9712 echo "$ac_t""no" 1>&6
9713 fi
9714 done
9715
9716
9717 POSIX4_LINK=
9718 for ac_func in nanosleep
9719 do
9720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9721 echo "configure:9722: checking for $ac_func" >&5
9722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9723 echo $ac_n "(cached) $ac_c" 1>&6
9724 else
9725 cat > conftest.$ac_ext <<EOF
9726 #line 9727 "configure"
9727 #include "confdefs.h"
9728 /* System header to define __stub macros and hopefully few prototypes,
9729 which can conflict with char $ac_func(); below. */
9730 #include <assert.h>
9731 /* Override any gcc2 internal prototype to avoid an error. */
9732 /* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9734 char $ac_func();
9735
9736 int main() {
9737
9738 /* The GNU C library defines this for functions which it implements
9739 to always fail with ENOSYS. Some functions are actually named
9740 something starting with __ and the normal name is an alias. */
9741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9742 choke me
9743 #else
9744 $ac_func();
9745 #endif
9746
9747 ; return 0; }
9748 EOF
9749 if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9750 rm -rf conftest*
9751 eval "ac_cv_func_$ac_func=yes"
9752 else
9753 echo "configure: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 rm -rf conftest*
9756 eval "ac_cv_func_$ac_func=no"
9757 fi
9758 rm -f conftest*
9759 fi
9760
9761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9762 echo "$ac_t""yes" 1>&6
9763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9764 cat >> confdefs.h <<EOF
9765 #define $ac_tr_func 1
9766 EOF
9767 cat >> confdefs.h <<\EOF
9768 #define HAVE_NANOSLEEP 1
9769 EOF
9770
9771 else
9772 echo "$ac_t""no" 1>&6
9773 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
9774 echo "configure:9775: checking for nanosleep in -lposix4" >&5
9775 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9778 else
9779 ac_save_LIBS="$LIBS"
9780 LIBS="-lposix4 $LIBS"
9781 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9784 /* Override any gcc2 internal prototype to avoid an error. */
9785 /* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */
9787 char nanosleep();
9788
9789 int main() {
9790 nanosleep()
9791 ; return 0; }
9792 EOF
9793 if { (eval echo configure:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9794 rm -rf conftest*
9795 eval "ac_cv_lib_$ac_lib_var=yes"
9796 else
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9799 rm -rf conftest*
9800 eval "ac_cv_lib_$ac_lib_var=no"
9801 fi
9802 rm -f conftest*
9803 LIBS="$ac_save_LIBS"
9804
9805 fi
9806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9807 echo "$ac_t""yes" 1>&6
9808
9809 cat >> confdefs.h <<\EOF
9810 #define HAVE_NANOSLEEP 1
9811 EOF
9812
9813 POSIX4_LINK="-lposix4"
9814
9815 else
9816 echo "$ac_t""no" 1>&6
9817
9818 for ac_func in usleep
9819 do
9820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9821 echo "configure:9822: checking for $ac_func" >&5
9822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824 else
9825 cat > conftest.$ac_ext <<EOF
9826 #line 9827 "configure"
9827 #include "confdefs.h"
9828 /* System header to define __stub macros and hopefully few prototypes,
9829 which can conflict with char $ac_func(); below. */
9830 #include <assert.h>
9831 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9834 char $ac_func();
9835
9836 int main() {
9837
9838 /* The GNU C library defines this for functions which it implements
9839 to always fail with ENOSYS. Some functions are actually named
9840 something starting with __ and the normal name is an alias. */
9841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9842 choke me
9843 #else
9844 $ac_func();
9845 #endif
9846
9847 ; return 0; }
9848 EOF
9849 if { (eval echo configure:9850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9850 rm -rf conftest*
9851 eval "ac_cv_func_$ac_func=yes"
9852 else
9853 echo "configure: failed program was:" >&5
9854 cat conftest.$ac_ext >&5
9855 rm -rf conftest*
9856 eval "ac_cv_func_$ac_func=no"
9857 fi
9858 rm -f conftest*
9859 fi
9860
9861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9862 echo "$ac_t""yes" 1>&6
9863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9864 cat >> confdefs.h <<EOF
9865 #define $ac_tr_func 1
9866 EOF
9867 cat >> confdefs.h <<\EOF
9868 #define HAVE_USLEEP 1
9869 EOF
9870
9871 else
9872 echo "$ac_t""no" 1>&6
9873 echo "configure: warning: wxSleep() function will not work" 1>&2
9874 fi
9875 done
9876
9877
9878 fi
9879
9880
9881 fi
9882 done
9883
9884
9885 for ac_func in uname gethostname
9886 do
9887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9888 echo "configure:9889: checking for $ac_func" >&5
9889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9891 else
9892 cat > conftest.$ac_ext <<EOF
9893 #line 9894 "configure"
9894 #include "confdefs.h"
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char $ac_func(); below. */
9897 #include <assert.h>
9898 /* Override any gcc2 internal prototype to avoid an error. */
9899 /* We use char because int might match the return type of a gcc2
9900 builtin and then its argument prototype would still apply. */
9901 char $ac_func();
9902
9903 int main() {
9904
9905 /* The GNU C library defines this for functions which it implements
9906 to always fail with ENOSYS. Some functions are actually named
9907 something starting with __ and the normal name is an alias. */
9908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9909 choke me
9910 #else
9911 $ac_func();
9912 #endif
9913
9914 ; return 0; }
9915 EOF
9916 if { (eval echo configure:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9917 rm -rf conftest*
9918 eval "ac_cv_func_$ac_func=yes"
9919 else
9920 echo "configure: failed program was:" >&5
9921 cat conftest.$ac_ext >&5
9922 rm -rf conftest*
9923 eval "ac_cv_func_$ac_func=no"
9924 fi
9925 rm -f conftest*
9926 fi
9927
9928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
9930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9931 cat >> confdefs.h <<EOF
9932 #define $ac_tr_func 1
9933 EOF
9934 break
9935 else
9936 echo "$ac_t""no" 1>&6
9937 fi
9938 done
9939
9940
9941 for ac_func in strtok_r
9942 do
9943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9944 echo "configure:9945: checking for $ac_func" >&5
9945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9946 echo $ac_n "(cached) $ac_c" 1>&6
9947 else
9948 cat > conftest.$ac_ext <<EOF
9949 #line 9950 "configure"
9950 #include "confdefs.h"
9951 /* System header to define __stub macros and hopefully few prototypes,
9952 which can conflict with char $ac_func(); below. */
9953 #include <assert.h>
9954 /* Override any gcc2 internal prototype to avoid an error. */
9955 /* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9957 char $ac_func();
9958
9959 int main() {
9960
9961 /* The GNU C library defines this for functions which it implements
9962 to always fail with ENOSYS. Some functions are actually named
9963 something starting with __ and the normal name is an alias. */
9964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9965 choke me
9966 #else
9967 $ac_func();
9968 #endif
9969
9970 ; return 0; }
9971 EOF
9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9973 rm -rf conftest*
9974 eval "ac_cv_func_$ac_func=yes"
9975 else
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -rf conftest*
9979 eval "ac_cv_func_$ac_func=no"
9980 fi
9981 rm -f conftest*
9982 fi
9983
9984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9985 echo "$ac_t""yes" 1>&6
9986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9987 cat >> confdefs.h <<EOF
9988 #define $ac_tr_func 1
9989 EOF
9990
9991 else
9992 echo "$ac_t""no" 1>&6
9993 fi
9994 done
9995
9996
9997 for ac_func in inet_addr
9998 do
9999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10000 echo "configure:10001: checking for $ac_func" >&5
10001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10003 else
10004 cat > conftest.$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 /* System header to define __stub macros and hopefully few prototypes,
10008 which can conflict with char $ac_func(); below. */
10009 #include <assert.h>
10010 /* Override any gcc2 internal prototype to avoid an error. */
10011 /* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10013 char $ac_func();
10014
10015 int main() {
10016
10017 /* The GNU C library defines this for functions which it implements
10018 to always fail with ENOSYS. Some functions are actually named
10019 something starting with __ and the normal name is an alias. */
10020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10021 choke me
10022 #else
10023 $ac_func();
10024 #endif
10025
10026 ; return 0; }
10027 EOF
10028 if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10029 rm -rf conftest*
10030 eval "ac_cv_func_$ac_func=yes"
10031 else
10032 echo "configure: failed program was:" >&5
10033 cat conftest.$ac_ext >&5
10034 rm -rf conftest*
10035 eval "ac_cv_func_$ac_func=no"
10036 fi
10037 rm -f conftest*
10038 fi
10039
10040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10041 echo "$ac_t""yes" 1>&6
10042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10043 cat >> confdefs.h <<EOF
10044 #define $ac_tr_func 1
10045 EOF
10046
10047 else
10048 echo "$ac_t""no" 1>&6
10049 fi
10050 done
10051
10052 for ac_func in inet_aton
10053 do
10054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10055 echo "configure:10056: checking for $ac_func" >&5
10056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10058 else
10059 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10062 /* System header to define __stub macros and hopefully few prototypes,
10063 which can conflict with char $ac_func(); below. */
10064 #include <assert.h>
10065 /* Override any gcc2 internal prototype to avoid an error. */
10066 /* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10068 char $ac_func();
10069
10070 int main() {
10071
10072 /* The GNU C library defines this for functions which it implements
10073 to always fail with ENOSYS. Some functions are actually named
10074 something starting with __ and the normal name is an alias. */
10075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10076 choke me
10077 #else
10078 $ac_func();
10079 #endif
10080
10081 ; return 0; }
10082 EOF
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10084 rm -rf conftest*
10085 eval "ac_cv_func_$ac_func=yes"
10086 else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 eval "ac_cv_func_$ac_func=no"
10091 fi
10092 rm -f conftest*
10093 fi
10094
10095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10096 echo "$ac_t""yes" 1>&6
10097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10098 cat >> confdefs.h <<EOF
10099 #define $ac_tr_func 1
10100 EOF
10101
10102 else
10103 echo "$ac_t""no" 1>&6
10104 fi
10105 done
10106
10107 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
10108 echo "configure:10109: checking for inet_aton in -lresolv" >&5
10109 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
10110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10112 else
10113 ac_save_LIBS="$LIBS"
10114 LIBS="-lresolv $LIBS"
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 /* Override any gcc2 internal prototype to avoid an error. */
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10121 char inet_aton();
10122
10123 int main() {
10124 inet_aton()
10125 ; return 0; }
10126 EOF
10127 if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10128 rm -rf conftest*
10129 eval "ac_cv_lib_$ac_lib_var=yes"
10130 else
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10133 rm -rf conftest*
10134 eval "ac_cv_lib_$ac_lib_var=no"
10135 fi
10136 rm -f conftest*
10137 LIBS="$ac_save_LIBS"
10138
10139 fi
10140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10141 echo "$ac_t""yes" 1>&6
10142 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10144 cat >> confdefs.h <<EOF
10145 #define $ac_tr_lib 1
10146 EOF
10147
10148 LIBS="-lresolv $LIBS"
10149
10150 else
10151 echo "$ac_t""no" 1>&6
10152 fi
10153
10154
10155
10156 cat > confcache <<\EOF
10157 # This file is a shell script that caches the results of configure
10158 # tests run on this system so they can be shared between configure
10159 # scripts and configure runs. It is not useful on other systems.
10160 # If it contains results you don't want to keep, you may remove or edit it.
10161 #
10162 # By default, configure uses ./config.cache as the cache file,
10163 # creating it if it does not exist already. You can give configure
10164 # the --cache-file=FILE option to use a different cache file; that is
10165 # what configure does when it calls configure scripts in
10166 # subdirectories, so they share the cache.
10167 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10168 # config.status only pays attention to the cache file if you give it the
10169 # --recheck option to rerun configure.
10170 #
10171 EOF
10172 # The following way of writing the cache mishandles newlines in values,
10173 # but we know of no workaround that is simple, portable, and efficient.
10174 # So, don't put newlines in cache variables' values.
10175 # Ultrix sh set writes to stderr and can't be redirected directly,
10176 # and sets the high bit in the cache file unless we assign to the vars.
10177 (set) 2>&1 |
10178 case `(ac_space=' '; set) 2>&1` in
10179 *ac_space=\ *)
10180 # `set' does not quote correctly, so add quotes (double-quote substitution
10181 # turns \\\\ into \\, and sed turns \\ into \).
10182 sed -n \
10183 -e "s/'/'\\\\''/g" \
10184 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10185 ;;
10186 *)
10187 # `set' quotes correctly as required by POSIX, so do not add quotes.
10188 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10189 ;;
10190 esac >> confcache
10191 if cmp -s $cache_file confcache; then
10192 :
10193 else
10194 if test -w $cache_file; then
10195 echo "updating cache $cache_file"
10196 cat confcache > $cache_file
10197 else
10198 echo "not updating unwritable cache $cache_file"
10199 fi
10200 fi
10201 rm -f confcache
10202
10203
10204
10205 if test "$USE_UNIX" = 1; then
10206
10207
10208 THREADS_LINK=""
10209 THREADS_OBJ=""
10210
10211 if test "$wxUSE_THREADS" = "yes" ; then
10212 if test "$wxUSE_WINE" = 1 ; then
10213 echo "configure: warning: Threads are not supported under WINE" 1>&2
10214 wxUSE_THREADS="no"
10215 fi
10216 fi
10217
10218 if test "$wxUSE_THREADS" = "yes" ; then
10219
10220 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10221 echo "configure:10222: checking for pthread_create in -lpthread" >&5
10222 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10224 echo $ac_n "(cached) $ac_c" 1>&6
10225 else
10226 ac_save_LIBS="$LIBS"
10227 LIBS="-lpthread $LIBS"
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 /* Override any gcc2 internal prototype to avoid an error. */
10232 /* We use char because int might match the return type of a gcc2
10233 builtin and then its argument prototype would still apply. */
10234 char pthread_create();
10235
10236 int main() {
10237 pthread_create()
10238 ; return 0; }
10239 EOF
10240 if { (eval echo configure:10241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10241 rm -rf conftest*
10242 eval "ac_cv_lib_$ac_lib_var=yes"
10243 else
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 rm -rf conftest*
10247 eval "ac_cv_lib_$ac_lib_var=no"
10248 fi
10249 rm -f conftest*
10250 LIBS="$ac_save_LIBS"
10251
10252 fi
10253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10254 echo "$ac_t""yes" 1>&6
10255
10256 THREADS_OBJ="threadpsx.lo"
10257 THREADS_LINK="pthread"
10258
10259 else
10260 echo "$ac_t""no" 1>&6
10261
10262 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10263 echo "configure:10264: checking for pthread_create in -lc_r" >&5
10264 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10267 else
10268 ac_save_LIBS="$LIBS"
10269 LIBS="-lc_r $LIBS"
10270 cat > conftest.$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 /* Override any gcc2 internal prototype to avoid an error. */
10274 /* We use char because int might match the return type of a gcc2
10275 builtin and then its argument prototype would still apply. */
10276 char pthread_create();
10277
10278 int main() {
10279 pthread_create()
10280 ; return 0; }
10281 EOF
10282 if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10283 rm -rf conftest*
10284 eval "ac_cv_lib_$ac_lib_var=yes"
10285 else
10286 echo "configure: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 rm -rf conftest*
10289 eval "ac_cv_lib_$ac_lib_var=no"
10290 fi
10291 rm -f conftest*
10292 LIBS="$ac_save_LIBS"
10293
10294 fi
10295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10296 echo "$ac_t""yes" 1>&6
10297
10298 THREADS_OBJ="threadpsx.lo"
10299 THREADS_LINK="c_r"
10300
10301 else
10302 echo "$ac_t""no" 1>&6
10303
10304 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10305 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10306 echo "configure:10307: checking for sys/prctl.h" >&5
10307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <sys/prctl.h>
10314 EOF
10315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10316 { (eval echo configure:10317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10317 ac_err=`grep -v '^ *+' conftest.out`
10318 if test -z "$ac_err"; then
10319 rm -rf conftest*
10320 eval "ac_cv_header_$ac_safe=yes"
10321 else
10322 echo "$ac_err" >&5
10323 echo "configure: failed program was:" >&5
10324 cat conftest.$ac_ext >&5
10325 rm -rf conftest*
10326 eval "ac_cv_header_$ac_safe=no"
10327 fi
10328 rm -f conftest*
10329 fi
10330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10331 echo "$ac_t""yes" 1>&6
10332
10333 THREADS_OBJ="threadsgi.lo"
10334
10335 else
10336 echo "$ac_t""no" 1>&6
10337 fi
10338
10339
10340 fi
10341
10342
10343 fi
10344
10345
10346 if test -z "$THREADS_OBJ" ; then
10347 wxUSE_THREADS=no
10348 echo "configure: warning: No thread support on this system" 1>&2
10349 fi
10350 fi
10351
10352 if test "$wxUSE_THREADS" = "yes" ; then
10353
10354 for ac_hdr in sched.h
10355 do
10356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10358 echo "configure:10359: checking for $ac_hdr" >&5
10359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10360 echo $ac_n "(cached) $ac_c" 1>&6
10361 else
10362 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10365 #include <$ac_hdr>
10366 EOF
10367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10368 { (eval echo configure:10369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10369 ac_err=`grep -v '^ *+' conftest.out`
10370 if test -z "$ac_err"; then
10371 rm -rf conftest*
10372 eval "ac_cv_header_$ac_safe=yes"
10373 else
10374 echo "$ac_err" >&5
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10377 rm -rf conftest*
10378 eval "ac_cv_header_$ac_safe=no"
10379 fi
10380 rm -f conftest*
10381 fi
10382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10383 echo "$ac_t""yes" 1>&6
10384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10385 cat >> confdefs.h <<EOF
10386 #define $ac_tr_hdr 1
10387 EOF
10388
10389 else
10390 echo "$ac_t""no" 1>&6
10391 fi
10392 done
10393
10394
10395 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
10396 echo "configure:10397: checking for sched_yield in -l$THREADS_LINK" >&5
10397 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10399 echo $ac_n "(cached) $ac_c" 1>&6
10400 else
10401 ac_save_LIBS="$LIBS"
10402 LIBS="-l$THREADS_LINK $LIBS"
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10405 "configure"
10405 #include "confdefs.h"
10406 /* Override any gcc2 internal prototype to avoid an error. */
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10409 char sched_yield();
10410
10411 int main() {
10412 sched_yield()
10413 ; return 0; }
10414 EOF
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10416 rm -rf conftest*
10417 eval "ac_cv_lib_$ac_lib_var=yes"
10418 else
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 rm -rf conftest*
10422 eval "ac_cv_lib_$ac_lib_var=no"
10423 fi
10424 rm -f conftest*
10425 LIBS="$ac_save_LIBS"
10426
10427 fi
10428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10429 echo "$ac_t""yes" 1>&6
10430 cat >> confdefs.h <<\EOF
10431 #define HAVE_SCHED_YIELD 1
10432 EOF
10433
10434 else
10435 echo "$ac_t""no" 1>&6
10436 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
10437 echo "configure:10438: checking for sched_yield in -l"posix4"" >&5
10438 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10441 else
10442 ac_save_LIBS="$LIBS"
10443 LIBS="-l"posix4" $LIBS"
10444 cat > conftest.$ac_ext <<EOF
10445 #line 10446 "configure"
10446 #include "confdefs.h"
10447 /* Override any gcc2 internal prototype to avoid an error. */
10448 /* We use char because int might match the return type of a gcc2
10449 builtin and then its argument prototype would still apply. */
10450 char sched_yield();
10451
10452 int main() {
10453 sched_yield()
10454 ; return 0; }
10455 EOF
10456 if { (eval echo configure:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10457 rm -rf conftest*
10458 eval "ac_cv_lib_$ac_lib_var=yes"
10459 else
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 rm -rf conftest*
10463 eval "ac_cv_lib_$ac_lib_var=no"
10464 fi
10465 rm -f conftest*
10466 LIBS="$ac_save_LIBS"
10467
10468 fi
10469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10470 echo "$ac_t""yes" 1>&6
10471 cat >> confdefs.h <<\EOF
10472 #define HAVE_SCHED_YIELD 1
10473 EOF
10474 POSIX4_LINK="-lposix4"
10475 else
10476 echo "$ac_t""no" 1>&6
10477 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10478
10479 fi
10480
10481
10482 fi
10483
10484
10485 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
10486 echo "configure:10487: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10487 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10489 echo $ac_n "(cached) $ac_c" 1>&6
10490 else
10491 ac_save_LIBS="$LIBS"
10492 LIBS="-l$THREADS_LINK $LIBS"
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10496 /* Override any gcc2 internal prototype to avoid an error. */
10497 /* We use char because int might match the return type of a gcc2
10498 builtin and then its argument prototype would still apply. */
10499 char pthread_attr_getschedpolicy();
10500
10501 int main() {
10502 pthread_attr_getschedpolicy()
10503 ; return 0; }
10504 EOF
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10506 rm -rf conftest*
10507 eval "ac_cv_lib_$ac_lib_var=yes"
10508 else
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 rm -rf conftest*
10512 eval "ac_cv_lib_$ac_lib_var=no"
10513 fi
10514 rm -f conftest*
10515 LIBS="$ac_save_LIBS"
10516
10517 fi
10518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10519 echo "$ac_t""yes" 1>&6
10520 cat >> confdefs.h <<\EOF
10521 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10522 EOF
10523
10524 else
10525 echo "$ac_t""no" 1>&6
10526 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
10527 echo "configure:10528: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10528 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10531 else
10532 ac_save_LIBS="$LIBS"
10533 LIBS="-l"posix4" $LIBS"
10534 cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10537 /* Override any gcc2 internal prototype to avoid an error. */
10538 /* We use char because int might match the return type of a gcc2
10539 builtin and then its argument prototype would still apply. */
10540 char pthread_attr_getschedpolicy();
10541
10542 int main() {
10543 pthread_attr_getschedpolicy()
10544 ; return 0; }
10545 EOF
10546 if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10547 rm -rf conftest*
10548 eval "ac_cv_lib_$ac_lib_var=yes"
10549 else
10550 echo "configure: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10552 rm -rf conftest*
10553 eval "ac_cv_lib_$ac_lib_var=no"
10554 fi
10555 rm -f conftest*
10556 LIBS="$ac_save_LIBS"
10557
10558 fi
10559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10560 echo "$ac_t""yes" 1>&6
10561 cat >> confdefs.h <<\EOF
10562 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10563 EOF
10564 POSIX4_LINK="-lposix4"
10565 else
10566 echo "$ac_t""no" 1>&6
10567 echo "configure: warning: Setting thread priority will not work" 1>&2
10568
10569 fi
10570
10571
10572 fi
10573
10574
10575 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
10576 echo "configure:10577: checking for pthread_cancel in -l$THREADS_LINK" >&5
10577 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10580 else
10581 ac_save_LIBS="$LIBS"
10582 LIBS="-l$THREADS_LINK $LIBS"
10583 cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure"
10585 #include "confdefs.h"
10586 /* Override any gcc2 internal prototype to avoid an error. */
10587 /* We use char because int might match the return type of a gcc2
10588 builtin and then its argument prototype would still apply. */
10589 char pthread_cancel();
10590
10591 int main() {
10592 pthread_cancel()
10593 ; return 0; }
10594 EOF
10595 if { (eval echo configure:10596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10596 rm -rf conftest*
10597 eval "ac_cv_lib_$ac_lib_var=yes"
10598 else
10599 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10601 rm -rf conftest*
10602 eval "ac_cv_lib_$ac_lib_var=no"
10603 fi
10604 rm -f conftest*
10605 LIBS="$ac_save_LIBS"
10606
10607 fi
10608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10609 echo "$ac_t""yes" 1>&6
10610 cat >> confdefs.h <<\EOF
10611 #define HAVE_PTHREAD_CANCEL 1
10612 EOF
10613
10614 else
10615 echo "$ac_t""no" 1>&6
10616 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10617 fi
10618
10619
10620 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
10621 echo "configure:10622: checking for pthread_cleanup_push/pop" >&5
10622 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10624 else
10625
10626 cat > conftest.$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10629 #include <pthread.h>
10630 int main() {
10631
10632 pthread_cleanup_push(NULL, NULL);
10633 pthread_cleanup_pop(0);
10634
10635 ; return 0; }
10636 EOF
10637 if { (eval echo configure:10638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10638 rm -rf conftest*
10639
10640 wx_cv_func_pthread_cleanup_push=yes
10641 cat >> confdefs.h <<\EOF
10642 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
10643 EOF
10644
10645
10646 else
10647 echo "configure: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10649 rm -rf conftest*
10650
10651 wx_cv_func_pthread_cleanup_push=no
10652
10653 fi
10654 rm -f conftest*
10655
10656 fi
10657
10658 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10659
10660 THREADS_LINK="-l$THREADS_LINK"
10661 fi
10662
10663 fi
10664
10665 if test "$wxUSE_THREADS" = "yes"; then
10666 cat >> confdefs.h <<\EOF
10667 #define wxUSE_THREADS 1
10668 EOF
10669
10670
10671 CFLAGS="${CFLAGS} -D_REENTRANT"
10672 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10673
10674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
10675 fi
10676
10677 if test "$WXGTK12" = 1 ; then
10678 cat >> confdefs.h <<EOF
10679 #define __WXGTK12__ $WXGTK12
10680 EOF
10681
10682 fi
10683
10684 if test "$WXWINE" = 1 ; then
10685 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10686 fi
10687
10688 if test "$wxUSE_CYGWIN" = 1 ; then
10689 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10690 fi
10691
10692 WXDEBUG=
10693
10694 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10695 WXDEBUG="-g"
10696 wxUSE_OPTIMISE=no
10697 fi
10698
10699 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10700 wxUSE_DEBUG_INFO=yes
10701 WXDEBUG="-ggdb"
10702 fi
10703
10704 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10705 cat >> confdefs.h <<\EOF
10706 #define WXDEBUG 1
10707 EOF
10708
10709 WXDEBUG_DEFINE="-D__WXDEBUG__"
10710 else
10711 if test "$wxUSE_GTK" = 1 ; then
10712 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10713 fi
10714 fi
10715
10716 if test "$wxUSE_MEM_TRACING" = "yes" ; then
10717 cat >> confdefs.h <<\EOF
10718 #define wxUSE_MEMORY_TRACING 1
10719 EOF
10720
10721 cat >> confdefs.h <<\EOF
10722 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10723 EOF
10724
10725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10726 fi
10727
10728 if test "$wxUSE_DMALLOC" = "yes" ; then
10729 DMALLOC_LINK="-ldmalloc"
10730 fi
10731
10732 PROFILE=
10733 if test "$wxUSE_PROFILE" = "yes" ; then
10734 PROFILE="-pg"
10735 fi
10736
10737 DEP_INFO_FLAGS=
10738 if test "$GCC" = yes ; then
10739 if test "$wxUSE_NO_RTTI" = "yes" ; then
10740 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
10741 fi
10742 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
10743 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
10744 fi
10745 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10746 CFLAGS="${CFLAGS} -fpermissive"
10747 CXXFLAGS="${CXXFLAGS} -fpermissive"
10748 fi
10749 if test "$wxUSE_NO_DEPS" = "no" ; then
10750 DEP_INFO_FLAGS="-MMD"
10751 fi
10752 fi
10753
10754
10755 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10756 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10757 if test "$wxUSE_OPTIMISE" = "no" ; then
10758 OPTIMISE=
10759 else
10760 if test "$GCC" = yes ; then
10761 OPTIMISE="-O2"
10762 case "${host}" in
10763 i586-*-*|i686-*-* )
10764 OPTIMISE="${OPTIMISE} "
10765 ;;
10766 esac
10767 else
10768 OPTIMISE="-O"
10769 fi
10770 fi
10771
10772
10773 ZLIB_INCLUDE=
10774 if test "$wxUSE_ZLIB" = "yes" ; then
10775 cat >> confdefs.h <<\EOF
10776 #define wxUSE_ZLIB 1
10777 EOF
10778
10779 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10780 fi
10781
10782 PNG_INCLUDE=
10783 if test "$wxUSE_LIBPNG" = "yes" ; then
10784 cat >> confdefs.h <<\EOF
10785 #define wxUSE_LIBPNG 1
10786 EOF
10787
10788 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10790 fi
10791
10792 JPEG_INCLUDE=
10793 if test "$wxUSE_LIBJPEG" = "yes" ; then
10794 cat >> confdefs.h <<\EOF
10795 #define wxUSE_LIBJPEG 1
10796 EOF
10797
10798 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10799 fi
10800
10801 if test "$wxUSE_OPENGL" = "yes"; then
10802 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10803 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
10804 echo "configure:10805: checking for GL/gl.h" >&5
10805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10807 else
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10811 #include <GL/gl.h>
10812 EOF
10813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10814 { (eval echo configure:10815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10815 ac_err=`grep -v '^ *+' conftest.out`
10816 if test -z "$ac_err"; then
10817 rm -rf conftest*
10818 eval "ac_cv_header_$ac_safe=yes"
10819 else
10820 echo "$ac_err" >&5
10821 echo "configure: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10823 rm -rf conftest*
10824 eval "ac_cv_header_$ac_safe=no"
10825 fi
10826 rm -f conftest*
10827 fi
10828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10829 echo "$ac_t""yes" 1>&6
10830
10831 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
10832 echo "configure:10833: checking for glInitNames in -lGL" >&5
10833 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10836 else
10837 ac_save_LIBS="$LIBS"
10838 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10839 cat > conftest.$ac_ext <<EOF
10840 #line 10841 "configure"
10841 #include "confdefs.h"
10842 /* Override any gcc2 internal prototype to avoid an error. */
10843 /* We use char because int might match the return type of a gcc2
10844 builtin and then its argument prototype would still apply. */
10845 char glInitNames();
10846
10847 int main() {
10848 glInitNames()
10849 ; return 0; }
10850 EOF
10851 if { (eval echo configure:10852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10852 rm -rf conftest*
10853 eval "ac_cv_lib_$ac_lib_var=yes"
10854 else
10855 echo "configure: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10857 rm -rf conftest*
10858 eval "ac_cv_lib_$ac_lib_var=no"
10859 fi
10860 rm -f conftest*
10861 LIBS="$ac_save_LIBS"
10862
10863 fi
10864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10865 echo "$ac_t""yes" 1>&6
10866
10867 OPENGL_LINK="-lGL"
10868 cat >> confdefs.h <<\EOF
10869 #define wxUSE_OPENGL 1
10870 EOF
10871
10872 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10873
10874 else
10875 echo "$ac_t""no" 1>&6
10876
10877 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
10878 echo "configure:10879: checking for glInitNames in -lMesaGL" >&5
10879 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10881 echo $ac_n "(cached) $ac_c" 1>&6
10882 else
10883 ac_save_LIBS="$LIBS"
10884 LIBS="-lMesaGL $LIBS"
10885 cat > conftest.$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10888 /* Override any gcc2 internal prototype to avoid an error. */
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10891 char glInitNames();
10892
10893 int main() {
10894 glInitNames()
10895 ; return 0; }
10896 EOF
10897 if { (eval echo configure:10898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10898 rm -rf conftest*
10899 eval "ac_cv_lib_$ac_lib_var=yes"
10900 else
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10903 rm -rf conftest*
10904 eval "ac_cv_lib_$ac_lib_var=no"
10905 fi
10906 rm -f conftest*
10907 LIBS="$ac_save_LIBS"
10908
10909 fi
10910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10911 echo "$ac_t""yes" 1>&6
10912
10913 OPENGL_LINK="-lMesaGL"
10914 cat >> confdefs.h <<\EOF
10915 #define wxUSE_OPENGL 1
10916 EOF
10917
10918 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10919
10920 else
10921 echo "$ac_t""no" 1>&6
10922 wxUSE_OPENGL=0
10923 fi
10924
10925
10926 fi
10927
10928
10929 else
10930 echo "$ac_t""no" 1>&6
10931 wxUSE_OPENGL=0
10932 fi
10933
10934 fi
10935
10936
10937 if test "$wxUSE_GUI" = "yes"; then
10938 cat >> confdefs.h <<\EOF
10939 #define wxUSE_GUI 1
10940 EOF
10941
10942
10943 else
10944 cat >> confdefs.h <<\EOF
10945 #define wxUSE_NOGUI 1
10946 EOF
10947
10948 fi
10949
10950
10951 if test "$wxUSE_UNIX" = "yes"; then
10952 cat >> confdefs.h <<\EOF
10953 #define wxUSE_UNIX 1
10954 EOF
10955
10956 fi
10957
10958
10959 if test "$wxUSE_APPLE_IEEE" = "yes"; then
10960 cat >> confdefs.h <<\EOF
10961 #define wxUSE_APPLE_IEEE 1
10962 EOF
10963
10964 fi
10965
10966 if test "$wxUSE_TIMEDATE" = "yes"; then
10967 cat >> confdefs.h <<\EOF
10968 #define wxUSE_TIMEDATE 1
10969 EOF
10970
10971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10972 fi
10973
10974 if test "$wxUSE_WAVE" = "yes"; then
10975 cat >> confdefs.h <<\EOF
10976 #define wxUSE_WAVE 1
10977 EOF
10978
10979 fi
10980
10981 if test "$wxUSE_FILE" = "yes"; then
10982 cat >> confdefs.h <<\EOF
10983 #define wxUSE_FILE 1
10984 EOF
10985
10986 fi
10987
10988 if test "$wxUSE_FS_INET" = "yes"; then
10989 cat >> confdefs.h <<\EOF
10990 #define wxUSE_FS_INET 1
10991 EOF
10992
10993 fi
10994
10995 if test "$wxUSE_FS_ZIP" = "yes"; then
10996 cat >> confdefs.h <<\EOF
10997 #define wxUSE_FS_ZIP 1
10998 EOF
10999
11000 fi
11001
11002 if test "$wxUSE_ZIPSTREAM" = "yes"; then
11003 cat >> confdefs.h <<\EOF
11004 #define wxUSE_ZIPSTREAM 1
11005 EOF
11006
11007 fi
11008
11009 if test "$wxUSE_BUSYINFO" = "yes"; then
11010 cat >> confdefs.h <<\EOF
11011 #define wxUSE_BUSYINFO 1
11012 EOF
11013
11014 fi
11015
11016 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11017 cat >> confdefs.h <<\EOF
11018 #define wxUSE_STD_IOSTREAM 1
11019 EOF
11020
11021 fi
11022
11023 if test "$wxUSE_TEXTFILE" = "yes"; then
11024 if test "$wxUSE_FILE" != "yes"; then
11025 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11026 else
11027 cat >> confdefs.h <<\EOF
11028 #define wxUSE_TEXTFILE 1
11029 EOF
11030
11031 fi
11032 fi
11033
11034 if test "$wxUSE_CONFIG" = "yes" ; then
11035 if test "$wxUSE_TEXTFILE" != "yes"; then
11036 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11037 else
11038 cat >> confdefs.h <<\EOF
11039 #define wxUSE_CONFIG 1
11040 EOF
11041
11042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11043 fi
11044 fi
11045
11046 if test "$wxUSE_INTL" = "yes" ; then
11047 if test "$wxUSE_FILE" != "yes"; then
11048 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11049 else
11050 cat >> confdefs.h <<\EOF
11051 #define wxUSE_INTL 1
11052 EOF
11053
11054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11055 fi
11056 fi
11057
11058 if test "$wxUSE_LOG" = "yes"; then
11059 cat >> confdefs.h <<\EOF
11060 #define wxUSE_LOG 1
11061 EOF
11062
11063 fi
11064
11065 if test "$wxUSE_LONGLONG" = "yes"; then
11066 cat >> confdefs.h <<\EOF
11067 #define wxUSE_LONGLONG 1
11068 EOF
11069
11070 fi
11071
11072 if test "$wxUSE_SOCKETS" = "yes" ; then
11073 cat >> confdefs.h <<\EOF
11074 #define wxUSE_SOCKETS 1
11075 EOF
11076
11077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
11078 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
11079 fi
11080
11081 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11082 cat >> confdefs.h <<\EOF
11083 #define wxUSE_DIALUP_MANAGER 1
11084 EOF
11085
11086 fi
11087
11088 if test "$wxUSE_STREAMS" = "yes" ; then
11089 cat >> confdefs.h <<\EOF
11090 #define wxUSE_STREAMS 1
11091 EOF
11092
11093 fi
11094
11095 if test "$wxUSE_SERIAL" = "yes" ; then
11096 cat >> confdefs.h <<\EOF
11097 #define wxUSE_SERIAL 1
11098 EOF
11099
11100 fi
11101
11102
11103 if test "$wxUSE_SOCKETS" = "yes"; then
11104
11105 ac_ext=C
11106 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11107 ac_cpp='$CXXCPP $CPPFLAGS'
11108 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11109 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11110 cross_compiling=$ac_cv_prog_cxx_cross
11111
11112 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
11113 echo "configure:11114: checking the type of the third argument of getsockname" >&5
11114 cat > conftest.$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11117 #include <sys/socket.h>
11118 int main() {
11119 socklen_t len; getsockname(0, NULL, &len);
11120 ; return 0; }
11121 EOF
11122 if { (eval echo configure:11123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11123 rm -rf conftest*
11124 cat >> confdefs.h <<\EOF
11125 #define SOCKLEN_T socklen_t
11126 EOF
11127 echo "$ac_t""socklen_t" 1>&6
11128 else
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 rm -rf conftest*
11132 cat > conftest.$ac_ext <<EOF
11133 #line 11134 "configure"
11134 #include "confdefs.h"
11135 #include <sys/socket.h>
11136 int main() {
11137 size_t len; getsockname(0, NULL, &len);
11138 ; return 0; }
11139 EOF
11140 if { (eval echo configure:11141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11141 rm -rf conftest*
11142 cat >> confdefs.h <<\EOF
11143 #define SOCKLEN_T size_t
11144 EOF
11145 echo "$ac_t""size_t" 1>&6
11146 else
11147 echo "configure: failed program was:" >&5
11148 cat conftest.$ac_ext >&5
11149 rm -rf conftest*
11150 cat > conftest.$ac_ext <<EOF
11151 #line 11152 "configure"
11152 #include "confdefs.h"
11153 #include <sys/socket.h>
11154 int main() {
11155 int len; getsockname(0, NULL, &len);
11156 ; return 0; }
11157 EOF
11158 if { (eval echo configure:11159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11159 rm -rf conftest*
11160 cat >> confdefs.h <<\EOF
11161 #define SOCKLEN_T int
11162 EOF
11163 echo "$ac_t""int" 1>&6
11164 else
11165 echo "configure: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11167 rm -rf conftest*
11168 echo "$ac_t""unknown" 1>&6
11169
11170 fi
11171 rm -f conftest*
11172
11173 fi
11174 rm -f conftest*
11175
11176 fi
11177 rm -f conftest*
11178 ac_ext=c
11179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11180 ac_cpp='$CPP $CPPFLAGS'
11181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11182 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11183 cross_compiling=$ac_cv_prog_cc_cross
11184
11185 fi
11186
11187
11188 if test "$wxUSE_JOYSTICK" = 1; then
11189 for ac_hdr in linux/joystick.h
11190 do
11191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11193 echo "configure:11194: checking for $ac_hdr" >&5
11194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11196 else
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11200 #include <$ac_hdr>
11201 EOF
11202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11203 { (eval echo configure:11204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11204 ac_err=`grep -v '^ *+' conftest.out`
11205 if test -z "$ac_err"; then
11206 rm -rf conftest*
11207 eval "ac_cv_header_$ac_safe=yes"
11208 else
11209 echo "$ac_err" >&5
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11212 rm -rf conftest*
11213 eval "ac_cv_header_$ac_safe=no"
11214 fi
11215 rm -f conftest*
11216 fi
11217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11218 echo "$ac_t""yes" 1>&6
11219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11220 cat >> confdefs.h <<EOF
11221 #define $ac_tr_hdr 1
11222 EOF
11223
11224 else
11225 echo "$ac_t""no" 1>&6
11226 fi
11227 done
11228
11229 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11230 cat >> confdefs.h <<\EOF
11231 #define wxUSE_JOYSTICK 1
11232 EOF
11233
11234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11235 fi
11236 fi
11237
11238
11239 HAVE_DL_FUNCS=0
11240 HAVE_SHL_FUNCS=0
11241 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
11242 for ac_func in dlopen
11243 do
11244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11245 echo "configure:11246: checking for $ac_func" >&5
11246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11248 else
11249 cat > conftest.$ac_ext <<EOF
11250 #line 11251 "configure"
11251 #include "confdefs.h"
11252 /* System header to define __stub macros and hopefully few prototypes,
11253 which can conflict with char $ac_func(); below. */
11254 #include <assert.h>
11255 /* Override any gcc2 internal prototype to avoid an error. */
11256 /* We use char because int might match the return type of a gcc2
11257 builtin and then its argument prototype would still apply. */
11258 char $ac_func();
11259
11260 int main() {
11261
11262 /* The GNU C library defines this for functions which it implements
11263 to always fail with ENOSYS. Some functions are actually named
11264 something starting with __ and the normal name is an alias. */
11265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11266 choke me
11267 #else
11268 $ac_func();
11269 #endif
11270
11271 ; return 0; }
11272 EOF
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11274 rm -rf conftest*
11275 eval "ac_cv_func_$ac_func=yes"
11276 else
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11279 rm -rf conftest*
11280 eval "ac_cv_func_$ac_func=no"
11281 fi
11282 rm -f conftest*
11283 fi
11284
11285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11286 echo "$ac_t""yes" 1>&6
11287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11288 cat >> confdefs.h <<EOF
11289 #define $ac_tr_func 1
11290 EOF
11291
11292 cat >> confdefs.h <<\EOF
11293 #define HAVE_DLOPEN 1
11294 EOF
11295
11296 HAVE_DL_FUNCS=1
11297
11298 else
11299 echo "$ac_t""no" 1>&6
11300 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11301 echo "configure:11302: checking for dlopen in -ldl" >&5
11302 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11304 echo $ac_n "(cached) $ac_c" 1>&6
11305 else
11306 ac_save_LIBS="$LIBS"
11307 LIBS="-ldl $LIBS"
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11311 /* Override any gcc2 internal prototype to avoid an error. */
11312 /* We use char because int might match the return type of a gcc2
11313 builtin and then its argument prototype would still apply. */
11314 char dlopen();
11315
11316 int main() {
11317 dlopen()
11318 ; return 0; }
11319 EOF
11320 if { (eval echo configure:11321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11321 rm -rf conftest*
11322 eval "ac_cv_lib_$ac_lib_var=yes"
11323 else
11324 echo "configure: failed program was:" >&5
11325 cat conftest.$ac_ext >&5
11326 rm -rf conftest*
11327 eval "ac_cv_lib_$ac_lib_var=no"
11328 fi
11329 rm -f conftest*
11330 LIBS="$ac_save_LIBS"
11331
11332 fi
11333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11334 echo "$ac_t""yes" 1>&6
11335
11336 cat >> confdefs.h <<\EOF
11337 #define HAVE_DLOPEN 1
11338 EOF
11339
11340 HAVE_DL_FUNCS=1
11341 LIBS="$LIBS -ldl"
11342
11343 else
11344 echo "$ac_t""no" 1>&6
11345
11346 for ac_func in shl_load
11347 do
11348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11349 echo "configure:11350: checking for $ac_func" >&5
11350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11352 else
11353 cat > conftest.$ac_ext <<EOF
11354 #line 11355 "configure"
11355 #include "confdefs.h"
11356 /* System header to define __stub macros and hopefully few prototypes,
11357 which can conflict with char $ac_func(); below. */
11358 #include <assert.h>
11359 /* Override any gcc2 internal prototype to avoid an error. */
11360 /* We use char because int might match the return type of a gcc2
11361 builtin and then its argument prototype would still apply. */
11362 char $ac_func();
11363
11364 int main() {
11365
11366 /* The GNU C library defines this for functions which it implements
11367 to always fail with ENOSYS. Some functions are actually named
11368 something starting with __ and the normal name is an alias. */
11369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11370 choke me
11371 #else
11372 $ac_func();
11373 #endif
11374
11375 ; return 0; }
11376 EOF
11377 if { (eval echo configure:11378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11378 rm -rf conftest*
11379 eval "ac_cv_func_$ac_func=yes"
11380 else
11381 echo "configure: failed program was:" >&5
11382 cat conftest.$ac_ext >&5
11383 rm -rf conftest*
11384 eval "ac_cv_func_$ac_func=no"
11385 fi
11386 rm -f conftest*
11387 fi
11388
11389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11390 echo "$ac_t""yes" 1>&6
11391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11392 cat >> confdefs.h <<EOF
11393 #define $ac_tr_func 1
11394 EOF
11395
11396 cat >> confdefs.h <<\EOF
11397 #define HAVE_SHL_LOAD 1
11398 EOF
11399
11400 HAVE_SHL_FUNCS=1
11401
11402 else
11403 echo "$ac_t""no" 1>&6
11404 fi
11405 done
11406
11407
11408 fi
11409
11410
11411 fi
11412 done
11413
11414
11415 if test "$HAVE_DL_FUNCS" = 0; then
11416 if test "$HAVE_SHL_FUNCS" = 0; then
11417 if test "$USE_UNIX" = 1; then
11418 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
11419 wxUSE_ODBC=no
11420 wxUSE_DYNLIB_CLASS=no
11421 else
11422 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
11423 fi
11424 fi
11425 fi
11426 fi
11427
11428 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
11429 cat >> confdefs.h <<\EOF
11430 #define wxUSE_DYNLIB_CLASS 1
11431 EOF
11432
11433 fi
11434
11435
11436 if test "$wxUSE_UNICODE" = "yes" ; then
11437 cat >> confdefs.h <<\EOF
11438 #define wxUSE_UNICODE 1
11439 EOF
11440
11441 fi
11442
11443 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11444 cat >> confdefs.h <<\EOF
11445 #define wxUSE_WCSRTOMBS 1
11446 EOF
11447
11448 fi
11449
11450 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11451 cat >> confdefs.h <<\EOF
11452 #define wxUSE_EXPERIMENTAL_PRINTF 1
11453 EOF
11454
11455 fi
11456
11457
11458 IODBC_C_SRC=""
11459 if test "$wxUSE_ODBC" = "yes" ; then
11460 cat >> confdefs.h <<\EOF
11461 #define wxUSE_ODBC 1
11462 EOF
11463
11464 WXODBCFLAG="-D_IODBC_"
11465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11466 fi
11467
11468
11469 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11470 cat >> confdefs.h <<\EOF
11471 #define wxUSE_POSTSCRIPT 1
11472 EOF
11473
11474 fi
11475
11476 cat >> confdefs.h <<\EOF
11477 #define wxUSE_AFM_FOR_POSTSCRIPT 1
11478 EOF
11479
11480
11481 cat >> confdefs.h <<\EOF
11482 #define wxUSE_NORMALIZED_PS_FONTS 1
11483 EOF
11484
11485
11486
11487 if test "$wxUSE_CONSTRAINTS" = "yes"; then
11488 cat >> confdefs.h <<\EOF
11489 #define wxUSE_CONSTRAINTS 1
11490 EOF
11491
11492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11493 fi
11494
11495 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11496 cat >> confdefs.h <<\EOF
11497 #define wxUSE_MDI_ARCHITECTURE 1
11498 EOF
11499
11500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11501 fi
11502
11503 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11504 cat >> confdefs.h <<\EOF
11505 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
11506 EOF
11507
11508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11509 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11511 fi
11512 fi
11513
11514 if test "$wxUSE_HELP" = "yes"; then
11515 cat >> confdefs.h <<\EOF
11516 #define wxUSE_HELP 1
11517 EOF
11518
11519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11520 fi
11521
11522 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11523 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11524 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11525 else
11526 cat >> confdefs.h <<\EOF
11527 #define wxUSE_PRINTING_ARCHITECTURE 1
11528 EOF
11529
11530 fi
11531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11532 fi
11533
11534 if test "$wxUSE_PROLOGIO" = "yes" ; then
11535 cat >> confdefs.h <<\EOF
11536 #define wxUSE_PROLOGIO 1
11537 EOF
11538
11539 fi
11540
11541 if test "$wxUSE_RESOURCES" = "yes" ; then
11542 if test "$wxUSE_PROLOGIO" = "yes" ; then
11543 cat >> confdefs.h <<\EOF
11544 #define wxUSE_RESOURCES 1
11545 EOF
11546
11547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11548 else
11549 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11550 fi
11551 fi
11552
11553 if test "$wxUSE_X_RESOURCES" = "yes"; then
11554 cat >> confdefs.h <<\EOF
11555 #define wxUSE_X_RESOURCES 1
11556 EOF
11557
11558 fi
11559
11560
11561 if test "$wxUSE_IPC" = "yes"; then
11562 cat >> confdefs.h <<\EOF
11563 #define wxUSE_IPC 1
11564 EOF
11565
11566 fi
11567
11568 if test "$wxUSE_CLIPBOARD" = "yes"; then
11569 cat >> confdefs.h <<\EOF
11570 #define wxUSE_CLIPBOARD 1
11571 EOF
11572
11573 fi
11574
11575 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11576 if test "$wxUSE_GTK" = 1; then
11577 if test "$WXGTK12" != 1; then
11578 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
11579 wxUSE_DRAG_AND_DROP=no
11580 fi
11581 fi
11582
11583 if test "$wxUSE_MOTIF" = 1; then
11584 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
11585 wxUSE_DRAG_AND_DROP=no
11586 fi
11587
11588 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11589 cat >> confdefs.h <<\EOF
11590 #define wxUSE_DRAG_AND_DROP 1
11591 EOF
11592
11593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11594 fi
11595 fi
11596
11597 if test "$wxUSE_SPLINES" = "yes" ; then
11598 cat >> confdefs.h <<\EOF
11599 #define wxUSE_SPLINES 1
11600 EOF
11601
11602 fi
11603
11604
11605 if test "$wxUSE_ACCEL" = "yes"; then
11606 cat >> confdefs.h <<\EOF
11607 #define wxUSE_ACCEL 1
11608 EOF
11609
11610 fi
11611
11612 if test "$wxUSE_CARET" = "yes"; then
11613 cat >> confdefs.h <<\EOF
11614 #define wxUSE_CARET 1
11615 EOF
11616
11617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
11618 fi
11619
11620 if test "$wxUSE_COMBOBOX" = "yes"; then
11621 cat >> confdefs.h <<\EOF
11622 #define wxUSE_COMBOBOX 1
11623 EOF
11624
11625 fi
11626
11627 if test "$wxUSE_CHOICE" = "yes"; then
11628 cat >> confdefs.h <<\EOF
11629 #define wxUSE_CHOICE 1
11630 EOF
11631
11632 fi
11633
11634 if test "$wxUSE_BMPBUTTON" = "yes"; then
11635 cat >> confdefs.h <<\EOF
11636 #define wxUSE_BMPBUTTON 1
11637 EOF
11638
11639 fi
11640
11641 if test "$wxUSE_CHECKBOX" = "yes"; then
11642 cat >> confdefs.h <<\EOF
11643 #define wxUSE_CHECKBOX 1
11644 EOF
11645
11646 fi
11647
11648 if test "$wxUSE_CHECKLST" = "yes"; then
11649 cat >> confdefs.h <<\EOF
11650 #define wxUSE_CHECKLISTBOX 1
11651 EOF
11652
11653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
11654 fi
11655
11656 if test "$wxUSE_GAUGE" = "yes"; then
11657 cat >> confdefs.h <<\EOF
11658 #define wxUSE_GAUGE 1
11659 EOF
11660
11661 fi
11662
11663 if test "$wxUSE_GRID" = "yes"; then
11664 cat >> confdefs.h <<\EOF
11665 #define wxUSE_GRID 1
11666 EOF
11667
11668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
11669 fi
11670
11671 if test "$wxUSE_NEW_GRID" = "yes"; then
11672 cat >> confdefs.h <<\EOF
11673 #define wxUSE_NEW_GRID 1
11674 EOF
11675
11676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
11677 fi
11678
11679 if test "$wxUSE_IMAGLIST" = "yes"; then
11680 cat >> confdefs.h <<\EOF
11681 #define wxUSE_IMAGLIST 1
11682 EOF
11683
11684 fi
11685
11686 if test "$wxUSE_LISTBOX" = "yes"; then
11687 cat >> confdefs.h <<\EOF
11688 #define wxUSE_LISTBOX 1
11689 EOF
11690
11691 fi
11692
11693 if test "$wxUSE_LISTCTRL" = "yes"; then
11694 if test "$wxUSE_IMAGLIST" = "yes"; then
11695 cat >> confdefs.h <<\EOF
11696 #define wxUSE_LISTCTRL 1
11697 EOF
11698
11699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
11700 else
11701 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
11702 fi
11703 fi
11704
11705 if test "$wxUSE_NOTEBOOK" = "yes"; then
11706 cat >> confdefs.h <<\EOF
11707 #define wxUSE_NOTEBOOK 1
11708 EOF
11709
11710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
11711 fi
11712
11713 if test "$wxUSE_RADIOBOX" = "yes"; then
11714 cat >> confdefs.h <<\EOF
11715 #define wxUSE_RADIOBOX 1
11716 EOF
11717
11718 fi
11719
11720 if test "$wxUSE_RADIOBTN" = "yes"; then
11721 cat >> confdefs.h <<\EOF
11722 #define wxUSE_RADIOBTN 1
11723 EOF
11724
11725 fi
11726
11727 if test "$wxUSE_SASH" = "yes"; then
11728 cat >> confdefs.h <<\EOF
11729 #define wxUSE_SASH 1
11730 EOF
11731
11732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
11733 fi
11734
11735 if test "$wxUSE_SCROLLBAR" = "yes"; then
11736 cat >> confdefs.h <<\EOF
11737 #define wxUSE_SCROLLBAR 1
11738 EOF
11739
11740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
11741 fi
11742
11743 if test "$wxUSE_SLIDER" = "yes"; then
11744 cat >> confdefs.h <<\EOF
11745 #define wxUSE_SLIDER 1
11746 EOF
11747
11748 fi
11749
11750 if test "$wxUSE_SPINBTN" = "yes"; then
11751 cat >> confdefs.h <<\EOF
11752 #define wxUSE_SPINBTN 1
11753 EOF
11754
11755 fi
11756
11757 if test "$wxUSE_SPLITTER" = "yes"; then
11758 cat >> confdefs.h <<\EOF
11759 #define wxUSE_SPLITTER 1
11760 EOF
11761
11762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
11763 fi
11764
11765 if test "$wxUSE_STATBMP" = "yes"; then
11766 cat >> confdefs.h <<\EOF
11767 #define wxUSE_STATBMP 1
11768 EOF
11769
11770 fi
11771
11772 if test "$wxUSE_STATBOX" = "yes"; then
11773 cat >> confdefs.h <<\EOF
11774 #define wxUSE_STATBOX 1
11775 EOF
11776
11777 fi
11778
11779 if test "$wxUSE_STATLINE" = "yes"; then
11780 if test "$wxUSE_WINE" = 1 ; then
11781 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
11782 else
11783 cat >> confdefs.h <<\EOF
11784 #define wxUSE_STATLINE 1
11785 EOF
11786
11787 fi
11788 fi
11789
11790 if test "$wxUSE_STATUSBAR" = "yes"; then
11791 cat >> confdefs.h <<\EOF
11792 #define wxUSE_STATUSBAR 1
11793 EOF
11794
11795 fi
11796
11797 if test "$wxUSE_TABDIALOG" = "yes"; then
11798 cat >> confdefs.h <<\EOF
11799 #define wxUSE_TAB_DIALOG 1
11800 EOF
11801
11802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
11803 fi
11804
11805 if test "$wxUSE_TOOLBAR" = "yes"; then
11806 cat >> confdefs.h <<\EOF
11807 #define wxUSE_TOOLBAR 1
11808 EOF
11809
11810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
11811 fi
11812
11813 if test "$wxUSE_TOOLTIPS" = "yes"; then
11814 if test "$wxUSE_MOTIF" = 1; then
11815 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
11816 else
11817 if test "$wxUSE_WINE" = 1; then
11818 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
11819 else
11820 cat >> confdefs.h <<\EOF
11821 #define wxUSE_TOOLTIPS 1
11822 EOF
11823
11824 fi
11825 fi
11826 fi
11827
11828 if test "$wxUSE_TREECTRL" = "yes"; then
11829 if test "$wxUSE_IMAGLIST" = "yes"; then
11830 cat >> confdefs.h <<\EOF
11831 #define wxUSE_TREECTRL 1
11832 EOF
11833
11834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
11835 else
11836 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
11837 fi
11838 fi
11839
11840
11841
11842 if test "$wxUSE_METAFILE" = "yes"; then
11843 cat >> confdefs.h <<\EOF
11844 #define wxUSE_METAFILE 1
11845 EOF
11846
11847 fi
11848
11849 if test "$wxUSE_DIRDLG" = "yes"; then
11850 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11851 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
11852 else
11853 if test "$wxUSE_TREECTRL" != "yes"; then
11854 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
11855 else
11856 cat >> confdefs.h <<\EOF
11857 #define wxUSE_DIRDLG 1
11858 EOF
11859
11860 fi
11861 fi
11862 fi
11863
11864 if test "$wxUSE_TEXTDLG" = "yes"; then
11865 cat >> confdefs.h <<\EOF
11866 #define wxUSE_TEXTDLG 1
11867 EOF
11868
11869 fi
11870
11871 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
11872 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11873 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
11874 else
11875 cat >> confdefs.h <<\EOF
11876 #define wxUSE_STARTUP_TIPS 1
11877 EOF
11878
11879 fi
11880 fi
11881
11882 if test "$wxUSE_PROGRESSDLG" = "yes"; then
11883 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11884 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
11885 else
11886 cat >> confdefs.h <<\EOF
11887 #define wxUSE_PROGRESSDLG 1
11888 EOF
11889
11890 fi
11891 fi
11892
11893 if test "$wxUSE_MINIFRAME" = "yes"; then
11894 cat >> confdefs.h <<\EOF
11895 #define wxUSE_MINIFRAME 1
11896 EOF
11897
11898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
11899 fi
11900
11901 if test "$wxUSE_HTML" = "yes"; then
11902 cat >> confdefs.h <<\EOF
11903 #define wxUSE_HTML 1
11904 EOF
11905
11906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
11907 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
11908 fi
11909
11910 if test "$wxUSE_VALIDATORS" = "yes"; then
11911 cat >> confdefs.h <<\EOF
11912 #define wxUSE_VALIDATORS 1
11913 EOF
11914
11915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
11916 fi
11917
11918 if test "$wxUSE_GIF" = "yes" ; then
11919 cat >> confdefs.h <<\EOF
11920 #define wxUSE_GIF 1
11921 EOF
11922
11923 fi
11924
11925 if test "$wxUSE_PCX" = "yes" ; then
11926 cat >> confdefs.h <<\EOF
11927 #define wxUSE_PCX 1
11928 EOF
11929
11930 fi
11931
11932 if test "$wxUSE_PNM" = "yes" ; then
11933 cat >> confdefs.h <<\EOF
11934 #define wxUSE_PNM 1
11935 EOF
11936
11937 fi
11938
11939
11940 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
11941
11942 EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
11943 if test "$wxUSE_GUI" = "yes"; then
11944 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
11945 fi
11946
11947 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
11948
11949 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
11950
11951 if test "$GXX" = yes ; then
11952 CXXWARNINGS="-Wall"
11953 fi
11954 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
11955
11956 CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS"
11957 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
11958 CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS"
11959
11960 if test "$wxUSE_GUI" = "yes"; then
11961
11962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
11963 forty fractal image wxpoem"
11964 else
11965 SAMPLES_SUBDIRS=""
11966 fi
11967
11968 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
12023 echo "configure:12024: checking whether ${MAKE-make} sets \${MAKE}" >&5
12024 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12025 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12026 echo $ac_n "(cached) $ac_c" 1>&6
12027 else
12028 cat > conftestmake <<\EOF
12029 all:
12030 @echo 'ac_maketemp="${MAKE}"'
12031 EOF
12032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12033 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12034 if test -n "$ac_maketemp"; then
12035 eval ac_cv_prog_make_${ac_make}_set=yes
12036 else
12037 eval ac_cv_prog_make_${ac_make}_set=no
12038 fi
12039 rm -f conftestmake
12040 fi
12041 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12042 echo "$ac_t""yes" 1>&6
12043 SET_MAKE=
12044 else
12045 echo "$ac_t""no" 1>&6
12046 SET_MAKE="MAKE=${MAKE-make}"
12047 fi
12048
12049
12050
12051
12052 if test "${TOOLKIT_DIR}" = "msw" ; then
12053 GL_TOOLKIT_DIR="win"
12054 else
12055 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
12056 fi
12057
12058
12059 trap '' 1 2 15
12060 cat > confcache <<\EOF
12061 # This file is a shell script that caches the results of configure
12062 # tests run on this system so they can be shared between configure
12063 # scripts and configure runs. It is not useful on other systems.
12064 # If it contains results you don't want to keep, you may remove or edit it.
12065 #
12066 # By default, configure uses ./config.cache as the cache file,
12067 # creating it if it does not exist already. You can give configure
12068 # the --cache-file=FILE option to use a different cache file; that is
12069 # what configure does when it calls configure scripts in
12070 # subdirectories, so they share the cache.
12071 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12072 # config.status only pays attention to the cache file if you give it the
12073 # --recheck option to rerun configure.
12074 #
12075 EOF
12076 # The following way of writing the cache mishandles newlines in values,
12077 # but we know of no workaround that is simple, portable, and efficient.
12078 # So, don't put newlines in cache variables' values.
12079 # Ultrix sh set writes to stderr and can't be redirected directly,
12080 # and sets the high bit in the cache file unless we assign to the vars.
12081 (set) 2>&1 |
12082 case `(ac_space=' '; set) 2>&1` in
12083 *ac_space=\ *)
12084 # `set' does not quote correctly, so add quotes (double-quote substitution
12085 # turns \\\\ into \\, and sed turns \\ into \).
12086 sed -n \
12087 -e "s/'/'\\\\''/g" \
12088 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12089 ;;
12090 *)
12091 # `set' quotes correctly as required by POSIX, so do not add quotes.
12092 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12093 ;;
12094 esac >> confcache
12095 if cmp -s $cache_file confcache; then
12096 :
12097 else
12098 if test -w $cache_file; then
12099 echo "updating cache $cache_file"
12100 cat confcache > $cache_file
12101 else
12102 echo "not updating unwritable cache $cache_file"
12103 fi
12104 fi
12105 rm -f confcache
12106
12107 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12108
12109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12110 # Let make expand exec_prefix.
12111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12112
12113 # Any assignment to VPATH causes Sun make to only execute
12114 # the first set of double-colon rules, so remove it if not needed.
12115 # If there is a colon in the path, we need to keep it.
12116 if test "x$srcdir" = x.; then
12117 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12118 fi
12119
12120 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12121
12122 DEFS=-DHAVE_CONFIG_H
12123
12124 # Without the "./", some shells look in PATH for config.status.
12125 : ${CONFIG_STATUS=./config.status}
12126
12127 echo creating $CONFIG_STATUS
12128 rm -f $CONFIG_STATUS
12129 cat > $CONFIG_STATUS <<EOF
12130 #! /bin/sh
12131 # Generated automatically by configure.
12132 # Run this file to recreate the current configuration.
12133 # This directory was configured as follows,
12134 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12135 #
12136 # $0 $ac_configure_args
12137 #
12138 # Compiler output produced by configure, useful for debugging
12139 # configure, is in ./config.log if it exists.
12140
12141 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12142 for ac_option
12143 do
12144 case "\$ac_option" in
12145 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12146 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12147 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12148 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12149 echo "$CONFIG_STATUS generated by autoconf version 2.12"
12150 exit 0 ;;
12151 -help | --help | --hel | --he | --h)
12152 echo "\$ac_cs_usage"; exit 0 ;;
12153 *) echo "\$ac_cs_usage"; exit 1 ;;
12154 esac
12155 done
12156
12157 ac_given_srcdir=$srcdir
12158 ac_given_INSTALL="$INSTALL"
12159
12160 trap 'rm -fr `echo "
12161 wx-config
12162 src/make.env
12163 src/makeprog.env
12164 src/makelib.env
12165 Makefile
12166 samples/Makefile
12167 samples/bombs/Makefile
12168 samples/caret/Makefile
12169 samples/checklst/Makefile
12170 samples/config/Makefile
12171 samples/controls/Makefile
12172 samples/db/Makefile
12173 samples/dialogs/Makefile
12174 samples/docview/Makefile
12175 samples/docvwmdi/Makefile
12176 samples/dnd/Makefile
12177 samples/drawing/Makefile
12178 samples/dynamic/Makefile
12179 samples/image/Makefile
12180 samples/internat/Makefile
12181 samples/layout/Makefile
12182 samples/listctrl/Makefile
12183 samples/mdi/Makefile
12184 samples/minifram/Makefile
12185 samples/minimal/Makefile
12186 samples/nettest/Makefile
12187 samples/newgrid/Makefile
12188 samples/notebook/Makefile
12189 samples/printing/Makefile
12190 samples/proplist/Makefile
12191 samples/richedit/Makefile
12192 samples/sashtest/Makefile
12193 samples/scroll/Makefile
12194 samples/splitter/Makefile
12195 samples/text/Makefile
12196 samples/thread/Makefile
12197 samples/toolbar/Makefile
12198 samples/treectrl/Makefile
12199 samples/typetest/Makefile
12200 samples/validate/Makefile
12201 samples/wxpoem/Makefile
12202 samples/wxsocket/Makefile
12203 samples/wizard/Makefile
12204 samples/html/Makefile
12205 samples/html/about/Makefile
12206 samples/html/help/Makefile
12207 samples/html/printing/Makefile
12208 samples/html/test/Makefile
12209 samples/html/zip/Makefile
12210 samples/html/virtual/Makefile
12211 samples/html/widget/Makefile
12212 utils/Makefile
12213 utils/wxMMedia2/Makefile
12214 utils/wxMMedia2/lib/Makefile
12215 utils/wxMMedia2/sample/Makefile
12216 utils/glcanvas/Makefile
12217 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12218 utils/ogl/Makefile
12219 utils/ogl/src/Makefile
12220 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12221 EOF
12222 cat >> $CONFIG_STATUS <<EOF
12223
12224 # Protect against being on the right side of a sed subst in config.status.
12225 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12226 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12227 $ac_vpsub
12228 $extrasub
12229 s%@CFLAGS@%$CFLAGS%g
12230 s%@CPPFLAGS@%$CPPFLAGS%g
12231 s%@CXXFLAGS@%$CXXFLAGS%g
12232 s%@DEFS@%$DEFS%g
12233 s%@LDFLAGS@%$LDFLAGS%g
12234 s%@LIBS@%$LIBS%g
12235 s%@exec_prefix@%$exec_prefix%g
12236 s%@prefix@%$prefix%g
12237 s%@program_transform_name@%$program_transform_name%g
12238 s%@bindir@%$bindir%g
12239 s%@sbindir@%$sbindir%g
12240 s%@libexecdir@%$libexecdir%g
12241 s%@datadir@%$datadir%g
12242 s%@sysconfdir@%$sysconfdir%g
12243 s%@sharedstatedir@%$sharedstatedir%g
12244 s%@localstatedir@%$localstatedir%g
12245 s%@libdir@%$libdir%g
12246 s%@includedir@%$includedir%g
12247 s%@oldincludedir@%$oldincludedir%g
12248 s%@infodir@%$infodir%g
12249 s%@mandir@%$mandir%g
12250 s%@host@%$host%g
12251 s%@host_alias@%$host_alias%g
12252 s%@host_cpu@%$host_cpu%g
12253 s%@host_vendor@%$host_vendor%g
12254 s%@host_os@%$host_os%g
12255 s%@target@%$target%g
12256 s%@target_alias@%$target_alias%g
12257 s%@target_cpu@%$target_cpu%g
12258 s%@target_vendor@%$target_vendor%g
12259 s%@target_os@%$target_os%g
12260 s%@build@%$build%g
12261 s%@build_alias@%$build_alias%g
12262 s%@build_cpu@%$build_cpu%g
12263 s%@build_vendor@%$build_vendor%g
12264 s%@build_os@%$build_os%g
12265 s%@CC@%$CC%g
12266 s%@CPP@%$CPP%g
12267 s%@CXX@%$CXX%g
12268 s%@CXXCPP@%$CXXCPP%g
12269 s%@RANLIB@%$RANLIB%g
12270 s%@AR@%$AR%g
12271 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12272 s%@INSTALL_DATA@%$INSTALL_DATA%g
12273 s%@STRIP@%$STRIP%g
12274 s%@YACC@%$YACC%g
12275 s%@LEX@%$LEX%g
12276 s%@LEXLIB@%$LEXLIB%g
12277 s%@LN_S@%$LN_S%g
12278 s%@GTK_CONFIG@%$GTK_CONFIG%g
12279 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
12280 s%@GTK_LIBS@%$GTK_LIBS%g
12281 s%@X_CFLAGS@%$X_CFLAGS%g
12282 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12283 s%@X_LIBS@%$X_LIBS%g
12284 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12285 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
12286 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
12287 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
12288 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
12289 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
12290 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
12291 s%@WX_LIBRARY@%$WX_LIBRARY%g
12292 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
12293 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
12294 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
12295 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
12296 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
12297 s%@WX_ALL@%$WX_ALL%g
12298 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
12299 s%@SHARED_LD@%$SHARED_LD%g
12300 s%@PIC_FLAG@%$PIC_FLAG%g
12301 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
12302 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
12303 s%@TOOLKIT@%$TOOLKIT%g
12304 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
12305 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
12306 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
12307 s%@GUIHEADERS@%$GUIHEADERS%g
12308 s%@GUIOBJS@%$GUIOBJS%g
12309 s%@COMMONOBJS@%$COMMONOBJS%g
12310 s%@GENERICOBJS@%$GENERICOBJS%g
12311 s%@GUIDEPS@%$GUIDEPS%g
12312 s%@COMMONDEPS@%$COMMONDEPS%g
12313 s%@GENERICDEPS@%$GENERICDEPS%g
12314 s%@UNIXOBJS@%$UNIXOBJS%g
12315 s%@UNIXDEPS@%$UNIXDEPS%g
12316 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
12317 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
12318 s%@ALL_HEADERS@%$ALL_HEADERS%g
12319 s%@GUIDIST@%$GUIDIST%g
12320 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
12321 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
12322 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
12323 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
12324 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
12325 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
12326 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
12327 s%@LD_LIBS@%$LD_LIBS%g
12328 s%@SET_MAKE@%$SET_MAKE%g
12329 s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
12330
12331 CEOF
12332 EOF
12333
12334 cat >> $CONFIG_STATUS <<\EOF
12335
12336 # Split the substitutions into bite-sized pieces for seds with
12337 # small command number limits, like on Digital OSF/1 and HP-UX.
12338 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12339 ac_file=1 # Number of current file.
12340 ac_beg=1 # First line for current file.
12341 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12342 ac_more_lines=:
12343 ac_sed_cmds=""
12344 while $ac_more_lines; do
12345 if test $ac_beg -gt 1; then
12346 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12347 else
12348 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12349 fi
12350 if test ! -s conftest.s$ac_file; then
12351 ac_more_lines=false
12352 rm -f conftest.s$ac_file
12353 else
12354 if test -z "$ac_sed_cmds"; then
12355 ac_sed_cmds="sed -f conftest.s$ac_file"
12356 else
12357 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12358 fi
12359 ac_file=`expr $ac_file + 1`
12360 ac_beg=$ac_end
12361 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12362 fi
12363 done
12364 if test -z "$ac_sed_cmds"; then
12365 ac_sed_cmds=cat
12366 fi
12367 EOF
12368
12369 cat >> $CONFIG_STATUS <<EOF
12370
12371 CONFIG_FILES=\${CONFIG_FILES-"wx-config
12372 src/make.env
12373 src/makeprog.env
12374 src/makelib.env
12375 Makefile
12376 samples/Makefile
12377 samples/bombs/Makefile
12378 samples/caret/Makefile
12379 samples/checklst/Makefile
12380 samples/config/Makefile
12381 samples/controls/Makefile
12382 samples/db/Makefile
12383 samples/dialogs/Makefile
12384 samples/docview/Makefile
12385 samples/docvwmdi/Makefile
12386 samples/dnd/Makefile
12387 samples/drawing/Makefile
12388 samples/dynamic/Makefile
12389 samples/image/Makefile
12390 samples/internat/Makefile
12391 samples/layout/Makefile
12392 samples/listctrl/Makefile
12393 samples/mdi/Makefile
12394 samples/minifram/Makefile
12395 samples/minimal/Makefile
12396 samples/nettest/Makefile
12397 samples/newgrid/Makefile
12398 samples/notebook/Makefile
12399 samples/printing/Makefile
12400 samples/proplist/Makefile
12401 samples/richedit/Makefile
12402 samples/sashtest/Makefile
12403 samples/scroll/Makefile
12404 samples/splitter/Makefile
12405 samples/text/Makefile
12406 samples/thread/Makefile
12407 samples/toolbar/Makefile
12408 samples/treectrl/Makefile
12409 samples/typetest/Makefile
12410 samples/validate/Makefile
12411 samples/wxpoem/Makefile
12412 samples/wxsocket/Makefile
12413 samples/wizard/Makefile
12414 samples/html/Makefile
12415 samples/html/about/Makefile
12416 samples/html/help/Makefile
12417 samples/html/printing/Makefile
12418 samples/html/test/Makefile
12419 samples/html/zip/Makefile
12420 samples/html/virtual/Makefile
12421 samples/html/widget/Makefile
12422 utils/Makefile
12423 utils/wxMMedia2/Makefile
12424 utils/wxMMedia2/lib/Makefile
12425 utils/wxMMedia2/sample/Makefile
12426 utils/glcanvas/Makefile
12427 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12428 utils/ogl/Makefile
12429 utils/ogl/src/Makefile
12430 "}
12431 EOF
12432 cat >> $CONFIG_STATUS <<\EOF
12433 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12434 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12435 case "$ac_file" in
12436 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12437 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12438 *) ac_file_in="${ac_file}.in" ;;
12439 esac
12440
12441 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12442
12443 # Remove last slash and all that follows it. Not all systems have dirname.
12444 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12445 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12446 # The file is in a subdirectory.
12447 test ! -d "$ac_dir" && mkdir "$ac_dir"
12448 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12449 # A "../" for each directory in $ac_dir_suffix.
12450 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12451 else
12452 ac_dir_suffix= ac_dots=
12453 fi
12454
12455 case "$ac_given_srcdir" in
12456 .) srcdir=.
12457 if test -z "$ac_dots"; then top_srcdir=.
12458 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12459 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12460 *) # Relative path.
12461 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12462 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12463 esac
12464
12465 case "$ac_given_INSTALL" in
12466 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12467 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12468 esac
12469
12470 echo creating "$ac_file"
12471 rm -f "$ac_file"
12472 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12473 case "$ac_file" in
12474 *Makefile*) ac_comsub="1i\\
12475 # $configure_input" ;;
12476 *) ac_comsub= ;;
12477 esac
12478
12479 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12480 sed -e "$ac_comsub
12481 s%@configure_input@%$configure_input%g
12482 s%@srcdir@%$srcdir%g
12483 s%@top_srcdir@%$top_srcdir%g
12484 s%@INSTALL@%$INSTALL%g
12485 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12486 fi; done
12487 rm -f conftest.s*
12488
12489 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12490 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12491 #
12492 # ac_d sets the value in "#define NAME VALUE" lines.
12493 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12494 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12495 ac_dC='\3'
12496 ac_dD='%g'
12497 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12498 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12499 ac_uB='\([ ]\)%\1#\2define\3'
12500 ac_uC=' '
12501 ac_uD='\4%g'
12502 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12503 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12504 ac_eB='$%\1#\2define\3'
12505 ac_eC=' '
12506 ac_eD='%g'
12507
12508 if test "${CONFIG_HEADERS+set}" != set; then
12509 EOF
12510 cat >> $CONFIG_STATUS <<EOF
12511 CONFIG_HEADERS="setup.h:setup.h.in"
12512 EOF
12513 cat >> $CONFIG_STATUS <<\EOF
12514 fi
12515 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12517 case "$ac_file" in
12518 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12519 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12520 *) ac_file_in="${ac_file}.in" ;;
12521 esac
12522
12523 echo creating $ac_file
12524
12525 rm -f conftest.frag conftest.in conftest.out
12526 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12527 cat $ac_file_inputs > conftest.in
12528
12529 EOF
12530
12531 # Transform confdefs.h into a sed script conftest.vals that substitutes
12532 # the proper values into config.h.in to produce config.h. And first:
12533 # Protect against being on the right side of a sed subst in config.status.
12534 # Protect against being in an unquoted here document in config.status.
12535 rm -f conftest.vals
12536 cat > conftest.hdr <<\EOF
12537 s/[\\&%]/\\&/g
12538 s%[\\$`]%\\&%g
12539 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12540 s%ac_d%ac_u%gp
12541 s%ac_u%ac_e%gp
12542 EOF
12543 sed -n -f conftest.hdr confdefs.h > conftest.vals
12544 rm -f conftest.hdr
12545
12546 # This sed command replaces #undef with comments. This is necessary, for
12547 # example, in the case of _POSIX_SOURCE, which is predefined and required
12548 # on some systems where configure will not decide to define it.
12549 cat >> conftest.vals <<\EOF
12550 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12551 EOF
12552
12553 # Break up conftest.vals because some shells have a limit on
12554 # the size of here documents, and old seds have small limits too.
12555
12556 rm -f conftest.tail
12557 while :
12558 do
12559 ac_lines=`grep -c . conftest.vals`
12560 # grep -c gives empty output for an empty file on some AIX systems.
12561 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12562 # Write a limited-size here document to conftest.frag.
12563 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12564 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12565 echo 'CEOF
12566 sed -f conftest.frag conftest.in > conftest.out
12567 rm -f conftest.in
12568 mv conftest.out conftest.in
12569 ' >> $CONFIG_STATUS
12570 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12571 rm -f conftest.vals
12572 mv conftest.tail conftest.vals
12573 done
12574 rm -f conftest.vals
12575
12576 cat >> $CONFIG_STATUS <<\EOF
12577 rm -f conftest.frag conftest.h
12578 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12579 cat conftest.in >> conftest.h
12580 rm -f conftest.in
12581 if cmp -s $ac_file conftest.h 2>/dev/null; then
12582 echo "$ac_file is unchanged"
12583 rm -f conftest.h
12584 else
12585 # Remove last slash and all that follows it. Not all systems have dirname.
12586 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12587 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12588 # The file is in a subdirectory.
12589 test ! -d "$ac_dir" && mkdir "$ac_dir"
12590 fi
12591 rm -f $ac_file
12592 mv conftest.h $ac_file
12593 fi
12594 fi; done
12595
12596 EOF
12597 cat >> $CONFIG_STATUS <<EOF
12598
12599 LN_S="${ac_cv_prog_LN_S}"
12600 TOOLKIT_DIR="${TOOLKIT_DIR}"
12601
12602
12603 EOF
12604 cat >> $CONFIG_STATUS <<\EOF
12605
12606 chmod +x wx-config
12607 if test ! -d include; then
12608 mkdir include
12609 fi
12610 if test ! -d include/wx; then
12611 mkdir include/wx
12612 fi
12613 if test ! -d include/wx/${TOOLKIT_DIR}; then
12614 mkdir include/wx/${TOOLKIT_DIR}
12615 fi
12616 cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
12617
12618 exit 0
12619 EOF
12620 chmod +x $CONFIG_STATUS
12621 rm -fr confdefs* $ac_clean_files
12622 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12623
12624