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