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