]> git.saurik.com Git - wxWidgets.git/blob - configure
added --enable-filesystem
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 # Guess values for system-dependent variables and create Makefiles.
41 # Generated automatically using autoconf version 2.13
42 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43 #
44 # This configure script is free software; the Free Software Foundation
45 # gives unlimited permission to copy, distribute and modify it.
46
47 # Defaults:
48 ac_help=
49 ac_default_prefix=/usr/local
50 # Any additions from configure.in:
51 ac_help="$ac_help
52 --enable-gui use GUI classes"
53 ac_help="$ac_help
54 --with-gtk use GTK+"
55 ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57 ac_help="$ac_help
58 --with-wine use WINE"
59 ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61 ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
63 ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
65 ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67 ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69 ac_help="$ac_help
70 --with-libpng use libpng (PNG image format)"
71 ac_help="$ac_help
72 --with-libjpeg use libjpeg (JPEG file format)"
73 ac_help="$ac_help
74 --with-libtiff use libtiff (TIFF file format)"
75 ac_help="$ac_help
76 --with-opengl use OpenGL (or Mesa)"
77 ac_help="$ac_help
78 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79 ac_help="$ac_help
80 --with-zlib use zlib for LZW compression"
81 ac_help="$ac_help
82 --with-odbc use the IODBC and wxODBC classes"
83 ac_help="$ac_help
84 --enable-shared create shared library code"
85 ac_help="$ac_help
86 --enable-burnt_name create set name in shared library "
87 ac_help="$ac_help
88 --enable-optimise create optimised code"
89 ac_help="$ac_help
90 --enable-debug same as debug_flag and debug_info"
91 ac_help="$ac_help
92 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
93 ac_help="$ac_help
94 --enable-debug_info create code with debugging information"
95 ac_help="$ac_help
96 --enable-debug_gdb create code with extra GDB debugging information"
97 ac_help="$ac_help
98 --enable-debug_cntxt use wxDebugContext"
99 ac_help="$ac_help
100 --enable-mem_tracing create code with memory tracing"
101 ac_help="$ac_help
102 --enable-profile create code with profiling information"
103 ac_help="$ac_help
104 --enable-no_rtti create code without RTTI information"
105 ac_help="$ac_help
106 --enable-no_exceptions create code without exceptions information"
107 ac_help="$ac_help
108 --enable-permissive compile code disregarding strict ANSI"
109 ac_help="$ac_help
110 --enable-no_deps create code without dependency information"
111 ac_help="$ac_help
112 --enable-intl use internationalization system"
113 ac_help="$ac_help
114 --enable-config use wxConfig (and derived) classes"
115 ac_help="$ac_help
116 --enable-sockets use socket/network classes"
117 ac_help="$ac_help
118 --enable-dialupman use dialup network classes"
119 ac_help="$ac_help
120 --enable-ipc use interprocess communication (wxSocket etc.)"
121 ac_help="$ac_help
122 --enable-apple_ieee use the Apple IEEE codec"
123 ac_help="$ac_help
124 --enable-timedate use date/time classes"
125 ac_help="$ac_help
126 --enable-wave use wxWave class"
127 ac_help="$ac_help
128 --enable-fraction use wxFraction class"
129 ac_help="$ac_help
130 --enable-dynlib use wxLibrary class for DLL loading"
131 ac_help="$ac_help
132 --enable-longlong use wxLongLong class"
133 ac_help="$ac_help
134 --enable-log use logging system"
135 ac_help="$ac_help
136 --enable-streams use wxStream etc classes"
137 ac_help="$ac_help
138 --enable-file use wxFile classes"
139 ac_help="$ac_help
140 --enable-textfile use wxTextFile classes"
141 ac_help="$ac_help
142 --enable-unicode compile wxString with Unicode support"
143 ac_help="$ac_help
144 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
145 ac_help="$ac_help
146 --enable-wxprintfv use wxWindows implementation of vprintf()"
147 ac_help="$ac_help
148 --enable-joystick compile in joystick support (Linux only)"
149 ac_help="$ac_help
150 --enable-std_iostreams use standard C++ stream classes"
151 ac_help="$ac_help
152 --enable-filesystem use virtual file systems classes"
153 ac_help="$ac_help
154 --enable-fs_inet use virtual HTTP/FTP filesystems"
155 ac_help="$ac_help
156 --enable-fs_zip use virtual ZIP filesystems"
157 ac_help="$ac_help
158 --enable-zipstream use wxZipInputStream"
159 ac_help="$ac_help
160 --enable-threads use threads"
161 ac_help="$ac_help
162 --enable-serial use class serialization"
163 ac_help="$ac_help
164 --enable-docview use document view architecture"
165 ac_help="$ac_help
166 --enable-help use help (using external browser at present)"
167 ac_help="$ac_help
168 --enable-constraints use layout-constraints system"
169 ac_help="$ac_help
170 --enable-printarch use printing architecture"
171 ac_help="$ac_help
172 --enable-mdi use multiple document interface architecture"
173 ac_help="$ac_help
174 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
175 ac_help="$ac_help
176 --enable-prologio use Prolog IO library"
177 ac_help="$ac_help
178 --enable-resources use wxWindows resources"
179 ac_help="$ac_help
180 --enable-xresources use X resources for save (default for gtk+)"
181 ac_help="$ac_help
182 --enable-clipboard use wxClipboard classes"
183 ac_help="$ac_help
184 --enable-dnd use Drag'n'Drop classes"
185 ac_help="$ac_help
186 --enable-wxtree make wxTree library"
187 ac_help="$ac_help
188 --enable-controls use all usual controls"
189 ac_help="$ac_help
190 --enable-accel use accelerators"
191 ac_help="$ac_help
192 --enable-caret use wxCaret class"
193 ac_help="$ac_help
194 --enable-bmpbutton use wxBitmapButton class"
195 ac_help="$ac_help
196 --enable-checkbox use wxCheckBox class"
197 ac_help="$ac_help
198 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
199 ac_help="$ac_help
200 --enable-choice use wxChoice class"
201 ac_help="$ac_help
202 --enable-combobox use wxComboBox classes"
203 ac_help="$ac_help
204 --enable-gauge use wxGauge class"
205 ac_help="$ac_help
206 --enable-grid use wxGrid class"
207 ac_help="$ac_help
208 --enable-newgrid use new wxGrid class"
209 ac_help="$ac_help
210 --enable-imaglist use wxImageList class"
211 ac_help="$ac_help
212 --enable-listbox use wxListBox class"
213 ac_help="$ac_help
214 --enable-listctrl use wxListCtrl class"
215 ac_help="$ac_help
216 --enable-notebook use wxNotebook class"
217 ac_help="$ac_help
218 --enable-radiobox use wxRadioBox class"
219 ac_help="$ac_help
220 --enable-radiobtn use wxRadioButton class"
221 ac_help="$ac_help
222 --enable-sash use wxSashWindow class"
223 ac_help="$ac_help
224 --enable-scrollbar use wxScrollBar class and scrollable windows"
225 ac_help="$ac_help
226 --enable-slider use wxSlider class"
227 ac_help="$ac_help
228 --enable-spinbtn use wxSpinButton class"
229 ac_help="$ac_help
230 --enable-spinctrl use wxSpinCtrl class"
231 ac_help="$ac_help
232 --enable-splitter use wxSplitterWindow class"
233 ac_help="$ac_help
234 --enable-statbmp use wxStaticBitmap class"
235 ac_help="$ac_help
236 --enable-statbox use wxStaticBox class"
237 ac_help="$ac_help
238 --enable-statline use wxStaticLine class"
239 ac_help="$ac_help
240 --enable-statusbar use wxStatusBar class"
241 ac_help="$ac_help
242 --enable-tabdialog use wxTabControl class"
243 ac_help="$ac_help
244 --enable-toolbar use wxToolBar class"
245 ac_help="$ac_help
246 --enable-tbarnative use native wxToolBar class"
247 ac_help="$ac_help
248 --enable-tbarsmpl use wxToolBarSimple class"
249 ac_help="$ac_help
250 --enable-treectrl use wxTreeCtrl class"
251 ac_help="$ac_help
252 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
253 ac_help="$ac_help
254 --enable-dirdlg use wxDirDialog"
255 ac_help="$ac_help
256 --enable-textdlg use wxTextDialog"
257 ac_help="$ac_help
258 --enable-tipdlg use startup tips"
259 ac_help="$ac_help
260 --enable-progressdlg use wxProgressDialog"
261 ac_help="$ac_help
262 --enable-miniframe use wxMiniFrame class"
263 ac_help="$ac_help
264 --enable-html use wxHTML sub-library"
265 ac_help="$ac_help
266 --enable-tooltips use wxToolTip class"
267 ac_help="$ac_help
268 --enable-splines use spline drawing code"
269 ac_help="$ac_help
270 --enable-validators use wxValidator and derived classes"
271 ac_help="$ac_help
272 --enable-busyinfo use wxBusyInfo"
273 ac_help="$ac_help
274 --enable-plot use wxPlot"
275 ac_help="$ac_help
276 --enable-gif use gif images (GIF file format)"
277 ac_help="$ac_help
278 --enable-pcx use pcx images (PCX file format)"
279 ac_help="$ac_help
280 --enable-pnm use pnm images (PNM file format)"
281 ac_help="$ac_help
282 --with-x use the X Window System"
283
284 # Initialize some variables set by options.
285 # The variables have the same names as the options, with
286 # dashes changed to underlines.
287 build=NONE
288 cache_file=./config.cache
289 exec_prefix=NONE
290 host=NONE
291 no_create=
292 nonopt=NONE
293 no_recursion=
294 prefix=NONE
295 program_prefix=NONE
296 program_suffix=NONE
297 program_transform_name=s,x,x,
298 silent=
299 site=
300 srcdir=
301 target=NONE
302 verbose=
303 x_includes=NONE
304 x_libraries=NONE
305 bindir='${exec_prefix}/bin'
306 sbindir='${exec_prefix}/sbin'
307 libexecdir='${exec_prefix}/libexec'
308 datadir='${prefix}/share'
309 sysconfdir='${prefix}/etc'
310 sharedstatedir='${prefix}/com'
311 localstatedir='${prefix}/var'
312 libdir='${exec_prefix}/lib'
313 includedir='${prefix}/include'
314 oldincludedir='/usr/include'
315 infodir='${prefix}/info'
316 mandir='${prefix}/man'
317
318 # Initialize some other variables.
319 subdirs=
320 MFLAGS= MAKEFLAGS=
321 SHELL=${CONFIG_SHELL-/bin/sh}
322 # Maximum number of lines to put in a shell here document.
323 ac_max_here_lines=12
324
325 ac_prev=
326 for ac_option
327 do
328
329 # If the previous option needs an argument, assign it.
330 if test -n "$ac_prev"; then
331 eval "$ac_prev=\$ac_option"
332 ac_prev=
333 continue
334 fi
335
336 case "$ac_option" in
337 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
338 *) ac_optarg= ;;
339 esac
340
341 # Accept the important Cygnus configure options, so we can diagnose typos.
342
343 case "$ac_option" in
344
345 -bindir | --bindir | --bindi | --bind | --bin | --bi)
346 ac_prev=bindir ;;
347 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
348 bindir="$ac_optarg" ;;
349
350 -build | --build | --buil | --bui | --bu)
351 ac_prev=build ;;
352 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
353 build="$ac_optarg" ;;
354
355 -cache-file | --cache-file | --cache-fil | --cache-fi \
356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
357 ac_prev=cache_file ;;
358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
360 cache_file="$ac_optarg" ;;
361
362 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
363 ac_prev=datadir ;;
364 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
365 | --da=*)
366 datadir="$ac_optarg" ;;
367
368 -disable-* | --disable-*)
369 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
373 fi
374 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
375 eval "enable_${ac_feature}=no" ;;
376
377 -enable-* | --enable-*)
378 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
382 fi
383 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
384 case "$ac_option" in
385 *=*) ;;
386 *) ac_optarg=yes ;;
387 esac
388 eval "enable_${ac_feature}='$ac_optarg'" ;;
389
390 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
391 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
392 | --exec | --exe | --ex)
393 ac_prev=exec_prefix ;;
394 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
395 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
396 | --exec=* | --exe=* | --ex=*)
397 exec_prefix="$ac_optarg" ;;
398
399 -gas | --gas | --ga | --g)
400 # Obsolete; use --with-gas.
401 with_gas=yes ;;
402
403 -help | --help | --hel | --he)
404 # Omit some internal or obsolete options to make the list less imposing.
405 # This message is too long to be a string in the A/UX 3.1 sh.
406 cat << EOF
407 Usage: configure [options] [host]
408 Options: [defaults in brackets after descriptions]
409 Configuration:
410 --cache-file=FILE cache test results in FILE
411 --help print this message
412 --no-create do not create output files
413 --quiet, --silent do not print \`checking...' messages
414 --version print the version of autoconf that created configure
415 Directory and file names:
416 --prefix=PREFIX install architecture-independent files in PREFIX
417 [$ac_default_prefix]
418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
419 [same as prefix]
420 --bindir=DIR user executables in DIR [EPREFIX/bin]
421 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
422 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
423 --datadir=DIR read-only architecture-independent data in DIR
424 [PREFIX/share]
425 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
426 --sharedstatedir=DIR modifiable architecture-independent data in DIR
427 [PREFIX/com]
428 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
429 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
430 --includedir=DIR C header files in DIR [PREFIX/include]
431 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
432 --infodir=DIR info documentation in DIR [PREFIX/info]
433 --mandir=DIR man documentation in DIR [PREFIX/man]
434 --srcdir=DIR find the sources in DIR [configure dir or ..]
435 --program-prefix=PREFIX prepend PREFIX to installed program names
436 --program-suffix=SUFFIX append SUFFIX to installed program names
437 --program-transform-name=PROGRAM
438 run sed PROGRAM on installed program names
439 EOF
440 cat << EOF
441 Host type:
442 --build=BUILD configure for building on BUILD [BUILD=HOST]
443 --host=HOST configure for HOST [guessed]
444 --target=TARGET configure for TARGET [TARGET=HOST]
445 Features and packages:
446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
450 --x-includes=DIR X include files are in DIR
451 --x-libraries=DIR X library files are in DIR
452 EOF
453 if test -n "$ac_help"; then
454 echo "--enable and --with options recognized:$ac_help"
455 fi
456 exit 0 ;;
457
458 -host | --host | --hos | --ho)
459 ac_prev=host ;;
460 -host=* | --host=* | --hos=* | --ho=*)
461 host="$ac_optarg" ;;
462
463 -includedir | --includedir | --includedi | --included | --include \
464 | --includ | --inclu | --incl | --inc)
465 ac_prev=includedir ;;
466 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
467 | --includ=* | --inclu=* | --incl=* | --inc=*)
468 includedir="$ac_optarg" ;;
469
470 -infodir | --infodir | --infodi | --infod | --info | --inf)
471 ac_prev=infodir ;;
472 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
473 infodir="$ac_optarg" ;;
474
475 -libdir | --libdir | --libdi | --libd)
476 ac_prev=libdir ;;
477 -libdir=* | --libdir=* | --libdi=* | --libd=*)
478 libdir="$ac_optarg" ;;
479
480 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
481 | --libexe | --libex | --libe)
482 ac_prev=libexecdir ;;
483 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
484 | --libexe=* | --libex=* | --libe=*)
485 libexecdir="$ac_optarg" ;;
486
487 -localstatedir | --localstatedir | --localstatedi | --localstated \
488 | --localstate | --localstat | --localsta | --localst \
489 | --locals | --local | --loca | --loc | --lo)
490 ac_prev=localstatedir ;;
491 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
492 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
493 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
494 localstatedir="$ac_optarg" ;;
495
496 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
497 ac_prev=mandir ;;
498 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
499 mandir="$ac_optarg" ;;
500
501 -nfp | --nfp | --nf)
502 # Obsolete; use --without-fp.
503 with_fp=no ;;
504
505 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
506 | --no-cr | --no-c)
507 no_create=yes ;;
508
509 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
510 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
511 no_recursion=yes ;;
512
513 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
514 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
515 | --oldin | --oldi | --old | --ol | --o)
516 ac_prev=oldincludedir ;;
517 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
518 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
519 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
520 oldincludedir="$ac_optarg" ;;
521
522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
523 ac_prev=prefix ;;
524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
525 prefix="$ac_optarg" ;;
526
527 -program-prefix | --program-prefix | --program-prefi | --program-pref \
528 | --program-pre | --program-pr | --program-p)
529 ac_prev=program_prefix ;;
530 -program-prefix=* | --program-prefix=* | --program-prefi=* \
531 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
532 program_prefix="$ac_optarg" ;;
533
534 -program-suffix | --program-suffix | --program-suffi | --program-suff \
535 | --program-suf | --program-su | --program-s)
536 ac_prev=program_suffix ;;
537 -program-suffix=* | --program-suffix=* | --program-suffi=* \
538 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
539 program_suffix="$ac_optarg" ;;
540
541 -program-transform-name | --program-transform-name \
542 | --program-transform-nam | --program-transform-na \
543 | --program-transform-n | --program-transform- \
544 | --program-transform | --program-transfor \
545 | --program-transfo | --program-transf \
546 | --program-trans | --program-tran \
547 | --progr-tra | --program-tr | --program-t)
548 ac_prev=program_transform_name ;;
549 -program-transform-name=* | --program-transform-name=* \
550 | --program-transform-nam=* | --program-transform-na=* \
551 | --program-transform-n=* | --program-transform-=* \
552 | --program-transform=* | --program-transfor=* \
553 | --program-transfo=* | --program-transf=* \
554 | --program-trans=* | --program-tran=* \
555 | --progr-tra=* | --program-tr=* | --program-t=*)
556 program_transform_name="$ac_optarg" ;;
557
558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
559 | -silent | --silent | --silen | --sile | --sil)
560 silent=yes ;;
561
562 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
563 ac_prev=sbindir ;;
564 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
565 | --sbi=* | --sb=*)
566 sbindir="$ac_optarg" ;;
567
568 -sharedstatedir | --sharedstatedir | --sharedstatedi \
569 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
570 | --sharedst | --shareds | --shared | --share | --shar \
571 | --sha | --sh)
572 ac_prev=sharedstatedir ;;
573 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
574 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
575 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
576 | --sha=* | --sh=*)
577 sharedstatedir="$ac_optarg" ;;
578
579 -site | --site | --sit)
580 ac_prev=site ;;
581 -site=* | --site=* | --sit=*)
582 site="$ac_optarg" ;;
583
584 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
585 ac_prev=srcdir ;;
586 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
587 srcdir="$ac_optarg" ;;
588
589 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
590 | --syscon | --sysco | --sysc | --sys | --sy)
591 ac_prev=sysconfdir ;;
592 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
593 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
594 sysconfdir="$ac_optarg" ;;
595
596 -target | --target | --targe | --targ | --tar | --ta | --t)
597 ac_prev=target ;;
598 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
599 target="$ac_optarg" ;;
600
601 -v | -verbose | --verbose | --verbos | --verbo | --verb)
602 verbose=yes ;;
603
604 -version | --version | --versio | --versi | --vers)
605 echo "configure generated by autoconf version 2.13"
606 exit 0 ;;
607
608 -with-* | --with-*)
609 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
610 # Reject names that are not valid shell variable names.
611 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
612 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
613 fi
614 ac_package=`echo $ac_package| sed 's/-/_/g'`
615 case "$ac_option" in
616 *=*) ;;
617 *) ac_optarg=yes ;;
618 esac
619 eval "with_${ac_package}='$ac_optarg'" ;;
620
621 -without-* | --without-*)
622 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
623 # Reject names that are not valid shell variable names.
624 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
625 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
626 fi
627 ac_package=`echo $ac_package| sed 's/-/_/g'`
628 eval "with_${ac_package}=no" ;;
629
630 --x)
631 # Obsolete; use --with-x.
632 with_x=yes ;;
633
634 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
635 | --x-incl | --x-inc | --x-in | --x-i)
636 ac_prev=x_includes ;;
637 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
638 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
639 x_includes="$ac_optarg" ;;
640
641 -x-libraries | --x-libraries | --x-librarie | --x-librari \
642 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
643 ac_prev=x_libraries ;;
644 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
645 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
646 x_libraries="$ac_optarg" ;;
647
648 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
649 ;;
650
651 *)
652 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
653 echo "configure: warning: $ac_option: invalid host type" 1>&2
654 fi
655 if test "x$nonopt" != xNONE; then
656 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
657 fi
658 nonopt="$ac_option"
659 ;;
660
661 esac
662 done
663
664 if test -n "$ac_prev"; then
665 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
666 fi
667
668 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
669
670 # File descriptor usage:
671 # 0 standard input
672 # 1 file creation
673 # 2 errors and warnings
674 # 3 some systems may open it to /dev/tty
675 # 4 used on the Kubota Titan
676 # 6 checking for... messages and results
677 # 5 compiler messages saved in config.log
678 if test "$silent" = yes; then
679 exec 6>/dev/null
680 else
681 exec 6>&1
682 fi
683 exec 5>./config.log
684
685 echo "\
686 This file contains any messages produced by compilers while
687 running configure, to aid debugging if configure makes a mistake.
688 " 1>&5
689
690 # Strip out --no-create and --no-recursion so they do not pile up.
691 # Also quote any args containing shell metacharacters.
692 ac_configure_args=
693 for ac_arg
694 do
695 case "$ac_arg" in
696 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
697 | --no-cr | --no-c) ;;
698 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
699 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
700 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
701 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
702 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
703 esac
704 done
705
706 # NLS nuisances.
707 # Only set these to C if already set. These must not be set unconditionally
708 # because not all systems understand e.g. LANG=C (notably SCO).
709 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
710 # Non-C LC_CTYPE values break the ctype check.
711 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
712 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
713 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
714 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
715
716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
717 rm -rf conftest* confdefs.h
718 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
719 echo > confdefs.h
720
721 # A filename unique to this package, relative to the directory that
722 # configure is in, which we can look for to find out if srcdir is correct.
723 ac_unique_file=wx-config.in
724
725 # Find the source files, if location was not specified.
726 if test -z "$srcdir"; then
727 ac_srcdir_defaulted=yes
728 # Try the directory containing this script, then its parent.
729 ac_prog=$0
730 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
731 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
732 srcdir=$ac_confdir
733 if test ! -r $srcdir/$ac_unique_file; then
734 srcdir=..
735 fi
736 else
737 ac_srcdir_defaulted=no
738 fi
739 if test ! -r $srcdir/$ac_unique_file; then
740 if test "$ac_srcdir_defaulted" = yes; then
741 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
742 else
743 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
744 fi
745 fi
746 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
747
748 # Prefer explicitly selected file to automatically selected ones.
749 if test -z "$CONFIG_SITE"; then
750 if test "x$prefix" != xNONE; then
751 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
752 else
753 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
754 fi
755 fi
756 for ac_site_file in $CONFIG_SITE; do
757 if test -r "$ac_site_file"; then
758 echo "loading site script $ac_site_file"
759 . "$ac_site_file"
760 fi
761 done
762
763 if test -r "$cache_file"; then
764 echo "loading cache $cache_file"
765 . $cache_file
766 else
767 echo "creating cache $cache_file"
768 > $cache_file
769 fi
770
771 ac_ext=c
772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773 ac_cpp='$CPP $CPPFLAGS'
774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776 cross_compiling=$ac_cv_prog_cc_cross
777
778 ac_exeext=
779 ac_objext=o
780 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
781 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
782 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
783 ac_n= ac_c='
784 ' ac_t=' '
785 else
786 ac_n=-n ac_c= ac_t=
787 fi
788 else
789 ac_n= ac_c='\c' ac_t=
790 fi
791
792
793
794 ac_aux_dir=
795 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
796 if test -f $ac_dir/install-sh; then
797 ac_aux_dir=$ac_dir
798 ac_install_sh="$ac_aux_dir/install-sh -c"
799 break
800 elif test -f $ac_dir/install.sh; then
801 ac_aux_dir=$ac_dir
802 ac_install_sh="$ac_aux_dir/install.sh -c"
803 break
804 fi
805 done
806 if test -z "$ac_aux_dir"; then
807 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
808 fi
809 ac_config_guess=$ac_aux_dir/config.guess
810 ac_config_sub=$ac_aux_dir/config.sub
811 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
812
813
814 # Do some error checking and defaulting for the host and target type.
815 # The inputs are:
816 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
817 #
818 # The rules are:
819 # 1. You are not allowed to specify --host, --target, and nonopt at the
820 # same time.
821 # 2. Host defaults to nonopt.
822 # 3. If nonopt is not specified, then host defaults to the current host,
823 # as determined by config.guess.
824 # 4. Target and build default to nonopt.
825 # 5. If nonopt is not specified, then target and build default to host.
826
827 # The aliases save the names the user supplied, while $host etc.
828 # will get canonicalized.
829 case $host---$target---$nonopt in
830 NONE---*---* | *---NONE---* | *---*---NONE) ;;
831 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
832 esac
833
834
835 # Make sure we can run config.sub.
836 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
837 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
838 fi
839
840 echo $ac_n "checking host system type""... $ac_c" 1>&6
841 echo "configure:842: checking host system type" >&5
842
843 host_alias=$host
844 case "$host_alias" in
845 NONE)
846 case $nonopt in
847 NONE)
848 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
849 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
850 fi ;;
851 *) host_alias=$nonopt ;;
852 esac ;;
853 esac
854
855 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
856 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
857 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
858 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
859 echo "$ac_t""$host" 1>&6
860
861 echo $ac_n "checking target system type""... $ac_c" 1>&6
862 echo "configure:863: checking target system type" >&5
863
864 target_alias=$target
865 case "$target_alias" in
866 NONE)
867 case $nonopt in
868 NONE) target_alias=$host_alias ;;
869 *) target_alias=$nonopt ;;
870 esac ;;
871 esac
872
873 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
874 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
875 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
876 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
877 echo "$ac_t""$target" 1>&6
878
879 echo $ac_n "checking build system type""... $ac_c" 1>&6
880 echo "configure:881: checking build system type" >&5
881
882 build_alias=$build
883 case "$build_alias" in
884 NONE)
885 case $nonopt in
886 NONE) build_alias=$host_alias ;;
887 *) build_alias=$nonopt ;;
888 esac ;;
889 esac
890
891 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
892 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
893 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
894 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
895 echo "$ac_t""$build" 1>&6
896
897 test "$host_alias" != "$target_alias" &&
898 test "$program_prefix$program_suffix$program_transform_name" = \
899 NONENONEs,x,x, &&
900 program_prefix=${target_alias}-
901
902
903
904 WX_MAJOR_VERSION_NUMBER=2
905 WX_MINOR_VERSION_NUMBER=1
906 WX_RELEASE_NUMBER=14
907
908 WX_INTERFACE_AGE=0
909 WX_BINARY_AGE=0
910
911 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
912
913 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
914 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
915 WX_REVISION=$WX_INTERFACE_AGE
916 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
917
918
919 USE_UNIX=1
920 USE_WIN32=0
921 USE_BEOS=0
922
923 USE_LINUX=
924 USE_SGI=
925 USE_HPUX=
926 USE_SYSV=
927 USE_SVR4=
928 USE_AIX=
929 USE_SUN=
930 USE_SOLARIS=
931 USE_SUNOS=
932 USE_ALPHA=
933 USE_OSF=
934 USE_BSD=
935 USE_FREEBSD=
936 USE_VMS=
937 USE_ULTRIX=
938 USE_CYGWIN=
939 USE_MINGW=
940 USE_DATA_GENERAL=
941
942 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
943
944 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
945
946 DEFAULT_wxUSE_GTK=0
947 DEFAULT_wxUSE_MOTIF=0
948 DEFAULT_wxUSE_MSW=0
949 DEFAULT_wxUSE_WINE=0
950 DEFAULT_wxUSE_PM=0
951
952 DEFAULT_DEFAULT_wxUSE_GTK=0
953 DEFAULT_DEFAULT_wxUSE_MOTIF=0
954 DEFAULT_DEFAULT_wxUSE_MSW=0
955 DEFAULT_DEFAULT_wxUSE_WINE=0
956 DEFAULT_DEFAULT_wxUSE_PM=0
957
958 PROGRAM_EXT=
959
960 case "${host}" in
961 *-hp-hpux* )
962 USE_HPUX=1
963 DEFAULT_DEFAULT_wxUSE_MOTIF=1
964 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
965 cat >> confdefs.h <<\EOF
966 #define __HPUX__ 1
967 EOF
968
969 ;;
970 *-*-linux* )
971 USE_LINUX=1
972 cat >> confdefs.h <<\EOF
973 #define __LINUX__ 1
974 EOF
975
976 TMP=`uname -m`
977 if test "x$TMP" = "xalpha"; then
978 USE_ALPHA=1
979 cat >> confdefs.h <<\EOF
980 #define __ALPHA__ 1
981 EOF
982
983 fi
984 DEFAULT_DEFAULT_wxUSE_GTK=1
985 ;;
986 *-*-irix5* | *-*-irix6* )
987 USE_SGI=1
988 USE_SVR4=1
989 cat >> confdefs.h <<\EOF
990 #define __SGI__ 1
991 EOF
992
993 cat >> confdefs.h <<\EOF
994 #define __SVR4__ 1
995 EOF
996
997 DEFAULT_DEFAULT_wxUSE_MOTIF=1
998 ;;
999 *-*-solaris2* )
1000 USE_SUN=1
1001 USE_SOLARIS=1
1002 USE_SVR4=1
1003 cat >> confdefs.h <<\EOF
1004 #define __SUN__ 1
1005 EOF
1006
1007 cat >> confdefs.h <<\EOF
1008 #define __SOLARIS__ 1
1009 EOF
1010
1011 cat >> confdefs.h <<\EOF
1012 #define __SVR4__ 1
1013 EOF
1014
1015 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1016 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1017 ;;
1018 *-*-sunos4* )
1019 USE_SUN=1
1020 USE_SUNOS=1
1021 USE_BSD=1
1022 cat >> confdefs.h <<\EOF
1023 #define __SUN__ 1
1024 EOF
1025
1026 cat >> confdefs.h <<\EOF
1027 #define __SUNOS__ 1
1028 EOF
1029
1030 cat >> confdefs.h <<\EOF
1031 #define __BSD__ 1
1032 EOF
1033
1034 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1035 ;;
1036 *-*-freebsd* | *-*-netbsd*)
1037 USE_BSD=1
1038 USE_FREEBSD=1
1039 cat >> confdefs.h <<\EOF
1040 #define __FREEBSD__ 1
1041 EOF
1042
1043 cat >> confdefs.h <<\EOF
1044 #define __BSD__ 1
1045 EOF
1046
1047 DEFAULT_DEFAULT_wxUSE_GTK=1
1048 ;;
1049 *-*-osf* )
1050 USE_ALPHA=1
1051 USE_OSF=1
1052 cat >> confdefs.h <<\EOF
1053 #define __ALPHA__ 1
1054 EOF
1055
1056 cat >> confdefs.h <<\EOF
1057 #define __OSF__ 1
1058 EOF
1059
1060 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1061 ;;
1062 *-*-dgux5* )
1063 USE_ALPHA=1
1064 USE_SVR4=1
1065 cat >> confdefs.h <<\EOF
1066 #define __ALPHA__ 1
1067 EOF
1068
1069 cat >> confdefs.h <<\EOF
1070 #define __SVR4__ 1
1071 EOF
1072
1073 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1074 ;;
1075 *-*-sysv5* )
1076 USE_SYSV=1
1077 USE_SVR4=1
1078 cat >> confdefs.h <<\EOF
1079 #define __SYSV__ 1
1080 EOF
1081
1082 cat >> confdefs.h <<\EOF
1083 #define __SVR4__ 1
1084 EOF
1085
1086 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1087 ;;
1088 *-*-aix* )
1089 USE_AIX=1
1090 USE_SYSV=1
1091 USE_SVR4=1
1092 cat >> confdefs.h <<\EOF
1093 #define __AIX__ 1
1094 EOF
1095
1096 cat >> confdefs.h <<\EOF
1097 #define __SYSV__ 1
1098 EOF
1099
1100 cat >> confdefs.h <<\EOF
1101 #define __SVR4__ 1
1102 EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1105 ;;
1106
1107 *-*-cygwin32* | *-*-mingw32* )
1108 USE_UNIX=0
1109 USE_WIN32=1
1110 cat >> confdefs.h <<\EOF
1111 #define __WIN32__ 1
1112 EOF
1113
1114 cat >> confdefs.h <<\EOF
1115 #define __WIN95__ 1
1116 EOF
1117
1118 cat >> confdefs.h <<\EOF
1119 #define __WINDOWS__ 1
1120 EOF
1121
1122 cat >> confdefs.h <<\EOF
1123 #define __GNUWIN32__ 1
1124 EOF
1125
1126 cat >> confdefs.h <<\EOF
1127 #define STRICT 1
1128 EOF
1129
1130 cat >> confdefs.h <<\EOF
1131 #define WINVER 0x0400
1132 EOF
1133
1134 PROGRAM_EXT=".exe"
1135 DEFAULT_DEFAULT_wxUSE_MSW=1
1136 ;;
1137
1138 *-pc-os2_emx )
1139 cat >> confdefs.h <<\EOF
1140 #define __EMX__ 1
1141 EOF
1142
1143 PROGRAM_EXT=".exe"
1144 DEFAULT_DEFAULT_wxUSE_PM=1
1145 ;;
1146
1147 *-*-beos* )
1148 USE_BEOS=1
1149 cat >> confdefs.h <<\EOF
1150 #define __BEOS__ 1
1151 EOF
1152
1153 ;;
1154
1155 *)
1156 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1157 esac
1158
1159 if test "$USE_UNIX" = 1 ; then
1160 wxUSE_UNIX=yes
1161 cat >> confdefs.h <<\EOF
1162 #define __UNIX__ 1
1163 EOF
1164
1165
1166 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1167 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1168 fi
1169
1170 if test "$USE_BEOS" = 1; then
1171 SRC_SUBDIRS="$SRC_SUBDIRS be"
1172 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1173 fi
1174
1175 if test "$USE_LINUX" = 1; then
1176 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1177 echo "configure:1178: checking for gettext in -lc" >&5
1178 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1181 else
1182 ac_save_LIBS="$LIBS"
1183 LIBS="-lc $LIBS"
1184 cat > conftest.$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1187 /* Override any gcc2 internal prototype to avoid an error. */
1188 /* We use char because int might match the return type of a gcc2
1189 builtin and then its argument prototype would still apply. */
1190 char gettext();
1191
1192 int main() {
1193 gettext()
1194 ; return 0; }
1195 EOF
1196 if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1197 rm -rf conftest*
1198 eval "ac_cv_lib_$ac_lib_var=yes"
1199 else
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1202 rm -rf conftest*
1203 eval "ac_cv_lib_$ac_lib_var=no"
1204 fi
1205 rm -f conftest*
1206 LIBS="$ac_save_LIBS"
1207
1208 fi
1209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1210 echo "$ac_t""yes" 1>&6
1211 cat >> confdefs.h <<\EOF
1212 #define wxHAVE_GLIBC2 1
1213 EOF
1214
1215 else
1216 echo "$ac_t""no" 1>&6
1217 fi
1218
1219 fi
1220
1221
1222
1223
1224 wx_arg_cache_file="configarg.cache"
1225 echo "loading argument cache $wx_arg_cache_file"
1226 rm -f ${wx_arg_cache_file}.tmp
1227 touch ${wx_arg_cache_file}.tmp
1228 touch ${wx_arg_cache_file}
1229
1230
1231 DEBUG_CONFIGURE=0
1232 if test $DEBUG_CONFIGURE = 1; then
1233 DEFAULT_wxUSE_THREADS=yes
1234
1235 DEFAULT_wxUSE_SHARED=yes
1236 DEFAULT_wxUSE_BURNT_NAME=no
1237 DEFAULT_wxUSE_OPTIMISE=yes
1238 DEFAULT_wxUSE_PROFILE=no
1239 DEFAULT_wxUSE_NO_DEPS=no
1240 DEFAULT_wxUSE_NO_RTTI=no
1241 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1242 DEFAULT_wxUSE_PERMISSIVE=no
1243 DEFAULT_wxUSE_DEBUG_FLAG=yes
1244 DEFAULT_wxUSE_DEBUG_INFO=yes
1245 DEFAULT_wxUSE_DEBUG_GDB=yes
1246 DEFAULT_wxUSE_MEM_TRACING=no
1247 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1248 DEFAULT_wxUSE_DMALLOC=no
1249 DEFAULT_wxUSE_APPLE_IEEE=no
1250
1251 DEFAULT_wxUSE_LOG=yes
1252
1253 DEFAULT_wxUSE_GUI=yes
1254
1255 DEFAULT_wxUSE_ZLIB=no
1256 DEFAULT_wxUSE_LIBPNG=no
1257 DEFAULT_wxUSE_LIBJPEG=no
1258 DEFAULT_wxUSE_LIBTIFF=no
1259 DEFAULT_wxUSE_ODBC=no
1260
1261 DEFAULT_wxUSE_STD_IOSTREAM=no
1262 DEFAULT_wxUSE_FILE=no
1263 DEFAULT_wxUSE_TEXTFILE=no
1264 DEFAULT_wxUSE_TIMEDATE=no
1265 DEFAULT_wxUSE_WAVE=no
1266 DEFAULT_wxUSE_INTL=no
1267 DEFAULT_wxUSE_CONFIG=no
1268 DEFAULT_wxUSE_STREAMS=no
1269 DEFAULT_wxUSE_SOCKETS=no
1270 DEFAULT_wxUSE_DIALUP_MANAGER=no
1271 DEFAULT_wxUSE_SERIAL=no
1272 DEFAULT_wxUSE_JOYSTICK=no
1273 DEFAULT_wxUSE_DYNLIB_CLASS=no
1274 DEFAULT_wxUSE_LONGLONG=no
1275
1276 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1277 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1278 DEFAULT_wxUSE_POSTSCRIPT=no
1279
1280 DEFAULT_wxUSE_X_RESOURCES=no
1281 DEFAULT_wxUSE_CLIPBOARD=no
1282 DEFAULT_wxUSE_TOOLTIPS=no
1283 DEFAULT_wxUSE_DRAG_AND_DROP=no
1284 DEFAULT_wxUSE_SPLINES=no
1285
1286 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1287 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1288 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1289
1290 DEFAULT_wxUSE_PROLOGIO=no
1291 DEFAULT_wxUSE_RESOURCES=no
1292 DEFAULT_wxUSE_CONSTRAINTS=no
1293 DEFAULT_wxUSE_IPC=no
1294 DEFAULT_wxUSE_HELP=no
1295 DEFAULT_wxUSE_WXTREE=no
1296 DEFAULT_wxUSE_METAFILE=no
1297
1298 DEFAULT_wxUSE_COMMONDLGS=no
1299 DEFAULT_wxUSE_DIRDLG=no
1300 DEFAULT_wxUSE_TEXTDLG=no
1301 DEFAULT_wxUSE_STARTUP_TIPS=no
1302 DEFAULT_wxUSE_PROGRESSDLG=no
1303 DEFAULT_wxUSE_MINIFRAME=no
1304 DEFAULT_wxUSE_HTML=no
1305 DEFAULT_wxUSE_FILESYSTEM=no
1306 DEFAULT_wxUSE_FS_INET=no
1307 DEFAULT_wxUSE_FS_ZIP=no
1308 DEFAULT_wxUSE_BUSYINFO=no
1309 DEFAULT_wxUSE_ZIPSTREAM=no
1310 DEFAULT_wxUSE_VALIDATORS=yes
1311
1312 DEFAULT_wxUSE_ACCEL=no
1313 DEFAULT_wxUSE_CARET=no
1314 DEFAULT_wxUSE_BMPBUTTON=no
1315 DEFAULT_wxUSE_CHECKBOX=no
1316 DEFAULT_wxUSE_CHECKLST=no
1317 DEFAULT_wxUSE_CHOICE=yes
1318 DEFAULT_wxUSE_COMBOBOX=no
1319 DEFAULT_wxUSE_GAUGE=no
1320 DEFAULT_wxUSE_GRID=no
1321 DEFAULT_wxUSE_NEW_GRID=no
1322 DEFAULT_wxUSE_IMAGLIST=no
1323 DEFAULT_wxUSE_LISTBOX=no
1324 DEFAULT_wxUSE_LISTCTRL=no
1325 DEFAULT_wxUSE_NOTEBOOK=no
1326 DEFAULT_wxUSE_PLOT=no
1327 DEFAULT_wxUSE_RADIOBOX=no
1328 DEFAULT_wxUSE_RADIOBTN=no
1329 DEFAULT_wxUSE_SASH=no
1330 DEFAULT_wxUSE_SCROLLBAR=no
1331 DEFAULT_wxUSE_SLIDER=no
1332 DEFAULT_wxUSE_SPINBTN=no
1333 DEFAULT_wxUSE_SPINCTRL=no
1334 DEFAULT_wxUSE_SPLITTER=no
1335 DEFAULT_wxUSE_STATBMP=no
1336 DEFAULT_wxUSE_STATBOX=no
1337 DEFAULT_wxUSE_STATLINE=no
1338 DEFAULT_wxUSE_STATUSBAR=yes
1339 DEFAULT_wxUSE_TABDIALOG=no
1340 DEFAULT_wxUSE_TOOLBAR=no
1341 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1342 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1343 DEFAULT_wxUSE_TREECTRL=no
1344
1345 DEFAULT_wxUSE_UNICODE=no
1346 DEFAULT_wxUSE_WCSRTOMBS=no
1347
1348 DEFAULT_wxUSE_GIF=no
1349 DEFAULT_wxUSE_PCX=no
1350 DEFAULT_wxUSE_PNM=no
1351 else
1352 DEFAULT_wxUSE_THREADS=yes
1353
1354 DEFAULT_wxUSE_SHARED=yes
1355 DEFAULT_wxUSE_BURNT_NAME=no
1356 DEFAULT_wxUSE_OPTIMISE=yes
1357 DEFAULT_wxUSE_PROFILE=no
1358 DEFAULT_wxUSE_NO_DEPS=no
1359 DEFAULT_wxUSE_NO_RTTI=no
1360 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1361 DEFAULT_wxUSE_PERMISSIVE=no
1362 DEFAULT_wxUSE_DEBUG_FLAG=no
1363 DEFAULT_wxUSE_DEBUG_INFO=no
1364 DEFAULT_wxUSE_DEBUG_GDB=no
1365 DEFAULT_wxUSE_MEM_TRACING=no
1366 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1367 DEFAULT_wxUSE_DMALLOC=no
1368 DEFAULT_wxUSE_APPLE_IEEE=yes
1369
1370 DEFAULT_wxUSE_LOG=yes
1371
1372 DEFAULT_wxUSE_GUI=yes
1373
1374 DEFAULT_wxUSE_ZLIB=yes
1375 DEFAULT_wxUSE_LIBPNG=yes
1376 DEFAULT_wxUSE_LIBJPEG=yes
1377 DEFAULT_wxUSE_LIBTIFF=yes
1378 DEFAULT_wxUSE_ODBC=no
1379
1380 DEFAULT_wxUSE_STD_IOSTREAM=no
1381 DEFAULT_wxUSE_FILE=yes
1382 DEFAULT_wxUSE_TEXTFILE=yes
1383 DEFAULT_wxUSE_TIMEDATE=yes
1384 DEFAULT_wxUSE_WAVE=no
1385 DEFAULT_wxUSE_INTL=yes
1386 DEFAULT_wxUSE_CONFIG=yes
1387 DEFAULT_wxUSE_STREAMS=yes
1388 DEFAULT_wxUSE_SOCKETS=yes
1389 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1390 DEFAULT_wxUSE_SERIAL=yes
1391 DEFAULT_wxUSE_JOYSTICK=yes
1392 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1393 DEFAULT_wxUSE_LONGLONG=yes
1394
1395 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1396 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1397 DEFAULT_wxUSE_POSTSCRIPT=yes
1398
1399 DEFAULT_wxUSE_X_RESOURCES=no
1400 DEFAULT_wxUSE_CLIPBOARD=yes
1401 DEFAULT_wxUSE_TOOLTIPS=yes
1402 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1403 DEFAULT_wxUSE_SPLINES=yes
1404
1405 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1406 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1407 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1408
1409 DEFAULT_wxUSE_PROLOGIO=yes
1410 DEFAULT_wxUSE_RESOURCES=yes
1411 DEFAULT_wxUSE_CONSTRAINTS=yes
1412 DEFAULT_wxUSE_IPC=yes
1413 DEFAULT_wxUSE_HELP=yes
1414 DEFAULT_wxUSE_WXTREE=yes
1415 DEFAULT_wxUSE_METAFILE=yes
1416
1417 DEFAULT_wxUSE_COMMONDLGS=yes
1418 DEFAULT_wxUSE_DIRDLG=yes
1419 DEFAULT_wxUSE_TEXTDLG=yes
1420 DEFAULT_wxUSE_STARTUP_TIPS=yes
1421 DEFAULT_wxUSE_PROGRESSDLG=yes
1422 DEFAULT_wxUSE_MINIFRAME=yes
1423 DEFAULT_wxUSE_HTML=yes
1424 DEFAULT_wxUSE_FILESYSTEM=yes
1425 DEFAULT_wxUSE_FS_INET=yes
1426 DEFAULT_wxUSE_FS_ZIP=yes
1427 DEFAULT_wxUSE_BUSYINFO=yes
1428 DEFAULT_wxUSE_ZIPSTREAM=yes
1429 DEFAULT_wxUSE_VALIDATORS=yes
1430
1431 DEFAULT_wxUSE_ACCEL=yes
1432 DEFAULT_wxUSE_CARET=yes
1433 DEFAULT_wxUSE_BMPBUTTON=yes
1434 DEFAULT_wxUSE_CHECKBOX=yes
1435 DEFAULT_wxUSE_CHECKLST=yes
1436 DEFAULT_wxUSE_CHOICE=yes
1437 DEFAULT_wxUSE_COMBOBOX=yes
1438 DEFAULT_wxUSE_GAUGE=yes
1439 DEFAULT_wxUSE_GRID=yes
1440 DEFAULT_wxUSE_NEW_GRID=yes
1441 DEFAULT_wxUSE_IMAGLIST=yes
1442 DEFAULT_wxUSE_LISTBOX=yes
1443 DEFAULT_wxUSE_LISTCTRL=yes
1444 DEFAULT_wxUSE_NOTEBOOK=yes
1445 DEFAULT_wxUSE_PLOT=yes
1446 DEFAULT_wxUSE_RADIOBOX=yes
1447 DEFAULT_wxUSE_RADIOBTN=yes
1448 DEFAULT_wxUSE_SASH=yes
1449 DEFAULT_wxUSE_SCROLLBAR=yes
1450 DEFAULT_wxUSE_SLIDER=yes
1451 DEFAULT_wxUSE_SPINBTN=yes
1452 DEFAULT_wxUSE_SPINCTRL=yes
1453 DEFAULT_wxUSE_SPLITTER=yes
1454 DEFAULT_wxUSE_STATBMP=yes
1455 DEFAULT_wxUSE_STATBOX=yes
1456 DEFAULT_wxUSE_STATLINE=yes
1457 DEFAULT_wxUSE_STATUSBAR=yes
1458 DEFAULT_wxUSE_TABDIALOG=no
1459 DEFAULT_wxUSE_TOOLBAR=yes
1460 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1461 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1462 DEFAULT_wxUSE_TREECTRL=yes
1463
1464 DEFAULT_wxUSE_UNICODE=no
1465 DEFAULT_wxUSE_WCSRTOMBS=no
1466
1467 DEFAULT_wxUSE_GIF=yes
1468 DEFAULT_wxUSE_PCX=yes
1469 DEFAULT_wxUSE_PNM=yes
1470 fi
1471
1472
1473
1474 for toolkit in `echo $ALL_TOOLKITS`; do
1475 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1476 if test "x$LINE" != x ; then
1477 has_toolkit_in_cache=1
1478 eval "DEFAULT_$LINE"
1479 eval "CACHE_$toolkit=1"
1480 fi
1481 done
1482
1483
1484
1485 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1486 echo "configure:1487: checking "for --enable-gui"" >&5
1487 no_cache=0
1488 # Check whether --enable-gui or --disable-gui was given.
1489 if test "${enable_gui+set}" = set; then
1490 enableval="$enable_gui"
1491
1492 if test "$enableval" = yes; then
1493 ac_cv_use_gui='wxUSE_GUI=yes'
1494 else
1495 ac_cv_use_gui='wxUSE_GUI=no'
1496 fi
1497
1498 else
1499
1500 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1501 if test "x$LINE" != x ; then
1502 eval "DEFAULT_$LINE"
1503 else
1504 no_cache=1
1505 fi
1506
1507 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1508
1509 fi
1510
1511
1512 eval "$ac_cv_use_gui"
1513 if test "$no_cache" != 1; then
1514 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1515 fi
1516
1517 if test "$wxUSE_GUI" = yes; then
1518 echo "$ac_t""yes" 1>&6
1519 else
1520 echo "$ac_t""no" 1>&6
1521 fi
1522
1523
1524 if test "$wxUSE_GUI" = "yes"; then
1525
1526 # Check whether --with-gtk or --without-gtk was given.
1527 if test "${with_gtk+set}" = set; then
1528 withval="$with_gtk"
1529 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1530 fi
1531
1532 # Check whether --with-motif or --without-motif was given.
1533 if test "${with_motif+set}" = set; then
1534 withval="$with_motif"
1535 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1536 fi
1537
1538 # Check whether --with-wine or --without-wine was given.
1539 if test "${with_wine+set}" = set; then
1540 withval="$with_wine"
1541 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1542 fi
1543
1544 # Check whether --with-cygwin or --without-cygwin was given.
1545 if test "${with_cygwin+set}" = set; then
1546 withval="$with_cygwin"
1547 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1548 fi
1549
1550 # Check whether --with-mingw or --without-mingw was given.
1551 if test "${with_mingw+set}" = set; then
1552 withval="$with_mingw"
1553 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1554 fi
1555
1556 # Check whether --with-pm or --without-pm was given.
1557 if test "${with_pm+set}" = set; then
1558 withval="$with_pm"
1559 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1560 fi
1561
1562
1563 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1564 if test "${with_gtk_prefix+set}" = set; then
1565 withval="$with_gtk_prefix"
1566 gtk_config_prefix="$withval"
1567 else
1568 gtk_config_prefix=""
1569 fi
1570
1571 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1572 if test "${with_gtk_exec_prefix+set}" = set; then
1573 withval="$with_gtk_exec_prefix"
1574 gtk_config_exec_prefix="$withval"
1575 else
1576 gtk_config_exec_prefix=""
1577 fi
1578
1579
1580
1581 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1582 echo "configure:1583: checking "for --with-libpng"" >&5
1583 no_cache=0
1584 # Check whether --with-libpng or --without-libpng was given.
1585 if test "${with_libpng+set}" = set; then
1586 withval="$with_libpng"
1587
1588 if test "$withval" = yes; then
1589 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1590 else
1591 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1592 fi
1593
1594 else
1595
1596 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1597 if test "x$LINE" != x ; then
1598 eval "DEFAULT_$LINE"
1599 else
1600 no_cache=1
1601 fi
1602
1603 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1604
1605 fi
1606
1607
1608 eval "$ac_cv_use_libpng"
1609 if test "$no_cache" != 1; then
1610 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1611 fi
1612
1613 if test "$wxUSE_LIBPNG" = yes; then
1614 echo "$ac_t""yes" 1>&6
1615 else
1616 echo "$ac_t""no" 1>&6
1617 fi
1618
1619
1620 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1621 echo "configure:1622: checking "for --with-libjpeg"" >&5
1622 no_cache=0
1623 # Check whether --with-libjpeg or --without-libjpeg was given.
1624 if test "${with_libjpeg+set}" = set; then
1625 withval="$with_libjpeg"
1626
1627 if test "$withval" = yes; then
1628 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1629 else
1630 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1631 fi
1632
1633 else
1634
1635 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1636 if test "x$LINE" != x ; then
1637 eval "DEFAULT_$LINE"
1638 else
1639 no_cache=1
1640 fi
1641
1642 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1643
1644 fi
1645
1646
1647 eval "$ac_cv_use_libjpeg"
1648 if test "$no_cache" != 1; then
1649 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1650 fi
1651
1652 if test "$wxUSE_LIBJPEG" = yes; then
1653 echo "$ac_t""yes" 1>&6
1654 else
1655 echo "$ac_t""no" 1>&6
1656 fi
1657
1658
1659 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1660 echo "configure:1661: checking "for --with-libtiff"" >&5
1661 no_cache=0
1662 # Check whether --with-libtiff or --without-libtiff was given.
1663 if test "${with_libtiff+set}" = set; then
1664 withval="$with_libtiff"
1665
1666 if test "$withval" = yes; then
1667 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1668 else
1669 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1670 fi
1671
1672 else
1673
1674 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1675 if test "x$LINE" != x ; then
1676 eval "DEFAULT_$LINE"
1677 else
1678 no_cache=1
1679 fi
1680
1681 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1682
1683 fi
1684
1685
1686 eval "$ac_cv_use_libtiff"
1687 if test "$no_cache" != 1; then
1688 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1689 fi
1690
1691 if test "$wxUSE_LIBTIFF" = yes; then
1692 echo "$ac_t""yes" 1>&6
1693 else
1694 echo "$ac_t""no" 1>&6
1695 fi
1696
1697
1698 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1699 echo "configure:1700: checking "for --with-opengl"" >&5
1700 no_cache=0
1701 # Check whether --with-opengl or --without-opengl was given.
1702 if test "${with_opengl+set}" = set; then
1703 withval="$with_opengl"
1704
1705 if test "$withval" = yes; then
1706 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1707 else
1708 ac_cv_use_opengl='wxUSE_OPENGL=no'
1709 fi
1710
1711 else
1712
1713 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1714 if test "x$LINE" != x ; then
1715 eval "DEFAULT_$LINE"
1716 else
1717 no_cache=1
1718 fi
1719
1720 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1721
1722 fi
1723
1724
1725 eval "$ac_cv_use_opengl"
1726 if test "$no_cache" != 1; then
1727 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1728 fi
1729
1730 if test "$wxUSE_OPENGL" = yes; then
1731 echo "$ac_t""yes" 1>&6
1732 else
1733 echo "$ac_t""no" 1>&6
1734 fi
1735
1736
1737 fi
1738
1739
1740 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1741 echo "configure:1742: checking "for --with-dmalloc"" >&5
1742 no_cache=0
1743 # Check whether --with-dmalloc or --without-dmalloc was given.
1744 if test "${with_dmalloc+set}" = set; then
1745 withval="$with_dmalloc"
1746
1747 if test "$withval" = yes; then
1748 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1749 else
1750 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1751 fi
1752
1753 else
1754
1755 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1756 if test "x$LINE" != x ; then
1757 eval "DEFAULT_$LINE"
1758 else
1759 no_cache=1
1760 fi
1761
1762 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1763
1764 fi
1765
1766
1767 eval "$ac_cv_use_dmalloc"
1768 if test "$no_cache" != 1; then
1769 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1770 fi
1771
1772 if test "$wxUSE_DMALLOC" = yes; then
1773 echo "$ac_t""yes" 1>&6
1774 else
1775 echo "$ac_t""no" 1>&6
1776 fi
1777
1778
1779 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1780 echo "configure:1781: checking "for --with-zlib"" >&5
1781 no_cache=0
1782 # Check whether --with-zlib or --without-zlib was given.
1783 if test "${with_zlib+set}" = set; then
1784 withval="$with_zlib"
1785
1786 if test "$withval" = yes; then
1787 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1788 else
1789 ac_cv_use_zlib='wxUSE_ZLIB=no'
1790 fi
1791
1792 else
1793
1794 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1795 if test "x$LINE" != x ; then
1796 eval "DEFAULT_$LINE"
1797 else
1798 no_cache=1
1799 fi
1800
1801 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1802
1803 fi
1804
1805
1806 eval "$ac_cv_use_zlib"
1807 if test "$no_cache" != 1; then
1808 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1809 fi
1810
1811 if test "$wxUSE_ZLIB" = yes; then
1812 echo "$ac_t""yes" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1815 fi
1816
1817
1818 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1819 echo "configure:1820: checking "for --with-odbc"" >&5
1820 no_cache=0
1821 # Check whether --with-odbc or --without-odbc was given.
1822 if test "${with_odbc+set}" = set; then
1823 withval="$with_odbc"
1824
1825 if test "$withval" = yes; then
1826 ac_cv_use_odbc='wxUSE_ODBC=yes'
1827 else
1828 ac_cv_use_odbc='wxUSE_ODBC=no'
1829 fi
1830
1831 else
1832
1833 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1834 if test "x$LINE" != x ; then
1835 eval "DEFAULT_$LINE"
1836 else
1837 no_cache=1
1838 fi
1839
1840 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1841
1842 fi
1843
1844
1845 eval "$ac_cv_use_odbc"
1846 if test "$no_cache" != 1; then
1847 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1848 fi
1849
1850 if test "$wxUSE_ODBC" = yes; then
1851 echo "$ac_t""yes" 1>&6
1852 else
1853 echo "$ac_t""no" 1>&6
1854 fi
1855
1856
1857
1858
1859
1860 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1861 echo "configure:1862: checking "for --enable-shared"" >&5
1862 no_cache=0
1863 # Check whether --enable-shared or --disable-shared was given.
1864 if test "${enable_shared+set}" = set; then
1865 enableval="$enable_shared"
1866
1867 if test "$enableval" = yes; then
1868 ac_cv_use_shared='wxUSE_SHARED=yes'
1869 else
1870 ac_cv_use_shared='wxUSE_SHARED=no'
1871 fi
1872
1873 else
1874
1875 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1876 if test "x$LINE" != x ; then
1877 eval "DEFAULT_$LINE"
1878 else
1879 no_cache=1
1880 fi
1881
1882 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1883
1884 fi
1885
1886
1887 eval "$ac_cv_use_shared"
1888 if test "$no_cache" != 1; then
1889 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1890 fi
1891
1892 if test "$wxUSE_SHARED" = yes; then
1893 echo "$ac_t""yes" 1>&6
1894 else
1895 echo "$ac_t""no" 1>&6
1896 fi
1897
1898
1899 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
1900 echo "configure:1901: checking "for --enable-burnt_name"" >&5
1901 no_cache=0
1902 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1903 if test "${enable_burnt_name+set}" = set; then
1904 enableval="$enable_burnt_name"
1905
1906 if test "$enableval" = yes; then
1907 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1908 else
1909 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1910 fi
1911
1912 else
1913
1914 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1915 if test "x$LINE" != x ; then
1916 eval "DEFAULT_$LINE"
1917 else
1918 no_cache=1
1919 fi
1920
1921 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1922
1923 fi
1924
1925
1926 eval "$ac_cv_use_burnt_name"
1927 if test "$no_cache" != 1; then
1928 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1929 fi
1930
1931 if test "$wxUSE_BURNT_NAME" = yes; then
1932 echo "$ac_t""yes" 1>&6
1933 else
1934 echo "$ac_t""no" 1>&6
1935 fi
1936
1937
1938 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1939 echo "configure:1940: checking "for --enable-optimise"" >&5
1940 no_cache=0
1941 # Check whether --enable-optimise or --disable-optimise was given.
1942 if test "${enable_optimise+set}" = set; then
1943 enableval="$enable_optimise"
1944
1945 if test "$enableval" = yes; then
1946 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1947 else
1948 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1949 fi
1950
1951 else
1952
1953 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1954 if test "x$LINE" != x ; then
1955 eval "DEFAULT_$LINE"
1956 else
1957 no_cache=1
1958 fi
1959
1960 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1961
1962 fi
1963
1964
1965 eval "$ac_cv_use_optimise"
1966 if test "$no_cache" != 1; then
1967 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1968 fi
1969
1970 if test "$wxUSE_OPTIMISE" = yes; then
1971 echo "$ac_t""yes" 1>&6
1972 else
1973 echo "$ac_t""no" 1>&6
1974 fi
1975
1976
1977 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1978 echo "configure:1979: checking "for --enable-debug"" >&5
1979 no_cache=0
1980 # Check whether --enable-debug or --disable-debug was given.
1981 if test "${enable_debug+set}" = set; then
1982 enableval="$enable_debug"
1983
1984 if test "$enableval" = yes; then
1985 ac_cv_use_debug='wxUSE_DEBUG=yes'
1986 else
1987 ac_cv_use_debug='wxUSE_DEBUG=no'
1988 fi
1989
1990 else
1991
1992 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1993 if test "x$LINE" != x ; then
1994 eval "DEFAULT_$LINE"
1995 else
1996 no_cache=1
1997 fi
1998
1999 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2000
2001 fi
2002
2003
2004 eval "$ac_cv_use_debug"
2005 if test "$no_cache" != 1; then
2006 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2007 fi
2008
2009 if test "$wxUSE_DEBUG" = yes; then
2010 echo "$ac_t""yes" 1>&6
2011 else
2012 echo "$ac_t""no" 1>&6
2013 fi
2014
2015
2016 if test "$wxUSE_DEBUG" = "yes"; then
2017 DEFAULT_wxUSE_DEBUG_FLAG=yes
2018 DEFAULT_wxUSE_DEBUG_INFO=yes
2019 elif test "$wxUSE_DEBUG" = "no"; then
2020 DEFAULT_wxUSE_DEBUG_FLAG=no
2021 DEFAULT_wxUSE_DEBUG_INFO=no
2022 fi
2023
2024
2025 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2026 echo "configure:2027: checking "for --enable-debug_flag"" >&5
2027 no_cache=0
2028 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2029 if test "${enable_debug_flag+set}" = set; then
2030 enableval="$enable_debug_flag"
2031
2032 if test "$enableval" = yes; then
2033 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2034 else
2035 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2036 fi
2037
2038 else
2039
2040 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2041 if test "x$LINE" != x ; then
2042 eval "DEFAULT_$LINE"
2043 else
2044 no_cache=1
2045 fi
2046
2047 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2048
2049 fi
2050
2051
2052 eval "$ac_cv_use_debug_flag"
2053 if test "$no_cache" != 1; then
2054 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2055 fi
2056
2057 if test "$wxUSE_DEBUG_FLAG" = yes; then
2058 echo "$ac_t""yes" 1>&6
2059 else
2060 echo "$ac_t""no" 1>&6
2061 fi
2062
2063
2064 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2065 echo "configure:2066: checking "for --enable-debug_info"" >&5
2066 no_cache=0
2067 # Check whether --enable-debug_info or --disable-debug_info was given.
2068 if test "${enable_debug_info+set}" = set; then
2069 enableval="$enable_debug_info"
2070
2071 if test "$enableval" = yes; then
2072 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2073 else
2074 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2075 fi
2076
2077 else
2078
2079 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2080 if test "x$LINE" != x ; then
2081 eval "DEFAULT_$LINE"
2082 else
2083 no_cache=1
2084 fi
2085
2086 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2087
2088 fi
2089
2090
2091 eval "$ac_cv_use_debug_info"
2092 if test "$no_cache" != 1; then
2093 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2094 fi
2095
2096 if test "$wxUSE_DEBUG_INFO" = yes; then
2097 echo "$ac_t""yes" 1>&6
2098 else
2099 echo "$ac_t""no" 1>&6
2100 fi
2101
2102
2103 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2104 echo "configure:2105: checking "for --enable-debug_gdb"" >&5
2105 no_cache=0
2106 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2107 if test "${enable_debug_gdb+set}" = set; then
2108 enableval="$enable_debug_gdb"
2109
2110 if test "$enableval" = yes; then
2111 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2112 else
2113 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2114 fi
2115
2116 else
2117
2118 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2119 if test "x$LINE" != x ; then
2120 eval "DEFAULT_$LINE"
2121 else
2122 no_cache=1
2123 fi
2124
2125 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2126
2127 fi
2128
2129
2130 eval "$ac_cv_use_debug_gdb"
2131 if test "$no_cache" != 1; then
2132 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2133 fi
2134
2135 if test "$wxUSE_DEBUG_GDB" = yes; then
2136 echo "$ac_t""yes" 1>&6
2137 else
2138 echo "$ac_t""no" 1>&6
2139 fi
2140
2141
2142 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2143 echo "configure:2144: checking "for --enable-debug_cntxt"" >&5
2144 no_cache=0
2145 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2146 if test "${enable_debug_cntxt+set}" = set; then
2147 enableval="$enable_debug_cntxt"
2148
2149 if test "$enableval" = yes; then
2150 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2151 else
2152 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2153 fi
2154
2155 else
2156
2157 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2158 if test "x$LINE" != x ; then
2159 eval "DEFAULT_$LINE"
2160 else
2161 no_cache=1
2162 fi
2163
2164 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2165
2166 fi
2167
2168
2169 eval "$ac_cv_use_debug_cntxt"
2170 if test "$no_cache" != 1; then
2171 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2172 fi
2173
2174 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2175 echo "$ac_t""yes" 1>&6
2176 else
2177 echo "$ac_t""no" 1>&6
2178 fi
2179
2180
2181 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2182 echo "configure:2183: checking "for --enable-mem_tracing"" >&5
2183 no_cache=0
2184 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2185 if test "${enable_mem_tracing+set}" = set; then
2186 enableval="$enable_mem_tracing"
2187
2188 if test "$enableval" = yes; then
2189 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2190 else
2191 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2192 fi
2193
2194 else
2195
2196 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2197 if test "x$LINE" != x ; then
2198 eval "DEFAULT_$LINE"
2199 else
2200 no_cache=1
2201 fi
2202
2203 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2204
2205 fi
2206
2207
2208 eval "$ac_cv_use_mem_tracing"
2209 if test "$no_cache" != 1; then
2210 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2211 fi
2212
2213 if test "$wxUSE_MEM_TRACING" = yes; then
2214 echo "$ac_t""yes" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2217 fi
2218
2219
2220 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2221 echo "configure:2222: checking "for --enable-profile"" >&5
2222 no_cache=0
2223 # Check whether --enable-profile or --disable-profile was given.
2224 if test "${enable_profile+set}" = set; then
2225 enableval="$enable_profile"
2226
2227 if test "$enableval" = yes; then
2228 ac_cv_use_profile='wxUSE_PROFILE=yes'
2229 else
2230 ac_cv_use_profile='wxUSE_PROFILE=no'
2231 fi
2232
2233 else
2234
2235 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2236 if test "x$LINE" != x ; then
2237 eval "DEFAULT_$LINE"
2238 else
2239 no_cache=1
2240 fi
2241
2242 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2243
2244 fi
2245
2246
2247 eval "$ac_cv_use_profile"
2248 if test "$no_cache" != 1; then
2249 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2250 fi
2251
2252 if test "$wxUSE_PROFILE" = yes; then
2253 echo "$ac_t""yes" 1>&6
2254 else
2255 echo "$ac_t""no" 1>&6
2256 fi
2257
2258
2259 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2260 echo "configure:2261: checking "for --enable-no_rtti"" >&5
2261 no_cache=0
2262 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2263 if test "${enable_no_rtti+set}" = set; then
2264 enableval="$enable_no_rtti"
2265
2266 if test "$enableval" = yes; then
2267 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2268 else
2269 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2270 fi
2271
2272 else
2273
2274 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2275 if test "x$LINE" != x ; then
2276 eval "DEFAULT_$LINE"
2277 else
2278 no_cache=1
2279 fi
2280
2281 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2282
2283 fi
2284
2285
2286 eval "$ac_cv_use_no_rtti"
2287 if test "$no_cache" != 1; then
2288 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2289 fi
2290
2291 if test "$wxUSE_NO_RTTI" = yes; then
2292 echo "$ac_t""yes" 1>&6
2293 else
2294 echo "$ac_t""no" 1>&6
2295 fi
2296
2297
2298 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2299 echo "configure:2300: checking "for --enable-no_exceptions"" >&5
2300 no_cache=0
2301 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2302 if test "${enable_no_exceptions+set}" = set; then
2303 enableval="$enable_no_exceptions"
2304
2305 if test "$enableval" = yes; then
2306 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2307 else
2308 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2309 fi
2310
2311 else
2312
2313 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2314 if test "x$LINE" != x ; then
2315 eval "DEFAULT_$LINE"
2316 else
2317 no_cache=1
2318 fi
2319
2320 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2321
2322 fi
2323
2324
2325 eval "$ac_cv_use_no_exceptions"
2326 if test "$no_cache" != 1; then
2327 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2328 fi
2329
2330 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2331 echo "$ac_t""yes" 1>&6
2332 else
2333 echo "$ac_t""no" 1>&6
2334 fi
2335
2336
2337 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2338 echo "configure:2339: checking "for --enable-permissive"" >&5
2339 no_cache=0
2340 # Check whether --enable-permissive or --disable-permissive was given.
2341 if test "${enable_permissive+set}" = set; then
2342 enableval="$enable_permissive"
2343
2344 if test "$enableval" = yes; then
2345 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2346 else
2347 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2348 fi
2349
2350 else
2351
2352 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2353 if test "x$LINE" != x ; then
2354 eval "DEFAULT_$LINE"
2355 else
2356 no_cache=1
2357 fi
2358
2359 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2360
2361 fi
2362
2363
2364 eval "$ac_cv_use_permissive"
2365 if test "$no_cache" != 1; then
2366 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2367 fi
2368
2369 if test "$wxUSE_PERMISSIVE" = yes; then
2370 echo "$ac_t""yes" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2377 echo "configure:2378: checking "for --enable-no_deps"" >&5
2378 no_cache=0
2379 # Check whether --enable-no_deps or --disable-no_deps was given.
2380 if test "${enable_no_deps+set}" = set; then
2381 enableval="$enable_no_deps"
2382
2383 if test "$enableval" = yes; then
2384 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2385 else
2386 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2387 fi
2388
2389 else
2390
2391 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2392 if test "x$LINE" != x ; then
2393 eval "DEFAULT_$LINE"
2394 else
2395 no_cache=1
2396 fi
2397
2398 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2399
2400 fi
2401
2402
2403 eval "$ac_cv_use_no_deps"
2404 if test "$no_cache" != 1; then
2405 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2406 fi
2407
2408 if test "$wxUSE_NO_DEPS" = yes; then
2409 echo "$ac_t""yes" 1>&6
2410 else
2411 echo "$ac_t""no" 1>&6
2412 fi
2413
2414
2415
2416
2417 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2418 echo "configure:2419: checking "for --enable-intl"" >&5
2419 no_cache=0
2420 # Check whether --enable-intl or --disable-intl was given.
2421 if test "${enable_intl+set}" = set; then
2422 enableval="$enable_intl"
2423
2424 if test "$enableval" = yes; then
2425 ac_cv_use_intl='wxUSE_INTL=yes'
2426 else
2427 ac_cv_use_intl='wxUSE_INTL=no'
2428 fi
2429
2430 else
2431
2432 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2440
2441 fi
2442
2443
2444 eval "$ac_cv_use_intl"
2445 if test "$no_cache" != 1; then
2446 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2447 fi
2448
2449 if test "$wxUSE_INTL" = yes; then
2450 echo "$ac_t""yes" 1>&6
2451 else
2452 echo "$ac_t""no" 1>&6
2453 fi
2454
2455
2456 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2457 echo "configure:2458: checking "for --enable-config"" >&5
2458 no_cache=0
2459 # Check whether --enable-config or --disable-config was given.
2460 if test "${enable_config+set}" = set; then
2461 enableval="$enable_config"
2462
2463 if test "$enableval" = yes; then
2464 ac_cv_use_config='wxUSE_CONFIG=yes'
2465 else
2466 ac_cv_use_config='wxUSE_CONFIG=no'
2467 fi
2468
2469 else
2470
2471 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2472 if test "x$LINE" != x ; then
2473 eval "DEFAULT_$LINE"
2474 else
2475 no_cache=1
2476 fi
2477
2478 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2479
2480 fi
2481
2482
2483 eval "$ac_cv_use_config"
2484 if test "$no_cache" != 1; then
2485 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2486 fi
2487
2488 if test "$wxUSE_CONFIG" = yes; then
2489 echo "$ac_t""yes" 1>&6
2490 else
2491 echo "$ac_t""no" 1>&6
2492 fi
2493
2494
2495 if test "$wxUSE_GUI" = "yes"; then
2496
2497 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2498 echo "configure:2499: checking "for --enable-sockets"" >&5
2499 no_cache=0
2500 # Check whether --enable-sockets or --disable-sockets was given.
2501 if test "${enable_sockets+set}" = set; then
2502 enableval="$enable_sockets"
2503
2504 if test "$enableval" = yes; then
2505 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2506 else
2507 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2508 fi
2509
2510 else
2511
2512 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2513 if test "x$LINE" != x ; then
2514 eval "DEFAULT_$LINE"
2515 else
2516 no_cache=1
2517 fi
2518
2519 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2520
2521 fi
2522
2523
2524 eval "$ac_cv_use_sockets"
2525 if test "$no_cache" != 1; then
2526 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2527 fi
2528
2529 if test "$wxUSE_SOCKETS" = yes; then
2530 echo "$ac_t""yes" 1>&6
2531 else
2532 echo "$ac_t""no" 1>&6
2533 fi
2534
2535 else
2536 wxUSE_SOCKETS=no
2537 fi
2538
2539
2540 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2541 echo "configure:2542: checking "for --enable-dialupman"" >&5
2542 no_cache=0
2543 # Check whether --enable-dialupman or --disable-dialupman was given.
2544 if test "${enable_dialupman+set}" = set; then
2545 enableval="$enable_dialupman"
2546
2547 if test "$enableval" = yes; then
2548 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2549 else
2550 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2551 fi
2552
2553 else
2554
2555 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2556 if test "x$LINE" != x ; then
2557 eval "DEFAULT_$LINE"
2558 else
2559 no_cache=1
2560 fi
2561
2562 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2563
2564 fi
2565
2566
2567 eval "$ac_cv_use_dialupman"
2568 if test "$no_cache" != 1; then
2569 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2570 fi
2571
2572 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2573 echo "$ac_t""yes" 1>&6
2574 else
2575 echo "$ac_t""no" 1>&6
2576 fi
2577
2578
2579 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2580 echo "configure:2581: checking "for --enable-ipc"" >&5
2581 no_cache=0
2582 # Check whether --enable-ipc or --disable-ipc was given.
2583 if test "${enable_ipc+set}" = set; then
2584 enableval="$enable_ipc"
2585
2586 if test "$enableval" = yes; then
2587 ac_cv_use_ipc='wxUSE_IPC=yes'
2588 else
2589 ac_cv_use_ipc='wxUSE_IPC=no'
2590 fi
2591
2592 else
2593
2594 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2595 if test "x$LINE" != x ; then
2596 eval "DEFAULT_$LINE"
2597 else
2598 no_cache=1
2599 fi
2600
2601 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2602
2603 fi
2604
2605
2606 eval "$ac_cv_use_ipc"
2607 if test "$no_cache" != 1; then
2608 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2609 fi
2610
2611 if test "$wxUSE_IPC" = yes; then
2612 echo "$ac_t""yes" 1>&6
2613 else
2614 echo "$ac_t""no" 1>&6
2615 fi
2616
2617
2618 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2619 echo "configure:2620: checking "for --enable-apple_ieee"" >&5
2620 no_cache=0
2621 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2622 if test "${enable_apple_ieee+set}" = set; then
2623 enableval="$enable_apple_ieee"
2624
2625 if test "$enableval" = yes; then
2626 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2627 else
2628 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2629 fi
2630
2631 else
2632
2633 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2634 if test "x$LINE" != x ; then
2635 eval "DEFAULT_$LINE"
2636 else
2637 no_cache=1
2638 fi
2639
2640 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2641
2642 fi
2643
2644
2645 eval "$ac_cv_use_apple_ieee"
2646 if test "$no_cache" != 1; then
2647 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2648 fi
2649
2650 if test "$wxUSE_APPLE_IEEE" = yes; then
2651 echo "$ac_t""yes" 1>&6
2652 else
2653 echo "$ac_t""no" 1>&6
2654 fi
2655
2656
2657 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2658 echo "configure:2659: checking "for --enable-timedate"" >&5
2659 no_cache=0
2660 # Check whether --enable-timedate or --disable-timedate was given.
2661 if test "${enable_timedate+set}" = set; then
2662 enableval="$enable_timedate"
2663
2664 if test "$enableval" = yes; then
2665 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2666 else
2667 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2668 fi
2669
2670 else
2671
2672 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2673 if test "x$LINE" != x ; then
2674 eval "DEFAULT_$LINE"
2675 else
2676 no_cache=1
2677 fi
2678
2679 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2680
2681 fi
2682
2683
2684 eval "$ac_cv_use_timedate"
2685 if test "$no_cache" != 1; then
2686 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2687 fi
2688
2689 if test "$wxUSE_TIMEDATE" = yes; then
2690 echo "$ac_t""yes" 1>&6
2691 else
2692 echo "$ac_t""no" 1>&6
2693 fi
2694
2695
2696 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2697 echo "configure:2698: checking "for --enable-wave"" >&5
2698 no_cache=0
2699 # Check whether --enable-wave or --disable-wave was given.
2700 if test "${enable_wave+set}" = set; then
2701 enableval="$enable_wave"
2702
2703 if test "$enableval" = yes; then
2704 ac_cv_use_wave='wxUSE_WAVE=yes'
2705 else
2706 ac_cv_use_wave='wxUSE_WAVE=no'
2707 fi
2708
2709 else
2710
2711 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2712 if test "x$LINE" != x ; then
2713 eval "DEFAULT_$LINE"
2714 else
2715 no_cache=1
2716 fi
2717
2718 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2719
2720 fi
2721
2722
2723 eval "$ac_cv_use_wave"
2724 if test "$no_cache" != 1; then
2725 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2726 fi
2727
2728 if test "$wxUSE_WAVE" = yes; then
2729 echo "$ac_t""yes" 1>&6
2730 else
2731 echo "$ac_t""no" 1>&6
2732 fi
2733
2734
2735 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2736 echo "configure:2737: checking "for --enable-fraction"" >&5
2737 no_cache=0
2738 # Check whether --enable-fraction or --disable-fraction was given.
2739 if test "${enable_fraction+set}" = set; then
2740 enableval="$enable_fraction"
2741
2742 if test "$enableval" = yes; then
2743 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2744 else
2745 ac_cv_use_fraction='wxUSE_FRACTION=no'
2746 fi
2747
2748 else
2749
2750 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2751 if test "x$LINE" != x ; then
2752 eval "DEFAULT_$LINE"
2753 else
2754 no_cache=1
2755 fi
2756
2757 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2758
2759 fi
2760
2761
2762 eval "$ac_cv_use_fraction"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_FRACTION" = yes; then
2768 echo "$ac_t""yes" 1>&6
2769 else
2770 echo "$ac_t""no" 1>&6
2771 fi
2772
2773
2774 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2775 echo "configure:2776: checking "for --enable-dynlib"" >&5
2776 no_cache=0
2777 # Check whether --enable-dynlib or --disable-dynlib was given.
2778 if test "${enable_dynlib+set}" = set; then
2779 enableval="$enable_dynlib"
2780
2781 if test "$enableval" = yes; then
2782 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2783 else
2784 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2785 fi
2786
2787 else
2788
2789 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2797
2798 fi
2799
2800
2801 eval "$ac_cv_use_dynlib"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2807 echo "$ac_t""yes" 1>&6
2808 else
2809 echo "$ac_t""no" 1>&6
2810 fi
2811
2812
2813 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2814 echo "configure:2815: checking "for --enable-longlong"" >&5
2815 no_cache=0
2816 # Check whether --enable-longlong or --disable-longlong was given.
2817 if test "${enable_longlong+set}" = set; then
2818 enableval="$enable_longlong"
2819
2820 if test "$enableval" = yes; then
2821 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2822 else
2823 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2824 fi
2825
2826 else
2827
2828 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2829 if test "x$LINE" != x ; then
2830 eval "DEFAULT_$LINE"
2831 else
2832 no_cache=1
2833 fi
2834
2835 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2836
2837 fi
2838
2839
2840 eval "$ac_cv_use_longlong"
2841 if test "$no_cache" != 1; then
2842 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2843 fi
2844
2845 if test "$wxUSE_LONGLONG" = yes; then
2846 echo "$ac_t""yes" 1>&6
2847 else
2848 echo "$ac_t""no" 1>&6
2849 fi
2850
2851
2852 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2853 echo "configure:2854: checking "for --enable-log"" >&5
2854 no_cache=0
2855 # Check whether --enable-log or --disable-log was given.
2856 if test "${enable_log+set}" = set; then
2857 enableval="$enable_log"
2858
2859 if test "$enableval" = yes; then
2860 ac_cv_use_log='wxUSE_LOG=yes'
2861 else
2862 ac_cv_use_log='wxUSE_LOG=no'
2863 fi
2864
2865 else
2866
2867 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2868 if test "x$LINE" != x ; then
2869 eval "DEFAULT_$LINE"
2870 else
2871 no_cache=1
2872 fi
2873
2874 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2875
2876 fi
2877
2878
2879 eval "$ac_cv_use_log"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_LOG" = yes; then
2885 echo "$ac_t""yes" 1>&6
2886 else
2887 echo "$ac_t""no" 1>&6
2888 fi
2889
2890
2891 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2892 echo "configure:2893: checking "for --enable-streams"" >&5
2893 no_cache=0
2894 # Check whether --enable-streams or --disable-streams was given.
2895 if test "${enable_streams+set}" = set; then
2896 enableval="$enable_streams"
2897
2898 if test "$enableval" = yes; then
2899 ac_cv_use_streams='wxUSE_STREAMS=yes'
2900 else
2901 ac_cv_use_streams='wxUSE_STREAMS=no'
2902 fi
2903
2904 else
2905
2906 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2914
2915 fi
2916
2917
2918 eval "$ac_cv_use_streams"
2919 if test "$no_cache" != 1; then
2920 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2921 fi
2922
2923 if test "$wxUSE_STREAMS" = yes; then
2924 echo "$ac_t""yes" 1>&6
2925 else
2926 echo "$ac_t""no" 1>&6
2927 fi
2928
2929
2930 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2931 echo "configure:2932: checking "for --enable-file"" >&5
2932 no_cache=0
2933 # Check whether --enable-file or --disable-file was given.
2934 if test "${enable_file+set}" = set; then
2935 enableval="$enable_file"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_file='wxUSE_FILE=yes'
2939 else
2940 ac_cv_use_file='wxUSE_FILE=no'
2941 fi
2942
2943 else
2944
2945 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2953
2954 fi
2955
2956
2957 eval "$ac_cv_use_file"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_FILE" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
2969 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2970 echo "configure:2971: checking "for --enable-textfile"" >&5
2971 no_cache=0
2972 # Check whether --enable-textfile or --disable-textfile was given.
2973 if test "${enable_textfile+set}" = set; then
2974 enableval="$enable_textfile"
2975
2976 if test "$enableval" = yes; then
2977 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2978 else
2979 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2980 fi
2981
2982 else
2983
2984 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2992
2993 fi
2994
2995
2996 eval "$ac_cv_use_textfile"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$wxUSE_TEXTFILE" = yes; then
3002 echo "$ac_t""yes" 1>&6
3003 else
3004 echo "$ac_t""no" 1>&6
3005 fi
3006
3007
3008 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3009 echo "configure:3010: checking "for --enable-unicode"" >&5
3010 no_cache=0
3011 # Check whether --enable-unicode or --disable-unicode was given.
3012 if test "${enable_unicode+set}" = set; then
3013 enableval="$enable_unicode"
3014
3015 if test "$enableval" = yes; then
3016 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3017 else
3018 ac_cv_use_unicode='wxUSE_UNICODE=no'
3019 fi
3020
3021 else
3022
3023 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3024 if test "x$LINE" != x ; then
3025 eval "DEFAULT_$LINE"
3026 else
3027 no_cache=1
3028 fi
3029
3030 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3031
3032 fi
3033
3034
3035 eval "$ac_cv_use_unicode"
3036 if test "$no_cache" != 1; then
3037 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3038 fi
3039
3040 if test "$wxUSE_UNICODE" = yes; then
3041 echo "$ac_t""yes" 1>&6
3042 else
3043 echo "$ac_t""no" 1>&6
3044 fi
3045
3046
3047 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3048 echo "configure:3049: checking "for --enable-wcsrtombs"" >&5
3049 no_cache=0
3050 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3051 if test "${enable_wcsrtombs+set}" = set; then
3052 enableval="$enable_wcsrtombs"
3053
3054 if test "$enableval" = yes; then
3055 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3056 else
3057 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3058 fi
3059
3060 else
3061
3062 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3063 if test "x$LINE" != x ; then
3064 eval "DEFAULT_$LINE"
3065 else
3066 no_cache=1
3067 fi
3068
3069 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3070
3071 fi
3072
3073
3074 eval "$ac_cv_use_wcsrtombs"
3075 if test "$no_cache" != 1; then
3076 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3077 fi
3078
3079 if test "$wxUSE_WCSRTOMBS" = yes; then
3080 echo "$ac_t""yes" 1>&6
3081 else
3082 echo "$ac_t""no" 1>&6
3083 fi
3084
3085
3086 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3087 echo "configure:3088: checking "for --enable-wxprintfv"" >&5
3088 no_cache=0
3089 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3090 if test "${enable_wxprintfv+set}" = set; then
3091 enableval="$enable_wxprintfv"
3092
3093 if test "$enableval" = yes; then
3094 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3095 else
3096 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3097 fi
3098
3099 else
3100
3101 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3109
3110 fi
3111
3112
3113 eval "$ac_cv_use_wxprintfv"
3114 if test "$no_cache" != 1; then
3115 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3116 fi
3117
3118 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3119 echo "$ac_t""yes" 1>&6
3120 else
3121 echo "$ac_t""no" 1>&6
3122 fi
3123
3124
3125 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3126 echo "configure:3127: checking "for --enable-joystick"" >&5
3127 no_cache=0
3128 # Check whether --enable-joystick or --disable-joystick was given.
3129 if test "${enable_joystick+set}" = set; then
3130 enableval="$enable_joystick"
3131
3132 if test "$enableval" = yes; then
3133 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3134 else
3135 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3136 fi
3137
3138 else
3139
3140 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3141 if test "x$LINE" != x ; then
3142 eval "DEFAULT_$LINE"
3143 else
3144 no_cache=1
3145 fi
3146
3147 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3148
3149 fi
3150
3151
3152 eval "$ac_cv_use_joystick"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_JOYSTICK" = yes; then
3158 echo "$ac_t""yes" 1>&6
3159 else
3160 echo "$ac_t""no" 1>&6
3161 fi
3162
3163
3164 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3165 echo "configure:3166: checking "for --enable-std_iostreams"" >&5
3166 no_cache=0
3167 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3168 if test "${enable_std_iostreams+set}" = set; then
3169 enableval="$enable_std_iostreams"
3170
3171 if test "$enableval" = yes; then
3172 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3173 else
3174 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3175 fi
3176
3177 else
3178
3179 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3180 if test "x$LINE" != x ; then
3181 eval "DEFAULT_$LINE"
3182 else
3183 no_cache=1
3184 fi
3185
3186 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3187
3188 fi
3189
3190
3191 eval "$ac_cv_use_std_iostreams"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_STD_IOSTREAM" = yes; then
3197 echo "$ac_t""yes" 1>&6
3198 else
3199 echo "$ac_t""no" 1>&6
3200 fi
3201
3202
3203 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3204 echo "configure:3205: checking "for --enable-filesystem"" >&5
3205 no_cache=0
3206 # Check whether --enable-filesystem or --disable-filesystem was given.
3207 if test "${enable_filesystem+set}" = set; then
3208 enableval="$enable_filesystem"
3209
3210 if test "$enableval" = yes; then
3211 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3212 else
3213 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3214 fi
3215
3216 else
3217
3218 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3219 if test "x$LINE" != x ; then
3220 eval "DEFAULT_$LINE"
3221 else
3222 no_cache=1
3223 fi
3224
3225 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3226
3227 fi
3228
3229
3230 eval "$ac_cv_use_filesystem"
3231 if test "$no_cache" != 1; then
3232 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3233 fi
3234
3235 if test "$wxUSE_FILESYSTEM" = yes; then
3236 echo "$ac_t""yes" 1>&6
3237 else
3238 echo "$ac_t""no" 1>&6
3239 fi
3240
3241
3242 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3243 echo "configure:3244: checking "for --enable-fs_inet"" >&5
3244 no_cache=0
3245 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3246 if test "${enable_fs_inet+set}" = set; then
3247 enableval="$enable_fs_inet"
3248
3249 if test "$enableval" = yes; then
3250 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3251 else
3252 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3253 fi
3254
3255 else
3256
3257 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3258 if test "x$LINE" != x ; then
3259 eval "DEFAULT_$LINE"
3260 else
3261 no_cache=1
3262 fi
3263
3264 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3265
3266 fi
3267
3268
3269 eval "$ac_cv_use_fs_inet"
3270 if test "$no_cache" != 1; then
3271 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3272 fi
3273
3274 if test "$wxUSE_FS_INET" = yes; then
3275 echo "$ac_t""yes" 1>&6
3276 else
3277 echo "$ac_t""no" 1>&6
3278 fi
3279
3280
3281 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3282 echo "configure:3283: checking "for --enable-fs_zip"" >&5
3283 no_cache=0
3284 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3285 if test "${enable_fs_zip+set}" = set; then
3286 enableval="$enable_fs_zip"
3287
3288 if test "$enableval" = yes; then
3289 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3290 else
3291 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3292 fi
3293
3294 else
3295
3296 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3304
3305 fi
3306
3307
3308 eval "$ac_cv_use_fs_zip"
3309 if test "$no_cache" != 1; then
3310 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3311 fi
3312
3313 if test "$wxUSE_FS_ZIP" = yes; then
3314 echo "$ac_t""yes" 1>&6
3315 else
3316 echo "$ac_t""no" 1>&6
3317 fi
3318
3319
3320 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3321 echo "configure:3322: checking "for --enable-zipstream"" >&5
3322 no_cache=0
3323 # Check whether --enable-zipstream or --disable-zipstream was given.
3324 if test "${enable_zipstream+set}" = set; then
3325 enableval="$enable_zipstream"
3326
3327 if test "$enableval" = yes; then
3328 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3329 else
3330 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3331 fi
3332
3333 else
3334
3335 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3343
3344 fi
3345
3346
3347 eval "$ac_cv_use_zipstream"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_ZIPSTREAM" = yes; then
3353 echo "$ac_t""yes" 1>&6
3354 else
3355 echo "$ac_t""no" 1>&6
3356 fi
3357
3358
3359
3360
3361 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3362 echo "configure:3363: checking "for --enable-threads"" >&5
3363 no_cache=0
3364 # Check whether --enable-threads or --disable-threads was given.
3365 if test "${enable_threads+set}" = set; then
3366 enableval="$enable_threads"
3367
3368 if test "$enableval" = yes; then
3369 ac_cv_use_threads='wxUSE_THREADS=yes'
3370 else
3371 ac_cv_use_threads='wxUSE_THREADS=no'
3372 fi
3373
3374 else
3375
3376 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3377 if test "x$LINE" != x ; then
3378 eval "DEFAULT_$LINE"
3379 else
3380 no_cache=1
3381 fi
3382
3383 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3384
3385 fi
3386
3387
3388 eval "$ac_cv_use_threads"
3389 if test "$no_cache" != 1; then
3390 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3391 fi
3392
3393 if test "$wxUSE_THREADS" = yes; then
3394 echo "$ac_t""yes" 1>&6
3395 else
3396 echo "$ac_t""no" 1>&6
3397 fi
3398
3399
3400 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3401 echo "configure:3402: checking "for --enable-serial"" >&5
3402 no_cache=0
3403 # Check whether --enable-serial or --disable-serial was given.
3404 if test "${enable_serial+set}" = set; then
3405 enableval="$enable_serial"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_serial='wxUSE_SERIAL=yes'
3409 else
3410 ac_cv_use_serial='wxUSE_SERIAL=no'
3411 fi
3412
3413 else
3414
3415 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3423
3424 fi
3425
3426
3427 eval "$ac_cv_use_serial"
3428 if test "$no_cache" != 1; then
3429 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3430 fi
3431
3432 if test "$wxUSE_SERIAL" = yes; then
3433 echo "$ac_t""yes" 1>&6
3434 else
3435 echo "$ac_t""no" 1>&6
3436 fi
3437
3438
3439 if test "$wxUSE_GUI" = "yes"; then
3440
3441
3442
3443 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3444 echo "configure:3445: checking "for --enable-docview"" >&5
3445 no_cache=0
3446 # Check whether --enable-docview or --disable-docview was given.
3447 if test "${enable_docview+set}" = set; then
3448 enableval="$enable_docview"
3449
3450 if test "$enableval" = yes; then
3451 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3452 else
3453 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3454 fi
3455
3456 else
3457
3458 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3459 if test "x$LINE" != x ; then
3460 eval "DEFAULT_$LINE"
3461 else
3462 no_cache=1
3463 fi
3464
3465 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3466
3467 fi
3468
3469
3470 eval "$ac_cv_use_docview"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3476 echo "$ac_t""yes" 1>&6
3477 else
3478 echo "$ac_t""no" 1>&6
3479 fi
3480
3481
3482 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3483 echo "configure:3484: checking "for --enable-help"" >&5
3484 no_cache=0
3485 # Check whether --enable-help or --disable-help was given.
3486 if test "${enable_help+set}" = set; then
3487 enableval="$enable_help"
3488
3489 if test "$enableval" = yes; then
3490 ac_cv_use_help='wxUSE_HELP=yes'
3491 else
3492 ac_cv_use_help='wxUSE_HELP=no'
3493 fi
3494
3495 else
3496
3497 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3498 if test "x$LINE" != x ; then
3499 eval "DEFAULT_$LINE"
3500 else
3501 no_cache=1
3502 fi
3503
3504 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3505
3506 fi
3507
3508
3509 eval "$ac_cv_use_help"
3510 if test "$no_cache" != 1; then
3511 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3512 fi
3513
3514 if test "$wxUSE_HELP" = yes; then
3515 echo "$ac_t""yes" 1>&6
3516 else
3517 echo "$ac_t""no" 1>&6
3518 fi
3519
3520
3521 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3522 echo "configure:3523: checking "for --enable-constraints"" >&5
3523 no_cache=0
3524 # Check whether --enable-constraints or --disable-constraints was given.
3525 if test "${enable_constraints+set}" = set; then
3526 enableval="$enable_constraints"
3527
3528 if test "$enableval" = yes; then
3529 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3530 else
3531 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3532 fi
3533
3534 else
3535
3536 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3537 if test "x$LINE" != x ; then
3538 eval "DEFAULT_$LINE"
3539 else
3540 no_cache=1
3541 fi
3542
3543 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3544
3545 fi
3546
3547
3548 eval "$ac_cv_use_constraints"
3549 if test "$no_cache" != 1; then
3550 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3551 fi
3552
3553 if test "$wxUSE_CONSTRAINTS" = yes; then
3554 echo "$ac_t""yes" 1>&6
3555 else
3556 echo "$ac_t""no" 1>&6
3557 fi
3558
3559
3560 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3561 echo "configure:3562: checking "for --enable-printarch"" >&5
3562 no_cache=0
3563 # Check whether --enable-printarch or --disable-printarch was given.
3564 if test "${enable_printarch+set}" = set; then
3565 enableval="$enable_printarch"
3566
3567 if test "$enableval" = yes; then
3568 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3569 else
3570 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3571 fi
3572
3573 else
3574
3575 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3576 if test "x$LINE" != x ; then
3577 eval "DEFAULT_$LINE"
3578 else
3579 no_cache=1
3580 fi
3581
3582 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3583
3584 fi
3585
3586
3587 eval "$ac_cv_use_printarch"
3588 if test "$no_cache" != 1; then
3589 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3590 fi
3591
3592 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3593 echo "$ac_t""yes" 1>&6
3594 else
3595 echo "$ac_t""no" 1>&6
3596 fi
3597
3598
3599 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3600 echo "configure:3601: checking "for --enable-mdi"" >&5
3601 no_cache=0
3602 # Check whether --enable-mdi or --disable-mdi was given.
3603 if test "${enable_mdi+set}" = set; then
3604 enableval="$enable_mdi"
3605
3606 if test "$enableval" = yes; then
3607 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3608 else
3609 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3610 fi
3611
3612 else
3613
3614 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3615 if test "x$LINE" != x ; then
3616 eval "DEFAULT_$LINE"
3617 else
3618 no_cache=1
3619 fi
3620
3621 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3622
3623 fi
3624
3625
3626 eval "$ac_cv_use_mdi"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3632 echo "$ac_t""yes" 1>&6
3633 else
3634 echo "$ac_t""no" 1>&6
3635 fi
3636
3637
3638
3639 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3640 echo "configure:3641: checking "for --enable-postscript"" >&5
3641 no_cache=0
3642 # Check whether --enable-postscript or --disable-postscript was given.
3643 if test "${enable_postscript+set}" = set; then
3644 enableval="$enable_postscript"
3645
3646 if test "$enableval" = yes; then
3647 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3648 else
3649 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3650 fi
3651
3652 else
3653
3654 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3662
3663 fi
3664
3665
3666 eval "$ac_cv_use_postscript"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_POSTSCRIPT" = yes; then
3672 echo "$ac_t""yes" 1>&6
3673 else
3674 echo "$ac_t""no" 1>&6
3675 fi
3676
3677
3678
3679
3680 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3681 echo "configure:3682: checking "for --enable-prologio"" >&5
3682 no_cache=0
3683 # Check whether --enable-prologio or --disable-prologio was given.
3684 if test "${enable_prologio+set}" = set; then
3685 enableval="$enable_prologio"
3686
3687 if test "$enableval" = yes; then
3688 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3689 else
3690 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3691 fi
3692
3693 else
3694
3695 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3696 if test "x$LINE" != x ; then
3697 eval "DEFAULT_$LINE"
3698 else
3699 no_cache=1
3700 fi
3701
3702 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3703
3704 fi
3705
3706
3707 eval "$ac_cv_use_prologio"
3708 if test "$no_cache" != 1; then
3709 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3710 fi
3711
3712 if test "$wxUSE_PROLOGIO" = yes; then
3713 echo "$ac_t""yes" 1>&6
3714 else
3715 echo "$ac_t""no" 1>&6
3716 fi
3717
3718
3719 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3720 echo "configure:3721: checking "for --enable-resources"" >&5
3721 no_cache=0
3722 # Check whether --enable-resources or --disable-resources was given.
3723 if test "${enable_resources+set}" = set; then
3724 enableval="$enable_resources"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3728 else
3729 ac_cv_use_resources='wxUSE_RESOURCES=no'
3730 fi
3731
3732 else
3733
3734 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3742
3743 fi
3744
3745
3746 eval "$ac_cv_use_resources"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_RESOURCES" = yes; then
3752 echo "$ac_t""yes" 1>&6
3753 else
3754 echo "$ac_t""no" 1>&6
3755 fi
3756
3757
3758
3759 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3760 echo "configure:3761: checking "for --enable-xresources"" >&5
3761 no_cache=0
3762 # Check whether --enable-xresources or --disable-xresources was given.
3763 if test "${enable_xresources+set}" = set; then
3764 enableval="$enable_xresources"
3765
3766 if test "$enableval" = yes; then
3767 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3768 else
3769 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3770 fi
3771
3772 else
3773
3774 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3775 if test "x$LINE" != x ; then
3776 eval "DEFAULT_$LINE"
3777 else
3778 no_cache=1
3779 fi
3780
3781 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3782
3783 fi
3784
3785
3786 eval "$ac_cv_use_xresources"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_X_RESOURCES" = yes; then
3792 echo "$ac_t""yes" 1>&6
3793 else
3794 echo "$ac_t""no" 1>&6
3795 fi
3796
3797
3798
3799
3800 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3801 echo "configure:3802: checking "for --enable-clipboard"" >&5
3802 no_cache=0
3803 # Check whether --enable-clipboard or --disable-clipboard was given.
3804 if test "${enable_clipboard+set}" = set; then
3805 enableval="$enable_clipboard"
3806
3807 if test "$enableval" = yes; then
3808 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3809 else
3810 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3811 fi
3812
3813 else
3814
3815 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3816 if test "x$LINE" != x ; then
3817 eval "DEFAULT_$LINE"
3818 else
3819 no_cache=1
3820 fi
3821
3822 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3823
3824 fi
3825
3826
3827 eval "$ac_cv_use_clipboard"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_CLIPBOARD" = yes; then
3833 echo "$ac_t""yes" 1>&6
3834 else
3835 echo "$ac_t""no" 1>&6
3836 fi
3837
3838
3839 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3840 echo "configure:3841: checking "for --enable-dnd"" >&5
3841 no_cache=0
3842 # Check whether --enable-dnd or --disable-dnd was given.
3843 if test "${enable_dnd+set}" = set; then
3844 enableval="$enable_dnd"
3845
3846 if test "$enableval" = yes; then
3847 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3848 else
3849 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3850 fi
3851
3852 else
3853
3854 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3862
3863 fi
3864
3865
3866 eval "$ac_cv_use_dnd"
3867 if test "$no_cache" != 1; then
3868 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3869 fi
3870
3871 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3872 echo "$ac_t""yes" 1>&6
3873 else
3874 echo "$ac_t""no" 1>&6
3875 fi
3876
3877
3878
3879 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3880 echo "configure:3881: checking "for --enable-wxtree"" >&5
3881 no_cache=0
3882 # Check whether --enable-wxtree or --disable-wxtree was given.
3883 if test "${enable_wxtree+set}" = set; then
3884 enableval="$enable_wxtree"
3885
3886 if test "$enableval" = yes; then
3887 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3888 else
3889 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3890 fi
3891
3892 else
3893
3894 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3895 if test "x$LINE" != x ; then
3896 eval "DEFAULT_$LINE"
3897 else
3898 no_cache=1
3899 fi
3900
3901 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3902
3903 fi
3904
3905
3906 eval "$ac_cv_use_wxtree"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_WXTREE" = yes; then
3912 echo "$ac_t""yes" 1>&6
3913 else
3914 echo "$ac_t""no" 1>&6
3915 fi
3916
3917
3918
3919
3920 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3921 echo "configure:3922: checking "for --enable-controls"" >&5
3922 no_cache=0
3923 # Check whether --enable-controls or --disable-controls was given.
3924 if test "${enable_controls+set}" = set; then
3925 enableval="$enable_controls"
3926
3927 if test "$enableval" = yes; then
3928 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3929 else
3930 ac_cv_use_controls='wxUSE_CONTROLS=no'
3931 fi
3932
3933 else
3934
3935 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3936 if test "x$LINE" != x ; then
3937 eval "DEFAULT_$LINE"
3938 else
3939 no_cache=1
3940 fi
3941
3942 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3943
3944 fi
3945
3946
3947 eval "$ac_cv_use_controls"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_CONTROLS" = yes; then
3953 echo "$ac_t""yes" 1>&6
3954 else
3955 echo "$ac_t""no" 1>&6
3956 fi
3957
3958
3959 if test "$wxUSE_CONTROLS" = "yes"; then
3960 DEFAULT_wxUSE_ACCEL=yes
3961 DEFAULT_wxUSE_CARET=yes
3962 DEFAULT_wxUSE_COMBOBOX=yes
3963 DEFAULT_wxUSE_BMPBUTTON=yes
3964 DEFAULT_wxUSE_CHECKBOX=yes
3965 DEFAULT_wxUSE_CHECKLISTBOX=yes
3966 DEFAULT_wxUSE_CHOICE=yes
3967 DEFAULT_wxUSE_GAUGE=yes
3968 DEFAULT_wxUSE_GRID=yes
3969 DEFAULT_wxUSE_NEW_GRID=yes
3970 DEFAULT_wxUSE_IMAGLIST=yes
3971 DEFAULT_wxUSE_LISTBOX=yes
3972 DEFAULT_wxUSE_LISTCTRL=yes
3973 DEFAULT_wxUSE_NOTEBOOK=yes
3974 DEFAULT_wxUSE_RADIOBOX=yes
3975 DEFAULT_wxUSE_RADIOBTN=yes
3976 DEFAULT_wxUSE_SASH=yes
3977 DEFAULT_wxUSE_SCROLLBAR=yes
3978 DEFAULT_wxUSE_SLIDER=yes
3979 DEFAULT_wxUSE_SPINBTN=yes
3980 DEFAULT_wxUSE_SPINCTRL=yes
3981 DEFAULT_wxUSE_SPLITTER=yes
3982 DEFAULT_wxUSE_STATBMP=yes
3983 DEFAULT_wxUSE_STATBOX=yes
3984 DEFAULT_wxUSE_STATLINE=yes
3985 DEFAULT_wxUSE_STATUSBAR=yes
3986 DEFAULT_wxUSE_TAB_DIALOG=yes
3987 DEFAULT_wxUSE_TOOLBAR=yes
3988 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3989 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
3990 DEFAULT_wxUSE_TOOLTIPS=yes
3991 DEFAULT_wxUSE_TREECTRL=yes
3992 elif test "$wxUSE_CONTROLS" = "no"; then
3993 DEFAULT_wxUSE_ACCEL=no
3994 DEFAULT_wxUSE_CARET=no
3995 DEFAULT_wxUSE_COMBOBOX=no
3996 DEFAULT_wxUSE_BMPBUTTON=no
3997 DEFAULT_wxUSE_CHECKBOX=no
3998 DEFAULT_wxUSE_CHECKLISTBOX=no
3999 DEFAULT_wxUSE_CHOICE=no
4000 DEFAULT_wxUSE_GAUGE=no
4001 DEFAULT_wxUSE_GRID=no
4002 DEFAULT_wxUSE_NEW_GRID=no
4003 DEFAULT_wxUSE_IMAGLIST=no
4004 DEFAULT_wxUSE_LISTBOX=no
4005 DEFAULT_wxUSE_LISTCTRL=no
4006 DEFAULT_wxUSE_NOTEBOOK=no
4007 DEFAULT_wxUSE_RADIOBOX=no
4008 DEFAULT_wxUSE_RADIOBTN=no
4009 DEFAULT_wxUSE_SASH=no
4010 DEFAULT_wxUSE_SCROLLBAR=no
4011 DEFAULT_wxUSE_SLIDER=no
4012 DEFAULT_wxUSE_SPINBTN=no
4013 DEFAULT_wxUSE_SPINCTRL=no
4014 DEFAULT_wxUSE_SPLITTER=no
4015 DEFAULT_wxUSE_STATBMP=no
4016 DEFAULT_wxUSE_STATBOX=no
4017 DEFAULT_wxUSE_STATLINE=no
4018 DEFAULT_wxUSE_STATUSBAR=no
4019 DEFAULT_wxUSE_TAB_DIALOG=no
4020 DEFAULT_wxUSE_TOOLBAR=no
4021 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4022 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4023 DEFAULT_wxUSE_TOOLTIPS=no
4024 DEFAULT_wxUSE_TREECTRL=no
4025 fi
4026
4027
4028 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4029 echo "configure:4030: checking "for --enable-accel"" >&5
4030 no_cache=0
4031 # Check whether --enable-accel or --disable-accel was given.
4032 if test "${enable_accel+set}" = set; then
4033 enableval="$enable_accel"
4034
4035 if test "$enableval" = yes; then
4036 ac_cv_use_accel='wxUSE_ACCEL=yes'
4037 else
4038 ac_cv_use_accel='wxUSE_ACCEL=no'
4039 fi
4040
4041 else
4042
4043 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4044 if test "x$LINE" != x ; then
4045 eval "DEFAULT_$LINE"
4046 else
4047 no_cache=1
4048 fi
4049
4050 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4051
4052 fi
4053
4054
4055 eval "$ac_cv_use_accel"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$wxUSE_ACCEL" = yes; then
4061 echo "$ac_t""yes" 1>&6
4062 else
4063 echo "$ac_t""no" 1>&6
4064 fi
4065
4066
4067 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4068 echo "configure:4069: checking "for --enable-caret"" >&5
4069 no_cache=0
4070 # Check whether --enable-caret or --disable-caret was given.
4071 if test "${enable_caret+set}" = set; then
4072 enableval="$enable_caret"
4073
4074 if test "$enableval" = yes; then
4075 ac_cv_use_caret='wxUSE_CARET=yes'
4076 else
4077 ac_cv_use_caret='wxUSE_CARET=no'
4078 fi
4079
4080 else
4081
4082 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4083 if test "x$LINE" != x ; then
4084 eval "DEFAULT_$LINE"
4085 else
4086 no_cache=1
4087 fi
4088
4089 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4090
4091 fi
4092
4093
4094 eval "$ac_cv_use_caret"
4095 if test "$no_cache" != 1; then
4096 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4097 fi
4098
4099 if test "$wxUSE_CARET" = yes; then
4100 echo "$ac_t""yes" 1>&6
4101 else
4102 echo "$ac_t""no" 1>&6
4103 fi
4104
4105
4106 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4107 echo "configure:4108: checking "for --enable-bmpbutton"" >&5
4108 no_cache=0
4109 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4110 if test "${enable_bmpbutton+set}" = set; then
4111 enableval="$enable_bmpbutton"
4112
4113 if test "$enableval" = yes; then
4114 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4115 else
4116 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4117 fi
4118
4119 else
4120
4121 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4122 if test "x$LINE" != x ; then
4123 eval "DEFAULT_$LINE"
4124 else
4125 no_cache=1
4126 fi
4127
4128 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4129
4130 fi
4131
4132
4133 eval "$ac_cv_use_bmpbutton"
4134 if test "$no_cache" != 1; then
4135 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4136 fi
4137
4138 if test "$wxUSE_BMPBUTTON" = yes; then
4139 echo "$ac_t""yes" 1>&6
4140 else
4141 echo "$ac_t""no" 1>&6
4142 fi
4143
4144
4145 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4146 echo "configure:4147: checking "for --enable-checkbox"" >&5
4147 no_cache=0
4148 # Check whether --enable-checkbox or --disable-checkbox was given.
4149 if test "${enable_checkbox+set}" = set; then
4150 enableval="$enable_checkbox"
4151
4152 if test "$enableval" = yes; then
4153 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4154 else
4155 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4156 fi
4157
4158 else
4159
4160 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4168
4169 fi
4170
4171
4172 eval "$ac_cv_use_checkbox"
4173 if test "$no_cache" != 1; then
4174 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4175 fi
4176
4177 if test "$wxUSE_CHECKBOX" = yes; then
4178 echo "$ac_t""yes" 1>&6
4179 else
4180 echo "$ac_t""no" 1>&6
4181 fi
4182
4183
4184 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4185 echo "configure:4186: checking "for --enable-checklst"" >&5
4186 no_cache=0
4187 # Check whether --enable-checklst or --disable-checklst was given.
4188 if test "${enable_checklst+set}" = set; then
4189 enableval="$enable_checklst"
4190
4191 if test "$enableval" = yes; then
4192 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4193 else
4194 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4195 fi
4196
4197 else
4198
4199 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4200 if test "x$LINE" != x ; then
4201 eval "DEFAULT_$LINE"
4202 else
4203 no_cache=1
4204 fi
4205
4206 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4207
4208 fi
4209
4210
4211 eval "$ac_cv_use_checklst"
4212 if test "$no_cache" != 1; then
4213 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4214 fi
4215
4216 if test "$wxUSE_CHECKLST" = yes; then
4217 echo "$ac_t""yes" 1>&6
4218 else
4219 echo "$ac_t""no" 1>&6
4220 fi
4221
4222
4223 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4224 echo "configure:4225: checking "for --enable-choice"" >&5
4225 no_cache=0
4226 # Check whether --enable-choice or --disable-choice was given.
4227 if test "${enable_choice+set}" = set; then
4228 enableval="$enable_choice"
4229
4230 if test "$enableval" = yes; then
4231 ac_cv_use_choice='wxUSE_CHOICE=yes'
4232 else
4233 ac_cv_use_choice='wxUSE_CHOICE=no'
4234 fi
4235
4236 else
4237
4238 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4239 if test "x$LINE" != x ; then
4240 eval "DEFAULT_$LINE"
4241 else
4242 no_cache=1
4243 fi
4244
4245 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4246
4247 fi
4248
4249
4250 eval "$ac_cv_use_choice"
4251 if test "$no_cache" != 1; then
4252 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4253 fi
4254
4255 if test "$wxUSE_CHOICE" = yes; then
4256 echo "$ac_t""yes" 1>&6
4257 else
4258 echo "$ac_t""no" 1>&6
4259 fi
4260
4261
4262 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4263 echo "configure:4264: checking "for --enable-combobox"" >&5
4264 no_cache=0
4265 # Check whether --enable-combobox or --disable-combobox was given.
4266 if test "${enable_combobox+set}" = set; then
4267 enableval="$enable_combobox"
4268
4269 if test "$enableval" = yes; then
4270 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4271 else
4272 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4273 fi
4274
4275 else
4276
4277 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4278 if test "x$LINE" != x ; then
4279 eval "DEFAULT_$LINE"
4280 else
4281 no_cache=1
4282 fi
4283
4284 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4285
4286 fi
4287
4288
4289 eval "$ac_cv_use_combobox"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_COMBOBOX" = yes; then
4295 echo "$ac_t""yes" 1>&6
4296 else
4297 echo "$ac_t""no" 1>&6
4298 fi
4299
4300
4301 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4302 echo "configure:4303: checking "for --enable-gauge"" >&5
4303 no_cache=0
4304 # Check whether --enable-gauge or --disable-gauge was given.
4305 if test "${enable_gauge+set}" = set; then
4306 enableval="$enable_gauge"
4307
4308 if test "$enableval" = yes; then
4309 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4310 else
4311 ac_cv_use_gauge='wxUSE_GAUGE=no'
4312 fi
4313
4314 else
4315
4316 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
4323 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4324
4325 fi
4326
4327
4328 eval "$ac_cv_use_gauge"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_GAUGE" = yes; then
4334 echo "$ac_t""yes" 1>&6
4335 else
4336 echo "$ac_t""no" 1>&6
4337 fi
4338
4339
4340 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4341 echo "configure:4342: checking "for --enable-grid"" >&5
4342 no_cache=0
4343 # Check whether --enable-grid or --disable-grid was given.
4344 if test "${enable_grid+set}" = set; then
4345 enableval="$enable_grid"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_grid='wxUSE_GRID=yes'
4349 else
4350 ac_cv_use_grid='wxUSE_GRID=no'
4351 fi
4352
4353 else
4354
4355 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4363
4364 fi
4365
4366
4367 eval "$ac_cv_use_grid"
4368 if test "$no_cache" != 1; then
4369 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4370 fi
4371
4372 if test "$wxUSE_GRID" = yes; then
4373 echo "$ac_t""yes" 1>&6
4374 else
4375 echo "$ac_t""no" 1>&6
4376 fi
4377
4378
4379 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4380 echo "configure:4381: checking "for --enable-newgrid"" >&5
4381 no_cache=0
4382 # Check whether --enable-newgrid or --disable-newgrid was given.
4383 if test "${enable_newgrid+set}" = set; then
4384 enableval="$enable_newgrid"
4385
4386 if test "$enableval" = yes; then
4387 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4388 else
4389 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4390 fi
4391
4392 else
4393
4394 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4395 if test "x$LINE" != x ; then
4396 eval "DEFAULT_$LINE"
4397 else
4398 no_cache=1
4399 fi
4400
4401 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4402
4403 fi
4404
4405
4406 eval "$ac_cv_use_newgrid"
4407 if test "$no_cache" != 1; then
4408 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4409 fi
4410
4411 if test "$wxUSE_NEW_GRID" = yes; then
4412 echo "$ac_t""yes" 1>&6
4413 else
4414 echo "$ac_t""no" 1>&6
4415 fi
4416
4417
4418 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4419 echo "configure:4420: checking "for --enable-imaglist"" >&5
4420 no_cache=0
4421 # Check whether --enable-imaglist or --disable-imaglist was given.
4422 if test "${enable_imaglist+set}" = set; then
4423 enableval="$enable_imaglist"
4424
4425 if test "$enableval" = yes; then
4426 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4427 else
4428 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4429 fi
4430
4431 else
4432
4433 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4441
4442 fi
4443
4444
4445 eval "$ac_cv_use_imaglist"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_IMAGLIST" = yes; then
4451 echo "$ac_t""yes" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456
4457 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4458 echo "configure:4459: checking "for --enable-listbox"" >&5
4459 no_cache=0
4460 # Check whether --enable-listbox or --disable-listbox was given.
4461 if test "${enable_listbox+set}" = set; then
4462 enableval="$enable_listbox"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4466 else
4467 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4468 fi
4469
4470 else
4471
4472 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4480
4481 fi
4482
4483
4484 eval "$ac_cv_use_listbox"
4485 if test "$no_cache" != 1; then
4486 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4487 fi
4488
4489 if test "$wxUSE_LISTBOX" = yes; then
4490 echo "$ac_t""yes" 1>&6
4491 else
4492 echo "$ac_t""no" 1>&6
4493 fi
4494
4495
4496 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4497 echo "configure:4498: checking "for --enable-listctrl"" >&5
4498 no_cache=0
4499 # Check whether --enable-listctrl or --disable-listctrl was given.
4500 if test "${enable_listctrl+set}" = set; then
4501 enableval="$enable_listctrl"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4505 else
4506 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4507 fi
4508
4509 else
4510
4511 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4519
4520 fi
4521
4522
4523 eval "$ac_cv_use_listctrl"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_LISTCTRL" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4536 echo "configure:4537: checking "for --enable-notebook"" >&5
4537 no_cache=0
4538 # Check whether --enable-notebook or --disable-notebook was given.
4539 if test "${enable_notebook+set}" = set; then
4540 enableval="$enable_notebook"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4544 else
4545 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4546 fi
4547
4548 else
4549
4550 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4558
4559 fi
4560
4561
4562 eval "$ac_cv_use_notebook"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_NOTEBOOK" = yes; then
4568 echo "$ac_t""yes" 1>&6
4569 else
4570 echo "$ac_t""no" 1>&6
4571 fi
4572
4573
4574 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4575 echo "configure:4576: checking "for --enable-radiobox"" >&5
4576 no_cache=0
4577 # Check whether --enable-radiobox or --disable-radiobox was given.
4578 if test "${enable_radiobox+set}" = set; then
4579 enableval="$enable_radiobox"
4580
4581 if test "$enableval" = yes; then
4582 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4583 else
4584 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4585 fi
4586
4587 else
4588
4589 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4590 if test "x$LINE" != x ; then
4591 eval "DEFAULT_$LINE"
4592 else
4593 no_cache=1
4594 fi
4595
4596 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4597
4598 fi
4599
4600
4601 eval "$ac_cv_use_radiobox"
4602 if test "$no_cache" != 1; then
4603 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4604 fi
4605
4606 if test "$wxUSE_RADIOBOX" = yes; then
4607 echo "$ac_t""yes" 1>&6
4608 else
4609 echo "$ac_t""no" 1>&6
4610 fi
4611
4612
4613 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4614 echo "configure:4615: checking "for --enable-radiobtn"" >&5
4615 no_cache=0
4616 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4617 if test "${enable_radiobtn+set}" = set; then
4618 enableval="$enable_radiobtn"
4619
4620 if test "$enableval" = yes; then
4621 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4622 else
4623 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4624 fi
4625
4626 else
4627
4628 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4629 if test "x$LINE" != x ; then
4630 eval "DEFAULT_$LINE"
4631 else
4632 no_cache=1
4633 fi
4634
4635 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4636
4637 fi
4638
4639
4640 eval "$ac_cv_use_radiobtn"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_RADIOBTN" = yes; then
4646 echo "$ac_t""yes" 1>&6
4647 else
4648 echo "$ac_t""no" 1>&6
4649 fi
4650
4651
4652 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4653 echo "configure:4654: checking "for --enable-sash"" >&5
4654 no_cache=0
4655 # Check whether --enable-sash or --disable-sash was given.
4656 if test "${enable_sash+set}" = set; then
4657 enableval="$enable_sash"
4658
4659 if test "$enableval" = yes; then
4660 ac_cv_use_sash='wxUSE_SASH=yes'
4661 else
4662 ac_cv_use_sash='wxUSE_SASH=no'
4663 fi
4664
4665 else
4666
4667 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4668 if test "x$LINE" != x ; then
4669 eval "DEFAULT_$LINE"
4670 else
4671 no_cache=1
4672 fi
4673
4674 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4675
4676 fi
4677
4678
4679 eval "$ac_cv_use_sash"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_SASH" = yes; then
4685 echo "$ac_t""yes" 1>&6
4686 else
4687 echo "$ac_t""no" 1>&6
4688 fi
4689
4690
4691 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4692 echo "configure:4693: checking "for --enable-scrollbar"" >&5
4693 no_cache=0
4694 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4695 if test "${enable_scrollbar+set}" = set; then
4696 enableval="$enable_scrollbar"
4697
4698 if test "$enableval" = yes; then
4699 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4700 else
4701 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4702 fi
4703
4704 else
4705
4706 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
4713 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4714
4715 fi
4716
4717
4718 eval "$ac_cv_use_scrollbar"
4719 if test "$no_cache" != 1; then
4720 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4721 fi
4722
4723 if test "$wxUSE_SCROLLBAR" = yes; then
4724 echo "$ac_t""yes" 1>&6
4725 else
4726 echo "$ac_t""no" 1>&6
4727 fi
4728
4729
4730 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4731 echo "configure:4732: checking "for --enable-slider"" >&5
4732 no_cache=0
4733 # Check whether --enable-slider or --disable-slider was given.
4734 if test "${enable_slider+set}" = set; then
4735 enableval="$enable_slider"
4736
4737 if test "$enableval" = yes; then
4738 ac_cv_use_slider='wxUSE_SLIDER=yes'
4739 else
4740 ac_cv_use_slider='wxUSE_SLIDER=no'
4741 fi
4742
4743 else
4744
4745 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4753
4754 fi
4755
4756
4757 eval "$ac_cv_use_slider"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4760 fi
4761
4762 if test "$wxUSE_SLIDER" = yes; then
4763 echo "$ac_t""yes" 1>&6
4764 else
4765 echo "$ac_t""no" 1>&6
4766 fi
4767
4768
4769 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4770 echo "configure:4771: checking "for --enable-spinbtn"" >&5
4771 no_cache=0
4772 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4773 if test "${enable_spinbtn+set}" = set; then
4774 enableval="$enable_spinbtn"
4775
4776 if test "$enableval" = yes; then
4777 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4778 else
4779 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4780 fi
4781
4782 else
4783
4784 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4792
4793 fi
4794
4795
4796 eval "$ac_cv_use_spinbtn"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_SPINBTN" = yes; then
4802 echo "$ac_t""yes" 1>&6
4803 else
4804 echo "$ac_t""no" 1>&6
4805 fi
4806
4807
4808 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
4809 echo "configure:4810: checking "for --enable-spinctrl"" >&5
4810 no_cache=0
4811 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4812 if test "${enable_spinctrl+set}" = set; then
4813 enableval="$enable_spinctrl"
4814
4815 if test "$enableval" = yes; then
4816 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4817 else
4818 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4819 fi
4820
4821 else
4822
4823 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4824 if test "x$LINE" != x ; then
4825 eval "DEFAULT_$LINE"
4826 else
4827 no_cache=1
4828 fi
4829
4830 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4831
4832 fi
4833
4834
4835 eval "$ac_cv_use_spinctrl"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4838 fi
4839
4840 if test "$wxUSE_SPINCTRL" = yes; then
4841 echo "$ac_t""yes" 1>&6
4842 else
4843 echo "$ac_t""no" 1>&6
4844 fi
4845
4846
4847 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4848 echo "configure:4849: checking "for --enable-splitter"" >&5
4849 no_cache=0
4850 # Check whether --enable-splitter or --disable-splitter was given.
4851 if test "${enable_splitter+set}" = set; then
4852 enableval="$enable_splitter"
4853
4854 if test "$enableval" = yes; then
4855 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4856 else
4857 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4858 fi
4859
4860 else
4861
4862 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
4869 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4870
4871 fi
4872
4873
4874 eval "$ac_cv_use_splitter"
4875 if test "$no_cache" != 1; then
4876 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4877 fi
4878
4879 if test "$wxUSE_SPLITTER" = yes; then
4880 echo "$ac_t""yes" 1>&6
4881 else
4882 echo "$ac_t""no" 1>&6
4883 fi
4884
4885
4886 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4887 echo "configure:4888: checking "for --enable-statbmp"" >&5
4888 no_cache=0
4889 # Check whether --enable-statbmp or --disable-statbmp was given.
4890 if test "${enable_statbmp+set}" = set; then
4891 enableval="$enable_statbmp"
4892
4893 if test "$enableval" = yes; then
4894 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4895 else
4896 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4897 fi
4898
4899 else
4900
4901 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4909
4910 fi
4911
4912
4913 eval "$ac_cv_use_statbmp"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_STATBMP" = yes; then
4919 echo "$ac_t""yes" 1>&6
4920 else
4921 echo "$ac_t""no" 1>&6
4922 fi
4923
4924
4925 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4926 echo "configure:4927: checking "for --enable-statbox"" >&5
4927 no_cache=0
4928 # Check whether --enable-statbox or --disable-statbox was given.
4929 if test "${enable_statbox+set}" = set; then
4930 enableval="$enable_statbox"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4934 else
4935 ac_cv_use_statbox='wxUSE_STATBOX=no'
4936 fi
4937
4938 else
4939
4940 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4948
4949 fi
4950
4951
4952 eval "$ac_cv_use_statbox"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_STATBOX" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4965 echo "configure:4966: checking "for --enable-statline"" >&5
4966 no_cache=0
4967 # Check whether --enable-statline or --disable-statline was given.
4968 if test "${enable_statline+set}" = set; then
4969 enableval="$enable_statline"
4970
4971 if test "$enableval" = yes; then
4972 ac_cv_use_statline='wxUSE_STATLINE=yes'
4973 else
4974 ac_cv_use_statline='wxUSE_STATLINE=no'
4975 fi
4976
4977 else
4978
4979 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4987
4988 fi
4989
4990
4991 eval "$ac_cv_use_statline"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_STATLINE" = yes; then
4997 echo "$ac_t""yes" 1>&6
4998 else
4999 echo "$ac_t""no" 1>&6
5000 fi
5001
5002
5003 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
5004 echo "configure:5005: checking "for --enable-statusbar"" >&5
5005 no_cache=0
5006 # Check whether --enable-statusbar or --disable-statusbar was given.
5007 if test "${enable_statusbar+set}" = set; then
5008 enableval="$enable_statusbar"
5009
5010 if test "$enableval" = yes; then
5011 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5012 else
5013 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5014 fi
5015
5016 else
5017
5018 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
5025 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5026
5027 fi
5028
5029
5030 eval "$ac_cv_use_statusbar"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_STATUSBAR" = yes; then
5036 echo "$ac_t""yes" 1>&6
5037 else
5038 echo "$ac_t""no" 1>&6
5039 fi
5040
5041
5042 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
5043 echo "configure:5044: checking "for --enable-tabdialog"" >&5
5044 no_cache=0
5045 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5046 if test "${enable_tabdialog+set}" = set; then
5047 enableval="$enable_tabdialog"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5051 else
5052 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5053 fi
5054
5055 else
5056
5057 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5065
5066 fi
5067
5068
5069 eval "$ac_cv_use_tabdialog"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_TABDIALOG" = yes; then
5075 echo "$ac_t""yes" 1>&6
5076 else
5077 echo "$ac_t""no" 1>&6
5078 fi
5079
5080
5081 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5082 echo "configure:5083: checking "for --enable-toolbar"" >&5
5083 no_cache=0
5084 # Check whether --enable-toolbar or --disable-toolbar was given.
5085 if test "${enable_toolbar+set}" = set; then
5086 enableval="$enable_toolbar"
5087
5088 if test "$enableval" = yes; then
5089 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5090 else
5091 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5092 fi
5093
5094 else
5095
5096 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5104
5105 fi
5106
5107
5108 eval "$ac_cv_use_toolbar"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_TOOLBAR" = yes; then
5114 echo "$ac_t""yes" 1>&6
5115 else
5116 echo "$ac_t""no" 1>&6
5117 fi
5118
5119
5120 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5121 echo "configure:5122: checking "for --enable-tbarnative"" >&5
5122 no_cache=0
5123 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5124 if test "${enable_tbarnative+set}" = set; then
5125 enableval="$enable_tbarnative"
5126
5127 if test "$enableval" = yes; then
5128 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5129 else
5130 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5131 fi
5132
5133 else
5134
5135 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5143
5144 fi
5145
5146
5147 eval "$ac_cv_use_tbarnative"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5153 echo "$ac_t""yes" 1>&6
5154 else
5155 echo "$ac_t""no" 1>&6
5156 fi
5157
5158
5159 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5160 echo "configure:5161: checking "for --enable-tbarsmpl"" >&5
5161 no_cache=0
5162 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5163 if test "${enable_tbarsmpl+set}" = set; then
5164 enableval="$enable_tbarsmpl"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5168 else
5169 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5170 fi
5171
5172 else
5173
5174 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5182
5183 fi
5184
5185
5186 eval "$ac_cv_use_tbarsmpl"
5187 if test "$no_cache" != 1; then
5188 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5189 fi
5190
5191 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5192 echo "$ac_t""yes" 1>&6
5193 else
5194 echo "$ac_t""no" 1>&6
5195 fi
5196
5197
5198 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5199 echo "configure:5200: checking "for --enable-treectrl"" >&5
5200 no_cache=0
5201 # Check whether --enable-treectrl or --disable-treectrl was given.
5202 if test "${enable_treectrl+set}" = set; then
5203 enableval="$enable_treectrl"
5204
5205 if test "$enableval" = yes; then
5206 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5207 else
5208 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5209 fi
5210
5211 else
5212
5213 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5221
5222 fi
5223
5224
5225 eval "$ac_cv_use_treectrl"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_TREECTRL" = yes; then
5231 echo "$ac_t""yes" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5234 fi
5235
5236
5237
5238
5239 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5240 echo "configure:5241: checking "for --enable-commondlg"" >&5
5241 no_cache=0
5242 # Check whether --enable-commondlg or --disable-commondlg was given.
5243 if test "${enable_commondlg+set}" = set; then
5244 enableval="$enable_commondlg"
5245
5246 if test "$enableval" = yes; then
5247 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5248 else
5249 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5250 fi
5251
5252 else
5253
5254 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5255 if test "x$LINE" != x ; then
5256 eval "DEFAULT_$LINE"
5257 else
5258 no_cache=1
5259 fi
5260
5261 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5262
5263 fi
5264
5265
5266 eval "$ac_cv_use_commondlg"
5267 if test "$no_cache" != 1; then
5268 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5269 fi
5270
5271 if test "$wxUSE_COMMONDLGS" = yes; then
5272 echo "$ac_t""yes" 1>&6
5273 else
5274 echo "$ac_t""no" 1>&6
5275 fi
5276
5277
5278 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5279 echo "configure:5280: checking "for --enable-dirdlg"" >&5
5280 no_cache=0
5281 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5282 if test "${enable_dirdlg+set}" = set; then
5283 enableval="$enable_dirdlg"
5284
5285 if test "$enableval" = yes; then
5286 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5287 else
5288 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5289 fi
5290
5291 else
5292
5293 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5294 if test "x$LINE" != x ; then
5295 eval "DEFAULT_$LINE"
5296 else
5297 no_cache=1
5298 fi
5299
5300 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5301
5302 fi
5303
5304
5305 eval "$ac_cv_use_dirdlg"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_DIRDLG" = yes; then
5311 echo "$ac_t""yes" 1>&6
5312 else
5313 echo "$ac_t""no" 1>&6
5314 fi
5315
5316
5317 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5318 echo "configure:5319: checking "for --enable-textdlg"" >&5
5319 no_cache=0
5320 # Check whether --enable-textdlg or --disable-textdlg was given.
5321 if test "${enable_textdlg+set}" = set; then
5322 enableval="$enable_textdlg"
5323
5324 if test "$enableval" = yes; then
5325 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5326 else
5327 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5328 fi
5329
5330 else
5331
5332 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5333 if test "x$LINE" != x ; then
5334 eval "DEFAULT_$LINE"
5335 else
5336 no_cache=1
5337 fi
5338
5339 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5340
5341 fi
5342
5343
5344 eval "$ac_cv_use_textdlg"
5345 if test "$no_cache" != 1; then
5346 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5347 fi
5348
5349 if test "$wxUSE_TEXTDLG" = yes; then
5350 echo "$ac_t""yes" 1>&6
5351 else
5352 echo "$ac_t""no" 1>&6
5353 fi
5354
5355
5356 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5357 echo "configure:5358: checking "for --enable-tipdlg"" >&5
5358 no_cache=0
5359 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5360 if test "${enable_tipdlg+set}" = set; then
5361 enableval="$enable_tipdlg"
5362
5363 if test "$enableval" = yes; then
5364 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5365 else
5366 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5367 fi
5368
5369 else
5370
5371 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5372 if test "x$LINE" != x ; then
5373 eval "DEFAULT_$LINE"
5374 else
5375 no_cache=1
5376 fi
5377
5378 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5379
5380 fi
5381
5382
5383 eval "$ac_cv_use_tipdlg"
5384 if test "$no_cache" != 1; then
5385 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5386 fi
5387
5388 if test "$wxUSE_STARTUP_TIPS" = yes; then
5389 echo "$ac_t""yes" 1>&6
5390 else
5391 echo "$ac_t""no" 1>&6
5392 fi
5393
5394
5395 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5396 echo "configure:5397: checking "for --enable-progressdlg"" >&5
5397 no_cache=0
5398 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5399 if test "${enable_progressdlg+set}" = set; then
5400 enableval="$enable_progressdlg"
5401
5402 if test "$enableval" = yes; then
5403 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5404 else
5405 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5406 fi
5407
5408 else
5409
5410 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5411 if test "x$LINE" != x ; then
5412 eval "DEFAULT_$LINE"
5413 else
5414 no_cache=1
5415 fi
5416
5417 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5418
5419 fi
5420
5421
5422 eval "$ac_cv_use_progressdlg"
5423 if test "$no_cache" != 1; then
5424 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5425 fi
5426
5427 if test "$wxUSE_PROGRESSDLG" = yes; then
5428 echo "$ac_t""yes" 1>&6
5429 else
5430 echo "$ac_t""no" 1>&6
5431 fi
5432
5433
5434 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5435 echo "configure:5436: checking "for --enable-miniframe"" >&5
5436 no_cache=0
5437 # Check whether --enable-miniframe or --disable-miniframe was given.
5438 if test "${enable_miniframe+set}" = set; then
5439 enableval="$enable_miniframe"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5443 else
5444 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5445 fi
5446
5447 else
5448
5449 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5457
5458 fi
5459
5460
5461 eval "$ac_cv_use_miniframe"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_MINIFRAME" = yes; then
5467 echo "$ac_t""yes" 1>&6
5468 else
5469 echo "$ac_t""no" 1>&6
5470 fi
5471
5472
5473 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5474 echo "configure:5475: checking "for --enable-html"" >&5
5475 no_cache=0
5476 # Check whether --enable-html or --disable-html was given.
5477 if test "${enable_html+set}" = set; then
5478 enableval="$enable_html"
5479
5480 if test "$enableval" = yes; then
5481 ac_cv_use_html='wxUSE_HTML=yes'
5482 else
5483 ac_cv_use_html='wxUSE_HTML=no'
5484 fi
5485
5486 else
5487
5488 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5489 if test "x$LINE" != x ; then
5490 eval "DEFAULT_$LINE"
5491 else
5492 no_cache=1
5493 fi
5494
5495 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5496
5497 fi
5498
5499
5500 eval "$ac_cv_use_html"
5501 if test "$no_cache" != 1; then
5502 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5503 fi
5504
5505 if test "$wxUSE_HTML" = yes; then
5506 echo "$ac_t""yes" 1>&6
5507 else
5508 echo "$ac_t""no" 1>&6
5509 fi
5510
5511
5512 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5513 echo "configure:5514: checking "for --enable-tooltips"" >&5
5514 no_cache=0
5515 # Check whether --enable-tooltips or --disable-tooltips was given.
5516 if test "${enable_tooltips+set}" = set; then
5517 enableval="$enable_tooltips"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5521 else
5522 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5523 fi
5524
5525 else
5526
5527 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5535
5536 fi
5537
5538
5539 eval "$ac_cv_use_tooltips"
5540 if test "$no_cache" != 1; then
5541 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5542 fi
5543
5544 if test "$wxUSE_TOOLTIPS" = yes; then
5545 echo "$ac_t""yes" 1>&6
5546 else
5547 echo "$ac_t""no" 1>&6
5548 fi
5549
5550
5551 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5552 echo "configure:5553: checking "for --enable-splines"" >&5
5553 no_cache=0
5554 # Check whether --enable-splines or --disable-splines was given.
5555 if test "${enable_splines+set}" = set; then
5556 enableval="$enable_splines"
5557
5558 if test "$enableval" = yes; then
5559 ac_cv_use_splines='wxUSE_SPLINES=yes'
5560 else
5561 ac_cv_use_splines='wxUSE_SPLINES=no'
5562 fi
5563
5564 else
5565
5566 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5567 if test "x$LINE" != x ; then
5568 eval "DEFAULT_$LINE"
5569 else
5570 no_cache=1
5571 fi
5572
5573 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5574
5575 fi
5576
5577
5578 eval "$ac_cv_use_splines"
5579 if test "$no_cache" != 1; then
5580 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5581 fi
5582
5583 if test "$wxUSE_SPLINES" = yes; then
5584 echo "$ac_t""yes" 1>&6
5585 else
5586 echo "$ac_t""no" 1>&6
5587 fi
5588
5589
5590 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5591 echo "configure:5592: checking "for --enable-validators"" >&5
5592 no_cache=0
5593 # Check whether --enable-validators or --disable-validators was given.
5594 if test "${enable_validators+set}" = set; then
5595 enableval="$enable_validators"
5596
5597 if test "$enableval" = yes; then
5598 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5599 else
5600 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5601 fi
5602
5603 else
5604
5605 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5606 if test "x$LINE" != x ; then
5607 eval "DEFAULT_$LINE"
5608 else
5609 no_cache=1
5610 fi
5611
5612 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5613
5614 fi
5615
5616
5617 eval "$ac_cv_use_validators"
5618 if test "$no_cache" != 1; then
5619 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5620 fi
5621
5622 if test "$wxUSE_VALIDATORS" = yes; then
5623 echo "$ac_t""yes" 1>&6
5624 else
5625 echo "$ac_t""no" 1>&6
5626 fi
5627
5628
5629 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5630 echo "configure:5631: checking "for --enable-busyinfo"" >&5
5631 no_cache=0
5632 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5633 if test "${enable_busyinfo+set}" = set; then
5634 enableval="$enable_busyinfo"
5635
5636 if test "$enableval" = yes; then
5637 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5638 else
5639 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5640 fi
5641
5642 else
5643
5644 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5645 if test "x$LINE" != x ; then
5646 eval "DEFAULT_$LINE"
5647 else
5648 no_cache=1
5649 fi
5650
5651 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5652
5653 fi
5654
5655
5656 eval "$ac_cv_use_busyinfo"
5657 if test "$no_cache" != 1; then
5658 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5659 fi
5660
5661 if test "$wxUSE_BUSYINFO" = yes; then
5662 echo "$ac_t""yes" 1>&6
5663 else
5664 echo "$ac_t""no" 1>&6
5665 fi
5666
5667
5668 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
5669 echo "configure:5670: checking "for --enable-plot"" >&5
5670 no_cache=0
5671 # Check whether --enable-plot or --disable-plot was given.
5672 if test "${enable_plot+set}" = set; then
5673 enableval="$enable_plot"
5674
5675 if test "$enableval" = yes; then
5676 ac_cv_use_plot='wxUSE_PLOT=yes'
5677 else
5678 ac_cv_use_plot='wxUSE_PLOT=no'
5679 fi
5680
5681 else
5682
5683 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5684 if test "x$LINE" != x ; then
5685 eval "DEFAULT_$LINE"
5686 else
5687 no_cache=1
5688 fi
5689
5690 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5691
5692 fi
5693
5694
5695 eval "$ac_cv_use_plot"
5696 if test "$no_cache" != 1; then
5697 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5698 fi
5699
5700 if test "$wxUSE_PLOT" = yes; then
5701 echo "$ac_t""yes" 1>&6
5702 else
5703 echo "$ac_t""no" 1>&6
5704 fi
5705
5706
5707
5708
5709 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5710 echo "configure:5711: checking "for --enable-gif"" >&5
5711 no_cache=0
5712 # Check whether --enable-gif or --disable-gif was given.
5713 if test "${enable_gif+set}" = set; then
5714 enableval="$enable_gif"
5715
5716 if test "$enableval" = yes; then
5717 ac_cv_use_gif='wxUSE_GIF=yes'
5718 else
5719 ac_cv_use_gif='wxUSE_GIF=no'
5720 fi
5721
5722 else
5723
5724 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5725 if test "x$LINE" != x ; then
5726 eval "DEFAULT_$LINE"
5727 else
5728 no_cache=1
5729 fi
5730
5731 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5732
5733 fi
5734
5735
5736 eval "$ac_cv_use_gif"
5737 if test "$no_cache" != 1; then
5738 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5739 fi
5740
5741 if test "$wxUSE_GIF" = yes; then
5742 echo "$ac_t""yes" 1>&6
5743 else
5744 echo "$ac_t""no" 1>&6
5745 fi
5746
5747
5748 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5749 echo "configure:5750: checking "for --enable-pcx"" >&5
5750 no_cache=0
5751 # Check whether --enable-pcx or --disable-pcx was given.
5752 if test "${enable_pcx+set}" = set; then
5753 enableval="$enable_pcx"
5754
5755 if test "$enableval" = yes; then
5756 ac_cv_use_pcx='wxUSE_PCX=yes'
5757 else
5758 ac_cv_use_pcx='wxUSE_PCX=no'
5759 fi
5760
5761 else
5762
5763 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5764 if test "x$LINE" != x ; then
5765 eval "DEFAULT_$LINE"
5766 else
5767 no_cache=1
5768 fi
5769
5770 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5771
5772 fi
5773
5774
5775 eval "$ac_cv_use_pcx"
5776 if test "$no_cache" != 1; then
5777 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5778 fi
5779
5780 if test "$wxUSE_PCX" = yes; then
5781 echo "$ac_t""yes" 1>&6
5782 else
5783 echo "$ac_t""no" 1>&6
5784 fi
5785
5786
5787 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5788 echo "configure:5789: checking "for --enable-pnm"" >&5
5789 no_cache=0
5790 # Check whether --enable-pnm or --disable-pnm was given.
5791 if test "${enable_pnm+set}" = set; then
5792 enableval="$enable_pnm"
5793
5794 if test "$enableval" = yes; then
5795 ac_cv_use_pnm='wxUSE_PNM=yes'
5796 else
5797 ac_cv_use_pnm='wxUSE_PNM=no'
5798 fi
5799
5800 else
5801
5802 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5803 if test "x$LINE" != x ; then
5804 eval "DEFAULT_$LINE"
5805 else
5806 no_cache=1
5807 fi
5808
5809 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5810
5811 fi
5812
5813
5814 eval "$ac_cv_use_pnm"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_PNM" = yes; then
5820 echo "$ac_t""yes" 1>&6
5821 else
5822 echo "$ac_t""no" 1>&6
5823 fi
5824
5825
5826 fi
5827
5828
5829 echo "saving argument cache $wx_arg_cache_file"
5830 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5831
5832
5833
5834 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5835 echo "configure:5836: checking for toolkit" >&5
5836
5837 if test "$wxUSE_GUI" = "yes"; then
5838
5839 if test "$USE_BEOS" = 1; then
5840 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5841 fi
5842
5843 if test "$TOOLKIT_GIVEN" = 1; then
5844 for toolkit in `echo $ALL_TOOLKITS`; do
5845 var=wxUSE_$toolkit
5846 eval "value=\$${var}"
5847 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5848 done
5849 else
5850 for toolkit in `echo $ALL_TOOLKITS`; do
5851 if test "$has_toolkit_in_cache" != 1; then
5852 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5853 else
5854 var=DEFAULT_wxUSE_$toolkit
5855 fi
5856 eval "wxUSE_$toolkit=\$${var}"
5857 done
5858 fi
5859
5860 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5861
5862 case "${host}" in
5863 *-pc-os2_emx )
5864 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5865 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5866 LEX_STEM="lexyy"
5867 ;;
5868 *)
5869 PATH_IFS=':'
5870 LEX_STEM="lex.yy"
5871 ;;
5872 esac
5873
5874 case "$NUM_TOOLKITS" in
5875 1)
5876 ;;
5877 0)
5878 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5879 ;;
5880 *)
5881 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5882 esac
5883
5884 for toolkit in `echo $ALL_TOOLKITS`; do
5885 var=wxUSE_$toolkit
5886 eval "value=\$${var}"
5887 if test "x$value" != x; then
5888 cache_var=CACHE_$toolkit
5889 eval "cache=\$${cache_var}"
5890 if test "$cache" = 1; then
5891 echo "$var=$value" >> ${wx_arg_cache_file}
5892 fi
5893 if test "$value" = 1; then
5894 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5895 fi
5896 fi
5897 done
5898
5899 else
5900 PATH_IFS=':'
5901 echo "$ac_t""base only" 1>&6
5902 fi
5903
5904
5905 cat > confcache <<\EOF
5906 # This file is a shell script that caches the results of configure
5907 # tests run on this system so they can be shared between configure
5908 # scripts and configure runs. It is not useful on other systems.
5909 # If it contains results you don't want to keep, you may remove or edit it.
5910 #
5911 # By default, configure uses ./config.cache as the cache file,
5912 # creating it if it does not exist already. You can give configure
5913 # the --cache-file=FILE option to use a different cache file; that is
5914 # what configure does when it calls configure scripts in
5915 # subdirectories, so they share the cache.
5916 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5917 # config.status only pays attention to the cache file if you give it the
5918 # --recheck option to rerun configure.
5919 #
5920 EOF
5921 # The following way of writing the cache mishandles newlines in values,
5922 # but we know of no workaround that is simple, portable, and efficient.
5923 # So, don't put newlines in cache variables' values.
5924 # Ultrix sh set writes to stderr and can't be redirected directly,
5925 # and sets the high bit in the cache file unless we assign to the vars.
5926 (set) 2>&1 |
5927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5928 *ac_space=\ *)
5929 # `set' does not quote correctly, so add quotes (double-quote substitution
5930 # turns \\\\ into \\, and sed turns \\ into \).
5931 sed -n \
5932 -e "s/'/'\\\\''/g" \
5933 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5934 ;;
5935 *)
5936 # `set' quotes correctly as required by POSIX, so do not add quotes.
5937 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5938 ;;
5939 esac >> confcache
5940 if cmp -s $cache_file confcache; then
5941 :
5942 else
5943 if test -w $cache_file; then
5944 echo "updating cache $cache_file"
5945 cat confcache > $cache_file
5946 else
5947 echo "not updating unwritable cache $cache_file"
5948 fi
5949 fi
5950 rm -f confcache
5951
5952
5953 if eval "test $host != $build"; then
5954 if eval "test $host_alias != NONE"; then
5955 CC=$host_alias-gcc
5956 CXX=$host_alias-c++
5957 AR=$host_alias-ar
5958 RANLIB=$host_alias-ranlib
5959 DLLTOOL=$host_alias-dlltool
5960 LD=$host_alias-ld
5961 NM=$host_alias-nm
5962 STRIP=$host_alias-strip
5963 fi
5964 fi
5965
5966 # Extract the first word of "gcc", so it can be a program name with args.
5967 set dummy gcc; ac_word=$2
5968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5969 echo "configure:5970: checking for $ac_word" >&5
5970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5971 echo $ac_n "(cached) $ac_c" 1>&6
5972 else
5973 if test -n "$CC"; then
5974 ac_cv_prog_CC="$CC" # Let the user override the test.
5975 else
5976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5977 ac_dummy="$PATH"
5978 for ac_dir in $ac_dummy; do
5979 test -z "$ac_dir" && ac_dir=.
5980 if test -f $ac_dir/$ac_word; then
5981 ac_cv_prog_CC="gcc"
5982 break
5983 fi
5984 done
5985 IFS="$ac_save_ifs"
5986 fi
5987 fi
5988 CC="$ac_cv_prog_CC"
5989 if test -n "$CC"; then
5990 echo "$ac_t""$CC" 1>&6
5991 else
5992 echo "$ac_t""no" 1>&6
5993 fi
5994
5995 if test -z "$CC"; then
5996 # Extract the first word of "cc", so it can be a program name with args.
5997 set dummy cc; ac_word=$2
5998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5999 echo "configure:6000: checking for $ac_word" >&5
6000 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6002 else
6003 if test -n "$CC"; then
6004 ac_cv_prog_CC="$CC" # Let the user override the test.
6005 else
6006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6007 ac_prog_rejected=no
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 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6013 ac_prog_rejected=yes
6014 continue
6015 fi
6016 ac_cv_prog_CC="cc"
6017 break
6018 fi
6019 done
6020 IFS="$ac_save_ifs"
6021 if test $ac_prog_rejected = yes; then
6022 # We found a bogon in the path, so make sure we never use it.
6023 set dummy $ac_cv_prog_CC
6024 shift
6025 if test $# -gt 0; then
6026 # We chose a different compiler from the bogus one.
6027 # However, it has the same basename, so the bogon will be chosen
6028 # first if we set CC to just the basename; use the full file name.
6029 shift
6030 set dummy "$ac_dir/$ac_word" "$@"
6031 shift
6032 ac_cv_prog_CC="$@"
6033 fi
6034 fi
6035 fi
6036 fi
6037 CC="$ac_cv_prog_CC"
6038 if test -n "$CC"; then
6039 echo "$ac_t""$CC" 1>&6
6040 else
6041 echo "$ac_t""no" 1>&6
6042 fi
6043
6044 if test -z "$CC"; then
6045 case "`uname -s`" in
6046 *win32* | *WIN32*)
6047 # Extract the first word of "cl", so it can be a program name with args.
6048 set dummy cl; ac_word=$2
6049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6050 echo "configure:6051: checking for $ac_word" >&5
6051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6052 echo $ac_n "(cached) $ac_c" 1>&6
6053 else
6054 if test -n "$CC"; then
6055 ac_cv_prog_CC="$CC" # Let the user override the test.
6056 else
6057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6058 ac_dummy="$PATH"
6059 for ac_dir in $ac_dummy; do
6060 test -z "$ac_dir" && ac_dir=.
6061 if test -f $ac_dir/$ac_word; then
6062 ac_cv_prog_CC="cl"
6063 break
6064 fi
6065 done
6066 IFS="$ac_save_ifs"
6067 fi
6068 fi
6069 CC="$ac_cv_prog_CC"
6070 if test -n "$CC"; then
6071 echo "$ac_t""$CC" 1>&6
6072 else
6073 echo "$ac_t""no" 1>&6
6074 fi
6075 ;;
6076 esac
6077 fi
6078 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6079 fi
6080
6081 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6082 echo "configure:6083: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6083
6084 ac_ext=c
6085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6086 ac_cpp='$CPP $CPPFLAGS'
6087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6089 cross_compiling=$ac_cv_prog_cc_cross
6090
6091 cat > conftest.$ac_ext << EOF
6092
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095
6096 main(){return(0);}
6097 EOF
6098 if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6099 ac_cv_prog_cc_works=yes
6100 # If we can't run a trivial program, we are probably using a cross compiler.
6101 if (./conftest; exit) 2>/dev/null; then
6102 ac_cv_prog_cc_cross=no
6103 else
6104 ac_cv_prog_cc_cross=yes
6105 fi
6106 else
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 ac_cv_prog_cc_works=no
6110 fi
6111 rm -fr conftest*
6112 ac_ext=c
6113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6114 ac_cpp='$CPP $CPPFLAGS'
6115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6117 cross_compiling=$ac_cv_prog_cc_cross
6118
6119 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6120 if test $ac_cv_prog_cc_works = no; then
6121 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6122 fi
6123 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6124 echo "configure:6125: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6125 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6126 cross_compiling=$ac_cv_prog_cc_cross
6127
6128 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6129 echo "configure:6130: checking whether we are using GNU C" >&5
6130 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6132 else
6133 cat > conftest.c <<EOF
6134 #ifdef __GNUC__
6135 yes;
6136 #endif
6137 EOF
6138 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6139 ac_cv_prog_gcc=yes
6140 else
6141 ac_cv_prog_gcc=no
6142 fi
6143 fi
6144
6145 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6146
6147 if test $ac_cv_prog_gcc = yes; then
6148 GCC=yes
6149 else
6150 GCC=
6151 fi
6152
6153 ac_test_CFLAGS="${CFLAGS+set}"
6154 ac_save_CFLAGS="$CFLAGS"
6155 CFLAGS=
6156 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6157 echo "configure:6158: checking whether ${CC-cc} accepts -g" >&5
6158 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6160 else
6161 echo 'void f(){}' > conftest.c
6162 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6163 ac_cv_prog_cc_g=yes
6164 else
6165 ac_cv_prog_cc_g=no
6166 fi
6167 rm -f conftest*
6168
6169 fi
6170
6171 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6172 if test "$ac_test_CFLAGS" = set; then
6173 CFLAGS="$ac_save_CFLAGS"
6174 elif test $ac_cv_prog_cc_g = yes; then
6175 if test "$GCC" = yes; then
6176 CFLAGS="-g -O2"
6177 else
6178 CFLAGS="-g"
6179 fi
6180 else
6181 if test "$GCC" = yes; then
6182 CFLAGS="-O2"
6183 else
6184 CFLAGS=
6185 fi
6186 fi
6187
6188
6189 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6190
6191 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6192 echo "configure:6193: checking how to run the C preprocessor" >&5
6193 # On Suns, sometimes $CPP names a directory.
6194 if test -n "$CPP" && test -d "$CPP"; then
6195 CPP=
6196 fi
6197 if test -z "$CPP"; then
6198 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6200 else
6201 # This must be in double quotes, not single quotes, because CPP may get
6202 # substituted into the Makefile and "${CC-cc}" will confuse make.
6203 CPP="${CC-cc} -E"
6204 # On the NeXT, cc -E runs the code through the compiler's parser,
6205 # not just through cpp.
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 #include <assert.h>
6210 Syntax Error
6211 EOF
6212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6213 { (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6215 if test -z "$ac_err"; then
6216 :
6217 else
6218 echo "$ac_err" >&5
6219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6221 rm -rf conftest*
6222 CPP="${CC-cc} -E -traditional-cpp"
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 #include <assert.h>
6227 Syntax Error
6228 EOF
6229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6230 { (eval echo configure:6231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6232 if test -z "$ac_err"; then
6233 :
6234 else
6235 echo "$ac_err" >&5
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6238 rm -rf conftest*
6239 CPP="${CC-cc} -nologo -E"
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6242 "configure"
6242 #include "confdefs.h"
6243 #include <assert.h>
6244 Syntax Error
6245 EOF
6246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6247 { (eval echo configure:6248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6249 if test -z "$ac_err"; then
6250 :
6251 else
6252 echo "$ac_err" >&5
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 rm -rf conftest*
6256 CPP=/lib/cpp
6257 fi
6258 rm -f conftest*
6259 fi
6260 rm -f conftest*
6261 fi
6262 rm -f conftest*
6263 ac_cv_prog_CPP="$CPP"
6264 fi
6265 CPP="$ac_cv_prog_CPP"
6266 else
6267 ac_cv_prog_CPP="$CPP"
6268 fi
6269 echo "$ac_t""$CPP" 1>&6
6270
6271
6272 if test $ac_cv_prog_gcc = yes; then
6273 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6274 echo "configure:6275: checking whether ${CC-cc} needs -traditional" >&5
6275 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6276 echo $ac_n "(cached) $ac_c" 1>&6
6277 else
6278 ac_pattern="Autoconf.*'x'"
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 #include <sgtty.h>
6283 Autoconf TIOCGETP
6284 EOF
6285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 egrep "$ac_pattern" >/dev/null 2>&1; then
6287 rm -rf conftest*
6288 ac_cv_prog_gcc_traditional=yes
6289 else
6290 rm -rf conftest*
6291 ac_cv_prog_gcc_traditional=no
6292 fi
6293 rm -f conftest*
6294
6295
6296 if test $ac_cv_prog_gcc_traditional = no; then
6297 cat > conftest.$ac_ext <<EOF
6298 #line 6299 "configure"
6299 #include "confdefs.h"
6300 #include <termio.h>
6301 Autoconf TCGETA
6302 EOF
6303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 egrep "$ac_pattern" >/dev/null 2>&1; then
6305 rm -rf conftest*
6306 ac_cv_prog_gcc_traditional=yes
6307 fi
6308 rm -f conftest*
6309
6310 fi
6311 fi
6312
6313 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6314 if test $ac_cv_prog_gcc_traditional = yes; then
6315 CC="$CC -traditional"
6316 fi
6317 fi
6318
6319
6320
6321 ac_ext=C
6322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6323 ac_cpp='$CXXCPP $CPPFLAGS'
6324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6326 cross_compiling=$ac_cv_prog_cxx_cross
6327
6328
6329 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6330 do
6331 # Extract the first word of "$ac_prog", so it can be a program name with args.
6332 set dummy $ac_prog; ac_word=$2
6333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6334 echo "configure:6335: checking for $ac_word" >&5
6335 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6336 echo $ac_n "(cached) $ac_c" 1>&6
6337 else
6338 if test -n "$CXX"; then
6339 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6340 else
6341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6342 ac_dummy="$PATH"
6343 for ac_dir in $ac_dummy; do
6344 test -z "$ac_dir" && ac_dir=.
6345 if test -f $ac_dir/$ac_word; then
6346 ac_cv_prog_CXX="$ac_prog"
6347 break
6348 fi
6349 done
6350 IFS="$ac_save_ifs"
6351 fi
6352 fi
6353 CXX="$ac_cv_prog_CXX"
6354 if test -n "$CXX"; then
6355 echo "$ac_t""$CXX" 1>&6
6356 else
6357 echo "$ac_t""no" 1>&6
6358 fi
6359
6360 test -n "$CXX" && break
6361 done
6362 test -n "$CXX" || CXX="gcc"
6363
6364
6365 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6366 echo "configure:6367: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6367
6368 ac_ext=C
6369 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6370 ac_cpp='$CXXCPP $CPPFLAGS'
6371 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6372 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6373 cross_compiling=$ac_cv_prog_cxx_cross
6374
6375 cat > conftest.$ac_ext << EOF
6376
6377 #line 6378 "configure"
6378 #include "confdefs.h"
6379
6380 int main(){return(0);}
6381 EOF
6382 if { (eval echo configure:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6383 ac_cv_prog_cxx_works=yes
6384 # If we can't run a trivial program, we are probably using a cross compiler.
6385 if (./conftest; exit) 2>/dev/null; then
6386 ac_cv_prog_cxx_cross=no
6387 else
6388 ac_cv_prog_cxx_cross=yes
6389 fi
6390 else
6391 echo "configure: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6393 ac_cv_prog_cxx_works=no
6394 fi
6395 rm -fr conftest*
6396 ac_ext=C
6397 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6398 ac_cpp='$CXXCPP $CPPFLAGS'
6399 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6400 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6401 cross_compiling=$ac_cv_prog_cxx_cross
6402
6403 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6404 if test $ac_cv_prog_cxx_works = no; then
6405 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6406 fi
6407 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6408 echo "configure:6409: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6409 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6410 cross_compiling=$ac_cv_prog_cxx_cross
6411
6412 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6413 echo "configure:6414: checking whether we are using GNU C++" >&5
6414 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6416 else
6417 cat > conftest.C <<EOF
6418 #ifdef __GNUC__
6419 yes;
6420 #endif
6421 EOF
6422 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6423 ac_cv_prog_gxx=yes
6424 else
6425 ac_cv_prog_gxx=no
6426 fi
6427 fi
6428
6429 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6430
6431 if test $ac_cv_prog_gxx = yes; then
6432 GXX=yes
6433 else
6434 GXX=
6435 fi
6436
6437 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6438 ac_save_CXXFLAGS="$CXXFLAGS"
6439 CXXFLAGS=
6440 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6441 echo "configure:6442: checking whether ${CXX-g++} accepts -g" >&5
6442 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6444 else
6445 echo 'void f(){}' > conftest.cc
6446 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6447 ac_cv_prog_cxx_g=yes
6448 else
6449 ac_cv_prog_cxx_g=no
6450 fi
6451 rm -f conftest*
6452
6453 fi
6454
6455 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6456 if test "$ac_test_CXXFLAGS" = set; then
6457 CXXFLAGS="$ac_save_CXXFLAGS"
6458 elif test $ac_cv_prog_cxx_g = yes; then
6459 if test "$GXX" = yes; then
6460 CXXFLAGS="-g -O2"
6461 else
6462 CXXFLAGS="-g"
6463 fi
6464 else
6465 if test "$GXX" = yes; then
6466 CXXFLAGS="-O2"
6467 else
6468 CXXFLAGS=
6469 fi
6470 fi
6471
6472
6473 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6474 echo "configure:6475: checking how to run the C++ preprocessor" >&5
6475 if test -z "$CXXCPP"; then
6476 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6478 else
6479 ac_ext=C
6480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6481 ac_cpp='$CXXCPP $CPPFLAGS'
6482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6484 cross_compiling=$ac_cv_prog_cxx_cross
6485 CXXCPP="${CXX-g++} -E"
6486 cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6489 #include <stdlib.h>
6490 EOF
6491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6492 { (eval echo configure:6493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6494 if test -z "$ac_err"; then
6495 :
6496 else
6497 echo "$ac_err" >&5
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6500 rm -rf conftest*
6501 CXXCPP=/lib/cpp
6502 fi
6503 rm -f conftest*
6504 ac_cv_prog_CXXCPP="$CXXCPP"
6505 ac_ext=C
6506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6507 ac_cpp='$CXXCPP $CPPFLAGS'
6508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6510 cross_compiling=$ac_cv_prog_cxx_cross
6511 fi
6512 fi
6513 CXXCPP="$ac_cv_prog_CXXCPP"
6514 echo "$ac_t""$CXXCPP" 1>&6
6515
6516
6517 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6518
6519 ac_ext=c
6520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6521 ac_cpp='$CPP $CPPFLAGS'
6522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6524 cross_compiling=$ac_cv_prog_cc_cross
6525
6526
6527 # Extract the first word of "ranlib", so it can be a program name with args.
6528 set dummy ranlib; ac_word=$2
6529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6530 echo "configure:6531: checking for $ac_word" >&5
6531 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6533 else
6534 if test -n "$RANLIB"; then
6535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6536 else
6537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6538 ac_dummy="$PATH"
6539 for ac_dir in $ac_dummy; do
6540 test -z "$ac_dir" && ac_dir=.
6541 if test -f $ac_dir/$ac_word; then
6542 ac_cv_prog_RANLIB="ranlib"
6543 break
6544 fi
6545 done
6546 IFS="$ac_save_ifs"
6547 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6548 fi
6549 fi
6550 RANLIB="$ac_cv_prog_RANLIB"
6551 if test -n "$RANLIB"; then
6552 echo "$ac_t""$RANLIB" 1>&6
6553 else
6554 echo "$ac_t""no" 1>&6
6555 fi
6556
6557
6558 # Extract the first word of "ar", so it can be a program name with args.
6559 set dummy ar; 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_AR'+set}'`\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6564 else
6565 if test -n "$AR"; then
6566 ac_cv_prog_AR="$AR" # 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_AR="ar"
6574 break
6575 fi
6576 done
6577 IFS="$ac_save_ifs"
6578 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6579 fi
6580 fi
6581 AR="$ac_cv_prog_AR"
6582 if test -n "$AR"; then
6583 echo "$ac_t""$AR" 1>&6
6584 else
6585 echo "$ac_t""no" 1>&6
6586 fi
6587
6588
6589 # Find a good install program. We prefer a C program (faster),
6590 # so one script is as good as another. But avoid the broken or
6591 # incompatible versions:
6592 # SysV /etc/install, /usr/sbin/install
6593 # SunOS /usr/etc/install
6594 # IRIX /sbin/install
6595 # AIX /bin/install
6596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6599 # ./install, which can be erroneously created by make from ./install.sh.
6600 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6601 echo "configure:6602: checking for a BSD compatible install" >&5
6602 if test -z "$INSTALL"; then
6603 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6605 else
6606 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6607 for ac_dir in $PATH; do
6608 # Account for people who put trailing slashes in PATH elements.
6609 case "$ac_dir/" in
6610 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6611 *)
6612 # OSF1 and SCO ODT 3.0 have their own names for install.
6613 # Don't use installbsd from OSF since it installs stuff as root
6614 # by default.
6615 for ac_prog in ginstall scoinst install; do
6616 if test -f $ac_dir/$ac_prog; then
6617 if test $ac_prog = install &&
6618 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6619 # AIX install. It has an incompatible calling convention.
6620 :
6621 else
6622 ac_cv_path_install="$ac_dir/$ac_prog -c"
6623 break 2
6624 fi
6625 fi
6626 done
6627 ;;
6628 esac
6629 done
6630 IFS="$ac_save_IFS"
6631
6632 fi
6633 if test "${ac_cv_path_install+set}" = set; then
6634 INSTALL="$ac_cv_path_install"
6635 else
6636 # As a last resort, use the slow shell script. We don't cache a
6637 # path for INSTALL within a source directory, because that will
6638 # break other packages using the cache if that directory is
6639 # removed, or if the path is relative.
6640 INSTALL="$ac_install_sh"
6641 fi
6642 fi
6643 echo "$ac_t""$INSTALL" 1>&6
6644
6645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6646 # It thinks the first close brace ends the variable substitution.
6647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6648
6649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6650
6651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6652
6653
6654 # Extract the first word of "strip", so it can be a program name with args.
6655 set dummy strip; ac_word=$2
6656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6657 echo "configure:6658: checking for $ac_word" >&5
6658 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6660 else
6661 if test -n "$STRIP"; then
6662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6663 else
6664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6665 ac_dummy="$PATH"
6666 for ac_dir in $ac_dummy; do
6667 test -z "$ac_dir" && ac_dir=.
6668 if test -f $ac_dir/$ac_word; then
6669 ac_cv_prog_STRIP="strip"
6670 break
6671 fi
6672 done
6673 IFS="$ac_save_ifs"
6674 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6675 fi
6676 fi
6677 STRIP="$ac_cv_prog_STRIP"
6678 if test -n "$STRIP"; then
6679 echo "$ac_t""$STRIP" 1>&6
6680 else
6681 echo "$ac_t""no" 1>&6
6682 fi
6683
6684
6685 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6686 echo "configure:6687: checking "make for VPATH support"" >&5
6687 cat - << EOF > confMake
6688 check : file
6689 cp \$? \$@
6690 cp \$? final_file
6691 EOF
6692
6693 if test ! -d sub ; then
6694 mkdir sub
6695 fi
6696 echo dummy > sub/file
6697 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6698 RESULT=$?
6699 rm -f sub/file check final_file confMake
6700 rmdir sub
6701 if test "$RESULT" = 0; then
6702 echo "$ac_t""yes" 1>&6
6703 else
6704 echo "$ac_t""no" 1>&6
6705 { echo "configure: error: You need a make-utility that is able to use the variable
6706 VPATH correctly.
6707 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6708 fi
6709
6710 for ac_prog in 'bison -y' byacc
6711 do
6712 # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6715 echo "configure:6716: checking for $ac_word" >&5
6716 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6717 echo $ac_n "(cached) $ac_c" 1>&6
6718 else
6719 if test -n "$YACC"; then
6720 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6721 else
6722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6723 ac_dummy="$PATH"
6724 for ac_dir in $ac_dummy; do
6725 test -z "$ac_dir" && ac_dir=.
6726 if test -f $ac_dir/$ac_word; then
6727 ac_cv_prog_YACC="$ac_prog"
6728 break
6729 fi
6730 done
6731 IFS="$ac_save_ifs"
6732 fi
6733 fi
6734 YACC="$ac_cv_prog_YACC"
6735 if test -n "$YACC"; then
6736 echo "$ac_t""$YACC" 1>&6
6737 else
6738 echo "$ac_t""no" 1>&6
6739 fi
6740
6741 test -n "$YACC" && break
6742 done
6743 test -n "$YACC" || YACC="yacc"
6744
6745
6746 # Extract the first word of "flex", so it can be a program name with args.
6747 set dummy flex; ac_word=$2
6748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6749 echo "configure:6750: checking for $ac_word" >&5
6750 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6
6752 else
6753 if test -n "$LEX"; then
6754 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6755 else
6756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6757 ac_dummy="$PATH"
6758 for ac_dir in $ac_dummy; do
6759 test -z "$ac_dir" && ac_dir=.
6760 if test -f $ac_dir/$ac_word; then
6761 ac_cv_prog_LEX="flex"
6762 break
6763 fi
6764 done
6765 IFS="$ac_save_ifs"
6766 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6767 fi
6768 fi
6769 LEX="$ac_cv_prog_LEX"
6770 if test -n "$LEX"; then
6771 echo "$ac_t""$LEX" 1>&6
6772 else
6773 echo "$ac_t""no" 1>&6
6774 fi
6775
6776 if test -z "$LEXLIB"
6777 then
6778 case "$LEX" in
6779 flex*) ac_lib=fl ;;
6780 *) ac_lib=l ;;
6781 esac
6782 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6783 echo "configure:6784: checking for yywrap in -l$ac_lib" >&5
6784 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6787 else
6788 ac_save_LIBS="$LIBS"
6789 LIBS="-l$ac_lib $LIBS"
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6796 char yywrap();
6797
6798 int main() {
6799 yywrap()
6800 ; return 0; }
6801 EOF
6802 if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6803 rm -rf conftest*
6804 eval "ac_cv_lib_$ac_lib_var=yes"
6805 else
6806 echo "configure: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6808 rm -rf conftest*
6809 eval "ac_cv_lib_$ac_lib_var=no"
6810 fi
6811 rm -f conftest*
6812 LIBS="$ac_save_LIBS"
6813
6814 fi
6815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6816 echo "$ac_t""yes" 1>&6
6817 LEXLIB="-l$ac_lib"
6818 else
6819 echo "$ac_t""no" 1>&6
6820 fi
6821
6822 fi
6823
6824
6825 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6826 echo "configure:6827: checking whether ln -s works" >&5
6827 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6829 else
6830 rm -f conftestdata
6831 if ln -s X conftestdata 2>/dev/null
6832 then
6833 rm -f conftestdata
6834 ac_cv_prog_LN_S="ln -s"
6835 else
6836 ac_cv_prog_LN_S=ln
6837 fi
6838 fi
6839 LN_S="$ac_cv_prog_LN_S"
6840 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6841 echo "$ac_t""yes" 1>&6
6842 else
6843 echo "$ac_t""no" 1>&6
6844 fi
6845
6846
6847
6848 SEARCH_INCLUDE="\
6849 /usr/local/include \
6850 \
6851 /usr/Motif-1.2/include \
6852 /usr/Motif-2.1/include \
6853 \
6854 /usr/include/Motif1.2 \
6855 /opt/xpm/include/X11 \
6856 /opt/GBxpm/include/ \
6857 /opt/GBxpm/X11/include/ \
6858 \
6859 /usr/Motif1.2/include \
6860 /usr/dt/include \
6861 /usr/openwin/include \
6862 \
6863 /usr/include/Xm \
6864 \
6865 /usr/X11R6/include \
6866 /usr/X11R6.4/include \
6867 /usr/X11R5/include \
6868 /usr/X11R4/include \
6869 \
6870 /usr/include/X11R6 \
6871 /usr/include/X11R5 \
6872 /usr/include/X11R4 \
6873 \
6874 /usr/local/X11R6/include \
6875 /usr/local/X11R5/include \
6876 /usr/local/X11R4/include \
6877 \
6878 /usr/local/include/X11R6 \
6879 /usr/local/include/X11R5 \
6880 /usr/local/include/X11R4 \
6881 \
6882 /usr/X11/include \
6883 /usr/include/X11 \
6884 /usr/local/X11/include \
6885 /usr/local/include/X11 \
6886 \
6887 /usr/X386/include \
6888 /usr/x386/include \
6889 /usr/XFree86/include/X11 \
6890 \
6891 X:/XFree86/include \
6892 X:/XFree86/include/X11 \
6893 \
6894 /usr/include/gtk \
6895 /usr/local/include/gtk \
6896 /usr/include/glib \
6897 /usr/local/include/glib \
6898 \
6899 /usr/include/qt \
6900 /usr/local/include/qt \
6901 \
6902 /usr/include/windows \
6903 /usr/include/wine \
6904 /usr/local/include/wine \
6905 \
6906 /usr/unsupported/include \
6907 /usr/athena/include \
6908 /usr/local/x11r5/include \
6909 /usr/lpp/Xamples/include \
6910 \
6911 /usr/openwin/share/include \
6912 \
6913 /usr/include"
6914
6915 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6916
6917
6918 cat > confcache <<\EOF
6919 # This file is a shell script that caches the results of configure
6920 # tests run on this system so they can be shared between configure
6921 # scripts and configure runs. It is not useful on other systems.
6922 # If it contains results you don't want to keep, you may remove or edit it.
6923 #
6924 # By default, configure uses ./config.cache as the cache file,
6925 # creating it if it does not exist already. You can give configure
6926 # the --cache-file=FILE option to use a different cache file; that is
6927 # what configure does when it calls configure scripts in
6928 # subdirectories, so they share the cache.
6929 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6930 # config.status only pays attention to the cache file if you give it the
6931 # --recheck option to rerun configure.
6932 #
6933 EOF
6934 # The following way of writing the cache mishandles newlines in values,
6935 # but we know of no workaround that is simple, portable, and efficient.
6936 # So, don't put newlines in cache variables' values.
6937 # Ultrix sh set writes to stderr and can't be redirected directly,
6938 # and sets the high bit in the cache file unless we assign to the vars.
6939 (set) 2>&1 |
6940 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6941 *ac_space=\ *)
6942 # `set' does not quote correctly, so add quotes (double-quote substitution
6943 # turns \\\\ into \\, and sed turns \\ into \).
6944 sed -n \
6945 -e "s/'/'\\\\''/g" \
6946 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6947 ;;
6948 *)
6949 # `set' quotes correctly as required by POSIX, so do not add quotes.
6950 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6951 ;;
6952 esac >> confcache
6953 if cmp -s $cache_file confcache; then
6954 :
6955 else
6956 if test -w $cache_file; then
6957 echo "updating cache $cache_file"
6958 cat confcache > $cache_file
6959 else
6960 echo "not updating unwritable cache $cache_file"
6961 fi
6962 fi
6963 rm -f confcache
6964
6965
6966
6967 AFMINSTALL=
6968
6969 if test "$wxUSE_GUI" = "yes"; then
6970
6971 USE_GUI=1
6972
6973 TOOLKIT=
6974 TOOLKIT_INCLUDE=
6975
6976 GUIOBJS=
6977 COMMONOBJS=
6978 GENERICOBJS=
6979
6980 GUI_TK_LIBRARY=
6981 GUI_TK_LINK=
6982
6983 WXGTK12=
6984 WXGTK13=
6985
6986 WXWINE=
6987
6988 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6989 if test "$cross_compiling" = "yes" ; then
6990 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6991 else
6992 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6993 echo "configure:6994: checking for Windows headers" >&5
6994
6995 ac_find_includes=
6996 for ac_dir in $SEARCH_INCLUDE;
6997 do
6998 if test -f "$ac_dir/windows.h"; then
6999 ac_find_includes=$ac_dir
7000 break
7001 fi
7002 done
7003
7004 if test "$ac_find_includes" != "" ; then
7005 echo "$ac_t""found $ac_find_includes" 1>&6
7006 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7007 else
7008 echo "$ac_t""no" 1>&6
7009 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7010 fi
7011 fi
7012
7013 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7014 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7015
7016 if test "$wxUSE_MINGW" = 1; then
7017 LDFLAGS="$LDFLAGS -mwindows"
7018 fi
7019
7020 TOOLKIT=MSW
7021
7022 GUIOBJS="\$(MSW_GUIOBJS)"
7023 GUIHEADERS="\$(MSW_HEADERS)"
7024 COMMONOBJS="\$(MSW_COMMONOBJS)"
7025 GENERICOBJS="\$(MSW_GENERICOBJS)"
7026 UNIXOBJS=
7027 GUIDIST=MSW_DIST
7028 fi
7029
7030 if test "$wxUSE_GTK" = 1; then
7031
7032 if test x$gtk_config_exec_prefix != x ; then
7033 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7034 if test x${GTK_CONFIG+set} != xset ; then
7035 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7036 fi
7037 fi
7038 if test x$gtk_config_prefix != x ; then
7039 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7040 if test x${GTK_CONFIG+set} != xset ; then
7041 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7042 fi
7043 fi
7044
7045 # Extract the first word of "gtk-config", so it can be a program name with args.
7046 set dummy gtk-config; ac_word=$2
7047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7048 echo "configure:7049: checking for $ac_word" >&5
7049 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7051 else
7052 case "$GTK_CONFIG" in
7053 /*)
7054 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7055 ;;
7056 ?:/*)
7057 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7058 ;;
7059 *)
7060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7061 ac_dummy="$PATH"
7062 for ac_dir in $ac_dummy; do
7063 test -z "$ac_dir" && ac_dir=.
7064 if test -f $ac_dir/$ac_word; then
7065 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7066 break
7067 fi
7068 done
7069 IFS="$ac_save_ifs"
7070 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7071 ;;
7072 esac
7073 fi
7074 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7075 if test -n "$GTK_CONFIG"; then
7076 echo "$ac_t""$GTK_CONFIG" 1>&6
7077 else
7078 echo "$ac_t""no" 1>&6
7079 fi
7080
7081 min_gtk_version=1.2.3
7082 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7083 echo "configure:7084: checking for GTK - version >= $min_gtk_version" >&5
7084 no_gtk=""
7085 if test "$GTK_CONFIG" != "no" ; then
7086 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7087 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7088 ac_save_CFLAGS="$CFLAGS"
7089 ac_save_LIBS="$LIBS"
7090 CFLAGS="$CFLAGS $GTK_CFLAGS"
7091 LIBS="$LIBS $GTK_LIBS"
7092 if test "$cross_compiling" = yes; then
7093 echo $ac_n "cross compiling; assumed OK... $ac_c"
7094 else
7095 cat > conftest.$ac_ext <<EOF
7096 #line 7097 "configure"
7097 #include "confdefs.h"
7098
7099 #include <gtk/gtk.h>
7100 #include <gtk/gtkfeatures.h>
7101 #include <stdio.h>
7102
7103 int
7104 main ()
7105 {
7106 int major, minor, micro;
7107
7108 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7109 printf("%s, bad version string\n", "$min_gtk_version");
7110 exit(1);
7111 }
7112
7113 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7114 (GTK_MINOR_VERSION != gtk_minor_version) ||
7115 (GTK_MICRO_VERSION != gtk_micro_version)) {
7116 printf("Headers vs. library version mismatch!\n");
7117 exit(1);
7118 }
7119
7120 if (gtk_minor_version == 1) return FALSE;
7121
7122 return !((gtk_major_version > major) ||
7123 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7124 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7125 }
7126
7127 EOF
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7129 then
7130 :
7131 else
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 rm -fr conftest*
7135 no_gtk=yes
7136 fi
7137 rm -fr conftest*
7138 fi
7139
7140 CFLAGS="$ac_save_CFLAGS"
7141 LIBS="$ac_save_LIBS"
7142 else
7143 no_gtk=yes
7144 fi
7145 if test "x$no_gtk" = x ; then
7146 echo "$ac_t""yes" 1>&6
7147 WXGTK12=1
7148 else
7149 echo "$ac_t""no" 1>&6
7150 GTK_CFLAGS=""
7151 GTK_LIBS=""
7152 :
7153 fi
7154
7155
7156
7157
7158 if test "$WXGTK12" != 1; then
7159 { echo "configure: error:
7160 Please check that gtk-config is in path, the directory
7161 where GTK+ libraries are installed (returned by
7162 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7163 equivalent variable and GTK+ is version 1.2.3 or above.
7164 " 1>&2; exit 1; }
7165 fi
7166
7167
7168 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7169
7170
7171 GUI_TK_LIBRARY="$GTK_LIBS"
7172
7173 TOOLKIT=GTK
7174
7175 AFMINSTALL=afminstall
7176
7177 GUIOBJS="\$(GTK_GUIOBJS)"
7178 GUIHEADERS="\$(GTK_HEADERS)"
7179 COMMONOBJS="\$(GTK_COMMONOBJS)"
7180 GENERICOBJS="\$(GTK_GENERICOBJS)"
7181 GUIDEPS="\$(GTK_GUIDEPS)"
7182 COMMONDEPS="\$(GTK_COMMONDEPS)"
7183 GENERICDEPS="\$(GTK_GENERICDEPS)"
7184 UNIXOBJS="\$(UNIX_OBJS)"
7185 UNIXDEPS="\$(UNIX_DEPS)"
7186 GUIDIST=GTK_DIST
7187
7188 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7189 echo "configure:7190: checking for gdk_im_open in -lgdk" >&5
7190 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7193 else
7194 ac_save_LIBS="$LIBS"
7195 LIBS="-lgdk $LIBS"
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 /* Override any gcc2 internal prototype to avoid an error. */
7200 /* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */
7202 char gdk_im_open();
7203
7204 int main() {
7205 gdk_im_open()
7206 ; return 0; }
7207 EOF
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7209 rm -rf conftest*
7210 eval "ac_cv_lib_$ac_lib_var=yes"
7211 else
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7214 rm -rf conftest*
7215 eval "ac_cv_lib_$ac_lib_var=no"
7216 fi
7217 rm -f conftest*
7218 LIBS="$ac_save_LIBS"
7219
7220 fi
7221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7222 echo "$ac_t""yes" 1>&6
7223 cat >> confdefs.h <<\EOF
7224 #define HAVE_XIM 1
7225 EOF
7226
7227 else
7228 echo "$ac_t""no" 1>&6
7229 fi
7230
7231 fi
7232
7233 if test "$wxUSE_WINE" = 1; then
7234 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7235 echo "configure:7236: checking for WINE includes" >&5
7236
7237 ac_find_includes=
7238 for ac_dir in $SEARCH_INCLUDE;
7239 do
7240 if test -f "$ac_dir/windows.h"; then
7241 ac_find_includes=$ac_dir
7242 break
7243 fi
7244 done
7245
7246 if test "$ac_find_includes" != "" ; then
7247 echo "$ac_t""found $ac_find_includes" 1>&6
7248 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7249 else
7250 echo "$ac_t""no" 1>&6
7251 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7252 fi
7253
7254 XPM_LINK=""
7255 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7256 echo "configure:7257: checking for Xpm library" >&5
7257
7258 ac_find_libraries=
7259 for ac_dir in $SEARCH_LIB;
7260 do
7261 for ac_extension in a so sl; do
7262 if test -f "$ac_dir/libXpm.$ac_extension"; then
7263 ac_find_libraries=$ac_dir
7264 break 2
7265 fi
7266 done
7267 done
7268
7269 if test "$ac_find_libraries" != "" ; then
7270 GUI_TK_LIBRARY="-L$ac_find_libraries"
7271 XPM_LINK="-lXpm"
7272 cat >> confdefs.h <<\EOF
7273 #define wxHAVE_LIB_XPM 1
7274 EOF
7275
7276 echo "$ac_t""found at $ac_find_libraries" 1>&6
7277 else
7278 echo "$ac_t""no" 1>&6
7279 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7280 fi
7281
7282 MESA_LINK=""
7283 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7284 echo "configure:7285: checking for Mesa library" >&5
7285
7286 ac_find_libraries=
7287 for ac_dir in $SEARCH_LIB;
7288 do
7289 for ac_extension in a so sl; do
7290 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7291 ac_find_libraries=$ac_dir
7292 break 2
7293 fi
7294 done
7295 done
7296
7297 if test "$ac_find_libraries" != "" ; then
7298 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7299 MESA_LINK="-lMesaGL"
7300 echo "$ac_t""found at $ac_find_libraries" 1>&6
7301 else
7302 { echo "configure: error: no" 1>&2; exit 1; }
7303 fi
7304
7305 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7306 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7307 WXWINE=1
7308 TOOLKIT=MSW
7309
7310 GUIHEADERS="\$(MSW_HEADERS)"
7311 GUIOBJS="\$(MSW_GUIOBJS)"
7312 COMMONOBJS="\$(MSW_COMMONOBJS)"
7313 GENERICOBJS="\$(MSW_GENERICOBJS)"
7314 GUIDEPS="\$(MSW_GUIDEPS)"
7315 COMMONDEPS="\$(MSW_COMMONDEPS)"
7316 GENERICDEPS="\$(MSW_GENERICDEPS)"
7317 UNIXOBJS="\$(UNIX_OBJS)"
7318 UNIXDEPS="\$(UNIX_DEPS)"
7319 GUIDIST=MSW_DIST
7320 fi
7321
7322 if test "$wxUSE_MOTIF" = 1; then
7323 # If we find X, set shell vars x_includes and x_libraries to the
7324 # paths, otherwise set no_x=yes.
7325 # Uses ac_ vars as temps to allow command line to override cache and checks.
7326 # --without-x overrides everything else, but does not touch the cache.
7327 echo $ac_n "checking for X""... $ac_c" 1>&6
7328 echo "configure:7329: checking for X" >&5
7329
7330 # Check whether --with-x or --without-x was given.
7331 if test "${with_x+set}" = set; then
7332 withval="$with_x"
7333 :
7334 fi
7335
7336 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7337 if test "x$with_x" = xno; then
7338 # The user explicitly disabled X.
7339 have_x=disabled
7340 else
7341 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7342 # Both variables are already set.
7343 have_x=yes
7344 else
7345 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7347 else
7348 # One or both of the vars are not set, and there is no cached value.
7349 ac_x_includes=NO ac_x_libraries=NO
7350 rm -fr conftestdir
7351 if mkdir conftestdir; then
7352 cd conftestdir
7353 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7354 cat > Imakefile <<'EOF'
7355 acfindx:
7356 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7357 EOF
7358 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7359 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7360 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7361 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7362 for ac_extension in a so sl; do
7363 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7364 test -f $ac_im_libdir/libX11.$ac_extension; then
7365 ac_im_usrlibdir=$ac_im_libdir; break
7366 fi
7367 done
7368 # Screen out bogus values from the imake configuration. They are
7369 # bogus both because they are the default anyway, and because
7370 # using them would break gcc on systems where it needs fixed includes.
7371 case "$ac_im_incroot" in
7372 /usr/include) ;;
7373 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7374 esac
7375 case "$ac_im_usrlibdir" in
7376 /usr/lib | /lib) ;;
7377 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7378 esac
7379 fi
7380 cd ..
7381 rm -fr conftestdir
7382 fi
7383
7384 if test "$ac_x_includes" = NO; then
7385 # Guess where to find include files, by looking for this one X11 .h file.
7386 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7387
7388 # First, try using that file with no special directory specified.
7389 cat > conftest.$ac_ext <<EOF
7390 #line 7391 "configure"
7391 #include "confdefs.h"
7392 #include <$x_direct_test_include>
7393 EOF
7394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7395 { (eval echo configure:7396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7397 if test -z "$ac_err"; then
7398 rm -rf conftest*
7399 # We can compile using X headers with no special include directory.
7400 ac_x_includes=
7401 else
7402 echo "$ac_err" >&5
7403 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7405 rm -rf conftest*
7406 # Look for the header file in a standard set of common directories.
7407 # Check X11 before X11Rn because it is often a symlink to the current release.
7408 for ac_dir in \
7409 /usr/X11/include \
7410 /usr/X11R6/include \
7411 /usr/X11R5/include \
7412 /usr/X11R4/include \
7413 \
7414 /usr/include/X11 \
7415 /usr/include/X11R6 \
7416 /usr/include/X11R5 \
7417 /usr/include/X11R4 \
7418 \
7419 /usr/local/X11/include \
7420 /usr/local/X11R6/include \
7421 /usr/local/X11R5/include \
7422 /usr/local/X11R4/include \
7423 \
7424 /usr/local/include/X11 \
7425 /usr/local/include/X11R6 \
7426 /usr/local/include/X11R5 \
7427 /usr/local/include/X11R4 \
7428 \
7429 /usr/X386/include \
7430 /usr/x386/include \
7431 /usr/XFree86/include/X11 \
7432 \
7433 /usr/include \
7434 /usr/local/include \
7435 /usr/unsupported/include \
7436 /usr/athena/include \
7437 /usr/local/x11r5/include \
7438 /usr/lpp/Xamples/include \
7439 \
7440 /usr/openwin/include \
7441 /usr/openwin/share/include \
7442 ; \
7443 do
7444 if test -r "$ac_dir/$x_direct_test_include"; then
7445 ac_x_includes=$ac_dir
7446 break
7447 fi
7448 done
7449 fi
7450 rm -f conftest*
7451 fi # $ac_x_includes = NO
7452
7453 if test "$ac_x_libraries" = NO; then
7454 # Check for the libraries.
7455
7456 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7457 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7458
7459 # See if we find them without any special options.
7460 # Don't add to $LIBS permanently.
7461 ac_save_LIBS="$LIBS"
7462 LIBS="-l$x_direct_test_library $LIBS"
7463 cat > conftest.$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7466
7467 int main() {
7468 ${x_direct_test_function}()
7469 ; return 0; }
7470 EOF
7471 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7472 rm -rf conftest*
7473 LIBS="$ac_save_LIBS"
7474 # We can link X programs with no special library path.
7475 ac_x_libraries=
7476 else
7477 echo "configure: failed program was:" >&5
7478 cat conftest.$ac_ext >&5
7479 rm -rf conftest*
7480 LIBS="$ac_save_LIBS"
7481 # First see if replacing the include by lib works.
7482 # Check X11 before X11Rn because it is often a symlink to the current release.
7483 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7484 /usr/X11/lib \
7485 /usr/X11R6/lib \
7486 /usr/X11R5/lib \
7487 /usr/X11R4/lib \
7488 \
7489 /usr/lib/X11 \
7490 /usr/lib/X11R6 \
7491 /usr/lib/X11R5 \
7492 /usr/lib/X11R4 \
7493 \
7494 /usr/local/X11/lib \
7495 /usr/local/X11R6/lib \
7496 /usr/local/X11R5/lib \
7497 /usr/local/X11R4/lib \
7498 \
7499 /usr/local/lib/X11 \
7500 /usr/local/lib/X11R6 \
7501 /usr/local/lib/X11R5 \
7502 /usr/local/lib/X11R4 \
7503 \
7504 /usr/X386/lib \
7505 /usr/x386/lib \
7506 /usr/XFree86/lib/X11 \
7507 \
7508 /usr/lib \
7509 /usr/local/lib \
7510 /usr/unsupported/lib \
7511 /usr/athena/lib \
7512 /usr/local/x11r5/lib \
7513 /usr/lpp/Xamples/lib \
7514 /lib/usr/lib/X11 \
7515 \
7516 /usr/openwin/lib \
7517 /usr/openwin/share/lib \
7518 ; \
7519 do
7520 for ac_extension in a so sl; do
7521 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7522 ac_x_libraries=$ac_dir
7523 break 2
7524 fi
7525 done
7526 done
7527 fi
7528 rm -f conftest*
7529 fi # $ac_x_libraries = NO
7530
7531 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7532 # Didn't find X anywhere. Cache the known absence of X.
7533 ac_cv_have_x="have_x=no"
7534 else
7535 # Record where we found X for the cache.
7536 ac_cv_have_x="have_x=yes \
7537 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7538 fi
7539 fi
7540 fi
7541 eval "$ac_cv_have_x"
7542 fi # $with_x != no
7543
7544 if test "$have_x" != yes; then
7545 echo "$ac_t""$have_x" 1>&6
7546 no_x=yes
7547 else
7548 # If each of the values was on the command line, it overrides each guess.
7549 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7550 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7551 # Update the cache value to reflect the command line values.
7552 ac_cv_have_x="have_x=yes \
7553 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7554 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7555 fi
7556
7557 if test "$no_x" = yes; then
7558 # Not all programs may use this symbol, but it does not hurt to define it.
7559 cat >> confdefs.h <<\EOF
7560 #define X_DISPLAY_MISSING 1
7561 EOF
7562
7563 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7564 else
7565 if test -n "$x_includes"; then
7566 X_CFLAGS="$X_CFLAGS -I$x_includes"
7567 fi
7568
7569 # It would also be nice to do this for all -L options, not just this one.
7570 if test -n "$x_libraries"; then
7571 X_LIBS="$X_LIBS -L$x_libraries"
7572 # For Solaris; some versions of Sun CC require a space after -R and
7573 # others require no space. Words are not sufficient . . . .
7574 case "`(uname -sr) 2>/dev/null`" in
7575 "SunOS 5"*)
7576 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7577 echo "configure:7578: checking whether -R must be followed by a space" >&5
7578 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7582
7583 int main() {
7584
7585 ; return 0; }
7586 EOF
7587 if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7588 rm -rf conftest*
7589 ac_R_nospace=yes
7590 else
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 rm -rf conftest*
7594 ac_R_nospace=no
7595 fi
7596 rm -f conftest*
7597 if test $ac_R_nospace = yes; then
7598 echo "$ac_t""no" 1>&6
7599 X_LIBS="$X_LIBS -R$x_libraries"
7600 else
7601 LIBS="$ac_xsave_LIBS -R $x_libraries"
7602 cat > conftest.$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7605
7606 int main() {
7607
7608 ; return 0; }
7609 EOF
7610 if { (eval echo configure:7611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7611 rm -rf conftest*
7612 ac_R_space=yes
7613 else
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 ac_R_space=no
7618 fi
7619 rm -f conftest*
7620 if test $ac_R_space = yes; then
7621 echo "$ac_t""yes" 1>&6
7622 X_LIBS="$X_LIBS -R $x_libraries"
7623 else
7624 echo "$ac_t""neither works" 1>&6
7625 fi
7626 fi
7627 LIBS="$ac_xsave_LIBS"
7628 esac
7629 fi
7630
7631 # Check for system-dependent libraries X programs must link with.
7632 # Do this before checking for the system-independent R6 libraries
7633 # (-lICE), since we may need -lsocket or whatever for X linking.
7634
7635 if test "$ISC" = yes; then
7636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7637 else
7638 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7639 # libraries were built with DECnet support. And karl@cs.umb.edu says
7640 # the Alpha needs dnet_stub (dnet does not exist).
7641 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7642 echo "configure:7643: checking for dnet_ntoa in -ldnet" >&5
7643 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7646 else
7647 ac_save_LIBS="$LIBS"
7648 LIBS="-ldnet $LIBS"
7649 cat > conftest.$ac_ext <<EOF
7650 #line 7651 "configure"
7651 #include "confdefs.h"
7652 /* Override any gcc2 internal prototype to avoid an error. */
7653 /* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7655 char dnet_ntoa();
7656
7657 int main() {
7658 dnet_ntoa()
7659 ; return 0; }
7660 EOF
7661 if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7662 rm -rf conftest*
7663 eval "ac_cv_lib_$ac_lib_var=yes"
7664 else
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 rm -rf conftest*
7668 eval "ac_cv_lib_$ac_lib_var=no"
7669 fi
7670 rm -f conftest*
7671 LIBS="$ac_save_LIBS"
7672
7673 fi
7674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7675 echo "$ac_t""yes" 1>&6
7676 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7677 else
7678 echo "$ac_t""no" 1>&6
7679 fi
7680
7681 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7682 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7683 echo "configure:7684: checking for dnet_ntoa in -ldnet_stub" >&5
7684 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7687 else
7688 ac_save_LIBS="$LIBS"
7689 LIBS="-ldnet_stub $LIBS"
7690 cat > conftest.$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7693 /* Override any gcc2 internal prototype to avoid an error. */
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7696 char dnet_ntoa();
7697
7698 int main() {
7699 dnet_ntoa()
7700 ; return 0; }
7701 EOF
7702 if { (eval echo configure:7703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7703 rm -rf conftest*
7704 eval "ac_cv_lib_$ac_lib_var=yes"
7705 else
7706 echo "configure: failed program was:" >&5
7707 cat conftest.$ac_ext >&5
7708 rm -rf conftest*
7709 eval "ac_cv_lib_$ac_lib_var=no"
7710 fi
7711 rm -f conftest*
7712 LIBS="$ac_save_LIBS"
7713
7714 fi
7715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7716 echo "$ac_t""yes" 1>&6
7717 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7718 else
7719 echo "$ac_t""no" 1>&6
7720 fi
7721
7722 fi
7723
7724 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7725 # to get the SysV transport functions.
7726 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7727 # needs -lnsl.
7728 # The nsl library prevents programs from opening the X display
7729 # on Irix 5.2, according to dickey@clark.net.
7730 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7731 echo "configure:7732: checking for gethostbyname" >&5
7732 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7734 else
7735 cat > conftest.$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7738 /* System header to define __stub macros and hopefully few prototypes,
7739 which can conflict with char gethostbyname(); below. */
7740 #include <assert.h>
7741 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7744 char gethostbyname();
7745
7746 int main() {
7747
7748 /* The GNU C library defines this for functions which it implements
7749 to always fail with ENOSYS. Some functions are actually named
7750 something starting with __ and the normal name is an alias. */
7751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7752 choke me
7753 #else
7754 gethostbyname();
7755 #endif
7756
7757 ; return 0; }
7758 EOF
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7760 rm -rf conftest*
7761 eval "ac_cv_func_gethostbyname=yes"
7762 else
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 rm -rf conftest*
7766 eval "ac_cv_func_gethostbyname=no"
7767 fi
7768 rm -f conftest*
7769 fi
7770
7771 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 :
7774 else
7775 echo "$ac_t""no" 1>&6
7776 fi
7777
7778 if test $ac_cv_func_gethostbyname = no; then
7779 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7780 echo "configure:7781: checking for gethostbyname in -lnsl" >&5
7781 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7784 else
7785 ac_save_LIBS="$LIBS"
7786 LIBS="-lnsl $LIBS"
7787 cat > conftest.$ac_ext <<EOF
7788 #line 7789 "configure"
7789 #include "confdefs.h"
7790 /* Override any gcc2 internal prototype to avoid an error. */
7791 /* We use char because int might match the return type of a gcc2
7792 builtin and then its argument prototype would still apply. */
7793 char gethostbyname();
7794
7795 int main() {
7796 gethostbyname()
7797 ; return 0; }
7798 EOF
7799 if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7800 rm -rf conftest*
7801 eval "ac_cv_lib_$ac_lib_var=yes"
7802 else
7803 echo "configure: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7805 rm -rf conftest*
7806 eval "ac_cv_lib_$ac_lib_var=no"
7807 fi
7808 rm -f conftest*
7809 LIBS="$ac_save_LIBS"
7810
7811 fi
7812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7813 echo "$ac_t""yes" 1>&6
7814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7815 else
7816 echo "$ac_t""no" 1>&6
7817 fi
7818
7819 fi
7820
7821 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7822 # socket/setsockopt and other routines are undefined under SCO ODT
7823 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7824 # on later versions), says simon@lia.di.epfl.ch: it contains
7825 # gethostby* variants that don't use the nameserver (or something).
7826 # -lsocket must be given before -lnsl if both are needed.
7827 # We assume that if connect needs -lnsl, so does gethostbyname.
7828 echo $ac_n "checking for connect""... $ac_c" 1>&6
7829 echo "configure:7830: checking for connect" >&5
7830 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7832 else
7833 cat > conftest.$ac_ext <<EOF
7834 #line 7835 "configure"
7835 #include "confdefs.h"
7836 /* System header to define __stub macros and hopefully few prototypes,
7837 which can conflict with char connect(); below. */
7838 #include <assert.h>
7839 /* Override any gcc2 internal prototype to avoid an error. */
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7842 char connect();
7843
7844 int main() {
7845
7846 /* The GNU C library defines this for functions which it implements
7847 to always fail with ENOSYS. Some functions are actually named
7848 something starting with __ and the normal name is an alias. */
7849 #if defined (__stub_connect) || defined (__stub___connect)
7850 choke me
7851 #else
7852 connect();
7853 #endif
7854
7855 ; return 0; }
7856 EOF
7857 if { (eval echo configure:7858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7858 rm -rf conftest*
7859 eval "ac_cv_func_connect=yes"
7860 else
7861 echo "configure: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7863 rm -rf conftest*
7864 eval "ac_cv_func_connect=no"
7865 fi
7866 rm -f conftest*
7867 fi
7868
7869 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7870 echo "$ac_t""yes" 1>&6
7871 :
7872 else
7873 echo "$ac_t""no" 1>&6
7874 fi
7875
7876 if test $ac_cv_func_connect = no; then
7877 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7878 echo "configure:7879: checking for connect in -lsocket" >&5
7879 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7882 else
7883 ac_save_LIBS="$LIBS"
7884 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7885 cat > conftest.$ac_ext <<EOF
7886 #line 7887 "configure"
7887 #include "confdefs.h"
7888 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891 char connect();
7892
7893 int main() {
7894 connect()
7895 ; return 0; }
7896 EOF
7897 if { (eval echo configure:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7898 rm -rf conftest*
7899 eval "ac_cv_lib_$ac_lib_var=yes"
7900 else
7901 echo "configure: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7903 rm -rf conftest*
7904 eval "ac_cv_lib_$ac_lib_var=no"
7905 fi
7906 rm -f conftest*
7907 LIBS="$ac_save_LIBS"
7908
7909 fi
7910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7913 else
7914 echo "$ac_t""no" 1>&6
7915 fi
7916
7917 fi
7918
7919 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7920 echo $ac_n "checking for remove""... $ac_c" 1>&6
7921 echo "configure:7922: checking for remove" >&5
7922 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7924 else
7925 cat > conftest.$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7928 /* System header to define __stub macros and hopefully few prototypes,
7929 which can conflict with char remove(); below. */
7930 #include <assert.h>
7931 /* Override any gcc2 internal prototype to avoid an error. */
7932 /* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */
7934 char remove();
7935
7936 int main() {
7937
7938 /* The GNU C library defines this for functions which it implements
7939 to always fail with ENOSYS. Some functions are actually named
7940 something starting with __ and the normal name is an alias. */
7941 #if defined (__stub_remove) || defined (__stub___remove)
7942 choke me
7943 #else
7944 remove();
7945 #endif
7946
7947 ; return 0; }
7948 EOF
7949 if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7950 rm -rf conftest*
7951 eval "ac_cv_func_remove=yes"
7952 else
7953 echo "configure: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 rm -rf conftest*
7956 eval "ac_cv_func_remove=no"
7957 fi
7958 rm -f conftest*
7959 fi
7960
7961 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7962 echo "$ac_t""yes" 1>&6
7963 :
7964 else
7965 echo "$ac_t""no" 1>&6
7966 fi
7967
7968 if test $ac_cv_func_remove = no; then
7969 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7970 echo "configure:7971: checking for remove in -lposix" >&5
7971 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7974 else
7975 ac_save_LIBS="$LIBS"
7976 LIBS="-lposix $LIBS"
7977 cat > conftest.$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7980 /* Override any gcc2 internal prototype to avoid an error. */
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char remove();
7984
7985 int main() {
7986 remove()
7987 ; return 0; }
7988 EOF
7989 if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7990 rm -rf conftest*
7991 eval "ac_cv_lib_$ac_lib_var=yes"
7992 else
7993 echo "configure: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 rm -rf conftest*
7996 eval "ac_cv_lib_$ac_lib_var=no"
7997 fi
7998 rm -f conftest*
7999 LIBS="$ac_save_LIBS"
8000
8001 fi
8002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8003 echo "$ac_t""yes" 1>&6
8004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8005 else
8006 echo "$ac_t""no" 1>&6
8007 fi
8008
8009 fi
8010
8011 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8012 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8013 echo "configure:8014: checking for shmat" >&5
8014 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8016 else
8017 cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8020 /* System header to define __stub macros and hopefully few prototypes,
8021 which can conflict with char shmat(); below. */
8022 #include <assert.h>
8023 /* Override any gcc2 internal prototype to avoid an error. */
8024 /* We use char because int might match the return type of a gcc2
8025 builtin and then its argument prototype would still apply. */
8026 char shmat();
8027
8028 int main() {
8029
8030 /* The GNU C library defines this for functions which it implements
8031 to always fail with ENOSYS. Some functions are actually named
8032 something starting with __ and the normal name is an alias. */
8033 #if defined (__stub_shmat) || defined (__stub___shmat)
8034 choke me
8035 #else
8036 shmat();
8037 #endif
8038
8039 ; return 0; }
8040 EOF
8041 if { (eval echo configure:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8042 rm -rf conftest*
8043 eval "ac_cv_func_shmat=yes"
8044 else
8045 echo "configure: failed program was:" >&5
8046 cat conftest.$ac_ext >&5
8047 rm -rf conftest*
8048 eval "ac_cv_func_shmat=no"
8049 fi
8050 rm -f conftest*
8051 fi
8052
8053 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8054 echo "$ac_t""yes" 1>&6
8055 :
8056 else
8057 echo "$ac_t""no" 1>&6
8058 fi
8059
8060 if test $ac_cv_func_shmat = no; then
8061 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8062 echo "configure:8063: checking for shmat in -lipc" >&5
8063 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8066 else
8067 ac_save_LIBS="$LIBS"
8068 LIBS="-lipc $LIBS"
8069 cat > conftest.$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8072 /* Override any gcc2 internal prototype to avoid an error. */
8073 /* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8075 char shmat();
8076
8077 int main() {
8078 shmat()
8079 ; return 0; }
8080 EOF
8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8082 rm -rf conftest*
8083 eval "ac_cv_lib_$ac_lib_var=yes"
8084 else
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8087 rm -rf conftest*
8088 eval "ac_cv_lib_$ac_lib_var=no"
8089 fi
8090 rm -f conftest*
8091 LIBS="$ac_save_LIBS"
8092
8093 fi
8094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8097 else
8098 echo "$ac_t""no" 1>&6
8099 fi
8100
8101 fi
8102 fi
8103
8104 # Check for libraries that X11R6 Xt/Xaw programs need.
8105 ac_save_LDFLAGS="$LDFLAGS"
8106 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8107 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8108 # check for ICE first), but we must link in the order -lSM -lICE or
8109 # we get undefined symbols. So assume we have SM if we have ICE.
8110 # These have to be linked with before -lX11, unlike the other
8111 # libraries we check for below, so use a different variable.
8112 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8113 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8114 echo "configure:8115: checking for IceConnectionNumber in -lICE" >&5
8115 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8117 echo $ac_n "(cached) $ac_c" 1>&6
8118 else
8119 ac_save_LIBS="$LIBS"
8120 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8121 cat > conftest.$ac_ext <<EOF
8122 #line 8123 "configure"
8123 #include "confdefs.h"
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8127 char IceConnectionNumber();
8128
8129 int main() {
8130 IceConnectionNumber()
8131 ; return 0; }
8132 EOF
8133 if { (eval echo configure:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8134 rm -rf conftest*
8135 eval "ac_cv_lib_$ac_lib_var=yes"
8136 else
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8139 rm -rf conftest*
8140 eval "ac_cv_lib_$ac_lib_var=no"
8141 fi
8142 rm -f conftest*
8143 LIBS="$ac_save_LIBS"
8144
8145 fi
8146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8147 echo "$ac_t""yes" 1>&6
8148 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8149 else
8150 echo "$ac_t""no" 1>&6
8151 fi
8152
8153 LDFLAGS="$ac_save_LDFLAGS"
8154
8155 fi
8156
8157
8158 if test "$no_x" = "yes"; then
8159 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8160 fi
8161
8162 GUI_TK_LIBRARY="$X_LIBS"
8163 TOOLKIT_INCLUDE="$X_CFLAGS"
8164
8165 AFMINSTALL=afminstall
8166
8167
8168 COMPILED_X_PROGRAM=0
8169
8170 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8171 echo "configure:8172: checking for Motif/Lesstif headers" >&5
8172
8173 ac_find_includes=
8174 for ac_dir in $SEARCH_INCLUDE;
8175 do
8176 if test -f "$ac_dir/Xm/Xm.h"; then
8177 ac_find_includes=$ac_dir
8178 break
8179 fi
8180 done
8181
8182 if test "$ac_find_includes" != "" ; then
8183 echo "$ac_t""found $ac_find_includes" 1>&6
8184 else
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188
8189 #include <Xm/Xm.h>
8190
8191 int main() {
8192
8193 int version;
8194
8195 version = xmUseVersion;
8196
8197 ; return 0; }
8198 EOF
8199 if { (eval echo configure:8200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8200 rm -rf conftest*
8201
8202 echo "$ac_t""found in default search path" 1>&6
8203 COMPILED_X_PROGRAM=1
8204
8205 else
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8208 rm -rf conftest*
8209
8210 echo "$ac_t""no" 1>&6
8211 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8212
8213
8214 fi
8215 rm -f conftest*
8216 fi
8217
8218 if test "$COMPILED_X_PROGRAM" = 0; then
8219 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8220 echo "configure:8221: checking for Motif/Lesstif library" >&5
8221
8222 ac_find_libraries=
8223 for ac_dir in $SEARCH_LIB;
8224 do
8225 for ac_extension in a so sl; do
8226 if test -f "$ac_dir/libXm.$ac_extension"; then
8227 ac_find_libraries=$ac_dir
8228 break 2
8229 fi
8230 done
8231 done
8232
8233 if test "$ac_find_libraries" != "" ; then
8234
8235 ac_path_to_include=$ac_find_includes
8236 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8237 result=$?
8238 if test $result = 0; then
8239 ac_path_to_include=""
8240 else
8241 ac_path_to_include="-I$ac_find_includes"
8242 fi
8243
8244
8245 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8246 result=$?
8247 if test $result = 0; then
8248 ac_path_to_link=""
8249 else
8250 ac_path_to_link="-L$ac_find_libraries"
8251 fi
8252
8253
8254 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8255 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8256 echo "$ac_t""found at $ac_find_libraries" 1>&6
8257 else
8258 cat > conftest.$ac_ext <<EOF
8259 #line 8260 "configure"
8260 #include "confdefs.h"
8261
8262 #include <Xm/Xm.h>
8263
8264 int main() {
8265
8266 int version;
8267
8268 version = xmUseVersion;
8269
8270 ; return 0; }
8271 EOF
8272 if { (eval echo configure:8273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8273 rm -rf conftest*
8274
8275 echo "$ac_t""found in default search path" 1>&6
8276 COMPILED_X_PROGRAM=1
8277
8278 else
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 rm -rf conftest*
8282
8283 echo "$ac_t""no" 1>&6
8284 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8285
8286
8287 fi
8288 rm -f conftest*
8289 fi
8290 fi
8291
8292
8293 XPM_LINK=""
8294 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8295 echo "configure:8296: checking for Xpm library" >&5
8296
8297 ac_find_libraries=
8298 for ac_dir in $SEARCH_LIB;
8299 do
8300 for ac_extension in a so sl; do
8301 if test -f "$ac_dir/libXpm.$ac_extension"; then
8302 ac_find_libraries=$ac_dir
8303 break 2
8304 fi
8305 done
8306 done
8307
8308 if test "$ac_find_libraries" != "" ; then
8309
8310 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8311 result=$?
8312 if test $result = 0; then
8313 ac_path_to_link=""
8314 else
8315 ac_path_to_link="-L$ac_find_libraries"
8316 fi
8317
8318 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8319 XPM_LINK="-lXpm "
8320 cat >> confdefs.h <<\EOF
8321 #define wxHAVE_LIB_XPM 1
8322 EOF
8323
8324 echo "$ac_t""found at $ac_find_libraries" 1>&6
8325 else
8326 cat > conftest.$ac_ext <<EOF
8327 #line 8328 "configure"
8328 #include "confdefs.h"
8329
8330 #include <X11/xpm.h>
8331
8332 int main() {
8333
8334 int version;
8335
8336 version = XpmLibraryVersion();
8337
8338 ; return 0; }
8339 EOF
8340 if { (eval echo configure:8341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8341 rm -rf conftest*
8342
8343 XPM_LINK="-lXpm "
8344 cat >> confdefs.h <<\EOF
8345 #define wxHAVE_LIB_XPM 1
8346 EOF
8347
8348 echo "$ac_t""found in default search path" 1>&6
8349 COMPILED_X_PROGRAM=0
8350
8351 else
8352 echo "configure: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8354 rm -rf conftest*
8355
8356 echo "$ac_t""no" 1>&6
8357 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8358
8359
8360 fi
8361 rm -f conftest*
8362 fi
8363
8364 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8365 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8366 TOOLKIT=MOTIF
8367
8368 GUIHEADERS="\$(MOTIF_HEADERS)"
8369 GUIOBJS="\$(MOTIF_GUIOBJS)"
8370 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
8371 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8372 GUIDEPS="\$(MOTIF_GUIDEPS)"
8373 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
8374 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8375 UNIXOBJS="\$(UNIX_OBJS)"
8376 UNIXDEPS="\$(UNIX_DEPS)"
8377 GUIDIST=MOTIF_DIST
8378 fi
8379
8380 if test "$wxUSE_PM" = 1; then
8381 TOOLKIT=PM
8382
8383 GUIOBJS="\$(PM_GUIOBJS)"
8384 GUIHEADERS="\$(PM_HEADERS)"
8385 COMMONOBJS="\$(PM_COMMONOBJS)"
8386 GENERICOBJS="\$(PM_GENERICOBJS)"
8387 GUIDEPS="\$(PM_GUIDEPS)"
8388 COMMONDEPS="\$(PM_COMMONDEPS)"
8389 GENERICDEPS="\$(PM_GENERICDEPS)"
8390 UNIXOBJS=
8391 UNIXDEPS=
8392 GUIDIST=GTK_DIST
8393 fi
8394
8395 if test "$TOOLKIT" != "PM" ; then
8396 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
8397 else
8398 TOOLKIT_DIR="os2"
8399 fi
8400
8401 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8402
8403 WX_LIBRARY="wx_${TOOLKIT_DIR}"
8404
8405 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)"
8406
8407 if test "$TOOLKIT" != "MSW"; then
8408 if test "$wxUSE_ODBC" = "yes" ; then
8409 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8410 fi
8411 fi
8412
8413 if test "$wxUSE_LIBJPEG" = "yes" ; then
8414 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8415 fi
8416 if test "$wxUSE_LIBTIFF" = "yes" ; then
8417 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8418 fi
8419 if test "$wxUSE_LIBPNG" = "yes" ; then
8420 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8421 fi
8422 if test "$wxUSE_ZLIB" = "yes" ; then
8423 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8424 fi
8425 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8426
8427 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8428 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8429 RPM_SPEC="wx\$(TOOLKIT).spec"
8430
8431 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8432 DISTDIR="wx\$(TOOLKIT)"
8433 else
8434 USE_GUI=0
8435
8436 TOOLKIT_DIR="base"
8437 TOOLKIT_DEF="-D__WXBASE__"
8438
8439 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8440 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
8441
8442 WX_LIBRARY="wxbase"
8443
8444 PORT_FILES="src/files.lst"
8445 RPM_FILES="src/rpmfiles.lst"
8446 RPM_SPEC="wxBase.spec"
8447
8448 GUIDIST="BASE_DIST"
8449 DISTDIR="wxBase"
8450 fi
8451
8452 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8453
8454 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8455
8456 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8457
8458 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8459 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8460 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8461
8462 SHARED_LD=
8463 PIC_FLAG=
8464 WX_ALL=
8465 WX_ALL_INSTALLED=
8466 BURNT_LIBRARY_NAME=
8467
8468
8469 if test "$wxUSE_SHARED" = "yes"; then
8470 case "${host}" in
8471 *-hp-hpux* )
8472 if test "$GCC" = yes ; then
8473 SHARED_LD="${CC} -shared -fPIC -o"
8474 PIC_FLAG="-fPIC"
8475 else
8476 SHARED_LD="${CXX} -b -o"
8477 PIC_FLAG="+Z"
8478 fi
8479 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8480 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8481 ;;
8482
8483 *-*-linux* )
8484 SHARED_LD="${CC} -shared -o"
8485 PIC_FLAG="-fPIC"
8486 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8487 WX_ALL="CREATE_LINKS"
8488 if test "$wxUSE_BURNT_NAME" = "yes" ; then
8489 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
8490 fi
8491 ;;
8492 *-*-irix5* | *-*-irix6* )
8493 if test "$GCC" = yes ; then
8494 SHARED_LD="${CC} -shared -o"
8495 PIC_FLAG="-fPIC"
8496 else
8497 SHARED_LD="${CXX} -shared -o"
8498 fi
8499 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8500 WX_ALL="CREATE_LINKS"
8501 ;;
8502 *-*-solaris2* )
8503 if test "$GCC" = yes ; then
8504 SHARED_LD="${CC} -shared -o"
8505 PIC_FLAG="-fPIC"
8506 else
8507 SHARED_LD="${CXX} -G -o"
8508 PIC_FLAG="-KPIC"
8509 fi
8510 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8511 WX_ALL="CREATE_LINKS"
8512 ;;
8513 *-*-sunos4* )
8514 SHARED_LD="${CC} -shared -o"
8515 PIC_FLAG="-fPIC"
8516 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8517 WX_ALL="CREATE_LINKS"
8518 ;;
8519 *-*-freebsd* | *-*-netbsd*)
8520 SHARED_LD="${CC} -shared -o"
8521 PIC_FLAG="-fPIC"
8522 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8523 WX_ALL="CREATE_LINKS"
8524 ;;
8525 *-*-osf* )
8526 SHARED_LD="${CXX} -shared -o"
8527 PIC_FLAG="-fPIC"
8528 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8529 WX_ALL="CREATE_LINKS"
8530 ;;
8531 *-*-dgux5* )
8532 SHARED_LD="${CXX} -shared -o"
8533 PIC_FLAG="-fPIC"
8534 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8535 WX_ALL="CREATE_LINKS"
8536 ;;
8537 *-*-sysv5* )
8538 SHARED_LD="${CC} -shared -o"
8539 PIC_FLAG="-fPIC"
8540 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8541 WX_ALL="CREATE_LINKS"
8542 ;;
8543 *-*-aix* )
8544 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8545 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8546 ;;
8547 *-*-cygwin32* )
8548 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8549 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8550 ;;
8551 *-*-mingw32* )
8552 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8553 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8554 ;;
8555 *-pc-os2_emx )
8556 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8557 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8558 ;;
8559 *-*-beos* )
8560 SHARED_LD="${LD} -shared -o"
8561 PIC_FLAG="-fPIC"
8562 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8563 WX_ALL="CREATE_LINKS"
8564 ;;
8565 *)
8566 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8567 esac
8568
8569 if test "x$WX_TARGET_LIBRARY" = "x"; then
8570 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8571 fi
8572 else
8573 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8574 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8575 fi
8576
8577
8578 for ac_hdr in strings.h
8579 do
8580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8582 echo "configure:8583: checking for $ac_hdr" >&5
8583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8584 echo $ac_n "(cached) $ac_c" 1>&6
8585 else
8586 cat > conftest.$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8589 #include <$ac_hdr>
8590 EOF
8591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8592 { (eval echo configure:8593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8594 if test -z "$ac_err"; then
8595 rm -rf conftest*
8596 eval "ac_cv_header_$ac_safe=yes"
8597 else
8598 echo "$ac_err" >&5
8599 echo "configure: failed program was:" >&5
8600 cat conftest.$ac_ext >&5
8601 rm -rf conftest*
8602 eval "ac_cv_header_$ac_safe=no"
8603 fi
8604 rm -f conftest*
8605 fi
8606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8607 echo "$ac_t""yes" 1>&6
8608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8609 cat >> confdefs.h <<EOF
8610 #define $ac_tr_hdr 1
8611 EOF
8612
8613 else
8614 echo "$ac_t""no" 1>&6
8615 fi
8616 done
8617
8618 for ac_hdr in unistd.h
8619 do
8620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8622 echo "configure:8623: checking for $ac_hdr" >&5
8623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8624 echo $ac_n "(cached) $ac_c" 1>&6
8625 else
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 #include <$ac_hdr>
8630 EOF
8631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8632 { (eval echo configure:8633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8634 if test -z "$ac_err"; then
8635 rm -rf conftest*
8636 eval "ac_cv_header_$ac_safe=yes"
8637 else
8638 echo "$ac_err" >&5
8639 echo "configure: failed program was:" >&5
8640 cat conftest.$ac_ext >&5
8641 rm -rf conftest*
8642 eval "ac_cv_header_$ac_safe=no"
8643 fi
8644 rm -f conftest*
8645 fi
8646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8647 echo "$ac_t""yes" 1>&6
8648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8649 cat >> confdefs.h <<EOF
8650 #define $ac_tr_hdr 1
8651 EOF
8652
8653 else
8654 echo "$ac_t""no" 1>&6
8655 fi
8656 done
8657
8658 for ac_hdr in wchar.h
8659 do
8660 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8662 echo "configure:8663: checking for $ac_hdr" >&5
8663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8664 echo $ac_n "(cached) $ac_c" 1>&6
8665 else
8666 cat > conftest.$ac_ext <<EOF
8667 #line 8668 "configure"
8668 #include "confdefs.h"
8669 #include <$ac_hdr>
8670 EOF
8671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8672 { (eval echo configure:8673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8674 if test -z "$ac_err"; then
8675 rm -rf conftest*
8676 eval "ac_cv_header_$ac_safe=yes"
8677 else
8678 echo "$ac_err" >&5
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 rm -rf conftest*
8682 eval "ac_cv_header_$ac_safe=no"
8683 fi
8684 rm -f conftest*
8685 fi
8686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8687 echo "$ac_t""yes" 1>&6
8688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8689 cat >> confdefs.h <<EOF
8690 #define $ac_tr_hdr 1
8691 EOF
8692
8693 else
8694 echo "$ac_t""no" 1>&6
8695 fi
8696 done
8697
8698 for ac_hdr in wcstr.h
8699 do
8700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8702 echo "configure:8703: checking for $ac_hdr" >&5
8703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8705 else
8706 cat > conftest.$ac_ext <<EOF
8707 #line 8708 "configure"
8708 #include "confdefs.h"
8709 #include <$ac_hdr>
8710 EOF
8711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8712 { (eval echo configure:8713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8714 if test -z "$ac_err"; then
8715 rm -rf conftest*
8716 eval "ac_cv_header_$ac_safe=yes"
8717 else
8718 echo "$ac_err" >&5
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 rm -rf conftest*
8722 eval "ac_cv_header_$ac_safe=no"
8723 fi
8724 rm -f conftest*
8725 fi
8726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8727 echo "$ac_t""yes" 1>&6
8728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8729 cat >> confdefs.h <<EOF
8730 #define $ac_tr_hdr 1
8731 EOF
8732
8733 else
8734 echo "$ac_t""no" 1>&6
8735 fi
8736 done
8737
8738 for ac_hdr in fnmatch.h
8739 do
8740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8742 echo "configure:8743: checking for $ac_hdr" >&5
8743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8745 else
8746 cat > conftest.$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8749 #include <$ac_hdr>
8750 EOF
8751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8752 { (eval echo configure:8753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8754 if test -z "$ac_err"; then
8755 rm -rf conftest*
8756 eval "ac_cv_header_$ac_safe=yes"
8757 else
8758 echo "$ac_err" >&5
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 rm -rf conftest*
8762 eval "ac_cv_header_$ac_safe=no"
8763 fi
8764 rm -f conftest*
8765 fi
8766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8767 echo "$ac_t""yes" 1>&6
8768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8769 cat >> confdefs.h <<EOF
8770 #define $ac_tr_hdr 1
8771 EOF
8772
8773 else
8774 echo "$ac_t""no" 1>&6
8775 fi
8776 done
8777
8778
8779 if test "$wxUSE_GUI" = "yes"; then
8780 for ac_hdr in X11/XKBlib.h
8781 do
8782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8784 echo "configure:8785: checking for $ac_hdr" >&5
8785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8787 else
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 #include <$ac_hdr>
8792 EOF
8793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8794 { (eval echo configure:8795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8796 if test -z "$ac_err"; then
8797 rm -rf conftest*
8798 eval "ac_cv_header_$ac_safe=yes"
8799 else
8800 echo "$ac_err" >&5
8801 echo "configure: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8803 rm -rf conftest*
8804 eval "ac_cv_header_$ac_safe=no"
8805 fi
8806 rm -f conftest*
8807 fi
8808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8809 echo "$ac_t""yes" 1>&6
8810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8811 cat >> confdefs.h <<EOF
8812 #define $ac_tr_hdr 1
8813 EOF
8814
8815 else
8816 echo "$ac_t""no" 1>&6
8817 fi
8818 done
8819
8820 fi
8821
8822
8823 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8824 echo "configure:8825: checking for ANSI C header files" >&5
8825 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8826 echo $ac_n "(cached) $ac_c" 1>&6
8827 else
8828 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8831 #include <stdlib.h>
8832 #include <stdarg.h>
8833 #include <string.h>
8834 #include <float.h>
8835 EOF
8836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8837 { (eval echo configure:8838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8839 if test -z "$ac_err"; then
8840 rm -rf conftest*
8841 ac_cv_header_stdc=yes
8842 else
8843 echo "$ac_err" >&5
8844 echo "configure: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8846 rm -rf conftest*
8847 ac_cv_header_stdc=no
8848 fi
8849 rm -f conftest*
8850
8851 if test $ac_cv_header_stdc = yes; then
8852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8853 cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8856 #include <string.h>
8857 EOF
8858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8859 egrep "memchr" >/dev/null 2>&1; then
8860 :
8861 else
8862 rm -rf conftest*
8863 ac_cv_header_stdc=no
8864 fi
8865 rm -f conftest*
8866
8867 fi
8868
8869 if test $ac_cv_header_stdc = yes; then
8870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8871 cat > conftest.$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8874 #include <stdlib.h>
8875 EOF
8876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8877 egrep "free" >/dev/null 2>&1; then
8878 :
8879 else
8880 rm -rf conftest*
8881 ac_cv_header_stdc=no
8882 fi
8883 rm -f conftest*
8884
8885 fi
8886
8887 if test $ac_cv_header_stdc = yes; then
8888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8889 if test "$cross_compiling" = yes; then
8890 :
8891 else
8892 cat > conftest.$ac_ext <<EOF
8893 #line 8894 "configure"
8894 #include "confdefs.h"
8895 #include <ctype.h>
8896 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8897 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8898 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8899 int main () { int i; for (i = 0; i < 256; i++)
8900 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8901 exit (0); }
8902
8903 EOF
8904 if { (eval echo configure:8905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8905 then
8906 :
8907 else
8908 echo "configure: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8910 rm -fr conftest*
8911 ac_cv_header_stdc=no
8912 fi
8913 rm -fr conftest*
8914 fi
8915
8916 fi
8917 fi
8918
8919 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8920 if test $ac_cv_header_stdc = yes; then
8921 cat >> confdefs.h <<\EOF
8922 #define STDC_HEADERS 1
8923 EOF
8924
8925 fi
8926
8927 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8928 echo "configure:8929: checking for mode_t" >&5
8929 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8931 else
8932 cat > conftest.$ac_ext <<EOF
8933 #line 8934 "configure"
8934 #include "confdefs.h"
8935 #include <sys/types.h>
8936 #if STDC_HEADERS
8937 #include <stdlib.h>
8938 #include <stddef.h>
8939 #endif
8940 EOF
8941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8942 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8943 rm -rf conftest*
8944 ac_cv_type_mode_t=yes
8945 else
8946 rm -rf conftest*
8947 ac_cv_type_mode_t=no
8948 fi
8949 rm -f conftest*
8950
8951 fi
8952 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8953 if test $ac_cv_type_mode_t = no; then
8954 cat >> confdefs.h <<\EOF
8955 #define mode_t int
8956 EOF
8957
8958 fi
8959
8960 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8961 echo "configure:8962: checking for off_t" >&5
8962 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8963 echo $ac_n "(cached) $ac_c" 1>&6
8964 else
8965 cat > conftest.$ac_ext <<EOF
8966 #line 8967 "configure"
8967 #include "confdefs.h"
8968 #include <sys/types.h>
8969 #if STDC_HEADERS
8970 #include <stdlib.h>
8971 #include <stddef.h>
8972 #endif
8973 EOF
8974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8975 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8976 rm -rf conftest*
8977 ac_cv_type_off_t=yes
8978 else
8979 rm -rf conftest*
8980 ac_cv_type_off_t=no
8981 fi
8982 rm -f conftest*
8983
8984 fi
8985 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8986 if test $ac_cv_type_off_t = no; then
8987 cat >> confdefs.h <<\EOF
8988 #define off_t long
8989 EOF
8990
8991 fi
8992
8993 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8994 echo "configure:8995: checking for pid_t" >&5
8995 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8996 echo $ac_n "(cached) $ac_c" 1>&6
8997 else
8998 cat > conftest.$ac_ext <<EOF
8999 #line 9000 "configure"
9000 #include "confdefs.h"
9001 #include <sys/types.h>
9002 #if STDC_HEADERS
9003 #include <stdlib.h>
9004 #include <stddef.h>
9005 #endif
9006 EOF
9007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9008 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9009 rm -rf conftest*
9010 ac_cv_type_pid_t=yes
9011 else
9012 rm -rf conftest*
9013 ac_cv_type_pid_t=no
9014 fi
9015 rm -f conftest*
9016
9017 fi
9018 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9019 if test $ac_cv_type_pid_t = no; then
9020 cat >> confdefs.h <<\EOF
9021 #define pid_t int
9022 EOF
9023
9024 fi
9025
9026 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9027 echo "configure:9028: checking for size_t" >&5
9028 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9030 else
9031 cat > conftest.$ac_ext <<EOF
9032 #line 9033 "configure"
9033 #include "confdefs.h"
9034 #include <sys/types.h>
9035 #if STDC_HEADERS
9036 #include <stdlib.h>
9037 #include <stddef.h>
9038 #endif
9039 EOF
9040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9041 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9042 rm -rf conftest*
9043 ac_cv_type_size_t=yes
9044 else
9045 rm -rf conftest*
9046 ac_cv_type_size_t=no
9047 fi
9048 rm -f conftest*
9049
9050 fi
9051 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9052 if test $ac_cv_type_size_t = no; then
9053 cat >> confdefs.h <<\EOF
9054 #define size_t unsigned
9055 EOF
9056
9057 fi
9058
9059 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9060 echo "configure:9061: checking for uid_t in sys/types.h" >&5
9061 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9063 else
9064 cat > conftest.$ac_ext <<EOF
9065 #line 9066 "configure"
9066 #include "confdefs.h"
9067 #include <sys/types.h>
9068 EOF
9069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9070 egrep "uid_t" >/dev/null 2>&1; then
9071 rm -rf conftest*
9072 ac_cv_type_uid_t=yes
9073 else
9074 rm -rf conftest*
9075 ac_cv_type_uid_t=no
9076 fi
9077 rm -f conftest*
9078
9079 fi
9080
9081 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9082 if test $ac_cv_type_uid_t = no; then
9083 cat >> confdefs.h <<\EOF
9084 #define uid_t int
9085 EOF
9086
9087 cat >> confdefs.h <<\EOF
9088 #define gid_t int
9089 EOF
9090
9091 fi
9092
9093
9094
9095 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9096 echo "configure:9097: checking for pw_gecos in struct passwd" >&5
9097 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9098 echo $ac_n "(cached) $ac_c" 1>&6
9099 else
9100
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9104 #include <pwd.h>
9105 int main() {
9106
9107 char *p;
9108 struct passwd *pw;
9109 p = pw->pw_gecos;
9110
9111 ; return 0; }
9112 EOF
9113 if { (eval echo configure:9114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9114 rm -rf conftest*
9115
9116 wx_cv_struct_pw_gecos=yes
9117 cat >> confdefs.h <<\EOF
9118 #define HAVE_PW_GECOS 1
9119 EOF
9120
9121
9122 else
9123 echo "configure: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9125 rm -rf conftest*
9126
9127 wx_cv_struct_pw_gecos=no
9128
9129
9130 fi
9131 rm -f conftest*
9132
9133
9134 fi
9135
9136 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9137
9138
9139 echo $ac_n "checking for working const""... $ac_c" 1>&6
9140 echo "configure:9141: checking for working const" >&5
9141 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9142 echo $ac_n "(cached) $ac_c" 1>&6
9143 else
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9147
9148 int main() {
9149
9150 /* Ultrix mips cc rejects this. */
9151 typedef int charset[2]; const charset x;
9152 /* SunOS 4.1.1 cc rejects this. */
9153 char const *const *ccp;
9154 char **p;
9155 /* NEC SVR4.0.2 mips cc rejects this. */
9156 struct point {int x, y;};
9157 static struct point const zero = {0,0};
9158 /* AIX XL C 1.02.0.0 rejects this.
9159 It does not let you subtract one const X* pointer from another in an arm
9160 of an if-expression whose if-part is not a constant expression */
9161 const char *g = "string";
9162 ccp = &g + (g ? g-g : 0);
9163 /* HPUX 7.0 cc rejects these. */
9164 ++ccp;
9165 p = (char**) ccp;
9166 ccp = (char const *const *) p;
9167 { /* SCO 3.2v4 cc rejects this. */
9168 char *t;
9169 char const *s = 0 ? (char *) 0 : (char const *) 0;
9170
9171 *t++ = 0;
9172 }
9173 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9174 int x[] = {25, 17};
9175 const int *foo = &x[0];
9176 ++foo;
9177 }
9178 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9179 typedef const int *iptr;
9180 iptr p = 0;
9181 ++p;
9182 }
9183 { /* AIX XL C 1.02.0.0 rejects this saying
9184 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9185 struct s { int j; const int *ap[3]; };
9186 struct s *b; b->j = 5;
9187 }
9188 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9189 const int foo = 10;
9190 }
9191
9192 ; return 0; }
9193 EOF
9194 if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9195 rm -rf conftest*
9196 ac_cv_c_const=yes
9197 else
9198 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9200 rm -rf conftest*
9201 ac_cv_c_const=no
9202 fi
9203 rm -f conftest*
9204 fi
9205
9206 echo "$ac_t""$ac_cv_c_const" 1>&6
9207 if test $ac_cv_c_const = no; then
9208 cat >> confdefs.h <<\EOF
9209 #define const
9210 EOF
9211
9212 fi
9213
9214 echo $ac_n "checking for inline""... $ac_c" 1>&6
9215 echo "configure:9216: checking for inline" >&5
9216 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9217 echo $ac_n "(cached) $ac_c" 1>&6
9218 else
9219 ac_cv_c_inline=no
9220 for ac_kw in inline __inline__ __inline; do
9221 cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224
9225 int main() {
9226 } $ac_kw foo() {
9227 ; return 0; }
9228 EOF
9229 if { (eval echo configure:9230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9230 rm -rf conftest*
9231 ac_cv_c_inline=$ac_kw; break
9232 else
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9235 fi
9236 rm -f conftest*
9237 done
9238
9239 fi
9240
9241 echo "$ac_t""$ac_cv_c_inline" 1>&6
9242 case "$ac_cv_c_inline" in
9243 inline | yes) ;;
9244 no) cat >> confdefs.h <<\EOF
9245 #define inline
9246 EOF
9247 ;;
9248 *) cat >> confdefs.h <<EOF
9249 #define inline $ac_cv_c_inline
9250 EOF
9251 ;;
9252 esac
9253
9254
9255 echo $ac_n "checking size of char""... $ac_c" 1>&6
9256 echo "configure:9257: checking size of char" >&5
9257 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9259 else
9260 if test "$cross_compiling" = yes; then
9261 ac_cv_sizeof_char=1
9262 else
9263 cat > conftest.$ac_ext <<EOF
9264 #line 9265 "configure"
9265 #include "confdefs.h"
9266 #include <stdio.h>
9267 main()
9268 {
9269 FILE *f=fopen("conftestval", "w");
9270 if (!f) exit(1);
9271 fprintf(f, "%d\n", sizeof(char));
9272 exit(0);
9273 }
9274 EOF
9275 if { (eval echo configure:9276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9276 then
9277 ac_cv_sizeof_char=`cat conftestval`
9278 else
9279 echo "configure: failed program was:" >&5
9280 cat conftest.$ac_ext >&5
9281 rm -fr conftest*
9282 ac_cv_sizeof_char=0
9283 fi
9284 rm -fr conftest*
9285 fi
9286
9287 fi
9288 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9289 cat >> confdefs.h <<EOF
9290 #define SIZEOF_CHAR $ac_cv_sizeof_char
9291 EOF
9292
9293
9294 echo $ac_n "checking size of short""... $ac_c" 1>&6
9295 echo "configure:9296: checking size of short" >&5
9296 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9298 else
9299 if test "$cross_compiling" = yes; then
9300 ac_cv_sizeof_short=2
9301 else
9302 cat > conftest.$ac_ext <<EOF
9303 #line 9304 "configure"
9304 #include "confdefs.h"
9305 #include <stdio.h>
9306 main()
9307 {
9308 FILE *f=fopen("conftestval", "w");
9309 if (!f) exit(1);
9310 fprintf(f, "%d\n", sizeof(short));
9311 exit(0);
9312 }
9313 EOF
9314 if { (eval echo configure:9315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9315 then
9316 ac_cv_sizeof_short=`cat conftestval`
9317 else
9318 echo "configure: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9320 rm -fr conftest*
9321 ac_cv_sizeof_short=0
9322 fi
9323 rm -fr conftest*
9324 fi
9325
9326 fi
9327 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9328 cat >> confdefs.h <<EOF
9329 #define SIZEOF_SHORT $ac_cv_sizeof_short
9330 EOF
9331
9332
9333 echo $ac_n "checking size of int *""... $ac_c" 1>&6
9334 echo "configure:9335: checking size of int *" >&5
9335 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9336 echo $ac_n "(cached) $ac_c" 1>&6
9337 else
9338 if test "$cross_compiling" = yes; then
9339 ac_cv_sizeof_int_p=4
9340 else
9341 cat > conftest.$ac_ext <<EOF
9342 #line 9343 "configure"
9343 #include "confdefs.h"
9344 #include <stdio.h>
9345 main()
9346 {
9347 FILE *f=fopen("conftestval", "w");
9348 if (!f) exit(1);
9349 fprintf(f, "%d\n", sizeof(int *));
9350 exit(0);
9351 }
9352 EOF
9353 if { (eval echo configure:9354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9354 then
9355 ac_cv_sizeof_int_p=`cat conftestval`
9356 else
9357 echo "configure: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 rm -fr conftest*
9360 ac_cv_sizeof_int_p=0
9361 fi
9362 rm -fr conftest*
9363 fi
9364
9365 fi
9366 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9367 cat >> confdefs.h <<EOF
9368 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9369 EOF
9370
9371
9372 echo $ac_n "checking size of int""... $ac_c" 1>&6
9373 echo "configure:9374: checking size of int" >&5
9374 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9376 else
9377 if test "$cross_compiling" = yes; then
9378 ac_cv_sizeof_int=4
9379 else
9380 cat > conftest.$ac_ext <<EOF
9381 #line 9382 "configure"
9382 #include "confdefs.h"
9383 #include <stdio.h>
9384 main()
9385 {
9386 FILE *f=fopen("conftestval", "w");
9387 if (!f) exit(1);
9388 fprintf(f, "%d\n", sizeof(int));
9389 exit(0);
9390 }
9391 EOF
9392 if { (eval echo configure:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9393 then
9394 ac_cv_sizeof_int=`cat conftestval`
9395 else
9396 echo "configure: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 rm -fr conftest*
9399 ac_cv_sizeof_int=0
9400 fi
9401 rm -fr conftest*
9402 fi
9403
9404 fi
9405 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9406 cat >> confdefs.h <<EOF
9407 #define SIZEOF_INT $ac_cv_sizeof_int
9408 EOF
9409
9410
9411 echo $ac_n "checking size of long""... $ac_c" 1>&6
9412 echo "configure:9413: checking size of long" >&5
9413 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9414 echo $ac_n "(cached) $ac_c" 1>&6
9415 else
9416 if test "$cross_compiling" = yes; then
9417 ac_cv_sizeof_long=4
9418 else
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 #include <stdio.h>
9423 main()
9424 {
9425 FILE *f=fopen("conftestval", "w");
9426 if (!f) exit(1);
9427 fprintf(f, "%d\n", sizeof(long));
9428 exit(0);
9429 }
9430 EOF
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9432 then
9433 ac_cv_sizeof_long=`cat conftestval`
9434 else
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 rm -fr conftest*
9438 ac_cv_sizeof_long=0
9439 fi
9440 rm -fr conftest*
9441 fi
9442
9443 fi
9444 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9445 cat >> confdefs.h <<EOF
9446 #define SIZEOF_LONG $ac_cv_sizeof_long
9447 EOF
9448
9449
9450 echo $ac_n "checking size of long long""... $ac_c" 1>&6
9451 echo "configure:9452: checking size of long long" >&5
9452 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9453 echo $ac_n "(cached) $ac_c" 1>&6
9454 else
9455 if test "$cross_compiling" = yes; then
9456 ac_cv_sizeof_long_long=0
9457 else
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 #include <stdio.h>
9462 main()
9463 {
9464 FILE *f=fopen("conftestval", "w");
9465 if (!f) exit(1);
9466 fprintf(f, "%d\n", sizeof(long long));
9467 exit(0);
9468 }
9469 EOF
9470 if { (eval echo configure:9471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9471 then
9472 ac_cv_sizeof_long_long=`cat conftestval`
9473 else
9474 echo "configure: failed program was:" >&5
9475 cat conftest.$ac_ext >&5
9476 rm -fr conftest*
9477 ac_cv_sizeof_long_long=0
9478 fi
9479 rm -fr conftest*
9480 fi
9481
9482 fi
9483 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9484 cat >> confdefs.h <<EOF
9485 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9486 EOF
9487
9488
9489
9490 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9491 echo "configure:9492: checking whether byte ordering is bigendian" >&5
9492 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9494 else
9495 ac_cv_c_bigendian=unknown
9496 # See if sys/param.h defines the BYTE_ORDER macro.
9497 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 #include <sys/types.h>
9501 #include <sys/param.h>
9502 int main() {
9503
9504 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9505 bogus endian macros
9506 #endif
9507 ; return 0; }
9508 EOF
9509 if { (eval echo configure:9510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9510 rm -rf conftest*
9511 # It does; now see whether it defined to BIG_ENDIAN or not.
9512 cat > conftest.$ac_ext <<EOF
9513 #line 9514 "configure"
9514 #include "confdefs.h"
9515 #include <sys/types.h>
9516 #include <sys/param.h>
9517 int main() {
9518
9519 #if BYTE_ORDER != BIG_ENDIAN
9520 not big endian
9521 #endif
9522 ; return 0; }
9523 EOF
9524 if { (eval echo configure:9525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9525 rm -rf conftest*
9526 ac_cv_c_bigendian=yes
9527 else
9528 echo "configure: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 rm -rf conftest*
9531 ac_cv_c_bigendian=no
9532 fi
9533 rm -f conftest*
9534 else
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537 fi
9538 rm -f conftest*
9539 if test $ac_cv_c_bigendian = unknown; then
9540 if test "$cross_compiling" = yes; then
9541 ac_cv_c_bigendian=unknown
9542 else
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 main () {
9547 /* Are we little or big endian? From Harbison&Steele. */
9548 union
9549 {
9550 long l;
9551 char c[sizeof (long)];
9552 } u;
9553 u.l = 1;
9554 exit (u.c[sizeof (long) - 1] == 1);
9555 }
9556 EOF
9557 if { (eval echo configure:9558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9558 then
9559 ac_cv_c_bigendian=no
9560 else
9561 echo "configure: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9563 rm -fr conftest*
9564 ac_cv_c_bigendian=yes
9565 fi
9566 rm -fr conftest*
9567 fi
9568
9569 fi
9570 fi
9571
9572 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9573 if test $ac_cv_c_bigendian = unknown; then
9574 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
9575 fi
9576 if test $ac_cv_c_bigendian = yes; then
9577 cat >> confdefs.h <<\EOF
9578 #define WORDS_BIGENDIAN 1
9579 EOF
9580
9581 fi
9582
9583
9584
9585 if test "$cross_compiling" = "yes"; then
9586 cat >> confdefs.h <<\EOF
9587 #define wxUSE_IOSTREAMH 1
9588 EOF
9589
9590 else
9591
9592 ac_ext=C
9593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9594 ac_cpp='$CXXCPP $CPPFLAGS'
9595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9597 cross_compiling=$ac_cv_prog_cxx_cross
9598
9599
9600 for ac_hdr in iostream
9601 do
9602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9604 echo "configure:9605: checking for $ac_hdr" >&5
9605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9607 else
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 #include <$ac_hdr>
9612 EOF
9613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9614 { (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9616 if test -z "$ac_err"; then
9617 rm -rf conftest*
9618 eval "ac_cv_header_$ac_safe=yes"
9619 else
9620 echo "$ac_err" >&5
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=no"
9625 fi
9626 rm -f conftest*
9627 fi
9628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9629 echo "$ac_t""yes" 1>&6
9630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9631 cat >> confdefs.h <<EOF
9632 #define $ac_tr_hdr 1
9633 EOF
9634
9635 else
9636 echo "$ac_t""no" 1>&6
9637 fi
9638 done
9639
9640
9641 if test "x$HAVE_IOSTREAM" = x ; then
9642 cat >> confdefs.h <<\EOF
9643 #define wxUSE_IOSTREAMH 1
9644 EOF
9645
9646 else
9647 :
9648 fi
9649
9650 ac_ext=c
9651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9652 ac_cpp='$CPP $CPPFLAGS'
9653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9655 cross_compiling=$ac_cv_prog_cc_cross
9656
9657 fi
9658
9659
9660
9661 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9662 echo "configure:9663: checking if C++ compiler supports bool" >&5
9663 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9665 else
9666
9667
9668 ac_ext=C
9669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9670 ac_cpp='$CXXCPP $CPPFLAGS'
9671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9672 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9673 cross_compiling=$ac_cv_prog_cxx_cross
9674
9675
9676 cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9679
9680
9681 int main() {
9682
9683 bool b = true;
9684
9685 return 0;
9686
9687 ; return 0; }
9688 EOF
9689 if { (eval echo configure:9690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9690 rm -rf conftest*
9691
9692 cat >> confdefs.h <<\EOF
9693 #define HAVE_BOOL 1
9694 EOF
9695
9696 wx_cv_cpp_bool=yes
9697
9698 else
9699 echo "configure: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9701 rm -rf conftest*
9702
9703 wx_cv_cpp_bool=no
9704
9705
9706 fi
9707 rm -f conftest*
9708
9709 ac_ext=c
9710 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9711 ac_cpp='$CPP $CPPFLAGS'
9712 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9713 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9714 cross_compiling=$ac_cv_prog_cc_cross
9715
9716
9717 fi
9718
9719 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9720
9721 if test "$wx_cv_cpp_bool" = "yes"; then
9722 cat >> confdefs.h <<\EOF
9723 #define HAVE_BOOL 1
9724 EOF
9725
9726 fi
9727
9728
9729
9730 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9731 echo "configure:9732: checking if you need GNU extensions" >&5
9732 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734 else
9735
9736 cat > conftest.$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9739 #include <features.h>
9740 int main() {
9741
9742
9743 #ifndef __GNU_LIBRARY__
9744 Compile error wanted
9745 #endif
9746
9747
9748 ; return 0; }
9749 EOF
9750 if { (eval echo configure:9751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9751 rm -rf conftest*
9752 wx_cv_gnu_extensions=yes
9753 else
9754 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 rm -rf conftest*
9757 wx_cv_gnu_extensions=no
9758 fi
9759 rm -f conftest*
9760
9761 fi
9762
9763
9764 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9765 if test "$wx_cv_gnu_extensions" = "yes"; then
9766 cat >> confdefs.h <<EOF
9767 #define _GNU_SOURCE 1
9768 EOF
9769
9770 fi
9771
9772
9773
9774 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9775 echo "configure:9776: checking for wcslen in -lc" >&5
9776 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9778 echo $ac_n "(cached) $ac_c" 1>&6
9779 else
9780 ac_save_LIBS="$LIBS"
9781 LIBS="-lc $LIBS"
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788 char wcslen();
9789
9790 int main() {
9791 wcslen()
9792 ; return 0; }
9793 EOF
9794 if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9795 rm -rf conftest*
9796 eval "ac_cv_lib_$ac_lib_var=yes"
9797 else
9798 echo "configure: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 rm -rf conftest*
9801 eval "ac_cv_lib_$ac_lib_var=no"
9802 fi
9803 rm -f conftest*
9804 LIBS="$ac_save_LIBS"
9805
9806 fi
9807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809
9810 cat >> confdefs.h <<\EOF
9811 #define HAVE_WCSLEN 1
9812 EOF
9813
9814 WCHAR_LINK=""
9815
9816 else
9817 echo "$ac_t""no" 1>&6
9818
9819 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9820 echo "configure:9821: checking for wcslen in -lw" >&5
9821 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824 else
9825 ac_save_LIBS="$LIBS"
9826 LIBS="-lw $LIBS"
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9830 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9833 char wcslen();
9834
9835 int main() {
9836 wcslen()
9837 ; return 0; }
9838 EOF
9839 if { (eval echo configure:9840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9840 rm -rf conftest*
9841 eval "ac_cv_lib_$ac_lib_var=yes"
9842 else
9843 echo "configure: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9845 rm -rf conftest*
9846 eval "ac_cv_lib_$ac_lib_var=no"
9847 fi
9848 rm -f conftest*
9849 LIBS="$ac_save_LIBS"
9850
9851 fi
9852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9853 echo "$ac_t""yes" 1>&6
9854
9855 cat >> confdefs.h <<\EOF
9856 #define HAVE_WCSLEN 1
9857 EOF
9858
9859 WCHAR_LINK="-lw"
9860
9861 else
9862 echo "$ac_t""no" 1>&6
9863 fi
9864
9865
9866 fi
9867
9868
9869 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9870 echo "configure:9871: checking for vprintf" >&5
9871 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9873 else
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 /* System header to define __stub macros and hopefully few prototypes,
9878 which can conflict with char vprintf(); below. */
9879 #include <assert.h>
9880 /* Override any gcc2 internal prototype to avoid an error. */
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9883 char vprintf();
9884
9885 int main() {
9886
9887 /* The GNU C library defines this for functions which it implements
9888 to always fail with ENOSYS. Some functions are actually named
9889 something starting with __ and the normal name is an alias. */
9890 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9891 choke me
9892 #else
9893 vprintf();
9894 #endif
9895
9896 ; return 0; }
9897 EOF
9898 if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9899 rm -rf conftest*
9900 eval "ac_cv_func_vprintf=yes"
9901 else
9902 echo "configure: failed program was:" >&5
9903 cat conftest.$ac_ext >&5
9904 rm -rf conftest*
9905 eval "ac_cv_func_vprintf=no"
9906 fi
9907 rm -f conftest*
9908 fi
9909
9910 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9911 echo "$ac_t""yes" 1>&6
9912 cat >> confdefs.h <<\EOF
9913 #define HAVE_VPRINTF 1
9914 EOF
9915
9916 else
9917 echo "$ac_t""no" 1>&6
9918 fi
9919
9920 if test "$ac_cv_func_vprintf" != yes; then
9921 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9922 echo "configure:9923: checking for _doprnt" >&5
9923 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9925 else
9926 cat > conftest.$ac_ext <<EOF
9927 #line 9928 "configure"
9928 #include "confdefs.h"
9929 /* System header to define __stub macros and hopefully few prototypes,
9930 which can conflict with char _doprnt(); below. */
9931 #include <assert.h>
9932 /* Override any gcc2 internal prototype to avoid an error. */
9933 /* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9935 char _doprnt();
9936
9937 int main() {
9938
9939 /* The GNU C library defines this for functions which it implements
9940 to always fail with ENOSYS. Some functions are actually named
9941 something starting with __ and the normal name is an alias. */
9942 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9943 choke me
9944 #else
9945 _doprnt();
9946 #endif
9947
9948 ; return 0; }
9949 EOF
9950 if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9951 rm -rf conftest*
9952 eval "ac_cv_func__doprnt=yes"
9953 else
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 rm -rf conftest*
9957 eval "ac_cv_func__doprnt=no"
9958 fi
9959 rm -f conftest*
9960 fi
9961
9962 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9963 echo "$ac_t""yes" 1>&6
9964 cat >> confdefs.h <<\EOF
9965 #define HAVE_DOPRNT 1
9966 EOF
9967
9968 else
9969 echo "$ac_t""no" 1>&6
9970 fi
9971
9972 fi
9973
9974
9975 for ac_func in vsnprintf
9976 do
9977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9978 echo "configure:9979: checking for $ac_func" >&5
9979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9980 echo $ac_n "(cached) $ac_c" 1>&6
9981 else
9982 cat > conftest.$ac_ext <<EOF
9983 #line 9984 "configure"
9984 #include "confdefs.h"
9985 /* System header to define __stub macros and hopefully few prototypes,
9986 which can conflict with char $ac_func(); below. */
9987 #include <assert.h>
9988 /* Override any gcc2 internal prototype to avoid an error. */
9989 /* We use char because int might match the return type of a gcc2
9990 builtin and then its argument prototype would still apply. */
9991 char $ac_func();
9992
9993 int main() {
9994
9995 /* The GNU C library defines this for functions which it implements
9996 to always fail with ENOSYS. Some functions are actually named
9997 something starting with __ and the normal name is an alias. */
9998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9999 choke me
10000 #else
10001 $ac_func();
10002 #endif
10003
10004 ; return 0; }
10005 EOF
10006 if { (eval echo configure:10007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10007 rm -rf conftest*
10008 eval "ac_cv_func_$ac_func=yes"
10009 else
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 rm -rf conftest*
10013 eval "ac_cv_func_$ac_func=no"
10014 fi
10015 rm -f conftest*
10016 fi
10017
10018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10019 echo "$ac_t""yes" 1>&6
10020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10021 cat >> confdefs.h <<EOF
10022 #define $ac_tr_func 1
10023 EOF
10024 cat >> confdefs.h <<\EOF
10025 #define HAVE_VSNPRINTF 1
10026 EOF
10027
10028 else
10029 echo "$ac_t""no" 1>&6
10030 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10031
10032 fi
10033 done
10034
10035
10036
10037 ac_ext=C
10038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10039 ac_cpp='$CXXCPP $CPPFLAGS'
10040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10042 cross_compiling=$ac_cv_prog_cxx_cross
10043
10044
10045 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
10046 echo "configure:10047: checking for vsscanf" >&5
10047 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10048 echo $ac_n "(cached) $ac_c" 1>&6
10049 else
10050
10051 if test "$cross_compiling" = yes; then
10052 wx_cv_func_vsscanf=no
10053
10054 else
10055 cat > conftest.$ac_ext <<EOF
10056 #line 10057 "configure"
10057 #include "confdefs.h"
10058 #ifdef __cplusplus
10059 extern "C" void exit(int);
10060 #endif
10061
10062 #include <stdio.h>
10063 #include <stdarg.h>
10064
10065 int try_vsscanf(const char *format, ...)
10066 {
10067 va_list ap;
10068 va_start(ap, format);
10069
10070 vsscanf("17", format, ap);
10071
10072 va_end(ap);
10073 }
10074
10075 int main()
10076 {
10077 int i;
10078 try_vsscanf("%d", &i);
10079 return i == 17 ? 0 : 1;
10080 }
10081
10082 EOF
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10084 then
10085
10086 cat >> confdefs.h <<\EOF
10087 #define HAVE_VSSCANF 1
10088 EOF
10089
10090 wx_cv_func_vsscanf=yes
10091
10092 else
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 rm -fr conftest*
10096 wx_cv_func_vsscanf=no
10097 fi
10098 rm -fr conftest*
10099 fi
10100
10101
10102 fi
10103
10104 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10105
10106 ac_ext=c
10107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10108 ac_cpp='$CPP $CPPFLAGS'
10109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10111 cross_compiling=$ac_cv_prog_cc_cross
10112
10113
10114 if test "$TOOLKIT" != "MSW"; then
10115
10116 for ac_func in vfork
10117 do
10118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10119 echo "configure:10120: checking for $ac_func" >&5
10120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10122 else
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 /* System header to define __stub macros and hopefully few prototypes,
10127 which can conflict with char $ac_func(); below. */
10128 #include <assert.h>
10129 /* Override any gcc2 internal prototype to avoid an error. */
10130 /* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10132 char $ac_func();
10133
10134 int main() {
10135
10136 /* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10140 choke me
10141 #else
10142 $ac_func();
10143 #endif
10144
10145 ; return 0; }
10146 EOF
10147 if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10148 rm -rf conftest*
10149 eval "ac_cv_func_$ac_func=yes"
10150 else
10151 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10153 rm -rf conftest*
10154 eval "ac_cv_func_$ac_func=no"
10155 fi
10156 rm -f conftest*
10157 fi
10158
10159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10160 echo "$ac_t""yes" 1>&6
10161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10162 cat >> confdefs.h <<EOF
10163 #define $ac_tr_func 1
10164 EOF
10165
10166 else
10167 echo "$ac_t""no" 1>&6
10168 fi
10169 done
10170
10171
10172 for ac_func in timegm
10173 do
10174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10175 echo "configure:10176: checking for $ac_func" >&5
10176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10178 else
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 /* System header to define __stub macros and hopefully few prototypes,
10183 which can conflict with char $ac_func(); below. */
10184 #include <assert.h>
10185 /* Override any gcc2 internal prototype to avoid an error. */
10186 /* We use char because int might match the return type of a gcc2
10187 builtin and then its argument prototype would still apply. */
10188 char $ac_func();
10189
10190 int main() {
10191
10192 /* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10196 choke me
10197 #else
10198 $ac_func();
10199 #endif
10200
10201 ; return 0; }
10202 EOF
10203 if { (eval echo configure:10204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10204 rm -rf conftest*
10205 eval "ac_cv_func_$ac_func=yes"
10206 else
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10209 rm -rf conftest*
10210 eval "ac_cv_func_$ac_func=no"
10211 fi
10212 rm -f conftest*
10213 fi
10214
10215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10216 echo "$ac_t""yes" 1>&6
10217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10218 cat >> confdefs.h <<EOF
10219 #define $ac_tr_func 1
10220 EOF
10221
10222 else
10223 echo "$ac_t""no" 1>&6
10224 fi
10225 done
10226
10227
10228 HAVE_SOME_SLEEP_FUNC=0
10229 if test "$USE_BEOS" = 1; then
10230 cat >> confdefs.h <<\EOF
10231 #define HAVE_SLEEP 1
10232 EOF
10233
10234 HAVE_SOME_SLEEP_FUNC=1
10235 fi
10236
10237 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10238 POSIX4_LINK=
10239 for ac_func in nanosleep
10240 do
10241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10242 echo "configure:10243: checking for $ac_func" >&5
10243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245 else
10246 cat > conftest.$ac_ext <<EOF
10247 #line 10248 "configure"
10248 #include "confdefs.h"
10249 /* System header to define __stub macros and hopefully few prototypes,
10250 which can conflict with char $ac_func(); below. */
10251 #include <assert.h>
10252 /* Override any gcc2 internal prototype to avoid an error. */
10253 /* We use char because int might match the return type of a gcc2
10254 builtin and then its argument prototype would still apply. */
10255 char $ac_func();
10256
10257 int main() {
10258
10259 /* The GNU C library defines this for functions which it implements
10260 to always fail with ENOSYS. Some functions are actually named
10261 something starting with __ and the normal name is an alias. */
10262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10263 choke me
10264 #else
10265 $ac_func();
10266 #endif
10267
10268 ; return 0; }
10269 EOF
10270 if { (eval echo configure:10271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10271 rm -rf conftest*
10272 eval "ac_cv_func_$ac_func=yes"
10273 else
10274 echo "configure: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
10276 rm -rf conftest*
10277 eval "ac_cv_func_$ac_func=no"
10278 fi
10279 rm -f conftest*
10280 fi
10281
10282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10283 echo "$ac_t""yes" 1>&6
10284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10285 cat >> confdefs.h <<EOF
10286 #define $ac_tr_func 1
10287 EOF
10288 cat >> confdefs.h <<\EOF
10289 #define HAVE_NANOSLEEP 1
10290 EOF
10291
10292 else
10293 echo "$ac_t""no" 1>&6
10294 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
10295 echo "configure:10296: checking for nanosleep in -lposix4" >&5
10296 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10299 else
10300 ac_save_LIBS="$LIBS"
10301 LIBS="-lposix4 $LIBS"
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10304 "configure"
10304 #include "confdefs.h"
10305 /* Override any gcc2 internal prototype to avoid an error. */
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10308 char nanosleep();
10309
10310 int main() {
10311 nanosleep()
10312 ; return 0; }
10313 EOF
10314 if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10315 rm -rf conftest*
10316 eval "ac_cv_lib_$ac_lib_var=yes"
10317 else
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 rm -rf conftest*
10321 eval "ac_cv_lib_$ac_lib_var=no"
10322 fi
10323 rm -f conftest*
10324 LIBS="$ac_save_LIBS"
10325
10326 fi
10327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10328 echo "$ac_t""yes" 1>&6
10329
10330 cat >> confdefs.h <<\EOF
10331 #define HAVE_NANOSLEEP 1
10332 EOF
10333
10334 POSIX4_LINK="-lposix4"
10335
10336 else
10337 echo "$ac_t""no" 1>&6
10338
10339 for ac_func in usleep
10340 do
10341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10342 echo "configure:10343: checking for $ac_func" >&5
10343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10345 else
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349 /* System header to define __stub macros and hopefully few prototypes,
10350 which can conflict with char $ac_func(); below. */
10351 #include <assert.h>
10352 /* Override any gcc2 internal prototype to avoid an error. */
10353 /* We use char because int might match the return type of a gcc2
10354 builtin and then its argument prototype would still apply. */
10355 char $ac_func();
10356
10357 int main() {
10358
10359 /* The GNU C library defines this for functions which it implements
10360 to always fail with ENOSYS. Some functions are actually named
10361 something starting with __ and the normal name is an alias. */
10362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10363 choke me
10364 #else
10365 $ac_func();
10366 #endif
10367
10368 ; return 0; }
10369 EOF
10370 if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10371 rm -rf conftest*
10372 eval "ac_cv_func_$ac_func=yes"
10373 else
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -rf conftest*
10377 eval "ac_cv_func_$ac_func=no"
10378 fi
10379 rm -f conftest*
10380 fi
10381
10382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10383 echo "$ac_t""yes" 1>&6
10384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10385 cat >> confdefs.h <<EOF
10386 #define $ac_tr_func 1
10387 EOF
10388
10389 else
10390 echo "$ac_t""no" 1>&6
10391 fi
10392 done
10393
10394 echo "configure: warning: wxSleep() function will not work" 1>&2
10395
10396
10397 fi
10398
10399
10400
10401 fi
10402 done
10403
10404 fi
10405
10406 for ac_func in uname gethostname
10407 do
10408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10409 echo "configure:10410: checking for $ac_func" >&5
10410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10411 echo $ac_n "(cached) $ac_c" 1>&6
10412 else
10413 cat > conftest.$ac_ext <<EOF
10414 #line 10415 "configure"
10415 #include "confdefs.h"
10416 /* System header to define __stub macros and hopefully few prototypes,
10417 which can conflict with char $ac_func(); below. */
10418 #include <assert.h>
10419 /* Override any gcc2 internal prototype to avoid an error. */
10420 /* We use char because int might match the return type of a gcc2
10421 builtin and then its argument prototype would still apply. */
10422 char $ac_func();
10423
10424 int main() {
10425
10426 /* The GNU C library defines this for functions which it implements
10427 to always fail with ENOSYS. Some functions are actually named
10428 something starting with __ and the normal name is an alias. */
10429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10430 choke me
10431 #else
10432 $ac_func();
10433 #endif
10434
10435 ; return 0; }
10436 EOF
10437 if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10438 rm -rf conftest*
10439 eval "ac_cv_func_$ac_func=yes"
10440 else
10441 echo "configure: failed program was:" >&5
10442 cat conftest.$ac_ext >&5
10443 rm -rf conftest*
10444 eval "ac_cv_func_$ac_func=no"
10445 fi
10446 rm -f conftest*
10447 fi
10448
10449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10450 echo "$ac_t""yes" 1>&6
10451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10452 cat >> confdefs.h <<EOF
10453 #define $ac_tr_func 1
10454 EOF
10455 break
10456 else
10457 echo "$ac_t""no" 1>&6
10458 fi
10459 done
10460
10461
10462 for ac_func in strtok_r
10463 do
10464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10465 echo "configure:10466: checking for $ac_func" >&5
10466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10467 echo $ac_n "(cached) $ac_c" 1>&6
10468 else
10469 cat > conftest.$ac_ext <<EOF
10470 #line 10471 "configure"
10471 #include "confdefs.h"
10472 /* System header to define __stub macros and hopefully few prototypes,
10473 which can conflict with char $ac_func(); below. */
10474 #include <assert.h>
10475 /* Override any gcc2 internal prototype to avoid an error. */
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10478 char $ac_func();
10479
10480 int main() {
10481
10482 /* The GNU C library defines this for functions which it implements
10483 to always fail with ENOSYS. Some functions are actually named
10484 something starting with __ and the normal name is an alias. */
10485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10486 choke me
10487 #else
10488 $ac_func();
10489 #endif
10490
10491 ; return 0; }
10492 EOF
10493 if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10494 rm -rf conftest*
10495 eval "ac_cv_func_$ac_func=yes"
10496 else
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 rm -rf conftest*
10500 eval "ac_cv_func_$ac_func=no"
10501 fi
10502 rm -f conftest*
10503 fi
10504
10505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10506 echo "$ac_t""yes" 1>&6
10507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10508 cat >> confdefs.h <<EOF
10509 #define $ac_tr_func 1
10510 EOF
10511
10512 else
10513 echo "$ac_t""no" 1>&6
10514 fi
10515 done
10516
10517
10518 INET_LINK=
10519 for ac_func in inet_addr
10520 do
10521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10522 echo "configure:10523: checking for $ac_func" >&5
10523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10524 echo $ac_n "(cached) $ac_c" 1>&6
10525 else
10526 cat > conftest.$ac_ext <<EOF
10527 #line 10528 "configure"
10528 #include "confdefs.h"
10529 /* System header to define __stub macros and hopefully few prototypes,
10530 which can conflict with char $ac_func(); below. */
10531 #include <assert.h>
10532 /* Override any gcc2 internal prototype to avoid an error. */
10533 /* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */
10535 char $ac_func();
10536
10537 int main() {
10538
10539 /* The GNU C library defines this for functions which it implements
10540 to always fail with ENOSYS. Some functions are actually named
10541 something starting with __ and the normal name is an alias. */
10542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10543 choke me
10544 #else
10545 $ac_func();
10546 #endif
10547
10548 ; return 0; }
10549 EOF
10550 if { (eval echo configure:10551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10551 rm -rf conftest*
10552 eval "ac_cv_func_$ac_func=yes"
10553 else
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10556 rm -rf conftest*
10557 eval "ac_cv_func_$ac_func=no"
10558 fi
10559 rm -f conftest*
10560 fi
10561
10562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10563 echo "$ac_t""yes" 1>&6
10564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10565 cat >> confdefs.h <<EOF
10566 #define $ac_tr_func 1
10567 EOF
10568 cat >> confdefs.h <<\EOF
10569 #define HAVE_INET_ADDR 1
10570 EOF
10571
10572 else
10573 echo "$ac_t""no" 1>&6
10574 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
10575 echo "configure:10576: checking for inet_addr in -lnsl" >&5
10576 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10578 echo $ac_n "(cached) $ac_c" 1>&6
10579 else
10580 ac_save_LIBS="$LIBS"
10581 LIBS="-lnsl $LIBS"
10582 cat > conftest.$ac_ext <<EOF
10583 #line 10584 "configure"
10584 #include "confdefs.h"
10585 /* Override any gcc2 internal prototype to avoid an error. */
10586 /* We use char because int might match the return type of a gcc2
10587 builtin and then its argument prototype would still apply. */
10588 char inet_addr();
10589
10590 int main() {
10591 inet_addr()
10592 ; return 0; }
10593 EOF
10594 if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10595 rm -rf conftest*
10596 eval "ac_cv_lib_$ac_lib_var=yes"
10597 else
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -rf conftest*
10601 eval "ac_cv_lib_$ac_lib_var=no"
10602 fi
10603 rm -f conftest*
10604 LIBS="$ac_save_LIBS"
10605
10606 fi
10607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10608 echo "$ac_t""yes" 1>&6
10609 INET_LINK="nsl"
10610 else
10611 echo "$ac_t""no" 1>&6
10612 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
10613 echo "configure:10614: checking for inet_addr in -lresolv" >&5
10614 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10617 else
10618 ac_save_LIBS="$LIBS"
10619 LIBS="-lresolv $LIBS"
10620 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 /* Override any gcc2 internal prototype to avoid an error. */
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char inet_addr();
10627
10628 int main() {
10629 inet_addr()
10630 ; return 0; }
10631 EOF
10632 if { (eval echo configure:10633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10633 rm -rf conftest*
10634 eval "ac_cv_lib_$ac_lib_var=yes"
10635 else
10636 echo "configure: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10638 rm -rf conftest*
10639 eval "ac_cv_lib_$ac_lib_var=no"
10640 fi
10641 rm -f conftest*
10642 LIBS="$ac_save_LIBS"
10643
10644 fi
10645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10646 echo "$ac_t""yes" 1>&6
10647 INET_LINK="resolv"
10648
10649 else
10650 echo "$ac_t""no" 1>&6
10651 fi
10652
10653
10654 fi
10655
10656
10657
10658 fi
10659 done
10660
10661
10662 for ac_func in inet_aton
10663 do
10664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10665 echo "configure:10666: checking for $ac_func" >&5
10666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10667 echo $ac_n "(cached) $ac_c" 1>&6
10668 else
10669 cat > conftest.$ac_ext <<EOF
10670 #line 10671 "configure"
10671 #include "confdefs.h"
10672 /* System header to define __stub macros and hopefully few prototypes,
10673 which can conflict with char $ac_func(); below. */
10674 #include <assert.h>
10675 /* Override any gcc2 internal prototype to avoid an error. */
10676 /* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10678 char $ac_func();
10679
10680 int main() {
10681
10682 /* The GNU C library defines this for functions which it implements
10683 to always fail with ENOSYS. Some functions are actually named
10684 something starting with __ and the normal name is an alias. */
10685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10686 choke me
10687 #else
10688 $ac_func();
10689 #endif
10690
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_func_$ac_func=yes"
10696 else
10697 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10699 rm -rf conftest*
10700 eval "ac_cv_func_$ac_func=no"
10701 fi
10702 rm -f conftest*
10703 fi
10704
10705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10706 echo "$ac_t""yes" 1>&6
10707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10708 cat >> confdefs.h <<EOF
10709 #define $ac_tr_func 1
10710 EOF
10711 cat >> confdefs.h <<\EOF
10712 #define HAVE_INET_ATON 1
10713 EOF
10714
10715 else
10716 echo "$ac_t""no" 1>&6
10717 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
10718 echo "configure:10719: checking for inet_aton in -l$INET_LINK" >&5
10719 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10722 else
10723 ac_save_LIBS="$LIBS"
10724 LIBS="-l$INET_LINK $LIBS"
10725 cat > conftest.$ac_ext <<EOF
10726 #line 10727 "configure"
10727 #include "confdefs.h"
10728 /* Override any gcc2 internal prototype to avoid an error. */
10729 /* We use char because int might match the return type of a gcc2
10730 builtin and then its argument prototype would still apply. */
10731 char inet_aton();
10732
10733 int main() {
10734 inet_aton()
10735 ; return 0; }
10736 EOF
10737 if { (eval echo configure:10738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10738 rm -rf conftest*
10739 eval "ac_cv_lib_$ac_lib_var=yes"
10740 else
10741 echo "configure: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 rm -rf conftest*
10744 eval "ac_cv_lib_$ac_lib_var=no"
10745 fi
10746 rm -f conftest*
10747 LIBS="$ac_save_LIBS"
10748
10749 fi
10750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10751 echo "$ac_t""yes" 1>&6
10752 cat >> confdefs.h <<\EOF
10753 #define HAVE_INET_ATON 1
10754 EOF
10755
10756 else
10757 echo "$ac_t""no" 1>&6
10758 fi
10759
10760
10761 fi
10762 done
10763
10764
10765 if test "x$INET_LINK" != "x"; then
10766 cat >> confdefs.h <<\EOF
10767 #define HAVE_INET_ADDR 1
10768 EOF
10769
10770 INET_LINK="-l$INET_LINK"
10771 fi
10772
10773 fi
10774
10775
10776 cat > confcache <<\EOF
10777 # This file is a shell script that caches the results of configure
10778 # tests run on this system so they can be shared between configure
10779 # scripts and configure runs. It is not useful on other systems.
10780 # If it contains results you don't want to keep, you may remove or edit it.
10781 #
10782 # By default, configure uses ./config.cache as the cache file,
10783 # creating it if it does not exist already. You can give configure
10784 # the --cache-file=FILE option to use a different cache file; that is
10785 # what configure does when it calls configure scripts in
10786 # subdirectories, so they share the cache.
10787 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10788 # config.status only pays attention to the cache file if you give it the
10789 # --recheck option to rerun configure.
10790 #
10791 EOF
10792 # The following way of writing the cache mishandles newlines in values,
10793 # but we know of no workaround that is simple, portable, and efficient.
10794 # So, don't put newlines in cache variables' values.
10795 # Ultrix sh set writes to stderr and can't be redirected directly,
10796 # and sets the high bit in the cache file unless we assign to the vars.
10797 (set) 2>&1 |
10798 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10799 *ac_space=\ *)
10800 # `set' does not quote correctly, so add quotes (double-quote substitution
10801 # turns \\\\ into \\, and sed turns \\ into \).
10802 sed -n \
10803 -e "s/'/'\\\\''/g" \
10804 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10805 ;;
10806 *)
10807 # `set' quotes correctly as required by POSIX, so do not add quotes.
10808 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10809 ;;
10810 esac >> confcache
10811 if cmp -s $cache_file confcache; then
10812 :
10813 else
10814 if test -w $cache_file; then
10815 echo "updating cache $cache_file"
10816 cat confcache > $cache_file
10817 else
10818 echo "not updating unwritable cache $cache_file"
10819 fi
10820 fi
10821 rm -f confcache
10822
10823
10824
10825 if test "$TOOLKIT" != "MSW"; then
10826
10827
10828 THREADS_LINK=""
10829 THREADS_OBJ=""
10830
10831 if test "$wxUSE_THREADS" = "yes" ; then
10832 if test "$wxUSE_WINE" = 1 ; then
10833 echo "configure: warning: Threads are not supported under WINE" 1>&2
10834 wxUSE_THREADS="no"
10835 elif test "$USE_BEOS" = 1; then
10836 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10837 wxUSE_THREADS="no"
10838 fi
10839 fi
10840
10841 if test "$wxUSE_THREADS" = "yes" ; then
10842
10843 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10844 echo "configure:10845: checking for pthread_create in -lpthread" >&5
10845 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10847 echo $ac_n "(cached) $ac_c" 1>&6
10848 else
10849 ac_save_LIBS="$LIBS"
10850 LIBS="-lpthread $LIBS"
10851 cat > conftest.$ac_ext <<EOF
10852 #line 10853 "configure"
10853 #include "confdefs.h"
10854 /* Override any gcc2 internal prototype to avoid an error. */
10855 /* We use char because int might match the return type of a gcc2
10856 builtin and then its argument prototype would still apply. */
10857 char pthread_create();
10858
10859 int main() {
10860 pthread_create()
10861 ; return 0; }
10862 EOF
10863 if { (eval echo configure:10864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10864 rm -rf conftest*
10865 eval "ac_cv_lib_$ac_lib_var=yes"
10866 else
10867 echo "configure: failed program was:" >&5
10868 cat conftest.$ac_ext >&5
10869 rm -rf conftest*
10870 eval "ac_cv_lib_$ac_lib_var=no"
10871 fi
10872 rm -f conftest*
10873 LIBS="$ac_save_LIBS"
10874
10875 fi
10876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10877 echo "$ac_t""yes" 1>&6
10878
10879 THREADS_OBJ="threadpsx.lo"
10880 THREADS_LINK="pthread"
10881
10882 else
10883 echo "$ac_t""no" 1>&6
10884
10885 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10886 echo "configure:10887: checking for pthread_create in -lc_r" >&5
10887 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10889 echo $ac_n "(cached) $ac_c" 1>&6
10890 else
10891 ac_save_LIBS="$LIBS"
10892 LIBS="-lc_r $LIBS"
10893 cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 /* Override any gcc2 internal prototype to avoid an error. */
10897 /* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10899 char pthread_create();
10900
10901 int main() {
10902 pthread_create()
10903 ; return 0; }
10904 EOF
10905 if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10906 rm -rf conftest*
10907 eval "ac_cv_lib_$ac_lib_var=yes"
10908 else
10909 echo "configure: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10911 rm -rf conftest*
10912 eval "ac_cv_lib_$ac_lib_var=no"
10913 fi
10914 rm -f conftest*
10915 LIBS="$ac_save_LIBS"
10916
10917 fi
10918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10919 echo "$ac_t""yes" 1>&6
10920
10921 THREADS_OBJ="threadpsx.lo"
10922 THREADS_LINK="c_r"
10923
10924 else
10925 echo "$ac_t""no" 1>&6
10926
10927 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10928 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10929 echo "configure:10930: checking for sys/prctl.h" >&5
10930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10931 echo $ac_n "(cached) $ac_c" 1>&6
10932 else
10933 cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 #include <sys/prctl.h>
10937 EOF
10938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10939 { (eval echo configure:10940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10941 if test -z "$ac_err"; then
10942 rm -rf conftest*
10943 eval "ac_cv_header_$ac_safe=yes"
10944 else
10945 echo "$ac_err" >&5
10946 echo "configure: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10948 rm -rf conftest*
10949 eval "ac_cv_header_$ac_safe=no"
10950 fi
10951 rm -f conftest*
10952 fi
10953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10954 echo "$ac_t""yes" 1>&6
10955
10956 THREADS_OBJ="threadsgi.lo"
10957
10958 else
10959 echo "$ac_t""no" 1>&6
10960 fi
10961
10962
10963 fi
10964
10965
10966 fi
10967
10968
10969 if test -z "$THREADS_OBJ" ; then
10970 wxUSE_THREADS=no
10971 echo "configure: warning: No thread support on this system" 1>&2
10972 fi
10973 fi
10974
10975 if test "$wxUSE_THREADS" = "yes" ; then
10976 for ac_func in thr_setconcurrency
10977 do
10978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10979 echo "configure:10980: checking for $ac_func" >&5
10980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10981 echo $ac_n "(cached) $ac_c" 1>&6
10982 else
10983 cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10986 /* System header to define __stub macros and hopefully few prototypes,
10987 which can conflict with char $ac_func(); below. */
10988 #include <assert.h>
10989 /* Override any gcc2 internal prototype to avoid an error. */
10990 /* We use char because int might match the return type of a gcc2
10991 builtin and then its argument prototype would still apply. */
10992 char $ac_func();
10993
10994 int main() {
10995
10996 /* The GNU C library defines this for functions which it implements
10997 to always fail with ENOSYS. Some functions are actually named
10998 something starting with __ and the normal name is an alias. */
10999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11000 choke me
11001 #else
11002 $ac_func();
11003 #endif
11004
11005 ; return 0; }
11006 EOF
11007 if { (eval echo configure:11008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11008 rm -rf conftest*
11009 eval "ac_cv_func_$ac_func=yes"
11010 else
11011 echo "configure: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11013 rm -rf conftest*
11014 eval "ac_cv_func_$ac_func=no"
11015 fi
11016 rm -f conftest*
11017 fi
11018
11019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11020 echo "$ac_t""yes" 1>&6
11021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11022 cat >> confdefs.h <<EOF
11023 #define $ac_tr_func 1
11024 EOF
11025
11026 else
11027 echo "$ac_t""no" 1>&6
11028 fi
11029 done
11030
11031
11032
11033 for ac_hdr in sched.h
11034 do
11035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11037 echo "configure:11038: checking for $ac_hdr" >&5
11038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11039 echo $ac_n "(cached) $ac_c" 1>&6
11040 else
11041 cat > conftest.$ac_ext <<EOF
11042 #line 11043 "configure"
11043 #include "confdefs.h"
11044 #include <$ac_hdr>
11045 EOF
11046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11047 { (eval echo configure:11048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11049 if test -z "$ac_err"; then
11050 rm -rf conftest*
11051 eval "ac_cv_header_$ac_safe=yes"
11052 else
11053 echo "$ac_err" >&5
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11056 rm -rf conftest*
11057 eval "ac_cv_header_$ac_safe=no"
11058 fi
11059 rm -f conftest*
11060 fi
11061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11062 echo "$ac_t""yes" 1>&6
11063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11064 cat >> confdefs.h <<EOF
11065 #define $ac_tr_hdr 1
11066 EOF
11067
11068 else
11069 echo "$ac_t""no" 1>&6
11070 fi
11071 done
11072
11073
11074 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
11075 echo "configure:11076: checking for sched_yield in -l$THREADS_LINK" >&5
11076 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11079 else
11080 ac_save_LIBS="$LIBS"
11081 LIBS="-l$THREADS_LINK $LIBS"
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11085 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088 char sched_yield();
11089
11090 int main() {
11091 sched_yield()
11092 ; return 0; }
11093 EOF
11094 if { (eval echo configure:11095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11095 rm -rf conftest*
11096 eval "ac_cv_lib_$ac_lib_var=yes"
11097 else
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11100 rm -rf conftest*
11101 eval "ac_cv_lib_$ac_lib_var=no"
11102 fi
11103 rm -f conftest*
11104 LIBS="$ac_save_LIBS"
11105
11106 fi
11107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11108 echo "$ac_t""yes" 1>&6
11109 cat >> confdefs.h <<\EOF
11110 #define HAVE_SCHED_YIELD 1
11111 EOF
11112
11113 else
11114 echo "$ac_t""no" 1>&6
11115 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
11116 echo "configure:11117: checking for sched_yield in -l"posix4"" >&5
11117 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
11120 else
11121 ac_save_LIBS="$LIBS"
11122 LIBS="-l"posix4" $LIBS"
11123 cat > conftest.$ac_ext <<EOF
11124 #line 11125 "configure"
11125 #include "confdefs.h"
11126 /* Override any gcc2 internal prototype to avoid an error. */
11127 /* We use char because int might match the return type of a gcc2
11128 builtin and then its argument prototype would still apply. */
11129 char sched_yield();
11130
11131 int main() {
11132 sched_yield()
11133 ; return 0; }
11134 EOF
11135 if { (eval echo configure:11136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11136 rm -rf conftest*
11137 eval "ac_cv_lib_$ac_lib_var=yes"
11138 else
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11141 rm -rf conftest*
11142 eval "ac_cv_lib_$ac_lib_var=no"
11143 fi
11144 rm -f conftest*
11145 LIBS="$ac_save_LIBS"
11146
11147 fi
11148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11149 echo "$ac_t""yes" 1>&6
11150 cat >> confdefs.h <<\EOF
11151 #define HAVE_SCHED_YIELD 1
11152 EOF
11153 POSIX4_LINK="-lposix4"
11154 else
11155 echo "$ac_t""no" 1>&6
11156 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11157
11158 fi
11159
11160
11161 fi
11162
11163
11164 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
11165 echo "configure:11166: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
11166 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11169 else
11170 ac_save_LIBS="$LIBS"
11171 LIBS="-l$THREADS_LINK $LIBS"
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11175 /* Override any gcc2 internal prototype to avoid an error. */
11176 /* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11178 char pthread_attr_getschedpolicy();
11179
11180 int main() {
11181 pthread_attr_getschedpolicy()
11182 ; return 0; }
11183 EOF
11184 if { (eval echo configure:11185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11185 rm -rf conftest*
11186 eval "ac_cv_lib_$ac_lib_var=yes"
11187 else
11188 echo "configure: failed program was:" >&5
11189 cat conftest.$ac_ext >&5
11190 rm -rf conftest*
11191 eval "ac_cv_lib_$ac_lib_var=no"
11192 fi
11193 rm -f conftest*
11194 LIBS="$ac_save_LIBS"
11195
11196 fi
11197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11198 echo "$ac_t""yes" 1>&6
11199 cat >> confdefs.h <<\EOF
11200 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11201 EOF
11202
11203 else
11204 echo "$ac_t""no" 1>&6
11205 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
11206 echo "configure:11207: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
11207 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11209 echo $ac_n "(cached) $ac_c" 1>&6
11210 else
11211 ac_save_LIBS="$LIBS"
11212 LIBS="-l"posix4" $LIBS"
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 /* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */
11219 char pthread_attr_getschedpolicy();
11220
11221 int main() {
11222 pthread_attr_getschedpolicy()
11223 ; return 0; }
11224 EOF
11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11226 rm -rf conftest*
11227 eval "ac_cv_lib_$ac_lib_var=yes"
11228 else
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11231 rm -rf conftest*
11232 eval "ac_cv_lib_$ac_lib_var=no"
11233 fi
11234 rm -f conftest*
11235 LIBS="$ac_save_LIBS"
11236
11237 fi
11238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11239 echo "$ac_t""yes" 1>&6
11240 cat >> confdefs.h <<\EOF
11241 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11242 EOF
11243 POSIX4_LINK="-lposix4"
11244 else
11245 echo "$ac_t""no" 1>&6
11246 echo "configure: warning: Setting thread priority will not work" 1>&2
11247
11248 fi
11249
11250
11251 fi
11252
11253
11254 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
11255 echo "configure:11256: checking for pthread_cancel in -l$THREADS_LINK" >&5
11256 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
11259 else
11260 ac_save_LIBS="$LIBS"
11261 LIBS="-l$THREADS_LINK $LIBS"
11262 cat > conftest.$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11265 /* Override any gcc2 internal prototype to avoid an error. */
11266 /* We use char because int might match the return type of a gcc2
11267 builtin and then its argument prototype would still apply. */
11268 char pthread_cancel();
11269
11270 int main() {
11271 pthread_cancel()
11272 ; return 0; }
11273 EOF
11274 if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11275 rm -rf conftest*
11276 eval "ac_cv_lib_$ac_lib_var=yes"
11277 else
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 rm -rf conftest*
11281 eval "ac_cv_lib_$ac_lib_var=no"
11282 fi
11283 rm -f conftest*
11284 LIBS="$ac_save_LIBS"
11285
11286 fi
11287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11289 cat >> confdefs.h <<\EOF
11290 #define HAVE_PTHREAD_CANCEL 1
11291 EOF
11292
11293 else
11294 echo "$ac_t""no" 1>&6
11295 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11296 fi
11297
11298
11299 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
11300 echo "configure:11301: checking for pthread_cleanup_push/pop" >&5
11301 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303 else
11304
11305 cat > conftest.$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11308 #include <pthread.h>
11309 int main() {
11310
11311 pthread_cleanup_push(NULL, NULL);
11312 pthread_cleanup_pop(0);
11313
11314 ; return 0; }
11315 EOF
11316 if { (eval echo configure:11317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11317 rm -rf conftest*
11318
11319 wx_cv_func_pthread_cleanup_push=yes
11320 cat >> confdefs.h <<\EOF
11321 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11322 EOF
11323
11324
11325 else
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 rm -rf conftest*
11329
11330 wx_cv_func_pthread_cleanup_push=no
11331
11332 fi
11333 rm -f conftest*
11334
11335 fi
11336
11337 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11338
11339 THREADS_LINK="-l$THREADS_LINK"
11340 fi
11341
11342 fi
11343
11344 if test "$wxUSE_THREADS" = "yes"; then
11345 cat >> confdefs.h <<\EOF
11346 #define wxUSE_THREADS 1
11347 EOF
11348
11349
11350 CFLAGS="${CFLAGS} -D_REENTRANT"
11351 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11352
11353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11354 else
11355 if test "$ac_cv_func_strtok_r" = "yes"; then
11356 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
11357 echo "configure:11358: checking if -D_REENTRANT is needed" >&5
11358 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11359 CFLAGS="${CFLAGS} -D_REENTRANT"
11360 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11361 echo "$ac_t""yes" 1>&6
11362 else
11363 echo "$ac_t""no" 1>&6
11364 fi
11365 fi
11366 fi
11367
11368 if test "$WXGTK13" = 1 ; then
11369 cat >> confdefs.h <<EOF
11370 #define __WXGTK13__ $WXGTK13
11371 EOF
11372
11373 WXGTK12=1
11374 fi
11375
11376 if test "$WXGTK12" = 1 ; then
11377 cat >> confdefs.h <<EOF
11378 #define __WXGTK12__ $WXGTK12
11379 EOF
11380
11381 fi
11382
11383 if test "$WXWINE" = 1 ; then
11384 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11385 fi
11386
11387 if test "$wxUSE_CYGWIN" = 1 ; then
11388 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11389 fi
11390
11391 WXDEBUG=
11392
11393 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11394 WXDEBUG="-g"
11395 wxUSE_OPTIMISE=no
11396 fi
11397
11398 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11399 wxUSE_DEBUG_INFO=yes
11400 WXDEBUG="-ggdb"
11401 fi
11402
11403 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11404 cat >> confdefs.h <<\EOF
11405 #define WXDEBUG 1
11406 EOF
11407
11408 WXDEBUG_DEFINE="-D__WXDEBUG__"
11409 else
11410 if test "$wxUSE_GTK" = 1 ; then
11411 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11412 fi
11413 fi
11414
11415 if test "$wxUSE_MEM_TRACING" = "yes" ; then
11416 cat >> confdefs.h <<\EOF
11417 #define wxUSE_MEMORY_TRACING 1
11418 EOF
11419
11420 cat >> confdefs.h <<\EOF
11421 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11422 EOF
11423
11424 cat >> confdefs.h <<\EOF
11425 #define wxUSE_DEBUG_NEW_ALWAYS 1
11426 EOF
11427
11428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11429 fi
11430
11431 if test "$wxUSE_DMALLOC" = "yes" ; then
11432 DMALLOC_LINK="-ldmalloc"
11433 fi
11434
11435 PROFILE=
11436 if test "$wxUSE_PROFILE" = "yes" ; then
11437 PROFILE="-pg"
11438 fi
11439
11440 DEP_INFO_FLAGS=
11441 CODE_GEN_FLAGS=
11442 if test "$GCC" = yes ; then
11443 if test "$wxUSE_NO_RTTI" = "yes" ; then
11444 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
11445 fi
11446 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11447 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
11448 fi
11449 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11450 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
11451 fi
11452 if test "$wxUSE_NO_DEPS" = "no" ; then
11453 DEP_INFO_FLAGS="-MMD"
11454 fi
11455 fi
11456
11457
11458 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11459 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11460 if test "$wxUSE_OPTIMISE" = "no" ; then
11461 OPTIMISE=
11462 else
11463 if test "$GCC" = yes ; then
11464 OPTIMISE="-O2"
11465 case "${host}" in
11466 i586-*-*|i686-*-* )
11467 OPTIMISE="${OPTIMISE} "
11468 ;;
11469 esac
11470 else
11471 OPTIMISE="-O"
11472 fi
11473 fi
11474
11475
11476 ZLIB_INCLUDE=
11477 if test "$wxUSE_ZLIB" = "yes" ; then
11478 cat >> confdefs.h <<\EOF
11479 #define wxUSE_ZLIB 1
11480 EOF
11481
11482 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11483 fi
11484
11485 PNG_INCLUDE=
11486 if test "$wxUSE_LIBPNG" = "yes" ; then
11487 cat >> confdefs.h <<\EOF
11488 #define wxUSE_LIBPNG 1
11489 EOF
11490
11491 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11493 fi
11494
11495 JPEG_INCLUDE=
11496 if test "$wxUSE_LIBJPEG" = "yes" ; then
11497 cat >> confdefs.h <<\EOF
11498 #define wxUSE_LIBJPEG 1
11499 EOF
11500
11501 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11502 fi
11503
11504 TIFF_INCLUDE=
11505 if test "$wxUSE_LIBTIFF" = "yes" ; then
11506 cat >> confdefs.h <<\EOF
11507 #define wxUSE_LIBTIFF 1
11508 EOF
11509
11510 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11511 fi
11512
11513 if test "$wxUSE_OPENGL" = "yes"; then
11514 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11515 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11516 echo "configure:11517: checking for GL/gl.h" >&5
11517 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11518 echo $ac_n "(cached) $ac_c" 1>&6
11519 else
11520 cat > conftest.$ac_ext <<EOF
11521 #line 11522 "configure"
11522 #include "confdefs.h"
11523 #include <GL/gl.h>
11524 EOF
11525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11526 { (eval echo configure:11527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11528 if test -z "$ac_err"; then
11529 rm -rf conftest*
11530 eval "ac_cv_header_$ac_safe=yes"
11531 else
11532 echo "$ac_err" >&5
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11535 rm -rf conftest*
11536 eval "ac_cv_header_$ac_safe=no"
11537 fi
11538 rm -f conftest*
11539 fi
11540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11541 echo "$ac_t""yes" 1>&6
11542
11543 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
11544 echo "configure:11545: checking for glInitNames in -lGL" >&5
11545 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11547 echo $ac_n "(cached) $ac_c" 1>&6
11548 else
11549 ac_save_LIBS="$LIBS"
11550 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11551 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11554 /* Override any gcc2 internal prototype to avoid an error. */
11555 /* We use char because int might match the return type of a gcc2
11556 builtin and then its argument prototype would still apply. */
11557 char glInitNames();
11558
11559 int main() {
11560 glInitNames()
11561 ; return 0; }
11562 EOF
11563 if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11564 rm -rf conftest*
11565 eval "ac_cv_lib_$ac_lib_var=yes"
11566 else
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -rf conftest*
11570 eval "ac_cv_lib_$ac_lib_var=no"
11571 fi
11572 rm -f conftest*
11573 LIBS="$ac_save_LIBS"
11574
11575 fi
11576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11577 echo "$ac_t""yes" 1>&6
11578
11579 OPENGL_LINK="-lGL"
11580 cat >> confdefs.h <<\EOF
11581 #define wxUSE_OPENGL 1
11582 EOF
11583
11584 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11585
11586 else
11587 echo "$ac_t""no" 1>&6
11588
11589 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
11590 echo "configure:11591: checking for glInitNames in -lMesaGL" >&5
11591 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11594 else
11595 ac_save_LIBS="$LIBS"
11596 LIBS="-lMesaGL $LIBS"
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11600 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603 char glInitNames();
11604
11605 int main() {
11606 glInitNames()
11607 ; return 0; }
11608 EOF
11609 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11610 rm -rf conftest*
11611 eval "ac_cv_lib_$ac_lib_var=yes"
11612 else
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 rm -rf conftest*
11616 eval "ac_cv_lib_$ac_lib_var=no"
11617 fi
11618 rm -f conftest*
11619 LIBS="$ac_save_LIBS"
11620
11621 fi
11622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11623 echo "$ac_t""yes" 1>&6
11624
11625 OPENGL_LINK="-lMesaGL"
11626 cat >> confdefs.h <<\EOF
11627 #define wxUSE_OPENGL 1
11628 EOF
11629
11630 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11631
11632 else
11633 echo "$ac_t""no" 1>&6
11634 wxUSE_OPENGL=0
11635 fi
11636
11637
11638 fi
11639
11640
11641 else
11642 echo "$ac_t""no" 1>&6
11643 wxUSE_OPENGL=0
11644 fi
11645
11646 fi
11647
11648
11649 if test "$wxUSE_GUI" = "yes"; then
11650 cat >> confdefs.h <<\EOF
11651 #define wxUSE_GUI 1
11652 EOF
11653
11654
11655 else
11656 cat >> confdefs.h <<\EOF
11657 #define wxUSE_NOGUI 1
11658 EOF
11659
11660 fi
11661
11662
11663 if test "$wxUSE_UNIX" = "yes"; then
11664 cat >> confdefs.h <<\EOF
11665 #define wxUSE_UNIX 1
11666 EOF
11667
11668 fi
11669
11670
11671 if test "$wxUSE_APPLE_IEEE" = "yes"; then
11672 cat >> confdefs.h <<\EOF
11673 #define wxUSE_APPLE_IEEE 1
11674 EOF
11675
11676 fi
11677
11678 if test "$wxUSE_WAVE" = "yes"; then
11679 cat >> confdefs.h <<\EOF
11680 #define wxUSE_WAVE 1
11681 EOF
11682
11683 fi
11684
11685 if test "$wxUSE_FILE" = "yes"; then
11686 cat >> confdefs.h <<\EOF
11687 #define wxUSE_FILE 1
11688 EOF
11689
11690 fi
11691
11692 if test "$wxUSE_FILESYSTEM" = "yes"; then
11693 cat >> confdefs.h <<\EOF
11694 #define wxUSE_FILESYSTEM 1
11695 EOF
11696
11697 fi
11698
11699 if test "$wxUSE_FS_INET" = "yes"; then
11700 cat >> confdefs.h <<\EOF
11701 #define wxUSE_FS_INET 1
11702 EOF
11703
11704 fi
11705
11706 if test "$wxUSE_FS_ZIP" = "yes"; then
11707 cat >> confdefs.h <<\EOF
11708 #define wxUSE_FS_ZIP 1
11709 EOF
11710
11711 fi
11712
11713 if test "$wxUSE_ZIPSTREAM" = "yes"; then
11714 cat >> confdefs.h <<\EOF
11715 #define wxUSE_ZIPSTREAM 1
11716 EOF
11717
11718 fi
11719
11720 if test "$wxUSE_BUSYINFO" = "yes"; then
11721 cat >> confdefs.h <<\EOF
11722 #define wxUSE_BUSYINFO 1
11723 EOF
11724
11725 fi
11726
11727 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11728 cat >> confdefs.h <<\EOF
11729 #define wxUSE_STD_IOSTREAM 1
11730 EOF
11731
11732 fi
11733
11734 if test "$wxUSE_TEXTFILE" = "yes"; then
11735 if test "$wxUSE_FILE" != "yes"; then
11736 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11737 else
11738 cat >> confdefs.h <<\EOF
11739 #define wxUSE_TEXTFILE 1
11740 EOF
11741
11742 fi
11743 fi
11744
11745 if test "$wxUSE_CONFIG" = "yes" ; then
11746 if test "$wxUSE_TEXTFILE" != "yes"; then
11747 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11748 else
11749 cat >> confdefs.h <<\EOF
11750 #define wxUSE_CONFIG 1
11751 EOF
11752
11753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11754 fi
11755 fi
11756
11757 if test "$wxUSE_INTL" = "yes" ; then
11758 if test "$wxUSE_FILE" != "yes"; then
11759 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11760 else
11761 cat >> confdefs.h <<\EOF
11762 #define wxUSE_INTL 1
11763 EOF
11764
11765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11766 fi
11767 fi
11768
11769 if test "$wxUSE_LOG" = "yes"; then
11770 cat >> confdefs.h <<\EOF
11771 #define wxUSE_LOG 1
11772 EOF
11773
11774 fi
11775
11776 if test "$wxUSE_LONGLONG" = "yes"; then
11777 cat >> confdefs.h <<\EOF
11778 #define wxUSE_LONGLONG 1
11779 EOF
11780
11781 fi
11782
11783 if test "$wxUSE_PLOT" = "yes"; then
11784 cat >> confdefs.h <<\EOF
11785 #define wxUSE_PLOT 1
11786 EOF
11787
11788 fi
11789
11790 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11791 cat >> confdefs.h <<\EOF
11792 #define wxUSE_DIALUP_MANAGER 1
11793 EOF
11794
11795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
11796 fi
11797
11798 if test "$wxUSE_STREAMS" = "yes" ; then
11799 cat >> confdefs.h <<\EOF
11800 #define wxUSE_STREAMS 1
11801 EOF
11802
11803 fi
11804
11805
11806 if test "$wxUSE_TIMEDATE" = "yes"; then
11807 for ac_func in strptime
11808 do
11809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11810 echo "configure:11811: checking for $ac_func" >&5
11811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11812 echo $ac_n "(cached) $ac_c" 1>&6
11813 else
11814 cat > conftest.$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11817 /* System header to define __stub macros and hopefully few prototypes,
11818 which can conflict with char $ac_func(); below. */
11819 #include <assert.h>
11820 /* Override any gcc2 internal prototype to avoid an error. */
11821 /* We use char because int might match the return type of a gcc2
11822 builtin and then its argument prototype would still apply. */
11823 char $ac_func();
11824
11825 int main() {
11826
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11831 choke me
11832 #else
11833 $ac_func();
11834 #endif
11835
11836 ; return 0; }
11837 EOF
11838 if { (eval echo configure:11839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11839 rm -rf conftest*
11840 eval "ac_cv_func_$ac_func=yes"
11841 else
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11844 rm -rf conftest*
11845 eval "ac_cv_func_$ac_func=no"
11846 fi
11847 rm -f conftest*
11848 fi
11849
11850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11851 echo "$ac_t""yes" 1>&6
11852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11853 cat >> confdefs.h <<EOF
11854 #define $ac_tr_func 1
11855 EOF
11856
11857 else
11858 echo "$ac_t""no" 1>&6
11859 fi
11860 done
11861
11862
11863 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
11864 echo "configure:11865: checking for timezone variable in <time.h>" >&5
11865 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11867 else
11868
11869 cat > conftest.$ac_ext <<EOF
11870 #line 11871 "configure"
11871 #include "confdefs.h"
11872
11873 #include <time.h>
11874
11875 int main() {
11876
11877 int tz;
11878 tz = __timezone;
11879
11880 ; return 0; }
11881 EOF
11882 if { (eval echo configure:11883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11883 rm -rf conftest*
11884
11885 wx_cv_var_timezone=__timezone
11886
11887 else
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11890 rm -rf conftest*
11891
11892 cat > conftest.$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895
11896 #include <time.h>
11897
11898 int main() {
11899
11900 int tz;
11901 tz = _timezone;
11902
11903 ; return 0; }
11904 EOF
11905 if { (eval echo configure:11906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11906 rm -rf conftest*
11907
11908 wx_cv_var_timezone=_timezone
11909
11910 else
11911 echo "configure: failed program was:" >&5
11912 cat conftest.$ac_ext >&5
11913 rm -rf conftest*
11914
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918
11919 #include <time.h>
11920
11921 int main() {
11922
11923 int tz;
11924 tz = timezone;
11925
11926 ; return 0; }
11927 EOF
11928 if { (eval echo configure:11929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11929 rm -rf conftest*
11930
11931 wx_cv_var_timezone=timezone
11932
11933 else
11934 echo "configure: failed program was:" >&5
11935 cat conftest.$ac_ext >&5
11936 rm -rf conftest*
11937 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
11938
11939 fi
11940 rm -f conftest*
11941
11942
11943 fi
11944 rm -f conftest*
11945
11946
11947 fi
11948 rm -f conftest*
11949
11950
11951 fi
11952
11953 echo "$ac_t""$wx_cv_var_timezone" 1>&6
11954
11955 cat >> confdefs.h <<EOF
11956 #define WX_TIMEZONE $wx_cv_var_timezone
11957 EOF
11958
11959
11960 for ac_func in localtime
11961 do
11962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11963 echo "configure:11964: checking for $ac_func" >&5
11964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11966 else
11967 cat > conftest.$ac_ext <<EOF
11968 #line 11969 "configure"
11969 #include "confdefs.h"
11970 /* System header to define __stub macros and hopefully few prototypes,
11971 which can conflict with char $ac_func(); below. */
11972 #include <assert.h>
11973 /* Override any gcc2 internal prototype to avoid an error. */
11974 /* We use char because int might match the return type of a gcc2
11975 builtin and then its argument prototype would still apply. */
11976 char $ac_func();
11977
11978 int main() {
11979
11980 /* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11984 choke me
11985 #else
11986 $ac_func();
11987 #endif
11988
11989 ; return 0; }
11990 EOF
11991 if { (eval echo configure:11992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11992 rm -rf conftest*
11993 eval "ac_cv_func_$ac_func=yes"
11994 else
11995 echo "configure: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 rm -rf conftest*
11998 eval "ac_cv_func_$ac_func=no"
11999 fi
12000 rm -f conftest*
12001 fi
12002
12003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12004 echo "$ac_t""yes" 1>&6
12005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12006 cat >> confdefs.h <<EOF
12007 #define $ac_tr_func 1
12008 EOF
12009
12010 else
12011 echo "$ac_t""no" 1>&6
12012 fi
12013 done
12014
12015
12016 if test "$ac_cv_func_localtime" = "yes"; then
12017 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
12018 echo "configure:12019: checking for tm_gmtoff in struct tm" >&5
12019 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
12021 else
12022
12023 cat > conftest.$ac_ext <<EOF
12024 #line 12025 "configure"
12025 #include "confdefs.h"
12026
12027 #include <time.h>
12028
12029 int main() {
12030
12031 struct tm tm;
12032 tm.tm_gmtoff++;
12033
12034 ; return 0; }
12035 EOF
12036 if { (eval echo configure:12037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12037 rm -rf conftest*
12038
12039 wx_cv_struct_tm_has_gmtoff=yes
12040 cat >> confdefs.h <<\EOF
12041 #define WX_GMTOFF_IN_TM 1
12042 EOF
12043
12044
12045 else
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12048 rm -rf conftest*
12049 wx_cv_struct_tm_has_gmtoff=no
12050
12051 fi
12052 rm -f conftest*
12053
12054 fi
12055
12056 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
12057 fi
12058
12059 for ac_func in gettimeofday ftime
12060 do
12061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12062 echo "configure:12063: checking for $ac_func" >&5
12063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12065 else
12066 cat > conftest.$ac_ext <<EOF
12067 #line 12068 "configure"
12068 #include "confdefs.h"
12069 /* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char $ac_func(); below. */
12071 #include <assert.h>
12072 /* Override any gcc2 internal prototype to avoid an error. */
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075 char $ac_func();
12076
12077 int main() {
12078
12079 /* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12083 choke me
12084 #else
12085 $ac_func();
12086 #endif
12087
12088 ; return 0; }
12089 EOF
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12091 rm -rf conftest*
12092 eval "ac_cv_func_$ac_func=yes"
12093 else
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12096 rm -rf conftest*
12097 eval "ac_cv_func_$ac_func=no"
12098 fi
12099 rm -f conftest*
12100 fi
12101
12102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12103 echo "$ac_t""yes" 1>&6
12104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12105 cat >> confdefs.h <<EOF
12106 #define $ac_tr_func 1
12107 EOF
12108 break
12109 else
12110 echo "$ac_t""no" 1>&6
12111 fi
12112 done
12113
12114
12115 if test "$ac_cv_func_gettimeofday" = "yes"; then
12116 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
12117 echo "configure:12118: checking whether gettimeofday takes two arguments" >&5
12118 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
12120 else
12121
12122
12123 ac_ext=C
12124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12125 ac_cpp='$CXXCPP $CPPFLAGS'
12126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12128 cross_compiling=$ac_cv_prog_cxx_cross
12129
12130
12131 cat > conftest.$ac_ext <<EOF
12132 #line 12133 "configure"
12133 #include "confdefs.h"
12134
12135 #include <sys/time.h>
12136 #include <unistd.h>
12137
12138 int main() {
12139
12140 struct timeval tv;
12141 struct timezone tz;
12142 gettimeofday(&tv, &tz);
12143
12144 ; return 0; }
12145 EOF
12146 if { (eval echo configure:12147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12147 rm -rf conftest*
12148 wx_cv_func_gettimeofday_has_2_args=yes
12149 else
12150 echo "configure: failed program was:" >&5
12151 cat conftest.$ac_ext >&5
12152 rm -rf conftest*
12153 cat > conftest.$ac_ext <<EOF
12154 #line 12155 "configure"
12155 #include "confdefs.h"
12156
12157 #include <sys/time.h>
12158 #include <unistd.h>
12159
12160 int main() {
12161
12162 struct timeval tv;
12163 gettimeofday(&tv);
12164
12165 ; return 0; }
12166 EOF
12167 if { (eval echo configure:12168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12168 rm -rf conftest*
12169 wx_cv_func_gettimeofday_has_2_args=no
12170 else
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 rm -rf conftest*
12174 wx_cv_func_gettimeofday_has_2_args=unknown
12175
12176 fi
12177 rm -f conftest*
12178
12179 fi
12180 rm -f conftest*
12181 ac_ext=c
12182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12183 ac_cpp='$CPP $CPPFLAGS'
12184 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12185 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12186 cross_compiling=$ac_cv_prog_cc_cross
12187
12188
12189 fi
12190
12191 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
12192
12193 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12194 cat >> confdefs.h <<\EOF
12195 #define WX_GETTIMEOFDAY_NO_TZ 1
12196 EOF
12197
12198 fi
12199 fi
12200
12201 cat >> confdefs.h <<\EOF
12202 #define wxUSE_TIMEDATE 1
12203 EOF
12204
12205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12206 fi
12207
12208
12209 if test "$TOOLKIT" != "MSW"; then
12210
12211 if test "$wxUSE_SOCKETS" = "yes"; then
12212 echo $ac_n "checking for socket""... $ac_c" 1>&6
12213 echo "configure:12214: checking for socket" >&5
12214 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12215 echo $ac_n "(cached) $ac_c" 1>&6
12216 else
12217 cat > conftest.$ac_ext <<EOF
12218 #line 12219 "configure"
12219 #include "confdefs.h"
12220 /* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char socket(); below. */
12222 #include <assert.h>
12223 /* Override any gcc2 internal prototype to avoid an error. */
12224 /* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12226 char socket();
12227
12228 int main() {
12229
12230 /* The GNU C library defines this for functions which it implements
12231 to always fail with ENOSYS. Some functions are actually named
12232 something starting with __ and the normal name is an alias. */
12233 #if defined (__stub_socket) || defined (__stub___socket)
12234 choke me
12235 #else
12236 socket();
12237 #endif
12238
12239 ; return 0; }
12240 EOF
12241 if { (eval echo configure:12242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12242 rm -rf conftest*
12243 eval "ac_cv_func_socket=yes"
12244 else
12245 echo "configure: failed program was:" >&5
12246 cat conftest.$ac_ext >&5
12247 rm -rf conftest*
12248 eval "ac_cv_func_socket=no"
12249 fi
12250 rm -f conftest*
12251 fi
12252
12253 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12254 echo "$ac_t""yes" 1>&6
12255 :
12256 else
12257 echo "$ac_t""no" 1>&6
12258 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
12259 echo "configure:12260: checking for socket in -lsocket" >&5
12260 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12262 echo $ac_n "(cached) $ac_c" 1>&6
12263 else
12264 ac_save_LIBS="$LIBS"
12265 LIBS="-lsocket $LIBS"
12266 cat > conftest.$ac_ext <<EOF
12267 #line 12268 "configure"
12268 #include "confdefs.h"
12269 /* Override any gcc2 internal prototype to avoid an error. */
12270 /* We use char because int might match the return type of a gcc2
12271 builtin and then its argument prototype would still apply. */
12272 char socket();
12273
12274 int main() {
12275 socket()
12276 ; return 0; }
12277 EOF
12278 if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12279 rm -rf conftest*
12280 eval "ac_cv_lib_$ac_lib_var=yes"
12281 else
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 rm -rf conftest*
12285 eval "ac_cv_lib_$ac_lib_var=no"
12286 fi
12287 rm -f conftest*
12288 LIBS="$ac_save_LIBS"
12289
12290 fi
12291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12292 echo "$ac_t""yes" 1>&6
12293 INET_LINK="$INET_LINK -lsocket"
12294 else
12295 echo "$ac_t""no" 1>&6
12296
12297 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12298 wxUSE_SOCKETS=no
12299
12300
12301 fi
12302
12303
12304 fi
12305
12306 fi
12307
12308 fi
12309
12310 if test "$wxUSE_SOCKETS" = "yes" ; then
12311 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
12312 echo "configure:12313: checking what is the type of the third argument of getsockname" >&5
12313 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12314 echo $ac_n "(cached) $ac_c" 1>&6
12315 else
12316
12317
12318 ac_ext=C
12319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12320 ac_cpp='$CXXCPP $CPPFLAGS'
12321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12323 cross_compiling=$ac_cv_prog_cxx_cross
12324
12325
12326 cat > conftest.$ac_ext <<EOF
12327 #line 12328 "configure"
12328 #include "confdefs.h"
12329
12330 #include <sys/types.h>
12331 #include <sys/socket.h>
12332
12333 int main() {
12334
12335 socklen_t len;
12336 getsockname(0, 0, &len);
12337
12338 ; return 0; }
12339 EOF
12340 if { (eval echo configure:12341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12341 rm -rf conftest*
12342 wx_cv_type_getsockname3=socklen_t
12343 else
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 rm -rf conftest*
12347 cat > conftest.$ac_ext <<EOF
12348 #line 12349 "configure"
12349 #include "confdefs.h"
12350
12351 #include <sys/types.h>
12352 #include <sys/socket.h>
12353
12354 int main() {
12355
12356 size_t len;
12357 getsockname(0, 0, &len);
12358
12359 ; return 0; }
12360 EOF
12361 if { (eval echo configure:12362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12362 rm -rf conftest*
12363 wx_cv_type_getsockname3=size_t
12364 else
12365 echo "configure: failed program was:" >&5
12366 cat conftest.$ac_ext >&5
12367 rm -rf conftest*
12368 cat > conftest.$ac_ext <<EOF
12369 #line 12370 "configure"
12370 #include "confdefs.h"
12371
12372 #include <sys/types.h>
12373 #include <sys/socket.h>
12374
12375 int main() {
12376
12377 int len;
12378 getsockname(0, 0, &len);
12379
12380 ; return 0; }
12381 EOF
12382 if { (eval echo configure:12383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12383 rm -rf conftest*
12384 wx_cv_type_getsockname3=int
12385 else
12386 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12388 rm -rf conftest*
12389 wx_cv_type_getsockname3=unknown
12390
12391 fi
12392 rm -f conftest*
12393
12394 fi
12395 rm -f conftest*
12396
12397 fi
12398 rm -f conftest*
12399
12400 ac_ext=c
12401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12402 ac_cpp='$CPP $CPPFLAGS'
12403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12405 cross_compiling=$ac_cv_prog_cc_cross
12406
12407
12408 fi
12409
12410 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12411
12412 if test "$wx_cv_type_getsockname3" = "unknown"; then
12413 wxUSE_SOCKETS=no
12414 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12415 else
12416 cat >> confdefs.h <<EOF
12417 #define SOCKLEN_T $wx_cv_type_getsockname3
12418 EOF
12419
12420 fi
12421 fi
12422
12423 if test "$wxUSE_SOCKETS" = "yes" ; then
12424 cat >> confdefs.h <<\EOF
12425 #define wxUSE_SOCKETS 1
12426 EOF
12427
12428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
12429 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12430 fi
12431
12432
12433 if test "$TOOLKIT" != "MSW"; then
12434
12435 if test "$wxUSE_JOYSTICK" = 1; then
12436 for ac_hdr in linux/joystick.h
12437 do
12438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12440 echo "configure:12441: checking for $ac_hdr" >&5
12441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443 else
12444 cat > conftest.$ac_ext <<EOF
12445 #line 12446 "configure"
12446 #include "confdefs.h"
12447 #include <$ac_hdr>
12448 EOF
12449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12450 { (eval echo configure:12451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12452 if test -z "$ac_err"; then
12453 rm -rf conftest*
12454 eval "ac_cv_header_$ac_safe=yes"
12455 else
12456 echo "$ac_err" >&5
12457 echo "configure: failed program was:" >&5
12458 cat conftest.$ac_ext >&5
12459 rm -rf conftest*
12460 eval "ac_cv_header_$ac_safe=no"
12461 fi
12462 rm -f conftest*
12463 fi
12464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12465 echo "$ac_t""yes" 1>&6
12466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12467 cat >> confdefs.h <<EOF
12468 #define $ac_tr_hdr 1
12469 EOF
12470
12471 else
12472 echo "$ac_t""no" 1>&6
12473 fi
12474 done
12475
12476 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12477 wxUSE_JOYSTICK=0
12478 echo "configure: warning: Joystick not supported yb this system" 1>&2
12479 fi
12480 fi
12481
12482 fi
12483
12484 if test "$wxUSE_JOYSTICK" = 1; then
12485 cat >> confdefs.h <<\EOF
12486 #define wxUSE_JOYSTICK 1
12487 EOF
12488
12489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12490 fi
12491
12492
12493 if test "$TOOLKIT" != "MSW"; then
12494
12495 HAVE_DL_FUNCS=0
12496 HAVE_SHL_FUNCS=0
12497 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12498 for ac_func in dlopen
12499 do
12500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12501 echo "configure:12502: checking for $ac_func" >&5
12502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12504 else
12505 cat > conftest.$ac_ext <<EOF
12506 #line 12507 "configure"
12507 #include "confdefs.h"
12508 /* System header to define __stub macros and hopefully few prototypes,
12509 which can conflict with char $ac_func(); below. */
12510 #include <assert.h>
12511 /* Override any gcc2 internal prototype to avoid an error. */
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12514 char $ac_func();
12515
12516 int main() {
12517
12518 /* The GNU C library defines this for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12522 choke me
12523 #else
12524 $ac_func();
12525 #endif
12526
12527 ; return 0; }
12528 EOF
12529 if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12530 rm -rf conftest*
12531 eval "ac_cv_func_$ac_func=yes"
12532 else
12533 echo "configure: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 rm -rf conftest*
12536 eval "ac_cv_func_$ac_func=no"
12537 fi
12538 rm -f conftest*
12539 fi
12540
12541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12542 echo "$ac_t""yes" 1>&6
12543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12544 cat >> confdefs.h <<EOF
12545 #define $ac_tr_func 1
12546 EOF
12547
12548 cat >> confdefs.h <<\EOF
12549 #define HAVE_DLOPEN 1
12550 EOF
12551
12552 HAVE_DL_FUNCS=1
12553
12554 else
12555 echo "$ac_t""no" 1>&6
12556 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12557 echo "configure:12558: checking for dlopen in -ldl" >&5
12558 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12560 echo $ac_n "(cached) $ac_c" 1>&6
12561 else
12562 ac_save_LIBS="$LIBS"
12563 LIBS="-ldl $LIBS"
12564 cat > conftest.$ac_ext <<EOF
12565 #line 12566 "configure"
12566 #include "confdefs.h"
12567 /* Override any gcc2 internal prototype to avoid an error. */
12568 /* We use char because int might match the return type of a gcc2
12569 builtin and then its argument prototype would still apply. */
12570 char dlopen();
12571
12572 int main() {
12573 dlopen()
12574 ; return 0; }
12575 EOF
12576 if { (eval echo configure:12577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12577 rm -rf conftest*
12578 eval "ac_cv_lib_$ac_lib_var=yes"
12579 else
12580 echo "configure: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12582 rm -rf conftest*
12583 eval "ac_cv_lib_$ac_lib_var=no"
12584 fi
12585 rm -f conftest*
12586 LIBS="$ac_save_LIBS"
12587
12588 fi
12589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12590 echo "$ac_t""yes" 1>&6
12591
12592 cat >> confdefs.h <<\EOF
12593 #define HAVE_DLOPEN 1
12594 EOF
12595
12596 HAVE_DL_FUNCS=1
12597 LIBS="$LIBS -ldl"
12598
12599 else
12600 echo "$ac_t""no" 1>&6
12601
12602 for ac_func in shl_load
12603 do
12604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12605 echo "configure:12606: checking for $ac_func" >&5
12606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12607 echo $ac_n "(cached) $ac_c" 1>&6
12608 else
12609 cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612 /* System header to define __stub macros and hopefully few prototypes,
12613 which can conflict with char $ac_func(); below. */
12614 #include <assert.h>
12615 /* Override any gcc2 internal prototype to avoid an error. */
12616 /* We use char because int might match the return type of a gcc2
12617 builtin and then its argument prototype would still apply. */
12618 char $ac_func();
12619
12620 int main() {
12621
12622 /* The GNU C library defines this for functions which it implements
12623 to always fail with ENOSYS. Some functions are actually named
12624 something starting with __ and the normal name is an alias. */
12625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12626 choke me
12627 #else
12628 $ac_func();
12629 #endif
12630
12631 ; return 0; }
12632 EOF
12633 if { (eval echo configure:12634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12634 rm -rf conftest*
12635 eval "ac_cv_func_$ac_func=yes"
12636 else
12637 echo "configure: failed program was:" >&5
12638 cat conftest.$ac_ext >&5
12639 rm -rf conftest*
12640 eval "ac_cv_func_$ac_func=no"
12641 fi
12642 rm -f conftest*
12643 fi
12644
12645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12646 echo "$ac_t""yes" 1>&6
12647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12648 cat >> confdefs.h <<EOF
12649 #define $ac_tr_func 1
12650 EOF
12651
12652 cat >> confdefs.h <<\EOF
12653 #define HAVE_SHL_LOAD 1
12654 EOF
12655
12656 HAVE_SHL_FUNCS=1
12657
12658 else
12659 echo "$ac_t""no" 1>&6
12660 fi
12661 done
12662
12663
12664 fi
12665
12666
12667 fi
12668 done
12669
12670
12671 if test "$HAVE_DL_FUNCS" = 0; then
12672 if test "$HAVE_SHL_FUNCS" = 0; then
12673 if test "$USE_UNIX" = 1; then
12674 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
12675 wxUSE_DYNLIB_CLASS=no
12676 else
12677 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
12678 fi
12679 fi
12680 fi
12681 fi
12682
12683 fi
12684
12685 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
12686 cat >> confdefs.h <<\EOF
12687 #define wxUSE_DYNLIB_CLASS 1
12688 EOF
12689
12690 else
12691 wxUSE_ODBC=no
12692 wxUSE_SERIAL=no
12693 fi
12694
12695
12696 if test "$wxUSE_UNICODE" = "yes" ; then
12697 cat >> confdefs.h <<\EOF
12698 #define wxUSE_UNICODE 1
12699 EOF
12700
12701 fi
12702
12703 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12704 cat >> confdefs.h <<\EOF
12705 #define wxUSE_WCSRTOMBS 1
12706 EOF
12707
12708 fi
12709
12710 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12711 cat >> confdefs.h <<\EOF
12712 #define wxUSE_EXPERIMENTAL_PRINTF 1
12713 EOF
12714
12715 fi
12716
12717
12718 if test "$wxUSE_SERIAL" = "yes" ; then
12719 cat >> confdefs.h <<\EOF
12720 #define wxUSE_SERIAL 1
12721 EOF
12722
12723 fi
12724
12725
12726 IODBC_C_SRC=""
12727 if test "$wxUSE_ODBC" = "yes" ; then
12728 cat >> confdefs.h <<\EOF
12729 #define wxUSE_ODBC 1
12730 EOF
12731
12732 WXODBCFLAG="-D_IODBC_"
12733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12734 IODBCOBJS="\$(IODBC_OBJS)"
12735 else
12736 IODBCOBJS=
12737 fi
12738
12739
12740 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12741 cat >> confdefs.h <<\EOF
12742 #define wxUSE_POSTSCRIPT 1
12743 EOF
12744
12745 fi
12746
12747 cat >> confdefs.h <<\EOF
12748 #define wxUSE_AFM_FOR_POSTSCRIPT 1
12749 EOF
12750
12751
12752 cat >> confdefs.h <<\EOF
12753 #define wxUSE_NORMALIZED_PS_FONTS 1
12754 EOF
12755
12756
12757
12758 if test "$wxUSE_CONSTRAINTS" = "yes"; then
12759 cat >> confdefs.h <<\EOF
12760 #define wxUSE_CONSTRAINTS 1
12761 EOF
12762
12763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12764 fi
12765
12766 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12767 cat >> confdefs.h <<\EOF
12768 #define wxUSE_MDI_ARCHITECTURE 1
12769 EOF
12770
12771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12772 fi
12773
12774 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12775 cat >> confdefs.h <<\EOF
12776 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
12777 EOF
12778
12779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12780 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12782 fi
12783 fi
12784
12785 if test "$wxUSE_HELP" = "yes"; then
12786 cat >> confdefs.h <<\EOF
12787 #define wxUSE_HELP 1
12788 EOF
12789
12790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12791 fi
12792
12793 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12794 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12795 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12796 else
12797 cat >> confdefs.h <<\EOF
12798 #define wxUSE_PRINTING_ARCHITECTURE 1
12799 EOF
12800
12801 fi
12802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12803 fi
12804
12805 if test "$wxUSE_PROLOGIO" = "yes" ; then
12806 cat >> confdefs.h <<\EOF
12807 #define wxUSE_PROLOGIO 1
12808 EOF
12809
12810 fi
12811
12812 if test "$wxUSE_RESOURCES" = "yes" ; then
12813 if test "$wxUSE_PROLOGIO" = "yes" ; then
12814 cat >> confdefs.h <<\EOF
12815 #define wxUSE_RESOURCES 1
12816 EOF
12817
12818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12819 else
12820 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12821 fi
12822 fi
12823
12824 if test "$wxUSE_X_RESOURCES" = "yes"; then
12825 cat >> confdefs.h <<\EOF
12826 #define wxUSE_X_RESOURCES 1
12827 EOF
12828
12829 fi
12830
12831
12832 if test "$wxUSE_IPC" = "yes"; then
12833 cat >> confdefs.h <<\EOF
12834 #define wxUSE_IPC 1
12835 EOF
12836
12837 fi
12838
12839 if test "$wxUSE_CLIPBOARD" = "yes"; then
12840 cat >> confdefs.h <<\EOF
12841 #define wxUSE_CLIPBOARD 1
12842 EOF
12843
12844 fi
12845
12846 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12847 if test "$wxUSE_GTK" = 1; then
12848 if test "$WXGTK12" != 1; then
12849 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12850 wxUSE_DRAG_AND_DROP=no
12851 fi
12852 fi
12853
12854 if test "$wxUSE_MOTIF" = 1; then
12855 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12856 wxUSE_DRAG_AND_DROP=no
12857 fi
12858
12859 if test "$USE_WIN32" = 1; then
12860 for ac_hdr in ole2.h
12861 do
12862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12864 echo "configure:12865: checking for $ac_hdr" >&5
12865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12866 echo $ac_n "(cached) $ac_c" 1>&6
12867 else
12868 cat > conftest.$ac_ext <<EOF
12869 #line 12870 "configure"
12870 #include "confdefs.h"
12871 #include <$ac_hdr>
12872 EOF
12873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12874 { (eval echo configure:12875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12876 if test -z "$ac_err"; then
12877 rm -rf conftest*
12878 eval "ac_cv_header_$ac_safe=yes"
12879 else
12880 echo "$ac_err" >&5
12881 echo "configure: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12883 rm -rf conftest*
12884 eval "ac_cv_header_$ac_safe=no"
12885 fi
12886 rm -f conftest*
12887 fi
12888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12889 echo "$ac_t""yes" 1>&6
12890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12891 cat >> confdefs.h <<EOF
12892 #define $ac_tr_hdr 1
12893 EOF
12894
12895 else
12896 echo "$ac_t""no" 1>&6
12897 fi
12898 done
12899
12900 if test "x$HAVE_OLE2_H" = x ; then
12901 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12902 wxUSE_DRAG_AND_DROP=no
12903 fi
12904 fi
12905
12906 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12907 cat >> confdefs.h <<\EOF
12908 #define wxUSE_DRAG_AND_DROP 1
12909 EOF
12910
12911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12912 fi
12913
12914 fi
12915
12916 if test "$wxUSE_SPLINES" = "yes" ; then
12917 cat >> confdefs.h <<\EOF
12918 #define wxUSE_SPLINES 1
12919 EOF
12920
12921 fi
12922
12923
12924 if test "$wxUSE_ACCEL" = "yes"; then
12925 cat >> confdefs.h <<\EOF
12926 #define wxUSE_ACCEL 1
12927 EOF
12928
12929 fi
12930
12931 if test "$wxUSE_CARET" = "yes"; then
12932 cat >> confdefs.h <<\EOF
12933 #define wxUSE_CARET 1
12934 EOF
12935
12936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12937 fi
12938
12939 if test "$wxUSE_COMBOBOX" = "yes"; then
12940 cat >> confdefs.h <<\EOF
12941 #define wxUSE_COMBOBOX 1
12942 EOF
12943
12944 fi
12945
12946 if test "$wxUSE_CHOICE" = "yes"; then
12947 cat >> confdefs.h <<\EOF
12948 #define wxUSE_CHOICE 1
12949 EOF
12950
12951 fi
12952
12953 if test "$wxUSE_BMPBUTTON" = "yes"; then
12954 cat >> confdefs.h <<\EOF
12955 #define wxUSE_BMPBUTTON 1
12956 EOF
12957
12958 fi
12959
12960 if test "$wxUSE_CHECKBOX" = "yes"; then
12961 cat >> confdefs.h <<\EOF
12962 #define wxUSE_CHECKBOX 1
12963 EOF
12964
12965 fi
12966
12967 if test "$wxUSE_CHECKLST" = "yes"; then
12968 cat >> confdefs.h <<\EOF
12969 #define wxUSE_CHECKLISTBOX 1
12970 EOF
12971
12972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12973 fi
12974
12975 if test "$wxUSE_GAUGE" = "yes"; then
12976 cat >> confdefs.h <<\EOF
12977 #define wxUSE_GAUGE 1
12978 EOF
12979
12980 fi
12981
12982 if test "$wxUSE_NEW_GRID" = "yes"; then
12983 wxUSE_GRID="yes"
12984 cat >> confdefs.h <<\EOF
12985 #define wxUSE_NEW_GRID 1
12986 EOF
12987
12988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12989 fi
12990
12991 if test "$wxUSE_GRID" = "yes"; then
12992 cat >> confdefs.h <<\EOF
12993 #define wxUSE_GRID 1
12994 EOF
12995
12996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12997 fi
12998
12999 if test "$wxUSE_IMAGLIST" = "yes"; then
13000 cat >> confdefs.h <<\EOF
13001 #define wxUSE_IMAGLIST 1
13002 EOF
13003
13004 fi
13005
13006 if test "$wxUSE_LISTBOX" = "yes"; then
13007 cat >> confdefs.h <<\EOF
13008 #define wxUSE_LISTBOX 1
13009 EOF
13010
13011 fi
13012
13013 if test "$wxUSE_LISTCTRL" = "yes"; then
13014 if test "$wxUSE_IMAGLIST" = "yes"; then
13015 cat >> confdefs.h <<\EOF
13016 #define wxUSE_LISTCTRL 1
13017 EOF
13018
13019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13020 else
13021 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13022 fi
13023 fi
13024
13025 if test "$wxUSE_NOTEBOOK" = "yes"; then
13026 cat >> confdefs.h <<\EOF
13027 #define wxUSE_NOTEBOOK 1
13028 EOF
13029
13030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13031 fi
13032
13033 if test "$wxUSE_RADIOBOX" = "yes"; then
13034 cat >> confdefs.h <<\EOF
13035 #define wxUSE_RADIOBOX 1
13036 EOF
13037
13038 fi
13039
13040 if test "$wxUSE_RADIOBTN" = "yes"; then
13041 cat >> confdefs.h <<\EOF
13042 #define wxUSE_RADIOBTN 1
13043 EOF
13044
13045 fi
13046
13047 if test "$wxUSE_SASH" = "yes"; then
13048 cat >> confdefs.h <<\EOF
13049 #define wxUSE_SASH 1
13050 EOF
13051
13052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13053 fi
13054
13055 if test "$wxUSE_SCROLLBAR" = "yes"; then
13056 cat >> confdefs.h <<\EOF
13057 #define wxUSE_SCROLLBAR 1
13058 EOF
13059
13060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
13061 fi
13062
13063 if test "$wxUSE_SLIDER" = "yes"; then
13064 cat >> confdefs.h <<\EOF
13065 #define wxUSE_SLIDER 1
13066 EOF
13067
13068 fi
13069
13070 if test "$wxUSE_SPINBTN" = "yes"; then
13071 cat >> confdefs.h <<\EOF
13072 #define wxUSE_SPINBTN 1
13073 EOF
13074
13075 fi
13076
13077 if test "$wxUSE_SPINCTRL" = "yes"; then
13078 cat >> confdefs.h <<\EOF
13079 #define wxUSE_SPINCTRL 1
13080 EOF
13081
13082 fi
13083
13084 if test "$wxUSE_SPLITTER" = "yes"; then
13085 cat >> confdefs.h <<\EOF
13086 #define wxUSE_SPLITTER 1
13087 EOF
13088
13089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13090 fi
13091
13092 if test "$wxUSE_STATBMP" = "yes"; then
13093 cat >> confdefs.h <<\EOF
13094 #define wxUSE_STATBMP 1
13095 EOF
13096
13097 fi
13098
13099 if test "$wxUSE_STATBOX" = "yes"; then
13100 cat >> confdefs.h <<\EOF
13101 #define wxUSE_STATBOX 1
13102 EOF
13103
13104 fi
13105
13106 if test "$wxUSE_STATLINE" = "yes"; then
13107 if test "$wxUSE_WINE" = 1 ; then
13108 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13109 else
13110 cat >> confdefs.h <<\EOF
13111 #define wxUSE_STATLINE 1
13112 EOF
13113
13114 fi
13115 fi
13116
13117 if test "$wxUSE_STATUSBAR" = "yes"; then
13118 cat >> confdefs.h <<\EOF
13119 #define wxUSE_STATUSBAR 1
13120 EOF
13121
13122
13123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
13124 fi
13125
13126 if test "$wxUSE_TABDIALOG" = "yes"; then
13127 cat >> confdefs.h <<\EOF
13128 #define wxUSE_TAB_DIALOG 1
13129 EOF
13130
13131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13132 fi
13133
13134 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13135 cat >> confdefs.h <<\EOF
13136 #define wxUSE_TOOLBAR_SIMPLE 1
13137 EOF
13138
13139 wxUSE_TOOLBAR="yes"
13140 fi
13141
13142 if test "$wxUSE_TOOLBAR" = "yes"; then
13143 cat >> confdefs.h <<\EOF
13144 #define wxUSE_TOOLBAR 1
13145 EOF
13146
13147
13148 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13149 wxUSE_TOOLBAR_NATIVE="yes"
13150 fi
13151
13152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13153 fi
13154
13155 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13156 cat >> confdefs.h <<\EOF
13157 #define wxUSE_TOOLBAR_NATIVE 1
13158 EOF
13159
13160 fi
13161
13162 if test "$wxUSE_TOOLTIPS" = "yes"; then
13163 if test "$wxUSE_MOTIF" = 1; then
13164 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13165 else
13166 if test "$wxUSE_WINE" = 1; then
13167 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13168 else
13169 cat >> confdefs.h <<\EOF
13170 #define wxUSE_TOOLTIPS 1
13171 EOF
13172
13173 fi
13174 fi
13175 fi
13176
13177 if test "$wxUSE_TREECTRL" = "yes"; then
13178 if test "$wxUSE_IMAGLIST" = "yes"; then
13179 cat >> confdefs.h <<\EOF
13180 #define wxUSE_TREECTRL 1
13181 EOF
13182
13183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13184 else
13185 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13186 fi
13187 fi
13188
13189
13190
13191 if test "$wxUSE_METAFILE" = "yes"; then
13192 cat >> confdefs.h <<\EOF
13193 #define wxUSE_METAFILE 1
13194 EOF
13195
13196 fi
13197
13198 if test "$wxUSE_DIRDLG" = "yes"; then
13199 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13200 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13201 else
13202 if test "$wxUSE_TREECTRL" != "yes"; then
13203 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13204 else
13205 cat >> confdefs.h <<\EOF
13206 #define wxUSE_DIRDLG 1
13207 EOF
13208
13209 fi
13210 fi
13211 fi
13212
13213 if test "$wxUSE_TEXTDLG" = "yes"; then
13214 cat >> confdefs.h <<\EOF
13215 #define wxUSE_TEXTDLG 1
13216 EOF
13217
13218 fi
13219
13220 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13221 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13222 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13223 else
13224 cat >> confdefs.h <<\EOF
13225 #define wxUSE_STARTUP_TIPS 1
13226 EOF
13227
13228 fi
13229 fi
13230
13231 if test "$wxUSE_PROGRESSDLG" = "yes"; then
13232 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13233 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13234 else
13235 cat >> confdefs.h <<\EOF
13236 #define wxUSE_PROGRESSDLG 1
13237 EOF
13238
13239 fi
13240 fi
13241
13242 if test "$wxUSE_MINIFRAME" = "yes"; then
13243 cat >> confdefs.h <<\EOF
13244 #define wxUSE_MINIFRAME 1
13245 EOF
13246
13247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13248 fi
13249
13250 if test "$wxUSE_HTML" = "yes"; then
13251 cat >> confdefs.h <<\EOF
13252 #define wxUSE_HTML 1
13253 EOF
13254
13255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13256 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13257 fi
13258
13259 if test "$wxUSE_VALIDATORS" = "yes"; then
13260 cat >> confdefs.h <<\EOF
13261 #define wxUSE_VALIDATORS 1
13262 EOF
13263
13264 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13265 fi
13266
13267 if test "$wxUSE_GIF" = "yes" ; then
13268 cat >> confdefs.h <<\EOF
13269 #define wxUSE_GIF 1
13270 EOF
13271
13272 fi
13273
13274 if test "$wxUSE_PCX" = "yes" ; then
13275 cat >> confdefs.h <<\EOF
13276 #define wxUSE_PCX 1
13277 EOF
13278
13279 fi
13280
13281 if test "$wxUSE_PNM" = "yes" ; then
13282 cat >> confdefs.h <<\EOF
13283 #define wxUSE_PNM 1
13284 EOF
13285
13286 fi
13287
13288
13289 OSINFO=`uname -s -r -m`
13290 OSINFO="\"$OSINFO\""
13291 cat >> confdefs.h <<EOF
13292 #define WXWIN_OS_DESCRIPTION $OSINFO
13293 EOF
13294
13295
13296
13297 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
13298
13299 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
13300 if test "$wxUSE_GUI" = "yes"; then
13301 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13302 fi
13303
13304 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13305
13306 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
13307
13308 if test "$GXX" = yes ; then
13309 CXXWARNINGS="-Wall"
13310 fi
13311 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13312
13313 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13314 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13315
13316 LDFLAGS="$LDFLAGS $PROFILE"
13317
13318 if test "$wxUSE_GUI" = "yes"; then
13319
13320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
13321 font fractal image minimal richedit"
13322
13323 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
13324 else
13325 SAMPLES_SUBDIRS=""
13326 fi
13327
13328 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
13397 echo "configure:13398: checking whether ${MAKE-make} sets \${MAKE}" >&5
13398 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13399 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13400 echo $ac_n "(cached) $ac_c" 1>&6
13401 else
13402 cat > conftestmake <<\EOF
13403 all:
13404 @echo 'ac_maketemp="${MAKE}"'
13405 EOF
13406 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13407 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13408 if test -n "$ac_maketemp"; then
13409 eval ac_cv_prog_make_${ac_make}_set=yes
13410 else
13411 eval ac_cv_prog_make_${ac_make}_set=no
13412 fi
13413 rm -f conftestmake
13414 fi
13415 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13416 echo "$ac_t""yes" 1>&6
13417 SET_MAKE=
13418 else
13419 echo "$ac_t""no" 1>&6
13420 SET_MAKE="MAKE=${MAKE-make}"
13421 fi
13422
13423
13424 if test -d include; then
13425 if test -d include/wx; then
13426 if test -d include/wx/${TOOLKIT_DIR}; then
13427 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13428 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13429 fi
13430 fi
13431 fi
13432 fi
13433
13434
13435
13436 if test "$wxUSE_GUI" = "yes"; then
13437 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
13438 echo "configure:13439: checking glcanvas subdirectory to use" >&5
13439 if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13440 echo $ac_n "(cached) $ac_c" 1>&6
13441 else
13442
13443 if test "${TOOLKIT_DIR}" = "msw" ; then
13444 wx_cv_path_glcanvas="win"
13445 else
13446 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13447 fi
13448
13449 fi
13450
13451 echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13452
13453 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
13454
13455
13456 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
13457 subdirs="demos samples utils"
13458
13459 fi
13460
13461 trap '' 1 2 15
13462 cat > confcache <<\EOF
13463 # This file is a shell script that caches the results of configure
13464 # tests run on this system so they can be shared between configure
13465 # scripts and configure runs. It is not useful on other systems.
13466 # If it contains results you don't want to keep, you may remove or edit it.
13467 #
13468 # By default, configure uses ./config.cache as the cache file,
13469 # creating it if it does not exist already. You can give configure
13470 # the --cache-file=FILE option to use a different cache file; that is
13471 # what configure does when it calls configure scripts in
13472 # subdirectories, so they share the cache.
13473 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13474 # config.status only pays attention to the cache file if you give it the
13475 # --recheck option to rerun configure.
13476 #
13477 EOF
13478 # The following way of writing the cache mishandles newlines in values,
13479 # but we know of no workaround that is simple, portable, and efficient.
13480 # So, don't put newlines in cache variables' values.
13481 # Ultrix sh set writes to stderr and can't be redirected directly,
13482 # and sets the high bit in the cache file unless we assign to the vars.
13483 (set) 2>&1 |
13484 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13485 *ac_space=\ *)
13486 # `set' does not quote correctly, so add quotes (double-quote substitution
13487 # turns \\\\ into \\, and sed turns \\ into \).
13488 sed -n \
13489 -e "s/'/'\\\\''/g" \
13490 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13491 ;;
13492 *)
13493 # `set' quotes correctly as required by POSIX, so do not add quotes.
13494 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13495 ;;
13496 esac >> confcache
13497 if cmp -s $cache_file confcache; then
13498 :
13499 else
13500 if test -w $cache_file; then
13501 echo "updating cache $cache_file"
13502 cat confcache > $cache_file
13503 else
13504 echo "not updating unwritable cache $cache_file"
13505 fi
13506 fi
13507 rm -f confcache
13508
13509 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13510
13511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13512 # Let make expand exec_prefix.
13513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13514
13515 # Any assignment to VPATH causes Sun make to only execute
13516 # the first set of double-colon rules, so remove it if not needed.
13517 # If there is a colon in the path, we need to keep it.
13518 if test "x$srcdir" = x.; then
13519 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13520 fi
13521
13522 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13523
13524 DEFS=-DHAVE_CONFIG_H
13525
13526 # Without the "./", some shells look in PATH for config.status.
13527 : ${CONFIG_STATUS=./config.status}
13528
13529 echo creating $CONFIG_STATUS
13530 rm -f $CONFIG_STATUS
13531 cat > $CONFIG_STATUS <<EOF
13532 #! /bin/sh
13533 # Generated automatically by configure.
13534 # Run this file to recreate the current configuration.
13535 # This directory was configured as follows,
13536 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13537 #
13538 # $0 $ac_configure_args
13539 #
13540 # Compiler output produced by configure, useful for debugging
13541 # configure, is in ./config.log if it exists.
13542
13543 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13544 for ac_option
13545 do
13546 case "\$ac_option" in
13547 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13548 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13549 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13550 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13551 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13552 exit 0 ;;
13553 -help | --help | --hel | --he | --h)
13554 echo "\$ac_cs_usage"; exit 0 ;;
13555 *) echo "\$ac_cs_usage"; exit 1 ;;
13556 esac
13557 done
13558
13559 ac_given_srcdir=$srcdir
13560 ac_given_INSTALL="$INSTALL"
13561
13562 trap 'rm -fr `echo "
13563 wx-config
13564 src/make.env
13565 src/makeprog.env
13566 src/makelib.env
13567 Makefile
13568 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13569 EOF
13570 cat >> $CONFIG_STATUS <<EOF
13571
13572 # Protect against being on the right side of a sed subst in config.status.
13573 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13574 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13575 $ac_vpsub
13576 $extrasub
13577 s%@SHELL@%$SHELL%g
13578 s%@CFLAGS@%$CFLAGS%g
13579 s%@CPPFLAGS@%$CPPFLAGS%g
13580 s%@CXXFLAGS@%$CXXFLAGS%g
13581 s%@FFLAGS@%$FFLAGS%g
13582 s%@DEFS@%$DEFS%g
13583 s%@LDFLAGS@%$LDFLAGS%g
13584 s%@LIBS@%$LIBS%g
13585 s%@exec_prefix@%$exec_prefix%g
13586 s%@prefix@%$prefix%g
13587 s%@program_transform_name@%$program_transform_name%g
13588 s%@bindir@%$bindir%g
13589 s%@sbindir@%$sbindir%g
13590 s%@libexecdir@%$libexecdir%g
13591 s%@datadir@%$datadir%g
13592 s%@sysconfdir@%$sysconfdir%g
13593 s%@sharedstatedir@%$sharedstatedir%g
13594 s%@localstatedir@%$localstatedir%g
13595 s%@libdir@%$libdir%g
13596 s%@includedir@%$includedir%g
13597 s%@oldincludedir@%$oldincludedir%g
13598 s%@infodir@%$infodir%g
13599 s%@mandir@%$mandir%g
13600 s%@host@%$host%g
13601 s%@host_alias@%$host_alias%g
13602 s%@host_cpu@%$host_cpu%g
13603 s%@host_vendor@%$host_vendor%g
13604 s%@host_os@%$host_os%g
13605 s%@target@%$target%g
13606 s%@target_alias@%$target_alias%g
13607 s%@target_cpu@%$target_cpu%g
13608 s%@target_vendor@%$target_vendor%g
13609 s%@target_os@%$target_os%g
13610 s%@build@%$build%g
13611 s%@build_alias@%$build_alias%g
13612 s%@build_cpu@%$build_cpu%g
13613 s%@build_vendor@%$build_vendor%g
13614 s%@build_os@%$build_os%g
13615 s%@CC@%$CC%g
13616 s%@CPP@%$CPP%g
13617 s%@CXX@%$CXX%g
13618 s%@CXXCPP@%$CXXCPP%g
13619 s%@RANLIB@%$RANLIB%g
13620 s%@AR@%$AR%g
13621 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13622 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13623 s%@INSTALL_DATA@%$INSTALL_DATA%g
13624 s%@STRIP@%$STRIP%g
13625 s%@YACC@%$YACC%g
13626 s%@LEX@%$LEX%g
13627 s%@LEXLIB@%$LEXLIB%g
13628 s%@LN_S@%$LN_S%g
13629 s%@GTK_CONFIG@%$GTK_CONFIG%g
13630 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13631 s%@GTK_LIBS@%$GTK_LIBS%g
13632 s%@X_CFLAGS@%$X_CFLAGS%g
13633 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13634 s%@X_LIBS@%$X_LIBS%g
13635 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13636 s%@LEX_STEM@%$LEX_STEM%g
13637 s%@PATH_IFS@%$PATH_IFS%g
13638 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13639 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13640 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13641 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13642 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13643 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13644 s%@WX_LIBRARY@%$WX_LIBRARY%g
13645 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13646 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13647 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13648 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13649 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13650 s%@WX_ALL@%$WX_ALL%g
13651 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13652 s%@SHARED_LD@%$SHARED_LD%g
13653 s%@PIC_FLAG@%$PIC_FLAG%g
13654 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
13655 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
13656 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
13657 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
13658 s%@USE_GUI@%$USE_GUI%g
13659 s%@AFMINSTALL@%$AFMINSTALL%g
13660 s%@TOOLKIT@%$TOOLKIT%g
13661 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13662 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13663 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13664 s%@GUIHEADERS@%$GUIHEADERS%g
13665 s%@GUIOBJS@%$GUIOBJS%g
13666 s%@COMMONOBJS@%$COMMONOBJS%g
13667 s%@GENERICOBJS@%$GENERICOBJS%g
13668 s%@GUIDEPS@%$GUIDEPS%g
13669 s%@COMMONDEPS@%$COMMONDEPS%g
13670 s%@GENERICDEPS@%$GENERICDEPS%g
13671 s%@IODBCOBJS@%$IODBCOBJS%g
13672 s%@UNIXOBJS@%$UNIXOBJS%g
13673 s%@UNIXDEPS@%$UNIXDEPS%g
13674 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13675 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13676 s%@GUIDIST@%$GUIDIST%g
13677 s%@PORT_FILES@%$PORT_FILES%g
13678 s%@DISTDIR@%$DISTDIR%g
13679 s%@RPM_SPEC@%$RPM_SPEC%g
13680 s%@RPM_FILES@%$RPM_FILES%g
13681 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13682 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13683 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13684 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13685 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13686 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13687 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
13688 s%@EXTRADEFS@%$EXTRADEFS%g
13689 s%@LD_LIBS@%$LD_LIBS%g
13690 s%@SET_MAKE@%$SET_MAKE%g
13691 s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13692 s%@subdirs@%$subdirs%g
13693
13694 CEOF
13695 EOF
13696
13697 cat >> $CONFIG_STATUS <<\EOF
13698
13699 # Split the substitutions into bite-sized pieces for seds with
13700 # small command number limits, like on Digital OSF/1 and HP-UX.
13701 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13702 ac_file=1 # Number of current file.
13703 ac_beg=1 # First line for current file.
13704 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13705 ac_more_lines=:
13706 ac_sed_cmds=""
13707 while $ac_more_lines; do
13708 if test $ac_beg -gt 1; then
13709 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13710 else
13711 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13712 fi
13713 if test ! -s conftest.s$ac_file; then
13714 ac_more_lines=false
13715 rm -f conftest.s$ac_file
13716 else
13717 if test -z "$ac_sed_cmds"; then
13718 ac_sed_cmds="sed -f conftest.s$ac_file"
13719 else
13720 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13721 fi
13722 ac_file=`expr $ac_file + 1`
13723 ac_beg=$ac_end
13724 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13725 fi
13726 done
13727 if test -z "$ac_sed_cmds"; then
13728 ac_sed_cmds=cat
13729 fi
13730 EOF
13731
13732 cat >> $CONFIG_STATUS <<EOF
13733
13734 CONFIG_FILES=\${CONFIG_FILES-"wx-config
13735 src/make.env
13736 src/makeprog.env
13737 src/makelib.env
13738 Makefile
13739 "}
13740 EOF
13741 cat >> $CONFIG_STATUS <<\EOF
13742 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13744 case "$ac_file" in
13745 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13746 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13747 *) ac_file_in="${ac_file}.in" ;;
13748 esac
13749
13750 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13751
13752 # Remove last slash and all that follows it. Not all systems have dirname.
13753 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13754 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13755 # The file is in a subdirectory.
13756 test ! -d "$ac_dir" && mkdir "$ac_dir"
13757 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13758 # A "../" for each directory in $ac_dir_suffix.
13759 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13760 else
13761 ac_dir_suffix= ac_dots=
13762 fi
13763
13764 case "$ac_given_srcdir" in
13765 .) srcdir=.
13766 if test -z "$ac_dots"; then top_srcdir=.
13767 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13768 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13769 *) # Relative path.
13770 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13771 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13772 esac
13773
13774 case "$ac_given_INSTALL" in
13775 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13776 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13777 esac
13778
13779 echo creating "$ac_file"
13780 rm -f "$ac_file"
13781 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13782 case "$ac_file" in
13783 *Makefile*) ac_comsub="1i\\
13784 # $configure_input" ;;
13785 *) ac_comsub= ;;
13786 esac
13787
13788 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13789 sed -e "$ac_comsub
13790 s%@configure_input@%$configure_input%g
13791 s%@srcdir@%$srcdir%g
13792 s%@top_srcdir@%$top_srcdir%g
13793 s%@INSTALL@%$INSTALL%g
13794 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13795 fi; done
13796 rm -f conftest.s*
13797
13798 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13799 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13800 #
13801 # ac_d sets the value in "#define NAME VALUE" lines.
13802 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13803 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13804 ac_dC='\3'
13805 ac_dD='%g'
13806 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13807 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13808 ac_uB='\([ ]\)%\1#\2define\3'
13809 ac_uC=' '
13810 ac_uD='\4%g'
13811 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13812 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13813 ac_eB='$%\1#\2define\3'
13814 ac_eC=' '
13815 ac_eD='%g'
13816
13817 if test "${CONFIG_HEADERS+set}" != set; then
13818 EOF
13819 cat >> $CONFIG_STATUS <<EOF
13820 CONFIG_HEADERS="setup.h:setup.h.in"
13821 EOF
13822 cat >> $CONFIG_STATUS <<\EOF
13823 fi
13824 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13826 case "$ac_file" in
13827 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13828 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13829 *) ac_file_in="${ac_file}.in" ;;
13830 esac
13831
13832 echo creating $ac_file
13833
13834 rm -f conftest.frag conftest.in conftest.out
13835 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13836 cat $ac_file_inputs > conftest.in
13837
13838 EOF
13839
13840 # Transform confdefs.h into a sed script conftest.vals that substitutes
13841 # the proper values into config.h.in to produce config.h. And first:
13842 # Protect against being on the right side of a sed subst in config.status.
13843 # Protect against being in an unquoted here document in config.status.
13844 rm -f conftest.vals
13845 cat > conftest.hdr <<\EOF
13846 s/[\\&%]/\\&/g
13847 s%[\\$`]%\\&%g
13848 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13849 s%ac_d%ac_u%gp
13850 s%ac_u%ac_e%gp
13851 EOF
13852 sed -n -f conftest.hdr confdefs.h > conftest.vals
13853 rm -f conftest.hdr
13854
13855 # This sed command replaces #undef with comments. This is necessary, for
13856 # example, in the case of _POSIX_SOURCE, which is predefined and required
13857 # on some systems where configure will not decide to define it.
13858 cat >> conftest.vals <<\EOF
13859 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13860 EOF
13861
13862 # Break up conftest.vals because some shells have a limit on
13863 # the size of here documents, and old seds have small limits too.
13864
13865 rm -f conftest.tail
13866 while :
13867 do
13868 ac_lines=`grep -c . conftest.vals`
13869 # grep -c gives empty output for an empty file on some AIX systems.
13870 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13871 # Write a limited-size here document to conftest.frag.
13872 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13873 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13874 echo 'CEOF
13875 sed -f conftest.frag conftest.in > conftest.out
13876 rm -f conftest.in
13877 mv conftest.out conftest.in
13878 ' >> $CONFIG_STATUS
13879 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13880 rm -f conftest.vals
13881 mv conftest.tail conftest.vals
13882 done
13883 rm -f conftest.vals
13884
13885 cat >> $CONFIG_STATUS <<\EOF
13886 rm -f conftest.frag conftest.h
13887 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13888 cat conftest.in >> conftest.h
13889 rm -f conftest.in
13890 if cmp -s $ac_file conftest.h 2>/dev/null; then
13891 echo "$ac_file is unchanged"
13892 rm -f conftest.h
13893 else
13894 # Remove last slash and all that follows it. Not all systems have dirname.
13895 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13896 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13897 # The file is in a subdirectory.
13898 test ! -d "$ac_dir" && mkdir "$ac_dir"
13899 fi
13900 rm -f $ac_file
13901 mv conftest.h $ac_file
13902 fi
13903 fi; done
13904
13905 EOF
13906 cat >> $CONFIG_STATUS <<EOF
13907
13908 TOOLKIT_DIR="${TOOLKIT_DIR}"
13909 LN_S="${LN_S}"
13910
13911
13912 EOF
13913 cat >> $CONFIG_STATUS <<\EOF
13914
13915 chmod +x wx-config
13916 mv wx-config wx${TOOLKIT_DIR}-config
13917 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
13918
13919
13920 if test ! -d lib; then
13921 mkdir lib
13922 fi
13923 if test ! -d lib/wx; then
13924 mkdir lib/wx
13925 fi
13926 if test ! -d lib/wx/include; then
13927 mkdir lib/wx/include
13928 fi
13929 if test ! -d lib/wx/include/wx; then
13930 mkdir lib/wx/include/wx
13931 fi
13932 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
13933 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
13934 fi
13935 if test -f setup.h; then
13936 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
13937 fi
13938
13939
13940 if test ! -d include; then
13941 mkdir include
13942 fi
13943 if test ! -d include/wx; then
13944 mkdir include/wx
13945 fi
13946 if test ! -d include/wx/${TOOLKIT_DIR}; then
13947 mkdir include/wx/${TOOLKIT_DIR}
13948 fi
13949 if test -f setup.h; then
13950 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13951 fi
13952
13953
13954 exit 0
13955 EOF
13956 chmod +x $CONFIG_STATUS
13957 rm -fr confdefs* $ac_clean_files
13958 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13959
13960 if test "$no_recursion" != yes; then
13961
13962 # Remove --cache-file and --srcdir arguments so they do not pile up.
13963 ac_sub_configure_args=
13964 ac_prev=
13965 for ac_arg in $ac_configure_args; do
13966 if test -n "$ac_prev"; then
13967 ac_prev=
13968 continue
13969 fi
13970 case "$ac_arg" in
13971 -cache-file | --cache-file | --cache-fil | --cache-fi \
13972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13973 ac_prev=cache_file ;;
13974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13976 ;;
13977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13978 ac_prev=srcdir ;;
13979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13980 ;;
13981 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13982 esac
13983 done
13984
13985 for ac_config_dir in demos samples utils; do
13986
13987 # Do not complain, so a configure script can configure whichever
13988 # parts of a large source tree are present.
13989 if test ! -d $srcdir/$ac_config_dir; then
13990 continue
13991 fi
13992
13993 echo configuring in $ac_config_dir
13994
13995 case "$srcdir" in
13996 .) ;;
13997 *)
13998 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
13999 else
14000 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14001 fi
14002 ;;
14003 esac
14004
14005 ac_popdir=`pwd`
14006 cd $ac_config_dir
14007
14008 # A "../" for each directory in /$ac_config_dir.
14009 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14010
14011 case "$srcdir" in
14012 .) # No --srcdir option. We are building in place.
14013 ac_sub_srcdir=$srcdir ;;
14014 /*) # Absolute path.
14015 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14016 *) # Relative path.
14017 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14018 esac
14019
14020 # Check for guested configure; otherwise get Cygnus style configure.
14021 if test -f $ac_sub_srcdir/configure; then
14022 ac_sub_configure=$ac_sub_srcdir/configure
14023 elif test -f $ac_sub_srcdir/configure.in; then
14024 ac_sub_configure=$ac_configure
14025 else
14026 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14027 ac_sub_configure=
14028 fi
14029
14030 # The recursion is here.
14031 if test -n "$ac_sub_configure"; then
14032
14033 # Make the cache file name correct relative to the subdirectory.
14034 case "$cache_file" in
14035 /*) ac_sub_cache_file=$cache_file ;;
14036 *) # Relative path.
14037 ac_sub_cache_file="$ac_dots$cache_file" ;;
14038 esac
14039 case "$ac_given_INSTALL" in
14040 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14041 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14042 esac
14043
14044 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14045 # The eval makes quoting arguments work.
14046 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14047 then :
14048 else
14049 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14050 fi
14051 fi
14052
14053 cd $ac_popdir
14054 done
14055 fi
14056
14057