]> git.saurik.com Git - wxWidgets.git/blob - configure
wxHandleFatalExceptions() added, documented
[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 # Guess values for system-dependent variables and create Makefiles.
43 # Generated automatically using autoconf version 2.13
44 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
45 #
46 # This configure script is free software; the Free Software Foundation
47 # gives unlimited permission to copy, distribute and modify it.
48
49 # Defaults:
50 ac_help=
51 ac_default_prefix=/usr/local
52 # Any additions from configure.in:
53 ac_help="$ac_help
54 --enable-gui use GUI classes"
55 ac_help="$ac_help
56 --with-gtk use GTK+"
57 ac_help="$ac_help
58 --with-motif use Motif/Lesstif"
59 ac_help="$ac_help
60 --with-wine use WINE"
61 ac_help="$ac_help
62 --with-cygwin use Cygwin for MS-Windows"
63 ac_help="$ac_help
64 --with-mingw use GCC Minimal MS-Windows"
65 ac_help="$ac_help
66 --with-pm use OS/2 Presentation Manager"
67 ac_help="$ac_help
68 --with-gtk-prefix=PFX Prefix where GTK is installed"
69 ac_help="$ac_help
70 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
71 ac_help="$ac_help
72 --with-libpng use libpng (PNG image format)"
73 ac_help="$ac_help
74 --with-libjpeg use libjpeg (JPEG file format)"
75 ac_help="$ac_help
76 --with-libtiff use libtiff (TIFF file format)"
77 ac_help="$ac_help
78 --with-opengl use OpenGL (or Mesa)"
79 ac_help="$ac_help
80 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
81 ac_help="$ac_help
82 --with-zlib use zlib for LZW compression"
83 ac_help="$ac_help
84 --with-odbc use the IODBC and wxODBC classes"
85 ac_help="$ac_help
86 --enable-shared create shared library code"
87 ac_help="$ac_help
88 --enable-burnt_name create set name in shared library "
89 ac_help="$ac_help
90 --enable-optimise create optimised code"
91 ac_help="$ac_help
92 --enable-debug same as debug_flag and debug_info"
93 ac_help="$ac_help
94 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
95 ac_help="$ac_help
96 --enable-debug_info create code with debugging information"
97 ac_help="$ac_help
98 --enable-debug_gdb create code with extra GDB debugging information"
99 ac_help="$ac_help
100 --enable-debug_cntxt use wxDebugContext"
101 ac_help="$ac_help
102 --enable-mem_tracing create code with memory tracing"
103 ac_help="$ac_help
104 --enable-profile create code with profiling information"
105 ac_help="$ac_help
106 --enable-no_rtti create code without RTTI information"
107 ac_help="$ac_help
108 --enable-no_exceptions create code without exceptions information"
109 ac_help="$ac_help
110 --enable-permissive compile code disregarding strict ANSI"
111 ac_help="$ac_help
112 --enable-no_deps create code without dependency information"
113 ac_help="$ac_help
114 --enable-intl use internationalization system"
115 ac_help="$ac_help
116 --enable-config use wxConfig (and derived) classes"
117 ac_help="$ac_help
118 --enable-sockets use socket/network classes"
119 ac_help="$ac_help
120 --enable-dialupman use dialup network classes"
121 ac_help="$ac_help
122 --enable-ipc use interprocess communication (wxSocket etc.)"
123 ac_help="$ac_help
124 --enable-apple_ieee use the Apple IEEE codec"
125 ac_help="$ac_help
126 --enable-timedate use date/time classes"
127 ac_help="$ac_help
128 --enable-wave use wxWave class"
129 ac_help="$ac_help
130 --enable-fraction use wxFraction class"
131 ac_help="$ac_help
132 --enable-dynlib use wxLibrary class for DLL loading"
133 ac_help="$ac_help
134 --enable-longlong use wxLongLong class"
135 ac_help="$ac_help
136 --enable-log use logging system"
137 ac_help="$ac_help
138 --enable-streams use wxStream etc classes"
139 ac_help="$ac_help
140 --enable-file use wxFile classes"
141 ac_help="$ac_help
142 --enable-textfile use wxTextFile classes"
143 ac_help="$ac_help
144 --enable-unicode compile wxString with Unicode support"
145 ac_help="$ac_help
146 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
147 ac_help="$ac_help
148 --enable-wxprintfv use wxWindows implementation of vprintf()"
149 ac_help="$ac_help
150 --enable-joystick compile in joystick support (Linux only)"
151 ac_help="$ac_help
152 --enable-std_iostreams use standard C++ stream classes"
153 ac_help="$ac_help
154 --enable-filesystem use virtual file systems classes"
155 ac_help="$ac_help
156 --enable-fs_inet use virtual HTTP/FTP filesystems"
157 ac_help="$ac_help
158 --enable-fs_zip use virtual ZIP filesystems"
159 ac_help="$ac_help
160 --enable-zipstream use wxZipInputStream"
161 ac_help="$ac_help
162 --enable-threads use threads"
163 ac_help="$ac_help
164 --enable-serial use class serialization"
165 ac_help="$ac_help
166 --enable-docview use document view architecture"
167 ac_help="$ac_help
168 --enable-help use help (using external browser at present)"
169 ac_help="$ac_help
170 --enable-constraints use layout-constraints system"
171 ac_help="$ac_help
172 --enable-printarch use printing architecture"
173 ac_help="$ac_help
174 --enable-mdi use multiple document interface architecture"
175 ac_help="$ac_help
176 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
177 ac_help="$ac_help
178 --enable-prologio use Prolog IO library"
179 ac_help="$ac_help
180 --enable-resources use wxWindows resources"
181 ac_help="$ac_help
182 --enable-xresources use X resources for save (default for gtk+)"
183 ac_help="$ac_help
184 --enable-clipboard use wxClipboard classes"
185 ac_help="$ac_help
186 --enable-dnd use Drag'n'Drop classes"
187 ac_help="$ac_help
188 --enable-wxtree make wxTree library"
189 ac_help="$ac_help
190 --enable-controls use all usual controls"
191 ac_help="$ac_help
192 --enable-accel use accelerators"
193 ac_help="$ac_help
194 --enable-caret use wxCaret class"
195 ac_help="$ac_help
196 --enable-bmpbutton use wxBitmapButton class"
197 ac_help="$ac_help
198 --enable-checkbox use wxCheckBox class"
199 ac_help="$ac_help
200 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
201 ac_help="$ac_help
202 --enable-choice use wxChoice class"
203 ac_help="$ac_help
204 --enable-combobox use wxComboBox classes"
205 ac_help="$ac_help
206 --enable-gauge use wxGauge class"
207 ac_help="$ac_help
208 --enable-grid use wxGrid class"
209 ac_help="$ac_help
210 --enable-newgrid use new wxGrid class"
211 ac_help="$ac_help
212 --enable-imaglist use wxImageList class"
213 ac_help="$ac_help
214 --enable-listbox use wxListBox class"
215 ac_help="$ac_help
216 --enable-listctrl use wxListCtrl class"
217 ac_help="$ac_help
218 --enable-notebook use wxNotebook class"
219 ac_help="$ac_help
220 --enable-radiobox use wxRadioBox class"
221 ac_help="$ac_help
222 --enable-radiobtn use wxRadioButton class"
223 ac_help="$ac_help
224 --enable-sash use wxSashWindow class"
225 ac_help="$ac_help
226 --enable-scrollbar use wxScrollBar class and scrollable windows"
227 ac_help="$ac_help
228 --enable-slider use wxSlider class"
229 ac_help="$ac_help
230 --enable-spinbtn use wxSpinButton class"
231 ac_help="$ac_help
232 --enable-spinctrl use wxSpinCtrl class"
233 ac_help="$ac_help
234 --enable-splitter use wxSplitterWindow class"
235 ac_help="$ac_help
236 --enable-statbmp use wxStaticBitmap class"
237 ac_help="$ac_help
238 --enable-statbox use wxStaticBox class"
239 ac_help="$ac_help
240 --enable-statline use wxStaticLine class"
241 ac_help="$ac_help
242 --enable-statusbar use wxStatusBar class"
243 ac_help="$ac_help
244 --enable-tabdialog use wxTabControl class"
245 ac_help="$ac_help
246 --enable-toolbar use wxToolBar class"
247 ac_help="$ac_help
248 --enable-tbarnative use native wxToolBar class"
249 ac_help="$ac_help
250 --enable-tbarsmpl use wxToolBarSimple class"
251 ac_help="$ac_help
252 --enable-treectrl use wxTreeCtrl class"
253 ac_help="$ac_help
254 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
255 ac_help="$ac_help
256 --enable-dirdlg use wxDirDialog"
257 ac_help="$ac_help
258 --enable-textdlg use wxTextDialog"
259 ac_help="$ac_help
260 --enable-tipdlg use startup tips"
261 ac_help="$ac_help
262 --enable-progressdlg use wxProgressDialog"
263 ac_help="$ac_help
264 --enable-miniframe use wxMiniFrame class"
265 ac_help="$ac_help
266 --enable-html use wxHTML sub-library"
267 ac_help="$ac_help
268 --enable-tooltips use wxToolTip class"
269 ac_help="$ac_help
270 --enable-splines use spline drawing code"
271 ac_help="$ac_help
272 --enable-validators use wxValidator and derived classes"
273 ac_help="$ac_help
274 --enable-busyinfo use wxBusyInfo"
275 ac_help="$ac_help
276 --enable-plot use wxPlot"
277 ac_help="$ac_help
278 --enable-gif use gif images (GIF file format)"
279 ac_help="$ac_help
280 --enable-pcx use pcx images (PCX file format)"
281 ac_help="$ac_help
282 --enable-pnm use pnm images (PNM file format)"
283 ac_help="$ac_help
284 --with-x use the X Window System"
285
286 # Initialize some variables set by options.
287 # The variables have the same names as the options, with
288 # dashes changed to underlines.
289 build=NONE
290 cache_file=./config.cache
291 exec_prefix=NONE
292 host=NONE
293 no_create=
294 nonopt=NONE
295 no_recursion=
296 prefix=NONE
297 program_prefix=NONE
298 program_suffix=NONE
299 program_transform_name=s,x,x,
300 silent=
301 site=
302 srcdir=
303 target=NONE
304 verbose=
305 x_includes=NONE
306 x_libraries=NONE
307 bindir='${exec_prefix}/bin'
308 sbindir='${exec_prefix}/sbin'
309 libexecdir='${exec_prefix}/libexec'
310 datadir='${prefix}/share'
311 sysconfdir='${prefix}/etc'
312 sharedstatedir='${prefix}/com'
313 localstatedir='${prefix}/var'
314 libdir='${exec_prefix}/lib'
315 includedir='${prefix}/include'
316 oldincludedir='/usr/include'
317 infodir='${prefix}/info'
318 mandir='${prefix}/man'
319
320 # Initialize some other variables.
321 subdirs=
322 MFLAGS= MAKEFLAGS=
323 SHELL=${CONFIG_SHELL-/bin/sh}
324 # Maximum number of lines to put in a shell here document.
325 ac_max_here_lines=12
326
327 ac_prev=
328 for ac_option
329 do
330
331 # If the previous option needs an argument, assign it.
332 if test -n "$ac_prev"; then
333 eval "$ac_prev=\$ac_option"
334 ac_prev=
335 continue
336 fi
337
338 case "$ac_option" in
339 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
340 *) ac_optarg= ;;
341 esac
342
343 # Accept the important Cygnus configure options, so we can diagnose typos.
344
345 case "$ac_option" in
346
347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
348 ac_prev=bindir ;;
349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
350 bindir="$ac_optarg" ;;
351
352 -build | --build | --buil | --bui | --bu)
353 ac_prev=build ;;
354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
355 build="$ac_optarg" ;;
356
357 -cache-file | --cache-file | --cache-fil | --cache-fi \
358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
359 ac_prev=cache_file ;;
360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
362 cache_file="$ac_optarg" ;;
363
364 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
365 ac_prev=datadir ;;
366 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
367 | --da=*)
368 datadir="$ac_optarg" ;;
369
370 -disable-* | --disable-*)
371 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
375 fi
376 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
377 eval "enable_${ac_feature}=no" ;;
378
379 -enable-* | --enable-*)
380 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
384 fi
385 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "enable_${ac_feature}='$ac_optarg'" ;;
391
392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
394 | --exec | --exe | --ex)
395 ac_prev=exec_prefix ;;
396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
398 | --exec=* | --exe=* | --ex=*)
399 exec_prefix="$ac_optarg" ;;
400
401 -gas | --gas | --ga | --g)
402 # Obsolete; use --with-gas.
403 with_gas=yes ;;
404
405 -help | --help | --hel | --he)
406 # Omit some internal or obsolete options to make the list less imposing.
407 # This message is too long to be a string in the A/UX 3.1 sh.
408 cat << EOF
409 Usage: configure [options] [host]
410 Options: [defaults in brackets after descriptions]
411 Configuration:
412 --cache-file=FILE cache test results in FILE
413 --help print this message
414 --no-create do not create output files
415 --quiet, --silent do not print \`checking...' messages
416 --version print the version of autoconf that created configure
417 Directory and file names:
418 --prefix=PREFIX install architecture-independent files in PREFIX
419 [$ac_default_prefix]
420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
421 [same as prefix]
422 --bindir=DIR user executables in DIR [EPREFIX/bin]
423 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
424 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
425 --datadir=DIR read-only architecture-independent data in DIR
426 [PREFIX/share]
427 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
428 --sharedstatedir=DIR modifiable architecture-independent data in DIR
429 [PREFIX/com]
430 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
431 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
432 --includedir=DIR C header files in DIR [PREFIX/include]
433 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
434 --infodir=DIR info documentation in DIR [PREFIX/info]
435 --mandir=DIR man documentation in DIR [PREFIX/man]
436 --srcdir=DIR find the sources in DIR [configure dir or ..]
437 --program-prefix=PREFIX prepend PREFIX to installed program names
438 --program-suffix=SUFFIX append SUFFIX to installed program names
439 --program-transform-name=PROGRAM
440 run sed PROGRAM on installed program names
441 EOF
442 cat << EOF
443 Host type:
444 --build=BUILD configure for building on BUILD [BUILD=HOST]
445 --host=HOST configure for HOST [guessed]
446 --target=TARGET configure for TARGET [TARGET=HOST]
447 Features and packages:
448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
452 --x-includes=DIR X include files are in DIR
453 --x-libraries=DIR X library files are in DIR
454 EOF
455 if test -n "$ac_help"; then
456 echo "--enable and --with options recognized:$ac_help"
457 fi
458 exit 0 ;;
459
460 -host | --host | --hos | --ho)
461 ac_prev=host ;;
462 -host=* | --host=* | --hos=* | --ho=*)
463 host="$ac_optarg" ;;
464
465 -includedir | --includedir | --includedi | --included | --include \
466 | --includ | --inclu | --incl | --inc)
467 ac_prev=includedir ;;
468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
469 | --includ=* | --inclu=* | --incl=* | --inc=*)
470 includedir="$ac_optarg" ;;
471
472 -infodir | --infodir | --infodi | --infod | --info | --inf)
473 ac_prev=infodir ;;
474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
475 infodir="$ac_optarg" ;;
476
477 -libdir | --libdir | --libdi | --libd)
478 ac_prev=libdir ;;
479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
480 libdir="$ac_optarg" ;;
481
482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
483 | --libexe | --libex | --libe)
484 ac_prev=libexecdir ;;
485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
486 | --libexe=* | --libex=* | --libe=*)
487 libexecdir="$ac_optarg" ;;
488
489 -localstatedir | --localstatedir | --localstatedi | --localstated \
490 | --localstate | --localstat | --localsta | --localst \
491 | --locals | --local | --loca | --loc | --lo)
492 ac_prev=localstatedir ;;
493 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
494 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
495 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
496 localstatedir="$ac_optarg" ;;
497
498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
499 ac_prev=mandir ;;
500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
501 mandir="$ac_optarg" ;;
502
503 -nfp | --nfp | --nf)
504 # Obsolete; use --without-fp.
505 with_fp=no ;;
506
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c)
509 no_create=yes ;;
510
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
513 no_recursion=yes ;;
514
515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
517 | --oldin | --oldi | --old | --ol | --o)
518 ac_prev=oldincludedir ;;
519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
522 oldincludedir="$ac_optarg" ;;
523
524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
525 ac_prev=prefix ;;
526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
527 prefix="$ac_optarg" ;;
528
529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
530 | --program-pre | --program-pr | --program-p)
531 ac_prev=program_prefix ;;
532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
534 program_prefix="$ac_optarg" ;;
535
536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
537 | --program-suf | --program-su | --program-s)
538 ac_prev=program_suffix ;;
539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
541 program_suffix="$ac_optarg" ;;
542
543 -program-transform-name | --program-transform-name \
544 | --program-transform-nam | --program-transform-na \
545 | --program-transform-n | --program-transform- \
546 | --program-transform | --program-transfor \
547 | --program-transfo | --program-transf \
548 | --program-trans | --program-tran \
549 | --progr-tra | --program-tr | --program-t)
550 ac_prev=program_transform_name ;;
551 -program-transform-name=* | --program-transform-name=* \
552 | --program-transform-nam=* | --program-transform-na=* \
553 | --program-transform-n=* | --program-transform-=* \
554 | --program-transform=* | --program-transfor=* \
555 | --program-transfo=* | --program-transf=* \
556 | --program-trans=* | --program-tran=* \
557 | --progr-tra=* | --program-tr=* | --program-t=*)
558 program_transform_name="$ac_optarg" ;;
559
560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
561 | -silent | --silent | --silen | --sile | --sil)
562 silent=yes ;;
563
564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
565 ac_prev=sbindir ;;
566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
567 | --sbi=* | --sb=*)
568 sbindir="$ac_optarg" ;;
569
570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
572 | --sharedst | --shareds | --shared | --share | --shar \
573 | --sha | --sh)
574 ac_prev=sharedstatedir ;;
575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
578 | --sha=* | --sh=*)
579 sharedstatedir="$ac_optarg" ;;
580
581 -site | --site | --sit)
582 ac_prev=site ;;
583 -site=* | --site=* | --sit=*)
584 site="$ac_optarg" ;;
585
586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
587 ac_prev=srcdir ;;
588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
589 srcdir="$ac_optarg" ;;
590
591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
592 | --syscon | --sysco | --sysc | --sys | --sy)
593 ac_prev=sysconfdir ;;
594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
596 sysconfdir="$ac_optarg" ;;
597
598 -target | --target | --targe | --targ | --tar | --ta | --t)
599 ac_prev=target ;;
600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
601 target="$ac_optarg" ;;
602
603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
604 verbose=yes ;;
605
606 -version | --version | --versio | --versi | --vers)
607 echo "configure generated by autoconf version 2.13"
608 exit 0 ;;
609
610 -with-* | --with-*)
611 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
612 # Reject names that are not valid shell variable names.
613 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
614 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
615 fi
616 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 case "$ac_option" in
618 *=*) ;;
619 *) ac_optarg=yes ;;
620 esac
621 eval "with_${ac_package}='$ac_optarg'" ;;
622
623 -without-* | --without-*)
624 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
625 # Reject names that are not valid shell variable names.
626 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
627 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
628 fi
629 ac_package=`echo $ac_package| sed 's/-/_/g'`
630 eval "with_${ac_package}=no" ;;
631
632 --x)
633 # Obsolete; use --with-x.
634 with_x=yes ;;
635
636 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
637 | --x-incl | --x-inc | --x-in | --x-i)
638 ac_prev=x_includes ;;
639 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
640 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
641 x_includes="$ac_optarg" ;;
642
643 -x-libraries | --x-libraries | --x-librarie | --x-librari \
644 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
645 ac_prev=x_libraries ;;
646 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
647 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
648 x_libraries="$ac_optarg" ;;
649
650 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
651 ;;
652
653 *)
654 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
655 echo "configure: warning: $ac_option: invalid host type" 1>&2
656 fi
657 if test "x$nonopt" != xNONE; then
658 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
659 fi
660 nonopt="$ac_option"
661 ;;
662
663 esac
664 done
665
666 if test -n "$ac_prev"; then
667 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
668 fi
669
670 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
671
672 # File descriptor usage:
673 # 0 standard input
674 # 1 file creation
675 # 2 errors and warnings
676 # 3 some systems may open it to /dev/tty
677 # 4 used on the Kubota Titan
678 # 6 checking for... messages and results
679 # 5 compiler messages saved in config.log
680 if test "$silent" = yes; then
681 exec 6>/dev/null
682 else
683 exec 6>&1
684 fi
685 exec 5>./config.log
686
687 echo "\
688 This file contains any messages produced by compilers while
689 running configure, to aid debugging if configure makes a mistake.
690 " 1>&5
691
692 # Strip out --no-create and --no-recursion so they do not pile up.
693 # Also quote any args containing shell metacharacters.
694 ac_configure_args=
695 for ac_arg
696 do
697 case "$ac_arg" in
698 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
699 | --no-cr | --no-c) ;;
700 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
701 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
702 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
703 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
704 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 esac
706 done
707
708 # NLS nuisances.
709 # Only set these to C if already set. These must not be set unconditionally
710 # because not all systems understand e.g. LANG=C (notably SCO).
711 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
712 # Non-C LC_CTYPE values break the ctype check.
713 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
714 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
715 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
716 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
717
718 # confdefs.h avoids OS command line length limits that DEFS can exceed.
719 rm -rf conftest* confdefs.h
720 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
721 echo > confdefs.h
722
723 # A filename unique to this package, relative to the directory that
724 # configure is in, which we can look for to find out if srcdir is correct.
725 ac_unique_file=wx-config.in
726
727 # Find the source files, if location was not specified.
728 if test -z "$srcdir"; then
729 ac_srcdir_defaulted=yes
730 # Try the directory containing this script, then its parent.
731 ac_prog=$0
732 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
733 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
734 srcdir=$ac_confdir
735 if test ! -r $srcdir/$ac_unique_file; then
736 srcdir=..
737 fi
738 else
739 ac_srcdir_defaulted=no
740 fi
741 if test ! -r $srcdir/$ac_unique_file; then
742 if test "$ac_srcdir_defaulted" = yes; then
743 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
744 else
745 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
746 fi
747 fi
748 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
749
750 # Prefer explicitly selected file to automatically selected ones.
751 if test -z "$CONFIG_SITE"; then
752 if test "x$prefix" != xNONE; then
753 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
754 else
755 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
756 fi
757 fi
758 for ac_site_file in $CONFIG_SITE; do
759 if test -r "$ac_site_file"; then
760 echo "loading site script $ac_site_file"
761 . "$ac_site_file"
762 fi
763 done
764
765 if test -r "$cache_file"; then
766 echo "loading cache $cache_file"
767 . $cache_file
768 else
769 echo "creating cache $cache_file"
770 > $cache_file
771 fi
772
773 ac_ext=c
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp='$CPP $CPPFLAGS'
776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling=$ac_cv_prog_cc_cross
779
780 ac_exeext=
781 ac_objext=o
782 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
783 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
784 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
785 ac_n= ac_c='
786 ' ac_t=' '
787 else
788 ac_n=-n ac_c= ac_t=
789 fi
790 else
791 ac_n= ac_c='\c' ac_t=
792 fi
793
794
795
796 ac_aux_dir=
797 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
798 if test -f $ac_dir/install-sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install-sh -c"
801 break
802 elif test -f $ac_dir/install.sh; then
803 ac_aux_dir=$ac_dir
804 ac_install_sh="$ac_aux_dir/install.sh -c"
805 break
806 fi
807 done
808 if test -z "$ac_aux_dir"; then
809 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
810 fi
811 ac_config_guess=$ac_aux_dir/config.guess
812 ac_config_sub=$ac_aux_dir/config.sub
813 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814
815
816 # Do some error checking and defaulting for the host and target type.
817 # The inputs are:
818 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
819 #
820 # The rules are:
821 # 1. You are not allowed to specify --host, --target, and nonopt at the
822 # same time.
823 # 2. Host defaults to nonopt.
824 # 3. If nonopt is not specified, then host defaults to the current host,
825 # as determined by config.guess.
826 # 4. Target and build default to nonopt.
827 # 5. If nonopt is not specified, then target and build default to host.
828
829 # The aliases save the names the user supplied, while $host etc.
830 # will get canonicalized.
831 case $host---$target---$nonopt in
832 NONE---*---* | *---NONE---* | *---*---NONE) ;;
833 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
834 esac
835
836
837 # Make sure we can run config.sub.
838 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
839 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840 fi
841
842 echo $ac_n "checking host system type""... $ac_c" 1>&6
843 echo "configure:844: checking host system type" >&5
844
845 host_alias=$host
846 case "$host_alias" in
847 NONE)
848 case $nonopt in
849 NONE)
850 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
851 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
852 fi ;;
853 *) host_alias=$nonopt ;;
854 esac ;;
855 esac
856
857 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
858 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861 echo "$ac_t""$host" 1>&6
862
863 echo $ac_n "checking target system type""... $ac_c" 1>&6
864 echo "configure:865: checking target system type" >&5
865
866 target_alias=$target
867 case "$target_alias" in
868 NONE)
869 case $nonopt in
870 NONE) target_alias=$host_alias ;;
871 *) target_alias=$nonopt ;;
872 esac ;;
873 esac
874
875 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
876 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879 echo "$ac_t""$target" 1>&6
880
881 echo $ac_n "checking build system type""... $ac_c" 1>&6
882 echo "configure:883: checking build system type" >&5
883
884 build_alias=$build
885 case "$build_alias" in
886 NONE)
887 case $nonopt in
888 NONE) build_alias=$host_alias ;;
889 *) build_alias=$nonopt ;;
890 esac ;;
891 esac
892
893 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
894 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897 echo "$ac_t""$build" 1>&6
898
899 test "$host_alias" != "$target_alias" &&
900 test "$program_prefix$program_suffix$program_transform_name" = \
901 NONENONEs,x,x, &&
902 program_prefix=${target_alias}-
903
904
905
906 WX_MAJOR_VERSION_NUMBER=2
907 WX_MINOR_VERSION_NUMBER=1
908 WX_RELEASE_NUMBER=14
909
910 WX_INTERFACE_AGE=0
911 WX_BINARY_AGE=0
912
913 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
914
915 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
916 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
917 WX_REVISION=$WX_INTERFACE_AGE
918 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
919
920
921 USE_UNIX=1
922 USE_WIN32=0
923 USE_BEOS=0
924
925 USE_LINUX=
926 USE_SGI=
927 USE_HPUX=
928 USE_SYSV=
929 USE_SVR4=
930 USE_AIX=
931 USE_SUN=
932 USE_SOLARIS=
933 USE_SUNOS=
934 USE_ALPHA=
935 USE_OSF=
936 USE_BSD=
937 USE_FREEBSD=
938 USE_VMS=
939 USE_ULTRIX=
940 USE_CYGWIN=
941 USE_MINGW=
942 USE_DATA_GENERAL=
943
944 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
945
946 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
947
948 DEFAULT_wxUSE_GTK=0
949 DEFAULT_wxUSE_MOTIF=0
950 DEFAULT_wxUSE_MSW=0
951 DEFAULT_wxUSE_WINE=0
952 DEFAULT_wxUSE_PM=0
953
954 DEFAULT_DEFAULT_wxUSE_GTK=0
955 DEFAULT_DEFAULT_wxUSE_MOTIF=0
956 DEFAULT_DEFAULT_wxUSE_MSW=0
957 DEFAULT_DEFAULT_wxUSE_WINE=0
958 DEFAULT_DEFAULT_wxUSE_PM=0
959
960 PROGRAM_EXT=
961
962 case "${host}" in
963 *-hp-hpux* )
964 USE_HPUX=1
965 DEFAULT_DEFAULT_wxUSE_MOTIF=1
966 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
967 cat >> confdefs.h <<\EOF
968 #define __HPUX__ 1
969 EOF
970
971 ;;
972 *-*-linux* )
973 USE_LINUX=1
974 cat >> confdefs.h <<\EOF
975 #define __LINUX__ 1
976 EOF
977
978 TMP=`uname -m`
979 if test "x$TMP" = "xalpha"; then
980 USE_ALPHA=1
981 cat >> confdefs.h <<\EOF
982 #define __ALPHA__ 1
983 EOF
984
985 fi
986 DEFAULT_DEFAULT_wxUSE_GTK=1
987 ;;
988 *-*-irix5* | *-*-irix6* )
989 USE_SGI=1
990 USE_SVR4=1
991 cat >> confdefs.h <<\EOF
992 #define __SGI__ 1
993 EOF
994
995 cat >> confdefs.h <<\EOF
996 #define __SVR4__ 1
997 EOF
998
999 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1000 ;;
1001 *-*-solaris2* )
1002 USE_SUN=1
1003 USE_SOLARIS=1
1004 USE_SVR4=1
1005 cat >> confdefs.h <<\EOF
1006 #define __SUN__ 1
1007 EOF
1008
1009 cat >> confdefs.h <<\EOF
1010 #define __SOLARIS__ 1
1011 EOF
1012
1013 cat >> confdefs.h <<\EOF
1014 #define __SVR4__ 1
1015 EOF
1016
1017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1019 ;;
1020 *-*-sunos4* )
1021 USE_SUN=1
1022 USE_SUNOS=1
1023 USE_BSD=1
1024 cat >> confdefs.h <<\EOF
1025 #define __SUN__ 1
1026 EOF
1027
1028 cat >> confdefs.h <<\EOF
1029 #define __SUNOS__ 1
1030 EOF
1031
1032 cat >> confdefs.h <<\EOF
1033 #define __BSD__ 1
1034 EOF
1035
1036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1037 ;;
1038 *-*-freebsd* | *-*-netbsd*)
1039 USE_BSD=1
1040 USE_FREEBSD=1
1041 cat >> confdefs.h <<\EOF
1042 #define __FREEBSD__ 1
1043 EOF
1044
1045 cat >> confdefs.h <<\EOF
1046 #define __BSD__ 1
1047 EOF
1048
1049 DEFAULT_DEFAULT_wxUSE_GTK=1
1050 ;;
1051 *-*-osf* )
1052 USE_ALPHA=1
1053 USE_OSF=1
1054 cat >> confdefs.h <<\EOF
1055 #define __ALPHA__ 1
1056 EOF
1057
1058 cat >> confdefs.h <<\EOF
1059 #define __OSF__ 1
1060 EOF
1061
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1063 ;;
1064 *-*-dgux5* )
1065 USE_ALPHA=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068 #define __ALPHA__ 1
1069 EOF
1070
1071 cat >> confdefs.h <<\EOF
1072 #define __SVR4__ 1
1073 EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-sysv5* )
1078 USE_SYSV=1
1079 USE_SVR4=1
1080 cat >> confdefs.h <<\EOF
1081 #define __SYSV__ 1
1082 EOF
1083
1084 cat >> confdefs.h <<\EOF
1085 #define __SVR4__ 1
1086 EOF
1087
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1089 ;;
1090 *-*-aix* )
1091 USE_AIX=1
1092 USE_SYSV=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095 #define __AIX__ 1
1096 EOF
1097
1098 cat >> confdefs.h <<\EOF
1099 #define __SYSV__ 1
1100 EOF
1101
1102 cat >> confdefs.h <<\EOF
1103 #define __SVR4__ 1
1104 EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108
1109 *-*-cygwin32* | *-*-mingw32* )
1110 USE_UNIX=0
1111 USE_WIN32=1
1112 cat >> confdefs.h <<\EOF
1113 #define __WIN32__ 1
1114 EOF
1115
1116 cat >> confdefs.h <<\EOF
1117 #define __WIN95__ 1
1118 EOF
1119
1120 cat >> confdefs.h <<\EOF
1121 #define __WINDOWS__ 1
1122 EOF
1123
1124 cat >> confdefs.h <<\EOF
1125 #define __GNUWIN32__ 1
1126 EOF
1127
1128 cat >> confdefs.h <<\EOF
1129 #define STRICT 1
1130 EOF
1131
1132 cat >> confdefs.h <<\EOF
1133 #define WINVER 0x0400
1134 EOF
1135
1136 PROGRAM_EXT=".exe"
1137 DEFAULT_DEFAULT_wxUSE_MSW=1
1138 ;;
1139
1140 *-pc-os2_emx )
1141 cat >> confdefs.h <<\EOF
1142 #define __EMX__ 1
1143 EOF
1144
1145 PROGRAM_EXT=".exe"
1146 DEFAULT_DEFAULT_wxUSE_PM=1
1147 ;;
1148
1149 *-*-beos* )
1150 USE_BEOS=1
1151 cat >> confdefs.h <<\EOF
1152 #define __BEOS__ 1
1153 EOF
1154
1155 ;;
1156
1157 *)
1158 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1159 esac
1160
1161 if test "$USE_UNIX" = 1 ; then
1162 wxUSE_UNIX=yes
1163 cat >> confdefs.h <<\EOF
1164 #define __UNIX__ 1
1165 EOF
1166
1167
1168 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1169 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1170 fi
1171
1172 if test "$USE_BEOS" = 1; then
1173 SRC_SUBDIRS="$SRC_SUBDIRS be"
1174 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1175 fi
1176
1177 if test "$USE_LINUX" = 1; then
1178 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1179 echo "configure:1180: checking for gettext in -lc" >&5
1180 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184 ac_save_LIBS="$LIBS"
1185 LIBS="-lc $LIBS"
1186 cat > conftest.$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1189 /* Override any gcc2 internal prototype to avoid an error. */
1190 /* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1192 char gettext();
1193
1194 int main() {
1195 gettext()
1196 ; return 0; }
1197 EOF
1198 if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1199 rm -rf conftest*
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1201 else
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_lib_$ac_lib_var=no"
1206 fi
1207 rm -f conftest*
1208 LIBS="$ac_save_LIBS"
1209
1210 fi
1211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 cat >> confdefs.h <<\EOF
1214 #define wxHAVE_GLIBC2 1
1215 EOF
1216
1217 else
1218 echo "$ac_t""no" 1>&6
1219 fi
1220
1221 fi
1222
1223
1224
1225
1226 wx_arg_cache_file="configarg.cache"
1227 echo "loading argument cache $wx_arg_cache_file"
1228 rm -f ${wx_arg_cache_file}.tmp
1229 touch ${wx_arg_cache_file}.tmp
1230 touch ${wx_arg_cache_file}
1231
1232
1233 DEBUG_CONFIGURE=0
1234 if test $DEBUG_CONFIGURE = 1; then
1235 DEFAULT_wxUSE_THREADS=yes
1236
1237 DEFAULT_wxUSE_SHARED=yes
1238 DEFAULT_wxUSE_BURNT_NAME=no
1239 DEFAULT_wxUSE_OPTIMISE=yes
1240 DEFAULT_wxUSE_PROFILE=no
1241 DEFAULT_wxUSE_NO_DEPS=no
1242 DEFAULT_wxUSE_NO_RTTI=no
1243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1244 DEFAULT_wxUSE_PERMISSIVE=no
1245 DEFAULT_wxUSE_DEBUG_FLAG=yes
1246 DEFAULT_wxUSE_DEBUG_INFO=yes
1247 DEFAULT_wxUSE_DEBUG_GDB=yes
1248 DEFAULT_wxUSE_MEM_TRACING=no
1249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1250 DEFAULT_wxUSE_DMALLOC=no
1251 DEFAULT_wxUSE_APPLE_IEEE=no
1252
1253 DEFAULT_wxUSE_LOG=yes
1254
1255 DEFAULT_wxUSE_GUI=yes
1256
1257 DEFAULT_wxUSE_ZLIB=no
1258 DEFAULT_wxUSE_LIBPNG=no
1259 DEFAULT_wxUSE_LIBJPEG=no
1260 DEFAULT_wxUSE_LIBTIFF=no
1261 DEFAULT_wxUSE_ODBC=no
1262 DEFAULT_wxUSE_OPENGL=no
1263
1264 DEFAULT_wxUSE_STD_IOSTREAM=no
1265 DEFAULT_wxUSE_FILE=no
1266 DEFAULT_wxUSE_TEXTFILE=no
1267 DEFAULT_wxUSE_TIMEDATE=no
1268 DEFAULT_wxUSE_WAVE=no
1269 DEFAULT_wxUSE_INTL=no
1270 DEFAULT_wxUSE_CONFIG=no
1271 DEFAULT_wxUSE_STREAMS=no
1272 DEFAULT_wxUSE_SOCKETS=no
1273 DEFAULT_wxUSE_DIALUP_MANAGER=no
1274 DEFAULT_wxUSE_SERIAL=no
1275 DEFAULT_wxUSE_JOYSTICK=no
1276 DEFAULT_wxUSE_DYNLIB_CLASS=no
1277 DEFAULT_wxUSE_LONGLONG=no
1278
1279 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1280 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1281 DEFAULT_wxUSE_POSTSCRIPT=no
1282
1283 DEFAULT_wxUSE_X_RESOURCES=no
1284 DEFAULT_wxUSE_CLIPBOARD=no
1285 DEFAULT_wxUSE_TOOLTIPS=no
1286 DEFAULT_wxUSE_DRAG_AND_DROP=no
1287 DEFAULT_wxUSE_SPLINES=no
1288
1289 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1290 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1291 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1292
1293 DEFAULT_wxUSE_PROLOGIO=no
1294 DEFAULT_wxUSE_RESOURCES=no
1295 DEFAULT_wxUSE_CONSTRAINTS=no
1296 DEFAULT_wxUSE_IPC=no
1297 DEFAULT_wxUSE_HELP=no
1298 DEFAULT_wxUSE_WXTREE=no
1299 DEFAULT_wxUSE_METAFILE=no
1300
1301 DEFAULT_wxUSE_COMMONDLGS=no
1302 DEFAULT_wxUSE_DIRDLG=no
1303 DEFAULT_wxUSE_TEXTDLG=no
1304 DEFAULT_wxUSE_STARTUP_TIPS=no
1305 DEFAULT_wxUSE_PROGRESSDLG=no
1306 DEFAULT_wxUSE_MINIFRAME=no
1307 DEFAULT_wxUSE_HTML=no
1308 DEFAULT_wxUSE_FILESYSTEM=no
1309 DEFAULT_wxUSE_FS_INET=no
1310 DEFAULT_wxUSE_FS_ZIP=no
1311 DEFAULT_wxUSE_BUSYINFO=no
1312 DEFAULT_wxUSE_ZIPSTREAM=no
1313 DEFAULT_wxUSE_VALIDATORS=yes
1314
1315 DEFAULT_wxUSE_ACCEL=no
1316 DEFAULT_wxUSE_CARET=no
1317 DEFAULT_wxUSE_BMPBUTTON=no
1318 DEFAULT_wxUSE_CHECKBOX=no
1319 DEFAULT_wxUSE_CHECKLST=no
1320 DEFAULT_wxUSE_CHOICE=yes
1321 DEFAULT_wxUSE_COMBOBOX=no
1322 DEFAULT_wxUSE_GAUGE=no
1323 DEFAULT_wxUSE_GRID=no
1324 DEFAULT_wxUSE_NEW_GRID=no
1325 DEFAULT_wxUSE_IMAGLIST=no
1326 DEFAULT_wxUSE_LISTBOX=no
1327 DEFAULT_wxUSE_LISTCTRL=no
1328 DEFAULT_wxUSE_NOTEBOOK=no
1329 DEFAULT_wxUSE_PLOT=no
1330 DEFAULT_wxUSE_RADIOBOX=no
1331 DEFAULT_wxUSE_RADIOBTN=no
1332 DEFAULT_wxUSE_SASH=no
1333 DEFAULT_wxUSE_SCROLLBAR=no
1334 DEFAULT_wxUSE_SLIDER=no
1335 DEFAULT_wxUSE_SPINBTN=no
1336 DEFAULT_wxUSE_SPINCTRL=no
1337 DEFAULT_wxUSE_SPLITTER=no
1338 DEFAULT_wxUSE_STATBMP=no
1339 DEFAULT_wxUSE_STATBOX=no
1340 DEFAULT_wxUSE_STATLINE=no
1341 DEFAULT_wxUSE_STATUSBAR=yes
1342 DEFAULT_wxUSE_TABDIALOG=no
1343 DEFAULT_wxUSE_TOOLBAR=no
1344 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1345 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1346 DEFAULT_wxUSE_TREECTRL=no
1347
1348 DEFAULT_wxUSE_UNICODE=no
1349 DEFAULT_wxUSE_WCSRTOMBS=no
1350
1351 DEFAULT_wxUSE_GIF=no
1352 DEFAULT_wxUSE_PCX=no
1353 DEFAULT_wxUSE_PNM=no
1354 else
1355 DEFAULT_wxUSE_THREADS=yes
1356
1357 DEFAULT_wxUSE_SHARED=yes
1358 DEFAULT_wxUSE_BURNT_NAME=no
1359 DEFAULT_wxUSE_OPTIMISE=yes
1360 DEFAULT_wxUSE_PROFILE=no
1361 DEFAULT_wxUSE_NO_DEPS=no
1362 DEFAULT_wxUSE_NO_RTTI=no
1363 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1364 DEFAULT_wxUSE_PERMISSIVE=no
1365 DEFAULT_wxUSE_DEBUG_FLAG=no
1366 DEFAULT_wxUSE_DEBUG_INFO=no
1367 DEFAULT_wxUSE_DEBUG_GDB=no
1368 DEFAULT_wxUSE_MEM_TRACING=no
1369 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1370 DEFAULT_wxUSE_DMALLOC=no
1371 DEFAULT_wxUSE_APPLE_IEEE=yes
1372
1373 DEFAULT_wxUSE_LOG=yes
1374
1375 DEFAULT_wxUSE_GUI=yes
1376
1377 DEFAULT_wxUSE_ZLIB=yes
1378 DEFAULT_wxUSE_LIBPNG=yes
1379 DEFAULT_wxUSE_LIBJPEG=yes
1380 DEFAULT_wxUSE_LIBTIFF=yes
1381 DEFAULT_wxUSE_ODBC=no
1382 DEFAULT_wxUSE_OPENGL=no
1383
1384 DEFAULT_wxUSE_STD_IOSTREAM=no
1385 DEFAULT_wxUSE_FILE=yes
1386 DEFAULT_wxUSE_TEXTFILE=yes
1387 DEFAULT_wxUSE_TIMEDATE=yes
1388 DEFAULT_wxUSE_WAVE=no
1389 DEFAULT_wxUSE_INTL=yes
1390 DEFAULT_wxUSE_CONFIG=yes
1391 DEFAULT_wxUSE_STREAMS=yes
1392 DEFAULT_wxUSE_SOCKETS=yes
1393 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1394 DEFAULT_wxUSE_SERIAL=yes
1395 DEFAULT_wxUSE_JOYSTICK=yes
1396 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1397 DEFAULT_wxUSE_LONGLONG=yes
1398
1399 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1400 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1401 DEFAULT_wxUSE_POSTSCRIPT=yes
1402
1403 DEFAULT_wxUSE_X_RESOURCES=no
1404 DEFAULT_wxUSE_CLIPBOARD=yes
1405 DEFAULT_wxUSE_TOOLTIPS=yes
1406 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1407 DEFAULT_wxUSE_SPLINES=yes
1408
1409 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1410 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1411 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1412
1413 DEFAULT_wxUSE_PROLOGIO=yes
1414 DEFAULT_wxUSE_RESOURCES=yes
1415 DEFAULT_wxUSE_CONSTRAINTS=yes
1416 DEFAULT_wxUSE_IPC=yes
1417 DEFAULT_wxUSE_HELP=yes
1418 DEFAULT_wxUSE_WXTREE=yes
1419 DEFAULT_wxUSE_METAFILE=yes
1420
1421 DEFAULT_wxUSE_COMMONDLGS=yes
1422 DEFAULT_wxUSE_DIRDLG=yes
1423 DEFAULT_wxUSE_TEXTDLG=yes
1424 DEFAULT_wxUSE_STARTUP_TIPS=yes
1425 DEFAULT_wxUSE_PROGRESSDLG=yes
1426 DEFAULT_wxUSE_MINIFRAME=yes
1427 DEFAULT_wxUSE_HTML=yes
1428 DEFAULT_wxUSE_FILESYSTEM=yes
1429 DEFAULT_wxUSE_FS_INET=yes
1430 DEFAULT_wxUSE_FS_ZIP=yes
1431 DEFAULT_wxUSE_BUSYINFO=yes
1432 DEFAULT_wxUSE_ZIPSTREAM=yes
1433 DEFAULT_wxUSE_VALIDATORS=yes
1434
1435 DEFAULT_wxUSE_ACCEL=yes
1436 DEFAULT_wxUSE_CARET=yes
1437 DEFAULT_wxUSE_BMPBUTTON=yes
1438 DEFAULT_wxUSE_CHECKBOX=yes
1439 DEFAULT_wxUSE_CHECKLST=yes
1440 DEFAULT_wxUSE_CHOICE=yes
1441 DEFAULT_wxUSE_COMBOBOX=yes
1442 DEFAULT_wxUSE_GAUGE=yes
1443 DEFAULT_wxUSE_GRID=yes
1444 DEFAULT_wxUSE_NEW_GRID=yes
1445 DEFAULT_wxUSE_IMAGLIST=yes
1446 DEFAULT_wxUSE_LISTBOX=yes
1447 DEFAULT_wxUSE_LISTCTRL=yes
1448 DEFAULT_wxUSE_NOTEBOOK=yes
1449 DEFAULT_wxUSE_PLOT=yes
1450 DEFAULT_wxUSE_RADIOBOX=yes
1451 DEFAULT_wxUSE_RADIOBTN=yes
1452 DEFAULT_wxUSE_SASH=yes
1453 DEFAULT_wxUSE_SCROLLBAR=yes
1454 DEFAULT_wxUSE_SLIDER=yes
1455 DEFAULT_wxUSE_SPINBTN=yes
1456 DEFAULT_wxUSE_SPINCTRL=yes
1457 DEFAULT_wxUSE_SPLITTER=yes
1458 DEFAULT_wxUSE_STATBMP=yes
1459 DEFAULT_wxUSE_STATBOX=yes
1460 DEFAULT_wxUSE_STATLINE=yes
1461 DEFAULT_wxUSE_STATUSBAR=yes
1462 DEFAULT_wxUSE_TABDIALOG=no
1463 DEFAULT_wxUSE_TOOLBAR=yes
1464 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1465 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1466 DEFAULT_wxUSE_TREECTRL=yes
1467
1468 DEFAULT_wxUSE_UNICODE=no
1469 DEFAULT_wxUSE_WCSRTOMBS=no
1470
1471 DEFAULT_wxUSE_GIF=yes
1472 DEFAULT_wxUSE_PCX=yes
1473 DEFAULT_wxUSE_PNM=yes
1474 fi
1475
1476
1477
1478 for toolkit in `echo $ALL_TOOLKITS`; do
1479 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1480 if test "x$LINE" != x ; then
1481 has_toolkit_in_cache=1
1482 eval "DEFAULT_$LINE"
1483 eval "CACHE_$toolkit=1"
1484 fi
1485 done
1486
1487
1488
1489 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1490 echo "configure:1491: checking "for --enable-gui"" >&5
1491 no_cache=0
1492 # Check whether --enable-gui or --disable-gui was given.
1493 if test "${enable_gui+set}" = set; then
1494 enableval="$enable_gui"
1495
1496 if test "$enableval" = yes; then
1497 ac_cv_use_gui='wxUSE_GUI=yes'
1498 else
1499 ac_cv_use_gui='wxUSE_GUI=no'
1500 fi
1501
1502 else
1503
1504 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1505 if test "x$LINE" != x ; then
1506 eval "DEFAULT_$LINE"
1507 else
1508 no_cache=1
1509 fi
1510
1511 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1512
1513 fi
1514
1515
1516 eval "$ac_cv_use_gui"
1517 if test "$no_cache" != 1; then
1518 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1519 fi
1520
1521 if test "$wxUSE_GUI" = yes; then
1522 echo "$ac_t""yes" 1>&6
1523 else
1524 echo "$ac_t""no" 1>&6
1525 fi
1526
1527
1528 if test "$wxUSE_GUI" = "yes"; then
1529
1530 # Check whether --with-gtk or --without-gtk was given.
1531 if test "${with_gtk+set}" = set; then
1532 withval="$with_gtk"
1533 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1534 fi
1535
1536 # Check whether --with-motif or --without-motif was given.
1537 if test "${with_motif+set}" = set; then
1538 withval="$with_motif"
1539 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1540 fi
1541
1542 # Check whether --with-wine or --without-wine was given.
1543 if test "${with_wine+set}" = set; then
1544 withval="$with_wine"
1545 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1546 fi
1547
1548 # Check whether --with-cygwin or --without-cygwin was given.
1549 if test "${with_cygwin+set}" = set; then
1550 withval="$with_cygwin"
1551 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1552 fi
1553
1554 # Check whether --with-mingw or --without-mingw was given.
1555 if test "${with_mingw+set}" = set; then
1556 withval="$with_mingw"
1557 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1558 fi
1559
1560 # Check whether --with-pm or --without-pm was given.
1561 if test "${with_pm+set}" = set; then
1562 withval="$with_pm"
1563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1564 fi
1565
1566
1567 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1568 if test "${with_gtk_prefix+set}" = set; then
1569 withval="$with_gtk_prefix"
1570 gtk_config_prefix="$withval"
1571 else
1572 gtk_config_prefix=""
1573 fi
1574
1575 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1576 if test "${with_gtk_exec_prefix+set}" = set; then
1577 withval="$with_gtk_exec_prefix"
1578 gtk_config_exec_prefix="$withval"
1579 else
1580 gtk_config_exec_prefix=""
1581 fi
1582
1583
1584
1585 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1586 echo "configure:1587: checking "for --with-libpng"" >&5
1587 no_cache=0
1588 # Check whether --with-libpng or --without-libpng was given.
1589 if test "${with_libpng+set}" = set; then
1590 withval="$with_libpng"
1591
1592 if test "$withval" = yes; then
1593 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1594 elif test "$withval" = no; then
1595 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1596 elif test "$withval" = sys; then
1597 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1598 else
1599 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1600 fi
1601
1602 else
1603
1604 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1605 if test "x$LINE" != x ; then
1606 eval "DEFAULT_$LINE"
1607 else
1608 no_cache=1
1609 fi
1610
1611 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1612
1613 fi
1614
1615
1616 eval "$ac_cv_use_libpng"
1617 if test "$no_cache" != 1; then
1618 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1619 fi
1620
1621 if test "$wxUSE_LIBPNG" = yes; then
1622 echo "$ac_t""yes" 1>&6
1623 elif test "$wxUSE_LIBPNG" = no; then
1624 echo "$ac_t""no" 1>&6
1625 elif test "$wxUSE_LIBPNG" = sys; then
1626 echo "$ac_t""system version" 1>&6
1627 else
1628 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1629 fi
1630
1631
1632 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1633 echo "configure:1634: checking "for --with-libjpeg"" >&5
1634 no_cache=0
1635 # Check whether --with-libjpeg or --without-libjpeg was given.
1636 if test "${with_libjpeg+set}" = set; then
1637 withval="$with_libjpeg"
1638
1639 if test "$withval" = yes; then
1640 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1641 elif test "$withval" = no; then
1642 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1643 elif test "$withval" = sys; then
1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1645 else
1646 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1647 fi
1648
1649 else
1650
1651 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1652 if test "x$LINE" != x ; then
1653 eval "DEFAULT_$LINE"
1654 else
1655 no_cache=1
1656 fi
1657
1658 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1659
1660 fi
1661
1662
1663 eval "$ac_cv_use_libjpeg"
1664 if test "$no_cache" != 1; then
1665 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1666 fi
1667
1668 if test "$wxUSE_LIBJPEG" = yes; then
1669 echo "$ac_t""yes" 1>&6
1670 elif test "$wxUSE_LIBJPEG" = no; then
1671 echo "$ac_t""no" 1>&6
1672 elif test "$wxUSE_LIBJPEG" = sys; then
1673 echo "$ac_t""system version" 1>&6
1674 else
1675 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1676 fi
1677
1678
1679 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1680 echo "configure:1681: checking "for --with-libtiff"" >&5
1681 no_cache=0
1682 # Check whether --with-libtiff or --without-libtiff was given.
1683 if test "${with_libtiff+set}" = set; then
1684 withval="$with_libtiff"
1685
1686 if test "$withval" = yes; then
1687 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1688 elif test "$withval" = no; then
1689 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1690 elif test "$withval" = sys; then
1691 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1692 else
1693 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1694 fi
1695
1696 else
1697
1698 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1699 if test "x$LINE" != x ; then
1700 eval "DEFAULT_$LINE"
1701 else
1702 no_cache=1
1703 fi
1704
1705 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1706
1707 fi
1708
1709
1710 eval "$ac_cv_use_libtiff"
1711 if test "$no_cache" != 1; then
1712 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1713 fi
1714
1715 if test "$wxUSE_LIBTIFF" = yes; then
1716 echo "$ac_t""yes" 1>&6
1717 elif test "$wxUSE_LIBTIFF" = no; then
1718 echo "$ac_t""no" 1>&6
1719 elif test "$wxUSE_LIBTIFF" = sys; then
1720 echo "$ac_t""system version" 1>&6
1721 else
1722 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1723 fi
1724
1725
1726 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1727 echo "configure:1728: checking "for --with-opengl"" >&5
1728 no_cache=0
1729 # Check whether --with-opengl or --without-opengl was given.
1730 if test "${with_opengl+set}" = set; then
1731 withval="$with_opengl"
1732
1733 if test "$withval" = yes; then
1734 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1735 else
1736 ac_cv_use_opengl='wxUSE_OPENGL=no'
1737 fi
1738
1739 else
1740
1741 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
1748 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1749
1750 fi
1751
1752
1753 eval "$ac_cv_use_opengl"
1754 if test "$no_cache" != 1; then
1755 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1756 fi
1757
1758 if test "$wxUSE_OPENGL" = yes; then
1759 echo "$ac_t""yes" 1>&6
1760 else
1761 echo "$ac_t""no" 1>&6
1762 fi
1763
1764
1765 fi
1766
1767
1768 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1769 echo "configure:1770: checking "for --with-dmalloc"" >&5
1770 no_cache=0
1771 # Check whether --with-dmalloc or --without-dmalloc was given.
1772 if test "${with_dmalloc+set}" = set; then
1773 withval="$with_dmalloc"
1774
1775 if test "$withval" = yes; then
1776 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1777 else
1778 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1779 fi
1780
1781 else
1782
1783 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
1790 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1791
1792 fi
1793
1794
1795 eval "$ac_cv_use_dmalloc"
1796 if test "$no_cache" != 1; then
1797 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1798 fi
1799
1800 if test "$wxUSE_DMALLOC" = yes; then
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806
1807 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1808 echo "configure:1809: checking "for --with-zlib"" >&5
1809 no_cache=0
1810 # Check whether --with-zlib or --without-zlib was given.
1811 if test "${with_zlib+set}" = set; then
1812 withval="$with_zlib"
1813
1814 if test "$withval" = yes; then
1815 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1816 elif test "$withval" = no; then
1817 ac_cv_use_zlib='wxUSE_ZLIB=no'
1818 elif test "$withval" = sys; then
1819 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1820 else
1821 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1822 fi
1823
1824 else
1825
1826 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1827 if test "x$LINE" != x ; then
1828 eval "DEFAULT_$LINE"
1829 else
1830 no_cache=1
1831 fi
1832
1833 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1834
1835 fi
1836
1837
1838 eval "$ac_cv_use_zlib"
1839 if test "$no_cache" != 1; then
1840 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1841 fi
1842
1843 if test "$wxUSE_ZLIB" = yes; then
1844 echo "$ac_t""yes" 1>&6
1845 elif test "$wxUSE_ZLIB" = no; then
1846 echo "$ac_t""no" 1>&6
1847 elif test "$wxUSE_ZLIB" = sys; then
1848 echo "$ac_t""system version" 1>&6
1849 else
1850 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1851 fi
1852
1853
1854 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1855 echo "configure:1856: checking "for --with-odbc"" >&5
1856 no_cache=0
1857 # Check whether --with-odbc or --without-odbc was given.
1858 if test "${with_odbc+set}" = set; then
1859 withval="$with_odbc"
1860
1861 if test "$withval" = yes; then
1862 ac_cv_use_odbc='wxUSE_ODBC=yes'
1863 else
1864 ac_cv_use_odbc='wxUSE_ODBC=no'
1865 fi
1866
1867 else
1868
1869 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1877
1878 fi
1879
1880
1881 eval "$ac_cv_use_odbc"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_ODBC" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892
1893
1894
1895
1896 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1897 echo "configure:1898: checking "for --enable-shared"" >&5
1898 no_cache=0
1899 # Check whether --enable-shared or --disable-shared was given.
1900 if test "${enable_shared+set}" = set; then
1901 enableval="$enable_shared"
1902
1903 if test "$enableval" = yes; then
1904 ac_cv_use_shared='wxUSE_SHARED=yes'
1905 else
1906 ac_cv_use_shared='wxUSE_SHARED=no'
1907 fi
1908
1909 else
1910
1911 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1912 if test "x$LINE" != x ; then
1913 eval "DEFAULT_$LINE"
1914 else
1915 no_cache=1
1916 fi
1917
1918 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1919
1920 fi
1921
1922
1923 eval "$ac_cv_use_shared"
1924 if test "$no_cache" != 1; then
1925 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1926 fi
1927
1928 if test "$wxUSE_SHARED" = yes; then
1929 echo "$ac_t""yes" 1>&6
1930 else
1931 echo "$ac_t""no" 1>&6
1932 fi
1933
1934
1935 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
1936 echo "configure:1937: checking "for --enable-burnt_name"" >&5
1937 no_cache=0
1938 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1939 if test "${enable_burnt_name+set}" = set; then
1940 enableval="$enable_burnt_name"
1941
1942 if test "$enableval" = yes; then
1943 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1944 else
1945 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1946 fi
1947
1948 else
1949
1950 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1951 if test "x$LINE" != x ; then
1952 eval "DEFAULT_$LINE"
1953 else
1954 no_cache=1
1955 fi
1956
1957 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1958
1959 fi
1960
1961
1962 eval "$ac_cv_use_burnt_name"
1963 if test "$no_cache" != 1; then
1964 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1965 fi
1966
1967 if test "$wxUSE_BURNT_NAME" = yes; then
1968 echo "$ac_t""yes" 1>&6
1969 else
1970 echo "$ac_t""no" 1>&6
1971 fi
1972
1973
1974 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1975 echo "configure:1976: checking "for --enable-optimise"" >&5
1976 no_cache=0
1977 # Check whether --enable-optimise or --disable-optimise was given.
1978 if test "${enable_optimise+set}" = set; then
1979 enableval="$enable_optimise"
1980
1981 if test "$enableval" = yes; then
1982 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1983 else
1984 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1985 fi
1986
1987 else
1988
1989 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1990 if test "x$LINE" != x ; then
1991 eval "DEFAULT_$LINE"
1992 else
1993 no_cache=1
1994 fi
1995
1996 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1997
1998 fi
1999
2000
2001 eval "$ac_cv_use_optimise"
2002 if test "$no_cache" != 1; then
2003 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2004 fi
2005
2006 if test "$wxUSE_OPTIMISE" = yes; then
2007 echo "$ac_t""yes" 1>&6
2008 else
2009 echo "$ac_t""no" 1>&6
2010 fi
2011
2012
2013 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
2014 echo "configure:2015: checking "for --enable-debug"" >&5
2015 no_cache=0
2016 # Check whether --enable-debug or --disable-debug was given.
2017 if test "${enable_debug+set}" = set; then
2018 enableval="$enable_debug"
2019
2020 if test "$enableval" = yes; then
2021 ac_cv_use_debug='wxUSE_DEBUG=yes'
2022 else
2023 ac_cv_use_debug='wxUSE_DEBUG=no'
2024 fi
2025
2026 else
2027
2028 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2029 if test "x$LINE" != x ; then
2030 eval "DEFAULT_$LINE"
2031 else
2032 no_cache=1
2033 fi
2034
2035 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2036
2037 fi
2038
2039
2040 eval "$ac_cv_use_debug"
2041 if test "$no_cache" != 1; then
2042 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2043 fi
2044
2045 if test "$wxUSE_DEBUG" = yes; then
2046 echo "$ac_t""yes" 1>&6
2047 else
2048 echo "$ac_t""no" 1>&6
2049 fi
2050
2051
2052 if test "$wxUSE_DEBUG" = "yes"; then
2053 DEFAULT_wxUSE_DEBUG_FLAG=yes
2054 DEFAULT_wxUSE_DEBUG_INFO=yes
2055 elif test "$wxUSE_DEBUG" = "no"; then
2056 DEFAULT_wxUSE_DEBUG_FLAG=no
2057 DEFAULT_wxUSE_DEBUG_INFO=no
2058 fi
2059
2060
2061 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2062 echo "configure:2063: checking "for --enable-debug_flag"" >&5
2063 no_cache=0
2064 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2065 if test "${enable_debug_flag+set}" = set; then
2066 enableval="$enable_debug_flag"
2067
2068 if test "$enableval" = yes; then
2069 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2070 else
2071 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2072 fi
2073
2074 else
2075
2076 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2077 if test "x$LINE" != x ; then
2078 eval "DEFAULT_$LINE"
2079 else
2080 no_cache=1
2081 fi
2082
2083 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2084
2085 fi
2086
2087
2088 eval "$ac_cv_use_debug_flag"
2089 if test "$no_cache" != 1; then
2090 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2091 fi
2092
2093 if test "$wxUSE_DEBUG_FLAG" = yes; then
2094 echo "$ac_t""yes" 1>&6
2095 else
2096 echo "$ac_t""no" 1>&6
2097 fi
2098
2099
2100 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2101 echo "configure:2102: checking "for --enable-debug_info"" >&5
2102 no_cache=0
2103 # Check whether --enable-debug_info or --disable-debug_info was given.
2104 if test "${enable_debug_info+set}" = set; then
2105 enableval="$enable_debug_info"
2106
2107 if test "$enableval" = yes; then
2108 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2109 else
2110 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2111 fi
2112
2113 else
2114
2115 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2116 if test "x$LINE" != x ; then
2117 eval "DEFAULT_$LINE"
2118 else
2119 no_cache=1
2120 fi
2121
2122 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2123
2124 fi
2125
2126
2127 eval "$ac_cv_use_debug_info"
2128 if test "$no_cache" != 1; then
2129 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2130 fi
2131
2132 if test "$wxUSE_DEBUG_INFO" = yes; then
2133 echo "$ac_t""yes" 1>&6
2134 else
2135 echo "$ac_t""no" 1>&6
2136 fi
2137
2138
2139 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2140 echo "configure:2141: checking "for --enable-debug_gdb"" >&5
2141 no_cache=0
2142 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2143 if test "${enable_debug_gdb+set}" = set; then
2144 enableval="$enable_debug_gdb"
2145
2146 if test "$enableval" = yes; then
2147 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2148 else
2149 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2150 fi
2151
2152 else
2153
2154 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2155 if test "x$LINE" != x ; then
2156 eval "DEFAULT_$LINE"
2157 else
2158 no_cache=1
2159 fi
2160
2161 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2162
2163 fi
2164
2165
2166 eval "$ac_cv_use_debug_gdb"
2167 if test "$no_cache" != 1; then
2168 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2169 fi
2170
2171 if test "$wxUSE_DEBUG_GDB" = yes; then
2172 echo "$ac_t""yes" 1>&6
2173 else
2174 echo "$ac_t""no" 1>&6
2175 fi
2176
2177
2178 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2179 echo "configure:2180: checking "for --enable-debug_cntxt"" >&5
2180 no_cache=0
2181 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2182 if test "${enable_debug_cntxt+set}" = set; then
2183 enableval="$enable_debug_cntxt"
2184
2185 if test "$enableval" = yes; then
2186 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2187 else
2188 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2189 fi
2190
2191 else
2192
2193 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2194 if test "x$LINE" != x ; then
2195 eval "DEFAULT_$LINE"
2196 else
2197 no_cache=1
2198 fi
2199
2200 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2201
2202 fi
2203
2204
2205 eval "$ac_cv_use_debug_cntxt"
2206 if test "$no_cache" != 1; then
2207 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2208 fi
2209
2210 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2211 echo "$ac_t""yes" 1>&6
2212 else
2213 echo "$ac_t""no" 1>&6
2214 fi
2215
2216
2217 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2218 echo "configure:2219: checking "for --enable-mem_tracing"" >&5
2219 no_cache=0
2220 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2221 if test "${enable_mem_tracing+set}" = set; then
2222 enableval="$enable_mem_tracing"
2223
2224 if test "$enableval" = yes; then
2225 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2226 else
2227 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2228 fi
2229
2230 else
2231
2232 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2233 if test "x$LINE" != x ; then
2234 eval "DEFAULT_$LINE"
2235 else
2236 no_cache=1
2237 fi
2238
2239 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2240
2241 fi
2242
2243
2244 eval "$ac_cv_use_mem_tracing"
2245 if test "$no_cache" != 1; then
2246 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2247 fi
2248
2249 if test "$wxUSE_MEM_TRACING" = yes; then
2250 echo "$ac_t""yes" 1>&6
2251 else
2252 echo "$ac_t""no" 1>&6
2253 fi
2254
2255
2256 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2257 echo "configure:2258: checking "for --enable-profile"" >&5
2258 no_cache=0
2259 # Check whether --enable-profile or --disable-profile was given.
2260 if test "${enable_profile+set}" = set; then
2261 enableval="$enable_profile"
2262
2263 if test "$enableval" = yes; then
2264 ac_cv_use_profile='wxUSE_PROFILE=yes'
2265 else
2266 ac_cv_use_profile='wxUSE_PROFILE=no'
2267 fi
2268
2269 else
2270
2271 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2272 if test "x$LINE" != x ; then
2273 eval "DEFAULT_$LINE"
2274 else
2275 no_cache=1
2276 fi
2277
2278 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2279
2280 fi
2281
2282
2283 eval "$ac_cv_use_profile"
2284 if test "$no_cache" != 1; then
2285 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2286 fi
2287
2288 if test "$wxUSE_PROFILE" = yes; then
2289 echo "$ac_t""yes" 1>&6
2290 else
2291 echo "$ac_t""no" 1>&6
2292 fi
2293
2294
2295 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2296 echo "configure:2297: checking "for --enable-no_rtti"" >&5
2297 no_cache=0
2298 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2299 if test "${enable_no_rtti+set}" = set; then
2300 enableval="$enable_no_rtti"
2301
2302 if test "$enableval" = yes; then
2303 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2304 else
2305 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2306 fi
2307
2308 else
2309
2310 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2318
2319 fi
2320
2321
2322 eval "$ac_cv_use_no_rtti"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_NO_RTTI" = yes; then
2328 echo "$ac_t""yes" 1>&6
2329 else
2330 echo "$ac_t""no" 1>&6
2331 fi
2332
2333
2334 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2335 echo "configure:2336: checking "for --enable-no_exceptions"" >&5
2336 no_cache=0
2337 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2338 if test "${enable_no_exceptions+set}" = set; then
2339 enableval="$enable_no_exceptions"
2340
2341 if test "$enableval" = yes; then
2342 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2343 else
2344 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2345 fi
2346
2347 else
2348
2349 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2350 if test "x$LINE" != x ; then
2351 eval "DEFAULT_$LINE"
2352 else
2353 no_cache=1
2354 fi
2355
2356 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2357
2358 fi
2359
2360
2361 eval "$ac_cv_use_no_exceptions"
2362 if test "$no_cache" != 1; then
2363 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2364 fi
2365
2366 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2367 echo "$ac_t""yes" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2370 fi
2371
2372
2373 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2374 echo "configure:2375: checking "for --enable-permissive"" >&5
2375 no_cache=0
2376 # Check whether --enable-permissive or --disable-permissive was given.
2377 if test "${enable_permissive+set}" = set; then
2378 enableval="$enable_permissive"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2382 else
2383 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2384 fi
2385
2386 else
2387
2388 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2396
2397 fi
2398
2399
2400 eval "$ac_cv_use_permissive"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_PERMISSIVE" = yes; then
2406 echo "$ac_t""yes" 1>&6
2407 else
2408 echo "$ac_t""no" 1>&6
2409 fi
2410
2411
2412 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2413 echo "configure:2414: checking "for --enable-no_deps"" >&5
2414 no_cache=0
2415 # Check whether --enable-no_deps or --disable-no_deps was given.
2416 if test "${enable_no_deps+set}" = set; then
2417 enableval="$enable_no_deps"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2421 else
2422 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2423 fi
2424
2425 else
2426
2427 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2435
2436 fi
2437
2438
2439 eval "$ac_cv_use_no_deps"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_NO_DEPS" = yes; then
2445 echo "$ac_t""yes" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2448 fi
2449
2450
2451
2452
2453 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2454 echo "configure:2455: checking "for --enable-intl"" >&5
2455 no_cache=0
2456 # Check whether --enable-intl or --disable-intl was given.
2457 if test "${enable_intl+set}" = set; then
2458 enableval="$enable_intl"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_intl='wxUSE_INTL=yes'
2462 else
2463 ac_cv_use_intl='wxUSE_INTL=no'
2464 fi
2465
2466 else
2467
2468 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2476
2477 fi
2478
2479
2480 eval "$ac_cv_use_intl"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_INTL" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2493 echo "configure:2494: checking "for --enable-config"" >&5
2494 no_cache=0
2495 # Check whether --enable-config or --disable-config was given.
2496 if test "${enable_config+set}" = set; then
2497 enableval="$enable_config"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_config='wxUSE_CONFIG=yes'
2501 else
2502 ac_cv_use_config='wxUSE_CONFIG=no'
2503 fi
2504
2505 else
2506
2507 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2515
2516 fi
2517
2518
2519 eval "$ac_cv_use_config"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_CONFIG" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
2531
2532 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2533 echo "configure:2534: checking "for --enable-sockets"" >&5
2534 no_cache=0
2535 # Check whether --enable-sockets or --disable-sockets was given.
2536 if test "${enable_sockets+set}" = set; then
2537 enableval="$enable_sockets"
2538
2539 if test "$enableval" = yes; then
2540 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2541 else
2542 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2543 fi
2544
2545 else
2546
2547 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2548 if test "x$LINE" != x ; then
2549 eval "DEFAULT_$LINE"
2550 else
2551 no_cache=1
2552 fi
2553
2554 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2555
2556 fi
2557
2558
2559 eval "$ac_cv_use_sockets"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_SOCKETS" = yes; then
2565 echo "$ac_t""yes" 1>&6
2566 else
2567 echo "$ac_t""no" 1>&6
2568 fi
2569
2570
2571
2572 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2573 echo "configure:2574: checking "for --enable-dialupman"" >&5
2574 no_cache=0
2575 # Check whether --enable-dialupman or --disable-dialupman was given.
2576 if test "${enable_dialupman+set}" = set; then
2577 enableval="$enable_dialupman"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2581 else
2582 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2583 fi
2584
2585 else
2586
2587 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2595
2596 fi
2597
2598
2599 eval "$ac_cv_use_dialupman"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2605 echo "$ac_t""yes" 1>&6
2606 else
2607 echo "$ac_t""no" 1>&6
2608 fi
2609
2610
2611 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2612 echo "configure:2613: checking "for --enable-ipc"" >&5
2613 no_cache=0
2614 # Check whether --enable-ipc or --disable-ipc was given.
2615 if test "${enable_ipc+set}" = set; then
2616 enableval="$enable_ipc"
2617
2618 if test "$enableval" = yes; then
2619 ac_cv_use_ipc='wxUSE_IPC=yes'
2620 else
2621 ac_cv_use_ipc='wxUSE_IPC=no'
2622 fi
2623
2624 else
2625
2626 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2627 if test "x$LINE" != x ; then
2628 eval "DEFAULT_$LINE"
2629 else
2630 no_cache=1
2631 fi
2632
2633 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2634
2635 fi
2636
2637
2638 eval "$ac_cv_use_ipc"
2639 if test "$no_cache" != 1; then
2640 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2641 fi
2642
2643 if test "$wxUSE_IPC" = yes; then
2644 echo "$ac_t""yes" 1>&6
2645 else
2646 echo "$ac_t""no" 1>&6
2647 fi
2648
2649
2650 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2651 echo "configure:2652: checking "for --enable-apple_ieee"" >&5
2652 no_cache=0
2653 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2654 if test "${enable_apple_ieee+set}" = set; then
2655 enableval="$enable_apple_ieee"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2659 else
2660 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2661 fi
2662
2663 else
2664
2665 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2673
2674 fi
2675
2676
2677 eval "$ac_cv_use_apple_ieee"
2678 if test "$no_cache" != 1; then
2679 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2680 fi
2681
2682 if test "$wxUSE_APPLE_IEEE" = yes; then
2683 echo "$ac_t""yes" 1>&6
2684 else
2685 echo "$ac_t""no" 1>&6
2686 fi
2687
2688
2689 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2690 echo "configure:2691: checking "for --enable-timedate"" >&5
2691 no_cache=0
2692 # Check whether --enable-timedate or --disable-timedate was given.
2693 if test "${enable_timedate+set}" = set; then
2694 enableval="$enable_timedate"
2695
2696 if test "$enableval" = yes; then
2697 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2698 else
2699 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2700 fi
2701
2702 else
2703
2704 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2705 if test "x$LINE" != x ; then
2706 eval "DEFAULT_$LINE"
2707 else
2708 no_cache=1
2709 fi
2710
2711 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2712
2713 fi
2714
2715
2716 eval "$ac_cv_use_timedate"
2717 if test "$no_cache" != 1; then
2718 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2719 fi
2720
2721 if test "$wxUSE_TIMEDATE" = yes; then
2722 echo "$ac_t""yes" 1>&6
2723 else
2724 echo "$ac_t""no" 1>&6
2725 fi
2726
2727
2728 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2729 echo "configure:2730: checking "for --enable-wave"" >&5
2730 no_cache=0
2731 # Check whether --enable-wave or --disable-wave was given.
2732 if test "${enable_wave+set}" = set; then
2733 enableval="$enable_wave"
2734
2735 if test "$enableval" = yes; then
2736 ac_cv_use_wave='wxUSE_WAVE=yes'
2737 else
2738 ac_cv_use_wave='wxUSE_WAVE=no'
2739 fi
2740
2741 else
2742
2743 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
2750 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2751
2752 fi
2753
2754
2755 eval "$ac_cv_use_wave"
2756 if test "$no_cache" != 1; then
2757 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2758 fi
2759
2760 if test "$wxUSE_WAVE" = yes; then
2761 echo "$ac_t""yes" 1>&6
2762 else
2763 echo "$ac_t""no" 1>&6
2764 fi
2765
2766
2767 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2768 echo "configure:2769: checking "for --enable-fraction"" >&5
2769 no_cache=0
2770 # Check whether --enable-fraction or --disable-fraction was given.
2771 if test "${enable_fraction+set}" = set; then
2772 enableval="$enable_fraction"
2773
2774 if test "$enableval" = yes; then
2775 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2776 else
2777 ac_cv_use_fraction='wxUSE_FRACTION=no'
2778 fi
2779
2780 else
2781
2782 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2790
2791 fi
2792
2793
2794 eval "$ac_cv_use_fraction"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_FRACTION" = yes; then
2800 echo "$ac_t""yes" 1>&6
2801 else
2802 echo "$ac_t""no" 1>&6
2803 fi
2804
2805
2806 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2807 echo "configure:2808: checking "for --enable-dynlib"" >&5
2808 no_cache=0
2809 # Check whether --enable-dynlib or --disable-dynlib was given.
2810 if test "${enable_dynlib+set}" = set; then
2811 enableval="$enable_dynlib"
2812
2813 if test "$enableval" = yes; then
2814 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2815 else
2816 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2817 fi
2818
2819 else
2820
2821 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2822 if test "x$LINE" != x ; then
2823 eval "DEFAULT_$LINE"
2824 else
2825 no_cache=1
2826 fi
2827
2828 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2829
2830 fi
2831
2832
2833 eval "$ac_cv_use_dynlib"
2834 if test "$no_cache" != 1; then
2835 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2836 fi
2837
2838 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2839 echo "$ac_t""yes" 1>&6
2840 else
2841 echo "$ac_t""no" 1>&6
2842 fi
2843
2844
2845 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2846 echo "configure:2847: checking "for --enable-longlong"" >&5
2847 no_cache=0
2848 # Check whether --enable-longlong or --disable-longlong was given.
2849 if test "${enable_longlong+set}" = set; then
2850 enableval="$enable_longlong"
2851
2852 if test "$enableval" = yes; then
2853 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2854 else
2855 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2856 fi
2857
2858 else
2859
2860 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2868
2869 fi
2870
2871
2872 eval "$ac_cv_use_longlong"
2873 if test "$no_cache" != 1; then
2874 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2875 fi
2876
2877 if test "$wxUSE_LONGLONG" = yes; then
2878 echo "$ac_t""yes" 1>&6
2879 else
2880 echo "$ac_t""no" 1>&6
2881 fi
2882
2883
2884 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2885 echo "configure:2886: checking "for --enable-log"" >&5
2886 no_cache=0
2887 # Check whether --enable-log or --disable-log was given.
2888 if test "${enable_log+set}" = set; then
2889 enableval="$enable_log"
2890
2891 if test "$enableval" = yes; then
2892 ac_cv_use_log='wxUSE_LOG=yes'
2893 else
2894 ac_cv_use_log='wxUSE_LOG=no'
2895 fi
2896
2897 else
2898
2899 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2900 if test "x$LINE" != x ; then
2901 eval "DEFAULT_$LINE"
2902 else
2903 no_cache=1
2904 fi
2905
2906 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2907
2908 fi
2909
2910
2911 eval "$ac_cv_use_log"
2912 if test "$no_cache" != 1; then
2913 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2914 fi
2915
2916 if test "$wxUSE_LOG" = yes; then
2917 echo "$ac_t""yes" 1>&6
2918 else
2919 echo "$ac_t""no" 1>&6
2920 fi
2921
2922
2923 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2924 echo "configure:2925: checking "for --enable-streams"" >&5
2925 no_cache=0
2926 # Check whether --enable-streams or --disable-streams was given.
2927 if test "${enable_streams+set}" = set; then
2928 enableval="$enable_streams"
2929
2930 if test "$enableval" = yes; then
2931 ac_cv_use_streams='wxUSE_STREAMS=yes'
2932 else
2933 ac_cv_use_streams='wxUSE_STREAMS=no'
2934 fi
2935
2936 else
2937
2938 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2939 if test "x$LINE" != x ; then
2940 eval "DEFAULT_$LINE"
2941 else
2942 no_cache=1
2943 fi
2944
2945 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2946
2947 fi
2948
2949
2950 eval "$ac_cv_use_streams"
2951 if test "$no_cache" != 1; then
2952 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2953 fi
2954
2955 if test "$wxUSE_STREAMS" = yes; then
2956 echo "$ac_t""yes" 1>&6
2957 else
2958 echo "$ac_t""no" 1>&6
2959 fi
2960
2961
2962 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2963 echo "configure:2964: checking "for --enable-file"" >&5
2964 no_cache=0
2965 # Check whether --enable-file or --disable-file was given.
2966 if test "${enable_file+set}" = set; then
2967 enableval="$enable_file"
2968
2969 if test "$enableval" = yes; then
2970 ac_cv_use_file='wxUSE_FILE=yes'
2971 else
2972 ac_cv_use_file='wxUSE_FILE=no'
2973 fi
2974
2975 else
2976
2977 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2978 if test "x$LINE" != x ; then
2979 eval "DEFAULT_$LINE"
2980 else
2981 no_cache=1
2982 fi
2983
2984 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2985
2986 fi
2987
2988
2989 eval "$ac_cv_use_file"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_FILE" = yes; then
2995 echo "$ac_t""yes" 1>&6
2996 else
2997 echo "$ac_t""no" 1>&6
2998 fi
2999
3000
3001 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
3002 echo "configure:3003: checking "for --enable-textfile"" >&5
3003 no_cache=0
3004 # Check whether --enable-textfile or --disable-textfile was given.
3005 if test "${enable_textfile+set}" = set; then
3006 enableval="$enable_textfile"
3007
3008 if test "$enableval" = yes; then
3009 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3010 else
3011 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3012 fi
3013
3014 else
3015
3016 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3024
3025 fi
3026
3027
3028 eval "$ac_cv_use_textfile"
3029 if test "$no_cache" != 1; then
3030 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3031 fi
3032
3033 if test "$wxUSE_TEXTFILE" = yes; then
3034 echo "$ac_t""yes" 1>&6
3035 else
3036 echo "$ac_t""no" 1>&6
3037 fi
3038
3039
3040 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3041 echo "configure:3042: checking "for --enable-unicode"" >&5
3042 no_cache=0
3043 # Check whether --enable-unicode or --disable-unicode was given.
3044 if test "${enable_unicode+set}" = set; then
3045 enableval="$enable_unicode"
3046
3047 if test "$enableval" = yes; then
3048 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3049 else
3050 ac_cv_use_unicode='wxUSE_UNICODE=no'
3051 fi
3052
3053 else
3054
3055 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3063
3064 fi
3065
3066
3067 eval "$ac_cv_use_unicode"
3068 if test "$no_cache" != 1; then
3069 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3070 fi
3071
3072 if test "$wxUSE_UNICODE" = yes; then
3073 echo "$ac_t""yes" 1>&6
3074 else
3075 echo "$ac_t""no" 1>&6
3076 fi
3077
3078
3079 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3080 echo "configure:3081: checking "for --enable-wcsrtombs"" >&5
3081 no_cache=0
3082 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3083 if test "${enable_wcsrtombs+set}" = set; then
3084 enableval="$enable_wcsrtombs"
3085
3086 if test "$enableval" = yes; then
3087 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3088 else
3089 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3090 fi
3091
3092 else
3093
3094 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3102
3103 fi
3104
3105
3106 eval "$ac_cv_use_wcsrtombs"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_WCSRTOMBS" = yes; then
3112 echo "$ac_t""yes" 1>&6
3113 else
3114 echo "$ac_t""no" 1>&6
3115 fi
3116
3117
3118 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3119 echo "configure:3120: checking "for --enable-wxprintfv"" >&5
3120 no_cache=0
3121 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3122 if test "${enable_wxprintfv+set}" = set; then
3123 enableval="$enable_wxprintfv"
3124
3125 if test "$enableval" = yes; then
3126 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3127 else
3128 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3129 fi
3130
3131 else
3132
3133 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3134 if test "x$LINE" != x ; then
3135 eval "DEFAULT_$LINE"
3136 else
3137 no_cache=1
3138 fi
3139
3140 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3141
3142 fi
3143
3144
3145 eval "$ac_cv_use_wxprintfv"
3146 if test "$no_cache" != 1; then
3147 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3148 fi
3149
3150 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3151 echo "$ac_t""yes" 1>&6
3152 else
3153 echo "$ac_t""no" 1>&6
3154 fi
3155
3156
3157 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3158 echo "configure:3159: checking "for --enable-joystick"" >&5
3159 no_cache=0
3160 # Check whether --enable-joystick or --disable-joystick was given.
3161 if test "${enable_joystick+set}" = set; then
3162 enableval="$enable_joystick"
3163
3164 if test "$enableval" = yes; then
3165 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3166 else
3167 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3168 fi
3169
3170 else
3171
3172 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3173 if test "x$LINE" != x ; then
3174 eval "DEFAULT_$LINE"
3175 else
3176 no_cache=1
3177 fi
3178
3179 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3180
3181 fi
3182
3183
3184 eval "$ac_cv_use_joystick"
3185 if test "$no_cache" != 1; then
3186 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3187 fi
3188
3189 if test "$wxUSE_JOYSTICK" = yes; then
3190 echo "$ac_t""yes" 1>&6
3191 else
3192 echo "$ac_t""no" 1>&6
3193 fi
3194
3195
3196 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3197 echo "configure:3198: checking "for --enable-std_iostreams"" >&5
3198 no_cache=0
3199 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3200 if test "${enable_std_iostreams+set}" = set; then
3201 enableval="$enable_std_iostreams"
3202
3203 if test "$enableval" = yes; then
3204 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3205 else
3206 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3207 fi
3208
3209 else
3210
3211 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3212 if test "x$LINE" != x ; then
3213 eval "DEFAULT_$LINE"
3214 else
3215 no_cache=1
3216 fi
3217
3218 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3219
3220 fi
3221
3222
3223 eval "$ac_cv_use_std_iostreams"
3224 if test "$no_cache" != 1; then
3225 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3226 fi
3227
3228 if test "$wxUSE_STD_IOSTREAM" = yes; then
3229 echo "$ac_t""yes" 1>&6
3230 else
3231 echo "$ac_t""no" 1>&6
3232 fi
3233
3234
3235 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3236 echo "configure:3237: checking "for --enable-filesystem"" >&5
3237 no_cache=0
3238 # Check whether --enable-filesystem or --disable-filesystem was given.
3239 if test "${enable_filesystem+set}" = set; then
3240 enableval="$enable_filesystem"
3241
3242 if test "$enableval" = yes; then
3243 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3244 else
3245 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3246 fi
3247
3248 else
3249
3250 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3251 if test "x$LINE" != x ; then
3252 eval "DEFAULT_$LINE"
3253 else
3254 no_cache=1
3255 fi
3256
3257 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3258
3259 fi
3260
3261
3262 eval "$ac_cv_use_filesystem"
3263 if test "$no_cache" != 1; then
3264 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3265 fi
3266
3267 if test "$wxUSE_FILESYSTEM" = yes; then
3268 echo "$ac_t""yes" 1>&6
3269 else
3270 echo "$ac_t""no" 1>&6
3271 fi
3272
3273
3274 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3275 echo "configure:3276: checking "for --enable-fs_inet"" >&5
3276 no_cache=0
3277 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3278 if test "${enable_fs_inet+set}" = set; then
3279 enableval="$enable_fs_inet"
3280
3281 if test "$enableval" = yes; then
3282 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3283 else
3284 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3285 fi
3286
3287 else
3288
3289 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3297
3298 fi
3299
3300
3301 eval "$ac_cv_use_fs_inet"
3302 if test "$no_cache" != 1; then
3303 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3304 fi
3305
3306 if test "$wxUSE_FS_INET" = yes; then
3307 echo "$ac_t""yes" 1>&6
3308 else
3309 echo "$ac_t""no" 1>&6
3310 fi
3311
3312
3313 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3314 echo "configure:3315: checking "for --enable-fs_zip"" >&5
3315 no_cache=0
3316 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3317 if test "${enable_fs_zip+set}" = set; then
3318 enableval="$enable_fs_zip"
3319
3320 if test "$enableval" = yes; then
3321 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3322 else
3323 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3324 fi
3325
3326 else
3327
3328 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3329 if test "x$LINE" != x ; then
3330 eval "DEFAULT_$LINE"
3331 else
3332 no_cache=1
3333 fi
3334
3335 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3336
3337 fi
3338
3339
3340 eval "$ac_cv_use_fs_zip"
3341 if test "$no_cache" != 1; then
3342 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3343 fi
3344
3345 if test "$wxUSE_FS_ZIP" = yes; then
3346 echo "$ac_t""yes" 1>&6
3347 else
3348 echo "$ac_t""no" 1>&6
3349 fi
3350
3351
3352 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3353 echo "configure:3354: checking "for --enable-zipstream"" >&5
3354 no_cache=0
3355 # Check whether --enable-zipstream or --disable-zipstream was given.
3356 if test "${enable_zipstream+set}" = set; then
3357 enableval="$enable_zipstream"
3358
3359 if test "$enableval" = yes; then
3360 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3361 else
3362 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3363 fi
3364
3365 else
3366
3367 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3368 if test "x$LINE" != x ; then
3369 eval "DEFAULT_$LINE"
3370 else
3371 no_cache=1
3372 fi
3373
3374 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3375
3376 fi
3377
3378
3379 eval "$ac_cv_use_zipstream"
3380 if test "$no_cache" != 1; then
3381 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3382 fi
3383
3384 if test "$wxUSE_ZIPSTREAM" = yes; then
3385 echo "$ac_t""yes" 1>&6
3386 else
3387 echo "$ac_t""no" 1>&6
3388 fi
3389
3390
3391
3392
3393 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3394 echo "configure:3395: checking "for --enable-threads"" >&5
3395 no_cache=0
3396 # Check whether --enable-threads or --disable-threads was given.
3397 if test "${enable_threads+set}" = set; then
3398 enableval="$enable_threads"
3399
3400 if test "$enableval" = yes; then
3401 ac_cv_use_threads='wxUSE_THREADS=yes'
3402 else
3403 ac_cv_use_threads='wxUSE_THREADS=no'
3404 fi
3405
3406 else
3407
3408 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3416
3417 fi
3418
3419
3420 eval "$ac_cv_use_threads"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_THREADS" = yes; then
3426 echo "$ac_t""yes" 1>&6
3427 else
3428 echo "$ac_t""no" 1>&6
3429 fi
3430
3431
3432 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3433 echo "configure:3434: checking "for --enable-serial"" >&5
3434 no_cache=0
3435 # Check whether --enable-serial or --disable-serial was given.
3436 if test "${enable_serial+set}" = set; then
3437 enableval="$enable_serial"
3438
3439 if test "$enableval" = yes; then
3440 ac_cv_use_serial='wxUSE_SERIAL=yes'
3441 else
3442 ac_cv_use_serial='wxUSE_SERIAL=no'
3443 fi
3444
3445 else
3446
3447 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3455
3456 fi
3457
3458
3459 eval "$ac_cv_use_serial"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_SERIAL" = yes; then
3465 echo "$ac_t""yes" 1>&6
3466 else
3467 echo "$ac_t""no" 1>&6
3468 fi
3469
3470
3471 if test "$wxUSE_GUI" = "yes"; then
3472
3473
3474
3475 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3476 echo "configure:3477: checking "for --enable-docview"" >&5
3477 no_cache=0
3478 # Check whether --enable-docview or --disable-docview was given.
3479 if test "${enable_docview+set}" = set; then
3480 enableval="$enable_docview"
3481
3482 if test "$enableval" = yes; then
3483 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3484 else
3485 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3486 fi
3487
3488 else
3489
3490 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3498
3499 fi
3500
3501
3502 eval "$ac_cv_use_docview"
3503 if test "$no_cache" != 1; then
3504 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3505 fi
3506
3507 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3508 echo "$ac_t""yes" 1>&6
3509 else
3510 echo "$ac_t""no" 1>&6
3511 fi
3512
3513
3514 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3515 echo "configure:3516: checking "for --enable-help"" >&5
3516 no_cache=0
3517 # Check whether --enable-help or --disable-help was given.
3518 if test "${enable_help+set}" = set; then
3519 enableval="$enable_help"
3520
3521 if test "$enableval" = yes; then
3522 ac_cv_use_help='wxUSE_HELP=yes'
3523 else
3524 ac_cv_use_help='wxUSE_HELP=no'
3525 fi
3526
3527 else
3528
3529 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3537
3538 fi
3539
3540
3541 eval "$ac_cv_use_help"
3542 if test "$no_cache" != 1; then
3543 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3544 fi
3545
3546 if test "$wxUSE_HELP" = yes; then
3547 echo "$ac_t""yes" 1>&6
3548 else
3549 echo "$ac_t""no" 1>&6
3550 fi
3551
3552
3553 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3554 echo "configure:3555: checking "for --enable-constraints"" >&5
3555 no_cache=0
3556 # Check whether --enable-constraints or --disable-constraints was given.
3557 if test "${enable_constraints+set}" = set; then
3558 enableval="$enable_constraints"
3559
3560 if test "$enableval" = yes; then
3561 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3562 else
3563 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3564 fi
3565
3566 else
3567
3568 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3569 if test "x$LINE" != x ; then
3570 eval "DEFAULT_$LINE"
3571 else
3572 no_cache=1
3573 fi
3574
3575 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3576
3577 fi
3578
3579
3580 eval "$ac_cv_use_constraints"
3581 if test "$no_cache" != 1; then
3582 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3583 fi
3584
3585 if test "$wxUSE_CONSTRAINTS" = yes; then
3586 echo "$ac_t""yes" 1>&6
3587 else
3588 echo "$ac_t""no" 1>&6
3589 fi
3590
3591
3592 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3593 echo "configure:3594: checking "for --enable-printarch"" >&5
3594 no_cache=0
3595 # Check whether --enable-printarch or --disable-printarch was given.
3596 if test "${enable_printarch+set}" = set; then
3597 enableval="$enable_printarch"
3598
3599 if test "$enableval" = yes; then
3600 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3601 else
3602 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3603 fi
3604
3605 else
3606
3607 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3608 if test "x$LINE" != x ; then
3609 eval "DEFAULT_$LINE"
3610 else
3611 no_cache=1
3612 fi
3613
3614 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3615
3616 fi
3617
3618
3619 eval "$ac_cv_use_printarch"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3625 echo "$ac_t""yes" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3628 fi
3629
3630
3631 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3632 echo "configure:3633: checking "for --enable-mdi"" >&5
3633 no_cache=0
3634 # Check whether --enable-mdi or --disable-mdi was given.
3635 if test "${enable_mdi+set}" = set; then
3636 enableval="$enable_mdi"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3640 else
3641 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3642 fi
3643
3644 else
3645
3646 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3654
3655 fi
3656
3657
3658 eval "$ac_cv_use_mdi"
3659 if test "$no_cache" != 1; then
3660 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3661 fi
3662
3663 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3664 echo "$ac_t""yes" 1>&6
3665 else
3666 echo "$ac_t""no" 1>&6
3667 fi
3668
3669
3670
3671 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3672 echo "configure:3673: checking "for --enable-postscript"" >&5
3673 no_cache=0
3674 # Check whether --enable-postscript or --disable-postscript was given.
3675 if test "${enable_postscript+set}" = set; then
3676 enableval="$enable_postscript"
3677
3678 if test "$enableval" = yes; then
3679 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3680 else
3681 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3682 fi
3683
3684 else
3685
3686 LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3694
3695 fi
3696
3697
3698 eval "$ac_cv_use_postscript"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_POSTSCRIPT" = yes; then
3704 echo "$ac_t""yes" 1>&6
3705 else
3706 echo "$ac_t""no" 1>&6
3707 fi
3708
3709
3710
3711
3712 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3713 echo "configure:3714: checking "for --enable-prologio"" >&5
3714 no_cache=0
3715 # Check whether --enable-prologio or --disable-prologio was given.
3716 if test "${enable_prologio+set}" = set; then
3717 enableval="$enable_prologio"
3718
3719 if test "$enableval" = yes; then
3720 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3721 else
3722 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3723 fi
3724
3725 else
3726
3727 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3735
3736 fi
3737
3738
3739 eval "$ac_cv_use_prologio"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_PROLOGIO" = yes; then
3745 echo "$ac_t""yes" 1>&6
3746 else
3747 echo "$ac_t""no" 1>&6
3748 fi
3749
3750
3751 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3752 echo "configure:3753: checking "for --enable-resources"" >&5
3753 no_cache=0
3754 # Check whether --enable-resources or --disable-resources was given.
3755 if test "${enable_resources+set}" = set; then
3756 enableval="$enable_resources"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3760 else
3761 ac_cv_use_resources='wxUSE_RESOURCES=no'
3762 fi
3763
3764 else
3765
3766 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3774
3775 fi
3776
3777
3778 eval "$ac_cv_use_resources"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_RESOURCES" = yes; then
3784 echo "$ac_t""yes" 1>&6
3785 else
3786 echo "$ac_t""no" 1>&6
3787 fi
3788
3789
3790
3791 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3792 echo "configure:3793: checking "for --enable-xresources"" >&5
3793 no_cache=0
3794 # Check whether --enable-xresources or --disable-xresources was given.
3795 if test "${enable_xresources+set}" = set; then
3796 enableval="$enable_xresources"
3797
3798 if test "$enableval" = yes; then
3799 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3800 else
3801 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3802 fi
3803
3804 else
3805
3806 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3814
3815 fi
3816
3817
3818 eval "$ac_cv_use_xresources"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_X_RESOURCES" = yes; then
3824 echo "$ac_t""yes" 1>&6
3825 else
3826 echo "$ac_t""no" 1>&6
3827 fi
3828
3829
3830
3831
3832 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3833 echo "configure:3834: checking "for --enable-clipboard"" >&5
3834 no_cache=0
3835 # Check whether --enable-clipboard or --disable-clipboard was given.
3836 if test "${enable_clipboard+set}" = set; then
3837 enableval="$enable_clipboard"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3841 else
3842 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3843 fi
3844
3845 else
3846
3847 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3855
3856 fi
3857
3858
3859 eval "$ac_cv_use_clipboard"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_CLIPBOARD" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3872 echo "configure:3873: checking "for --enable-dnd"" >&5
3873 no_cache=0
3874 # Check whether --enable-dnd or --disable-dnd was given.
3875 if test "${enable_dnd+set}" = set; then
3876 enableval="$enable_dnd"
3877
3878 if test "$enableval" = yes; then
3879 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3880 else
3881 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3882 fi
3883
3884 else
3885
3886 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3894
3895 fi
3896
3897
3898 eval "$ac_cv_use_dnd"
3899 if test "$no_cache" != 1; then
3900 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3901 fi
3902
3903 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3904 echo "$ac_t""yes" 1>&6
3905 else
3906 echo "$ac_t""no" 1>&6
3907 fi
3908
3909
3910
3911 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3912 echo "configure:3913: checking "for --enable-wxtree"" >&5
3913 no_cache=0
3914 # Check whether --enable-wxtree or --disable-wxtree was given.
3915 if test "${enable_wxtree+set}" = set; then
3916 enableval="$enable_wxtree"
3917
3918 if test "$enableval" = yes; then
3919 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3920 else
3921 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3922 fi
3923
3924 else
3925
3926 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3927 if test "x$LINE" != x ; then
3928 eval "DEFAULT_$LINE"
3929 else
3930 no_cache=1
3931 fi
3932
3933 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3934
3935 fi
3936
3937
3938 eval "$ac_cv_use_wxtree"
3939 if test "$no_cache" != 1; then
3940 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3941 fi
3942
3943 if test "$wxUSE_WXTREE" = yes; then
3944 echo "$ac_t""yes" 1>&6
3945 else
3946 echo "$ac_t""no" 1>&6
3947 fi
3948
3949
3950
3951
3952 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3953 echo "configure:3954: checking "for --enable-controls"" >&5
3954 no_cache=0
3955 # Check whether --enable-controls or --disable-controls was given.
3956 if test "${enable_controls+set}" = set; then
3957 enableval="$enable_controls"
3958
3959 if test "$enableval" = yes; then
3960 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3961 else
3962 ac_cv_use_controls='wxUSE_CONTROLS=no'
3963 fi
3964
3965 else
3966
3967 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3975
3976 fi
3977
3978
3979 eval "$ac_cv_use_controls"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_CONTROLS" = yes; then
3985 echo "$ac_t""yes" 1>&6
3986 else
3987 echo "$ac_t""no" 1>&6
3988 fi
3989
3990
3991 if test "$wxUSE_CONTROLS" = "yes"; then
3992 DEFAULT_wxUSE_ACCEL=yes
3993 DEFAULT_wxUSE_CARET=yes
3994 DEFAULT_wxUSE_COMBOBOX=yes
3995 DEFAULT_wxUSE_BMPBUTTON=yes
3996 DEFAULT_wxUSE_CHECKBOX=yes
3997 DEFAULT_wxUSE_CHECKLISTBOX=yes
3998 DEFAULT_wxUSE_CHOICE=yes
3999 DEFAULT_wxUSE_GAUGE=yes
4000 DEFAULT_wxUSE_GRID=yes
4001 DEFAULT_wxUSE_NEW_GRID=yes
4002 DEFAULT_wxUSE_IMAGLIST=yes
4003 DEFAULT_wxUSE_LISTBOX=yes
4004 DEFAULT_wxUSE_LISTCTRL=yes
4005 DEFAULT_wxUSE_NOTEBOOK=yes
4006 DEFAULT_wxUSE_RADIOBOX=yes
4007 DEFAULT_wxUSE_RADIOBTN=yes
4008 DEFAULT_wxUSE_SASH=yes
4009 DEFAULT_wxUSE_SCROLLBAR=yes
4010 DEFAULT_wxUSE_SLIDER=yes
4011 DEFAULT_wxUSE_SPINBTN=yes
4012 DEFAULT_wxUSE_SPINCTRL=yes
4013 DEFAULT_wxUSE_SPLITTER=yes
4014 DEFAULT_wxUSE_STATBMP=yes
4015 DEFAULT_wxUSE_STATBOX=yes
4016 DEFAULT_wxUSE_STATLINE=yes
4017 DEFAULT_wxUSE_STATUSBAR=yes
4018 DEFAULT_wxUSE_TAB_DIALOG=yes
4019 DEFAULT_wxUSE_TOOLBAR=yes
4020 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4021 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4022 DEFAULT_wxUSE_TOOLTIPS=yes
4023 DEFAULT_wxUSE_TREECTRL=yes
4024 elif test "$wxUSE_CONTROLS" = "no"; then
4025 DEFAULT_wxUSE_ACCEL=no
4026 DEFAULT_wxUSE_CARET=no
4027 DEFAULT_wxUSE_COMBOBOX=no
4028 DEFAULT_wxUSE_BMPBUTTON=no
4029 DEFAULT_wxUSE_CHECKBOX=no
4030 DEFAULT_wxUSE_CHECKLISTBOX=no
4031 DEFAULT_wxUSE_CHOICE=no
4032 DEFAULT_wxUSE_GAUGE=no
4033 DEFAULT_wxUSE_GRID=no
4034 DEFAULT_wxUSE_NEW_GRID=no
4035 DEFAULT_wxUSE_IMAGLIST=no
4036 DEFAULT_wxUSE_LISTBOX=no
4037 DEFAULT_wxUSE_LISTCTRL=no
4038 DEFAULT_wxUSE_NOTEBOOK=no
4039 DEFAULT_wxUSE_RADIOBOX=no
4040 DEFAULT_wxUSE_RADIOBTN=no
4041 DEFAULT_wxUSE_SASH=no
4042 DEFAULT_wxUSE_SCROLLBAR=no
4043 DEFAULT_wxUSE_SLIDER=no
4044 DEFAULT_wxUSE_SPINBTN=no
4045 DEFAULT_wxUSE_SPINCTRL=no
4046 DEFAULT_wxUSE_SPLITTER=no
4047 DEFAULT_wxUSE_STATBMP=no
4048 DEFAULT_wxUSE_STATBOX=no
4049 DEFAULT_wxUSE_STATLINE=no
4050 DEFAULT_wxUSE_STATUSBAR=no
4051 DEFAULT_wxUSE_TAB_DIALOG=no
4052 DEFAULT_wxUSE_TOOLBAR=no
4053 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4054 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4055 DEFAULT_wxUSE_TOOLTIPS=no
4056 DEFAULT_wxUSE_TREECTRL=no
4057 fi
4058
4059
4060 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4061 echo "configure:4062: checking "for --enable-accel"" >&5
4062 no_cache=0
4063 # Check whether --enable-accel or --disable-accel was given.
4064 if test "${enable_accel+set}" = set; then
4065 enableval="$enable_accel"
4066
4067 if test "$enableval" = yes; then
4068 ac_cv_use_accel='wxUSE_ACCEL=yes'
4069 else
4070 ac_cv_use_accel='wxUSE_ACCEL=no'
4071 fi
4072
4073 else
4074
4075 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4076 if test "x$LINE" != x ; then
4077 eval "DEFAULT_$LINE"
4078 else
4079 no_cache=1
4080 fi
4081
4082 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4083
4084 fi
4085
4086
4087 eval "$ac_cv_use_accel"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$wxUSE_ACCEL" = yes; then
4093 echo "$ac_t""yes" 1>&6
4094 else
4095 echo "$ac_t""no" 1>&6
4096 fi
4097
4098
4099 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4100 echo "configure:4101: checking "for --enable-caret"" >&5
4101 no_cache=0
4102 # Check whether --enable-caret or --disable-caret was given.
4103 if test "${enable_caret+set}" = set; then
4104 enableval="$enable_caret"
4105
4106 if test "$enableval" = yes; then
4107 ac_cv_use_caret='wxUSE_CARET=yes'
4108 else
4109 ac_cv_use_caret='wxUSE_CARET=no'
4110 fi
4111
4112 else
4113
4114 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4115 if test "x$LINE" != x ; then
4116 eval "DEFAULT_$LINE"
4117 else
4118 no_cache=1
4119 fi
4120
4121 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4122
4123 fi
4124
4125
4126 eval "$ac_cv_use_caret"
4127 if test "$no_cache" != 1; then
4128 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4129 fi
4130
4131 if test "$wxUSE_CARET" = yes; then
4132 echo "$ac_t""yes" 1>&6
4133 else
4134 echo "$ac_t""no" 1>&6
4135 fi
4136
4137
4138 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4139 echo "configure:4140: checking "for --enable-bmpbutton"" >&5
4140 no_cache=0
4141 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4142 if test "${enable_bmpbutton+set}" = set; then
4143 enableval="$enable_bmpbutton"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4147 else
4148 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4149 fi
4150
4151 else
4152
4153 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4161
4162 fi
4163
4164
4165 eval "$ac_cv_use_bmpbutton"
4166 if test "$no_cache" != 1; then
4167 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4168 fi
4169
4170 if test "$wxUSE_BMPBUTTON" = yes; then
4171 echo "$ac_t""yes" 1>&6
4172 else
4173 echo "$ac_t""no" 1>&6
4174 fi
4175
4176
4177 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4178 echo "configure:4179: checking "for --enable-checkbox"" >&5
4179 no_cache=0
4180 # Check whether --enable-checkbox or --disable-checkbox was given.
4181 if test "${enable_checkbox+set}" = set; then
4182 enableval="$enable_checkbox"
4183
4184 if test "$enableval" = yes; then
4185 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4186 else
4187 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4188 fi
4189
4190 else
4191
4192 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4193 if test "x$LINE" != x ; then
4194 eval "DEFAULT_$LINE"
4195 else
4196 no_cache=1
4197 fi
4198
4199 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4200
4201 fi
4202
4203
4204 eval "$ac_cv_use_checkbox"
4205 if test "$no_cache" != 1; then
4206 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4207 fi
4208
4209 if test "$wxUSE_CHECKBOX" = yes; then
4210 echo "$ac_t""yes" 1>&6
4211 else
4212 echo "$ac_t""no" 1>&6
4213 fi
4214
4215
4216 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4217 echo "configure:4218: checking "for --enable-checklst"" >&5
4218 no_cache=0
4219 # Check whether --enable-checklst or --disable-checklst was given.
4220 if test "${enable_checklst+set}" = set; then
4221 enableval="$enable_checklst"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4225 else
4226 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4227 fi
4228
4229 else
4230
4231 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4239
4240 fi
4241
4242
4243 eval "$ac_cv_use_checklst"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_CHECKLST" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4256 echo "configure:4257: checking "for --enable-choice"" >&5
4257 no_cache=0
4258 # Check whether --enable-choice or --disable-choice was given.
4259 if test "${enable_choice+set}" = set; then
4260 enableval="$enable_choice"
4261
4262 if test "$enableval" = yes; then
4263 ac_cv_use_choice='wxUSE_CHOICE=yes'
4264 else
4265 ac_cv_use_choice='wxUSE_CHOICE=no'
4266 fi
4267
4268 else
4269
4270 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4278
4279 fi
4280
4281
4282 eval "$ac_cv_use_choice"
4283 if test "$no_cache" != 1; then
4284 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4285 fi
4286
4287 if test "$wxUSE_CHOICE" = yes; then
4288 echo "$ac_t""yes" 1>&6
4289 else
4290 echo "$ac_t""no" 1>&6
4291 fi
4292
4293
4294 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4295 echo "configure:4296: checking "for --enable-combobox"" >&5
4296 no_cache=0
4297 # Check whether --enable-combobox or --disable-combobox was given.
4298 if test "${enable_combobox+set}" = set; then
4299 enableval="$enable_combobox"
4300
4301 if test "$enableval" = yes; then
4302 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4303 else
4304 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4305 fi
4306
4307 else
4308
4309 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4310 if test "x$LINE" != x ; then
4311 eval "DEFAULT_$LINE"
4312 else
4313 no_cache=1
4314 fi
4315
4316 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4317
4318 fi
4319
4320
4321 eval "$ac_cv_use_combobox"
4322 if test "$no_cache" != 1; then
4323 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4324 fi
4325
4326 if test "$wxUSE_COMBOBOX" = yes; then
4327 echo "$ac_t""yes" 1>&6
4328 else
4329 echo "$ac_t""no" 1>&6
4330 fi
4331
4332
4333 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4334 echo "configure:4335: checking "for --enable-gauge"" >&5
4335 no_cache=0
4336 # Check whether --enable-gauge or --disable-gauge was given.
4337 if test "${enable_gauge+set}" = set; then
4338 enableval="$enable_gauge"
4339
4340 if test "$enableval" = yes; then
4341 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4342 else
4343 ac_cv_use_gauge='wxUSE_GAUGE=no'
4344 fi
4345
4346 else
4347
4348 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4349 if test "x$LINE" != x ; then
4350 eval "DEFAULT_$LINE"
4351 else
4352 no_cache=1
4353 fi
4354
4355 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4356
4357 fi
4358
4359
4360 eval "$ac_cv_use_gauge"
4361 if test "$no_cache" != 1; then
4362 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4363 fi
4364
4365 if test "$wxUSE_GAUGE" = yes; then
4366 echo "$ac_t""yes" 1>&6
4367 else
4368 echo "$ac_t""no" 1>&6
4369 fi
4370
4371
4372 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4373 echo "configure:4374: checking "for --enable-grid"" >&5
4374 no_cache=0
4375 # Check whether --enable-grid or --disable-grid was given.
4376 if test "${enable_grid+set}" = set; then
4377 enableval="$enable_grid"
4378
4379 if test "$enableval" = yes; then
4380 ac_cv_use_grid='wxUSE_GRID=yes'
4381 else
4382 ac_cv_use_grid='wxUSE_GRID=no'
4383 fi
4384
4385 else
4386
4387 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4388 if test "x$LINE" != x ; then
4389 eval "DEFAULT_$LINE"
4390 else
4391 no_cache=1
4392 fi
4393
4394 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4395
4396 fi
4397
4398
4399 eval "$ac_cv_use_grid"
4400 if test "$no_cache" != 1; then
4401 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4402 fi
4403
4404 if test "$wxUSE_GRID" = yes; then
4405 echo "$ac_t""yes" 1>&6
4406 else
4407 echo "$ac_t""no" 1>&6
4408 fi
4409
4410
4411 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4412 echo "configure:4413: checking "for --enable-newgrid"" >&5
4413 no_cache=0
4414 # Check whether --enable-newgrid or --disable-newgrid was given.
4415 if test "${enable_newgrid+set}" = set; then
4416 enableval="$enable_newgrid"
4417
4418 if test "$enableval" = yes; then
4419 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4420 else
4421 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4422 fi
4423
4424 else
4425
4426 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4427 if test "x$LINE" != x ; then
4428 eval "DEFAULT_$LINE"
4429 else
4430 no_cache=1
4431 fi
4432
4433 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4434
4435 fi
4436
4437
4438 eval "$ac_cv_use_newgrid"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_NEW_GRID" = yes; then
4444 echo "$ac_t""yes" 1>&6
4445 else
4446 echo "$ac_t""no" 1>&6
4447 fi
4448
4449
4450 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4451 echo "configure:4452: checking "for --enable-imaglist"" >&5
4452 no_cache=0
4453 # Check whether --enable-imaglist or --disable-imaglist was given.
4454 if test "${enable_imaglist+set}" = set; then
4455 enableval="$enable_imaglist"
4456
4457 if test "$enableval" = yes; then
4458 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4459 else
4460 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4461 fi
4462
4463 else
4464
4465 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4466 if test "x$LINE" != x ; then
4467 eval "DEFAULT_$LINE"
4468 else
4469 no_cache=1
4470 fi
4471
4472 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4473
4474 fi
4475
4476
4477 eval "$ac_cv_use_imaglist"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_IMAGLIST" = yes; then
4483 echo "$ac_t""yes" 1>&6
4484 else
4485 echo "$ac_t""no" 1>&6
4486 fi
4487
4488
4489 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4490 echo "configure:4491: checking "for --enable-listbox"" >&5
4491 no_cache=0
4492 # Check whether --enable-listbox or --disable-listbox was given.
4493 if test "${enable_listbox+set}" = set; then
4494 enableval="$enable_listbox"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4498 else
4499 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4500 fi
4501
4502 else
4503
4504 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4512
4513 fi
4514
4515
4516 eval "$ac_cv_use_listbox"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_LISTBOX" = yes; then
4522 echo "$ac_t""yes" 1>&6
4523 else
4524 echo "$ac_t""no" 1>&6
4525 fi
4526
4527
4528 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4529 echo "configure:4530: checking "for --enable-listctrl"" >&5
4530 no_cache=0
4531 # Check whether --enable-listctrl or --disable-listctrl was given.
4532 if test "${enable_listctrl+set}" = set; then
4533 enableval="$enable_listctrl"
4534
4535 if test "$enableval" = yes; then
4536 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4537 else
4538 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4539 fi
4540
4541 else
4542
4543 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4551
4552 fi
4553
4554
4555 eval "$ac_cv_use_listctrl"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_LISTCTRL" = yes; then
4561 echo "$ac_t""yes" 1>&6
4562 else
4563 echo "$ac_t""no" 1>&6
4564 fi
4565
4566
4567 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4568 echo "configure:4569: checking "for --enable-notebook"" >&5
4569 no_cache=0
4570 # Check whether --enable-notebook or --disable-notebook was given.
4571 if test "${enable_notebook+set}" = set; then
4572 enableval="$enable_notebook"
4573
4574 if test "$enableval" = yes; then
4575 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4576 else
4577 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4578 fi
4579
4580 else
4581
4582 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4583 if test "x$LINE" != x ; then
4584 eval "DEFAULT_$LINE"
4585 else
4586 no_cache=1
4587 fi
4588
4589 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4590
4591 fi
4592
4593
4594 eval "$ac_cv_use_notebook"
4595 if test "$no_cache" != 1; then
4596 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4597 fi
4598
4599 if test "$wxUSE_NOTEBOOK" = yes; then
4600 echo "$ac_t""yes" 1>&6
4601 else
4602 echo "$ac_t""no" 1>&6
4603 fi
4604
4605
4606 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4607 echo "configure:4608: checking "for --enable-radiobox"" >&5
4608 no_cache=0
4609 # Check whether --enable-radiobox or --disable-radiobox was given.
4610 if test "${enable_radiobox+set}" = set; then
4611 enableval="$enable_radiobox"
4612
4613 if test "$enableval" = yes; then
4614 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4615 else
4616 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4617 fi
4618
4619 else
4620
4621 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4622 if test "x$LINE" != x ; then
4623 eval "DEFAULT_$LINE"
4624 else
4625 no_cache=1
4626 fi
4627
4628 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4629
4630 fi
4631
4632
4633 eval "$ac_cv_use_radiobox"
4634 if test "$no_cache" != 1; then
4635 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4636 fi
4637
4638 if test "$wxUSE_RADIOBOX" = yes; then
4639 echo "$ac_t""yes" 1>&6
4640 else
4641 echo "$ac_t""no" 1>&6
4642 fi
4643
4644
4645 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4646 echo "configure:4647: checking "for --enable-radiobtn"" >&5
4647 no_cache=0
4648 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4649 if test "${enable_radiobtn+set}" = set; then
4650 enableval="$enable_radiobtn"
4651
4652 if test "$enableval" = yes; then
4653 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4654 else
4655 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4656 fi
4657
4658 else
4659
4660 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4661 if test "x$LINE" != x ; then
4662 eval "DEFAULT_$LINE"
4663 else
4664 no_cache=1
4665 fi
4666
4667 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4668
4669 fi
4670
4671
4672 eval "$ac_cv_use_radiobtn"
4673 if test "$no_cache" != 1; then
4674 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4675 fi
4676
4677 if test "$wxUSE_RADIOBTN" = yes; then
4678 echo "$ac_t""yes" 1>&6
4679 else
4680 echo "$ac_t""no" 1>&6
4681 fi
4682
4683
4684 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4685 echo "configure:4686: checking "for --enable-sash"" >&5
4686 no_cache=0
4687 # Check whether --enable-sash or --disable-sash was given.
4688 if test "${enable_sash+set}" = set; then
4689 enableval="$enable_sash"
4690
4691 if test "$enableval" = yes; then
4692 ac_cv_use_sash='wxUSE_SASH=yes'
4693 else
4694 ac_cv_use_sash='wxUSE_SASH=no'
4695 fi
4696
4697 else
4698
4699 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4707
4708 fi
4709
4710
4711 eval "$ac_cv_use_sash"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_SASH" = yes; then
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "$ac_t""no" 1>&6
4720 fi
4721
4722
4723 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4724 echo "configure:4725: checking "for --enable-scrollbar"" >&5
4725 no_cache=0
4726 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4727 if test "${enable_scrollbar+set}" = set; then
4728 enableval="$enable_scrollbar"
4729
4730 if test "$enableval" = yes; then
4731 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4732 else
4733 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4734 fi
4735
4736 else
4737
4738 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4746
4747 fi
4748
4749
4750 eval "$ac_cv_use_scrollbar"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_SCROLLBAR" = yes; then
4756 echo "$ac_t""yes" 1>&6
4757 else
4758 echo "$ac_t""no" 1>&6
4759 fi
4760
4761
4762 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4763 echo "configure:4764: checking "for --enable-slider"" >&5
4764 no_cache=0
4765 # Check whether --enable-slider or --disable-slider was given.
4766 if test "${enable_slider+set}" = set; then
4767 enableval="$enable_slider"
4768
4769 if test "$enableval" = yes; then
4770 ac_cv_use_slider='wxUSE_SLIDER=yes'
4771 else
4772 ac_cv_use_slider='wxUSE_SLIDER=no'
4773 fi
4774
4775 else
4776
4777 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4778 if test "x$LINE" != x ; then
4779 eval "DEFAULT_$LINE"
4780 else
4781 no_cache=1
4782 fi
4783
4784 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4785
4786 fi
4787
4788
4789 eval "$ac_cv_use_slider"
4790 if test "$no_cache" != 1; then
4791 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4792 fi
4793
4794 if test "$wxUSE_SLIDER" = yes; then
4795 echo "$ac_t""yes" 1>&6
4796 else
4797 echo "$ac_t""no" 1>&6
4798 fi
4799
4800
4801 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4802 echo "configure:4803: checking "for --enable-spinbtn"" >&5
4803 no_cache=0
4804 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4805 if test "${enable_spinbtn+set}" = set; then
4806 enableval="$enable_spinbtn"
4807
4808 if test "$enableval" = yes; then
4809 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4810 else
4811 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4812 fi
4813
4814 else
4815
4816 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4824
4825 fi
4826
4827
4828 eval "$ac_cv_use_spinbtn"
4829 if test "$no_cache" != 1; then
4830 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4831 fi
4832
4833 if test "$wxUSE_SPINBTN" = yes; then
4834 echo "$ac_t""yes" 1>&6
4835 else
4836 echo "$ac_t""no" 1>&6
4837 fi
4838
4839
4840 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
4841 echo "configure:4842: checking "for --enable-spinctrl"" >&5
4842 no_cache=0
4843 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4844 if test "${enable_spinctrl+set}" = set; then
4845 enableval="$enable_spinctrl"
4846
4847 if test "$enableval" = yes; then
4848 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4849 else
4850 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4851 fi
4852
4853 else
4854
4855 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4856 if test "x$LINE" != x ; then
4857 eval "DEFAULT_$LINE"
4858 else
4859 no_cache=1
4860 fi
4861
4862 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4863
4864 fi
4865
4866
4867 eval "$ac_cv_use_spinctrl"
4868 if test "$no_cache" != 1; then
4869 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4870 fi
4871
4872 if test "$wxUSE_SPINCTRL" = yes; then
4873 echo "$ac_t""yes" 1>&6
4874 else
4875 echo "$ac_t""no" 1>&6
4876 fi
4877
4878
4879 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4880 echo "configure:4881: checking "for --enable-splitter"" >&5
4881 no_cache=0
4882 # Check whether --enable-splitter or --disable-splitter was given.
4883 if test "${enable_splitter+set}" = set; then
4884 enableval="$enable_splitter"
4885
4886 if test "$enableval" = yes; then
4887 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4888 else
4889 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4890 fi
4891
4892 else
4893
4894 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4895 if test "x$LINE" != x ; then
4896 eval "DEFAULT_$LINE"
4897 else
4898 no_cache=1
4899 fi
4900
4901 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4902
4903 fi
4904
4905
4906 eval "$ac_cv_use_splitter"
4907 if test "$no_cache" != 1; then
4908 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4909 fi
4910
4911 if test "$wxUSE_SPLITTER" = yes; then
4912 echo "$ac_t""yes" 1>&6
4913 else
4914 echo "$ac_t""no" 1>&6
4915 fi
4916
4917
4918 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4919 echo "configure:4920: checking "for --enable-statbmp"" >&5
4920 no_cache=0
4921 # Check whether --enable-statbmp or --disable-statbmp was given.
4922 if test "${enable_statbmp+set}" = set; then
4923 enableval="$enable_statbmp"
4924
4925 if test "$enableval" = yes; then
4926 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4927 else
4928 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4929 fi
4930
4931 else
4932
4933 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4934 if test "x$LINE" != x ; then
4935 eval "DEFAULT_$LINE"
4936 else
4937 no_cache=1
4938 fi
4939
4940 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4941
4942 fi
4943
4944
4945 eval "$ac_cv_use_statbmp"
4946 if test "$no_cache" != 1; then
4947 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4948 fi
4949
4950 if test "$wxUSE_STATBMP" = yes; then
4951 echo "$ac_t""yes" 1>&6
4952 else
4953 echo "$ac_t""no" 1>&6
4954 fi
4955
4956
4957 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4958 echo "configure:4959: checking "for --enable-statbox"" >&5
4959 no_cache=0
4960 # Check whether --enable-statbox or --disable-statbox was given.
4961 if test "${enable_statbox+set}" = set; then
4962 enableval="$enable_statbox"
4963
4964 if test "$enableval" = yes; then
4965 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4966 else
4967 ac_cv_use_statbox='wxUSE_STATBOX=no'
4968 fi
4969
4970 else
4971
4972 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4980
4981 fi
4982
4983
4984 eval "$ac_cv_use_statbox"
4985 if test "$no_cache" != 1; then
4986 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4987 fi
4988
4989 if test "$wxUSE_STATBOX" = yes; then
4990 echo "$ac_t""yes" 1>&6
4991 else
4992 echo "$ac_t""no" 1>&6
4993 fi
4994
4995
4996 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4997 echo "configure:4998: checking "for --enable-statline"" >&5
4998 no_cache=0
4999 # Check whether --enable-statline or --disable-statline was given.
5000 if test "${enable_statline+set}" = set; then
5001 enableval="$enable_statline"
5002
5003 if test "$enableval" = yes; then
5004 ac_cv_use_statline='wxUSE_STATLINE=yes'
5005 else
5006 ac_cv_use_statline='wxUSE_STATLINE=no'
5007 fi
5008
5009 else
5010
5011 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5012 if test "x$LINE" != x ; then
5013 eval "DEFAULT_$LINE"
5014 else
5015 no_cache=1
5016 fi
5017
5018 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5019
5020 fi
5021
5022
5023 eval "$ac_cv_use_statline"
5024 if test "$no_cache" != 1; then
5025 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5026 fi
5027
5028 if test "$wxUSE_STATLINE" = yes; then
5029 echo "$ac_t""yes" 1>&6
5030 else
5031 echo "$ac_t""no" 1>&6
5032 fi
5033
5034
5035 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
5036 echo "configure:5037: checking "for --enable-statusbar"" >&5
5037 no_cache=0
5038 # Check whether --enable-statusbar or --disable-statusbar was given.
5039 if test "${enable_statusbar+set}" = set; then
5040 enableval="$enable_statusbar"
5041
5042 if test "$enableval" = yes; then
5043 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5044 else
5045 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5046 fi
5047
5048 else
5049
5050 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5051 if test "x$LINE" != x ; then
5052 eval "DEFAULT_$LINE"
5053 else
5054 no_cache=1
5055 fi
5056
5057 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5058
5059 fi
5060
5061
5062 eval "$ac_cv_use_statusbar"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_STATUSBAR" = yes; then
5068 echo "$ac_t""yes" 1>&6
5069 else
5070 echo "$ac_t""no" 1>&6
5071 fi
5072
5073
5074 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
5075 echo "configure:5076: checking "for --enable-tabdialog"" >&5
5076 no_cache=0
5077 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5078 if test "${enable_tabdialog+set}" = set; then
5079 enableval="$enable_tabdialog"
5080
5081 if test "$enableval" = yes; then
5082 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5083 else
5084 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5085 fi
5086
5087 else
5088
5089 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
5096 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5097
5098 fi
5099
5100
5101 eval "$ac_cv_use_tabdialog"
5102 if test "$no_cache" != 1; then
5103 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5104 fi
5105
5106 if test "$wxUSE_TABDIALOG" = yes; then
5107 echo "$ac_t""yes" 1>&6
5108 else
5109 echo "$ac_t""no" 1>&6
5110 fi
5111
5112
5113 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5114 echo "configure:5115: checking "for --enable-toolbar"" >&5
5115 no_cache=0
5116 # Check whether --enable-toolbar or --disable-toolbar was given.
5117 if test "${enable_toolbar+set}" = set; then
5118 enableval="$enable_toolbar"
5119
5120 if test "$enableval" = yes; then
5121 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5122 else
5123 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5124 fi
5125
5126 else
5127
5128 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5129 if test "x$LINE" != x ; then
5130 eval "DEFAULT_$LINE"
5131 else
5132 no_cache=1
5133 fi
5134
5135 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5136
5137 fi
5138
5139
5140 eval "$ac_cv_use_toolbar"
5141 if test "$no_cache" != 1; then
5142 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5143 fi
5144
5145 if test "$wxUSE_TOOLBAR" = yes; then
5146 echo "$ac_t""yes" 1>&6
5147 else
5148 echo "$ac_t""no" 1>&6
5149 fi
5150
5151
5152 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5153 echo "configure:5154: checking "for --enable-tbarnative"" >&5
5154 no_cache=0
5155 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5156 if test "${enable_tbarnative+set}" = set; then
5157 enableval="$enable_tbarnative"
5158
5159 if test "$enableval" = yes; then
5160 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5161 else
5162 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5163 fi
5164
5165 else
5166
5167 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
5174 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5175
5176 fi
5177
5178
5179 eval "$ac_cv_use_tbarnative"
5180 if test "$no_cache" != 1; then
5181 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5182 fi
5183
5184 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5185 echo "$ac_t""yes" 1>&6
5186 else
5187 echo "$ac_t""no" 1>&6
5188 fi
5189
5190
5191 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5192 echo "configure:5193: checking "for --enable-tbarsmpl"" >&5
5193 no_cache=0
5194 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5195 if test "${enable_tbarsmpl+set}" = set; then
5196 enableval="$enable_tbarsmpl"
5197
5198 if test "$enableval" = yes; then
5199 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5200 else
5201 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5202 fi
5203
5204 else
5205
5206 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5207 if test "x$LINE" != x ; then
5208 eval "DEFAULT_$LINE"
5209 else
5210 no_cache=1
5211 fi
5212
5213 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5214
5215 fi
5216
5217
5218 eval "$ac_cv_use_tbarsmpl"
5219 if test "$no_cache" != 1; then
5220 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5221 fi
5222
5223 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5224 echo "$ac_t""yes" 1>&6
5225 else
5226 echo "$ac_t""no" 1>&6
5227 fi
5228
5229
5230 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5231 echo "configure:5232: checking "for --enable-treectrl"" >&5
5232 no_cache=0
5233 # Check whether --enable-treectrl or --disable-treectrl was given.
5234 if test "${enable_treectrl+set}" = set; then
5235 enableval="$enable_treectrl"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5239 else
5240 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5241 fi
5242
5243 else
5244
5245 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5253
5254 fi
5255
5256
5257 eval "$ac_cv_use_treectrl"
5258 if test "$no_cache" != 1; then
5259 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5260 fi
5261
5262 if test "$wxUSE_TREECTRL" = yes; then
5263 echo "$ac_t""yes" 1>&6
5264 else
5265 echo "$ac_t""no" 1>&6
5266 fi
5267
5268
5269
5270
5271 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5272 echo "configure:5273: checking "for --enable-commondlg"" >&5
5273 no_cache=0
5274 # Check whether --enable-commondlg or --disable-commondlg was given.
5275 if test "${enable_commondlg+set}" = set; then
5276 enableval="$enable_commondlg"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5280 else
5281 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5282 fi
5283
5284 else
5285
5286 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5294
5295 fi
5296
5297
5298 eval "$ac_cv_use_commondlg"
5299 if test "$no_cache" != 1; then
5300 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5301 fi
5302
5303 if test "$wxUSE_COMMONDLGS" = yes; then
5304 echo "$ac_t""yes" 1>&6
5305 else
5306 echo "$ac_t""no" 1>&6
5307 fi
5308
5309
5310 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5311 echo "configure:5312: checking "for --enable-dirdlg"" >&5
5312 no_cache=0
5313 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5314 if test "${enable_dirdlg+set}" = set; then
5315 enableval="$enable_dirdlg"
5316
5317 if test "$enableval" = yes; then
5318 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5319 else
5320 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5321 fi
5322
5323 else
5324
5325 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5326 if test "x$LINE" != x ; then
5327 eval "DEFAULT_$LINE"
5328 else
5329 no_cache=1
5330 fi
5331
5332 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5333
5334 fi
5335
5336
5337 eval "$ac_cv_use_dirdlg"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_DIRDLG" = yes; then
5343 echo "$ac_t""yes" 1>&6
5344 else
5345 echo "$ac_t""no" 1>&6
5346 fi
5347
5348
5349 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5350 echo "configure:5351: checking "for --enable-textdlg"" >&5
5351 no_cache=0
5352 # Check whether --enable-textdlg or --disable-textdlg was given.
5353 if test "${enable_textdlg+set}" = set; then
5354 enableval="$enable_textdlg"
5355
5356 if test "$enableval" = yes; then
5357 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5358 else
5359 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5360 fi
5361
5362 else
5363
5364 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5365 if test "x$LINE" != x ; then
5366 eval "DEFAULT_$LINE"
5367 else
5368 no_cache=1
5369 fi
5370
5371 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5372
5373 fi
5374
5375
5376 eval "$ac_cv_use_textdlg"
5377 if test "$no_cache" != 1; then
5378 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5379 fi
5380
5381 if test "$wxUSE_TEXTDLG" = yes; then
5382 echo "$ac_t""yes" 1>&6
5383 else
5384 echo "$ac_t""no" 1>&6
5385 fi
5386
5387
5388 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5389 echo "configure:5390: checking "for --enable-tipdlg"" >&5
5390 no_cache=0
5391 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5392 if test "${enable_tipdlg+set}" = set; then
5393 enableval="$enable_tipdlg"
5394
5395 if test "$enableval" = yes; then
5396 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5397 else
5398 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5399 fi
5400
5401 else
5402
5403 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5404 if test "x$LINE" != x ; then
5405 eval "DEFAULT_$LINE"
5406 else
5407 no_cache=1
5408 fi
5409
5410 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5411
5412 fi
5413
5414
5415 eval "$ac_cv_use_tipdlg"
5416 if test "$no_cache" != 1; then
5417 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5418 fi
5419
5420 if test "$wxUSE_STARTUP_TIPS" = yes; then
5421 echo "$ac_t""yes" 1>&6
5422 else
5423 echo "$ac_t""no" 1>&6
5424 fi
5425
5426
5427 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5428 echo "configure:5429: checking "for --enable-progressdlg"" >&5
5429 no_cache=0
5430 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5431 if test "${enable_progressdlg+set}" = set; then
5432 enableval="$enable_progressdlg"
5433
5434 if test "$enableval" = yes; then
5435 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5436 else
5437 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5438 fi
5439
5440 else
5441
5442 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5443 if test "x$LINE" != x ; then
5444 eval "DEFAULT_$LINE"
5445 else
5446 no_cache=1
5447 fi
5448
5449 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5450
5451 fi
5452
5453
5454 eval "$ac_cv_use_progressdlg"
5455 if test "$no_cache" != 1; then
5456 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5457 fi
5458
5459 if test "$wxUSE_PROGRESSDLG" = yes; then
5460 echo "$ac_t""yes" 1>&6
5461 else
5462 echo "$ac_t""no" 1>&6
5463 fi
5464
5465
5466 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5467 echo "configure:5468: checking "for --enable-miniframe"" >&5
5468 no_cache=0
5469 # Check whether --enable-miniframe or --disable-miniframe was given.
5470 if test "${enable_miniframe+set}" = set; then
5471 enableval="$enable_miniframe"
5472
5473 if test "$enableval" = yes; then
5474 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5475 else
5476 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5477 fi
5478
5479 else
5480
5481 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5482 if test "x$LINE" != x ; then
5483 eval "DEFAULT_$LINE"
5484 else
5485 no_cache=1
5486 fi
5487
5488 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5489
5490 fi
5491
5492
5493 eval "$ac_cv_use_miniframe"
5494 if test "$no_cache" != 1; then
5495 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5496 fi
5497
5498 if test "$wxUSE_MINIFRAME" = yes; then
5499 echo "$ac_t""yes" 1>&6
5500 else
5501 echo "$ac_t""no" 1>&6
5502 fi
5503
5504
5505 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5506 echo "configure:5507: checking "for --enable-html"" >&5
5507 no_cache=0
5508 # Check whether --enable-html or --disable-html was given.
5509 if test "${enable_html+set}" = set; then
5510 enableval="$enable_html"
5511
5512 if test "$enableval" = yes; then
5513 ac_cv_use_html='wxUSE_HTML=yes'
5514 else
5515 ac_cv_use_html='wxUSE_HTML=no'
5516 fi
5517
5518 else
5519
5520 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5521 if test "x$LINE" != x ; then
5522 eval "DEFAULT_$LINE"
5523 else
5524 no_cache=1
5525 fi
5526
5527 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5528
5529 fi
5530
5531
5532 eval "$ac_cv_use_html"
5533 if test "$no_cache" != 1; then
5534 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5535 fi
5536
5537 if test "$wxUSE_HTML" = yes; then
5538 echo "$ac_t""yes" 1>&6
5539 else
5540 echo "$ac_t""no" 1>&6
5541 fi
5542
5543
5544 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5545 echo "configure:5546: checking "for --enable-tooltips"" >&5
5546 no_cache=0
5547 # Check whether --enable-tooltips or --disable-tooltips was given.
5548 if test "${enable_tooltips+set}" = set; then
5549 enableval="$enable_tooltips"
5550
5551 if test "$enableval" = yes; then
5552 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5553 else
5554 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5555 fi
5556
5557 else
5558
5559 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5560 if test "x$LINE" != x ; then
5561 eval "DEFAULT_$LINE"
5562 else
5563 no_cache=1
5564 fi
5565
5566 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5567
5568 fi
5569
5570
5571 eval "$ac_cv_use_tooltips"
5572 if test "$no_cache" != 1; then
5573 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5574 fi
5575
5576 if test "$wxUSE_TOOLTIPS" = yes; then
5577 echo "$ac_t""yes" 1>&6
5578 else
5579 echo "$ac_t""no" 1>&6
5580 fi
5581
5582
5583 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5584 echo "configure:5585: checking "for --enable-splines"" >&5
5585 no_cache=0
5586 # Check whether --enable-splines or --disable-splines was given.
5587 if test "${enable_splines+set}" = set; then
5588 enableval="$enable_splines"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_splines='wxUSE_SPLINES=yes'
5592 else
5593 ac_cv_use_splines='wxUSE_SPLINES=no'
5594 fi
5595
5596 else
5597
5598 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5606
5607 fi
5608
5609
5610 eval "$ac_cv_use_splines"
5611 if test "$no_cache" != 1; then
5612 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5613 fi
5614
5615 if test "$wxUSE_SPLINES" = yes; then
5616 echo "$ac_t""yes" 1>&6
5617 else
5618 echo "$ac_t""no" 1>&6
5619 fi
5620
5621
5622 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5623 echo "configure:5624: checking "for --enable-validators"" >&5
5624 no_cache=0
5625 # Check whether --enable-validators or --disable-validators was given.
5626 if test "${enable_validators+set}" = set; then
5627 enableval="$enable_validators"
5628
5629 if test "$enableval" = yes; then
5630 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5631 else
5632 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5633 fi
5634
5635 else
5636
5637 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5638 if test "x$LINE" != x ; then
5639 eval "DEFAULT_$LINE"
5640 else
5641 no_cache=1
5642 fi
5643
5644 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5645
5646 fi
5647
5648
5649 eval "$ac_cv_use_validators"
5650 if test "$no_cache" != 1; then
5651 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5652 fi
5653
5654 if test "$wxUSE_VALIDATORS" = yes; then
5655 echo "$ac_t""yes" 1>&6
5656 else
5657 echo "$ac_t""no" 1>&6
5658 fi
5659
5660
5661 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5662 echo "configure:5663: checking "for --enable-busyinfo"" >&5
5663 no_cache=0
5664 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5665 if test "${enable_busyinfo+set}" = set; then
5666 enableval="$enable_busyinfo"
5667
5668 if test "$enableval" = yes; then
5669 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5670 else
5671 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5672 fi
5673
5674 else
5675
5676 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5677 if test "x$LINE" != x ; then
5678 eval "DEFAULT_$LINE"
5679 else
5680 no_cache=1
5681 fi
5682
5683 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5684
5685 fi
5686
5687
5688 eval "$ac_cv_use_busyinfo"
5689 if test "$no_cache" != 1; then
5690 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5691 fi
5692
5693 if test "$wxUSE_BUSYINFO" = yes; then
5694 echo "$ac_t""yes" 1>&6
5695 else
5696 echo "$ac_t""no" 1>&6
5697 fi
5698
5699
5700 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
5701 echo "configure:5702: checking "for --enable-plot"" >&5
5702 no_cache=0
5703 # Check whether --enable-plot or --disable-plot was given.
5704 if test "${enable_plot+set}" = set; then
5705 enableval="$enable_plot"
5706
5707 if test "$enableval" = yes; then
5708 ac_cv_use_plot='wxUSE_PLOT=yes'
5709 else
5710 ac_cv_use_plot='wxUSE_PLOT=no'
5711 fi
5712
5713 else
5714
5715 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5716 if test "x$LINE" != x ; then
5717 eval "DEFAULT_$LINE"
5718 else
5719 no_cache=1
5720 fi
5721
5722 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5723
5724 fi
5725
5726
5727 eval "$ac_cv_use_plot"
5728 if test "$no_cache" != 1; then
5729 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5730 fi
5731
5732 if test "$wxUSE_PLOT" = yes; then
5733 echo "$ac_t""yes" 1>&6
5734 else
5735 echo "$ac_t""no" 1>&6
5736 fi
5737
5738
5739
5740
5741 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5742 echo "configure:5743: checking "for --enable-gif"" >&5
5743 no_cache=0
5744 # Check whether --enable-gif or --disable-gif was given.
5745 if test "${enable_gif+set}" = set; then
5746 enableval="$enable_gif"
5747
5748 if test "$enableval" = yes; then
5749 ac_cv_use_gif='wxUSE_GIF=yes'
5750 else
5751 ac_cv_use_gif='wxUSE_GIF=no'
5752 fi
5753
5754 else
5755
5756 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5757 if test "x$LINE" != x ; then
5758 eval "DEFAULT_$LINE"
5759 else
5760 no_cache=1
5761 fi
5762
5763 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5764
5765 fi
5766
5767
5768 eval "$ac_cv_use_gif"
5769 if test "$no_cache" != 1; then
5770 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5771 fi
5772
5773 if test "$wxUSE_GIF" = yes; then
5774 echo "$ac_t""yes" 1>&6
5775 else
5776 echo "$ac_t""no" 1>&6
5777 fi
5778
5779
5780 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5781 echo "configure:5782: checking "for --enable-pcx"" >&5
5782 no_cache=0
5783 # Check whether --enable-pcx or --disable-pcx was given.
5784 if test "${enable_pcx+set}" = set; then
5785 enableval="$enable_pcx"
5786
5787 if test "$enableval" = yes; then
5788 ac_cv_use_pcx='wxUSE_PCX=yes'
5789 else
5790 ac_cv_use_pcx='wxUSE_PCX=no'
5791 fi
5792
5793 else
5794
5795 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5796 if test "x$LINE" != x ; then
5797 eval "DEFAULT_$LINE"
5798 else
5799 no_cache=1
5800 fi
5801
5802 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5803
5804 fi
5805
5806
5807 eval "$ac_cv_use_pcx"
5808 if test "$no_cache" != 1; then
5809 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5810 fi
5811
5812 if test "$wxUSE_PCX" = yes; then
5813 echo "$ac_t""yes" 1>&6
5814 else
5815 echo "$ac_t""no" 1>&6
5816 fi
5817
5818
5819 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5820 echo "configure:5821: checking "for --enable-pnm"" >&5
5821 no_cache=0
5822 # Check whether --enable-pnm or --disable-pnm was given.
5823 if test "${enable_pnm+set}" = set; then
5824 enableval="$enable_pnm"
5825
5826 if test "$enableval" = yes; then
5827 ac_cv_use_pnm='wxUSE_PNM=yes'
5828 else
5829 ac_cv_use_pnm='wxUSE_PNM=no'
5830 fi
5831
5832 else
5833
5834 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5835 if test "x$LINE" != x ; then
5836 eval "DEFAULT_$LINE"
5837 else
5838 no_cache=1
5839 fi
5840
5841 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5842
5843 fi
5844
5845
5846 eval "$ac_cv_use_pnm"
5847 if test "$no_cache" != 1; then
5848 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5849 fi
5850
5851 if test "$wxUSE_PNM" = yes; then
5852 echo "$ac_t""yes" 1>&6
5853 else
5854 echo "$ac_t""no" 1>&6
5855 fi
5856
5857
5858 fi
5859
5860
5861 echo "saving argument cache $wx_arg_cache_file"
5862 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5863
5864
5865
5866 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5867 echo "configure:5868: checking for toolkit" >&5
5868
5869 if test "$wxUSE_GUI" = "yes"; then
5870
5871 if test "$USE_BEOS" = 1; then
5872 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5873 fi
5874
5875 if test "$TOOLKIT_GIVEN" = 1; then
5876 for toolkit in `echo $ALL_TOOLKITS`; do
5877 var=wxUSE_$toolkit
5878 eval "value=\$${var}"
5879 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5880 done
5881 else
5882 for toolkit in `echo $ALL_TOOLKITS`; do
5883 if test "$has_toolkit_in_cache" != 1; then
5884 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5885 else
5886 var=DEFAULT_wxUSE_$toolkit
5887 fi
5888 eval "wxUSE_$toolkit=\$${var}"
5889 done
5890 fi
5891
5892 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5893
5894 case "${host}" in
5895 *-pc-os2_emx )
5896 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5897 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5898 LEX_STEM="lexyy"
5899 ;;
5900 *)
5901 PATH_IFS=':'
5902 LEX_STEM="lex.yy"
5903 ;;
5904 esac
5905
5906 case "$NUM_TOOLKITS" in
5907 1)
5908 ;;
5909 0)
5910 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5911 ;;
5912 *)
5913 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5914 esac
5915
5916 for toolkit in `echo $ALL_TOOLKITS`; do
5917 var=wxUSE_$toolkit
5918 eval "value=\$${var}"
5919 if test "x$value" != x; then
5920 cache_var=CACHE_$toolkit
5921 eval "cache=\$${cache_var}"
5922 if test "$cache" = 1; then
5923 echo "$var=$value" >> ${wx_arg_cache_file}
5924 fi
5925 if test "$value" = 1; then
5926 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5927 fi
5928 fi
5929 done
5930
5931 else
5932 PATH_IFS=':'
5933 echo "$ac_t""base only" 1>&6
5934 fi
5935
5936
5937 cat > confcache <<\EOF
5938 # This file is a shell script that caches the results of configure
5939 # tests run on this system so they can be shared between configure
5940 # scripts and configure runs. It is not useful on other systems.
5941 # If it contains results you don't want to keep, you may remove or edit it.
5942 #
5943 # By default, configure uses ./config.cache as the cache file,
5944 # creating it if it does not exist already. You can give configure
5945 # the --cache-file=FILE option to use a different cache file; that is
5946 # what configure does when it calls configure scripts in
5947 # subdirectories, so they share the cache.
5948 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5949 # config.status only pays attention to the cache file if you give it the
5950 # --recheck option to rerun configure.
5951 #
5952 EOF
5953 # The following way of writing the cache mishandles newlines in values,
5954 # but we know of no workaround that is simple, portable, and efficient.
5955 # So, don't put newlines in cache variables' values.
5956 # Ultrix sh set writes to stderr and can't be redirected directly,
5957 # and sets the high bit in the cache file unless we assign to the vars.
5958 (set) 2>&1 |
5959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5960 *ac_space=\ *)
5961 # `set' does not quote correctly, so add quotes (double-quote substitution
5962 # turns \\\\ into \\, and sed turns \\ into \).
5963 sed -n \
5964 -e "s/'/'\\\\''/g" \
5965 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5966 ;;
5967 *)
5968 # `set' quotes correctly as required by POSIX, so do not add quotes.
5969 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5970 ;;
5971 esac >> confcache
5972 if cmp -s $cache_file confcache; then
5973 :
5974 else
5975 if test -w $cache_file; then
5976 echo "updating cache $cache_file"
5977 cat confcache > $cache_file
5978 else
5979 echo "not updating unwritable cache $cache_file"
5980 fi
5981 fi
5982 rm -f confcache
5983
5984
5985 if test "$build" != "$host" ; then
5986 CC=$host_alias-gcc
5987 CXX=$host_alias-c++
5988 AR=$host_alias-ar
5989 RANLIB=$host_alias-ranlib
5990 DLLTOOL=$host_alias-dlltool
5991 RESCOMP=$host_alias-windres
5992 LD=$host_alias-ld
5993 NM=$host_alias-nm
5994 STRIP=$host_alias-strip
5995 fi
5996
5997 # Extract the first word of "gcc", so it can be a program name with args.
5998 set dummy gcc; ac_word=$2
5999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_word" >&5
6001 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6003 else
6004 if test -n "$CC"; then
6005 ac_cv_prog_CC="$CC" # Let the user override the test.
6006 else
6007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6008 ac_dummy="$PATH"
6009 for ac_dir in $ac_dummy; do
6010 test -z "$ac_dir" && ac_dir=.
6011 if test -f $ac_dir/$ac_word; then
6012 ac_cv_prog_CC="gcc"
6013 break
6014 fi
6015 done
6016 IFS="$ac_save_ifs"
6017 fi
6018 fi
6019 CC="$ac_cv_prog_CC"
6020 if test -n "$CC"; then
6021 echo "$ac_t""$CC" 1>&6
6022 else
6023 echo "$ac_t""no" 1>&6
6024 fi
6025
6026 if test -z "$CC"; then
6027 # Extract the first word of "cc", so it can be a program name with args.
6028 set dummy cc; ac_word=$2
6029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6030 echo "configure:6031: checking for $ac_word" >&5
6031 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6033 else
6034 if test -n "$CC"; then
6035 ac_cv_prog_CC="$CC" # Let the user override the test.
6036 else
6037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6038 ac_prog_rejected=no
6039 ac_dummy="$PATH"
6040 for ac_dir in $ac_dummy; do
6041 test -z "$ac_dir" && ac_dir=.
6042 if test -f $ac_dir/$ac_word; then
6043 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6044 ac_prog_rejected=yes
6045 continue
6046 fi
6047 ac_cv_prog_CC="cc"
6048 break
6049 fi
6050 done
6051 IFS="$ac_save_ifs"
6052 if test $ac_prog_rejected = yes; then
6053 # We found a bogon in the path, so make sure we never use it.
6054 set dummy $ac_cv_prog_CC
6055 shift
6056 if test $# -gt 0; then
6057 # We chose a different compiler from the bogus one.
6058 # However, it has the same basename, so the bogon will be chosen
6059 # first if we set CC to just the basename; use the full file name.
6060 shift
6061 set dummy "$ac_dir/$ac_word" "$@"
6062 shift
6063 ac_cv_prog_CC="$@"
6064 fi
6065 fi
6066 fi
6067 fi
6068 CC="$ac_cv_prog_CC"
6069 if test -n "$CC"; then
6070 echo "$ac_t""$CC" 1>&6
6071 else
6072 echo "$ac_t""no" 1>&6
6073 fi
6074
6075 if test -z "$CC"; then
6076 case "`uname -s`" in
6077 *win32* | *WIN32*)
6078 # Extract the first word of "cl", so it can be a program name with args.
6079 set dummy cl; ac_word=$2
6080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6081 echo "configure:6082: checking for $ac_word" >&5
6082 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6084 else
6085 if test -n "$CC"; then
6086 ac_cv_prog_CC="$CC" # Let the user override the test.
6087 else
6088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6089 ac_dummy="$PATH"
6090 for ac_dir in $ac_dummy; do
6091 test -z "$ac_dir" && ac_dir=.
6092 if test -f $ac_dir/$ac_word; then
6093 ac_cv_prog_CC="cl"
6094 break
6095 fi
6096 done
6097 IFS="$ac_save_ifs"
6098 fi
6099 fi
6100 CC="$ac_cv_prog_CC"
6101 if test -n "$CC"; then
6102 echo "$ac_t""$CC" 1>&6
6103 else
6104 echo "$ac_t""no" 1>&6
6105 fi
6106 ;;
6107 esac
6108 fi
6109 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6110 fi
6111
6112 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6113 echo "configure:6114: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6114
6115 ac_ext=c
6116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6117 ac_cpp='$CPP $CPPFLAGS'
6118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6120 cross_compiling=$ac_cv_prog_cc_cross
6121
6122 cat > conftest.$ac_ext << EOF
6123
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126
6127 main(){return(0);}
6128 EOF
6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6130 ac_cv_prog_cc_works=yes
6131 # If we can't run a trivial program, we are probably using a cross compiler.
6132 if (./conftest; exit) 2>/dev/null; then
6133 ac_cv_prog_cc_cross=no
6134 else
6135 ac_cv_prog_cc_cross=yes
6136 fi
6137 else
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6140 ac_cv_prog_cc_works=no
6141 fi
6142 rm -fr conftest*
6143 ac_ext=c
6144 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6147 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6148 cross_compiling=$ac_cv_prog_cc_cross
6149
6150 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6151 if test $ac_cv_prog_cc_works = no; then
6152 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6153 fi
6154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6155 echo "configure:6156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6156 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6157 cross_compiling=$ac_cv_prog_cc_cross
6158
6159 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6160 echo "configure:6161: checking whether we are using GNU C" >&5
6161 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6162 echo $ac_n "(cached) $ac_c" 1>&6
6163 else
6164 cat > conftest.c <<EOF
6165 #ifdef __GNUC__
6166 yes;
6167 #endif
6168 EOF
6169 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6170 ac_cv_prog_gcc=yes
6171 else
6172 ac_cv_prog_gcc=no
6173 fi
6174 fi
6175
6176 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6177
6178 if test $ac_cv_prog_gcc = yes; then
6179 GCC=yes
6180 else
6181 GCC=
6182 fi
6183
6184 ac_test_CFLAGS="${CFLAGS+set}"
6185 ac_save_CFLAGS="$CFLAGS"
6186 CFLAGS=
6187 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6188 echo "configure:6189: checking whether ${CC-cc} accepts -g" >&5
6189 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6191 else
6192 echo 'void f(){}' > conftest.c
6193 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6194 ac_cv_prog_cc_g=yes
6195 else
6196 ac_cv_prog_cc_g=no
6197 fi
6198 rm -f conftest*
6199
6200 fi
6201
6202 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6203 if test "$ac_test_CFLAGS" = set; then
6204 CFLAGS="$ac_save_CFLAGS"
6205 elif test $ac_cv_prog_cc_g = yes; then
6206 if test "$GCC" = yes; then
6207 CFLAGS="-g -O2"
6208 else
6209 CFLAGS="-g"
6210 fi
6211 else
6212 if test "$GCC" = yes; then
6213 CFLAGS="-O2"
6214 else
6215 CFLAGS=
6216 fi
6217 fi
6218
6219
6220 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6221
6222 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6223 echo "configure:6224: checking how to run the C preprocessor" >&5
6224 # On Suns, sometimes $CPP names a directory.
6225 if test -n "$CPP" && test -d "$CPP"; then
6226 CPP=
6227 fi
6228 if test -z "$CPP"; then
6229 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6231 else
6232 # This must be in double quotes, not single quotes, because CPP may get
6233 # substituted into the Makefile and "${CC-cc}" will confuse make.
6234 CPP="${CC-cc} -E"
6235 # On the NeXT, cc -E runs the code through the compiler's parser,
6236 # not just through cpp.
6237 cat > conftest.$ac_ext <<EOF
6238 #line 6239 "configure"
6239 #include "confdefs.h"
6240 #include <assert.h>
6241 Syntax Error
6242 EOF
6243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6244 { (eval echo configure:6245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6246 if test -z "$ac_err"; then
6247 :
6248 else
6249 echo "$ac_err" >&5
6250 echo "configure: failed program was:" >&5
6251 cat conftest.$ac_ext >&5
6252 rm -rf conftest*
6253 CPP="${CC-cc} -E -traditional-cpp"
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 #include <assert.h>
6258 Syntax Error
6259 EOF
6260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6261 { (eval echo configure:6262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6263 if test -z "$ac_err"; then
6264 :
6265 else
6266 echo "$ac_err" >&5
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6269 rm -rf conftest*
6270 CPP="${CC-cc} -nologo -E"
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 #include <assert.h>
6275 Syntax Error
6276 EOF
6277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6278 { (eval echo configure:6279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6280 if test -z "$ac_err"; then
6281 :
6282 else
6283 echo "$ac_err" >&5
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6286 rm -rf conftest*
6287 CPP=/lib/cpp
6288 fi
6289 rm -f conftest*
6290 fi
6291 rm -f conftest*
6292 fi
6293 rm -f conftest*
6294 ac_cv_prog_CPP="$CPP"
6295 fi
6296 CPP="$ac_cv_prog_CPP"
6297 else
6298 ac_cv_prog_CPP="$CPP"
6299 fi
6300 echo "$ac_t""$CPP" 1>&6
6301
6302
6303 if test $ac_cv_prog_gcc = yes; then
6304 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6305 echo "configure:6306: checking whether ${CC-cc} needs -traditional" >&5
6306 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6308 else
6309 ac_pattern="Autoconf.*'x'"
6310 cat > conftest.$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6313 #include <sgtty.h>
6314 Autoconf TIOCGETP
6315 EOF
6316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317 egrep "$ac_pattern" >/dev/null 2>&1; then
6318 rm -rf conftest*
6319 ac_cv_prog_gcc_traditional=yes
6320 else
6321 rm -rf conftest*
6322 ac_cv_prog_gcc_traditional=no
6323 fi
6324 rm -f conftest*
6325
6326
6327 if test $ac_cv_prog_gcc_traditional = no; then
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6331 #include <termio.h>
6332 Autoconf TCGETA
6333 EOF
6334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335 egrep "$ac_pattern" >/dev/null 2>&1; then
6336 rm -rf conftest*
6337 ac_cv_prog_gcc_traditional=yes
6338 fi
6339 rm -f conftest*
6340
6341 fi
6342 fi
6343
6344 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6345 if test $ac_cv_prog_gcc_traditional = yes; then
6346 CC="$CC -traditional"
6347 fi
6348 fi
6349
6350
6351
6352 ac_ext=C
6353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6354 ac_cpp='$CXXCPP $CPPFLAGS'
6355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6357 cross_compiling=$ac_cv_prog_cxx_cross
6358
6359
6360 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6361 do
6362 # Extract the first word of "$ac_prog", so it can be a program name with args.
6363 set dummy $ac_prog; ac_word=$2
6364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6365 echo "configure:6366: checking for $ac_word" >&5
6366 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6368 else
6369 if test -n "$CXX"; then
6370 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6371 else
6372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6373 ac_dummy="$PATH"
6374 for ac_dir in $ac_dummy; do
6375 test -z "$ac_dir" && ac_dir=.
6376 if test -f $ac_dir/$ac_word; then
6377 ac_cv_prog_CXX="$ac_prog"
6378 break
6379 fi
6380 done
6381 IFS="$ac_save_ifs"
6382 fi
6383 fi
6384 CXX="$ac_cv_prog_CXX"
6385 if test -n "$CXX"; then
6386 echo "$ac_t""$CXX" 1>&6
6387 else
6388 echo "$ac_t""no" 1>&6
6389 fi
6390
6391 test -n "$CXX" && break
6392 done
6393 test -n "$CXX" || CXX="gcc"
6394
6395
6396 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6397 echo "configure:6398: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6398
6399 ac_ext=C
6400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6401 ac_cpp='$CXXCPP $CPPFLAGS'
6402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6404 cross_compiling=$ac_cv_prog_cxx_cross
6405
6406 cat > conftest.$ac_ext << EOF
6407
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6410
6411 int main(){return(0);}
6412 EOF
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 ac_cv_prog_cxx_works=yes
6415 # If we can't run a trivial program, we are probably using a cross compiler.
6416 if (./conftest; exit) 2>/dev/null; then
6417 ac_cv_prog_cxx_cross=no
6418 else
6419 ac_cv_prog_cxx_cross=yes
6420 fi
6421 else
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6424 ac_cv_prog_cxx_works=no
6425 fi
6426 rm -fr conftest*
6427 ac_ext=C
6428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6429 ac_cpp='$CXXCPP $CPPFLAGS'
6430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6432 cross_compiling=$ac_cv_prog_cxx_cross
6433
6434 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6435 if test $ac_cv_prog_cxx_works = no; then
6436 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6437 fi
6438 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6439 echo "configure:6440: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6440 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6441 cross_compiling=$ac_cv_prog_cxx_cross
6442
6443 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6444 echo "configure:6445: checking whether we are using GNU C++" >&5
6445 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6447 else
6448 cat > conftest.C <<EOF
6449 #ifdef __GNUC__
6450 yes;
6451 #endif
6452 EOF
6453 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6454 ac_cv_prog_gxx=yes
6455 else
6456 ac_cv_prog_gxx=no
6457 fi
6458 fi
6459
6460 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6461
6462 if test $ac_cv_prog_gxx = yes; then
6463 GXX=yes
6464 else
6465 GXX=
6466 fi
6467
6468 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6469 ac_save_CXXFLAGS="$CXXFLAGS"
6470 CXXFLAGS=
6471 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6472 echo "configure:6473: checking whether ${CXX-g++} accepts -g" >&5
6473 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6475 else
6476 echo 'void f(){}' > conftest.cc
6477 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6478 ac_cv_prog_cxx_g=yes
6479 else
6480 ac_cv_prog_cxx_g=no
6481 fi
6482 rm -f conftest*
6483
6484 fi
6485
6486 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6487 if test "$ac_test_CXXFLAGS" = set; then
6488 CXXFLAGS="$ac_save_CXXFLAGS"
6489 elif test $ac_cv_prog_cxx_g = yes; then
6490 if test "$GXX" = yes; then
6491 CXXFLAGS="-g -O2"
6492 else
6493 CXXFLAGS="-g"
6494 fi
6495 else
6496 if test "$GXX" = yes; then
6497 CXXFLAGS="-O2"
6498 else
6499 CXXFLAGS=
6500 fi
6501 fi
6502
6503
6504 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6505 echo "configure:6506: checking how to run the C++ preprocessor" >&5
6506 if test -z "$CXXCPP"; then
6507 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6509 else
6510 ac_ext=C
6511 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6512 ac_cpp='$CXXCPP $CPPFLAGS'
6513 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6514 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6515 cross_compiling=$ac_cv_prog_cxx_cross
6516 CXXCPP="${CXX-g++} -E"
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure"
6519 #include "confdefs.h"
6520 #include <stdlib.h>
6521 EOF
6522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6523 { (eval echo configure:6524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6525 if test -z "$ac_err"; then
6526 :
6527 else
6528 echo "$ac_err" >&5
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 rm -rf conftest*
6532 CXXCPP=/lib/cpp
6533 fi
6534 rm -f conftest*
6535 ac_cv_prog_CXXCPP="$CXXCPP"
6536 ac_ext=C
6537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6538 ac_cpp='$CXXCPP $CPPFLAGS'
6539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6541 cross_compiling=$ac_cv_prog_cxx_cross
6542 fi
6543 fi
6544 CXXCPP="$ac_cv_prog_CXXCPP"
6545 echo "$ac_t""$CXXCPP" 1>&6
6546
6547
6548 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6549
6550 ac_ext=c
6551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6552 ac_cpp='$CPP $CPPFLAGS'
6553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6555 cross_compiling=$ac_cv_prog_cc_cross
6556
6557
6558 # Extract the first word of "ranlib", so it can be a program name with args.
6559 set dummy ranlib; ac_word=$2
6560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6561 echo "configure:6562: checking for $ac_word" >&5
6562 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6564 else
6565 if test -n "$RANLIB"; then
6566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6567 else
6568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6569 ac_dummy="$PATH"
6570 for ac_dir in $ac_dummy; do
6571 test -z "$ac_dir" && ac_dir=.
6572 if test -f $ac_dir/$ac_word; then
6573 ac_cv_prog_RANLIB="ranlib"
6574 break
6575 fi
6576 done
6577 IFS="$ac_save_ifs"
6578 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6579 fi
6580 fi
6581 RANLIB="$ac_cv_prog_RANLIB"
6582 if test -n "$RANLIB"; then
6583 echo "$ac_t""$RANLIB" 1>&6
6584 else
6585 echo "$ac_t""no" 1>&6
6586 fi
6587
6588
6589 # Extract the first word of "ar", so it can be a program name with args.
6590 set dummy ar; ac_word=$2
6591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6592 echo "configure:6593: checking for $ac_word" >&5
6593 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6
6595 else
6596 if test -n "$AR"; then
6597 ac_cv_prog_AR="$AR" # Let the user override the test.
6598 else
6599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6600 ac_dummy="$PATH"
6601 for ac_dir in $ac_dummy; do
6602 test -z "$ac_dir" && ac_dir=.
6603 if test -f $ac_dir/$ac_word; then
6604 ac_cv_prog_AR="ar"
6605 break
6606 fi
6607 done
6608 IFS="$ac_save_ifs"
6609 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6610 fi
6611 fi
6612 AR="$ac_cv_prog_AR"
6613 if test -n "$AR"; then
6614 echo "$ac_t""$AR" 1>&6
6615 else
6616 echo "$ac_t""no" 1>&6
6617 fi
6618
6619
6620 # Find a good install program. We prefer a C program (faster),
6621 # so one script is as good as another. But avoid the broken or
6622 # incompatible versions:
6623 # SysV /etc/install, /usr/sbin/install
6624 # SunOS /usr/etc/install
6625 # IRIX /sbin/install
6626 # AIX /bin/install
6627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6630 # ./install, which can be erroneously created by make from ./install.sh.
6631 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6632 echo "configure:6633: checking for a BSD compatible install" >&5
6633 if test -z "$INSTALL"; then
6634 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6635 echo $ac_n "(cached) $ac_c" 1>&6
6636 else
6637 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6638 for ac_dir in $PATH; do
6639 # Account for people who put trailing slashes in PATH elements.
6640 case "$ac_dir/" in
6641 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6642 *)
6643 # OSF1 and SCO ODT 3.0 have their own names for install.
6644 # Don't use installbsd from OSF since it installs stuff as root
6645 # by default.
6646 for ac_prog in ginstall scoinst install; do
6647 if test -f $ac_dir/$ac_prog; then
6648 if test $ac_prog = install &&
6649 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6650 # AIX install. It has an incompatible calling convention.
6651 :
6652 else
6653 ac_cv_path_install="$ac_dir/$ac_prog -c"
6654 break 2
6655 fi
6656 fi
6657 done
6658 ;;
6659 esac
6660 done
6661 IFS="$ac_save_IFS"
6662
6663 fi
6664 if test "${ac_cv_path_install+set}" = set; then
6665 INSTALL="$ac_cv_path_install"
6666 else
6667 # As a last resort, use the slow shell script. We don't cache a
6668 # path for INSTALL within a source directory, because that will
6669 # break other packages using the cache if that directory is
6670 # removed, or if the path is relative.
6671 INSTALL="$ac_install_sh"
6672 fi
6673 fi
6674 echo "$ac_t""$INSTALL" 1>&6
6675
6676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6677 # It thinks the first close brace ends the variable substitution.
6678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6679
6680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6681
6682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6683
6684
6685 # Extract the first word of "strip", so it can be a program name with args.
6686 set dummy strip; ac_word=$2
6687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6688 echo "configure:6689: checking for $ac_word" >&5
6689 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6691 else
6692 if test -n "$STRIP"; then
6693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6694 else
6695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6696 ac_dummy="$PATH"
6697 for ac_dir in $ac_dummy; do
6698 test -z "$ac_dir" && ac_dir=.
6699 if test -f $ac_dir/$ac_word; then
6700 ac_cv_prog_STRIP="strip"
6701 break
6702 fi
6703 done
6704 IFS="$ac_save_ifs"
6705 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6706 fi
6707 fi
6708 STRIP="$ac_cv_prog_STRIP"
6709 if test -n "$STRIP"; then
6710 echo "$ac_t""$STRIP" 1>&6
6711 else
6712 echo "$ac_t""no" 1>&6
6713 fi
6714
6715
6716 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6717 echo "configure:6718: checking "make for VPATH support"" >&5
6718 cat - << EOF > confMake
6719 check : file
6720 cp \$? \$@
6721 cp \$? final_file
6722 EOF
6723
6724 if test ! -d sub ; then
6725 mkdir sub
6726 fi
6727 echo dummy > sub/file
6728 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6729 RESULT=$?
6730 rm -f sub/file check final_file confMake
6731 rmdir sub
6732 if test "$RESULT" = 0; then
6733 echo "$ac_t""yes" 1>&6
6734 else
6735 echo "$ac_t""no" 1>&6
6736 { echo "configure: error: You need a make-utility that is able to use the variable
6737 VPATH correctly.
6738 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6739 fi
6740
6741 for ac_prog in 'bison -y' byacc
6742 do
6743 # Extract the first word of "$ac_prog", so it can be a program name with args.
6744 set dummy $ac_prog; ac_word=$2
6745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6746 echo "configure:6747: checking for $ac_word" >&5
6747 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6749 else
6750 if test -n "$YACC"; then
6751 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6752 else
6753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6754 ac_dummy="$PATH"
6755 for ac_dir in $ac_dummy; do
6756 test -z "$ac_dir" && ac_dir=.
6757 if test -f $ac_dir/$ac_word; then
6758 ac_cv_prog_YACC="$ac_prog"
6759 break
6760 fi
6761 done
6762 IFS="$ac_save_ifs"
6763 fi
6764 fi
6765 YACC="$ac_cv_prog_YACC"
6766 if test -n "$YACC"; then
6767 echo "$ac_t""$YACC" 1>&6
6768 else
6769 echo "$ac_t""no" 1>&6
6770 fi
6771
6772 test -n "$YACC" && break
6773 done
6774 test -n "$YACC" || YACC="yacc"
6775
6776
6777 # Extract the first word of "flex", so it can be a program name with args.
6778 set dummy flex; ac_word=$2
6779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6780 echo "configure:6781: checking for $ac_word" >&5
6781 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6
6783 else
6784 if test -n "$LEX"; then
6785 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6786 else
6787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6788 ac_dummy="$PATH"
6789 for ac_dir in $ac_dummy; do
6790 test -z "$ac_dir" && ac_dir=.
6791 if test -f $ac_dir/$ac_word; then
6792 ac_cv_prog_LEX="flex"
6793 break
6794 fi
6795 done
6796 IFS="$ac_save_ifs"
6797 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6798 fi
6799 fi
6800 LEX="$ac_cv_prog_LEX"
6801 if test -n "$LEX"; then
6802 echo "$ac_t""$LEX" 1>&6
6803 else
6804 echo "$ac_t""no" 1>&6
6805 fi
6806
6807 if test -z "$LEXLIB"
6808 then
6809 case "$LEX" in
6810 flex*) ac_lib=fl ;;
6811 *) ac_lib=l ;;
6812 esac
6813 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6814 echo "configure:6815: checking for yywrap in -l$ac_lib" >&5
6815 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6818 else
6819 ac_save_LIBS="$LIBS"
6820 LIBS="-l$ac_lib $LIBS"
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6827 char yywrap();
6828
6829 int main() {
6830 yywrap()
6831 ; return 0; }
6832 EOF
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6834 rm -rf conftest*
6835 eval "ac_cv_lib_$ac_lib_var=yes"
6836 else
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 rm -rf conftest*
6840 eval "ac_cv_lib_$ac_lib_var=no"
6841 fi
6842 rm -f conftest*
6843 LIBS="$ac_save_LIBS"
6844
6845 fi
6846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6848 LEXLIB="-l$ac_lib"
6849 else
6850 echo "$ac_t""no" 1>&6
6851 fi
6852
6853 fi
6854
6855
6856 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6857 echo "configure:6858: checking whether ln -s works" >&5
6858 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6860 else
6861 rm -f conftestdata
6862 if ln -s X conftestdata 2>/dev/null
6863 then
6864 rm -f conftestdata
6865 ac_cv_prog_LN_S="ln -s"
6866 else
6867 ac_cv_prog_LN_S=ln
6868 fi
6869 fi
6870 LN_S="$ac_cv_prog_LN_S"
6871 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6872 echo "$ac_t""yes" 1>&6
6873 else
6874 echo "$ac_t""no" 1>&6
6875 fi
6876
6877
6878
6879 SEARCH_INCLUDE="\
6880 /usr/local/include \
6881 \
6882 /usr/Motif-1.2/include \
6883 /usr/Motif-2.1/include \
6884 \
6885 /usr/include/Motif1.2 \
6886 /opt/xpm/include/X11 \
6887 /opt/GBxpm/include/ \
6888 /opt/GBxpm/X11/include/ \
6889 \
6890 /usr/Motif1.2/include \
6891 /usr/dt/include \
6892 /usr/openwin/include \
6893 \
6894 /usr/include/Xm \
6895 \
6896 /usr/X11R6/include \
6897 /usr/X11R6.4/include \
6898 /usr/X11R5/include \
6899 /usr/X11R4/include \
6900 \
6901 /usr/include/X11R6 \
6902 /usr/include/X11R5 \
6903 /usr/include/X11R4 \
6904 \
6905 /usr/local/X11R6/include \
6906 /usr/local/X11R5/include \
6907 /usr/local/X11R4/include \
6908 \
6909 /usr/local/include/X11R6 \
6910 /usr/local/include/X11R5 \
6911 /usr/local/include/X11R4 \
6912 \
6913 /usr/X11/include \
6914 /usr/include/X11 \
6915 /usr/local/X11/include \
6916 /usr/local/include/X11 \
6917 \
6918 /usr/X386/include \
6919 /usr/x386/include \
6920 /usr/XFree86/include/X11 \
6921 \
6922 X:/XFree86/include \
6923 X:/XFree86/include/X11 \
6924 \
6925 /usr/include/gtk \
6926 /usr/local/include/gtk \
6927 /usr/include/glib \
6928 /usr/local/include/glib \
6929 \
6930 /usr/include/qt \
6931 /usr/local/include/qt \
6932 \
6933 /usr/include/windows \
6934 /usr/include/wine \
6935 /usr/local/include/wine \
6936 \
6937 /usr/unsupported/include \
6938 /usr/athena/include \
6939 /usr/local/x11r5/include \
6940 /usr/lpp/Xamples/include \
6941 \
6942 /usr/openwin/share/include \
6943 \
6944 /usr/include"
6945
6946 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6947
6948
6949 cat > confcache <<\EOF
6950 # This file is a shell script that caches the results of configure
6951 # tests run on this system so they can be shared between configure
6952 # scripts and configure runs. It is not useful on other systems.
6953 # If it contains results you don't want to keep, you may remove or edit it.
6954 #
6955 # By default, configure uses ./config.cache as the cache file,
6956 # creating it if it does not exist already. You can give configure
6957 # the --cache-file=FILE option to use a different cache file; that is
6958 # what configure does when it calls configure scripts in
6959 # subdirectories, so they share the cache.
6960 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6961 # config.status only pays attention to the cache file if you give it the
6962 # --recheck option to rerun configure.
6963 #
6964 EOF
6965 # The following way of writing the cache mishandles newlines in values,
6966 # but we know of no workaround that is simple, portable, and efficient.
6967 # So, don't put newlines in cache variables' values.
6968 # Ultrix sh set writes to stderr and can't be redirected directly,
6969 # and sets the high bit in the cache file unless we assign to the vars.
6970 (set) 2>&1 |
6971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6972 *ac_space=\ *)
6973 # `set' does not quote correctly, so add quotes (double-quote substitution
6974 # turns \\\\ into \\, and sed turns \\ into \).
6975 sed -n \
6976 -e "s/'/'\\\\''/g" \
6977 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6978 ;;
6979 *)
6980 # `set' quotes correctly as required by POSIX, so do not add quotes.
6981 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6982 ;;
6983 esac >> confcache
6984 if cmp -s $cache_file confcache; then
6985 :
6986 else
6987 if test -w $cache_file; then
6988 echo "updating cache $cache_file"
6989 cat confcache > $cache_file
6990 else
6991 echo "not updating unwritable cache $cache_file"
6992 fi
6993 fi
6994 rm -f confcache
6995
6996
6997
6998 AFMINSTALL=
6999
7000 if test "$wxUSE_GUI" = "yes"; then
7001
7002 USE_GUI=1
7003
7004 TOOLKIT=
7005 TOOLKIT_INCLUDE=
7006
7007 GUIOBJS=
7008 COMMONOBJS=
7009 GENERICOBJS=
7010
7011 GUI_TK_LIBRARY=
7012 GUI_TK_LINK=
7013
7014 WXGTK12=
7015 WXGTK13=
7016
7017 WXWINE=
7018
7019 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7020 if test "$cross_compiling" = "yes" ; then
7021 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
7022 else
7023 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7024 echo "configure:7025: checking for Windows headers" >&5
7025
7026 ac_find_includes=
7027 for ac_dir in $SEARCH_INCLUDE;
7028 do
7029 if test -f "$ac_dir/windows.h"; then
7030 ac_find_includes=$ac_dir
7031 break
7032 fi
7033 done
7034
7035 if test "$ac_find_includes" != "" ; then
7036 echo "$ac_t""found $ac_find_includes" 1>&6
7037 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7038 else
7039 echo "$ac_t""no" 1>&6
7040 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7041 fi
7042 fi
7043
7044 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7045 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7046
7047 if test "$wxUSE_ODBC" = "yes" ; then
7048 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7049 fi
7050
7051 if test "$wxUSE_MINGW" = 1; then
7052 LDFLAGS="$LDFLAGS -mwindows"
7053 fi
7054
7055 TOOLKIT=MSW
7056
7057 GUIOBJS="\$(MSW_GUIOBJS)"
7058 GUIHEADERS="\$(MSW_HEADERS)"
7059 COMMONOBJS="\$(MSW_COMMONOBJS)"
7060 GENERICOBJS="\$(MSW_GENERICOBJS)"
7061 UNIXOBJS=
7062 GUIDIST=MSW_DIST
7063
7064 RCINCSWITCH="--include-dir"
7065 RCDEFSWITCH="--define"
7066 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7067 RCINPUTSWITCH="-i"
7068 RCOUTPUTSWITCH="-o"
7069 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7070
7071 RESPROGRAM="\$(RES_PROGRAM)"
7072
7073 fi
7074
7075 if test "$wxUSE_GTK" = 1; then
7076
7077 if test x$gtk_config_exec_prefix != x ; then
7078 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7079 if test x${GTK_CONFIG+set} != xset ; then
7080 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7081 fi
7082 fi
7083 if test x$gtk_config_prefix != x ; then
7084 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7085 if test x${GTK_CONFIG+set} != xset ; then
7086 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7087 fi
7088 fi
7089
7090 # Extract the first word of "gtk-config", so it can be a program name with args.
7091 set dummy gtk-config; ac_word=$2
7092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7093 echo "configure:7094: checking for $ac_word" >&5
7094 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7096 else
7097 case "$GTK_CONFIG" in
7098 /*)
7099 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7100 ;;
7101 ?:/*)
7102 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7103 ;;
7104 *)
7105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7106 ac_dummy="$PATH"
7107 for ac_dir in $ac_dummy; do
7108 test -z "$ac_dir" && ac_dir=.
7109 if test -f $ac_dir/$ac_word; then
7110 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7111 break
7112 fi
7113 done
7114 IFS="$ac_save_ifs"
7115 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7116 ;;
7117 esac
7118 fi
7119 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7120 if test -n "$GTK_CONFIG"; then
7121 echo "$ac_t""$GTK_CONFIG" 1>&6
7122 else
7123 echo "$ac_t""no" 1>&6
7124 fi
7125
7126 min_gtk_version=1.2.3
7127 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7128 echo "configure:7129: checking for GTK - version >= $min_gtk_version" >&5
7129 no_gtk=""
7130 if test "$GTK_CONFIG" != "no" ; then
7131 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7132 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7133 ac_save_CFLAGS="$CFLAGS"
7134 ac_save_LIBS="$LIBS"
7135 CFLAGS="$CFLAGS $GTK_CFLAGS"
7136 LIBS="$LIBS $GTK_LIBS"
7137 if test "$cross_compiling" = yes; then
7138 echo $ac_n "cross compiling; assumed OK... $ac_c"
7139 else
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143
7144 #include <gtk/gtk.h>
7145 #include <gtk/gtkfeatures.h>
7146 #include <stdio.h>
7147 #include <stdlib.h>
7148
7149 int
7150 main ()
7151 {
7152 int major, minor, micro;
7153
7154 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7155 printf("%s, bad version string\n", "$min_gtk_version");
7156 exit(1);
7157 }
7158
7159 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7160 (GTK_MINOR_VERSION != gtk_minor_version) ||
7161 (GTK_MICRO_VERSION != gtk_micro_version)) {
7162 printf("Headers vs. library version mismatch!\n");
7163 exit(1);
7164 }
7165
7166 if (gtk_minor_version == 1) return FALSE;
7167
7168 return !((gtk_major_version > major) ||
7169 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7170 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7171 }
7172
7173 EOF
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7175 then
7176 :
7177 else
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7180 rm -fr conftest*
7181 no_gtk=yes
7182 fi
7183 rm -fr conftest*
7184 fi
7185
7186 CFLAGS="$ac_save_CFLAGS"
7187 LIBS="$ac_save_LIBS"
7188 else
7189 no_gtk=yes
7190 fi
7191 if test "x$no_gtk" = x ; then
7192 echo "$ac_t""yes" 1>&6
7193 WXGTK12=1
7194 else
7195 echo "$ac_t""no" 1>&6
7196 GTK_CFLAGS=""
7197 GTK_LIBS=""
7198 :
7199 fi
7200
7201
7202
7203
7204 if test "$WXGTK12" != 1; then
7205 { echo "configure: error:
7206 Please check that gtk-config is in path, the directory
7207 where GTK+ libraries are installed (returned by
7208 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7209 equivalent variable and GTK+ is version 1.2.3 or above.
7210 " 1>&2; exit 1; }
7211 fi
7212
7213
7214 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7215
7216
7217 GUI_TK_LIBRARY="$GTK_LIBS"
7218
7219 TOOLKIT=GTK
7220
7221 AFMINSTALL=afminstall
7222
7223 GUIOBJS="\$(GTK_GUIOBJS)"
7224 GUIHEADERS="\$(GTK_HEADERS)"
7225 COMMONOBJS="\$(GTK_COMMONOBJS)"
7226 GENERICOBJS="\$(GTK_GENERICOBJS)"
7227 GUIDEPS="\$(GTK_GUIDEPS)"
7228 COMMONDEPS="\$(GTK_COMMONDEPS)"
7229 GENERICDEPS="\$(GTK_GENERICDEPS)"
7230 UNIXOBJS="\$(UNIX_OBJS)"
7231 UNIXDEPS="\$(UNIX_DEPS)"
7232 GUIDIST=GTK_DIST
7233
7234 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7235 echo "configure:7236: checking for gdk_im_open in -lgdk" >&5
7236 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7239 else
7240 ac_save_LIBS="$LIBS"
7241 LIBS="-lgdk $LIBS"
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 /* Override any gcc2 internal prototype to avoid an error. */
7246 /* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7248 char gdk_im_open();
7249
7250 int main() {
7251 gdk_im_open()
7252 ; return 0; }
7253 EOF
7254 if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7255 rm -rf conftest*
7256 eval "ac_cv_lib_$ac_lib_var=yes"
7257 else
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7260 rm -rf conftest*
7261 eval "ac_cv_lib_$ac_lib_var=no"
7262 fi
7263 rm -f conftest*
7264 LIBS="$ac_save_LIBS"
7265
7266 fi
7267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7268 echo "$ac_t""yes" 1>&6
7269 cat >> confdefs.h <<\EOF
7270 #define HAVE_XIM 1
7271 EOF
7272
7273 else
7274 echo "$ac_t""no" 1>&6
7275 fi
7276
7277 fi
7278
7279 if test "$wxUSE_WINE" = 1; then
7280 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7281 echo "configure:7282: checking for WINE includes" >&5
7282
7283 ac_find_includes=
7284 for ac_dir in $SEARCH_INCLUDE;
7285 do
7286 if test -f "$ac_dir/windows.h"; then
7287 ac_find_includes=$ac_dir
7288 break
7289 fi
7290 done
7291
7292 if test "$ac_find_includes" != "" ; then
7293 echo "$ac_t""found $ac_find_includes" 1>&6
7294 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7295 else
7296 echo "$ac_t""no" 1>&6
7297 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7298 fi
7299
7300 XPM_LINK=""
7301 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7302 echo "configure:7303: checking for Xpm library" >&5
7303
7304 ac_find_libraries=
7305 for ac_dir in $SEARCH_LIB;
7306 do
7307 for ac_extension in a so sl; do
7308 if test -f "$ac_dir/libXpm.$ac_extension"; then
7309 ac_find_libraries=$ac_dir
7310 break 2
7311 fi
7312 done
7313 done
7314
7315 if test "$ac_find_libraries" != "" ; then
7316 GUI_TK_LIBRARY="-L$ac_find_libraries"
7317 XPM_LINK="-lXpm"
7318 cat >> confdefs.h <<\EOF
7319 #define wxHAVE_LIB_XPM 1
7320 EOF
7321
7322 echo "$ac_t""found at $ac_find_libraries" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7326 fi
7327
7328 MESA_LINK=""
7329 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7330 echo "configure:7331: checking for Mesa library" >&5
7331
7332 ac_find_libraries=
7333 for ac_dir in $SEARCH_LIB;
7334 do
7335 for ac_extension in a so sl; do
7336 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7337 ac_find_libraries=$ac_dir
7338 break 2
7339 fi
7340 done
7341 done
7342
7343 if test "$ac_find_libraries" != "" ; then
7344 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7345 MESA_LINK="-lMesaGL"
7346 echo "$ac_t""found at $ac_find_libraries" 1>&6
7347 else
7348 { echo "configure: error: no" 1>&2; exit 1; }
7349 fi
7350
7351 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7352 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7353 WXWINE=1
7354 TOOLKIT=MSW
7355
7356 GUIHEADERS="\$(MSW_HEADERS)"
7357 GUIOBJS="\$(MSW_GUIOBJS)"
7358 COMMONOBJS="\$(MSW_COMMONOBJS)"
7359 GENERICOBJS="\$(MSW_GENERICOBJS)"
7360 GUIDEPS="\$(MSW_GUIDEPS)"
7361 COMMONDEPS="\$(MSW_COMMONDEPS)"
7362 GENERICDEPS="\$(MSW_GENERICDEPS)"
7363 UNIXOBJS="\$(UNIX_OBJS)"
7364 UNIXDEPS="\$(UNIX_DEPS)"
7365 GUIDIST=MSW_DIST
7366 fi
7367
7368 if test "$wxUSE_MOTIF" = 1; then
7369 # If we find X, set shell vars x_includes and x_libraries to the
7370 # paths, otherwise set no_x=yes.
7371 # Uses ac_ vars as temps to allow command line to override cache and checks.
7372 # --without-x overrides everything else, but does not touch the cache.
7373 echo $ac_n "checking for X""... $ac_c" 1>&6
7374 echo "configure:7375: checking for X" >&5
7375
7376 # Check whether --with-x or --without-x was given.
7377 if test "${with_x+set}" = set; then
7378 withval="$with_x"
7379 :
7380 fi
7381
7382 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7383 if test "x$with_x" = xno; then
7384 # The user explicitly disabled X.
7385 have_x=disabled
7386 else
7387 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7388 # Both variables are already set.
7389 have_x=yes
7390 else
7391 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7393 else
7394 # One or both of the vars are not set, and there is no cached value.
7395 ac_x_includes=NO ac_x_libraries=NO
7396 rm -fr conftestdir
7397 if mkdir conftestdir; then
7398 cd conftestdir
7399 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7400 cat > Imakefile <<'EOF'
7401 acfindx:
7402 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7403 EOF
7404 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7406 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7408 for ac_extension in a so sl; do
7409 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7410 test -f $ac_im_libdir/libX11.$ac_extension; then
7411 ac_im_usrlibdir=$ac_im_libdir; break
7412 fi
7413 done
7414 # Screen out bogus values from the imake configuration. They are
7415 # bogus both because they are the default anyway, and because
7416 # using them would break gcc on systems where it needs fixed includes.
7417 case "$ac_im_incroot" in
7418 /usr/include) ;;
7419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7420 esac
7421 case "$ac_im_usrlibdir" in
7422 /usr/lib | /lib) ;;
7423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7424 esac
7425 fi
7426 cd ..
7427 rm -fr conftestdir
7428 fi
7429
7430 if test "$ac_x_includes" = NO; then
7431 # Guess where to find include files, by looking for this one X11 .h file.
7432 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7433
7434 # First, try using that file with no special directory specified.
7435 cat > conftest.$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7438 #include <$x_direct_test_include>
7439 EOF
7440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7441 { (eval echo configure:7442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7443 if test -z "$ac_err"; then
7444 rm -rf conftest*
7445 # We can compile using X headers with no special include directory.
7446 ac_x_includes=
7447 else
7448 echo "$ac_err" >&5
7449 echo "configure: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7451 rm -rf conftest*
7452 # Look for the header file in a standard set of common directories.
7453 # Check X11 before X11Rn because it is often a symlink to the current release.
7454 for ac_dir in \
7455 /usr/X11/include \
7456 /usr/X11R6/include \
7457 /usr/X11R5/include \
7458 /usr/X11R4/include \
7459 \
7460 /usr/include/X11 \
7461 /usr/include/X11R6 \
7462 /usr/include/X11R5 \
7463 /usr/include/X11R4 \
7464 \
7465 /usr/local/X11/include \
7466 /usr/local/X11R6/include \
7467 /usr/local/X11R5/include \
7468 /usr/local/X11R4/include \
7469 \
7470 /usr/local/include/X11 \
7471 /usr/local/include/X11R6 \
7472 /usr/local/include/X11R5 \
7473 /usr/local/include/X11R4 \
7474 \
7475 /usr/X386/include \
7476 /usr/x386/include \
7477 /usr/XFree86/include/X11 \
7478 \
7479 /usr/include \
7480 /usr/local/include \
7481 /usr/unsupported/include \
7482 /usr/athena/include \
7483 /usr/local/x11r5/include \
7484 /usr/lpp/Xamples/include \
7485 \
7486 /usr/openwin/include \
7487 /usr/openwin/share/include \
7488 ; \
7489 do
7490 if test -r "$ac_dir/$x_direct_test_include"; then
7491 ac_x_includes=$ac_dir
7492 break
7493 fi
7494 done
7495 fi
7496 rm -f conftest*
7497 fi # $ac_x_includes = NO
7498
7499 if test "$ac_x_libraries" = NO; then
7500 # Check for the libraries.
7501
7502 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7503 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7504
7505 # See if we find them without any special options.
7506 # Don't add to $LIBS permanently.
7507 ac_save_LIBS="$LIBS"
7508 LIBS="-l$x_direct_test_library $LIBS"
7509 cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7512
7513 int main() {
7514 ${x_direct_test_function}()
7515 ; return 0; }
7516 EOF
7517 if { (eval echo configure:7518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7518 rm -rf conftest*
7519 LIBS="$ac_save_LIBS"
7520 # We can link X programs with no special library path.
7521 ac_x_libraries=
7522 else
7523 echo "configure: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7525 rm -rf conftest*
7526 LIBS="$ac_save_LIBS"
7527 # First see if replacing the include by lib works.
7528 # Check X11 before X11Rn because it is often a symlink to the current release.
7529 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7530 /usr/X11/lib \
7531 /usr/X11R6/lib \
7532 /usr/X11R5/lib \
7533 /usr/X11R4/lib \
7534 \
7535 /usr/lib/X11 \
7536 /usr/lib/X11R6 \
7537 /usr/lib/X11R5 \
7538 /usr/lib/X11R4 \
7539 \
7540 /usr/local/X11/lib \
7541 /usr/local/X11R6/lib \
7542 /usr/local/X11R5/lib \
7543 /usr/local/X11R4/lib \
7544 \
7545 /usr/local/lib/X11 \
7546 /usr/local/lib/X11R6 \
7547 /usr/local/lib/X11R5 \
7548 /usr/local/lib/X11R4 \
7549 \
7550 /usr/X386/lib \
7551 /usr/x386/lib \
7552 /usr/XFree86/lib/X11 \
7553 \
7554 /usr/lib \
7555 /usr/local/lib \
7556 /usr/unsupported/lib \
7557 /usr/athena/lib \
7558 /usr/local/x11r5/lib \
7559 /usr/lpp/Xamples/lib \
7560 /lib/usr/lib/X11 \
7561 \
7562 /usr/openwin/lib \
7563 /usr/openwin/share/lib \
7564 ; \
7565 do
7566 for ac_extension in a so sl; do
7567 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7568 ac_x_libraries=$ac_dir
7569 break 2
7570 fi
7571 done
7572 done
7573 fi
7574 rm -f conftest*
7575 fi # $ac_x_libraries = NO
7576
7577 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7578 # Didn't find X anywhere. Cache the known absence of X.
7579 ac_cv_have_x="have_x=no"
7580 else
7581 # Record where we found X for the cache.
7582 ac_cv_have_x="have_x=yes \
7583 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7584 fi
7585 fi
7586 fi
7587 eval "$ac_cv_have_x"
7588 fi # $with_x != no
7589
7590 if test "$have_x" != yes; then
7591 echo "$ac_t""$have_x" 1>&6
7592 no_x=yes
7593 else
7594 # If each of the values was on the command line, it overrides each guess.
7595 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7596 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7597 # Update the cache value to reflect the command line values.
7598 ac_cv_have_x="have_x=yes \
7599 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7600 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7601 fi
7602
7603 if test "$no_x" = yes; then
7604 # Not all programs may use this symbol, but it does not hurt to define it.
7605 cat >> confdefs.h <<\EOF
7606 #define X_DISPLAY_MISSING 1
7607 EOF
7608
7609 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7610 else
7611 if test -n "$x_includes"; then
7612 X_CFLAGS="$X_CFLAGS -I$x_includes"
7613 fi
7614
7615 # It would also be nice to do this for all -L options, not just this one.
7616 if test -n "$x_libraries"; then
7617 X_LIBS="$X_LIBS -L$x_libraries"
7618 # For Solaris; some versions of Sun CC require a space after -R and
7619 # others require no space. Words are not sufficient . . . .
7620 case "`(uname -sr) 2>/dev/null`" in
7621 "SunOS 5"*)
7622 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7623 echo "configure:7624: checking whether -R must be followed by a space" >&5
7624 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7625 cat > conftest.$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628
7629 int main() {
7630
7631 ; return 0; }
7632 EOF
7633 if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7634 rm -rf conftest*
7635 ac_R_nospace=yes
7636 else
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7639 rm -rf conftest*
7640 ac_R_nospace=no
7641 fi
7642 rm -f conftest*
7643 if test $ac_R_nospace = yes; then
7644 echo "$ac_t""no" 1>&6
7645 X_LIBS="$X_LIBS -R$x_libraries"
7646 else
7647 LIBS="$ac_xsave_LIBS -R $x_libraries"
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7651
7652 int main() {
7653
7654 ; return 0; }
7655 EOF
7656 if { (eval echo configure:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7657 rm -rf conftest*
7658 ac_R_space=yes
7659 else
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7662 rm -rf conftest*
7663 ac_R_space=no
7664 fi
7665 rm -f conftest*
7666 if test $ac_R_space = yes; then
7667 echo "$ac_t""yes" 1>&6
7668 X_LIBS="$X_LIBS -R $x_libraries"
7669 else
7670 echo "$ac_t""neither works" 1>&6
7671 fi
7672 fi
7673 LIBS="$ac_xsave_LIBS"
7674 esac
7675 fi
7676
7677 # Check for system-dependent libraries X programs must link with.
7678 # Do this before checking for the system-independent R6 libraries
7679 # (-lICE), since we may need -lsocket or whatever for X linking.
7680
7681 if test "$ISC" = yes; then
7682 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7683 else
7684 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7685 # libraries were built with DECnet support. And karl@cs.umb.edu says
7686 # the Alpha needs dnet_stub (dnet does not exist).
7687 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7688 echo "configure:7689: checking for dnet_ntoa in -ldnet" >&5
7689 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7691 echo $ac_n "(cached) $ac_c" 1>&6
7692 else
7693 ac_save_LIBS="$LIBS"
7694 LIBS="-ldnet $LIBS"
7695 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char dnet_ntoa();
7702
7703 int main() {
7704 dnet_ntoa()
7705 ; return 0; }
7706 EOF
7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7708 rm -rf conftest*
7709 eval "ac_cv_lib_$ac_lib_var=yes"
7710 else
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7713 rm -rf conftest*
7714 eval "ac_cv_lib_$ac_lib_var=no"
7715 fi
7716 rm -f conftest*
7717 LIBS="$ac_save_LIBS"
7718
7719 fi
7720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7721 echo "$ac_t""yes" 1>&6
7722 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7723 else
7724 echo "$ac_t""no" 1>&6
7725 fi
7726
7727 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7728 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7729 echo "configure:7730: checking for dnet_ntoa in -ldnet_stub" >&5
7730 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7733 else
7734 ac_save_LIBS="$LIBS"
7735 LIBS="-ldnet_stub $LIBS"
7736 cat > conftest.$ac_ext <<EOF
7737 #line 7738 "configure"
7738 #include "confdefs.h"
7739 /* Override any gcc2 internal prototype to avoid an error. */
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7742 char dnet_ntoa();
7743
7744 int main() {
7745 dnet_ntoa()
7746 ; return 0; }
7747 EOF
7748 if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7749 rm -rf conftest*
7750 eval "ac_cv_lib_$ac_lib_var=yes"
7751 else
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 rm -rf conftest*
7755 eval "ac_cv_lib_$ac_lib_var=no"
7756 fi
7757 rm -f conftest*
7758 LIBS="$ac_save_LIBS"
7759
7760 fi
7761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7762 echo "$ac_t""yes" 1>&6
7763 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7764 else
7765 echo "$ac_t""no" 1>&6
7766 fi
7767
7768 fi
7769
7770 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7771 # to get the SysV transport functions.
7772 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7773 # needs -lnsl.
7774 # The nsl library prevents programs from opening the X display
7775 # on Irix 5.2, according to dickey@clark.net.
7776 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7777 echo "configure:7778: checking for gethostbyname" >&5
7778 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7779 echo $ac_n "(cached) $ac_c" 1>&6
7780 else
7781 cat > conftest.$ac_ext <<EOF
7782 #line 7783 "configure"
7783 #include "confdefs.h"
7784 /* System header to define __stub macros and hopefully few prototypes,
7785 which can conflict with char gethostbyname(); below. */
7786 #include <assert.h>
7787 /* Override any gcc2 internal prototype to avoid an error. */
7788 /* We use char because int might match the return type of a gcc2
7789 builtin and then its argument prototype would still apply. */
7790 char gethostbyname();
7791
7792 int main() {
7793
7794 /* The GNU C library defines this for functions which it implements
7795 to always fail with ENOSYS. Some functions are actually named
7796 something starting with __ and the normal name is an alias. */
7797 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7798 choke me
7799 #else
7800 gethostbyname();
7801 #endif
7802
7803 ; return 0; }
7804 EOF
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806 rm -rf conftest*
7807 eval "ac_cv_func_gethostbyname=yes"
7808 else
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 rm -rf conftest*
7812 eval "ac_cv_func_gethostbyname=no"
7813 fi
7814 rm -f conftest*
7815 fi
7816
7817 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7818 echo "$ac_t""yes" 1>&6
7819 :
7820 else
7821 echo "$ac_t""no" 1>&6
7822 fi
7823
7824 if test $ac_cv_func_gethostbyname = no; then
7825 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7826 echo "configure:7827: checking for gethostbyname in -lnsl" >&5
7827 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7830 else
7831 ac_save_LIBS="$LIBS"
7832 LIBS="-lnsl $LIBS"
7833 cat > conftest.$ac_ext <<EOF
7834 #line 7835 "configure"
7835 #include "confdefs.h"
7836 /* Override any gcc2 internal prototype to avoid an error. */
7837 /* We use char because int might match the return type of a gcc2
7838 builtin and then its argument prototype would still apply. */
7839 char gethostbyname();
7840
7841 int main() {
7842 gethostbyname()
7843 ; return 0; }
7844 EOF
7845 if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7846 rm -rf conftest*
7847 eval "ac_cv_lib_$ac_lib_var=yes"
7848 else
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7851 rm -rf conftest*
7852 eval "ac_cv_lib_$ac_lib_var=no"
7853 fi
7854 rm -f conftest*
7855 LIBS="$ac_save_LIBS"
7856
7857 fi
7858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7859 echo "$ac_t""yes" 1>&6
7860 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7861 else
7862 echo "$ac_t""no" 1>&6
7863 fi
7864
7865 fi
7866
7867 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7868 # socket/setsockopt and other routines are undefined under SCO ODT
7869 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7870 # on later versions), says simon@lia.di.epfl.ch: it contains
7871 # gethostby* variants that don't use the nameserver (or something).
7872 # -lsocket must be given before -lnsl if both are needed.
7873 # We assume that if connect needs -lnsl, so does gethostbyname.
7874 echo $ac_n "checking for connect""... $ac_c" 1>&6
7875 echo "configure:7876: checking for connect" >&5
7876 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7878 else
7879 cat > conftest.$ac_ext <<EOF
7880 #line 7881 "configure"
7881 #include "confdefs.h"
7882 /* System header to define __stub macros and hopefully few prototypes,
7883 which can conflict with char connect(); below. */
7884 #include <assert.h>
7885 /* Override any gcc2 internal prototype to avoid an error. */
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7888 char connect();
7889
7890 int main() {
7891
7892 /* The GNU C library defines this for functions which it implements
7893 to always fail with ENOSYS. Some functions are actually named
7894 something starting with __ and the normal name is an alias. */
7895 #if defined (__stub_connect) || defined (__stub___connect)
7896 choke me
7897 #else
7898 connect();
7899 #endif
7900
7901 ; return 0; }
7902 EOF
7903 if { (eval echo configure:7904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7904 rm -rf conftest*
7905 eval "ac_cv_func_connect=yes"
7906 else
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 rm -rf conftest*
7910 eval "ac_cv_func_connect=no"
7911 fi
7912 rm -f conftest*
7913 fi
7914
7915 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 :
7918 else
7919 echo "$ac_t""no" 1>&6
7920 fi
7921
7922 if test $ac_cv_func_connect = no; then
7923 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7924 echo "configure:7925: checking for connect in -lsocket" >&5
7925 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7928 else
7929 ac_save_LIBS="$LIBS"
7930 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7934 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7937 char connect();
7938
7939 int main() {
7940 connect()
7941 ; return 0; }
7942 EOF
7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7944 rm -rf conftest*
7945 eval "ac_cv_lib_$ac_lib_var=yes"
7946 else
7947 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7949 rm -rf conftest*
7950 eval "ac_cv_lib_$ac_lib_var=no"
7951 fi
7952 rm -f conftest*
7953 LIBS="$ac_save_LIBS"
7954
7955 fi
7956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7957 echo "$ac_t""yes" 1>&6
7958 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7959 else
7960 echo "$ac_t""no" 1>&6
7961 fi
7962
7963 fi
7964
7965 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7966 echo $ac_n "checking for remove""... $ac_c" 1>&6
7967 echo "configure:7968: checking for remove" >&5
7968 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7970 else
7971 cat > conftest.$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7974 /* System header to define __stub macros and hopefully few prototypes,
7975 which can conflict with char remove(); below. */
7976 #include <assert.h>
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 /* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7980 char remove();
7981
7982 int main() {
7983
7984 /* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987 #if defined (__stub_remove) || defined (__stub___remove)
7988 choke me
7989 #else
7990 remove();
7991 #endif
7992
7993 ; return 0; }
7994 EOF
7995 if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7996 rm -rf conftest*
7997 eval "ac_cv_func_remove=yes"
7998 else
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8001 rm -rf conftest*
8002 eval "ac_cv_func_remove=no"
8003 fi
8004 rm -f conftest*
8005 fi
8006
8007 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8008 echo "$ac_t""yes" 1>&6
8009 :
8010 else
8011 echo "$ac_t""no" 1>&6
8012 fi
8013
8014 if test $ac_cv_func_remove = no; then
8015 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8016 echo "configure:8017: checking for remove in -lposix" >&5
8017 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8020 else
8021 ac_save_LIBS="$LIBS"
8022 LIBS="-lposix $LIBS"
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 /* Override any gcc2 internal prototype to avoid an error. */
8027 /* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */
8029 char remove();
8030
8031 int main() {
8032 remove()
8033 ; return 0; }
8034 EOF
8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8036 rm -rf conftest*
8037 eval "ac_cv_lib_$ac_lib_var=yes"
8038 else
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 rm -rf conftest*
8042 eval "ac_cv_lib_$ac_lib_var=no"
8043 fi
8044 rm -f conftest*
8045 LIBS="$ac_save_LIBS"
8046
8047 fi
8048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8051 else
8052 echo "$ac_t""no" 1>&6
8053 fi
8054
8055 fi
8056
8057 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8058 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8059 echo "configure:8060: checking for shmat" >&5
8060 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8062 else
8063 cat > conftest.$ac_ext <<EOF
8064 #line 8065 "configure"
8065 #include "confdefs.h"
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char shmat(); below. */
8068 #include <assert.h>
8069 /* Override any gcc2 internal prototype to avoid an error. */
8070 /* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8072 char shmat();
8073
8074 int main() {
8075
8076 /* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
8079 #if defined (__stub_shmat) || defined (__stub___shmat)
8080 choke me
8081 #else
8082 shmat();
8083 #endif
8084
8085 ; return 0; }
8086 EOF
8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8088 rm -rf conftest*
8089 eval "ac_cv_func_shmat=yes"
8090 else
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8093 rm -rf conftest*
8094 eval "ac_cv_func_shmat=no"
8095 fi
8096 rm -f conftest*
8097 fi
8098
8099 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8101 :
8102 else
8103 echo "$ac_t""no" 1>&6
8104 fi
8105
8106 if test $ac_cv_func_shmat = no; then
8107 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8108 echo "configure:8109: checking for shmat in -lipc" >&5
8109 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8112 else
8113 ac_save_LIBS="$LIBS"
8114 LIBS="-lipc $LIBS"
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8118 /* Override any gcc2 internal prototype to avoid an error. */
8119 /* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8121 char shmat();
8122
8123 int main() {
8124 shmat()
8125 ; return 0; }
8126 EOF
8127 if { (eval echo configure:8128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8128 rm -rf conftest*
8129 eval "ac_cv_lib_$ac_lib_var=yes"
8130 else
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8133 rm -rf conftest*
8134 eval "ac_cv_lib_$ac_lib_var=no"
8135 fi
8136 rm -f conftest*
8137 LIBS="$ac_save_LIBS"
8138
8139 fi
8140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8141 echo "$ac_t""yes" 1>&6
8142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8143 else
8144 echo "$ac_t""no" 1>&6
8145 fi
8146
8147 fi
8148 fi
8149
8150 # Check for libraries that X11R6 Xt/Xaw programs need.
8151 ac_save_LDFLAGS="$LDFLAGS"
8152 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8153 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8154 # check for ICE first), but we must link in the order -lSM -lICE or
8155 # we get undefined symbols. So assume we have SM if we have ICE.
8156 # These have to be linked with before -lX11, unlike the other
8157 # libraries we check for below, so use a different variable.
8158 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8159 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8160 echo "configure:8161: checking for IceConnectionNumber in -lICE" >&5
8161 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8163 echo $ac_n "(cached) $ac_c" 1>&6
8164 else
8165 ac_save_LIBS="$LIBS"
8166 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8170 /* Override any gcc2 internal prototype to avoid an error. */
8171 /* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8173 char IceConnectionNumber();
8174
8175 int main() {
8176 IceConnectionNumber()
8177 ; return 0; }
8178 EOF
8179 if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8180 rm -rf conftest*
8181 eval "ac_cv_lib_$ac_lib_var=yes"
8182 else
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 rm -rf conftest*
8186 eval "ac_cv_lib_$ac_lib_var=no"
8187 fi
8188 rm -f conftest*
8189 LIBS="$ac_save_LIBS"
8190
8191 fi
8192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8194 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8195 else
8196 echo "$ac_t""no" 1>&6
8197 fi
8198
8199 LDFLAGS="$ac_save_LDFLAGS"
8200
8201 fi
8202
8203
8204 if test "$no_x" = "yes"; then
8205 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8206 fi
8207
8208 GUI_TK_LIBRARY="$X_LIBS"
8209 TOOLKIT_INCLUDE="$X_CFLAGS"
8210
8211 AFMINSTALL=afminstall
8212
8213
8214 COMPILED_X_PROGRAM=0
8215
8216 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8217 echo "configure:8218: checking for Motif/Lesstif headers" >&5
8218
8219 ac_find_includes=
8220 for ac_dir in $SEARCH_INCLUDE;
8221 do
8222 if test -f "$ac_dir/Xm/Xm.h"; then
8223 ac_find_includes=$ac_dir
8224 break
8225 fi
8226 done
8227
8228 if test "$ac_find_includes" != "" ; then
8229 echo "$ac_t""found $ac_find_includes" 1>&6
8230 else
8231 cat > conftest.$ac_ext <<EOF
8232 #line 8233 "configure"
8233 #include "confdefs.h"
8234
8235 #include <Xm/Xm.h>
8236
8237 int main() {
8238
8239 int version;
8240
8241 version = xmUseVersion;
8242
8243 ; return 0; }
8244 EOF
8245 if { (eval echo configure:8246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8246 rm -rf conftest*
8247
8248 echo "$ac_t""found in default search path" 1>&6
8249 COMPILED_X_PROGRAM=1
8250
8251 else
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8254 rm -rf conftest*
8255
8256 echo "$ac_t""no" 1>&6
8257 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8258
8259
8260 fi
8261 rm -f conftest*
8262 fi
8263
8264 if test "$COMPILED_X_PROGRAM" = 0; then
8265 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8266 echo "configure:8267: checking for Motif/Lesstif library" >&5
8267
8268 ac_find_libraries=
8269 for ac_dir in $SEARCH_LIB;
8270 do
8271 for ac_extension in a so sl; do
8272 if test -f "$ac_dir/libXm.$ac_extension"; then
8273 ac_find_libraries=$ac_dir
8274 break 2
8275 fi
8276 done
8277 done
8278
8279 if test "$ac_find_libraries" != "" ; then
8280
8281 ac_path_to_include=$ac_find_includes
8282 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8283 result=$?
8284 if test $result = 0; then
8285 ac_path_to_include=""
8286 else
8287 ac_path_to_include="-I$ac_find_includes"
8288 fi
8289
8290
8291 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8292 result=$?
8293 if test $result = 0; then
8294 ac_path_to_link=""
8295 else
8296 ac_path_to_link="-L$ac_find_libraries"
8297 fi
8298
8299
8300 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8301 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8302 echo "$ac_t""found at $ac_find_libraries" 1>&6
8303 else
8304 cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8307
8308 #include <Xm/Xm.h>
8309
8310 int main() {
8311
8312 int version;
8313
8314 version = xmUseVersion;
8315
8316 ; return 0; }
8317 EOF
8318 if { (eval echo configure:8319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8319 rm -rf conftest*
8320
8321 echo "$ac_t""found in default search path" 1>&6
8322 COMPILED_X_PROGRAM=1
8323
8324 else
8325 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5
8327 rm -rf conftest*
8328
8329 echo "$ac_t""no" 1>&6
8330 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8331
8332
8333 fi
8334 rm -f conftest*
8335 fi
8336 fi
8337
8338
8339 XPM_LINK=""
8340 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8341 echo "configure:8342: checking for Xpm library" >&5
8342
8343 ac_find_libraries=
8344 for ac_dir in $SEARCH_LIB;
8345 do
8346 for ac_extension in a so sl; do
8347 if test -f "$ac_dir/libXpm.$ac_extension"; then
8348 ac_find_libraries=$ac_dir
8349 break 2
8350 fi
8351 done
8352 done
8353
8354 if test "$ac_find_libraries" != "" ; then
8355
8356 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8357 result=$?
8358 if test $result = 0; then
8359 ac_path_to_link=""
8360 else
8361 ac_path_to_link="-L$ac_find_libraries"
8362 fi
8363
8364 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8365 XPM_LINK="-lXpm "
8366 cat >> confdefs.h <<\EOF
8367 #define wxHAVE_LIB_XPM 1
8368 EOF
8369
8370 echo "$ac_t""found at $ac_find_libraries" 1>&6
8371 else
8372 cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8375
8376 #include <X11/xpm.h>
8377
8378 int main() {
8379
8380 int version;
8381
8382 version = XpmLibraryVersion();
8383
8384 ; return 0; }
8385 EOF
8386 if { (eval echo configure:8387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8387 rm -rf conftest*
8388
8389 XPM_LINK="-lXpm "
8390 cat >> confdefs.h <<\EOF
8391 #define wxHAVE_LIB_XPM 1
8392 EOF
8393
8394 echo "$ac_t""found in default search path" 1>&6
8395 COMPILED_X_PROGRAM=0
8396
8397 else
8398 echo "configure: failed program was:" >&5
8399 cat conftest.$ac_ext >&5
8400 rm -rf conftest*
8401
8402 echo "$ac_t""no" 1>&6
8403 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8404
8405
8406 fi
8407 rm -f conftest*
8408 fi
8409
8410 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8411 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8412 TOOLKIT=MOTIF
8413
8414 GUIHEADERS="\$(MOTIF_HEADERS)"
8415 GUIOBJS="\$(MOTIF_GUIOBJS)"
8416 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
8417 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8418 GUIDEPS="\$(MOTIF_GUIDEPS)"
8419 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
8420 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8421 UNIXOBJS="\$(UNIX_OBJS)"
8422 UNIXDEPS="\$(UNIX_DEPS)"
8423 GUIDIST=MOTIF_DIST
8424 fi
8425
8426 if test "$wxUSE_PM" = 1; then
8427 TOOLKIT=PM
8428
8429 GUIOBJS="\$(PM_GUIOBJS)"
8430 GUIHEADERS="\$(PM_HEADERS)"
8431 COMMONOBJS="\$(PM_COMMONOBJS)"
8432 GENERICOBJS="\$(PM_GENERICOBJS)"
8433 GUIDEPS="\$(PM_GUIDEPS)"
8434 COMMONDEPS="\$(PM_COMMONDEPS)"
8435 GENERICDEPS="\$(PM_GENERICDEPS)"
8436 UNIXOBJS=
8437 UNIXDEPS=
8438 GUIDIST=GTK_DIST
8439 fi
8440
8441 if test "$TOOLKIT" != "PM" ; then
8442 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
8443 else
8444 TOOLKIT_DIR="os2"
8445 fi
8446
8447 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8448
8449 WX_LIBRARY="wx_${TOOLKIT_DIR}"
8450
8451 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
8452
8453 if test "$TOOLKIT" != "MSW"; then
8454 if test "$wxUSE_ODBC" = "yes" ; then
8455 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8456 fi
8457 fi
8458
8459 if test "$wxUSE_LIBJPEG" = "yes" ; then
8460 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8461 fi
8462 if test "$wxUSE_LIBTIFF" = "yes" ; then
8463 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8464 fi
8465 if test "$wxUSE_LIBPNG" = "yes" ; then
8466 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8467 fi
8468 if test "$wxUSE_ZLIB" = "yes" ; then
8469 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8470 fi
8471 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
8472
8473 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8474 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8475 RPM_SPEC="wx\$(TOOLKIT).spec"
8476
8477 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8478 DISTDIR="wx\$(TOOLKIT)"
8479 else
8480 USE_GUI=0
8481
8482 TOOLKIT_DIR="base"
8483 TOOLKIT_DEF="-D__WXBASE__"
8484
8485 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8486 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
8487
8488 WX_LIBRARY="wxbase"
8489
8490 PORT_FILES="src/files.lst"
8491 RPM_FILES="src/rpmfiles.lst"
8492 RPM_SPEC="wxBase.spec"
8493
8494 GUIDIST="BASE_DIST"
8495 DISTDIR="wxBase"
8496 fi
8497
8498 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8499 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
8500
8501 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8502 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
8503
8504 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8505 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8506
8507 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8508 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8509 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8510 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8511 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8512 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
8513
8514 SHARED_LD=
8515 PIC_FLAG=
8516 WX_ALL=
8517 WX_ALL_INSTALLED=
8518 BURNT_LIBRARY_NAME=
8519
8520
8521 if test "$wxUSE_SHARED" = "yes"; then
8522 case "${host}" in
8523 *-hp-hpux* )
8524 if test "$GCC" = yes ; then
8525 SHARED_LD="${CC} -shared -fPIC -o"
8526 PIC_FLAG="-fPIC"
8527 else
8528 SHARED_LD="${CXX} -b -o"
8529 PIC_FLAG="+Z"
8530 fi
8531 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8532 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
8533 if test "$wxUSE_OPENGL" = "yes"; then
8534 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
8535 else
8536 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
8537 fi
8538 ;;
8539
8540 *-*-linux* )
8541 SHARED_LD="${CC} -shared -o"
8542 PIC_FLAG="-fPIC"
8543 if test "$wxUSE_BURNT_NAME" = "yes" ; then
8544 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
8545 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
8546 fi
8547 if test "$wxUSE_OPENGL" = "yes"; then
8548 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8549 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8550 else
8551 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8552 WX_ALL="CREATE_LINKS"
8553 fi
8554 ;;
8555 *-*-irix5* | *-*-irix6* )
8556 if test "$GCC" = yes ; then
8557 SHARED_LD="${CC} -shared -o"
8558 PIC_FLAG="-fPIC"
8559 else
8560 SHARED_LD="${CXX} -shared -o"
8561 fi
8562 if test "$wxUSE_OPENGL" = "yes"; then
8563 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8564 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8565 else
8566 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8567 WX_ALL="CREATE_LINKS"
8568 fi
8569 ;;
8570 *-*-solaris2* )
8571 if test "$GCC" = yes ; then
8572 SHARED_LD="${CC} -shared -o"
8573 PIC_FLAG="-fPIC"
8574 else
8575 SHARED_LD="${CXX} -G -o"
8576 PIC_FLAG="-KPIC"
8577 fi
8578 if test "$wxUSE_OPENGL" = "yes"; then
8579 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8580 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8581 else
8582 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8583 WX_ALL="CREATE_LINKS"
8584 fi
8585 ;;
8586 *-*-sunos4* )
8587 SHARED_LD="${CC} -shared -o"
8588 PIC_FLAG="-fPIC"
8589 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8590 WX_ALL="CREATE_LINKS"
8591 ;;
8592 *-*-freebsd* | *-*-netbsd*)
8593 SHARED_LD="${CC} -shared -o"
8594 PIC_FLAG="-fPIC"
8595 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8596 WX_ALL="CREATE_LINKS"
8597 ;;
8598 *-*-osf* )
8599 SHARED_LD="${CXX} -shared -o"
8600 PIC_FLAG="-fPIC"
8601 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8602 WX_ALL="CREATE_LINKS"
8603 ;;
8604 *-*-dgux5* )
8605 SHARED_LD="${CXX} -shared -o"
8606 PIC_FLAG="-fPIC"
8607 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8608 WX_ALL="CREATE_LINKS"
8609 ;;
8610 *-*-sysv5* )
8611 SHARED_LD="${CC} -shared -o"
8612 PIC_FLAG="-fPIC"
8613 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8614 WX_ALL="CREATE_LINKS"
8615 ;;
8616 *-*-aix* )
8617 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8618 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8619 ;;
8620 *-*-cygwin32* )
8621 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8622 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
8623 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8624 ;;
8625 *-*-mingw32* )
8626 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8627 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
8628 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8629 ;;
8630 *-pc-os2_emx )
8631 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8632 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8633 ;;
8634 *-*-beos* )
8635 SHARED_LD="${LD} -shared -o"
8636 PIC_FLAG="-fPIC"
8637 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8638 WX_ALL="CREATE_LINKS"
8639 ;;
8640 *)
8641 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8642 esac
8643
8644 if test "x$WX_TARGET_LIBRARY" = "x"; then
8645 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8646 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
8647 fi
8648 else
8649 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8650 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
8651 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8652 fi
8653
8654
8655 for ac_hdr in strings.h
8656 do
8657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8659 echo "configure:8660: checking for $ac_hdr" >&5
8660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
8662 else
8663 cat > conftest.$ac_ext <<EOF
8664 #line 8665 "configure"
8665 #include "confdefs.h"
8666 #include <$ac_hdr>
8667 EOF
8668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8669 { (eval echo configure:8670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8671 if test -z "$ac_err"; then
8672 rm -rf conftest*
8673 eval "ac_cv_header_$ac_safe=yes"
8674 else
8675 echo "$ac_err" >&5
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 rm -rf conftest*
8679 eval "ac_cv_header_$ac_safe=no"
8680 fi
8681 rm -f conftest*
8682 fi
8683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8684 echo "$ac_t""yes" 1>&6
8685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8686 cat >> confdefs.h <<EOF
8687 #define $ac_tr_hdr 1
8688 EOF
8689
8690 else
8691 echo "$ac_t""no" 1>&6
8692 fi
8693 done
8694
8695 for ac_hdr in unistd.h
8696 do
8697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8699 echo "configure:8700: checking for $ac_hdr" >&5
8700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6
8702 else
8703 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure"
8705 #include "confdefs.h"
8706 #include <$ac_hdr>
8707 EOF
8708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8709 { (eval echo configure:8710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8711 if test -z "$ac_err"; then
8712 rm -rf conftest*
8713 eval "ac_cv_header_$ac_safe=yes"
8714 else
8715 echo "$ac_err" >&5
8716 echo "configure: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 rm -rf conftest*
8719 eval "ac_cv_header_$ac_safe=no"
8720 fi
8721 rm -f conftest*
8722 fi
8723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8724 echo "$ac_t""yes" 1>&6
8725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8726 cat >> confdefs.h <<EOF
8727 #define $ac_tr_hdr 1
8728 EOF
8729
8730 else
8731 echo "$ac_t""no" 1>&6
8732 fi
8733 done
8734
8735 for ac_hdr in wchar.h
8736 do
8737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8739 echo "configure:8740: checking for $ac_hdr" >&5
8740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8742 else
8743 cat > conftest.$ac_ext <<EOF
8744 #line 8745 "configure"
8745 #include "confdefs.h"
8746 #include <$ac_hdr>
8747 EOF
8748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8749 { (eval echo configure:8750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8751 if test -z "$ac_err"; then
8752 rm -rf conftest*
8753 eval "ac_cv_header_$ac_safe=yes"
8754 else
8755 echo "$ac_err" >&5
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 rm -rf conftest*
8759 eval "ac_cv_header_$ac_safe=no"
8760 fi
8761 rm -f conftest*
8762 fi
8763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8764 echo "$ac_t""yes" 1>&6
8765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8766 cat >> confdefs.h <<EOF
8767 #define $ac_tr_hdr 1
8768 EOF
8769
8770 else
8771 echo "$ac_t""no" 1>&6
8772 fi
8773 done
8774
8775 for ac_hdr in wcstr.h
8776 do
8777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8779 echo "configure:8780: checking for $ac_hdr" >&5
8780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8782 else
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8786 #include <$ac_hdr>
8787 EOF
8788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8789 { (eval echo configure:8790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8791 if test -z "$ac_err"; then
8792 rm -rf conftest*
8793 eval "ac_cv_header_$ac_safe=yes"
8794 else
8795 echo "$ac_err" >&5
8796 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 rm -rf conftest*
8799 eval "ac_cv_header_$ac_safe=no"
8800 fi
8801 rm -f conftest*
8802 fi
8803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8804 echo "$ac_t""yes" 1>&6
8805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8806 cat >> confdefs.h <<EOF
8807 #define $ac_tr_hdr 1
8808 EOF
8809
8810 else
8811 echo "$ac_t""no" 1>&6
8812 fi
8813 done
8814
8815 for ac_hdr in fnmatch.h
8816 do
8817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8819 echo "configure:8820: checking for $ac_hdr" >&5
8820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8822 else
8823 cat > conftest.$ac_ext <<EOF
8824 #line 8825 "configure"
8825 #include "confdefs.h"
8826 #include <$ac_hdr>
8827 EOF
8828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8829 { (eval echo configure:8830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8831 if test -z "$ac_err"; then
8832 rm -rf conftest*
8833 eval "ac_cv_header_$ac_safe=yes"
8834 else
8835 echo "$ac_err" >&5
8836 echo "configure: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 rm -rf conftest*
8839 eval "ac_cv_header_$ac_safe=no"
8840 fi
8841 rm -f conftest*
8842 fi
8843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8844 echo "$ac_t""yes" 1>&6
8845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8846 cat >> confdefs.h <<EOF
8847 #define $ac_tr_hdr 1
8848 EOF
8849
8850 else
8851 echo "$ac_t""no" 1>&6
8852 fi
8853 done
8854
8855
8856 if test "$wxUSE_GUI" = "yes"; then
8857 if test "$wxUSE_UNIX" = "yes"; then
8858 for ac_hdr in X11/XKBlib.h
8859 do
8860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8862 echo "configure:8863: checking for $ac_hdr" >&5
8863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8864 echo $ac_n "(cached) $ac_c" 1>&6
8865 else
8866 cat > conftest.$ac_ext <<EOF
8867 #line 8868 "configure"
8868 #include "confdefs.h"
8869 #include <$ac_hdr>
8870 EOF
8871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8872 { (eval echo configure:8873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8874 if test -z "$ac_err"; then
8875 rm -rf conftest*
8876 eval "ac_cv_header_$ac_safe=yes"
8877 else
8878 echo "$ac_err" >&5
8879 echo "configure: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8881 rm -rf conftest*
8882 eval "ac_cv_header_$ac_safe=no"
8883 fi
8884 rm -f conftest*
8885 fi
8886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8887 echo "$ac_t""yes" 1>&6
8888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8889 cat >> confdefs.h <<EOF
8890 #define $ac_tr_hdr 1
8891 EOF
8892
8893 else
8894 echo "$ac_t""no" 1>&6
8895 fi
8896 done
8897
8898 fi
8899 fi
8900
8901
8902 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8903 echo "configure:8904: checking for ANSI C header files" >&5
8904 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8905 echo $ac_n "(cached) $ac_c" 1>&6
8906 else
8907 cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure"
8909 #include "confdefs.h"
8910 #include <stdlib.h>
8911 #include <stdarg.h>
8912 #include <string.h>
8913 #include <float.h>
8914 EOF
8915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8916 { (eval echo configure:8917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8918 if test -z "$ac_err"; then
8919 rm -rf conftest*
8920 ac_cv_header_stdc=yes
8921 else
8922 echo "$ac_err" >&5
8923 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8925 rm -rf conftest*
8926 ac_cv_header_stdc=no
8927 fi
8928 rm -f conftest*
8929
8930 if test $ac_cv_header_stdc = yes; then
8931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8932 cat > conftest.$ac_ext <<EOF
8933 #line 8934 "configure"
8934 #include "confdefs.h"
8935 #include <string.h>
8936 EOF
8937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8938 egrep "memchr" >/dev/null 2>&1; then
8939 :
8940 else
8941 rm -rf conftest*
8942 ac_cv_header_stdc=no
8943 fi
8944 rm -f conftest*
8945
8946 fi
8947
8948 if test $ac_cv_header_stdc = yes; then
8949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8950 cat > conftest.$ac_ext <<EOF
8951 #line 8952 "configure"
8952 #include "confdefs.h"
8953 #include <stdlib.h>
8954 EOF
8955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8956 egrep "free" >/dev/null 2>&1; then
8957 :
8958 else
8959 rm -rf conftest*
8960 ac_cv_header_stdc=no
8961 fi
8962 rm -f conftest*
8963
8964 fi
8965
8966 if test $ac_cv_header_stdc = yes; then
8967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8968 if test "$cross_compiling" = yes; then
8969 :
8970 else
8971 cat > conftest.$ac_ext <<EOF
8972 #line 8973 "configure"
8973 #include "confdefs.h"
8974 #include <ctype.h>
8975 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8976 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8978 int main () { int i; for (i = 0; i < 256; i++)
8979 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8980 exit (0); }
8981
8982 EOF
8983 if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8984 then
8985 :
8986 else
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8989 rm -fr conftest*
8990 ac_cv_header_stdc=no
8991 fi
8992 rm -fr conftest*
8993 fi
8994
8995 fi
8996 fi
8997
8998 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8999 if test $ac_cv_header_stdc = yes; then
9000 cat >> confdefs.h <<\EOF
9001 #define STDC_HEADERS 1
9002 EOF
9003
9004 fi
9005
9006 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9007 echo "configure:9008: checking for mode_t" >&5
9008 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9009 echo $ac_n "(cached) $ac_c" 1>&6
9010 else
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include <sys/types.h>
9015 #if STDC_HEADERS
9016 #include <stdlib.h>
9017 #include <stddef.h>
9018 #endif
9019 EOF
9020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9021 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9022 rm -rf conftest*
9023 ac_cv_type_mode_t=yes
9024 else
9025 rm -rf conftest*
9026 ac_cv_type_mode_t=no
9027 fi
9028 rm -f conftest*
9029
9030 fi
9031 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9032 if test $ac_cv_type_mode_t = no; then
9033 cat >> confdefs.h <<\EOF
9034 #define mode_t int
9035 EOF
9036
9037 fi
9038
9039 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9040 echo "configure:9041: checking for off_t" >&5
9041 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9043 else
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 #include <sys/types.h>
9048 #if STDC_HEADERS
9049 #include <stdlib.h>
9050 #include <stddef.h>
9051 #endif
9052 EOF
9053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9054 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9055 rm -rf conftest*
9056 ac_cv_type_off_t=yes
9057 else
9058 rm -rf conftest*
9059 ac_cv_type_off_t=no
9060 fi
9061 rm -f conftest*
9062
9063 fi
9064 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9065 if test $ac_cv_type_off_t = no; then
9066 cat >> confdefs.h <<\EOF
9067 #define off_t long
9068 EOF
9069
9070 fi
9071
9072 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9073 echo "configure:9074: checking for pid_t" >&5
9074 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9075 echo $ac_n "(cached) $ac_c" 1>&6
9076 else
9077 cat > conftest.$ac_ext <<EOF
9078 #line 9079 "configure"
9079 #include "confdefs.h"
9080 #include <sys/types.h>
9081 #if STDC_HEADERS
9082 #include <stdlib.h>
9083 #include <stddef.h>
9084 #endif
9085 EOF
9086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9087 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9088 rm -rf conftest*
9089 ac_cv_type_pid_t=yes
9090 else
9091 rm -rf conftest*
9092 ac_cv_type_pid_t=no
9093 fi
9094 rm -f conftest*
9095
9096 fi
9097 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9098 if test $ac_cv_type_pid_t = no; then
9099 cat >> confdefs.h <<\EOF
9100 #define pid_t int
9101 EOF
9102
9103 fi
9104
9105 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9106 echo "configure:9107: checking for size_t" >&5
9107 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9108 echo $ac_n "(cached) $ac_c" 1>&6
9109 else
9110 cat > conftest.$ac_ext <<EOF
9111 #line 9112 "configure"
9112 #include "confdefs.h"
9113 #include <sys/types.h>
9114 #if STDC_HEADERS
9115 #include <stdlib.h>
9116 #include <stddef.h>
9117 #endif
9118 EOF
9119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9120 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9121 rm -rf conftest*
9122 ac_cv_type_size_t=yes
9123 else
9124 rm -rf conftest*
9125 ac_cv_type_size_t=no
9126 fi
9127 rm -f conftest*
9128
9129 fi
9130 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9131 if test $ac_cv_type_size_t = no; then
9132 cat >> confdefs.h <<\EOF
9133 #define size_t unsigned
9134 EOF
9135
9136 fi
9137
9138 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9139 echo "configure:9140: checking for uid_t in sys/types.h" >&5
9140 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9141 echo $ac_n "(cached) $ac_c" 1>&6
9142 else
9143 cat > conftest.$ac_ext <<EOF
9144 #line 9145 "configure"
9145 #include "confdefs.h"
9146 #include <sys/types.h>
9147 EOF
9148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9149 egrep "uid_t" >/dev/null 2>&1; then
9150 rm -rf conftest*
9151 ac_cv_type_uid_t=yes
9152 else
9153 rm -rf conftest*
9154 ac_cv_type_uid_t=no
9155 fi
9156 rm -f conftest*
9157
9158 fi
9159
9160 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9161 if test $ac_cv_type_uid_t = no; then
9162 cat >> confdefs.h <<\EOF
9163 #define uid_t int
9164 EOF
9165
9166 cat >> confdefs.h <<\EOF
9167 #define gid_t int
9168 EOF
9169
9170 fi
9171
9172
9173
9174 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9175 echo "configure:9176: checking for pw_gecos in struct passwd" >&5
9176 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9178 else
9179
9180 cat > conftest.$ac_ext <<EOF
9181 #line 9182 "configure"
9182 #include "confdefs.h"
9183 #include <pwd.h>
9184 int main() {
9185
9186 char *p;
9187 struct passwd *pw;
9188 p = pw->pw_gecos;
9189
9190 ; return 0; }
9191 EOF
9192 if { (eval echo configure:9193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9193 rm -rf conftest*
9194
9195 wx_cv_struct_pw_gecos=yes
9196 cat >> confdefs.h <<\EOF
9197 #define HAVE_PW_GECOS 1
9198 EOF
9199
9200
9201 else
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 rm -rf conftest*
9205
9206 wx_cv_struct_pw_gecos=no
9207
9208
9209 fi
9210 rm -f conftest*
9211
9212
9213 fi
9214
9215 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9216
9217
9218 echo $ac_n "checking for working const""... $ac_c" 1>&6
9219 echo "configure:9220: checking for working const" >&5
9220 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9221 echo $ac_n "(cached) $ac_c" 1>&6
9222 else
9223 cat > conftest.$ac_ext <<EOF
9224 #line 9225 "configure"
9225 #include "confdefs.h"
9226
9227 int main() {
9228
9229 /* Ultrix mips cc rejects this. */
9230 typedef int charset[2]; const charset x;
9231 /* SunOS 4.1.1 cc rejects this. */
9232 char const *const *ccp;
9233 char **p;
9234 /* NEC SVR4.0.2 mips cc rejects this. */
9235 struct point {int x, y;};
9236 static struct point const zero = {0,0};
9237 /* AIX XL C 1.02.0.0 rejects this.
9238 It does not let you subtract one const X* pointer from another in an arm
9239 of an if-expression whose if-part is not a constant expression */
9240 const char *g = "string";
9241 ccp = &g + (g ? g-g : 0);
9242 /* HPUX 7.0 cc rejects these. */
9243 ++ccp;
9244 p = (char**) ccp;
9245 ccp = (char const *const *) p;
9246 { /* SCO 3.2v4 cc rejects this. */
9247 char *t;
9248 char const *s = 0 ? (char *) 0 : (char const *) 0;
9249
9250 *t++ = 0;
9251 }
9252 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9253 int x[] = {25, 17};
9254 const int *foo = &x[0];
9255 ++foo;
9256 }
9257 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9258 typedef const int *iptr;
9259 iptr p = 0;
9260 ++p;
9261 }
9262 { /* AIX XL C 1.02.0.0 rejects this saying
9263 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9264 struct s { int j; const int *ap[3]; };
9265 struct s *b; b->j = 5;
9266 }
9267 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9268 const int foo = 10;
9269 }
9270
9271 ; return 0; }
9272 EOF
9273 if { (eval echo configure:9274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9274 rm -rf conftest*
9275 ac_cv_c_const=yes
9276 else
9277 echo "configure: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9279 rm -rf conftest*
9280 ac_cv_c_const=no
9281 fi
9282 rm -f conftest*
9283 fi
9284
9285 echo "$ac_t""$ac_cv_c_const" 1>&6
9286 if test $ac_cv_c_const = no; then
9287 cat >> confdefs.h <<\EOF
9288 #define const
9289 EOF
9290
9291 fi
9292
9293 echo $ac_n "checking for inline""... $ac_c" 1>&6
9294 echo "configure:9295: checking for inline" >&5
9295 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9296 echo $ac_n "(cached) $ac_c" 1>&6
9297 else
9298 ac_cv_c_inline=no
9299 for ac_kw in inline __inline__ __inline; do
9300 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9303
9304 int main() {
9305 } $ac_kw foo() {
9306 ; return 0; }
9307 EOF
9308 if { (eval echo configure:9309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9309 rm -rf conftest*
9310 ac_cv_c_inline=$ac_kw; break
9311 else
9312 echo "configure: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9314 fi
9315 rm -f conftest*
9316 done
9317
9318 fi
9319
9320 echo "$ac_t""$ac_cv_c_inline" 1>&6
9321 case "$ac_cv_c_inline" in
9322 inline | yes) ;;
9323 no) cat >> confdefs.h <<\EOF
9324 #define inline
9325 EOF
9326 ;;
9327 *) cat >> confdefs.h <<EOF
9328 #define inline $ac_cv_c_inline
9329 EOF
9330 ;;
9331 esac
9332
9333
9334 echo $ac_n "checking size of char""... $ac_c" 1>&6
9335 echo "configure:9336: checking size of char" >&5
9336 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9338 else
9339 if test "$cross_compiling" = yes; then
9340 ac_cv_sizeof_char=1
9341 else
9342 cat > conftest.$ac_ext <<EOF
9343 #line 9344 "configure"
9344 #include "confdefs.h"
9345 #include <stdio.h>
9346 main()
9347 {
9348 FILE *f=fopen("conftestval", "w");
9349 if (!f) exit(1);
9350 fprintf(f, "%d\n", sizeof(char));
9351 exit(0);
9352 }
9353 EOF
9354 if { (eval echo configure:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9355 then
9356 ac_cv_sizeof_char=`cat conftestval`
9357 else
9358 echo "configure: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9360 rm -fr conftest*
9361 ac_cv_sizeof_char=0
9362 fi
9363 rm -fr conftest*
9364 fi
9365
9366 fi
9367 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9368 cat >> confdefs.h <<EOF
9369 #define SIZEOF_CHAR $ac_cv_sizeof_char
9370 EOF
9371
9372
9373 echo $ac_n "checking size of short""... $ac_c" 1>&6
9374 echo "configure:9375: checking size of short" >&5
9375 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9377 else
9378 if test "$cross_compiling" = yes; then
9379 ac_cv_sizeof_short=2
9380 else
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <stdio.h>
9385 main()
9386 {
9387 FILE *f=fopen("conftestval", "w");
9388 if (!f) exit(1);
9389 fprintf(f, "%d\n", sizeof(short));
9390 exit(0);
9391 }
9392 EOF
9393 if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9394 then
9395 ac_cv_sizeof_short=`cat conftestval`
9396 else
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 rm -fr conftest*
9400 ac_cv_sizeof_short=0
9401 fi
9402 rm -fr conftest*
9403 fi
9404
9405 fi
9406 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9407 cat >> confdefs.h <<EOF
9408 #define SIZEOF_SHORT $ac_cv_sizeof_short
9409 EOF
9410
9411
9412 echo $ac_n "checking size of int *""... $ac_c" 1>&6
9413 echo "configure:9414: checking size of int *" >&5
9414 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9415 echo $ac_n "(cached) $ac_c" 1>&6
9416 else
9417 if test "$cross_compiling" = yes; then
9418 ac_cv_sizeof_int_p=4
9419 else
9420 cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9423 #include <stdio.h>
9424 main()
9425 {
9426 FILE *f=fopen("conftestval", "w");
9427 if (!f) exit(1);
9428 fprintf(f, "%d\n", sizeof(int *));
9429 exit(0);
9430 }
9431 EOF
9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9433 then
9434 ac_cv_sizeof_int_p=`cat conftestval`
9435 else
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 rm -fr conftest*
9439 ac_cv_sizeof_int_p=0
9440 fi
9441 rm -fr conftest*
9442 fi
9443
9444 fi
9445 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9446 cat >> confdefs.h <<EOF
9447 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9448 EOF
9449
9450
9451 echo $ac_n "checking size of int""... $ac_c" 1>&6
9452 echo "configure:9453: checking size of int" >&5
9453 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9455 else
9456 if test "$cross_compiling" = yes; then
9457 ac_cv_sizeof_int=4
9458 else
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462 #include <stdio.h>
9463 main()
9464 {
9465 FILE *f=fopen("conftestval", "w");
9466 if (!f) exit(1);
9467 fprintf(f, "%d\n", sizeof(int));
9468 exit(0);
9469 }
9470 EOF
9471 if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9472 then
9473 ac_cv_sizeof_int=`cat conftestval`
9474 else
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 rm -fr conftest*
9478 ac_cv_sizeof_int=0
9479 fi
9480 rm -fr conftest*
9481 fi
9482
9483 fi
9484 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9485 cat >> confdefs.h <<EOF
9486 #define SIZEOF_INT $ac_cv_sizeof_int
9487 EOF
9488
9489
9490 echo $ac_n "checking size of long""... $ac_c" 1>&6
9491 echo "configure:9492: checking size of long" >&5
9492 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9494 else
9495 if test "$cross_compiling" = yes; then
9496 ac_cv_sizeof_long=4
9497 else
9498 cat > conftest.$ac_ext <<EOF
9499 #line 9500 "configure"
9500 #include "confdefs.h"
9501 #include <stdio.h>
9502 main()
9503 {
9504 FILE *f=fopen("conftestval", "w");
9505 if (!f) exit(1);
9506 fprintf(f, "%d\n", sizeof(long));
9507 exit(0);
9508 }
9509 EOF
9510 if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9511 then
9512 ac_cv_sizeof_long=`cat conftestval`
9513 else
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 rm -fr conftest*
9517 ac_cv_sizeof_long=0
9518 fi
9519 rm -fr conftest*
9520 fi
9521
9522 fi
9523 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9524 cat >> confdefs.h <<EOF
9525 #define SIZEOF_LONG $ac_cv_sizeof_long
9526 EOF
9527
9528
9529 echo $ac_n "checking size of long long""... $ac_c" 1>&6
9530 echo "configure:9531: checking size of long long" >&5
9531 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9532 echo $ac_n "(cached) $ac_c" 1>&6
9533 else
9534 if test "$cross_compiling" = yes; then
9535 ac_cv_sizeof_long_long=0
9536 else
9537 cat > conftest.$ac_ext <<EOF
9538 #line 9539 "configure"
9539 #include "confdefs.h"
9540 #include <stdio.h>
9541 main()
9542 {
9543 FILE *f=fopen("conftestval", "w");
9544 if (!f) exit(1);
9545 fprintf(f, "%d\n", sizeof(long long));
9546 exit(0);
9547 }
9548 EOF
9549 if { (eval echo configure:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9550 then
9551 ac_cv_sizeof_long_long=`cat conftestval`
9552 else
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 rm -fr conftest*
9556 ac_cv_sizeof_long_long=0
9557 fi
9558 rm -fr conftest*
9559 fi
9560
9561 fi
9562 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9563 cat >> confdefs.h <<EOF
9564 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9565 EOF
9566
9567
9568
9569 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9570 echo "configure:9571: checking whether byte ordering is bigendian" >&5
9571 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9572 echo $ac_n "(cached) $ac_c" 1>&6
9573 else
9574 ac_cv_c_bigendian=unknown
9575 # See if sys/param.h defines the BYTE_ORDER macro.
9576 cat > conftest.$ac_ext <<EOF
9577 #line 9578 "configure"
9578 #include "confdefs.h"
9579 #include <sys/types.h>
9580 #include <sys/param.h>
9581 int main() {
9582
9583 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9584 bogus endian macros
9585 #endif
9586 ; return 0; }
9587 EOF
9588 if { (eval echo configure:9589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9589 rm -rf conftest*
9590 # It does; now see whether it defined to BIG_ENDIAN or not.
9591 cat > conftest.$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 #include <sys/types.h>
9595 #include <sys/param.h>
9596 int main() {
9597
9598 #if BYTE_ORDER != BIG_ENDIAN
9599 not big endian
9600 #endif
9601 ; return 0; }
9602 EOF
9603 if { (eval echo configure:9604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9604 rm -rf conftest*
9605 ac_cv_c_bigendian=yes
9606 else
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 rm -rf conftest*
9610 ac_cv_c_bigendian=no
9611 fi
9612 rm -f conftest*
9613 else
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9616 fi
9617 rm -f conftest*
9618 if test $ac_cv_c_bigendian = unknown; then
9619 if test "$cross_compiling" = yes; then
9620 ac_cv_c_bigendian=unknown
9621 else
9622 cat > conftest.$ac_ext <<EOF
9623 #line 9624 "configure"
9624 #include "confdefs.h"
9625 main () {
9626 /* Are we little or big endian? From Harbison&Steele. */
9627 union
9628 {
9629 long l;
9630 char c[sizeof (long)];
9631 } u;
9632 u.l = 1;
9633 exit (u.c[sizeof (long) - 1] == 1);
9634 }
9635 EOF
9636 if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9637 then
9638 ac_cv_c_bigendian=no
9639 else
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 rm -fr conftest*
9643 ac_cv_c_bigendian=yes
9644 fi
9645 rm -fr conftest*
9646 fi
9647
9648 fi
9649 fi
9650
9651 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9652 if test $ac_cv_c_bigendian = unknown; then
9653 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
9654 fi
9655 if test $ac_cv_c_bigendian = yes; then
9656 cat >> confdefs.h <<\EOF
9657 #define WORDS_BIGENDIAN 1
9658 EOF
9659
9660 fi
9661
9662
9663
9664 if test "$cross_compiling" = "yes"; then
9665 cat >> confdefs.h <<\EOF
9666 #define wxUSE_IOSTREAMH 1
9667 EOF
9668
9669 else
9670
9671 ac_ext=C
9672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9673 ac_cpp='$CXXCPP $CPPFLAGS'
9674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9676 cross_compiling=$ac_cv_prog_cxx_cross
9677
9678
9679 for ac_hdr in iostream
9680 do
9681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9683 echo "configure:9684: checking for $ac_hdr" >&5
9684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9686 else
9687 cat > conftest.$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9690 #include <$ac_hdr>
9691 EOF
9692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9693 { (eval echo configure:9694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9695 if test -z "$ac_err"; then
9696 rm -rf conftest*
9697 eval "ac_cv_header_$ac_safe=yes"
9698 else
9699 echo "$ac_err" >&5
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 eval "ac_cv_header_$ac_safe=no"
9704 fi
9705 rm -f conftest*
9706 fi
9707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9708 echo "$ac_t""yes" 1>&6
9709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9710 cat >> confdefs.h <<EOF
9711 #define $ac_tr_hdr 1
9712 EOF
9713
9714 else
9715 echo "$ac_t""no" 1>&6
9716 fi
9717 done
9718
9719
9720 if test "x$HAVE_IOSTREAM" = x ; then
9721 cat >> confdefs.h <<\EOF
9722 #define wxUSE_IOSTREAMH 1
9723 EOF
9724
9725 else
9726 :
9727 fi
9728
9729 ac_ext=c
9730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9731 ac_cpp='$CPP $CPPFLAGS'
9732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9734 cross_compiling=$ac_cv_prog_cc_cross
9735
9736 fi
9737
9738
9739
9740 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9741 echo "configure:9742: checking if C++ compiler supports bool" >&5
9742 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9744 else
9745
9746
9747 ac_ext=C
9748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9749 ac_cpp='$CXXCPP $CPPFLAGS'
9750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9752 cross_compiling=$ac_cv_prog_cxx_cross
9753
9754
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9758
9759
9760 int main() {
9761
9762 bool b = true;
9763
9764 return 0;
9765
9766 ; return 0; }
9767 EOF
9768 if { (eval echo configure:9769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9769 rm -rf conftest*
9770
9771 cat >> confdefs.h <<\EOF
9772 #define HAVE_BOOL 1
9773 EOF
9774
9775 wx_cv_cpp_bool=yes
9776
9777 else
9778 echo "configure: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9780 rm -rf conftest*
9781
9782 wx_cv_cpp_bool=no
9783
9784
9785 fi
9786 rm -f conftest*
9787
9788 ac_ext=c
9789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9790 ac_cpp='$CPP $CPPFLAGS'
9791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9793 cross_compiling=$ac_cv_prog_cc_cross
9794
9795
9796 fi
9797
9798 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9799
9800 if test "$wx_cv_cpp_bool" = "yes"; then
9801 cat >> confdefs.h <<\EOF
9802 #define HAVE_BOOL 1
9803 EOF
9804
9805 fi
9806
9807
9808
9809 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9810 echo "configure:9811: checking if you need GNU extensions" >&5
9811 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9813 else
9814
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 #include <features.h>
9819 int main() {
9820
9821
9822 #ifndef __GNU_LIBRARY__
9823 Compile error wanted
9824 #endif
9825
9826
9827 ; return 0; }
9828 EOF
9829 if { (eval echo configure:9830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9830 rm -rf conftest*
9831 wx_cv_gnu_extensions=yes
9832 else
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9835 rm -rf conftest*
9836 wx_cv_gnu_extensions=no
9837 fi
9838 rm -f conftest*
9839
9840 fi
9841
9842
9843 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9844 if test "$wx_cv_gnu_extensions" = "yes"; then
9845 cat >> confdefs.h <<EOF
9846 #define _GNU_SOURCE 1
9847 EOF
9848
9849 fi
9850
9851
9852
9853 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9854 echo "configure:9855: checking for wcslen in -lc" >&5
9855 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9857 echo $ac_n "(cached) $ac_c" 1>&6
9858 else
9859 ac_save_LIBS="$LIBS"
9860 LIBS="-lc $LIBS"
9861 cat > conftest.$ac_ext <<EOF
9862 #line 9863 "configure"
9863 #include "confdefs.h"
9864 /* Override any gcc2 internal prototype to avoid an error. */
9865 /* We use char because int might match the return type of a gcc2
9866 builtin and then its argument prototype would still apply. */
9867 char wcslen();
9868
9869 int main() {
9870 wcslen()
9871 ; return 0; }
9872 EOF
9873 if { (eval echo configure:9874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9874 rm -rf conftest*
9875 eval "ac_cv_lib_$ac_lib_var=yes"
9876 else
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 rm -rf conftest*
9880 eval "ac_cv_lib_$ac_lib_var=no"
9881 fi
9882 rm -f conftest*
9883 LIBS="$ac_save_LIBS"
9884
9885 fi
9886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9887 echo "$ac_t""yes" 1>&6
9888
9889 cat >> confdefs.h <<\EOF
9890 #define HAVE_WCSLEN 1
9891 EOF
9892
9893 WCHAR_LINK=""
9894
9895 else
9896 echo "$ac_t""no" 1>&6
9897
9898 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9899 echo "configure:9900: checking for wcslen in -lw" >&5
9900 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9902 echo $ac_n "(cached) $ac_c" 1>&6
9903 else
9904 ac_save_LIBS="$LIBS"
9905 LIBS="-lw $LIBS"
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 /* Override any gcc2 internal prototype to avoid an error. */
9910 /* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9912 char wcslen();
9913
9914 int main() {
9915 wcslen()
9916 ; return 0; }
9917 EOF
9918 if { (eval echo configure:9919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9919 rm -rf conftest*
9920 eval "ac_cv_lib_$ac_lib_var=yes"
9921 else
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 rm -rf conftest*
9925 eval "ac_cv_lib_$ac_lib_var=no"
9926 fi
9927 rm -f conftest*
9928 LIBS="$ac_save_LIBS"
9929
9930 fi
9931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9932 echo "$ac_t""yes" 1>&6
9933
9934 cat >> confdefs.h <<\EOF
9935 #define HAVE_WCSLEN 1
9936 EOF
9937
9938 WCHAR_LINK="-lw"
9939
9940 else
9941 echo "$ac_t""no" 1>&6
9942 fi
9943
9944
9945 fi
9946
9947
9948 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9949 echo "configure:9950: checking for vprintf" >&5
9950 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9951 echo $ac_n "(cached) $ac_c" 1>&6
9952 else
9953 cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9956 /* System header to define __stub macros and hopefully few prototypes,
9957 which can conflict with char vprintf(); below. */
9958 #include <assert.h>
9959 /* Override any gcc2 internal prototype to avoid an error. */
9960 /* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9962 char vprintf();
9963
9964 int main() {
9965
9966 /* The GNU C library defines this for functions which it implements
9967 to always fail with ENOSYS. Some functions are actually named
9968 something starting with __ and the normal name is an alias. */
9969 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9970 choke me
9971 #else
9972 vprintf();
9973 #endif
9974
9975 ; return 0; }
9976 EOF
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978 rm -rf conftest*
9979 eval "ac_cv_func_vprintf=yes"
9980 else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -rf conftest*
9984 eval "ac_cv_func_vprintf=no"
9985 fi
9986 rm -f conftest*
9987 fi
9988
9989 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9990 echo "$ac_t""yes" 1>&6
9991 cat >> confdefs.h <<\EOF
9992 #define HAVE_VPRINTF 1
9993 EOF
9994
9995 else
9996 echo "$ac_t""no" 1>&6
9997 fi
9998
9999 if test "$ac_cv_func_vprintf" != yes; then
10000 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10001 echo "configure:10002: checking for _doprnt" >&5
10002 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10003 echo $ac_n "(cached) $ac_c" 1>&6
10004 else
10005 cat > conftest.$ac_ext <<EOF
10006 #line 10007 "configure"
10007 #include "confdefs.h"
10008 /* System header to define __stub macros and hopefully few prototypes,
10009 which can conflict with char _doprnt(); below. */
10010 #include <assert.h>
10011 /* Override any gcc2 internal prototype to avoid an error. */
10012 /* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */
10014 char _doprnt();
10015
10016 int main() {
10017
10018 /* The GNU C library defines this for functions which it implements
10019 to always fail with ENOSYS. Some functions are actually named
10020 something starting with __ and the normal name is an alias. */
10021 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10022 choke me
10023 #else
10024 _doprnt();
10025 #endif
10026
10027 ; return 0; }
10028 EOF
10029 if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10030 rm -rf conftest*
10031 eval "ac_cv_func__doprnt=yes"
10032 else
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 rm -rf conftest*
10036 eval "ac_cv_func__doprnt=no"
10037 fi
10038 rm -f conftest*
10039 fi
10040
10041 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10042 echo "$ac_t""yes" 1>&6
10043 cat >> confdefs.h <<\EOF
10044 #define HAVE_DOPRNT 1
10045 EOF
10046
10047 else
10048 echo "$ac_t""no" 1>&6
10049 fi
10050
10051 fi
10052
10053
10054 for ac_func in vsnprintf
10055 do
10056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10057 echo "configure:10058: checking for $ac_func" >&5
10058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10060 else
10061 cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure"
10063 #include "confdefs.h"
10064 /* System header to define __stub macros and hopefully few prototypes,
10065 which can conflict with char $ac_func(); below. */
10066 #include <assert.h>
10067 /* Override any gcc2 internal prototype to avoid an error. */
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070 char $ac_func();
10071
10072 int main() {
10073
10074 /* The GNU C library defines this for functions which it implements
10075 to always fail with ENOSYS. Some functions are actually named
10076 something starting with __ and the normal name is an alias. */
10077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10078 choke me
10079 #else
10080 $ac_func();
10081 #endif
10082
10083 ; return 0; }
10084 EOF
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10086 rm -rf conftest*
10087 eval "ac_cv_func_$ac_func=yes"
10088 else
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 rm -rf conftest*
10092 eval "ac_cv_func_$ac_func=no"
10093 fi
10094 rm -f conftest*
10095 fi
10096
10097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10098 echo "$ac_t""yes" 1>&6
10099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10100 cat >> confdefs.h <<EOF
10101 #define $ac_tr_func 1
10102 EOF
10103 cat >> confdefs.h <<\EOF
10104 #define HAVE_VSNPRINTF 1
10105 EOF
10106
10107 else
10108 echo "$ac_t""no" 1>&6
10109 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10110
10111 fi
10112 done
10113
10114
10115
10116 ac_ext=C
10117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10118 ac_cpp='$CXXCPP $CPPFLAGS'
10119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10121 cross_compiling=$ac_cv_prog_cxx_cross
10122
10123
10124 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
10125 echo "configure:10126: checking for vsscanf" >&5
10126 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128 else
10129
10130 if test "$cross_compiling" = yes; then
10131 wx_cv_func_vsscanf=no
10132
10133 else
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 #ifdef __cplusplus
10138 extern "C" void exit(int);
10139 #endif
10140
10141 #include <stdio.h>
10142 #include <stdarg.h>
10143
10144 int try_vsscanf(const char *format, ...)
10145 {
10146 va_list ap;
10147 va_start(ap, format);
10148
10149 vsscanf("17", format, ap);
10150
10151 va_end(ap);
10152 }
10153
10154 int main()
10155 {
10156 int i;
10157 try_vsscanf("%d", &i);
10158 return i == 17 ? 0 : 1;
10159 }
10160
10161 EOF
10162 if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10163 then
10164
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_VSSCANF 1
10167 EOF
10168
10169 wx_cv_func_vsscanf=yes
10170
10171 else
10172 echo "configure: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 rm -fr conftest*
10175 wx_cv_func_vsscanf=no
10176 fi
10177 rm -fr conftest*
10178 fi
10179
10180
10181 fi
10182
10183 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10184
10185 ac_ext=c
10186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10187 ac_cpp='$CPP $CPPFLAGS'
10188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10190 cross_compiling=$ac_cv_prog_cc_cross
10191
10192
10193 if test "$TOOLKIT" != "MSW"; then
10194
10195 for ac_func in vfork
10196 do
10197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10198 echo "configure:10199: checking for $ac_func" >&5
10199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10200 echo $ac_n "(cached) $ac_c" 1>&6
10201 else
10202 cat > conftest.$ac_ext <<EOF
10203 #line 10204 "configure"
10204 #include "confdefs.h"
10205 /* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char $ac_func(); below. */
10207 #include <assert.h>
10208 /* Override any gcc2 internal prototype to avoid an error. */
10209 /* We use char because int might match the return type of a gcc2
10210 builtin and then its argument prototype would still apply. */
10211 char $ac_func();
10212
10213 int main() {
10214
10215 /* The GNU C library defines this for functions which it implements
10216 to always fail with ENOSYS. Some functions are actually named
10217 something starting with __ and the normal name is an alias. */
10218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10219 choke me
10220 #else
10221 $ac_func();
10222 #endif
10223
10224 ; return 0; }
10225 EOF
10226 if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10227 rm -rf conftest*
10228 eval "ac_cv_func_$ac_func=yes"
10229 else
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 rm -rf conftest*
10233 eval "ac_cv_func_$ac_func=no"
10234 fi
10235 rm -f conftest*
10236 fi
10237
10238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10239 echo "$ac_t""yes" 1>&6
10240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10241 cat >> confdefs.h <<EOF
10242 #define $ac_tr_func 1
10243 EOF
10244
10245 else
10246 echo "$ac_t""no" 1>&6
10247 fi
10248 done
10249
10250
10251 for ac_func in timegm
10252 do
10253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10254 echo "configure:10255: checking for $ac_func" >&5
10255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10256 echo $ac_n "(cached) $ac_c" 1>&6
10257 else
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 /* System header to define __stub macros and hopefully few prototypes,
10262 which can conflict with char $ac_func(); below. */
10263 #include <assert.h>
10264 /* Override any gcc2 internal prototype to avoid an error. */
10265 /* We use char because int might match the return type of a gcc2
10266 builtin and then its argument prototype would still apply. */
10267 char $ac_func();
10268
10269 int main() {
10270
10271 /* The GNU C library defines this for functions which it implements
10272 to always fail with ENOSYS. Some functions are actually named
10273 something starting with __ and the normal name is an alias. */
10274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10275 choke me
10276 #else
10277 $ac_func();
10278 #endif
10279
10280 ; return 0; }
10281 EOF
10282 if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10283 rm -rf conftest*
10284 eval "ac_cv_func_$ac_func=yes"
10285 else
10286 echo "configure: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 rm -rf conftest*
10289 eval "ac_cv_func_$ac_func=no"
10290 fi
10291 rm -f conftest*
10292 fi
10293
10294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10295 echo "$ac_t""yes" 1>&6
10296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10297 cat >> confdefs.h <<EOF
10298 #define $ac_tr_func 1
10299 EOF
10300
10301 else
10302 echo "$ac_t""no" 1>&6
10303 fi
10304 done
10305
10306
10307 HAVE_SOME_SLEEP_FUNC=0
10308 if test "$USE_BEOS" = 1; then
10309 cat >> confdefs.h <<\EOF
10310 #define HAVE_SLEEP 1
10311 EOF
10312
10313 HAVE_SOME_SLEEP_FUNC=1
10314 fi
10315
10316 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10317 POSIX4_LINK=
10318 for ac_func in nanosleep
10319 do
10320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10321 echo "configure:10322: checking for $ac_func" >&5
10322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10323 echo $ac_n "(cached) $ac_c" 1>&6
10324 else
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10328 /* System header to define __stub macros and hopefully few prototypes,
10329 which can conflict with char $ac_func(); below. */
10330 #include <assert.h>
10331 /* Override any gcc2 internal prototype to avoid an error. */
10332 /* We use char because int might match the return type of a gcc2
10333 builtin and then its argument prototype would still apply. */
10334 char $ac_func();
10335
10336 int main() {
10337
10338 /* The GNU C library defines this for functions which it implements
10339 to always fail with ENOSYS. Some functions are actually named
10340 something starting with __ and the normal name is an alias. */
10341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10342 choke me
10343 #else
10344 $ac_func();
10345 #endif
10346
10347 ; return 0; }
10348 EOF
10349 if { (eval echo configure:10350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10350 rm -rf conftest*
10351 eval "ac_cv_func_$ac_func=yes"
10352 else
10353 echo "configure: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10355 rm -rf conftest*
10356 eval "ac_cv_func_$ac_func=no"
10357 fi
10358 rm -f conftest*
10359 fi
10360
10361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10362 echo "$ac_t""yes" 1>&6
10363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10364 cat >> confdefs.h <<EOF
10365 #define $ac_tr_func 1
10366 EOF
10367 cat >> confdefs.h <<\EOF
10368 #define HAVE_NANOSLEEP 1
10369 EOF
10370
10371 else
10372 echo "$ac_t""no" 1>&6
10373 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
10374 echo "configure:10375: checking for nanosleep in -lposix4" >&5
10375 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10378 else
10379 ac_save_LIBS="$LIBS"
10380 LIBS="-lposix4 $LIBS"
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10383 "configure"
10383 #include "confdefs.h"
10384 /* Override any gcc2 internal prototype to avoid an error. */
10385 /* We use char because int might match the return type of a gcc2
10386 builtin and then its argument prototype would still apply. */
10387 char nanosleep();
10388
10389 int main() {
10390 nanosleep()
10391 ; return 0; }
10392 EOF
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10394 rm -rf conftest*
10395 eval "ac_cv_lib_$ac_lib_var=yes"
10396 else
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 rm -rf conftest*
10400 eval "ac_cv_lib_$ac_lib_var=no"
10401 fi
10402 rm -f conftest*
10403 LIBS="$ac_save_LIBS"
10404
10405 fi
10406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10407 echo "$ac_t""yes" 1>&6
10408
10409 cat >> confdefs.h <<\EOF
10410 #define HAVE_NANOSLEEP 1
10411 EOF
10412
10413 POSIX4_LINK="-lposix4"
10414
10415 else
10416 echo "$ac_t""no" 1>&6
10417
10418 for ac_func in usleep
10419 do
10420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10421 echo "configure:10422: checking for $ac_func" >&5
10422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424 else
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10428 /* System header to define __stub macros and hopefully few prototypes,
10429 which can conflict with char $ac_func(); below. */
10430 #include <assert.h>
10431 /* Override any gcc2 internal prototype to avoid an error. */
10432 /* We use char because int might match the return type of a gcc2
10433 builtin and then its argument prototype would still apply. */
10434 char $ac_func();
10435
10436 int main() {
10437
10438 /* The GNU C library defines this for functions which it implements
10439 to always fail with ENOSYS. Some functions are actually named
10440 something starting with __ and the normal name is an alias. */
10441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10442 choke me
10443 #else
10444 $ac_func();
10445 #endif
10446
10447 ; return 0; }
10448 EOF
10449 if { (eval echo configure:10450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10450 rm -rf conftest*
10451 eval "ac_cv_func_$ac_func=yes"
10452 else
10453 echo "configure: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10455 rm -rf conftest*
10456 eval "ac_cv_func_$ac_func=no"
10457 fi
10458 rm -f conftest*
10459 fi
10460
10461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10462 echo "$ac_t""yes" 1>&6
10463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10464 cat >> confdefs.h <<EOF
10465 #define $ac_tr_func 1
10466 EOF
10467
10468 else
10469 echo "$ac_t""no" 1>&6
10470 fi
10471 done
10472
10473 echo "configure: warning: wxSleep() function will not work" 1>&2
10474
10475
10476 fi
10477
10478
10479
10480 fi
10481 done
10482
10483 fi
10484
10485 for ac_func in uname gethostname
10486 do
10487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10488 echo "configure:10489: checking for $ac_func" >&5
10489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
10491 else
10492 cat > conftest.$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10495 /* System header to define __stub macros and hopefully few prototypes,
10496 which can conflict with char $ac_func(); below. */
10497 #include <assert.h>
10498 /* Override any gcc2 internal prototype to avoid an error. */
10499 /* We use char because int might match the return type of a gcc2
10500 builtin and then its argument prototype would still apply. */
10501 char $ac_func();
10502
10503 int main() {
10504
10505 /* The GNU C library defines this for functions which it implements
10506 to always fail with ENOSYS. Some functions are actually named
10507 something starting with __ and the normal name is an alias. */
10508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10509 choke me
10510 #else
10511 $ac_func();
10512 #endif
10513
10514 ; return 0; }
10515 EOF
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10517 rm -rf conftest*
10518 eval "ac_cv_func_$ac_func=yes"
10519 else
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10522 rm -rf conftest*
10523 eval "ac_cv_func_$ac_func=no"
10524 fi
10525 rm -f conftest*
10526 fi
10527
10528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10529 echo "$ac_t""yes" 1>&6
10530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10531 cat >> confdefs.h <<EOF
10532 #define $ac_tr_func 1
10533 EOF
10534 break
10535 else
10536 echo "$ac_t""no" 1>&6
10537 fi
10538 done
10539
10540
10541
10542 ac_ext=C
10543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10544 ac_cpp='$CXXCPP $CPPFLAGS'
10545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10547 cross_compiling=$ac_cv_prog_cxx_cross
10548
10549
10550 for ac_func in strtok_r
10551 do
10552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10553 echo "configure:10554: checking for $ac_func" >&5
10554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10555 echo $ac_n "(cached) $ac_c" 1>&6
10556 else
10557 cat > conftest.$ac_ext <<EOF
10558 #line 10559 "configure"
10559 #include "confdefs.h"
10560 /* System header to define __stub macros and hopefully few prototypes,
10561 which can conflict with char $ac_func(); below. */
10562 #include <assert.h>
10563 /* Override any gcc2 internal prototype to avoid an error. */
10564 #ifdef __cplusplus
10565 extern "C"
10566 #endif
10567 /* We use char because int might match the return type of a gcc2
10568 builtin and then its argument prototype would still apply. */
10569 char $ac_func();
10570
10571 int main() {
10572
10573 /* The GNU C library defines this for functions which it implements
10574 to always fail with ENOSYS. Some functions are actually named
10575 something starting with __ and the normal name is an alias. */
10576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10577 choke me
10578 #else
10579 $ac_func();
10580 #endif
10581
10582 ; return 0; }
10583 EOF
10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10585 rm -rf conftest*
10586 eval "ac_cv_func_$ac_func=yes"
10587 else
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10590 rm -rf conftest*
10591 eval "ac_cv_func_$ac_func=no"
10592 fi
10593 rm -f conftest*
10594 fi
10595
10596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10597 echo "$ac_t""yes" 1>&6
10598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10599 cat >> confdefs.h <<EOF
10600 #define $ac_tr_func 1
10601 EOF
10602
10603 else
10604 echo "$ac_t""no" 1>&6
10605 fi
10606 done
10607
10608
10609 ac_ext=c
10610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10611 ac_cpp='$CPP $CPPFLAGS'
10612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10614 cross_compiling=$ac_cv_prog_cc_cross
10615
10616
10617 INET_LINK=
10618 for ac_func in inet_addr
10619 do
10620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10621 echo "configure:10622: checking for $ac_func" >&5
10622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10624 else
10625 cat > conftest.$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10628 /* System header to define __stub macros and hopefully few prototypes,
10629 which can conflict with char $ac_func(); below. */
10630 #include <assert.h>
10631 /* Override any gcc2 internal prototype to avoid an error. */
10632 /* We use char because int might match the return type of a gcc2
10633 builtin and then its argument prototype would still apply. */
10634 char $ac_func();
10635
10636 int main() {
10637
10638 /* The GNU C library defines this for functions which it implements
10639 to always fail with ENOSYS. Some functions are actually named
10640 something starting with __ and the normal name is an alias. */
10641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10642 choke me
10643 #else
10644 $ac_func();
10645 #endif
10646
10647 ; return 0; }
10648 EOF
10649 if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10650 rm -rf conftest*
10651 eval "ac_cv_func_$ac_func=yes"
10652 else
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10655 rm -rf conftest*
10656 eval "ac_cv_func_$ac_func=no"
10657 fi
10658 rm -f conftest*
10659 fi
10660
10661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10662 echo "$ac_t""yes" 1>&6
10663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10664 cat >> confdefs.h <<EOF
10665 #define $ac_tr_func 1
10666 EOF
10667 cat >> confdefs.h <<\EOF
10668 #define HAVE_INET_ADDR 1
10669 EOF
10670
10671 else
10672 echo "$ac_t""no" 1>&6
10673 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
10674 echo "configure:10675: checking for inet_addr in -lnsl" >&5
10675 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10678 else
10679 ac_save_LIBS="$LIBS"
10680 LIBS="-lnsl $LIBS"
10681 cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10684 /* Override any gcc2 internal prototype to avoid an error. */
10685 /* We use char because int might match the return type of a gcc2
10686 builtin and then its argument prototype would still apply. */
10687 char inet_addr();
10688
10689 int main() {
10690 inet_addr()
10691 ; return 0; }
10692 EOF
10693 if { (eval echo configure:10694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10694 rm -rf conftest*
10695 eval "ac_cv_lib_$ac_lib_var=yes"
10696 else
10697 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10699 rm -rf conftest*
10700 eval "ac_cv_lib_$ac_lib_var=no"
10701 fi
10702 rm -f conftest*
10703 LIBS="$ac_save_LIBS"
10704
10705 fi
10706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10707 echo "$ac_t""yes" 1>&6
10708 INET_LINK="nsl"
10709 else
10710 echo "$ac_t""no" 1>&6
10711 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
10712 echo "configure:10713: checking for inet_addr in -lresolv" >&5
10713 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10716 else
10717 ac_save_LIBS="$LIBS"
10718 LIBS="-lresolv $LIBS"
10719 cat > conftest.$ac_ext <<EOF
10720 #line 10721 "configure"
10721 #include "confdefs.h"
10722 /* Override any gcc2 internal prototype to avoid an error. */
10723 /* We use char because int might match the return type of a gcc2
10724 builtin and then its argument prototype would still apply. */
10725 char inet_addr();
10726
10727 int main() {
10728 inet_addr()
10729 ; return 0; }
10730 EOF
10731 if { (eval echo configure:10732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10732 rm -rf conftest*
10733 eval "ac_cv_lib_$ac_lib_var=yes"
10734 else
10735 echo "configure: failed program was:" >&5
10736 cat conftest.$ac_ext >&5
10737 rm -rf conftest*
10738 eval "ac_cv_lib_$ac_lib_var=no"
10739 fi
10740 rm -f conftest*
10741 LIBS="$ac_save_LIBS"
10742
10743 fi
10744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10745 echo "$ac_t""yes" 1>&6
10746 INET_LINK="resolv"
10747
10748 else
10749 echo "$ac_t""no" 1>&6
10750 fi
10751
10752
10753 fi
10754
10755
10756
10757 fi
10758 done
10759
10760
10761 for ac_func in inet_aton
10762 do
10763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10764 echo "configure:10765: checking for $ac_func" >&5
10765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10766 echo $ac_n "(cached) $ac_c" 1>&6
10767 else
10768 cat > conftest.$ac_ext <<EOF
10769 #line 10770 "configure"
10770 #include "confdefs.h"
10771 /* System header to define __stub macros and hopefully few prototypes,
10772 which can conflict with char $ac_func(); below. */
10773 #include <assert.h>
10774 /* Override any gcc2 internal prototype to avoid an error. */
10775 /* We use char because int might match the return type of a gcc2
10776 builtin and then its argument prototype would still apply. */
10777 char $ac_func();
10778
10779 int main() {
10780
10781 /* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10785 choke me
10786 #else
10787 $ac_func();
10788 #endif
10789
10790 ; return 0; }
10791 EOF
10792 if { (eval echo configure:10793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10793 rm -rf conftest*
10794 eval "ac_cv_func_$ac_func=yes"
10795 else
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 rm -rf conftest*
10799 eval "ac_cv_func_$ac_func=no"
10800 fi
10801 rm -f conftest*
10802 fi
10803
10804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10805 echo "$ac_t""yes" 1>&6
10806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10807 cat >> confdefs.h <<EOF
10808 #define $ac_tr_func 1
10809 EOF
10810 cat >> confdefs.h <<\EOF
10811 #define HAVE_INET_ATON 1
10812 EOF
10813
10814 else
10815 echo "$ac_t""no" 1>&6
10816 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
10817 echo "configure:10818: checking for inet_aton in -l$INET_LINK" >&5
10818 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10821 else
10822 ac_save_LIBS="$LIBS"
10823 LIBS="-l$INET_LINK $LIBS"
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 /* We use char because int might match the return type of a gcc2
10829 builtin and then its argument prototype would still apply. */
10830 char inet_aton();
10831
10832 int main() {
10833 inet_aton()
10834 ; return 0; }
10835 EOF
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837 rm -rf conftest*
10838 eval "ac_cv_lib_$ac_lib_var=yes"
10839 else
10840 echo "configure: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10842 rm -rf conftest*
10843 eval "ac_cv_lib_$ac_lib_var=no"
10844 fi
10845 rm -f conftest*
10846 LIBS="$ac_save_LIBS"
10847
10848 fi
10849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10850 echo "$ac_t""yes" 1>&6
10851 cat >> confdefs.h <<\EOF
10852 #define HAVE_INET_ATON 1
10853 EOF
10854
10855 else
10856 echo "$ac_t""no" 1>&6
10857 fi
10858
10859
10860 fi
10861 done
10862
10863
10864 if test "x$INET_LINK" != "x"; then
10865 cat >> confdefs.h <<\EOF
10866 #define HAVE_INET_ADDR 1
10867 EOF
10868
10869 INET_LINK="-l$INET_LINK"
10870 fi
10871
10872 fi
10873
10874
10875 cat > confcache <<\EOF
10876 # This file is a shell script that caches the results of configure
10877 # tests run on this system so they can be shared between configure
10878 # scripts and configure runs. It is not useful on other systems.
10879 # If it contains results you don't want to keep, you may remove or edit it.
10880 #
10881 # By default, configure uses ./config.cache as the cache file,
10882 # creating it if it does not exist already. You can give configure
10883 # the --cache-file=FILE option to use a different cache file; that is
10884 # what configure does when it calls configure scripts in
10885 # subdirectories, so they share the cache.
10886 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10887 # config.status only pays attention to the cache file if you give it the
10888 # --recheck option to rerun configure.
10889 #
10890 EOF
10891 # The following way of writing the cache mishandles newlines in values,
10892 # but we know of no workaround that is simple, portable, and efficient.
10893 # So, don't put newlines in cache variables' values.
10894 # Ultrix sh set writes to stderr and can't be redirected directly,
10895 # and sets the high bit in the cache file unless we assign to the vars.
10896 (set) 2>&1 |
10897 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10898 *ac_space=\ *)
10899 # `set' does not quote correctly, so add quotes (double-quote substitution
10900 # turns \\\\ into \\, and sed turns \\ into \).
10901 sed -n \
10902 -e "s/'/'\\\\''/g" \
10903 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10904 ;;
10905 *)
10906 # `set' quotes correctly as required by POSIX, so do not add quotes.
10907 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10908 ;;
10909 esac >> confcache
10910 if cmp -s $cache_file confcache; then
10911 :
10912 else
10913 if test -w $cache_file; then
10914 echo "updating cache $cache_file"
10915 cat confcache > $cache_file
10916 else
10917 echo "not updating unwritable cache $cache_file"
10918 fi
10919 fi
10920 rm -f confcache
10921
10922
10923
10924 if test "$TOOLKIT" != "MSW"; then
10925
10926
10927 THREADS_LINK=""
10928 THREADS_OBJ=""
10929
10930 if test "$wxUSE_THREADS" = "yes" ; then
10931 if test "$wxUSE_WINE" = 1 ; then
10932 echo "configure: warning: Threads are not supported under WINE" 1>&2
10933 wxUSE_THREADS="no"
10934 elif test "$USE_BEOS" = 1; then
10935 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10936 wxUSE_THREADS="no"
10937 fi
10938 fi
10939
10940 if test "$wxUSE_THREADS" = "yes" ; then
10941
10942 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10943 echo "configure:10944: checking for pthread_create in -lpthread" >&5
10944 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10947 else
10948 ac_save_LIBS="$LIBS"
10949 LIBS="-lpthread $LIBS"
10950 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure"
10952 #include "confdefs.h"
10953 /* Override any gcc2 internal prototype to avoid an error. */
10954 /* We use char because int might match the return type of a gcc2
10955 builtin and then its argument prototype would still apply. */
10956 char pthread_create();
10957
10958 int main() {
10959 pthread_create()
10960 ; return 0; }
10961 EOF
10962 if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10963 rm -rf conftest*
10964 eval "ac_cv_lib_$ac_lib_var=yes"
10965 else
10966 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10968 rm -rf conftest*
10969 eval "ac_cv_lib_$ac_lib_var=no"
10970 fi
10971 rm -f conftest*
10972 LIBS="$ac_save_LIBS"
10973
10974 fi
10975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10976 echo "$ac_t""yes" 1>&6
10977
10978 THREADS_OBJ="threadpsx.lo"
10979 THREADS_LINK="pthread"
10980
10981 else
10982 echo "$ac_t""no" 1>&6
10983
10984 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10985 echo "configure:10986: checking for pthread_create in -lc_r" >&5
10986 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10989 else
10990 ac_save_LIBS="$LIBS"
10991 LIBS="-lc_r $LIBS"
10992 cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10995 /* Override any gcc2 internal prototype to avoid an error. */
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998 char pthread_create();
10999
11000 int main() {
11001 pthread_create()
11002 ; return 0; }
11003 EOF
11004 if { (eval echo configure:11005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11005 rm -rf conftest*
11006 eval "ac_cv_lib_$ac_lib_var=yes"
11007 else
11008 echo "configure: failed program was:" >&5
11009 cat conftest.$ac_ext >&5
11010 rm -rf conftest*
11011 eval "ac_cv_lib_$ac_lib_var=no"
11012 fi
11013 rm -f conftest*
11014 LIBS="$ac_save_LIBS"
11015
11016 fi
11017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11018 echo "$ac_t""yes" 1>&6
11019
11020 THREADS_OBJ="threadpsx.lo"
11021 THREADS_LINK="c_r"
11022
11023 else
11024 echo "$ac_t""no" 1>&6
11025
11026 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
11027 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
11028 echo "configure:11029: checking for sys/prctl.h" >&5
11029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11030 echo $ac_n "(cached) $ac_c" 1>&6
11031 else
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035 #include <sys/prctl.h>
11036 EOF
11037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11038 { (eval echo configure:11039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11040 if test -z "$ac_err"; then
11041 rm -rf conftest*
11042 eval "ac_cv_header_$ac_safe=yes"
11043 else
11044 echo "$ac_err" >&5
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11047 rm -rf conftest*
11048 eval "ac_cv_header_$ac_safe=no"
11049 fi
11050 rm -f conftest*
11051 fi
11052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11053 echo "$ac_t""yes" 1>&6
11054
11055 THREADS_OBJ="threadsgi.lo"
11056
11057 else
11058 echo "$ac_t""no" 1>&6
11059 fi
11060
11061
11062 fi
11063
11064
11065 fi
11066
11067
11068 if test -z "$THREADS_OBJ" ; then
11069 wxUSE_THREADS=no
11070 echo "configure: warning: No thread support on this system" 1>&2
11071 fi
11072 fi
11073
11074 if test "$wxUSE_THREADS" = "yes" ; then
11075 for ac_func in thr_setconcurrency
11076 do
11077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11078 echo "configure:11079: checking for $ac_func" >&5
11079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11080 echo $ac_n "(cached) $ac_c" 1>&6
11081 else
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11085 /* System header to define __stub macros and hopefully few prototypes,
11086 which can conflict with char $ac_func(); below. */
11087 #include <assert.h>
11088 /* Override any gcc2 internal prototype to avoid an error. */
11089 /* We use char because int might match the return type of a gcc2
11090 builtin and then its argument prototype would still apply. */
11091 char $ac_func();
11092
11093 int main() {
11094
11095 /* The GNU C library defines this for functions which it implements
11096 to always fail with ENOSYS. Some functions are actually named
11097 something starting with __ and the normal name is an alias. */
11098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11099 choke me
11100 #else
11101 $ac_func();
11102 #endif
11103
11104 ; return 0; }
11105 EOF
11106 if { (eval echo configure:11107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11107 rm -rf conftest*
11108 eval "ac_cv_func_$ac_func=yes"
11109 else
11110 echo "configure: failed program was:" >&5
11111 cat conftest.$ac_ext >&5
11112 rm -rf conftest*
11113 eval "ac_cv_func_$ac_func=no"
11114 fi
11115 rm -f conftest*
11116 fi
11117
11118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11119 echo "$ac_t""yes" 1>&6
11120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11121 cat >> confdefs.h <<EOF
11122 #define $ac_tr_func 1
11123 EOF
11124
11125 else
11126 echo "$ac_t""no" 1>&6
11127 fi
11128 done
11129
11130
11131
11132 for ac_hdr in sched.h
11133 do
11134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11136 echo "configure:11137: checking for $ac_hdr" >&5
11137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11138 echo $ac_n "(cached) $ac_c" 1>&6
11139 else
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11143 #include <$ac_hdr>
11144 EOF
11145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11146 { (eval echo configure:11147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11148 if test -z "$ac_err"; then
11149 rm -rf conftest*
11150 eval "ac_cv_header_$ac_safe=yes"
11151 else
11152 echo "$ac_err" >&5
11153 echo "configure: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
11155 rm -rf conftest*
11156 eval "ac_cv_header_$ac_safe=no"
11157 fi
11158 rm -f conftest*
11159 fi
11160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11161 echo "$ac_t""yes" 1>&6
11162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11163 cat >> confdefs.h <<EOF
11164 #define $ac_tr_hdr 1
11165 EOF
11166
11167 else
11168 echo "$ac_t""no" 1>&6
11169 fi
11170 done
11171
11172
11173 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
11174 echo "configure:11175: checking for sched_yield in -l$THREADS_LINK" >&5
11175 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11178 else
11179 ac_save_LIBS="$LIBS"
11180 LIBS="-l$THREADS_LINK $LIBS"
11181 cat > conftest.$ac_ext <<EOF
11182 #line 11183 "configure"
11183 #include "confdefs.h"
11184 /* Override any gcc2 internal prototype to avoid an error. */
11185 /* We use char because int might match the return type of a gcc2
11186 builtin and then its argument prototype would still apply. */
11187 char sched_yield();
11188
11189 int main() {
11190 sched_yield()
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_lib_$ac_lib_var=yes"
11196 else
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 rm -rf conftest*
11200 eval "ac_cv_lib_$ac_lib_var=no"
11201 fi
11202 rm -f conftest*
11203 LIBS="$ac_save_LIBS"
11204
11205 fi
11206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11207 echo "$ac_t""yes" 1>&6
11208 cat >> confdefs.h <<\EOF
11209 #define HAVE_SCHED_YIELD 1
11210 EOF
11211
11212 else
11213 echo "$ac_t""no" 1>&6
11214 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
11215 echo "configure:11216: checking for sched_yield in -l"posix4"" >&5
11216 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11218 echo $ac_n "(cached) $ac_c" 1>&6
11219 else
11220 ac_save_LIBS="$LIBS"
11221 LIBS="-l"posix4" $LIBS"
11222 cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11225 /* Override any gcc2 internal prototype to avoid an error. */
11226 /* We use char because int might match the return type of a gcc2
11227 builtin and then its argument prototype would still apply. */
11228 char sched_yield();
11229
11230 int main() {
11231 sched_yield()
11232 ; return 0; }
11233 EOF
11234 if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11235 rm -rf conftest*
11236 eval "ac_cv_lib_$ac_lib_var=yes"
11237 else
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 rm -rf conftest*
11241 eval "ac_cv_lib_$ac_lib_var=no"
11242 fi
11243 rm -f conftest*
11244 LIBS="$ac_save_LIBS"
11245
11246 fi
11247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11249 cat >> confdefs.h <<\EOF
11250 #define HAVE_SCHED_YIELD 1
11251 EOF
11252 POSIX4_LINK="-lposix4"
11253 else
11254 echo "$ac_t""no" 1>&6
11255 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11256
11257 fi
11258
11259
11260 fi
11261
11262
11263 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
11264 echo "configure:11265: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
11265 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11267 echo $ac_n "(cached) $ac_c" 1>&6
11268 else
11269 ac_save_LIBS="$LIBS"
11270 LIBS="-l$THREADS_LINK $LIBS"
11271 cat > conftest.$ac_ext <<EOF
11272 #line 11273 "configure"
11273 #include "confdefs.h"
11274 /* Override any gcc2 internal prototype to avoid an error. */
11275 /* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11277 char pthread_attr_getschedpolicy();
11278
11279 int main() {
11280 pthread_attr_getschedpolicy()
11281 ; return 0; }
11282 EOF
11283 if { (eval echo configure:11284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11284 rm -rf conftest*
11285 eval "ac_cv_lib_$ac_lib_var=yes"
11286 else
11287 echo "configure: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11289 rm -rf conftest*
11290 eval "ac_cv_lib_$ac_lib_var=no"
11291 fi
11292 rm -f conftest*
11293 LIBS="$ac_save_LIBS"
11294
11295 fi
11296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11297 echo "$ac_t""yes" 1>&6
11298 cat >> confdefs.h <<\EOF
11299 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11300 EOF
11301
11302 else
11303 echo "$ac_t""no" 1>&6
11304 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
11305 echo "configure:11306: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
11306 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309 else
11310 ac_save_LIBS="$LIBS"
11311 LIBS="-l"posix4" $LIBS"
11312 cat > conftest.$ac_ext <<EOF
11313 #line 11314 "configure"
11314 #include "confdefs.h"
11315 /* Override any gcc2 internal prototype to avoid an error. */
11316 /* We use char because int might match the return type of a gcc2
11317 builtin and then its argument prototype would still apply. */
11318 char pthread_attr_getschedpolicy();
11319
11320 int main() {
11321 pthread_attr_getschedpolicy()
11322 ; return 0; }
11323 EOF
11324 if { (eval echo configure:11325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11325 rm -rf conftest*
11326 eval "ac_cv_lib_$ac_lib_var=yes"
11327 else
11328 echo "configure: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 rm -rf conftest*
11331 eval "ac_cv_lib_$ac_lib_var=no"
11332 fi
11333 rm -f conftest*
11334 LIBS="$ac_save_LIBS"
11335
11336 fi
11337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11339 cat >> confdefs.h <<\EOF
11340 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11341 EOF
11342 POSIX4_LINK="-lposix4"
11343 else
11344 echo "$ac_t""no" 1>&6
11345 echo "configure: warning: Setting thread priority will not work" 1>&2
11346
11347 fi
11348
11349
11350 fi
11351
11352
11353 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
11354 echo "configure:11355: checking for pthread_cancel in -l$THREADS_LINK" >&5
11355 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11358 else
11359 ac_save_LIBS="$LIBS"
11360 LIBS="-l$THREADS_LINK $LIBS"
11361 cat > conftest.$ac_ext <<EOF
11362 #line 11363 "configure"
11363 #include "confdefs.h"
11364 /* Override any gcc2 internal prototype to avoid an error. */
11365 /* We use char because int might match the return type of a gcc2
11366 builtin and then its argument prototype would still apply. */
11367 char pthread_cancel();
11368
11369 int main() {
11370 pthread_cancel()
11371 ; return 0; }
11372 EOF
11373 if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11374 rm -rf conftest*
11375 eval "ac_cv_lib_$ac_lib_var=yes"
11376 else
11377 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11379 rm -rf conftest*
11380 eval "ac_cv_lib_$ac_lib_var=no"
11381 fi
11382 rm -f conftest*
11383 LIBS="$ac_save_LIBS"
11384
11385 fi
11386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11387 echo "$ac_t""yes" 1>&6
11388 cat >> confdefs.h <<\EOF
11389 #define HAVE_PTHREAD_CANCEL 1
11390 EOF
11391
11392 else
11393 echo "$ac_t""no" 1>&6
11394 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11395 fi
11396
11397
11398 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
11399 echo "configure:11400: checking for pthread_cleanup_push/pop" >&5
11400 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11401 echo $ac_n "(cached) $ac_c" 1>&6
11402 else
11403
11404 cat > conftest.$ac_ext <<EOF
11405 #line 11406 "configure"
11406 #include "confdefs.h"
11407 #include <pthread.h>
11408 int main() {
11409
11410 pthread_cleanup_push(NULL, NULL);
11411 pthread_cleanup_pop(0);
11412
11413 ; return 0; }
11414 EOF
11415 if { (eval echo configure:11416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11416 rm -rf conftest*
11417
11418 wx_cv_func_pthread_cleanup_push=yes
11419 cat >> confdefs.h <<\EOF
11420 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11421 EOF
11422
11423
11424 else
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 rm -rf conftest*
11428
11429 wx_cv_func_pthread_cleanup_push=no
11430
11431 fi
11432 rm -f conftest*
11433
11434 fi
11435
11436 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11437
11438 THREADS_LINK="-l$THREADS_LINK"
11439 fi
11440
11441 fi
11442
11443 if test "$wxUSE_THREADS" = "yes"; then
11444 cat >> confdefs.h <<\EOF
11445 #define wxUSE_THREADS 1
11446 EOF
11447
11448
11449 CFLAGS="${CFLAGS} -D_REENTRANT"
11450 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11451
11452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11453 else
11454 if test "$ac_cv_func_strtok_r" = "yes"; then
11455 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
11456 echo "configure:11457: checking if -D_REENTRANT is needed" >&5
11457 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11458 CFLAGS="${CFLAGS} -D_REENTRANT"
11459 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11460 echo "$ac_t""yes" 1>&6
11461 else
11462 echo "$ac_t""no" 1>&6
11463 fi
11464 fi
11465 fi
11466
11467 if test "$WXGTK13" = 1 ; then
11468 cat >> confdefs.h <<EOF
11469 #define __WXGTK13__ $WXGTK13
11470 EOF
11471
11472 WXGTK12=1
11473 fi
11474
11475 if test "$WXGTK12" = 1 ; then
11476 cat >> confdefs.h <<EOF
11477 #define __WXGTK12__ $WXGTK12
11478 EOF
11479
11480 fi
11481
11482 if test "$WXWINE" = 1 ; then
11483 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11484 fi
11485
11486 if test "$wxUSE_CYGWIN" = 1 ; then
11487 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11488 fi
11489
11490 WXDEBUG=
11491
11492 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11493 WXDEBUG="-g"
11494 wxUSE_OPTIMISE=no
11495 fi
11496
11497 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11498 wxUSE_DEBUG_INFO=yes
11499 WXDEBUG="-ggdb"
11500 fi
11501
11502 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11503 cat >> confdefs.h <<\EOF
11504 #define WXDEBUG 1
11505 EOF
11506
11507 WXDEBUG_DEFINE="-D__WXDEBUG__"
11508 else
11509 if test "$wxUSE_GTK" = 1 ; then
11510 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11511 fi
11512 fi
11513
11514 if test "$wxUSE_MEM_TRACING" = "yes" ; then
11515 cat >> confdefs.h <<\EOF
11516 #define wxUSE_MEMORY_TRACING 1
11517 EOF
11518
11519 cat >> confdefs.h <<\EOF
11520 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11521 EOF
11522
11523 cat >> confdefs.h <<\EOF
11524 #define wxUSE_DEBUG_NEW_ALWAYS 1
11525 EOF
11526
11527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11528 fi
11529
11530 if test "$wxUSE_DMALLOC" = "yes" ; then
11531 DMALLOC_LINK="-ldmalloc"
11532 fi
11533
11534 PROFILE=
11535 if test "$wxUSE_PROFILE" = "yes" ; then
11536 PROFILE="-pg"
11537 fi
11538
11539 DEP_INFO_FLAGS=
11540 CODE_GEN_FLAGS=
11541 if test "$GCC" = yes ; then
11542 if test "$wxUSE_NO_RTTI" = "yes" ; then
11543 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
11544 fi
11545 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11546 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
11547 fi
11548 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11549 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
11550 fi
11551 if test "$wxUSE_NO_DEPS" = "no" ; then
11552 DEP_INFO_FLAGS="-MMD"
11553 fi
11554 fi
11555
11556
11557 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11558 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11559 if test "$wxUSE_OPTIMISE" = "no" ; then
11560 OPTIMISE=
11561 else
11562 if test "$GCC" = yes ; then
11563 OPTIMISE="-O2"
11564 case "${host}" in
11565 i586-*-*|i686-*-* )
11566 OPTIMISE="${OPTIMISE} "
11567 ;;
11568 esac
11569 else
11570 OPTIMISE="-O"
11571 fi
11572 fi
11573
11574
11575 ZLIB_INCLUDE=
11576 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
11577 cat >> confdefs.h <<\EOF
11578 #define wxUSE_ZLIB 1
11579 EOF
11580
11581 if test "$wxUSE_ZLIB" = "yes" ; then
11582 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11583 else
11584 ZLIB_LINK=
11585 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11586 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11587 echo "configure:11588: checking for zlib.h" >&5
11588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11589 echo $ac_n "(cached) $ac_c" 1>&6
11590 else
11591 cat > conftest.$ac_ext <<EOF
11592 #line 11593 "configure"
11593 #include "confdefs.h"
11594 #include <zlib.h>
11595 EOF
11596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11597 { (eval echo configure:11598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11599 if test -z "$ac_err"; then
11600 rm -rf conftest*
11601 eval "ac_cv_header_$ac_safe=yes"
11602 else
11603 echo "$ac_err" >&5
11604 echo "configure: failed program was:" >&5
11605 cat conftest.$ac_ext >&5
11606 rm -rf conftest*
11607 eval "ac_cv_header_$ac_safe=no"
11608 fi
11609 rm -f conftest*
11610 fi
11611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11612 echo "$ac_t""yes" 1>&6
11613 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11614 echo "configure:11615: checking for deflate in -lz" >&5
11615 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618 else
11619 ac_save_LIBS="$LIBS"
11620 LIBS="-lz $LIBS"
11621 cat > conftest.$ac_ext <<EOF
11622 #line 11623 "configure"
11623 #include "confdefs.h"
11624 /* Override any gcc2 internal prototype to avoid an error. */
11625 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11627 char deflate();
11628
11629 int main() {
11630 deflate()
11631 ; return 0; }
11632 EOF
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11634 rm -rf conftest*
11635 eval "ac_cv_lib_$ac_lib_var=yes"
11636 else
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11639 rm -rf conftest*
11640 eval "ac_cv_lib_$ac_lib_var=no"
11641 fi
11642 rm -f conftest*
11643 LIBS="$ac_save_LIBS"
11644
11645 fi
11646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11647 echo "$ac_t""yes" 1>&6
11648 ZLIB_LINK="-lz"
11649 else
11650 echo "$ac_t""no" 1>&6
11651 fi
11652
11653 else
11654 echo "$ac_t""no" 1>&6
11655 fi
11656
11657 if test "x$ZLIB_LINK" = "x" ; then
11658 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
11659 fi
11660 fi
11661 fi
11662
11663 PNG_INCLUDE=
11664 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
11665 cat >> confdefs.h <<\EOF
11666 #define wxUSE_LIBPNG 1
11667 EOF
11668
11669 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11670 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
11671 wxUSE_LIBPNG=yes
11672 fi
11673
11674 if test "$wxUSE_LIBPNG" = "yes" ; then
11675 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11676 else
11677 PNG_LINK=
11678 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11679 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11680 echo "configure:11681: checking for png.h" >&5
11681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11682 echo $ac_n "(cached) $ac_c" 1>&6
11683 else
11684 cat > conftest.$ac_ext <<EOF
11685 #line 11686 "configure"
11686 #include "confdefs.h"
11687 #include <png.h>
11688 EOF
11689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11690 { (eval echo configure:11691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11692 if test -z "$ac_err"; then
11693 rm -rf conftest*
11694 eval "ac_cv_header_$ac_safe=yes"
11695 else
11696 echo "$ac_err" >&5
11697 echo "configure: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 rm -rf conftest*
11700 eval "ac_cv_header_$ac_safe=no"
11701 fi
11702 rm -f conftest*
11703 fi
11704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11705 echo "$ac_t""yes" 1>&6
11706 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11707 echo "configure:11708: checking for png_check_sig in -lpng" >&5
11708 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11711 else
11712 ac_save_LIBS="$LIBS"
11713 LIBS="-lpng -lz -lm $LIBS"
11714 cat > conftest.$ac_ext <<EOF
11715 #line 11716 "configure"
11716 #include "confdefs.h"
11717 /* Override any gcc2 internal prototype to avoid an error. */
11718 /* We use char because int might match the return type of a gcc2
11719 builtin and then its argument prototype would still apply. */
11720 char png_check_sig();
11721
11722 int main() {
11723 png_check_sig()
11724 ; return 0; }
11725 EOF
11726 if { (eval echo configure:11727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11727 rm -rf conftest*
11728 eval "ac_cv_lib_$ac_lib_var=yes"
11729 else
11730 echo "configure: failed program was:" >&5
11731 cat conftest.$ac_ext >&5
11732 rm -rf conftest*
11733 eval "ac_cv_lib_$ac_lib_var=no"
11734 fi
11735 rm -f conftest*
11736 LIBS="$ac_save_LIBS"
11737
11738 fi
11739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11740 echo "$ac_t""yes" 1>&6
11741 PNG_LINK="-lpng"
11742 else
11743 echo "$ac_t""no" 1>&6
11744 fi
11745
11746
11747 else
11748 echo "$ac_t""no" 1>&6
11749 fi
11750
11751 if test "x$PNG_LINK" = "x" ; then
11752 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
11753 fi
11754 fi
11755
11756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11757 fi
11758
11759 JPEG_INCLUDE=
11760 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
11761 cat >> confdefs.h <<\EOF
11762 #define wxUSE_LIBJPEG 1
11763 EOF
11764
11765 if test "$wxUSE_LIBJPEG" = "yes" ; then
11766 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11767 else
11768 JPEG_LINK=
11769 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
11770 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11771 echo "configure:11772: checking for jpeglib.h" >&5
11772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11774 else
11775 cat > conftest.$ac_ext <<EOF
11776 #line 11777 "configure"
11777 #include "confdefs.h"
11778 #include <jpeglib.h>
11779 EOF
11780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11781 { (eval echo configure:11782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11783 if test -z "$ac_err"; then
11784 rm -rf conftest*
11785 eval "ac_cv_header_$ac_safe=yes"
11786 else
11787 echo "$ac_err" >&5
11788 echo "configure: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11790 rm -rf conftest*
11791 eval "ac_cv_header_$ac_safe=no"
11792 fi
11793 rm -f conftest*
11794 fi
11795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11796 echo "$ac_t""yes" 1>&6
11797 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11798 echo "configure:11799: checking for jpeg_read_header in -ljpeg" >&5
11799 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11801 echo $ac_n "(cached) $ac_c" 1>&6
11802 else
11803 ac_save_LIBS="$LIBS"
11804 LIBS="-ljpeg $LIBS"
11805 cat > conftest.$ac_ext <<EOF
11806 #line 11807 "configure"
11807 #include "confdefs.h"
11808 /* Override any gcc2 internal prototype to avoid an error. */
11809 /* We use char because int might match the return type of a gcc2
11810 builtin and then its argument prototype would still apply. */
11811 char jpeg_read_header();
11812
11813 int main() {
11814 jpeg_read_header()
11815 ; return 0; }
11816 EOF
11817 if { (eval echo configure:11818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11818 rm -rf conftest*
11819 eval "ac_cv_lib_$ac_lib_var=yes"
11820 else
11821 echo "configure: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11823 rm -rf conftest*
11824 eval "ac_cv_lib_$ac_lib_var=no"
11825 fi
11826 rm -f conftest*
11827 LIBS="$ac_save_LIBS"
11828
11829 fi
11830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11831 echo "$ac_t""yes" 1>&6
11832 JPEG_LINK="-ljpeg"
11833 else
11834 echo "$ac_t""no" 1>&6
11835 fi
11836
11837 else
11838 echo "$ac_t""no" 1>&6
11839 fi
11840
11841 if test "x$JPEG_LINK" = "x" ; then
11842 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
11843 fi
11844 fi
11845 fi
11846
11847 TIFF_INCLUDE=
11848 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
11849 cat >> confdefs.h <<\EOF
11850 #define wxUSE_LIBTIFF 1
11851 EOF
11852
11853 if test "$wxUSE_LIBTIFF" = "yes" ; then
11854 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11855 else
11856 TIFF_LINK=
11857 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11858 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11859 echo "configure:11860: checking for tiffio.h" >&5
11860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11861 echo $ac_n "(cached) $ac_c" 1>&6
11862 else
11863 cat > conftest.$ac_ext <<EOF
11864 #line 11865 "configure"
11865 #include "confdefs.h"
11866 #include <tiffio.h>
11867 EOF
11868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11869 { (eval echo configure:11870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11871 if test -z "$ac_err"; then
11872 rm -rf conftest*
11873 eval "ac_cv_header_$ac_safe=yes"
11874 else
11875 echo "$ac_err" >&5
11876 echo "configure: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11878 rm -rf conftest*
11879 eval "ac_cv_header_$ac_safe=no"
11880 fi
11881 rm -f conftest*
11882 fi
11883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11884 echo "$ac_t""yes" 1>&6
11885 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11886 echo "configure:11887: checking for TIFFError in -ltiff" >&5
11887 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11889 echo $ac_n "(cached) $ac_c" 1>&6
11890 else
11891 ac_save_LIBS="$LIBS"
11892 LIBS="-ltiff -lm $LIBS"
11893 cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure"
11895 #include "confdefs.h"
11896 /* Override any gcc2 internal prototype to avoid an error. */
11897 /* We use char because int might match the return type of a gcc2
11898 builtin and then its argument prototype would still apply. */
11899 char TIFFError();
11900
11901 int main() {
11902 TIFFError()
11903 ; return 0; }
11904 EOF
11905 if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11906 rm -rf conftest*
11907 eval "ac_cv_lib_$ac_lib_var=yes"
11908 else
11909 echo "configure: failed program was:" >&5
11910 cat conftest.$ac_ext >&5
11911 rm -rf conftest*
11912 eval "ac_cv_lib_$ac_lib_var=no"
11913 fi
11914 rm -f conftest*
11915 LIBS="$ac_save_LIBS"
11916
11917 fi
11918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11919 echo "$ac_t""yes" 1>&6
11920 TIFF_LINK="-ltiff"
11921 else
11922 echo "$ac_t""no" 1>&6
11923 fi
11924
11925 else
11926 echo "$ac_t""no" 1>&6
11927 fi
11928
11929 if test "x$TIFF_LINK" = "x" ; then
11930 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
11931 fi
11932 fi
11933 fi
11934
11935 if test "$wxUSE_OPENGL" = "yes"; then
11936 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11937 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11938 echo "configure:11939: checking for GL/gl.h" >&5
11939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11941 else
11942 cat > conftest.$ac_ext <<EOF
11943 #line 11944 "configure"
11944 #include "confdefs.h"
11945 #include <GL/gl.h>
11946 EOF
11947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11948 { (eval echo configure:11949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11950 if test -z "$ac_err"; then
11951 rm -rf conftest*
11952 eval "ac_cv_header_$ac_safe=yes"
11953 else
11954 echo "$ac_err" >&5
11955 echo "configure: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11957 rm -rf conftest*
11958 eval "ac_cv_header_$ac_safe=no"
11959 fi
11960 rm -f conftest*
11961 fi
11962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11963 echo "$ac_t""yes" 1>&6
11964
11965 cat >> confdefs.h <<\EOF
11966 #define wxUSE_OPENGL 1
11967 EOF
11968
11969 cat >> confdefs.h <<\EOF
11970 #define wxUSE_GLCANVAS 1
11971 EOF
11972
11973 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11974 echo "configure:11975: checking for glFlush in -lGL" >&5
11975 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11977 echo $ac_n "(cached) $ac_c" 1>&6
11978 else
11979 ac_save_LIBS="$LIBS"
11980 LIBS="-lGL $LIBS"
11981 cat > conftest.$ac_ext <<EOF
11982 #line 11983 "configure"
11983 #include "confdefs.h"
11984 /* Override any gcc2 internal prototype to avoid an error. */
11985 /* We use char because int might match the return type of a gcc2
11986 builtin and then its argument prototype would still apply. */
11987 char glFlush();
11988
11989 int main() {
11990 glFlush()
11991 ; return 0; }
11992 EOF
11993 if { (eval echo configure:11994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11994 rm -rf conftest*
11995 eval "ac_cv_lib_$ac_lib_var=yes"
11996 else
11997 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
11999 rm -rf conftest*
12000 eval "ac_cv_lib_$ac_lib_var=no"
12001 fi
12002 rm -f conftest*
12003 LIBS="$ac_save_LIBS"
12004
12005 fi
12006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12007 echo "$ac_t""yes" 1>&6
12008
12009 OPENGL_LINK="-lGL"
12010
12011 else
12012 echo "$ac_t""no" 1>&6
12013
12014 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
12015 echo "configure:12016: checking for glFlush in -lMesaGL" >&5
12016 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
12017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12018 echo $ac_n "(cached) $ac_c" 1>&6
12019 else
12020 ac_save_LIBS="$LIBS"
12021 LIBS="-lMesaGL $LIBS"
12022 cat > conftest.$ac_ext <<EOF
12023 #line 12024 "configure"
12024 #include "confdefs.h"
12025 /* Override any gcc2 internal prototype to avoid an error. */
12026 /* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
12028 char glFlush();
12029
12030 int main() {
12031 glFlush()
12032 ; return 0; }
12033 EOF
12034 if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12035 rm -rf conftest*
12036 eval "ac_cv_lib_$ac_lib_var=yes"
12037 else
12038 echo "configure: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12040 rm -rf conftest*
12041 eval "ac_cv_lib_$ac_lib_var=no"
12042 fi
12043 rm -f conftest*
12044 LIBS="$ac_save_LIBS"
12045
12046 fi
12047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12048 echo "$ac_t""yes" 1>&6
12049
12050 OPENGL_LINK="-lMesaGL"
12051
12052 else
12053 echo "$ac_t""no" 1>&6
12054 fi
12055
12056
12057 fi
12058
12059
12060 else
12061 echo "$ac_t""no" 1>&6
12062 wxUSE_OPENGL=0
12063 fi
12064
12065 fi
12066
12067
12068 if test "$wxUSE_GUI" = "yes"; then
12069 cat >> confdefs.h <<\EOF
12070 #define wxUSE_GUI 1
12071 EOF
12072
12073
12074 else
12075 cat >> confdefs.h <<\EOF
12076 #define wxUSE_NOGUI 1
12077 EOF
12078
12079 fi
12080
12081
12082 if test "$wxUSE_UNIX" = "yes"; then
12083 cat >> confdefs.h <<\EOF
12084 #define wxUSE_UNIX 1
12085 EOF
12086
12087 fi
12088
12089
12090 if test "$wxUSE_APPLE_IEEE" = "yes"; then
12091 cat >> confdefs.h <<\EOF
12092 #define wxUSE_APPLE_IEEE 1
12093 EOF
12094
12095 fi
12096
12097 if test "$wxUSE_WAVE" = "yes"; then
12098 cat >> confdefs.h <<\EOF
12099 #define wxUSE_WAVE 1
12100 EOF
12101
12102 fi
12103
12104 if test "$wxUSE_FILE" = "yes"; then
12105 cat >> confdefs.h <<\EOF
12106 #define wxUSE_FILE 1
12107 EOF
12108
12109 fi
12110
12111 if test "$wxUSE_FILESYSTEM" = "yes"; then
12112 cat >> confdefs.h <<\EOF
12113 #define wxUSE_FILESYSTEM 1
12114 EOF
12115
12116 fi
12117
12118 if test "$wxUSE_FS_INET" = "yes"; then
12119 cat >> confdefs.h <<\EOF
12120 #define wxUSE_FS_INET 1
12121 EOF
12122
12123 fi
12124
12125 if test "$wxUSE_FS_ZIP" = "yes"; then
12126 cat >> confdefs.h <<\EOF
12127 #define wxUSE_FS_ZIP 1
12128 EOF
12129
12130 fi
12131
12132 if test "$wxUSE_ZIPSTREAM" = "yes"; then
12133 cat >> confdefs.h <<\EOF
12134 #define wxUSE_ZIPSTREAM 1
12135 EOF
12136
12137 fi
12138
12139 if test "$wxUSE_BUSYINFO" = "yes"; then
12140 cat >> confdefs.h <<\EOF
12141 #define wxUSE_BUSYINFO 1
12142 EOF
12143
12144 fi
12145
12146 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
12147 cat >> confdefs.h <<\EOF
12148 #define wxUSE_STD_IOSTREAM 1
12149 EOF
12150
12151 fi
12152
12153 if test "$wxUSE_TEXTFILE" = "yes"; then
12154 if test "$wxUSE_FILE" != "yes"; then
12155 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
12156 else
12157 cat >> confdefs.h <<\EOF
12158 #define wxUSE_TEXTFILE 1
12159 EOF
12160
12161 fi
12162 fi
12163
12164 if test "$wxUSE_CONFIG" = "yes" ; then
12165 if test "$wxUSE_TEXTFILE" != "yes"; then
12166 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
12167 else
12168 cat >> confdefs.h <<\EOF
12169 #define wxUSE_CONFIG 1
12170 EOF
12171
12172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
12173 fi
12174 fi
12175
12176 if test "$wxUSE_INTL" = "yes" ; then
12177 if test "$wxUSE_FILE" != "yes"; then
12178 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
12179 else
12180 cat >> confdefs.h <<\EOF
12181 #define wxUSE_INTL 1
12182 EOF
12183
12184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
12185 fi
12186 fi
12187
12188 if test "$wxUSE_LOG" = "yes"; then
12189 cat >> confdefs.h <<\EOF
12190 #define wxUSE_LOG 1
12191 EOF
12192
12193 fi
12194
12195 if test "$wxUSE_LONGLONG" = "yes"; then
12196 cat >> confdefs.h <<\EOF
12197 #define wxUSE_LONGLONG 1
12198 EOF
12199
12200 fi
12201
12202 if test "$wxUSE_PLOT" = "yes"; then
12203 cat >> confdefs.h <<\EOF
12204 #define wxUSE_PLOT 1
12205 EOF
12206
12207 fi
12208
12209 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
12210 cat >> confdefs.h <<\EOF
12211 #define wxUSE_DIALUP_MANAGER 1
12212 EOF
12213
12214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
12215 fi
12216
12217 if test "$wxUSE_STREAMS" = "yes" ; then
12218 cat >> confdefs.h <<\EOF
12219 #define wxUSE_STREAMS 1
12220 EOF
12221
12222 fi
12223
12224
12225 if test "$wxUSE_TIMEDATE" = "yes"; then
12226 for ac_func in strptime
12227 do
12228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12229 echo "configure:12230: checking for $ac_func" >&5
12230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12231 echo $ac_n "(cached) $ac_c" 1>&6
12232 else
12233 cat > conftest.$ac_ext <<EOF
12234 #line 12235 "configure"
12235 #include "confdefs.h"
12236 /* System header to define __stub macros and hopefully few prototypes,
12237 which can conflict with char $ac_func(); below. */
12238 #include <assert.h>
12239 /* Override any gcc2 internal prototype to avoid an error. */
12240 /* We use char because int might match the return type of a gcc2
12241 builtin and then its argument prototype would still apply. */
12242 char $ac_func();
12243
12244 int main() {
12245
12246 /* The GNU C library defines this for functions which it implements
12247 to always fail with ENOSYS. Some functions are actually named
12248 something starting with __ and the normal name is an alias. */
12249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12250 choke me
12251 #else
12252 $ac_func();
12253 #endif
12254
12255 ; return 0; }
12256 EOF
12257 if { (eval echo configure:12258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12258 rm -rf conftest*
12259 eval "ac_cv_func_$ac_func=yes"
12260 else
12261 echo "configure: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12263 rm -rf conftest*
12264 eval "ac_cv_func_$ac_func=no"
12265 fi
12266 rm -f conftest*
12267 fi
12268
12269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12272 cat >> confdefs.h <<EOF
12273 #define $ac_tr_func 1
12274 EOF
12275
12276 else
12277 echo "$ac_t""no" 1>&6
12278 fi
12279 done
12280
12281
12282 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
12283 echo "configure:12284: checking for timezone variable in <time.h>" >&5
12284 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
12285 echo $ac_n "(cached) $ac_c" 1>&6
12286 else
12287
12288 cat > conftest.$ac_ext <<EOF
12289 #line 12290 "configure"
12290 #include "confdefs.h"
12291
12292 #include <time.h>
12293
12294 int main() {
12295
12296 int tz;
12297 tz = __timezone;
12298
12299 ; return 0; }
12300 EOF
12301 if { (eval echo configure:12302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12302 rm -rf conftest*
12303
12304 wx_cv_var_timezone=__timezone
12305
12306 else
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 rm -rf conftest*
12310
12311 cat > conftest.$ac_ext <<EOF
12312 #line 12313 "configure"
12313 #include "confdefs.h"
12314
12315 #include <time.h>
12316
12317 int main() {
12318
12319 int tz;
12320 tz = _timezone;
12321
12322 ; return 0; }
12323 EOF
12324 if { (eval echo configure:12325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12325 rm -rf conftest*
12326
12327 wx_cv_var_timezone=_timezone
12328
12329 else
12330 echo "configure: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12332 rm -rf conftest*
12333
12334 cat > conftest.$ac_ext <<EOF
12335 #line 12336 "configure"
12336 #include "confdefs.h"
12337
12338 #include <time.h>
12339
12340 int main() {
12341
12342 int tz;
12343 tz = timezone;
12344
12345 ; return 0; }
12346 EOF
12347 if { (eval echo configure:12348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12348 rm -rf conftest*
12349
12350 wx_cv_var_timezone=timezone
12351
12352 else
12353 echo "configure: failed program was:" >&5
12354 cat conftest.$ac_ext >&5
12355 rm -rf conftest*
12356 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
12357
12358 fi
12359 rm -f conftest*
12360
12361
12362 fi
12363 rm -f conftest*
12364
12365
12366 fi
12367 rm -f conftest*
12368
12369
12370 fi
12371
12372 echo "$ac_t""$wx_cv_var_timezone" 1>&6
12373
12374 cat >> confdefs.h <<EOF
12375 #define WX_TIMEZONE $wx_cv_var_timezone
12376 EOF
12377
12378
12379 for ac_func in localtime
12380 do
12381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12382 echo "configure:12383: checking for $ac_func" >&5
12383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12384 echo $ac_n "(cached) $ac_c" 1>&6
12385 else
12386 cat > conftest.$ac_ext <<EOF
12387 #line 12388 "configure"
12388 #include "confdefs.h"
12389 /* System header to define __stub macros and hopefully few prototypes,
12390 which can conflict with char $ac_func(); below. */
12391 #include <assert.h>
12392 /* Override any gcc2 internal prototype to avoid an error. */
12393 /* We use char because int might match the return type of a gcc2
12394 builtin and then its argument prototype would still apply. */
12395 char $ac_func();
12396
12397 int main() {
12398
12399 /* The GNU C library defines this for functions which it implements
12400 to always fail with ENOSYS. Some functions are actually named
12401 something starting with __ and the normal name is an alias. */
12402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12403 choke me
12404 #else
12405 $ac_func();
12406 #endif
12407
12408 ; return 0; }
12409 EOF
12410 if { (eval echo configure:12411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12411 rm -rf conftest*
12412 eval "ac_cv_func_$ac_func=yes"
12413 else
12414 echo "configure: failed program was:" >&5
12415 cat conftest.$ac_ext >&5
12416 rm -rf conftest*
12417 eval "ac_cv_func_$ac_func=no"
12418 fi
12419 rm -f conftest*
12420 fi
12421
12422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12423 echo "$ac_t""yes" 1>&6
12424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12425 cat >> confdefs.h <<EOF
12426 #define $ac_tr_func 1
12427 EOF
12428
12429 else
12430 echo "$ac_t""no" 1>&6
12431 fi
12432 done
12433
12434
12435 if test "$ac_cv_func_localtime" = "yes"; then
12436 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
12437 echo "configure:12438: checking for tm_gmtoff in struct tm" >&5
12438 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12439 echo $ac_n "(cached) $ac_c" 1>&6
12440 else
12441
12442 cat > conftest.$ac_ext <<EOF
12443 #line 12444 "configure"
12444 #include "confdefs.h"
12445
12446 #include <time.h>
12447
12448 int main() {
12449
12450 struct tm tm;
12451 tm.tm_gmtoff++;
12452
12453 ; return 0; }
12454 EOF
12455 if { (eval echo configure:12456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12456 rm -rf conftest*
12457
12458 wx_cv_struct_tm_has_gmtoff=yes
12459 cat >> confdefs.h <<\EOF
12460 #define WX_GMTOFF_IN_TM 1
12461 EOF
12462
12463
12464 else
12465 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12467 rm -rf conftest*
12468 wx_cv_struct_tm_has_gmtoff=no
12469
12470 fi
12471 rm -f conftest*
12472
12473 fi
12474
12475 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
12476 fi
12477
12478 for ac_func in gettimeofday ftime
12479 do
12480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12481 echo "configure:12482: checking for $ac_func" >&5
12482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12483 echo $ac_n "(cached) $ac_c" 1>&6
12484 else
12485 cat > conftest.$ac_ext <<EOF
12486 #line 12487 "configure"
12487 #include "confdefs.h"
12488 /* System header to define __stub macros and hopefully few prototypes,
12489 which can conflict with char $ac_func(); below. */
12490 #include <assert.h>
12491 /* Override any gcc2 internal prototype to avoid an error. */
12492 /* We use char because int might match the return type of a gcc2
12493 builtin and then its argument prototype would still apply. */
12494 char $ac_func();
12495
12496 int main() {
12497
12498 /* The GNU C library defines this for functions which it implements
12499 to always fail with ENOSYS. Some functions are actually named
12500 something starting with __ and the normal name is an alias. */
12501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12502 choke me
12503 #else
12504 $ac_func();
12505 #endif
12506
12507 ; return 0; }
12508 EOF
12509 if { (eval echo configure:12510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12510 rm -rf conftest*
12511 eval "ac_cv_func_$ac_func=yes"
12512 else
12513 echo "configure: failed program was:" >&5
12514 cat conftest.$ac_ext >&5
12515 rm -rf conftest*
12516 eval "ac_cv_func_$ac_func=no"
12517 fi
12518 rm -f conftest*
12519 fi
12520
12521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12522 echo "$ac_t""yes" 1>&6
12523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12524 cat >> confdefs.h <<EOF
12525 #define $ac_tr_func 1
12526 EOF
12527 break
12528 else
12529 echo "$ac_t""no" 1>&6
12530 fi
12531 done
12532
12533
12534 if test "$ac_cv_func_gettimeofday" = "yes"; then
12535 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
12536 echo "configure:12537: checking whether gettimeofday takes two arguments" >&5
12537 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12538 echo $ac_n "(cached) $ac_c" 1>&6
12539 else
12540
12541
12542 ac_ext=C
12543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12544 ac_cpp='$CXXCPP $CPPFLAGS'
12545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12547 cross_compiling=$ac_cv_prog_cxx_cross
12548
12549
12550 cat > conftest.$ac_ext <<EOF
12551 #line 12552 "configure"
12552 #include "confdefs.h"
12553
12554 #include <sys/time.h>
12555 #include <unistd.h>
12556
12557 int main() {
12558
12559 struct timeval tv;
12560 struct timezone tz;
12561 gettimeofday(&tv, &tz);
12562
12563 ; return 0; }
12564 EOF
12565 if { (eval echo configure:12566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12566 rm -rf conftest*
12567 wx_cv_func_gettimeofday_has_2_args=yes
12568 else
12569 echo "configure: failed program was:" >&5
12570 cat conftest.$ac_ext >&5
12571 rm -rf conftest*
12572 cat > conftest.$ac_ext <<EOF
12573 #line 12574 "configure"
12574 #include "confdefs.h"
12575
12576 #include <sys/time.h>
12577 #include <unistd.h>
12578
12579 int main() {
12580
12581 struct timeval tv;
12582 gettimeofday(&tv);
12583
12584 ; return 0; }
12585 EOF
12586 if { (eval echo configure:12587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12587 rm -rf conftest*
12588 wx_cv_func_gettimeofday_has_2_args=no
12589 else
12590 echo "configure: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 rm -rf conftest*
12593 wx_cv_func_gettimeofday_has_2_args=unknown
12594
12595 fi
12596 rm -f conftest*
12597
12598 fi
12599 rm -f conftest*
12600 ac_ext=c
12601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12602 ac_cpp='$CPP $CPPFLAGS'
12603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12605 cross_compiling=$ac_cv_prog_cc_cross
12606
12607
12608 fi
12609
12610 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
12611
12612 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12613 cat >> confdefs.h <<\EOF
12614 #define WX_GETTIMEOFDAY_NO_TZ 1
12615 EOF
12616
12617 fi
12618 fi
12619
12620 cat >> confdefs.h <<\EOF
12621 #define wxUSE_TIMEDATE 1
12622 EOF
12623
12624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12625 fi
12626
12627
12628 if test "$TOOLKIT" != "MSW"; then
12629
12630 if test "$wxUSE_SOCKETS" = "yes"; then
12631 echo $ac_n "checking for socket""... $ac_c" 1>&6
12632 echo "configure:12633: checking for socket" >&5
12633 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12634 echo $ac_n "(cached) $ac_c" 1>&6
12635 else
12636 cat > conftest.$ac_ext <<EOF
12637 #line 12638 "configure"
12638 #include "confdefs.h"
12639 /* System header to define __stub macros and hopefully few prototypes,
12640 which can conflict with char socket(); below. */
12641 #include <assert.h>
12642 /* Override any gcc2 internal prototype to avoid an error. */
12643 /* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12645 char socket();
12646
12647 int main() {
12648
12649 /* The GNU C library defines this for functions which it implements
12650 to always fail with ENOSYS. Some functions are actually named
12651 something starting with __ and the normal name is an alias. */
12652 #if defined (__stub_socket) || defined (__stub___socket)
12653 choke me
12654 #else
12655 socket();
12656 #endif
12657
12658 ; return 0; }
12659 EOF
12660 if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12661 rm -rf conftest*
12662 eval "ac_cv_func_socket=yes"
12663 else
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 rm -rf conftest*
12667 eval "ac_cv_func_socket=no"
12668 fi
12669 rm -f conftest*
12670 fi
12671
12672 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12673 echo "$ac_t""yes" 1>&6
12674 :
12675 else
12676 echo "$ac_t""no" 1>&6
12677 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
12678 echo "configure:12679: checking for socket in -lsocket" >&5
12679 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12681 echo $ac_n "(cached) $ac_c" 1>&6
12682 else
12683 ac_save_LIBS="$LIBS"
12684 LIBS="-lsocket $LIBS"
12685 cat > conftest.$ac_ext <<EOF
12686 #line 12687 "configure"
12687 #include "confdefs.h"
12688 /* Override any gcc2 internal prototype to avoid an error. */
12689 /* We use char because int might match the return type of a gcc2
12690 builtin and then its argument prototype would still apply. */
12691 char socket();
12692
12693 int main() {
12694 socket()
12695 ; return 0; }
12696 EOF
12697 if { (eval echo configure:12698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12698 rm -rf conftest*
12699 eval "ac_cv_lib_$ac_lib_var=yes"
12700 else
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12703 rm -rf conftest*
12704 eval "ac_cv_lib_$ac_lib_var=no"
12705 fi
12706 rm -f conftest*
12707 LIBS="$ac_save_LIBS"
12708
12709 fi
12710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12711 echo "$ac_t""yes" 1>&6
12712 INET_LINK="$INET_LINK -lsocket"
12713 else
12714 echo "$ac_t""no" 1>&6
12715
12716 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12717 wxUSE_SOCKETS=no
12718
12719
12720 fi
12721
12722
12723 fi
12724
12725 fi
12726
12727 fi
12728
12729 if test "$wxUSE_SOCKETS" = "yes" ; then
12730 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
12731 echo "configure:12732: checking what is the type of the third argument of getsockname" >&5
12732 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12733 echo $ac_n "(cached) $ac_c" 1>&6
12734 else
12735
12736
12737 ac_ext=C
12738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12739 ac_cpp='$CXXCPP $CPPFLAGS'
12740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12742 cross_compiling=$ac_cv_prog_cxx_cross
12743
12744
12745 cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12748
12749 #include <sys/types.h>
12750 #include <sys/socket.h>
12751
12752 int main() {
12753
12754 socklen_t len;
12755 getsockname(0, 0, &len);
12756
12757 ; return 0; }
12758 EOF
12759 if { (eval echo configure:12760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12760 rm -rf conftest*
12761 wx_cv_type_getsockname3=socklen_t
12762 else
12763 echo "configure: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12765 rm -rf conftest*
12766 cat > conftest.$ac_ext <<EOF
12767 #line 12768 "configure"
12768 #include "confdefs.h"
12769
12770 #include <sys/types.h>
12771 #include <sys/socket.h>
12772
12773 int main() {
12774
12775 size_t len;
12776 getsockname(0, 0, &len);
12777
12778 ; return 0; }
12779 EOF
12780 if { (eval echo configure:12781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12781 rm -rf conftest*
12782 wx_cv_type_getsockname3=size_t
12783 else
12784 echo "configure: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 rm -rf conftest*
12787 cat > conftest.$ac_ext <<EOF
12788 #line 12789 "configure"
12789 #include "confdefs.h"
12790
12791 #include <sys/types.h>
12792 #include <sys/socket.h>
12793
12794 int main() {
12795
12796 int len;
12797 getsockname(0, 0, &len);
12798
12799 ; return 0; }
12800 EOF
12801 if { (eval echo configure:12802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12802 rm -rf conftest*
12803 wx_cv_type_getsockname3=int
12804 else
12805 echo "configure: failed program was:" >&5
12806 cat conftest.$ac_ext >&5
12807 rm -rf conftest*
12808 wx_cv_type_getsockname3=unknown
12809
12810 fi
12811 rm -f conftest*
12812
12813 fi
12814 rm -f conftest*
12815
12816 fi
12817 rm -f conftest*
12818
12819 ac_ext=c
12820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12821 ac_cpp='$CPP $CPPFLAGS'
12822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12824 cross_compiling=$ac_cv_prog_cc_cross
12825
12826
12827 fi
12828
12829 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12830
12831 if test "$wx_cv_type_getsockname3" = "unknown"; then
12832 wxUSE_SOCKETS=no
12833 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12834 else
12835 cat >> confdefs.h <<EOF
12836 #define SOCKLEN_T $wx_cv_type_getsockname3
12837 EOF
12838
12839 fi
12840 fi
12841
12842 if test "$wxUSE_SOCKETS" = "yes" ; then
12843 cat >> confdefs.h <<\EOF
12844 #define wxUSE_SOCKETS 1
12845 EOF
12846
12847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
12848 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12849 fi
12850
12851
12852 if test "$TOOLKIT" != "MSW"; then
12853
12854 if test "$wxUSE_JOYSTICK" = 1; then
12855 for ac_hdr in linux/joystick.h
12856 do
12857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12859 echo "configure:12860: checking for $ac_hdr" >&5
12860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12862 else
12863 cat > conftest.$ac_ext <<EOF
12864 #line 12865 "configure"
12865 #include "confdefs.h"
12866 #include <$ac_hdr>
12867 EOF
12868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12869 { (eval echo configure:12870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12871 if test -z "$ac_err"; then
12872 rm -rf conftest*
12873 eval "ac_cv_header_$ac_safe=yes"
12874 else
12875 echo "$ac_err" >&5
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12878 rm -rf conftest*
12879 eval "ac_cv_header_$ac_safe=no"
12880 fi
12881 rm -f conftest*
12882 fi
12883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12884 echo "$ac_t""yes" 1>&6
12885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12886 cat >> confdefs.h <<EOF
12887 #define $ac_tr_hdr 1
12888 EOF
12889
12890 else
12891 echo "$ac_t""no" 1>&6
12892 fi
12893 done
12894
12895 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12896 wxUSE_JOYSTICK=0
12897 echo "configure: warning: Joystick not supported yb this system" 1>&2
12898 fi
12899 fi
12900
12901 fi
12902
12903 if test "$wxUSE_JOYSTICK" = 1; then
12904 cat >> confdefs.h <<\EOF
12905 #define wxUSE_JOYSTICK 1
12906 EOF
12907
12908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12909 fi
12910
12911
12912 if test "$TOOLKIT" != "MSW"; then
12913
12914 HAVE_DL_FUNCS=0
12915 HAVE_SHL_FUNCS=0
12916 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12917 for ac_func in dlopen
12918 do
12919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12920 echo "configure:12921: checking for $ac_func" >&5
12921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12922 echo $ac_n "(cached) $ac_c" 1>&6
12923 else
12924 cat > conftest.$ac_ext <<EOF
12925 #line 12926 "configure"
12926 #include "confdefs.h"
12927 /* System header to define __stub macros and hopefully few prototypes,
12928 which can conflict with char $ac_func(); below. */
12929 #include <assert.h>
12930 /* Override any gcc2 internal prototype to avoid an error. */
12931 /* We use char because int might match the return type of a gcc2
12932 builtin and then its argument prototype would still apply. */
12933 char $ac_func();
12934
12935 int main() {
12936
12937 /* The GNU C library defines this for functions which it implements
12938 to always fail with ENOSYS. Some functions are actually named
12939 something starting with __ and the normal name is an alias. */
12940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12941 choke me
12942 #else
12943 $ac_func();
12944 #endif
12945
12946 ; return 0; }
12947 EOF
12948 if { (eval echo configure:12949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12949 rm -rf conftest*
12950 eval "ac_cv_func_$ac_func=yes"
12951 else
12952 echo "configure: failed program was:" >&5
12953 cat conftest.$ac_ext >&5
12954 rm -rf conftest*
12955 eval "ac_cv_func_$ac_func=no"
12956 fi
12957 rm -f conftest*
12958 fi
12959
12960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12961 echo "$ac_t""yes" 1>&6
12962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12963 cat >> confdefs.h <<EOF
12964 #define $ac_tr_func 1
12965 EOF
12966
12967 cat >> confdefs.h <<\EOF
12968 #define HAVE_DLOPEN 1
12969 EOF
12970
12971 HAVE_DL_FUNCS=1
12972
12973 else
12974 echo "$ac_t""no" 1>&6
12975 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12976 echo "configure:12977: checking for dlopen in -ldl" >&5
12977 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12979 echo $ac_n "(cached) $ac_c" 1>&6
12980 else
12981 ac_save_LIBS="$LIBS"
12982 LIBS="-ldl $LIBS"
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 /* Override any gcc2 internal prototype to avoid an error. */
12987 /* We use char because int might match the return type of a gcc2
12988 builtin and then its argument prototype would still apply. */
12989 char dlopen();
12990
12991 int main() {
12992 dlopen()
12993 ; return 0; }
12994 EOF
12995 if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12996 rm -rf conftest*
12997 eval "ac_cv_lib_$ac_lib_var=yes"
12998 else
12999 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13001 rm -rf conftest*
13002 eval "ac_cv_lib_$ac_lib_var=no"
13003 fi
13004 rm -f conftest*
13005 LIBS="$ac_save_LIBS"
13006
13007 fi
13008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13009 echo "$ac_t""yes" 1>&6
13010
13011 cat >> confdefs.h <<\EOF
13012 #define HAVE_DLOPEN 1
13013 EOF
13014
13015 HAVE_DL_FUNCS=1
13016 LIBS="$LIBS -ldl"
13017
13018 else
13019 echo "$ac_t""no" 1>&6
13020
13021 for ac_func in shl_load
13022 do
13023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13024 echo "configure:13025: checking for $ac_func" >&5
13025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13026 echo $ac_n "(cached) $ac_c" 1>&6
13027 else
13028 cat > conftest.$ac_ext <<EOF
13029 #line 13030 "configure"
13030 #include "confdefs.h"
13031 /* System header to define __stub macros and hopefully few prototypes,
13032 which can conflict with char $ac_func(); below. */
13033 #include <assert.h>
13034 /* Override any gcc2 internal prototype to avoid an error. */
13035 /* We use char because int might match the return type of a gcc2
13036 builtin and then its argument prototype would still apply. */
13037 char $ac_func();
13038
13039 int main() {
13040
13041 /* The GNU C library defines this for functions which it implements
13042 to always fail with ENOSYS. Some functions are actually named
13043 something starting with __ and the normal name is an alias. */
13044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13045 choke me
13046 #else
13047 $ac_func();
13048 #endif
13049
13050 ; return 0; }
13051 EOF
13052 if { (eval echo configure:13053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13053 rm -rf conftest*
13054 eval "ac_cv_func_$ac_func=yes"
13055 else
13056 echo "configure: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 rm -rf conftest*
13059 eval "ac_cv_func_$ac_func=no"
13060 fi
13061 rm -f conftest*
13062 fi
13063
13064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13065 echo "$ac_t""yes" 1>&6
13066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13067 cat >> confdefs.h <<EOF
13068 #define $ac_tr_func 1
13069 EOF
13070
13071 cat >> confdefs.h <<\EOF
13072 #define HAVE_SHL_LOAD 1
13073 EOF
13074
13075 HAVE_SHL_FUNCS=1
13076
13077 else
13078 echo "$ac_t""no" 1>&6
13079 fi
13080 done
13081
13082
13083 fi
13084
13085
13086 fi
13087 done
13088
13089
13090 if test "$HAVE_DL_FUNCS" = 0; then
13091 if test "$HAVE_SHL_FUNCS" = 0; then
13092 if test "$USE_UNIX" = 1; then
13093 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
13094 wxUSE_DYNLIB_CLASS=no
13095 else
13096 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
13097 fi
13098 fi
13099 fi
13100 fi
13101
13102 fi
13103
13104 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
13105 cat >> confdefs.h <<\EOF
13106 #define wxUSE_DYNLIB_CLASS 1
13107 EOF
13108
13109 else
13110 wxUSE_ODBC=no
13111 wxUSE_SERIAL=no
13112 fi
13113
13114
13115 if test "$wxUSE_UNICODE" = "yes" ; then
13116 cat >> confdefs.h <<\EOF
13117 #define wxUSE_UNICODE 1
13118 EOF
13119
13120 fi
13121
13122 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
13123 cat >> confdefs.h <<\EOF
13124 #define wxUSE_WCSRTOMBS 1
13125 EOF
13126
13127 fi
13128
13129 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
13130 cat >> confdefs.h <<\EOF
13131 #define wxUSE_EXPERIMENTAL_PRINTF 1
13132 EOF
13133
13134 fi
13135
13136
13137 if test "$wxUSE_SERIAL" = "yes" ; then
13138 cat >> confdefs.h <<\EOF
13139 #define wxUSE_SERIAL 1
13140 EOF
13141
13142 fi
13143
13144
13145 IODBC_C_SRC=""
13146 if test "$wxUSE_ODBC" = "yes" ; then
13147 cat >> confdefs.h <<\EOF
13148 #define wxUSE_ODBC 1
13149 EOF
13150
13151 WXODBCFLAG="-D_IODBC_"
13152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
13153 IODBCOBJS="\$(IODBC_OBJS)"
13154 else
13155 IODBCOBJS=
13156 fi
13157
13158
13159 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
13160 cat >> confdefs.h <<\EOF
13161 #define wxUSE_POSTSCRIPT 1
13162 EOF
13163
13164 fi
13165
13166 cat >> confdefs.h <<\EOF
13167 #define wxUSE_AFM_FOR_POSTSCRIPT 1
13168 EOF
13169
13170
13171 cat >> confdefs.h <<\EOF
13172 #define wxUSE_NORMALIZED_PS_FONTS 1
13173 EOF
13174
13175
13176
13177 if test "$wxUSE_CONSTRAINTS" = "yes"; then
13178 cat >> confdefs.h <<\EOF
13179 #define wxUSE_CONSTRAINTS 1
13180 EOF
13181
13182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
13183 fi
13184
13185 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13186 cat >> confdefs.h <<\EOF
13187 #define wxUSE_MDI_ARCHITECTURE 1
13188 EOF
13189
13190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
13191 fi
13192
13193 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
13194 cat >> confdefs.h <<\EOF
13195 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
13196 EOF
13197
13198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
13199 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
13201 fi
13202 fi
13203
13204 if test "$wxUSE_HELP" = "yes"; then
13205 cat >> confdefs.h <<\EOF
13206 #define wxUSE_HELP 1
13207 EOF
13208
13209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
13210 fi
13211
13212 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13213 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13214 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
13215 else
13216 cat >> confdefs.h <<\EOF
13217 #define wxUSE_PRINTING_ARCHITECTURE 1
13218 EOF
13219
13220 fi
13221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
13222 fi
13223
13224 if test "$wxUSE_PROLOGIO" = "yes" ; then
13225 cat >> confdefs.h <<\EOF
13226 #define wxUSE_PROLOGIO 1
13227 EOF
13228
13229 fi
13230
13231 if test "$wxUSE_RESOURCES" = "yes" ; then
13232 if test "$wxUSE_PROLOGIO" = "yes" ; then
13233 cat >> confdefs.h <<\EOF
13234 #define wxUSE_RESOURCES 1
13235 EOF
13236
13237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
13238 else
13239 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
13240 fi
13241 fi
13242
13243 if test "$wxUSE_X_RESOURCES" = "yes"; then
13244 cat >> confdefs.h <<\EOF
13245 #define wxUSE_X_RESOURCES 1
13246 EOF
13247
13248 fi
13249
13250
13251 if test "$wxUSE_IPC" = "yes"; then
13252 cat >> confdefs.h <<\EOF
13253 #define wxUSE_IPC 1
13254 EOF
13255
13256 fi
13257
13258 if test "$wxUSE_CLIPBOARD" = "yes"; then
13259 cat >> confdefs.h <<\EOF
13260 #define wxUSE_CLIPBOARD 1
13261 EOF
13262
13263 fi
13264
13265 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
13266 if test "$wxUSE_GTK" = 1; then
13267 if test "$WXGTK12" != 1; then
13268 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
13269 wxUSE_DRAG_AND_DROP=no
13270 fi
13271 fi
13272
13273 if test "$wxUSE_MOTIF" = 1; then
13274 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
13275 wxUSE_DRAG_AND_DROP=no
13276 fi
13277
13278 if test "$USE_WIN32" = 1; then
13279 for ac_hdr in ole2.h
13280 do
13281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13283 echo "configure:13284: checking for $ac_hdr" >&5
13284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13286 else
13287 cat > conftest.$ac_ext <<EOF
13288 #line 13289 "configure"
13289 #include "confdefs.h"
13290 #include <$ac_hdr>
13291 EOF
13292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13293 { (eval echo configure:13294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13295 if test -z "$ac_err"; then
13296 rm -rf conftest*
13297 eval "ac_cv_header_$ac_safe=yes"
13298 else
13299 echo "$ac_err" >&5
13300 echo "configure: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13302 rm -rf conftest*
13303 eval "ac_cv_header_$ac_safe=no"
13304 fi
13305 rm -f conftest*
13306 fi
13307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13308 echo "$ac_t""yes" 1>&6
13309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13310 cat >> confdefs.h <<EOF
13311 #define $ac_tr_hdr 1
13312 EOF
13313
13314 else
13315 echo "$ac_t""no" 1>&6
13316 fi
13317 done
13318
13319 if test "x$HAVE_OLE2_H" = x ; then
13320 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
13321 wxUSE_DRAG_AND_DROP=no
13322 fi
13323 fi
13324
13325 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
13326 cat >> confdefs.h <<\EOF
13327 #define wxUSE_DRAG_AND_DROP 1
13328 EOF
13329
13330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
13331 fi
13332
13333 fi
13334
13335 if test "$wxUSE_SPLINES" = "yes" ; then
13336 cat >> confdefs.h <<\EOF
13337 #define wxUSE_SPLINES 1
13338 EOF
13339
13340 fi
13341
13342
13343 if test "$wxUSE_ACCEL" = "yes"; then
13344 cat >> confdefs.h <<\EOF
13345 #define wxUSE_ACCEL 1
13346 EOF
13347
13348 fi
13349
13350 if test "$wxUSE_CARET" = "yes"; then
13351 cat >> confdefs.h <<\EOF
13352 #define wxUSE_CARET 1
13353 EOF
13354
13355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13356 fi
13357
13358 if test "$wxUSE_COMBOBOX" = "yes"; then
13359 cat >> confdefs.h <<\EOF
13360 #define wxUSE_COMBOBOX 1
13361 EOF
13362
13363 fi
13364
13365 if test "$wxUSE_CHOICE" = "yes"; then
13366 cat >> confdefs.h <<\EOF
13367 #define wxUSE_CHOICE 1
13368 EOF
13369
13370 fi
13371
13372 if test "$wxUSE_BMPBUTTON" = "yes"; then
13373 cat >> confdefs.h <<\EOF
13374 #define wxUSE_BMPBUTTON 1
13375 EOF
13376
13377 fi
13378
13379 if test "$wxUSE_CHECKBOX" = "yes"; then
13380 cat >> confdefs.h <<\EOF
13381 #define wxUSE_CHECKBOX 1
13382 EOF
13383
13384 fi
13385
13386 if test "$wxUSE_CHECKLST" = "yes"; then
13387 cat >> confdefs.h <<\EOF
13388 #define wxUSE_CHECKLISTBOX 1
13389 EOF
13390
13391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13392 fi
13393
13394 if test "$wxUSE_GAUGE" = "yes"; then
13395 cat >> confdefs.h <<\EOF
13396 #define wxUSE_GAUGE 1
13397 EOF
13398
13399 fi
13400
13401 if test "$wxUSE_NEW_GRID" = "yes"; then
13402 wxUSE_GRID="yes"
13403 cat >> confdefs.h <<\EOF
13404 #define wxUSE_NEW_GRID 1
13405 EOF
13406
13407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
13408 fi
13409
13410 if test "$wxUSE_GRID" = "yes"; then
13411 cat >> confdefs.h <<\EOF
13412 #define wxUSE_GRID 1
13413 EOF
13414
13415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
13416 fi
13417
13418 if test "$wxUSE_IMAGLIST" = "yes"; then
13419 cat >> confdefs.h <<\EOF
13420 #define wxUSE_IMAGLIST 1
13421 EOF
13422
13423 fi
13424
13425 if test "$wxUSE_LISTBOX" = "yes"; then
13426 cat >> confdefs.h <<\EOF
13427 #define wxUSE_LISTBOX 1
13428 EOF
13429
13430 fi
13431
13432 if test "$wxUSE_LISTCTRL" = "yes"; then
13433 if test "$wxUSE_IMAGLIST" = "yes"; then
13434 cat >> confdefs.h <<\EOF
13435 #define wxUSE_LISTCTRL 1
13436 EOF
13437
13438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13439 else
13440 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13441 fi
13442 fi
13443
13444 if test "$wxUSE_NOTEBOOK" = "yes"; then
13445 cat >> confdefs.h <<\EOF
13446 #define wxUSE_NOTEBOOK 1
13447 EOF
13448
13449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13450 fi
13451
13452 if test "$wxUSE_RADIOBOX" = "yes"; then
13453 cat >> confdefs.h <<\EOF
13454 #define wxUSE_RADIOBOX 1
13455 EOF
13456
13457 fi
13458
13459 if test "$wxUSE_RADIOBTN" = "yes"; then
13460 cat >> confdefs.h <<\EOF
13461 #define wxUSE_RADIOBTN 1
13462 EOF
13463
13464 fi
13465
13466 if test "$wxUSE_SASH" = "yes"; then
13467 cat >> confdefs.h <<\EOF
13468 #define wxUSE_SASH 1
13469 EOF
13470
13471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13472 fi
13473
13474 if test "$wxUSE_SCROLLBAR" = "yes"; then
13475 cat >> confdefs.h <<\EOF
13476 #define wxUSE_SCROLLBAR 1
13477 EOF
13478
13479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
13480 fi
13481
13482 if test "$wxUSE_SLIDER" = "yes"; then
13483 cat >> confdefs.h <<\EOF
13484 #define wxUSE_SLIDER 1
13485 EOF
13486
13487 fi
13488
13489 if test "$wxUSE_SPINBTN" = "yes"; then
13490 cat >> confdefs.h <<\EOF
13491 #define wxUSE_SPINBTN 1
13492 EOF
13493
13494 fi
13495
13496 if test "$wxUSE_SPINCTRL" = "yes"; then
13497 cat >> confdefs.h <<\EOF
13498 #define wxUSE_SPINCTRL 1
13499 EOF
13500
13501 fi
13502
13503 if test "$wxUSE_SPLITTER" = "yes"; then
13504 cat >> confdefs.h <<\EOF
13505 #define wxUSE_SPLITTER 1
13506 EOF
13507
13508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13509 fi
13510
13511 if test "$wxUSE_STATBMP" = "yes"; then
13512 cat >> confdefs.h <<\EOF
13513 #define wxUSE_STATBMP 1
13514 EOF
13515
13516 fi
13517
13518 if test "$wxUSE_STATBOX" = "yes"; then
13519 cat >> confdefs.h <<\EOF
13520 #define wxUSE_STATBOX 1
13521 EOF
13522
13523 fi
13524
13525 if test "$wxUSE_STATLINE" = "yes"; then
13526 if test "$wxUSE_WINE" = 1 ; then
13527 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13528 else
13529 cat >> confdefs.h <<\EOF
13530 #define wxUSE_STATLINE 1
13531 EOF
13532
13533 fi
13534 fi
13535
13536 if test "$wxUSE_STATUSBAR" = "yes"; then
13537 cat >> confdefs.h <<\EOF
13538 #define wxUSE_STATUSBAR 1
13539 EOF
13540
13541
13542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
13543 fi
13544
13545 if test "$wxUSE_TABDIALOG" = "yes"; then
13546 cat >> confdefs.h <<\EOF
13547 #define wxUSE_TAB_DIALOG 1
13548 EOF
13549
13550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13551 fi
13552
13553 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13554 cat >> confdefs.h <<\EOF
13555 #define wxUSE_TOOLBAR_SIMPLE 1
13556 EOF
13557
13558 wxUSE_TOOLBAR="yes"
13559 fi
13560
13561 if test "$wxUSE_TOOLBAR" = "yes"; then
13562 cat >> confdefs.h <<\EOF
13563 #define wxUSE_TOOLBAR 1
13564 EOF
13565
13566
13567 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13568 wxUSE_TOOLBAR_NATIVE="yes"
13569 fi
13570
13571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13572 fi
13573
13574 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13575 cat >> confdefs.h <<\EOF
13576 #define wxUSE_TOOLBAR_NATIVE 1
13577 EOF
13578
13579 fi
13580
13581 if test "$wxUSE_TOOLTIPS" = "yes"; then
13582 if test "$wxUSE_MOTIF" = 1; then
13583 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13584 else
13585 if test "$wxUSE_WINE" = 1; then
13586 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13587 else
13588 cat >> confdefs.h <<\EOF
13589 #define wxUSE_TOOLTIPS 1
13590 EOF
13591
13592 fi
13593 fi
13594 fi
13595
13596 if test "$wxUSE_TREECTRL" = "yes"; then
13597 if test "$wxUSE_IMAGLIST" = "yes"; then
13598 cat >> confdefs.h <<\EOF
13599 #define wxUSE_TREECTRL 1
13600 EOF
13601
13602 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13603 else
13604 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13605 fi
13606 fi
13607
13608
13609
13610 if test "$wxUSE_METAFILE" = "yes"; then
13611 cat >> confdefs.h <<\EOF
13612 #define wxUSE_METAFILE 1
13613 EOF
13614
13615 fi
13616
13617 if test "$wxUSE_DIRDLG" = "yes"; then
13618 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13619 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13620 else
13621 if test "$wxUSE_TREECTRL" != "yes"; then
13622 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13623 else
13624 cat >> confdefs.h <<\EOF
13625 #define wxUSE_DIRDLG 1
13626 EOF
13627
13628 fi
13629 fi
13630 fi
13631
13632 if test "$wxUSE_TEXTDLG" = "yes"; then
13633 cat >> confdefs.h <<\EOF
13634 #define wxUSE_TEXTDLG 1
13635 EOF
13636
13637 fi
13638
13639 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13640 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13641 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13642 else
13643 cat >> confdefs.h <<\EOF
13644 #define wxUSE_STARTUP_TIPS 1
13645 EOF
13646
13647 fi
13648 fi
13649
13650 if test "$wxUSE_PROGRESSDLG" = "yes"; then
13651 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13652 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13653 else
13654 cat >> confdefs.h <<\EOF
13655 #define wxUSE_PROGRESSDLG 1
13656 EOF
13657
13658 fi
13659 fi
13660
13661 if test "$wxUSE_MINIFRAME" = "yes"; then
13662 cat >> confdefs.h <<\EOF
13663 #define wxUSE_MINIFRAME 1
13664 EOF
13665
13666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13667 fi
13668
13669 if test "$wxUSE_HTML" = "yes"; then
13670 cat >> confdefs.h <<\EOF
13671 #define wxUSE_HTML 1
13672 EOF
13673
13674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13675 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13676 fi
13677
13678 if test "$wxUSE_VALIDATORS" = "yes"; then
13679 cat >> confdefs.h <<\EOF
13680 #define wxUSE_VALIDATORS 1
13681 EOF
13682
13683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13684 fi
13685
13686 if test "$wxUSE_GIF" = "yes" ; then
13687 cat >> confdefs.h <<\EOF
13688 #define wxUSE_GIF 1
13689 EOF
13690
13691 fi
13692
13693 if test "$wxUSE_PCX" = "yes" ; then
13694 cat >> confdefs.h <<\EOF
13695 #define wxUSE_PCX 1
13696 EOF
13697
13698 fi
13699
13700 if test "$wxUSE_PNM" = "yes" ; then
13701 cat >> confdefs.h <<\EOF
13702 #define wxUSE_PNM 1
13703 EOF
13704
13705 fi
13706
13707
13708 if test "$cross_compiling" = "yes"; then
13709 OSINFO="\"$host\""
13710 else
13711 OSINFO=`uname -s -r -m`
13712 OSINFO="\"$OSINFO\""
13713 fi
13714
13715 cat >> confdefs.h <<EOF
13716 #define WXWIN_OS_DESCRIPTION $OSINFO
13717 EOF
13718
13719
13720
13721 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK"
13722
13723 EXTRA_LIBS="$LIBS $ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
13724 if test "$wxUSE_GUI" = "yes"; then
13725 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK"
13726 fi
13727
13728 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13729
13730 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
13731
13732 if test "$GXX" = yes ; then
13733 CXXWARNINGS="-Wall"
13734 fi
13735 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13736
13737 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13738 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13739
13740 LDFLAGS="$LDFLAGS $PROFILE"
13741
13742 if test "$wxUSE_GUI" = "yes"; then
13743
13744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
13745 font fractal image menu minimal richedit"
13746
13747 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
13748 else
13749 SAMPLES_SUBDIRS=""
13750 fi
13751
13752 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
13844 echo "configure:13845: checking whether ${MAKE-make} sets \${MAKE}" >&5
13845 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13846 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13847 echo $ac_n "(cached) $ac_c" 1>&6
13848 else
13849 cat > conftestmake <<\EOF
13850 all:
13851 @echo 'ac_maketemp="${MAKE}"'
13852 EOF
13853 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13854 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13855 if test -n "$ac_maketemp"; then
13856 eval ac_cv_prog_make_${ac_make}_set=yes
13857 else
13858 eval ac_cv_prog_make_${ac_make}_set=no
13859 fi
13860 rm -f conftestmake
13861 fi
13862 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13863 echo "$ac_t""yes" 1>&6
13864 SET_MAKE=
13865 else
13866 echo "$ac_t""no" 1>&6
13867 SET_MAKE="MAKE=${MAKE-make}"
13868 fi
13869
13870
13871 if test -d include; then
13872 if test -d include/wx; then
13873 if test -d include/wx/${TOOLKIT_DIR}; then
13874 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13875 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13876 fi
13877 fi
13878 fi
13879 fi
13880
13881
13882
13883 if test "$wxUSE_GUI" = "yes"; then
13884 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
13885 wx_cv_path_ifs=$PATH_IFS
13886 wx_cv_program_ext=$PROGRAM_EXT
13887 wx_cv_target_library=$WX_TARGET_LIBRARY
13888 subdirs="demos samples utils contrib"
13889
13890 fi
13891
13892 trap '' 1 2 15
13893 cat > confcache <<\EOF
13894 # This file is a shell script that caches the results of configure
13895 # tests run on this system so they can be shared between configure
13896 # scripts and configure runs. It is not useful on other systems.
13897 # If it contains results you don't want to keep, you may remove or edit it.
13898 #
13899 # By default, configure uses ./config.cache as the cache file,
13900 # creating it if it does not exist already. You can give configure
13901 # the --cache-file=FILE option to use a different cache file; that is
13902 # what configure does when it calls configure scripts in
13903 # subdirectories, so they share the cache.
13904 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13905 # config.status only pays attention to the cache file if you give it the
13906 # --recheck option to rerun configure.
13907 #
13908 EOF
13909 # The following way of writing the cache mishandles newlines in values,
13910 # but we know of no workaround that is simple, portable, and efficient.
13911 # So, don't put newlines in cache variables' values.
13912 # Ultrix sh set writes to stderr and can't be redirected directly,
13913 # and sets the high bit in the cache file unless we assign to the vars.
13914 (set) 2>&1 |
13915 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13916 *ac_space=\ *)
13917 # `set' does not quote correctly, so add quotes (double-quote substitution
13918 # turns \\\\ into \\, and sed turns \\ into \).
13919 sed -n \
13920 -e "s/'/'\\\\''/g" \
13921 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13922 ;;
13923 *)
13924 # `set' quotes correctly as required by POSIX, so do not add quotes.
13925 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13926 ;;
13927 esac >> confcache
13928 if cmp -s $cache_file confcache; then
13929 :
13930 else
13931 if test -w $cache_file; then
13932 echo "updating cache $cache_file"
13933 cat confcache > $cache_file
13934 else
13935 echo "not updating unwritable cache $cache_file"
13936 fi
13937 fi
13938 rm -f confcache
13939
13940 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13941
13942 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13943 # Let make expand exec_prefix.
13944 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13945
13946 # Any assignment to VPATH causes Sun make to only execute
13947 # the first set of double-colon rules, so remove it if not needed.
13948 # If there is a colon in the path, we need to keep it.
13949 if test "x$srcdir" = x.; then
13950 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13951 fi
13952
13953 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13954
13955 DEFS=-DHAVE_CONFIG_H
13956
13957 # Without the "./", some shells look in PATH for config.status.
13958 : ${CONFIG_STATUS=./config.status}
13959
13960 echo creating $CONFIG_STATUS
13961 rm -f $CONFIG_STATUS
13962 cat > $CONFIG_STATUS <<EOF
13963 #! /bin/sh
13964 # Generated automatically by configure.
13965 # Run this file to recreate the current configuration.
13966 # This directory was configured as follows,
13967 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13968 #
13969 # $0 $ac_configure_args
13970 #
13971 # Compiler output produced by configure, useful for debugging
13972 # configure, is in ./config.log if it exists.
13973
13974 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13975 for ac_option
13976 do
13977 case "\$ac_option" in
13978 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13979 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13980 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13981 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13982 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13983 exit 0 ;;
13984 -help | --help | --hel | --he | --h)
13985 echo "\$ac_cs_usage"; exit 0 ;;
13986 *) echo "\$ac_cs_usage"; exit 1 ;;
13987 esac
13988 done
13989
13990 ac_given_srcdir=$srcdir
13991 ac_given_INSTALL="$INSTALL"
13992
13993 trap 'rm -fr `echo "
13994 wx-config
13995 src/make.env
13996 src/makeprog.env
13997 src/makelib.env
13998 Makefile
13999 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14000 EOF
14001 cat >> $CONFIG_STATUS <<EOF
14002
14003 # Protect against being on the right side of a sed subst in config.status.
14004 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14005 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14006 $ac_vpsub
14007 $extrasub
14008 s%@SHELL@%$SHELL%g
14009 s%@CFLAGS@%$CFLAGS%g
14010 s%@CPPFLAGS@%$CPPFLAGS%g
14011 s%@CXXFLAGS@%$CXXFLAGS%g
14012 s%@FFLAGS@%$FFLAGS%g
14013 s%@DEFS@%$DEFS%g
14014 s%@LDFLAGS@%$LDFLAGS%g
14015 s%@LIBS@%$LIBS%g
14016 s%@exec_prefix@%$exec_prefix%g
14017 s%@prefix@%$prefix%g
14018 s%@program_transform_name@%$program_transform_name%g
14019 s%@bindir@%$bindir%g
14020 s%@sbindir@%$sbindir%g
14021 s%@libexecdir@%$libexecdir%g
14022 s%@datadir@%$datadir%g
14023 s%@sysconfdir@%$sysconfdir%g
14024 s%@sharedstatedir@%$sharedstatedir%g
14025 s%@localstatedir@%$localstatedir%g
14026 s%@libdir@%$libdir%g
14027 s%@includedir@%$includedir%g
14028 s%@oldincludedir@%$oldincludedir%g
14029 s%@infodir@%$infodir%g
14030 s%@mandir@%$mandir%g
14031 s%@host@%$host%g
14032 s%@host_alias@%$host_alias%g
14033 s%@host_cpu@%$host_cpu%g
14034 s%@host_vendor@%$host_vendor%g
14035 s%@host_os@%$host_os%g
14036 s%@target@%$target%g
14037 s%@target_alias@%$target_alias%g
14038 s%@target_cpu@%$target_cpu%g
14039 s%@target_vendor@%$target_vendor%g
14040 s%@target_os@%$target_os%g
14041 s%@build@%$build%g
14042 s%@build_alias@%$build_alias%g
14043 s%@build_cpu@%$build_cpu%g
14044 s%@build_vendor@%$build_vendor%g
14045 s%@build_os@%$build_os%g
14046 s%@CC@%$CC%g
14047 s%@CPP@%$CPP%g
14048 s%@CXX@%$CXX%g
14049 s%@CXXCPP@%$CXXCPP%g
14050 s%@RANLIB@%$RANLIB%g
14051 s%@AR@%$AR%g
14052 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14053 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14054 s%@INSTALL_DATA@%$INSTALL_DATA%g
14055 s%@STRIP@%$STRIP%g
14056 s%@YACC@%$YACC%g
14057 s%@LEX@%$LEX%g
14058 s%@LEXLIB@%$LEXLIB%g
14059 s%@LN_S@%$LN_S%g
14060 s%@GTK_CONFIG@%$GTK_CONFIG%g
14061 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
14062 s%@GTK_LIBS@%$GTK_LIBS%g
14063 s%@X_CFLAGS@%$X_CFLAGS%g
14064 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14065 s%@X_LIBS@%$X_LIBS%g
14066 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
14067 s%@LEX_STEM@%$LEX_STEM%g
14068 s%@PATH_IFS@%$PATH_IFS%g
14069 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
14070 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
14071 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
14072 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
14073 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
14074 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
14075 s%@WX_LIBRARY@%$WX_LIBRARY%g
14076 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
14077 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
14078 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
14079 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
14080 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
14081 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
14082 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
14083 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
14084 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
14085 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
14086 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
14087 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
14088 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
14089 s%@WX_ALL@%$WX_ALL%g
14090 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
14091 s%@SHARED_LD@%$SHARED_LD%g
14092 s%@PIC_FLAG@%$PIC_FLAG%g
14093 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
14094 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
14095 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
14096 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
14097 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
14098 s%@USE_GUI@%$USE_GUI%g
14099 s%@AFMINSTALL@%$AFMINSTALL%g
14100 s%@TOOLKIT@%$TOOLKIT%g
14101 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
14102 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
14103 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
14104 s%@GUIHEADERS@%$GUIHEADERS%g
14105 s%@GUIOBJS@%$GUIOBJS%g
14106 s%@COMMONOBJS@%$COMMONOBJS%g
14107 s%@GENERICOBJS@%$GENERICOBJS%g
14108 s%@GUIDEPS@%$GUIDEPS%g
14109 s%@COMMONDEPS@%$COMMONDEPS%g
14110 s%@GENERICDEPS@%$GENERICDEPS%g
14111 s%@IODBCOBJS@%$IODBCOBJS%g
14112 s%@UNIXOBJS@%$UNIXOBJS%g
14113 s%@UNIXDEPS@%$UNIXDEPS%g
14114 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
14115 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
14116 s%@GUIDIST@%$GUIDIST%g
14117 s%@PORT_FILES@%$PORT_FILES%g
14118 s%@DISTDIR@%$DISTDIR%g
14119 s%@RPM_SPEC@%$RPM_SPEC%g
14120 s%@RPM_FILES@%$RPM_FILES%g
14121 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
14122 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
14123 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
14124 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
14125 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
14126 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
14127 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
14128 s%@EXTRADEFS@%$EXTRADEFS%g
14129 s%@LD_LIBS@%$LD_LIBS%g
14130 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
14131 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
14132 s%@RESPROGRAM@%$RESPROGRAM%g
14133 s%@RESCOMP@%$RESCOMP%g
14134 s%@RESFLAGS@%$RESFLAGS%g
14135 s%@DLLTOOL@%$DLLTOOL%g
14136 s%@AS@%$AS%g
14137 s%@NM@%$NM%g
14138 s%@LD@%$LD%g
14139 s%@MAKEINFO@%$MAKEINFO%g
14140 s%@SET_MAKE@%$SET_MAKE%g
14141 s%@subdirs@%$subdirs%g
14142
14143 CEOF
14144 EOF
14145
14146 cat >> $CONFIG_STATUS <<\EOF
14147
14148 # Split the substitutions into bite-sized pieces for seds with
14149 # small command number limits, like on Digital OSF/1 and HP-UX.
14150 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14151 ac_file=1 # Number of current file.
14152 ac_beg=1 # First line for current file.
14153 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14154 ac_more_lines=:
14155 ac_sed_cmds=""
14156 while $ac_more_lines; do
14157 if test $ac_beg -gt 1; then
14158 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14159 else
14160 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14161 fi
14162 if test ! -s conftest.s$ac_file; then
14163 ac_more_lines=false
14164 rm -f conftest.s$ac_file
14165 else
14166 if test -z "$ac_sed_cmds"; then
14167 ac_sed_cmds="sed -f conftest.s$ac_file"
14168 else
14169 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14170 fi
14171 ac_file=`expr $ac_file + 1`
14172 ac_beg=$ac_end
14173 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14174 fi
14175 done
14176 if test -z "$ac_sed_cmds"; then
14177 ac_sed_cmds=cat
14178 fi
14179 EOF
14180
14181 cat >> $CONFIG_STATUS <<EOF
14182
14183 CONFIG_FILES=\${CONFIG_FILES-"wx-config
14184 src/make.env
14185 src/makeprog.env
14186 src/makelib.env
14187 Makefile
14188 "}
14189 EOF
14190 cat >> $CONFIG_STATUS <<\EOF
14191 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14192 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14193 case "$ac_file" in
14194 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14195 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14196 *) ac_file_in="${ac_file}.in" ;;
14197 esac
14198
14199 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14200
14201 # Remove last slash and all that follows it. Not all systems have dirname.
14202 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14203 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14204 # The file is in a subdirectory.
14205 test ! -d "$ac_dir" && mkdir "$ac_dir"
14206 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14207 # A "../" for each directory in $ac_dir_suffix.
14208 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14209 else
14210 ac_dir_suffix= ac_dots=
14211 fi
14212
14213 case "$ac_given_srcdir" in
14214 .) srcdir=.
14215 if test -z "$ac_dots"; then top_srcdir=.
14216 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14217 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14218 *) # Relative path.
14219 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14220 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14221 esac
14222
14223 case "$ac_given_INSTALL" in
14224 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14225 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14226 esac
14227
14228 echo creating "$ac_file"
14229 rm -f "$ac_file"
14230 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14231 case "$ac_file" in
14232 *Makefile*) ac_comsub="1i\\
14233 # $configure_input" ;;
14234 *) ac_comsub= ;;
14235 esac
14236
14237 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14238 sed -e "$ac_comsub
14239 s%@configure_input@%$configure_input%g
14240 s%@srcdir@%$srcdir%g
14241 s%@top_srcdir@%$top_srcdir%g
14242 s%@INSTALL@%$INSTALL%g
14243 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14244 fi; done
14245 rm -f conftest.s*
14246
14247 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14248 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14249 #
14250 # ac_d sets the value in "#define NAME VALUE" lines.
14251 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14252 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14253 ac_dC='\3'
14254 ac_dD='%g'
14255 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14256 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14257 ac_uB='\([ ]\)%\1#\2define\3'
14258 ac_uC=' '
14259 ac_uD='\4%g'
14260 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14261 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14262 ac_eB='$%\1#\2define\3'
14263 ac_eC=' '
14264 ac_eD='%g'
14265
14266 if test "${CONFIG_HEADERS+set}" != set; then
14267 EOF
14268 cat >> $CONFIG_STATUS <<EOF
14269 CONFIG_HEADERS="setup.h:setup.h.in"
14270 EOF
14271 cat >> $CONFIG_STATUS <<\EOF
14272 fi
14273 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14274 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14275 case "$ac_file" in
14276 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14277 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14278 *) ac_file_in="${ac_file}.in" ;;
14279 esac
14280
14281 echo creating $ac_file
14282
14283 rm -f conftest.frag conftest.in conftest.out
14284 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14285 cat $ac_file_inputs > conftest.in
14286
14287 EOF
14288
14289 # Transform confdefs.h into a sed script conftest.vals that substitutes
14290 # the proper values into config.h.in to produce config.h. And first:
14291 # Protect against being on the right side of a sed subst in config.status.
14292 # Protect against being in an unquoted here document in config.status.
14293 rm -f conftest.vals
14294 cat > conftest.hdr <<\EOF
14295 s/[\\&%]/\\&/g
14296 s%[\\$`]%\\&%g
14297 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14298 s%ac_d%ac_u%gp
14299 s%ac_u%ac_e%gp
14300 EOF
14301 sed -n -f conftest.hdr confdefs.h > conftest.vals
14302 rm -f conftest.hdr
14303
14304 # This sed command replaces #undef with comments. This is necessary, for
14305 # example, in the case of _POSIX_SOURCE, which is predefined and required
14306 # on some systems where configure will not decide to define it.
14307 cat >> conftest.vals <<\EOF
14308 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14309 EOF
14310
14311 # Break up conftest.vals because some shells have a limit on
14312 # the size of here documents, and old seds have small limits too.
14313
14314 rm -f conftest.tail
14315 while :
14316 do
14317 ac_lines=`grep -c . conftest.vals`
14318 # grep -c gives empty output for an empty file on some AIX systems.
14319 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14320 # Write a limited-size here document to conftest.frag.
14321 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14322 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14323 echo 'CEOF
14324 sed -f conftest.frag conftest.in > conftest.out
14325 rm -f conftest.in
14326 mv conftest.out conftest.in
14327 ' >> $CONFIG_STATUS
14328 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14329 rm -f conftest.vals
14330 mv conftest.tail conftest.vals
14331 done
14332 rm -f conftest.vals
14333
14334 cat >> $CONFIG_STATUS <<\EOF
14335 rm -f conftest.frag conftest.h
14336 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14337 cat conftest.in >> conftest.h
14338 rm -f conftest.in
14339 if cmp -s $ac_file conftest.h 2>/dev/null; then
14340 echo "$ac_file is unchanged"
14341 rm -f conftest.h
14342 else
14343 # Remove last slash and all that follows it. Not all systems have dirname.
14344 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14345 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14346 # The file is in a subdirectory.
14347 test ! -d "$ac_dir" && mkdir "$ac_dir"
14348 fi
14349 rm -f $ac_file
14350 mv conftest.h $ac_file
14351 fi
14352 fi; done
14353
14354 EOF
14355 cat >> $CONFIG_STATUS <<EOF
14356
14357 TOOLKIT_DIR="${TOOLKIT_DIR}"
14358 LN_S="${LN_S}"
14359
14360
14361 EOF
14362 cat >> $CONFIG_STATUS <<\EOF
14363
14364 chmod +x wx-config
14365 mv wx-config wx${TOOLKIT_DIR}-config
14366 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
14367
14368
14369 if test ! -d lib; then
14370 mkdir lib
14371 fi
14372 if test ! -d lib/wx; then
14373 mkdir lib/wx
14374 fi
14375 if test ! -d lib/wx/include; then
14376 mkdir lib/wx/include
14377 fi
14378 if test ! -d lib/wx/include/wx; then
14379 mkdir lib/wx/include/wx
14380 fi
14381 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
14382 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
14383 fi
14384 if test -f setup.h; then
14385 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
14386 fi
14387
14388
14389 if test ! -d include; then
14390 mkdir include
14391 fi
14392 if test ! -d include/wx; then
14393 mkdir include/wx
14394 fi
14395 if test ! -d include/wx/${TOOLKIT_DIR}; then
14396 mkdir include/wx/${TOOLKIT_DIR}
14397 fi
14398 if test -f setup.h; then
14399 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
14400 fi
14401
14402
14403 exit 0
14404 EOF
14405 chmod +x $CONFIG_STATUS
14406 rm -fr confdefs* $ac_clean_files
14407 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14408
14409 if test "$no_recursion" != yes; then
14410
14411 # Remove --cache-file and --srcdir arguments so they do not pile up.
14412 ac_sub_configure_args=
14413 ac_prev=
14414 for ac_arg in $ac_configure_args; do
14415 if test -n "$ac_prev"; then
14416 ac_prev=
14417 continue
14418 fi
14419 case "$ac_arg" in
14420 -cache-file | --cache-file | --cache-fil | --cache-fi \
14421 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14422 ac_prev=cache_file ;;
14423 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14424 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14425 ;;
14426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14427 ac_prev=srcdir ;;
14428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14429 ;;
14430 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14431 esac
14432 done
14433
14434 for ac_config_dir in demos samples utils contrib; do
14435
14436 # Do not complain, so a configure script can configure whichever
14437 # parts of a large source tree are present.
14438 if test ! -d $srcdir/$ac_config_dir; then
14439 continue
14440 fi
14441
14442 echo configuring in $ac_config_dir
14443
14444 case "$srcdir" in
14445 .) ;;
14446 *)
14447 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14448 else
14449 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14450 fi
14451 ;;
14452 esac
14453
14454 ac_popdir=`pwd`
14455 cd $ac_config_dir
14456
14457 # A "../" for each directory in /$ac_config_dir.
14458 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14459
14460 case "$srcdir" in
14461 .) # No --srcdir option. We are building in place.
14462 ac_sub_srcdir=$srcdir ;;
14463 /*) # Absolute path.
14464 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14465 *) # Relative path.
14466 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14467 esac
14468
14469 # Check for guested configure; otherwise get Cygnus style configure.
14470 if test -f $ac_sub_srcdir/configure; then
14471 ac_sub_configure=$ac_sub_srcdir/configure
14472 elif test -f $ac_sub_srcdir/configure.in; then
14473 ac_sub_configure=$ac_configure
14474 else
14475 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14476 ac_sub_configure=
14477 fi
14478
14479 # The recursion is here.
14480 if test -n "$ac_sub_configure"; then
14481
14482 # Make the cache file name correct relative to the subdirectory.
14483 case "$cache_file" in
14484 /*) ac_sub_cache_file=$cache_file ;;
14485 *) # Relative path.
14486 ac_sub_cache_file="$ac_dots$cache_file" ;;
14487 esac
14488 case "$ac_given_INSTALL" in
14489 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14490 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14491 esac
14492
14493 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14494 # The eval makes quoting arguments work.
14495 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14496 then :
14497 else
14498 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14499 fi
14500 fi
14501
14502 cd $ac_popdir
14503 done
14504 fi
14505
14506