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