]> git.saurik.com Git - wxWidgets.git/blob - configure
Added comment makeg95.env
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 # Guess values for system-dependent variables and create Makefiles.
41 # Generated automatically using autoconf version 2.14
42 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43 #
44 # This configure script is free software; the Free Software Foundation
45 # gives unlimited permission to copy, distribute and modify it.
46
47 # Defaults:
48 ac_help=
49 ac_default_prefix=/usr/local
50 # Any additions from configure.in:
51 ac_help="$ac_help
52 --enable-gui use GUI classes"
53 ac_help="$ac_help
54 --with-gtk use GTK+"
55 ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57 ac_help="$ac_help
58 --with-wine use WINE"
59 ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61 ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
63 ac_help="$ac_help
64 --with-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-optimise create optimised code"
87 ac_help="$ac_help
88 --enable-debug same as debug_flag and debug_info"
89 ac_help="$ac_help
90 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
91 ac_help="$ac_help
92 --enable-debug_info create code with debugging information"
93 ac_help="$ac_help
94 --enable-debug_gdb create code with extra GDB debugging information"
95 ac_help="$ac_help
96 --enable-debug_cntxt use wxDebugContext"
97 ac_help="$ac_help
98 --enable-mem_tracing create code with memory tracing"
99 ac_help="$ac_help
100 --enable-profile create code with profiling information"
101 ac_help="$ac_help
102 --enable-no_rtti create code without RTTI information"
103 ac_help="$ac_help
104 --enable-no_exceptions create code without exceptions information"
105 ac_help="$ac_help
106 --enable-permissive compile code disregarding strict ANSI"
107 ac_help="$ac_help
108 --enable-no_deps create code without dependency information"
109 ac_help="$ac_help
110 --enable-intl use internationalization system"
111 ac_help="$ac_help
112 --enable-config use wxConfig (and derived) classes"
113 ac_help="$ac_help
114 --enable-sockets use socket/network classes"
115 ac_help="$ac_help
116 --enable-dialupman use dialup network classes"
117 ac_help="$ac_help
118 --enable-ipc use interprocess communication (wxSocket etc.)"
119 ac_help="$ac_help
120 --enable-apple_ieee use the Apple IEEE codec"
121 ac_help="$ac_help
122 --enable-timedate use date/time classes"
123 ac_help="$ac_help
124 --enable-wave use wxWave class"
125 ac_help="$ac_help
126 --enable-fraction use wxFraction class"
127 ac_help="$ac_help
128 --enable-dynlib use wxLibrary class for DLL loading"
129 ac_help="$ac_help
130 --enable-longlong use wxLongLong class"
131 ac_help="$ac_help
132 --enable-log use logging system"
133 ac_help="$ac_help
134 --enable-streams use wxStream etc classes"
135 ac_help="$ac_help
136 --enable-file use wxFile classes"
137 ac_help="$ac_help
138 --enable-textfile use wxTextFile classes"
139 ac_help="$ac_help
140 --enable-unicode compile wxString with Unicode support"
141 ac_help="$ac_help
142 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
143 ac_help="$ac_help
144 --enable-wxprintfv use wxWindows implementation of vprintf()"
145 ac_help="$ac_help
146 --enable-joystick compile in joystick support (Linux only)"
147 ac_help="$ac_help
148 --enable-std_iostreams use standard C++ stream classes"
149 ac_help="$ac_help
150 --enable-fs_inet use virtual HTTP/FTP filesystems"
151 ac_help="$ac_help
152 --enable-fs_zip use virtual ZIP filesystems"
153 ac_help="$ac_help
154 --enable-zipstream use wxZipInputStream"
155 ac_help="$ac_help
156 --enable-threads use threads"
157 ac_help="$ac_help
158 --enable-serial use class serialization"
159 ac_help="$ac_help
160 --enable-docview use document view architecture"
161 ac_help="$ac_help
162 --enable-help use help (using external browser at present)"
163 ac_help="$ac_help
164 --enable-constraints use layout-constraints system"
165 ac_help="$ac_help
166 --enable-printarch use printing architecture"
167 ac_help="$ac_help
168 --enable-mdi use multiple document interface architecture"
169 ac_help="$ac_help
170 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
171 ac_help="$ac_help
172 --enable-prologio use Prolog IO library"
173 ac_help="$ac_help
174 --enable-resources use wxWindows resources"
175 ac_help="$ac_help
176 --enable-xresources use X resources for save (default for gtk+)"
177 ac_help="$ac_help
178 --enable-clipboard use wxClipboard classes"
179 ac_help="$ac_help
180 --enable-dnd use Drag'n'Drop classes"
181 ac_help="$ac_help
182 --enable-wxtree make wxTree library"
183 ac_help="$ac_help
184 --enable-controls use all usual controls"
185 ac_help="$ac_help
186 --enable-accel use accelerators"
187 ac_help="$ac_help
188 --enable-caret use wxCaret class"
189 ac_help="$ac_help
190 --enable-bmpbutton use wxBitmapButton class"
191 ac_help="$ac_help
192 --enable-checkbox use wxCheckBox class"
193 ac_help="$ac_help
194 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
195 ac_help="$ac_help
196 --enable-choice use wxChoice class"
197 ac_help="$ac_help
198 --enable-combobox use wxComboBox classes"
199 ac_help="$ac_help
200 --enable-gauge use wxGauge class"
201 ac_help="$ac_help
202 --enable-grid use wxGrid class"
203 ac_help="$ac_help
204 --enable-newgrid use new wxGrid class"
205 ac_help="$ac_help
206 --enable-imaglist use wxImageList class"
207 ac_help="$ac_help
208 --enable-listbox use wxListBox class"
209 ac_help="$ac_help
210 --enable-listctrl use wxListCtrl class"
211 ac_help="$ac_help
212 --enable-notebook use wxNotebook class"
213 ac_help="$ac_help
214 --enable-radiobox use wxRadioBox class"
215 ac_help="$ac_help
216 --enable-radiobtn use wxRadioButton class"
217 ac_help="$ac_help
218 --enable-sash use wxSashWindow class"
219 ac_help="$ac_help
220 --enable-scrollbar use wxScrollBar class and scrollable windows"
221 ac_help="$ac_help
222 --enable-slider use wxSlider class"
223 ac_help="$ac_help
224 --enable-spinbtn use wxSpinButton class"
225 ac_help="$ac_help
226 --enable-spinctrl use wxSpinCtrl class"
227 ac_help="$ac_help
228 --enable-splitter use wxSplitterWindow class"
229 ac_help="$ac_help
230 --enable-statbmp use wxStaticBitmap class"
231 ac_help="$ac_help
232 --enable-statbox use wxStaticBox class"
233 ac_help="$ac_help
234 --enable-statline use wxStaticLine class"
235 ac_help="$ac_help
236 --enable-statusbar use wxStatusBar class"
237 ac_help="$ac_help
238 --enable-tabdialog use wxTabControl class"
239 ac_help="$ac_help
240 --enable-toolbar use wxToolBar class"
241 ac_help="$ac_help
242 --enable-tbarnative use native wxToolBar class"
243 ac_help="$ac_help
244 --enable-tbarsmpl use wxToolBarSimple class"
245 ac_help="$ac_help
246 --enable-treectrl use wxTreeCtrl class"
247 ac_help="$ac_help
248 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
249 ac_help="$ac_help
250 --enable-dirdlg use wxDirDialog"
251 ac_help="$ac_help
252 --enable-textdlg use wxTextDialog"
253 ac_help="$ac_help
254 --enable-tipdlg use startup tips"
255 ac_help="$ac_help
256 --enable-progressdlg use wxProgressDialog"
257 ac_help="$ac_help
258 --enable-miniframe use wxMiniFrame class"
259 ac_help="$ac_help
260 --enable-html use wxHTML sub-library"
261 ac_help="$ac_help
262 --enable-tooltips use wxToolTip class"
263 ac_help="$ac_help
264 --enable-splines use spline drawing code"
265 ac_help="$ac_help
266 --enable-validators use wxValidator and derived classes"
267 ac_help="$ac_help
268 --enable-busyinfo use wxBusyInfo"
269 ac_help="$ac_help
270 --enable-plot use wxPlot"
271 ac_help="$ac_help
272 --enable-gif use gif images (GIF file format)"
273 ac_help="$ac_help
274 --enable-pcx use pcx images (PCX file format)"
275 ac_help="$ac_help
276 --enable-pnm use pnm images (PNM file format)"
277 ac_help="$ac_help
278 --with-x use the X Window System"
279
280 # Initialize some variables set by options.
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 build=NONE
284 cache_file=./config.cache
285 exec_prefix=NONE
286 host=NONE
287 no_create=
288 nonopt=NONE
289 no_recursion=
290 prefix=NONE
291 program_prefix=NONE
292 program_suffix=NONE
293 program_transform_name=s,x,x,
294 silent=
295 site=
296 srcdir=
297 target=NONE
298 verbose=
299 x_includes=NONE
300 x_libraries=NONE
301 bindir='${exec_prefix}/bin'
302 sbindir='${exec_prefix}/sbin'
303 libexecdir='${exec_prefix}/libexec'
304 datadir='${prefix}/share'
305 sysconfdir='${prefix}/etc'
306 sharedstatedir='${prefix}/com'
307 localstatedir='${prefix}/var'
308 libdir='${exec_prefix}/lib'
309 includedir='${prefix}/include'
310 oldincludedir='/usr/include'
311 infodir='${prefix}/info'
312 mandir='${prefix}/man'
313
314 # Initialize some other variables.
315 subdirs=
316 MFLAGS= MAKEFLAGS=
317 SHELL=${CONFIG_SHELL-/bin/sh}
318 # Maximum number of lines to put in a shell here document.
319 ac_max_here_lines=12
320
321 ac_prev=
322 for ac_option
323 do
324
325 # If the previous option needs an argument, assign it.
326 if test -n "$ac_prev"; then
327 eval "$ac_prev=\$ac_option"
328 ac_prev=
329 continue
330 fi
331
332 case "$ac_option" in
333 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
334 *) ac_optarg= ;;
335 esac
336
337 # Accept the important Cygnus configure options, so we can diagnose typos.
338
339 case "$ac_option" in
340
341 -bindir | --bindir | --bindi | --bind | --bin | --bi)
342 ac_prev=bindir ;;
343 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
344 bindir="$ac_optarg" ;;
345
346 -build | --build | --buil | --bui | --bu)
347 ac_prev=build ;;
348 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
349 build="$ac_optarg" ;;
350
351 -cache-file | --cache-file | --cache-fil | --cache-fi \
352 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
353 ac_prev=cache_file ;;
354 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
355 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
356 cache_file="$ac_optarg" ;;
357
358 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
359 ac_prev=datadir ;;
360 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
361 | --da=*)
362 datadir="$ac_optarg" ;;
363
364 -disable-* | --disable-*)
365 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
369 fi
370 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
371 eval "enable_${ac_feature}=no" ;;
372
373 -enable-* | --enable-*)
374 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
378 fi
379 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
380 case "$ac_option" in
381 *=*) ;;
382 *) ac_optarg=yes ;;
383 esac
384 eval "enable_${ac_feature}='$ac_optarg'" ;;
385
386 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
387 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
388 | --exec | --exe | --ex)
389 ac_prev=exec_prefix ;;
390 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
391 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
392 | --exec=* | --exe=* | --ex=*)
393 exec_prefix="$ac_optarg" ;;
394
395 -gas | --gas | --ga | --g)
396 # Obsolete; use --with-gas.
397 with_gas=yes ;;
398
399 -help | --help | --hel | --he)
400 # Omit some internal or obsolete options to make the list less imposing.
401 # This message is too long to be a string in the A/UX 3.1 sh.
402 cat << EOF
403 Usage: configure [options] [host]
404 Options: [defaults in brackets after descriptions]
405 Configuration:
406 --cache-file=FILE cache test results in FILE
407 --help print this message
408 --no-create do not create output files
409 --quiet, --silent do not print \`checking...' messages
410 --version print the version of autoconf that created configure
411 Directory and file names:
412 --prefix=PREFIX install architecture-independent files in PREFIX
413 [$ac_default_prefix]
414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
415 [same as prefix]
416 --bindir=DIR user executables in DIR [EPREFIX/bin]
417 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
418 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
419 --datadir=DIR read-only architecture-independent data in DIR
420 [PREFIX/share]
421 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
422 --sharedstatedir=DIR modifiable architecture-independent data in DIR
423 [PREFIX/com]
424 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
425 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
426 --includedir=DIR C header files in DIR [PREFIX/include]
427 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
428 --infodir=DIR info documentation in DIR [PREFIX/info]
429 --mandir=DIR man documentation in DIR [PREFIX/man]
430 --srcdir=DIR find the sources in DIR [configure dir or ..]
431 --program-prefix=PREFIX prepend PREFIX to installed program names
432 --program-suffix=SUFFIX append SUFFIX to installed program names
433 --program-transform-name=PROGRAM
434 run sed PROGRAM on installed program names
435 EOF
436 cat << EOF
437 Host type:
438 --build=BUILD configure for building on BUILD [BUILD=HOST]
439 --host=HOST configure for HOST [guessed]
440 --target=TARGET configure for TARGET [TARGET=HOST]
441 Features and packages:
442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
446 --x-includes=DIR X include files are in DIR
447 --x-libraries=DIR X library files are in DIR
448 EOF
449 if test -n "$ac_help"; then
450 echo "--enable and --with options recognized:$ac_help"
451 fi
452 exit 0 ;;
453
454 -host | --host | --hos | --ho)
455 ac_prev=host ;;
456 -host=* | --host=* | --hos=* | --ho=*)
457 host="$ac_optarg" ;;
458
459 -includedir | --includedir | --includedi | --included | --include \
460 | --includ | --inclu | --incl | --inc)
461 ac_prev=includedir ;;
462 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
463 | --includ=* | --inclu=* | --incl=* | --inc=*)
464 includedir="$ac_optarg" ;;
465
466 -infodir | --infodir | --infodi | --infod | --info | --inf)
467 ac_prev=infodir ;;
468 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
469 infodir="$ac_optarg" ;;
470
471 -libdir | --libdir | --libdi | --libd)
472 ac_prev=libdir ;;
473 -libdir=* | --libdir=* | --libdi=* | --libd=*)
474 libdir="$ac_optarg" ;;
475
476 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
477 | --libexe | --libex | --libe)
478 ac_prev=libexecdir ;;
479 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
480 | --libexe=* | --libex=* | --libe=*)
481 libexecdir="$ac_optarg" ;;
482
483 -localstatedir | --localstatedir | --localstatedi | --localstated \
484 | --localstate | --localstat | --localsta | --localst \
485 | --locals | --local | --loca | --loc | --lo)
486 ac_prev=localstatedir ;;
487 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
488 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
489 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
490 localstatedir="$ac_optarg" ;;
491
492 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
493 ac_prev=mandir ;;
494 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
495 mandir="$ac_optarg" ;;
496
497 -nfp | --nfp | --nf)
498 # Obsolete; use --without-fp.
499 with_fp=no ;;
500
501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
502 | --no-cr | --no-c)
503 no_create=yes ;;
504
505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
507 no_recursion=yes ;;
508
509 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
510 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
511 | --oldin | --oldi | --old | --ol | --o)
512 ac_prev=oldincludedir ;;
513 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
514 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
515 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
516 oldincludedir="$ac_optarg" ;;
517
518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
519 ac_prev=prefix ;;
520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
521 prefix="$ac_optarg" ;;
522
523 -program-prefix | --program-prefix | --program-prefi | --program-pref \
524 | --program-pre | --program-pr | --program-p)
525 ac_prev=program_prefix ;;
526 -program-prefix=* | --program-prefix=* | --program-prefi=* \
527 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
528 program_prefix="$ac_optarg" ;;
529
530 -program-suffix | --program-suffix | --program-suffi | --program-suff \
531 | --program-suf | --program-su | --program-s)
532 ac_prev=program_suffix ;;
533 -program-suffix=* | --program-suffix=* | --program-suffi=* \
534 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
535 program_suffix="$ac_optarg" ;;
536
537 -program-transform-name | --program-transform-name \
538 | --program-transform-nam | --program-transform-na \
539 | --program-transform-n | --program-transform- \
540 | --program-transform | --program-transfor \
541 | --program-transfo | --program-transf \
542 | --program-trans | --program-tran \
543 | --progr-tra | --program-tr | --program-t)
544 ac_prev=program_transform_name ;;
545 -program-transform-name=* | --program-transform-name=* \
546 | --program-transform-nam=* | --program-transform-na=* \
547 | --program-transform-n=* | --program-transform-=* \
548 | --program-transform=* | --program-transfor=* \
549 | --program-transfo=* | --program-transf=* \
550 | --program-trans=* | --program-tran=* \
551 | --progr-tra=* | --program-tr=* | --program-t=*)
552 program_transform_name="$ac_optarg" ;;
553
554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
555 | -silent | --silent | --silen | --sile | --sil)
556 silent=yes ;;
557
558 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
559 ac_prev=sbindir ;;
560 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
561 | --sbi=* | --sb=*)
562 sbindir="$ac_optarg" ;;
563
564 -sharedstatedir | --sharedstatedir | --sharedstatedi \
565 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
566 | --sharedst | --shareds | --shared | --share | --shar \
567 | --sha | --sh)
568 ac_prev=sharedstatedir ;;
569 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
570 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
571 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
572 | --sha=* | --sh=*)
573 sharedstatedir="$ac_optarg" ;;
574
575 -site | --site | --sit)
576 ac_prev=site ;;
577 -site=* | --site=* | --sit=*)
578 site="$ac_optarg" ;;
579
580 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
581 ac_prev=srcdir ;;
582 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
583 srcdir="$ac_optarg" ;;
584
585 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
586 | --syscon | --sysco | --sysc | --sys | --sy)
587 ac_prev=sysconfdir ;;
588 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
589 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
590 sysconfdir="$ac_optarg" ;;
591
592 -target | --target | --targe | --targ | --tar | --ta | --t)
593 ac_prev=target ;;
594 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
595 target="$ac_optarg" ;;
596
597 -v | -verbose | --verbose | --verbos | --verbo | --verb)
598 verbose=yes ;;
599
600 -version | --version | --versio | --versi | --vers)
601 echo "configure generated by autoconf version 2.14"
602 exit 0 ;;
603
604 -with-* | --with-*)
605 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
606 # Reject names that are not valid shell variable names.
607 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
608 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
609 fi
610 ac_package=`echo $ac_package| sed 's/-/_/g'`
611 case "$ac_option" in
612 *=*) ;;
613 *) ac_optarg=yes ;;
614 esac
615 eval "with_${ac_package}='$ac_optarg'" ;;
616
617 -without-* | --without-*)
618 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
619 # Reject names that are not valid shell variable names.
620 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
621 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
622 fi
623 ac_package=`echo $ac_package| sed 's/-/_/g'`
624 eval "with_${ac_package}=no" ;;
625
626 --x)
627 # Obsolete; use --with-x.
628 with_x=yes ;;
629
630 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
631 | --x-incl | --x-inc | --x-in | --x-i)
632 ac_prev=x_includes ;;
633 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
634 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
635 x_includes="$ac_optarg" ;;
636
637 -x-libraries | --x-libraries | --x-librarie | --x-librari \
638 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
639 ac_prev=x_libraries ;;
640 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
641 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
642 x_libraries="$ac_optarg" ;;
643
644 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
645 ;;
646
647 *)
648 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
649 echo "configure: warning: $ac_option: invalid host type" 1>&2
650 fi
651 if test "x$nonopt" != xNONE; then
652 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
653 fi
654 nonopt="$ac_option"
655 ;;
656
657 esac
658 done
659
660 if test -n "$ac_prev"; then
661 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
662 fi
663
664 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
665
666 # File descriptor usage:
667 # 0 standard input
668 # 1 file creation
669 # 2 errors and warnings
670 # 3 some systems may open it to /dev/tty
671 # 4 used on the Kubota Titan
672 # 6 checking for... messages and results
673 # 5 compiler messages saved in config.log
674 if test "$silent" = yes; then
675 exec 6>/dev/null
676 else
677 exec 6>&1
678 fi
679 exec 5>./config.log
680
681 echo "\
682 This file contains any messages produced by compilers while
683 running configure, to aid debugging if configure makes a mistake.
684 " 1>&5
685
686 # Strip out --no-create and --no-recursion so they do not pile up.
687 # Also quote any args containing shell metacharacters.
688 ac_configure_args=
689 for ac_arg
690 do
691 case "$ac_arg" in
692 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
693 | --no-cr | --no-c) ;;
694 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
695 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
696 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
697 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
698 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
699 esac
700 done
701
702 # NLS nuisances.
703 # Only set these to C if already set. These must not be set unconditionally
704 # because not all systems understand e.g. LANG=C (notably SCO).
705 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
706 # Non-C LC_CTYPE values break the ctype check.
707 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
708 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
709 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
710 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
711
712 # confdefs.h avoids OS command line length limits that DEFS can exceed.
713 rm -rf conftest* confdefs.h
714 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
715 echo > confdefs.h
716
717 # A filename unique to this package, relative to the directory that
718 # configure is in, which we can look for to find out if srcdir is correct.
719 ac_unique_file=wx-config.in
720
721 # Find the source files, if location was not specified.
722 if test -z "$srcdir"; then
723 ac_srcdir_defaulted=yes
724 # Try the directory containing this script, then its parent.
725 ac_prog=$0
726 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
727 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
728 srcdir=$ac_confdir
729 if test ! -r $srcdir/$ac_unique_file; then
730 srcdir=..
731 fi
732 else
733 ac_srcdir_defaulted=no
734 fi
735 if test ! -r $srcdir/$ac_unique_file; then
736 if test "$ac_srcdir_defaulted" = yes; then
737 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
738 else
739 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
740 fi
741 fi
742 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
743
744 # Prefer explicitly selected file to automatically selected ones.
745 if test -z "$CONFIG_SITE"; then
746 if test "x$prefix" != xNONE; then
747 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
748 else
749 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
750 fi
751 fi
752 for ac_site_file in $CONFIG_SITE; do
753 if test -r "$ac_site_file"; then
754 echo "loading site script $ac_site_file"
755 . "$ac_site_file"
756 fi
757 done
758
759 if test -r "$cache_file"; then
760 echo "loading cache $cache_file"
761 . $cache_file
762 else
763 echo "creating cache $cache_file"
764 > $cache_file
765 fi
766
767 ac_ext=c
768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
769 ac_cpp='$CPP $CPPFLAGS'
770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
772 cross_compiling=$ac_cv_prog_cc_cross
773
774 ac_exeext=
775 ac_objext=o
776 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
777 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
778 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
779 ac_n= ac_c='
780 ' ac_t=' '
781 else
782 ac_n=-n ac_c= ac_t=
783 fi
784 else
785 ac_n= ac_c='\c' ac_t=
786 fi
787
788
789
790 ac_aux_dir=
791 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
792 if test -f $ac_dir/install-sh; then
793 ac_aux_dir=$ac_dir
794 ac_install_sh="$ac_aux_dir/install-sh -c"
795 break
796 elif 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 fi
801 done
802 if test -z "$ac_aux_dir"; then
803 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
804 fi
805 ac_config_guess=$ac_aux_dir/config.guess
806 ac_config_sub=$ac_aux_dir/config.sub
807 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
808
809
810 # Do some error checking and defaulting for the host and target type.
811 # The inputs are:
812 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
813 #
814 # The rules are:
815 # 1. You are not allowed to specify --host, --target, and nonopt at the
816 # same time.
817 # 2. Host defaults to nonopt.
818 # 3. If nonopt is not specified, then host defaults to the current host,
819 # as determined by config.guess.
820 # 4. Target and build default to nonopt.
821 # 5. If nonopt is not specified, then target and build default to host.
822
823 # The aliases save the names the user supplied, while $host etc.
824 # will get canonicalized.
825 case $host---$target---$nonopt in
826 NONE---*---* | *---NONE---* | *---*---NONE) ;;
827 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
828 esac
829
830
831 # Make sure we can run config.sub.
832 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
833 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
834 fi
835
836 echo $ac_n "checking host system type""... $ac_c" 1>&6
837 echo "configure:838: checking host system type" >&5
838
839 host_alias=$host
840 case "$host_alias" in
841 NONE)
842 case $nonopt in
843 NONE)
844 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
845 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
846 fi ;;
847 *) host_alias=$nonopt ;;
848 esac ;;
849 esac
850
851 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
852 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
853 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
854 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
855 echo "$ac_t""$host" 1>&6
856
857 echo $ac_n "checking target system type""... $ac_c" 1>&6
858 echo "configure:859: checking target system type" >&5
859
860 target_alias=$target
861 case "$target_alias" in
862 NONE)
863 case $nonopt in
864 NONE) target_alias=$host_alias ;;
865 *) target_alias=$nonopt ;;
866 esac ;;
867 esac
868
869 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
870 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
871 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
872 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
873 echo "$ac_t""$target" 1>&6
874
875 echo $ac_n "checking build system type""... $ac_c" 1>&6
876 echo "configure:877: checking build system type" >&5
877
878 build_alias=$build
879 case "$build_alias" in
880 NONE)
881 case $nonopt in
882 NONE) build_alias=$host_alias ;;
883 *) build_alias=$nonopt ;;
884 esac ;;
885 esac
886
887 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
888 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
889 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
890 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
891 echo "$ac_t""$build" 1>&6
892
893 test "$host_alias" != "$target_alias" &&
894 test "$program_prefix$program_suffix$program_transform_name" = \
895 NONENONEs,x,x, &&
896 program_prefix=${target_alias}-
897
898
899
900 WX_MAJOR_VERSION_NUMBER=2
901 WX_MINOR_VERSION_NUMBER=1
902 WX_RELEASE_NUMBER=14
903
904 WX_INTERFACE_AGE=0
905 WX_BINARY_AGE=0
906
907 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
908
909 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
910 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
911 WX_REVISION=$WX_INTERFACE_AGE
912 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
913
914
915 USE_UNIX=1
916 USE_WIN32=0
917 USE_BEOS=0
918
919 USE_LINUX=
920 USE_SGI=
921 USE_HPUX=
922 USE_SYSV=
923 USE_SVR4=
924 USE_AIX=
925 USE_SUN=
926 USE_SOLARIS=
927 USE_SUNOS=
928 USE_ALPHA=
929 USE_OSF=
930 USE_BSD=
931 USE_FREEBSD=
932 USE_VMS=
933 USE_ULTRIX=
934 USE_CYGWIN=
935 USE_MINGW=
936 USE_DATA_GENERAL=
937
938 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
939
940 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
941
942 DEFAULT_wxUSE_GTK=0
943 DEFAULT_wxUSE_MOTIF=0
944 DEFAULT_wxUSE_MSW=0
945 DEFAULT_wxUSE_WINE=0
946 DEFAULT_wxUSE_PM=0
947
948 DEFAULT_DEFAULT_wxUSE_GTK=0
949 DEFAULT_DEFAULT_wxUSE_MOTIF=0
950 DEFAULT_DEFAULT_wxUSE_MSW=0
951 DEFAULT_DEFAULT_wxUSE_WINE=0
952 DEFAULT_DEFAULT_wxUSE_PM=0
953
954 case "${host}" in
955 *-hp-hpux* )
956 USE_HPUX=1
957 DEFAULT_DEFAULT_wxUSE_MOTIF=1
958 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
959 cat >> confdefs.h <<\EOF
960 #define __HPUX__ 1
961 EOF
962
963 ;;
964 *-*-linux* )
965 USE_LINUX=1
966 cat >> confdefs.h <<\EOF
967 #define __LINUX__ 1
968 EOF
969
970 TMP=`uname -m`
971 if test "x$TMP" = "xalpha"; then
972 USE_ALPHA=1
973 cat >> confdefs.h <<\EOF
974 #define __ALPHA__ 1
975 EOF
976
977 fi
978 DEFAULT_DEFAULT_wxUSE_GTK=1
979 ;;
980 *-*-irix5* | *-*-irix6* )
981 USE_SGI=1
982 USE_SVR4=1
983 cat >> confdefs.h <<\EOF
984 #define __SGI__ 1
985 EOF
986
987 cat >> confdefs.h <<\EOF
988 #define __SVR4__ 1
989 EOF
990
991 DEFAULT_DEFAULT_wxUSE_MOTIF=1
992 ;;
993 *-*-solaris2* )
994 USE_SUN=1
995 USE_SOLARIS=1
996 USE_SVR4=1
997 cat >> confdefs.h <<\EOF
998 #define __SUN__ 1
999 EOF
1000
1001 cat >> confdefs.h <<\EOF
1002 #define __SOLARIS__ 1
1003 EOF
1004
1005 cat >> confdefs.h <<\EOF
1006 #define __SVR4__ 1
1007 EOF
1008
1009 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1010 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1011 ;;
1012 *-*-sunos4* )
1013 USE_SUN=1
1014 USE_SUNOS=1
1015 USE_BSD=1
1016 cat >> confdefs.h <<\EOF
1017 #define __SUN__ 1
1018 EOF
1019
1020 cat >> confdefs.h <<\EOF
1021 #define __SUNOS__ 1
1022 EOF
1023
1024 cat >> confdefs.h <<\EOF
1025 #define __BSD__ 1
1026 EOF
1027
1028 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1029 ;;
1030 *-*-freebsd* | *-*-netbsd*)
1031 USE_BSD=1
1032 USE_FREEBSD=1
1033 cat >> confdefs.h <<\EOF
1034 #define __FREEBSD__ 1
1035 EOF
1036
1037 cat >> confdefs.h <<\EOF
1038 #define __BSD__ 1
1039 EOF
1040
1041 DEFAULT_DEFAULT_wxUSE_GTK=1
1042 ;;
1043 *-*-osf* )
1044 USE_ALPHA=1
1045 USE_OSF=1
1046 cat >> confdefs.h <<\EOF
1047 #define __ALPHA__ 1
1048 EOF
1049
1050 cat >> confdefs.h <<\EOF
1051 #define __OSF__ 1
1052 EOF
1053
1054 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1055 ;;
1056 *-*-dgux5* )
1057 USE_ALPHA=1
1058 USE_SVR4=1
1059 cat >> confdefs.h <<\EOF
1060 #define __ALPHA__ 1
1061 EOF
1062
1063 cat >> confdefs.h <<\EOF
1064 #define __SVR4__ 1
1065 EOF
1066
1067 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1068 ;;
1069 *-*-sysv5* )
1070 USE_SYSV=1
1071 USE_SVR4=1
1072 cat >> confdefs.h <<\EOF
1073 #define __SYSV__ 1
1074 EOF
1075
1076 cat >> confdefs.h <<\EOF
1077 #define __SVR4__ 1
1078 EOF
1079
1080 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1081 ;;
1082 *-*-aix* )
1083 USE_AIX=1
1084 USE_SYSV=1
1085 USE_SVR4=1
1086 cat >> confdefs.h <<\EOF
1087 #define __AIX__ 1
1088 EOF
1089
1090 cat >> confdefs.h <<\EOF
1091 #define __SYSV__ 1
1092 EOF
1093
1094 cat >> confdefs.h <<\EOF
1095 #define __SVR4__ 1
1096 EOF
1097
1098 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1099 ;;
1100
1101 *-*-cygwin32* | *-*-mingw32* )
1102 USE_UNIX=0
1103 USE_WIN32=1
1104 cat >> confdefs.h <<\EOF
1105 #define __WIN32__ 1
1106 EOF
1107
1108 cat >> confdefs.h <<\EOF
1109 #define __WIN95__ 1
1110 EOF
1111
1112 cat >> confdefs.h <<\EOF
1113 #define __WINDOWS__ 1
1114 EOF
1115
1116 cat >> confdefs.h <<\EOF
1117 #define __GNUWIN32__ 1
1118 EOF
1119
1120 cat >> confdefs.h <<\EOF
1121 #define STRICT 1
1122 EOF
1123
1124 cat >> confdefs.h <<\EOF
1125 #define WINVER 0x0400
1126 EOF
1127
1128 PROGRAM_EXT=".exe"
1129 DEFAULT_DEFAULT_wxUSE_MSW=1
1130 ;;
1131
1132 *-pc-os2_emx )
1133 cat >> confdefs.h <<\EOF
1134 #define __EMX__ 1
1135 EOF
1136
1137 PROGRAM_EXT=".exe"
1138 DEFAULT_DEFAULT_wxUSE_PM=1
1139 ;;
1140
1141 *-*-beos* )
1142 USE_BEOS=1
1143 cat >> confdefs.h <<\EOF
1144 #define __BEOS__ 1
1145 EOF
1146
1147 ;;
1148
1149 *)
1150 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1151 esac
1152
1153 if test "$USE_UNIX" = 1 ; then
1154 wxUSE_UNIX=yes
1155 cat >> confdefs.h <<\EOF
1156 #define __UNIX__ 1
1157 EOF
1158
1159
1160 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1161 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1162 fi
1163
1164 if test "$USE_BEOS" = 1; then
1165 SRC_SUBDIRS="$SRC_SUBDIRS be"
1166 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1167 fi
1168
1169 if test "$USE_LINUX" = 1; then
1170 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1171 echo "configure:1172: checking for gettext in -lc" >&5
1172 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175 else
1176 ac_save_LIBS="$LIBS"
1177 LIBS="-lc $LIBS"
1178 cat > conftest.$ac_ext <<EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1181 /* Override any gcc2 internal prototype to avoid an error. */
1182 /* We use char because int might match the return type of a gcc2
1183 builtin and then its argument prototype would still apply. */
1184 char gettext();
1185
1186 int main() {
1187 gettext()
1188 ; return 0; }
1189 EOF
1190 if { (eval echo configure:1191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1191 rm -rf conftest*
1192 eval "ac_cv_lib_$ac_lib_var=yes"
1193 else
1194 echo "configure: failed program was:" >&5
1195 cat conftest.$ac_ext >&5
1196 rm -rf conftest*
1197 eval "ac_cv_lib_$ac_lib_var=no"
1198 fi
1199 rm -f conftest*
1200 LIBS="$ac_save_LIBS"
1201
1202 fi
1203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1204 echo "$ac_t""yes" 1>&6
1205 cat >> confdefs.h <<\EOF
1206 #define wxHAVE_GLIBC2 1
1207 EOF
1208
1209 else
1210 echo "$ac_t""no" 1>&6
1211 fi
1212
1213 fi
1214
1215
1216
1217
1218 wx_arg_cache_file="configarg.cache"
1219 echo "loading argument cache $wx_arg_cache_file"
1220 rm -f ${wx_arg_cache_file}.tmp
1221 touch ${wx_arg_cache_file}.tmp
1222 touch ${wx_arg_cache_file}
1223
1224
1225 DEBUG_CONFIGURE=0
1226 if test $DEBUG_CONFIGURE = 1; then
1227 DEFAULT_wxUSE_THREADS=yes
1228
1229 DEFAULT_wxUSE_SHARED=yes
1230 DEFAULT_wxUSE_OPTIMISE=yes
1231 DEFAULT_wxUSE_PROFILE=no
1232 DEFAULT_wxUSE_NO_DEPS=no
1233 DEFAULT_wxUSE_NO_RTTI=no
1234 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1235 DEFAULT_wxUSE_PERMISSIVE=no
1236 DEFAULT_wxUSE_DEBUG_FLAG=yes
1237 DEFAULT_wxUSE_DEBUG_INFO=yes
1238 DEFAULT_wxUSE_DEBUG_GDB=yes
1239 DEFAULT_wxUSE_MEM_TRACING=no
1240 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1241 DEFAULT_wxUSE_DMALLOC=no
1242 DEFAULT_wxUSE_APPLE_IEEE=no
1243
1244 DEFAULT_wxUSE_LOG=yes
1245
1246 DEFAULT_wxUSE_GUI=yes
1247
1248 DEFAULT_wxUSE_ZLIB=no
1249 DEFAULT_wxUSE_LIBPNG=no
1250 DEFAULT_wxUSE_LIBJPEG=no
1251 DEFAULT_wxUSE_LIBTIFF=no
1252 DEFAULT_wxUSE_ODBC=no
1253
1254 DEFAULT_wxUSE_STD_IOSTREAM=no
1255 DEFAULT_wxUSE_FILE=no
1256 DEFAULT_wxUSE_TEXTFILE=no
1257 DEFAULT_wxUSE_TIMEDATE=no
1258 DEFAULT_wxUSE_WAVE=no
1259 DEFAULT_wxUSE_INTL=no
1260 DEFAULT_wxUSE_CONFIG=no
1261 DEFAULT_wxUSE_STREAMS=no
1262 DEFAULT_wxUSE_SOCKETS=no
1263 DEFAULT_wxUSE_DIALUP_MANAGER=no
1264 DEFAULT_wxUSE_SERIAL=no
1265 DEFAULT_wxUSE_JOYSTICK=no
1266 DEFAULT_wxUSE_DYNLIB_CLASS=no
1267 DEFAULT_wxUSE_LONGLONG=no
1268
1269 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1270 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1271 DEFAULT_wxUSE_POSTSCRIPT=no
1272
1273 DEFAULT_wxUSE_X_RESOURCES=no
1274 DEFAULT_wxUSE_CLIPBOARD=no
1275 DEFAULT_wxUSE_TOOLTIPS=no
1276 DEFAULT_wxUSE_DRAG_AND_DROP=no
1277 DEFAULT_wxUSE_SPLINES=no
1278
1279 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1280 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1281 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1282
1283 DEFAULT_wxUSE_PROLOGIO=no
1284 DEFAULT_wxUSE_RESOURCES=no
1285 DEFAULT_wxUSE_CONSTRAINTS=no
1286 DEFAULT_wxUSE_IPC=no
1287 DEFAULT_wxUSE_HELP=no
1288 DEFAULT_wxUSE_WXTREE=no
1289 DEFAULT_wxUSE_METAFILE=no
1290
1291 DEFAULT_wxUSE_COMMONDLGS=no
1292 DEFAULT_wxUSE_DIRDLG=no
1293 DEFAULT_wxUSE_TEXTDLG=no
1294 DEFAULT_wxUSE_STARTUP_TIPS=no
1295 DEFAULT_wxUSE_PROGRESSDLG=no
1296 DEFAULT_wxUSE_MINIFRAME=no
1297 DEFAULT_wxUSE_HTML=no
1298 DEFAULT_wxUSE_FS_INET=no
1299 DEFAULT_wxUSE_FS_ZIP=no
1300 DEFAULT_wxUSE_BUSYINFO=no
1301 DEFAULT_wxUSE_ZIPSTREAM=no
1302 DEFAULT_wxUSE_VALIDATORS=yes
1303
1304 DEFAULT_wxUSE_ACCEL=no
1305 DEFAULT_wxUSE_CARET=no
1306 DEFAULT_wxUSE_BMPBUTTON=no
1307 DEFAULT_wxUSE_CHECKBOX=no
1308 DEFAULT_wxUSE_CHECKLST=no
1309 DEFAULT_wxUSE_CHOICE=yes
1310 DEFAULT_wxUSE_COMBOBOX=no
1311 DEFAULT_wxUSE_GAUGE=no
1312 DEFAULT_wxUSE_GRID=no
1313 DEFAULT_wxUSE_NEW_GRID=no
1314 DEFAULT_wxUSE_IMAGLIST=no
1315 DEFAULT_wxUSE_LISTBOX=no
1316 DEFAULT_wxUSE_LISTCTRL=no
1317 DEFAULT_wxUSE_NOTEBOOK=no
1318 DEFAULT_wxUSE_PLOT=no
1319 DEFAULT_wxUSE_RADIOBOX=no
1320 DEFAULT_wxUSE_RADIOBTN=no
1321 DEFAULT_wxUSE_SASH=no
1322 DEFAULT_wxUSE_SCROLLBAR=no
1323 DEFAULT_wxUSE_SLIDER=no
1324 DEFAULT_wxUSE_SPINBTN=no
1325 DEFAULT_wxUSE_SPINCTRL=no
1326 DEFAULT_wxUSE_SPLITTER=no
1327 DEFAULT_wxUSE_STATBMP=no
1328 DEFAULT_wxUSE_STATBOX=no
1329 DEFAULT_wxUSE_STATLINE=no
1330 DEFAULT_wxUSE_STATUSBAR=yes
1331 DEFAULT_wxUSE_TABDIALOG=no
1332 DEFAULT_wxUSE_TOOLBAR=no
1333 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1334 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1335 DEFAULT_wxUSE_TREECTRL=no
1336
1337 DEFAULT_wxUSE_UNICODE=no
1338 DEFAULT_wxUSE_WCSRTOMBS=no
1339
1340 DEFAULT_wxUSE_GIF=no
1341 DEFAULT_wxUSE_PCX=no
1342 DEFAULT_wxUSE_PNM=no
1343 else
1344 DEFAULT_wxUSE_THREADS=yes
1345
1346 DEFAULT_wxUSE_SHARED=yes
1347 DEFAULT_wxUSE_OPTIMISE=yes
1348 DEFAULT_wxUSE_PROFILE=no
1349 DEFAULT_wxUSE_NO_DEPS=no
1350 DEFAULT_wxUSE_NO_RTTI=no
1351 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1352 DEFAULT_wxUSE_PERMISSIVE=no
1353 DEFAULT_wxUSE_DEBUG_FLAG=no
1354 DEFAULT_wxUSE_DEBUG_INFO=no
1355 DEFAULT_wxUSE_DEBUG_GDB=no
1356 DEFAULT_wxUSE_MEM_TRACING=no
1357 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1358 DEFAULT_wxUSE_DMALLOC=no
1359 DEFAULT_wxUSE_APPLE_IEEE=yes
1360
1361 DEFAULT_wxUSE_LOG=yes
1362
1363 DEFAULT_wxUSE_GUI=yes
1364
1365 DEFAULT_wxUSE_ZLIB=yes
1366 DEFAULT_wxUSE_LIBPNG=yes
1367 DEFAULT_wxUSE_LIBJPEG=yes
1368 DEFAULT_wxUSE_LIBTIFF=yes
1369 DEFAULT_wxUSE_ODBC=no
1370
1371 DEFAULT_wxUSE_STD_IOSTREAM=no
1372 DEFAULT_wxUSE_FILE=yes
1373 DEFAULT_wxUSE_TEXTFILE=yes
1374 DEFAULT_wxUSE_TIMEDATE=yes
1375 DEFAULT_wxUSE_WAVE=no
1376 DEFAULT_wxUSE_INTL=yes
1377 DEFAULT_wxUSE_CONFIG=yes
1378 DEFAULT_wxUSE_STREAMS=yes
1379 DEFAULT_wxUSE_SOCKETS=yes
1380 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1381 DEFAULT_wxUSE_SERIAL=yes
1382 DEFAULT_wxUSE_JOYSTICK=yes
1383 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1384 DEFAULT_wxUSE_LONGLONG=yes
1385
1386 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1387 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1388 DEFAULT_wxUSE_POSTSCRIPT=yes
1389
1390 DEFAULT_wxUSE_X_RESOURCES=no
1391 DEFAULT_wxUSE_CLIPBOARD=yes
1392 DEFAULT_wxUSE_TOOLTIPS=yes
1393 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1394 DEFAULT_wxUSE_SPLINES=yes
1395
1396 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1397 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1398 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1399
1400 DEFAULT_wxUSE_PROLOGIO=yes
1401 DEFAULT_wxUSE_RESOURCES=yes
1402 DEFAULT_wxUSE_CONSTRAINTS=yes
1403 DEFAULT_wxUSE_IPC=yes
1404 DEFAULT_wxUSE_HELP=yes
1405 DEFAULT_wxUSE_WXTREE=yes
1406 DEFAULT_wxUSE_METAFILE=yes
1407
1408 DEFAULT_wxUSE_COMMONDLGS=yes
1409 DEFAULT_wxUSE_DIRDLG=yes
1410 DEFAULT_wxUSE_TEXTDLG=yes
1411 DEFAULT_wxUSE_STARTUP_TIPS=yes
1412 DEFAULT_wxUSE_PROGRESSDLG=yes
1413 DEFAULT_wxUSE_MINIFRAME=yes
1414 DEFAULT_wxUSE_HTML=yes
1415 DEFAULT_wxUSE_FS_INET=yes
1416 DEFAULT_wxUSE_FS_ZIP=yes
1417 DEFAULT_wxUSE_BUSYINFO=yes
1418 DEFAULT_wxUSE_ZIPSTREAM=yes
1419 DEFAULT_wxUSE_VALIDATORS=yes
1420
1421 DEFAULT_wxUSE_ACCEL=yes
1422 DEFAULT_wxUSE_CARET=yes
1423 DEFAULT_wxUSE_BMPBUTTON=yes
1424 DEFAULT_wxUSE_CHECKBOX=yes
1425 DEFAULT_wxUSE_CHECKLST=yes
1426 DEFAULT_wxUSE_CHOICE=yes
1427 DEFAULT_wxUSE_COMBOBOX=yes
1428 DEFAULT_wxUSE_GAUGE=yes
1429 DEFAULT_wxUSE_GRID=yes
1430 DEFAULT_wxUSE_NEW_GRID=yes
1431 DEFAULT_wxUSE_IMAGLIST=yes
1432 DEFAULT_wxUSE_LISTBOX=yes
1433 DEFAULT_wxUSE_LISTCTRL=yes
1434 DEFAULT_wxUSE_NOTEBOOK=yes
1435 DEFAULT_wxUSE_PLOT=yes
1436 DEFAULT_wxUSE_RADIOBOX=yes
1437 DEFAULT_wxUSE_RADIOBTN=yes
1438 DEFAULT_wxUSE_SASH=yes
1439 DEFAULT_wxUSE_SCROLLBAR=yes
1440 DEFAULT_wxUSE_SLIDER=yes
1441 DEFAULT_wxUSE_SPINBTN=yes
1442 DEFAULT_wxUSE_SPINCTRL=yes
1443 DEFAULT_wxUSE_SPLITTER=yes
1444 DEFAULT_wxUSE_STATBMP=yes
1445 DEFAULT_wxUSE_STATBOX=yes
1446 DEFAULT_wxUSE_STATLINE=yes
1447 DEFAULT_wxUSE_STATUSBAR=yes
1448 DEFAULT_wxUSE_TABDIALOG=no
1449 DEFAULT_wxUSE_TOOLBAR=yes
1450 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1451 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1452 DEFAULT_wxUSE_TREECTRL=yes
1453
1454 DEFAULT_wxUSE_UNICODE=no
1455 DEFAULT_wxUSE_WCSRTOMBS=no
1456
1457 DEFAULT_wxUSE_GIF=yes
1458 DEFAULT_wxUSE_PCX=yes
1459 DEFAULT_wxUSE_PNM=yes
1460 fi
1461
1462
1463
1464 for toolkit in `echo $ALL_TOOLKITS`; do
1465 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1466 if test "x$LINE" != x ; then
1467 has_toolkit_in_cache=1
1468 eval "DEFAULT_$LINE"
1469 eval "CACHE_$toolkit=1"
1470 fi
1471 done
1472
1473
1474
1475 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1476 echo "configure:1477: checking "for --enable-gui"" >&5
1477 no_cache=0
1478 # Check whether --enable-gui or --disable-gui was given.
1479 if test "${enable_gui+set}" = set; then
1480 enableval="$enable_gui"
1481
1482 if test "$enableval" = yes; then
1483 ac_cv_use_gui='wxUSE_GUI=yes'
1484 else
1485 ac_cv_use_gui='wxUSE_GUI=no'
1486 fi
1487
1488 else
1489
1490 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1491 if test "x$LINE" != x ; then
1492 eval "DEFAULT_$LINE"
1493 else
1494 no_cache=1
1495 fi
1496
1497 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1498
1499 fi
1500
1501
1502 eval "$ac_cv_use_gui"
1503 if test "$no_cache" != 1; then
1504 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1505 fi
1506
1507 if test "$wxUSE_GUI" = yes; then
1508 echo "$ac_t""yes" 1>&6
1509 else
1510 echo "$ac_t""no" 1>&6
1511 fi
1512
1513
1514 if test "$wxUSE_GUI" = "yes"; then
1515
1516 # Check whether --with-gtk or --without-gtk was given.
1517 if test "${with_gtk+set}" = set; then
1518 withval="$with_gtk"
1519 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1520 fi
1521
1522 # Check whether --with-motif or --without-motif was given.
1523 if test "${with_motif+set}" = set; then
1524 withval="$with_motif"
1525 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1526 fi
1527
1528 # Check whether --with-wine or --without-wine was given.
1529 if test "${with_wine+set}" = set; then
1530 withval="$with_wine"
1531 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1532 fi
1533
1534 # Check whether --with-cygwin or --without-cygwin was given.
1535 if test "${with_cygwin+set}" = set; then
1536 withval="$with_cygwin"
1537 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1538 fi
1539
1540 # Check whether --with-mingw or --without-mingw was given.
1541 if test "${with_mingw+set}" = set; then
1542 withval="$with_mingw"
1543 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1544 fi
1545
1546 # Check whether --with-pm or --without-pm was given.
1547 if test "${with_pm+set}" = set; then
1548 withval="$with_pm"
1549 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1550 fi
1551
1552
1553 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1554 if test "${with_gtk_prefix+set}" = set; then
1555 withval="$with_gtk_prefix"
1556 gtk_config_prefix="$withval"
1557 else
1558 gtk_config_prefix=""
1559 fi
1560
1561 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1562 if test "${with_gtk_exec_prefix+set}" = set; then
1563 withval="$with_gtk_exec_prefix"
1564 gtk_config_exec_prefix="$withval"
1565 else
1566 gtk_config_exec_prefix=""
1567 fi
1568
1569
1570
1571 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1572 echo "configure:1573: checking "for --with-libpng"" >&5
1573 no_cache=0
1574 # Check whether --with-libpng or --without-libpng was given.
1575 if test "${with_libpng+set}" = set; then
1576 withval="$with_libpng"
1577
1578 if test "$withval" = yes; then
1579 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1580 else
1581 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1582 fi
1583
1584 else
1585
1586 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1587 if test "x$LINE" != x ; then
1588 eval "DEFAULT_$LINE"
1589 else
1590 no_cache=1
1591 fi
1592
1593 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1594
1595 fi
1596
1597
1598 eval "$ac_cv_use_libpng"
1599 if test "$no_cache" != 1; then
1600 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1601 fi
1602
1603 if test "$wxUSE_LIBPNG" = yes; then
1604 echo "$ac_t""yes" 1>&6
1605 else
1606 echo "$ac_t""no" 1>&6
1607 fi
1608
1609
1610 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1611 echo "configure:1612: checking "for --with-libjpeg"" >&5
1612 no_cache=0
1613 # Check whether --with-libjpeg or --without-libjpeg was given.
1614 if test "${with_libjpeg+set}" = set; then
1615 withval="$with_libjpeg"
1616
1617 if test "$withval" = yes; then
1618 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1619 else
1620 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1621 fi
1622
1623 else
1624
1625 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1626 if test "x$LINE" != x ; then
1627 eval "DEFAULT_$LINE"
1628 else
1629 no_cache=1
1630 fi
1631
1632 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1633
1634 fi
1635
1636
1637 eval "$ac_cv_use_libjpeg"
1638 if test "$no_cache" != 1; then
1639 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1640 fi
1641
1642 if test "$wxUSE_LIBJPEG" = yes; then
1643 echo "$ac_t""yes" 1>&6
1644 else
1645 echo "$ac_t""no" 1>&6
1646 fi
1647
1648
1649 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1650 echo "configure:1651: checking "for --with-libtiff"" >&5
1651 no_cache=0
1652 # Check whether --with-libtiff or --without-libtiff was given.
1653 if test "${with_libtiff+set}" = set; then
1654 withval="$with_libtiff"
1655
1656 if test "$withval" = yes; then
1657 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1658 else
1659 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1660 fi
1661
1662 else
1663
1664 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1665 if test "x$LINE" != x ; then
1666 eval "DEFAULT_$LINE"
1667 else
1668 no_cache=1
1669 fi
1670
1671 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1672
1673 fi
1674
1675
1676 eval "$ac_cv_use_libtiff"
1677 if test "$no_cache" != 1; then
1678 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1679 fi
1680
1681 if test "$wxUSE_LIBTIFF" = yes; then
1682 echo "$ac_t""yes" 1>&6
1683 else
1684 echo "$ac_t""no" 1>&6
1685 fi
1686
1687
1688 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1689 echo "configure:1690: checking "for --with-opengl"" >&5
1690 no_cache=0
1691 # Check whether --with-opengl or --without-opengl was given.
1692 if test "${with_opengl+set}" = set; then
1693 withval="$with_opengl"
1694
1695 if test "$withval" = yes; then
1696 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1697 else
1698 ac_cv_use_opengl='wxUSE_OPENGL=no'
1699 fi
1700
1701 else
1702
1703 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1704 if test "x$LINE" != x ; then
1705 eval "DEFAULT_$LINE"
1706 else
1707 no_cache=1
1708 fi
1709
1710 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1711
1712 fi
1713
1714
1715 eval "$ac_cv_use_opengl"
1716 if test "$no_cache" != 1; then
1717 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1718 fi
1719
1720 if test "$wxUSE_OPENGL" = yes; then
1721 echo "$ac_t""yes" 1>&6
1722 else
1723 echo "$ac_t""no" 1>&6
1724 fi
1725
1726
1727 fi
1728
1729
1730 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1731 echo "configure:1732: checking "for --with-dmalloc"" >&5
1732 no_cache=0
1733 # Check whether --with-dmalloc or --without-dmalloc was given.
1734 if test "${with_dmalloc+set}" = set; then
1735 withval="$with_dmalloc"
1736
1737 if test "$withval" = yes; then
1738 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1739 else
1740 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1741 fi
1742
1743 else
1744
1745 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1746 if test "x$LINE" != x ; then
1747 eval "DEFAULT_$LINE"
1748 else
1749 no_cache=1
1750 fi
1751
1752 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1753
1754 fi
1755
1756
1757 eval "$ac_cv_use_dmalloc"
1758 if test "$no_cache" != 1; then
1759 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1760 fi
1761
1762 if test "$wxUSE_DMALLOC" = yes; then
1763 echo "$ac_t""yes" 1>&6
1764 else
1765 echo "$ac_t""no" 1>&6
1766 fi
1767
1768
1769 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1770 echo "configure:1771: checking "for --with-zlib"" >&5
1771 no_cache=0
1772 # Check whether --with-zlib or --without-zlib was given.
1773 if test "${with_zlib+set}" = set; then
1774 withval="$with_zlib"
1775
1776 if test "$withval" = yes; then
1777 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1778 else
1779 ac_cv_use_zlib='wxUSE_ZLIB=no'
1780 fi
1781
1782 else
1783
1784 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1785 if test "x$LINE" != x ; then
1786 eval "DEFAULT_$LINE"
1787 else
1788 no_cache=1
1789 fi
1790
1791 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1792
1793 fi
1794
1795
1796 eval "$ac_cv_use_zlib"
1797 if test "$no_cache" != 1; then
1798 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1799 fi
1800
1801 if test "$wxUSE_ZLIB" = yes; then
1802 echo "$ac_t""yes" 1>&6
1803 else
1804 echo "$ac_t""no" 1>&6
1805 fi
1806
1807
1808 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1809 echo "configure:1810: checking "for --with-odbc"" >&5
1810 no_cache=0
1811 # Check whether --with-odbc or --without-odbc was given.
1812 if test "${with_odbc+set}" = set; then
1813 withval="$with_odbc"
1814
1815 if test "$withval" = yes; then
1816 ac_cv_use_odbc='wxUSE_ODBC=yes'
1817 else
1818 ac_cv_use_odbc='wxUSE_ODBC=no'
1819 fi
1820
1821 else
1822
1823 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1824 if test "x$LINE" != x ; then
1825 eval "DEFAULT_$LINE"
1826 else
1827 no_cache=1
1828 fi
1829
1830 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1831
1832 fi
1833
1834
1835 eval "$ac_cv_use_odbc"
1836 if test "$no_cache" != 1; then
1837 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1838 fi
1839
1840 if test "$wxUSE_ODBC" = yes; then
1841 echo "$ac_t""yes" 1>&6
1842 else
1843 echo "$ac_t""no" 1>&6
1844 fi
1845
1846
1847
1848
1849
1850 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1851 echo "configure:1852: checking "for --enable-shared"" >&5
1852 no_cache=0
1853 # Check whether --enable-shared or --disable-shared was given.
1854 if test "${enable_shared+set}" = set; then
1855 enableval="$enable_shared"
1856
1857 if test "$enableval" = yes; then
1858 ac_cv_use_shared='wxUSE_SHARED=yes'
1859 else
1860 ac_cv_use_shared='wxUSE_SHARED=no'
1861 fi
1862
1863 else
1864
1865 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1866 if test "x$LINE" != x ; then
1867 eval "DEFAULT_$LINE"
1868 else
1869 no_cache=1
1870 fi
1871
1872 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1873
1874 fi
1875
1876
1877 eval "$ac_cv_use_shared"
1878 if test "$no_cache" != 1; then
1879 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1880 fi
1881
1882 if test "$wxUSE_SHARED" = yes; then
1883 echo "$ac_t""yes" 1>&6
1884 else
1885 echo "$ac_t""no" 1>&6
1886 fi
1887
1888
1889 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1890 echo "configure:1891: checking "for --enable-optimise"" >&5
1891 no_cache=0
1892 # Check whether --enable-optimise or --disable-optimise was given.
1893 if test "${enable_optimise+set}" = set; then
1894 enableval="$enable_optimise"
1895
1896 if test "$enableval" = yes; then
1897 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1898 else
1899 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1900 fi
1901
1902 else
1903
1904 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1905 if test "x$LINE" != x ; then
1906 eval "DEFAULT_$LINE"
1907 else
1908 no_cache=1
1909 fi
1910
1911 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1912
1913 fi
1914
1915
1916 eval "$ac_cv_use_optimise"
1917 if test "$no_cache" != 1; then
1918 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1919 fi
1920
1921 if test "$wxUSE_OPTIMISE" = yes; then
1922 echo "$ac_t""yes" 1>&6
1923 else
1924 echo "$ac_t""no" 1>&6
1925 fi
1926
1927
1928 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1929 echo "configure:1930: checking "for --enable-debug"" >&5
1930 no_cache=0
1931 # Check whether --enable-debug or --disable-debug was given.
1932 if test "${enable_debug+set}" = set; then
1933 enableval="$enable_debug"
1934
1935 if test "$enableval" = yes; then
1936 ac_cv_use_debug='wxUSE_DEBUG=yes'
1937 else
1938 ac_cv_use_debug='wxUSE_DEBUG=no'
1939 fi
1940
1941 else
1942
1943 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1944 if test "x$LINE" != x ; then
1945 eval "DEFAULT_$LINE"
1946 else
1947 no_cache=1
1948 fi
1949
1950 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1951
1952 fi
1953
1954
1955 eval "$ac_cv_use_debug"
1956 if test "$no_cache" != 1; then
1957 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1958 fi
1959
1960 if test "$wxUSE_DEBUG" = yes; then
1961 echo "$ac_t""yes" 1>&6
1962 else
1963 echo "$ac_t""no" 1>&6
1964 fi
1965
1966
1967 if test "$wxUSE_DEBUG" = "yes"; then
1968 DEFAULT_wxUSE_DEBUG_FLAG=yes
1969 DEFAULT_wxUSE_DEBUG_INFO=yes
1970 elif test "$wxUSE_DEBUG" = "no"; then
1971 DEFAULT_wxUSE_DEBUG_FLAG=no
1972 DEFAULT_wxUSE_DEBUG_INFO=no
1973 fi
1974
1975
1976 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
1977 echo "configure:1978: checking "for --enable-debug_flag"" >&5
1978 no_cache=0
1979 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1980 if test "${enable_debug_flag+set}" = set; then
1981 enableval="$enable_debug_flag"
1982
1983 if test "$enableval" = yes; then
1984 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1985 else
1986 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1987 fi
1988
1989 else
1990
1991 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1992 if test "x$LINE" != x ; then
1993 eval "DEFAULT_$LINE"
1994 else
1995 no_cache=1
1996 fi
1997
1998 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1999
2000 fi
2001
2002
2003 eval "$ac_cv_use_debug_flag"
2004 if test "$no_cache" != 1; then
2005 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2006 fi
2007
2008 if test "$wxUSE_DEBUG_FLAG" = yes; then
2009 echo "$ac_t""yes" 1>&6
2010 else
2011 echo "$ac_t""no" 1>&6
2012 fi
2013
2014
2015 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2016 echo "configure:2017: checking "for --enable-debug_info"" >&5
2017 no_cache=0
2018 # Check whether --enable-debug_info or --disable-debug_info was given.
2019 if test "${enable_debug_info+set}" = set; then
2020 enableval="$enable_debug_info"
2021
2022 if test "$enableval" = yes; then
2023 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2024 else
2025 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2026 fi
2027
2028 else
2029
2030 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2031 if test "x$LINE" != x ; then
2032 eval "DEFAULT_$LINE"
2033 else
2034 no_cache=1
2035 fi
2036
2037 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2038
2039 fi
2040
2041
2042 eval "$ac_cv_use_debug_info"
2043 if test "$no_cache" != 1; then
2044 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2045 fi
2046
2047 if test "$wxUSE_DEBUG_INFO" = yes; then
2048 echo "$ac_t""yes" 1>&6
2049 else
2050 echo "$ac_t""no" 1>&6
2051 fi
2052
2053
2054 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2055 echo "configure:2056: checking "for --enable-debug_gdb"" >&5
2056 no_cache=0
2057 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2058 if test "${enable_debug_gdb+set}" = set; then
2059 enableval="$enable_debug_gdb"
2060
2061 if test "$enableval" = yes; then
2062 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2063 else
2064 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2065 fi
2066
2067 else
2068
2069 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2070 if test "x$LINE" != x ; then
2071 eval "DEFAULT_$LINE"
2072 else
2073 no_cache=1
2074 fi
2075
2076 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2077
2078 fi
2079
2080
2081 eval "$ac_cv_use_debug_gdb"
2082 if test "$no_cache" != 1; then
2083 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2084 fi
2085
2086 if test "$wxUSE_DEBUG_GDB" = yes; then
2087 echo "$ac_t""yes" 1>&6
2088 else
2089 echo "$ac_t""no" 1>&6
2090 fi
2091
2092
2093 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2094 echo "configure:2095: checking "for --enable-debug_cntxt"" >&5
2095 no_cache=0
2096 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2097 if test "${enable_debug_cntxt+set}" = set; then
2098 enableval="$enable_debug_cntxt"
2099
2100 if test "$enableval" = yes; then
2101 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2102 else
2103 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2104 fi
2105
2106 else
2107
2108 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2109 if test "x$LINE" != x ; then
2110 eval "DEFAULT_$LINE"
2111 else
2112 no_cache=1
2113 fi
2114
2115 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2116
2117 fi
2118
2119
2120 eval "$ac_cv_use_debug_cntxt"
2121 if test "$no_cache" != 1; then
2122 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2123 fi
2124
2125 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2126 echo "$ac_t""yes" 1>&6
2127 else
2128 echo "$ac_t""no" 1>&6
2129 fi
2130
2131
2132 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2133 echo "configure:2134: checking "for --enable-mem_tracing"" >&5
2134 no_cache=0
2135 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2136 if test "${enable_mem_tracing+set}" = set; then
2137 enableval="$enable_mem_tracing"
2138
2139 if test "$enableval" = yes; then
2140 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2141 else
2142 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2143 fi
2144
2145 else
2146
2147 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2148 if test "x$LINE" != x ; then
2149 eval "DEFAULT_$LINE"
2150 else
2151 no_cache=1
2152 fi
2153
2154 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2155
2156 fi
2157
2158
2159 eval "$ac_cv_use_mem_tracing"
2160 if test "$no_cache" != 1; then
2161 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2162 fi
2163
2164 if test "$wxUSE_MEM_TRACING" = yes; then
2165 echo "$ac_t""yes" 1>&6
2166 else
2167 echo "$ac_t""no" 1>&6
2168 fi
2169
2170
2171 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2172 echo "configure:2173: checking "for --enable-profile"" >&5
2173 no_cache=0
2174 # Check whether --enable-profile or --disable-profile was given.
2175 if test "${enable_profile+set}" = set; then
2176 enableval="$enable_profile"
2177
2178 if test "$enableval" = yes; then
2179 ac_cv_use_profile='wxUSE_PROFILE=yes'
2180 else
2181 ac_cv_use_profile='wxUSE_PROFILE=no'
2182 fi
2183
2184 else
2185
2186 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2194
2195 fi
2196
2197
2198 eval "$ac_cv_use_profile"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_PROFILE" = yes; then
2204 echo "$ac_t""yes" 1>&6
2205 else
2206 echo "$ac_t""no" 1>&6
2207 fi
2208
2209
2210 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2211 echo "configure:2212: checking "for --enable-no_rtti"" >&5
2212 no_cache=0
2213 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2214 if test "${enable_no_rtti+set}" = set; then
2215 enableval="$enable_no_rtti"
2216
2217 if test "$enableval" = yes; then
2218 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2219 else
2220 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2221 fi
2222
2223 else
2224
2225 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2226 if test "x$LINE" != x ; then
2227 eval "DEFAULT_$LINE"
2228 else
2229 no_cache=1
2230 fi
2231
2232 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2233
2234 fi
2235
2236
2237 eval "$ac_cv_use_no_rtti"
2238 if test "$no_cache" != 1; then
2239 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2240 fi
2241
2242 if test "$wxUSE_NO_RTTI" = yes; then
2243 echo "$ac_t""yes" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2246 fi
2247
2248
2249 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2250 echo "configure:2251: checking "for --enable-no_exceptions"" >&5
2251 no_cache=0
2252 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2253 if test "${enable_no_exceptions+set}" = set; then
2254 enableval="$enable_no_exceptions"
2255
2256 if test "$enableval" = yes; then
2257 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2258 else
2259 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2260 fi
2261
2262 else
2263
2264 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
2271 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2272
2273 fi
2274
2275
2276 eval "$ac_cv_use_no_exceptions"
2277 if test "$no_cache" != 1; then
2278 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2279 fi
2280
2281 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2282 echo "$ac_t""yes" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2285 fi
2286
2287
2288 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2289 echo "configure:2290: checking "for --enable-permissive"" >&5
2290 no_cache=0
2291 # Check whether --enable-permissive or --disable-permissive was given.
2292 if test "${enable_permissive+set}" = set; then
2293 enableval="$enable_permissive"
2294
2295 if test "$enableval" = yes; then
2296 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2297 else
2298 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2299 fi
2300
2301 else
2302
2303 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2304 if test "x$LINE" != x ; then
2305 eval "DEFAULT_$LINE"
2306 else
2307 no_cache=1
2308 fi
2309
2310 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2311
2312 fi
2313
2314
2315 eval "$ac_cv_use_permissive"
2316 if test "$no_cache" != 1; then
2317 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2318 fi
2319
2320 if test "$wxUSE_PERMISSIVE" = yes; then
2321 echo "$ac_t""yes" 1>&6
2322 else
2323 echo "$ac_t""no" 1>&6
2324 fi
2325
2326
2327 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2328 echo "configure:2329: checking "for --enable-no_deps"" >&5
2329 no_cache=0
2330 # Check whether --enable-no_deps or --disable-no_deps was given.
2331 if test "${enable_no_deps+set}" = set; then
2332 enableval="$enable_no_deps"
2333
2334 if test "$enableval" = yes; then
2335 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2336 else
2337 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2338 fi
2339
2340 else
2341
2342 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2343 if test "x$LINE" != x ; then
2344 eval "DEFAULT_$LINE"
2345 else
2346 no_cache=1
2347 fi
2348
2349 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2350
2351 fi
2352
2353
2354 eval "$ac_cv_use_no_deps"
2355 if test "$no_cache" != 1; then
2356 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2357 fi
2358
2359 if test "$wxUSE_NO_DEPS" = yes; then
2360 echo "$ac_t""yes" 1>&6
2361 else
2362 echo "$ac_t""no" 1>&6
2363 fi
2364
2365
2366
2367
2368 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2369 echo "configure:2370: checking "for --enable-intl"" >&5
2370 no_cache=0
2371 # Check whether --enable-intl or --disable-intl was given.
2372 if test "${enable_intl+set}" = set; then
2373 enableval="$enable_intl"
2374
2375 if test "$enableval" = yes; then
2376 ac_cv_use_intl='wxUSE_INTL=yes'
2377 else
2378 ac_cv_use_intl='wxUSE_INTL=no'
2379 fi
2380
2381 else
2382
2383 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2384 if test "x$LINE" != x ; then
2385 eval "DEFAULT_$LINE"
2386 else
2387 no_cache=1
2388 fi
2389
2390 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2391
2392 fi
2393
2394
2395 eval "$ac_cv_use_intl"
2396 if test "$no_cache" != 1; then
2397 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2398 fi
2399
2400 if test "$wxUSE_INTL" = yes; then
2401 echo "$ac_t""yes" 1>&6
2402 else
2403 echo "$ac_t""no" 1>&6
2404 fi
2405
2406
2407 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2408 echo "configure:2409: checking "for --enable-config"" >&5
2409 no_cache=0
2410 # Check whether --enable-config or --disable-config was given.
2411 if test "${enable_config+set}" = set; then
2412 enableval="$enable_config"
2413
2414 if test "$enableval" = yes; then
2415 ac_cv_use_config='wxUSE_CONFIG=yes'
2416 else
2417 ac_cv_use_config='wxUSE_CONFIG=no'
2418 fi
2419
2420 else
2421
2422 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2423 if test "x$LINE" != x ; then
2424 eval "DEFAULT_$LINE"
2425 else
2426 no_cache=1
2427 fi
2428
2429 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2430
2431 fi
2432
2433
2434 eval "$ac_cv_use_config"
2435 if test "$no_cache" != 1; then
2436 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2437 fi
2438
2439 if test "$wxUSE_CONFIG" = yes; then
2440 echo "$ac_t""yes" 1>&6
2441 else
2442 echo "$ac_t""no" 1>&6
2443 fi
2444
2445
2446 if test "$wxUSE_GUI" = "yes"; then
2447
2448 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2449 echo "configure:2450: checking "for --enable-sockets"" >&5
2450 no_cache=0
2451 # Check whether --enable-sockets or --disable-sockets was given.
2452 if test "${enable_sockets+set}" = set; then
2453 enableval="$enable_sockets"
2454
2455 if test "$enableval" = yes; then
2456 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2457 else
2458 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2459 fi
2460
2461 else
2462
2463 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2471
2472 fi
2473
2474
2475 eval "$ac_cv_use_sockets"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_SOCKETS" = yes; then
2481 echo "$ac_t""yes" 1>&6
2482 else
2483 echo "$ac_t""no" 1>&6
2484 fi
2485
2486 else
2487 wxUSE_SOCKETS=no
2488 fi
2489
2490
2491 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2492 echo "configure:2493: checking "for --enable-dialupman"" >&5
2493 no_cache=0
2494 # Check whether --enable-dialupman or --disable-dialupman was given.
2495 if test "${enable_dialupman+set}" = set; then
2496 enableval="$enable_dialupman"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2500 else
2501 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2502 fi
2503
2504 else
2505
2506 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2514
2515 fi
2516
2517
2518 eval "$ac_cv_use_dialupman"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2524 echo "$ac_t""yes" 1>&6
2525 else
2526 echo "$ac_t""no" 1>&6
2527 fi
2528
2529
2530 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2531 echo "configure:2532: checking "for --enable-ipc"" >&5
2532 no_cache=0
2533 # Check whether --enable-ipc or --disable-ipc was given.
2534 if test "${enable_ipc+set}" = set; then
2535 enableval="$enable_ipc"
2536
2537 if test "$enableval" = yes; then
2538 ac_cv_use_ipc='wxUSE_IPC=yes'
2539 else
2540 ac_cv_use_ipc='wxUSE_IPC=no'
2541 fi
2542
2543 else
2544
2545 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2546 if test "x$LINE" != x ; then
2547 eval "DEFAULT_$LINE"
2548 else
2549 no_cache=1
2550 fi
2551
2552 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2553
2554 fi
2555
2556
2557 eval "$ac_cv_use_ipc"
2558 if test "$no_cache" != 1; then
2559 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2560 fi
2561
2562 if test "$wxUSE_IPC" = yes; then
2563 echo "$ac_t""yes" 1>&6
2564 else
2565 echo "$ac_t""no" 1>&6
2566 fi
2567
2568
2569 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2570 echo "configure:2571: checking "for --enable-apple_ieee"" >&5
2571 no_cache=0
2572 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2573 if test "${enable_apple_ieee+set}" = set; then
2574 enableval="$enable_apple_ieee"
2575
2576 if test "$enableval" = yes; then
2577 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2578 else
2579 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2580 fi
2581
2582 else
2583
2584 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2585 if test "x$LINE" != x ; then
2586 eval "DEFAULT_$LINE"
2587 else
2588 no_cache=1
2589 fi
2590
2591 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2592
2593 fi
2594
2595
2596 eval "$ac_cv_use_apple_ieee"
2597 if test "$no_cache" != 1; then
2598 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2599 fi
2600
2601 if test "$wxUSE_APPLE_IEEE" = yes; then
2602 echo "$ac_t""yes" 1>&6
2603 else
2604 echo "$ac_t""no" 1>&6
2605 fi
2606
2607
2608 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2609 echo "configure:2610: checking "for --enable-timedate"" >&5
2610 no_cache=0
2611 # Check whether --enable-timedate or --disable-timedate was given.
2612 if test "${enable_timedate+set}" = set; then
2613 enableval="$enable_timedate"
2614
2615 if test "$enableval" = yes; then
2616 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2617 else
2618 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2619 fi
2620
2621 else
2622
2623 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2624 if test "x$LINE" != x ; then
2625 eval "DEFAULT_$LINE"
2626 else
2627 no_cache=1
2628 fi
2629
2630 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2631
2632 fi
2633
2634
2635 eval "$ac_cv_use_timedate"
2636 if test "$no_cache" != 1; then
2637 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2638 fi
2639
2640 if test "$wxUSE_TIMEDATE" = yes; then
2641 echo "$ac_t""yes" 1>&6
2642 else
2643 echo "$ac_t""no" 1>&6
2644 fi
2645
2646
2647 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2648 echo "configure:2649: checking "for --enable-wave"" >&5
2649 no_cache=0
2650 # Check whether --enable-wave or --disable-wave was given.
2651 if test "${enable_wave+set}" = set; then
2652 enableval="$enable_wave"
2653
2654 if test "$enableval" = yes; then
2655 ac_cv_use_wave='wxUSE_WAVE=yes'
2656 else
2657 ac_cv_use_wave='wxUSE_WAVE=no'
2658 fi
2659
2660 else
2661
2662 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2670
2671 fi
2672
2673
2674 eval "$ac_cv_use_wave"
2675 if test "$no_cache" != 1; then
2676 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2677 fi
2678
2679 if test "$wxUSE_WAVE" = yes; then
2680 echo "$ac_t""yes" 1>&6
2681 else
2682 echo "$ac_t""no" 1>&6
2683 fi
2684
2685
2686 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2687 echo "configure:2688: checking "for --enable-fraction"" >&5
2688 no_cache=0
2689 # Check whether --enable-fraction or --disable-fraction was given.
2690 if test "${enable_fraction+set}" = set; then
2691 enableval="$enable_fraction"
2692
2693 if test "$enableval" = yes; then
2694 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2695 else
2696 ac_cv_use_fraction='wxUSE_FRACTION=no'
2697 fi
2698
2699 else
2700
2701 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2702 if test "x$LINE" != x ; then
2703 eval "DEFAULT_$LINE"
2704 else
2705 no_cache=1
2706 fi
2707
2708 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2709
2710 fi
2711
2712
2713 eval "$ac_cv_use_fraction"
2714 if test "$no_cache" != 1; then
2715 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2716 fi
2717
2718 if test "$wxUSE_FRACTION" = yes; then
2719 echo "$ac_t""yes" 1>&6
2720 else
2721 echo "$ac_t""no" 1>&6
2722 fi
2723
2724
2725 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2726 echo "configure:2727: checking "for --enable-dynlib"" >&5
2727 no_cache=0
2728 # Check whether --enable-dynlib or --disable-dynlib was given.
2729 if test "${enable_dynlib+set}" = set; then
2730 enableval="$enable_dynlib"
2731
2732 if test "$enableval" = yes; then
2733 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2734 else
2735 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2736 fi
2737
2738 else
2739
2740 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2741 if test "x$LINE" != x ; then
2742 eval "DEFAULT_$LINE"
2743 else
2744 no_cache=1
2745 fi
2746
2747 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2748
2749 fi
2750
2751
2752 eval "$ac_cv_use_dynlib"
2753 if test "$no_cache" != 1; then
2754 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2755 fi
2756
2757 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2758 echo "$ac_t""yes" 1>&6
2759 else
2760 echo "$ac_t""no" 1>&6
2761 fi
2762
2763
2764 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2765 echo "configure:2766: checking "for --enable-longlong"" >&5
2766 no_cache=0
2767 # Check whether --enable-longlong or --disable-longlong was given.
2768 if test "${enable_longlong+set}" = set; then
2769 enableval="$enable_longlong"
2770
2771 if test "$enableval" = yes; then
2772 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2773 else
2774 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2775 fi
2776
2777 else
2778
2779 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2780 if test "x$LINE" != x ; then
2781 eval "DEFAULT_$LINE"
2782 else
2783 no_cache=1
2784 fi
2785
2786 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2787
2788 fi
2789
2790
2791 eval "$ac_cv_use_longlong"
2792 if test "$no_cache" != 1; then
2793 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2794 fi
2795
2796 if test "$wxUSE_LONGLONG" = yes; then
2797 echo "$ac_t""yes" 1>&6
2798 else
2799 echo "$ac_t""no" 1>&6
2800 fi
2801
2802
2803 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2804 echo "configure:2805: checking "for --enable-log"" >&5
2805 no_cache=0
2806 # Check whether --enable-log or --disable-log was given.
2807 if test "${enable_log+set}" = set; then
2808 enableval="$enable_log"
2809
2810 if test "$enableval" = yes; then
2811 ac_cv_use_log='wxUSE_LOG=yes'
2812 else
2813 ac_cv_use_log='wxUSE_LOG=no'
2814 fi
2815
2816 else
2817
2818 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
2825 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2826
2827 fi
2828
2829
2830 eval "$ac_cv_use_log"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$wxUSE_LOG" = yes; then
2836 echo "$ac_t""yes" 1>&6
2837 else
2838 echo "$ac_t""no" 1>&6
2839 fi
2840
2841
2842 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2843 echo "configure:2844: checking "for --enable-streams"" >&5
2844 no_cache=0
2845 # Check whether --enable-streams or --disable-streams was given.
2846 if test "${enable_streams+set}" = set; then
2847 enableval="$enable_streams"
2848
2849 if test "$enableval" = yes; then
2850 ac_cv_use_streams='wxUSE_STREAMS=yes'
2851 else
2852 ac_cv_use_streams='wxUSE_STREAMS=no'
2853 fi
2854
2855 else
2856
2857 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2865
2866 fi
2867
2868
2869 eval "$ac_cv_use_streams"
2870 if test "$no_cache" != 1; then
2871 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2872 fi
2873
2874 if test "$wxUSE_STREAMS" = yes; then
2875 echo "$ac_t""yes" 1>&6
2876 else
2877 echo "$ac_t""no" 1>&6
2878 fi
2879
2880
2881 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2882 echo "configure:2883: checking "for --enable-file"" >&5
2883 no_cache=0
2884 # Check whether --enable-file or --disable-file was given.
2885 if test "${enable_file+set}" = set; then
2886 enableval="$enable_file"
2887
2888 if test "$enableval" = yes; then
2889 ac_cv_use_file='wxUSE_FILE=yes'
2890 else
2891 ac_cv_use_file='wxUSE_FILE=no'
2892 fi
2893
2894 else
2895
2896 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2897 if test "x$LINE" != x ; then
2898 eval "DEFAULT_$LINE"
2899 else
2900 no_cache=1
2901 fi
2902
2903 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2904
2905 fi
2906
2907
2908 eval "$ac_cv_use_file"
2909 if test "$no_cache" != 1; then
2910 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2911 fi
2912
2913 if test "$wxUSE_FILE" = yes; then
2914 echo "$ac_t""yes" 1>&6
2915 else
2916 echo "$ac_t""no" 1>&6
2917 fi
2918
2919
2920 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2921 echo "configure:2922: checking "for --enable-textfile"" >&5
2922 no_cache=0
2923 # Check whether --enable-textfile or --disable-textfile was given.
2924 if test "${enable_textfile+set}" = set; then
2925 enableval="$enable_textfile"
2926
2927 if test "$enableval" = yes; then
2928 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2929 else
2930 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2931 fi
2932
2933 else
2934
2935 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2936 if test "x$LINE" != x ; then
2937 eval "DEFAULT_$LINE"
2938 else
2939 no_cache=1
2940 fi
2941
2942 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2943
2944 fi
2945
2946
2947 eval "$ac_cv_use_textfile"
2948 if test "$no_cache" != 1; then
2949 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2950 fi
2951
2952 if test "$wxUSE_TEXTFILE" = yes; then
2953 echo "$ac_t""yes" 1>&6
2954 else
2955 echo "$ac_t""no" 1>&6
2956 fi
2957
2958
2959 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
2960 echo "configure:2961: checking "for --enable-unicode"" >&5
2961 no_cache=0
2962 # Check whether --enable-unicode or --disable-unicode was given.
2963 if test "${enable_unicode+set}" = set; then
2964 enableval="$enable_unicode"
2965
2966 if test "$enableval" = yes; then
2967 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2968 else
2969 ac_cv_use_unicode='wxUSE_UNICODE=no'
2970 fi
2971
2972 else
2973
2974 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2975 if test "x$LINE" != x ; then
2976 eval "DEFAULT_$LINE"
2977 else
2978 no_cache=1
2979 fi
2980
2981 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2982
2983 fi
2984
2985
2986 eval "$ac_cv_use_unicode"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_UNICODE" = yes; then
2992 echo "$ac_t""yes" 1>&6
2993 else
2994 echo "$ac_t""no" 1>&6
2995 fi
2996
2997
2998 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
2999 echo "configure:3000: checking "for --enable-wcsrtombs"" >&5
3000 no_cache=0
3001 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3002 if test "${enable_wcsrtombs+set}" = set; then
3003 enableval="$enable_wcsrtombs"
3004
3005 if test "$enableval" = yes; then
3006 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3007 else
3008 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3009 fi
3010
3011 else
3012
3013 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3021
3022 fi
3023
3024
3025 eval "$ac_cv_use_wcsrtombs"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_WCSRTOMBS" = yes; then
3031 echo "$ac_t""yes" 1>&6
3032 else
3033 echo "$ac_t""no" 1>&6
3034 fi
3035
3036
3037 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3038 echo "configure:3039: checking "for --enable-wxprintfv"" >&5
3039 no_cache=0
3040 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3041 if test "${enable_wxprintfv+set}" = set; then
3042 enableval="$enable_wxprintfv"
3043
3044 if test "$enableval" = yes; then
3045 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3046 else
3047 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3048 fi
3049
3050 else
3051
3052 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3053 if test "x$LINE" != x ; then
3054 eval "DEFAULT_$LINE"
3055 else
3056 no_cache=1
3057 fi
3058
3059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3060
3061 fi
3062
3063
3064 eval "$ac_cv_use_wxprintfv"
3065 if test "$no_cache" != 1; then
3066 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3067 fi
3068
3069 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3070 echo "$ac_t""yes" 1>&6
3071 else
3072 echo "$ac_t""no" 1>&6
3073 fi
3074
3075
3076 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3077 echo "configure:3078: checking "for --enable-joystick"" >&5
3078 no_cache=0
3079 # Check whether --enable-joystick or --disable-joystick was given.
3080 if test "${enable_joystick+set}" = set; then
3081 enableval="$enable_joystick"
3082
3083 if test "$enableval" = yes; then
3084 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3085 else
3086 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3087 fi
3088
3089 else
3090
3091 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3092 if test "x$LINE" != x ; then
3093 eval "DEFAULT_$LINE"
3094 else
3095 no_cache=1
3096 fi
3097
3098 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3099
3100 fi
3101
3102
3103 eval "$ac_cv_use_joystick"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_JOYSTICK" = yes; then
3109 echo "$ac_t""yes" 1>&6
3110 else
3111 echo "$ac_t""no" 1>&6
3112 fi
3113
3114
3115 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3116 echo "configure:3117: checking "for --enable-std_iostreams"" >&5
3117 no_cache=0
3118 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3119 if test "${enable_std_iostreams+set}" = set; then
3120 enableval="$enable_std_iostreams"
3121
3122 if test "$enableval" = yes; then
3123 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3124 else
3125 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3126 fi
3127
3128 else
3129
3130 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3131 if test "x$LINE" != x ; then
3132 eval "DEFAULT_$LINE"
3133 else
3134 no_cache=1
3135 fi
3136
3137 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3138
3139 fi
3140
3141
3142 eval "$ac_cv_use_std_iostreams"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_STD_IOSTREAM" = yes; then
3148 echo "$ac_t""yes" 1>&6
3149 else
3150 echo "$ac_t""no" 1>&6
3151 fi
3152
3153
3154 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3155 echo "configure:3156: checking "for --enable-fs_inet"" >&5
3156 no_cache=0
3157 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3158 if test "${enable_fs_inet+set}" = set; then
3159 enableval="$enable_fs_inet"
3160
3161 if test "$enableval" = yes; then
3162 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3163 else
3164 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3165 fi
3166
3167 else
3168
3169 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3170 if test "x$LINE" != x ; then
3171 eval "DEFAULT_$LINE"
3172 else
3173 no_cache=1
3174 fi
3175
3176 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3177
3178 fi
3179
3180
3181 eval "$ac_cv_use_fs_inet"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_FS_INET" = yes; then
3187 echo "$ac_t""yes" 1>&6
3188 else
3189 echo "$ac_t""no" 1>&6
3190 fi
3191
3192
3193 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3194 echo "configure:3195: checking "for --enable-fs_zip"" >&5
3195 no_cache=0
3196 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3197 if test "${enable_fs_zip+set}" = set; then
3198 enableval="$enable_fs_zip"
3199
3200 if test "$enableval" = yes; then
3201 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3202 else
3203 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3204 fi
3205
3206 else
3207
3208 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3209 if test "x$LINE" != x ; then
3210 eval "DEFAULT_$LINE"
3211 else
3212 no_cache=1
3213 fi
3214
3215 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3216
3217 fi
3218
3219
3220 eval "$ac_cv_use_fs_zip"
3221 if test "$no_cache" != 1; then
3222 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3223 fi
3224
3225 if test "$wxUSE_FS_ZIP" = yes; then
3226 echo "$ac_t""yes" 1>&6
3227 else
3228 echo "$ac_t""no" 1>&6
3229 fi
3230
3231
3232 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3233 echo "configure:3234: checking "for --enable-zipstream"" >&5
3234 no_cache=0
3235 # Check whether --enable-zipstream or --disable-zipstream was given.
3236 if test "${enable_zipstream+set}" = set; then
3237 enableval="$enable_zipstream"
3238
3239 if test "$enableval" = yes; then
3240 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3241 else
3242 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3243 fi
3244
3245 else
3246
3247 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3248 if test "x$LINE" != x ; then
3249 eval "DEFAULT_$LINE"
3250 else
3251 no_cache=1
3252 fi
3253
3254 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3255
3256 fi
3257
3258
3259 eval "$ac_cv_use_zipstream"
3260 if test "$no_cache" != 1; then
3261 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3262 fi
3263
3264 if test "$wxUSE_ZIPSTREAM" = yes; then
3265 echo "$ac_t""yes" 1>&6
3266 else
3267 echo "$ac_t""no" 1>&6
3268 fi
3269
3270
3271
3272
3273 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3274 echo "configure:3275: checking "for --enable-threads"" >&5
3275 no_cache=0
3276 # Check whether --enable-threads or --disable-threads was given.
3277 if test "${enable_threads+set}" = set; then
3278 enableval="$enable_threads"
3279
3280 if test "$enableval" = yes; then
3281 ac_cv_use_threads='wxUSE_THREADS=yes'
3282 else
3283 ac_cv_use_threads='wxUSE_THREADS=no'
3284 fi
3285
3286 else
3287
3288 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3296
3297 fi
3298
3299
3300 eval "$ac_cv_use_threads"
3301 if test "$no_cache" != 1; then
3302 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3303 fi
3304
3305 if test "$wxUSE_THREADS" = yes; then
3306 echo "$ac_t""yes" 1>&6
3307 else
3308 echo "$ac_t""no" 1>&6
3309 fi
3310
3311
3312 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3313 echo "configure:3314: checking "for --enable-serial"" >&5
3314 no_cache=0
3315 # Check whether --enable-serial or --disable-serial was given.
3316 if test "${enable_serial+set}" = set; then
3317 enableval="$enable_serial"
3318
3319 if test "$enableval" = yes; then
3320 ac_cv_use_serial='wxUSE_SERIAL=yes'
3321 else
3322 ac_cv_use_serial='wxUSE_SERIAL=no'
3323 fi
3324
3325 else
3326
3327 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3335
3336 fi
3337
3338
3339 eval "$ac_cv_use_serial"
3340 if test "$no_cache" != 1; then
3341 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3342 fi
3343
3344 if test "$wxUSE_SERIAL" = yes; then
3345 echo "$ac_t""yes" 1>&6
3346 else
3347 echo "$ac_t""no" 1>&6
3348 fi
3349
3350
3351 if test "$wxUSE_GUI" = "yes"; then
3352
3353
3354
3355 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3356 echo "configure:3357: checking "for --enable-docview"" >&5
3357 no_cache=0
3358 # Check whether --enable-docview or --disable-docview was given.
3359 if test "${enable_docview+set}" = set; then
3360 enableval="$enable_docview"
3361
3362 if test "$enableval" = yes; then
3363 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3364 else
3365 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3366 fi
3367
3368 else
3369
3370 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3378
3379 fi
3380
3381
3382 eval "$ac_cv_use_docview"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3388 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393
3394 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3395 echo "configure:3396: checking "for --enable-help"" >&5
3396 no_cache=0
3397 # Check whether --enable-help or --disable-help was given.
3398 if test "${enable_help+set}" = set; then
3399 enableval="$enable_help"
3400
3401 if test "$enableval" = yes; then
3402 ac_cv_use_help='wxUSE_HELP=yes'
3403 else
3404 ac_cv_use_help='wxUSE_HELP=no'
3405 fi
3406
3407 else
3408
3409 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3417
3418 fi
3419
3420
3421 eval "$ac_cv_use_help"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_HELP" = yes; then
3427 echo "$ac_t""yes" 1>&6
3428 else
3429 echo "$ac_t""no" 1>&6
3430 fi
3431
3432
3433 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3434 echo "configure:3435: checking "for --enable-constraints"" >&5
3435 no_cache=0
3436 # Check whether --enable-constraints or --disable-constraints was given.
3437 if test "${enable_constraints+set}" = set; then
3438 enableval="$enable_constraints"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3442 else
3443 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3444 fi
3445
3446 else
3447
3448 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3456
3457 fi
3458
3459
3460 eval "$ac_cv_use_constraints"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_CONSTRAINTS" = yes; then
3466 echo "$ac_t""yes" 1>&6
3467 else
3468 echo "$ac_t""no" 1>&6
3469 fi
3470
3471
3472 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3473 echo "configure:3474: checking "for --enable-printarch"" >&5
3474 no_cache=0
3475 # Check whether --enable-printarch or --disable-printarch was given.
3476 if test "${enable_printarch+set}" = set; then
3477 enableval="$enable_printarch"
3478
3479 if test "$enableval" = yes; then
3480 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3481 else
3482 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3483 fi
3484
3485 else
3486
3487 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3495
3496 fi
3497
3498
3499 eval "$ac_cv_use_printarch"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3505 echo "$ac_t""yes" 1>&6
3506 else
3507 echo "$ac_t""no" 1>&6
3508 fi
3509
3510
3511 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3512 echo "configure:3513: checking "for --enable-mdi"" >&5
3513 no_cache=0
3514 # Check whether --enable-mdi or --disable-mdi was given.
3515 if test "${enable_mdi+set}" = set; then
3516 enableval="$enable_mdi"
3517
3518 if test "$enableval" = yes; then
3519 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3520 else
3521 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3522 fi
3523
3524 else
3525
3526 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3534
3535 fi
3536
3537
3538 eval "$ac_cv_use_mdi"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3544 echo "$ac_t""yes" 1>&6
3545 else
3546 echo "$ac_t""no" 1>&6
3547 fi
3548
3549
3550
3551 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3552 echo "configure:3553: checking "for --enable-postscript"" >&5
3553 no_cache=0
3554 # Check whether --enable-postscript or --disable-postscript was given.
3555 if test "${enable_postscript+set}" = set; then
3556 enableval="$enable_postscript"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3560 else
3561 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3562 fi
3563
3564 else
3565
3566 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3574
3575 fi
3576
3577
3578 eval "$ac_cv_use_postscript"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_POSTSCRIPT" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590
3591
3592 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3593 echo "configure:3594: checking "for --enable-prologio"" >&5
3594 no_cache=0
3595 # Check whether --enable-prologio or --disable-prologio was given.
3596 if test "${enable_prologio+set}" = set; then
3597 enableval="$enable_prologio"
3598
3599 if test "$enableval" = yes; then
3600 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3601 else
3602 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3603 fi
3604
3605 else
3606
3607 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3608 if test "x$LINE" != x ; then
3609 eval "DEFAULT_$LINE"
3610 else
3611 no_cache=1
3612 fi
3613
3614 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3615
3616 fi
3617
3618
3619 eval "$ac_cv_use_prologio"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_PROLOGIO" = yes; then
3625 echo "$ac_t""yes" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3628 fi
3629
3630
3631 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3632 echo "configure:3633: checking "for --enable-resources"" >&5
3633 no_cache=0
3634 # Check whether --enable-resources or --disable-resources was given.
3635 if test "${enable_resources+set}" = set; then
3636 enableval="$enable_resources"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3640 else
3641 ac_cv_use_resources='wxUSE_RESOURCES=no'
3642 fi
3643
3644 else
3645
3646 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3654
3655 fi
3656
3657
3658 eval "$ac_cv_use_resources"
3659 if test "$no_cache" != 1; then
3660 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3661 fi
3662
3663 if test "$wxUSE_RESOURCES" = yes; then
3664 echo "$ac_t""yes" 1>&6
3665 else
3666 echo "$ac_t""no" 1>&6
3667 fi
3668
3669
3670
3671 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3672 echo "configure:3673: checking "for --enable-xresources"" >&5
3673 no_cache=0
3674 # Check whether --enable-xresources or --disable-xresources was given.
3675 if test "${enable_xresources+set}" = set; then
3676 enableval="$enable_xresources"
3677
3678 if test "$enableval" = yes; then
3679 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3680 else
3681 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3682 fi
3683
3684 else
3685
3686 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
3693 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3694
3695 fi
3696
3697
3698 eval "$ac_cv_use_xresources"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_X_RESOURCES" = yes; then
3704 echo "$ac_t""yes" 1>&6
3705 else
3706 echo "$ac_t""no" 1>&6
3707 fi
3708
3709
3710
3711
3712 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3713 echo "configure:3714: checking "for --enable-clipboard"" >&5
3714 no_cache=0
3715 # Check whether --enable-clipboard or --disable-clipboard was given.
3716 if test "${enable_clipboard+set}" = set; then
3717 enableval="$enable_clipboard"
3718
3719 if test "$enableval" = yes; then
3720 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3721 else
3722 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3723 fi
3724
3725 else
3726
3727 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3735
3736 fi
3737
3738
3739 eval "$ac_cv_use_clipboard"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_CLIPBOARD" = yes; then
3745 echo "$ac_t""yes" 1>&6
3746 else
3747 echo "$ac_t""no" 1>&6
3748 fi
3749
3750
3751 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3752 echo "configure:3753: checking "for --enable-dnd"" >&5
3753 no_cache=0
3754 # Check whether --enable-dnd or --disable-dnd was given.
3755 if test "${enable_dnd+set}" = set; then
3756 enableval="$enable_dnd"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3760 else
3761 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3762 fi
3763
3764 else
3765
3766 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3774
3775 fi
3776
3777
3778 eval "$ac_cv_use_dnd"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3784 echo "$ac_t""yes" 1>&6
3785 else
3786 echo "$ac_t""no" 1>&6
3787 fi
3788
3789
3790
3791 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3792 echo "configure:3793: checking "for --enable-wxtree"" >&5
3793 no_cache=0
3794 # Check whether --enable-wxtree or --disable-wxtree was given.
3795 if test "${enable_wxtree+set}" = set; then
3796 enableval="$enable_wxtree"
3797
3798 if test "$enableval" = yes; then
3799 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3800 else
3801 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3802 fi
3803
3804 else
3805
3806 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3814
3815 fi
3816
3817
3818 eval "$ac_cv_use_wxtree"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_WXTREE" = yes; then
3824 echo "$ac_t""yes" 1>&6
3825 else
3826 echo "$ac_t""no" 1>&6
3827 fi
3828
3829
3830
3831
3832 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3833 echo "configure:3834: checking "for --enable-controls"" >&5
3834 no_cache=0
3835 # Check whether --enable-controls or --disable-controls was given.
3836 if test "${enable_controls+set}" = set; then
3837 enableval="$enable_controls"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3841 else
3842 ac_cv_use_controls='wxUSE_CONTROLS=no'
3843 fi
3844
3845 else
3846
3847 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3855
3856 fi
3857
3858
3859 eval "$ac_cv_use_controls"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_CONTROLS" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871 if test "$wxUSE_CONTROLS" = "yes"; then
3872 DEFAULT_wxUSE_ACCEL=yes
3873 DEFAULT_wxUSE_CARET=yes
3874 DEFAULT_wxUSE_COMBOBOX=yes
3875 DEFAULT_wxUSE_BMPBUTTON=yes
3876 DEFAULT_wxUSE_CHECKBOX=yes
3877 DEFAULT_wxUSE_CHECKLISTBOX=yes
3878 DEFAULT_wxUSE_CHOICE=yes
3879 DEFAULT_wxUSE_GAUGE=yes
3880 DEFAULT_wxUSE_GRID=yes
3881 DEFAULT_wxUSE_NEW_GRID=yes
3882 DEFAULT_wxUSE_IMAGLIST=yes
3883 DEFAULT_wxUSE_LISTBOX=yes
3884 DEFAULT_wxUSE_LISTCTRL=yes
3885 DEFAULT_wxUSE_NOTEBOOK=yes
3886 DEFAULT_wxUSE_RADIOBOX=yes
3887 DEFAULT_wxUSE_RADIOBTN=yes
3888 DEFAULT_wxUSE_SASH=yes
3889 DEFAULT_wxUSE_SCROLLBAR=yes
3890 DEFAULT_wxUSE_SLIDER=yes
3891 DEFAULT_wxUSE_SPINBTN=yes
3892 DEFAULT_wxUSE_SPINCTRL=yes
3893 DEFAULT_wxUSE_SPLITTER=yes
3894 DEFAULT_wxUSE_STATBMP=yes
3895 DEFAULT_wxUSE_STATBOX=yes
3896 DEFAULT_wxUSE_STATLINE=yes
3897 DEFAULT_wxUSE_STATUSBAR=yes
3898 DEFAULT_wxUSE_TAB_DIALOG=yes
3899 DEFAULT_wxUSE_TOOLBAR=yes
3900 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3901 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
3902 DEFAULT_wxUSE_TOOLTIPS=yes
3903 DEFAULT_wxUSE_TREECTRL=yes
3904 elif test "$wxUSE_CONTROLS" = "no"; then
3905 DEFAULT_wxUSE_ACCEL=no
3906 DEFAULT_wxUSE_CARET=no
3907 DEFAULT_wxUSE_COMBOBOX=no
3908 DEFAULT_wxUSE_BMPBUTTON=no
3909 DEFAULT_wxUSE_CHECKBOX=no
3910 DEFAULT_wxUSE_CHECKLISTBOX=no
3911 DEFAULT_wxUSE_CHOICE=no
3912 DEFAULT_wxUSE_GAUGE=no
3913 DEFAULT_wxUSE_GRID=no
3914 DEFAULT_wxUSE_NEW_GRID=no
3915 DEFAULT_wxUSE_IMAGLIST=no
3916 DEFAULT_wxUSE_LISTBOX=no
3917 DEFAULT_wxUSE_LISTCTRL=no
3918 DEFAULT_wxUSE_NOTEBOOK=no
3919 DEFAULT_wxUSE_RADIOBOX=no
3920 DEFAULT_wxUSE_RADIOBTN=no
3921 DEFAULT_wxUSE_SASH=no
3922 DEFAULT_wxUSE_SCROLLBAR=no
3923 DEFAULT_wxUSE_SLIDER=no
3924 DEFAULT_wxUSE_SPINBTN=no
3925 DEFAULT_wxUSE_SPINCTRL=no
3926 DEFAULT_wxUSE_SPLITTER=no
3927 DEFAULT_wxUSE_STATBMP=no
3928 DEFAULT_wxUSE_STATBOX=no
3929 DEFAULT_wxUSE_STATLINE=no
3930 DEFAULT_wxUSE_STATUSBAR=no
3931 DEFAULT_wxUSE_TAB_DIALOG=no
3932 DEFAULT_wxUSE_TOOLBAR=no
3933 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3934 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
3935 DEFAULT_wxUSE_TOOLTIPS=no
3936 DEFAULT_wxUSE_TREECTRL=no
3937 fi
3938
3939
3940 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
3941 echo "configure:3942: checking "for --enable-accel"" >&5
3942 no_cache=0
3943 # Check whether --enable-accel or --disable-accel was given.
3944 if test "${enable_accel+set}" = set; then
3945 enableval="$enable_accel"
3946
3947 if test "$enableval" = yes; then
3948 ac_cv_use_accel='wxUSE_ACCEL=yes'
3949 else
3950 ac_cv_use_accel='wxUSE_ACCEL=no'
3951 fi
3952
3953 else
3954
3955 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3956 if test "x$LINE" != x ; then
3957 eval "DEFAULT_$LINE"
3958 else
3959 no_cache=1
3960 fi
3961
3962 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3963
3964 fi
3965
3966
3967 eval "$ac_cv_use_accel"
3968 if test "$no_cache" != 1; then
3969 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3970 fi
3971
3972 if test "$wxUSE_ACCEL" = yes; then
3973 echo "$ac_t""yes" 1>&6
3974 else
3975 echo "$ac_t""no" 1>&6
3976 fi
3977
3978
3979 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
3980 echo "configure:3981: checking "for --enable-caret"" >&5
3981 no_cache=0
3982 # Check whether --enable-caret or --disable-caret was given.
3983 if test "${enable_caret+set}" = set; then
3984 enableval="$enable_caret"
3985
3986 if test "$enableval" = yes; then
3987 ac_cv_use_caret='wxUSE_CARET=yes'
3988 else
3989 ac_cv_use_caret='wxUSE_CARET=no'
3990 fi
3991
3992 else
3993
3994 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
4001 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4002
4003 fi
4004
4005
4006 eval "$ac_cv_use_caret"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_CARET" = yes; then
4012 echo "$ac_t""yes" 1>&6
4013 else
4014 echo "$ac_t""no" 1>&6
4015 fi
4016
4017
4018 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4019 echo "configure:4020: checking "for --enable-bmpbutton"" >&5
4020 no_cache=0
4021 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4022 if test "${enable_bmpbutton+set}" = set; then
4023 enableval="$enable_bmpbutton"
4024
4025 if test "$enableval" = yes; then
4026 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4027 else
4028 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4029 fi
4030
4031 else
4032
4033 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4041
4042 fi
4043
4044
4045 eval "$ac_cv_use_bmpbutton"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_BMPBUTTON" = yes; then
4051 echo "$ac_t""yes" 1>&6
4052 else
4053 echo "$ac_t""no" 1>&6
4054 fi
4055
4056
4057 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4058 echo "configure:4059: checking "for --enable-checkbox"" >&5
4059 no_cache=0
4060 # Check whether --enable-checkbox or --disable-checkbox was given.
4061 if test "${enable_checkbox+set}" = set; then
4062 enableval="$enable_checkbox"
4063
4064 if test "$enableval" = yes; then
4065 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4066 else
4067 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4068 fi
4069
4070 else
4071
4072 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
4079 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4080
4081 fi
4082
4083
4084 eval "$ac_cv_use_checkbox"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_CHECKBOX" = yes; then
4090 echo "$ac_t""yes" 1>&6
4091 else
4092 echo "$ac_t""no" 1>&6
4093 fi
4094
4095
4096 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4097 echo "configure:4098: checking "for --enable-checklst"" >&5
4098 no_cache=0
4099 # Check whether --enable-checklst or --disable-checklst was given.
4100 if test "${enable_checklst+set}" = set; then
4101 enableval="$enable_checklst"
4102
4103 if test "$enableval" = yes; then
4104 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4105 else
4106 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4107 fi
4108
4109 else
4110
4111 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4119
4120 fi
4121
4122
4123 eval "$ac_cv_use_checklst"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_CHECKLST" = yes; then
4129 echo "$ac_t""yes" 1>&6
4130 else
4131 echo "$ac_t""no" 1>&6
4132 fi
4133
4134
4135 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4136 echo "configure:4137: checking "for --enable-choice"" >&5
4137 no_cache=0
4138 # Check whether --enable-choice or --disable-choice was given.
4139 if test "${enable_choice+set}" = set; then
4140 enableval="$enable_choice"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_choice='wxUSE_CHOICE=yes'
4144 else
4145 ac_cv_use_choice='wxUSE_CHOICE=no'
4146 fi
4147
4148 else
4149
4150 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4158
4159 fi
4160
4161
4162 eval "$ac_cv_use_choice"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_CHOICE" = yes; then
4168 echo "$ac_t""yes" 1>&6
4169 else
4170 echo "$ac_t""no" 1>&6
4171 fi
4172
4173
4174 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4175 echo "configure:4176: checking "for --enable-combobox"" >&5
4176 no_cache=0
4177 # Check whether --enable-combobox or --disable-combobox was given.
4178 if test "${enable_combobox+set}" = set; then
4179 enableval="$enable_combobox"
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4183 else
4184 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4185 fi
4186
4187 else
4188
4189 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4197
4198 fi
4199
4200
4201 eval "$ac_cv_use_combobox"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_COMBOBOX" = yes; then
4207 echo "$ac_t""yes" 1>&6
4208 else
4209 echo "$ac_t""no" 1>&6
4210 fi
4211
4212
4213 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4214 echo "configure:4215: checking "for --enable-gauge"" >&5
4215 no_cache=0
4216 # Check whether --enable-gauge or --disable-gauge was given.
4217 if test "${enable_gauge+set}" = set; then
4218 enableval="$enable_gauge"
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4222 else
4223 ac_cv_use_gauge='wxUSE_GAUGE=no'
4224 fi
4225
4226 else
4227
4228 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4236
4237 fi
4238
4239
4240 eval "$ac_cv_use_gauge"
4241 if test "$no_cache" != 1; then
4242 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4243 fi
4244
4245 if test "$wxUSE_GAUGE" = yes; then
4246 echo "$ac_t""yes" 1>&6
4247 else
4248 echo "$ac_t""no" 1>&6
4249 fi
4250
4251
4252 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4253 echo "configure:4254: checking "for --enable-grid"" >&5
4254 no_cache=0
4255 # Check whether --enable-grid or --disable-grid was given.
4256 if test "${enable_grid+set}" = set; then
4257 enableval="$enable_grid"
4258
4259 if test "$enableval" = yes; then
4260 ac_cv_use_grid='wxUSE_GRID=yes'
4261 else
4262 ac_cv_use_grid='wxUSE_GRID=no'
4263 fi
4264
4265 else
4266
4267 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4268 if test "x$LINE" != x ; then
4269 eval "DEFAULT_$LINE"
4270 else
4271 no_cache=1
4272 fi
4273
4274 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4275
4276 fi
4277
4278
4279 eval "$ac_cv_use_grid"
4280 if test "$no_cache" != 1; then
4281 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4282 fi
4283
4284 if test "$wxUSE_GRID" = yes; then
4285 echo "$ac_t""yes" 1>&6
4286 else
4287 echo "$ac_t""no" 1>&6
4288 fi
4289
4290
4291 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4292 echo "configure:4293: checking "for --enable-newgrid"" >&5
4293 no_cache=0
4294 # Check whether --enable-newgrid or --disable-newgrid was given.
4295 if test "${enable_newgrid+set}" = set; then
4296 enableval="$enable_newgrid"
4297
4298 if test "$enableval" = yes; then
4299 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4300 else
4301 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4302 fi
4303
4304 else
4305
4306 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4307 if test "x$LINE" != x ; then
4308 eval "DEFAULT_$LINE"
4309 else
4310 no_cache=1
4311 fi
4312
4313 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4314
4315 fi
4316
4317
4318 eval "$ac_cv_use_newgrid"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_NEW_GRID" = yes; then
4324 echo "$ac_t""yes" 1>&6
4325 else
4326 echo "$ac_t""no" 1>&6
4327 fi
4328
4329
4330 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4331 echo "configure:4332: checking "for --enable-imaglist"" >&5
4332 no_cache=0
4333 # Check whether --enable-imaglist or --disable-imaglist was given.
4334 if test "${enable_imaglist+set}" = set; then
4335 enableval="$enable_imaglist"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4339 else
4340 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4341 fi
4342
4343 else
4344
4345 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4353
4354 fi
4355
4356
4357 eval "$ac_cv_use_imaglist"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_IMAGLIST" = yes; then
4363 echo "$ac_t""yes" 1>&6
4364 else
4365 echo "$ac_t""no" 1>&6
4366 fi
4367
4368
4369 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4370 echo "configure:4371: checking "for --enable-listbox"" >&5
4371 no_cache=0
4372 # Check whether --enable-listbox or --disable-listbox was given.
4373 if test "${enable_listbox+set}" = set; then
4374 enableval="$enable_listbox"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4378 else
4379 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4380 fi
4381
4382 else
4383
4384 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4392
4393 fi
4394
4395
4396 eval "$ac_cv_use_listbox"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_LISTBOX" = yes; then
4402 echo "$ac_t""yes" 1>&6
4403 else
4404 echo "$ac_t""no" 1>&6
4405 fi
4406
4407
4408 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4409 echo "configure:4410: checking "for --enable-listctrl"" >&5
4410 no_cache=0
4411 # Check whether --enable-listctrl or --disable-listctrl was given.
4412 if test "${enable_listctrl+set}" = set; then
4413 enableval="$enable_listctrl"
4414
4415 if test "$enableval" = yes; then
4416 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4417 else
4418 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4419 fi
4420
4421 else
4422
4423 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4431
4432 fi
4433
4434
4435 eval "$ac_cv_use_listctrl"
4436 if test "$no_cache" != 1; then
4437 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4438 fi
4439
4440 if test "$wxUSE_LISTCTRL" = yes; then
4441 echo "$ac_t""yes" 1>&6
4442 else
4443 echo "$ac_t""no" 1>&6
4444 fi
4445
4446
4447 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4448 echo "configure:4449: checking "for --enable-notebook"" >&5
4449 no_cache=0
4450 # Check whether --enable-notebook or --disable-notebook was given.
4451 if test "${enable_notebook+set}" = set; then
4452 enableval="$enable_notebook"
4453
4454 if test "$enableval" = yes; then
4455 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4456 else
4457 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4458 fi
4459
4460 else
4461
4462 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4463 if test "x$LINE" != x ; then
4464 eval "DEFAULT_$LINE"
4465 else
4466 no_cache=1
4467 fi
4468
4469 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4470
4471 fi
4472
4473
4474 eval "$ac_cv_use_notebook"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_NOTEBOOK" = yes; then
4480 echo "$ac_t""yes" 1>&6
4481 else
4482 echo "$ac_t""no" 1>&6
4483 fi
4484
4485
4486 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4487 echo "configure:4488: checking "for --enable-radiobox"" >&5
4488 no_cache=0
4489 # Check whether --enable-radiobox or --disable-radiobox was given.
4490 if test "${enable_radiobox+set}" = set; then
4491 enableval="$enable_radiobox"
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4495 else
4496 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4497 fi
4498
4499 else
4500
4501 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4509
4510 fi
4511
4512
4513 eval "$ac_cv_use_radiobox"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_RADIOBOX" = yes; then
4519 echo "$ac_t""yes" 1>&6
4520 else
4521 echo "$ac_t""no" 1>&6
4522 fi
4523
4524
4525 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4526 echo "configure:4527: checking "for --enable-radiobtn"" >&5
4527 no_cache=0
4528 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4529 if test "${enable_radiobtn+set}" = set; then
4530 enableval="$enable_radiobtn"
4531
4532 if test "$enableval" = yes; then
4533 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4534 else
4535 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4536 fi
4537
4538 else
4539
4540 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4541 if test "x$LINE" != x ; then
4542 eval "DEFAULT_$LINE"
4543 else
4544 no_cache=1
4545 fi
4546
4547 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4548
4549 fi
4550
4551
4552 eval "$ac_cv_use_radiobtn"
4553 if test "$no_cache" != 1; then
4554 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4555 fi
4556
4557 if test "$wxUSE_RADIOBTN" = yes; then
4558 echo "$ac_t""yes" 1>&6
4559 else
4560 echo "$ac_t""no" 1>&6
4561 fi
4562
4563
4564 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4565 echo "configure:4566: checking "for --enable-sash"" >&5
4566 no_cache=0
4567 # Check whether --enable-sash or --disable-sash was given.
4568 if test "${enable_sash+set}" = set; then
4569 enableval="$enable_sash"
4570
4571 if test "$enableval" = yes; then
4572 ac_cv_use_sash='wxUSE_SASH=yes'
4573 else
4574 ac_cv_use_sash='wxUSE_SASH=no'
4575 fi
4576
4577 else
4578
4579 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4580 if test "x$LINE" != x ; then
4581 eval "DEFAULT_$LINE"
4582 else
4583 no_cache=1
4584 fi
4585
4586 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4587
4588 fi
4589
4590
4591 eval "$ac_cv_use_sash"
4592 if test "$no_cache" != 1; then
4593 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4594 fi
4595
4596 if test "$wxUSE_SASH" = yes; then
4597 echo "$ac_t""yes" 1>&6
4598 else
4599 echo "$ac_t""no" 1>&6
4600 fi
4601
4602
4603 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4604 echo "configure:4605: checking "for --enable-scrollbar"" >&5
4605 no_cache=0
4606 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4607 if test "${enable_scrollbar+set}" = set; then
4608 enableval="$enable_scrollbar"
4609
4610 if test "$enableval" = yes; then
4611 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4612 else
4613 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4614 fi
4615
4616 else
4617
4618 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4619 if test "x$LINE" != x ; then
4620 eval "DEFAULT_$LINE"
4621 else
4622 no_cache=1
4623 fi
4624
4625 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4626
4627 fi
4628
4629
4630 eval "$ac_cv_use_scrollbar"
4631 if test "$no_cache" != 1; then
4632 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4633 fi
4634
4635 if test "$wxUSE_SCROLLBAR" = yes; then
4636 echo "$ac_t""yes" 1>&6
4637 else
4638 echo "$ac_t""no" 1>&6
4639 fi
4640
4641
4642 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4643 echo "configure:4644: checking "for --enable-slider"" >&5
4644 no_cache=0
4645 # Check whether --enable-slider or --disable-slider was given.
4646 if test "${enable_slider+set}" = set; then
4647 enableval="$enable_slider"
4648
4649 if test "$enableval" = yes; then
4650 ac_cv_use_slider='wxUSE_SLIDER=yes'
4651 else
4652 ac_cv_use_slider='wxUSE_SLIDER=no'
4653 fi
4654
4655 else
4656
4657 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4658 if test "x$LINE" != x ; then
4659 eval "DEFAULT_$LINE"
4660 else
4661 no_cache=1
4662 fi
4663
4664 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4665
4666 fi
4667
4668
4669 eval "$ac_cv_use_slider"
4670 if test "$no_cache" != 1; then
4671 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4672 fi
4673
4674 if test "$wxUSE_SLIDER" = yes; then
4675 echo "$ac_t""yes" 1>&6
4676 else
4677 echo "$ac_t""no" 1>&6
4678 fi
4679
4680
4681 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4682 echo "configure:4683: checking "for --enable-spinbtn"" >&5
4683 no_cache=0
4684 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4685 if test "${enable_spinbtn+set}" = set; then
4686 enableval="$enable_spinbtn"
4687
4688 if test "$enableval" = yes; then
4689 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4690 else
4691 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4692 fi
4693
4694 else
4695
4696 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4697 if test "x$LINE" != x ; then
4698 eval "DEFAULT_$LINE"
4699 else
4700 no_cache=1
4701 fi
4702
4703 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4704
4705 fi
4706
4707
4708 eval "$ac_cv_use_spinbtn"
4709 if test "$no_cache" != 1; then
4710 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4711 fi
4712
4713 if test "$wxUSE_SPINBTN" = yes; then
4714 echo "$ac_t""yes" 1>&6
4715 else
4716 echo "$ac_t""no" 1>&6
4717 fi
4718
4719
4720 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
4721 echo "configure:4722: checking "for --enable-spinctrl"" >&5
4722 no_cache=0
4723 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4724 if test "${enable_spinctrl+set}" = set; then
4725 enableval="$enable_spinctrl"
4726
4727 if test "$enableval" = yes; then
4728 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4729 else
4730 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4731 fi
4732
4733 else
4734
4735 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4736 if test "x$LINE" != x ; then
4737 eval "DEFAULT_$LINE"
4738 else
4739 no_cache=1
4740 fi
4741
4742 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4743
4744 fi
4745
4746
4747 eval "$ac_cv_use_spinctrl"
4748 if test "$no_cache" != 1; then
4749 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4750 fi
4751
4752 if test "$wxUSE_SPINCTRL" = yes; then
4753 echo "$ac_t""yes" 1>&6
4754 else
4755 echo "$ac_t""no" 1>&6
4756 fi
4757
4758
4759 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4760 echo "configure:4761: checking "for --enable-splitter"" >&5
4761 no_cache=0
4762 # Check whether --enable-splitter or --disable-splitter was given.
4763 if test "${enable_splitter+set}" = set; then
4764 enableval="$enable_splitter"
4765
4766 if test "$enableval" = yes; then
4767 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4768 else
4769 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4770 fi
4771
4772 else
4773
4774 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4775 if test "x$LINE" != x ; then
4776 eval "DEFAULT_$LINE"
4777 else
4778 no_cache=1
4779 fi
4780
4781 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4782
4783 fi
4784
4785
4786 eval "$ac_cv_use_splitter"
4787 if test "$no_cache" != 1; then
4788 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4789 fi
4790
4791 if test "$wxUSE_SPLITTER" = yes; then
4792 echo "$ac_t""yes" 1>&6
4793 else
4794 echo "$ac_t""no" 1>&6
4795 fi
4796
4797
4798 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4799 echo "configure:4800: checking "for --enable-statbmp"" >&5
4800 no_cache=0
4801 # Check whether --enable-statbmp or --disable-statbmp was given.
4802 if test "${enable_statbmp+set}" = set; then
4803 enableval="$enable_statbmp"
4804
4805 if test "$enableval" = yes; then
4806 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4807 else
4808 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4809 fi
4810
4811 else
4812
4813 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4814 if test "x$LINE" != x ; then
4815 eval "DEFAULT_$LINE"
4816 else
4817 no_cache=1
4818 fi
4819
4820 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4821
4822 fi
4823
4824
4825 eval "$ac_cv_use_statbmp"
4826 if test "$no_cache" != 1; then
4827 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4828 fi
4829
4830 if test "$wxUSE_STATBMP" = yes; then
4831 echo "$ac_t""yes" 1>&6
4832 else
4833 echo "$ac_t""no" 1>&6
4834 fi
4835
4836
4837 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4838 echo "configure:4839: checking "for --enable-statbox"" >&5
4839 no_cache=0
4840 # Check whether --enable-statbox or --disable-statbox was given.
4841 if test "${enable_statbox+set}" = set; then
4842 enableval="$enable_statbox"
4843
4844 if test "$enableval" = yes; then
4845 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4846 else
4847 ac_cv_use_statbox='wxUSE_STATBOX=no'
4848 fi
4849
4850 else
4851
4852 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4853 if test "x$LINE" != x ; then
4854 eval "DEFAULT_$LINE"
4855 else
4856 no_cache=1
4857 fi
4858
4859 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4860
4861 fi
4862
4863
4864 eval "$ac_cv_use_statbox"
4865 if test "$no_cache" != 1; then
4866 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4867 fi
4868
4869 if test "$wxUSE_STATBOX" = yes; then
4870 echo "$ac_t""yes" 1>&6
4871 else
4872 echo "$ac_t""no" 1>&6
4873 fi
4874
4875
4876 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4877 echo "configure:4878: checking "for --enable-statline"" >&5
4878 no_cache=0
4879 # Check whether --enable-statline or --disable-statline was given.
4880 if test "${enable_statline+set}" = set; then
4881 enableval="$enable_statline"
4882
4883 if test "$enableval" = yes; then
4884 ac_cv_use_statline='wxUSE_STATLINE=yes'
4885 else
4886 ac_cv_use_statline='wxUSE_STATLINE=no'
4887 fi
4888
4889 else
4890
4891 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4892 if test "x$LINE" != x ; then
4893 eval "DEFAULT_$LINE"
4894 else
4895 no_cache=1
4896 fi
4897
4898 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4899
4900 fi
4901
4902
4903 eval "$ac_cv_use_statline"
4904 if test "$no_cache" != 1; then
4905 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4906 fi
4907
4908 if test "$wxUSE_STATLINE" = yes; then
4909 echo "$ac_t""yes" 1>&6
4910 else
4911 echo "$ac_t""no" 1>&6
4912 fi
4913
4914
4915 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
4916 echo "configure:4917: checking "for --enable-statusbar"" >&5
4917 no_cache=0
4918 # Check whether --enable-statusbar or --disable-statusbar was given.
4919 if test "${enable_statusbar+set}" = set; then
4920 enableval="$enable_statusbar"
4921
4922 if test "$enableval" = yes; then
4923 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4924 else
4925 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4926 fi
4927
4928 else
4929
4930 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4931 if test "x$LINE" != x ; then
4932 eval "DEFAULT_$LINE"
4933 else
4934 no_cache=1
4935 fi
4936
4937 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4938
4939 fi
4940
4941
4942 eval "$ac_cv_use_statusbar"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_STATUSBAR" = yes; then
4948 echo "$ac_t""yes" 1>&6
4949 else
4950 echo "$ac_t""no" 1>&6
4951 fi
4952
4953
4954 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
4955 echo "configure:4956: checking "for --enable-tabdialog"" >&5
4956 no_cache=0
4957 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4958 if test "${enable_tabdialog+set}" = set; then
4959 enableval="$enable_tabdialog"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4963 else
4964 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4965 fi
4966
4967 else
4968
4969 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4977
4978 fi
4979
4980
4981 eval "$ac_cv_use_tabdialog"
4982 if test "$no_cache" != 1; then
4983 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4984 fi
4985
4986 if test "$wxUSE_TABDIALOG" = yes; then
4987 echo "$ac_t""yes" 1>&6
4988 else
4989 echo "$ac_t""no" 1>&6
4990 fi
4991
4992
4993 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
4994 echo "configure:4995: checking "for --enable-toolbar"" >&5
4995 no_cache=0
4996 # Check whether --enable-toolbar or --disable-toolbar was given.
4997 if test "${enable_toolbar+set}" = set; then
4998 enableval="$enable_toolbar"
4999
5000 if test "$enableval" = yes; then
5001 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5002 else
5003 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5004 fi
5005
5006 else
5007
5008 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5009 if test "x$LINE" != x ; then
5010 eval "DEFAULT_$LINE"
5011 else
5012 no_cache=1
5013 fi
5014
5015 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5016
5017 fi
5018
5019
5020 eval "$ac_cv_use_toolbar"
5021 if test "$no_cache" != 1; then
5022 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5023 fi
5024
5025 if test "$wxUSE_TOOLBAR" = yes; then
5026 echo "$ac_t""yes" 1>&6
5027 else
5028 echo "$ac_t""no" 1>&6
5029 fi
5030
5031
5032 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5033 echo "configure:5034: checking "for --enable-tbarnative"" >&5
5034 no_cache=0
5035 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5036 if test "${enable_tbarnative+set}" = set; then
5037 enableval="$enable_tbarnative"
5038
5039 if test "$enableval" = yes; then
5040 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5041 else
5042 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5043 fi
5044
5045 else
5046
5047 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5048 if test "x$LINE" != x ; then
5049 eval "DEFAULT_$LINE"
5050 else
5051 no_cache=1
5052 fi
5053
5054 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5055
5056 fi
5057
5058
5059 eval "$ac_cv_use_tbarnative"
5060 if test "$no_cache" != 1; then
5061 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5062 fi
5063
5064 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5065 echo "$ac_t""yes" 1>&6
5066 else
5067 echo "$ac_t""no" 1>&6
5068 fi
5069
5070
5071 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5072 echo "configure:5073: checking "for --enable-tbarsmpl"" >&5
5073 no_cache=0
5074 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5075 if test "${enable_tbarsmpl+set}" = set; then
5076 enableval="$enable_tbarsmpl"
5077
5078 if test "$enableval" = yes; then
5079 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5080 else
5081 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5082 fi
5083
5084 else
5085
5086 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5087 if test "x$LINE" != x ; then
5088 eval "DEFAULT_$LINE"
5089 else
5090 no_cache=1
5091 fi
5092
5093 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5094
5095 fi
5096
5097
5098 eval "$ac_cv_use_tbarsmpl"
5099 if test "$no_cache" != 1; then
5100 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5101 fi
5102
5103 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5104 echo "$ac_t""yes" 1>&6
5105 else
5106 echo "$ac_t""no" 1>&6
5107 fi
5108
5109
5110 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5111 echo "configure:5112: checking "for --enable-treectrl"" >&5
5112 no_cache=0
5113 # Check whether --enable-treectrl or --disable-treectrl was given.
5114 if test "${enable_treectrl+set}" = set; then
5115 enableval="$enable_treectrl"
5116
5117 if test "$enableval" = yes; then
5118 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5119 else
5120 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5121 fi
5122
5123 else
5124
5125 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5126 if test "x$LINE" != x ; then
5127 eval "DEFAULT_$LINE"
5128 else
5129 no_cache=1
5130 fi
5131
5132 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5133
5134 fi
5135
5136
5137 eval "$ac_cv_use_treectrl"
5138 if test "$no_cache" != 1; then
5139 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5140 fi
5141
5142 if test "$wxUSE_TREECTRL" = yes; then
5143 echo "$ac_t""yes" 1>&6
5144 else
5145 echo "$ac_t""no" 1>&6
5146 fi
5147
5148
5149
5150
5151 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5152 echo "configure:5153: checking "for --enable-commondlg"" >&5
5153 no_cache=0
5154 # Check whether --enable-commondlg or --disable-commondlg was given.
5155 if test "${enable_commondlg+set}" = set; then
5156 enableval="$enable_commondlg"
5157
5158 if test "$enableval" = yes; then
5159 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5160 else
5161 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5162 fi
5163
5164 else
5165
5166 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5167 if test "x$LINE" != x ; then
5168 eval "DEFAULT_$LINE"
5169 else
5170 no_cache=1
5171 fi
5172
5173 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5174
5175 fi
5176
5177
5178 eval "$ac_cv_use_commondlg"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_COMMONDLGS" = yes; then
5184 echo "$ac_t""yes" 1>&6
5185 else
5186 echo "$ac_t""no" 1>&6
5187 fi
5188
5189
5190 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5191 echo "configure:5192: checking "for --enable-dirdlg"" >&5
5192 no_cache=0
5193 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5194 if test "${enable_dirdlg+set}" = set; then
5195 enableval="$enable_dirdlg"
5196
5197 if test "$enableval" = yes; then
5198 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5199 else
5200 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5201 fi
5202
5203 else
5204
5205 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5206 if test "x$LINE" != x ; then
5207 eval "DEFAULT_$LINE"
5208 else
5209 no_cache=1
5210 fi
5211
5212 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5213
5214 fi
5215
5216
5217 eval "$ac_cv_use_dirdlg"
5218 if test "$no_cache" != 1; then
5219 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5220 fi
5221
5222 if test "$wxUSE_DIRDLG" = yes; then
5223 echo "$ac_t""yes" 1>&6
5224 else
5225 echo "$ac_t""no" 1>&6
5226 fi
5227
5228
5229 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5230 echo "configure:5231: checking "for --enable-textdlg"" >&5
5231 no_cache=0
5232 # Check whether --enable-textdlg or --disable-textdlg was given.
5233 if test "${enable_textdlg+set}" = set; then
5234 enableval="$enable_textdlg"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5238 else
5239 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5240 fi
5241
5242 else
5243
5244 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5252
5253 fi
5254
5255
5256 eval "$ac_cv_use_textdlg"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_TEXTDLG" = yes; then
5262 echo "$ac_t""yes" 1>&6
5263 else
5264 echo "$ac_t""no" 1>&6
5265 fi
5266
5267
5268 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5269 echo "configure:5270: checking "for --enable-tipdlg"" >&5
5270 no_cache=0
5271 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5272 if test "${enable_tipdlg+set}" = set; then
5273 enableval="$enable_tipdlg"
5274
5275 if test "$enableval" = yes; then
5276 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5277 else
5278 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5279 fi
5280
5281 else
5282
5283 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5284 if test "x$LINE" != x ; then
5285 eval "DEFAULT_$LINE"
5286 else
5287 no_cache=1
5288 fi
5289
5290 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5291
5292 fi
5293
5294
5295 eval "$ac_cv_use_tipdlg"
5296 if test "$no_cache" != 1; then
5297 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5298 fi
5299
5300 if test "$wxUSE_STARTUP_TIPS" = yes; then
5301 echo "$ac_t""yes" 1>&6
5302 else
5303 echo "$ac_t""no" 1>&6
5304 fi
5305
5306
5307 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5308 echo "configure:5309: checking "for --enable-progressdlg"" >&5
5309 no_cache=0
5310 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5311 if test "${enable_progressdlg+set}" = set; then
5312 enableval="$enable_progressdlg"
5313
5314 if test "$enableval" = yes; then
5315 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5316 else
5317 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5318 fi
5319
5320 else
5321
5322 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5323 if test "x$LINE" != x ; then
5324 eval "DEFAULT_$LINE"
5325 else
5326 no_cache=1
5327 fi
5328
5329 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5330
5331 fi
5332
5333
5334 eval "$ac_cv_use_progressdlg"
5335 if test "$no_cache" != 1; then
5336 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5337 fi
5338
5339 if test "$wxUSE_PROGRESSDLG" = yes; then
5340 echo "$ac_t""yes" 1>&6
5341 else
5342 echo "$ac_t""no" 1>&6
5343 fi
5344
5345
5346 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5347 echo "configure:5348: checking "for --enable-miniframe"" >&5
5348 no_cache=0
5349 # Check whether --enable-miniframe or --disable-miniframe was given.
5350 if test "${enable_miniframe+set}" = set; then
5351 enableval="$enable_miniframe"
5352
5353 if test "$enableval" = yes; then
5354 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5355 else
5356 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5357 fi
5358
5359 else
5360
5361 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5362 if test "x$LINE" != x ; then
5363 eval "DEFAULT_$LINE"
5364 else
5365 no_cache=1
5366 fi
5367
5368 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5369
5370 fi
5371
5372
5373 eval "$ac_cv_use_miniframe"
5374 if test "$no_cache" != 1; then
5375 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5376 fi
5377
5378 if test "$wxUSE_MINIFRAME" = yes; then
5379 echo "$ac_t""yes" 1>&6
5380 else
5381 echo "$ac_t""no" 1>&6
5382 fi
5383
5384
5385 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5386 echo "configure:5387: checking "for --enable-html"" >&5
5387 no_cache=0
5388 # Check whether --enable-html or --disable-html was given.
5389 if test "${enable_html+set}" = set; then
5390 enableval="$enable_html"
5391
5392 if test "$enableval" = yes; then
5393 ac_cv_use_html='wxUSE_HTML=yes'
5394 else
5395 ac_cv_use_html='wxUSE_HTML=no'
5396 fi
5397
5398 else
5399
5400 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5401 if test "x$LINE" != x ; then
5402 eval "DEFAULT_$LINE"
5403 else
5404 no_cache=1
5405 fi
5406
5407 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5408
5409 fi
5410
5411
5412 eval "$ac_cv_use_html"
5413 if test "$no_cache" != 1; then
5414 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5415 fi
5416
5417 if test "$wxUSE_HTML" = yes; then
5418 echo "$ac_t""yes" 1>&6
5419 else
5420 echo "$ac_t""no" 1>&6
5421 fi
5422
5423
5424 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5425 echo "configure:5426: checking "for --enable-tooltips"" >&5
5426 no_cache=0
5427 # Check whether --enable-tooltips or --disable-tooltips was given.
5428 if test "${enable_tooltips+set}" = set; then
5429 enableval="$enable_tooltips"
5430
5431 if test "$enableval" = yes; then
5432 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5433 else
5434 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5435 fi
5436
5437 else
5438
5439 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5440 if test "x$LINE" != x ; then
5441 eval "DEFAULT_$LINE"
5442 else
5443 no_cache=1
5444 fi
5445
5446 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5447
5448 fi
5449
5450
5451 eval "$ac_cv_use_tooltips"
5452 if test "$no_cache" != 1; then
5453 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5454 fi
5455
5456 if test "$wxUSE_TOOLTIPS" = yes; then
5457 echo "$ac_t""yes" 1>&6
5458 else
5459 echo "$ac_t""no" 1>&6
5460 fi
5461
5462
5463 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5464 echo "configure:5465: checking "for --enable-splines"" >&5
5465 no_cache=0
5466 # Check whether --enable-splines or --disable-splines was given.
5467 if test "${enable_splines+set}" = set; then
5468 enableval="$enable_splines"
5469
5470 if test "$enableval" = yes; then
5471 ac_cv_use_splines='wxUSE_SPLINES=yes'
5472 else
5473 ac_cv_use_splines='wxUSE_SPLINES=no'
5474 fi
5475
5476 else
5477
5478 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5479 if test "x$LINE" != x ; then
5480 eval "DEFAULT_$LINE"
5481 else
5482 no_cache=1
5483 fi
5484
5485 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5486
5487 fi
5488
5489
5490 eval "$ac_cv_use_splines"
5491 if test "$no_cache" != 1; then
5492 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5493 fi
5494
5495 if test "$wxUSE_SPLINES" = yes; then
5496 echo "$ac_t""yes" 1>&6
5497 else
5498 echo "$ac_t""no" 1>&6
5499 fi
5500
5501
5502 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5503 echo "configure:5504: checking "for --enable-validators"" >&5
5504 no_cache=0
5505 # Check whether --enable-validators or --disable-validators was given.
5506 if test "${enable_validators+set}" = set; then
5507 enableval="$enable_validators"
5508
5509 if test "$enableval" = yes; then
5510 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5511 else
5512 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5513 fi
5514
5515 else
5516
5517 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5518 if test "x$LINE" != x ; then
5519 eval "DEFAULT_$LINE"
5520 else
5521 no_cache=1
5522 fi
5523
5524 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5525
5526 fi
5527
5528
5529 eval "$ac_cv_use_validators"
5530 if test "$no_cache" != 1; then
5531 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5532 fi
5533
5534 if test "$wxUSE_VALIDATORS" = yes; then
5535 echo "$ac_t""yes" 1>&6
5536 else
5537 echo "$ac_t""no" 1>&6
5538 fi
5539
5540
5541 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5542 echo "configure:5543: checking "for --enable-busyinfo"" >&5
5543 no_cache=0
5544 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5545 if test "${enable_busyinfo+set}" = set; then
5546 enableval="$enable_busyinfo"
5547
5548 if test "$enableval" = yes; then
5549 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5550 else
5551 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5552 fi
5553
5554 else
5555
5556 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5557 if test "x$LINE" != x ; then
5558 eval "DEFAULT_$LINE"
5559 else
5560 no_cache=1
5561 fi
5562
5563 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5564
5565 fi
5566
5567
5568 eval "$ac_cv_use_busyinfo"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_BUSYINFO" = yes; then
5574 echo "$ac_t""yes" 1>&6
5575 else
5576 echo "$ac_t""no" 1>&6
5577 fi
5578
5579
5580 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
5581 echo "configure:5582: checking "for --enable-plot"" >&5
5582 no_cache=0
5583 # Check whether --enable-plot or --disable-plot was given.
5584 if test "${enable_plot+set}" = set; then
5585 enableval="$enable_plot"
5586
5587 if test "$enableval" = yes; then
5588 ac_cv_use_plot='wxUSE_PLOT=yes'
5589 else
5590 ac_cv_use_plot='wxUSE_PLOT=no'
5591 fi
5592
5593 else
5594
5595 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5596 if test "x$LINE" != x ; then
5597 eval "DEFAULT_$LINE"
5598 else
5599 no_cache=1
5600 fi
5601
5602 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5603
5604 fi
5605
5606
5607 eval "$ac_cv_use_plot"
5608 if test "$no_cache" != 1; then
5609 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5610 fi
5611
5612 if test "$wxUSE_PLOT" = yes; then
5613 echo "$ac_t""yes" 1>&6
5614 else
5615 echo "$ac_t""no" 1>&6
5616 fi
5617
5618
5619
5620
5621 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5622 echo "configure:5623: checking "for --enable-gif"" >&5
5623 no_cache=0
5624 # Check whether --enable-gif or --disable-gif was given.
5625 if test "${enable_gif+set}" = set; then
5626 enableval="$enable_gif"
5627
5628 if test "$enableval" = yes; then
5629 ac_cv_use_gif='wxUSE_GIF=yes'
5630 else
5631 ac_cv_use_gif='wxUSE_GIF=no'
5632 fi
5633
5634 else
5635
5636 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5637 if test "x$LINE" != x ; then
5638 eval "DEFAULT_$LINE"
5639 else
5640 no_cache=1
5641 fi
5642
5643 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5644
5645 fi
5646
5647
5648 eval "$ac_cv_use_gif"
5649 if test "$no_cache" != 1; then
5650 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5651 fi
5652
5653 if test "$wxUSE_GIF" = yes; then
5654 echo "$ac_t""yes" 1>&6
5655 else
5656 echo "$ac_t""no" 1>&6
5657 fi
5658
5659
5660 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5661 echo "configure:5662: checking "for --enable-pcx"" >&5
5662 no_cache=0
5663 # Check whether --enable-pcx or --disable-pcx was given.
5664 if test "${enable_pcx+set}" = set; then
5665 enableval="$enable_pcx"
5666
5667 if test "$enableval" = yes; then
5668 ac_cv_use_pcx='wxUSE_PCX=yes'
5669 else
5670 ac_cv_use_pcx='wxUSE_PCX=no'
5671 fi
5672
5673 else
5674
5675 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5683
5684 fi
5685
5686
5687 eval "$ac_cv_use_pcx"
5688 if test "$no_cache" != 1; then
5689 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5690 fi
5691
5692 if test "$wxUSE_PCX" = yes; then
5693 echo "$ac_t""yes" 1>&6
5694 else
5695 echo "$ac_t""no" 1>&6
5696 fi
5697
5698
5699 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5700 echo "configure:5701: checking "for --enable-pnm"" >&5
5701 no_cache=0
5702 # Check whether --enable-pnm or --disable-pnm was given.
5703 if test "${enable_pnm+set}" = set; then
5704 enableval="$enable_pnm"
5705
5706 if test "$enableval" = yes; then
5707 ac_cv_use_pnm='wxUSE_PNM=yes'
5708 else
5709 ac_cv_use_pnm='wxUSE_PNM=no'
5710 fi
5711
5712 else
5713
5714 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5715 if test "x$LINE" != x ; then
5716 eval "DEFAULT_$LINE"
5717 else
5718 no_cache=1
5719 fi
5720
5721 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5722
5723 fi
5724
5725
5726 eval "$ac_cv_use_pnm"
5727 if test "$no_cache" != 1; then
5728 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5729 fi
5730
5731 if test "$wxUSE_PNM" = yes; then
5732 echo "$ac_t""yes" 1>&6
5733 else
5734 echo "$ac_t""no" 1>&6
5735 fi
5736
5737
5738 fi
5739
5740
5741 echo "saving argument cache $wx_arg_cache_file"
5742 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5743
5744
5745
5746 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5747 echo "configure:5748: checking for toolkit" >&5
5748
5749 if test "$wxUSE_GUI" = "yes"; then
5750
5751 if test "$USE_BEOS" = 1; then
5752 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5753 fi
5754
5755 if test "$TOOLKIT_GIVEN" = 1; then
5756 for toolkit in `echo $ALL_TOOLKITS`; do
5757 var=wxUSE_$toolkit
5758 eval "value=\$${var}"
5759 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5760 done
5761 else
5762 for toolkit in `echo $ALL_TOOLKITS`; do
5763 if test "$has_toolkit_in_cache" != 1; then
5764 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5765 else
5766 var=DEFAULT_wxUSE_$toolkit
5767 fi
5768 eval "wxUSE_$toolkit=\$${var}"
5769 done
5770 fi
5771
5772 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5773
5774 case "${host}" in
5775 *-pc-os2_emx )
5776 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5777 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5778 LEX_STEM="lexyy"
5779 ;;
5780 *)
5781 PATH_IFS=':'
5782 LEX_STEM="lex.yy"
5783 PROGRAM_EXT=
5784 ;;
5785 esac
5786
5787 case "$NUM_TOOLKITS" in
5788 1)
5789 ;;
5790 0)
5791 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5792 ;;
5793 *)
5794 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5795 esac
5796
5797 for toolkit in `echo $ALL_TOOLKITS`; do
5798 var=wxUSE_$toolkit
5799 eval "value=\$${var}"
5800 if test "x$value" != x; then
5801 cache_var=CACHE_$toolkit
5802 eval "cache=\$${cache_var}"
5803 if test "$cache" = 1; then
5804 echo "$var=$value" >> ${wx_arg_cache_file}
5805 fi
5806 if test "$value" = 1; then
5807 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5808 fi
5809 fi
5810 done
5811
5812 else
5813 PATH_IFS=':'
5814 echo "$ac_t""base only" 1>&6
5815 fi
5816
5817
5818 cat > confcache <<\EOF
5819 # This file is a shell script that caches the results of configure
5820 # tests run on this system so they can be shared between configure
5821 # scripts and configure runs. It is not useful on other systems.
5822 # If it contains results you don't want to keep, you may remove or edit it.
5823 #
5824 # By default, configure uses ./config.cache as the cache file,
5825 # creating it if it does not exist already. You can give configure
5826 # the --cache-file=FILE option to use a different cache file; that is
5827 # what configure does when it calls configure scripts in
5828 # subdirectories, so they share the cache.
5829 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5830 # config.status only pays attention to the cache file if you give it the
5831 # --recheck option to rerun configure.
5832 #
5833 EOF
5834 # The following way of writing the cache mishandles newlines in values,
5835 # but we know of no workaround that is simple, portable, and efficient.
5836 # So, don't put newlines in cache variables' values.
5837 # Ultrix sh set writes to stderr and can't be redirected directly,
5838 # and sets the high bit in the cache file unless we assign to the vars.
5839 (set) 2>&1 |
5840 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5841 *ac_space=\ *)
5842 # `set' does not quote correctly, so add quotes (double-quote substitution
5843 # turns \\\\ into \\, and sed turns \\ into \).
5844 sed -n \
5845 -e "s/'/'\\\\''/g" \
5846 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5847 ;;
5848 *)
5849 # `set' quotes correctly as required by POSIX, so do not add quotes.
5850 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5851 ;;
5852 esac >> confcache
5853 if cmp -s $cache_file confcache; then
5854 :
5855 else
5856 if test -w $cache_file; then
5857 echo "updating cache $cache_file"
5858 cat confcache > $cache_file
5859 else
5860 echo "not updating unwritable cache $cache_file"
5861 fi
5862 fi
5863 rm -f confcache
5864
5865
5866 if eval "test $host != $build"; then
5867 if eval "test $host_alias != NONE"; then
5868 CC=$host_alias-gcc
5869 CXX=$host_alias-c++
5870 AR=$host_alias-ar
5871 RANLIB=$host_alias-ranlib
5872 DLLTOOL=$host_alias-dlltool
5873 LD=$host_alias-ld
5874 NM=$host_alias-nm
5875 STRIP=$host_alias-strip
5876 fi
5877 fi
5878
5879 # Extract the first word of "gcc", so it can be a program name with args.
5880 set dummy gcc; ac_word=$2
5881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_word" >&5
5883 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5885 else
5886 if test -n "$CC"; then
5887 ac_cv_prog_CC="$CC" # Let the user override the test.
5888 else
5889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5890 ac_dummy="$PATH"
5891 for ac_dir in $ac_dummy; do
5892 test -z "$ac_dir" && ac_dir=.
5893 if test -f $ac_dir/$ac_word; then
5894 ac_cv_prog_CC="gcc"
5895 break
5896 fi
5897 done
5898 IFS="$ac_save_ifs"
5899 fi
5900 fi
5901 CC="$ac_cv_prog_CC"
5902 if test -n "$CC"; then
5903 echo "$ac_t""$CC" 1>&6
5904 else
5905 echo "$ac_t""no" 1>&6
5906 fi
5907
5908 if test -z "$CC"; then
5909 # Extract the first word of "cc", so it can be a program name with args.
5910 set dummy cc; ac_word=$2
5911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5912 echo "configure:5913: checking for $ac_word" >&5
5913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5915 else
5916 if test -n "$CC"; then
5917 ac_cv_prog_CC="$CC" # Let the user override the test.
5918 else
5919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5920 ac_prog_rejected=no
5921 ac_dummy="$PATH"
5922 for ac_dir in $ac_dummy; do
5923 test -z "$ac_dir" && ac_dir=.
5924 if test -f $ac_dir/$ac_word; then
5925 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5926 ac_prog_rejected=yes
5927 continue
5928 fi
5929 ac_cv_prog_CC="cc"
5930 break
5931 fi
5932 done
5933 IFS="$ac_save_ifs"
5934 if test $ac_prog_rejected = yes; then
5935 # We found a bogon in the path, so make sure we never use it.
5936 set dummy $ac_cv_prog_CC
5937 shift
5938 if test $# -gt 0; then
5939 # We chose a different compiler from the bogus one.
5940 # However, it has the same basename, so the bogon will be chosen
5941 # first if we set CC to just the basename; use the full file name.
5942 shift
5943 set dummy "$ac_dir/$ac_word" "$@"
5944 shift
5945 ac_cv_prog_CC="$@"
5946 fi
5947 fi
5948 fi
5949 fi
5950 CC="$ac_cv_prog_CC"
5951 if test -n "$CC"; then
5952 echo "$ac_t""$CC" 1>&6
5953 else
5954 echo "$ac_t""no" 1>&6
5955 fi
5956
5957 if test -z "$CC"; then
5958 case "`uname -s`" in
5959 *win32* | *WIN32*)
5960 # Extract the first word of "cl", so it can be a program name with args.
5961 set dummy cl; ac_word=$2
5962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5963 echo "configure:5964: checking for $ac_word" >&5
5964 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5966 else
5967 if test -n "$CC"; then
5968 ac_cv_prog_CC="$CC" # Let the user override the test.
5969 else
5970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5971 ac_dummy="$PATH"
5972 for ac_dir in $ac_dummy; do
5973 test -z "$ac_dir" && ac_dir=.
5974 if test -f $ac_dir/$ac_word; then
5975 ac_cv_prog_CC="cl"
5976 break
5977 fi
5978 done
5979 IFS="$ac_save_ifs"
5980 fi
5981 fi
5982 CC="$ac_cv_prog_CC"
5983 if test -n "$CC"; then
5984 echo "$ac_t""$CC" 1>&6
5985 else
5986 echo "$ac_t""no" 1>&6
5987 fi
5988 ;;
5989 esac
5990 fi
5991 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5992 fi
5993
5994 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5995 echo "configure:5996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
5996
5997 ac_ext=c
5998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6002 cross_compiling=$ac_cv_prog_cc_cross
6003
6004 cat > conftest.$ac_ext << EOF
6005
6006 #line 6007 "configure"
6007 #include "confdefs.h"
6008
6009 main(){return(0);}
6010 EOF
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 ac_cv_prog_cc_works=yes
6013 # If we can't run a trivial program, we are probably using a cross compiler.
6014 if (./conftest; exit) 2>/dev/null; then
6015 ac_cv_prog_cc_cross=no
6016 else
6017 ac_cv_prog_cc_cross=yes
6018 fi
6019 else
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6022 ac_cv_prog_cc_works=no
6023 fi
6024 rm -fr conftest*
6025 ac_ext=c
6026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6030 cross_compiling=$ac_cv_prog_cc_cross
6031
6032 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6033 if test $ac_cv_prog_cc_works = no; then
6034 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6035 fi
6036 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6037 echo "configure:6038: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6038 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6039 cross_compiling=$ac_cv_prog_cc_cross
6040
6041 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6042 echo "configure:6043: checking whether we are using GNU C" >&5
6043 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6045 else
6046 cat > conftest.c <<EOF
6047 #ifdef __GNUC__
6048 yes;
6049 #endif
6050 EOF
6051 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6052 ac_cv_prog_gcc=yes
6053 else
6054 ac_cv_prog_gcc=no
6055 fi
6056 fi
6057
6058 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6059
6060 if test $ac_cv_prog_gcc = yes; then
6061 GCC=yes
6062 else
6063 GCC=
6064 fi
6065
6066 ac_test_CFLAGS="${CFLAGS+set}"
6067 ac_save_CFLAGS="$CFLAGS"
6068 CFLAGS=
6069 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6070 echo "configure:6071: checking whether ${CC-cc} accepts -g" >&5
6071 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6073 else
6074 echo 'void f(){}' > conftest.c
6075 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6076 ac_cv_prog_cc_g=yes
6077 else
6078 ac_cv_prog_cc_g=no
6079 fi
6080 rm -f conftest*
6081
6082 fi
6083
6084 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6085 if test "$ac_test_CFLAGS" = set; then
6086 CFLAGS="$ac_save_CFLAGS"
6087 elif test $ac_cv_prog_cc_g = yes; then
6088 if test "$GCC" = yes; then
6089 CFLAGS="-g -O2"
6090 else
6091 CFLAGS="-g"
6092 fi
6093 else
6094 if test "$GCC" = yes; then
6095 CFLAGS="-O2"
6096 else
6097 CFLAGS=
6098 fi
6099 fi
6100
6101
6102 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6103
6104 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6105 echo "configure:6106: checking how to run the C preprocessor" >&5
6106 # On Suns, sometimes $CPP names a directory.
6107 if test -n "$CPP" && test -d "$CPP"; then
6108 CPP=
6109 fi
6110 if test -z "$CPP"; then
6111 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6113 else
6114 # This must be in double quotes, not single quotes, because CPP may get
6115 # substituted into the Makefile and "${CC-cc}" will confuse make.
6116 CPP="${CC-cc} -E"
6117 # On the NeXT, cc -E runs the code through the compiler's parser,
6118 # not just through cpp.
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6122 #include <assert.h>
6123 Syntax Error
6124 EOF
6125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6126 { (eval echo configure:6127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6128 if test -z "$ac_err"; then
6129 :
6130 else
6131 echo "$ac_err" >&5
6132 echo "configure: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6134 rm -rf conftest*
6135 CPP="${CC-cc} -E -traditional-cpp"
6136 cat > conftest.$ac_ext <<EOF
6137 #line 6138 "configure"
6138 #include "confdefs.h"
6139 #include <assert.h>
6140 Syntax Error
6141 EOF
6142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6143 { (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6145 if test -z "$ac_err"; then
6146 :
6147 else
6148 echo "$ac_err" >&5
6149 echo "configure: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6151 rm -rf conftest*
6152 CPP="${CC-cc} -nologo -E"
6153 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6156 #include <assert.h>
6157 Syntax Error
6158 EOF
6159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6160 { (eval echo configure:6161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6162 if test -z "$ac_err"; then
6163 :
6164 else
6165 echo "$ac_err" >&5
6166 echo "configure: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6168 rm -rf conftest*
6169 CPP=/lib/cpp
6170 fi
6171 rm -f conftest*
6172 fi
6173 rm -f conftest*
6174 fi
6175 rm -f conftest*
6176 ac_cv_prog_CPP="$CPP"
6177 fi
6178 CPP="$ac_cv_prog_CPP"
6179 else
6180 ac_cv_prog_CPP="$CPP"
6181 fi
6182 echo "$ac_t""$CPP" 1>&6
6183
6184
6185 if test $ac_cv_prog_gcc = yes; then
6186 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6187 echo "configure:6188: checking whether ${CC-cc} needs -traditional" >&5
6188 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6190 else
6191 ac_pattern="Autoconf.*'x'"
6192 cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6195 #include <sgtty.h>
6196 Autoconf TIOCGETP
6197 EOF
6198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199 egrep "$ac_pattern" >/dev/null 2>&1; then
6200 rm -rf conftest*
6201 ac_cv_prog_gcc_traditional=yes
6202 else
6203 rm -rf conftest*
6204 ac_cv_prog_gcc_traditional=no
6205 fi
6206 rm -f conftest*
6207
6208
6209 if test $ac_cv_prog_gcc_traditional = no; then
6210 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6213 #include <termio.h>
6214 Autoconf TCGETA
6215 EOF
6216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6217 egrep "$ac_pattern" >/dev/null 2>&1; then
6218 rm -rf conftest*
6219 ac_cv_prog_gcc_traditional=yes
6220 fi
6221 rm -f conftest*
6222
6223 fi
6224 fi
6225
6226 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6227 if test $ac_cv_prog_gcc_traditional = yes; then
6228 CC="$CC -traditional"
6229 fi
6230 fi
6231
6232
6233
6234 ac_ext=C
6235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6236 ac_cpp='$CXXCPP $CPPFLAGS'
6237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6239 cross_compiling=$ac_cv_prog_cxx_cross
6240
6241
6242 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6243 do
6244 # Extract the first word of "$ac_prog", so it can be a program name with args.
6245 set dummy $ac_prog; ac_word=$2
6246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6247 echo "configure:6248: checking for $ac_word" >&5
6248 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6250 else
6251 if test -n "$CXX"; then
6252 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6253 else
6254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6255 ac_dummy="$PATH"
6256 for ac_dir in $ac_dummy; do
6257 test -z "$ac_dir" && ac_dir=.
6258 if test -f $ac_dir/$ac_word; then
6259 ac_cv_prog_CXX="$ac_prog"
6260 break
6261 fi
6262 done
6263 IFS="$ac_save_ifs"
6264 fi
6265 fi
6266 CXX="$ac_cv_prog_CXX"
6267 if test -n "$CXX"; then
6268 echo "$ac_t""$CXX" 1>&6
6269 else
6270 echo "$ac_t""no" 1>&6
6271 fi
6272
6273 test -n "$CXX" && break
6274 done
6275 test -n "$CXX" || CXX="gcc"
6276
6277
6278 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6279 echo "configure:6280: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6280
6281 ac_ext=C
6282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6283 ac_cpp='$CXXCPP $CPPFLAGS'
6284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6286 cross_compiling=$ac_cv_prog_cxx_cross
6287
6288 cat > conftest.$ac_ext << EOF
6289
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6292
6293 int main(){return(0);}
6294 EOF
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6296 ac_cv_prog_cxx_works=yes
6297 # If we can't run a trivial program, we are probably using a cross compiler.
6298 if (./conftest; exit) 2>/dev/null; then
6299 ac_cv_prog_cxx_cross=no
6300 else
6301 ac_cv_prog_cxx_cross=yes
6302 fi
6303 else
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 ac_cv_prog_cxx_works=no
6307 fi
6308 rm -fr conftest*
6309 ac_ext=C
6310 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6311 ac_cpp='$CXXCPP $CPPFLAGS'
6312 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6313 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6314 cross_compiling=$ac_cv_prog_cxx_cross
6315
6316 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6317 if test $ac_cv_prog_cxx_works = no; then
6318 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6319 fi
6320 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6321 echo "configure:6322: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6322 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6323 cross_compiling=$ac_cv_prog_cxx_cross
6324
6325 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6326 echo "configure:6327: checking whether we are using GNU C++" >&5
6327 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6329 else
6330 cat > conftest.C <<EOF
6331 #ifdef __GNUC__
6332 yes;
6333 #endif
6334 EOF
6335 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6336 ac_cv_prog_gxx=yes
6337 else
6338 ac_cv_prog_gxx=no
6339 fi
6340 fi
6341
6342 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6343
6344 if test $ac_cv_prog_gxx = yes; then
6345 GXX=yes
6346 else
6347 GXX=
6348 fi
6349
6350 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6351 ac_save_CXXFLAGS="$CXXFLAGS"
6352 CXXFLAGS=
6353 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6354 echo "configure:6355: checking whether ${CXX-g++} accepts -g" >&5
6355 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6357 else
6358 echo 'void f(){}' > conftest.cc
6359 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6360 ac_cv_prog_cxx_g=yes
6361 else
6362 ac_cv_prog_cxx_g=no
6363 fi
6364 rm -f conftest*
6365
6366 fi
6367
6368 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6369 if test "$ac_test_CXXFLAGS" = set; then
6370 CXXFLAGS="$ac_save_CXXFLAGS"
6371 elif test $ac_cv_prog_cxx_g = yes; then
6372 if test "$GXX" = yes; then
6373 CXXFLAGS="-g -O2"
6374 else
6375 CXXFLAGS="-g"
6376 fi
6377 else
6378 if test "$GXX" = yes; then
6379 CXXFLAGS="-O2"
6380 else
6381 CXXFLAGS=
6382 fi
6383 fi
6384
6385
6386 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6387 echo "configure:6388: checking how to run the C++ preprocessor" >&5
6388 if test -z "$CXXCPP"; then
6389 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6391 else
6392 ac_ext=C
6393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6394 ac_cpp='$CXXCPP $CPPFLAGS'
6395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6397 cross_compiling=$ac_cv_prog_cxx_cross
6398 CXXCPP="${CXX-g++} -E"
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 #include <stdlib.h>
6403 EOF
6404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6405 { (eval echo configure:6406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6407 if test -z "$ac_err"; then
6408 :
6409 else
6410 echo "$ac_err" >&5
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6413 rm -rf conftest*
6414 CXXCPP=/lib/cpp
6415 fi
6416 rm -f conftest*
6417 ac_cv_prog_CXXCPP="$CXXCPP"
6418 ac_ext=C
6419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6420 ac_cpp='$CXXCPP $CPPFLAGS'
6421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6423 cross_compiling=$ac_cv_prog_cxx_cross
6424 fi
6425 fi
6426 CXXCPP="$ac_cv_prog_CXXCPP"
6427 echo "$ac_t""$CXXCPP" 1>&6
6428
6429
6430 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6431
6432 ac_ext=c
6433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6437 cross_compiling=$ac_cv_prog_cc_cross
6438
6439
6440 # Extract the first word of "ranlib", so it can be a program name with args.
6441 set dummy ranlib; ac_word=$2
6442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6443 echo "configure:6444: checking for $ac_word" >&5
6444 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6446 else
6447 if test -n "$RANLIB"; then
6448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6449 else
6450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6451 ac_dummy="$PATH"
6452 for ac_dir in $ac_dummy; do
6453 test -z "$ac_dir" && ac_dir=.
6454 if test -f $ac_dir/$ac_word; then
6455 ac_cv_prog_RANLIB="ranlib"
6456 break
6457 fi
6458 done
6459 IFS="$ac_save_ifs"
6460 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6461 fi
6462 fi
6463 RANLIB="$ac_cv_prog_RANLIB"
6464 if test -n "$RANLIB"; then
6465 echo "$ac_t""$RANLIB" 1>&6
6466 else
6467 echo "$ac_t""no" 1>&6
6468 fi
6469
6470
6471 # Extract the first word of "ar", so it can be a program name with args.
6472 set dummy ar; ac_word=$2
6473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6474 echo "configure:6475: checking for $ac_word" >&5
6475 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6476 echo $ac_n "(cached) $ac_c" 1>&6
6477 else
6478 if test -n "$AR"; then
6479 ac_cv_prog_AR="$AR" # Let the user override the test.
6480 else
6481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6482 ac_dummy="$PATH"
6483 for ac_dir in $ac_dummy; do
6484 test -z "$ac_dir" && ac_dir=.
6485 if test -f $ac_dir/$ac_word; then
6486 ac_cv_prog_AR="ar"
6487 break
6488 fi
6489 done
6490 IFS="$ac_save_ifs"
6491 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6492 fi
6493 fi
6494 AR="$ac_cv_prog_AR"
6495 if test -n "$AR"; then
6496 echo "$ac_t""$AR" 1>&6
6497 else
6498 echo "$ac_t""no" 1>&6
6499 fi
6500
6501
6502 # Find a good install program. We prefer a C program (faster),
6503 # so one script is as good as another. But avoid the broken or
6504 # incompatible versions:
6505 # SysV /etc/install, /usr/sbin/install
6506 # SunOS /usr/etc/install
6507 # IRIX /sbin/install
6508 # AIX /bin/install
6509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6512 # ./install, which can be erroneously created by make from ./install.sh.
6513 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6514 echo "configure:6515: checking for a BSD compatible install" >&5
6515 if test -z "$INSTALL"; then
6516 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6517 echo $ac_n "(cached) $ac_c" 1>&6
6518 else
6519 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6520 for ac_dir in $PATH; do
6521 # Account for people who put trailing slashes in PATH elements.
6522 case "$ac_dir/" in
6523 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6524 *)
6525 # OSF1 and SCO ODT 3.0 have their own names for install.
6526 # Don't use installbsd from OSF since it installs stuff as root
6527 # by default.
6528 for ac_prog in ginstall scoinst install; do
6529 if test -f $ac_dir/$ac_prog; then
6530 if test $ac_prog = install &&
6531 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6532 # AIX install. It has an incompatible calling convention.
6533 :
6534 else
6535 ac_cv_path_install="$ac_dir/$ac_prog -c"
6536 break 2
6537 fi
6538 fi
6539 done
6540 ;;
6541 esac
6542 done
6543 IFS="$ac_save_IFS"
6544
6545 fi
6546 if test "${ac_cv_path_install+set}" = set; then
6547 INSTALL="$ac_cv_path_install"
6548 else
6549 # As a last resort, use the slow shell script. We don't cache a
6550 # path for INSTALL within a source directory, because that will
6551 # break other packages using the cache if that directory is
6552 # removed, or if the path is relative.
6553 INSTALL="$ac_install_sh"
6554 fi
6555 fi
6556 echo "$ac_t""$INSTALL" 1>&6
6557
6558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6559 # It thinks the first close brace ends the variable substitution.
6560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6561
6562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6563
6564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6565
6566
6567 # Extract the first word of "strip", so it can be a program name with args.
6568 set dummy strip; ac_word=$2
6569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6570 echo "configure:6571: checking for $ac_word" >&5
6571 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6573 else
6574 if test -n "$STRIP"; then
6575 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6576 else
6577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6578 ac_dummy="$PATH"
6579 for ac_dir in $ac_dummy; do
6580 test -z "$ac_dir" && ac_dir=.
6581 if test -f $ac_dir/$ac_word; then
6582 ac_cv_prog_STRIP="strip"
6583 break
6584 fi
6585 done
6586 IFS="$ac_save_ifs"
6587 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6588 fi
6589 fi
6590 STRIP="$ac_cv_prog_STRIP"
6591 if test -n "$STRIP"; then
6592 echo "$ac_t""$STRIP" 1>&6
6593 else
6594 echo "$ac_t""no" 1>&6
6595 fi
6596
6597
6598 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6599 echo "configure:6600: checking "make for VPATH support"" >&5
6600 cat - << EOF > confMake
6601 check : file
6602 cp \$? \$@
6603 cp \$? final_file
6604 EOF
6605
6606 if test ! -d sub ; then
6607 mkdir sub
6608 fi
6609 echo dummy > sub/file
6610 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6611 RESULT=$?
6612 rm -f sub/file check final_file confMake
6613 rmdir sub
6614 if test "$RESULT" = 0; then
6615 echo "$ac_t""yes" 1>&6
6616 else
6617 echo "$ac_t""no" 1>&6
6618 { echo "configure: error: You need a make-utility that is able to use the variable
6619 VPATH correctly.
6620 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6621 fi
6622
6623 for ac_prog in 'bison -y' byacc
6624 do
6625 # Extract the first word of "$ac_prog", so it can be a program name with args.
6626 set dummy $ac_prog; ac_word=$2
6627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6628 echo "configure:6629: checking for $ac_word" >&5
6629 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6630 echo $ac_n "(cached) $ac_c" 1>&6
6631 else
6632 if test -n "$YACC"; then
6633 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6634 else
6635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6636 ac_dummy="$PATH"
6637 for ac_dir in $ac_dummy; do
6638 test -z "$ac_dir" && ac_dir=.
6639 if test -f $ac_dir/$ac_word; then
6640 ac_cv_prog_YACC="$ac_prog"
6641 break
6642 fi
6643 done
6644 IFS="$ac_save_ifs"
6645 fi
6646 fi
6647 YACC="$ac_cv_prog_YACC"
6648 if test -n "$YACC"; then
6649 echo "$ac_t""$YACC" 1>&6
6650 else
6651 echo "$ac_t""no" 1>&6
6652 fi
6653
6654 test -n "$YACC" && break
6655 done
6656 test -n "$YACC" || YACC="yacc"
6657
6658
6659 # Extract the first word of "flex", so it can be a program name with args.
6660 set dummy flex; ac_word=$2
6661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6662 echo "configure:6663: checking for $ac_word" >&5
6663 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6665 else
6666 if test -n "$LEX"; then
6667 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6668 else
6669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6670 ac_dummy="$PATH"
6671 for ac_dir in $ac_dummy; do
6672 test -z "$ac_dir" && ac_dir=.
6673 if test -f $ac_dir/$ac_word; then
6674 ac_cv_prog_LEX="flex"
6675 break
6676 fi
6677 done
6678 IFS="$ac_save_ifs"
6679 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6680 fi
6681 fi
6682 LEX="$ac_cv_prog_LEX"
6683 if test -n "$LEX"; then
6684 echo "$ac_t""$LEX" 1>&6
6685 else
6686 echo "$ac_t""no" 1>&6
6687 fi
6688
6689 if test -z "$LEXLIB"
6690 then
6691 case "$LEX" in
6692 flex*) ac_lib=fl ;;
6693 *) ac_lib=l ;;
6694 esac
6695 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6696 echo "configure:6697: checking for yywrap in -l$ac_lib" >&5
6697 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6699 echo $ac_n "(cached) $ac_c" 1>&6
6700 else
6701 ac_save_LIBS="$LIBS"
6702 LIBS="-l$ac_lib $LIBS"
6703 cat > conftest.$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6706 /* Override any gcc2 internal prototype to avoid an error. */
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6709 char yywrap();
6710
6711 int main() {
6712 yywrap()
6713 ; return 0; }
6714 EOF
6715 if { (eval echo configure:6716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6716 rm -rf conftest*
6717 eval "ac_cv_lib_$ac_lib_var=yes"
6718 else
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 rm -rf conftest*
6722 eval "ac_cv_lib_$ac_lib_var=no"
6723 fi
6724 rm -f conftest*
6725 LIBS="$ac_save_LIBS"
6726
6727 fi
6728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6729 echo "$ac_t""yes" 1>&6
6730 LEXLIB="-l$ac_lib"
6731 else
6732 echo "$ac_t""no" 1>&6
6733 fi
6734
6735 fi
6736
6737
6738 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6739 echo "configure:6740: checking whether ln -s works" >&5
6740 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6742 else
6743 rm -f conftestdata
6744 if ln -s X conftestdata 2>/dev/null
6745 then
6746 rm -f conftestdata
6747 ac_cv_prog_LN_S="ln -s"
6748 else
6749 ac_cv_prog_LN_S=ln
6750 fi
6751 fi
6752 LN_S="$ac_cv_prog_LN_S"
6753 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6754 echo "$ac_t""yes" 1>&6
6755 else
6756 echo "$ac_t""no" 1>&6
6757 fi
6758
6759
6760
6761 SEARCH_INCLUDE="\
6762 /usr/local/include \
6763 \
6764 /usr/Motif-1.2/include \
6765 /usr/Motif-2.1/include \
6766 \
6767 /usr/include/Motif1.2 \
6768 /opt/xpm/include/X11 \
6769 /opt/GBxpm/include/ \
6770 /opt/GBxpm/X11/include/ \
6771 \
6772 /usr/Motif1.2/include \
6773 /usr/dt/include \
6774 /usr/openwin/include \
6775 \
6776 /usr/include/Xm \
6777 \
6778 /usr/X11R6/include \
6779 /usr/X11R6.4/include \
6780 /usr/X11R5/include \
6781 /usr/X11R4/include \
6782 \
6783 /usr/include/X11R6 \
6784 /usr/include/X11R5 \
6785 /usr/include/X11R4 \
6786 \
6787 /usr/local/X11R6/include \
6788 /usr/local/X11R5/include \
6789 /usr/local/X11R4/include \
6790 \
6791 /usr/local/include/X11R6 \
6792 /usr/local/include/X11R5 \
6793 /usr/local/include/X11R4 \
6794 \
6795 /usr/X11/include \
6796 /usr/include/X11 \
6797 /usr/local/X11/include \
6798 /usr/local/include/X11 \
6799 \
6800 /usr/X386/include \
6801 /usr/x386/include \
6802 /usr/XFree86/include/X11 \
6803 \
6804 X:/XFree86/include \
6805 X:/XFree86/include/X11 \
6806 \
6807 /usr/include/gtk \
6808 /usr/local/include/gtk \
6809 /usr/include/glib \
6810 /usr/local/include/glib \
6811 \
6812 /usr/include/qt \
6813 /usr/local/include/qt \
6814 \
6815 /usr/include/windows \
6816 /usr/include/wine \
6817 /usr/local/include/wine \
6818 \
6819 /usr/unsupported/include \
6820 /usr/athena/include \
6821 /usr/local/x11r5/include \
6822 /usr/lpp/Xamples/include \
6823 \
6824 /usr/openwin/share/include \
6825 \
6826 /usr/include"
6827
6828 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6829
6830
6831 cat > confcache <<\EOF
6832 # This file is a shell script that caches the results of configure
6833 # tests run on this system so they can be shared between configure
6834 # scripts and configure runs. It is not useful on other systems.
6835 # If it contains results you don't want to keep, you may remove or edit it.
6836 #
6837 # By default, configure uses ./config.cache as the cache file,
6838 # creating it if it does not exist already. You can give configure
6839 # the --cache-file=FILE option to use a different cache file; that is
6840 # what configure does when it calls configure scripts in
6841 # subdirectories, so they share the cache.
6842 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6843 # config.status only pays attention to the cache file if you give it the
6844 # --recheck option to rerun configure.
6845 #
6846 EOF
6847 # The following way of writing the cache mishandles newlines in values,
6848 # but we know of no workaround that is simple, portable, and efficient.
6849 # So, don't put newlines in cache variables' values.
6850 # Ultrix sh set writes to stderr and can't be redirected directly,
6851 # and sets the high bit in the cache file unless we assign to the vars.
6852 (set) 2>&1 |
6853 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6854 *ac_space=\ *)
6855 # `set' does not quote correctly, so add quotes (double-quote substitution
6856 # turns \\\\ into \\, and sed turns \\ into \).
6857 sed -n \
6858 -e "s/'/'\\\\''/g" \
6859 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6860 ;;
6861 *)
6862 # `set' quotes correctly as required by POSIX, so do not add quotes.
6863 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6864 ;;
6865 esac >> confcache
6866 if cmp -s $cache_file confcache; then
6867 :
6868 else
6869 if test -w $cache_file; then
6870 echo "updating cache $cache_file"
6871 cat confcache > $cache_file
6872 else
6873 echo "not updating unwritable cache $cache_file"
6874 fi
6875 fi
6876 rm -f confcache
6877
6878
6879
6880 AFMINSTALL=
6881
6882 if test "$wxUSE_GUI" = "yes"; then
6883
6884 USE_GUI=1
6885
6886 TOOLKIT=
6887 TOOLKIT_INCLUDE=
6888
6889 GUIOBJS=
6890 COMMONOBJS=
6891 GENERICOBJS=
6892
6893 GUI_TK_LIBRARY=
6894 GUI_TK_LINK=
6895
6896 WXGTK12=
6897 WXGTK13=
6898
6899 WXWINE=
6900
6901 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6902 if test "$cross_compiling" = "yes" ; then
6903 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6904 else
6905 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6906 echo "configure:6907: checking for Windows headers" >&5
6907
6908 ac_find_includes=
6909 for ac_dir in $SEARCH_INCLUDE;
6910 do
6911 if test -f "$ac_dir/windows.h"; then
6912 ac_find_includes=$ac_dir
6913 break
6914 fi
6915 done
6916
6917 if test "$ac_find_includes" != "" ; then
6918 echo "$ac_t""found $ac_find_includes" 1>&6
6919 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6920 else
6921 echo "$ac_t""no" 1>&6
6922 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6923 fi
6924 fi
6925
6926 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6927 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6928
6929 if test "$wxUSE_MINGW" = 1; then
6930 LDFLAGS="$LDFLAGS -mwindows"
6931 fi
6932
6933 TOOLKIT=MSW
6934
6935 GUIOBJS="\$(MSW_GUIOBJS)"
6936 GUIHEADERS="\$(MSW_HEADERS)"
6937 COMMONOBJS="\$(MSW_COMMONOBJS)"
6938 GENERICOBJS="\$(MSW_GENERICOBJS)"
6939 UNIXOBJS=
6940 GUIDIST=MSW_DIST
6941 fi
6942
6943 if test "$wxUSE_GTK" = 1; then
6944
6945 if test x$gtk_config_exec_prefix != x ; then
6946 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6947 if test x${GTK_CONFIG+set} != xset ; then
6948 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6949 fi
6950 fi
6951 if test x$gtk_config_prefix != x ; then
6952 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6953 if test x${GTK_CONFIG+set} != xset ; then
6954 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6955 fi
6956 fi
6957
6958 # Extract the first word of "gtk-config", so it can be a program name with args.
6959 set dummy gtk-config; ac_word=$2
6960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6961 echo "configure:6962: checking for $ac_word" >&5
6962 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6964 else
6965 case "$GTK_CONFIG" in
6966 /*)
6967 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6968 ;;
6969 ?:/*)
6970 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6971 ;;
6972 *)
6973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6974 ac_dummy="$PATH"
6975 for ac_dir in $ac_dummy; do
6976 test -z "$ac_dir" && ac_dir=.
6977 if test -f $ac_dir/$ac_word; then
6978 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6979 break
6980 fi
6981 done
6982 IFS="$ac_save_ifs"
6983 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6984 ;;
6985 esac
6986 fi
6987 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6988 if test -n "$GTK_CONFIG"; then
6989 echo "$ac_t""$GTK_CONFIG" 1>&6
6990 else
6991 echo "$ac_t""no" 1>&6
6992 fi
6993
6994 min_gtk_version=1.2.3
6995 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6996 echo "configure:6997: checking for GTK - version >= $min_gtk_version" >&5
6997 no_gtk=""
6998 if test "$GTK_CONFIG" != "no" ; then
6999 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7000 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7001 ac_save_CFLAGS="$CFLAGS"
7002 ac_save_LIBS="$LIBS"
7003 CFLAGS="$CFLAGS $GTK_CFLAGS"
7004 LIBS="$LIBS $GTK_LIBS"
7005 if test "$cross_compiling" = yes; then
7006 echo $ac_n "cross compiling; assumed OK... $ac_c"
7007 else
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011
7012 #include <gtk/gtk.h>
7013 #include <gtk/gtkfeatures.h>
7014 #include <stdio.h>
7015
7016 int
7017 main ()
7018 {
7019 int major, minor, micro;
7020
7021 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7022 printf("%s, bad version string\n", "$min_gtk_version");
7023 exit(1);
7024 }
7025
7026 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7027 (GTK_MINOR_VERSION != gtk_minor_version) ||
7028 (GTK_MICRO_VERSION != gtk_micro_version)) {
7029 printf("Headers vs. library version mismatch!\n");
7030 exit(1);
7031 }
7032
7033 if (gtk_minor_version == 1) return FALSE;
7034
7035 return !((gtk_major_version > major) ||
7036 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7037 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7038 }
7039
7040 EOF
7041 if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7042 then
7043 :
7044 else
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 rm -fr conftest*
7048 no_gtk=yes
7049 fi
7050 rm -fr conftest*
7051 fi
7052
7053 CFLAGS="$ac_save_CFLAGS"
7054 LIBS="$ac_save_LIBS"
7055 else
7056 no_gtk=yes
7057 fi
7058 if test "x$no_gtk" = x ; then
7059 echo "$ac_t""yes" 1>&6
7060 WXGTK12=1
7061 else
7062 echo "$ac_t""no" 1>&6
7063 GTK_CFLAGS=""
7064 GTK_LIBS=""
7065 :
7066 fi
7067
7068
7069
7070
7071 if test "$WXGTK12" != 1; then
7072 { echo "configure: error:
7073 Please check that gtk-config is in path, the directory
7074 where GTK+ libraries are installed (returned by
7075 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7076 equivalent variable and GTK+ is version 1.2.3 or above.
7077 " 1>&2; exit 1; }
7078 fi
7079
7080
7081 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7082
7083
7084 GUI_TK_LIBRARY="$GTK_LIBS"
7085
7086 TOOLKIT=GTK
7087
7088 AFMINSTALL=afminstall
7089
7090 GUIOBJS="\$(GTK_GUIOBJS)"
7091 GUIHEADERS="\$(GTK_HEADERS)"
7092 COMMONOBJS="\$(GTK_COMMONOBJS)"
7093 GENERICOBJS="\$(GTK_GENERICOBJS)"
7094 GUIDEPS="\$(GTK_GUIDEPS)"
7095 COMMONDEPS="\$(GTK_COMMONDEPS)"
7096 GENERICDEPS="\$(GTK_GENERICDEPS)"
7097 UNIXOBJS="\$(UNIX_OBJS)"
7098 UNIXDEPS="\$(UNIX_DEPS)"
7099 GUIDIST=GTK_DIST
7100
7101 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7102 echo "configure:7103: checking for gdk_im_open in -lgdk" >&5
7103 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7105 echo $ac_n "(cached) $ac_c" 1>&6
7106 else
7107 ac_save_LIBS="$LIBS"
7108 LIBS="-lgdk $LIBS"
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 /* Override any gcc2 internal prototype to avoid an error. */
7113 /* We use char because int might match the return type of a gcc2
7114 builtin and then its argument prototype would still apply. */
7115 char gdk_im_open();
7116
7117 int main() {
7118 gdk_im_open()
7119 ; return 0; }
7120 EOF
7121 if { (eval echo configure:7122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7122 rm -rf conftest*
7123 eval "ac_cv_lib_$ac_lib_var=yes"
7124 else
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7127 rm -rf conftest*
7128 eval "ac_cv_lib_$ac_lib_var=no"
7129 fi
7130 rm -f conftest*
7131 LIBS="$ac_save_LIBS"
7132
7133 fi
7134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7135 echo "$ac_t""yes" 1>&6
7136 cat >> confdefs.h <<\EOF
7137 #define HAVE_XIM 1
7138 EOF
7139
7140 else
7141 echo "$ac_t""no" 1>&6
7142 fi
7143
7144 fi
7145
7146 if test "$wxUSE_WINE" = 1; then
7147 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7148 echo "configure:7149: checking for WINE includes" >&5
7149
7150 ac_find_includes=
7151 for ac_dir in $SEARCH_INCLUDE;
7152 do
7153 if test -f "$ac_dir/windows.h"; then
7154 ac_find_includes=$ac_dir
7155 break
7156 fi
7157 done
7158
7159 if test "$ac_find_includes" != "" ; then
7160 echo "$ac_t""found $ac_find_includes" 1>&6
7161 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7162 else
7163 echo "$ac_t""no" 1>&6
7164 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7165 fi
7166
7167 XPM_LINK=""
7168 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7169 echo "configure:7170: checking for Xpm library" >&5
7170
7171 ac_find_libraries=
7172 for ac_dir in $SEARCH_LIB;
7173 do
7174 for ac_extension in a so sl; do
7175 if test -f "$ac_dir/libXpm.$ac_extension"; then
7176 ac_find_libraries=$ac_dir
7177 break 2
7178 fi
7179 done
7180 done
7181
7182 if test "$ac_find_libraries" != "" ; then
7183 GUI_TK_LIBRARY="-L$ac_find_libraries"
7184 XPM_LINK="-lXpm"
7185 cat >> confdefs.h <<\EOF
7186 #define wxHAVE_LIB_XPM 1
7187 EOF
7188
7189 echo "$ac_t""found at $ac_find_libraries" 1>&6
7190 else
7191 echo "$ac_t""no" 1>&6
7192 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7193 fi
7194
7195 MESA_LINK=""
7196 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7197 echo "configure:7198: checking for Mesa library" >&5
7198
7199 ac_find_libraries=
7200 for ac_dir in $SEARCH_LIB;
7201 do
7202 for ac_extension in a so sl; do
7203 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7204 ac_find_libraries=$ac_dir
7205 break 2
7206 fi
7207 done
7208 done
7209
7210 if test "$ac_find_libraries" != "" ; then
7211 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7212 MESA_LINK="-lMesaGL"
7213 echo "$ac_t""found at $ac_find_libraries" 1>&6
7214 else
7215 { echo "configure: error: no" 1>&2; exit 1; }
7216 fi
7217
7218 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7219 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7220 WXWINE=1
7221 TOOLKIT=MSW
7222
7223 GUIHEADERS="\$(MSW_HEADERS)"
7224 GUIOBJS="\$(MSW_GUIOBJS)"
7225 COMMONOBJS="\$(MSW_COMMONOBJS)"
7226 GENERICOBJS="\$(MSW_GENERICOBJS)"
7227 GUIDEPS="\$(MSW_GUIDEPS)"
7228 COMMONDEPS="\$(MSW_COMMONDEPS)"
7229 GENERICDEPS="\$(MSW_GENERICDEPS)"
7230 UNIXOBJS="\$(UNIX_OBJS)"
7231 UNIXDEPS="\$(UNIX_DEPS)"
7232 GUIDIST=MSW_DIST
7233 fi
7234
7235 if test "$wxUSE_MOTIF" = 1; then
7236 # If we find X, set shell vars x_includes and x_libraries to the
7237 # paths, otherwise set no_x=yes.
7238 # Uses ac_ vars as temps to allow command line to override cache and checks.
7239 # --without-x overrides everything else, but does not touch the cache.
7240 echo $ac_n "checking for X""... $ac_c" 1>&6
7241 echo "configure:7242: checking for X" >&5
7242
7243 # Check whether --with-x or --without-x was given.
7244 if test "${with_x+set}" = set; then
7245 withval="$with_x"
7246 :
7247 fi
7248
7249 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7250 if test "x$with_x" = xno; then
7251 # The user explicitly disabled X.
7252 have_x=disabled
7253 else
7254 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7255 # Both variables are already set.
7256 have_x=yes
7257 else
7258 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7260 else
7261 # One or both of the vars are not set, and there is no cached value.
7262 ac_x_includes=NO ac_x_libraries=NO
7263 rm -fr conftestdir
7264 if mkdir conftestdir; then
7265 cd conftestdir
7266 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7267 cat > Imakefile <<'EOF'
7268 acfindx:
7269 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7270 EOF
7271 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7272 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7273 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7274 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7275 for ac_extension in a so sl; do
7276 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7277 test -f $ac_im_libdir/libX11.$ac_extension; then
7278 ac_im_usrlibdir=$ac_im_libdir; break
7279 fi
7280 done
7281 # Screen out bogus values from the imake configuration. They are
7282 # bogus both because they are the default anyway, and because
7283 # using them would break gcc on systems where it needs fixed includes.
7284 case "$ac_im_incroot" in
7285 /usr/include) ;;
7286 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7287 esac
7288 case "$ac_im_usrlibdir" in
7289 /usr/lib | /lib) ;;
7290 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7291 esac
7292 fi
7293 cd ..
7294 rm -fr conftestdir
7295 fi
7296
7297 if test "$ac_x_includes" = NO; then
7298 # Guess where to find include files, by looking for this one X11 .h file.
7299 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7300
7301 # First, try using that file with no special directory specified.
7302 cat > conftest.$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7305 #include <$x_direct_test_include>
7306 EOF
7307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7308 { (eval echo configure:7309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7310 if test -z "$ac_err"; then
7311 rm -rf conftest*
7312 # We can compile using X headers with no special include directory.
7313 ac_x_includes=
7314 else
7315 echo "$ac_err" >&5
7316 echo "configure: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7318 rm -rf conftest*
7319 # Look for the header file in a standard set of common directories.
7320 # Check X11 before X11Rn because it is often a symlink to the current release.
7321 for ac_dir in \
7322 /usr/X11/include \
7323 /usr/X11R6/include \
7324 /usr/X11R5/include \
7325 /usr/X11R4/include \
7326 \
7327 /usr/include/X11 \
7328 /usr/include/X11R6 \
7329 /usr/include/X11R5 \
7330 /usr/include/X11R4 \
7331 \
7332 /usr/local/X11/include \
7333 /usr/local/X11R6/include \
7334 /usr/local/X11R5/include \
7335 /usr/local/X11R4/include \
7336 \
7337 /usr/local/include/X11 \
7338 /usr/local/include/X11R6 \
7339 /usr/local/include/X11R5 \
7340 /usr/local/include/X11R4 \
7341 \
7342 /usr/X386/include \
7343 /usr/x386/include \
7344 /usr/XFree86/include/X11 \
7345 \
7346 /usr/include \
7347 /usr/local/include \
7348 /usr/unsupported/include \
7349 /usr/athena/include \
7350 /usr/local/x11r5/include \
7351 /usr/lpp/Xamples/include \
7352 \
7353 /usr/openwin/include \
7354 /usr/openwin/share/include \
7355 ; \
7356 do
7357 if test -r "$ac_dir/$x_direct_test_include"; then
7358 ac_x_includes=$ac_dir
7359 break
7360 fi
7361 done
7362 fi
7363 rm -f conftest*
7364 fi # $ac_x_includes = NO
7365
7366 if test "$ac_x_libraries" = NO; then
7367 # Check for the libraries.
7368
7369 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7370 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7371
7372 # See if we find them without any special options.
7373 # Don't add to $LIBS permanently.
7374 ac_save_LIBS="$LIBS"
7375 LIBS="-l$x_direct_test_library $LIBS"
7376 cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379
7380 int main() {
7381 ${x_direct_test_function}()
7382 ; return 0; }
7383 EOF
7384 if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7385 rm -rf conftest*
7386 LIBS="$ac_save_LIBS"
7387 # We can link X programs with no special library path.
7388 ac_x_libraries=
7389 else
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7392 rm -rf conftest*
7393 LIBS="$ac_save_LIBS"
7394 # First see if replacing the include by lib works.
7395 # Check X11 before X11Rn because it is often a symlink to the current release.
7396 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7397 /usr/X11/lib \
7398 /usr/X11R6/lib \
7399 /usr/X11R5/lib \
7400 /usr/X11R4/lib \
7401 \
7402 /usr/lib/X11 \
7403 /usr/lib/X11R6 \
7404 /usr/lib/X11R5 \
7405 /usr/lib/X11R4 \
7406 \
7407 /usr/local/X11/lib \
7408 /usr/local/X11R6/lib \
7409 /usr/local/X11R5/lib \
7410 /usr/local/X11R4/lib \
7411 \
7412 /usr/local/lib/X11 \
7413 /usr/local/lib/X11R6 \
7414 /usr/local/lib/X11R5 \
7415 /usr/local/lib/X11R4 \
7416 \
7417 /usr/X386/lib \
7418 /usr/x386/lib \
7419 /usr/XFree86/lib/X11 \
7420 \
7421 /usr/lib \
7422 /usr/local/lib \
7423 /usr/unsupported/lib \
7424 /usr/athena/lib \
7425 /usr/local/x11r5/lib \
7426 /usr/lpp/Xamples/lib \
7427 /lib/usr/lib/X11 \
7428 \
7429 /usr/openwin/lib \
7430 /usr/openwin/share/lib \
7431 ; \
7432 do
7433 for ac_extension in a so sl; do
7434 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7435 ac_x_libraries=$ac_dir
7436 break 2
7437 fi
7438 done
7439 done
7440 fi
7441 rm -f conftest*
7442 fi # $ac_x_libraries = NO
7443
7444 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7445 # Didn't find X anywhere. Cache the known absence of X.
7446 ac_cv_have_x="have_x=no"
7447 else
7448 # Record where we found X for the cache.
7449 ac_cv_have_x="have_x=yes \
7450 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7451 fi
7452 fi
7453 fi
7454 eval "$ac_cv_have_x"
7455 fi # $with_x != no
7456
7457 if test "$have_x" != yes; then
7458 echo "$ac_t""$have_x" 1>&6
7459 no_x=yes
7460 else
7461 # If each of the values was on the command line, it overrides each guess.
7462 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7463 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7464 # Update the cache value to reflect the command line values.
7465 ac_cv_have_x="have_x=yes \
7466 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7467 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7468 fi
7469
7470 if test "$no_x" = yes; then
7471 # Not all programs may use this symbol, but it does not hurt to define it.
7472 cat >> confdefs.h <<\EOF
7473 #define X_DISPLAY_MISSING 1
7474 EOF
7475
7476 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7477 else
7478 if test -n "$x_includes"; then
7479 X_CFLAGS="$X_CFLAGS -I$x_includes"
7480 fi
7481
7482 # It would also be nice to do this for all -L options, not just this one.
7483 if test -n "$x_libraries"; then
7484 X_LIBS="$X_LIBS -L$x_libraries"
7485 # For Solaris; some versions of Sun CC require a space after -R and
7486 # others require no space. Words are not sufficient . . . .
7487 case "`(uname -sr) 2>/dev/null`" in
7488 "SunOS 5"*)
7489 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7490 echo "configure:7491: checking whether -R must be followed by a space" >&5
7491 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7492 cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495
7496 int main() {
7497
7498 ; return 0; }
7499 EOF
7500 if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7501 rm -rf conftest*
7502 ac_R_nospace=yes
7503 else
7504 echo "configure: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 rm -rf conftest*
7507 ac_R_nospace=no
7508 fi
7509 rm -f conftest*
7510 if test $ac_R_nospace = yes; then
7511 echo "$ac_t""no" 1>&6
7512 X_LIBS="$X_LIBS -R$x_libraries"
7513 else
7514 LIBS="$ac_xsave_LIBS -R $x_libraries"
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518
7519 int main() {
7520
7521 ; return 0; }
7522 EOF
7523 if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7524 rm -rf conftest*
7525 ac_R_space=yes
7526 else
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 rm -rf conftest*
7530 ac_R_space=no
7531 fi
7532 rm -f conftest*
7533 if test $ac_R_space = yes; then
7534 echo "$ac_t""yes" 1>&6
7535 X_LIBS="$X_LIBS -R $x_libraries"
7536 else
7537 echo "$ac_t""neither works" 1>&6
7538 fi
7539 fi
7540 LIBS="$ac_xsave_LIBS"
7541 esac
7542 fi
7543
7544 # Check for system-dependent libraries X programs must link with.
7545 # Do this before checking for the system-independent R6 libraries
7546 # (-lICE), since we may need -lsocket or whatever for X linking.
7547
7548 if test "$ISC" = yes; then
7549 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7550 else
7551 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7552 # libraries were built with DECnet support. And karl@cs.umb.edu says
7553 # the Alpha needs dnet_stub (dnet does not exist).
7554 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7555 echo "configure:7556: checking for dnet_ntoa in -ldnet" >&5
7556 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7559 else
7560 ac_save_LIBS="$LIBS"
7561 LIBS="-ldnet $LIBS"
7562 cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7568 char dnet_ntoa();
7569
7570 int main() {
7571 dnet_ntoa()
7572 ; return 0; }
7573 EOF
7574 if { (eval echo configure:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7575 rm -rf conftest*
7576 eval "ac_cv_lib_$ac_lib_var=yes"
7577 else
7578 echo "configure: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7580 rm -rf conftest*
7581 eval "ac_cv_lib_$ac_lib_var=no"
7582 fi
7583 rm -f conftest*
7584 LIBS="$ac_save_LIBS"
7585
7586 fi
7587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7589 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7590 else
7591 echo "$ac_t""no" 1>&6
7592 fi
7593
7594 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7595 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7596 echo "configure:7597: checking for dnet_ntoa in -ldnet_stub" >&5
7597 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7600 else
7601 ac_save_LIBS="$LIBS"
7602 LIBS="-ldnet_stub $LIBS"
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7606 /* Override any gcc2 internal prototype to avoid an error. */
7607 /* We use char because int might match the return type of a gcc2
7608 builtin and then its argument prototype would still apply. */
7609 char dnet_ntoa();
7610
7611 int main() {
7612 dnet_ntoa()
7613 ; return 0; }
7614 EOF
7615 if { (eval echo configure:7616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7616 rm -rf conftest*
7617 eval "ac_cv_lib_$ac_lib_var=yes"
7618 else
7619 echo "configure: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7621 rm -rf conftest*
7622 eval "ac_cv_lib_$ac_lib_var=no"
7623 fi
7624 rm -f conftest*
7625 LIBS="$ac_save_LIBS"
7626
7627 fi
7628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7629 echo "$ac_t""yes" 1>&6
7630 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7631 else
7632 echo "$ac_t""no" 1>&6
7633 fi
7634
7635 fi
7636
7637 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7638 # to get the SysV transport functions.
7639 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7640 # needs -lnsl.
7641 # The nsl library prevents programs from opening the X display
7642 # on Irix 5.2, according to dickey@clark.net.
7643 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7644 echo "configure:7645: checking for gethostbyname" >&5
7645 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7646 echo $ac_n "(cached) $ac_c" 1>&6
7647 else
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7651 /* System header to define __stub macros and hopefully few prototypes,
7652 which can conflict with char gethostbyname(); below. */
7653 #include <assert.h>
7654 /* Override any gcc2 internal prototype to avoid an error. */
7655 /* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657 char gethostbyname();
7658 char (*f)();
7659
7660 int main() {
7661
7662 /* The GNU C library defines this for functions which it implements
7663 to always fail with ENOSYS. Some functions are actually named
7664 something starting with __ and the normal name is an alias. */
7665 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7666 choke me
7667 #else
7668 f = gethostbyname;
7669 #endif
7670
7671 ; return 0; }
7672 EOF
7673 if { (eval echo configure:7674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7674 rm -rf conftest*
7675 eval "ac_cv_func_gethostbyname=yes"
7676 else
7677 echo "configure: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 rm -rf conftest*
7680 eval "ac_cv_func_gethostbyname=no"
7681 fi
7682 rm -f conftest*
7683 fi
7684
7685 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7686 echo "$ac_t""yes" 1>&6
7687 :
7688 else
7689 echo "$ac_t""no" 1>&6
7690 fi
7691
7692 if test $ac_cv_func_gethostbyname = no; then
7693 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7694 echo "configure:7695: checking for gethostbyname in -lnsl" >&5
7695 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7698 else
7699 ac_save_LIBS="$LIBS"
7700 LIBS="-lnsl $LIBS"
7701 cat > conftest.$ac_ext <<EOF
7702 #line 7703 "configure"
7703 #include "confdefs.h"
7704 /* Override any gcc2 internal prototype to avoid an error. */
7705 /* We use char because int might match the return type of a gcc2
7706 builtin and then its argument prototype would still apply. */
7707 char gethostbyname();
7708
7709 int main() {
7710 gethostbyname()
7711 ; return 0; }
7712 EOF
7713 if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7714 rm -rf conftest*
7715 eval "ac_cv_lib_$ac_lib_var=yes"
7716 else
7717 echo "configure: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7719 rm -rf conftest*
7720 eval "ac_cv_lib_$ac_lib_var=no"
7721 fi
7722 rm -f conftest*
7723 LIBS="$ac_save_LIBS"
7724
7725 fi
7726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7729 else
7730 echo "$ac_t""no" 1>&6
7731 fi
7732
7733 fi
7734
7735 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7736 # socket/setsockopt and other routines are undefined under SCO ODT
7737 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7738 # on later versions), says simon@lia.di.epfl.ch: it contains
7739 # gethostby* variants that don't use the nameserver (or something).
7740 # -lsocket must be given before -lnsl if both are needed.
7741 # We assume that if connect needs -lnsl, so does gethostbyname.
7742 echo $ac_n "checking for connect""... $ac_c" 1>&6
7743 echo "configure:7744: checking for connect" >&5
7744 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7746 else
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7750 /* System header to define __stub macros and hopefully few prototypes,
7751 which can conflict with char connect(); below. */
7752 #include <assert.h>
7753 /* Override any gcc2 internal prototype to avoid an error. */
7754 /* We use char because int might match the return type of a gcc2
7755 builtin and then its argument prototype would still apply. */
7756 char connect();
7757 char (*f)();
7758
7759 int main() {
7760
7761 /* The GNU C library defines this for functions which it implements
7762 to always fail with ENOSYS. Some functions are actually named
7763 something starting with __ and the normal name is an alias. */
7764 #if defined (__stub_connect) || defined (__stub___connect)
7765 choke me
7766 #else
7767 f = connect;
7768 #endif
7769
7770 ; return 0; }
7771 EOF
7772 if { (eval echo configure:7773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7773 rm -rf conftest*
7774 eval "ac_cv_func_connect=yes"
7775 else
7776 echo "configure: failed program was:" >&5
7777 cat conftest.$ac_ext >&5
7778 rm -rf conftest*
7779 eval "ac_cv_func_connect=no"
7780 fi
7781 rm -f conftest*
7782 fi
7783
7784 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7785 echo "$ac_t""yes" 1>&6
7786 :
7787 else
7788 echo "$ac_t""no" 1>&6
7789 fi
7790
7791 if test $ac_cv_func_connect = no; then
7792 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7793 echo "configure:7794: checking for connect in -lsocket" >&5
7794 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7797 else
7798 ac_save_LIBS="$LIBS"
7799 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7803 /* Override any gcc2 internal prototype to avoid an error. */
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7806 char connect();
7807
7808 int main() {
7809 connect()
7810 ; return 0; }
7811 EOF
7812 if { (eval echo configure:7813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7813 rm -rf conftest*
7814 eval "ac_cv_lib_$ac_lib_var=yes"
7815 else
7816 echo "configure: failed program was:" >&5
7817 cat conftest.$ac_ext >&5
7818 rm -rf conftest*
7819 eval "ac_cv_lib_$ac_lib_var=no"
7820 fi
7821 rm -f conftest*
7822 LIBS="$ac_save_LIBS"
7823
7824 fi
7825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7826 echo "$ac_t""yes" 1>&6
7827 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7828 else
7829 echo "$ac_t""no" 1>&6
7830 fi
7831
7832 fi
7833
7834 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7835 echo $ac_n "checking for remove""... $ac_c" 1>&6
7836 echo "configure:7837: checking for remove" >&5
7837 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7839 else
7840 cat > conftest.$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7843 /* System header to define __stub macros and hopefully few prototypes,
7844 which can conflict with char remove(); below. */
7845 #include <assert.h>
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7849 char remove();
7850 char (*f)();
7851
7852 int main() {
7853
7854 /* The GNU C library defines this for functions which it implements
7855 to always fail with ENOSYS. Some functions are actually named
7856 something starting with __ and the normal name is an alias. */
7857 #if defined (__stub_remove) || defined (__stub___remove)
7858 choke me
7859 #else
7860 f = remove;
7861 #endif
7862
7863 ; return 0; }
7864 EOF
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7866 rm -rf conftest*
7867 eval "ac_cv_func_remove=yes"
7868 else
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7871 rm -rf conftest*
7872 eval "ac_cv_func_remove=no"
7873 fi
7874 rm -f conftest*
7875 fi
7876
7877 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7878 echo "$ac_t""yes" 1>&6
7879 :
7880 else
7881 echo "$ac_t""no" 1>&6
7882 fi
7883
7884 if test $ac_cv_func_remove = no; then
7885 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7886 echo "configure:7887: checking for remove in -lposix" >&5
7887 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7890 else
7891 ac_save_LIBS="$LIBS"
7892 LIBS="-lposix $LIBS"
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 /* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7899 char remove();
7900
7901 int main() {
7902 remove()
7903 ; return 0; }
7904 EOF
7905 if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7906 rm -rf conftest*
7907 eval "ac_cv_lib_$ac_lib_var=yes"
7908 else
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7911 rm -rf conftest*
7912 eval "ac_cv_lib_$ac_lib_var=no"
7913 fi
7914 rm -f conftest*
7915 LIBS="$ac_save_LIBS"
7916
7917 fi
7918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7919 echo "$ac_t""yes" 1>&6
7920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7921 else
7922 echo "$ac_t""no" 1>&6
7923 fi
7924
7925 fi
7926
7927 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7928 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7929 echo "configure:7930: checking for shmat" >&5
7930 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7931 echo $ac_n "(cached) $ac_c" 1>&6
7932 else
7933 cat > conftest.$ac_ext <<EOF
7934 #line 7935 "configure"
7935 #include "confdefs.h"
7936 /* System header to define __stub macros and hopefully few prototypes,
7937 which can conflict with char shmat(); below. */
7938 #include <assert.h>
7939 /* Override any gcc2 internal prototype to avoid an error. */
7940 /* We use char because int might match the return type of a gcc2
7941 builtin and then its argument prototype would still apply. */
7942 char shmat();
7943 char (*f)();
7944
7945 int main() {
7946
7947 /* The GNU C library defines this for functions which it implements
7948 to always fail with ENOSYS. Some functions are actually named
7949 something starting with __ and the normal name is an alias. */
7950 #if defined (__stub_shmat) || defined (__stub___shmat)
7951 choke me
7952 #else
7953 f = shmat;
7954 #endif
7955
7956 ; return 0; }
7957 EOF
7958 if { (eval echo configure:7959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7959 rm -rf conftest*
7960 eval "ac_cv_func_shmat=yes"
7961 else
7962 echo "configure: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7964 rm -rf conftest*
7965 eval "ac_cv_func_shmat=no"
7966 fi
7967 rm -f conftest*
7968 fi
7969
7970 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7971 echo "$ac_t""yes" 1>&6
7972 :
7973 else
7974 echo "$ac_t""no" 1>&6
7975 fi
7976
7977 if test $ac_cv_func_shmat = no; then
7978 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7979 echo "configure:7980: checking for shmat in -lipc" >&5
7980 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7983 else
7984 ac_save_LIBS="$LIBS"
7985 LIBS="-lipc $LIBS"
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992 char shmat();
7993
7994 int main() {
7995 shmat()
7996 ; return 0; }
7997 EOF
7998 if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7999 rm -rf conftest*
8000 eval "ac_cv_lib_$ac_lib_var=yes"
8001 else
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8004 rm -rf conftest*
8005 eval "ac_cv_lib_$ac_lib_var=no"
8006 fi
8007 rm -f conftest*
8008 LIBS="$ac_save_LIBS"
8009
8010 fi
8011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8012 echo "$ac_t""yes" 1>&6
8013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8014 else
8015 echo "$ac_t""no" 1>&6
8016 fi
8017
8018 fi
8019 fi
8020
8021 # Check for libraries that X11R6 Xt/Xaw programs need.
8022 ac_save_LDFLAGS="$LDFLAGS"
8023 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8024 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8025 # check for ICE first), but we must link in the order -lSM -lICE or
8026 # we get undefined symbols. So assume we have SM if we have ICE.
8027 # These have to be linked with before -lX11, unlike the other
8028 # libraries we check for below, so use a different variable.
8029 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8030 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8031 echo "configure:8032: checking for IceConnectionNumber in -lICE" >&5
8032 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8035 else
8036 ac_save_LIBS="$LIBS"
8037 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8038 cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8041 /* Override any gcc2 internal prototype to avoid an error. */
8042 /* We use char because int might match the return type of a gcc2
8043 builtin and then its argument prototype would still apply. */
8044 char IceConnectionNumber();
8045
8046 int main() {
8047 IceConnectionNumber()
8048 ; return 0; }
8049 EOF
8050 if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8051 rm -rf conftest*
8052 eval "ac_cv_lib_$ac_lib_var=yes"
8053 else
8054 echo "configure: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8056 rm -rf conftest*
8057 eval "ac_cv_lib_$ac_lib_var=no"
8058 fi
8059 rm -f conftest*
8060 LIBS="$ac_save_LIBS"
8061
8062 fi
8063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8064 echo "$ac_t""yes" 1>&6
8065 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8066 else
8067 echo "$ac_t""no" 1>&6
8068 fi
8069
8070 LDFLAGS="$ac_save_LDFLAGS"
8071
8072 fi
8073
8074
8075 if test "$no_x" = "yes"; then
8076 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8077 fi
8078
8079 GUI_TK_LIBRARY="$X_LIBS"
8080 TOOLKIT_INCLUDE="$X_CFLAGS"
8081
8082 AFMINSTALL=afminstall
8083
8084
8085 COMPILED_X_PROGRAM=0
8086
8087 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8088 echo "configure:8089: checking for Motif/Lesstif headers" >&5
8089
8090 ac_find_includes=
8091 for ac_dir in $SEARCH_INCLUDE;
8092 do
8093 if test -f "$ac_dir/Xm/Xm.h"; then
8094 ac_find_includes=$ac_dir
8095 break
8096 fi
8097 done
8098
8099 if test "$ac_find_includes" != "" ; then
8100 echo "$ac_t""found $ac_find_includes" 1>&6
8101 else
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105
8106 #include <Xm/Xm.h>
8107
8108 int main() {
8109
8110 int version;
8111
8112 version = xmUseVersion;
8113
8114 ; return 0; }
8115 EOF
8116 if { (eval echo configure:8117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8117 rm -rf conftest*
8118
8119 echo "$ac_t""found in default search path" 1>&6
8120 COMPILED_X_PROGRAM=1
8121
8122 else
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8125 rm -rf conftest*
8126
8127 echo "$ac_t""no" 1>&6
8128 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8129
8130
8131 fi
8132 rm -f conftest*
8133 fi
8134
8135 if test "$COMPILED_X_PROGRAM" = 0; then
8136 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8137 echo "configure:8138: checking for Motif/Lesstif library" >&5
8138
8139 ac_find_libraries=
8140 for ac_dir in $SEARCH_LIB;
8141 do
8142 for ac_extension in a so sl; do
8143 if test -f "$ac_dir/libXm.$ac_extension"; then
8144 ac_find_libraries=$ac_dir
8145 break 2
8146 fi
8147 done
8148 done
8149
8150 if test "$ac_find_libraries" != "" ; then
8151
8152 ac_path_to_include=$ac_find_includes
8153 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8154 result=$?
8155 if test $result = 0; then
8156 ac_path_to_include=""
8157 else
8158 ac_path_to_include="-I$ac_find_includes"
8159 fi
8160
8161
8162 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8163 result=$?
8164 if test $result = 0; then
8165 ac_path_to_link=""
8166 else
8167 ac_path_to_link="-L$ac_find_libraries"
8168 fi
8169
8170
8171 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8172 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8173 echo "$ac_t""found at $ac_find_libraries" 1>&6
8174 else
8175 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178
8179 #include <Xm/Xm.h>
8180
8181 int main() {
8182
8183 int version;
8184
8185 version = xmUseVersion;
8186
8187 ; return 0; }
8188 EOF
8189 if { (eval echo configure:8190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8190 rm -rf conftest*
8191
8192 echo "$ac_t""found in default search path" 1>&6
8193 COMPILED_X_PROGRAM=1
8194
8195 else
8196 echo "configure: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 rm -rf conftest*
8199
8200 echo "$ac_t""no" 1>&6
8201 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8202
8203
8204 fi
8205 rm -f conftest*
8206 fi
8207 fi
8208
8209
8210 XPM_LINK=""
8211 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8212 echo "configure:8213: checking for Xpm library" >&5
8213
8214 ac_find_libraries=
8215 for ac_dir in $SEARCH_LIB;
8216 do
8217 for ac_extension in a so sl; do
8218 if test -f "$ac_dir/libXpm.$ac_extension"; then
8219 ac_find_libraries=$ac_dir
8220 break 2
8221 fi
8222 done
8223 done
8224
8225 if test "$ac_find_libraries" != "" ; then
8226
8227 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8228 result=$?
8229 if test $result = 0; then
8230 ac_path_to_link=""
8231 else
8232 ac_path_to_link="-L$ac_find_libraries"
8233 fi
8234
8235 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8236 XPM_LINK="-lXpm "
8237 cat >> confdefs.h <<\EOF
8238 #define wxHAVE_LIB_XPM 1
8239 EOF
8240
8241 echo "$ac_t""found at $ac_find_libraries" 1>&6
8242 else
8243 cat > conftest.$ac_ext <<EOF
8244 #line 8245 "configure"
8245 #include "confdefs.h"
8246
8247 #include <X11/xpm.h>
8248
8249 int main() {
8250
8251 int version;
8252
8253 version = XpmLibraryVersion();
8254
8255 ; return 0; }
8256 EOF
8257 if { (eval echo configure:8258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8258 rm -rf conftest*
8259
8260 XPM_LINK="-lXpm "
8261 cat >> confdefs.h <<\EOF
8262 #define wxHAVE_LIB_XPM 1
8263 EOF
8264
8265 echo "$ac_t""found in default search path" 1>&6
8266 COMPILED_X_PROGRAM=0
8267
8268 else
8269 echo "configure: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8271 rm -rf conftest*
8272
8273 echo "$ac_t""no" 1>&6
8274 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8275
8276
8277 fi
8278 rm -f conftest*
8279 fi
8280
8281 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8282 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8283 TOOLKIT=MOTIF
8284
8285 GUIHEADERS="\$(MOTIF_HEADERS)"
8286 GUIOBJS="\$(MOTIF_GUIOBJS)"
8287 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
8288 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8289 GUIDEPS="\$(MOTIF_GUIDEPS)"
8290 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
8291 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8292 UNIXOBJS="\$(UNIX_OBJS)"
8293 UNIXDEPS="\$(UNIX_DEPS)"
8294 GUIDIST=MOTIF_DIST
8295 fi
8296
8297 if test "$wxUSE_PM" = 1; then
8298 TOOLKIT=PM
8299
8300 GUIOBJS="\$(PM_GUIOBJS)"
8301 GUIHEADERS="\$(PM_HEADERS)"
8302 COMMONOBJS="\$(PM_COMMONOBJS)"
8303 GENERICOBJS="\$(PM_GENERICOBJS)"
8304 GUIDEPS="\$(PM_GUIDEPS)"
8305 COMMONDEPS="\$(PM_COMMONDEPS)"
8306 GENERICDEPS="\$(PM_GENERICDEPS)"
8307 UNIXOBJS=
8308 UNIXDEPS=
8309 GUIDIST=GTK_DIST
8310 fi
8311
8312 if test "$TOOLKIT" != "PM" ; then
8313 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
8314 else
8315 TOOLKIT_DIR="os2"
8316 fi
8317
8318 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8319
8320 WX_LIBRARY="wx_${TOOLKIT_DIR}"
8321
8322 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)"
8323
8324 if test "$TOOLKIT" != "MSW"; then
8325 if test "$wxUSE_ODBC" = "yes" ; then
8326 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8327 fi
8328 fi
8329
8330 if test "$wxUSE_LIBJPEG" = "yes" ; then
8331 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8332 fi
8333 if test "$wxUSE_LIBTIFF" = "yes" ; then
8334 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8335 fi
8336 if test "$wxUSE_LIBPNG" = "yes" ; then
8337 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8338 fi
8339 if test "$wxUSE_ZLIB" = "yes" ; then
8340 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8341 fi
8342 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8343
8344 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8345 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8346 RPM_SPEC="wx\$(TOOLKIT).spec"
8347
8348 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8349 DISTDIR="wx\$(TOOLKIT)"
8350 else
8351
8352 USE_GUI=0
8353
8354 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8355 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
8356
8357 WX_LIBRARY="wxbase"
8358
8359 PORT_FILES="src/files.lst"
8360 RPM_FILES="src/rpmfiles.lst"
8361 RPM_SPEC="wxBase.spec"
8362
8363 GUIDIST="BASE_DIST"
8364 DISTDIR="wxBase"
8365 fi
8366
8367 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8368
8369 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8370
8371 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8372
8373 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8374 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8375 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8376
8377 SHARED_LD=
8378 PIC_FLAG=
8379 WX_ALL=
8380 WX_ALL_INSTALLED=
8381 BURNT_LIBRARY_NAME=
8382
8383
8384 if test "$wxUSE_SHARED" = "yes"; then
8385 case "${host}" in
8386 *-hp-hpux* )
8387 if test "$GCC" = yes ; then
8388 SHARED_LD="${CC} -shared -fPIC -o"
8389 PIC_FLAG="-fPIC"
8390 else
8391 SHARED_LD="${CXX} -b -o"
8392 PIC_FLAG="+Z"
8393 fi
8394 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8395 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8396 ;;
8397
8398 *-*-linux* )
8399 SHARED_LD="${CC} -shared -o"
8400 PIC_FLAG="-fPIC"
8401 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8402 WX_ALL="CREATE_LINKS"
8403 ;;
8404 *-*-irix5* | *-*-irix6* )
8405 if test "$GCC" = yes ; then
8406 SHARED_LD="${CC} -shared -o"
8407 PIC_FLAG="-fPIC"
8408 else
8409 SHARED_LD="${CXX} -shared -o"
8410 fi
8411 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8412 WX_ALL="CREATE_LINKS"
8413 ;;
8414 *-*-solaris2* )
8415 if test "$GCC" = yes ; then
8416 SHARED_LD="${CC} -shared -o"
8417 PIC_FLAG="-fPIC"
8418 else
8419 SHARED_LD="${CXX} -G -o"
8420 PIC_FLAG="-KPIC"
8421 fi
8422 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8423 WX_ALL="CREATE_LINKS"
8424 ;;
8425 *-*-sunos4* )
8426 SHARED_LD="${CC} -shared -o"
8427 PIC_FLAG="-fPIC"
8428 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8429 WX_ALL="CREATE_LINKS"
8430 ;;
8431 *-*-freebsd* | *-*-netbsd*)
8432 SHARED_LD="${CC} -shared -o"
8433 PIC_FLAG="-fPIC"
8434 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8435 WX_ALL="CREATE_LINKS"
8436 ;;
8437 *-*-osf* )
8438 SHARED_LD="${CXX} -shared -o"
8439 PIC_FLAG="-fPIC"
8440 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8441 WX_ALL="CREATE_LINKS"
8442 ;;
8443 *-*-dgux5* )
8444 SHARED_LD="${CXX} -shared -o"
8445 PIC_FLAG="-fPIC"
8446 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8447 WX_ALL="CREATE_LINKS"
8448 ;;
8449 *-*-sysv5* )
8450 SHARED_LD="${CC} -shared -o"
8451 PIC_FLAG="-fPIC"
8452 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8453 WX_ALL="CREATE_LINKS"
8454 ;;
8455 *-*-aix* )
8456 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8457 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8458 ;;
8459 *-*-cygwin32* )
8460 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8461 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8462 ;;
8463 *-*-mingw32* )
8464 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8465 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8466 ;;
8467 *-pc-os2_emx )
8468 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8469 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8470 ;;
8471 *-*-beos* )
8472 SHARED_LD="${LD} -shared -o"
8473 PIC_FLAG="-fPIC"
8474 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8475 WX_ALL="CREATE_LINKS"
8476 ;;
8477 *)
8478 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8479 esac
8480
8481 if test "x$WX_TARGET_LIBRARY" = "x"; then
8482 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8483 fi
8484 else
8485 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8486 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8487 fi
8488
8489
8490 for ac_hdr in strings.h
8491 do
8492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8494 echo "configure:8495: checking for $ac_hdr" >&5
8495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8497 else
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 #include <$ac_hdr>
8502 EOF
8503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8504 { (eval echo configure:8505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8506 if test -z "$ac_err"; then
8507 rm -rf conftest*
8508 eval "ac_cv_header_$ac_safe=yes"
8509 else
8510 echo "$ac_err" >&5
8511 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8513 rm -rf conftest*
8514 eval "ac_cv_header_$ac_safe=no"
8515 fi
8516 rm -f conftest*
8517 fi
8518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8521 cat >> confdefs.h <<EOF
8522 #define $ac_tr_hdr 1
8523 EOF
8524
8525 else
8526 echo "$ac_t""no" 1>&6
8527 fi
8528 done
8529
8530 for ac_hdr in unistd.h
8531 do
8532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8534 echo "configure:8535: checking for $ac_hdr" >&5
8535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8537 else
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 #include <$ac_hdr>
8542 EOF
8543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8544 { (eval echo configure:8545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8546 if test -z "$ac_err"; then
8547 rm -rf conftest*
8548 eval "ac_cv_header_$ac_safe=yes"
8549 else
8550 echo "$ac_err" >&5
8551 echo "configure: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8553 rm -rf conftest*
8554 eval "ac_cv_header_$ac_safe=no"
8555 fi
8556 rm -f conftest*
8557 fi
8558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8559 echo "$ac_t""yes" 1>&6
8560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8561 cat >> confdefs.h <<EOF
8562 #define $ac_tr_hdr 1
8563 EOF
8564
8565 else
8566 echo "$ac_t""no" 1>&6
8567 fi
8568 done
8569
8570 for ac_hdr in wchar.h
8571 do
8572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8574 echo "configure:8575: checking for $ac_hdr" >&5
8575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8576 echo $ac_n "(cached) $ac_c" 1>&6
8577 else
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8581 #include <$ac_hdr>
8582 EOF
8583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8584 { (eval echo configure:8585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8586 if test -z "$ac_err"; then
8587 rm -rf conftest*
8588 eval "ac_cv_header_$ac_safe=yes"
8589 else
8590 echo "$ac_err" >&5
8591 echo "configure: failed program was:" >&5
8592 cat conftest.$ac_ext >&5
8593 rm -rf conftest*
8594 eval "ac_cv_header_$ac_safe=no"
8595 fi
8596 rm -f conftest*
8597 fi
8598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8599 echo "$ac_t""yes" 1>&6
8600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8601 cat >> confdefs.h <<EOF
8602 #define $ac_tr_hdr 1
8603 EOF
8604
8605 else
8606 echo "$ac_t""no" 1>&6
8607 fi
8608 done
8609
8610 for ac_hdr in wcstr.h
8611 do
8612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8614 echo "configure:8615: checking for $ac_hdr" >&5
8615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8616 echo $ac_n "(cached) $ac_c" 1>&6
8617 else
8618 cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure"
8620 #include "confdefs.h"
8621 #include <$ac_hdr>
8622 EOF
8623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8624 { (eval echo configure:8625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8626 if test -z "$ac_err"; then
8627 rm -rf conftest*
8628 eval "ac_cv_header_$ac_safe=yes"
8629 else
8630 echo "$ac_err" >&5
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8633 rm -rf conftest*
8634 eval "ac_cv_header_$ac_safe=no"
8635 fi
8636 rm -f conftest*
8637 fi
8638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8639 echo "$ac_t""yes" 1>&6
8640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8641 cat >> confdefs.h <<EOF
8642 #define $ac_tr_hdr 1
8643 EOF
8644
8645 else
8646 echo "$ac_t""no" 1>&6
8647 fi
8648 done
8649
8650 for ac_hdr in fnmatch.h
8651 do
8652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8654 echo "configure:8655: checking for $ac_hdr" >&5
8655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
8657 else
8658 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure"
8660 #include "confdefs.h"
8661 #include <$ac_hdr>
8662 EOF
8663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8664 { (eval echo configure:8665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8666 if test -z "$ac_err"; then
8667 rm -rf conftest*
8668 eval "ac_cv_header_$ac_safe=yes"
8669 else
8670 echo "$ac_err" >&5
8671 echo "configure: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 rm -rf conftest*
8674 eval "ac_cv_header_$ac_safe=no"
8675 fi
8676 rm -f conftest*
8677 fi
8678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8679 echo "$ac_t""yes" 1>&6
8680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8681 cat >> confdefs.h <<EOF
8682 #define $ac_tr_hdr 1
8683 EOF
8684
8685 else
8686 echo "$ac_t""no" 1>&6
8687 fi
8688 done
8689
8690
8691 if test "$wxUSE_GUI" = "yes"; then
8692 for ac_hdr in X11/XKBlib.h
8693 do
8694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8696 echo "configure:8697: checking for $ac_hdr" >&5
8697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699 else
8700 cat > conftest.$ac_ext <<EOF
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8703 #include <$ac_hdr>
8704 EOF
8705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8706 { (eval echo configure:8707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8708 if test -z "$ac_err"; then
8709 rm -rf conftest*
8710 eval "ac_cv_header_$ac_safe=yes"
8711 else
8712 echo "$ac_err" >&5
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 rm -rf conftest*
8716 eval "ac_cv_header_$ac_safe=no"
8717 fi
8718 rm -f conftest*
8719 fi
8720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8721 echo "$ac_t""yes" 1>&6
8722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8723 cat >> confdefs.h <<EOF
8724 #define $ac_tr_hdr 1
8725 EOF
8726
8727 else
8728 echo "$ac_t""no" 1>&6
8729 fi
8730 done
8731
8732 fi
8733
8734
8735 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8736 echo "configure:8737: checking for ANSI C header files" >&5
8737 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8739 else
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 #include <stdlib.h>
8744 #include <stdarg.h>
8745 #include <string.h>
8746 #include <float.h>
8747 EOF
8748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8749 { (eval echo configure:8750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8751 if test -z "$ac_err"; then
8752 rm -rf conftest*
8753 ac_cv_header_stdc=yes
8754 else
8755 echo "$ac_err" >&5
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 rm -rf conftest*
8759 ac_cv_header_stdc=no
8760 fi
8761 rm -f conftest*
8762
8763 if test $ac_cv_header_stdc = yes; then
8764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8765 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8768 #include <string.h>
8769 EOF
8770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8771 egrep "memchr" >/dev/null 2>&1; then
8772 :
8773 else
8774 rm -rf conftest*
8775 ac_cv_header_stdc=no
8776 fi
8777 rm -f conftest*
8778
8779 fi
8780
8781 if test $ac_cv_header_stdc = yes; then
8782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8786 #include <stdlib.h>
8787 EOF
8788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8789 egrep "free" >/dev/null 2>&1; then
8790 :
8791 else
8792 rm -rf conftest*
8793 ac_cv_header_stdc=no
8794 fi
8795 rm -f conftest*
8796
8797 fi
8798
8799 if test $ac_cv_header_stdc = yes; then
8800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8801 if test "$cross_compiling" = yes; then
8802 :
8803 else
8804 cat > conftest.$ac_ext <<EOF
8805 #line 8806 "configure"
8806 #include "confdefs.h"
8807 #include <ctype.h>
8808 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8809 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8811 int main () { int i; for (i = 0; i < 256; i++)
8812 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8813 exit (0); }
8814
8815 EOF
8816 if { (eval echo configure:8817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8817 then
8818 :
8819 else
8820 echo "configure: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 rm -fr conftest*
8823 ac_cv_header_stdc=no
8824 fi
8825 rm -fr conftest*
8826 fi
8827
8828 fi
8829 fi
8830
8831 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8832 if test $ac_cv_header_stdc = yes; then
8833 cat >> confdefs.h <<\EOF
8834 #define STDC_HEADERS 1
8835 EOF
8836
8837 fi
8838
8839 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8840 echo "configure:8841: checking for mode_t" >&5
8841 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8842 echo $ac_n "(cached) $ac_c" 1>&6
8843 else
8844 cat > conftest.$ac_ext <<EOF
8845 #line 8846 "configure"
8846 #include "confdefs.h"
8847 #include <sys/types.h>
8848 #if STDC_HEADERS
8849 #include <stdlib.h>
8850 #include <stddef.h>
8851 #endif
8852 EOF
8853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8854 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8855 rm -rf conftest*
8856 ac_cv_type_mode_t=yes
8857 else
8858 rm -rf conftest*
8859 ac_cv_type_mode_t=no
8860 fi
8861 rm -f conftest*
8862
8863 fi
8864 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8865 if test $ac_cv_type_mode_t = no; then
8866 cat >> confdefs.h <<\EOF
8867 #define mode_t int
8868 EOF
8869
8870 fi
8871
8872 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8873 echo "configure:8874: checking for off_t" >&5
8874 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8876 else
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 #include <sys/types.h>
8881 #if STDC_HEADERS
8882 #include <stdlib.h>
8883 #include <stddef.h>
8884 #endif
8885 EOF
8886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8887 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8888 rm -rf conftest*
8889 ac_cv_type_off_t=yes
8890 else
8891 rm -rf conftest*
8892 ac_cv_type_off_t=no
8893 fi
8894 rm -f conftest*
8895
8896 fi
8897 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8898 if test $ac_cv_type_off_t = no; then
8899 cat >> confdefs.h <<\EOF
8900 #define off_t long
8901 EOF
8902
8903 fi
8904
8905 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8906 echo "configure:8907: checking for pid_t" >&5
8907 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8909 else
8910 cat > conftest.$ac_ext <<EOF
8911 #line 8912 "configure"
8912 #include "confdefs.h"
8913 #include <sys/types.h>
8914 #if STDC_HEADERS
8915 #include <stdlib.h>
8916 #include <stddef.h>
8917 #endif
8918 EOF
8919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8920 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8921 rm -rf conftest*
8922 ac_cv_type_pid_t=yes
8923 else
8924 rm -rf conftest*
8925 ac_cv_type_pid_t=no
8926 fi
8927 rm -f conftest*
8928
8929 fi
8930 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8931 if test $ac_cv_type_pid_t = no; then
8932 cat >> confdefs.h <<\EOF
8933 #define pid_t int
8934 EOF
8935
8936 fi
8937
8938 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8939 echo "configure:8940: checking for size_t" >&5
8940 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8942 else
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8946 #include <sys/types.h>
8947 #if STDC_HEADERS
8948 #include <stdlib.h>
8949 #include <stddef.h>
8950 #endif
8951 EOF
8952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8953 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8954 rm -rf conftest*
8955 ac_cv_type_size_t=yes
8956 else
8957 rm -rf conftest*
8958 ac_cv_type_size_t=no
8959 fi
8960 rm -f conftest*
8961
8962 fi
8963 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8964 if test $ac_cv_type_size_t = no; then
8965 cat >> confdefs.h <<\EOF
8966 #define size_t unsigned
8967 EOF
8968
8969 fi
8970
8971 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8972 echo "configure:8973: checking for uid_t in sys/types.h" >&5
8973 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8975 else
8976 cat > conftest.$ac_ext <<EOF
8977 #line 8978 "configure"
8978 #include "confdefs.h"
8979 #include <sys/types.h>
8980 EOF
8981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8982 egrep "uid_t" >/dev/null 2>&1; then
8983 rm -rf conftest*
8984 ac_cv_type_uid_t=yes
8985 else
8986 rm -rf conftest*
8987 ac_cv_type_uid_t=no
8988 fi
8989 rm -f conftest*
8990
8991 fi
8992
8993 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8994 if test $ac_cv_type_uid_t = no; then
8995 cat >> confdefs.h <<\EOF
8996 #define uid_t int
8997 EOF
8998
8999 cat >> confdefs.h <<\EOF
9000 #define gid_t int
9001 EOF
9002
9003 fi
9004
9005
9006
9007 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9008 echo "configure:9009: checking for pw_gecos in struct passwd" >&5
9009 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9010 echo $ac_n "(cached) $ac_c" 1>&6
9011 else
9012
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9016 #include <pwd.h>
9017 int main() {
9018
9019 char *p;
9020 struct passwd *pw;
9021 p = pw->pw_gecos;
9022
9023 ; return 0; }
9024 EOF
9025 if { (eval echo configure:9026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9026 rm -rf conftest*
9027
9028 wx_cv_struct_pw_gecos=yes
9029 cat >> confdefs.h <<\EOF
9030 #define HAVE_PW_GECOS 1
9031 EOF
9032
9033
9034 else
9035 echo "configure: failed program was:" >&5
9036 cat conftest.$ac_ext >&5
9037 rm -rf conftest*
9038
9039 wx_cv_struct_pw_gecos=no
9040
9041
9042 fi
9043 rm -f conftest*
9044
9045
9046 fi
9047
9048 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9049
9050
9051 echo $ac_n "checking for working const""... $ac_c" 1>&6
9052 echo "configure:9053: checking for working const" >&5
9053 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9055 else
9056 cat > conftest.$ac_ext <<EOF
9057 #line 9058 "configure"
9058 #include "confdefs.h"
9059
9060 int main() {
9061
9062 /* Ultrix mips cc rejects this. */
9063 typedef int charset[2]; const charset x;
9064 /* SunOS 4.1.1 cc rejects this. */
9065 char const *const *ccp;
9066 char **p;
9067 /* NEC SVR4.0.2 mips cc rejects this. */
9068 struct point {int x, y;};
9069 static struct point const zero = {0,0};
9070 /* AIX XL C 1.02.0.0 rejects this.
9071 It does not let you subtract one const X* pointer from another in an arm
9072 of an if-expression whose if-part is not a constant expression */
9073 const char *g = "string";
9074 ccp = &g + (g ? g-g : 0);
9075 /* HPUX 7.0 cc rejects these. */
9076 ++ccp;
9077 p = (char**) ccp;
9078 ccp = (char const *const *) p;
9079 { /* SCO 3.2v4 cc rejects this. */
9080 char *t;
9081 char const *s = 0 ? (char *) 0 : (char const *) 0;
9082
9083 *t++ = 0;
9084 }
9085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9086 int x[] = {25, 17};
9087 const int *foo = &x[0];
9088 ++foo;
9089 }
9090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9091 typedef const int *iptr;
9092 iptr p = 0;
9093 ++p;
9094 }
9095 { /* AIX XL C 1.02.0.0 rejects this saying
9096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9097 struct s { int j; const int *ap[3]; };
9098 struct s *b; b->j = 5;
9099 }
9100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9101 const int foo = 10;
9102 }
9103
9104 ; return 0; }
9105 EOF
9106 if { (eval echo configure:9107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9107 rm -rf conftest*
9108 ac_cv_c_const=yes
9109 else
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9112 rm -rf conftest*
9113 ac_cv_c_const=no
9114 fi
9115 rm -f conftest*
9116 fi
9117
9118 echo "$ac_t""$ac_cv_c_const" 1>&6
9119 if test $ac_cv_c_const = no; then
9120 cat >> confdefs.h <<\EOF
9121 #define const
9122 EOF
9123
9124 fi
9125
9126 echo $ac_n "checking for inline""... $ac_c" 1>&6
9127 echo "configure:9128: checking for inline" >&5
9128 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9130 else
9131 ac_cv_c_inline=no
9132 for ac_kw in inline __inline__ __inline; do
9133 cat > conftest.$ac_ext <<EOF
9134 #line 9135 "configure"
9135 #include "confdefs.h"
9136
9137 int main() {
9138 } $ac_kw foo() {
9139 ; return 0; }
9140 EOF
9141 if { (eval echo configure:9142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9142 rm -rf conftest*
9143 ac_cv_c_inline=$ac_kw; break
9144 else
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 fi
9148 rm -f conftest*
9149 done
9150
9151 fi
9152
9153 echo "$ac_t""$ac_cv_c_inline" 1>&6
9154 case "$ac_cv_c_inline" in
9155 inline | yes) ;;
9156 no) cat >> confdefs.h <<\EOF
9157 #define inline
9158 EOF
9159 ;;
9160 *) cat >> confdefs.h <<EOF
9161 #define inline $ac_cv_c_inline
9162 EOF
9163 ;;
9164 esac
9165
9166
9167 echo $ac_n "checking size of char""... $ac_c" 1>&6
9168 echo "configure:9169: checking size of char" >&5
9169 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9170 echo $ac_n "(cached) $ac_c" 1>&6
9171 else
9172 if test "$cross_compiling" = yes; then
9173 ac_cv_sizeof_char=1
9174 else
9175 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure"
9177 #include "confdefs.h"
9178 #include <stdio.h>
9179 main()
9180 {
9181 FILE *f=fopen("conftestval", "w");
9182 if (!f) exit(1);
9183 fprintf(f, "%d\n", sizeof(char));
9184 exit(0);
9185 }
9186 EOF
9187 if { (eval echo configure:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9188 then
9189 ac_cv_sizeof_char=`cat conftestval`
9190 else
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 rm -fr conftest*
9194 ac_cv_sizeof_char=0
9195 fi
9196 rm -fr conftest*
9197 fi
9198
9199 fi
9200 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9201 cat >> confdefs.h <<EOF
9202 #define SIZEOF_CHAR $ac_cv_sizeof_char
9203 EOF
9204
9205
9206 echo $ac_n "checking size of short""... $ac_c" 1>&6
9207 echo "configure:9208: checking size of short" >&5
9208 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9210 else
9211 if test "$cross_compiling" = yes; then
9212 ac_cv_sizeof_short=2
9213 else
9214 cat > conftest.$ac_ext <<EOF
9215 #line 9216 "configure"
9216 #include "confdefs.h"
9217 #include <stdio.h>
9218 main()
9219 {
9220 FILE *f=fopen("conftestval", "w");
9221 if (!f) exit(1);
9222 fprintf(f, "%d\n", sizeof(short));
9223 exit(0);
9224 }
9225 EOF
9226 if { (eval echo configure:9227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9227 then
9228 ac_cv_sizeof_short=`cat conftestval`
9229 else
9230 echo "configure: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9232 rm -fr conftest*
9233 ac_cv_sizeof_short=0
9234 fi
9235 rm -fr conftest*
9236 fi
9237
9238 fi
9239 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9240 cat >> confdefs.h <<EOF
9241 #define SIZEOF_SHORT $ac_cv_sizeof_short
9242 EOF
9243
9244
9245 echo $ac_n "checking size of int *""... $ac_c" 1>&6
9246 echo "configure:9247: checking size of int *" >&5
9247 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9248 echo $ac_n "(cached) $ac_c" 1>&6
9249 else
9250 if test "$cross_compiling" = yes; then
9251 ac_cv_sizeof_int_p=4
9252 else
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 #include <stdio.h>
9257 main()
9258 {
9259 FILE *f=fopen("conftestval", "w");
9260 if (!f) exit(1);
9261 fprintf(f, "%d\n", sizeof(int *));
9262 exit(0);
9263 }
9264 EOF
9265 if { (eval echo configure:9266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9266 then
9267 ac_cv_sizeof_int_p=`cat conftestval`
9268 else
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9271 rm -fr conftest*
9272 ac_cv_sizeof_int_p=0
9273 fi
9274 rm -fr conftest*
9275 fi
9276
9277 fi
9278 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9279 cat >> confdefs.h <<EOF
9280 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9281 EOF
9282
9283
9284 echo $ac_n "checking size of int""... $ac_c" 1>&6
9285 echo "configure:9286: checking size of int" >&5
9286 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9287 echo $ac_n "(cached) $ac_c" 1>&6
9288 else
9289 if test "$cross_compiling" = yes; then
9290 ac_cv_sizeof_int=4
9291 else
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9295 #include <stdio.h>
9296 main()
9297 {
9298 FILE *f=fopen("conftestval", "w");
9299 if (!f) exit(1);
9300 fprintf(f, "%d\n", sizeof(int));
9301 exit(0);
9302 }
9303 EOF
9304 if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9305 then
9306 ac_cv_sizeof_int=`cat conftestval`
9307 else
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9310 rm -fr conftest*
9311 ac_cv_sizeof_int=0
9312 fi
9313 rm -fr conftest*
9314 fi
9315
9316 fi
9317 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9318 cat >> confdefs.h <<EOF
9319 #define SIZEOF_INT $ac_cv_sizeof_int
9320 EOF
9321
9322
9323 echo $ac_n "checking size of long""... $ac_c" 1>&6
9324 echo "configure:9325: checking size of long" >&5
9325 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9326 echo $ac_n "(cached) $ac_c" 1>&6
9327 else
9328 if test "$cross_compiling" = yes; then
9329 ac_cv_sizeof_long=4
9330 else
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 #include <stdio.h>
9335 main()
9336 {
9337 FILE *f=fopen("conftestval", "w");
9338 if (!f) exit(1);
9339 fprintf(f, "%d\n", sizeof(long));
9340 exit(0);
9341 }
9342 EOF
9343 if { (eval echo configure:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9344 then
9345 ac_cv_sizeof_long=`cat conftestval`
9346 else
9347 echo "configure: failed program was:" >&5
9348 cat conftest.$ac_ext >&5
9349 rm -fr conftest*
9350 ac_cv_sizeof_long=0
9351 fi
9352 rm -fr conftest*
9353 fi
9354
9355 fi
9356 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9357 cat >> confdefs.h <<EOF
9358 #define SIZEOF_LONG $ac_cv_sizeof_long
9359 EOF
9360
9361
9362 echo $ac_n "checking size of long long""... $ac_c" 1>&6
9363 echo "configure:9364: checking size of long long" >&5
9364 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9366 else
9367 if test "$cross_compiling" = yes; then
9368 ac_cv_sizeof_long_long=0
9369 else
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 #include <stdio.h>
9374 main()
9375 {
9376 FILE *f=fopen("conftestval", "w");
9377 if (!f) exit(1);
9378 fprintf(f, "%d\n", sizeof(long long));
9379 exit(0);
9380 }
9381 EOF
9382 if { (eval echo configure:9383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9383 then
9384 ac_cv_sizeof_long_long=`cat conftestval`
9385 else
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9388 rm -fr conftest*
9389 ac_cv_sizeof_long_long=0
9390 fi
9391 rm -fr conftest*
9392 fi
9393
9394 fi
9395 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9396 cat >> confdefs.h <<EOF
9397 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9398 EOF
9399
9400
9401
9402 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9403 echo "configure:9404: checking whether byte ordering is bigendian" >&5
9404 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9405 echo $ac_n "(cached) $ac_c" 1>&6
9406 else
9407 ac_cv_c_bigendian=unknown
9408 # See if sys/param.h defines the BYTE_ORDER macro.
9409 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure"
9411 #include "confdefs.h"
9412 #include <sys/types.h>
9413 #include <sys/param.h>
9414 int main() {
9415
9416 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9417 bogus endian macros
9418 #endif
9419 ; return 0; }
9420 EOF
9421 if { (eval echo configure:9422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9422 rm -rf conftest*
9423 # It does; now see whether it defined to BIG_ENDIAN or not.
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 #include <sys/types.h>
9428 #include <sys/param.h>
9429 int main() {
9430
9431 #if BYTE_ORDER != BIG_ENDIAN
9432 not big endian
9433 #endif
9434 ; return 0; }
9435 EOF
9436 if { (eval echo configure:9437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9437 rm -rf conftest*
9438 ac_cv_c_bigendian=yes
9439 else
9440 echo "configure: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 rm -rf conftest*
9443 ac_cv_c_bigendian=no
9444 fi
9445 rm -f conftest*
9446 else
9447 echo "configure: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9449 fi
9450 rm -f conftest*
9451 if test $ac_cv_c_bigendian = unknown; then
9452 if test "$cross_compiling" = yes; then
9453 ac_cv_c_bigendian=unknown
9454 else
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 main () {
9459 /* Are we little or big endian? From Harbison&Steele. */
9460 union
9461 {
9462 long l;
9463 char c[sizeof (long)];
9464 } u;
9465 u.l = 1;
9466 exit (u.c[sizeof (long) - 1] == 1);
9467 }
9468 EOF
9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9470 then
9471 ac_cv_c_bigendian=no
9472 else
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9475 rm -fr conftest*
9476 ac_cv_c_bigendian=yes
9477 fi
9478 rm -fr conftest*
9479 fi
9480
9481 fi
9482 fi
9483
9484 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9485 if test $ac_cv_c_bigendian = unknown; then
9486 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
9487 fi
9488 if test $ac_cv_c_bigendian = yes; then
9489 cat >> confdefs.h <<\EOF
9490 #define WORDS_BIGENDIAN 1
9491 EOF
9492
9493 fi
9494
9495
9496
9497 if test "$cross_compiling" = "yes"; then
9498 cat >> confdefs.h <<\EOF
9499 #define wxUSE_IOSTREAMH 1
9500 EOF
9501
9502 else
9503
9504 ac_ext=C
9505 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9506 ac_cpp='$CXXCPP $CPPFLAGS'
9507 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9508 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9509 cross_compiling=$ac_cv_prog_cxx_cross
9510
9511
9512 for ac_hdr in iostream
9513 do
9514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9516 echo "configure:9517: checking for $ac_hdr" >&5
9517 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9519 else
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9523 #include <$ac_hdr>
9524 EOF
9525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9526 { (eval echo configure:9527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9528 if test -z "$ac_err"; then
9529 rm -rf conftest*
9530 eval "ac_cv_header_$ac_safe=yes"
9531 else
9532 echo "$ac_err" >&5
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 rm -rf conftest*
9536 eval "ac_cv_header_$ac_safe=no"
9537 fi
9538 rm -f conftest*
9539 fi
9540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9541 echo "$ac_t""yes" 1>&6
9542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9543 cat >> confdefs.h <<EOF
9544 #define $ac_tr_hdr 1
9545 EOF
9546
9547 else
9548 echo "$ac_t""no" 1>&6
9549 fi
9550 done
9551
9552
9553 if test "x$HAVE_IOSTREAM" = x ; then
9554 cat >> confdefs.h <<\EOF
9555 #define wxUSE_IOSTREAMH 1
9556 EOF
9557
9558 else
9559 :
9560 fi
9561
9562 ac_ext=c
9563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9564 ac_cpp='$CPP $CPPFLAGS'
9565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9567 cross_compiling=$ac_cv_prog_cc_cross
9568
9569 fi
9570
9571
9572
9573 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9574 echo "configure:9575: checking if C++ compiler supports bool" >&5
9575 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9576 echo $ac_n "(cached) $ac_c" 1>&6
9577 else
9578
9579
9580 ac_ext=C
9581 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9582 ac_cpp='$CXXCPP $CPPFLAGS'
9583 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9584 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9585 cross_compiling=$ac_cv_prog_cxx_cross
9586
9587
9588 cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure"
9590 #include "confdefs.h"
9591
9592
9593 int main() {
9594
9595 bool b = true;
9596
9597 return 0;
9598
9599 ; return 0; }
9600 EOF
9601 if { (eval echo configure:9602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9602 rm -rf conftest*
9603
9604 cat >> confdefs.h <<\EOF
9605 #define HAVE_BOOL 1
9606 EOF
9607
9608 wx_cv_cpp_bool=yes
9609
9610 else
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9613 rm -rf conftest*
9614
9615 wx_cv_cpp_bool=no
9616
9617
9618 fi
9619 rm -f conftest*
9620
9621 ac_ext=c
9622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9623 ac_cpp='$CPP $CPPFLAGS'
9624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9626 cross_compiling=$ac_cv_prog_cc_cross
9627
9628
9629 fi
9630
9631 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9632
9633 if test "$wx_cv_cpp_bool" = "yes"; then
9634 cat >> confdefs.h <<\EOF
9635 #define HAVE_BOOL 1
9636 EOF
9637
9638 fi
9639
9640
9641
9642 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9643 echo "configure:9644: checking if you need GNU extensions" >&5
9644 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
9646 else
9647
9648 cat > conftest.$ac_ext <<EOF
9649 #line 9650 "configure"
9650 #include "confdefs.h"
9651 #include <features.h>
9652 int main() {
9653
9654
9655 #ifndef __GNU_LIBRARY__
9656 Compile error wanted
9657 #endif
9658
9659
9660 ; return 0; }
9661 EOF
9662 if { (eval echo configure:9663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9663 rm -rf conftest*
9664 wx_cv_gnu_extensions=yes
9665 else
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9668 rm -rf conftest*
9669 wx_cv_gnu_extensions=no
9670 fi
9671 rm -f conftest*
9672
9673 fi
9674
9675
9676 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9677 if test "$wx_cv_gnu_extensions" = "yes"; then
9678 cat >> confdefs.h <<EOF
9679 #define _GNU_SOURCE 1
9680 EOF
9681
9682 fi
9683
9684
9685
9686 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9687 echo "configure:9688: checking for wcslen in -lc" >&5
9688 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9691 else
9692 ac_save_LIBS="$LIBS"
9693 LIBS="-lc $LIBS"
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 /* Override any gcc2 internal prototype to avoid an error. */
9698 /* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */
9700 char wcslen();
9701
9702 int main() {
9703 wcslen()
9704 ; return 0; }
9705 EOF
9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9707 rm -rf conftest*
9708 eval "ac_cv_lib_$ac_lib_var=yes"
9709 else
9710 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9712 rm -rf conftest*
9713 eval "ac_cv_lib_$ac_lib_var=no"
9714 fi
9715 rm -f conftest*
9716 LIBS="$ac_save_LIBS"
9717
9718 fi
9719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9720 echo "$ac_t""yes" 1>&6
9721
9722 cat >> confdefs.h <<\EOF
9723 #define HAVE_WCSLEN 1
9724 EOF
9725
9726 WCHAR_LINK=""
9727
9728 else
9729 echo "$ac_t""no" 1>&6
9730
9731 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9732 echo "configure:9733: checking for wcslen in -lw" >&5
9733 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9735 echo $ac_n "(cached) $ac_c" 1>&6
9736 else
9737 ac_save_LIBS="$LIBS"
9738 LIBS="-lw $LIBS"
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9745 char wcslen();
9746
9747 int main() {
9748 wcslen()
9749 ; return 0; }
9750 EOF
9751 if { (eval echo configure:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9752 rm -rf conftest*
9753 eval "ac_cv_lib_$ac_lib_var=yes"
9754 else
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 eval "ac_cv_lib_$ac_lib_var=no"
9759 fi
9760 rm -f conftest*
9761 LIBS="$ac_save_LIBS"
9762
9763 fi
9764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9765 echo "$ac_t""yes" 1>&6
9766
9767 cat >> confdefs.h <<\EOF
9768 #define HAVE_WCSLEN 1
9769 EOF
9770
9771 WCHAR_LINK="-lw"
9772
9773 else
9774 echo "$ac_t""no" 1>&6
9775 fi
9776
9777
9778 fi
9779
9780
9781 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9782 echo "configure:9783: checking for vprintf" >&5
9783 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9785 else
9786 cat > conftest.$ac_ext <<EOF
9787 #line 9788 "configure"
9788 #include "confdefs.h"
9789 /* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char vprintf(); below. */
9791 #include <assert.h>
9792 /* Override any gcc2 internal prototype to avoid an error. */
9793 /* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9795 char vprintf();
9796 char (*f)();
9797
9798 int main() {
9799
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9804 choke me
9805 #else
9806 f = vprintf;
9807 #endif
9808
9809 ; return 0; }
9810 EOF
9811 if { (eval echo configure:9812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9812 rm -rf conftest*
9813 eval "ac_cv_func_vprintf=yes"
9814 else
9815 echo "configure: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9817 rm -rf conftest*
9818 eval "ac_cv_func_vprintf=no"
9819 fi
9820 rm -f conftest*
9821 fi
9822
9823 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9824 echo "$ac_t""yes" 1>&6
9825 cat >> confdefs.h <<\EOF
9826 #define HAVE_VPRINTF 1
9827 EOF
9828
9829 else
9830 echo "$ac_t""no" 1>&6
9831 fi
9832
9833 if test "$ac_cv_func_vprintf" != yes; then
9834 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9835 echo "configure:9836: checking for _doprnt" >&5
9836 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9838 else
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 /* System header to define __stub macros and hopefully few prototypes,
9843 which can conflict with char _doprnt(); below. */
9844 #include <assert.h>
9845 /* Override any gcc2 internal prototype to avoid an error. */
9846 /* We use char because int might match the return type of a gcc2
9847 builtin and then its argument prototype would still apply. */
9848 char _doprnt();
9849 char (*f)();
9850
9851 int main() {
9852
9853 /* The GNU C library defines this for functions which it implements
9854 to always fail with ENOSYS. Some functions are actually named
9855 something starting with __ and the normal name is an alias. */
9856 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9857 choke me
9858 #else
9859 f = _doprnt;
9860 #endif
9861
9862 ; return 0; }
9863 EOF
9864 if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9865 rm -rf conftest*
9866 eval "ac_cv_func__doprnt=yes"
9867 else
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9870 rm -rf conftest*
9871 eval "ac_cv_func__doprnt=no"
9872 fi
9873 rm -f conftest*
9874 fi
9875
9876 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9877 echo "$ac_t""yes" 1>&6
9878 cat >> confdefs.h <<\EOF
9879 #define HAVE_DOPRNT 1
9880 EOF
9881
9882 else
9883 echo "$ac_t""no" 1>&6
9884 fi
9885
9886 fi
9887
9888
9889 for ac_func in vsnprintf
9890 do
9891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9892 echo "configure:9893: checking for $ac_func" >&5
9893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9895 else
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func(); below. */
9901 #include <assert.h>
9902 /* Override any gcc2 internal prototype to avoid an error. */
9903 /* We use char because int might match the return type of a gcc2
9904 builtin and then its argument prototype would still apply. */
9905 char $ac_func();
9906 char (*f)();
9907
9908 int main() {
9909
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9914 choke me
9915 #else
9916 f = $ac_func;
9917 #endif
9918
9919 ; return 0; }
9920 EOF
9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9922 rm -rf conftest*
9923 eval "ac_cv_func_$ac_func=yes"
9924 else
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 rm -rf conftest*
9928 eval "ac_cv_func_$ac_func=no"
9929 fi
9930 rm -f conftest*
9931 fi
9932
9933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9934 echo "$ac_t""yes" 1>&6
9935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9936 cat >> confdefs.h <<EOF
9937 #define $ac_tr_func 1
9938 EOF
9939 cat >> confdefs.h <<\EOF
9940 #define HAVE_VSNPRINTF 1
9941 EOF
9942
9943 else
9944 echo "$ac_t""no" 1>&6
9945 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9946
9947 fi
9948 done
9949
9950
9951
9952 ac_ext=C
9953 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9954 ac_cpp='$CXXCPP $CPPFLAGS'
9955 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9956 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9957 cross_compiling=$ac_cv_prog_cxx_cross
9958
9959
9960 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
9961 echo "configure:9962: checking for vsscanf" >&5
9962 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9963 echo $ac_n "(cached) $ac_c" 1>&6
9964 else
9965
9966 if test "$cross_compiling" = yes; then
9967 wx_cv_func_vsscanf=no
9968
9969 else
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 #ifdef __cplusplus
9974 extern "C" void exit(int);
9975 #endif
9976
9977 #include <stdio.h>
9978 #include <stdarg.h>
9979
9980 int try_vsscanf(const char *format, ...)
9981 {
9982 va_list ap;
9983 va_start(ap, format);
9984
9985 vsscanf("17", format, ap);
9986
9987 va_end(ap);
9988 }
9989
9990 int main()
9991 {
9992 int i;
9993 try_vsscanf("%d", &i);
9994 return i == 17 ? 0 : 1;
9995 }
9996
9997 EOF
9998 if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9999 then
10000
10001 cat >> confdefs.h <<\EOF
10002 #define HAVE_VSSCANF 1
10003 EOF
10004
10005 wx_cv_func_vsscanf=yes
10006
10007 else
10008 echo "configure: failed program was:" >&5
10009 cat conftest.$ac_ext >&5
10010 rm -fr conftest*
10011 wx_cv_func_vsscanf=no
10012 fi
10013 rm -fr conftest*
10014 fi
10015
10016
10017 fi
10018
10019 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10020
10021 ac_ext=c
10022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10023 ac_cpp='$CPP $CPPFLAGS'
10024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10026 cross_compiling=$ac_cv_prog_cc_cross
10027
10028
10029 if test "$TOOLKIT" != "MSW"; then
10030
10031 for ac_func in vfork
10032 do
10033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10034 echo "configure:10035: checking for $ac_func" >&5
10035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10037 else
10038 cat > conftest.$ac_ext <<EOF
10039 #line 10040 "configure"
10040 #include "confdefs.h"
10041 /* System header to define __stub macros and hopefully few prototypes,
10042 which can conflict with char $ac_func(); below. */
10043 #include <assert.h>
10044 /* Override any gcc2 internal prototype to avoid an error. */
10045 /* We use char because int might match the return type of a gcc2
10046 builtin and then its argument prototype would still apply. */
10047 char $ac_func();
10048 char (*f)();
10049
10050 int main() {
10051
10052 /* The GNU C library defines this for functions which it implements
10053 to always fail with ENOSYS. Some functions are actually named
10054 something starting with __ and the normal name is an alias. */
10055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10056 choke me
10057 #else
10058 f = $ac_func;
10059 #endif
10060
10061 ; return 0; }
10062 EOF
10063 if { (eval echo configure:10064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10064 rm -rf conftest*
10065 eval "ac_cv_func_$ac_func=yes"
10066 else
10067 echo "configure: failed program was:" >&5
10068 cat conftest.$ac_ext >&5
10069 rm -rf conftest*
10070 eval "ac_cv_func_$ac_func=no"
10071 fi
10072 rm -f conftest*
10073 fi
10074
10075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10076 echo "$ac_t""yes" 1>&6
10077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10078 cat >> confdefs.h <<EOF
10079 #define $ac_tr_func 1
10080 EOF
10081
10082 else
10083 echo "$ac_t""no" 1>&6
10084 fi
10085 done
10086
10087
10088 for ac_func in timegm
10089 do
10090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10091 echo "configure:10092: checking for $ac_func" >&5
10092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10093 echo $ac_n "(cached) $ac_c" 1>&6
10094 else
10095 cat > conftest.$ac_ext <<EOF
10096 #line 10097 "configure"
10097 #include "confdefs.h"
10098 /* System header to define __stub macros and hopefully few prototypes,
10099 which can conflict with char $ac_func(); below. */
10100 #include <assert.h>
10101 /* Override any gcc2 internal prototype to avoid an error. */
10102 /* We use char because int might match the return type of a gcc2
10103 builtin and then its argument prototype would still apply. */
10104 char $ac_func();
10105 char (*f)();
10106
10107 int main() {
10108
10109 /* The GNU C library defines this for functions which it implements
10110 to always fail with ENOSYS. Some functions are actually named
10111 something starting with __ and the normal name is an alias. */
10112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10113 choke me
10114 #else
10115 f = $ac_func;
10116 #endif
10117
10118 ; return 0; }
10119 EOF
10120 if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10121 rm -rf conftest*
10122 eval "ac_cv_func_$ac_func=yes"
10123 else
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 rm -rf conftest*
10127 eval "ac_cv_func_$ac_func=no"
10128 fi
10129 rm -f conftest*
10130 fi
10131
10132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10133 echo "$ac_t""yes" 1>&6
10134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10135 cat >> confdefs.h <<EOF
10136 #define $ac_tr_func 1
10137 EOF
10138
10139 else
10140 echo "$ac_t""no" 1>&6
10141 fi
10142 done
10143
10144
10145 HAVE_SOME_SLEEP_FUNC=0
10146 if test "$USE_BEOS" = 1; then
10147 cat >> confdefs.h <<\EOF
10148 #define HAVE_SLEEP 1
10149 EOF
10150
10151 HAVE_SOME_SLEEP_FUNC=1
10152 fi
10153
10154 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10155 POSIX4_LINK=
10156 for ac_func in nanosleep
10157 do
10158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10159 echo "configure:10160: checking for $ac_func" >&5
10160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10162 else
10163 cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 /* System header to define __stub macros and hopefully few prototypes,
10167 which can conflict with char $ac_func(); below. */
10168 #include <assert.h>
10169 /* Override any gcc2 internal prototype to avoid an error. */
10170 /* We use char because int might match the return type of a gcc2
10171 builtin and then its argument prototype would still apply. */
10172 char $ac_func();
10173 char (*f)();
10174
10175 int main() {
10176
10177 /* The GNU C library defines this for functions which it implements
10178 to always fail with ENOSYS. Some functions are actually named
10179 something starting with __ and the normal name is an alias. */
10180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10181 choke me
10182 #else
10183 f = $ac_func;
10184 #endif
10185
10186 ; return 0; }
10187 EOF
10188 if { (eval echo configure:10189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10189 rm -rf conftest*
10190 eval "ac_cv_func_$ac_func=yes"
10191 else
10192 echo "configure: failed program was:" >&5
10193 cat conftest.$ac_ext >&5
10194 rm -rf conftest*
10195 eval "ac_cv_func_$ac_func=no"
10196 fi
10197 rm -f conftest*
10198 fi
10199
10200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10201 echo "$ac_t""yes" 1>&6
10202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10203 cat >> confdefs.h <<EOF
10204 #define $ac_tr_func 1
10205 EOF
10206 cat >> confdefs.h <<\EOF
10207 #define HAVE_NANOSLEEP 1
10208 EOF
10209
10210 else
10211 echo "$ac_t""no" 1>&6
10212 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
10213 echo "configure:10214: checking for nanosleep in -lposix4" >&5
10214 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10217 else
10218 ac_save_LIBS="$LIBS"
10219 LIBS="-lposix4 $LIBS"
10220 cat > conftest.$ac_ext <<EOF
10221 #line 10222 "configure"
10222 #include "confdefs.h"
10223 /* Override any gcc2 internal prototype to avoid an error. */
10224 /* We use char because int might match the return type of a gcc2
10225 builtin and then its argument prototype would still apply. */
10226 char nanosleep();
10227
10228 int main() {
10229 nanosleep()
10230 ; return 0; }
10231 EOF
10232 if { (eval echo configure:10233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10233 rm -rf conftest*
10234 eval "ac_cv_lib_$ac_lib_var=yes"
10235 else
10236 echo "configure: failed program was:" >&5
10237 cat conftest.$ac_ext >&5
10238 rm -rf conftest*
10239 eval "ac_cv_lib_$ac_lib_var=no"
10240 fi
10241 rm -f conftest*
10242 LIBS="$ac_save_LIBS"
10243
10244 fi
10245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10246 echo "$ac_t""yes" 1>&6
10247
10248 cat >> confdefs.h <<\EOF
10249 #define HAVE_NANOSLEEP 1
10250 EOF
10251
10252 POSIX4_LINK="-lposix4"
10253
10254 else
10255 echo "$ac_t""no" 1>&6
10256
10257 for ac_func in usleep
10258 do
10259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10260 echo "configure:10261: checking for $ac_func" >&5
10261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10262 echo $ac_n "(cached) $ac_c" 1>&6
10263 else
10264 cat > conftest.$ac_ext <<EOF
10265 #line 10266 "configure"
10266 #include "confdefs.h"
10267 /* System header to define __stub macros and hopefully few prototypes,
10268 which can conflict with char $ac_func(); below. */
10269 #include <assert.h>
10270 /* Override any gcc2 internal prototype to avoid an error. */
10271 /* We use char because int might match the return type of a gcc2
10272 builtin and then its argument prototype would still apply. */
10273 char $ac_func();
10274 char (*f)();
10275
10276 int main() {
10277
10278 /* The GNU C library defines this for functions which it implements
10279 to always fail with ENOSYS. Some functions are actually named
10280 something starting with __ and the normal name is an alias. */
10281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10282 choke me
10283 #else
10284 f = $ac_func;
10285 #endif
10286
10287 ; return 0; }
10288 EOF
10289 if { (eval echo configure:10290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10290 rm -rf conftest*
10291 eval "ac_cv_func_$ac_func=yes"
10292 else
10293 echo "configure: failed program was:" >&5
10294 cat conftest.$ac_ext >&5
10295 rm -rf conftest*
10296 eval "ac_cv_func_$ac_func=no"
10297 fi
10298 rm -f conftest*
10299 fi
10300
10301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10302 echo "$ac_t""yes" 1>&6
10303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10304 cat >> confdefs.h <<EOF
10305 #define $ac_tr_func 1
10306 EOF
10307
10308 else
10309 echo "$ac_t""no" 1>&6
10310 fi
10311 done
10312
10313 echo "configure: warning: wxSleep() function will not work" 1>&2
10314
10315
10316 fi
10317
10318
10319
10320 fi
10321 done
10322
10323 fi
10324
10325 for ac_func in uname gethostname
10326 do
10327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10328 echo "configure:10329: checking for $ac_func" >&5
10329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10330 echo $ac_n "(cached) $ac_c" 1>&6
10331 else
10332 cat > conftest.$ac_ext <<EOF
10333 #line 10334 "configure"
10334 #include "confdefs.h"
10335 /* System header to define __stub macros and hopefully few prototypes,
10336 which can conflict with char $ac_func(); below. */
10337 #include <assert.h>
10338 /* Override any gcc2 internal prototype to avoid an error. */
10339 /* We use char because int might match the return type of a gcc2
10340 builtin and then its argument prototype would still apply. */
10341 char $ac_func();
10342 char (*f)();
10343
10344 int main() {
10345
10346 /* The GNU C library defines this for functions which it implements
10347 to always fail with ENOSYS. Some functions are actually named
10348 something starting with __ and the normal name is an alias. */
10349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10350 choke me
10351 #else
10352 f = $ac_func;
10353 #endif
10354
10355 ; return 0; }
10356 EOF
10357 if { (eval echo configure:10358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10358 rm -rf conftest*
10359 eval "ac_cv_func_$ac_func=yes"
10360 else
10361 echo "configure: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 rm -rf conftest*
10364 eval "ac_cv_func_$ac_func=no"
10365 fi
10366 rm -f conftest*
10367 fi
10368
10369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10370 echo "$ac_t""yes" 1>&6
10371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10372 cat >> confdefs.h <<EOF
10373 #define $ac_tr_func 1
10374 EOF
10375 break
10376 else
10377 echo "$ac_t""no" 1>&6
10378 fi
10379 done
10380
10381
10382 for ac_func in strtok_r
10383 do
10384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10385 echo "configure:10386: checking for $ac_func" >&5
10386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10387 echo $ac_n "(cached) $ac_c" 1>&6
10388 else
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10392 /* System header to define __stub macros and hopefully few prototypes,
10393 which can conflict with char $ac_func(); below. */
10394 #include <assert.h>
10395 /* Override any gcc2 internal prototype to avoid an error. */
10396 /* We use char because int might match the return type of a gcc2
10397 builtin and then its argument prototype would still apply. */
10398 char $ac_func();
10399 char (*f)();
10400
10401 int main() {
10402
10403 /* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
10406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10407 choke me
10408 #else
10409 f = $ac_func;
10410 #endif
10411
10412 ; return 0; }
10413 EOF
10414 if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10415 rm -rf conftest*
10416 eval "ac_cv_func_$ac_func=yes"
10417 else
10418 echo "configure: failed program was:" >&5
10419 cat conftest.$ac_ext >&5
10420 rm -rf conftest*
10421 eval "ac_cv_func_$ac_func=no"
10422 fi
10423 rm -f conftest*
10424 fi
10425
10426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10427 echo "$ac_t""yes" 1>&6
10428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10429 cat >> confdefs.h <<EOF
10430 #define $ac_tr_func 1
10431 EOF
10432
10433 else
10434 echo "$ac_t""no" 1>&6
10435 fi
10436 done
10437
10438
10439 INET_LINK=
10440 for ac_func in inet_addr
10441 do
10442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10443 echo "configure:10444: checking for $ac_func" >&5
10444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10446 else
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 /* System header to define __stub macros and hopefully few prototypes,
10451 which can conflict with char $ac_func(); below. */
10452 #include <assert.h>
10453 /* Override any gcc2 internal prototype to avoid an error. */
10454 /* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10456 char $ac_func();
10457 char (*f)();
10458
10459 int main() {
10460
10461 /* The GNU C library defines this for functions which it implements
10462 to always fail with ENOSYS. Some functions are actually named
10463 something starting with __ and the normal name is an alias. */
10464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10465 choke me
10466 #else
10467 f = $ac_func;
10468 #endif
10469
10470 ; return 0; }
10471 EOF
10472 if { (eval echo configure:10473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10473 rm -rf conftest*
10474 eval "ac_cv_func_$ac_func=yes"
10475 else
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10478 rm -rf conftest*
10479 eval "ac_cv_func_$ac_func=no"
10480 fi
10481 rm -f conftest*
10482 fi
10483
10484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10485 echo "$ac_t""yes" 1>&6
10486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10487 cat >> confdefs.h <<EOF
10488 #define $ac_tr_func 1
10489 EOF
10490 cat >> confdefs.h <<\EOF
10491 #define HAVE_INET_ADDR 1
10492 EOF
10493
10494 else
10495 echo "$ac_t""no" 1>&6
10496 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
10497 echo "configure:10498: checking for inet_addr in -lnsl" >&5
10498 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10500 echo $ac_n "(cached) $ac_c" 1>&6
10501 else
10502 ac_save_LIBS="$LIBS"
10503 LIBS="-lnsl $LIBS"
10504 cat > conftest.$ac_ext <<EOF
10505 #line 10506 "configure"
10506 #include "confdefs.h"
10507 /* Override any gcc2 internal prototype to avoid an error. */
10508 /* We use char because int might match the return type of a gcc2
10509 builtin and then its argument prototype would still apply. */
10510 char inet_addr();
10511
10512 int main() {
10513 inet_addr()
10514 ; return 0; }
10515 EOF
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10517 rm -rf conftest*
10518 eval "ac_cv_lib_$ac_lib_var=yes"
10519 else
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10522 rm -rf conftest*
10523 eval "ac_cv_lib_$ac_lib_var=no"
10524 fi
10525 rm -f conftest*
10526 LIBS="$ac_save_LIBS"
10527
10528 fi
10529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10530 echo "$ac_t""yes" 1>&6
10531 INET_LINK="nsl"
10532 else
10533 echo "$ac_t""no" 1>&6
10534 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
10535 echo "configure:10536: checking for inet_addr in -lresolv" >&5
10536 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10538 echo $ac_n "(cached) $ac_c" 1>&6
10539 else
10540 ac_save_LIBS="$LIBS"
10541 LIBS="-lresolv $LIBS"
10542 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10545 /* Override any gcc2 internal prototype to avoid an error. */
10546 /* We use char because int might match the return type of a gcc2
10547 builtin and then its argument prototype would still apply. */
10548 char inet_addr();
10549
10550 int main() {
10551 inet_addr()
10552 ; return 0; }
10553 EOF
10554 if { (eval echo configure:10555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10555 rm -rf conftest*
10556 eval "ac_cv_lib_$ac_lib_var=yes"
10557 else
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 rm -rf conftest*
10561 eval "ac_cv_lib_$ac_lib_var=no"
10562 fi
10563 rm -f conftest*
10564 LIBS="$ac_save_LIBS"
10565
10566 fi
10567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10568 echo "$ac_t""yes" 1>&6
10569 INET_LINK="resolv"
10570
10571 else
10572 echo "$ac_t""no" 1>&6
10573 fi
10574
10575
10576 fi
10577
10578
10579
10580 fi
10581 done
10582
10583
10584 for ac_func in inet_aton
10585 do
10586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10587 echo "configure:10588: checking for $ac_func" >&5
10588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10589 echo $ac_n "(cached) $ac_c" 1>&6
10590 else
10591 cat > conftest.$ac_ext <<EOF
10592 #line 10593 "configure"
10593 #include "confdefs.h"
10594 /* System header to define __stub macros and hopefully few prototypes,
10595 which can conflict with char $ac_func(); below. */
10596 #include <assert.h>
10597 /* Override any gcc2 internal prototype to avoid an error. */
10598 /* We use char because int might match the return type of a gcc2
10599 builtin and then its argument prototype would still apply. */
10600 char $ac_func();
10601 char (*f)();
10602
10603 int main() {
10604
10605 /* The GNU C library defines this for functions which it implements
10606 to always fail with ENOSYS. Some functions are actually named
10607 something starting with __ and the normal name is an alias. */
10608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10609 choke me
10610 #else
10611 f = $ac_func;
10612 #endif
10613
10614 ; return 0; }
10615 EOF
10616 if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10617 rm -rf conftest*
10618 eval "ac_cv_func_$ac_func=yes"
10619 else
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 rm -rf conftest*
10623 eval "ac_cv_func_$ac_func=no"
10624 fi
10625 rm -f conftest*
10626 fi
10627
10628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10629 echo "$ac_t""yes" 1>&6
10630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10631 cat >> confdefs.h <<EOF
10632 #define $ac_tr_func 1
10633 EOF
10634 cat >> confdefs.h <<\EOF
10635 #define HAVE_INET_ATON 1
10636 EOF
10637
10638 else
10639 echo "$ac_t""no" 1>&6
10640 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
10641 echo "configure:10642: checking for inet_aton in -l$INET_LINK" >&5
10642 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10644 echo $ac_n "(cached) $ac_c" 1>&6
10645 else
10646 ac_save_LIBS="$LIBS"
10647 LIBS="-l$INET_LINK $LIBS"
10648 cat > conftest.$ac_ext <<EOF
10649 #line 10650 "configure"
10650 #include "confdefs.h"
10651 /* Override any gcc2 internal prototype to avoid an error. */
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char inet_aton();
10655
10656 int main() {
10657 inet_aton()
10658 ; return 0; }
10659 EOF
10660 if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10661 rm -rf conftest*
10662 eval "ac_cv_lib_$ac_lib_var=yes"
10663 else
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 rm -rf conftest*
10667 eval "ac_cv_lib_$ac_lib_var=no"
10668 fi
10669 rm -f conftest*
10670 LIBS="$ac_save_LIBS"
10671
10672 fi
10673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10674 echo "$ac_t""yes" 1>&6
10675 cat >> confdefs.h <<\EOF
10676 #define HAVE_INET_ATON 1
10677 EOF
10678
10679 else
10680 echo "$ac_t""no" 1>&6
10681 fi
10682
10683
10684 fi
10685 done
10686
10687
10688 if test "x$INET_LINK" != "x"; then
10689 cat >> confdefs.h <<\EOF
10690 #define HAVE_INET_ADDR 1
10691 EOF
10692
10693 INET_LINK="-l$INET_LINK"
10694 fi
10695
10696 fi
10697
10698
10699 cat > confcache <<\EOF
10700 # This file is a shell script that caches the results of configure
10701 # tests run on this system so they can be shared between configure
10702 # scripts and configure runs. It is not useful on other systems.
10703 # If it contains results you don't want to keep, you may remove or edit it.
10704 #
10705 # By default, configure uses ./config.cache as the cache file,
10706 # creating it if it does not exist already. You can give configure
10707 # the --cache-file=FILE option to use a different cache file; that is
10708 # what configure does when it calls configure scripts in
10709 # subdirectories, so they share the cache.
10710 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10711 # config.status only pays attention to the cache file if you give it the
10712 # --recheck option to rerun configure.
10713 #
10714 EOF
10715 # The following way of writing the cache mishandles newlines in values,
10716 # but we know of no workaround that is simple, portable, and efficient.
10717 # So, don't put newlines in cache variables' values.
10718 # Ultrix sh set writes to stderr and can't be redirected directly,
10719 # and sets the high bit in the cache file unless we assign to the vars.
10720 (set) 2>&1 |
10721 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10722 *ac_space=\ *)
10723 # `set' does not quote correctly, so add quotes (double-quote substitution
10724 # turns \\\\ into \\, and sed turns \\ into \).
10725 sed -n \
10726 -e "s/'/'\\\\''/g" \
10727 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10728 ;;
10729 *)
10730 # `set' quotes correctly as required by POSIX, so do not add quotes.
10731 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10732 ;;
10733 esac >> confcache
10734 if cmp -s $cache_file confcache; then
10735 :
10736 else
10737 if test -w $cache_file; then
10738 echo "updating cache $cache_file"
10739 cat confcache > $cache_file
10740 else
10741 echo "not updating unwritable cache $cache_file"
10742 fi
10743 fi
10744 rm -f confcache
10745
10746
10747
10748 if test "$TOOLKIT" != "MSW"; then
10749
10750
10751 THREADS_LINK=""
10752 THREADS_OBJ=""
10753
10754 if test "$wxUSE_THREADS" = "yes" ; then
10755 if test "$wxUSE_WINE" = 1 ; then
10756 echo "configure: warning: Threads are not supported under WINE" 1>&2
10757 wxUSE_THREADS="no"
10758 elif test "$USE_BEOS" = 1; then
10759 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10760 wxUSE_THREADS="no"
10761 fi
10762 fi
10763
10764 if test "$wxUSE_THREADS" = "yes" ; then
10765
10766 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10767 echo "configure:10768: checking for pthread_create in -lpthread" >&5
10768 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10770 echo $ac_n "(cached) $ac_c" 1>&6
10771 else
10772 ac_save_LIBS="$LIBS"
10773 LIBS="-lpthread $LIBS"
10774 cat > conftest.$ac_ext <<EOF
10775 #line 10776 "configure"
10776 #include "confdefs.h"
10777 /* Override any gcc2 internal prototype to avoid an error. */
10778 /* We use char because int might match the return type of a gcc2
10779 builtin and then its argument prototype would still apply. */
10780 char pthread_create();
10781
10782 int main() {
10783 pthread_create()
10784 ; return 0; }
10785 EOF
10786 if { (eval echo configure:10787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10787 rm -rf conftest*
10788 eval "ac_cv_lib_$ac_lib_var=yes"
10789 else
10790 echo "configure: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10792 rm -rf conftest*
10793 eval "ac_cv_lib_$ac_lib_var=no"
10794 fi
10795 rm -f conftest*
10796 LIBS="$ac_save_LIBS"
10797
10798 fi
10799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10800 echo "$ac_t""yes" 1>&6
10801
10802 THREADS_OBJ="threadpsx.lo"
10803 THREADS_LINK="pthread"
10804
10805 else
10806 echo "$ac_t""no" 1>&6
10807
10808 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10809 echo "configure:10810: checking for pthread_create in -lc_r" >&5
10810 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10813 else
10814 ac_save_LIBS="$LIBS"
10815 LIBS="-lc_r $LIBS"
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10819 /* Override any gcc2 internal prototype to avoid an error. */
10820 /* We use char because int might match the return type of a gcc2
10821 builtin and then its argument prototype would still apply. */
10822 char pthread_create();
10823
10824 int main() {
10825 pthread_create()
10826 ; return 0; }
10827 EOF
10828 if { (eval echo configure:10829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10829 rm -rf conftest*
10830 eval "ac_cv_lib_$ac_lib_var=yes"
10831 else
10832 echo "configure: failed program was:" >&5
10833 cat conftest.$ac_ext >&5
10834 rm -rf conftest*
10835 eval "ac_cv_lib_$ac_lib_var=no"
10836 fi
10837 rm -f conftest*
10838 LIBS="$ac_save_LIBS"
10839
10840 fi
10841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10842 echo "$ac_t""yes" 1>&6
10843
10844 THREADS_OBJ="threadpsx.lo"
10845 THREADS_LINK="c_r"
10846
10847 else
10848 echo "$ac_t""no" 1>&6
10849
10850 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10851 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10852 echo "configure:10853: checking for sys/prctl.h" >&5
10853 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10854 echo $ac_n "(cached) $ac_c" 1>&6
10855 else
10856 cat > conftest.$ac_ext <<EOF
10857 #line 10858 "configure"
10858 #include "confdefs.h"
10859 #include <sys/prctl.h>
10860 EOF
10861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10862 { (eval echo configure:10863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10864 if test -z "$ac_err"; then
10865 rm -rf conftest*
10866 eval "ac_cv_header_$ac_safe=yes"
10867 else
10868 echo "$ac_err" >&5
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 rm -rf conftest*
10872 eval "ac_cv_header_$ac_safe=no"
10873 fi
10874 rm -f conftest*
10875 fi
10876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10877 echo "$ac_t""yes" 1>&6
10878
10879 THREADS_OBJ="threadsgi.lo"
10880
10881 else
10882 echo "$ac_t""no" 1>&6
10883 fi
10884
10885
10886 fi
10887
10888
10889 fi
10890
10891
10892 if test -z "$THREADS_OBJ" ; then
10893 wxUSE_THREADS=no
10894 echo "configure: warning: No thread support on this system" 1>&2
10895 fi
10896 fi
10897
10898 if test "$wxUSE_THREADS" = "yes" ; then
10899 for ac_func in thr_setconcurrency
10900 do
10901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10902 echo "configure:10903: checking for $ac_func" >&5
10903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10904 echo $ac_n "(cached) $ac_c" 1>&6
10905 else
10906 cat > conftest.$ac_ext <<EOF
10907 #line 10908 "configure"
10908 #include "confdefs.h"
10909 /* System header to define __stub macros and hopefully few prototypes,
10910 which can conflict with char $ac_func(); below. */
10911 #include <assert.h>
10912 /* Override any gcc2 internal prototype to avoid an error. */
10913 /* We use char because int might match the return type of a gcc2
10914 builtin and then its argument prototype would still apply. */
10915 char $ac_func();
10916 char (*f)();
10917
10918 int main() {
10919
10920 /* The GNU C library defines this for functions which it implements
10921 to always fail with ENOSYS. Some functions are actually named
10922 something starting with __ and the normal name is an alias. */
10923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10924 choke me
10925 #else
10926 f = $ac_func;
10927 #endif
10928
10929 ; return 0; }
10930 EOF
10931 if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10932 rm -rf conftest*
10933 eval "ac_cv_func_$ac_func=yes"
10934 else
10935 echo "configure: failed program was:" >&5
10936 cat conftest.$ac_ext >&5
10937 rm -rf conftest*
10938 eval "ac_cv_func_$ac_func=no"
10939 fi
10940 rm -f conftest*
10941 fi
10942
10943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10946 cat >> confdefs.h <<EOF
10947 #define $ac_tr_func 1
10948 EOF
10949
10950 else
10951 echo "$ac_t""no" 1>&6
10952 fi
10953 done
10954
10955
10956
10957 for ac_hdr in sched.h
10958 do
10959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10961 echo "configure:10962: checking for $ac_hdr" >&5
10962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10963 echo $ac_n "(cached) $ac_c" 1>&6
10964 else
10965 cat > conftest.$ac_ext <<EOF
10966 #line 10967 "configure"
10967 #include "confdefs.h"
10968 #include <$ac_hdr>
10969 EOF
10970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10971 { (eval echo configure:10972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10973 if test -z "$ac_err"; then
10974 rm -rf conftest*
10975 eval "ac_cv_header_$ac_safe=yes"
10976 else
10977 echo "$ac_err" >&5
10978 echo "configure: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 rm -rf conftest*
10981 eval "ac_cv_header_$ac_safe=no"
10982 fi
10983 rm -f conftest*
10984 fi
10985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10986 echo "$ac_t""yes" 1>&6
10987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10988 cat >> confdefs.h <<EOF
10989 #define $ac_tr_hdr 1
10990 EOF
10991
10992 else
10993 echo "$ac_t""no" 1>&6
10994 fi
10995 done
10996
10997
10998 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
10999 echo "configure:11000: checking for sched_yield in -l$THREADS_LINK" >&5
11000 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11002 echo $ac_n "(cached) $ac_c" 1>&6
11003 else
11004 ac_save_LIBS="$LIBS"
11005 LIBS="-l$THREADS_LINK $LIBS"
11006 cat > conftest.$ac_ext <<EOF
11007 #line 11008 "configure"
11008 #include "confdefs.h"
11009 /* Override any gcc2 internal prototype to avoid an error. */
11010 /* We use char because int might match the return type of a gcc2
11011 builtin and then its argument prototype would still apply. */
11012 char sched_yield();
11013
11014 int main() {
11015 sched_yield()
11016 ; return 0; }
11017 EOF
11018 if { (eval echo configure:11019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11019 rm -rf conftest*
11020 eval "ac_cv_lib_$ac_lib_var=yes"
11021 else
11022 echo "configure: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11024 rm -rf conftest*
11025 eval "ac_cv_lib_$ac_lib_var=no"
11026 fi
11027 rm -f conftest*
11028 LIBS="$ac_save_LIBS"
11029
11030 fi
11031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11032 echo "$ac_t""yes" 1>&6
11033 cat >> confdefs.h <<\EOF
11034 #define HAVE_SCHED_YIELD 1
11035 EOF
11036
11037 else
11038 echo "$ac_t""no" 1>&6
11039 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
11040 echo "configure:11041: checking for sched_yield in -l"posix4"" >&5
11041 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11043 echo $ac_n "(cached) $ac_c" 1>&6
11044 else
11045 ac_save_LIBS="$LIBS"
11046 LIBS="-l"posix4" $LIBS"
11047 cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11050 /* Override any gcc2 internal prototype to avoid an error. */
11051 /* We use char because int might match the return type of a gcc2
11052 builtin and then its argument prototype would still apply. */
11053 char sched_yield();
11054
11055 int main() {
11056 sched_yield()
11057 ; return 0; }
11058 EOF
11059 if { (eval echo configure:11060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11060 rm -rf conftest*
11061 eval "ac_cv_lib_$ac_lib_var=yes"
11062 else
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 rm -rf conftest*
11066 eval "ac_cv_lib_$ac_lib_var=no"
11067 fi
11068 rm -f conftest*
11069 LIBS="$ac_save_LIBS"
11070
11071 fi
11072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11073 echo "$ac_t""yes" 1>&6
11074 cat >> confdefs.h <<\EOF
11075 #define HAVE_SCHED_YIELD 1
11076 EOF
11077 POSIX4_LINK="-lposix4"
11078 else
11079 echo "$ac_t""no" 1>&6
11080 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11081
11082 fi
11083
11084
11085 fi
11086
11087
11088 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
11089 echo "configure:11090: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
11090 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11092 echo $ac_n "(cached) $ac_c" 1>&6
11093 else
11094 ac_save_LIBS="$LIBS"
11095 LIBS="-l$THREADS_LINK $LIBS"
11096 cat > conftest.$ac_ext <<EOF
11097 #line 11098 "configure"
11098 #include "confdefs.h"
11099 /* Override any gcc2 internal prototype to avoid an error. */
11100 /* We use char because int might match the return type of a gcc2
11101 builtin and then its argument prototype would still apply. */
11102 char pthread_attr_getschedpolicy();
11103
11104 int main() {
11105 pthread_attr_getschedpolicy()
11106 ; return 0; }
11107 EOF
11108 if { (eval echo configure:11109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11109 rm -rf conftest*
11110 eval "ac_cv_lib_$ac_lib_var=yes"
11111 else
11112 echo "configure: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11114 rm -rf conftest*
11115 eval "ac_cv_lib_$ac_lib_var=no"
11116 fi
11117 rm -f conftest*
11118 LIBS="$ac_save_LIBS"
11119
11120 fi
11121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11122 echo "$ac_t""yes" 1>&6
11123 cat >> confdefs.h <<\EOF
11124 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11125 EOF
11126
11127 else
11128 echo "$ac_t""no" 1>&6
11129 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
11130 echo "configure:11131: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
11131 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11133 echo $ac_n "(cached) $ac_c" 1>&6
11134 else
11135 ac_save_LIBS="$LIBS"
11136 LIBS="-l"posix4" $LIBS"
11137 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure"
11139 #include "confdefs.h"
11140 /* Override any gcc2 internal prototype to avoid an error. */
11141 /* We use char because int might match the return type of a gcc2
11142 builtin and then its argument prototype would still apply. */
11143 char pthread_attr_getschedpolicy();
11144
11145 int main() {
11146 pthread_attr_getschedpolicy()
11147 ; return 0; }
11148 EOF
11149 if { (eval echo configure:11150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11150 rm -rf conftest*
11151 eval "ac_cv_lib_$ac_lib_var=yes"
11152 else
11153 echo "configure: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
11155 rm -rf conftest*
11156 eval "ac_cv_lib_$ac_lib_var=no"
11157 fi
11158 rm -f conftest*
11159 LIBS="$ac_save_LIBS"
11160
11161 fi
11162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11163 echo "$ac_t""yes" 1>&6
11164 cat >> confdefs.h <<\EOF
11165 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11166 EOF
11167 POSIX4_LINK="-lposix4"
11168 else
11169 echo "$ac_t""no" 1>&6
11170 echo "configure: warning: Setting thread priority will not work" 1>&2
11171
11172 fi
11173
11174
11175 fi
11176
11177
11178 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
11179 echo "configure:11180: checking for pthread_cancel in -l$THREADS_LINK" >&5
11180 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11183 else
11184 ac_save_LIBS="$LIBS"
11185 LIBS="-l$THREADS_LINK $LIBS"
11186 cat > conftest.$ac_ext <<EOF
11187 #line 11188 "configure"
11188 #include "confdefs.h"
11189 /* Override any gcc2 internal prototype to avoid an error. */
11190 /* We use char because int might match the return type of a gcc2
11191 builtin and then its argument prototype would still apply. */
11192 char pthread_cancel();
11193
11194 int main() {
11195 pthread_cancel()
11196 ; return 0; }
11197 EOF
11198 if { (eval echo configure:11199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11199 rm -rf conftest*
11200 eval "ac_cv_lib_$ac_lib_var=yes"
11201 else
11202 echo "configure: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11204 rm -rf conftest*
11205 eval "ac_cv_lib_$ac_lib_var=no"
11206 fi
11207 rm -f conftest*
11208 LIBS="$ac_save_LIBS"
11209
11210 fi
11211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11212 echo "$ac_t""yes" 1>&6
11213 cat >> confdefs.h <<\EOF
11214 #define HAVE_PTHREAD_CANCEL 1
11215 EOF
11216
11217 else
11218 echo "$ac_t""no" 1>&6
11219 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11220 fi
11221
11222
11223 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
11224 echo "configure:11225: checking for pthread_cleanup_push/pop" >&5
11225 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11227 else
11228
11229 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure"
11231 #include "confdefs.h"
11232 #include <pthread.h>
11233 int main() {
11234
11235 pthread_cleanup_push(NULL, NULL);
11236 pthread_cleanup_pop(0);
11237
11238 ; return 0; }
11239 EOF
11240 if { (eval echo configure:11241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11241 rm -rf conftest*
11242
11243 wx_cv_func_pthread_cleanup_push=yes
11244 cat >> confdefs.h <<\EOF
11245 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11246 EOF
11247
11248
11249 else
11250 echo "configure: failed program was:" >&5
11251 cat conftest.$ac_ext >&5
11252 rm -rf conftest*
11253
11254 wx_cv_func_pthread_cleanup_push=no
11255
11256 fi
11257 rm -f conftest*
11258
11259 fi
11260
11261 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11262
11263 THREADS_LINK="-l$THREADS_LINK"
11264 fi
11265
11266 fi
11267
11268 if test "$wxUSE_THREADS" = "yes"; then
11269 cat >> confdefs.h <<\EOF
11270 #define wxUSE_THREADS 1
11271 EOF
11272
11273
11274 CFLAGS="${CFLAGS} -D_REENTRANT"
11275 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11276
11277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11278 else
11279 if test "$ac_cv_func_strtok_r" = "yes"; then
11280 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
11281 echo "configure:11282: checking if -D_REENTRANT is needed" >&5
11282 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11283 CFLAGS="${CFLAGS} -D_REENTRANT"
11284 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11285 echo "$ac_t""yes" 1>&6
11286 else
11287 echo "$ac_t""no" 1>&6
11288 fi
11289 fi
11290 fi
11291
11292 if test "$WXGTK13" = 1 ; then
11293 cat >> confdefs.h <<EOF
11294 #define __WXGTK13__ $WXGTK13
11295 EOF
11296
11297 WXGTK12=1
11298 fi
11299
11300 if test "$WXGTK12" = 1 ; then
11301 cat >> confdefs.h <<EOF
11302 #define __WXGTK12__ $WXGTK12
11303 EOF
11304
11305 fi
11306
11307 if test "$WXWINE" = 1 ; then
11308 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11309 fi
11310
11311 if test "$wxUSE_CYGWIN" = 1 ; then
11312 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11313 fi
11314
11315 WXDEBUG=
11316
11317 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11318 WXDEBUG="-g"
11319 wxUSE_OPTIMISE=no
11320 fi
11321
11322 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11323 wxUSE_DEBUG_INFO=yes
11324 WXDEBUG="-ggdb"
11325 fi
11326
11327 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11328 cat >> confdefs.h <<\EOF
11329 #define WXDEBUG 1
11330 EOF
11331
11332 WXDEBUG_DEFINE="-D__WXDEBUG__"
11333 else
11334 if test "$wxUSE_GTK" = 1 ; then
11335 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11336 fi
11337 fi
11338
11339 if test "$wxUSE_MEM_TRACING" = "yes" ; then
11340 cat >> confdefs.h <<\EOF
11341 #define wxUSE_MEMORY_TRACING 1
11342 EOF
11343
11344 cat >> confdefs.h <<\EOF
11345 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11346 EOF
11347
11348 cat >> confdefs.h <<\EOF
11349 #define wxUSE_DEBUG_NEW_ALWAYS 1
11350 EOF
11351
11352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11353 fi
11354
11355 if test "$wxUSE_DMALLOC" = "yes" ; then
11356 DMALLOC_LINK="-ldmalloc"
11357 fi
11358
11359 PROFILE=
11360 if test "$wxUSE_PROFILE" = "yes" ; then
11361 PROFILE="-pg"
11362 fi
11363
11364 DEP_INFO_FLAGS=
11365 CODE_GEN_FLAGS=
11366 if test "$GCC" = yes ; then
11367 if test "$wxUSE_NO_RTTI" = "yes" ; then
11368 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
11369 fi
11370 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11371 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
11372 fi
11373 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11374 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
11375 fi
11376 if test "$wxUSE_NO_DEPS" = "no" ; then
11377 DEP_INFO_FLAGS="-MMD"
11378 fi
11379 fi
11380
11381
11382 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11383 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11384 if test "$wxUSE_OPTIMISE" = "no" ; then
11385 OPTIMISE=
11386 else
11387 if test "$GCC" = yes ; then
11388 OPTIMISE="-O2"
11389 case "${host}" in
11390 i586-*-*|i686-*-* )
11391 OPTIMISE="${OPTIMISE} "
11392 ;;
11393 esac
11394 else
11395 OPTIMISE="-O"
11396 fi
11397 fi
11398
11399
11400 ZLIB_INCLUDE=
11401 if test "$wxUSE_ZLIB" = "yes" ; then
11402 cat >> confdefs.h <<\EOF
11403 #define wxUSE_ZLIB 1
11404 EOF
11405
11406 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11407 fi
11408
11409 PNG_INCLUDE=
11410 if test "$wxUSE_LIBPNG" = "yes" ; then
11411 cat >> confdefs.h <<\EOF
11412 #define wxUSE_LIBPNG 1
11413 EOF
11414
11415 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11417 fi
11418
11419 JPEG_INCLUDE=
11420 if test "$wxUSE_LIBJPEG" = "yes" ; then
11421 cat >> confdefs.h <<\EOF
11422 #define wxUSE_LIBJPEG 1
11423 EOF
11424
11425 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11426 fi
11427
11428 TIFF_INCLUDE=
11429 if test "$wxUSE_LIBTIFF" = "yes" ; then
11430 cat >> confdefs.h <<\EOF
11431 #define wxUSE_LIBTIFF 1
11432 EOF
11433
11434 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11435 fi
11436
11437 if test "$wxUSE_OPENGL" = "yes"; then
11438 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11439 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11440 echo "configure:11441: checking for GL/gl.h" >&5
11441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11442 echo $ac_n "(cached) $ac_c" 1>&6
11443 else
11444 cat > conftest.$ac_ext <<EOF
11445 #line 11446 "configure"
11446 #include "confdefs.h"
11447 #include <GL/gl.h>
11448 EOF
11449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11450 { (eval echo configure:11451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11452 if test -z "$ac_err"; then
11453 rm -rf conftest*
11454 eval "ac_cv_header_$ac_safe=yes"
11455 else
11456 echo "$ac_err" >&5
11457 echo "configure: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11459 rm -rf conftest*
11460 eval "ac_cv_header_$ac_safe=no"
11461 fi
11462 rm -f conftest*
11463 fi
11464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11465 echo "$ac_t""yes" 1>&6
11466
11467 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
11468 echo "configure:11469: checking for glInitNames in -lGL" >&5
11469 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11471 echo $ac_n "(cached) $ac_c" 1>&6
11472 else
11473 ac_save_LIBS="$LIBS"
11474 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11475 cat > conftest.$ac_ext <<EOF
11476 #line 11477 "configure"
11477 #include "confdefs.h"
11478 /* Override any gcc2 internal prototype to avoid an error. */
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11481 char glInitNames();
11482
11483 int main() {
11484 glInitNames()
11485 ; return 0; }
11486 EOF
11487 if { (eval echo configure:11488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11488 rm -rf conftest*
11489 eval "ac_cv_lib_$ac_lib_var=yes"
11490 else
11491 echo "configure: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11493 rm -rf conftest*
11494 eval "ac_cv_lib_$ac_lib_var=no"
11495 fi
11496 rm -f conftest*
11497 LIBS="$ac_save_LIBS"
11498
11499 fi
11500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11501 echo "$ac_t""yes" 1>&6
11502
11503 OPENGL_LINK="-lGL"
11504 cat >> confdefs.h <<\EOF
11505 #define wxUSE_OPENGL 1
11506 EOF
11507
11508 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11509
11510 else
11511 echo "$ac_t""no" 1>&6
11512
11513 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
11514 echo "configure:11515: checking for glInitNames in -lMesaGL" >&5
11515 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11517 echo $ac_n "(cached) $ac_c" 1>&6
11518 else
11519 ac_save_LIBS="$LIBS"
11520 LIBS="-lMesaGL $LIBS"
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 /* Override any gcc2 internal prototype to avoid an error. */
11525 /* We use char because int might match the return type of a gcc2
11526 builtin and then its argument prototype would still apply. */
11527 char glInitNames();
11528
11529 int main() {
11530 glInitNames()
11531 ; return 0; }
11532 EOF
11533 if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11534 rm -rf conftest*
11535 eval "ac_cv_lib_$ac_lib_var=yes"
11536 else
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11539 rm -rf conftest*
11540 eval "ac_cv_lib_$ac_lib_var=no"
11541 fi
11542 rm -f conftest*
11543 LIBS="$ac_save_LIBS"
11544
11545 fi
11546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11547 echo "$ac_t""yes" 1>&6
11548
11549 OPENGL_LINK="-lMesaGL"
11550 cat >> confdefs.h <<\EOF
11551 #define wxUSE_OPENGL 1
11552 EOF
11553
11554 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11555
11556 else
11557 echo "$ac_t""no" 1>&6
11558 wxUSE_OPENGL=0
11559 fi
11560
11561
11562 fi
11563
11564
11565 else
11566 echo "$ac_t""no" 1>&6
11567 wxUSE_OPENGL=0
11568 fi
11569
11570 fi
11571
11572
11573 if test "$wxUSE_GUI" = "yes"; then
11574 cat >> confdefs.h <<\EOF
11575 #define wxUSE_GUI 1
11576 EOF
11577
11578
11579 else
11580 cat >> confdefs.h <<\EOF
11581 #define wxUSE_NOGUI 1
11582 EOF
11583
11584 fi
11585
11586
11587 if test "$wxUSE_UNIX" = "yes"; then
11588 cat >> confdefs.h <<\EOF
11589 #define wxUSE_UNIX 1
11590 EOF
11591
11592 fi
11593
11594
11595 if test "$wxUSE_APPLE_IEEE" = "yes"; then
11596 cat >> confdefs.h <<\EOF
11597 #define wxUSE_APPLE_IEEE 1
11598 EOF
11599
11600 fi
11601
11602 if test "$wxUSE_WAVE" = "yes"; then
11603 cat >> confdefs.h <<\EOF
11604 #define wxUSE_WAVE 1
11605 EOF
11606
11607 fi
11608
11609 if test "$wxUSE_FILE" = "yes"; then
11610 cat >> confdefs.h <<\EOF
11611 #define wxUSE_FILE 1
11612 EOF
11613
11614 fi
11615
11616 if test "$wxUSE_FS_INET" = "yes"; then
11617 cat >> confdefs.h <<\EOF
11618 #define wxUSE_FS_INET 1
11619 EOF
11620
11621 fi
11622
11623 if test "$wxUSE_FS_ZIP" = "yes"; then
11624 cat >> confdefs.h <<\EOF
11625 #define wxUSE_FS_ZIP 1
11626 EOF
11627
11628 fi
11629
11630 if test "$wxUSE_ZIPSTREAM" = "yes"; then
11631 cat >> confdefs.h <<\EOF
11632 #define wxUSE_ZIPSTREAM 1
11633 EOF
11634
11635 fi
11636
11637 if test "$wxUSE_BUSYINFO" = "yes"; then
11638 cat >> confdefs.h <<\EOF
11639 #define wxUSE_BUSYINFO 1
11640 EOF
11641
11642 fi
11643
11644 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11645 cat >> confdefs.h <<\EOF
11646 #define wxUSE_STD_IOSTREAM 1
11647 EOF
11648
11649 fi
11650
11651 if test "$wxUSE_TEXTFILE" = "yes"; then
11652 if test "$wxUSE_FILE" != "yes"; then
11653 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11654 else
11655 cat >> confdefs.h <<\EOF
11656 #define wxUSE_TEXTFILE 1
11657 EOF
11658
11659 fi
11660 fi
11661
11662 if test "$wxUSE_CONFIG" = "yes" ; then
11663 if test "$wxUSE_TEXTFILE" != "yes"; then
11664 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11665 else
11666 cat >> confdefs.h <<\EOF
11667 #define wxUSE_CONFIG 1
11668 EOF
11669
11670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11671 fi
11672 fi
11673
11674 if test "$wxUSE_INTL" = "yes" ; then
11675 if test "$wxUSE_FILE" != "yes"; then
11676 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11677 else
11678 cat >> confdefs.h <<\EOF
11679 #define wxUSE_INTL 1
11680 EOF
11681
11682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11683 fi
11684 fi
11685
11686 if test "$wxUSE_LOG" = "yes"; then
11687 cat >> confdefs.h <<\EOF
11688 #define wxUSE_LOG 1
11689 EOF
11690
11691 fi
11692
11693 if test "$wxUSE_LONGLONG" = "yes"; then
11694 cat >> confdefs.h <<\EOF
11695 #define wxUSE_LONGLONG 1
11696 EOF
11697
11698 fi
11699
11700 if test "$wxUSE_PLOT" = "yes"; then
11701 cat >> confdefs.h <<\EOF
11702 #define wxUSE_PLOT 1
11703 EOF
11704
11705 fi
11706
11707 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11708 cat >> confdefs.h <<\EOF
11709 #define wxUSE_DIALUP_MANAGER 1
11710 EOF
11711
11712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
11713 fi
11714
11715 if test "$wxUSE_STREAMS" = "yes" ; then
11716 cat >> confdefs.h <<\EOF
11717 #define wxUSE_STREAMS 1
11718 EOF
11719
11720 fi
11721
11722
11723 if test "$wxUSE_TIMEDATE" = "yes"; then
11724 for ac_func in strptime
11725 do
11726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11727 echo "configure:11728: checking for $ac_func" >&5
11728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11730 else
11731 cat > conftest.$ac_ext <<EOF
11732 #line 11733 "configure"
11733 #include "confdefs.h"
11734 /* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char $ac_func(); below. */
11736 #include <assert.h>
11737 /* Override any gcc2 internal prototype to avoid an error. */
11738 /* We use char because int might match the return type of a gcc2
11739 builtin and then its argument prototype would still apply. */
11740 char $ac_func();
11741 char (*f)();
11742
11743 int main() {
11744
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11749 choke me
11750 #else
11751 f = $ac_func;
11752 #endif
11753
11754 ; return 0; }
11755 EOF
11756 if { (eval echo configure:11757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11757 rm -rf conftest*
11758 eval "ac_cv_func_$ac_func=yes"
11759 else
11760 echo "configure: failed program was:" >&5
11761 cat conftest.$ac_ext >&5
11762 rm -rf conftest*
11763 eval "ac_cv_func_$ac_func=no"
11764 fi
11765 rm -f conftest*
11766 fi
11767
11768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11769 echo "$ac_t""yes" 1>&6
11770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11771 cat >> confdefs.h <<EOF
11772 #define $ac_tr_func 1
11773 EOF
11774
11775 else
11776 echo "$ac_t""no" 1>&6
11777 fi
11778 done
11779
11780
11781 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
11782 echo "configure:11783: checking for timezone variable in <time.h>" >&5
11783 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11784 echo $ac_n "(cached) $ac_c" 1>&6
11785 else
11786
11787 cat > conftest.$ac_ext <<EOF
11788 #line 11789 "configure"
11789 #include "confdefs.h"
11790
11791 #include <time.h>
11792
11793 int main() {
11794
11795 int tz;
11796 tz = __timezone;
11797
11798 ; return 0; }
11799 EOF
11800 if { (eval echo configure:11801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11801 rm -rf conftest*
11802
11803 wx_cv_var_timezone=__timezone
11804
11805 else
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -rf conftest*
11809
11810 cat > conftest.$ac_ext <<EOF
11811 #line 11812 "configure"
11812 #include "confdefs.h"
11813
11814 #include <time.h>
11815
11816 int main() {
11817
11818 int tz;
11819 tz = _timezone;
11820
11821 ; return 0; }
11822 EOF
11823 if { (eval echo configure:11824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11824 rm -rf conftest*
11825
11826 wx_cv_var_timezone=_timezone
11827
11828 else
11829 echo "configure: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 rm -rf conftest*
11832
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836
11837 #include <time.h>
11838
11839 int main() {
11840
11841 int tz;
11842 tz = timezone;
11843
11844 ; return 0; }
11845 EOF
11846 if { (eval echo configure:11847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11847 rm -rf conftest*
11848
11849 wx_cv_var_timezone=timezone
11850
11851 else
11852 echo "configure: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 rm -rf conftest*
11855 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
11856
11857 fi
11858 rm -f conftest*
11859
11860
11861 fi
11862 rm -f conftest*
11863
11864
11865 fi
11866 rm -f conftest*
11867
11868
11869 fi
11870
11871 echo "$ac_t""$wx_cv_var_timezone" 1>&6
11872
11873 cat >> confdefs.h <<EOF
11874 #define WX_TIMEZONE $wx_cv_var_timezone
11875 EOF
11876
11877
11878 for ac_func in localtime
11879 do
11880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11881 echo "configure:11882: checking for $ac_func" >&5
11882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11883 echo $ac_n "(cached) $ac_c" 1>&6
11884 else
11885 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 /* System header to define __stub macros and hopefully few prototypes,
11889 which can conflict with char $ac_func(); below. */
11890 #include <assert.h>
11891 /* Override any gcc2 internal prototype to avoid an error. */
11892 /* We use char because int might match the return type of a gcc2
11893 builtin and then its argument prototype would still apply. */
11894 char $ac_func();
11895 char (*f)();
11896
11897 int main() {
11898
11899 /* The GNU C library defines this for functions which it implements
11900 to always fail with ENOSYS. Some functions are actually named
11901 something starting with __ and the normal name is an alias. */
11902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11903 choke me
11904 #else
11905 f = $ac_func;
11906 #endif
11907
11908 ; return 0; }
11909 EOF
11910 if { (eval echo configure:11911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11911 rm -rf conftest*
11912 eval "ac_cv_func_$ac_func=yes"
11913 else
11914 echo "configure: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 rm -rf conftest*
11917 eval "ac_cv_func_$ac_func=no"
11918 fi
11919 rm -f conftest*
11920 fi
11921
11922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11923 echo "$ac_t""yes" 1>&6
11924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11925 cat >> confdefs.h <<EOF
11926 #define $ac_tr_func 1
11927 EOF
11928
11929 else
11930 echo "$ac_t""no" 1>&6
11931 fi
11932 done
11933
11934
11935 if test "$ac_cv_func_localtime" = "yes"; then
11936 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
11937 echo "configure:11938: checking for tm_gmtoff in struct tm" >&5
11938 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11939 echo $ac_n "(cached) $ac_c" 1>&6
11940 else
11941
11942 cat > conftest.$ac_ext <<EOF
11943 #line 11944 "configure"
11944 #include "confdefs.h"
11945
11946 #include <time.h>
11947
11948 int main() {
11949
11950 struct tm tm;
11951 tm.tm_gmtoff++;
11952
11953 ; return 0; }
11954 EOF
11955 if { (eval echo configure:11956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11956 rm -rf conftest*
11957
11958 wx_cv_struct_tm_has_gmtoff=yes
11959 cat >> confdefs.h <<\EOF
11960 #define WX_GMTOFF_IN_TM 1
11961 EOF
11962
11963
11964 else
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11967 rm -rf conftest*
11968 wx_cv_struct_tm_has_gmtoff=no
11969
11970 fi
11971 rm -f conftest*
11972
11973 fi
11974
11975 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11976 fi
11977
11978 for ac_func in gettimeofday ftime
11979 do
11980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11981 echo "configure:11982: checking for $ac_func" >&5
11982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11983 echo $ac_n "(cached) $ac_c" 1>&6
11984 else
11985 cat > conftest.$ac_ext <<EOF
11986 #line 11987 "configure"
11987 #include "confdefs.h"
11988 /* System header to define __stub macros and hopefully few prototypes,
11989 which can conflict with char $ac_func(); below. */
11990 #include <assert.h>
11991 /* Override any gcc2 internal prototype to avoid an error. */
11992 /* We use char because int might match the return type of a gcc2
11993 builtin and then its argument prototype would still apply. */
11994 char $ac_func();
11995 char (*f)();
11996
11997 int main() {
11998
11999 /* The GNU C library defines this for functions which it implements
12000 to always fail with ENOSYS. Some functions are actually named
12001 something starting with __ and the normal name is an alias. */
12002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12003 choke me
12004 #else
12005 f = $ac_func;
12006 #endif
12007
12008 ; return 0; }
12009 EOF
12010 if { (eval echo configure:12011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12011 rm -rf conftest*
12012 eval "ac_cv_func_$ac_func=yes"
12013 else
12014 echo "configure: failed program was:" >&5
12015 cat conftest.$ac_ext >&5
12016 rm -rf conftest*
12017 eval "ac_cv_func_$ac_func=no"
12018 fi
12019 rm -f conftest*
12020 fi
12021
12022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12023 echo "$ac_t""yes" 1>&6
12024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12025 cat >> confdefs.h <<EOF
12026 #define $ac_tr_func 1
12027 EOF
12028 break
12029 else
12030 echo "$ac_t""no" 1>&6
12031 fi
12032 done
12033
12034
12035 if test "$ac_cv_func_gettimeofday" = "yes"; then
12036 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
12037 echo "configure:12038: checking whether gettimeofday takes two arguments" >&5
12038 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12039 echo $ac_n "(cached) $ac_c" 1>&6
12040 else
12041
12042
12043 ac_ext=C
12044 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12045 ac_cpp='$CXXCPP $CPPFLAGS'
12046 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12047 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12048 cross_compiling=$ac_cv_prog_cxx_cross
12049
12050
12051 cat > conftest.$ac_ext <<EOF
12052 #line 12053 "configure"
12053 #include "confdefs.h"
12054
12055 #include <sys/time.h>
12056 #include <unistd.h>
12057
12058 int main() {
12059
12060 struct timeval tv;
12061 struct timezone tz;
12062 gettimeofday(&tv, &tz);
12063
12064 ; return 0; }
12065 EOF
12066 if { (eval echo configure:12067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12067 rm -rf conftest*
12068 wx_cv_func_gettimeofday_has_2_args=yes
12069 else
12070 echo "configure: failed program was:" >&5
12071 cat conftest.$ac_ext >&5
12072 rm -rf conftest*
12073 cat > conftest.$ac_ext <<EOF
12074 #line 12075 "configure"
12075 #include "confdefs.h"
12076
12077 #include <sys/time.h>
12078 #include <unistd.h>
12079
12080 int main() {
12081
12082 struct timeval tv;
12083 gettimeofday(&tv);
12084
12085 ; return 0; }
12086 EOF
12087 if { (eval echo configure:12088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12088 rm -rf conftest*
12089 wx_cv_func_gettimeofday_has_2_args=no
12090 else
12091 echo "configure: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12093 rm -rf conftest*
12094 wx_cv_func_gettimeofday_has_2_args=unknown
12095
12096 fi
12097 rm -f conftest*
12098
12099 fi
12100 rm -f conftest*
12101 ac_ext=c
12102 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12103 ac_cpp='$CPP $CPPFLAGS'
12104 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12105 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12106 cross_compiling=$ac_cv_prog_cc_cross
12107
12108
12109 fi
12110
12111 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
12112
12113 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12114 cat >> confdefs.h <<\EOF
12115 #define WX_GETTIMEOFDAY_NO_TZ 1
12116 EOF
12117
12118 fi
12119 fi
12120
12121 cat >> confdefs.h <<\EOF
12122 #define wxUSE_TIMEDATE 1
12123 EOF
12124
12125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12126 fi
12127
12128
12129 if test "$TOOLKIT" != "MSW"; then
12130
12131 if test "$wxUSE_SOCKETS" = "yes"; then
12132 echo $ac_n "checking for socket""... $ac_c" 1>&6
12133 echo "configure:12134: checking for socket" >&5
12134 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12135 echo $ac_n "(cached) $ac_c" 1>&6
12136 else
12137 cat > conftest.$ac_ext <<EOF
12138 #line 12139 "configure"
12139 #include "confdefs.h"
12140 /* System header to define __stub macros and hopefully few prototypes,
12141 which can conflict with char socket(); below. */
12142 #include <assert.h>
12143 /* Override any gcc2 internal prototype to avoid an error. */
12144 /* We use char because int might match the return type of a gcc2
12145 builtin and then its argument prototype would still apply. */
12146 char socket();
12147 char (*f)();
12148
12149 int main() {
12150
12151 /* The GNU C library defines this for functions which it implements
12152 to always fail with ENOSYS. Some functions are actually named
12153 something starting with __ and the normal name is an alias. */
12154 #if defined (__stub_socket) || defined (__stub___socket)
12155 choke me
12156 #else
12157 f = socket;
12158 #endif
12159
12160 ; return 0; }
12161 EOF
12162 if { (eval echo configure:12163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12163 rm -rf conftest*
12164 eval "ac_cv_func_socket=yes"
12165 else
12166 echo "configure: failed program was:" >&5
12167 cat conftest.$ac_ext >&5
12168 rm -rf conftest*
12169 eval "ac_cv_func_socket=no"
12170 fi
12171 rm -f conftest*
12172 fi
12173
12174 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12175 echo "$ac_t""yes" 1>&6
12176 :
12177 else
12178 echo "$ac_t""no" 1>&6
12179 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
12180 echo "configure:12181: checking for socket in -lsocket" >&5
12181 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12183 echo $ac_n "(cached) $ac_c" 1>&6
12184 else
12185 ac_save_LIBS="$LIBS"
12186 LIBS="-lsocket $LIBS"
12187 cat > conftest.$ac_ext <<EOF
12188 #line 12189 "configure"
12189 #include "confdefs.h"
12190 /* Override any gcc2 internal prototype to avoid an error. */
12191 /* We use char because int might match the return type of a gcc2
12192 builtin and then its argument prototype would still apply. */
12193 char socket();
12194
12195 int main() {
12196 socket()
12197 ; return 0; }
12198 EOF
12199 if { (eval echo configure:12200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12200 rm -rf conftest*
12201 eval "ac_cv_lib_$ac_lib_var=yes"
12202 else
12203 echo "configure: failed program was:" >&5
12204 cat conftest.$ac_ext >&5
12205 rm -rf conftest*
12206 eval "ac_cv_lib_$ac_lib_var=no"
12207 fi
12208 rm -f conftest*
12209 LIBS="$ac_save_LIBS"
12210
12211 fi
12212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12213 echo "$ac_t""yes" 1>&6
12214 INET_LINK="$INET_LINK -lsocket"
12215 else
12216 echo "$ac_t""no" 1>&6
12217
12218 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12219 wxUSE_SOCKETS=no
12220
12221
12222 fi
12223
12224
12225 fi
12226
12227 fi
12228
12229 fi
12230
12231 if test "$wxUSE_SOCKETS" = "yes" ; then
12232 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
12233 echo "configure:12234: checking what is the type of the third argument of getsockname" >&5
12234 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12235 echo $ac_n "(cached) $ac_c" 1>&6
12236 else
12237
12238
12239 ac_ext=C
12240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12241 ac_cpp='$CXXCPP $CPPFLAGS'
12242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12244 cross_compiling=$ac_cv_prog_cxx_cross
12245
12246
12247 cat > conftest.$ac_ext <<EOF
12248 #line 12249 "configure"
12249 #include "confdefs.h"
12250
12251 #include <sys/types.h>
12252 #include <sys/socket.h>
12253
12254 int main() {
12255
12256 socklen_t len;
12257 getsockname(0, 0, &len);
12258
12259 ; return 0; }
12260 EOF
12261 if { (eval echo configure:12262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12262 rm -rf conftest*
12263 wx_cv_type_getsockname3=socklen_t
12264 else
12265 echo "configure: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12267 rm -rf conftest*
12268 cat > conftest.$ac_ext <<EOF
12269 #line 12270 "configure"
12270 #include "confdefs.h"
12271
12272 #include <sys/types.h>
12273 #include <sys/socket.h>
12274
12275 int main() {
12276
12277 size_t len;
12278 getsockname(0, 0, &len);
12279
12280 ; return 0; }
12281 EOF
12282 if { (eval echo configure:12283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12283 rm -rf conftest*
12284 wx_cv_type_getsockname3=size_t
12285 else
12286 echo "configure: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12288 rm -rf conftest*
12289 cat > conftest.$ac_ext <<EOF
12290 #line 12291 "configure"
12291 #include "confdefs.h"
12292
12293 #include <sys/types.h>
12294 #include <sys/socket.h>
12295
12296 int main() {
12297
12298 int len;
12299 getsockname(0, 0, &len);
12300
12301 ; return 0; }
12302 EOF
12303 if { (eval echo configure:12304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12304 rm -rf conftest*
12305 wx_cv_type_getsockname3=int
12306 else
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 rm -rf conftest*
12310 wx_cv_type_getsockname3=unknown
12311
12312 fi
12313 rm -f conftest*
12314
12315 fi
12316 rm -f conftest*
12317
12318 fi
12319 rm -f conftest*
12320
12321 ac_ext=c
12322 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12323 ac_cpp='$CPP $CPPFLAGS'
12324 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12325 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12326 cross_compiling=$ac_cv_prog_cc_cross
12327
12328
12329 fi
12330
12331 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12332
12333 if test "$wx_cv_type_getsockname3" = "unknown"; then
12334 wxUSE_SOCKETS=no
12335 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12336 else
12337 cat >> confdefs.h <<EOF
12338 #define SOCKLEN_T $wx_cv_type_getsockname3
12339 EOF
12340
12341 fi
12342 fi
12343
12344 if test "$wxUSE_SOCKETS" = "yes" ; then
12345 cat >> confdefs.h <<\EOF
12346 #define wxUSE_SOCKETS 1
12347 EOF
12348
12349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
12350 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12351 fi
12352
12353
12354 if test "$TOOLKIT" != "MSW"; then
12355
12356 if test "$wxUSE_JOYSTICK" = 1; then
12357 for ac_hdr in linux/joystick.h
12358 do
12359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12361 echo "configure:12362: checking for $ac_hdr" >&5
12362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12363 echo $ac_n "(cached) $ac_c" 1>&6
12364 else
12365 cat > conftest.$ac_ext <<EOF
12366 #line 12367 "configure"
12367 #include "confdefs.h"
12368 #include <$ac_hdr>
12369 EOF
12370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12371 { (eval echo configure:12372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12373 if test -z "$ac_err"; then
12374 rm -rf conftest*
12375 eval "ac_cv_header_$ac_safe=yes"
12376 else
12377 echo "$ac_err" >&5
12378 echo "configure: failed program was:" >&5
12379 cat conftest.$ac_ext >&5
12380 rm -rf conftest*
12381 eval "ac_cv_header_$ac_safe=no"
12382 fi
12383 rm -f conftest*
12384 fi
12385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12386 echo "$ac_t""yes" 1>&6
12387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12388 cat >> confdefs.h <<EOF
12389 #define $ac_tr_hdr 1
12390 EOF
12391
12392 else
12393 echo "$ac_t""no" 1>&6
12394 fi
12395 done
12396
12397 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12398 wxUSE_JOYSTICK=0
12399 echo "configure: warning: Joystick not supported yb this system" 1>&2
12400 fi
12401 fi
12402
12403 fi
12404
12405 if test "$wxUSE_JOYSTICK" = 1; then
12406 cat >> confdefs.h <<\EOF
12407 #define wxUSE_JOYSTICK 1
12408 EOF
12409
12410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12411 fi
12412
12413
12414 if test "$TOOLKIT" != "MSW"; then
12415
12416 HAVE_DL_FUNCS=0
12417 HAVE_SHL_FUNCS=0
12418 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12419 for ac_func in dlopen
12420 do
12421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12422 echo "configure:12423: checking for $ac_func" >&5
12423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12424 echo $ac_n "(cached) $ac_c" 1>&6
12425 else
12426 cat > conftest.$ac_ext <<EOF
12427 #line 12428 "configure"
12428 #include "confdefs.h"
12429 /* System header to define __stub macros and hopefully few prototypes,
12430 which can conflict with char $ac_func(); below. */
12431 #include <assert.h>
12432 /* Override any gcc2 internal prototype to avoid an error. */
12433 /* We use char because int might match the return type of a gcc2
12434 builtin and then its argument prototype would still apply. */
12435 char $ac_func();
12436 char (*f)();
12437
12438 int main() {
12439
12440 /* The GNU C library defines this for functions which it implements
12441 to always fail with ENOSYS. Some functions are actually named
12442 something starting with __ and the normal name is an alias. */
12443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12444 choke me
12445 #else
12446 f = $ac_func;
12447 #endif
12448
12449 ; return 0; }
12450 EOF
12451 if { (eval echo configure:12452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12452 rm -rf conftest*
12453 eval "ac_cv_func_$ac_func=yes"
12454 else
12455 echo "configure: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12457 rm -rf conftest*
12458 eval "ac_cv_func_$ac_func=no"
12459 fi
12460 rm -f conftest*
12461 fi
12462
12463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12464 echo "$ac_t""yes" 1>&6
12465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12466 cat >> confdefs.h <<EOF
12467 #define $ac_tr_func 1
12468 EOF
12469
12470 cat >> confdefs.h <<\EOF
12471 #define HAVE_DLOPEN 1
12472 EOF
12473
12474 HAVE_DL_FUNCS=1
12475
12476 else
12477 echo "$ac_t""no" 1>&6
12478 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12479 echo "configure:12480: checking for dlopen in -ldl" >&5
12480 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12482 echo $ac_n "(cached) $ac_c" 1>&6
12483 else
12484 ac_save_LIBS="$LIBS"
12485 LIBS="-ldl $LIBS"
12486 cat > conftest.$ac_ext <<EOF
12487 #line 12488 "configure"
12488 #include "confdefs.h"
12489 /* Override any gcc2 internal prototype to avoid an error. */
12490 /* We use char because int might match the return type of a gcc2
12491 builtin and then its argument prototype would still apply. */
12492 char dlopen();
12493
12494 int main() {
12495 dlopen()
12496 ; return 0; }
12497 EOF
12498 if { (eval echo configure:12499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12499 rm -rf conftest*
12500 eval "ac_cv_lib_$ac_lib_var=yes"
12501 else
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12504 rm -rf conftest*
12505 eval "ac_cv_lib_$ac_lib_var=no"
12506 fi
12507 rm -f conftest*
12508 LIBS="$ac_save_LIBS"
12509
12510 fi
12511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12512 echo "$ac_t""yes" 1>&6
12513
12514 cat >> confdefs.h <<\EOF
12515 #define HAVE_DLOPEN 1
12516 EOF
12517
12518 HAVE_DL_FUNCS=1
12519 LIBS="$LIBS -ldl"
12520
12521 else
12522 echo "$ac_t""no" 1>&6
12523
12524 for ac_func in shl_load
12525 do
12526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12527 echo "configure:12528: checking for $ac_func" >&5
12528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12529 echo $ac_n "(cached) $ac_c" 1>&6
12530 else
12531 cat > conftest.$ac_ext <<EOF
12532 #line 12533 "configure"
12533 #include "confdefs.h"
12534 /* System header to define __stub macros and hopefully few prototypes,
12535 which can conflict with char $ac_func(); below. */
12536 #include <assert.h>
12537 /* Override any gcc2 internal prototype to avoid an error. */
12538 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */
12540 char $ac_func();
12541 char (*f)();
12542
12543 int main() {
12544
12545 /* The GNU C library defines this for functions which it implements
12546 to always fail with ENOSYS. Some functions are actually named
12547 something starting with __ and the normal name is an alias. */
12548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12549 choke me
12550 #else
12551 f = $ac_func;
12552 #endif
12553
12554 ; return 0; }
12555 EOF
12556 if { (eval echo configure:12557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12557 rm -rf conftest*
12558 eval "ac_cv_func_$ac_func=yes"
12559 else
12560 echo "configure: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12562 rm -rf conftest*
12563 eval "ac_cv_func_$ac_func=no"
12564 fi
12565 rm -f conftest*
12566 fi
12567
12568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12569 echo "$ac_t""yes" 1>&6
12570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12571 cat >> confdefs.h <<EOF
12572 #define $ac_tr_func 1
12573 EOF
12574
12575 cat >> confdefs.h <<\EOF
12576 #define HAVE_SHL_LOAD 1
12577 EOF
12578
12579 HAVE_SHL_FUNCS=1
12580
12581 else
12582 echo "$ac_t""no" 1>&6
12583 fi
12584 done
12585
12586
12587 fi
12588
12589
12590 fi
12591 done
12592
12593
12594 if test "$HAVE_DL_FUNCS" = 0; then
12595 if test "$HAVE_SHL_FUNCS" = 0; then
12596 if test "$USE_UNIX" = 1; then
12597 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
12598 wxUSE_DYNLIB_CLASS=no
12599 else
12600 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
12601 fi
12602 fi
12603 fi
12604 fi
12605
12606 fi
12607
12608 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
12609 cat >> confdefs.h <<\EOF
12610 #define wxUSE_DYNLIB_CLASS 1
12611 EOF
12612
12613 else
12614 wxUSE_ODBC=no
12615 wxUSE_SERIAL=no
12616 fi
12617
12618
12619 if test "$wxUSE_UNICODE" = "yes" ; then
12620 cat >> confdefs.h <<\EOF
12621 #define wxUSE_UNICODE 1
12622 EOF
12623
12624 fi
12625
12626 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12627 cat >> confdefs.h <<\EOF
12628 #define wxUSE_WCSRTOMBS 1
12629 EOF
12630
12631 fi
12632
12633 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12634 cat >> confdefs.h <<\EOF
12635 #define wxUSE_EXPERIMENTAL_PRINTF 1
12636 EOF
12637
12638 fi
12639
12640
12641 if test "$wxUSE_SERIAL" = "yes" ; then
12642 cat >> confdefs.h <<\EOF
12643 #define wxUSE_SERIAL 1
12644 EOF
12645
12646 fi
12647
12648
12649 IODBC_C_SRC=""
12650 if test "$wxUSE_ODBC" = "yes" ; then
12651 cat >> confdefs.h <<\EOF
12652 #define wxUSE_ODBC 1
12653 EOF
12654
12655 WXODBCFLAG="-D_IODBC_"
12656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12657 IODBCOBJS="\$(IODBC_OBJS)"
12658 else
12659 IODBCOBJS=
12660 fi
12661
12662
12663 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12664 cat >> confdefs.h <<\EOF
12665 #define wxUSE_POSTSCRIPT 1
12666 EOF
12667
12668 fi
12669
12670 cat >> confdefs.h <<\EOF
12671 #define wxUSE_AFM_FOR_POSTSCRIPT 1
12672 EOF
12673
12674
12675 cat >> confdefs.h <<\EOF
12676 #define wxUSE_NORMALIZED_PS_FONTS 1
12677 EOF
12678
12679
12680
12681 if test "$wxUSE_CONSTRAINTS" = "yes"; then
12682 cat >> confdefs.h <<\EOF
12683 #define wxUSE_CONSTRAINTS 1
12684 EOF
12685
12686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12687 fi
12688
12689 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12690 cat >> confdefs.h <<\EOF
12691 #define wxUSE_MDI_ARCHITECTURE 1
12692 EOF
12693
12694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12695 fi
12696
12697 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12698 cat >> confdefs.h <<\EOF
12699 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
12700 EOF
12701
12702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12703 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12705 fi
12706 fi
12707
12708 if test "$wxUSE_HELP" = "yes"; then
12709 cat >> confdefs.h <<\EOF
12710 #define wxUSE_HELP 1
12711 EOF
12712
12713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12714 fi
12715
12716 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12717 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12718 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12719 else
12720 cat >> confdefs.h <<\EOF
12721 #define wxUSE_PRINTING_ARCHITECTURE 1
12722 EOF
12723
12724 fi
12725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12726 fi
12727
12728 if test "$wxUSE_PROLOGIO" = "yes" ; then
12729 cat >> confdefs.h <<\EOF
12730 #define wxUSE_PROLOGIO 1
12731 EOF
12732
12733 fi
12734
12735 if test "$wxUSE_RESOURCES" = "yes" ; then
12736 if test "$wxUSE_PROLOGIO" = "yes" ; then
12737 cat >> confdefs.h <<\EOF
12738 #define wxUSE_RESOURCES 1
12739 EOF
12740
12741 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12742 else
12743 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12744 fi
12745 fi
12746
12747 if test "$wxUSE_X_RESOURCES" = "yes"; then
12748 cat >> confdefs.h <<\EOF
12749 #define wxUSE_X_RESOURCES 1
12750 EOF
12751
12752 fi
12753
12754
12755 if test "$wxUSE_IPC" = "yes"; then
12756 cat >> confdefs.h <<\EOF
12757 #define wxUSE_IPC 1
12758 EOF
12759
12760 fi
12761
12762 if test "$wxUSE_CLIPBOARD" = "yes"; then
12763 cat >> confdefs.h <<\EOF
12764 #define wxUSE_CLIPBOARD 1
12765 EOF
12766
12767 fi
12768
12769 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12770 if test "$wxUSE_GTK" = 1; then
12771 if test "$WXGTK12" != 1; then
12772 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12773 wxUSE_DRAG_AND_DROP=no
12774 fi
12775 fi
12776
12777 if test "$wxUSE_MOTIF" = 1; then
12778 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12779 wxUSE_DRAG_AND_DROP=no
12780 fi
12781
12782 if test "$USE_WIN32" = 1; then
12783 for ac_hdr in ole2.h
12784 do
12785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12787 echo "configure:12788: checking for $ac_hdr" >&5
12788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12789 echo $ac_n "(cached) $ac_c" 1>&6
12790 else
12791 cat > conftest.$ac_ext <<EOF
12792 #line 12793 "configure"
12793 #include "confdefs.h"
12794 #include <$ac_hdr>
12795 EOF
12796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12797 { (eval echo configure:12798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12799 if test -z "$ac_err"; then
12800 rm -rf conftest*
12801 eval "ac_cv_header_$ac_safe=yes"
12802 else
12803 echo "$ac_err" >&5
12804 echo "configure: failed program was:" >&5
12805 cat conftest.$ac_ext >&5
12806 rm -rf conftest*
12807 eval "ac_cv_header_$ac_safe=no"
12808 fi
12809 rm -f conftest*
12810 fi
12811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12812 echo "$ac_t""yes" 1>&6
12813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12814 cat >> confdefs.h <<EOF
12815 #define $ac_tr_hdr 1
12816 EOF
12817
12818 else
12819 echo "$ac_t""no" 1>&6
12820 fi
12821 done
12822
12823 if test "x$HAVE_OLE2_H" = x ; then
12824 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12825 wxUSE_DRAG_AND_DROP=no
12826 fi
12827 fi
12828
12829 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12830 cat >> confdefs.h <<\EOF
12831 #define wxUSE_DRAG_AND_DROP 1
12832 EOF
12833
12834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12835 fi
12836
12837 fi
12838
12839 if test "$wxUSE_SPLINES" = "yes" ; then
12840 cat >> confdefs.h <<\EOF
12841 #define wxUSE_SPLINES 1
12842 EOF
12843
12844 fi
12845
12846
12847 if test "$wxUSE_ACCEL" = "yes"; then
12848 cat >> confdefs.h <<\EOF
12849 #define wxUSE_ACCEL 1
12850 EOF
12851
12852 fi
12853
12854 if test "$wxUSE_CARET" = "yes"; then
12855 cat >> confdefs.h <<\EOF
12856 #define wxUSE_CARET 1
12857 EOF
12858
12859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12860 fi
12861
12862 if test "$wxUSE_COMBOBOX" = "yes"; then
12863 cat >> confdefs.h <<\EOF
12864 #define wxUSE_COMBOBOX 1
12865 EOF
12866
12867 fi
12868
12869 if test "$wxUSE_CHOICE" = "yes"; then
12870 cat >> confdefs.h <<\EOF
12871 #define wxUSE_CHOICE 1
12872 EOF
12873
12874 fi
12875
12876 if test "$wxUSE_BMPBUTTON" = "yes"; then
12877 cat >> confdefs.h <<\EOF
12878 #define wxUSE_BMPBUTTON 1
12879 EOF
12880
12881 fi
12882
12883 if test "$wxUSE_CHECKBOX" = "yes"; then
12884 cat >> confdefs.h <<\EOF
12885 #define wxUSE_CHECKBOX 1
12886 EOF
12887
12888 fi
12889
12890 if test "$wxUSE_CHECKLST" = "yes"; then
12891 cat >> confdefs.h <<\EOF
12892 #define wxUSE_CHECKLISTBOX 1
12893 EOF
12894
12895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12896 fi
12897
12898 if test "$wxUSE_GAUGE" = "yes"; then
12899 cat >> confdefs.h <<\EOF
12900 #define wxUSE_GAUGE 1
12901 EOF
12902
12903 fi
12904
12905 if test "$wxUSE_GRID" = "yes"; then
12906 cat >> confdefs.h <<\EOF
12907 #define wxUSE_GRID 1
12908 EOF
12909
12910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12911 fi
12912
12913 if test "$wxUSE_NEW_GRID" = "yes"; then
12914 cat >> confdefs.h <<\EOF
12915 #define wxUSE_NEW_GRID 1
12916 EOF
12917
12918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12919 fi
12920
12921 if test "$wxUSE_IMAGLIST" = "yes"; then
12922 cat >> confdefs.h <<\EOF
12923 #define wxUSE_IMAGLIST 1
12924 EOF
12925
12926 fi
12927
12928 if test "$wxUSE_LISTBOX" = "yes"; then
12929 cat >> confdefs.h <<\EOF
12930 #define wxUSE_LISTBOX 1
12931 EOF
12932
12933 fi
12934
12935 if test "$wxUSE_LISTCTRL" = "yes"; then
12936 if test "$wxUSE_IMAGLIST" = "yes"; then
12937 cat >> confdefs.h <<\EOF
12938 #define wxUSE_LISTCTRL 1
12939 EOF
12940
12941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12942 else
12943 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12944 fi
12945 fi
12946
12947 if test "$wxUSE_NOTEBOOK" = "yes"; then
12948 cat >> confdefs.h <<\EOF
12949 #define wxUSE_NOTEBOOK 1
12950 EOF
12951
12952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12953 fi
12954
12955 if test "$wxUSE_RADIOBOX" = "yes"; then
12956 cat >> confdefs.h <<\EOF
12957 #define wxUSE_RADIOBOX 1
12958 EOF
12959
12960 fi
12961
12962 if test "$wxUSE_RADIOBTN" = "yes"; then
12963 cat >> confdefs.h <<\EOF
12964 #define wxUSE_RADIOBTN 1
12965 EOF
12966
12967 fi
12968
12969 if test "$wxUSE_SASH" = "yes"; then
12970 cat >> confdefs.h <<\EOF
12971 #define wxUSE_SASH 1
12972 EOF
12973
12974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12975 fi
12976
12977 if test "$wxUSE_SCROLLBAR" = "yes"; then
12978 cat >> confdefs.h <<\EOF
12979 #define wxUSE_SCROLLBAR 1
12980 EOF
12981
12982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
12983 fi
12984
12985 if test "$wxUSE_SLIDER" = "yes"; then
12986 cat >> confdefs.h <<\EOF
12987 #define wxUSE_SLIDER 1
12988 EOF
12989
12990 fi
12991
12992 if test "$wxUSE_SPINBTN" = "yes"; then
12993 cat >> confdefs.h <<\EOF
12994 #define wxUSE_SPINBTN 1
12995 EOF
12996
12997 fi
12998
12999 if test "$wxUSE_SPINCTRL" = "yes"; then
13000 cat >> confdefs.h <<\EOF
13001 #define wxUSE_SPINCTRL 1
13002 EOF
13003
13004 fi
13005
13006 if test "$wxUSE_SPLITTER" = "yes"; then
13007 cat >> confdefs.h <<\EOF
13008 #define wxUSE_SPLITTER 1
13009 EOF
13010
13011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13012 fi
13013
13014 if test "$wxUSE_STATBMP" = "yes"; then
13015 cat >> confdefs.h <<\EOF
13016 #define wxUSE_STATBMP 1
13017 EOF
13018
13019 fi
13020
13021 if test "$wxUSE_STATBOX" = "yes"; then
13022 cat >> confdefs.h <<\EOF
13023 #define wxUSE_STATBOX 1
13024 EOF
13025
13026 fi
13027
13028 if test "$wxUSE_STATLINE" = "yes"; then
13029 if test "$wxUSE_WINE" = 1 ; then
13030 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13031 else
13032 cat >> confdefs.h <<\EOF
13033 #define wxUSE_STATLINE 1
13034 EOF
13035
13036 fi
13037 fi
13038
13039 if test "$wxUSE_STATUSBAR" = "yes"; then
13040 cat >> confdefs.h <<\EOF
13041 #define wxUSE_STATUSBAR 1
13042 EOF
13043
13044
13045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
13046 fi
13047
13048 if test "$wxUSE_TABDIALOG" = "yes"; then
13049 cat >> confdefs.h <<\EOF
13050 #define wxUSE_TAB_DIALOG 1
13051 EOF
13052
13053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13054 fi
13055
13056 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13057 cat >> confdefs.h <<\EOF
13058 #define wxUSE_TOOLBAR_SIMPLE 1
13059 EOF
13060
13061 wxUSE_TOOLBAR="yes"
13062 fi
13063
13064 if test "$wxUSE_TOOLBAR" = "yes"; then
13065 cat >> confdefs.h <<\EOF
13066 #define wxUSE_TOOLBAR 1
13067 EOF
13068
13069
13070 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13071 wxUSE_TOOLBAR_NATIVE="yes"
13072 fi
13073
13074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13075 fi
13076
13077 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13078 cat >> confdefs.h <<\EOF
13079 #define wxUSE_TOOLBAR_NATIVE 1
13080 EOF
13081
13082 fi
13083
13084 if test "$wxUSE_TOOLTIPS" = "yes"; then
13085 if test "$wxUSE_MOTIF" = 1; then
13086 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13087 else
13088 if test "$wxUSE_WINE" = 1; then
13089 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13090 else
13091 cat >> confdefs.h <<\EOF
13092 #define wxUSE_TOOLTIPS 1
13093 EOF
13094
13095 fi
13096 fi
13097 fi
13098
13099 if test "$wxUSE_TREECTRL" = "yes"; then
13100 if test "$wxUSE_IMAGLIST" = "yes"; then
13101 cat >> confdefs.h <<\EOF
13102 #define wxUSE_TREECTRL 1
13103 EOF
13104
13105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13106 else
13107 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13108 fi
13109 fi
13110
13111
13112
13113 if test "$wxUSE_METAFILE" = "yes"; then
13114 cat >> confdefs.h <<\EOF
13115 #define wxUSE_METAFILE 1
13116 EOF
13117
13118 fi
13119
13120 if test "$wxUSE_DIRDLG" = "yes"; then
13121 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13122 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13123 else
13124 if test "$wxUSE_TREECTRL" != "yes"; then
13125 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13126 else
13127 cat >> confdefs.h <<\EOF
13128 #define wxUSE_DIRDLG 1
13129 EOF
13130
13131 fi
13132 fi
13133 fi
13134
13135 if test "$wxUSE_TEXTDLG" = "yes"; then
13136 cat >> confdefs.h <<\EOF
13137 #define wxUSE_TEXTDLG 1
13138 EOF
13139
13140 fi
13141
13142 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13143 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13144 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13145 else
13146 cat >> confdefs.h <<\EOF
13147 #define wxUSE_STARTUP_TIPS 1
13148 EOF
13149
13150 fi
13151 fi
13152
13153 if test "$wxUSE_PROGRESSDLG" = "yes"; then
13154 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13155 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13156 else
13157 cat >> confdefs.h <<\EOF
13158 #define wxUSE_PROGRESSDLG 1
13159 EOF
13160
13161 fi
13162 fi
13163
13164 if test "$wxUSE_MINIFRAME" = "yes"; then
13165 cat >> confdefs.h <<\EOF
13166 #define wxUSE_MINIFRAME 1
13167 EOF
13168
13169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13170 fi
13171
13172 if test "$wxUSE_HTML" = "yes"; then
13173 cat >> confdefs.h <<\EOF
13174 #define wxUSE_HTML 1
13175 EOF
13176
13177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13178 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13179 fi
13180
13181 if test "$wxUSE_VALIDATORS" = "yes"; then
13182 cat >> confdefs.h <<\EOF
13183 #define wxUSE_VALIDATORS 1
13184 EOF
13185
13186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13187 fi
13188
13189 if test "$wxUSE_GIF" = "yes" ; then
13190 cat >> confdefs.h <<\EOF
13191 #define wxUSE_GIF 1
13192 EOF
13193
13194 fi
13195
13196 if test "$wxUSE_PCX" = "yes" ; then
13197 cat >> confdefs.h <<\EOF
13198 #define wxUSE_PCX 1
13199 EOF
13200
13201 fi
13202
13203 if test "$wxUSE_PNM" = "yes" ; then
13204 cat >> confdefs.h <<\EOF
13205 #define wxUSE_PNM 1
13206 EOF
13207
13208 fi
13209
13210
13211 OSINFO=`uname -s -r -m`
13212 OSINFO="\"$OSINFO\""
13213 cat >> confdefs.h <<EOF
13214 #define WXWIN_OS_DESCRIPTION $OSINFO
13215 EOF
13216
13217
13218
13219 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
13220
13221 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
13222 if test "$wxUSE_GUI" = "yes"; then
13223 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13224 fi
13225
13226 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13227
13228 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
13229
13230 if test "$GXX" = yes ; then
13231 CXXWARNINGS="-Wall"
13232 fi
13233 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13234
13235 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13236 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13237
13238 LDFLAGS="$LDFLAGS $PROFILE"
13239
13240 if test "$wxUSE_GUI" = "yes"; then
13241
13242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
13243 font fractal image minimal richedit"
13244
13245 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)"
13246 else
13247 SAMPLES_SUBDIRS=""
13248 fi
13249
13250 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
13319 echo "configure:13320: checking whether ${MAKE-make} sets \${MAKE}" >&5
13320 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13321 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13322 echo $ac_n "(cached) $ac_c" 1>&6
13323 else
13324 cat > conftestmake <<\EOF
13325 all:
13326 @echo 'ac_maketemp="${MAKE}"'
13327 EOF
13328 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13329 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13330 if test -n "$ac_maketemp"; then
13331 eval ac_cv_prog_make_${ac_make}_set=yes
13332 else
13333 eval ac_cv_prog_make_${ac_make}_set=no
13334 fi
13335 rm -f conftestmake
13336 fi
13337 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13338 echo "$ac_t""yes" 1>&6
13339 SET_MAKE=
13340 else
13341 echo "$ac_t""no" 1>&6
13342 SET_MAKE="MAKE=${MAKE-make}"
13343 fi
13344
13345
13346
13347
13348 if test "$wxUSE_GUI" = "yes"; then
13349 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
13350 echo "configure:13351: checking glcanvas subdirectory to use" >&5
13351 if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13352 echo $ac_n "(cached) $ac_c" 1>&6
13353 else
13354
13355 if test "${TOOLKIT_DIR}" = "msw" ; then
13356 wx_cv_path_glcanvas="win"
13357 else
13358 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13359 fi
13360
13361 fi
13362
13363 echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13364
13365 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
13366
13367
13368 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
13369 subdirs="demos samples utils"
13370
13371 fi
13372
13373 trap '' 1 2 15
13374 cat > confcache <<\EOF
13375 # This file is a shell script that caches the results of configure
13376 # tests run on this system so they can be shared between configure
13377 # scripts and configure runs. It is not useful on other systems.
13378 # If it contains results you don't want to keep, you may remove or edit it.
13379 #
13380 # By default, configure uses ./config.cache as the cache file,
13381 # creating it if it does not exist already. You can give configure
13382 # the --cache-file=FILE option to use a different cache file; that is
13383 # what configure does when it calls configure scripts in
13384 # subdirectories, so they share the cache.
13385 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13386 # config.status only pays attention to the cache file if you give it the
13387 # --recheck option to rerun configure.
13388 #
13389 EOF
13390 # The following way of writing the cache mishandles newlines in values,
13391 # but we know of no workaround that is simple, portable, and efficient.
13392 # So, don't put newlines in cache variables' values.
13393 # Ultrix sh set writes to stderr and can't be redirected directly,
13394 # and sets the high bit in the cache file unless we assign to the vars.
13395 (set) 2>&1 |
13396 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13397 *ac_space=\ *)
13398 # `set' does not quote correctly, so add quotes (double-quote substitution
13399 # turns \\\\ into \\, and sed turns \\ into \).
13400 sed -n \
13401 -e "s/'/'\\\\''/g" \
13402 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13403 ;;
13404 *)
13405 # `set' quotes correctly as required by POSIX, so do not add quotes.
13406 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13407 ;;
13408 esac >> confcache
13409 if cmp -s $cache_file confcache; then
13410 :
13411 else
13412 if test -w $cache_file; then
13413 echo "updating cache $cache_file"
13414 cat confcache > $cache_file
13415 else
13416 echo "not updating unwritable cache $cache_file"
13417 fi
13418 fi
13419 rm -f confcache
13420
13421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13422
13423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13424 # Let make expand exec_prefix.
13425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13426
13427 # Any assignment to VPATH causes Sun make to only execute
13428 # the first set of double-colon rules, so remove it if not needed.
13429 # If there is a colon in the path, we need to keep it.
13430 if test "x$srcdir" = x.; then
13431 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13432 fi
13433
13434 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13435
13436 DEFS=-DHAVE_CONFIG_H
13437
13438 # Without the "./", some shells look in PATH for config.status.
13439 : ${CONFIG_STATUS=./config.status}
13440
13441 echo creating $CONFIG_STATUS
13442 rm -f $CONFIG_STATUS
13443 cat > $CONFIG_STATUS <<EOF
13444 #! /bin/sh
13445 # Generated automatically by configure.
13446 # Run this file to recreate the current configuration.
13447 # This directory was configured as follows,
13448 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13449 #
13450 # $0 $ac_configure_args
13451 #
13452 # Compiler output produced by configure, useful for debugging
13453 # configure, is in ./config.log if it exists.
13454
13455 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13456 for ac_option
13457 do
13458 case "\$ac_option" in
13459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13460 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13461 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13462 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13463 echo "$CONFIG_STATUS generated by autoconf version 2.14"
13464 exit 0 ;;
13465 -help | --help | --hel | --he | --h)
13466 echo "\$ac_cs_usage"; exit 0 ;;
13467 *) echo "\$ac_cs_usage"; exit 1 ;;
13468 esac
13469 done
13470
13471 ac_given_srcdir=$srcdir
13472 ac_given_INSTALL="$INSTALL"
13473
13474 trap 'rm -fr `echo "
13475 wx-config
13476 src/make.env
13477 src/makeprog.env
13478 src/makelib.env
13479 Makefile
13480 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13481 EOF
13482 cat >> $CONFIG_STATUS <<EOF
13483
13484 # Protect against being on the right side of a sed subst in config.status.
13485 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13486 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13487 $ac_vpsub
13488 $extrasub
13489 s%@SHELL@%$SHELL%g
13490 s%@CFLAGS@%$CFLAGS%g
13491 s%@CPPFLAGS@%$CPPFLAGS%g
13492 s%@CXXFLAGS@%$CXXFLAGS%g
13493 s%@FFLAGS@%$FFLAGS%g
13494 s%@DEFS@%$DEFS%g
13495 s%@LDFLAGS@%$LDFLAGS%g
13496 s%@LIBS@%$LIBS%g
13497 s%@exec_prefix@%$exec_prefix%g
13498 s%@prefix@%$prefix%g
13499 s%@program_transform_name@%$program_transform_name%g
13500 s%@bindir@%$bindir%g
13501 s%@sbindir@%$sbindir%g
13502 s%@libexecdir@%$libexecdir%g
13503 s%@datadir@%$datadir%g
13504 s%@sysconfdir@%$sysconfdir%g
13505 s%@sharedstatedir@%$sharedstatedir%g
13506 s%@localstatedir@%$localstatedir%g
13507 s%@libdir@%$libdir%g
13508 s%@includedir@%$includedir%g
13509 s%@oldincludedir@%$oldincludedir%g
13510 s%@infodir@%$infodir%g
13511 s%@mandir@%$mandir%g
13512 s%@host@%$host%g
13513 s%@host_alias@%$host_alias%g
13514 s%@host_cpu@%$host_cpu%g
13515 s%@host_vendor@%$host_vendor%g
13516 s%@host_os@%$host_os%g
13517 s%@target@%$target%g
13518 s%@target_alias@%$target_alias%g
13519 s%@target_cpu@%$target_cpu%g
13520 s%@target_vendor@%$target_vendor%g
13521 s%@target_os@%$target_os%g
13522 s%@build@%$build%g
13523 s%@build_alias@%$build_alias%g
13524 s%@build_cpu@%$build_cpu%g
13525 s%@build_vendor@%$build_vendor%g
13526 s%@build_os@%$build_os%g
13527 s%@CC@%$CC%g
13528 s%@CPP@%$CPP%g
13529 s%@CXX@%$CXX%g
13530 s%@CXXCPP@%$CXXCPP%g
13531 s%@RANLIB@%$RANLIB%g
13532 s%@AR@%$AR%g
13533 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13534 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13535 s%@INSTALL_DATA@%$INSTALL_DATA%g
13536 s%@STRIP@%$STRIP%g
13537 s%@YACC@%$YACC%g
13538 s%@LEX@%$LEX%g
13539 s%@LEXLIB@%$LEXLIB%g
13540 s%@LN_S@%$LN_S%g
13541 s%@GTK_CONFIG@%$GTK_CONFIG%g
13542 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13543 s%@GTK_LIBS@%$GTK_LIBS%g
13544 s%@X_CFLAGS@%$X_CFLAGS%g
13545 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13546 s%@X_LIBS@%$X_LIBS%g
13547 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13548 s%@LEX_STEM@%$LEX_STEM%g
13549 s%@PATH_IFS@%$PATH_IFS%g
13550 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13551 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13552 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13553 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13554 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13555 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13556 s%@WX_LIBRARY@%$WX_LIBRARY%g
13557 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13558 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13559 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13560 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13561 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13562 s%@WX_ALL@%$WX_ALL%g
13563 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13564 s%@SHARED_LD@%$SHARED_LD%g
13565 s%@PIC_FLAG@%$PIC_FLAG%g
13566 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
13567 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
13568 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
13569 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
13570 s%@USE_GUI@%$USE_GUI%g
13571 s%@AFMINSTALL@%$AFMINSTALL%g
13572 s%@TOOLKIT@%$TOOLKIT%g
13573 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13574 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13575 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13576 s%@GUIHEADERS@%$GUIHEADERS%g
13577 s%@GUIOBJS@%$GUIOBJS%g
13578 s%@COMMONOBJS@%$COMMONOBJS%g
13579 s%@GENERICOBJS@%$GENERICOBJS%g
13580 s%@GUIDEPS@%$GUIDEPS%g
13581 s%@COMMONDEPS@%$COMMONDEPS%g
13582 s%@GENERICDEPS@%$GENERICDEPS%g
13583 s%@IODBCOBJS@%$IODBCOBJS%g
13584 s%@UNIXOBJS@%$UNIXOBJS%g
13585 s%@UNIXDEPS@%$UNIXDEPS%g
13586 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13587 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13588 s%@GUIDIST@%$GUIDIST%g
13589 s%@PORT_FILES@%$PORT_FILES%g
13590 s%@DISTDIR@%$DISTDIR%g
13591 s%@RPM_SPEC@%$RPM_SPEC%g
13592 s%@RPM_FILES@%$RPM_FILES%g
13593 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13594 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13595 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13596 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13597 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13598 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13599 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
13600 s%@EXTRADEFS@%$EXTRADEFS%g
13601 s%@LD_LIBS@%$LD_LIBS%g
13602 s%@SET_MAKE@%$SET_MAKE%g
13603 s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13604 s%@subdirs@%$subdirs%g
13605
13606 CEOF
13607 EOF
13608
13609 cat >> $CONFIG_STATUS <<\EOF
13610
13611 # Split the substitutions into bite-sized pieces for seds with
13612 # small command number limits, like on Digital OSF/1 and HP-UX.
13613 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13614 ac_file=1 # Number of current file.
13615 ac_beg=1 # First line for current file.
13616 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13617 ac_more_lines=:
13618 ac_sed_cmds=""
13619 while $ac_more_lines; do
13620 if test $ac_beg -gt 1; then
13621 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13622 else
13623 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13624 fi
13625 if test ! -s conftest.s$ac_file; then
13626 ac_more_lines=false
13627 rm -f conftest.s$ac_file
13628 else
13629 if test -z "$ac_sed_cmds"; then
13630 ac_sed_cmds="sed -f conftest.s$ac_file"
13631 else
13632 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13633 fi
13634 ac_file=`expr $ac_file + 1`
13635 ac_beg=$ac_end
13636 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13637 fi
13638 done
13639 if test -z "$ac_sed_cmds"; then
13640 ac_sed_cmds=cat
13641 fi
13642 EOF
13643
13644 cat >> $CONFIG_STATUS <<EOF
13645
13646 CONFIG_FILES=\${CONFIG_FILES-"wx-config
13647 src/make.env
13648 src/makeprog.env
13649 src/makelib.env
13650 Makefile
13651 "}
13652 EOF
13653 cat >> $CONFIG_STATUS <<\EOF
13654 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13655 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13656 case "$ac_file" in
13657 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13658 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13659 *) ac_file_in="${ac_file}.in" ;;
13660 esac
13661
13662 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13663
13664 # Remove last slash and all that follows it. Not all systems have dirname.
13665 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13666 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13667 # The file is in a subdirectory.
13668 test ! -d "$ac_dir" && mkdir "$ac_dir"
13669 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13670 # A "../" for each directory in $ac_dir_suffix.
13671 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13672 else
13673 ac_dir_suffix= ac_dots=
13674 fi
13675
13676 case "$ac_given_srcdir" in
13677 .) srcdir=.
13678 if test -z "$ac_dots"; then top_srcdir=.
13679 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13680 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13681 *) # Relative path.
13682 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13683 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13684 esac
13685
13686 case "$ac_given_INSTALL" in
13687 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13688 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13689 esac
13690
13691 echo creating "$ac_file"
13692 rm -f "$ac_file"
13693 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13694 case "$ac_file" in
13695 *Makefile*) ac_comsub="1i\\
13696 # $configure_input" ;;
13697 *) ac_comsub= ;;
13698 esac
13699
13700 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13701 sed -e "$ac_comsub
13702 s%@configure_input@%$configure_input%g
13703 s%@srcdir@%$srcdir%g
13704 s%@top_srcdir@%$top_srcdir%g
13705 s%@INSTALL@%$INSTALL%g
13706 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13707 fi; done
13708 rm -f conftest.s*
13709
13710 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13711 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13712 #
13713 # ac_d sets the value in "#define NAME VALUE" lines.
13714 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13715 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13716 ac_dC='\3'
13717 ac_dD='%g'
13718 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13719 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13720 ac_uB='\([ ]\)%\1#\2define\3'
13721 ac_uC=' '
13722 ac_uD='\4%g'
13723 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13724 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13725 ac_eB='$%\1#\2define\3'
13726 ac_eC=' '
13727 ac_eD='%g'
13728
13729 if test "${CONFIG_HEADERS+set}" != set; then
13730 EOF
13731 cat >> $CONFIG_STATUS <<EOF
13732 CONFIG_HEADERS="setup.h:setup.h.in"
13733 EOF
13734 cat >> $CONFIG_STATUS <<\EOF
13735 fi
13736 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13738 case "$ac_file" in
13739 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13740 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13741 *) ac_file_in="${ac_file}.in" ;;
13742 esac
13743
13744 echo creating $ac_file
13745
13746 rm -f conftest.frag conftest.in conftest.out
13747 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13748 cat $ac_file_inputs > conftest.in
13749
13750 EOF
13751
13752 # Transform confdefs.h into a sed script conftest.vals that substitutes
13753 # the proper values into config.h.in to produce config.h. And first:
13754 # Protect against being on the right side of a sed subst in config.status.
13755 # Protect against being in an unquoted here document in config.status.
13756 rm -f conftest.vals
13757 cat > conftest.hdr <<\EOF
13758 s/[\\&%]/\\&/g
13759 s%[\\$`]%\\&%g
13760 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13761 s%ac_d%ac_u%gp
13762 s%ac_u%ac_e%gp
13763 EOF
13764 sed -n -f conftest.hdr confdefs.h > conftest.vals
13765 rm -f conftest.hdr
13766
13767 # This sed command replaces #undef with comments. This is necessary, for
13768 # example, in the case of _POSIX_SOURCE, which is predefined and required
13769 # on some systems where configure will not decide to define it.
13770 cat >> conftest.vals <<\EOF
13771 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13772 EOF
13773
13774 # Break up conftest.vals because some shells have a limit on
13775 # the size of here documents, and old seds have small limits too.
13776
13777 rm -f conftest.tail
13778 while :
13779 do
13780 ac_lines=`grep -c . conftest.vals`
13781 # grep -c gives empty output for an empty file on some AIX systems.
13782 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13783 # Write a limited-size here document to conftest.frag.
13784 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13785 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13786 echo 'CEOF
13787 sed -f conftest.frag conftest.in > conftest.out
13788 rm -f conftest.in
13789 mv conftest.out conftest.in
13790 ' >> $CONFIG_STATUS
13791 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13792 rm -f conftest.vals
13793 mv conftest.tail conftest.vals
13794 done
13795 rm -f conftest.vals
13796
13797 cat >> $CONFIG_STATUS <<\EOF
13798 rm -f conftest.frag conftest.h
13799 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13800 cat conftest.in >> conftest.h
13801 rm -f conftest.in
13802 if cmp -s $ac_file conftest.h 2>/dev/null; then
13803 echo "$ac_file is unchanged"
13804 rm -f conftest.h
13805 else
13806 # Remove last slash and all that follows it. Not all systems have dirname.
13807 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13808 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13809 # The file is in a subdirectory.
13810 test ! -d "$ac_dir" && mkdir "$ac_dir"
13811 fi
13812 rm -f $ac_file
13813 mv conftest.h $ac_file
13814 fi
13815 fi; done
13816
13817 EOF
13818 cat >> $CONFIG_STATUS <<EOF
13819
13820 TOOLKIT_DIR="${TOOLKIT_DIR}"
13821
13822
13823 EOF
13824 cat >> $CONFIG_STATUS <<\EOF
13825
13826 chmod +x wx-config
13827 if test ! -d include; then
13828 mkdir include
13829 fi
13830 if test ! -d include/wx; then
13831 mkdir include/wx
13832 fi
13833 if test ! -d include/wx/${TOOLKIT_DIR}; then
13834 mkdir include/wx/${TOOLKIT_DIR}
13835 fi
13836 if test -f setup.h; then
13837 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13838 fi
13839
13840 exit 0
13841 EOF
13842 chmod +x $CONFIG_STATUS
13843 rm -fr confdefs* $ac_clean_files
13844 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13845
13846 if test "$no_recursion" != yes; then
13847
13848 # Remove --cache-file and --srcdir arguments so they do not pile up.
13849 ac_sub_configure_args=
13850 ac_prev=
13851 for ac_arg in $ac_configure_args; do
13852 if test -n "$ac_prev"; then
13853 ac_prev=
13854 continue
13855 fi
13856 case "$ac_arg" in
13857 -cache-file | --cache-file | --cache-fil | --cache-fi \
13858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13859 ac_prev=cache_file ;;
13860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13862 ;;
13863 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13864 ac_prev=srcdir ;;
13865 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13866 ;;
13867 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13868 esac
13869 done
13870
13871 for ac_config_dir in demos samples utils; do
13872
13873 # Do not complain, so a configure script can configure whichever
13874 # parts of a large source tree are present.
13875 if test ! -d $srcdir/$ac_config_dir; then
13876 continue
13877 fi
13878
13879 echo configuring in $ac_config_dir
13880
13881 case "$srcdir" in
13882 .) ;;
13883 *)
13884 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
13885 else
13886 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
13887 fi
13888 ;;
13889 esac
13890
13891 ac_popdir=`pwd`
13892 cd $ac_config_dir
13893
13894 # A "../" for each directory in /$ac_config_dir.
13895 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
13896
13897 case "$srcdir" in
13898 .) # No --srcdir option. We are building in place.
13899 ac_sub_srcdir=$srcdir ;;
13900 /*) # Absolute path.
13901 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
13902 *) # Relative path.
13903 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
13904 esac
13905
13906 # Check for guested configure; otherwise get Cygnus style configure.
13907 if test -f $ac_sub_srcdir/configure; then
13908 ac_sub_configure=$ac_sub_srcdir/configure
13909 elif test -f $ac_sub_srcdir/configure.in; then
13910 ac_sub_configure=$ac_configure
13911 else
13912 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
13913 ac_sub_configure=
13914 fi
13915
13916 # The recursion is here.
13917 if test -n "$ac_sub_configure"; then
13918
13919 # Make the cache file name correct relative to the subdirectory.
13920 case "$cache_file" in
13921 /*) ac_sub_cache_file=$cache_file ;;
13922 *) # Relative path.
13923 ac_sub_cache_file="$ac_dots$cache_file" ;;
13924 esac
13925 case "$ac_given_INSTALL" in
13926 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13927 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13928 esac
13929
13930 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
13931 # The eval makes quoting arguments work.
13932 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
13933 then :
13934 else
13935 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
13936 fi
13937 fi
13938
13939 cd $ac_popdir
13940 done
13941 fi
13942
13943