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