]> git.saurik.com Git - wxWidgets.git/blob - configure
3a65d8cb7baa7842204e427e7ca34aa5fd7d569f
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 # Guess values for system-dependent variables and create Makefiles.
43 # Generated automatically using autoconf version 2.13
44 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
45 #
46 # This configure script is free software; the Free Software Foundation
47 # gives unlimited permission to copy, distribute and modify it.
48
49 # Defaults:
50 ac_help=
51 ac_default_prefix=/usr/local
52 # Any additions from configure.in:
53 ac_help="$ac_help
54 --enable-gui use GUI classes"
55 ac_help="$ac_help
56 --with-gtk use GTK+"
57 ac_help="$ac_help
58 --with-motif use Motif/Lesstif"
59 ac_help="$ac_help
60 --with-wine use WINE"
61 ac_help="$ac_help
62 --with-cygwin use Cygwin for MS-Windows"
63 ac_help="$ac_help
64 --with-mingw use GCC Minimal MS-Windows"
65 ac_help="$ac_help
66 --with-pm use OS/2 Presentation Manager"
67 ac_help="$ac_help
68 --with-gtk-prefix=PFX Prefix where GTK is installed"
69 ac_help="$ac_help
70 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
71 ac_help="$ac_help
72 --with-libpng use libpng (PNG image format)"
73 ac_help="$ac_help
74 --with-libjpeg use libjpeg (JPEG file format)"
75 ac_help="$ac_help
76 --with-libtiff use libtiff (TIFF file format)"
77 ac_help="$ac_help
78 --with-opengl use OpenGL (or Mesa)"
79 ac_help="$ac_help
80 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
81 ac_help="$ac_help
82 --with-zlib use zlib for LZW compression"
83 ac_help="$ac_help
84 --with-odbc use the IODBC and wxODBC classes"
85 ac_help="$ac_help
86 --enable-shared create shared library code"
87 ac_help="$ac_help
88 --enable-burnt_name create set name in shared library "
89 ac_help="$ac_help
90 --enable-optimise create optimised code"
91 ac_help="$ac_help
92 --enable-debug same as debug_flag and debug_info"
93 ac_help="$ac_help
94 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
95 ac_help="$ac_help
96 --enable-debug_info create code with debugging information"
97 ac_help="$ac_help
98 --enable-debug_gdb create code with extra GDB debugging information"
99 ac_help="$ac_help
100 --enable-debug_cntxt use wxDebugContext"
101 ac_help="$ac_help
102 --enable-mem_tracing create code with memory tracing"
103 ac_help="$ac_help
104 --enable-profile create code with profiling information"
105 ac_help="$ac_help
106 --enable-no_rtti create code without RTTI information"
107 ac_help="$ac_help
108 --enable-no_exceptions create code without exceptions information"
109 ac_help="$ac_help
110 --enable-permissive compile code disregarding strict ANSI"
111 ac_help="$ac_help
112 --enable-no_deps create code without dependency information"
113 ac_help="$ac_help
114 --enable-intl use internationalization system"
115 ac_help="$ac_help
116 --enable-config use wxConfig (and derived) classes"
117 ac_help="$ac_help
118 --enable-sockets use socket/network classes"
119 ac_help="$ac_help
120 --enable-dialupman use dialup network classes"
121 ac_help="$ac_help
122 --enable-ipc use interprocess communication (wxSocket etc.)"
123 ac_help="$ac_help
124 --enable-apple_ieee use the Apple IEEE codec"
125 ac_help="$ac_help
126 --enable-timedate use date/time classes"
127 ac_help="$ac_help
128 --enable-wave use wxWave class"
129 ac_help="$ac_help
130 --enable-fraction use wxFraction class"
131 ac_help="$ac_help
132 --enable-dynlib use wxLibrary class for DLL loading"
133 ac_help="$ac_help
134 --enable-longlong use wxLongLong class"
135 ac_help="$ac_help
136 --enable-log use logging system"
137 ac_help="$ac_help
138 --enable-streams use wxStream etc classes"
139 ac_help="$ac_help
140 --enable-file use wxFile classes"
141 ac_help="$ac_help
142 --enable-textfile use wxTextFile classes"
143 ac_help="$ac_help
144 --enable-unicode compile wxString with Unicode support"
145 ac_help="$ac_help
146 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
147 ac_help="$ac_help
148 --enable-wxprintfv use wxWindows implementation of vprintf()"
149 ac_help="$ac_help
150 --enable-joystick compile in joystick support (Linux only)"
151 ac_help="$ac_help
152 --enable-std_iostreams use standard C++ stream classes"
153 ac_help="$ac_help
154 --enable-filesystem use virtual file systems classes"
155 ac_help="$ac_help
156 --enable-fs_inet use virtual HTTP/FTP filesystems"
157 ac_help="$ac_help
158 --enable-fs_zip use virtual ZIP filesystems"
159 ac_help="$ac_help
160 --enable-zipstream use wxZipInputStream"
161 ac_help="$ac_help
162 --enable-threads use threads"
163 ac_help="$ac_help
164 --enable-serial use class serialization"
165 ac_help="$ac_help
166 --enable-docview use document view architecture"
167 ac_help="$ac_help
168 --enable-help use help (using external browser at present)"
169 ac_help="$ac_help
170 --enable-constraints use layout-constraints system"
171 ac_help="$ac_help
172 --enable-printarch use printing architecture"
173 ac_help="$ac_help
174 --enable-mdi use multiple document interface architecture"
175 ac_help="$ac_help
176 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
177 ac_help="$ac_help
178 --enable-prologio use Prolog IO library"
179 ac_help="$ac_help
180 --enable-resources use wxWindows resources"
181 ac_help="$ac_help
182 --enable-xresources use X resources for save (default for gtk+)"
183 ac_help="$ac_help
184 --enable-clipboard use wxClipboard classes"
185 ac_help="$ac_help
186 --enable-dnd use Drag'n'Drop classes"
187 ac_help="$ac_help
188 --enable-wxtree make wxTree library"
189 ac_help="$ac_help
190 --enable-controls use all usual controls"
191 ac_help="$ac_help
192 --enable-accel use accelerators"
193 ac_help="$ac_help
194 --enable-caret use wxCaret class"
195 ac_help="$ac_help
196 --enable-bmpbutton use wxBitmapButton class"
197 ac_help="$ac_help
198 --enable-checkbox use wxCheckBox class"
199 ac_help="$ac_help
200 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
201 ac_help="$ac_help
202 --enable-choice use wxChoice class"
203 ac_help="$ac_help
204 --enable-combobox use wxComboBox classes"
205 ac_help="$ac_help
206 --enable-gauge use wxGauge class"
207 ac_help="$ac_help
208 --enable-grid use wxGrid class"
209 ac_help="$ac_help
210 --enable-newgrid use new wxGrid class"
211 ac_help="$ac_help
212 --enable-imaglist use wxImageList class"
213 ac_help="$ac_help
214 --enable-listbox use wxListBox class"
215 ac_help="$ac_help
216 --enable-listctrl use wxListCtrl class"
217 ac_help="$ac_help
218 --enable-notebook use wxNotebook class"
219 ac_help="$ac_help
220 --enable-radiobox use wxRadioBox class"
221 ac_help="$ac_help
222 --enable-radiobtn use wxRadioButton class"
223 ac_help="$ac_help
224 --enable-sash use wxSashWindow class"
225 ac_help="$ac_help
226 --enable-scrollbar use wxScrollBar class and scrollable windows"
227 ac_help="$ac_help
228 --enable-slider use wxSlider class"
229 ac_help="$ac_help
230 --enable-spinbtn use wxSpinButton class"
231 ac_help="$ac_help
232 --enable-spinctrl use wxSpinCtrl class"
233 ac_help="$ac_help
234 --enable-splitter use wxSplitterWindow class"
235 ac_help="$ac_help
236 --enable-statbmp use wxStaticBitmap class"
237 ac_help="$ac_help
238 --enable-statbox use wxStaticBox class"
239 ac_help="$ac_help
240 --enable-statline use wxStaticLine class"
241 ac_help="$ac_help
242 --enable-statusbar use wxStatusBar class"
243 ac_help="$ac_help
244 --enable-tabdialog use wxTabControl class"
245 ac_help="$ac_help
246 --enable-toolbar use wxToolBar class"
247 ac_help="$ac_help
248 --enable-tbarnative use native wxToolBar class"
249 ac_help="$ac_help
250 --enable-tbarsmpl use wxToolBarSimple class"
251 ac_help="$ac_help
252 --enable-treectrl use wxTreeCtrl class"
253 ac_help="$ac_help
254 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
255 ac_help="$ac_help
256 --enable-dirdlg use wxDirDialog"
257 ac_help="$ac_help
258 --enable-textdlg use wxTextDialog"
259 ac_help="$ac_help
260 --enable-tipdlg use startup tips"
261 ac_help="$ac_help
262 --enable-progressdlg use wxProgressDialog"
263 ac_help="$ac_help
264 --enable-miniframe use wxMiniFrame class"
265 ac_help="$ac_help
266 --enable-html use wxHTML sub-library"
267 ac_help="$ac_help
268 --enable-tooltips use wxToolTip class"
269 ac_help="$ac_help
270 --enable-splines use spline drawing code"
271 ac_help="$ac_help
272 --enable-validators use wxValidator and derived classes"
273 ac_help="$ac_help
274 --enable-busyinfo use wxBusyInfo"
275 ac_help="$ac_help
276 --enable-plot use wxPlot"
277 ac_help="$ac_help
278 --enable-gif use gif images (GIF file format)"
279 ac_help="$ac_help
280 --enable-pcx use pcx images (PCX file format)"
281 ac_help="$ac_help
282 --enable-pnm use pnm images (PNM file format)"
283 ac_help="$ac_help
284 --with-x use the X Window System"
285
286 # Initialize some variables set by options.
287 # The variables have the same names as the options, with
288 # dashes changed to underlines.
289 build=NONE
290 cache_file=./config.cache
291 exec_prefix=NONE
292 host=NONE
293 no_create=
294 nonopt=NONE
295 no_recursion=
296 prefix=NONE
297 program_prefix=NONE
298 program_suffix=NONE
299 program_transform_name=s,x,x,
300 silent=
301 site=
302 srcdir=
303 target=NONE
304 verbose=
305 x_includes=NONE
306 x_libraries=NONE
307 bindir='${exec_prefix}/bin'
308 sbindir='${exec_prefix}/sbin'
309 libexecdir='${exec_prefix}/libexec'
310 datadir='${prefix}/share'
311 sysconfdir='${prefix}/etc'
312 sharedstatedir='${prefix}/com'
313 localstatedir='${prefix}/var'
314 libdir='${exec_prefix}/lib'
315 includedir='${prefix}/include'
316 oldincludedir='/usr/include'
317 infodir='${prefix}/info'
318 mandir='${prefix}/man'
319
320 # Initialize some other variables.
321 subdirs=
322 MFLAGS= MAKEFLAGS=
323 SHELL=${CONFIG_SHELL-/bin/sh}
324 # Maximum number of lines to put in a shell here document.
325 ac_max_here_lines=12
326
327 ac_prev=
328 for ac_option
329 do
330
331 # If the previous option needs an argument, assign it.
332 if test -n "$ac_prev"; then
333 eval "$ac_prev=\$ac_option"
334 ac_prev=
335 continue
336 fi
337
338 case "$ac_option" in
339 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
340 *) ac_optarg= ;;
341 esac
342
343 # Accept the important Cygnus configure options, so we can diagnose typos.
344
345 case "$ac_option" in
346
347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
348 ac_prev=bindir ;;
349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
350 bindir="$ac_optarg" ;;
351
352 -build | --build | --buil | --bui | --bu)
353 ac_prev=build ;;
354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
355 build="$ac_optarg" ;;
356
357 -cache-file | --cache-file | --cache-fil | --cache-fi \
358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
359 ac_prev=cache_file ;;
360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
362 cache_file="$ac_optarg" ;;
363
364 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
365 ac_prev=datadir ;;
366 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
367 | --da=*)
368 datadir="$ac_optarg" ;;
369
370 -disable-* | --disable-*)
371 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
375 fi
376 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
377 eval "enable_${ac_feature}=no" ;;
378
379 -enable-* | --enable-*)
380 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
384 fi
385 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "enable_${ac_feature}='$ac_optarg'" ;;
391
392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
394 | --exec | --exe | --ex)
395 ac_prev=exec_prefix ;;
396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
398 | --exec=* | --exe=* | --ex=*)
399 exec_prefix="$ac_optarg" ;;
400
401 -gas | --gas | --ga | --g)
402 # Obsolete; use --with-gas.
403 with_gas=yes ;;
404
405 -help | --help | --hel | --he)
406 # Omit some internal or obsolete options to make the list less imposing.
407 # This message is too long to be a string in the A/UX 3.1 sh.
408 cat << EOF
409 Usage: configure [options] [host]
410 Options: [defaults in brackets after descriptions]
411 Configuration:
412 --cache-file=FILE cache test results in FILE
413 --help print this message
414 --no-create do not create output files
415 --quiet, --silent do not print \`checking...' messages
416 --version print the version of autoconf that created configure
417 Directory and file names:
418 --prefix=PREFIX install architecture-independent files in PREFIX
419 [$ac_default_prefix]
420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
421 [same as prefix]
422 --bindir=DIR user executables in DIR [EPREFIX/bin]
423 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
424 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
425 --datadir=DIR read-only architecture-independent data in DIR
426 [PREFIX/share]
427 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
428 --sharedstatedir=DIR modifiable architecture-independent data in DIR
429 [PREFIX/com]
430 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
431 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
432 --includedir=DIR C header files in DIR [PREFIX/include]
433 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
434 --infodir=DIR info documentation in DIR [PREFIX/info]
435 --mandir=DIR man documentation in DIR [PREFIX/man]
436 --srcdir=DIR find the sources in DIR [configure dir or ..]
437 --program-prefix=PREFIX prepend PREFIX to installed program names
438 --program-suffix=SUFFIX append SUFFIX to installed program names
439 --program-transform-name=PROGRAM
440 run sed PROGRAM on installed program names
441 EOF
442 cat << EOF
443 Host type:
444 --build=BUILD configure for building on BUILD [BUILD=HOST]
445 --host=HOST configure for HOST [guessed]
446 --target=TARGET configure for TARGET [TARGET=HOST]
447 Features and packages:
448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
452 --x-includes=DIR X include files are in DIR
453 --x-libraries=DIR X library files are in DIR
454 EOF
455 if test -n "$ac_help"; then
456 echo "--enable and --with options recognized:$ac_help"
457 fi
458 exit 0 ;;
459
460 -host | --host | --hos | --ho)
461 ac_prev=host ;;
462 -host=* | --host=* | --hos=* | --ho=*)
463 host="$ac_optarg" ;;
464
465 -includedir | --includedir | --includedi | --included | --include \
466 | --includ | --inclu | --incl | --inc)
467 ac_prev=includedir ;;
468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
469 | --includ=* | --inclu=* | --incl=* | --inc=*)
470 includedir="$ac_optarg" ;;
471
472 -infodir | --infodir | --infodi | --infod | --info | --inf)
473 ac_prev=infodir ;;
474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
475 infodir="$ac_optarg" ;;
476
477 -libdir | --libdir | --libdi | --libd)
478 ac_prev=libdir ;;
479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
480 libdir="$ac_optarg" ;;
481
482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
483 | --libexe | --libex | --libe)
484 ac_prev=libexecdir ;;
485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
486 | --libexe=* | --libex=* | --libe=*)
487 libexecdir="$ac_optarg" ;;
488
489 -localstatedir | --localstatedir | --localstatedi | --localstated \
490 | --localstate | --localstat | --localsta | --localst \
491 | --locals | --local | --loca | --loc | --lo)
492 ac_prev=localstatedir ;;
493 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
494 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
495 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
496 localstatedir="$ac_optarg" ;;
497
498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
499 ac_prev=mandir ;;
500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
501 mandir="$ac_optarg" ;;
502
503 -nfp | --nfp | --nf)
504 # Obsolete; use --without-fp.
505 with_fp=no ;;
506
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c)
509 no_create=yes ;;
510
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
513 no_recursion=yes ;;
514
515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
517 | --oldin | --oldi | --old | --ol | --o)
518 ac_prev=oldincludedir ;;
519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
522 oldincludedir="$ac_optarg" ;;
523
524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
525 ac_prev=prefix ;;
526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
527 prefix="$ac_optarg" ;;
528
529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
530 | --program-pre | --program-pr | --program-p)
531 ac_prev=program_prefix ;;
532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
534 program_prefix="$ac_optarg" ;;
535
536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
537 | --program-suf | --program-su | --program-s)
538 ac_prev=program_suffix ;;
539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
541 program_suffix="$ac_optarg" ;;
542
543 -program-transform-name | --program-transform-name \
544 | --program-transform-nam | --program-transform-na \
545 | --program-transform-n | --program-transform- \
546 | --program-transform | --program-transfor \
547 | --program-transfo | --program-transf \
548 | --program-trans | --program-tran \
549 | --progr-tra | --program-tr | --program-t)
550 ac_prev=program_transform_name ;;
551 -program-transform-name=* | --program-transform-name=* \
552 | --program-transform-nam=* | --program-transform-na=* \
553 | --program-transform-n=* | --program-transform-=* \
554 | --program-transform=* | --program-transfor=* \
555 | --program-transfo=* | --program-transf=* \
556 | --program-trans=* | --program-tran=* \
557 | --progr-tra=* | --program-tr=* | --program-t=*)
558 program_transform_name="$ac_optarg" ;;
559
560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
561 | -silent | --silent | --silen | --sile | --sil)
562 silent=yes ;;
563
564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
565 ac_prev=sbindir ;;
566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
567 | --sbi=* | --sb=*)
568 sbindir="$ac_optarg" ;;
569
570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
572 | --sharedst | --shareds | --shared | --share | --shar \
573 | --sha | --sh)
574 ac_prev=sharedstatedir ;;
575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
578 | --sha=* | --sh=*)
579 sharedstatedir="$ac_optarg" ;;
580
581 -site | --site | --sit)
582 ac_prev=site ;;
583 -site=* | --site=* | --sit=*)
584 site="$ac_optarg" ;;
585
586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
587 ac_prev=srcdir ;;
588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
589 srcdir="$ac_optarg" ;;
590
591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
592 | --syscon | --sysco | --sysc | --sys | --sy)
593 ac_prev=sysconfdir ;;
594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
596 sysconfdir="$ac_optarg" ;;
597
598 -target | --target | --targe | --targ | --tar | --ta | --t)
599 ac_prev=target ;;
600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
601 target="$ac_optarg" ;;
602
603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
604 verbose=yes ;;
605
606 -version | --version | --versio | --versi | --vers)
607 echo "configure generated by autoconf version 2.13"
608 exit 0 ;;
609
610 -with-* | --with-*)
611 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
612 # Reject names that are not valid shell variable names.
613 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
614 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
615 fi
616 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 case "$ac_option" in
618 *=*) ;;
619 *) ac_optarg=yes ;;
620 esac
621 eval "with_${ac_package}='$ac_optarg'" ;;
622
623 -without-* | --without-*)
624 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
625 # Reject names that are not valid shell variable names.
626 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
627 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
628 fi
629 ac_package=`echo $ac_package| sed 's/-/_/g'`
630 eval "with_${ac_package}=no" ;;
631
632 --x)
633 # Obsolete; use --with-x.
634 with_x=yes ;;
635
636 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
637 | --x-incl | --x-inc | --x-in | --x-i)
638 ac_prev=x_includes ;;
639 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
640 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
641 x_includes="$ac_optarg" ;;
642
643 -x-libraries | --x-libraries | --x-librarie | --x-librari \
644 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
645 ac_prev=x_libraries ;;
646 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
647 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
648 x_libraries="$ac_optarg" ;;
649
650 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
651 ;;
652
653 *)
654 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
655 echo "configure: warning: $ac_option: invalid host type" 1>&2
656 fi
657 if test "x$nonopt" != xNONE; then
658 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
659 fi
660 nonopt="$ac_option"
661 ;;
662
663 esac
664 done
665
666 if test -n "$ac_prev"; then
667 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
668 fi
669
670 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
671
672 # File descriptor usage:
673 # 0 standard input
674 # 1 file creation
675 # 2 errors and warnings
676 # 3 some systems may open it to /dev/tty
677 # 4 used on the Kubota Titan
678 # 6 checking for... messages and results
679 # 5 compiler messages saved in config.log
680 if test "$silent" = yes; then
681 exec 6>/dev/null
682 else
683 exec 6>&1
684 fi
685 exec 5>./config.log
686
687 echo "\
688 This file contains any messages produced by compilers while
689 running configure, to aid debugging if configure makes a mistake.
690 " 1>&5
691
692 # Strip out --no-create and --no-recursion so they do not pile up.
693 # Also quote any args containing shell metacharacters.
694 ac_configure_args=
695 for ac_arg
696 do
697 case "$ac_arg" in
698 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
699 | --no-cr | --no-c) ;;
700 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
701 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
702 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
703 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
704 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 esac
706 done
707
708 # NLS nuisances.
709 # Only set these to C if already set. These must not be set unconditionally
710 # because not all systems understand e.g. LANG=C (notably SCO).
711 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
712 # Non-C LC_CTYPE values break the ctype check.
713 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
714 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
715 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
716 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
717
718 # confdefs.h avoids OS command line length limits that DEFS can exceed.
719 rm -rf conftest* confdefs.h
720 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
721 echo > confdefs.h
722
723 # A filename unique to this package, relative to the directory that
724 # configure is in, which we can look for to find out if srcdir is correct.
725 ac_unique_file=wx-config.in
726
727 # Find the source files, if location was not specified.
728 if test -z "$srcdir"; then
729 ac_srcdir_defaulted=yes
730 # Try the directory containing this script, then its parent.
731 ac_prog=$0
732 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
733 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
734 srcdir=$ac_confdir
735 if test ! -r $srcdir/$ac_unique_file; then
736 srcdir=..
737 fi
738 else
739 ac_srcdir_defaulted=no
740 fi
741 if test ! -r $srcdir/$ac_unique_file; then
742 if test "$ac_srcdir_defaulted" = yes; then
743 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
744 else
745 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
746 fi
747 fi
748 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
749
750 # Prefer explicitly selected file to automatically selected ones.
751 if test -z "$CONFIG_SITE"; then
752 if test "x$prefix" != xNONE; then
753 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
754 else
755 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
756 fi
757 fi
758 for ac_site_file in $CONFIG_SITE; do
759 if test -r "$ac_site_file"; then
760 echo "loading site script $ac_site_file"
761 . "$ac_site_file"
762 fi
763 done
764
765 if test -r "$cache_file"; then
766 echo "loading cache $cache_file"
767 . $cache_file
768 else
769 echo "creating cache $cache_file"
770 > $cache_file
771 fi
772
773 ac_ext=c
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp='$CPP $CPPFLAGS'
776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling=$ac_cv_prog_cc_cross
779
780 ac_exeext=
781 ac_objext=o
782 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
783 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
784 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
785 ac_n= ac_c='
786 ' ac_t=' '
787 else
788 ac_n=-n ac_c= ac_t=
789 fi
790 else
791 ac_n= ac_c='\c' ac_t=
792 fi
793
794
795
796 ac_aux_dir=
797 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
798 if test -f $ac_dir/install-sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install-sh -c"
801 break
802 elif test -f $ac_dir/install.sh; then
803 ac_aux_dir=$ac_dir
804 ac_install_sh="$ac_aux_dir/install.sh -c"
805 break
806 fi
807 done
808 if test -z "$ac_aux_dir"; then
809 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
810 fi
811 ac_config_guess=$ac_aux_dir/config.guess
812 ac_config_sub=$ac_aux_dir/config.sub
813 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814
815
816 # Do some error checking and defaulting for the host and target type.
817 # The inputs are:
818 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
819 #
820 # The rules are:
821 # 1. You are not allowed to specify --host, --target, and nonopt at the
822 # same time.
823 # 2. Host defaults to nonopt.
824 # 3. If nonopt is not specified, then host defaults to the current host,
825 # as determined by config.guess.
826 # 4. Target and build default to nonopt.
827 # 5. If nonopt is not specified, then target and build default to host.
828
829 # The aliases save the names the user supplied, while $host etc.
830 # will get canonicalized.
831 case $host---$target---$nonopt in
832 NONE---*---* | *---NONE---* | *---*---NONE) ;;
833 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
834 esac
835
836
837 # Make sure we can run config.sub.
838 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
839 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840 fi
841
842 echo $ac_n "checking host system type""... $ac_c" 1>&6
843 echo "configure:844: checking host system type" >&5
844
845 host_alias=$host
846 case "$host_alias" in
847 NONE)
848 case $nonopt in
849 NONE)
850 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
851 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
852 fi ;;
853 *) host_alias=$nonopt ;;
854 esac ;;
855 esac
856
857 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
858 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861 echo "$ac_t""$host" 1>&6
862
863 echo $ac_n "checking target system type""... $ac_c" 1>&6
864 echo "configure:865: checking target system type" >&5
865
866 target_alias=$target
867 case "$target_alias" in
868 NONE)
869 case $nonopt in
870 NONE) target_alias=$host_alias ;;
871 *) target_alias=$nonopt ;;
872 esac ;;
873 esac
874
875 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
876 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879 echo "$ac_t""$target" 1>&6
880
881 echo $ac_n "checking build system type""... $ac_c" 1>&6
882 echo "configure:883: checking build system type" >&5
883
884 build_alias=$build
885 case "$build_alias" in
886 NONE)
887 case $nonopt in
888 NONE) build_alias=$host_alias ;;
889 *) build_alias=$nonopt ;;
890 esac ;;
891 esac
892
893 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
894 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897 echo "$ac_t""$build" 1>&6
898
899 test "$host_alias" != "$target_alias" &&
900 test "$program_prefix$program_suffix$program_transform_name" = \
901 NONENONEs,x,x, &&
902 program_prefix=${target_alias}-
903
904
905
906 WX_MAJOR_VERSION_NUMBER=2
907 WX_MINOR_VERSION_NUMBER=1
908 WX_RELEASE_NUMBER=14
909
910 WX_INTERFACE_AGE=0
911 WX_BINARY_AGE=0
912
913 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
914
915 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
916 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
917 WX_REVISION=$WX_INTERFACE_AGE
918 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
919
920
921 USE_UNIX=1
922 USE_WIN32=0
923 USE_BEOS=0
924
925 USE_LINUX=
926 USE_SGI=
927 USE_HPUX=
928 USE_SYSV=
929 USE_SVR4=
930 USE_AIX=
931 USE_SUN=
932 USE_SOLARIS=
933 USE_SUNOS=
934 USE_ALPHA=
935 USE_OSF=
936 USE_BSD=
937 USE_FREEBSD=
938 USE_VMS=
939 USE_ULTRIX=
940 USE_CYGWIN=
941 USE_MINGW=
942 USE_DATA_GENERAL=
943
944 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
945
946 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
947
948 DEFAULT_wxUSE_GTK=0
949 DEFAULT_wxUSE_MOTIF=0
950 DEFAULT_wxUSE_MSW=0
951 DEFAULT_wxUSE_WINE=0
952 DEFAULT_wxUSE_PM=0
953
954 DEFAULT_DEFAULT_wxUSE_GTK=0
955 DEFAULT_DEFAULT_wxUSE_MOTIF=0
956 DEFAULT_DEFAULT_wxUSE_MSW=0
957 DEFAULT_DEFAULT_wxUSE_WINE=0
958 DEFAULT_DEFAULT_wxUSE_PM=0
959
960 PROGRAM_EXT=
961
962 case "${host}" in
963 *-hp-hpux* )
964 USE_HPUX=1
965 DEFAULT_DEFAULT_wxUSE_MOTIF=1
966 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
967 cat >> confdefs.h <<\EOF
968 #define __HPUX__ 1
969 EOF
970
971 ;;
972 *-*-linux* )
973 USE_LINUX=1
974 cat >> confdefs.h <<\EOF
975 #define __LINUX__ 1
976 EOF
977
978 TMP=`uname -m`
979 if test "x$TMP" = "xalpha"; then
980 USE_ALPHA=1
981 cat >> confdefs.h <<\EOF
982 #define __ALPHA__ 1
983 EOF
984
985 fi
986 DEFAULT_DEFAULT_wxUSE_GTK=1
987 ;;
988 *-*-irix5* | *-*-irix6* )
989 USE_SGI=1
990 USE_SVR4=1
991 cat >> confdefs.h <<\EOF
992 #define __SGI__ 1
993 EOF
994
995 cat >> confdefs.h <<\EOF
996 #define __SVR4__ 1
997 EOF
998
999 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1000 ;;
1001 *-*-solaris2* )
1002 USE_SUN=1
1003 USE_SOLARIS=1
1004 USE_SVR4=1
1005 cat >> confdefs.h <<\EOF
1006 #define __SUN__ 1
1007 EOF
1008
1009 cat >> confdefs.h <<\EOF
1010 #define __SOLARIS__ 1
1011 EOF
1012
1013 cat >> confdefs.h <<\EOF
1014 #define __SVR4__ 1
1015 EOF
1016
1017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1019 ;;
1020 *-*-sunos4* )
1021 USE_SUN=1
1022 USE_SUNOS=1
1023 USE_BSD=1
1024 cat >> confdefs.h <<\EOF
1025 #define __SUN__ 1
1026 EOF
1027
1028 cat >> confdefs.h <<\EOF
1029 #define __SUNOS__ 1
1030 EOF
1031
1032 cat >> confdefs.h <<\EOF
1033 #define __BSD__ 1
1034 EOF
1035
1036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1037 ;;
1038 *-*-freebsd* | *-*-netbsd*)
1039 USE_BSD=1
1040 USE_FREEBSD=1
1041 cat >> confdefs.h <<\EOF
1042 #define __FREEBSD__ 1
1043 EOF
1044
1045 cat >> confdefs.h <<\EOF
1046 #define __BSD__ 1
1047 EOF
1048
1049 DEFAULT_DEFAULT_wxUSE_GTK=1
1050 ;;
1051 *-*-osf* )
1052 USE_ALPHA=1
1053 USE_OSF=1
1054 cat >> confdefs.h <<\EOF
1055 #define __ALPHA__ 1
1056 EOF
1057
1058 cat >> confdefs.h <<\EOF
1059 #define __OSF__ 1
1060 EOF
1061
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1063 ;;
1064 *-*-dgux5* )
1065 USE_ALPHA=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068 #define __ALPHA__ 1
1069 EOF
1070
1071 cat >> confdefs.h <<\EOF
1072 #define __SVR4__ 1
1073 EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-sysv5* )
1078 USE_SYSV=1
1079 USE_SVR4=1
1080 cat >> confdefs.h <<\EOF
1081 #define __SYSV__ 1
1082 EOF
1083
1084 cat >> confdefs.h <<\EOF
1085 #define __SVR4__ 1
1086 EOF
1087
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1089 ;;
1090 *-*-aix* )
1091 USE_AIX=1
1092 USE_SYSV=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095 #define __AIX__ 1
1096 EOF
1097
1098 cat >> confdefs.h <<\EOF
1099 #define __SYSV__ 1
1100 EOF
1101
1102 cat >> confdefs.h <<\EOF
1103 #define __SVR4__ 1
1104 EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108
1109 *-*-cygwin32* | *-*-mingw32* )
1110 USE_UNIX=0
1111 USE_WIN32=1
1112 cat >> confdefs.h <<\EOF
1113 #define __WIN32__ 1
1114 EOF
1115
1116 cat >> confdefs.h <<\EOF
1117 #define __WIN95__ 1
1118 EOF
1119
1120 cat >> confdefs.h <<\EOF
1121 #define __WINDOWS__ 1
1122 EOF
1123
1124 cat >> confdefs.h <<\EOF
1125 #define __GNUWIN32__ 1
1126 EOF
1127
1128 cat >> confdefs.h <<\EOF
1129 #define STRICT 1
1130 EOF
1131
1132 cat >> confdefs.h <<\EOF
1133 #define WINVER 0x0400
1134 EOF
1135
1136 PROGRAM_EXT=".exe"
1137 DEFAULT_DEFAULT_wxUSE_MSW=1
1138 ;;
1139
1140 *-pc-os2_emx )
1141 cat >> confdefs.h <<\EOF
1142 #define __EMX__ 1
1143 EOF
1144
1145 PROGRAM_EXT=".exe"
1146 DEFAULT_DEFAULT_wxUSE_PM=1
1147 ;;
1148
1149 *-*-beos* )
1150 USE_BEOS=1
1151 cat >> confdefs.h <<\EOF
1152 #define __BEOS__ 1
1153 EOF
1154
1155 ;;
1156
1157 *)
1158 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1159 esac
1160
1161 if test "$USE_UNIX" = 1 ; then
1162 wxUSE_UNIX=yes
1163 cat >> confdefs.h <<\EOF
1164 #define __UNIX__ 1
1165 EOF
1166
1167
1168 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1169 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1170 fi
1171
1172 if test "$USE_BEOS" = 1; then
1173 SRC_SUBDIRS="$SRC_SUBDIRS be"
1174 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1175 fi
1176
1177 if test "$USE_LINUX" = 1; then
1178 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1179 echo "configure:1180: checking for gettext in -lc" >&5
1180 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184 ac_save_LIBS="$LIBS"
1185 LIBS="-lc $LIBS"
1186 cat > conftest.$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1189 /* Override any gcc2 internal prototype to avoid an error. */
1190 /* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1192 char gettext();
1193
1194 int main() {
1195 gettext()
1196 ; return 0; }
1197 EOF
1198 if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1199 rm -rf conftest*
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1201 else
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_lib_$ac_lib_var=no"
1206 fi
1207 rm -f conftest*
1208 LIBS="$ac_save_LIBS"
1209
1210 fi
1211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 cat >> confdefs.h <<\EOF
1214 #define wxHAVE_GLIBC2 1
1215 EOF
1216
1217 else
1218 echo "$ac_t""no" 1>&6
1219 fi
1220
1221 fi
1222
1223
1224
1225
1226 wx_arg_cache_file="configarg.cache"
1227 echo "loading argument cache $wx_arg_cache_file"
1228 rm -f ${wx_arg_cache_file}.tmp
1229 touch ${wx_arg_cache_file}.tmp
1230 touch ${wx_arg_cache_file}
1231
1232
1233 DEBUG_CONFIGURE=0
1234 if test $DEBUG_CONFIGURE = 1; then
1235 DEFAULT_wxUSE_THREADS=yes
1236
1237 DEFAULT_wxUSE_SHARED=yes
1238 DEFAULT_wxUSE_BURNT_NAME=no
1239 DEFAULT_wxUSE_OPTIMISE=yes
1240 DEFAULT_wxUSE_PROFILE=no
1241 DEFAULT_wxUSE_NO_DEPS=no
1242 DEFAULT_wxUSE_NO_RTTI=no
1243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1244 DEFAULT_wxUSE_PERMISSIVE=no
1245 DEFAULT_wxUSE_DEBUG_FLAG=yes
1246 DEFAULT_wxUSE_DEBUG_INFO=yes
1247 DEFAULT_wxUSE_DEBUG_GDB=yes
1248 DEFAULT_wxUSE_MEM_TRACING=no
1249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1250 DEFAULT_wxUSE_DMALLOC=no
1251 DEFAULT_wxUSE_APPLE_IEEE=no
1252
1253 DEFAULT_wxUSE_LOG=yes
1254
1255 DEFAULT_wxUSE_GUI=yes
1256
1257 DEFAULT_wxUSE_ZLIB=no
1258 DEFAULT_wxUSE_LIBPNG=no
1259 DEFAULT_wxUSE_LIBJPEG=no
1260 DEFAULT_wxUSE_LIBTIFF=no
1261 DEFAULT_wxUSE_ODBC=no
1262
1263 DEFAULT_wxUSE_STD_IOSTREAM=no
1264 DEFAULT_wxUSE_FILE=no
1265 DEFAULT_wxUSE_TEXTFILE=no
1266 DEFAULT_wxUSE_TIMEDATE=no
1267 DEFAULT_wxUSE_WAVE=no
1268 DEFAULT_wxUSE_INTL=no
1269 DEFAULT_wxUSE_CONFIG=no
1270 DEFAULT_wxUSE_STREAMS=no
1271 DEFAULT_wxUSE_SOCKETS=no
1272 DEFAULT_wxUSE_DIALUP_MANAGER=no
1273 DEFAULT_wxUSE_SERIAL=no
1274 DEFAULT_wxUSE_JOYSTICK=no
1275 DEFAULT_wxUSE_DYNLIB_CLASS=no
1276 DEFAULT_wxUSE_LONGLONG=no
1277
1278 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1279 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1280 DEFAULT_wxUSE_POSTSCRIPT=no
1281
1282 DEFAULT_wxUSE_X_RESOURCES=no
1283 DEFAULT_wxUSE_CLIPBOARD=no
1284 DEFAULT_wxUSE_TOOLTIPS=no
1285 DEFAULT_wxUSE_DRAG_AND_DROP=no
1286 DEFAULT_wxUSE_SPLINES=no
1287
1288 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1289 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1290 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1291
1292 DEFAULT_wxUSE_PROLOGIO=no
1293 DEFAULT_wxUSE_RESOURCES=no
1294 DEFAULT_wxUSE_CONSTRAINTS=no
1295 DEFAULT_wxUSE_IPC=no
1296 DEFAULT_wxUSE_HELP=no
1297 DEFAULT_wxUSE_WXTREE=no
1298 DEFAULT_wxUSE_METAFILE=no
1299
1300 DEFAULT_wxUSE_COMMONDLGS=no
1301 DEFAULT_wxUSE_DIRDLG=no
1302 DEFAULT_wxUSE_TEXTDLG=no
1303 DEFAULT_wxUSE_STARTUP_TIPS=no
1304 DEFAULT_wxUSE_PROGRESSDLG=no
1305 DEFAULT_wxUSE_MINIFRAME=no
1306 DEFAULT_wxUSE_HTML=no
1307 DEFAULT_wxUSE_FILESYSTEM=no
1308 DEFAULT_wxUSE_FS_INET=no
1309 DEFAULT_wxUSE_FS_ZIP=no
1310 DEFAULT_wxUSE_BUSYINFO=no
1311 DEFAULT_wxUSE_ZIPSTREAM=no
1312 DEFAULT_wxUSE_VALIDATORS=yes
1313
1314 DEFAULT_wxUSE_ACCEL=no
1315 DEFAULT_wxUSE_CARET=no
1316 DEFAULT_wxUSE_BMPBUTTON=no
1317 DEFAULT_wxUSE_CHECKBOX=no
1318 DEFAULT_wxUSE_CHECKLST=no
1319 DEFAULT_wxUSE_CHOICE=yes
1320 DEFAULT_wxUSE_COMBOBOX=no
1321 DEFAULT_wxUSE_GAUGE=no
1322 DEFAULT_wxUSE_GRID=no
1323 DEFAULT_wxUSE_NEW_GRID=no
1324 DEFAULT_wxUSE_IMAGLIST=no
1325 DEFAULT_wxUSE_LISTBOX=no
1326 DEFAULT_wxUSE_LISTCTRL=no
1327 DEFAULT_wxUSE_NOTEBOOK=no
1328 DEFAULT_wxUSE_PLOT=no
1329 DEFAULT_wxUSE_RADIOBOX=no
1330 DEFAULT_wxUSE_RADIOBTN=no
1331 DEFAULT_wxUSE_SASH=no
1332 DEFAULT_wxUSE_SCROLLBAR=no
1333 DEFAULT_wxUSE_SLIDER=no
1334 DEFAULT_wxUSE_SPINBTN=no
1335 DEFAULT_wxUSE_SPINCTRL=no
1336 DEFAULT_wxUSE_SPLITTER=no
1337 DEFAULT_wxUSE_STATBMP=no
1338 DEFAULT_wxUSE_STATBOX=no
1339 DEFAULT_wxUSE_STATLINE=no
1340 DEFAULT_wxUSE_STATUSBAR=yes
1341 DEFAULT_wxUSE_TABDIALOG=no
1342 DEFAULT_wxUSE_TOOLBAR=no
1343 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1344 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1345 DEFAULT_wxUSE_TREECTRL=no
1346
1347 DEFAULT_wxUSE_UNICODE=no
1348 DEFAULT_wxUSE_WCSRTOMBS=no
1349
1350 DEFAULT_wxUSE_GIF=no
1351 DEFAULT_wxUSE_PCX=no
1352 DEFAULT_wxUSE_PNM=no
1353 else
1354 DEFAULT_wxUSE_THREADS=yes
1355
1356 DEFAULT_wxUSE_SHARED=yes
1357 DEFAULT_wxUSE_BURNT_NAME=no
1358 DEFAULT_wxUSE_OPTIMISE=yes
1359 DEFAULT_wxUSE_PROFILE=no
1360 DEFAULT_wxUSE_NO_DEPS=no
1361 DEFAULT_wxUSE_NO_RTTI=no
1362 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1363 DEFAULT_wxUSE_PERMISSIVE=no
1364 DEFAULT_wxUSE_DEBUG_FLAG=no
1365 DEFAULT_wxUSE_DEBUG_INFO=no
1366 DEFAULT_wxUSE_DEBUG_GDB=no
1367 DEFAULT_wxUSE_MEM_TRACING=no
1368 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1369 DEFAULT_wxUSE_DMALLOC=no
1370 DEFAULT_wxUSE_APPLE_IEEE=yes
1371
1372 DEFAULT_wxUSE_LOG=yes
1373
1374 DEFAULT_wxUSE_GUI=yes
1375
1376 DEFAULT_wxUSE_ZLIB=yes
1377 DEFAULT_wxUSE_LIBPNG=yes
1378 DEFAULT_wxUSE_LIBJPEG=yes
1379 DEFAULT_wxUSE_LIBTIFF=yes
1380 DEFAULT_wxUSE_ODBC=no
1381
1382 DEFAULT_wxUSE_STD_IOSTREAM=no
1383 DEFAULT_wxUSE_FILE=yes
1384 DEFAULT_wxUSE_TEXTFILE=yes
1385 DEFAULT_wxUSE_TIMEDATE=yes
1386 DEFAULT_wxUSE_WAVE=no
1387 DEFAULT_wxUSE_INTL=yes
1388 DEFAULT_wxUSE_CONFIG=yes
1389 DEFAULT_wxUSE_STREAMS=yes
1390 DEFAULT_wxUSE_SOCKETS=yes
1391 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1392 DEFAULT_wxUSE_SERIAL=yes
1393 DEFAULT_wxUSE_JOYSTICK=yes
1394 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1395 DEFAULT_wxUSE_LONGLONG=yes
1396
1397 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1398 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1399 DEFAULT_wxUSE_POSTSCRIPT=yes
1400
1401 DEFAULT_wxUSE_X_RESOURCES=no
1402 DEFAULT_wxUSE_CLIPBOARD=yes
1403 DEFAULT_wxUSE_TOOLTIPS=yes
1404 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1405 DEFAULT_wxUSE_SPLINES=yes
1406
1407 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1408 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1409 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1410
1411 DEFAULT_wxUSE_PROLOGIO=yes
1412 DEFAULT_wxUSE_RESOURCES=yes
1413 DEFAULT_wxUSE_CONSTRAINTS=yes
1414 DEFAULT_wxUSE_IPC=yes
1415 DEFAULT_wxUSE_HELP=yes
1416 DEFAULT_wxUSE_WXTREE=yes
1417 DEFAULT_wxUSE_METAFILE=yes
1418
1419 DEFAULT_wxUSE_COMMONDLGS=yes
1420 DEFAULT_wxUSE_DIRDLG=yes
1421 DEFAULT_wxUSE_TEXTDLG=yes
1422 DEFAULT_wxUSE_STARTUP_TIPS=yes
1423 DEFAULT_wxUSE_PROGRESSDLG=yes
1424 DEFAULT_wxUSE_MINIFRAME=yes
1425 DEFAULT_wxUSE_HTML=yes
1426 DEFAULT_wxUSE_FILESYSTEM=yes
1427 DEFAULT_wxUSE_FS_INET=yes
1428 DEFAULT_wxUSE_FS_ZIP=yes
1429 DEFAULT_wxUSE_BUSYINFO=yes
1430 DEFAULT_wxUSE_ZIPSTREAM=yes
1431 DEFAULT_wxUSE_VALIDATORS=yes
1432
1433 DEFAULT_wxUSE_ACCEL=yes
1434 DEFAULT_wxUSE_CARET=yes
1435 DEFAULT_wxUSE_BMPBUTTON=yes
1436 DEFAULT_wxUSE_CHECKBOX=yes
1437 DEFAULT_wxUSE_CHECKLST=yes
1438 DEFAULT_wxUSE_CHOICE=yes
1439 DEFAULT_wxUSE_COMBOBOX=yes
1440 DEFAULT_wxUSE_GAUGE=yes
1441 DEFAULT_wxUSE_GRID=yes
1442 DEFAULT_wxUSE_NEW_GRID=yes
1443 DEFAULT_wxUSE_IMAGLIST=yes
1444 DEFAULT_wxUSE_LISTBOX=yes
1445 DEFAULT_wxUSE_LISTCTRL=yes
1446 DEFAULT_wxUSE_NOTEBOOK=yes
1447 DEFAULT_wxUSE_PLOT=yes
1448 DEFAULT_wxUSE_RADIOBOX=yes
1449 DEFAULT_wxUSE_RADIOBTN=yes
1450 DEFAULT_wxUSE_SASH=yes
1451 DEFAULT_wxUSE_SCROLLBAR=yes
1452 DEFAULT_wxUSE_SLIDER=yes
1453 DEFAULT_wxUSE_SPINBTN=yes
1454 DEFAULT_wxUSE_SPINCTRL=yes
1455 DEFAULT_wxUSE_SPLITTER=yes
1456 DEFAULT_wxUSE_STATBMP=yes
1457 DEFAULT_wxUSE_STATBOX=yes
1458 DEFAULT_wxUSE_STATLINE=yes
1459 DEFAULT_wxUSE_STATUSBAR=yes
1460 DEFAULT_wxUSE_TABDIALOG=no
1461 DEFAULT_wxUSE_TOOLBAR=yes
1462 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1463 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1464 DEFAULT_wxUSE_TREECTRL=yes
1465
1466 DEFAULT_wxUSE_UNICODE=no
1467 DEFAULT_wxUSE_WCSRTOMBS=no
1468
1469 DEFAULT_wxUSE_GIF=yes
1470 DEFAULT_wxUSE_PCX=yes
1471 DEFAULT_wxUSE_PNM=yes
1472 fi
1473
1474
1475
1476 for toolkit in `echo $ALL_TOOLKITS`; do
1477 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1478 if test "x$LINE" != x ; then
1479 has_toolkit_in_cache=1
1480 eval "DEFAULT_$LINE"
1481 eval "CACHE_$toolkit=1"
1482 fi
1483 done
1484
1485
1486
1487 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1488 echo "configure:1489: checking "for --enable-gui"" >&5
1489 no_cache=0
1490 # Check whether --enable-gui or --disable-gui was given.
1491 if test "${enable_gui+set}" = set; then
1492 enableval="$enable_gui"
1493
1494 if test "$enableval" = yes; then
1495 ac_cv_use_gui='wxUSE_GUI=yes'
1496 else
1497 ac_cv_use_gui='wxUSE_GUI=no'
1498 fi
1499
1500 else
1501
1502 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1503 if test "x$LINE" != x ; then
1504 eval "DEFAULT_$LINE"
1505 else
1506 no_cache=1
1507 fi
1508
1509 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1510
1511 fi
1512
1513
1514 eval "$ac_cv_use_gui"
1515 if test "$no_cache" != 1; then
1516 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1517 fi
1518
1519 if test "$wxUSE_GUI" = yes; then
1520 echo "$ac_t""yes" 1>&6
1521 else
1522 echo "$ac_t""no" 1>&6
1523 fi
1524
1525
1526 if test "$wxUSE_GUI" = "yes"; then
1527
1528 # Check whether --with-gtk or --without-gtk was given.
1529 if test "${with_gtk+set}" = set; then
1530 withval="$with_gtk"
1531 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1532 fi
1533
1534 # Check whether --with-motif or --without-motif was given.
1535 if test "${with_motif+set}" = set; then
1536 withval="$with_motif"
1537 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1538 fi
1539
1540 # Check whether --with-wine or --without-wine was given.
1541 if test "${with_wine+set}" = set; then
1542 withval="$with_wine"
1543 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1544 fi
1545
1546 # Check whether --with-cygwin or --without-cygwin was given.
1547 if test "${with_cygwin+set}" = set; then
1548 withval="$with_cygwin"
1549 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1550 fi
1551
1552 # Check whether --with-mingw or --without-mingw was given.
1553 if test "${with_mingw+set}" = set; then
1554 withval="$with_mingw"
1555 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1556 fi
1557
1558 # Check whether --with-pm or --without-pm was given.
1559 if test "${with_pm+set}" = set; then
1560 withval="$with_pm"
1561 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1562 fi
1563
1564
1565 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1566 if test "${with_gtk_prefix+set}" = set; then
1567 withval="$with_gtk_prefix"
1568 gtk_config_prefix="$withval"
1569 else
1570 gtk_config_prefix=""
1571 fi
1572
1573 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1574 if test "${with_gtk_exec_prefix+set}" = set; then
1575 withval="$with_gtk_exec_prefix"
1576 gtk_config_exec_prefix="$withval"
1577 else
1578 gtk_config_exec_prefix=""
1579 fi
1580
1581
1582
1583 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1584 echo "configure:1585: checking "for --with-libpng"" >&5
1585 no_cache=0
1586 # Check whether --with-libpng or --without-libpng was given.
1587 if test "${with_libpng+set}" = set; then
1588 withval="$with_libpng"
1589
1590 if test "$withval" = yes; then
1591 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1592 else
1593 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1594 fi
1595
1596 else
1597
1598 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1599 if test "x$LINE" != x ; then
1600 eval "DEFAULT_$LINE"
1601 else
1602 no_cache=1
1603 fi
1604
1605 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1606
1607 fi
1608
1609
1610 eval "$ac_cv_use_libpng"
1611 if test "$no_cache" != 1; then
1612 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1613 fi
1614
1615 if test "$wxUSE_LIBPNG" = yes; then
1616 echo "$ac_t""yes" 1>&6
1617 else
1618 echo "$ac_t""no" 1>&6
1619 fi
1620
1621
1622 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1623 echo "configure:1624: checking "for --with-libjpeg"" >&5
1624 no_cache=0
1625 # Check whether --with-libjpeg or --without-libjpeg was given.
1626 if test "${with_libjpeg+set}" = set; then
1627 withval="$with_libjpeg"
1628
1629 if test "$withval" = yes; then
1630 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1631 else
1632 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1633 fi
1634
1635 else
1636
1637 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1638 if test "x$LINE" != x ; then
1639 eval "DEFAULT_$LINE"
1640 else
1641 no_cache=1
1642 fi
1643
1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1645
1646 fi
1647
1648
1649 eval "$ac_cv_use_libjpeg"
1650 if test "$no_cache" != 1; then
1651 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1652 fi
1653
1654 if test "$wxUSE_LIBJPEG" = yes; then
1655 echo "$ac_t""yes" 1>&6
1656 else
1657 echo "$ac_t""no" 1>&6
1658 fi
1659
1660
1661 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1662 echo "configure:1663: checking "for --with-libtiff"" >&5
1663 no_cache=0
1664 # Check whether --with-libtiff or --without-libtiff was given.
1665 if test "${with_libtiff+set}" = set; then
1666 withval="$with_libtiff"
1667
1668 if test "$withval" = yes; then
1669 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1670 else
1671 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1672 fi
1673
1674 else
1675
1676 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1677 if test "x$LINE" != x ; then
1678 eval "DEFAULT_$LINE"
1679 else
1680 no_cache=1
1681 fi
1682
1683 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1684
1685 fi
1686
1687
1688 eval "$ac_cv_use_libtiff"
1689 if test "$no_cache" != 1; then
1690 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1691 fi
1692
1693 if test "$wxUSE_LIBTIFF" = yes; then
1694 echo "$ac_t""yes" 1>&6
1695 else
1696 echo "$ac_t""no" 1>&6
1697 fi
1698
1699
1700 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1701 echo "configure:1702: checking "for --with-opengl"" >&5
1702 no_cache=0
1703 # Check whether --with-opengl or --without-opengl was given.
1704 if test "${with_opengl+set}" = set; then
1705 withval="$with_opengl"
1706
1707 if test "$withval" = yes; then
1708 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1709 else
1710 ac_cv_use_opengl='wxUSE_OPENGL=no'
1711 fi
1712
1713 else
1714
1715 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1716 if test "x$LINE" != x ; then
1717 eval "DEFAULT_$LINE"
1718 else
1719 no_cache=1
1720 fi
1721
1722 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1723
1724 fi
1725
1726
1727 eval "$ac_cv_use_opengl"
1728 if test "$no_cache" != 1; then
1729 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1730 fi
1731
1732 if test "$wxUSE_OPENGL" = yes; then
1733 echo "$ac_t""yes" 1>&6
1734 else
1735 echo "$ac_t""no" 1>&6
1736 fi
1737
1738
1739 fi
1740
1741
1742 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1743 echo "configure:1744: checking "for --with-dmalloc"" >&5
1744 no_cache=0
1745 # Check whether --with-dmalloc or --without-dmalloc was given.
1746 if test "${with_dmalloc+set}" = set; then
1747 withval="$with_dmalloc"
1748
1749 if test "$withval" = yes; then
1750 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1751 else
1752 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1753 fi
1754
1755 else
1756
1757 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1758 if test "x$LINE" != x ; then
1759 eval "DEFAULT_$LINE"
1760 else
1761 no_cache=1
1762 fi
1763
1764 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1765
1766 fi
1767
1768
1769 eval "$ac_cv_use_dmalloc"
1770 if test "$no_cache" != 1; then
1771 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1772 fi
1773
1774 if test "$wxUSE_DMALLOC" = yes; then
1775 echo "$ac_t""yes" 1>&6
1776 else
1777 echo "$ac_t""no" 1>&6
1778 fi
1779
1780
1781 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1782 echo "configure:1783: checking "for --with-zlib"" >&5
1783 no_cache=0
1784 # Check whether --with-zlib or --without-zlib was given.
1785 if test "${with_zlib+set}" = set; then
1786 withval="$with_zlib"
1787
1788 if test "$withval" = yes; then
1789 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1790 elif test "$withval" = sys; then
1791 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1792 else
1793 ac_cv_use_zlib='wxUSE_ZLIB=no'
1794 fi
1795
1796 else
1797
1798 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1799 if test "x$LINE" != x ; then
1800 eval "DEFAULT_$LINE"
1801 else
1802 no_cache=1
1803 fi
1804
1805 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1806
1807 fi
1808
1809
1810 eval "$ac_cv_use_zlib"
1811 if test "$no_cache" != 1; then
1812 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1813 fi
1814
1815 if test "$wxUSE_ZLIB" = yes; then
1816 echo "$ac_t""yes" 1>&6
1817 elif test "$wxUSE_ZLIB" = no; then
1818 echo "$ac_t""no" 1>&6
1819 else
1820 echo "$ac_t""system version" 1>&6
1821 fi
1822
1823
1824 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1825 echo "configure:1826: checking "for --with-odbc"" >&5
1826 no_cache=0
1827 # Check whether --with-odbc or --without-odbc was given.
1828 if test "${with_odbc+set}" = set; then
1829 withval="$with_odbc"
1830
1831 if test "$withval" = yes; then
1832 ac_cv_use_odbc='wxUSE_ODBC=yes'
1833 else
1834 ac_cv_use_odbc='wxUSE_ODBC=no'
1835 fi
1836
1837 else
1838
1839 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1840 if test "x$LINE" != x ; then
1841 eval "DEFAULT_$LINE"
1842 else
1843 no_cache=1
1844 fi
1845
1846 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1847
1848 fi
1849
1850
1851 eval "$ac_cv_use_odbc"
1852 if test "$no_cache" != 1; then
1853 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1854 fi
1855
1856 if test "$wxUSE_ODBC" = yes; then
1857 echo "$ac_t""yes" 1>&6
1858 else
1859 echo "$ac_t""no" 1>&6
1860 fi
1861
1862
1863
1864
1865
1866 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1867 echo "configure:1868: checking "for --enable-shared"" >&5
1868 no_cache=0
1869 # Check whether --enable-shared or --disable-shared was given.
1870 if test "${enable_shared+set}" = set; then
1871 enableval="$enable_shared"
1872
1873 if test "$enableval" = yes; then
1874 ac_cv_use_shared='wxUSE_SHARED=yes'
1875 else
1876 ac_cv_use_shared='wxUSE_SHARED=no'
1877 fi
1878
1879 else
1880
1881 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1882 if test "x$LINE" != x ; then
1883 eval "DEFAULT_$LINE"
1884 else
1885 no_cache=1
1886 fi
1887
1888 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1889
1890 fi
1891
1892
1893 eval "$ac_cv_use_shared"
1894 if test "$no_cache" != 1; then
1895 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1896 fi
1897
1898 if test "$wxUSE_SHARED" = yes; then
1899 echo "$ac_t""yes" 1>&6
1900 else
1901 echo "$ac_t""no" 1>&6
1902 fi
1903
1904
1905 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
1906 echo "configure:1907: checking "for --enable-burnt_name"" >&5
1907 no_cache=0
1908 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1909 if test "${enable_burnt_name+set}" = set; then
1910 enableval="$enable_burnt_name"
1911
1912 if test "$enableval" = yes; then
1913 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1914 else
1915 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1916 fi
1917
1918 else
1919
1920 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1921 if test "x$LINE" != x ; then
1922 eval "DEFAULT_$LINE"
1923 else
1924 no_cache=1
1925 fi
1926
1927 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1928
1929 fi
1930
1931
1932 eval "$ac_cv_use_burnt_name"
1933 if test "$no_cache" != 1; then
1934 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1935 fi
1936
1937 if test "$wxUSE_BURNT_NAME" = yes; then
1938 echo "$ac_t""yes" 1>&6
1939 else
1940 echo "$ac_t""no" 1>&6
1941 fi
1942
1943
1944 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1945 echo "configure:1946: checking "for --enable-optimise"" >&5
1946 no_cache=0
1947 # Check whether --enable-optimise or --disable-optimise was given.
1948 if test "${enable_optimise+set}" = set; then
1949 enableval="$enable_optimise"
1950
1951 if test "$enableval" = yes; then
1952 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1953 else
1954 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1955 fi
1956
1957 else
1958
1959 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1960 if test "x$LINE" != x ; then
1961 eval "DEFAULT_$LINE"
1962 else
1963 no_cache=1
1964 fi
1965
1966 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1967
1968 fi
1969
1970
1971 eval "$ac_cv_use_optimise"
1972 if test "$no_cache" != 1; then
1973 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1974 fi
1975
1976 if test "$wxUSE_OPTIMISE" = yes; then
1977 echo "$ac_t""yes" 1>&6
1978 else
1979 echo "$ac_t""no" 1>&6
1980 fi
1981
1982
1983 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1984 echo "configure:1985: checking "for --enable-debug"" >&5
1985 no_cache=0
1986 # Check whether --enable-debug or --disable-debug was given.
1987 if test "${enable_debug+set}" = set; then
1988 enableval="$enable_debug"
1989
1990 if test "$enableval" = yes; then
1991 ac_cv_use_debug='wxUSE_DEBUG=yes'
1992 else
1993 ac_cv_use_debug='wxUSE_DEBUG=no'
1994 fi
1995
1996 else
1997
1998 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1999 if test "x$LINE" != x ; then
2000 eval "DEFAULT_$LINE"
2001 else
2002 no_cache=1
2003 fi
2004
2005 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2006
2007 fi
2008
2009
2010 eval "$ac_cv_use_debug"
2011 if test "$no_cache" != 1; then
2012 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2013 fi
2014
2015 if test "$wxUSE_DEBUG" = yes; then
2016 echo "$ac_t""yes" 1>&6
2017 else
2018 echo "$ac_t""no" 1>&6
2019 fi
2020
2021
2022 if test "$wxUSE_DEBUG" = "yes"; then
2023 DEFAULT_wxUSE_DEBUG_FLAG=yes
2024 DEFAULT_wxUSE_DEBUG_INFO=yes
2025 elif test "$wxUSE_DEBUG" = "no"; then
2026 DEFAULT_wxUSE_DEBUG_FLAG=no
2027 DEFAULT_wxUSE_DEBUG_INFO=no
2028 fi
2029
2030
2031 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2032 echo "configure:2033: checking "for --enable-debug_flag"" >&5
2033 no_cache=0
2034 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2035 if test "${enable_debug_flag+set}" = set; then
2036 enableval="$enable_debug_flag"
2037
2038 if test "$enableval" = yes; then
2039 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2040 else
2041 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2042 fi
2043
2044 else
2045
2046 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2047 if test "x$LINE" != x ; then
2048 eval "DEFAULT_$LINE"
2049 else
2050 no_cache=1
2051 fi
2052
2053 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2054
2055 fi
2056
2057
2058 eval "$ac_cv_use_debug_flag"
2059 if test "$no_cache" != 1; then
2060 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2061 fi
2062
2063 if test "$wxUSE_DEBUG_FLAG" = yes; then
2064 echo "$ac_t""yes" 1>&6
2065 else
2066 echo "$ac_t""no" 1>&6
2067 fi
2068
2069
2070 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2071 echo "configure:2072: checking "for --enable-debug_info"" >&5
2072 no_cache=0
2073 # Check whether --enable-debug_info or --disable-debug_info was given.
2074 if test "${enable_debug_info+set}" = set; then
2075 enableval="$enable_debug_info"
2076
2077 if test "$enableval" = yes; then
2078 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2079 else
2080 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2081 fi
2082
2083 else
2084
2085 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2086 if test "x$LINE" != x ; then
2087 eval "DEFAULT_$LINE"
2088 else
2089 no_cache=1
2090 fi
2091
2092 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2093
2094 fi
2095
2096
2097 eval "$ac_cv_use_debug_info"
2098 if test "$no_cache" != 1; then
2099 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2100 fi
2101
2102 if test "$wxUSE_DEBUG_INFO" = yes; then
2103 echo "$ac_t""yes" 1>&6
2104 else
2105 echo "$ac_t""no" 1>&6
2106 fi
2107
2108
2109 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2110 echo "configure:2111: checking "for --enable-debug_gdb"" >&5
2111 no_cache=0
2112 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2113 if test "${enable_debug_gdb+set}" = set; then
2114 enableval="$enable_debug_gdb"
2115
2116 if test "$enableval" = yes; then
2117 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2118 else
2119 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2120 fi
2121
2122 else
2123
2124 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2125 if test "x$LINE" != x ; then
2126 eval "DEFAULT_$LINE"
2127 else
2128 no_cache=1
2129 fi
2130
2131 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2132
2133 fi
2134
2135
2136 eval "$ac_cv_use_debug_gdb"
2137 if test "$no_cache" != 1; then
2138 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2139 fi
2140
2141 if test "$wxUSE_DEBUG_GDB" = yes; then
2142 echo "$ac_t""yes" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2145 fi
2146
2147
2148 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2149 echo "configure:2150: checking "for --enable-debug_cntxt"" >&5
2150 no_cache=0
2151 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2152 if test "${enable_debug_cntxt+set}" = set; then
2153 enableval="$enable_debug_cntxt"
2154
2155 if test "$enableval" = yes; then
2156 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2157 else
2158 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2159 fi
2160
2161 else
2162
2163 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2164 if test "x$LINE" != x ; then
2165 eval "DEFAULT_$LINE"
2166 else
2167 no_cache=1
2168 fi
2169
2170 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2171
2172 fi
2173
2174
2175 eval "$ac_cv_use_debug_cntxt"
2176 if test "$no_cache" != 1; then
2177 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2178 fi
2179
2180 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2181 echo "$ac_t""yes" 1>&6
2182 else
2183 echo "$ac_t""no" 1>&6
2184 fi
2185
2186
2187 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2188 echo "configure:2189: checking "for --enable-mem_tracing"" >&5
2189 no_cache=0
2190 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2191 if test "${enable_mem_tracing+set}" = set; then
2192 enableval="$enable_mem_tracing"
2193
2194 if test "$enableval" = yes; then
2195 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2196 else
2197 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2198 fi
2199
2200 else
2201
2202 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2203 if test "x$LINE" != x ; then
2204 eval "DEFAULT_$LINE"
2205 else
2206 no_cache=1
2207 fi
2208
2209 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2210
2211 fi
2212
2213
2214 eval "$ac_cv_use_mem_tracing"
2215 if test "$no_cache" != 1; then
2216 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2217 fi
2218
2219 if test "$wxUSE_MEM_TRACING" = yes; then
2220 echo "$ac_t""yes" 1>&6
2221 else
2222 echo "$ac_t""no" 1>&6
2223 fi
2224
2225
2226 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2227 echo "configure:2228: checking "for --enable-profile"" >&5
2228 no_cache=0
2229 # Check whether --enable-profile or --disable-profile was given.
2230 if test "${enable_profile+set}" = set; then
2231 enableval="$enable_profile"
2232
2233 if test "$enableval" = yes; then
2234 ac_cv_use_profile='wxUSE_PROFILE=yes'
2235 else
2236 ac_cv_use_profile='wxUSE_PROFILE=no'
2237 fi
2238
2239 else
2240
2241 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2242 if test "x$LINE" != x ; then
2243 eval "DEFAULT_$LINE"
2244 else
2245 no_cache=1
2246 fi
2247
2248 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2249
2250 fi
2251
2252
2253 eval "$ac_cv_use_profile"
2254 if test "$no_cache" != 1; then
2255 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2256 fi
2257
2258 if test "$wxUSE_PROFILE" = yes; then
2259 echo "$ac_t""yes" 1>&6
2260 else
2261 echo "$ac_t""no" 1>&6
2262 fi
2263
2264
2265 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2266 echo "configure:2267: checking "for --enable-no_rtti"" >&5
2267 no_cache=0
2268 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2269 if test "${enable_no_rtti+set}" = set; then
2270 enableval="$enable_no_rtti"
2271
2272 if test "$enableval" = yes; then
2273 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2274 else
2275 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2276 fi
2277
2278 else
2279
2280 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2281 if test "x$LINE" != x ; then
2282 eval "DEFAULT_$LINE"
2283 else
2284 no_cache=1
2285 fi
2286
2287 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2288
2289 fi
2290
2291
2292 eval "$ac_cv_use_no_rtti"
2293 if test "$no_cache" != 1; then
2294 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2295 fi
2296
2297 if test "$wxUSE_NO_RTTI" = yes; then
2298 echo "$ac_t""yes" 1>&6
2299 else
2300 echo "$ac_t""no" 1>&6
2301 fi
2302
2303
2304 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2305 echo "configure:2306: checking "for --enable-no_exceptions"" >&5
2306 no_cache=0
2307 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2308 if test "${enable_no_exceptions+set}" = set; then
2309 enableval="$enable_no_exceptions"
2310
2311 if test "$enableval" = yes; then
2312 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2313 else
2314 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2315 fi
2316
2317 else
2318
2319 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2320 if test "x$LINE" != x ; then
2321 eval "DEFAULT_$LINE"
2322 else
2323 no_cache=1
2324 fi
2325
2326 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2327
2328 fi
2329
2330
2331 eval "$ac_cv_use_no_exceptions"
2332 if test "$no_cache" != 1; then
2333 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2334 fi
2335
2336 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2337 echo "$ac_t""yes" 1>&6
2338 else
2339 echo "$ac_t""no" 1>&6
2340 fi
2341
2342
2343 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2344 echo "configure:2345: checking "for --enable-permissive"" >&5
2345 no_cache=0
2346 # Check whether --enable-permissive or --disable-permissive was given.
2347 if test "${enable_permissive+set}" = set; then
2348 enableval="$enable_permissive"
2349
2350 if test "$enableval" = yes; then
2351 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2352 else
2353 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2354 fi
2355
2356 else
2357
2358 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2359 if test "x$LINE" != x ; then
2360 eval "DEFAULT_$LINE"
2361 else
2362 no_cache=1
2363 fi
2364
2365 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2366
2367 fi
2368
2369
2370 eval "$ac_cv_use_permissive"
2371 if test "$no_cache" != 1; then
2372 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2373 fi
2374
2375 if test "$wxUSE_PERMISSIVE" = yes; then
2376 echo "$ac_t""yes" 1>&6
2377 else
2378 echo "$ac_t""no" 1>&6
2379 fi
2380
2381
2382 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2383 echo "configure:2384: checking "for --enable-no_deps"" >&5
2384 no_cache=0
2385 # Check whether --enable-no_deps or --disable-no_deps was given.
2386 if test "${enable_no_deps+set}" = set; then
2387 enableval="$enable_no_deps"
2388
2389 if test "$enableval" = yes; then
2390 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2391 else
2392 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2393 fi
2394
2395 else
2396
2397 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2398 if test "x$LINE" != x ; then
2399 eval "DEFAULT_$LINE"
2400 else
2401 no_cache=1
2402 fi
2403
2404 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2405
2406 fi
2407
2408
2409 eval "$ac_cv_use_no_deps"
2410 if test "$no_cache" != 1; then
2411 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2412 fi
2413
2414 if test "$wxUSE_NO_DEPS" = yes; then
2415 echo "$ac_t""yes" 1>&6
2416 else
2417 echo "$ac_t""no" 1>&6
2418 fi
2419
2420
2421
2422
2423 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2424 echo "configure:2425: checking "for --enable-intl"" >&5
2425 no_cache=0
2426 # Check whether --enable-intl or --disable-intl was given.
2427 if test "${enable_intl+set}" = set; then
2428 enableval="$enable_intl"
2429
2430 if test "$enableval" = yes; then
2431 ac_cv_use_intl='wxUSE_INTL=yes'
2432 else
2433 ac_cv_use_intl='wxUSE_INTL=no'
2434 fi
2435
2436 else
2437
2438 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2439 if test "x$LINE" != x ; then
2440 eval "DEFAULT_$LINE"
2441 else
2442 no_cache=1
2443 fi
2444
2445 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2446
2447 fi
2448
2449
2450 eval "$ac_cv_use_intl"
2451 if test "$no_cache" != 1; then
2452 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2453 fi
2454
2455 if test "$wxUSE_INTL" = yes; then
2456 echo "$ac_t""yes" 1>&6
2457 else
2458 echo "$ac_t""no" 1>&6
2459 fi
2460
2461
2462 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2463 echo "configure:2464: checking "for --enable-config"" >&5
2464 no_cache=0
2465 # Check whether --enable-config or --disable-config was given.
2466 if test "${enable_config+set}" = set; then
2467 enableval="$enable_config"
2468
2469 if test "$enableval" = yes; then
2470 ac_cv_use_config='wxUSE_CONFIG=yes'
2471 else
2472 ac_cv_use_config='wxUSE_CONFIG=no'
2473 fi
2474
2475 else
2476
2477 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2478 if test "x$LINE" != x ; then
2479 eval "DEFAULT_$LINE"
2480 else
2481 no_cache=1
2482 fi
2483
2484 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2485
2486 fi
2487
2488
2489 eval "$ac_cv_use_config"
2490 if test "$no_cache" != 1; then
2491 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2492 fi
2493
2494 if test "$wxUSE_CONFIG" = yes; then
2495 echo "$ac_t""yes" 1>&6
2496 else
2497 echo "$ac_t""no" 1>&6
2498 fi
2499
2500
2501 if test "$wxUSE_GUI" = "yes"; then
2502
2503 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2504 echo "configure:2505: checking "for --enable-sockets"" >&5
2505 no_cache=0
2506 # Check whether --enable-sockets or --disable-sockets was given.
2507 if test "${enable_sockets+set}" = set; then
2508 enableval="$enable_sockets"
2509
2510 if test "$enableval" = yes; then
2511 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2512 else
2513 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2514 fi
2515
2516 else
2517
2518 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2519 if test "x$LINE" != x ; then
2520 eval "DEFAULT_$LINE"
2521 else
2522 no_cache=1
2523 fi
2524
2525 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2526
2527 fi
2528
2529
2530 eval "$ac_cv_use_sockets"
2531 if test "$no_cache" != 1; then
2532 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2533 fi
2534
2535 if test "$wxUSE_SOCKETS" = yes; then
2536 echo "$ac_t""yes" 1>&6
2537 else
2538 echo "$ac_t""no" 1>&6
2539 fi
2540
2541 else
2542 wxUSE_SOCKETS=no
2543 fi
2544
2545
2546 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2547 echo "configure:2548: checking "for --enable-dialupman"" >&5
2548 no_cache=0
2549 # Check whether --enable-dialupman or --disable-dialupman was given.
2550 if test "${enable_dialupman+set}" = set; then
2551 enableval="$enable_dialupman"
2552
2553 if test "$enableval" = yes; then
2554 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2555 else
2556 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2557 fi
2558
2559 else
2560
2561 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2562 if test "x$LINE" != x ; then
2563 eval "DEFAULT_$LINE"
2564 else
2565 no_cache=1
2566 fi
2567
2568 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2569
2570 fi
2571
2572
2573 eval "$ac_cv_use_dialupman"
2574 if test "$no_cache" != 1; then
2575 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2576 fi
2577
2578 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2579 echo "$ac_t""yes" 1>&6
2580 else
2581 echo "$ac_t""no" 1>&6
2582 fi
2583
2584
2585 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2586 echo "configure:2587: checking "for --enable-ipc"" >&5
2587 no_cache=0
2588 # Check whether --enable-ipc or --disable-ipc was given.
2589 if test "${enable_ipc+set}" = set; then
2590 enableval="$enable_ipc"
2591
2592 if test "$enableval" = yes; then
2593 ac_cv_use_ipc='wxUSE_IPC=yes'
2594 else
2595 ac_cv_use_ipc='wxUSE_IPC=no'
2596 fi
2597
2598 else
2599
2600 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
2607 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2608
2609 fi
2610
2611
2612 eval "$ac_cv_use_ipc"
2613 if test "$no_cache" != 1; then
2614 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2615 fi
2616
2617 if test "$wxUSE_IPC" = yes; then
2618 echo "$ac_t""yes" 1>&6
2619 else
2620 echo "$ac_t""no" 1>&6
2621 fi
2622
2623
2624 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2625 echo "configure:2626: checking "for --enable-apple_ieee"" >&5
2626 no_cache=0
2627 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2628 if test "${enable_apple_ieee+set}" = set; then
2629 enableval="$enable_apple_ieee"
2630
2631 if test "$enableval" = yes; then
2632 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2633 else
2634 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2635 fi
2636
2637 else
2638
2639 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2640 if test "x$LINE" != x ; then
2641 eval "DEFAULT_$LINE"
2642 else
2643 no_cache=1
2644 fi
2645
2646 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2647
2648 fi
2649
2650
2651 eval "$ac_cv_use_apple_ieee"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_APPLE_IEEE" = yes; then
2657 echo "$ac_t""yes" 1>&6
2658 else
2659 echo "$ac_t""no" 1>&6
2660 fi
2661
2662
2663 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2664 echo "configure:2665: checking "for --enable-timedate"" >&5
2665 no_cache=0
2666 # Check whether --enable-timedate or --disable-timedate was given.
2667 if test "${enable_timedate+set}" = set; then
2668 enableval="$enable_timedate"
2669
2670 if test "$enableval" = yes; then
2671 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2672 else
2673 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2674 fi
2675
2676 else
2677
2678 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2679 if test "x$LINE" != x ; then
2680 eval "DEFAULT_$LINE"
2681 else
2682 no_cache=1
2683 fi
2684
2685 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2686
2687 fi
2688
2689
2690 eval "$ac_cv_use_timedate"
2691 if test "$no_cache" != 1; then
2692 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2693 fi
2694
2695 if test "$wxUSE_TIMEDATE" = yes; then
2696 echo "$ac_t""yes" 1>&6
2697 else
2698 echo "$ac_t""no" 1>&6
2699 fi
2700
2701
2702 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2703 echo "configure:2704: checking "for --enable-wave"" >&5
2704 no_cache=0
2705 # Check whether --enable-wave or --disable-wave was given.
2706 if test "${enable_wave+set}" = set; then
2707 enableval="$enable_wave"
2708
2709 if test "$enableval" = yes; then
2710 ac_cv_use_wave='wxUSE_WAVE=yes'
2711 else
2712 ac_cv_use_wave='wxUSE_WAVE=no'
2713 fi
2714
2715 else
2716
2717 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2718 if test "x$LINE" != x ; then
2719 eval "DEFAULT_$LINE"
2720 else
2721 no_cache=1
2722 fi
2723
2724 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2725
2726 fi
2727
2728
2729 eval "$ac_cv_use_wave"
2730 if test "$no_cache" != 1; then
2731 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2732 fi
2733
2734 if test "$wxUSE_WAVE" = yes; then
2735 echo "$ac_t""yes" 1>&6
2736 else
2737 echo "$ac_t""no" 1>&6
2738 fi
2739
2740
2741 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2742 echo "configure:2743: checking "for --enable-fraction"" >&5
2743 no_cache=0
2744 # Check whether --enable-fraction or --disable-fraction was given.
2745 if test "${enable_fraction+set}" = set; then
2746 enableval="$enable_fraction"
2747
2748 if test "$enableval" = yes; then
2749 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2750 else
2751 ac_cv_use_fraction='wxUSE_FRACTION=no'
2752 fi
2753
2754 else
2755
2756 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2757 if test "x$LINE" != x ; then
2758 eval "DEFAULT_$LINE"
2759 else
2760 no_cache=1
2761 fi
2762
2763 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2764
2765 fi
2766
2767
2768 eval "$ac_cv_use_fraction"
2769 if test "$no_cache" != 1; then
2770 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2771 fi
2772
2773 if test "$wxUSE_FRACTION" = yes; then
2774 echo "$ac_t""yes" 1>&6
2775 else
2776 echo "$ac_t""no" 1>&6
2777 fi
2778
2779
2780 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2781 echo "configure:2782: checking "for --enable-dynlib"" >&5
2782 no_cache=0
2783 # Check whether --enable-dynlib or --disable-dynlib was given.
2784 if test "${enable_dynlib+set}" = set; then
2785 enableval="$enable_dynlib"
2786
2787 if test "$enableval" = yes; then
2788 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2789 else
2790 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2791 fi
2792
2793 else
2794
2795 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2796 if test "x$LINE" != x ; then
2797 eval "DEFAULT_$LINE"
2798 else
2799 no_cache=1
2800 fi
2801
2802 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2803
2804 fi
2805
2806
2807 eval "$ac_cv_use_dynlib"
2808 if test "$no_cache" != 1; then
2809 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2810 fi
2811
2812 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2813 echo "$ac_t""yes" 1>&6
2814 else
2815 echo "$ac_t""no" 1>&6
2816 fi
2817
2818
2819 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2820 echo "configure:2821: checking "for --enable-longlong"" >&5
2821 no_cache=0
2822 # Check whether --enable-longlong or --disable-longlong was given.
2823 if test "${enable_longlong+set}" = set; then
2824 enableval="$enable_longlong"
2825
2826 if test "$enableval" = yes; then
2827 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2828 else
2829 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2830 fi
2831
2832 else
2833
2834 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2835 if test "x$LINE" != x ; then
2836 eval "DEFAULT_$LINE"
2837 else
2838 no_cache=1
2839 fi
2840
2841 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2842
2843 fi
2844
2845
2846 eval "$ac_cv_use_longlong"
2847 if test "$no_cache" != 1; then
2848 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2849 fi
2850
2851 if test "$wxUSE_LONGLONG" = yes; then
2852 echo "$ac_t""yes" 1>&6
2853 else
2854 echo "$ac_t""no" 1>&6
2855 fi
2856
2857
2858 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2859 echo "configure:2860: checking "for --enable-log"" >&5
2860 no_cache=0
2861 # Check whether --enable-log or --disable-log was given.
2862 if test "${enable_log+set}" = set; then
2863 enableval="$enable_log"
2864
2865 if test "$enableval" = yes; then
2866 ac_cv_use_log='wxUSE_LOG=yes'
2867 else
2868 ac_cv_use_log='wxUSE_LOG=no'
2869 fi
2870
2871 else
2872
2873 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2874 if test "x$LINE" != x ; then
2875 eval "DEFAULT_$LINE"
2876 else
2877 no_cache=1
2878 fi
2879
2880 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2881
2882 fi
2883
2884
2885 eval "$ac_cv_use_log"
2886 if test "$no_cache" != 1; then
2887 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2888 fi
2889
2890 if test "$wxUSE_LOG" = yes; then
2891 echo "$ac_t""yes" 1>&6
2892 else
2893 echo "$ac_t""no" 1>&6
2894 fi
2895
2896
2897 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2898 echo "configure:2899: checking "for --enable-streams"" >&5
2899 no_cache=0
2900 # Check whether --enable-streams or --disable-streams was given.
2901 if test "${enable_streams+set}" = set; then
2902 enableval="$enable_streams"
2903
2904 if test "$enableval" = yes; then
2905 ac_cv_use_streams='wxUSE_STREAMS=yes'
2906 else
2907 ac_cv_use_streams='wxUSE_STREAMS=no'
2908 fi
2909
2910 else
2911
2912 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2913 if test "x$LINE" != x ; then
2914 eval "DEFAULT_$LINE"
2915 else
2916 no_cache=1
2917 fi
2918
2919 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2920
2921 fi
2922
2923
2924 eval "$ac_cv_use_streams"
2925 if test "$no_cache" != 1; then
2926 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2927 fi
2928
2929 if test "$wxUSE_STREAMS" = yes; then
2930 echo "$ac_t""yes" 1>&6
2931 else
2932 echo "$ac_t""no" 1>&6
2933 fi
2934
2935
2936 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2937 echo "configure:2938: checking "for --enable-file"" >&5
2938 no_cache=0
2939 # Check whether --enable-file or --disable-file was given.
2940 if test "${enable_file+set}" = set; then
2941 enableval="$enable_file"
2942
2943 if test "$enableval" = yes; then
2944 ac_cv_use_file='wxUSE_FILE=yes'
2945 else
2946 ac_cv_use_file='wxUSE_FILE=no'
2947 fi
2948
2949 else
2950
2951 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2952 if test "x$LINE" != x ; then
2953 eval "DEFAULT_$LINE"
2954 else
2955 no_cache=1
2956 fi
2957
2958 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2959
2960 fi
2961
2962
2963 eval "$ac_cv_use_file"
2964 if test "$no_cache" != 1; then
2965 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2966 fi
2967
2968 if test "$wxUSE_FILE" = yes; then
2969 echo "$ac_t""yes" 1>&6
2970 else
2971 echo "$ac_t""no" 1>&6
2972 fi
2973
2974
2975 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2976 echo "configure:2977: checking "for --enable-textfile"" >&5
2977 no_cache=0
2978 # Check whether --enable-textfile or --disable-textfile was given.
2979 if test "${enable_textfile+set}" = set; then
2980 enableval="$enable_textfile"
2981
2982 if test "$enableval" = yes; then
2983 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2984 else
2985 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2986 fi
2987
2988 else
2989
2990 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2991 if test "x$LINE" != x ; then
2992 eval "DEFAULT_$LINE"
2993 else
2994 no_cache=1
2995 fi
2996
2997 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2998
2999 fi
3000
3001
3002 eval "$ac_cv_use_textfile"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$wxUSE_TEXTFILE" = yes; then
3008 echo "$ac_t""yes" 1>&6
3009 else
3010 echo "$ac_t""no" 1>&6
3011 fi
3012
3013
3014 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3015 echo "configure:3016: checking "for --enable-unicode"" >&5
3016 no_cache=0
3017 # Check whether --enable-unicode or --disable-unicode was given.
3018 if test "${enable_unicode+set}" = set; then
3019 enableval="$enable_unicode"
3020
3021 if test "$enableval" = yes; then
3022 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3023 else
3024 ac_cv_use_unicode='wxUSE_UNICODE=no'
3025 fi
3026
3027 else
3028
3029 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3037
3038 fi
3039
3040
3041 eval "$ac_cv_use_unicode"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$wxUSE_UNICODE" = yes; then
3047 echo "$ac_t""yes" 1>&6
3048 else
3049 echo "$ac_t""no" 1>&6
3050 fi
3051
3052
3053 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3054 echo "configure:3055: checking "for --enable-wcsrtombs"" >&5
3055 no_cache=0
3056 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3057 if test "${enable_wcsrtombs+set}" = set; then
3058 enableval="$enable_wcsrtombs"
3059
3060 if test "$enableval" = yes; then
3061 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3062 else
3063 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3064 fi
3065
3066 else
3067
3068 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3069 if test "x$LINE" != x ; then
3070 eval "DEFAULT_$LINE"
3071 else
3072 no_cache=1
3073 fi
3074
3075 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3076
3077 fi
3078
3079
3080 eval "$ac_cv_use_wcsrtombs"
3081 if test "$no_cache" != 1; then
3082 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3083 fi
3084
3085 if test "$wxUSE_WCSRTOMBS" = yes; then
3086 echo "$ac_t""yes" 1>&6
3087 else
3088 echo "$ac_t""no" 1>&6
3089 fi
3090
3091
3092 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3093 echo "configure:3094: checking "for --enable-wxprintfv"" >&5
3094 no_cache=0
3095 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3096 if test "${enable_wxprintfv+set}" = set; then
3097 enableval="$enable_wxprintfv"
3098
3099 if test "$enableval" = yes; then
3100 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3101 else
3102 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3103 fi
3104
3105 else
3106
3107 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3108 if test "x$LINE" != x ; then
3109 eval "DEFAULT_$LINE"
3110 else
3111 no_cache=1
3112 fi
3113
3114 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3115
3116 fi
3117
3118
3119 eval "$ac_cv_use_wxprintfv"
3120 if test "$no_cache" != 1; then
3121 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3122 fi
3123
3124 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3125 echo "$ac_t""yes" 1>&6
3126 else
3127 echo "$ac_t""no" 1>&6
3128 fi
3129
3130
3131 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3132 echo "configure:3133: checking "for --enable-joystick"" >&5
3133 no_cache=0
3134 # Check whether --enable-joystick or --disable-joystick was given.
3135 if test "${enable_joystick+set}" = set; then
3136 enableval="$enable_joystick"
3137
3138 if test "$enableval" = yes; then
3139 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3140 else
3141 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3142 fi
3143
3144 else
3145
3146 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3147 if test "x$LINE" != x ; then
3148 eval "DEFAULT_$LINE"
3149 else
3150 no_cache=1
3151 fi
3152
3153 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3154
3155 fi
3156
3157
3158 eval "$ac_cv_use_joystick"
3159 if test "$no_cache" != 1; then
3160 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3161 fi
3162
3163 if test "$wxUSE_JOYSTICK" = yes; then
3164 echo "$ac_t""yes" 1>&6
3165 else
3166 echo "$ac_t""no" 1>&6
3167 fi
3168
3169
3170 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3171 echo "configure:3172: checking "for --enable-std_iostreams"" >&5
3172 no_cache=0
3173 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3174 if test "${enable_std_iostreams+set}" = set; then
3175 enableval="$enable_std_iostreams"
3176
3177 if test "$enableval" = yes; then
3178 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3179 else
3180 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3181 fi
3182
3183 else
3184
3185 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3193
3194 fi
3195
3196
3197 eval "$ac_cv_use_std_iostreams"
3198 if test "$no_cache" != 1; then
3199 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3200 fi
3201
3202 if test "$wxUSE_STD_IOSTREAM" = yes; then
3203 echo "$ac_t""yes" 1>&6
3204 else
3205 echo "$ac_t""no" 1>&6
3206 fi
3207
3208
3209 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3210 echo "configure:3211: checking "for --enable-filesystem"" >&5
3211 no_cache=0
3212 # Check whether --enable-filesystem or --disable-filesystem was given.
3213 if test "${enable_filesystem+set}" = set; then
3214 enableval="$enable_filesystem"
3215
3216 if test "$enableval" = yes; then
3217 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3218 else
3219 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3220 fi
3221
3222 else
3223
3224 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3225 if test "x$LINE" != x ; then
3226 eval "DEFAULT_$LINE"
3227 else
3228 no_cache=1
3229 fi
3230
3231 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3232
3233 fi
3234
3235
3236 eval "$ac_cv_use_filesystem"
3237 if test "$no_cache" != 1; then
3238 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3239 fi
3240
3241 if test "$wxUSE_FILESYSTEM" = yes; then
3242 echo "$ac_t""yes" 1>&6
3243 else
3244 echo "$ac_t""no" 1>&6
3245 fi
3246
3247
3248 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3249 echo "configure:3250: checking "for --enable-fs_inet"" >&5
3250 no_cache=0
3251 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3252 if test "${enable_fs_inet+set}" = set; then
3253 enableval="$enable_fs_inet"
3254
3255 if test "$enableval" = yes; then
3256 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3257 else
3258 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3259 fi
3260
3261 else
3262
3263 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3264 if test "x$LINE" != x ; then
3265 eval "DEFAULT_$LINE"
3266 else
3267 no_cache=1
3268 fi
3269
3270 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3271
3272 fi
3273
3274
3275 eval "$ac_cv_use_fs_inet"
3276 if test "$no_cache" != 1; then
3277 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3278 fi
3279
3280 if test "$wxUSE_FS_INET" = yes; then
3281 echo "$ac_t""yes" 1>&6
3282 else
3283 echo "$ac_t""no" 1>&6
3284 fi
3285
3286
3287 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3288 echo "configure:3289: checking "for --enable-fs_zip"" >&5
3289 no_cache=0
3290 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3291 if test "${enable_fs_zip+set}" = set; then
3292 enableval="$enable_fs_zip"
3293
3294 if test "$enableval" = yes; then
3295 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3296 else
3297 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3298 fi
3299
3300 else
3301
3302 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
3309 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3310
3311 fi
3312
3313
3314 eval "$ac_cv_use_fs_zip"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_FS_ZIP" = yes; then
3320 echo "$ac_t""yes" 1>&6
3321 else
3322 echo "$ac_t""no" 1>&6
3323 fi
3324
3325
3326 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3327 echo "configure:3328: checking "for --enable-zipstream"" >&5
3328 no_cache=0
3329 # Check whether --enable-zipstream or --disable-zipstream was given.
3330 if test "${enable_zipstream+set}" = set; then
3331 enableval="$enable_zipstream"
3332
3333 if test "$enableval" = yes; then
3334 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3335 else
3336 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3337 fi
3338
3339 else
3340
3341 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3342 if test "x$LINE" != x ; then
3343 eval "DEFAULT_$LINE"
3344 else
3345 no_cache=1
3346 fi
3347
3348 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3349
3350 fi
3351
3352
3353 eval "$ac_cv_use_zipstream"
3354 if test "$no_cache" != 1; then
3355 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3356 fi
3357
3358 if test "$wxUSE_ZIPSTREAM" = yes; then
3359 echo "$ac_t""yes" 1>&6
3360 else
3361 echo "$ac_t""no" 1>&6
3362 fi
3363
3364
3365
3366
3367 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3368 echo "configure:3369: checking "for --enable-threads"" >&5
3369 no_cache=0
3370 # Check whether --enable-threads or --disable-threads was given.
3371 if test "${enable_threads+set}" = set; then
3372 enableval="$enable_threads"
3373
3374 if test "$enableval" = yes; then
3375 ac_cv_use_threads='wxUSE_THREADS=yes'
3376 else
3377 ac_cv_use_threads='wxUSE_THREADS=no'
3378 fi
3379
3380 else
3381
3382 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3383 if test "x$LINE" != x ; then
3384 eval "DEFAULT_$LINE"
3385 else
3386 no_cache=1
3387 fi
3388
3389 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3390
3391 fi
3392
3393
3394 eval "$ac_cv_use_threads"
3395 if test "$no_cache" != 1; then
3396 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3397 fi
3398
3399 if test "$wxUSE_THREADS" = yes; then
3400 echo "$ac_t""yes" 1>&6
3401 else
3402 echo "$ac_t""no" 1>&6
3403 fi
3404
3405
3406 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3407 echo "configure:3408: checking "for --enable-serial"" >&5
3408 no_cache=0
3409 # Check whether --enable-serial or --disable-serial was given.
3410 if test "${enable_serial+set}" = set; then
3411 enableval="$enable_serial"
3412
3413 if test "$enableval" = yes; then
3414 ac_cv_use_serial='wxUSE_SERIAL=yes'
3415 else
3416 ac_cv_use_serial='wxUSE_SERIAL=no'
3417 fi
3418
3419 else
3420
3421 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3422 if test "x$LINE" != x ; then
3423 eval "DEFAULT_$LINE"
3424 else
3425 no_cache=1
3426 fi
3427
3428 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3429
3430 fi
3431
3432
3433 eval "$ac_cv_use_serial"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_SERIAL" = yes; then
3439 echo "$ac_t""yes" 1>&6
3440 else
3441 echo "$ac_t""no" 1>&6
3442 fi
3443
3444
3445 if test "$wxUSE_GUI" = "yes"; then
3446
3447
3448
3449 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3450 echo "configure:3451: checking "for --enable-docview"" >&5
3451 no_cache=0
3452 # Check whether --enable-docview or --disable-docview was given.
3453 if test "${enable_docview+set}" = set; then
3454 enableval="$enable_docview"
3455
3456 if test "$enableval" = yes; then
3457 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3458 else
3459 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3460 fi
3461
3462 else
3463
3464 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3465 if test "x$LINE" != x ; then
3466 eval "DEFAULT_$LINE"
3467 else
3468 no_cache=1
3469 fi
3470
3471 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3472
3473 fi
3474
3475
3476 eval "$ac_cv_use_docview"
3477 if test "$no_cache" != 1; then
3478 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3479 fi
3480
3481 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3482 echo "$ac_t""yes" 1>&6
3483 else
3484 echo "$ac_t""no" 1>&6
3485 fi
3486
3487
3488 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3489 echo "configure:3490: checking "for --enable-help"" >&5
3490 no_cache=0
3491 # Check whether --enable-help or --disable-help was given.
3492 if test "${enable_help+set}" = set; then
3493 enableval="$enable_help"
3494
3495 if test "$enableval" = yes; then
3496 ac_cv_use_help='wxUSE_HELP=yes'
3497 else
3498 ac_cv_use_help='wxUSE_HELP=no'
3499 fi
3500
3501 else
3502
3503 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3511
3512 fi
3513
3514
3515 eval "$ac_cv_use_help"
3516 if test "$no_cache" != 1; then
3517 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3518 fi
3519
3520 if test "$wxUSE_HELP" = yes; then
3521 echo "$ac_t""yes" 1>&6
3522 else
3523 echo "$ac_t""no" 1>&6
3524 fi
3525
3526
3527 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3528 echo "configure:3529: checking "for --enable-constraints"" >&5
3529 no_cache=0
3530 # Check whether --enable-constraints or --disable-constraints was given.
3531 if test "${enable_constraints+set}" = set; then
3532 enableval="$enable_constraints"
3533
3534 if test "$enableval" = yes; then
3535 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3536 else
3537 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3538 fi
3539
3540 else
3541
3542 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3550
3551 fi
3552
3553
3554 eval "$ac_cv_use_constraints"
3555 if test "$no_cache" != 1; then
3556 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3557 fi
3558
3559 if test "$wxUSE_CONSTRAINTS" = yes; then
3560 echo "$ac_t""yes" 1>&6
3561 else
3562 echo "$ac_t""no" 1>&6
3563 fi
3564
3565
3566 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3567 echo "configure:3568: checking "for --enable-printarch"" >&5
3568 no_cache=0
3569 # Check whether --enable-printarch or --disable-printarch was given.
3570 if test "${enable_printarch+set}" = set; then
3571 enableval="$enable_printarch"
3572
3573 if test "$enableval" = yes; then
3574 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3575 else
3576 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3577 fi
3578
3579 else
3580
3581 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3582 if test "x$LINE" != x ; then
3583 eval "DEFAULT_$LINE"
3584 else
3585 no_cache=1
3586 fi
3587
3588 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3589
3590 fi
3591
3592
3593 eval "$ac_cv_use_printarch"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3599 echo "$ac_t""yes" 1>&6
3600 else
3601 echo "$ac_t""no" 1>&6
3602 fi
3603
3604
3605 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3606 echo "configure:3607: checking "for --enable-mdi"" >&5
3607 no_cache=0
3608 # Check whether --enable-mdi or --disable-mdi was given.
3609 if test "${enable_mdi+set}" = set; then
3610 enableval="$enable_mdi"
3611
3612 if test "$enableval" = yes; then
3613 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3614 else
3615 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3616 fi
3617
3618 else
3619
3620 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3621 if test "x$LINE" != x ; then
3622 eval "DEFAULT_$LINE"
3623 else
3624 no_cache=1
3625 fi
3626
3627 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3628
3629 fi
3630
3631
3632 eval "$ac_cv_use_mdi"
3633 if test "$no_cache" != 1; then
3634 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3635 fi
3636
3637 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3638 echo "$ac_t""yes" 1>&6
3639 else
3640 echo "$ac_t""no" 1>&6
3641 fi
3642
3643
3644
3645 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3646 echo "configure:3647: checking "for --enable-postscript"" >&5
3647 no_cache=0
3648 # Check whether --enable-postscript or --disable-postscript was given.
3649 if test "${enable_postscript+set}" = set; then
3650 enableval="$enable_postscript"
3651
3652 if test "$enableval" = yes; then
3653 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3654 else
3655 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3656 fi
3657
3658 else
3659
3660 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3661 if test "x$LINE" != x ; then
3662 eval "DEFAULT_$LINE"
3663 else
3664 no_cache=1
3665 fi
3666
3667 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3668
3669 fi
3670
3671
3672 eval "$ac_cv_use_postscript"
3673 if test "$no_cache" != 1; then
3674 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3675 fi
3676
3677 if test "$wxUSE_POSTSCRIPT" = yes; then
3678 echo "$ac_t""yes" 1>&6
3679 else
3680 echo "$ac_t""no" 1>&6
3681 fi
3682
3683
3684
3685
3686 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3687 echo "configure:3688: checking "for --enable-prologio"" >&5
3688 no_cache=0
3689 # Check whether --enable-prologio or --disable-prologio was given.
3690 if test "${enable_prologio+set}" = set; then
3691 enableval="$enable_prologio"
3692
3693 if test "$enableval" = yes; then
3694 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3695 else
3696 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3697 fi
3698
3699 else
3700
3701 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3709
3710 fi
3711
3712
3713 eval "$ac_cv_use_prologio"
3714 if test "$no_cache" != 1; then
3715 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3716 fi
3717
3718 if test "$wxUSE_PROLOGIO" = yes; then
3719 echo "$ac_t""yes" 1>&6
3720 else
3721 echo "$ac_t""no" 1>&6
3722 fi
3723
3724
3725 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3726 echo "configure:3727: checking "for --enable-resources"" >&5
3727 no_cache=0
3728 # Check whether --enable-resources or --disable-resources was given.
3729 if test "${enable_resources+set}" = set; then
3730 enableval="$enable_resources"
3731
3732 if test "$enableval" = yes; then
3733 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3734 else
3735 ac_cv_use_resources='wxUSE_RESOURCES=no'
3736 fi
3737
3738 else
3739
3740 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3741 if test "x$LINE" != x ; then
3742 eval "DEFAULT_$LINE"
3743 else
3744 no_cache=1
3745 fi
3746
3747 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3748
3749 fi
3750
3751
3752 eval "$ac_cv_use_resources"
3753 if test "$no_cache" != 1; then
3754 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3755 fi
3756
3757 if test "$wxUSE_RESOURCES" = yes; then
3758 echo "$ac_t""yes" 1>&6
3759 else
3760 echo "$ac_t""no" 1>&6
3761 fi
3762
3763
3764
3765 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3766 echo "configure:3767: checking "for --enable-xresources"" >&5
3767 no_cache=0
3768 # Check whether --enable-xresources or --disable-xresources was given.
3769 if test "${enable_xresources+set}" = set; then
3770 enableval="$enable_xresources"
3771
3772 if test "$enableval" = yes; then
3773 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3774 else
3775 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3776 fi
3777
3778 else
3779
3780 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3781 if test "x$LINE" != x ; then
3782 eval "DEFAULT_$LINE"
3783 else
3784 no_cache=1
3785 fi
3786
3787 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3788
3789 fi
3790
3791
3792 eval "$ac_cv_use_xresources"
3793 if test "$no_cache" != 1; then
3794 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3795 fi
3796
3797 if test "$wxUSE_X_RESOURCES" = yes; then
3798 echo "$ac_t""yes" 1>&6
3799 else
3800 echo "$ac_t""no" 1>&6
3801 fi
3802
3803
3804
3805
3806 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3807 echo "configure:3808: checking "for --enable-clipboard"" >&5
3808 no_cache=0
3809 # Check whether --enable-clipboard or --disable-clipboard was given.
3810 if test "${enable_clipboard+set}" = set; then
3811 enableval="$enable_clipboard"
3812
3813 if test "$enableval" = yes; then
3814 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3815 else
3816 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3817 fi
3818
3819 else
3820
3821 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3822 if test "x$LINE" != x ; then
3823 eval "DEFAULT_$LINE"
3824 else
3825 no_cache=1
3826 fi
3827
3828 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3829
3830 fi
3831
3832
3833 eval "$ac_cv_use_clipboard"
3834 if test "$no_cache" != 1; then
3835 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3836 fi
3837
3838 if test "$wxUSE_CLIPBOARD" = yes; then
3839 echo "$ac_t""yes" 1>&6
3840 else
3841 echo "$ac_t""no" 1>&6
3842 fi
3843
3844
3845 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3846 echo "configure:3847: checking "for --enable-dnd"" >&5
3847 no_cache=0
3848 # Check whether --enable-dnd or --disable-dnd was given.
3849 if test "${enable_dnd+set}" = set; then
3850 enableval="$enable_dnd"
3851
3852 if test "$enableval" = yes; then
3853 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3854 else
3855 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3856 fi
3857
3858 else
3859
3860 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3861 if test "x$LINE" != x ; then
3862 eval "DEFAULT_$LINE"
3863 else
3864 no_cache=1
3865 fi
3866
3867 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3868
3869 fi
3870
3871
3872 eval "$ac_cv_use_dnd"
3873 if test "$no_cache" != 1; then
3874 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3875 fi
3876
3877 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3878 echo "$ac_t""yes" 1>&6
3879 else
3880 echo "$ac_t""no" 1>&6
3881 fi
3882
3883
3884
3885 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3886 echo "configure:3887: checking "for --enable-wxtree"" >&5
3887 no_cache=0
3888 # Check whether --enable-wxtree or --disable-wxtree was given.
3889 if test "${enable_wxtree+set}" = set; then
3890 enableval="$enable_wxtree"
3891
3892 if test "$enableval" = yes; then
3893 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3894 else
3895 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3896 fi
3897
3898 else
3899
3900 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3901 if test "x$LINE" != x ; then
3902 eval "DEFAULT_$LINE"
3903 else
3904 no_cache=1
3905 fi
3906
3907 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3908
3909 fi
3910
3911
3912 eval "$ac_cv_use_wxtree"
3913 if test "$no_cache" != 1; then
3914 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3915 fi
3916
3917 if test "$wxUSE_WXTREE" = yes; then
3918 echo "$ac_t""yes" 1>&6
3919 else
3920 echo "$ac_t""no" 1>&6
3921 fi
3922
3923
3924
3925
3926 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3927 echo "configure:3928: checking "for --enable-controls"" >&5
3928 no_cache=0
3929 # Check whether --enable-controls or --disable-controls was given.
3930 if test "${enable_controls+set}" = set; then
3931 enableval="$enable_controls"
3932
3933 if test "$enableval" = yes; then
3934 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3935 else
3936 ac_cv_use_controls='wxUSE_CONTROLS=no'
3937 fi
3938
3939 else
3940
3941 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3949
3950 fi
3951
3952
3953 eval "$ac_cv_use_controls"
3954 if test "$no_cache" != 1; then
3955 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3956 fi
3957
3958 if test "$wxUSE_CONTROLS" = yes; then
3959 echo "$ac_t""yes" 1>&6
3960 else
3961 echo "$ac_t""no" 1>&6
3962 fi
3963
3964
3965 if test "$wxUSE_CONTROLS" = "yes"; then
3966 DEFAULT_wxUSE_ACCEL=yes
3967 DEFAULT_wxUSE_CARET=yes
3968 DEFAULT_wxUSE_COMBOBOX=yes
3969 DEFAULT_wxUSE_BMPBUTTON=yes
3970 DEFAULT_wxUSE_CHECKBOX=yes
3971 DEFAULT_wxUSE_CHECKLISTBOX=yes
3972 DEFAULT_wxUSE_CHOICE=yes
3973 DEFAULT_wxUSE_GAUGE=yes
3974 DEFAULT_wxUSE_GRID=yes
3975 DEFAULT_wxUSE_NEW_GRID=yes
3976 DEFAULT_wxUSE_IMAGLIST=yes
3977 DEFAULT_wxUSE_LISTBOX=yes
3978 DEFAULT_wxUSE_LISTCTRL=yes
3979 DEFAULT_wxUSE_NOTEBOOK=yes
3980 DEFAULT_wxUSE_RADIOBOX=yes
3981 DEFAULT_wxUSE_RADIOBTN=yes
3982 DEFAULT_wxUSE_SASH=yes
3983 DEFAULT_wxUSE_SCROLLBAR=yes
3984 DEFAULT_wxUSE_SLIDER=yes
3985 DEFAULT_wxUSE_SPINBTN=yes
3986 DEFAULT_wxUSE_SPINCTRL=yes
3987 DEFAULT_wxUSE_SPLITTER=yes
3988 DEFAULT_wxUSE_STATBMP=yes
3989 DEFAULT_wxUSE_STATBOX=yes
3990 DEFAULT_wxUSE_STATLINE=yes
3991 DEFAULT_wxUSE_STATUSBAR=yes
3992 DEFAULT_wxUSE_TAB_DIALOG=yes
3993 DEFAULT_wxUSE_TOOLBAR=yes
3994 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3995 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
3996 DEFAULT_wxUSE_TOOLTIPS=yes
3997 DEFAULT_wxUSE_TREECTRL=yes
3998 elif test "$wxUSE_CONTROLS" = "no"; then
3999 DEFAULT_wxUSE_ACCEL=no
4000 DEFAULT_wxUSE_CARET=no
4001 DEFAULT_wxUSE_COMBOBOX=no
4002 DEFAULT_wxUSE_BMPBUTTON=no
4003 DEFAULT_wxUSE_CHECKBOX=no
4004 DEFAULT_wxUSE_CHECKLISTBOX=no
4005 DEFAULT_wxUSE_CHOICE=no
4006 DEFAULT_wxUSE_GAUGE=no
4007 DEFAULT_wxUSE_GRID=no
4008 DEFAULT_wxUSE_NEW_GRID=no
4009 DEFAULT_wxUSE_IMAGLIST=no
4010 DEFAULT_wxUSE_LISTBOX=no
4011 DEFAULT_wxUSE_LISTCTRL=no
4012 DEFAULT_wxUSE_NOTEBOOK=no
4013 DEFAULT_wxUSE_RADIOBOX=no
4014 DEFAULT_wxUSE_RADIOBTN=no
4015 DEFAULT_wxUSE_SASH=no
4016 DEFAULT_wxUSE_SCROLLBAR=no
4017 DEFAULT_wxUSE_SLIDER=no
4018 DEFAULT_wxUSE_SPINBTN=no
4019 DEFAULT_wxUSE_SPINCTRL=no
4020 DEFAULT_wxUSE_SPLITTER=no
4021 DEFAULT_wxUSE_STATBMP=no
4022 DEFAULT_wxUSE_STATBOX=no
4023 DEFAULT_wxUSE_STATLINE=no
4024 DEFAULT_wxUSE_STATUSBAR=no
4025 DEFAULT_wxUSE_TAB_DIALOG=no
4026 DEFAULT_wxUSE_TOOLBAR=no
4027 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4028 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4029 DEFAULT_wxUSE_TOOLTIPS=no
4030 DEFAULT_wxUSE_TREECTRL=no
4031 fi
4032
4033
4034 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4035 echo "configure:4036: checking "for --enable-accel"" >&5
4036 no_cache=0
4037 # Check whether --enable-accel or --disable-accel was given.
4038 if test "${enable_accel+set}" = set; then
4039 enableval="$enable_accel"
4040
4041 if test "$enableval" = yes; then
4042 ac_cv_use_accel='wxUSE_ACCEL=yes'
4043 else
4044 ac_cv_use_accel='wxUSE_ACCEL=no'
4045 fi
4046
4047 else
4048
4049 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4050 if test "x$LINE" != x ; then
4051 eval "DEFAULT_$LINE"
4052 else
4053 no_cache=1
4054 fi
4055
4056 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4057
4058 fi
4059
4060
4061 eval "$ac_cv_use_accel"
4062 if test "$no_cache" != 1; then
4063 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4064 fi
4065
4066 if test "$wxUSE_ACCEL" = yes; then
4067 echo "$ac_t""yes" 1>&6
4068 else
4069 echo "$ac_t""no" 1>&6
4070 fi
4071
4072
4073 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4074 echo "configure:4075: checking "for --enable-caret"" >&5
4075 no_cache=0
4076 # Check whether --enable-caret or --disable-caret was given.
4077 if test "${enable_caret+set}" = set; then
4078 enableval="$enable_caret"
4079
4080 if test "$enableval" = yes; then
4081 ac_cv_use_caret='wxUSE_CARET=yes'
4082 else
4083 ac_cv_use_caret='wxUSE_CARET=no'
4084 fi
4085
4086 else
4087
4088 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4089 if test "x$LINE" != x ; then
4090 eval "DEFAULT_$LINE"
4091 else
4092 no_cache=1
4093 fi
4094
4095 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4096
4097 fi
4098
4099
4100 eval "$ac_cv_use_caret"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$wxUSE_CARET" = yes; then
4106 echo "$ac_t""yes" 1>&6
4107 else
4108 echo "$ac_t""no" 1>&6
4109 fi
4110
4111
4112 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4113 echo "configure:4114: checking "for --enable-bmpbutton"" >&5
4114 no_cache=0
4115 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4116 if test "${enable_bmpbutton+set}" = set; then
4117 enableval="$enable_bmpbutton"
4118
4119 if test "$enableval" = yes; then
4120 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4121 else
4122 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4123 fi
4124
4125 else
4126
4127 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4128 if test "x$LINE" != x ; then
4129 eval "DEFAULT_$LINE"
4130 else
4131 no_cache=1
4132 fi
4133
4134 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4135
4136 fi
4137
4138
4139 eval "$ac_cv_use_bmpbutton"
4140 if test "$no_cache" != 1; then
4141 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4142 fi
4143
4144 if test "$wxUSE_BMPBUTTON" = yes; then
4145 echo "$ac_t""yes" 1>&6
4146 else
4147 echo "$ac_t""no" 1>&6
4148 fi
4149
4150
4151 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4152 echo "configure:4153: checking "for --enable-checkbox"" >&5
4153 no_cache=0
4154 # Check whether --enable-checkbox or --disable-checkbox was given.
4155 if test "${enable_checkbox+set}" = set; then
4156 enableval="$enable_checkbox"
4157
4158 if test "$enableval" = yes; then
4159 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4160 else
4161 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4162 fi
4163
4164 else
4165
4166 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4167 if test "x$LINE" != x ; then
4168 eval "DEFAULT_$LINE"
4169 else
4170 no_cache=1
4171 fi
4172
4173 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4174
4175 fi
4176
4177
4178 eval "$ac_cv_use_checkbox"
4179 if test "$no_cache" != 1; then
4180 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4181 fi
4182
4183 if test "$wxUSE_CHECKBOX" = yes; then
4184 echo "$ac_t""yes" 1>&6
4185 else
4186 echo "$ac_t""no" 1>&6
4187 fi
4188
4189
4190 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4191 echo "configure:4192: checking "for --enable-checklst"" >&5
4192 no_cache=0
4193 # Check whether --enable-checklst or --disable-checklst was given.
4194 if test "${enable_checklst+set}" = set; then
4195 enableval="$enable_checklst"
4196
4197 if test "$enableval" = yes; then
4198 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4199 else
4200 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4201 fi
4202
4203 else
4204
4205 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4206 if test "x$LINE" != x ; then
4207 eval "DEFAULT_$LINE"
4208 else
4209 no_cache=1
4210 fi
4211
4212 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4213
4214 fi
4215
4216
4217 eval "$ac_cv_use_checklst"
4218 if test "$no_cache" != 1; then
4219 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4220 fi
4221
4222 if test "$wxUSE_CHECKLST" = yes; then
4223 echo "$ac_t""yes" 1>&6
4224 else
4225 echo "$ac_t""no" 1>&6
4226 fi
4227
4228
4229 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4230 echo "configure:4231: checking "for --enable-choice"" >&5
4231 no_cache=0
4232 # Check whether --enable-choice or --disable-choice was given.
4233 if test "${enable_choice+set}" = set; then
4234 enableval="$enable_choice"
4235
4236 if test "$enableval" = yes; then
4237 ac_cv_use_choice='wxUSE_CHOICE=yes'
4238 else
4239 ac_cv_use_choice='wxUSE_CHOICE=no'
4240 fi
4241
4242 else
4243
4244 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4245 if test "x$LINE" != x ; then
4246 eval "DEFAULT_$LINE"
4247 else
4248 no_cache=1
4249 fi
4250
4251 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4252
4253 fi
4254
4255
4256 eval "$ac_cv_use_choice"
4257 if test "$no_cache" != 1; then
4258 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4259 fi
4260
4261 if test "$wxUSE_CHOICE" = yes; then
4262 echo "$ac_t""yes" 1>&6
4263 else
4264 echo "$ac_t""no" 1>&6
4265 fi
4266
4267
4268 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4269 echo "configure:4270: checking "for --enable-combobox"" >&5
4270 no_cache=0
4271 # Check whether --enable-combobox or --disable-combobox was given.
4272 if test "${enable_combobox+set}" = set; then
4273 enableval="$enable_combobox"
4274
4275 if test "$enableval" = yes; then
4276 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4277 else
4278 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4279 fi
4280
4281 else
4282
4283 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4291
4292 fi
4293
4294
4295 eval "$ac_cv_use_combobox"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_COMBOBOX" = yes; then
4301 echo "$ac_t""yes" 1>&6
4302 else
4303 echo "$ac_t""no" 1>&6
4304 fi
4305
4306
4307 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4308 echo "configure:4309: checking "for --enable-gauge"" >&5
4309 no_cache=0
4310 # Check whether --enable-gauge or --disable-gauge was given.
4311 if test "${enable_gauge+set}" = set; then
4312 enableval="$enable_gauge"
4313
4314 if test "$enableval" = yes; then
4315 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4316 else
4317 ac_cv_use_gauge='wxUSE_GAUGE=no'
4318 fi
4319
4320 else
4321
4322 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4323 if test "x$LINE" != x ; then
4324 eval "DEFAULT_$LINE"
4325 else
4326 no_cache=1
4327 fi
4328
4329 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4330
4331 fi
4332
4333
4334 eval "$ac_cv_use_gauge"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_GAUGE" = yes; then
4340 echo "$ac_t""yes" 1>&6
4341 else
4342 echo "$ac_t""no" 1>&6
4343 fi
4344
4345
4346 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4347 echo "configure:4348: checking "for --enable-grid"" >&5
4348 no_cache=0
4349 # Check whether --enable-grid or --disable-grid was given.
4350 if test "${enable_grid+set}" = set; then
4351 enableval="$enable_grid"
4352
4353 if test "$enableval" = yes; then
4354 ac_cv_use_grid='wxUSE_GRID=yes'
4355 else
4356 ac_cv_use_grid='wxUSE_GRID=no'
4357 fi
4358
4359 else
4360
4361 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4362 if test "x$LINE" != x ; then
4363 eval "DEFAULT_$LINE"
4364 else
4365 no_cache=1
4366 fi
4367
4368 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4369
4370 fi
4371
4372
4373 eval "$ac_cv_use_grid"
4374 if test "$no_cache" != 1; then
4375 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4376 fi
4377
4378 if test "$wxUSE_GRID" = yes; then
4379 echo "$ac_t""yes" 1>&6
4380 else
4381 echo "$ac_t""no" 1>&6
4382 fi
4383
4384
4385 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4386 echo "configure:4387: checking "for --enable-newgrid"" >&5
4387 no_cache=0
4388 # Check whether --enable-newgrid or --disable-newgrid was given.
4389 if test "${enable_newgrid+set}" = set; then
4390 enableval="$enable_newgrid"
4391
4392 if test "$enableval" = yes; then
4393 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4394 else
4395 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4396 fi
4397
4398 else
4399
4400 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4401 if test "x$LINE" != x ; then
4402 eval "DEFAULT_$LINE"
4403 else
4404 no_cache=1
4405 fi
4406
4407 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4408
4409 fi
4410
4411
4412 eval "$ac_cv_use_newgrid"
4413 if test "$no_cache" != 1; then
4414 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4415 fi
4416
4417 if test "$wxUSE_NEW_GRID" = yes; then
4418 echo "$ac_t""yes" 1>&6
4419 else
4420 echo "$ac_t""no" 1>&6
4421 fi
4422
4423
4424 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4425 echo "configure:4426: checking "for --enable-imaglist"" >&5
4426 no_cache=0
4427 # Check whether --enable-imaglist or --disable-imaglist was given.
4428 if test "${enable_imaglist+set}" = set; then
4429 enableval="$enable_imaglist"
4430
4431 if test "$enableval" = yes; then
4432 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4433 else
4434 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4435 fi
4436
4437 else
4438
4439 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4447
4448 fi
4449
4450
4451 eval "$ac_cv_use_imaglist"
4452 if test "$no_cache" != 1; then
4453 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4454 fi
4455
4456 if test "$wxUSE_IMAGLIST" = yes; then
4457 echo "$ac_t""yes" 1>&6
4458 else
4459 echo "$ac_t""no" 1>&6
4460 fi
4461
4462
4463 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4464 echo "configure:4465: checking "for --enable-listbox"" >&5
4465 no_cache=0
4466 # Check whether --enable-listbox or --disable-listbox was given.
4467 if test "${enable_listbox+set}" = set; then
4468 enableval="$enable_listbox"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4472 else
4473 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4474 fi
4475
4476 else
4477
4478 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4486
4487 fi
4488
4489
4490 eval "$ac_cv_use_listbox"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_LISTBOX" = yes; then
4496 echo "$ac_t""yes" 1>&6
4497 else
4498 echo "$ac_t""no" 1>&6
4499 fi
4500
4501
4502 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4503 echo "configure:4504: checking "for --enable-listctrl"" >&5
4504 no_cache=0
4505 # Check whether --enable-listctrl or --disable-listctrl was given.
4506 if test "${enable_listctrl+set}" = set; then
4507 enableval="$enable_listctrl"
4508
4509 if test "$enableval" = yes; then
4510 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4511 else
4512 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4513 fi
4514
4515 else
4516
4517 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4518 if test "x$LINE" != x ; then
4519 eval "DEFAULT_$LINE"
4520 else
4521 no_cache=1
4522 fi
4523
4524 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4525
4526 fi
4527
4528
4529 eval "$ac_cv_use_listctrl"
4530 if test "$no_cache" != 1; then
4531 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4532 fi
4533
4534 if test "$wxUSE_LISTCTRL" = yes; then
4535 echo "$ac_t""yes" 1>&6
4536 else
4537 echo "$ac_t""no" 1>&6
4538 fi
4539
4540
4541 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4542 echo "configure:4543: checking "for --enable-notebook"" >&5
4543 no_cache=0
4544 # Check whether --enable-notebook or --disable-notebook was given.
4545 if test "${enable_notebook+set}" = set; then
4546 enableval="$enable_notebook"
4547
4548 if test "$enableval" = yes; then
4549 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4550 else
4551 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4552 fi
4553
4554 else
4555
4556 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4557 if test "x$LINE" != x ; then
4558 eval "DEFAULT_$LINE"
4559 else
4560 no_cache=1
4561 fi
4562
4563 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4564
4565 fi
4566
4567
4568 eval "$ac_cv_use_notebook"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_NOTEBOOK" = yes; then
4574 echo "$ac_t""yes" 1>&6
4575 else
4576 echo "$ac_t""no" 1>&6
4577 fi
4578
4579
4580 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4581 echo "configure:4582: checking "for --enable-radiobox"" >&5
4582 no_cache=0
4583 # Check whether --enable-radiobox or --disable-radiobox was given.
4584 if test "${enable_radiobox+set}" = set; then
4585 enableval="$enable_radiobox"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4589 else
4590 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4591 fi
4592
4593 else
4594
4595 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4603
4604 fi
4605
4606
4607 eval "$ac_cv_use_radiobox"
4608 if test "$no_cache" != 1; then
4609 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4610 fi
4611
4612 if test "$wxUSE_RADIOBOX" = yes; then
4613 echo "$ac_t""yes" 1>&6
4614 else
4615 echo "$ac_t""no" 1>&6
4616 fi
4617
4618
4619 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4620 echo "configure:4621: checking "for --enable-radiobtn"" >&5
4621 no_cache=0
4622 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4623 if test "${enable_radiobtn+set}" = set; then
4624 enableval="$enable_radiobtn"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4628 else
4629 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4630 fi
4631
4632 else
4633
4634 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4642
4643 fi
4644
4645
4646 eval "$ac_cv_use_radiobtn"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_RADIOBTN" = yes; then
4652 echo "$ac_t""yes" 1>&6
4653 else
4654 echo "$ac_t""no" 1>&6
4655 fi
4656
4657
4658 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4659 echo "configure:4660: checking "for --enable-sash"" >&5
4660 no_cache=0
4661 # Check whether --enable-sash or --disable-sash was given.
4662 if test "${enable_sash+set}" = set; then
4663 enableval="$enable_sash"
4664
4665 if test "$enableval" = yes; then
4666 ac_cv_use_sash='wxUSE_SASH=yes'
4667 else
4668 ac_cv_use_sash='wxUSE_SASH=no'
4669 fi
4670
4671 else
4672
4673 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
4680 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4681
4682 fi
4683
4684
4685 eval "$ac_cv_use_sash"
4686 if test "$no_cache" != 1; then
4687 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4688 fi
4689
4690 if test "$wxUSE_SASH" = yes; then
4691 echo "$ac_t""yes" 1>&6
4692 else
4693 echo "$ac_t""no" 1>&6
4694 fi
4695
4696
4697 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4698 echo "configure:4699: checking "for --enable-scrollbar"" >&5
4699 no_cache=0
4700 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4701 if test "${enable_scrollbar+set}" = set; then
4702 enableval="$enable_scrollbar"
4703
4704 if test "$enableval" = yes; then
4705 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4706 else
4707 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4708 fi
4709
4710 else
4711
4712 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
4719 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4720
4721 fi
4722
4723
4724 eval "$ac_cv_use_scrollbar"
4725 if test "$no_cache" != 1; then
4726 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4727 fi
4728
4729 if test "$wxUSE_SCROLLBAR" = yes; then
4730 echo "$ac_t""yes" 1>&6
4731 else
4732 echo "$ac_t""no" 1>&6
4733 fi
4734
4735
4736 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4737 echo "configure:4738: checking "for --enable-slider"" >&5
4738 no_cache=0
4739 # Check whether --enable-slider or --disable-slider was given.
4740 if test "${enable_slider+set}" = set; then
4741 enableval="$enable_slider"
4742
4743 if test "$enableval" = yes; then
4744 ac_cv_use_slider='wxUSE_SLIDER=yes'
4745 else
4746 ac_cv_use_slider='wxUSE_SLIDER=no'
4747 fi
4748
4749 else
4750
4751 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4752 if test "x$LINE" != x ; then
4753 eval "DEFAULT_$LINE"
4754 else
4755 no_cache=1
4756 fi
4757
4758 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4759
4760 fi
4761
4762
4763 eval "$ac_cv_use_slider"
4764 if test "$no_cache" != 1; then
4765 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4766 fi
4767
4768 if test "$wxUSE_SLIDER" = yes; then
4769 echo "$ac_t""yes" 1>&6
4770 else
4771 echo "$ac_t""no" 1>&6
4772 fi
4773
4774
4775 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4776 echo "configure:4777: checking "for --enable-spinbtn"" >&5
4777 no_cache=0
4778 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4779 if test "${enable_spinbtn+set}" = set; then
4780 enableval="$enable_spinbtn"
4781
4782 if test "$enableval" = yes; then
4783 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4784 else
4785 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4786 fi
4787
4788 else
4789
4790 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4791 if test "x$LINE" != x ; then
4792 eval "DEFAULT_$LINE"
4793 else
4794 no_cache=1
4795 fi
4796
4797 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4798
4799 fi
4800
4801
4802 eval "$ac_cv_use_spinbtn"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_SPINBTN" = yes; then
4808 echo "$ac_t""yes" 1>&6
4809 else
4810 echo "$ac_t""no" 1>&6
4811 fi
4812
4813
4814 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
4815 echo "configure:4816: checking "for --enable-spinctrl"" >&5
4816 no_cache=0
4817 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4818 if test "${enable_spinctrl+set}" = set; then
4819 enableval="$enable_spinctrl"
4820
4821 if test "$enableval" = yes; then
4822 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4823 else
4824 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4825 fi
4826
4827 else
4828
4829 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4830 if test "x$LINE" != x ; then
4831 eval "DEFAULT_$LINE"
4832 else
4833 no_cache=1
4834 fi
4835
4836 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4837
4838 fi
4839
4840
4841 eval "$ac_cv_use_spinctrl"
4842 if test "$no_cache" != 1; then
4843 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4844 fi
4845
4846 if test "$wxUSE_SPINCTRL" = yes; then
4847 echo "$ac_t""yes" 1>&6
4848 else
4849 echo "$ac_t""no" 1>&6
4850 fi
4851
4852
4853 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4854 echo "configure:4855: checking "for --enable-splitter"" >&5
4855 no_cache=0
4856 # Check whether --enable-splitter or --disable-splitter was given.
4857 if test "${enable_splitter+set}" = set; then
4858 enableval="$enable_splitter"
4859
4860 if test "$enableval" = yes; then
4861 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4862 else
4863 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4864 fi
4865
4866 else
4867
4868 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4869 if test "x$LINE" != x ; then
4870 eval "DEFAULT_$LINE"
4871 else
4872 no_cache=1
4873 fi
4874
4875 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4876
4877 fi
4878
4879
4880 eval "$ac_cv_use_splitter"
4881 if test "$no_cache" != 1; then
4882 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4883 fi
4884
4885 if test "$wxUSE_SPLITTER" = yes; then
4886 echo "$ac_t""yes" 1>&6
4887 else
4888 echo "$ac_t""no" 1>&6
4889 fi
4890
4891
4892 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4893 echo "configure:4894: checking "for --enable-statbmp"" >&5
4894 no_cache=0
4895 # Check whether --enable-statbmp or --disable-statbmp was given.
4896 if test "${enable_statbmp+set}" = set; then
4897 enableval="$enable_statbmp"
4898
4899 if test "$enableval" = yes; then
4900 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4901 else
4902 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4903 fi
4904
4905 else
4906
4907 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4908 if test "x$LINE" != x ; then
4909 eval "DEFAULT_$LINE"
4910 else
4911 no_cache=1
4912 fi
4913
4914 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4915
4916 fi
4917
4918
4919 eval "$ac_cv_use_statbmp"
4920 if test "$no_cache" != 1; then
4921 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4922 fi
4923
4924 if test "$wxUSE_STATBMP" = yes; then
4925 echo "$ac_t""yes" 1>&6
4926 else
4927 echo "$ac_t""no" 1>&6
4928 fi
4929
4930
4931 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4932 echo "configure:4933: checking "for --enable-statbox"" >&5
4933 no_cache=0
4934 # Check whether --enable-statbox or --disable-statbox was given.
4935 if test "${enable_statbox+set}" = set; then
4936 enableval="$enable_statbox"
4937
4938 if test "$enableval" = yes; then
4939 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4940 else
4941 ac_cv_use_statbox='wxUSE_STATBOX=no'
4942 fi
4943
4944 else
4945
4946 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4947 if test "x$LINE" != x ; then
4948 eval "DEFAULT_$LINE"
4949 else
4950 no_cache=1
4951 fi
4952
4953 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4954
4955 fi
4956
4957
4958 eval "$ac_cv_use_statbox"
4959 if test "$no_cache" != 1; then
4960 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4961 fi
4962
4963 if test "$wxUSE_STATBOX" = yes; then
4964 echo "$ac_t""yes" 1>&6
4965 else
4966 echo "$ac_t""no" 1>&6
4967 fi
4968
4969
4970 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4971 echo "configure:4972: checking "for --enable-statline"" >&5
4972 no_cache=0
4973 # Check whether --enable-statline or --disable-statline was given.
4974 if test "${enable_statline+set}" = set; then
4975 enableval="$enable_statline"
4976
4977 if test "$enableval" = yes; then
4978 ac_cv_use_statline='wxUSE_STATLINE=yes'
4979 else
4980 ac_cv_use_statline='wxUSE_STATLINE=no'
4981 fi
4982
4983 else
4984
4985 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
4992 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4993
4994 fi
4995
4996
4997 eval "$ac_cv_use_statline"
4998 if test "$no_cache" != 1; then
4999 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5000 fi
5001
5002 if test "$wxUSE_STATLINE" = yes; then
5003 echo "$ac_t""yes" 1>&6
5004 else
5005 echo "$ac_t""no" 1>&6
5006 fi
5007
5008
5009 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
5010 echo "configure:5011: checking "for --enable-statusbar"" >&5
5011 no_cache=0
5012 # Check whether --enable-statusbar or --disable-statusbar was given.
5013 if test "${enable_statusbar+set}" = set; then
5014 enableval="$enable_statusbar"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5018 else
5019 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5020 fi
5021
5022 else
5023
5024 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5032
5033 fi
5034
5035
5036 eval "$ac_cv_use_statusbar"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_STATUSBAR" = yes; then
5042 echo "$ac_t""yes" 1>&6
5043 else
5044 echo "$ac_t""no" 1>&6
5045 fi
5046
5047
5048 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
5049 echo "configure:5050: checking "for --enable-tabdialog"" >&5
5050 no_cache=0
5051 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5052 if test "${enable_tabdialog+set}" = set; then
5053 enableval="$enable_tabdialog"
5054
5055 if test "$enableval" = yes; then
5056 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5057 else
5058 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5059 fi
5060
5061 else
5062
5063 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5064 if test "x$LINE" != x ; then
5065 eval "DEFAULT_$LINE"
5066 else
5067 no_cache=1
5068 fi
5069
5070 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5071
5072 fi
5073
5074
5075 eval "$ac_cv_use_tabdialog"
5076 if test "$no_cache" != 1; then
5077 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5078 fi
5079
5080 if test "$wxUSE_TABDIALOG" = yes; then
5081 echo "$ac_t""yes" 1>&6
5082 else
5083 echo "$ac_t""no" 1>&6
5084 fi
5085
5086
5087 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5088 echo "configure:5089: checking "for --enable-toolbar"" >&5
5089 no_cache=0
5090 # Check whether --enable-toolbar or --disable-toolbar was given.
5091 if test "${enable_toolbar+set}" = set; then
5092 enableval="$enable_toolbar"
5093
5094 if test "$enableval" = yes; then
5095 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5096 else
5097 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5098 fi
5099
5100 else
5101
5102 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5103 if test "x$LINE" != x ; then
5104 eval "DEFAULT_$LINE"
5105 else
5106 no_cache=1
5107 fi
5108
5109 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5110
5111 fi
5112
5113
5114 eval "$ac_cv_use_toolbar"
5115 if test "$no_cache" != 1; then
5116 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5117 fi
5118
5119 if test "$wxUSE_TOOLBAR" = yes; then
5120 echo "$ac_t""yes" 1>&6
5121 else
5122 echo "$ac_t""no" 1>&6
5123 fi
5124
5125
5126 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5127 echo "configure:5128: checking "for --enable-tbarnative"" >&5
5128 no_cache=0
5129 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5130 if test "${enable_tbarnative+set}" = set; then
5131 enableval="$enable_tbarnative"
5132
5133 if test "$enableval" = yes; then
5134 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5135 else
5136 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5137 fi
5138
5139 else
5140
5141 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5142 if test "x$LINE" != x ; then
5143 eval "DEFAULT_$LINE"
5144 else
5145 no_cache=1
5146 fi
5147
5148 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5149
5150 fi
5151
5152
5153 eval "$ac_cv_use_tbarnative"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5159 echo "$ac_t""yes" 1>&6
5160 else
5161 echo "$ac_t""no" 1>&6
5162 fi
5163
5164
5165 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5166 echo "configure:5167: checking "for --enable-tbarsmpl"" >&5
5167 no_cache=0
5168 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5169 if test "${enable_tbarsmpl+set}" = set; then
5170 enableval="$enable_tbarsmpl"
5171
5172 if test "$enableval" = yes; then
5173 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5174 else
5175 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5176 fi
5177
5178 else
5179
5180 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5188
5189 fi
5190
5191
5192 eval "$ac_cv_use_tbarsmpl"
5193 if test "$no_cache" != 1; then
5194 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5195 fi
5196
5197 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5198 echo "$ac_t""yes" 1>&6
5199 else
5200 echo "$ac_t""no" 1>&6
5201 fi
5202
5203
5204 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5205 echo "configure:5206: checking "for --enable-treectrl"" >&5
5206 no_cache=0
5207 # Check whether --enable-treectrl or --disable-treectrl was given.
5208 if test "${enable_treectrl+set}" = set; then
5209 enableval="$enable_treectrl"
5210
5211 if test "$enableval" = yes; then
5212 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5213 else
5214 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5215 fi
5216
5217 else
5218
5219 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5220 if test "x$LINE" != x ; then
5221 eval "DEFAULT_$LINE"
5222 else
5223 no_cache=1
5224 fi
5225
5226 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5227
5228 fi
5229
5230
5231 eval "$ac_cv_use_treectrl"
5232 if test "$no_cache" != 1; then
5233 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5234 fi
5235
5236 if test "$wxUSE_TREECTRL" = yes; then
5237 echo "$ac_t""yes" 1>&6
5238 else
5239 echo "$ac_t""no" 1>&6
5240 fi
5241
5242
5243
5244
5245 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5246 echo "configure:5247: checking "for --enable-commondlg"" >&5
5247 no_cache=0
5248 # Check whether --enable-commondlg or --disable-commondlg was given.
5249 if test "${enable_commondlg+set}" = set; then
5250 enableval="$enable_commondlg"
5251
5252 if test "$enableval" = yes; then
5253 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5254 else
5255 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5256 fi
5257
5258 else
5259
5260 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5261 if test "x$LINE" != x ; then
5262 eval "DEFAULT_$LINE"
5263 else
5264 no_cache=1
5265 fi
5266
5267 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5268
5269 fi
5270
5271
5272 eval "$ac_cv_use_commondlg"
5273 if test "$no_cache" != 1; then
5274 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5275 fi
5276
5277 if test "$wxUSE_COMMONDLGS" = yes; then
5278 echo "$ac_t""yes" 1>&6
5279 else
5280 echo "$ac_t""no" 1>&6
5281 fi
5282
5283
5284 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5285 echo "configure:5286: checking "for --enable-dirdlg"" >&5
5286 no_cache=0
5287 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5288 if test "${enable_dirdlg+set}" = set; then
5289 enableval="$enable_dirdlg"
5290
5291 if test "$enableval" = yes; then
5292 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5293 else
5294 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5295 fi
5296
5297 else
5298
5299 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5300 if test "x$LINE" != x ; then
5301 eval "DEFAULT_$LINE"
5302 else
5303 no_cache=1
5304 fi
5305
5306 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5307
5308 fi
5309
5310
5311 eval "$ac_cv_use_dirdlg"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_DIRDLG" = yes; then
5317 echo "$ac_t""yes" 1>&6
5318 else
5319 echo "$ac_t""no" 1>&6
5320 fi
5321
5322
5323 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5324 echo "configure:5325: checking "for --enable-textdlg"" >&5
5325 no_cache=0
5326 # Check whether --enable-textdlg or --disable-textdlg was given.
5327 if test "${enable_textdlg+set}" = set; then
5328 enableval="$enable_textdlg"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5332 else
5333 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5334 fi
5335
5336 else
5337
5338 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5346
5347 fi
5348
5349
5350 eval "$ac_cv_use_textdlg"
5351 if test "$no_cache" != 1; then
5352 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5353 fi
5354
5355 if test "$wxUSE_TEXTDLG" = yes; then
5356 echo "$ac_t""yes" 1>&6
5357 else
5358 echo "$ac_t""no" 1>&6
5359 fi
5360
5361
5362 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5363 echo "configure:5364: checking "for --enable-tipdlg"" >&5
5364 no_cache=0
5365 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5366 if test "${enable_tipdlg+set}" = set; then
5367 enableval="$enable_tipdlg"
5368
5369 if test "$enableval" = yes; then
5370 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5371 else
5372 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5373 fi
5374
5375 else
5376
5377 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5378 if test "x$LINE" != x ; then
5379 eval "DEFAULT_$LINE"
5380 else
5381 no_cache=1
5382 fi
5383
5384 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5385
5386 fi
5387
5388
5389 eval "$ac_cv_use_tipdlg"
5390 if test "$no_cache" != 1; then
5391 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5392 fi
5393
5394 if test "$wxUSE_STARTUP_TIPS" = yes; then
5395 echo "$ac_t""yes" 1>&6
5396 else
5397 echo "$ac_t""no" 1>&6
5398 fi
5399
5400
5401 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5402 echo "configure:5403: checking "for --enable-progressdlg"" >&5
5403 no_cache=0
5404 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5405 if test "${enable_progressdlg+set}" = set; then
5406 enableval="$enable_progressdlg"
5407
5408 if test "$enableval" = yes; then
5409 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5410 else
5411 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5412 fi
5413
5414 else
5415
5416 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5424
5425 fi
5426
5427
5428 eval "$ac_cv_use_progressdlg"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_PROGRESSDLG" = yes; then
5434 echo "$ac_t""yes" 1>&6
5435 else
5436 echo "$ac_t""no" 1>&6
5437 fi
5438
5439
5440 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5441 echo "configure:5442: checking "for --enable-miniframe"" >&5
5442 no_cache=0
5443 # Check whether --enable-miniframe or --disable-miniframe was given.
5444 if test "${enable_miniframe+set}" = set; then
5445 enableval="$enable_miniframe"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5449 else
5450 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5451 fi
5452
5453 else
5454
5455 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5463
5464 fi
5465
5466
5467 eval "$ac_cv_use_miniframe"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_MINIFRAME" = yes; then
5473 echo "$ac_t""yes" 1>&6
5474 else
5475 echo "$ac_t""no" 1>&6
5476 fi
5477
5478
5479 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5480 echo "configure:5481: checking "for --enable-html"" >&5
5481 no_cache=0
5482 # Check whether --enable-html or --disable-html was given.
5483 if test "${enable_html+set}" = set; then
5484 enableval="$enable_html"
5485
5486 if test "$enableval" = yes; then
5487 ac_cv_use_html='wxUSE_HTML=yes'
5488 else
5489 ac_cv_use_html='wxUSE_HTML=no'
5490 fi
5491
5492 else
5493
5494 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5502
5503 fi
5504
5505
5506 eval "$ac_cv_use_html"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_HTML" = yes; then
5512 echo "$ac_t""yes" 1>&6
5513 else
5514 echo "$ac_t""no" 1>&6
5515 fi
5516
5517
5518 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5519 echo "configure:5520: checking "for --enable-tooltips"" >&5
5520 no_cache=0
5521 # Check whether --enable-tooltips or --disable-tooltips was given.
5522 if test "${enable_tooltips+set}" = set; then
5523 enableval="$enable_tooltips"
5524
5525 if test "$enableval" = yes; then
5526 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5527 else
5528 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5529 fi
5530
5531 else
5532
5533 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5534 if test "x$LINE" != x ; then
5535 eval "DEFAULT_$LINE"
5536 else
5537 no_cache=1
5538 fi
5539
5540 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5541
5542 fi
5543
5544
5545 eval "$ac_cv_use_tooltips"
5546 if test "$no_cache" != 1; then
5547 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5548 fi
5549
5550 if test "$wxUSE_TOOLTIPS" = yes; then
5551 echo "$ac_t""yes" 1>&6
5552 else
5553 echo "$ac_t""no" 1>&6
5554 fi
5555
5556
5557 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5558 echo "configure:5559: checking "for --enable-splines"" >&5
5559 no_cache=0
5560 # Check whether --enable-splines or --disable-splines was given.
5561 if test "${enable_splines+set}" = set; then
5562 enableval="$enable_splines"
5563
5564 if test "$enableval" = yes; then
5565 ac_cv_use_splines='wxUSE_SPLINES=yes'
5566 else
5567 ac_cv_use_splines='wxUSE_SPLINES=no'
5568 fi
5569
5570 else
5571
5572 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
5579 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5580
5581 fi
5582
5583
5584 eval "$ac_cv_use_splines"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_SPLINES" = yes; then
5590 echo "$ac_t""yes" 1>&6
5591 else
5592 echo "$ac_t""no" 1>&6
5593 fi
5594
5595
5596 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5597 echo "configure:5598: checking "for --enable-validators"" >&5
5598 no_cache=0
5599 # Check whether --enable-validators or --disable-validators was given.
5600 if test "${enable_validators+set}" = set; then
5601 enableval="$enable_validators"
5602
5603 if test "$enableval" = yes; then
5604 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5605 else
5606 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5607 fi
5608
5609 else
5610
5611 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5612 if test "x$LINE" != x ; then
5613 eval "DEFAULT_$LINE"
5614 else
5615 no_cache=1
5616 fi
5617
5618 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5619
5620 fi
5621
5622
5623 eval "$ac_cv_use_validators"
5624 if test "$no_cache" != 1; then
5625 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5626 fi
5627
5628 if test "$wxUSE_VALIDATORS" = yes; then
5629 echo "$ac_t""yes" 1>&6
5630 else
5631 echo "$ac_t""no" 1>&6
5632 fi
5633
5634
5635 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5636 echo "configure:5637: checking "for --enable-busyinfo"" >&5
5637 no_cache=0
5638 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5639 if test "${enable_busyinfo+set}" = set; then
5640 enableval="$enable_busyinfo"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5644 else
5645 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5646 fi
5647
5648 else
5649
5650 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5658
5659 fi
5660
5661
5662 eval "$ac_cv_use_busyinfo"
5663 if test "$no_cache" != 1; then
5664 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5665 fi
5666
5667 if test "$wxUSE_BUSYINFO" = yes; then
5668 echo "$ac_t""yes" 1>&6
5669 else
5670 echo "$ac_t""no" 1>&6
5671 fi
5672
5673
5674 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
5675 echo "configure:5676: checking "for --enable-plot"" >&5
5676 no_cache=0
5677 # Check whether --enable-plot or --disable-plot was given.
5678 if test "${enable_plot+set}" = set; then
5679 enableval="$enable_plot"
5680
5681 if test "$enableval" = yes; then
5682 ac_cv_use_plot='wxUSE_PLOT=yes'
5683 else
5684 ac_cv_use_plot='wxUSE_PLOT=no'
5685 fi
5686
5687 else
5688
5689 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5690 if test "x$LINE" != x ; then
5691 eval "DEFAULT_$LINE"
5692 else
5693 no_cache=1
5694 fi
5695
5696 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5697
5698 fi
5699
5700
5701 eval "$ac_cv_use_plot"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_PLOT" = yes; then
5707 echo "$ac_t""yes" 1>&6
5708 else
5709 echo "$ac_t""no" 1>&6
5710 fi
5711
5712
5713
5714
5715 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5716 echo "configure:5717: checking "for --enable-gif"" >&5
5717 no_cache=0
5718 # Check whether --enable-gif or --disable-gif was given.
5719 if test "${enable_gif+set}" = set; then
5720 enableval="$enable_gif"
5721
5722 if test "$enableval" = yes; then
5723 ac_cv_use_gif='wxUSE_GIF=yes'
5724 else
5725 ac_cv_use_gif='wxUSE_GIF=no'
5726 fi
5727
5728 else
5729
5730 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
5737 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5738
5739 fi
5740
5741
5742 eval "$ac_cv_use_gif"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_GIF" = yes; then
5748 echo "$ac_t""yes" 1>&6
5749 else
5750 echo "$ac_t""no" 1>&6
5751 fi
5752
5753
5754 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5755 echo "configure:5756: checking "for --enable-pcx"" >&5
5756 no_cache=0
5757 # Check whether --enable-pcx or --disable-pcx was given.
5758 if test "${enable_pcx+set}" = set; then
5759 enableval="$enable_pcx"
5760
5761 if test "$enableval" = yes; then
5762 ac_cv_use_pcx='wxUSE_PCX=yes'
5763 else
5764 ac_cv_use_pcx='wxUSE_PCX=no'
5765 fi
5766
5767 else
5768
5769 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5770 if test "x$LINE" != x ; then
5771 eval "DEFAULT_$LINE"
5772 else
5773 no_cache=1
5774 fi
5775
5776 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5777
5778 fi
5779
5780
5781 eval "$ac_cv_use_pcx"
5782 if test "$no_cache" != 1; then
5783 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5784 fi
5785
5786 if test "$wxUSE_PCX" = yes; then
5787 echo "$ac_t""yes" 1>&6
5788 else
5789 echo "$ac_t""no" 1>&6
5790 fi
5791
5792
5793 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5794 echo "configure:5795: checking "for --enable-pnm"" >&5
5795 no_cache=0
5796 # Check whether --enable-pnm or --disable-pnm was given.
5797 if test "${enable_pnm+set}" = set; then
5798 enableval="$enable_pnm"
5799
5800 if test "$enableval" = yes; then
5801 ac_cv_use_pnm='wxUSE_PNM=yes'
5802 else
5803 ac_cv_use_pnm='wxUSE_PNM=no'
5804 fi
5805
5806 else
5807
5808 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5809 if test "x$LINE" != x ; then
5810 eval "DEFAULT_$LINE"
5811 else
5812 no_cache=1
5813 fi
5814
5815 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5816
5817 fi
5818
5819
5820 eval "$ac_cv_use_pnm"
5821 if test "$no_cache" != 1; then
5822 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5823 fi
5824
5825 if test "$wxUSE_PNM" = yes; then
5826 echo "$ac_t""yes" 1>&6
5827 else
5828 echo "$ac_t""no" 1>&6
5829 fi
5830
5831
5832 fi
5833
5834
5835 echo "saving argument cache $wx_arg_cache_file"
5836 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5837
5838
5839
5840 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5841 echo "configure:5842: checking for toolkit" >&5
5842
5843 if test "$wxUSE_GUI" = "yes"; then
5844
5845 if test "$USE_BEOS" = 1; then
5846 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5847 fi
5848
5849 if test "$TOOLKIT_GIVEN" = 1; then
5850 for toolkit in `echo $ALL_TOOLKITS`; do
5851 var=wxUSE_$toolkit
5852 eval "value=\$${var}"
5853 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5854 done
5855 else
5856 for toolkit in `echo $ALL_TOOLKITS`; do
5857 if test "$has_toolkit_in_cache" != 1; then
5858 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5859 else
5860 var=DEFAULT_wxUSE_$toolkit
5861 fi
5862 eval "wxUSE_$toolkit=\$${var}"
5863 done
5864 fi
5865
5866 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5867
5868 case "${host}" in
5869 *-pc-os2_emx )
5870 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5871 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5872 LEX_STEM="lexyy"
5873 ;;
5874 *)
5875 PATH_IFS=':'
5876 LEX_STEM="lex.yy"
5877 ;;
5878 esac
5879
5880 case "$NUM_TOOLKITS" in
5881 1)
5882 ;;
5883 0)
5884 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5885 ;;
5886 *)
5887 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5888 esac
5889
5890 for toolkit in `echo $ALL_TOOLKITS`; do
5891 var=wxUSE_$toolkit
5892 eval "value=\$${var}"
5893 if test "x$value" != x; then
5894 cache_var=CACHE_$toolkit
5895 eval "cache=\$${cache_var}"
5896 if test "$cache" = 1; then
5897 echo "$var=$value" >> ${wx_arg_cache_file}
5898 fi
5899 if test "$value" = 1; then
5900 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5901 fi
5902 fi
5903 done
5904
5905 else
5906 PATH_IFS=':'
5907 echo "$ac_t""base only" 1>&6
5908 fi
5909
5910
5911 cat > confcache <<\EOF
5912 # This file is a shell script that caches the results of configure
5913 # tests run on this system so they can be shared between configure
5914 # scripts and configure runs. It is not useful on other systems.
5915 # If it contains results you don't want to keep, you may remove or edit it.
5916 #
5917 # By default, configure uses ./config.cache as the cache file,
5918 # creating it if it does not exist already. You can give configure
5919 # the --cache-file=FILE option to use a different cache file; that is
5920 # what configure does when it calls configure scripts in
5921 # subdirectories, so they share the cache.
5922 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5923 # config.status only pays attention to the cache file if you give it the
5924 # --recheck option to rerun configure.
5925 #
5926 EOF
5927 # The following way of writing the cache mishandles newlines in values,
5928 # but we know of no workaround that is simple, portable, and efficient.
5929 # So, don't put newlines in cache variables' values.
5930 # Ultrix sh set writes to stderr and can't be redirected directly,
5931 # and sets the high bit in the cache file unless we assign to the vars.
5932 (set) 2>&1 |
5933 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5934 *ac_space=\ *)
5935 # `set' does not quote correctly, so add quotes (double-quote substitution
5936 # turns \\\\ into \\, and sed turns \\ into \).
5937 sed -n \
5938 -e "s/'/'\\\\''/g" \
5939 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5940 ;;
5941 *)
5942 # `set' quotes correctly as required by POSIX, so do not add quotes.
5943 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5944 ;;
5945 esac >> confcache
5946 if cmp -s $cache_file confcache; then
5947 :
5948 else
5949 if test -w $cache_file; then
5950 echo "updating cache $cache_file"
5951 cat confcache > $cache_file
5952 else
5953 echo "not updating unwritable cache $cache_file"
5954 fi
5955 fi
5956 rm -f confcache
5957
5958
5959 if eval "test $host != $build"; then
5960 if eval "test $host_alias != NONE"; then
5961 CC=$host_alias-gcc
5962 CXX=$host_alias-c++
5963 AR=$host_alias-ar
5964 RANLIB=$host_alias-ranlib
5965 DLLTOOL=$host_alias-dlltool
5966 LD=$host_alias-ld
5967 NM=$host_alias-nm
5968 STRIP=$host_alias-strip
5969 fi
5970 fi
5971
5972 # Extract the first word of "gcc", so it can be a program name with args.
5973 set dummy gcc; ac_word=$2
5974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5975 echo "configure:5976: checking for $ac_word" >&5
5976 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5978 else
5979 if test -n "$CC"; then
5980 ac_cv_prog_CC="$CC" # Let the user override the test.
5981 else
5982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5983 ac_dummy="$PATH"
5984 for ac_dir in $ac_dummy; do
5985 test -z "$ac_dir" && ac_dir=.
5986 if test -f $ac_dir/$ac_word; then
5987 ac_cv_prog_CC="gcc"
5988 break
5989 fi
5990 done
5991 IFS="$ac_save_ifs"
5992 fi
5993 fi
5994 CC="$ac_cv_prog_CC"
5995 if test -n "$CC"; then
5996 echo "$ac_t""$CC" 1>&6
5997 else
5998 echo "$ac_t""no" 1>&6
5999 fi
6000
6001 if test -z "$CC"; then
6002 # Extract the first word of "cc", so it can be a program name with args.
6003 set dummy cc; ac_word=$2
6004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6005 echo "configure:6006: checking for $ac_word" >&5
6006 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6007 echo $ac_n "(cached) $ac_c" 1>&6
6008 else
6009 if test -n "$CC"; then
6010 ac_cv_prog_CC="$CC" # Let the user override the test.
6011 else
6012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6013 ac_prog_rejected=no
6014 ac_dummy="$PATH"
6015 for ac_dir in $ac_dummy; do
6016 test -z "$ac_dir" && ac_dir=.
6017 if test -f $ac_dir/$ac_word; then
6018 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6019 ac_prog_rejected=yes
6020 continue
6021 fi
6022 ac_cv_prog_CC="cc"
6023 break
6024 fi
6025 done
6026 IFS="$ac_save_ifs"
6027 if test $ac_prog_rejected = yes; then
6028 # We found a bogon in the path, so make sure we never use it.
6029 set dummy $ac_cv_prog_CC
6030 shift
6031 if test $# -gt 0; then
6032 # We chose a different compiler from the bogus one.
6033 # However, it has the same basename, so the bogon will be chosen
6034 # first if we set CC to just the basename; use the full file name.
6035 shift
6036 set dummy "$ac_dir/$ac_word" "$@"
6037 shift
6038 ac_cv_prog_CC="$@"
6039 fi
6040 fi
6041 fi
6042 fi
6043 CC="$ac_cv_prog_CC"
6044 if test -n "$CC"; then
6045 echo "$ac_t""$CC" 1>&6
6046 else
6047 echo "$ac_t""no" 1>&6
6048 fi
6049
6050 if test -z "$CC"; then
6051 case "`uname -s`" in
6052 *win32* | *WIN32*)
6053 # Extract the first word of "cl", so it can be a program name with args.
6054 set dummy cl; ac_word=$2
6055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6056 echo "configure:6057: checking for $ac_word" >&5
6057 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6059 else
6060 if test -n "$CC"; then
6061 ac_cv_prog_CC="$CC" # Let the user override the test.
6062 else
6063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6064 ac_dummy="$PATH"
6065 for ac_dir in $ac_dummy; do
6066 test -z "$ac_dir" && ac_dir=.
6067 if test -f $ac_dir/$ac_word; then
6068 ac_cv_prog_CC="cl"
6069 break
6070 fi
6071 done
6072 IFS="$ac_save_ifs"
6073 fi
6074 fi
6075 CC="$ac_cv_prog_CC"
6076 if test -n "$CC"; then
6077 echo "$ac_t""$CC" 1>&6
6078 else
6079 echo "$ac_t""no" 1>&6
6080 fi
6081 ;;
6082 esac
6083 fi
6084 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6085 fi
6086
6087 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6088 echo "configure:6089: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6089
6090 ac_ext=c
6091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6092 ac_cpp='$CPP $CPPFLAGS'
6093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6095 cross_compiling=$ac_cv_prog_cc_cross
6096
6097 cat > conftest.$ac_ext << EOF
6098
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101
6102 main(){return(0);}
6103 EOF
6104 if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6105 ac_cv_prog_cc_works=yes
6106 # If we can't run a trivial program, we are probably using a cross compiler.
6107 if (./conftest; exit) 2>/dev/null; then
6108 ac_cv_prog_cc_cross=no
6109 else
6110 ac_cv_prog_cc_cross=yes
6111 fi
6112 else
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6115 ac_cv_prog_cc_works=no
6116 fi
6117 rm -fr conftest*
6118 ac_ext=c
6119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6120 ac_cpp='$CPP $CPPFLAGS'
6121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6123 cross_compiling=$ac_cv_prog_cc_cross
6124
6125 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6126 if test $ac_cv_prog_cc_works = no; then
6127 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6128 fi
6129 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6130 echo "configure:6131: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6131 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6132 cross_compiling=$ac_cv_prog_cc_cross
6133
6134 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6135 echo "configure:6136: checking whether we are using GNU C" >&5
6136 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6138 else
6139 cat > conftest.c <<EOF
6140 #ifdef __GNUC__
6141 yes;
6142 #endif
6143 EOF
6144 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6145 ac_cv_prog_gcc=yes
6146 else
6147 ac_cv_prog_gcc=no
6148 fi
6149 fi
6150
6151 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6152
6153 if test $ac_cv_prog_gcc = yes; then
6154 GCC=yes
6155 else
6156 GCC=
6157 fi
6158
6159 ac_test_CFLAGS="${CFLAGS+set}"
6160 ac_save_CFLAGS="$CFLAGS"
6161 CFLAGS=
6162 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6163 echo "configure:6164: checking whether ${CC-cc} accepts -g" >&5
6164 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6166 else
6167 echo 'void f(){}' > conftest.c
6168 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6169 ac_cv_prog_cc_g=yes
6170 else
6171 ac_cv_prog_cc_g=no
6172 fi
6173 rm -f conftest*
6174
6175 fi
6176
6177 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6178 if test "$ac_test_CFLAGS" = set; then
6179 CFLAGS="$ac_save_CFLAGS"
6180 elif test $ac_cv_prog_cc_g = yes; then
6181 if test "$GCC" = yes; then
6182 CFLAGS="-g -O2"
6183 else
6184 CFLAGS="-g"
6185 fi
6186 else
6187 if test "$GCC" = yes; then
6188 CFLAGS="-O2"
6189 else
6190 CFLAGS=
6191 fi
6192 fi
6193
6194
6195 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6196
6197 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6198 echo "configure:6199: checking how to run the C preprocessor" >&5
6199 # On Suns, sometimes $CPP names a directory.
6200 if test -n "$CPP" && test -d "$CPP"; then
6201 CPP=
6202 fi
6203 if test -z "$CPP"; then
6204 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6206 else
6207 # This must be in double quotes, not single quotes, because CPP may get
6208 # substituted into the Makefile and "${CC-cc}" will confuse make.
6209 CPP="${CC-cc} -E"
6210 # On the NeXT, cc -E runs the code through the compiler's parser,
6211 # not just through cpp.
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6215 #include <assert.h>
6216 Syntax Error
6217 EOF
6218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6219 { (eval echo configure:6220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6221 if test -z "$ac_err"; then
6222 :
6223 else
6224 echo "$ac_err" >&5
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 rm -rf conftest*
6228 CPP="${CC-cc} -E -traditional-cpp"
6229 cat > conftest.$ac_ext <<EOF
6230 #line 6231 "configure"
6231 #include "confdefs.h"
6232 #include <assert.h>
6233 Syntax Error
6234 EOF
6235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6236 { (eval echo configure:6237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6238 if test -z "$ac_err"; then
6239 :
6240 else
6241 echo "$ac_err" >&5
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 rm -rf conftest*
6245 CPP="${CC-cc} -nologo -E"
6246 cat > conftest.$ac_ext <<EOF
6247 #line 6248 "configure"
6248 #include "confdefs.h"
6249 #include <assert.h>
6250 Syntax Error
6251 EOF
6252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6253 { (eval echo configure:6254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6255 if test -z "$ac_err"; then
6256 :
6257 else
6258 echo "$ac_err" >&5
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 rm -rf conftest*
6262 CPP=/lib/cpp
6263 fi
6264 rm -f conftest*
6265 fi
6266 rm -f conftest*
6267 fi
6268 rm -f conftest*
6269 ac_cv_prog_CPP="$CPP"
6270 fi
6271 CPP="$ac_cv_prog_CPP"
6272 else
6273 ac_cv_prog_CPP="$CPP"
6274 fi
6275 echo "$ac_t""$CPP" 1>&6
6276
6277
6278 if test $ac_cv_prog_gcc = yes; then
6279 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6280 echo "configure:6281: checking whether ${CC-cc} needs -traditional" >&5
6281 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6283 else
6284 ac_pattern="Autoconf.*'x'"
6285 cat > conftest.$ac_ext <<EOF
6286 #line 6287 "configure"
6287 #include "confdefs.h"
6288 #include <sgtty.h>
6289 Autoconf TIOCGETP
6290 EOF
6291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 egrep "$ac_pattern" >/dev/null 2>&1; then
6293 rm -rf conftest*
6294 ac_cv_prog_gcc_traditional=yes
6295 else
6296 rm -rf conftest*
6297 ac_cv_prog_gcc_traditional=no
6298 fi
6299 rm -f conftest*
6300
6301
6302 if test $ac_cv_prog_gcc_traditional = no; then
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 #include <termio.h>
6307 Autoconf TCGETA
6308 EOF
6309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 egrep "$ac_pattern" >/dev/null 2>&1; then
6311 rm -rf conftest*
6312 ac_cv_prog_gcc_traditional=yes
6313 fi
6314 rm -f conftest*
6315
6316 fi
6317 fi
6318
6319 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6320 if test $ac_cv_prog_gcc_traditional = yes; then
6321 CC="$CC -traditional"
6322 fi
6323 fi
6324
6325
6326
6327 ac_ext=C
6328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6329 ac_cpp='$CXXCPP $CPPFLAGS'
6330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6332 cross_compiling=$ac_cv_prog_cxx_cross
6333
6334
6335 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6336 do
6337 # Extract the first word of "$ac_prog", so it can be a program name with args.
6338 set dummy $ac_prog; ac_word=$2
6339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6340 echo "configure:6341: checking for $ac_word" >&5
6341 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6343 else
6344 if test -n "$CXX"; then
6345 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6346 else
6347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6348 ac_dummy="$PATH"
6349 for ac_dir in $ac_dummy; do
6350 test -z "$ac_dir" && ac_dir=.
6351 if test -f $ac_dir/$ac_word; then
6352 ac_cv_prog_CXX="$ac_prog"
6353 break
6354 fi
6355 done
6356 IFS="$ac_save_ifs"
6357 fi
6358 fi
6359 CXX="$ac_cv_prog_CXX"
6360 if test -n "$CXX"; then
6361 echo "$ac_t""$CXX" 1>&6
6362 else
6363 echo "$ac_t""no" 1>&6
6364 fi
6365
6366 test -n "$CXX" && break
6367 done
6368 test -n "$CXX" || CXX="gcc"
6369
6370
6371 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6372 echo "configure:6373: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6373
6374 ac_ext=C
6375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6376 ac_cpp='$CXXCPP $CPPFLAGS'
6377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6379 cross_compiling=$ac_cv_prog_cxx_cross
6380
6381 cat > conftest.$ac_ext << EOF
6382
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6385
6386 int main(){return(0);}
6387 EOF
6388 if { (eval echo configure:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6389 ac_cv_prog_cxx_works=yes
6390 # If we can't run a trivial program, we are probably using a cross compiler.
6391 if (./conftest; exit) 2>/dev/null; then
6392 ac_cv_prog_cxx_cross=no
6393 else
6394 ac_cv_prog_cxx_cross=yes
6395 fi
6396 else
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6399 ac_cv_prog_cxx_works=no
6400 fi
6401 rm -fr conftest*
6402 ac_ext=C
6403 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6404 ac_cpp='$CXXCPP $CPPFLAGS'
6405 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6406 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6407 cross_compiling=$ac_cv_prog_cxx_cross
6408
6409 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6410 if test $ac_cv_prog_cxx_works = no; then
6411 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6412 fi
6413 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6414 echo "configure:6415: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6415 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6416 cross_compiling=$ac_cv_prog_cxx_cross
6417
6418 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6419 echo "configure:6420: checking whether we are using GNU C++" >&5
6420 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6422 else
6423 cat > conftest.C <<EOF
6424 #ifdef __GNUC__
6425 yes;
6426 #endif
6427 EOF
6428 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6429 ac_cv_prog_gxx=yes
6430 else
6431 ac_cv_prog_gxx=no
6432 fi
6433 fi
6434
6435 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6436
6437 if test $ac_cv_prog_gxx = yes; then
6438 GXX=yes
6439 else
6440 GXX=
6441 fi
6442
6443 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6444 ac_save_CXXFLAGS="$CXXFLAGS"
6445 CXXFLAGS=
6446 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6447 echo "configure:6448: checking whether ${CXX-g++} accepts -g" >&5
6448 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6449 echo $ac_n "(cached) $ac_c" 1>&6
6450 else
6451 echo 'void f(){}' > conftest.cc
6452 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6453 ac_cv_prog_cxx_g=yes
6454 else
6455 ac_cv_prog_cxx_g=no
6456 fi
6457 rm -f conftest*
6458
6459 fi
6460
6461 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6462 if test "$ac_test_CXXFLAGS" = set; then
6463 CXXFLAGS="$ac_save_CXXFLAGS"
6464 elif test $ac_cv_prog_cxx_g = yes; then
6465 if test "$GXX" = yes; then
6466 CXXFLAGS="-g -O2"
6467 else
6468 CXXFLAGS="-g"
6469 fi
6470 else
6471 if test "$GXX" = yes; then
6472 CXXFLAGS="-O2"
6473 else
6474 CXXFLAGS=
6475 fi
6476 fi
6477
6478
6479 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6480 echo "configure:6481: checking how to run the C++ preprocessor" >&5
6481 if test -z "$CXXCPP"; then
6482 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6484 else
6485 ac_ext=C
6486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6487 ac_cpp='$CXXCPP $CPPFLAGS'
6488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6490 cross_compiling=$ac_cv_prog_cxx_cross
6491 CXXCPP="${CXX-g++} -E"
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6495 #include <stdlib.h>
6496 EOF
6497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6498 { (eval echo configure:6499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6500 if test -z "$ac_err"; then
6501 :
6502 else
6503 echo "$ac_err" >&5
6504 echo "configure: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6506 rm -rf conftest*
6507 CXXCPP=/lib/cpp
6508 fi
6509 rm -f conftest*
6510 ac_cv_prog_CXXCPP="$CXXCPP"
6511 ac_ext=C
6512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6513 ac_cpp='$CXXCPP $CPPFLAGS'
6514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6516 cross_compiling=$ac_cv_prog_cxx_cross
6517 fi
6518 fi
6519 CXXCPP="$ac_cv_prog_CXXCPP"
6520 echo "$ac_t""$CXXCPP" 1>&6
6521
6522
6523 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6524
6525 ac_ext=c
6526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6527 ac_cpp='$CPP $CPPFLAGS'
6528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6530 cross_compiling=$ac_cv_prog_cc_cross
6531
6532
6533 # Extract the first word of "ranlib", so it can be a program name with args.
6534 set dummy ranlib; ac_word=$2
6535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6536 echo "configure:6537: checking for $ac_word" >&5
6537 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6538 echo $ac_n "(cached) $ac_c" 1>&6
6539 else
6540 if test -n "$RANLIB"; then
6541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6542 else
6543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6544 ac_dummy="$PATH"
6545 for ac_dir in $ac_dummy; do
6546 test -z "$ac_dir" && ac_dir=.
6547 if test -f $ac_dir/$ac_word; then
6548 ac_cv_prog_RANLIB="ranlib"
6549 break
6550 fi
6551 done
6552 IFS="$ac_save_ifs"
6553 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6554 fi
6555 fi
6556 RANLIB="$ac_cv_prog_RANLIB"
6557 if test -n "$RANLIB"; then
6558 echo "$ac_t""$RANLIB" 1>&6
6559 else
6560 echo "$ac_t""no" 1>&6
6561 fi
6562
6563
6564 # Extract the first word of "ar", so it can be a program name with args.
6565 set dummy ar; ac_word=$2
6566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6567 echo "configure:6568: checking for $ac_word" >&5
6568 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6570 else
6571 if test -n "$AR"; then
6572 ac_cv_prog_AR="$AR" # Let the user override the test.
6573 else
6574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6575 ac_dummy="$PATH"
6576 for ac_dir in $ac_dummy; do
6577 test -z "$ac_dir" && ac_dir=.
6578 if test -f $ac_dir/$ac_word; then
6579 ac_cv_prog_AR="ar"
6580 break
6581 fi
6582 done
6583 IFS="$ac_save_ifs"
6584 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6585 fi
6586 fi
6587 AR="$ac_cv_prog_AR"
6588 if test -n "$AR"; then
6589 echo "$ac_t""$AR" 1>&6
6590 else
6591 echo "$ac_t""no" 1>&6
6592 fi
6593
6594
6595 # Find a good install program. We prefer a C program (faster),
6596 # so one script is as good as another. But avoid the broken or
6597 # incompatible versions:
6598 # SysV /etc/install, /usr/sbin/install
6599 # SunOS /usr/etc/install
6600 # IRIX /sbin/install
6601 # AIX /bin/install
6602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6605 # ./install, which can be erroneously created by make from ./install.sh.
6606 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6607 echo "configure:6608: checking for a BSD compatible install" >&5
6608 if test -z "$INSTALL"; then
6609 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6611 else
6612 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6613 for ac_dir in $PATH; do
6614 # Account for people who put trailing slashes in PATH elements.
6615 case "$ac_dir/" in
6616 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6617 *)
6618 # OSF1 and SCO ODT 3.0 have their own names for install.
6619 # Don't use installbsd from OSF since it installs stuff as root
6620 # by default.
6621 for ac_prog in ginstall scoinst install; do
6622 if test -f $ac_dir/$ac_prog; then
6623 if test $ac_prog = install &&
6624 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6625 # AIX install. It has an incompatible calling convention.
6626 :
6627 else
6628 ac_cv_path_install="$ac_dir/$ac_prog -c"
6629 break 2
6630 fi
6631 fi
6632 done
6633 ;;
6634 esac
6635 done
6636 IFS="$ac_save_IFS"
6637
6638 fi
6639 if test "${ac_cv_path_install+set}" = set; then
6640 INSTALL="$ac_cv_path_install"
6641 else
6642 # As a last resort, use the slow shell script. We don't cache a
6643 # path for INSTALL within a source directory, because that will
6644 # break other packages using the cache if that directory is
6645 # removed, or if the path is relative.
6646 INSTALL="$ac_install_sh"
6647 fi
6648 fi
6649 echo "$ac_t""$INSTALL" 1>&6
6650
6651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6652 # It thinks the first close brace ends the variable substitution.
6653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6654
6655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6656
6657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6658
6659
6660 # Extract the first word of "strip", so it can be a program name with args.
6661 set dummy strip; ac_word=$2
6662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_word" >&5
6664 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6666 else
6667 if test -n "$STRIP"; then
6668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6669 else
6670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6671 ac_dummy="$PATH"
6672 for ac_dir in $ac_dummy; do
6673 test -z "$ac_dir" && ac_dir=.
6674 if test -f $ac_dir/$ac_word; then
6675 ac_cv_prog_STRIP="strip"
6676 break
6677 fi
6678 done
6679 IFS="$ac_save_ifs"
6680 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6681 fi
6682 fi
6683 STRIP="$ac_cv_prog_STRIP"
6684 if test -n "$STRIP"; then
6685 echo "$ac_t""$STRIP" 1>&6
6686 else
6687 echo "$ac_t""no" 1>&6
6688 fi
6689
6690
6691 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6692 echo "configure:6693: checking "make for VPATH support"" >&5
6693 cat - << EOF > confMake
6694 check : file
6695 cp \$? \$@
6696 cp \$? final_file
6697 EOF
6698
6699 if test ! -d sub ; then
6700 mkdir sub
6701 fi
6702 echo dummy > sub/file
6703 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6704 RESULT=$?
6705 rm -f sub/file check final_file confMake
6706 rmdir sub
6707 if test "$RESULT" = 0; then
6708 echo "$ac_t""yes" 1>&6
6709 else
6710 echo "$ac_t""no" 1>&6
6711 { echo "configure: error: You need a make-utility that is able to use the variable
6712 VPATH correctly.
6713 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6714 fi
6715
6716 for ac_prog in 'bison -y' byacc
6717 do
6718 # Extract the first word of "$ac_prog", so it can be a program name with args.
6719 set dummy $ac_prog; ac_word=$2
6720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6721 echo "configure:6722: checking for $ac_word" >&5
6722 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6723 echo $ac_n "(cached) $ac_c" 1>&6
6724 else
6725 if test -n "$YACC"; then
6726 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6727 else
6728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6729 ac_dummy="$PATH"
6730 for ac_dir in $ac_dummy; do
6731 test -z "$ac_dir" && ac_dir=.
6732 if test -f $ac_dir/$ac_word; then
6733 ac_cv_prog_YACC="$ac_prog"
6734 break
6735 fi
6736 done
6737 IFS="$ac_save_ifs"
6738 fi
6739 fi
6740 YACC="$ac_cv_prog_YACC"
6741 if test -n "$YACC"; then
6742 echo "$ac_t""$YACC" 1>&6
6743 else
6744 echo "$ac_t""no" 1>&6
6745 fi
6746
6747 test -n "$YACC" && break
6748 done
6749 test -n "$YACC" || YACC="yacc"
6750
6751
6752 # Extract the first word of "flex", so it can be a program name with args.
6753 set dummy flex; ac_word=$2
6754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6755 echo "configure:6756: checking for $ac_word" >&5
6756 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6758 else
6759 if test -n "$LEX"; then
6760 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6761 else
6762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6763 ac_dummy="$PATH"
6764 for ac_dir in $ac_dummy; do
6765 test -z "$ac_dir" && ac_dir=.
6766 if test -f $ac_dir/$ac_word; then
6767 ac_cv_prog_LEX="flex"
6768 break
6769 fi
6770 done
6771 IFS="$ac_save_ifs"
6772 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6773 fi
6774 fi
6775 LEX="$ac_cv_prog_LEX"
6776 if test -n "$LEX"; then
6777 echo "$ac_t""$LEX" 1>&6
6778 else
6779 echo "$ac_t""no" 1>&6
6780 fi
6781
6782 if test -z "$LEXLIB"
6783 then
6784 case "$LEX" in
6785 flex*) ac_lib=fl ;;
6786 *) ac_lib=l ;;
6787 esac
6788 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6789 echo "configure:6790: checking for yywrap in -l$ac_lib" >&5
6790 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6793 else
6794 ac_save_LIBS="$LIBS"
6795 LIBS="-l$ac_lib $LIBS"
6796 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 /* Override any gcc2 internal prototype to avoid an error. */
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6802 char yywrap();
6803
6804 int main() {
6805 yywrap()
6806 ; return 0; }
6807 EOF
6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6809 rm -rf conftest*
6810 eval "ac_cv_lib_$ac_lib_var=yes"
6811 else
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 rm -rf conftest*
6815 eval "ac_cv_lib_$ac_lib_var=no"
6816 fi
6817 rm -f conftest*
6818 LIBS="$ac_save_LIBS"
6819
6820 fi
6821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6822 echo "$ac_t""yes" 1>&6
6823 LEXLIB="-l$ac_lib"
6824 else
6825 echo "$ac_t""no" 1>&6
6826 fi
6827
6828 fi
6829
6830
6831 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6832 echo "configure:6833: checking whether ln -s works" >&5
6833 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6834 echo $ac_n "(cached) $ac_c" 1>&6
6835 else
6836 rm -f conftestdata
6837 if ln -s X conftestdata 2>/dev/null
6838 then
6839 rm -f conftestdata
6840 ac_cv_prog_LN_S="ln -s"
6841 else
6842 ac_cv_prog_LN_S=ln
6843 fi
6844 fi
6845 LN_S="$ac_cv_prog_LN_S"
6846 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6847 echo "$ac_t""yes" 1>&6
6848 else
6849 echo "$ac_t""no" 1>&6
6850 fi
6851
6852
6853
6854 SEARCH_INCLUDE="\
6855 /usr/local/include \
6856 \
6857 /usr/Motif-1.2/include \
6858 /usr/Motif-2.1/include \
6859 \
6860 /usr/include/Motif1.2 \
6861 /opt/xpm/include/X11 \
6862 /opt/GBxpm/include/ \
6863 /opt/GBxpm/X11/include/ \
6864 \
6865 /usr/Motif1.2/include \
6866 /usr/dt/include \
6867 /usr/openwin/include \
6868 \
6869 /usr/include/Xm \
6870 \
6871 /usr/X11R6/include \
6872 /usr/X11R6.4/include \
6873 /usr/X11R5/include \
6874 /usr/X11R4/include \
6875 \
6876 /usr/include/X11R6 \
6877 /usr/include/X11R5 \
6878 /usr/include/X11R4 \
6879 \
6880 /usr/local/X11R6/include \
6881 /usr/local/X11R5/include \
6882 /usr/local/X11R4/include \
6883 \
6884 /usr/local/include/X11R6 \
6885 /usr/local/include/X11R5 \
6886 /usr/local/include/X11R4 \
6887 \
6888 /usr/X11/include \
6889 /usr/include/X11 \
6890 /usr/local/X11/include \
6891 /usr/local/include/X11 \
6892 \
6893 /usr/X386/include \
6894 /usr/x386/include \
6895 /usr/XFree86/include/X11 \
6896 \
6897 X:/XFree86/include \
6898 X:/XFree86/include/X11 \
6899 \
6900 /usr/include/gtk \
6901 /usr/local/include/gtk \
6902 /usr/include/glib \
6903 /usr/local/include/glib \
6904 \
6905 /usr/include/qt \
6906 /usr/local/include/qt \
6907 \
6908 /usr/include/windows \
6909 /usr/include/wine \
6910 /usr/local/include/wine \
6911 \
6912 /usr/unsupported/include \
6913 /usr/athena/include \
6914 /usr/local/x11r5/include \
6915 /usr/lpp/Xamples/include \
6916 \
6917 /usr/openwin/share/include \
6918 \
6919 /usr/include"
6920
6921 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6922
6923
6924 cat > confcache <<\EOF
6925 # This file is a shell script that caches the results of configure
6926 # tests run on this system so they can be shared between configure
6927 # scripts and configure runs. It is not useful on other systems.
6928 # If it contains results you don't want to keep, you may remove or edit it.
6929 #
6930 # By default, configure uses ./config.cache as the cache file,
6931 # creating it if it does not exist already. You can give configure
6932 # the --cache-file=FILE option to use a different cache file; that is
6933 # what configure does when it calls configure scripts in
6934 # subdirectories, so they share the cache.
6935 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6936 # config.status only pays attention to the cache file if you give it the
6937 # --recheck option to rerun configure.
6938 #
6939 EOF
6940 # The following way of writing the cache mishandles newlines in values,
6941 # but we know of no workaround that is simple, portable, and efficient.
6942 # So, don't put newlines in cache variables' values.
6943 # Ultrix sh set writes to stderr and can't be redirected directly,
6944 # and sets the high bit in the cache file unless we assign to the vars.
6945 (set) 2>&1 |
6946 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6947 *ac_space=\ *)
6948 # `set' does not quote correctly, so add quotes (double-quote substitution
6949 # turns \\\\ into \\, and sed turns \\ into \).
6950 sed -n \
6951 -e "s/'/'\\\\''/g" \
6952 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6953 ;;
6954 *)
6955 # `set' quotes correctly as required by POSIX, so do not add quotes.
6956 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6957 ;;
6958 esac >> confcache
6959 if cmp -s $cache_file confcache; then
6960 :
6961 else
6962 if test -w $cache_file; then
6963 echo "updating cache $cache_file"
6964 cat confcache > $cache_file
6965 else
6966 echo "not updating unwritable cache $cache_file"
6967 fi
6968 fi
6969 rm -f confcache
6970
6971
6972
6973 AFMINSTALL=
6974
6975 if test "$wxUSE_GUI" = "yes"; then
6976
6977 USE_GUI=1
6978
6979 TOOLKIT=
6980 TOOLKIT_INCLUDE=
6981
6982 GUIOBJS=
6983 COMMONOBJS=
6984 GENERICOBJS=
6985
6986 GUI_TK_LIBRARY=
6987 GUI_TK_LINK=
6988
6989 WXGTK12=
6990 WXGTK13=
6991
6992 WXWINE=
6993
6994 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6995 if test "$cross_compiling" = "yes" ; then
6996 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6997 else
6998 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6999 echo "configure:7000: checking for Windows headers" >&5
7000
7001 ac_find_includes=
7002 for ac_dir in $SEARCH_INCLUDE;
7003 do
7004 if test -f "$ac_dir/windows.h"; then
7005 ac_find_includes=$ac_dir
7006 break
7007 fi
7008 done
7009
7010 if test "$ac_find_includes" != "" ; then
7011 echo "$ac_t""found $ac_find_includes" 1>&6
7012 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7013 else
7014 echo "$ac_t""no" 1>&6
7015 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7016 fi
7017 fi
7018
7019 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7020 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7021
7022 if test "$wxUSE_MINGW" = 1; then
7023 LDFLAGS="$LDFLAGS -mwindows"
7024 fi
7025
7026 TOOLKIT=MSW
7027
7028 GUIOBJS="\$(MSW_GUIOBJS)"
7029 GUIHEADERS="\$(MSW_HEADERS)"
7030 COMMONOBJS="\$(MSW_COMMONOBJS)"
7031 GENERICOBJS="\$(MSW_GENERICOBJS)"
7032 UNIXOBJS=
7033 GUIDIST=MSW_DIST
7034 fi
7035
7036 if test "$wxUSE_GTK" = 1; then
7037
7038 if test x$gtk_config_exec_prefix != x ; then
7039 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7040 if test x${GTK_CONFIG+set} != xset ; then
7041 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7042 fi
7043 fi
7044 if test x$gtk_config_prefix != x ; then
7045 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7046 if test x${GTK_CONFIG+set} != xset ; then
7047 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7048 fi
7049 fi
7050
7051 # Extract the first word of "gtk-config", so it can be a program name with args.
7052 set dummy gtk-config; ac_word=$2
7053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7054 echo "configure:7055: checking for $ac_word" >&5
7055 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7056 echo $ac_n "(cached) $ac_c" 1>&6
7057 else
7058 case "$GTK_CONFIG" in
7059 /*)
7060 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7061 ;;
7062 ?:/*)
7063 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7064 ;;
7065 *)
7066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7067 ac_dummy="$PATH"
7068 for ac_dir in $ac_dummy; do
7069 test -z "$ac_dir" && ac_dir=.
7070 if test -f $ac_dir/$ac_word; then
7071 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7072 break
7073 fi
7074 done
7075 IFS="$ac_save_ifs"
7076 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7077 ;;
7078 esac
7079 fi
7080 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7081 if test -n "$GTK_CONFIG"; then
7082 echo "$ac_t""$GTK_CONFIG" 1>&6
7083 else
7084 echo "$ac_t""no" 1>&6
7085 fi
7086
7087 min_gtk_version=1.2.3
7088 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7089 echo "configure:7090: checking for GTK - version >= $min_gtk_version" >&5
7090 no_gtk=""
7091 if test "$GTK_CONFIG" != "no" ; then
7092 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7093 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7094 ac_save_CFLAGS="$CFLAGS"
7095 ac_save_LIBS="$LIBS"
7096 CFLAGS="$CFLAGS $GTK_CFLAGS"
7097 LIBS="$LIBS $GTK_LIBS"
7098 if test "$cross_compiling" = yes; then
7099 echo $ac_n "cross compiling; assumed OK... $ac_c"
7100 else
7101 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104
7105 #include <gtk/gtk.h>
7106 #include <gtk/gtkfeatures.h>
7107 #include <stdio.h>
7108
7109 int
7110 main ()
7111 {
7112 int major, minor, micro;
7113
7114 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7115 printf("%s, bad version string\n", "$min_gtk_version");
7116 exit(1);
7117 }
7118
7119 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7120 (GTK_MINOR_VERSION != gtk_minor_version) ||
7121 (GTK_MICRO_VERSION != gtk_micro_version)) {
7122 printf("Headers vs. library version mismatch!\n");
7123 exit(1);
7124 }
7125
7126 if (gtk_minor_version == 1) return FALSE;
7127
7128 return !((gtk_major_version > major) ||
7129 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7130 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7131 }
7132
7133 EOF
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7135 then
7136 :
7137 else
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7140 rm -fr conftest*
7141 no_gtk=yes
7142 fi
7143 rm -fr conftest*
7144 fi
7145
7146 CFLAGS="$ac_save_CFLAGS"
7147 LIBS="$ac_save_LIBS"
7148 else
7149 no_gtk=yes
7150 fi
7151 if test "x$no_gtk" = x ; then
7152 echo "$ac_t""yes" 1>&6
7153 WXGTK12=1
7154 else
7155 echo "$ac_t""no" 1>&6
7156 GTK_CFLAGS=""
7157 GTK_LIBS=""
7158 :
7159 fi
7160
7161
7162
7163
7164 if test "$WXGTK12" != 1; then
7165 { echo "configure: error:
7166 Please check that gtk-config is in path, the directory
7167 where GTK+ libraries are installed (returned by
7168 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7169 equivalent variable and GTK+ is version 1.2.3 or above.
7170 " 1>&2; exit 1; }
7171 fi
7172
7173
7174 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7175
7176
7177 GUI_TK_LIBRARY="$GTK_LIBS"
7178
7179 TOOLKIT=GTK
7180
7181 AFMINSTALL=afminstall
7182
7183 GUIOBJS="\$(GTK_GUIOBJS)"
7184 GUIHEADERS="\$(GTK_HEADERS)"
7185 COMMONOBJS="\$(GTK_COMMONOBJS)"
7186 GENERICOBJS="\$(GTK_GENERICOBJS)"
7187 GUIDEPS="\$(GTK_GUIDEPS)"
7188 COMMONDEPS="\$(GTK_COMMONDEPS)"
7189 GENERICDEPS="\$(GTK_GENERICDEPS)"
7190 UNIXOBJS="\$(UNIX_OBJS)"
7191 UNIXDEPS="\$(UNIX_DEPS)"
7192 GUIDIST=GTK_DIST
7193
7194 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7195 echo "configure:7196: checking for gdk_im_open in -lgdk" >&5
7196 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7198 echo $ac_n "(cached) $ac_c" 1>&6
7199 else
7200 ac_save_LIBS="$LIBS"
7201 LIBS="-lgdk $LIBS"
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7205 /* Override any gcc2 internal prototype to avoid an error. */
7206 /* We use char because int might match the return type of a gcc2
7207 builtin and then its argument prototype would still apply. */
7208 char gdk_im_open();
7209
7210 int main() {
7211 gdk_im_open()
7212 ; return 0; }
7213 EOF
7214 if { (eval echo configure:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7215 rm -rf conftest*
7216 eval "ac_cv_lib_$ac_lib_var=yes"
7217 else
7218 echo "configure: failed program was:" >&5
7219 cat conftest.$ac_ext >&5
7220 rm -rf conftest*
7221 eval "ac_cv_lib_$ac_lib_var=no"
7222 fi
7223 rm -f conftest*
7224 LIBS="$ac_save_LIBS"
7225
7226 fi
7227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7229 cat >> confdefs.h <<\EOF
7230 #define HAVE_XIM 1
7231 EOF
7232
7233 else
7234 echo "$ac_t""no" 1>&6
7235 fi
7236
7237 fi
7238
7239 if test "$wxUSE_WINE" = 1; then
7240 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7241 echo "configure:7242: checking for WINE includes" >&5
7242
7243 ac_find_includes=
7244 for ac_dir in $SEARCH_INCLUDE;
7245 do
7246 if test -f "$ac_dir/windows.h"; then
7247 ac_find_includes=$ac_dir
7248 break
7249 fi
7250 done
7251
7252 if test "$ac_find_includes" != "" ; then
7253 echo "$ac_t""found $ac_find_includes" 1>&6
7254 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7255 else
7256 echo "$ac_t""no" 1>&6
7257 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7258 fi
7259
7260 XPM_LINK=""
7261 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7262 echo "configure:7263: checking for Xpm library" >&5
7263
7264 ac_find_libraries=
7265 for ac_dir in $SEARCH_LIB;
7266 do
7267 for ac_extension in a so sl; do
7268 if test -f "$ac_dir/libXpm.$ac_extension"; then
7269 ac_find_libraries=$ac_dir
7270 break 2
7271 fi
7272 done
7273 done
7274
7275 if test "$ac_find_libraries" != "" ; then
7276 GUI_TK_LIBRARY="-L$ac_find_libraries"
7277 XPM_LINK="-lXpm"
7278 cat >> confdefs.h <<\EOF
7279 #define wxHAVE_LIB_XPM 1
7280 EOF
7281
7282 echo "$ac_t""found at $ac_find_libraries" 1>&6
7283 else
7284 echo "$ac_t""no" 1>&6
7285 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7286 fi
7287
7288 MESA_LINK=""
7289 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7290 echo "configure:7291: checking for Mesa library" >&5
7291
7292 ac_find_libraries=
7293 for ac_dir in $SEARCH_LIB;
7294 do
7295 for ac_extension in a so sl; do
7296 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7297 ac_find_libraries=$ac_dir
7298 break 2
7299 fi
7300 done
7301 done
7302
7303 if test "$ac_find_libraries" != "" ; then
7304 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7305 MESA_LINK="-lMesaGL"
7306 echo "$ac_t""found at $ac_find_libraries" 1>&6
7307 else
7308 { echo "configure: error: no" 1>&2; exit 1; }
7309 fi
7310
7311 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7312 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7313 WXWINE=1
7314 TOOLKIT=MSW
7315
7316 GUIHEADERS="\$(MSW_HEADERS)"
7317 GUIOBJS="\$(MSW_GUIOBJS)"
7318 COMMONOBJS="\$(MSW_COMMONOBJS)"
7319 GENERICOBJS="\$(MSW_GENERICOBJS)"
7320 GUIDEPS="\$(MSW_GUIDEPS)"
7321 COMMONDEPS="\$(MSW_COMMONDEPS)"
7322 GENERICDEPS="\$(MSW_GENERICDEPS)"
7323 UNIXOBJS="\$(UNIX_OBJS)"
7324 UNIXDEPS="\$(UNIX_DEPS)"
7325 GUIDIST=MSW_DIST
7326 fi
7327
7328 if test "$wxUSE_MOTIF" = 1; then
7329 # If we find X, set shell vars x_includes and x_libraries to the
7330 # paths, otherwise set no_x=yes.
7331 # Uses ac_ vars as temps to allow command line to override cache and checks.
7332 # --without-x overrides everything else, but does not touch the cache.
7333 echo $ac_n "checking for X""... $ac_c" 1>&6
7334 echo "configure:7335: checking for X" >&5
7335
7336 # Check whether --with-x or --without-x was given.
7337 if test "${with_x+set}" = set; then
7338 withval="$with_x"
7339 :
7340 fi
7341
7342 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7343 if test "x$with_x" = xno; then
7344 # The user explicitly disabled X.
7345 have_x=disabled
7346 else
7347 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7348 # Both variables are already set.
7349 have_x=yes
7350 else
7351 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7352 echo $ac_n "(cached) $ac_c" 1>&6
7353 else
7354 # One or both of the vars are not set, and there is no cached value.
7355 ac_x_includes=NO ac_x_libraries=NO
7356 rm -fr conftestdir
7357 if mkdir conftestdir; then
7358 cd conftestdir
7359 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7360 cat > Imakefile <<'EOF'
7361 acfindx:
7362 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7363 EOF
7364 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7365 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7366 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7367 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7368 for ac_extension in a so sl; do
7369 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7370 test -f $ac_im_libdir/libX11.$ac_extension; then
7371 ac_im_usrlibdir=$ac_im_libdir; break
7372 fi
7373 done
7374 # Screen out bogus values from the imake configuration. They are
7375 # bogus both because they are the default anyway, and because
7376 # using them would break gcc on systems where it needs fixed includes.
7377 case "$ac_im_incroot" in
7378 /usr/include) ;;
7379 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7380 esac
7381 case "$ac_im_usrlibdir" in
7382 /usr/lib | /lib) ;;
7383 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7384 esac
7385 fi
7386 cd ..
7387 rm -fr conftestdir
7388 fi
7389
7390 if test "$ac_x_includes" = NO; then
7391 # Guess where to find include files, by looking for this one X11 .h file.
7392 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7393
7394 # First, try using that file with no special directory specified.
7395 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 #include <$x_direct_test_include>
7399 EOF
7400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7401 { (eval echo configure:7402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7403 if test -z "$ac_err"; then
7404 rm -rf conftest*
7405 # We can compile using X headers with no special include directory.
7406 ac_x_includes=
7407 else
7408 echo "$ac_err" >&5
7409 echo "configure: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 rm -rf conftest*
7412 # Look for the header file in a standard set of common directories.
7413 # Check X11 before X11Rn because it is often a symlink to the current release.
7414 for ac_dir in \
7415 /usr/X11/include \
7416 /usr/X11R6/include \
7417 /usr/X11R5/include \
7418 /usr/X11R4/include \
7419 \
7420 /usr/include/X11 \
7421 /usr/include/X11R6 \
7422 /usr/include/X11R5 \
7423 /usr/include/X11R4 \
7424 \
7425 /usr/local/X11/include \
7426 /usr/local/X11R6/include \
7427 /usr/local/X11R5/include \
7428 /usr/local/X11R4/include \
7429 \
7430 /usr/local/include/X11 \
7431 /usr/local/include/X11R6 \
7432 /usr/local/include/X11R5 \
7433 /usr/local/include/X11R4 \
7434 \
7435 /usr/X386/include \
7436 /usr/x386/include \
7437 /usr/XFree86/include/X11 \
7438 \
7439 /usr/include \
7440 /usr/local/include \
7441 /usr/unsupported/include \
7442 /usr/athena/include \
7443 /usr/local/x11r5/include \
7444 /usr/lpp/Xamples/include \
7445 \
7446 /usr/openwin/include \
7447 /usr/openwin/share/include \
7448 ; \
7449 do
7450 if test -r "$ac_dir/$x_direct_test_include"; then
7451 ac_x_includes=$ac_dir
7452 break
7453 fi
7454 done
7455 fi
7456 rm -f conftest*
7457 fi # $ac_x_includes = NO
7458
7459 if test "$ac_x_libraries" = NO; then
7460 # Check for the libraries.
7461
7462 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7463 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7464
7465 # See if we find them without any special options.
7466 # Don't add to $LIBS permanently.
7467 ac_save_LIBS="$LIBS"
7468 LIBS="-l$x_direct_test_library $LIBS"
7469 cat > conftest.$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7472
7473 int main() {
7474 ${x_direct_test_function}()
7475 ; return 0; }
7476 EOF
7477 if { (eval echo configure:7478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7478 rm -rf conftest*
7479 LIBS="$ac_save_LIBS"
7480 # We can link X programs with no special library path.
7481 ac_x_libraries=
7482 else
7483 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 rm -rf conftest*
7486 LIBS="$ac_save_LIBS"
7487 # First see if replacing the include by lib works.
7488 # Check X11 before X11Rn because it is often a symlink to the current release.
7489 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7490 /usr/X11/lib \
7491 /usr/X11R6/lib \
7492 /usr/X11R5/lib \
7493 /usr/X11R4/lib \
7494 \
7495 /usr/lib/X11 \
7496 /usr/lib/X11R6 \
7497 /usr/lib/X11R5 \
7498 /usr/lib/X11R4 \
7499 \
7500 /usr/local/X11/lib \
7501 /usr/local/X11R6/lib \
7502 /usr/local/X11R5/lib \
7503 /usr/local/X11R4/lib \
7504 \
7505 /usr/local/lib/X11 \
7506 /usr/local/lib/X11R6 \
7507 /usr/local/lib/X11R5 \
7508 /usr/local/lib/X11R4 \
7509 \
7510 /usr/X386/lib \
7511 /usr/x386/lib \
7512 /usr/XFree86/lib/X11 \
7513 \
7514 /usr/lib \
7515 /usr/local/lib \
7516 /usr/unsupported/lib \
7517 /usr/athena/lib \
7518 /usr/local/x11r5/lib \
7519 /usr/lpp/Xamples/lib \
7520 /lib/usr/lib/X11 \
7521 \
7522 /usr/openwin/lib \
7523 /usr/openwin/share/lib \
7524 ; \
7525 do
7526 for ac_extension in a so sl; do
7527 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7528 ac_x_libraries=$ac_dir
7529 break 2
7530 fi
7531 done
7532 done
7533 fi
7534 rm -f conftest*
7535 fi # $ac_x_libraries = NO
7536
7537 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7538 # Didn't find X anywhere. Cache the known absence of X.
7539 ac_cv_have_x="have_x=no"
7540 else
7541 # Record where we found X for the cache.
7542 ac_cv_have_x="have_x=yes \
7543 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7544 fi
7545 fi
7546 fi
7547 eval "$ac_cv_have_x"
7548 fi # $with_x != no
7549
7550 if test "$have_x" != yes; then
7551 echo "$ac_t""$have_x" 1>&6
7552 no_x=yes
7553 else
7554 # If each of the values was on the command line, it overrides each guess.
7555 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7556 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7557 # Update the cache value to reflect the command line values.
7558 ac_cv_have_x="have_x=yes \
7559 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7560 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7561 fi
7562
7563 if test "$no_x" = yes; then
7564 # Not all programs may use this symbol, but it does not hurt to define it.
7565 cat >> confdefs.h <<\EOF
7566 #define X_DISPLAY_MISSING 1
7567 EOF
7568
7569 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7570 else
7571 if test -n "$x_includes"; then
7572 X_CFLAGS="$X_CFLAGS -I$x_includes"
7573 fi
7574
7575 # It would also be nice to do this for all -L options, not just this one.
7576 if test -n "$x_libraries"; then
7577 X_LIBS="$X_LIBS -L$x_libraries"
7578 # For Solaris; some versions of Sun CC require a space after -R and
7579 # others require no space. Words are not sufficient . . . .
7580 case "`(uname -sr) 2>/dev/null`" in
7581 "SunOS 5"*)
7582 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7583 echo "configure:7584: checking whether -R must be followed by a space" >&5
7584 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588
7589 int main() {
7590
7591 ; return 0; }
7592 EOF
7593 if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7594 rm -rf conftest*
7595 ac_R_nospace=yes
7596 else
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 rm -rf conftest*
7600 ac_R_nospace=no
7601 fi
7602 rm -f conftest*
7603 if test $ac_R_nospace = yes; then
7604 echo "$ac_t""no" 1>&6
7605 X_LIBS="$X_LIBS -R$x_libraries"
7606 else
7607 LIBS="$ac_xsave_LIBS -R $x_libraries"
7608 cat > conftest.$ac_ext <<EOF
7609 #line 7610 "configure"
7610 #include "confdefs.h"
7611
7612 int main() {
7613
7614 ; return 0; }
7615 EOF
7616 if { (eval echo configure:7617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7617 rm -rf conftest*
7618 ac_R_space=yes
7619 else
7620 echo "configure: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7622 rm -rf conftest*
7623 ac_R_space=no
7624 fi
7625 rm -f conftest*
7626 if test $ac_R_space = yes; then
7627 echo "$ac_t""yes" 1>&6
7628 X_LIBS="$X_LIBS -R $x_libraries"
7629 else
7630 echo "$ac_t""neither works" 1>&6
7631 fi
7632 fi
7633 LIBS="$ac_xsave_LIBS"
7634 esac
7635 fi
7636
7637 # Check for system-dependent libraries X programs must link with.
7638 # Do this before checking for the system-independent R6 libraries
7639 # (-lICE), since we may need -lsocket or whatever for X linking.
7640
7641 if test "$ISC" = yes; then
7642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7643 else
7644 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7645 # libraries were built with DECnet support. And karl@cs.umb.edu says
7646 # the Alpha needs dnet_stub (dnet does not exist).
7647 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7648 echo "configure:7649: checking for dnet_ntoa in -ldnet" >&5
7649 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7652 else
7653 ac_save_LIBS="$LIBS"
7654 LIBS="-ldnet $LIBS"
7655 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 /* Override any gcc2 internal prototype to avoid an error. */
7659 /* We use char because int might match the return type of a gcc2
7660 builtin and then its argument prototype would still apply. */
7661 char dnet_ntoa();
7662
7663 int main() {
7664 dnet_ntoa()
7665 ; return 0; }
7666 EOF
7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7668 rm -rf conftest*
7669 eval "ac_cv_lib_$ac_lib_var=yes"
7670 else
7671 echo "configure: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7673 rm -rf conftest*
7674 eval "ac_cv_lib_$ac_lib_var=no"
7675 fi
7676 rm -f conftest*
7677 LIBS="$ac_save_LIBS"
7678
7679 fi
7680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7681 echo "$ac_t""yes" 1>&6
7682 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7683 else
7684 echo "$ac_t""no" 1>&6
7685 fi
7686
7687 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7688 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7689 echo "configure:7690: checking for dnet_ntoa in -ldnet_stub" >&5
7690 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7693 else
7694 ac_save_LIBS="$LIBS"
7695 LIBS="-ldnet_stub $LIBS"
7696 cat > conftest.$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7699 /* Override any gcc2 internal prototype to avoid an error. */
7700 /* We use char because int might match the return type of a gcc2
7701 builtin and then its argument prototype would still apply. */
7702 char dnet_ntoa();
7703
7704 int main() {
7705 dnet_ntoa()
7706 ; return 0; }
7707 EOF
7708 if { (eval echo configure:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7709 rm -rf conftest*
7710 eval "ac_cv_lib_$ac_lib_var=yes"
7711 else
7712 echo "configure: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7714 rm -rf conftest*
7715 eval "ac_cv_lib_$ac_lib_var=no"
7716 fi
7717 rm -f conftest*
7718 LIBS="$ac_save_LIBS"
7719
7720 fi
7721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7722 echo "$ac_t""yes" 1>&6
7723 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7724 else
7725 echo "$ac_t""no" 1>&6
7726 fi
7727
7728 fi
7729
7730 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7731 # to get the SysV transport functions.
7732 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7733 # needs -lnsl.
7734 # The nsl library prevents programs from opening the X display
7735 # on Irix 5.2, according to dickey@clark.net.
7736 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7737 echo "configure:7738: checking for gethostbyname" >&5
7738 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7740 else
7741 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7744 /* System header to define __stub macros and hopefully few prototypes,
7745 which can conflict with char gethostbyname(); below. */
7746 #include <assert.h>
7747 /* Override any gcc2 internal prototype to avoid an error. */
7748 /* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7750 char gethostbyname();
7751
7752 int main() {
7753
7754 /* The GNU C library defines this for functions which it implements
7755 to always fail with ENOSYS. Some functions are actually named
7756 something starting with __ and the normal name is an alias. */
7757 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7758 choke me
7759 #else
7760 gethostbyname();
7761 #endif
7762
7763 ; return 0; }
7764 EOF
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7766 rm -rf conftest*
7767 eval "ac_cv_func_gethostbyname=yes"
7768 else
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7771 rm -rf conftest*
7772 eval "ac_cv_func_gethostbyname=no"
7773 fi
7774 rm -f conftest*
7775 fi
7776
7777 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7778 echo "$ac_t""yes" 1>&6
7779 :
7780 else
7781 echo "$ac_t""no" 1>&6
7782 fi
7783
7784 if test $ac_cv_func_gethostbyname = no; then
7785 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7786 echo "configure:7787: checking for gethostbyname in -lnsl" >&5
7787 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7790 else
7791 ac_save_LIBS="$LIBS"
7792 LIBS="-lnsl $LIBS"
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799 char gethostbyname();
7800
7801 int main() {
7802 gethostbyname()
7803 ; return 0; }
7804 EOF
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806 rm -rf conftest*
7807 eval "ac_cv_lib_$ac_lib_var=yes"
7808 else
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 rm -rf conftest*
7812 eval "ac_cv_lib_$ac_lib_var=no"
7813 fi
7814 rm -f conftest*
7815 LIBS="$ac_save_LIBS"
7816
7817 fi
7818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7819 echo "$ac_t""yes" 1>&6
7820 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7821 else
7822 echo "$ac_t""no" 1>&6
7823 fi
7824
7825 fi
7826
7827 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7828 # socket/setsockopt and other routines are undefined under SCO ODT
7829 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7830 # on later versions), says simon@lia.di.epfl.ch: it contains
7831 # gethostby* variants that don't use the nameserver (or something).
7832 # -lsocket must be given before -lnsl if both are needed.
7833 # We assume that if connect needs -lnsl, so does gethostbyname.
7834 echo $ac_n "checking for connect""... $ac_c" 1>&6
7835 echo "configure:7836: checking for connect" >&5
7836 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7837 echo $ac_n "(cached) $ac_c" 1>&6
7838 else
7839 cat > conftest.$ac_ext <<EOF
7840 #line 7841 "configure"
7841 #include "confdefs.h"
7842 /* System header to define __stub macros and hopefully few prototypes,
7843 which can conflict with char connect(); below. */
7844 #include <assert.h>
7845 /* Override any gcc2 internal prototype to avoid an error. */
7846 /* We use char because int might match the return type of a gcc2
7847 builtin and then its argument prototype would still apply. */
7848 char connect();
7849
7850 int main() {
7851
7852 /* The GNU C library defines this for functions which it implements
7853 to always fail with ENOSYS. Some functions are actually named
7854 something starting with __ and the normal name is an alias. */
7855 #if defined (__stub_connect) || defined (__stub___connect)
7856 choke me
7857 #else
7858 connect();
7859 #endif
7860
7861 ; return 0; }
7862 EOF
7863 if { (eval echo configure:7864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 rm -rf conftest*
7865 eval "ac_cv_func_connect=yes"
7866 else
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7869 rm -rf conftest*
7870 eval "ac_cv_func_connect=no"
7871 fi
7872 rm -f conftest*
7873 fi
7874
7875 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7876 echo "$ac_t""yes" 1>&6
7877 :
7878 else
7879 echo "$ac_t""no" 1>&6
7880 fi
7881
7882 if test $ac_cv_func_connect = no; then
7883 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7884 echo "configure:7885: checking for connect in -lsocket" >&5
7885 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7888 else
7889 ac_save_LIBS="$LIBS"
7890 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894 /* Override any gcc2 internal prototype to avoid an error. */
7895 /* We use char because int might match the return type of a gcc2
7896 builtin and then its argument prototype would still apply. */
7897 char connect();
7898
7899 int main() {
7900 connect()
7901 ; return 0; }
7902 EOF
7903 if { (eval echo configure:7904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7904 rm -rf conftest*
7905 eval "ac_cv_lib_$ac_lib_var=yes"
7906 else
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 rm -rf conftest*
7910 eval "ac_cv_lib_$ac_lib_var=no"
7911 fi
7912 rm -f conftest*
7913 LIBS="$ac_save_LIBS"
7914
7915 fi
7916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7917 echo "$ac_t""yes" 1>&6
7918 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7919 else
7920 echo "$ac_t""no" 1>&6
7921 fi
7922
7923 fi
7924
7925 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7926 echo $ac_n "checking for remove""... $ac_c" 1>&6
7927 echo "configure:7928: checking for remove" >&5
7928 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7930 else
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7934 /* System header to define __stub macros and hopefully few prototypes,
7935 which can conflict with char remove(); below. */
7936 #include <assert.h>
7937 /* Override any gcc2 internal prototype to avoid an error. */
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7940 char remove();
7941
7942 int main() {
7943
7944 /* The GNU C library defines this for functions which it implements
7945 to always fail with ENOSYS. Some functions are actually named
7946 something starting with __ and the normal name is an alias. */
7947 #if defined (__stub_remove) || defined (__stub___remove)
7948 choke me
7949 #else
7950 remove();
7951 #endif
7952
7953 ; return 0; }
7954 EOF
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956 rm -rf conftest*
7957 eval "ac_cv_func_remove=yes"
7958 else
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 rm -rf conftest*
7962 eval "ac_cv_func_remove=no"
7963 fi
7964 rm -f conftest*
7965 fi
7966
7967 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7968 echo "$ac_t""yes" 1>&6
7969 :
7970 else
7971 echo "$ac_t""no" 1>&6
7972 fi
7973
7974 if test $ac_cv_func_remove = no; then
7975 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7976 echo "configure:7977: checking for remove in -lposix" >&5
7977 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7980 else
7981 ac_save_LIBS="$LIBS"
7982 LIBS="-lposix $LIBS"
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* Override any gcc2 internal prototype to avoid an error. */
7987 /* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989 char remove();
7990
7991 int main() {
7992 remove()
7993 ; return 0; }
7994 EOF
7995 if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7996 rm -rf conftest*
7997 eval "ac_cv_lib_$ac_lib_var=yes"
7998 else
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8001 rm -rf conftest*
8002 eval "ac_cv_lib_$ac_lib_var=no"
8003 fi
8004 rm -f conftest*
8005 LIBS="$ac_save_LIBS"
8006
8007 fi
8008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8009 echo "$ac_t""yes" 1>&6
8010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8011 else
8012 echo "$ac_t""no" 1>&6
8013 fi
8014
8015 fi
8016
8017 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8018 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8019 echo "configure:8020: checking for shmat" >&5
8020 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8022 else
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 /* System header to define __stub macros and hopefully few prototypes,
8027 which can conflict with char shmat(); below. */
8028 #include <assert.h>
8029 /* Override any gcc2 internal prototype to avoid an error. */
8030 /* We use char because int might match the return type of a gcc2
8031 builtin and then its argument prototype would still apply. */
8032 char shmat();
8033
8034 int main() {
8035
8036 /* The GNU C library defines this for functions which it implements
8037 to always fail with ENOSYS. Some functions are actually named
8038 something starting with __ and the normal name is an alias. */
8039 #if defined (__stub_shmat) || defined (__stub___shmat)
8040 choke me
8041 #else
8042 shmat();
8043 #endif
8044
8045 ; return 0; }
8046 EOF
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8048 rm -rf conftest*
8049 eval "ac_cv_func_shmat=yes"
8050 else
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 rm -rf conftest*
8054 eval "ac_cv_func_shmat=no"
8055 fi
8056 rm -f conftest*
8057 fi
8058
8059 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 :
8062 else
8063 echo "$ac_t""no" 1>&6
8064 fi
8065
8066 if test $ac_cv_func_shmat = no; then
8067 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8068 echo "configure:8069: checking for shmat in -lipc" >&5
8069 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8072 else
8073 ac_save_LIBS="$LIBS"
8074 LIBS="-lipc $LIBS"
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8078 /* Override any gcc2 internal prototype to avoid an error. */
8079 /* We use char because int might match the return type of a gcc2
8080 builtin and then its argument prototype would still apply. */
8081 char shmat();
8082
8083 int main() {
8084 shmat()
8085 ; return 0; }
8086 EOF
8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8088 rm -rf conftest*
8089 eval "ac_cv_lib_$ac_lib_var=yes"
8090 else
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8093 rm -rf conftest*
8094 eval "ac_cv_lib_$ac_lib_var=no"
8095 fi
8096 rm -f conftest*
8097 LIBS="$ac_save_LIBS"
8098
8099 fi
8100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8103 else
8104 echo "$ac_t""no" 1>&6
8105 fi
8106
8107 fi
8108 fi
8109
8110 # Check for libraries that X11R6 Xt/Xaw programs need.
8111 ac_save_LDFLAGS="$LDFLAGS"
8112 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8113 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8114 # check for ICE first), but we must link in the order -lSM -lICE or
8115 # we get undefined symbols. So assume we have SM if we have ICE.
8116 # These have to be linked with before -lX11, unlike the other
8117 # libraries we check for below, so use a different variable.
8118 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8119 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8120 echo "configure:8121: checking for IceConnectionNumber in -lICE" >&5
8121 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8124 else
8125 ac_save_LIBS="$LIBS"
8126 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8127 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8130 /* Override any gcc2 internal prototype to avoid an error. */
8131 /* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8133 char IceConnectionNumber();
8134
8135 int main() {
8136 IceConnectionNumber()
8137 ; return 0; }
8138 EOF
8139 if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8140 rm -rf conftest*
8141 eval "ac_cv_lib_$ac_lib_var=yes"
8142 else
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8145 rm -rf conftest*
8146 eval "ac_cv_lib_$ac_lib_var=no"
8147 fi
8148 rm -f conftest*
8149 LIBS="$ac_save_LIBS"
8150
8151 fi
8152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8155 else
8156 echo "$ac_t""no" 1>&6
8157 fi
8158
8159 LDFLAGS="$ac_save_LDFLAGS"
8160
8161 fi
8162
8163
8164 if test "$no_x" = "yes"; then
8165 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8166 fi
8167
8168 GUI_TK_LIBRARY="$X_LIBS"
8169 TOOLKIT_INCLUDE="$X_CFLAGS"
8170
8171 AFMINSTALL=afminstall
8172
8173
8174 COMPILED_X_PROGRAM=0
8175
8176 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8177 echo "configure:8178: checking for Motif/Lesstif headers" >&5
8178
8179 ac_find_includes=
8180 for ac_dir in $SEARCH_INCLUDE;
8181 do
8182 if test -f "$ac_dir/Xm/Xm.h"; then
8183 ac_find_includes=$ac_dir
8184 break
8185 fi
8186 done
8187
8188 if test "$ac_find_includes" != "" ; then
8189 echo "$ac_t""found $ac_find_includes" 1>&6
8190 else
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194
8195 #include <Xm/Xm.h>
8196
8197 int main() {
8198
8199 int version;
8200
8201 version = xmUseVersion;
8202
8203 ; return 0; }
8204 EOF
8205 if { (eval echo configure:8206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8206 rm -rf conftest*
8207
8208 echo "$ac_t""found in default search path" 1>&6
8209 COMPILED_X_PROGRAM=1
8210
8211 else
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8214 rm -rf conftest*
8215
8216 echo "$ac_t""no" 1>&6
8217 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8218
8219
8220 fi
8221 rm -f conftest*
8222 fi
8223
8224 if test "$COMPILED_X_PROGRAM" = 0; then
8225 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8226 echo "configure:8227: checking for Motif/Lesstif library" >&5
8227
8228 ac_find_libraries=
8229 for ac_dir in $SEARCH_LIB;
8230 do
8231 for ac_extension in a so sl; do
8232 if test -f "$ac_dir/libXm.$ac_extension"; then
8233 ac_find_libraries=$ac_dir
8234 break 2
8235 fi
8236 done
8237 done
8238
8239 if test "$ac_find_libraries" != "" ; then
8240
8241 ac_path_to_include=$ac_find_includes
8242 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8243 result=$?
8244 if test $result = 0; then
8245 ac_path_to_include=""
8246 else
8247 ac_path_to_include="-I$ac_find_includes"
8248 fi
8249
8250
8251 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8252 result=$?
8253 if test $result = 0; then
8254 ac_path_to_link=""
8255 else
8256 ac_path_to_link="-L$ac_find_libraries"
8257 fi
8258
8259
8260 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8261 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8262 echo "$ac_t""found at $ac_find_libraries" 1>&6
8263 else
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8267
8268 #include <Xm/Xm.h>
8269
8270 int main() {
8271
8272 int version;
8273
8274 version = xmUseVersion;
8275
8276 ; return 0; }
8277 EOF
8278 if { (eval echo configure:8279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8279 rm -rf conftest*
8280
8281 echo "$ac_t""found in default search path" 1>&6
8282 COMPILED_X_PROGRAM=1
8283
8284 else
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 rm -rf conftest*
8288
8289 echo "$ac_t""no" 1>&6
8290 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8291
8292
8293 fi
8294 rm -f conftest*
8295 fi
8296 fi
8297
8298
8299 XPM_LINK=""
8300 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8301 echo "configure:8302: checking for Xpm library" >&5
8302
8303 ac_find_libraries=
8304 for ac_dir in $SEARCH_LIB;
8305 do
8306 for ac_extension in a so sl; do
8307 if test -f "$ac_dir/libXpm.$ac_extension"; then
8308 ac_find_libraries=$ac_dir
8309 break 2
8310 fi
8311 done
8312 done
8313
8314 if test "$ac_find_libraries" != "" ; then
8315
8316 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8317 result=$?
8318 if test $result = 0; then
8319 ac_path_to_link=""
8320 else
8321 ac_path_to_link="-L$ac_find_libraries"
8322 fi
8323
8324 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8325 XPM_LINK="-lXpm "
8326 cat >> confdefs.h <<\EOF
8327 #define wxHAVE_LIB_XPM 1
8328 EOF
8329
8330 echo "$ac_t""found at $ac_find_libraries" 1>&6
8331 else
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335
8336 #include <X11/xpm.h>
8337
8338 int main() {
8339
8340 int version;
8341
8342 version = XpmLibraryVersion();
8343
8344 ; return 0; }
8345 EOF
8346 if { (eval echo configure:8347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8347 rm -rf conftest*
8348
8349 XPM_LINK="-lXpm "
8350 cat >> confdefs.h <<\EOF
8351 #define wxHAVE_LIB_XPM 1
8352 EOF
8353
8354 echo "$ac_t""found in default search path" 1>&6
8355 COMPILED_X_PROGRAM=0
8356
8357 else
8358 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5
8360 rm -rf conftest*
8361
8362 echo "$ac_t""no" 1>&6
8363 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8364
8365
8366 fi
8367 rm -f conftest*
8368 fi
8369
8370 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8371 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8372 TOOLKIT=MOTIF
8373
8374 GUIHEADERS="\$(MOTIF_HEADERS)"
8375 GUIOBJS="\$(MOTIF_GUIOBJS)"
8376 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
8377 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8378 GUIDEPS="\$(MOTIF_GUIDEPS)"
8379 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
8380 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8381 UNIXOBJS="\$(UNIX_OBJS)"
8382 UNIXDEPS="\$(UNIX_DEPS)"
8383 GUIDIST=MOTIF_DIST
8384 fi
8385
8386 if test "$wxUSE_PM" = 1; then
8387 TOOLKIT=PM
8388
8389 GUIOBJS="\$(PM_GUIOBJS)"
8390 GUIHEADERS="\$(PM_HEADERS)"
8391 COMMONOBJS="\$(PM_COMMONOBJS)"
8392 GENERICOBJS="\$(PM_GENERICOBJS)"
8393 GUIDEPS="\$(PM_GUIDEPS)"
8394 COMMONDEPS="\$(PM_COMMONDEPS)"
8395 GENERICDEPS="\$(PM_GENERICDEPS)"
8396 UNIXOBJS=
8397 UNIXDEPS=
8398 GUIDIST=GTK_DIST
8399 fi
8400
8401 if test "$TOOLKIT" != "PM" ; then
8402 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
8403 else
8404 TOOLKIT_DIR="os2"
8405 fi
8406
8407 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8408
8409 WX_LIBRARY="wx_${TOOLKIT_DIR}"
8410
8411 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)"
8412
8413 if test "$TOOLKIT" != "MSW"; then
8414 if test "$wxUSE_ODBC" = "yes" ; then
8415 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8416 fi
8417 fi
8418
8419 if test "$wxUSE_LIBJPEG" = "yes" ; then
8420 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8421 fi
8422 if test "$wxUSE_LIBTIFF" = "yes" ; then
8423 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8424 fi
8425 if test "$wxUSE_LIBPNG" = "yes" ; then
8426 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8427 fi
8428 if test "$wxUSE_ZLIB" = "yes" ; then
8429 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8430 fi
8431 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8432
8433 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8434 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8435 RPM_SPEC="wx\$(TOOLKIT).spec"
8436
8437 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8438 DISTDIR="wx\$(TOOLKIT)"
8439 else
8440 USE_GUI=0
8441
8442 TOOLKIT_DIR="base"
8443 TOOLKIT_DEF="-D__WXBASE__"
8444
8445 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8446 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
8447
8448 WX_LIBRARY="wxbase"
8449
8450 PORT_FILES="src/files.lst"
8451 RPM_FILES="src/rpmfiles.lst"
8452 RPM_SPEC="wxBase.spec"
8453
8454 GUIDIST="BASE_DIST"
8455 DISTDIR="wxBase"
8456 fi
8457
8458 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8459
8460 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8461
8462 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8463
8464 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8465 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8466 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8467
8468 SHARED_LD=
8469 PIC_FLAG=
8470 WX_ALL=
8471 WX_ALL_INSTALLED=
8472 BURNT_LIBRARY_NAME=
8473
8474
8475 if test "$wxUSE_SHARED" = "yes"; then
8476 case "${host}" in
8477 *-hp-hpux* )
8478 if test "$GCC" = yes ; then
8479 SHARED_LD="${CC} -shared -fPIC -o"
8480 PIC_FLAG="-fPIC"
8481 else
8482 SHARED_LD="${CXX} -b -o"
8483 PIC_FLAG="+Z"
8484 fi
8485 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8486 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8487 ;;
8488
8489 *-*-linux* )
8490 SHARED_LD="${CC} -shared -o"
8491 PIC_FLAG="-fPIC"
8492 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8493 WX_ALL="CREATE_LINKS"
8494 if test "$wxUSE_BURNT_NAME" = "yes" ; then
8495 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
8496 fi
8497 ;;
8498 *-*-irix5* | *-*-irix6* )
8499 if test "$GCC" = yes ; then
8500 SHARED_LD="${CC} -shared -o"
8501 PIC_FLAG="-fPIC"
8502 else
8503 SHARED_LD="${CXX} -shared -o"
8504 fi
8505 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8506 WX_ALL="CREATE_LINKS"
8507 ;;
8508 *-*-solaris2* )
8509 if test "$GCC" = yes ; then
8510 SHARED_LD="${CC} -shared -o"
8511 PIC_FLAG="-fPIC"
8512 else
8513 SHARED_LD="${CXX} -G -o"
8514 PIC_FLAG="-KPIC"
8515 fi
8516 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8517 WX_ALL="CREATE_LINKS"
8518 ;;
8519 *-*-sunos4* )
8520 SHARED_LD="${CC} -shared -o"
8521 PIC_FLAG="-fPIC"
8522 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8523 WX_ALL="CREATE_LINKS"
8524 ;;
8525 *-*-freebsd* | *-*-netbsd*)
8526 SHARED_LD="${CC} -shared -o"
8527 PIC_FLAG="-fPIC"
8528 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8529 WX_ALL="CREATE_LINKS"
8530 ;;
8531 *-*-osf* )
8532 SHARED_LD="${CXX} -shared -o"
8533 PIC_FLAG="-fPIC"
8534 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8535 WX_ALL="CREATE_LINKS"
8536 ;;
8537 *-*-dgux5* )
8538 SHARED_LD="${CXX} -shared -o"
8539 PIC_FLAG="-fPIC"
8540 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8541 WX_ALL="CREATE_LINKS"
8542 ;;
8543 *-*-sysv5* )
8544 SHARED_LD="${CC} -shared -o"
8545 PIC_FLAG="-fPIC"
8546 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8547 WX_ALL="CREATE_LINKS"
8548 ;;
8549 *-*-aix* )
8550 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8551 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8552 ;;
8553 *-*-cygwin32* )
8554 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8555 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8556 ;;
8557 *-*-mingw32* )
8558 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8559 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8560 ;;
8561 *-pc-os2_emx )
8562 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8563 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8564 ;;
8565 *-*-beos* )
8566 SHARED_LD="${LD} -shared -o"
8567 PIC_FLAG="-fPIC"
8568 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8569 WX_ALL="CREATE_LINKS"
8570 ;;
8571 *)
8572 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8573 esac
8574
8575 if test "x$WX_TARGET_LIBRARY" = "x"; then
8576 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8577 fi
8578 else
8579 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8580 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8581 fi
8582
8583
8584 for ac_hdr in strings.h
8585 do
8586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8588 echo "configure:8589: checking for $ac_hdr" >&5
8589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8591 else
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8595 #include <$ac_hdr>
8596 EOF
8597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8598 { (eval echo configure:8599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8600 if test -z "$ac_err"; then
8601 rm -rf conftest*
8602 eval "ac_cv_header_$ac_safe=yes"
8603 else
8604 echo "$ac_err" >&5
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8607 rm -rf conftest*
8608 eval "ac_cv_header_$ac_safe=no"
8609 fi
8610 rm -f conftest*
8611 fi
8612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8615 cat >> confdefs.h <<EOF
8616 #define $ac_tr_hdr 1
8617 EOF
8618
8619 else
8620 echo "$ac_t""no" 1>&6
8621 fi
8622 done
8623
8624 for ac_hdr in unistd.h
8625 do
8626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8628 echo "configure:8629: checking for $ac_hdr" >&5
8629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8630 echo $ac_n "(cached) $ac_c" 1>&6
8631 else
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 #include <$ac_hdr>
8636 EOF
8637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8638 { (eval echo configure:8639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8640 if test -z "$ac_err"; then
8641 rm -rf conftest*
8642 eval "ac_cv_header_$ac_safe=yes"
8643 else
8644 echo "$ac_err" >&5
8645 echo "configure: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8647 rm -rf conftest*
8648 eval "ac_cv_header_$ac_safe=no"
8649 fi
8650 rm -f conftest*
8651 fi
8652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8653 echo "$ac_t""yes" 1>&6
8654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8655 cat >> confdefs.h <<EOF
8656 #define $ac_tr_hdr 1
8657 EOF
8658
8659 else
8660 echo "$ac_t""no" 1>&6
8661 fi
8662 done
8663
8664 for ac_hdr in wchar.h
8665 do
8666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8668 echo "configure:8669: checking for $ac_hdr" >&5
8669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8671 else
8672 cat > conftest.$ac_ext <<EOF
8673 #line 8674 "configure"
8674 #include "confdefs.h"
8675 #include <$ac_hdr>
8676 EOF
8677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8678 { (eval echo configure:8679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8680 if test -z "$ac_err"; then
8681 rm -rf conftest*
8682 eval "ac_cv_header_$ac_safe=yes"
8683 else
8684 echo "$ac_err" >&5
8685 echo "configure: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8687 rm -rf conftest*
8688 eval "ac_cv_header_$ac_safe=no"
8689 fi
8690 rm -f conftest*
8691 fi
8692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8693 echo "$ac_t""yes" 1>&6
8694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8695 cat >> confdefs.h <<EOF
8696 #define $ac_tr_hdr 1
8697 EOF
8698
8699 else
8700 echo "$ac_t""no" 1>&6
8701 fi
8702 done
8703
8704 for ac_hdr in wcstr.h
8705 do
8706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8708 echo "configure:8709: checking for $ac_hdr" >&5
8709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8711 else
8712 cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8715 #include <$ac_hdr>
8716 EOF
8717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8718 { (eval echo configure:8719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8720 if test -z "$ac_err"; then
8721 rm -rf conftest*
8722 eval "ac_cv_header_$ac_safe=yes"
8723 else
8724 echo "$ac_err" >&5
8725 echo "configure: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 rm -rf conftest*
8728 eval "ac_cv_header_$ac_safe=no"
8729 fi
8730 rm -f conftest*
8731 fi
8732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8733 echo "$ac_t""yes" 1>&6
8734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8735 cat >> confdefs.h <<EOF
8736 #define $ac_tr_hdr 1
8737 EOF
8738
8739 else
8740 echo "$ac_t""no" 1>&6
8741 fi
8742 done
8743
8744 for ac_hdr in fnmatch.h
8745 do
8746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8748 echo "configure:8749: checking for $ac_hdr" >&5
8749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8751 else
8752 cat > conftest.$ac_ext <<EOF
8753 #line 8754 "configure"
8754 #include "confdefs.h"
8755 #include <$ac_hdr>
8756 EOF
8757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8758 { (eval echo configure:8759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8760 if test -z "$ac_err"; then
8761 rm -rf conftest*
8762 eval "ac_cv_header_$ac_safe=yes"
8763 else
8764 echo "$ac_err" >&5
8765 echo "configure: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8767 rm -rf conftest*
8768 eval "ac_cv_header_$ac_safe=no"
8769 fi
8770 rm -f conftest*
8771 fi
8772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8773 echo "$ac_t""yes" 1>&6
8774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8775 cat >> confdefs.h <<EOF
8776 #define $ac_tr_hdr 1
8777 EOF
8778
8779 else
8780 echo "$ac_t""no" 1>&6
8781 fi
8782 done
8783
8784
8785 if test "$wxUSE_GUI" = "yes"; then
8786 for ac_hdr in X11/XKBlib.h
8787 do
8788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8790 echo "configure:8791: checking for $ac_hdr" >&5
8791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
8793 else
8794 cat > conftest.$ac_ext <<EOF
8795 #line 8796 "configure"
8796 #include "confdefs.h"
8797 #include <$ac_hdr>
8798 EOF
8799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8800 { (eval echo configure:8801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8802 if test -z "$ac_err"; then
8803 rm -rf conftest*
8804 eval "ac_cv_header_$ac_safe=yes"
8805 else
8806 echo "$ac_err" >&5
8807 echo "configure: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8809 rm -rf conftest*
8810 eval "ac_cv_header_$ac_safe=no"
8811 fi
8812 rm -f conftest*
8813 fi
8814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8815 echo "$ac_t""yes" 1>&6
8816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8817 cat >> confdefs.h <<EOF
8818 #define $ac_tr_hdr 1
8819 EOF
8820
8821 else
8822 echo "$ac_t""no" 1>&6
8823 fi
8824 done
8825
8826 fi
8827
8828
8829 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8830 echo "configure:8831: checking for ANSI C header files" >&5
8831 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8833 else
8834 cat > conftest.$ac_ext <<EOF
8835 #line 8836 "configure"
8836 #include "confdefs.h"
8837 #include <stdlib.h>
8838 #include <stdarg.h>
8839 #include <string.h>
8840 #include <float.h>
8841 EOF
8842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8843 { (eval echo configure:8844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8845 if test -z "$ac_err"; then
8846 rm -rf conftest*
8847 ac_cv_header_stdc=yes
8848 else
8849 echo "$ac_err" >&5
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8852 rm -rf conftest*
8853 ac_cv_header_stdc=no
8854 fi
8855 rm -f conftest*
8856
8857 if test $ac_cv_header_stdc = yes; then
8858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 #include <string.h>
8863 EOF
8864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8865 egrep "memchr" >/dev/null 2>&1; then
8866 :
8867 else
8868 rm -rf conftest*
8869 ac_cv_header_stdc=no
8870 fi
8871 rm -f conftest*
8872
8873 fi
8874
8875 if test $ac_cv_header_stdc = yes; then
8876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 #include <stdlib.h>
8881 EOF
8882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8883 egrep "free" >/dev/null 2>&1; then
8884 :
8885 else
8886 rm -rf conftest*
8887 ac_cv_header_stdc=no
8888 fi
8889 rm -f conftest*
8890
8891 fi
8892
8893 if test $ac_cv_header_stdc = yes; then
8894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8895 if test "$cross_compiling" = yes; then
8896 :
8897 else
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 #include <ctype.h>
8902 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8903 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8905 int main () { int i; for (i = 0; i < 256; i++)
8906 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8907 exit (0); }
8908
8909 EOF
8910 if { (eval echo configure:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8911 then
8912 :
8913 else
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8916 rm -fr conftest*
8917 ac_cv_header_stdc=no
8918 fi
8919 rm -fr conftest*
8920 fi
8921
8922 fi
8923 fi
8924
8925 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8926 if test $ac_cv_header_stdc = yes; then
8927 cat >> confdefs.h <<\EOF
8928 #define STDC_HEADERS 1
8929 EOF
8930
8931 fi
8932
8933 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8934 echo "configure:8935: checking for mode_t" >&5
8935 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8937 else
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8941 #include <sys/types.h>
8942 #if STDC_HEADERS
8943 #include <stdlib.h>
8944 #include <stddef.h>
8945 #endif
8946 EOF
8947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8948 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8949 rm -rf conftest*
8950 ac_cv_type_mode_t=yes
8951 else
8952 rm -rf conftest*
8953 ac_cv_type_mode_t=no
8954 fi
8955 rm -f conftest*
8956
8957 fi
8958 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8959 if test $ac_cv_type_mode_t = no; then
8960 cat >> confdefs.h <<\EOF
8961 #define mode_t int
8962 EOF
8963
8964 fi
8965
8966 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8967 echo "configure:8968: checking for off_t" >&5
8968 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8970 else
8971 cat > conftest.$ac_ext <<EOF
8972 #line 8973 "configure"
8973 #include "confdefs.h"
8974 #include <sys/types.h>
8975 #if STDC_HEADERS
8976 #include <stdlib.h>
8977 #include <stddef.h>
8978 #endif
8979 EOF
8980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8981 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8982 rm -rf conftest*
8983 ac_cv_type_off_t=yes
8984 else
8985 rm -rf conftest*
8986 ac_cv_type_off_t=no
8987 fi
8988 rm -f conftest*
8989
8990 fi
8991 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8992 if test $ac_cv_type_off_t = no; then
8993 cat >> confdefs.h <<\EOF
8994 #define off_t long
8995 EOF
8996
8997 fi
8998
8999 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9000 echo "configure:9001: checking for pid_t" >&5
9001 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9002 echo $ac_n "(cached) $ac_c" 1>&6
9003 else
9004 cat > conftest.$ac_ext <<EOF
9005 #line 9006 "configure"
9006 #include "confdefs.h"
9007 #include <sys/types.h>
9008 #if STDC_HEADERS
9009 #include <stdlib.h>
9010 #include <stddef.h>
9011 #endif
9012 EOF
9013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9014 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9015 rm -rf conftest*
9016 ac_cv_type_pid_t=yes
9017 else
9018 rm -rf conftest*
9019 ac_cv_type_pid_t=no
9020 fi
9021 rm -f conftest*
9022
9023 fi
9024 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9025 if test $ac_cv_type_pid_t = no; then
9026 cat >> confdefs.h <<\EOF
9027 #define pid_t int
9028 EOF
9029
9030 fi
9031
9032 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9033 echo "configure:9034: checking for size_t" >&5
9034 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9036 else
9037 cat > conftest.$ac_ext <<EOF
9038 #line 9039 "configure"
9039 #include "confdefs.h"
9040 #include <sys/types.h>
9041 #if STDC_HEADERS
9042 #include <stdlib.h>
9043 #include <stddef.h>
9044 #endif
9045 EOF
9046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9047 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9048 rm -rf conftest*
9049 ac_cv_type_size_t=yes
9050 else
9051 rm -rf conftest*
9052 ac_cv_type_size_t=no
9053 fi
9054 rm -f conftest*
9055
9056 fi
9057 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9058 if test $ac_cv_type_size_t = no; then
9059 cat >> confdefs.h <<\EOF
9060 #define size_t unsigned
9061 EOF
9062
9063 fi
9064
9065 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9066 echo "configure:9067: checking for uid_t in sys/types.h" >&5
9067 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9068 echo $ac_n "(cached) $ac_c" 1>&6
9069 else
9070 cat > conftest.$ac_ext <<EOF
9071 #line 9072 "configure"
9072 #include "confdefs.h"
9073 #include <sys/types.h>
9074 EOF
9075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9076 egrep "uid_t" >/dev/null 2>&1; then
9077 rm -rf conftest*
9078 ac_cv_type_uid_t=yes
9079 else
9080 rm -rf conftest*
9081 ac_cv_type_uid_t=no
9082 fi
9083 rm -f conftest*
9084
9085 fi
9086
9087 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9088 if test $ac_cv_type_uid_t = no; then
9089 cat >> confdefs.h <<\EOF
9090 #define uid_t int
9091 EOF
9092
9093 cat >> confdefs.h <<\EOF
9094 #define gid_t int
9095 EOF
9096
9097 fi
9098
9099
9100
9101 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9102 echo "configure:9103: checking for pw_gecos in struct passwd" >&5
9103 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9105 else
9106
9107 cat > conftest.$ac_ext <<EOF
9108 #line 9109 "configure"
9109 #include "confdefs.h"
9110 #include <pwd.h>
9111 int main() {
9112
9113 char *p;
9114 struct passwd *pw;
9115 p = pw->pw_gecos;
9116
9117 ; return 0; }
9118 EOF
9119 if { (eval echo configure:9120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9120 rm -rf conftest*
9121
9122 wx_cv_struct_pw_gecos=yes
9123 cat >> confdefs.h <<\EOF
9124 #define HAVE_PW_GECOS 1
9125 EOF
9126
9127
9128 else
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 rm -rf conftest*
9132
9133 wx_cv_struct_pw_gecos=no
9134
9135
9136 fi
9137 rm -f conftest*
9138
9139
9140 fi
9141
9142 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9143
9144
9145 echo $ac_n "checking for working const""... $ac_c" 1>&6
9146 echo "configure:9147: checking for working const" >&5
9147 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9149 else
9150 cat > conftest.$ac_ext <<EOF
9151 #line 9152 "configure"
9152 #include "confdefs.h"
9153
9154 int main() {
9155
9156 /* Ultrix mips cc rejects this. */
9157 typedef int charset[2]; const charset x;
9158 /* SunOS 4.1.1 cc rejects this. */
9159 char const *const *ccp;
9160 char **p;
9161 /* NEC SVR4.0.2 mips cc rejects this. */
9162 struct point {int x, y;};
9163 static struct point const zero = {0,0};
9164 /* AIX XL C 1.02.0.0 rejects this.
9165 It does not let you subtract one const X* pointer from another in an arm
9166 of an if-expression whose if-part is not a constant expression */
9167 const char *g = "string";
9168 ccp = &g + (g ? g-g : 0);
9169 /* HPUX 7.0 cc rejects these. */
9170 ++ccp;
9171 p = (char**) ccp;
9172 ccp = (char const *const *) p;
9173 { /* SCO 3.2v4 cc rejects this. */
9174 char *t;
9175 char const *s = 0 ? (char *) 0 : (char const *) 0;
9176
9177 *t++ = 0;
9178 }
9179 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9180 int x[] = {25, 17};
9181 const int *foo = &x[0];
9182 ++foo;
9183 }
9184 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9185 typedef const int *iptr;
9186 iptr p = 0;
9187 ++p;
9188 }
9189 { /* AIX XL C 1.02.0.0 rejects this saying
9190 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9191 struct s { int j; const int *ap[3]; };
9192 struct s *b; b->j = 5;
9193 }
9194 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9195 const int foo = 10;
9196 }
9197
9198 ; return 0; }
9199 EOF
9200 if { (eval echo configure:9201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9201 rm -rf conftest*
9202 ac_cv_c_const=yes
9203 else
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 rm -rf conftest*
9207 ac_cv_c_const=no
9208 fi
9209 rm -f conftest*
9210 fi
9211
9212 echo "$ac_t""$ac_cv_c_const" 1>&6
9213 if test $ac_cv_c_const = no; then
9214 cat >> confdefs.h <<\EOF
9215 #define const
9216 EOF
9217
9218 fi
9219
9220 echo $ac_n "checking for inline""... $ac_c" 1>&6
9221 echo "configure:9222: checking for inline" >&5
9222 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9224 else
9225 ac_cv_c_inline=no
9226 for ac_kw in inline __inline__ __inline; do
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9230
9231 int main() {
9232 } $ac_kw foo() {
9233 ; return 0; }
9234 EOF
9235 if { (eval echo configure:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9236 rm -rf conftest*
9237 ac_cv_c_inline=$ac_kw; break
9238 else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 fi
9242 rm -f conftest*
9243 done
9244
9245 fi
9246
9247 echo "$ac_t""$ac_cv_c_inline" 1>&6
9248 case "$ac_cv_c_inline" in
9249 inline | yes) ;;
9250 no) cat >> confdefs.h <<\EOF
9251 #define inline
9252 EOF
9253 ;;
9254 *) cat >> confdefs.h <<EOF
9255 #define inline $ac_cv_c_inline
9256 EOF
9257 ;;
9258 esac
9259
9260
9261 echo $ac_n "checking size of char""... $ac_c" 1>&6
9262 echo "configure:9263: checking size of char" >&5
9263 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9264 echo $ac_n "(cached) $ac_c" 1>&6
9265 else
9266 if test "$cross_compiling" = yes; then
9267 ac_cv_sizeof_char=1
9268 else
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9272 #include <stdio.h>
9273 main()
9274 {
9275 FILE *f=fopen("conftestval", "w");
9276 if (!f) exit(1);
9277 fprintf(f, "%d\n", sizeof(char));
9278 exit(0);
9279 }
9280 EOF
9281 if { (eval echo configure:9282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9282 then
9283 ac_cv_sizeof_char=`cat conftestval`
9284 else
9285 echo "configure: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9287 rm -fr conftest*
9288 ac_cv_sizeof_char=0
9289 fi
9290 rm -fr conftest*
9291 fi
9292
9293 fi
9294 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9295 cat >> confdefs.h <<EOF
9296 #define SIZEOF_CHAR $ac_cv_sizeof_char
9297 EOF
9298
9299
9300 echo $ac_n "checking size of short""... $ac_c" 1>&6
9301 echo "configure:9302: checking size of short" >&5
9302 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9304 else
9305 if test "$cross_compiling" = yes; then
9306 ac_cv_sizeof_short=2
9307 else
9308 cat > conftest.$ac_ext <<EOF
9309 #line 9310 "configure"
9310 #include "confdefs.h"
9311 #include <stdio.h>
9312 main()
9313 {
9314 FILE *f=fopen("conftestval", "w");
9315 if (!f) exit(1);
9316 fprintf(f, "%d\n", sizeof(short));
9317 exit(0);
9318 }
9319 EOF
9320 if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9321 then
9322 ac_cv_sizeof_short=`cat conftestval`
9323 else
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 rm -fr conftest*
9327 ac_cv_sizeof_short=0
9328 fi
9329 rm -fr conftest*
9330 fi
9331
9332 fi
9333 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9334 cat >> confdefs.h <<EOF
9335 #define SIZEOF_SHORT $ac_cv_sizeof_short
9336 EOF
9337
9338
9339 echo $ac_n "checking size of int *""... $ac_c" 1>&6
9340 echo "configure:9341: checking size of int *" >&5
9341 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9342 echo $ac_n "(cached) $ac_c" 1>&6
9343 else
9344 if test "$cross_compiling" = yes; then
9345 ac_cv_sizeof_int_p=4
9346 else
9347 cat > conftest.$ac_ext <<EOF
9348 #line 9349 "configure"
9349 #include "confdefs.h"
9350 #include <stdio.h>
9351 main()
9352 {
9353 FILE *f=fopen("conftestval", "w");
9354 if (!f) exit(1);
9355 fprintf(f, "%d\n", sizeof(int *));
9356 exit(0);
9357 }
9358 EOF
9359 if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9360 then
9361 ac_cv_sizeof_int_p=`cat conftestval`
9362 else
9363 echo "configure: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 rm -fr conftest*
9366 ac_cv_sizeof_int_p=0
9367 fi
9368 rm -fr conftest*
9369 fi
9370
9371 fi
9372 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9373 cat >> confdefs.h <<EOF
9374 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9375 EOF
9376
9377
9378 echo $ac_n "checking size of int""... $ac_c" 1>&6
9379 echo "configure:9380: checking size of int" >&5
9380 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9381 echo $ac_n "(cached) $ac_c" 1>&6
9382 else
9383 if test "$cross_compiling" = yes; then
9384 ac_cv_sizeof_int=4
9385 else
9386 cat > conftest.$ac_ext <<EOF
9387 #line 9388 "configure"
9388 #include "confdefs.h"
9389 #include <stdio.h>
9390 main()
9391 {
9392 FILE *f=fopen("conftestval", "w");
9393 if (!f) exit(1);
9394 fprintf(f, "%d\n", sizeof(int));
9395 exit(0);
9396 }
9397 EOF
9398 if { (eval echo configure:9399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9399 then
9400 ac_cv_sizeof_int=`cat conftestval`
9401 else
9402 echo "configure: failed program was:" >&5
9403 cat conftest.$ac_ext >&5
9404 rm -fr conftest*
9405 ac_cv_sizeof_int=0
9406 fi
9407 rm -fr conftest*
9408 fi
9409
9410 fi
9411 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9412 cat >> confdefs.h <<EOF
9413 #define SIZEOF_INT $ac_cv_sizeof_int
9414 EOF
9415
9416
9417 echo $ac_n "checking size of long""... $ac_c" 1>&6
9418 echo "configure:9419: checking size of long" >&5
9419 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9421 else
9422 if test "$cross_compiling" = yes; then
9423 ac_cv_sizeof_long=4
9424 else
9425 cat > conftest.$ac_ext <<EOF
9426 #line 9427 "configure"
9427 #include "confdefs.h"
9428 #include <stdio.h>
9429 main()
9430 {
9431 FILE *f=fopen("conftestval", "w");
9432 if (!f) exit(1);
9433 fprintf(f, "%d\n", sizeof(long));
9434 exit(0);
9435 }
9436 EOF
9437 if { (eval echo configure:9438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9438 then
9439 ac_cv_sizeof_long=`cat conftestval`
9440 else
9441 echo "configure: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9443 rm -fr conftest*
9444 ac_cv_sizeof_long=0
9445 fi
9446 rm -fr conftest*
9447 fi
9448
9449 fi
9450 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9451 cat >> confdefs.h <<EOF
9452 #define SIZEOF_LONG $ac_cv_sizeof_long
9453 EOF
9454
9455
9456 echo $ac_n "checking size of long long""... $ac_c" 1>&6
9457 echo "configure:9458: checking size of long long" >&5
9458 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9460 else
9461 if test "$cross_compiling" = yes; then
9462 ac_cv_sizeof_long_long=0
9463 else
9464 cat > conftest.$ac_ext <<EOF
9465 #line 9466 "configure"
9466 #include "confdefs.h"
9467 #include <stdio.h>
9468 main()
9469 {
9470 FILE *f=fopen("conftestval", "w");
9471 if (!f) exit(1);
9472 fprintf(f, "%d\n", sizeof(long long));
9473 exit(0);
9474 }
9475 EOF
9476 if { (eval echo configure:9477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9477 then
9478 ac_cv_sizeof_long_long=`cat conftestval`
9479 else
9480 echo "configure: failed program was:" >&5
9481 cat conftest.$ac_ext >&5
9482 rm -fr conftest*
9483 ac_cv_sizeof_long_long=0
9484 fi
9485 rm -fr conftest*
9486 fi
9487
9488 fi
9489 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9490 cat >> confdefs.h <<EOF
9491 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9492 EOF
9493
9494
9495
9496 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9497 echo "configure:9498: checking whether byte ordering is bigendian" >&5
9498 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9500 else
9501 ac_cv_c_bigendian=unknown
9502 # See if sys/param.h defines the BYTE_ORDER macro.
9503 cat > conftest.$ac_ext <<EOF
9504 #line 9505 "configure"
9505 #include "confdefs.h"
9506 #include <sys/types.h>
9507 #include <sys/param.h>
9508 int main() {
9509
9510 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9511 bogus endian macros
9512 #endif
9513 ; return 0; }
9514 EOF
9515 if { (eval echo configure:9516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9516 rm -rf conftest*
9517 # It does; now see whether it defined to BIG_ENDIAN or not.
9518 cat > conftest.$ac_ext <<EOF
9519 #line 9520 "configure"
9520 #include "confdefs.h"
9521 #include <sys/types.h>
9522 #include <sys/param.h>
9523 int main() {
9524
9525 #if BYTE_ORDER != BIG_ENDIAN
9526 not big endian
9527 #endif
9528 ; return 0; }
9529 EOF
9530 if { (eval echo configure:9531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9531 rm -rf conftest*
9532 ac_cv_c_bigendian=yes
9533 else
9534 echo "configure: failed program was:" >&5
9535 cat conftest.$ac_ext >&5
9536 rm -rf conftest*
9537 ac_cv_c_bigendian=no
9538 fi
9539 rm -f conftest*
9540 else
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 fi
9544 rm -f conftest*
9545 if test $ac_cv_c_bigendian = unknown; then
9546 if test "$cross_compiling" = yes; then
9547 ac_cv_c_bigendian=unknown
9548 else
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 main () {
9553 /* Are we little or big endian? From Harbison&Steele. */
9554 union
9555 {
9556 long l;
9557 char c[sizeof (long)];
9558 } u;
9559 u.l = 1;
9560 exit (u.c[sizeof (long) - 1] == 1);
9561 }
9562 EOF
9563 if { (eval echo configure:9564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9564 then
9565 ac_cv_c_bigendian=no
9566 else
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 rm -fr conftest*
9570 ac_cv_c_bigendian=yes
9571 fi
9572 rm -fr conftest*
9573 fi
9574
9575 fi
9576 fi
9577
9578 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9579 if test $ac_cv_c_bigendian = unknown; then
9580 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
9581 fi
9582 if test $ac_cv_c_bigendian = yes; then
9583 cat >> confdefs.h <<\EOF
9584 #define WORDS_BIGENDIAN 1
9585 EOF
9586
9587 fi
9588
9589
9590
9591 if test "$cross_compiling" = "yes"; then
9592 cat >> confdefs.h <<\EOF
9593 #define wxUSE_IOSTREAMH 1
9594 EOF
9595
9596 else
9597
9598 ac_ext=C
9599 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9600 ac_cpp='$CXXCPP $CPPFLAGS'
9601 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9602 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9603 cross_compiling=$ac_cv_prog_cxx_cross
9604
9605
9606 for ac_hdr in iostream
9607 do
9608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9610 echo "configure:9611: checking for $ac_hdr" >&5
9611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9612 echo $ac_n "(cached) $ac_c" 1>&6
9613 else
9614 cat > conftest.$ac_ext <<EOF
9615 #line 9616 "configure"
9616 #include "confdefs.h"
9617 #include <$ac_hdr>
9618 EOF
9619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9620 { (eval echo configure:9621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9622 if test -z "$ac_err"; then
9623 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=yes"
9625 else
9626 echo "$ac_err" >&5
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9629 rm -rf conftest*
9630 eval "ac_cv_header_$ac_safe=no"
9631 fi
9632 rm -f conftest*
9633 fi
9634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9635 echo "$ac_t""yes" 1>&6
9636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9637 cat >> confdefs.h <<EOF
9638 #define $ac_tr_hdr 1
9639 EOF
9640
9641 else
9642 echo "$ac_t""no" 1>&6
9643 fi
9644 done
9645
9646
9647 if test "x$HAVE_IOSTREAM" = x ; then
9648 cat >> confdefs.h <<\EOF
9649 #define wxUSE_IOSTREAMH 1
9650 EOF
9651
9652 else
9653 :
9654 fi
9655
9656 ac_ext=c
9657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9658 ac_cpp='$CPP $CPPFLAGS'
9659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9661 cross_compiling=$ac_cv_prog_cc_cross
9662
9663 fi
9664
9665
9666
9667 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9668 echo "configure:9669: checking if C++ compiler supports bool" >&5
9669 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9670 echo $ac_n "(cached) $ac_c" 1>&6
9671 else
9672
9673
9674 ac_ext=C
9675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9676 ac_cpp='$CXXCPP $CPPFLAGS'
9677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9679 cross_compiling=$ac_cv_prog_cxx_cross
9680
9681
9682 cat > conftest.$ac_ext <<EOF
9683 #line 9684 "configure"
9684 #include "confdefs.h"
9685
9686
9687 int main() {
9688
9689 bool b = true;
9690
9691 return 0;
9692
9693 ; return 0; }
9694 EOF
9695 if { (eval echo configure:9696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9696 rm -rf conftest*
9697
9698 cat >> confdefs.h <<\EOF
9699 #define HAVE_BOOL 1
9700 EOF
9701
9702 wx_cv_cpp_bool=yes
9703
9704 else
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9707 rm -rf conftest*
9708
9709 wx_cv_cpp_bool=no
9710
9711
9712 fi
9713 rm -f conftest*
9714
9715 ac_ext=c
9716 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9717 ac_cpp='$CPP $CPPFLAGS'
9718 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9719 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9720 cross_compiling=$ac_cv_prog_cc_cross
9721
9722
9723 fi
9724
9725 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9726
9727 if test "$wx_cv_cpp_bool" = "yes"; then
9728 cat >> confdefs.h <<\EOF
9729 #define HAVE_BOOL 1
9730 EOF
9731
9732 fi
9733
9734
9735
9736 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9737 echo "configure:9738: checking if you need GNU extensions" >&5
9738 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9739 echo $ac_n "(cached) $ac_c" 1>&6
9740 else
9741
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 #include <features.h>
9746 int main() {
9747
9748
9749 #ifndef __GNU_LIBRARY__
9750 Compile error wanted
9751 #endif
9752
9753
9754 ; return 0; }
9755 EOF
9756 if { (eval echo configure:9757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9757 rm -rf conftest*
9758 wx_cv_gnu_extensions=yes
9759 else
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 rm -rf conftest*
9763 wx_cv_gnu_extensions=no
9764 fi
9765 rm -f conftest*
9766
9767 fi
9768
9769
9770 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9771 if test "$wx_cv_gnu_extensions" = "yes"; then
9772 cat >> confdefs.h <<EOF
9773 #define _GNU_SOURCE 1
9774 EOF
9775
9776 fi
9777
9778
9779
9780 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9781 echo "configure:9782: checking for wcslen in -lc" >&5
9782 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9785 else
9786 ac_save_LIBS="$LIBS"
9787 LIBS="-lc $LIBS"
9788 cat > conftest.$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9791 /* Override any gcc2 internal prototype to avoid an error. */
9792 /* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9794 char wcslen();
9795
9796 int main() {
9797 wcslen()
9798 ; return 0; }
9799 EOF
9800 if { (eval echo configure:9801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9801 rm -rf conftest*
9802 eval "ac_cv_lib_$ac_lib_var=yes"
9803 else
9804 echo "configure: failed program was:" >&5
9805 cat conftest.$ac_ext >&5
9806 rm -rf conftest*
9807 eval "ac_cv_lib_$ac_lib_var=no"
9808 fi
9809 rm -f conftest*
9810 LIBS="$ac_save_LIBS"
9811
9812 fi
9813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9814 echo "$ac_t""yes" 1>&6
9815
9816 cat >> confdefs.h <<\EOF
9817 #define HAVE_WCSLEN 1
9818 EOF
9819
9820 WCHAR_LINK=""
9821
9822 else
9823 echo "$ac_t""no" 1>&6
9824
9825 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9826 echo "configure:9827: checking for wcslen in -lw" >&5
9827 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830 else
9831 ac_save_LIBS="$LIBS"
9832 LIBS="-lw $LIBS"
9833 cat > conftest.$ac_ext <<EOF
9834 #line 9835 "configure"
9835 #include "confdefs.h"
9836 /* Override any gcc2 internal prototype to avoid an error. */
9837 /* We use char because int might match the return type of a gcc2
9838 builtin and then its argument prototype would still apply. */
9839 char wcslen();
9840
9841 int main() {
9842 wcslen()
9843 ; return 0; }
9844 EOF
9845 if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9846 rm -rf conftest*
9847 eval "ac_cv_lib_$ac_lib_var=yes"
9848 else
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 rm -rf conftest*
9852 eval "ac_cv_lib_$ac_lib_var=no"
9853 fi
9854 rm -f conftest*
9855 LIBS="$ac_save_LIBS"
9856
9857 fi
9858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9859 echo "$ac_t""yes" 1>&6
9860
9861 cat >> confdefs.h <<\EOF
9862 #define HAVE_WCSLEN 1
9863 EOF
9864
9865 WCHAR_LINK="-lw"
9866
9867 else
9868 echo "$ac_t""no" 1>&6
9869 fi
9870
9871
9872 fi
9873
9874
9875 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9876 echo "configure:9877: checking for vprintf" >&5
9877 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9878 echo $ac_n "(cached) $ac_c" 1>&6
9879 else
9880 cat > conftest.$ac_ext <<EOF
9881 #line 9882 "configure"
9882 #include "confdefs.h"
9883 /* System header to define __stub macros and hopefully few prototypes,
9884 which can conflict with char vprintf(); below. */
9885 #include <assert.h>
9886 /* Override any gcc2 internal prototype to avoid an error. */
9887 /* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9889 char vprintf();
9890
9891 int main() {
9892
9893 /* The GNU C library defines this for functions which it implements
9894 to always fail with ENOSYS. Some functions are actually named
9895 something starting with __ and the normal name is an alias. */
9896 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9897 choke me
9898 #else
9899 vprintf();
9900 #endif
9901
9902 ; return 0; }
9903 EOF
9904 if { (eval echo configure:9905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9905 rm -rf conftest*
9906 eval "ac_cv_func_vprintf=yes"
9907 else
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 rm -rf conftest*
9911 eval "ac_cv_func_vprintf=no"
9912 fi
9913 rm -f conftest*
9914 fi
9915
9916 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9917 echo "$ac_t""yes" 1>&6
9918 cat >> confdefs.h <<\EOF
9919 #define HAVE_VPRINTF 1
9920 EOF
9921
9922 else
9923 echo "$ac_t""no" 1>&6
9924 fi
9925
9926 if test "$ac_cv_func_vprintf" != yes; then
9927 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9928 echo "configure:9929: checking for _doprnt" >&5
9929 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9930 echo $ac_n "(cached) $ac_c" 1>&6
9931 else
9932 cat > conftest.$ac_ext <<EOF
9933 #line 9934 "configure"
9934 #include "confdefs.h"
9935 /* System header to define __stub macros and hopefully few prototypes,
9936 which can conflict with char _doprnt(); below. */
9937 #include <assert.h>
9938 /* Override any gcc2 internal prototype to avoid an error. */
9939 /* We use char because int might match the return type of a gcc2
9940 builtin and then its argument prototype would still apply. */
9941 char _doprnt();
9942
9943 int main() {
9944
9945 /* The GNU C library defines this for functions which it implements
9946 to always fail with ENOSYS. Some functions are actually named
9947 something starting with __ and the normal name is an alias. */
9948 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9949 choke me
9950 #else
9951 _doprnt();
9952 #endif
9953
9954 ; return 0; }
9955 EOF
9956 if { (eval echo configure:9957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9957 rm -rf conftest*
9958 eval "ac_cv_func__doprnt=yes"
9959 else
9960 echo "configure: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9962 rm -rf conftest*
9963 eval "ac_cv_func__doprnt=no"
9964 fi
9965 rm -f conftest*
9966 fi
9967
9968 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9969 echo "$ac_t""yes" 1>&6
9970 cat >> confdefs.h <<\EOF
9971 #define HAVE_DOPRNT 1
9972 EOF
9973
9974 else
9975 echo "$ac_t""no" 1>&6
9976 fi
9977
9978 fi
9979
9980
9981 for ac_func in vsnprintf
9982 do
9983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9984 echo "configure:9985: checking for $ac_func" >&5
9985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9986 echo $ac_n "(cached) $ac_c" 1>&6
9987 else
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9991 /* System header to define __stub macros and hopefully few prototypes,
9992 which can conflict with char $ac_func(); below. */
9993 #include <assert.h>
9994 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9997 char $ac_func();
9998
9999 int main() {
10000
10001 /* The GNU C library defines this for functions which it implements
10002 to always fail with ENOSYS. Some functions are actually named
10003 something starting with __ and the normal name is an alias. */
10004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10005 choke me
10006 #else
10007 $ac_func();
10008 #endif
10009
10010 ; return 0; }
10011 EOF
10012 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10013 rm -rf conftest*
10014 eval "ac_cv_func_$ac_func=yes"
10015 else
10016 echo "configure: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10018 rm -rf conftest*
10019 eval "ac_cv_func_$ac_func=no"
10020 fi
10021 rm -f conftest*
10022 fi
10023
10024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10025 echo "$ac_t""yes" 1>&6
10026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10027 cat >> confdefs.h <<EOF
10028 #define $ac_tr_func 1
10029 EOF
10030 cat >> confdefs.h <<\EOF
10031 #define HAVE_VSNPRINTF 1
10032 EOF
10033
10034 else
10035 echo "$ac_t""no" 1>&6
10036 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10037
10038 fi
10039 done
10040
10041
10042
10043 ac_ext=C
10044 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10045 ac_cpp='$CXXCPP $CPPFLAGS'
10046 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10047 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10048 cross_compiling=$ac_cv_prog_cxx_cross
10049
10050
10051 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
10052 echo "configure:10053: checking for vsscanf" >&5
10053 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10054 echo $ac_n "(cached) $ac_c" 1>&6
10055 else
10056
10057 if test "$cross_compiling" = yes; then
10058 wx_cv_func_vsscanf=no
10059
10060 else
10061 cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure"
10063 #include "confdefs.h"
10064 #ifdef __cplusplus
10065 extern "C" void exit(int);
10066 #endif
10067
10068 #include <stdio.h>
10069 #include <stdarg.h>
10070
10071 int try_vsscanf(const char *format, ...)
10072 {
10073 va_list ap;
10074 va_start(ap, format);
10075
10076 vsscanf("17", format, ap);
10077
10078 va_end(ap);
10079 }
10080
10081 int main()
10082 {
10083 int i;
10084 try_vsscanf("%d", &i);
10085 return i == 17 ? 0 : 1;
10086 }
10087
10088 EOF
10089 if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10090 then
10091
10092 cat >> confdefs.h <<\EOF
10093 #define HAVE_VSSCANF 1
10094 EOF
10095
10096 wx_cv_func_vsscanf=yes
10097
10098 else
10099 echo "configure: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10101 rm -fr conftest*
10102 wx_cv_func_vsscanf=no
10103 fi
10104 rm -fr conftest*
10105 fi
10106
10107
10108 fi
10109
10110 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10111
10112 ac_ext=c
10113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10114 ac_cpp='$CPP $CPPFLAGS'
10115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10117 cross_compiling=$ac_cv_prog_cc_cross
10118
10119
10120 if test "$TOOLKIT" != "MSW"; then
10121
10122 for ac_func in vfork
10123 do
10124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10125 echo "configure:10126: checking for $ac_func" >&5
10126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128 else
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10132 /* System header to define __stub macros and hopefully few prototypes,
10133 which can conflict with char $ac_func(); below. */
10134 #include <assert.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 $ac_func();
10139
10140 int main() {
10141
10142 /* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10146 choke me
10147 #else
10148 $ac_func();
10149 #endif
10150
10151 ; return 0; }
10152 EOF
10153 if { (eval echo configure:10154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10154 rm -rf conftest*
10155 eval "ac_cv_func_$ac_func=yes"
10156 else
10157 echo "configure: failed program was:" >&5
10158 cat conftest.$ac_ext >&5
10159 rm -rf conftest*
10160 eval "ac_cv_func_$ac_func=no"
10161 fi
10162 rm -f conftest*
10163 fi
10164
10165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10166 echo "$ac_t""yes" 1>&6
10167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10168 cat >> confdefs.h <<EOF
10169 #define $ac_tr_func 1
10170 EOF
10171
10172 else
10173 echo "$ac_t""no" 1>&6
10174 fi
10175 done
10176
10177
10178 for ac_func in timegm
10179 do
10180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10181 echo "configure:10182: checking for $ac_func" >&5
10182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10183 echo $ac_n "(cached) $ac_c" 1>&6
10184 else
10185 cat > conftest.$ac_ext <<EOF
10186 #line 10187 "configure"
10187 #include "confdefs.h"
10188 /* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char $ac_func(); below. */
10190 #include <assert.h>
10191 /* Override any gcc2 internal prototype to avoid an error. */
10192 /* We use char because int might match the return type of a gcc2
10193 builtin and then its argument prototype would still apply. */
10194 char $ac_func();
10195
10196 int main() {
10197
10198 /* The GNU C library defines this for functions which it implements
10199 to always fail with ENOSYS. Some functions are actually named
10200 something starting with __ and the normal name is an alias. */
10201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10202 choke me
10203 #else
10204 $ac_func();
10205 #endif
10206
10207 ; return 0; }
10208 EOF
10209 if { (eval echo configure:10210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10210 rm -rf conftest*
10211 eval "ac_cv_func_$ac_func=yes"
10212 else
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 rm -rf conftest*
10216 eval "ac_cv_func_$ac_func=no"
10217 fi
10218 rm -f conftest*
10219 fi
10220
10221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10222 echo "$ac_t""yes" 1>&6
10223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10224 cat >> confdefs.h <<EOF
10225 #define $ac_tr_func 1
10226 EOF
10227
10228 else
10229 echo "$ac_t""no" 1>&6
10230 fi
10231 done
10232
10233
10234 HAVE_SOME_SLEEP_FUNC=0
10235 if test "$USE_BEOS" = 1; then
10236 cat >> confdefs.h <<\EOF
10237 #define HAVE_SLEEP 1
10238 EOF
10239
10240 HAVE_SOME_SLEEP_FUNC=1
10241 fi
10242
10243 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10244 POSIX4_LINK=
10245 for ac_func in nanosleep
10246 do
10247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10248 echo "configure:10249: checking for $ac_func" >&5
10249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10251 else
10252 cat > conftest.$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10255 /* System header to define __stub macros and hopefully few prototypes,
10256 which can conflict with char $ac_func(); below. */
10257 #include <assert.h>
10258 /* Override any gcc2 internal prototype to avoid an error. */
10259 /* We use char because int might match the return type of a gcc2
10260 builtin and then its argument prototype would still apply. */
10261 char $ac_func();
10262
10263 int main() {
10264
10265 /* The GNU C library defines this for functions which it implements
10266 to always fail with ENOSYS. Some functions are actually named
10267 something starting with __ and the normal name is an alias. */
10268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10269 choke me
10270 #else
10271 $ac_func();
10272 #endif
10273
10274 ; return 0; }
10275 EOF
10276 if { (eval echo configure:10277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10277 rm -rf conftest*
10278 eval "ac_cv_func_$ac_func=yes"
10279 else
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 rm -rf conftest*
10283 eval "ac_cv_func_$ac_func=no"
10284 fi
10285 rm -f conftest*
10286 fi
10287
10288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10291 cat >> confdefs.h <<EOF
10292 #define $ac_tr_func 1
10293 EOF
10294 cat >> confdefs.h <<\EOF
10295 #define HAVE_NANOSLEEP 1
10296 EOF
10297
10298 else
10299 echo "$ac_t""no" 1>&6
10300 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
10301 echo "configure:10302: checking for nanosleep in -lposix4" >&5
10302 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10304 echo $ac_n "(cached) $ac_c" 1>&6
10305 else
10306 ac_save_LIBS="$LIBS"
10307 LIBS="-lposix4 $LIBS"
10308 cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10311 /* Override any gcc2 internal prototype to avoid an error. */
10312 /* We use char because int might match the return type of a gcc2
10313 builtin and then its argument prototype would still apply. */
10314 char nanosleep();
10315
10316 int main() {
10317 nanosleep()
10318 ; return 0; }
10319 EOF
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10321 rm -rf conftest*
10322 eval "ac_cv_lib_$ac_lib_var=yes"
10323 else
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10326 rm -rf conftest*
10327 eval "ac_cv_lib_$ac_lib_var=no"
10328 fi
10329 rm -f conftest*
10330 LIBS="$ac_save_LIBS"
10331
10332 fi
10333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10334 echo "$ac_t""yes" 1>&6
10335
10336 cat >> confdefs.h <<\EOF
10337 #define HAVE_NANOSLEEP 1
10338 EOF
10339
10340 POSIX4_LINK="-lposix4"
10341
10342 else
10343 echo "$ac_t""no" 1>&6
10344
10345 for ac_func in usleep
10346 do
10347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10348 echo "configure:10349: checking for $ac_func" >&5
10349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10350 echo $ac_n "(cached) $ac_c" 1>&6
10351 else
10352 cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10355 /* System header to define __stub macros and hopefully few prototypes,
10356 which can conflict with char $ac_func(); below. */
10357 #include <assert.h>
10358 /* Override any gcc2 internal prototype to avoid an error. */
10359 /* We use char because int might match the return type of a gcc2
10360 builtin and then its argument prototype would still apply. */
10361 char $ac_func();
10362
10363 int main() {
10364
10365 /* The GNU C library defines this for functions which it implements
10366 to always fail with ENOSYS. Some functions are actually named
10367 something starting with __ and the normal name is an alias. */
10368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10369 choke me
10370 #else
10371 $ac_func();
10372 #endif
10373
10374 ; return 0; }
10375 EOF
10376 if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10377 rm -rf conftest*
10378 eval "ac_cv_func_$ac_func=yes"
10379 else
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10382 rm -rf conftest*
10383 eval "ac_cv_func_$ac_func=no"
10384 fi
10385 rm -f conftest*
10386 fi
10387
10388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10389 echo "$ac_t""yes" 1>&6
10390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10391 cat >> confdefs.h <<EOF
10392 #define $ac_tr_func 1
10393 EOF
10394
10395 else
10396 echo "$ac_t""no" 1>&6
10397 fi
10398 done
10399
10400 echo "configure: warning: wxSleep() function will not work" 1>&2
10401
10402
10403 fi
10404
10405
10406
10407 fi
10408 done
10409
10410 fi
10411
10412 for ac_func in uname gethostname
10413 do
10414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10415 echo "configure:10416: checking for $ac_func" >&5
10416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10417 echo $ac_n "(cached) $ac_c" 1>&6
10418 else
10419 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 /* System header to define __stub macros and hopefully few prototypes,
10423 which can conflict with char $ac_func(); below. */
10424 #include <assert.h>
10425 /* Override any gcc2 internal prototype to avoid an error. */
10426 /* We use char because int might match the return type of a gcc2
10427 builtin and then its argument prototype would still apply. */
10428 char $ac_func();
10429
10430 int main() {
10431
10432 /* The GNU C library defines this for functions which it implements
10433 to always fail with ENOSYS. Some functions are actually named
10434 something starting with __ and the normal name is an alias. */
10435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10436 choke me
10437 #else
10438 $ac_func();
10439 #endif
10440
10441 ; return 0; }
10442 EOF
10443 if { (eval echo configure:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10444 rm -rf conftest*
10445 eval "ac_cv_func_$ac_func=yes"
10446 else
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10449 rm -rf conftest*
10450 eval "ac_cv_func_$ac_func=no"
10451 fi
10452 rm -f conftest*
10453 fi
10454
10455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10456 echo "$ac_t""yes" 1>&6
10457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10458 cat >> confdefs.h <<EOF
10459 #define $ac_tr_func 1
10460 EOF
10461 break
10462 else
10463 echo "$ac_t""no" 1>&6
10464 fi
10465 done
10466
10467
10468 for ac_func in strtok_r
10469 do
10470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10471 echo "configure:10472: checking for $ac_func" >&5
10472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10474 else
10475 cat > conftest.$ac_ext <<EOF
10476 #line 10477 "configure"
10477 #include "confdefs.h"
10478 /* System header to define __stub macros and hopefully few prototypes,
10479 which can conflict with char $ac_func(); below. */
10480 #include <assert.h>
10481 /* Override any gcc2 internal prototype to avoid an error. */
10482 /* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10484 char $ac_func();
10485
10486 int main() {
10487
10488 /* The GNU C library defines this for functions which it implements
10489 to always fail with ENOSYS. Some functions are actually named
10490 something starting with __ and the normal name is an alias. */
10491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10492 choke me
10493 #else
10494 $ac_func();
10495 #endif
10496
10497 ; return 0; }
10498 EOF
10499 if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10500 rm -rf conftest*
10501 eval "ac_cv_func_$ac_func=yes"
10502 else
10503 echo "configure: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10505 rm -rf conftest*
10506 eval "ac_cv_func_$ac_func=no"
10507 fi
10508 rm -f conftest*
10509 fi
10510
10511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10512 echo "$ac_t""yes" 1>&6
10513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10514 cat >> confdefs.h <<EOF
10515 #define $ac_tr_func 1
10516 EOF
10517
10518 else
10519 echo "$ac_t""no" 1>&6
10520 fi
10521 done
10522
10523
10524 INET_LINK=
10525 for ac_func in inet_addr
10526 do
10527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10528 echo "configure:10529: checking for $ac_func" >&5
10529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10531 else
10532 cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10535 /* System header to define __stub macros and hopefully few prototypes,
10536 which can conflict with char $ac_func(); below. */
10537 #include <assert.h>
10538 /* Override any gcc2 internal prototype to avoid an error. */
10539 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10541 char $ac_func();
10542
10543 int main() {
10544
10545 /* The GNU C library defines this for functions which it implements
10546 to always fail with ENOSYS. Some functions are actually named
10547 something starting with __ and the normal name is an alias. */
10548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10549 choke me
10550 #else
10551 $ac_func();
10552 #endif
10553
10554 ; return 0; }
10555 EOF
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10557 rm -rf conftest*
10558 eval "ac_cv_func_$ac_func=yes"
10559 else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 rm -rf conftest*
10563 eval "ac_cv_func_$ac_func=no"
10564 fi
10565 rm -f conftest*
10566 fi
10567
10568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10571 cat >> confdefs.h <<EOF
10572 #define $ac_tr_func 1
10573 EOF
10574 cat >> confdefs.h <<\EOF
10575 #define HAVE_INET_ADDR 1
10576 EOF
10577
10578 else
10579 echo "$ac_t""no" 1>&6
10580 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
10581 echo "configure:10582: checking for inet_addr in -lnsl" >&5
10582 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10585 else
10586 ac_save_LIBS="$LIBS"
10587 LIBS="-lnsl $LIBS"
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10591 /* Override any gcc2 internal prototype to avoid an error. */
10592 /* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10594 char inet_addr();
10595
10596 int main() {
10597 inet_addr()
10598 ; return 0; }
10599 EOF
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10601 rm -rf conftest*
10602 eval "ac_cv_lib_$ac_lib_var=yes"
10603 else
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 rm -rf conftest*
10607 eval "ac_cv_lib_$ac_lib_var=no"
10608 fi
10609 rm -f conftest*
10610 LIBS="$ac_save_LIBS"
10611
10612 fi
10613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10614 echo "$ac_t""yes" 1>&6
10615 INET_LINK="nsl"
10616 else
10617 echo "$ac_t""no" 1>&6
10618 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
10619 echo "configure:10620: checking for inet_addr in -lresolv" >&5
10620 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10623 else
10624 ac_save_LIBS="$LIBS"
10625 LIBS="-lresolv $LIBS"
10626 cat > conftest.$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10629 /* Override any gcc2 internal prototype to avoid an error. */
10630 /* We use char because int might match the return type of a gcc2
10631 builtin and then its argument prototype would still apply. */
10632 char inet_addr();
10633
10634 int main() {
10635 inet_addr()
10636 ; return 0; }
10637 EOF
10638 if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10639 rm -rf conftest*
10640 eval "ac_cv_lib_$ac_lib_var=yes"
10641 else
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10644 rm -rf conftest*
10645 eval "ac_cv_lib_$ac_lib_var=no"
10646 fi
10647 rm -f conftest*
10648 LIBS="$ac_save_LIBS"
10649
10650 fi
10651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10652 echo "$ac_t""yes" 1>&6
10653 INET_LINK="resolv"
10654
10655 else
10656 echo "$ac_t""no" 1>&6
10657 fi
10658
10659
10660 fi
10661
10662
10663
10664 fi
10665 done
10666
10667
10668 for ac_func in inet_aton
10669 do
10670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10671 echo "configure:10672: checking for $ac_func" >&5
10672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10673 echo $ac_n "(cached) $ac_c" 1>&6
10674 else
10675 cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10678 /* System header to define __stub macros and hopefully few prototypes,
10679 which can conflict with char $ac_func(); below. */
10680 #include <assert.h>
10681 /* Override any gcc2 internal prototype to avoid an error. */
10682 /* We use char because int might match the return type of a gcc2
10683 builtin and then its argument prototype would still apply. */
10684 char $ac_func();
10685
10686 int main() {
10687
10688 /* The GNU C library defines this for functions which it implements
10689 to always fail with ENOSYS. Some functions are actually named
10690 something starting with __ and the normal name is an alias. */
10691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10692 choke me
10693 #else
10694 $ac_func();
10695 #endif
10696
10697 ; return 0; }
10698 EOF
10699 if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10700 rm -rf conftest*
10701 eval "ac_cv_func_$ac_func=yes"
10702 else
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10705 rm -rf conftest*
10706 eval "ac_cv_func_$ac_func=no"
10707 fi
10708 rm -f conftest*
10709 fi
10710
10711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10712 echo "$ac_t""yes" 1>&6
10713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10714 cat >> confdefs.h <<EOF
10715 #define $ac_tr_func 1
10716 EOF
10717 cat >> confdefs.h <<\EOF
10718 #define HAVE_INET_ATON 1
10719 EOF
10720
10721 else
10722 echo "$ac_t""no" 1>&6
10723 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
10724 echo "configure:10725: checking for inet_aton in -l$INET_LINK" >&5
10725 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10728 else
10729 ac_save_LIBS="$LIBS"
10730 LIBS="-l$INET_LINK $LIBS"
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10737 char inet_aton();
10738
10739 int main() {
10740 inet_aton()
10741 ; return 0; }
10742 EOF
10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10744 rm -rf conftest*
10745 eval "ac_cv_lib_$ac_lib_var=yes"
10746 else
10747 echo "configure: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10749 rm -rf conftest*
10750 eval "ac_cv_lib_$ac_lib_var=no"
10751 fi
10752 rm -f conftest*
10753 LIBS="$ac_save_LIBS"
10754
10755 fi
10756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10758 cat >> confdefs.h <<\EOF
10759 #define HAVE_INET_ATON 1
10760 EOF
10761
10762 else
10763 echo "$ac_t""no" 1>&6
10764 fi
10765
10766
10767 fi
10768 done
10769
10770
10771 if test "x$INET_LINK" != "x"; then
10772 cat >> confdefs.h <<\EOF
10773 #define HAVE_INET_ADDR 1
10774 EOF
10775
10776 INET_LINK="-l$INET_LINK"
10777 fi
10778
10779 fi
10780
10781
10782 cat > confcache <<\EOF
10783 # This file is a shell script that caches the results of configure
10784 # tests run on this system so they can be shared between configure
10785 # scripts and configure runs. It is not useful on other systems.
10786 # If it contains results you don't want to keep, you may remove or edit it.
10787 #
10788 # By default, configure uses ./config.cache as the cache file,
10789 # creating it if it does not exist already. You can give configure
10790 # the --cache-file=FILE option to use a different cache file; that is
10791 # what configure does when it calls configure scripts in
10792 # subdirectories, so they share the cache.
10793 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10794 # config.status only pays attention to the cache file if you give it the
10795 # --recheck option to rerun configure.
10796 #
10797 EOF
10798 # The following way of writing the cache mishandles newlines in values,
10799 # but we know of no workaround that is simple, portable, and efficient.
10800 # So, don't put newlines in cache variables' values.
10801 # Ultrix sh set writes to stderr and can't be redirected directly,
10802 # and sets the high bit in the cache file unless we assign to the vars.
10803 (set) 2>&1 |
10804 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10805 *ac_space=\ *)
10806 # `set' does not quote correctly, so add quotes (double-quote substitution
10807 # turns \\\\ into \\, and sed turns \\ into \).
10808 sed -n \
10809 -e "s/'/'\\\\''/g" \
10810 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10811 ;;
10812 *)
10813 # `set' quotes correctly as required by POSIX, so do not add quotes.
10814 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10815 ;;
10816 esac >> confcache
10817 if cmp -s $cache_file confcache; then
10818 :
10819 else
10820 if test -w $cache_file; then
10821 echo "updating cache $cache_file"
10822 cat confcache > $cache_file
10823 else
10824 echo "not updating unwritable cache $cache_file"
10825 fi
10826 fi
10827 rm -f confcache
10828
10829
10830
10831 if test "$TOOLKIT" != "MSW"; then
10832
10833
10834 THREADS_LINK=""
10835 THREADS_OBJ=""
10836
10837 if test "$wxUSE_THREADS" = "yes" ; then
10838 if test "$wxUSE_WINE" = 1 ; then
10839 echo "configure: warning: Threads are not supported under WINE" 1>&2
10840 wxUSE_THREADS="no"
10841 elif test "$USE_BEOS" = 1; then
10842 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10843 wxUSE_THREADS="no"
10844 fi
10845 fi
10846
10847 if test "$wxUSE_THREADS" = "yes" ; then
10848
10849 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10850 echo "configure:10851: checking for pthread_create in -lpthread" >&5
10851 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10854 else
10855 ac_save_LIBS="$LIBS"
10856 LIBS="-lpthread $LIBS"
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10859 "configure"
10859 #include "confdefs.h"
10860 /* Override any gcc2 internal prototype to avoid an error. */
10861 /* We use char because int might match the return type of a gcc2
10862 builtin and then its argument prototype would still apply. */
10863 char pthread_create();
10864
10865 int main() {
10866 pthread_create()
10867 ; return 0; }
10868 EOF
10869 if { (eval echo configure:10870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10870 rm -rf conftest*
10871 eval "ac_cv_lib_$ac_lib_var=yes"
10872 else
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10875 rm -rf conftest*
10876 eval "ac_cv_lib_$ac_lib_var=no"
10877 fi
10878 rm -f conftest*
10879 LIBS="$ac_save_LIBS"
10880
10881 fi
10882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10883 echo "$ac_t""yes" 1>&6
10884
10885 THREADS_OBJ="threadpsx.lo"
10886 THREADS_LINK="pthread"
10887
10888 else
10889 echo "$ac_t""no" 1>&6
10890
10891 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10892 echo "configure:10893: checking for pthread_create in -lc_r" >&5
10893 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10895 echo $ac_n "(cached) $ac_c" 1>&6
10896 else
10897 ac_save_LIBS="$LIBS"
10898 LIBS="-lc_r $LIBS"
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10902 /* Override any gcc2 internal prototype to avoid an error. */
10903 /* We use char because int might match the return type of a gcc2
10904 builtin and then its argument prototype would still apply. */
10905 char pthread_create();
10906
10907 int main() {
10908 pthread_create()
10909 ; return 0; }
10910 EOF
10911 if { (eval echo configure:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10912 rm -rf conftest*
10913 eval "ac_cv_lib_$ac_lib_var=yes"
10914 else
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 rm -rf conftest*
10918 eval "ac_cv_lib_$ac_lib_var=no"
10919 fi
10920 rm -f conftest*
10921 LIBS="$ac_save_LIBS"
10922
10923 fi
10924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10925 echo "$ac_t""yes" 1>&6
10926
10927 THREADS_OBJ="threadpsx.lo"
10928 THREADS_LINK="c_r"
10929
10930 else
10931 echo "$ac_t""no" 1>&6
10932
10933 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10934 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10935 echo "configure:10936: checking for sys/prctl.h" >&5
10936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10938 else
10939 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10942 #include <sys/prctl.h>
10943 EOF
10944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10945 { (eval echo configure:10946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10947 if test -z "$ac_err"; then
10948 rm -rf conftest*
10949 eval "ac_cv_header_$ac_safe=yes"
10950 else
10951 echo "$ac_err" >&5
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 rm -rf conftest*
10955 eval "ac_cv_header_$ac_safe=no"
10956 fi
10957 rm -f conftest*
10958 fi
10959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10960 echo "$ac_t""yes" 1>&6
10961
10962 THREADS_OBJ="threadsgi.lo"
10963
10964 else
10965 echo "$ac_t""no" 1>&6
10966 fi
10967
10968
10969 fi
10970
10971
10972 fi
10973
10974
10975 if test -z "$THREADS_OBJ" ; then
10976 wxUSE_THREADS=no
10977 echo "configure: warning: No thread support on this system" 1>&2
10978 fi
10979 fi
10980
10981 if test "$wxUSE_THREADS" = "yes" ; then
10982 for ac_func in thr_setconcurrency
10983 do
10984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10985 echo "configure:10986: checking for $ac_func" >&5
10986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10988 else
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 /* System header to define __stub macros and hopefully few prototypes,
10993 which can conflict with char $ac_func(); below. */
10994 #include <assert.h>
10995 /* Override any gcc2 internal prototype to avoid an error. */
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998 char $ac_func();
10999
11000 int main() {
11001
11002 /* The GNU C library defines this for functions which it implements
11003 to always fail with ENOSYS. Some functions are actually named
11004 something starting with __ and the normal name is an alias. */
11005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11006 choke me
11007 #else
11008 $ac_func();
11009 #endif
11010
11011 ; return 0; }
11012 EOF
11013 if { (eval echo configure:11014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11014 rm -rf conftest*
11015 eval "ac_cv_func_$ac_func=yes"
11016 else
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 rm -rf conftest*
11020 eval "ac_cv_func_$ac_func=no"
11021 fi
11022 rm -f conftest*
11023 fi
11024
11025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11028 cat >> confdefs.h <<EOF
11029 #define $ac_tr_func 1
11030 EOF
11031
11032 else
11033 echo "$ac_t""no" 1>&6
11034 fi
11035 done
11036
11037
11038
11039 for ac_hdr in sched.h
11040 do
11041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11043 echo "configure:11044: checking for $ac_hdr" >&5
11044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11046 else
11047 cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11050 #include <$ac_hdr>
11051 EOF
11052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11053 { (eval echo configure:11054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11055 if test -z "$ac_err"; then
11056 rm -rf conftest*
11057 eval "ac_cv_header_$ac_safe=yes"
11058 else
11059 echo "$ac_err" >&5
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11062 rm -rf conftest*
11063 eval "ac_cv_header_$ac_safe=no"
11064 fi
11065 rm -f conftest*
11066 fi
11067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11068 echo "$ac_t""yes" 1>&6
11069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11070 cat >> confdefs.h <<EOF
11071 #define $ac_tr_hdr 1
11072 EOF
11073
11074 else
11075 echo "$ac_t""no" 1>&6
11076 fi
11077 done
11078
11079
11080 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
11081 echo "configure:11082: checking for sched_yield in -l$THREADS_LINK" >&5
11082 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11085 else
11086 ac_save_LIBS="$LIBS"
11087 LIBS="-l$THREADS_LINK $LIBS"
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 /* Override any gcc2 internal prototype to avoid an error. */
11092 /* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11094 char sched_yield();
11095
11096 int main() {
11097 sched_yield()
11098 ; return 0; }
11099 EOF
11100 if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11101 rm -rf conftest*
11102 eval "ac_cv_lib_$ac_lib_var=yes"
11103 else
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11106 rm -rf conftest*
11107 eval "ac_cv_lib_$ac_lib_var=no"
11108 fi
11109 rm -f conftest*
11110 LIBS="$ac_save_LIBS"
11111
11112 fi
11113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11114 echo "$ac_t""yes" 1>&6
11115 cat >> confdefs.h <<\EOF
11116 #define HAVE_SCHED_YIELD 1
11117 EOF
11118
11119 else
11120 echo "$ac_t""no" 1>&6
11121 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
11122 echo "configure:11123: checking for sched_yield in -l"posix4"" >&5
11123 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11125 echo $ac_n "(cached) $ac_c" 1>&6
11126 else
11127 ac_save_LIBS="$LIBS"
11128 LIBS="-l"posix4" $LIBS"
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11132 /* Override any gcc2 internal prototype to avoid an error. */
11133 /* We use char because int might match the return type of a gcc2
11134 builtin and then its argument prototype would still apply. */
11135 char sched_yield();
11136
11137 int main() {
11138 sched_yield()
11139 ; return 0; }
11140 EOF
11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11142 rm -rf conftest*
11143 eval "ac_cv_lib_$ac_lib_var=yes"
11144 else
11145 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11147 rm -rf conftest*
11148 eval "ac_cv_lib_$ac_lib_var=no"
11149 fi
11150 rm -f conftest*
11151 LIBS="$ac_save_LIBS"
11152
11153 fi
11154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11155 echo "$ac_t""yes" 1>&6
11156 cat >> confdefs.h <<\EOF
11157 #define HAVE_SCHED_YIELD 1
11158 EOF
11159 POSIX4_LINK="-lposix4"
11160 else
11161 echo "$ac_t""no" 1>&6
11162 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11163
11164 fi
11165
11166
11167 fi
11168
11169
11170 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
11171 echo "configure:11172: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
11172 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11174 echo $ac_n "(cached) $ac_c" 1>&6
11175 else
11176 ac_save_LIBS="$LIBS"
11177 LIBS="-l$THREADS_LINK $LIBS"
11178 cat > conftest.$ac_ext <<EOF
11179 #line 11180 "configure"
11180 #include "confdefs.h"
11181 /* Override any gcc2 internal prototype to avoid an error. */
11182 /* We use char because int might match the return type of a gcc2
11183 builtin and then its argument prototype would still apply. */
11184 char pthread_attr_getschedpolicy();
11185
11186 int main() {
11187 pthread_attr_getschedpolicy()
11188 ; return 0; }
11189 EOF
11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11191 rm -rf conftest*
11192 eval "ac_cv_lib_$ac_lib_var=yes"
11193 else
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11196 rm -rf conftest*
11197 eval "ac_cv_lib_$ac_lib_var=no"
11198 fi
11199 rm -f conftest*
11200 LIBS="$ac_save_LIBS"
11201
11202 fi
11203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11204 echo "$ac_t""yes" 1>&6
11205 cat >> confdefs.h <<\EOF
11206 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11207 EOF
11208
11209 else
11210 echo "$ac_t""no" 1>&6
11211 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
11212 echo "configure:11213: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
11213 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11215 echo $ac_n "(cached) $ac_c" 1>&6
11216 else
11217 ac_save_LIBS="$LIBS"
11218 LIBS="-l"posix4" $LIBS"
11219 cat > conftest.$ac_ext <<EOF
11220 #line 11221 "configure"
11221 #include "confdefs.h"
11222 /* Override any gcc2 internal prototype to avoid an error. */
11223 /* We use char because int might match the return type of a gcc2
11224 builtin and then its argument prototype would still apply. */
11225 char pthread_attr_getschedpolicy();
11226
11227 int main() {
11228 pthread_attr_getschedpolicy()
11229 ; return 0; }
11230 EOF
11231 if { (eval echo configure:11232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11232 rm -rf conftest*
11233 eval "ac_cv_lib_$ac_lib_var=yes"
11234 else
11235 echo "configure: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 rm -rf conftest*
11238 eval "ac_cv_lib_$ac_lib_var=no"
11239 fi
11240 rm -f conftest*
11241 LIBS="$ac_save_LIBS"
11242
11243 fi
11244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11245 echo "$ac_t""yes" 1>&6
11246 cat >> confdefs.h <<\EOF
11247 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11248 EOF
11249 POSIX4_LINK="-lposix4"
11250 else
11251 echo "$ac_t""no" 1>&6
11252 echo "configure: warning: Setting thread priority will not work" 1>&2
11253
11254 fi
11255
11256
11257 fi
11258
11259
11260 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
11261 echo "configure:11262: checking for pthread_cancel in -l$THREADS_LINK" >&5
11262 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11265 else
11266 ac_save_LIBS="$LIBS"
11267 LIBS="-l$THREADS_LINK $LIBS"
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11271 /* Override any gcc2 internal prototype to avoid an error. */
11272 /* We use char because int might match the return type of a gcc2
11273 builtin and then its argument prototype would still apply. */
11274 char pthread_cancel();
11275
11276 int main() {
11277 pthread_cancel()
11278 ; return 0; }
11279 EOF
11280 if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11281 rm -rf conftest*
11282 eval "ac_cv_lib_$ac_lib_var=yes"
11283 else
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 rm -rf conftest*
11287 eval "ac_cv_lib_$ac_lib_var=no"
11288 fi
11289 rm -f conftest*
11290 LIBS="$ac_save_LIBS"
11291
11292 fi
11293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11294 echo "$ac_t""yes" 1>&6
11295 cat >> confdefs.h <<\EOF
11296 #define HAVE_PTHREAD_CANCEL 1
11297 EOF
11298
11299 else
11300 echo "$ac_t""no" 1>&6
11301 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11302 fi
11303
11304
11305 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
11306 echo "configure:11307: checking for pthread_cleanup_push/pop" >&5
11307 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309 else
11310
11311 cat > conftest.$ac_ext <<EOF
11312 #line 11313 "configure"
11313 #include "confdefs.h"
11314 #include <pthread.h>
11315 int main() {
11316
11317 pthread_cleanup_push(NULL, NULL);
11318 pthread_cleanup_pop(0);
11319
11320 ; return 0; }
11321 EOF
11322 if { (eval echo configure:11323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11323 rm -rf conftest*
11324
11325 wx_cv_func_pthread_cleanup_push=yes
11326 cat >> confdefs.h <<\EOF
11327 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11328 EOF
11329
11330
11331 else
11332 echo "configure: failed program was:" >&5
11333 cat conftest.$ac_ext >&5
11334 rm -rf conftest*
11335
11336 wx_cv_func_pthread_cleanup_push=no
11337
11338 fi
11339 rm -f conftest*
11340
11341 fi
11342
11343 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11344
11345 THREADS_LINK="-l$THREADS_LINK"
11346 fi
11347
11348 fi
11349
11350 if test "$wxUSE_THREADS" = "yes"; then
11351 cat >> confdefs.h <<\EOF
11352 #define wxUSE_THREADS 1
11353 EOF
11354
11355
11356 CFLAGS="${CFLAGS} -D_REENTRANT"
11357 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11358
11359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11360 else
11361 if test "$ac_cv_func_strtok_r" = "yes"; then
11362 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
11363 echo "configure:11364: checking if -D_REENTRANT is needed" >&5
11364 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11365 CFLAGS="${CFLAGS} -D_REENTRANT"
11366 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11367 echo "$ac_t""yes" 1>&6
11368 else
11369 echo "$ac_t""no" 1>&6
11370 fi
11371 fi
11372 fi
11373
11374 if test "$WXGTK13" = 1 ; then
11375 cat >> confdefs.h <<EOF
11376 #define __WXGTK13__ $WXGTK13
11377 EOF
11378
11379 WXGTK12=1
11380 fi
11381
11382 if test "$WXGTK12" = 1 ; then
11383 cat >> confdefs.h <<EOF
11384 #define __WXGTK12__ $WXGTK12
11385 EOF
11386
11387 fi
11388
11389 if test "$WXWINE" = 1 ; then
11390 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11391 fi
11392
11393 if test "$wxUSE_CYGWIN" = 1 ; then
11394 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11395 fi
11396
11397 WXDEBUG=
11398
11399 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11400 WXDEBUG="-g"
11401 wxUSE_OPTIMISE=no
11402 fi
11403
11404 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11405 wxUSE_DEBUG_INFO=yes
11406 WXDEBUG="-ggdb"
11407 fi
11408
11409 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11410 cat >> confdefs.h <<\EOF
11411 #define WXDEBUG 1
11412 EOF
11413
11414 WXDEBUG_DEFINE="-D__WXDEBUG__"
11415 else
11416 if test "$wxUSE_GTK" = 1 ; then
11417 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11418 fi
11419 fi
11420
11421 if test "$wxUSE_MEM_TRACING" = "yes" ; then
11422 cat >> confdefs.h <<\EOF
11423 #define wxUSE_MEMORY_TRACING 1
11424 EOF
11425
11426 cat >> confdefs.h <<\EOF
11427 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11428 EOF
11429
11430 cat >> confdefs.h <<\EOF
11431 #define wxUSE_DEBUG_NEW_ALWAYS 1
11432 EOF
11433
11434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11435 fi
11436
11437 if test "$wxUSE_DMALLOC" = "yes" ; then
11438 DMALLOC_LINK="-ldmalloc"
11439 fi
11440
11441 PROFILE=
11442 if test "$wxUSE_PROFILE" = "yes" ; then
11443 PROFILE="-pg"
11444 fi
11445
11446 DEP_INFO_FLAGS=
11447 CODE_GEN_FLAGS=
11448 if test "$GCC" = yes ; then
11449 if test "$wxUSE_NO_RTTI" = "yes" ; then
11450 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
11451 fi
11452 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11453 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
11454 fi
11455 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11456 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
11457 fi
11458 if test "$wxUSE_NO_DEPS" = "no" ; then
11459 DEP_INFO_FLAGS="-MMD"
11460 fi
11461 fi
11462
11463
11464 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11465 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11466 if test "$wxUSE_OPTIMISE" = "no" ; then
11467 OPTIMISE=
11468 else
11469 if test "$GCC" = yes ; then
11470 OPTIMISE="-O2"
11471 case "${host}" in
11472 i586-*-*|i686-*-* )
11473 OPTIMISE="${OPTIMISE} "
11474 ;;
11475 esac
11476 else
11477 OPTIMISE="-O"
11478 fi
11479 fi
11480
11481
11482 ZLIB_INCLUDE=
11483 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
11484 cat >> confdefs.h <<\EOF
11485 #define wxUSE_ZLIB 1
11486 EOF
11487
11488 if test "$wxUSE_ZLIB" = "yes" ; then
11489 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11490 else
11491 ZLIB_LINK=
11492 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11493 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11494 echo "configure:11495: checking for zlib.h" >&5
11495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11496 echo $ac_n "(cached) $ac_c" 1>&6
11497 else
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 #include <zlib.h>
11502 EOF
11503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11504 { (eval echo configure:11505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11506 if test -z "$ac_err"; then
11507 rm -rf conftest*
11508 eval "ac_cv_header_$ac_safe=yes"
11509 else
11510 echo "$ac_err" >&5
11511 echo "configure: failed program was:" >&5
11512 cat conftest.$ac_ext >&5
11513 rm -rf conftest*
11514 eval "ac_cv_header_$ac_safe=no"
11515 fi
11516 rm -f conftest*
11517 fi
11518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11519 echo "$ac_t""yes" 1>&6
11520 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11521 echo "configure:11522: checking for deflate in -lz" >&5
11522 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
11525 else
11526 ac_save_LIBS="$LIBS"
11527 LIBS="-lz $LIBS"
11528 cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11531 /* Override any gcc2 internal prototype to avoid an error. */
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11534 char deflate();
11535
11536 int main() {
11537 deflate()
11538 ; return 0; }
11539 EOF
11540 if { (eval echo configure:11541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11541 rm -rf conftest*
11542 eval "ac_cv_lib_$ac_lib_var=yes"
11543 else
11544 echo "configure: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11546 rm -rf conftest*
11547 eval "ac_cv_lib_$ac_lib_var=no"
11548 fi
11549 rm -f conftest*
11550 LIBS="$ac_save_LIBS"
11551
11552 fi
11553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11554 echo "$ac_t""yes" 1>&6
11555 ZLIB_LINK="-lz"
11556 else
11557 echo "$ac_t""no" 1>&6
11558 fi
11559
11560 else
11561 echo "$ac_t""no" 1>&6
11562 fi
11563
11564
11565 if test "x$ZLIB_LINK" = "x" ; then
11566 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
11567 fi
11568 fi
11569 fi
11570
11571 PNG_INCLUDE=
11572 if test "$wxUSE_LIBPNG" = "yes" ; then
11573 cat >> confdefs.h <<\EOF
11574 #define wxUSE_LIBPNG 1
11575 EOF
11576
11577 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11579 fi
11580
11581 JPEG_INCLUDE=
11582 if test "$wxUSE_LIBJPEG" = "yes" ; then
11583 cat >> confdefs.h <<\EOF
11584 #define wxUSE_LIBJPEG 1
11585 EOF
11586
11587 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11588 fi
11589
11590 TIFF_INCLUDE=
11591 if test "$wxUSE_LIBTIFF" = "yes" ; then
11592 cat >> confdefs.h <<\EOF
11593 #define wxUSE_LIBTIFF 1
11594 EOF
11595
11596 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11597 fi
11598
11599 if test "$wxUSE_OPENGL" = "yes"; then
11600 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11601 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11602 echo "configure:11603: checking for GL/gl.h" >&5
11603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11604 echo $ac_n "(cached) $ac_c" 1>&6
11605 else
11606 cat > conftest.$ac_ext <<EOF
11607 #line 11608 "configure"
11608 #include "confdefs.h"
11609 #include <GL/gl.h>
11610 EOF
11611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11612 { (eval echo configure:11613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11614 if test -z "$ac_err"; then
11615 rm -rf conftest*
11616 eval "ac_cv_header_$ac_safe=yes"
11617 else
11618 echo "$ac_err" >&5
11619 echo "configure: failed program was:" >&5
11620 cat conftest.$ac_ext >&5
11621 rm -rf conftest*
11622 eval "ac_cv_header_$ac_safe=no"
11623 fi
11624 rm -f conftest*
11625 fi
11626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11627 echo "$ac_t""yes" 1>&6
11628
11629 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
11630 echo "configure:11631: checking for glInitNames in -lGL" >&5
11631 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11633 echo $ac_n "(cached) $ac_c" 1>&6
11634 else
11635 ac_save_LIBS="$LIBS"
11636 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11637 cat > conftest.$ac_ext <<EOF
11638 #line 11639 "configure"
11639 #include "confdefs.h"
11640 /* Override any gcc2 internal prototype to avoid an error. */
11641 /* We use char because int might match the return type of a gcc2
11642 builtin and then its argument prototype would still apply. */
11643 char glInitNames();
11644
11645 int main() {
11646 glInitNames()
11647 ; return 0; }
11648 EOF
11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11650 rm -rf conftest*
11651 eval "ac_cv_lib_$ac_lib_var=yes"
11652 else
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 rm -rf conftest*
11656 eval "ac_cv_lib_$ac_lib_var=no"
11657 fi
11658 rm -f conftest*
11659 LIBS="$ac_save_LIBS"
11660
11661 fi
11662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11663 echo "$ac_t""yes" 1>&6
11664
11665 OPENGL_LINK="-lGL"
11666 cat >> confdefs.h <<\EOF
11667 #define wxUSE_OPENGL 1
11668 EOF
11669
11670 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11671
11672 else
11673 echo "$ac_t""no" 1>&6
11674
11675 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
11676 echo "configure:11677: checking for glInitNames in -lMesaGL" >&5
11677 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11679 echo $ac_n "(cached) $ac_c" 1>&6
11680 else
11681 ac_save_LIBS="$LIBS"
11682 LIBS="-lMesaGL $LIBS"
11683 cat > conftest.$ac_ext <<EOF
11684 #line 11685 "configure"
11685 #include "confdefs.h"
11686 /* Override any gcc2 internal prototype to avoid an error. */
11687 /* We use char because int might match the return type of a gcc2
11688 builtin and then its argument prototype would still apply. */
11689 char glInitNames();
11690
11691 int main() {
11692 glInitNames()
11693 ; return 0; }
11694 EOF
11695 if { (eval echo configure:11696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11696 rm -rf conftest*
11697 eval "ac_cv_lib_$ac_lib_var=yes"
11698 else
11699 echo "configure: failed program was:" >&5
11700 cat conftest.$ac_ext >&5
11701 rm -rf conftest*
11702 eval "ac_cv_lib_$ac_lib_var=no"
11703 fi
11704 rm -f conftest*
11705 LIBS="$ac_save_LIBS"
11706
11707 fi
11708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11709 echo "$ac_t""yes" 1>&6
11710
11711 OPENGL_LINK="-lMesaGL"
11712 cat >> confdefs.h <<\EOF
11713 #define wxUSE_OPENGL 1
11714 EOF
11715
11716 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11717
11718 else
11719 echo "$ac_t""no" 1>&6
11720 wxUSE_OPENGL=0
11721 fi
11722
11723
11724 fi
11725
11726
11727 else
11728 echo "$ac_t""no" 1>&6
11729 wxUSE_OPENGL=0
11730 fi
11731
11732 fi
11733
11734
11735 if test "$wxUSE_GUI" = "yes"; then
11736 cat >> confdefs.h <<\EOF
11737 #define wxUSE_GUI 1
11738 EOF
11739
11740
11741 else
11742 cat >> confdefs.h <<\EOF
11743 #define wxUSE_NOGUI 1
11744 EOF
11745
11746 fi
11747
11748
11749 if test "$wxUSE_UNIX" = "yes"; then
11750 cat >> confdefs.h <<\EOF
11751 #define wxUSE_UNIX 1
11752 EOF
11753
11754 fi
11755
11756
11757 if test "$wxUSE_APPLE_IEEE" = "yes"; then
11758 cat >> confdefs.h <<\EOF
11759 #define wxUSE_APPLE_IEEE 1
11760 EOF
11761
11762 fi
11763
11764 if test "$wxUSE_WAVE" = "yes"; then
11765 cat >> confdefs.h <<\EOF
11766 #define wxUSE_WAVE 1
11767 EOF
11768
11769 fi
11770
11771 if test "$wxUSE_FILE" = "yes"; then
11772 cat >> confdefs.h <<\EOF
11773 #define wxUSE_FILE 1
11774 EOF
11775
11776 fi
11777
11778 if test "$wxUSE_FILESYSTEM" = "yes"; then
11779 cat >> confdefs.h <<\EOF
11780 #define wxUSE_FILESYSTEM 1
11781 EOF
11782
11783 fi
11784
11785 if test "$wxUSE_FS_INET" = "yes"; then
11786 cat >> confdefs.h <<\EOF
11787 #define wxUSE_FS_INET 1
11788 EOF
11789
11790 fi
11791
11792 if test "$wxUSE_FS_ZIP" = "yes"; then
11793 cat >> confdefs.h <<\EOF
11794 #define wxUSE_FS_ZIP 1
11795 EOF
11796
11797 fi
11798
11799 if test "$wxUSE_ZIPSTREAM" = "yes"; then
11800 cat >> confdefs.h <<\EOF
11801 #define wxUSE_ZIPSTREAM 1
11802 EOF
11803
11804 fi
11805
11806 if test "$wxUSE_BUSYINFO" = "yes"; then
11807 cat >> confdefs.h <<\EOF
11808 #define wxUSE_BUSYINFO 1
11809 EOF
11810
11811 fi
11812
11813 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11814 cat >> confdefs.h <<\EOF
11815 #define wxUSE_STD_IOSTREAM 1
11816 EOF
11817
11818 fi
11819
11820 if test "$wxUSE_TEXTFILE" = "yes"; then
11821 if test "$wxUSE_FILE" != "yes"; then
11822 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11823 else
11824 cat >> confdefs.h <<\EOF
11825 #define wxUSE_TEXTFILE 1
11826 EOF
11827
11828 fi
11829 fi
11830
11831 if test "$wxUSE_CONFIG" = "yes" ; then
11832 if test "$wxUSE_TEXTFILE" != "yes"; then
11833 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11834 else
11835 cat >> confdefs.h <<\EOF
11836 #define wxUSE_CONFIG 1
11837 EOF
11838
11839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11840 fi
11841 fi
11842
11843 if test "$wxUSE_INTL" = "yes" ; then
11844 if test "$wxUSE_FILE" != "yes"; then
11845 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11846 else
11847 cat >> confdefs.h <<\EOF
11848 #define wxUSE_INTL 1
11849 EOF
11850
11851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11852 fi
11853 fi
11854
11855 if test "$wxUSE_LOG" = "yes"; then
11856 cat >> confdefs.h <<\EOF
11857 #define wxUSE_LOG 1
11858 EOF
11859
11860 fi
11861
11862 if test "$wxUSE_LONGLONG" = "yes"; then
11863 cat >> confdefs.h <<\EOF
11864 #define wxUSE_LONGLONG 1
11865 EOF
11866
11867 fi
11868
11869 if test "$wxUSE_PLOT" = "yes"; then
11870 cat >> confdefs.h <<\EOF
11871 #define wxUSE_PLOT 1
11872 EOF
11873
11874 fi
11875
11876 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11877 cat >> confdefs.h <<\EOF
11878 #define wxUSE_DIALUP_MANAGER 1
11879 EOF
11880
11881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
11882 fi
11883
11884 if test "$wxUSE_STREAMS" = "yes" ; then
11885 cat >> confdefs.h <<\EOF
11886 #define wxUSE_STREAMS 1
11887 EOF
11888
11889 fi
11890
11891
11892 if test "$wxUSE_TIMEDATE" = "yes"; then
11893 for ac_func in strptime
11894 do
11895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11896 echo "configure:11897: checking for $ac_func" >&5
11897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11898 echo $ac_n "(cached) $ac_c" 1>&6
11899 else
11900 cat > conftest.$ac_ext <<EOF
11901 #line 11902 "configure"
11902 #include "confdefs.h"
11903 /* System header to define __stub macros and hopefully few prototypes,
11904 which can conflict with char $ac_func(); below. */
11905 #include <assert.h>
11906 /* Override any gcc2 internal prototype to avoid an error. */
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909 char $ac_func();
11910
11911 int main() {
11912
11913 /* The GNU C library defines this for functions which it implements
11914 to always fail with ENOSYS. Some functions are actually named
11915 something starting with __ and the normal name is an alias. */
11916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11917 choke me
11918 #else
11919 $ac_func();
11920 #endif
11921
11922 ; return 0; }
11923 EOF
11924 if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11925 rm -rf conftest*
11926 eval "ac_cv_func_$ac_func=yes"
11927 else
11928 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11930 rm -rf conftest*
11931 eval "ac_cv_func_$ac_func=no"
11932 fi
11933 rm -f conftest*
11934 fi
11935
11936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11937 echo "$ac_t""yes" 1>&6
11938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11939 cat >> confdefs.h <<EOF
11940 #define $ac_tr_func 1
11941 EOF
11942
11943 else
11944 echo "$ac_t""no" 1>&6
11945 fi
11946 done
11947
11948
11949 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
11950 echo "configure:11951: checking for timezone variable in <time.h>" >&5
11951 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11952 echo $ac_n "(cached) $ac_c" 1>&6
11953 else
11954
11955 cat > conftest.$ac_ext <<EOF
11956 #line 11957 "configure"
11957 #include "confdefs.h"
11958
11959 #include <time.h>
11960
11961 int main() {
11962
11963 int tz;
11964 tz = __timezone;
11965
11966 ; return 0; }
11967 EOF
11968 if { (eval echo configure:11969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11969 rm -rf conftest*
11970
11971 wx_cv_var_timezone=__timezone
11972
11973 else
11974 echo "configure: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 rm -rf conftest*
11977
11978 cat > conftest.$ac_ext <<EOF
11979 #line 11980 "configure"
11980 #include "confdefs.h"
11981
11982 #include <time.h>
11983
11984 int main() {
11985
11986 int tz;
11987 tz = _timezone;
11988
11989 ; return 0; }
11990 EOF
11991 if { (eval echo configure:11992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11992 rm -rf conftest*
11993
11994 wx_cv_var_timezone=_timezone
11995
11996 else
11997 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
11999 rm -rf conftest*
12000
12001 cat > conftest.$ac_ext <<EOF
12002 #line 12003 "configure"
12003 #include "confdefs.h"
12004
12005 #include <time.h>
12006
12007 int main() {
12008
12009 int tz;
12010 tz = timezone;
12011
12012 ; return 0; }
12013 EOF
12014 if { (eval echo configure:12015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12015 rm -rf conftest*
12016
12017 wx_cv_var_timezone=timezone
12018
12019 else
12020 echo "configure: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12022 rm -rf conftest*
12023 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
12024
12025 fi
12026 rm -f conftest*
12027
12028
12029 fi
12030 rm -f conftest*
12031
12032
12033 fi
12034 rm -f conftest*
12035
12036
12037 fi
12038
12039 echo "$ac_t""$wx_cv_var_timezone" 1>&6
12040
12041 cat >> confdefs.h <<EOF
12042 #define WX_TIMEZONE $wx_cv_var_timezone
12043 EOF
12044
12045
12046 for ac_func in localtime
12047 do
12048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12049 echo "configure:12050: checking for $ac_func" >&5
12050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12051 echo $ac_n "(cached) $ac_c" 1>&6
12052 else
12053 cat > conftest.$ac_ext <<EOF
12054 #line 12055 "configure"
12055 #include "confdefs.h"
12056 /* System header to define __stub macros and hopefully few prototypes,
12057 which can conflict with char $ac_func(); below. */
12058 #include <assert.h>
12059 /* Override any gcc2 internal prototype to avoid an error. */
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12062 char $ac_func();
12063
12064 int main() {
12065
12066 /* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12070 choke me
12071 #else
12072 $ac_func();
12073 #endif
12074
12075 ; return 0; }
12076 EOF
12077 if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12078 rm -rf conftest*
12079 eval "ac_cv_func_$ac_func=yes"
12080 else
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12083 rm -rf conftest*
12084 eval "ac_cv_func_$ac_func=no"
12085 fi
12086 rm -f conftest*
12087 fi
12088
12089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12090 echo "$ac_t""yes" 1>&6
12091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12092 cat >> confdefs.h <<EOF
12093 #define $ac_tr_func 1
12094 EOF
12095
12096 else
12097 echo "$ac_t""no" 1>&6
12098 fi
12099 done
12100
12101
12102 if test "$ac_cv_func_localtime" = "yes"; then
12103 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
12104 echo "configure:12105: checking for tm_gmtoff in struct tm" >&5
12105 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12106 echo $ac_n "(cached) $ac_c" 1>&6
12107 else
12108
12109 cat > conftest.$ac_ext <<EOF
12110 #line 12111 "configure"
12111 #include "confdefs.h"
12112
12113 #include <time.h>
12114
12115 int main() {
12116
12117 struct tm tm;
12118 tm.tm_gmtoff++;
12119
12120 ; return 0; }
12121 EOF
12122 if { (eval echo configure:12123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12123 rm -rf conftest*
12124
12125 wx_cv_struct_tm_has_gmtoff=yes
12126 cat >> confdefs.h <<\EOF
12127 #define WX_GMTOFF_IN_TM 1
12128 EOF
12129
12130
12131 else
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12134 rm -rf conftest*
12135 wx_cv_struct_tm_has_gmtoff=no
12136
12137 fi
12138 rm -f conftest*
12139
12140 fi
12141
12142 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
12143 fi
12144
12145 for ac_func in gettimeofday ftime
12146 do
12147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12148 echo "configure:12149: checking for $ac_func" >&5
12149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12150 echo $ac_n "(cached) $ac_c" 1>&6
12151 else
12152 cat > conftest.$ac_ext <<EOF
12153 #line 12154 "configure"
12154 #include "confdefs.h"
12155 /* System header to define __stub macros and hopefully few prototypes,
12156 which can conflict with char $ac_func(); below. */
12157 #include <assert.h>
12158 /* Override any gcc2 internal prototype to avoid an error. */
12159 /* We use char because int might match the return type of a gcc2
12160 builtin and then its argument prototype would still apply. */
12161 char $ac_func();
12162
12163 int main() {
12164
12165 /* The GNU C library defines this for functions which it implements
12166 to always fail with ENOSYS. Some functions are actually named
12167 something starting with __ and the normal name is an alias. */
12168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12169 choke me
12170 #else
12171 $ac_func();
12172 #endif
12173
12174 ; return 0; }
12175 EOF
12176 if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12177 rm -rf conftest*
12178 eval "ac_cv_func_$ac_func=yes"
12179 else
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 eval "ac_cv_func_$ac_func=no"
12184 fi
12185 rm -f conftest*
12186 fi
12187
12188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12189 echo "$ac_t""yes" 1>&6
12190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12191 cat >> confdefs.h <<EOF
12192 #define $ac_tr_func 1
12193 EOF
12194 break
12195 else
12196 echo "$ac_t""no" 1>&6
12197 fi
12198 done
12199
12200
12201 if test "$ac_cv_func_gettimeofday" = "yes"; then
12202 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
12203 echo "configure:12204: checking whether gettimeofday takes two arguments" >&5
12204 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12205 echo $ac_n "(cached) $ac_c" 1>&6
12206 else
12207
12208
12209 ac_ext=C
12210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12211 ac_cpp='$CXXCPP $CPPFLAGS'
12212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12214 cross_compiling=$ac_cv_prog_cxx_cross
12215
12216
12217 cat > conftest.$ac_ext <<EOF
12218 #line 12219 "configure"
12219 #include "confdefs.h"
12220
12221 #include <sys/time.h>
12222 #include <unistd.h>
12223
12224 int main() {
12225
12226 struct timeval tv;
12227 struct timezone tz;
12228 gettimeofday(&tv, &tz);
12229
12230 ; return 0; }
12231 EOF
12232 if { (eval echo configure:12233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12233 rm -rf conftest*
12234 wx_cv_func_gettimeofday_has_2_args=yes
12235 else
12236 echo "configure: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12238 rm -rf conftest*
12239 cat > conftest.$ac_ext <<EOF
12240 #line 12241 "configure"
12241 #include "confdefs.h"
12242
12243 #include <sys/time.h>
12244 #include <unistd.h>
12245
12246 int main() {
12247
12248 struct timeval tv;
12249 gettimeofday(&tv);
12250
12251 ; return 0; }
12252 EOF
12253 if { (eval echo configure:12254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12254 rm -rf conftest*
12255 wx_cv_func_gettimeofday_has_2_args=no
12256 else
12257 echo "configure: failed program was:" >&5
12258 cat conftest.$ac_ext >&5
12259 rm -rf conftest*
12260 wx_cv_func_gettimeofday_has_2_args=unknown
12261
12262 fi
12263 rm -f conftest*
12264
12265 fi
12266 rm -f conftest*
12267 ac_ext=c
12268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12269 ac_cpp='$CPP $CPPFLAGS'
12270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12272 cross_compiling=$ac_cv_prog_cc_cross
12273
12274
12275 fi
12276
12277 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
12278
12279 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12280 cat >> confdefs.h <<\EOF
12281 #define WX_GETTIMEOFDAY_NO_TZ 1
12282 EOF
12283
12284 fi
12285 fi
12286
12287 cat >> confdefs.h <<\EOF
12288 #define wxUSE_TIMEDATE 1
12289 EOF
12290
12291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12292 fi
12293
12294
12295 if test "$TOOLKIT" != "MSW"; then
12296
12297 if test "$wxUSE_SOCKETS" = "yes"; then
12298 echo $ac_n "checking for socket""... $ac_c" 1>&6
12299 echo "configure:12300: checking for socket" >&5
12300 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12301 echo $ac_n "(cached) $ac_c" 1>&6
12302 else
12303 cat > conftest.$ac_ext <<EOF
12304 #line 12305 "configure"
12305 #include "confdefs.h"
12306 /* System header to define __stub macros and hopefully few prototypes,
12307 which can conflict with char socket(); below. */
12308 #include <assert.h>
12309 /* Override any gcc2 internal prototype to avoid an error. */
12310 /* We use char because int might match the return type of a gcc2
12311 builtin and then its argument prototype would still apply. */
12312 char socket();
12313
12314 int main() {
12315
12316 /* The GNU C library defines this for functions which it implements
12317 to always fail with ENOSYS. Some functions are actually named
12318 something starting with __ and the normal name is an alias. */
12319 #if defined (__stub_socket) || defined (__stub___socket)
12320 choke me
12321 #else
12322 socket();
12323 #endif
12324
12325 ; return 0; }
12326 EOF
12327 if { (eval echo configure:12328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12328 rm -rf conftest*
12329 eval "ac_cv_func_socket=yes"
12330 else
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 rm -rf conftest*
12334 eval "ac_cv_func_socket=no"
12335 fi
12336 rm -f conftest*
12337 fi
12338
12339 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12340 echo "$ac_t""yes" 1>&6
12341 :
12342 else
12343 echo "$ac_t""no" 1>&6
12344 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
12345 echo "configure:12346: checking for socket in -lsocket" >&5
12346 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12348 echo $ac_n "(cached) $ac_c" 1>&6
12349 else
12350 ac_save_LIBS="$LIBS"
12351 LIBS="-lsocket $LIBS"
12352 cat > conftest.$ac_ext <<EOF
12353 #line 12354 "configure"
12354 #include "confdefs.h"
12355 /* Override any gcc2 internal prototype to avoid an error. */
12356 /* We use char because int might match the return type of a gcc2
12357 builtin and then its argument prototype would still apply. */
12358 char socket();
12359
12360 int main() {
12361 socket()
12362 ; return 0; }
12363 EOF
12364 if { (eval echo configure:12365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12365 rm -rf conftest*
12366 eval "ac_cv_lib_$ac_lib_var=yes"
12367 else
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 rm -rf conftest*
12371 eval "ac_cv_lib_$ac_lib_var=no"
12372 fi
12373 rm -f conftest*
12374 LIBS="$ac_save_LIBS"
12375
12376 fi
12377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12378 echo "$ac_t""yes" 1>&6
12379 INET_LINK="$INET_LINK -lsocket"
12380 else
12381 echo "$ac_t""no" 1>&6
12382
12383 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12384 wxUSE_SOCKETS=no
12385
12386
12387 fi
12388
12389
12390 fi
12391
12392 fi
12393
12394 fi
12395
12396 if test "$wxUSE_SOCKETS" = "yes" ; then
12397 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
12398 echo "configure:12399: checking what is the type of the third argument of getsockname" >&5
12399 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12400 echo $ac_n "(cached) $ac_c" 1>&6
12401 else
12402
12403
12404 ac_ext=C
12405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12406 ac_cpp='$CXXCPP $CPPFLAGS'
12407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12409 cross_compiling=$ac_cv_prog_cxx_cross
12410
12411
12412 cat > conftest.$ac_ext <<EOF
12413 #line 12414 "configure"
12414 #include "confdefs.h"
12415
12416 #include <sys/types.h>
12417 #include <sys/socket.h>
12418
12419 int main() {
12420
12421 socklen_t len;
12422 getsockname(0, 0, &len);
12423
12424 ; return 0; }
12425 EOF
12426 if { (eval echo configure:12427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12427 rm -rf conftest*
12428 wx_cv_type_getsockname3=socklen_t
12429 else
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 rm -rf conftest*
12433 cat > conftest.$ac_ext <<EOF
12434 #line 12435 "configure"
12435 #include "confdefs.h"
12436
12437 #include <sys/types.h>
12438 #include <sys/socket.h>
12439
12440 int main() {
12441
12442 size_t len;
12443 getsockname(0, 0, &len);
12444
12445 ; return 0; }
12446 EOF
12447 if { (eval echo configure:12448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12448 rm -rf conftest*
12449 wx_cv_type_getsockname3=size_t
12450 else
12451 echo "configure: failed program was:" >&5
12452 cat conftest.$ac_ext >&5
12453 rm -rf conftest*
12454 cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12457
12458 #include <sys/types.h>
12459 #include <sys/socket.h>
12460
12461 int main() {
12462
12463 int len;
12464 getsockname(0, 0, &len);
12465
12466 ; return 0; }
12467 EOF
12468 if { (eval echo configure:12469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12469 rm -rf conftest*
12470 wx_cv_type_getsockname3=int
12471 else
12472 echo "configure: failed program was:" >&5
12473 cat conftest.$ac_ext >&5
12474 rm -rf conftest*
12475 wx_cv_type_getsockname3=unknown
12476
12477 fi
12478 rm -f conftest*
12479
12480 fi
12481 rm -f conftest*
12482
12483 fi
12484 rm -f conftest*
12485
12486 ac_ext=c
12487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12488 ac_cpp='$CPP $CPPFLAGS'
12489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12491 cross_compiling=$ac_cv_prog_cc_cross
12492
12493
12494 fi
12495
12496 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12497
12498 if test "$wx_cv_type_getsockname3" = "unknown"; then
12499 wxUSE_SOCKETS=no
12500 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12501 else
12502 cat >> confdefs.h <<EOF
12503 #define SOCKLEN_T $wx_cv_type_getsockname3
12504 EOF
12505
12506 fi
12507 fi
12508
12509 if test "$wxUSE_SOCKETS" = "yes" ; then
12510 cat >> confdefs.h <<\EOF
12511 #define wxUSE_SOCKETS 1
12512 EOF
12513
12514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
12515 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12516 fi
12517
12518
12519 if test "$TOOLKIT" != "MSW"; then
12520
12521 if test "$wxUSE_JOYSTICK" = 1; then
12522 for ac_hdr in linux/joystick.h
12523 do
12524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12526 echo "configure:12527: checking for $ac_hdr" >&5
12527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12529 else
12530 cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12533 #include <$ac_hdr>
12534 EOF
12535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12536 { (eval echo configure:12537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12538 if test -z "$ac_err"; then
12539 rm -rf conftest*
12540 eval "ac_cv_header_$ac_safe=yes"
12541 else
12542 echo "$ac_err" >&5
12543 echo "configure: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 rm -rf conftest*
12546 eval "ac_cv_header_$ac_safe=no"
12547 fi
12548 rm -f conftest*
12549 fi
12550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12551 echo "$ac_t""yes" 1>&6
12552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12553 cat >> confdefs.h <<EOF
12554 #define $ac_tr_hdr 1
12555 EOF
12556
12557 else
12558 echo "$ac_t""no" 1>&6
12559 fi
12560 done
12561
12562 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12563 wxUSE_JOYSTICK=0
12564 echo "configure: warning: Joystick not supported yb this system" 1>&2
12565 fi
12566 fi
12567
12568 fi
12569
12570 if test "$wxUSE_JOYSTICK" = 1; then
12571 cat >> confdefs.h <<\EOF
12572 #define wxUSE_JOYSTICK 1
12573 EOF
12574
12575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12576 fi
12577
12578
12579 if test "$TOOLKIT" != "MSW"; then
12580
12581 HAVE_DL_FUNCS=0
12582 HAVE_SHL_FUNCS=0
12583 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12584 for ac_func in dlopen
12585 do
12586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12587 echo "configure:12588: checking for $ac_func" >&5
12588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12589 echo $ac_n "(cached) $ac_c" 1>&6
12590 else
12591 cat > conftest.$ac_ext <<EOF
12592 #line 12593 "configure"
12593 #include "confdefs.h"
12594 /* System header to define __stub macros and hopefully few prototypes,
12595 which can conflict with char $ac_func(); below. */
12596 #include <assert.h>
12597 /* Override any gcc2 internal prototype to avoid an error. */
12598 /* We use char because int might match the return type of a gcc2
12599 builtin and then its argument prototype would still apply. */
12600 char $ac_func();
12601
12602 int main() {
12603
12604 /* The GNU C library defines this for functions which it implements
12605 to always fail with ENOSYS. Some functions are actually named
12606 something starting with __ and the normal name is an alias. */
12607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12608 choke me
12609 #else
12610 $ac_func();
12611 #endif
12612
12613 ; return 0; }
12614 EOF
12615 if { (eval echo configure:12616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12616 rm -rf conftest*
12617 eval "ac_cv_func_$ac_func=yes"
12618 else
12619 echo "configure: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12621 rm -rf conftest*
12622 eval "ac_cv_func_$ac_func=no"
12623 fi
12624 rm -f conftest*
12625 fi
12626
12627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12628 echo "$ac_t""yes" 1>&6
12629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12630 cat >> confdefs.h <<EOF
12631 #define $ac_tr_func 1
12632 EOF
12633
12634 cat >> confdefs.h <<\EOF
12635 #define HAVE_DLOPEN 1
12636 EOF
12637
12638 HAVE_DL_FUNCS=1
12639
12640 else
12641 echo "$ac_t""no" 1>&6
12642 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12643 echo "configure:12644: checking for dlopen in -ldl" >&5
12644 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12646 echo $ac_n "(cached) $ac_c" 1>&6
12647 else
12648 ac_save_LIBS="$LIBS"
12649 LIBS="-ldl $LIBS"
12650 cat > conftest.$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12653 /* Override any gcc2 internal prototype to avoid an error. */
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12656 char dlopen();
12657
12658 int main() {
12659 dlopen()
12660 ; return 0; }
12661 EOF
12662 if { (eval echo configure:12663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12663 rm -rf conftest*
12664 eval "ac_cv_lib_$ac_lib_var=yes"
12665 else
12666 echo "configure: failed program was:" >&5
12667 cat conftest.$ac_ext >&5
12668 rm -rf conftest*
12669 eval "ac_cv_lib_$ac_lib_var=no"
12670 fi
12671 rm -f conftest*
12672 LIBS="$ac_save_LIBS"
12673
12674 fi
12675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12676 echo "$ac_t""yes" 1>&6
12677
12678 cat >> confdefs.h <<\EOF
12679 #define HAVE_DLOPEN 1
12680 EOF
12681
12682 HAVE_DL_FUNCS=1
12683 LIBS="$LIBS -ldl"
12684
12685 else
12686 echo "$ac_t""no" 1>&6
12687
12688 for ac_func in shl_load
12689 do
12690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12691 echo "configure:12692: checking for $ac_func" >&5
12692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12693 echo $ac_n "(cached) $ac_c" 1>&6
12694 else
12695 cat > conftest.$ac_ext <<EOF
12696 #line 12697 "configure"
12697 #include "confdefs.h"
12698 /* System header to define __stub macros and hopefully few prototypes,
12699 which can conflict with char $ac_func(); below. */
12700 #include <assert.h>
12701 /* Override any gcc2 internal prototype to avoid an error. */
12702 /* We use char because int might match the return type of a gcc2
12703 builtin and then its argument prototype would still apply. */
12704 char $ac_func();
12705
12706 int main() {
12707
12708 /* The GNU C library defines this for functions which it implements
12709 to always fail with ENOSYS. Some functions are actually named
12710 something starting with __ and the normal name is an alias. */
12711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12712 choke me
12713 #else
12714 $ac_func();
12715 #endif
12716
12717 ; return 0; }
12718 EOF
12719 if { (eval echo configure:12720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12720 rm -rf conftest*
12721 eval "ac_cv_func_$ac_func=yes"
12722 else
12723 echo "configure: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12725 rm -rf conftest*
12726 eval "ac_cv_func_$ac_func=no"
12727 fi
12728 rm -f conftest*
12729 fi
12730
12731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12732 echo "$ac_t""yes" 1>&6
12733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12734 cat >> confdefs.h <<EOF
12735 #define $ac_tr_func 1
12736 EOF
12737
12738 cat >> confdefs.h <<\EOF
12739 #define HAVE_SHL_LOAD 1
12740 EOF
12741
12742 HAVE_SHL_FUNCS=1
12743
12744 else
12745 echo "$ac_t""no" 1>&6
12746 fi
12747 done
12748
12749
12750 fi
12751
12752
12753 fi
12754 done
12755
12756
12757 if test "$HAVE_DL_FUNCS" = 0; then
12758 if test "$HAVE_SHL_FUNCS" = 0; then
12759 if test "$USE_UNIX" = 1; then
12760 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
12761 wxUSE_DYNLIB_CLASS=no
12762 else
12763 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
12764 fi
12765 fi
12766 fi
12767 fi
12768
12769 fi
12770
12771 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
12772 cat >> confdefs.h <<\EOF
12773 #define wxUSE_DYNLIB_CLASS 1
12774 EOF
12775
12776 else
12777 wxUSE_ODBC=no
12778 wxUSE_SERIAL=no
12779 fi
12780
12781
12782 if test "$wxUSE_UNICODE" = "yes" ; then
12783 cat >> confdefs.h <<\EOF
12784 #define wxUSE_UNICODE 1
12785 EOF
12786
12787 fi
12788
12789 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12790 cat >> confdefs.h <<\EOF
12791 #define wxUSE_WCSRTOMBS 1
12792 EOF
12793
12794 fi
12795
12796 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12797 cat >> confdefs.h <<\EOF
12798 #define wxUSE_EXPERIMENTAL_PRINTF 1
12799 EOF
12800
12801 fi
12802
12803
12804 if test "$wxUSE_SERIAL" = "yes" ; then
12805 cat >> confdefs.h <<\EOF
12806 #define wxUSE_SERIAL 1
12807 EOF
12808
12809 fi
12810
12811
12812 IODBC_C_SRC=""
12813 if test "$wxUSE_ODBC" = "yes" ; then
12814 cat >> confdefs.h <<\EOF
12815 #define wxUSE_ODBC 1
12816 EOF
12817
12818 WXODBCFLAG="-D_IODBC_"
12819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12820 IODBCOBJS="\$(IODBC_OBJS)"
12821 else
12822 IODBCOBJS=
12823 fi
12824
12825
12826 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12827 cat >> confdefs.h <<\EOF
12828 #define wxUSE_POSTSCRIPT 1
12829 EOF
12830
12831 fi
12832
12833 cat >> confdefs.h <<\EOF
12834 #define wxUSE_AFM_FOR_POSTSCRIPT 1
12835 EOF
12836
12837
12838 cat >> confdefs.h <<\EOF
12839 #define wxUSE_NORMALIZED_PS_FONTS 1
12840 EOF
12841
12842
12843
12844 if test "$wxUSE_CONSTRAINTS" = "yes"; then
12845 cat >> confdefs.h <<\EOF
12846 #define wxUSE_CONSTRAINTS 1
12847 EOF
12848
12849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12850 fi
12851
12852 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12853 cat >> confdefs.h <<\EOF
12854 #define wxUSE_MDI_ARCHITECTURE 1
12855 EOF
12856
12857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12858 fi
12859
12860 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12861 cat >> confdefs.h <<\EOF
12862 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
12863 EOF
12864
12865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12866 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12868 fi
12869 fi
12870
12871 if test "$wxUSE_HELP" = "yes"; then
12872 cat >> confdefs.h <<\EOF
12873 #define wxUSE_HELP 1
12874 EOF
12875
12876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12877 fi
12878
12879 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12880 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12881 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12882 else
12883 cat >> confdefs.h <<\EOF
12884 #define wxUSE_PRINTING_ARCHITECTURE 1
12885 EOF
12886
12887 fi
12888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12889 fi
12890
12891 if test "$wxUSE_PROLOGIO" = "yes" ; then
12892 cat >> confdefs.h <<\EOF
12893 #define wxUSE_PROLOGIO 1
12894 EOF
12895
12896 fi
12897
12898 if test "$wxUSE_RESOURCES" = "yes" ; then
12899 if test "$wxUSE_PROLOGIO" = "yes" ; then
12900 cat >> confdefs.h <<\EOF
12901 #define wxUSE_RESOURCES 1
12902 EOF
12903
12904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12905 else
12906 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12907 fi
12908 fi
12909
12910 if test "$wxUSE_X_RESOURCES" = "yes"; then
12911 cat >> confdefs.h <<\EOF
12912 #define wxUSE_X_RESOURCES 1
12913 EOF
12914
12915 fi
12916
12917
12918 if test "$wxUSE_IPC" = "yes"; then
12919 cat >> confdefs.h <<\EOF
12920 #define wxUSE_IPC 1
12921 EOF
12922
12923 fi
12924
12925 if test "$wxUSE_CLIPBOARD" = "yes"; then
12926 cat >> confdefs.h <<\EOF
12927 #define wxUSE_CLIPBOARD 1
12928 EOF
12929
12930 fi
12931
12932 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12933 if test "$wxUSE_GTK" = 1; then
12934 if test "$WXGTK12" != 1; then
12935 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12936 wxUSE_DRAG_AND_DROP=no
12937 fi
12938 fi
12939
12940 if test "$wxUSE_MOTIF" = 1; then
12941 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12942 wxUSE_DRAG_AND_DROP=no
12943 fi
12944
12945 if test "$USE_WIN32" = 1; then
12946 for ac_hdr in ole2.h
12947 do
12948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12950 echo "configure:12951: checking for $ac_hdr" >&5
12951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12952 echo $ac_n "(cached) $ac_c" 1>&6
12953 else
12954 cat > conftest.$ac_ext <<EOF
12955 #line 12956 "configure"
12956 #include "confdefs.h"
12957 #include <$ac_hdr>
12958 EOF
12959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12960 { (eval echo configure:12961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12962 if test -z "$ac_err"; then
12963 rm -rf conftest*
12964 eval "ac_cv_header_$ac_safe=yes"
12965 else
12966 echo "$ac_err" >&5
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12969 rm -rf conftest*
12970 eval "ac_cv_header_$ac_safe=no"
12971 fi
12972 rm -f conftest*
12973 fi
12974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12975 echo "$ac_t""yes" 1>&6
12976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12977 cat >> confdefs.h <<EOF
12978 #define $ac_tr_hdr 1
12979 EOF
12980
12981 else
12982 echo "$ac_t""no" 1>&6
12983 fi
12984 done
12985
12986 if test "x$HAVE_OLE2_H" = x ; then
12987 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12988 wxUSE_DRAG_AND_DROP=no
12989 fi
12990 fi
12991
12992 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12993 cat >> confdefs.h <<\EOF
12994 #define wxUSE_DRAG_AND_DROP 1
12995 EOF
12996
12997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12998 fi
12999
13000 fi
13001
13002 if test "$wxUSE_SPLINES" = "yes" ; then
13003 cat >> confdefs.h <<\EOF
13004 #define wxUSE_SPLINES 1
13005 EOF
13006
13007 fi
13008
13009
13010 if test "$wxUSE_ACCEL" = "yes"; then
13011 cat >> confdefs.h <<\EOF
13012 #define wxUSE_ACCEL 1
13013 EOF
13014
13015 fi
13016
13017 if test "$wxUSE_CARET" = "yes"; then
13018 cat >> confdefs.h <<\EOF
13019 #define wxUSE_CARET 1
13020 EOF
13021
13022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13023 fi
13024
13025 if test "$wxUSE_COMBOBOX" = "yes"; then
13026 cat >> confdefs.h <<\EOF
13027 #define wxUSE_COMBOBOX 1
13028 EOF
13029
13030 fi
13031
13032 if test "$wxUSE_CHOICE" = "yes"; then
13033 cat >> confdefs.h <<\EOF
13034 #define wxUSE_CHOICE 1
13035 EOF
13036
13037 fi
13038
13039 if test "$wxUSE_BMPBUTTON" = "yes"; then
13040 cat >> confdefs.h <<\EOF
13041 #define wxUSE_BMPBUTTON 1
13042 EOF
13043
13044 fi
13045
13046 if test "$wxUSE_CHECKBOX" = "yes"; then
13047 cat >> confdefs.h <<\EOF
13048 #define wxUSE_CHECKBOX 1
13049 EOF
13050
13051 fi
13052
13053 if test "$wxUSE_CHECKLST" = "yes"; then
13054 cat >> confdefs.h <<\EOF
13055 #define wxUSE_CHECKLISTBOX 1
13056 EOF
13057
13058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13059 fi
13060
13061 if test "$wxUSE_GAUGE" = "yes"; then
13062 cat >> confdefs.h <<\EOF
13063 #define wxUSE_GAUGE 1
13064 EOF
13065
13066 fi
13067
13068 if test "$wxUSE_NEW_GRID" = "yes"; then
13069 wxUSE_GRID="yes"
13070 cat >> confdefs.h <<\EOF
13071 #define wxUSE_NEW_GRID 1
13072 EOF
13073
13074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
13075 fi
13076
13077 if test "$wxUSE_GRID" = "yes"; then
13078 cat >> confdefs.h <<\EOF
13079 #define wxUSE_GRID 1
13080 EOF
13081
13082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
13083 fi
13084
13085 if test "$wxUSE_IMAGLIST" = "yes"; then
13086 cat >> confdefs.h <<\EOF
13087 #define wxUSE_IMAGLIST 1
13088 EOF
13089
13090 fi
13091
13092 if test "$wxUSE_LISTBOX" = "yes"; then
13093 cat >> confdefs.h <<\EOF
13094 #define wxUSE_LISTBOX 1
13095 EOF
13096
13097 fi
13098
13099 if test "$wxUSE_LISTCTRL" = "yes"; then
13100 if test "$wxUSE_IMAGLIST" = "yes"; then
13101 cat >> confdefs.h <<\EOF
13102 #define wxUSE_LISTCTRL 1
13103 EOF
13104
13105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13106 else
13107 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13108 fi
13109 fi
13110
13111 if test "$wxUSE_NOTEBOOK" = "yes"; then
13112 cat >> confdefs.h <<\EOF
13113 #define wxUSE_NOTEBOOK 1
13114 EOF
13115
13116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13117 fi
13118
13119 if test "$wxUSE_RADIOBOX" = "yes"; then
13120 cat >> confdefs.h <<\EOF
13121 #define wxUSE_RADIOBOX 1
13122 EOF
13123
13124 fi
13125
13126 if test "$wxUSE_RADIOBTN" = "yes"; then
13127 cat >> confdefs.h <<\EOF
13128 #define wxUSE_RADIOBTN 1
13129 EOF
13130
13131 fi
13132
13133 if test "$wxUSE_SASH" = "yes"; then
13134 cat >> confdefs.h <<\EOF
13135 #define wxUSE_SASH 1
13136 EOF
13137
13138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13139 fi
13140
13141 if test "$wxUSE_SCROLLBAR" = "yes"; then
13142 cat >> confdefs.h <<\EOF
13143 #define wxUSE_SCROLLBAR 1
13144 EOF
13145
13146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
13147 fi
13148
13149 if test "$wxUSE_SLIDER" = "yes"; then
13150 cat >> confdefs.h <<\EOF
13151 #define wxUSE_SLIDER 1
13152 EOF
13153
13154 fi
13155
13156 if test "$wxUSE_SPINBTN" = "yes"; then
13157 cat >> confdefs.h <<\EOF
13158 #define wxUSE_SPINBTN 1
13159 EOF
13160
13161 fi
13162
13163 if test "$wxUSE_SPINCTRL" = "yes"; then
13164 cat >> confdefs.h <<\EOF
13165 #define wxUSE_SPINCTRL 1
13166 EOF
13167
13168 fi
13169
13170 if test "$wxUSE_SPLITTER" = "yes"; then
13171 cat >> confdefs.h <<\EOF
13172 #define wxUSE_SPLITTER 1
13173 EOF
13174
13175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13176 fi
13177
13178 if test "$wxUSE_STATBMP" = "yes"; then
13179 cat >> confdefs.h <<\EOF
13180 #define wxUSE_STATBMP 1
13181 EOF
13182
13183 fi
13184
13185 if test "$wxUSE_STATBOX" = "yes"; then
13186 cat >> confdefs.h <<\EOF
13187 #define wxUSE_STATBOX 1
13188 EOF
13189
13190 fi
13191
13192 if test "$wxUSE_STATLINE" = "yes"; then
13193 if test "$wxUSE_WINE" = 1 ; then
13194 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13195 else
13196 cat >> confdefs.h <<\EOF
13197 #define wxUSE_STATLINE 1
13198 EOF
13199
13200 fi
13201 fi
13202
13203 if test "$wxUSE_STATUSBAR" = "yes"; then
13204 cat >> confdefs.h <<\EOF
13205 #define wxUSE_STATUSBAR 1
13206 EOF
13207
13208
13209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
13210 fi
13211
13212 if test "$wxUSE_TABDIALOG" = "yes"; then
13213 cat >> confdefs.h <<\EOF
13214 #define wxUSE_TAB_DIALOG 1
13215 EOF
13216
13217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13218 fi
13219
13220 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13221 cat >> confdefs.h <<\EOF
13222 #define wxUSE_TOOLBAR_SIMPLE 1
13223 EOF
13224
13225 wxUSE_TOOLBAR="yes"
13226 fi
13227
13228 if test "$wxUSE_TOOLBAR" = "yes"; then
13229 cat >> confdefs.h <<\EOF
13230 #define wxUSE_TOOLBAR 1
13231 EOF
13232
13233
13234 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13235 wxUSE_TOOLBAR_NATIVE="yes"
13236 fi
13237
13238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13239 fi
13240
13241 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13242 cat >> confdefs.h <<\EOF
13243 #define wxUSE_TOOLBAR_NATIVE 1
13244 EOF
13245
13246 fi
13247
13248 if test "$wxUSE_TOOLTIPS" = "yes"; then
13249 if test "$wxUSE_MOTIF" = 1; then
13250 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13251 else
13252 if test "$wxUSE_WINE" = 1; then
13253 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13254 else
13255 cat >> confdefs.h <<\EOF
13256 #define wxUSE_TOOLTIPS 1
13257 EOF
13258
13259 fi
13260 fi
13261 fi
13262
13263 if test "$wxUSE_TREECTRL" = "yes"; then
13264 if test "$wxUSE_IMAGLIST" = "yes"; then
13265 cat >> confdefs.h <<\EOF
13266 #define wxUSE_TREECTRL 1
13267 EOF
13268
13269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13270 else
13271 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13272 fi
13273 fi
13274
13275
13276
13277 if test "$wxUSE_METAFILE" = "yes"; then
13278 cat >> confdefs.h <<\EOF
13279 #define wxUSE_METAFILE 1
13280 EOF
13281
13282 fi
13283
13284 if test "$wxUSE_DIRDLG" = "yes"; then
13285 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13286 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13287 else
13288 if test "$wxUSE_TREECTRL" != "yes"; then
13289 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13290 else
13291 cat >> confdefs.h <<\EOF
13292 #define wxUSE_DIRDLG 1
13293 EOF
13294
13295 fi
13296 fi
13297 fi
13298
13299 if test "$wxUSE_TEXTDLG" = "yes"; then
13300 cat >> confdefs.h <<\EOF
13301 #define wxUSE_TEXTDLG 1
13302 EOF
13303
13304 fi
13305
13306 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13307 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13308 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13309 else
13310 cat >> confdefs.h <<\EOF
13311 #define wxUSE_STARTUP_TIPS 1
13312 EOF
13313
13314 fi
13315 fi
13316
13317 if test "$wxUSE_PROGRESSDLG" = "yes"; then
13318 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13319 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13320 else
13321 cat >> confdefs.h <<\EOF
13322 #define wxUSE_PROGRESSDLG 1
13323 EOF
13324
13325 fi
13326 fi
13327
13328 if test "$wxUSE_MINIFRAME" = "yes"; then
13329 cat >> confdefs.h <<\EOF
13330 #define wxUSE_MINIFRAME 1
13331 EOF
13332
13333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13334 fi
13335
13336 if test "$wxUSE_HTML" = "yes"; then
13337 cat >> confdefs.h <<\EOF
13338 #define wxUSE_HTML 1
13339 EOF
13340
13341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13342 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13343 fi
13344
13345 if test "$wxUSE_VALIDATORS" = "yes"; then
13346 cat >> confdefs.h <<\EOF
13347 #define wxUSE_VALIDATORS 1
13348 EOF
13349
13350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13351 fi
13352
13353 if test "$wxUSE_GIF" = "yes" ; then
13354 cat >> confdefs.h <<\EOF
13355 #define wxUSE_GIF 1
13356 EOF
13357
13358 fi
13359
13360 if test "$wxUSE_PCX" = "yes" ; then
13361 cat >> confdefs.h <<\EOF
13362 #define wxUSE_PCX 1
13363 EOF
13364
13365 fi
13366
13367 if test "$wxUSE_PNM" = "yes" ; then
13368 cat >> confdefs.h <<\EOF
13369 #define wxUSE_PNM 1
13370 EOF
13371
13372 fi
13373
13374
13375 OSINFO=`uname -s -r -m`
13376 OSINFO="\"$OSINFO\""
13377 cat >> confdefs.h <<EOF
13378 #define WXWIN_OS_DESCRIPTION $OSINFO
13379 EOF
13380
13381
13382
13383 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
13384
13385 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
13386 if test "$wxUSE_GUI" = "yes"; then
13387 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13388 fi
13389
13390 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13391
13392 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
13393
13394 if test "$GXX" = yes ; then
13395 CXXWARNINGS="-Wall"
13396 fi
13397 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13398
13399 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13400 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13401
13402 LDFLAGS="$LDFLAGS $PROFILE"
13403
13404 if test "$wxUSE_GUI" = "yes"; then
13405
13406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
13407 font fractal image minimal richedit"
13408
13409 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
13410 else
13411 SAMPLES_SUBDIRS=""
13412 fi
13413
13414 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
13483 echo "configure:13484: checking whether ${MAKE-make} sets \${MAKE}" >&5
13484 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13485 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13486 echo $ac_n "(cached) $ac_c" 1>&6
13487 else
13488 cat > conftestmake <<\EOF
13489 all:
13490 @echo 'ac_maketemp="${MAKE}"'
13491 EOF
13492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13493 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13494 if test -n "$ac_maketemp"; then
13495 eval ac_cv_prog_make_${ac_make}_set=yes
13496 else
13497 eval ac_cv_prog_make_${ac_make}_set=no
13498 fi
13499 rm -f conftestmake
13500 fi
13501 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13502 echo "$ac_t""yes" 1>&6
13503 SET_MAKE=
13504 else
13505 echo "$ac_t""no" 1>&6
13506 SET_MAKE="MAKE=${MAKE-make}"
13507 fi
13508
13509
13510 if test -d include; then
13511 if test -d include/wx; then
13512 if test -d include/wx/${TOOLKIT_DIR}; then
13513 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13514 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13515 fi
13516 fi
13517 fi
13518 fi
13519
13520
13521
13522 if test "$wxUSE_GUI" = "yes"; then
13523 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
13524 echo "configure:13525: checking glcanvas subdirectory to use" >&5
13525 if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13526 echo $ac_n "(cached) $ac_c" 1>&6
13527 else
13528
13529 if test "${TOOLKIT_DIR}" = "msw" ; then
13530 wx_cv_path_glcanvas="win"
13531 else
13532 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13533 fi
13534
13535 fi
13536
13537 echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13538
13539 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
13540
13541
13542 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
13543 subdirs="demos samples utils"
13544
13545 fi
13546
13547 trap '' 1 2 15
13548 cat > confcache <<\EOF
13549 # This file is a shell script that caches the results of configure
13550 # tests run on this system so they can be shared between configure
13551 # scripts and configure runs. It is not useful on other systems.
13552 # If it contains results you don't want to keep, you may remove or edit it.
13553 #
13554 # By default, configure uses ./config.cache as the cache file,
13555 # creating it if it does not exist already. You can give configure
13556 # the --cache-file=FILE option to use a different cache file; that is
13557 # what configure does when it calls configure scripts in
13558 # subdirectories, so they share the cache.
13559 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13560 # config.status only pays attention to the cache file if you give it the
13561 # --recheck option to rerun configure.
13562 #
13563 EOF
13564 # The following way of writing the cache mishandles newlines in values,
13565 # but we know of no workaround that is simple, portable, and efficient.
13566 # So, don't put newlines in cache variables' values.
13567 # Ultrix sh set writes to stderr and can't be redirected directly,
13568 # and sets the high bit in the cache file unless we assign to the vars.
13569 (set) 2>&1 |
13570 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13571 *ac_space=\ *)
13572 # `set' does not quote correctly, so add quotes (double-quote substitution
13573 # turns \\\\ into \\, and sed turns \\ into \).
13574 sed -n \
13575 -e "s/'/'\\\\''/g" \
13576 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13577 ;;
13578 *)
13579 # `set' quotes correctly as required by POSIX, so do not add quotes.
13580 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13581 ;;
13582 esac >> confcache
13583 if cmp -s $cache_file confcache; then
13584 :
13585 else
13586 if test -w $cache_file; then
13587 echo "updating cache $cache_file"
13588 cat confcache > $cache_file
13589 else
13590 echo "not updating unwritable cache $cache_file"
13591 fi
13592 fi
13593 rm -f confcache
13594
13595 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13596
13597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13598 # Let make expand exec_prefix.
13599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13600
13601 # Any assignment to VPATH causes Sun make to only execute
13602 # the first set of double-colon rules, so remove it if not needed.
13603 # If there is a colon in the path, we need to keep it.
13604 if test "x$srcdir" = x.; then
13605 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13606 fi
13607
13608 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13609
13610 DEFS=-DHAVE_CONFIG_H
13611
13612 # Without the "./", some shells look in PATH for config.status.
13613 : ${CONFIG_STATUS=./config.status}
13614
13615 echo creating $CONFIG_STATUS
13616 rm -f $CONFIG_STATUS
13617 cat > $CONFIG_STATUS <<EOF
13618 #! /bin/sh
13619 # Generated automatically by configure.
13620 # Run this file to recreate the current configuration.
13621 # This directory was configured as follows,
13622 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13623 #
13624 # $0 $ac_configure_args
13625 #
13626 # Compiler output produced by configure, useful for debugging
13627 # configure, is in ./config.log if it exists.
13628
13629 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13630 for ac_option
13631 do
13632 case "\$ac_option" in
13633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13634 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13635 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13636 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13637 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13638 exit 0 ;;
13639 -help | --help | --hel | --he | --h)
13640 echo "\$ac_cs_usage"; exit 0 ;;
13641 *) echo "\$ac_cs_usage"; exit 1 ;;
13642 esac
13643 done
13644
13645 ac_given_srcdir=$srcdir
13646 ac_given_INSTALL="$INSTALL"
13647
13648 trap 'rm -fr `echo "
13649 wx-config
13650 src/make.env
13651 src/makeprog.env
13652 src/makelib.env
13653 Makefile
13654 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13655 EOF
13656 cat >> $CONFIG_STATUS <<EOF
13657
13658 # Protect against being on the right side of a sed subst in config.status.
13659 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13660 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13661 $ac_vpsub
13662 $extrasub
13663 s%@SHELL@%$SHELL%g
13664 s%@CFLAGS@%$CFLAGS%g
13665 s%@CPPFLAGS@%$CPPFLAGS%g
13666 s%@CXXFLAGS@%$CXXFLAGS%g
13667 s%@FFLAGS@%$FFLAGS%g
13668 s%@DEFS@%$DEFS%g
13669 s%@LDFLAGS@%$LDFLAGS%g
13670 s%@LIBS@%$LIBS%g
13671 s%@exec_prefix@%$exec_prefix%g
13672 s%@prefix@%$prefix%g
13673 s%@program_transform_name@%$program_transform_name%g
13674 s%@bindir@%$bindir%g
13675 s%@sbindir@%$sbindir%g
13676 s%@libexecdir@%$libexecdir%g
13677 s%@datadir@%$datadir%g
13678 s%@sysconfdir@%$sysconfdir%g
13679 s%@sharedstatedir@%$sharedstatedir%g
13680 s%@localstatedir@%$localstatedir%g
13681 s%@libdir@%$libdir%g
13682 s%@includedir@%$includedir%g
13683 s%@oldincludedir@%$oldincludedir%g
13684 s%@infodir@%$infodir%g
13685 s%@mandir@%$mandir%g
13686 s%@host@%$host%g
13687 s%@host_alias@%$host_alias%g
13688 s%@host_cpu@%$host_cpu%g
13689 s%@host_vendor@%$host_vendor%g
13690 s%@host_os@%$host_os%g
13691 s%@target@%$target%g
13692 s%@target_alias@%$target_alias%g
13693 s%@target_cpu@%$target_cpu%g
13694 s%@target_vendor@%$target_vendor%g
13695 s%@target_os@%$target_os%g
13696 s%@build@%$build%g
13697 s%@build_alias@%$build_alias%g
13698 s%@build_cpu@%$build_cpu%g
13699 s%@build_vendor@%$build_vendor%g
13700 s%@build_os@%$build_os%g
13701 s%@CC@%$CC%g
13702 s%@CPP@%$CPP%g
13703 s%@CXX@%$CXX%g
13704 s%@CXXCPP@%$CXXCPP%g
13705 s%@RANLIB@%$RANLIB%g
13706 s%@AR@%$AR%g
13707 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13708 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13709 s%@INSTALL_DATA@%$INSTALL_DATA%g
13710 s%@STRIP@%$STRIP%g
13711 s%@YACC@%$YACC%g
13712 s%@LEX@%$LEX%g
13713 s%@LEXLIB@%$LEXLIB%g
13714 s%@LN_S@%$LN_S%g
13715 s%@GTK_CONFIG@%$GTK_CONFIG%g
13716 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13717 s%@GTK_LIBS@%$GTK_LIBS%g
13718 s%@X_CFLAGS@%$X_CFLAGS%g
13719 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13720 s%@X_LIBS@%$X_LIBS%g
13721 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13722 s%@LEX_STEM@%$LEX_STEM%g
13723 s%@PATH_IFS@%$PATH_IFS%g
13724 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13725 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13726 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13727 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13728 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13729 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13730 s%@WX_LIBRARY@%$WX_LIBRARY%g
13731 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13732 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13733 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13734 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13735 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13736 s%@WX_ALL@%$WX_ALL%g
13737 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13738 s%@SHARED_LD@%$SHARED_LD%g
13739 s%@PIC_FLAG@%$PIC_FLAG%g
13740 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
13741 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
13742 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
13743 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
13744 s%@USE_GUI@%$USE_GUI%g
13745 s%@AFMINSTALL@%$AFMINSTALL%g
13746 s%@TOOLKIT@%$TOOLKIT%g
13747 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13748 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13749 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13750 s%@GUIHEADERS@%$GUIHEADERS%g
13751 s%@GUIOBJS@%$GUIOBJS%g
13752 s%@COMMONOBJS@%$COMMONOBJS%g
13753 s%@GENERICOBJS@%$GENERICOBJS%g
13754 s%@GUIDEPS@%$GUIDEPS%g
13755 s%@COMMONDEPS@%$COMMONDEPS%g
13756 s%@GENERICDEPS@%$GENERICDEPS%g
13757 s%@IODBCOBJS@%$IODBCOBJS%g
13758 s%@UNIXOBJS@%$UNIXOBJS%g
13759 s%@UNIXDEPS@%$UNIXDEPS%g
13760 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13761 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13762 s%@GUIDIST@%$GUIDIST%g
13763 s%@PORT_FILES@%$PORT_FILES%g
13764 s%@DISTDIR@%$DISTDIR%g
13765 s%@RPM_SPEC@%$RPM_SPEC%g
13766 s%@RPM_FILES@%$RPM_FILES%g
13767 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13768 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13769 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13770 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13771 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13772 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13773 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
13774 s%@EXTRADEFS@%$EXTRADEFS%g
13775 s%@LD_LIBS@%$LD_LIBS%g
13776 s%@SET_MAKE@%$SET_MAKE%g
13777 s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13778 s%@subdirs@%$subdirs%g
13779
13780 CEOF
13781 EOF
13782
13783 cat >> $CONFIG_STATUS <<\EOF
13784
13785 # Split the substitutions into bite-sized pieces for seds with
13786 # small command number limits, like on Digital OSF/1 and HP-UX.
13787 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13788 ac_file=1 # Number of current file.
13789 ac_beg=1 # First line for current file.
13790 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13791 ac_more_lines=:
13792 ac_sed_cmds=""
13793 while $ac_more_lines; do
13794 if test $ac_beg -gt 1; then
13795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13796 else
13797 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13798 fi
13799 if test ! -s conftest.s$ac_file; then
13800 ac_more_lines=false
13801 rm -f conftest.s$ac_file
13802 else
13803 if test -z "$ac_sed_cmds"; then
13804 ac_sed_cmds="sed -f conftest.s$ac_file"
13805 else
13806 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13807 fi
13808 ac_file=`expr $ac_file + 1`
13809 ac_beg=$ac_end
13810 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13811 fi
13812 done
13813 if test -z "$ac_sed_cmds"; then
13814 ac_sed_cmds=cat
13815 fi
13816 EOF
13817
13818 cat >> $CONFIG_STATUS <<EOF
13819
13820 CONFIG_FILES=\${CONFIG_FILES-"wx-config
13821 src/make.env
13822 src/makeprog.env
13823 src/makelib.env
13824 Makefile
13825 "}
13826 EOF
13827 cat >> $CONFIG_STATUS <<\EOF
13828 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13829 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13830 case "$ac_file" in
13831 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13832 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13833 *) ac_file_in="${ac_file}.in" ;;
13834 esac
13835
13836 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13837
13838 # Remove last slash and all that follows it. Not all systems have dirname.
13839 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13840 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13841 # The file is in a subdirectory.
13842 test ! -d "$ac_dir" && mkdir "$ac_dir"
13843 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13844 # A "../" for each directory in $ac_dir_suffix.
13845 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13846 else
13847 ac_dir_suffix= ac_dots=
13848 fi
13849
13850 case "$ac_given_srcdir" in
13851 .) srcdir=.
13852 if test -z "$ac_dots"; then top_srcdir=.
13853 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13854 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13855 *) # Relative path.
13856 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13857 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13858 esac
13859
13860 case "$ac_given_INSTALL" in
13861 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13862 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13863 esac
13864
13865 echo creating "$ac_file"
13866 rm -f "$ac_file"
13867 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13868 case "$ac_file" in
13869 *Makefile*) ac_comsub="1i\\
13870 # $configure_input" ;;
13871 *) ac_comsub= ;;
13872 esac
13873
13874 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13875 sed -e "$ac_comsub
13876 s%@configure_input@%$configure_input%g
13877 s%@srcdir@%$srcdir%g
13878 s%@top_srcdir@%$top_srcdir%g
13879 s%@INSTALL@%$INSTALL%g
13880 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13881 fi; done
13882 rm -f conftest.s*
13883
13884 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13885 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13886 #
13887 # ac_d sets the value in "#define NAME VALUE" lines.
13888 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13889 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13890 ac_dC='\3'
13891 ac_dD='%g'
13892 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13893 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13894 ac_uB='\([ ]\)%\1#\2define\3'
13895 ac_uC=' '
13896 ac_uD='\4%g'
13897 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13898 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13899 ac_eB='$%\1#\2define\3'
13900 ac_eC=' '
13901 ac_eD='%g'
13902
13903 if test "${CONFIG_HEADERS+set}" != set; then
13904 EOF
13905 cat >> $CONFIG_STATUS <<EOF
13906 CONFIG_HEADERS="setup.h:setup.h.in"
13907 EOF
13908 cat >> $CONFIG_STATUS <<\EOF
13909 fi
13910 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13912 case "$ac_file" in
13913 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13914 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13915 *) ac_file_in="${ac_file}.in" ;;
13916 esac
13917
13918 echo creating $ac_file
13919
13920 rm -f conftest.frag conftest.in conftest.out
13921 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13922 cat $ac_file_inputs > conftest.in
13923
13924 EOF
13925
13926 # Transform confdefs.h into a sed script conftest.vals that substitutes
13927 # the proper values into config.h.in to produce config.h. And first:
13928 # Protect against being on the right side of a sed subst in config.status.
13929 # Protect against being in an unquoted here document in config.status.
13930 rm -f conftest.vals
13931 cat > conftest.hdr <<\EOF
13932 s/[\\&%]/\\&/g
13933 s%[\\$`]%\\&%g
13934 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13935 s%ac_d%ac_u%gp
13936 s%ac_u%ac_e%gp
13937 EOF
13938 sed -n -f conftest.hdr confdefs.h > conftest.vals
13939 rm -f conftest.hdr
13940
13941 # This sed command replaces #undef with comments. This is necessary, for
13942 # example, in the case of _POSIX_SOURCE, which is predefined and required
13943 # on some systems where configure will not decide to define it.
13944 cat >> conftest.vals <<\EOF
13945 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13946 EOF
13947
13948 # Break up conftest.vals because some shells have a limit on
13949 # the size of here documents, and old seds have small limits too.
13950
13951 rm -f conftest.tail
13952 while :
13953 do
13954 ac_lines=`grep -c . conftest.vals`
13955 # grep -c gives empty output for an empty file on some AIX systems.
13956 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13957 # Write a limited-size here document to conftest.frag.
13958 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13959 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13960 echo 'CEOF
13961 sed -f conftest.frag conftest.in > conftest.out
13962 rm -f conftest.in
13963 mv conftest.out conftest.in
13964 ' >> $CONFIG_STATUS
13965 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13966 rm -f conftest.vals
13967 mv conftest.tail conftest.vals
13968 done
13969 rm -f conftest.vals
13970
13971 cat >> $CONFIG_STATUS <<\EOF
13972 rm -f conftest.frag conftest.h
13973 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13974 cat conftest.in >> conftest.h
13975 rm -f conftest.in
13976 if cmp -s $ac_file conftest.h 2>/dev/null; then
13977 echo "$ac_file is unchanged"
13978 rm -f conftest.h
13979 else
13980 # Remove last slash and all that follows it. Not all systems have dirname.
13981 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13982 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13983 # The file is in a subdirectory.
13984 test ! -d "$ac_dir" && mkdir "$ac_dir"
13985 fi
13986 rm -f $ac_file
13987 mv conftest.h $ac_file
13988 fi
13989 fi; done
13990
13991 EOF
13992 cat >> $CONFIG_STATUS <<EOF
13993
13994 TOOLKIT_DIR="${TOOLKIT_DIR}"
13995 LN_S="${LN_S}"
13996
13997
13998 EOF
13999 cat >> $CONFIG_STATUS <<\EOF
14000
14001 chmod +x wx-config
14002 mv wx-config wx${TOOLKIT_DIR}-config
14003 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
14004
14005
14006 if test ! -d lib; then
14007 mkdir lib
14008 fi
14009 if test ! -d lib/wx; then
14010 mkdir lib/wx
14011 fi
14012 if test ! -d lib/wx/include; then
14013 mkdir lib/wx/include
14014 fi
14015 if test ! -d lib/wx/include/wx; then
14016 mkdir lib/wx/include/wx
14017 fi
14018 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
14019 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
14020 fi
14021 if test -f setup.h; then
14022 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
14023 fi
14024
14025
14026 if test ! -d include; then
14027 mkdir include
14028 fi
14029 if test ! -d include/wx; then
14030 mkdir include/wx
14031 fi
14032 if test ! -d include/wx/${TOOLKIT_DIR}; then
14033 mkdir include/wx/${TOOLKIT_DIR}
14034 fi
14035 if test -f setup.h; then
14036 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
14037 fi
14038
14039
14040 exit 0
14041 EOF
14042 chmod +x $CONFIG_STATUS
14043 rm -fr confdefs* $ac_clean_files
14044 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14045
14046 if test "$no_recursion" != yes; then
14047
14048 # Remove --cache-file and --srcdir arguments so they do not pile up.
14049 ac_sub_configure_args=
14050 ac_prev=
14051 for ac_arg in $ac_configure_args; do
14052 if test -n "$ac_prev"; then
14053 ac_prev=
14054 continue
14055 fi
14056 case "$ac_arg" in
14057 -cache-file | --cache-file | --cache-fil | --cache-fi \
14058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14059 ac_prev=cache_file ;;
14060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14062 ;;
14063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14064 ac_prev=srcdir ;;
14065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14066 ;;
14067 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14068 esac
14069 done
14070
14071 for ac_config_dir in demos samples utils; do
14072
14073 # Do not complain, so a configure script can configure whichever
14074 # parts of a large source tree are present.
14075 if test ! -d $srcdir/$ac_config_dir; then
14076 continue
14077 fi
14078
14079 echo configuring in $ac_config_dir
14080
14081 case "$srcdir" in
14082 .) ;;
14083 *)
14084 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14085 else
14086 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14087 fi
14088 ;;
14089 esac
14090
14091 ac_popdir=`pwd`
14092 cd $ac_config_dir
14093
14094 # A "../" for each directory in /$ac_config_dir.
14095 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14096
14097 case "$srcdir" in
14098 .) # No --srcdir option. We are building in place.
14099 ac_sub_srcdir=$srcdir ;;
14100 /*) # Absolute path.
14101 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14102 *) # Relative path.
14103 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14104 esac
14105
14106 # Check for guested configure; otherwise get Cygnus style configure.
14107 if test -f $ac_sub_srcdir/configure; then
14108 ac_sub_configure=$ac_sub_srcdir/configure
14109 elif test -f $ac_sub_srcdir/configure.in; then
14110 ac_sub_configure=$ac_configure
14111 else
14112 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14113 ac_sub_configure=
14114 fi
14115
14116 # The recursion is here.
14117 if test -n "$ac_sub_configure"; then
14118
14119 # Make the cache file name correct relative to the subdirectory.
14120 case "$cache_file" in
14121 /*) ac_sub_cache_file=$cache_file ;;
14122 *) # Relative path.
14123 ac_sub_cache_file="$ac_dots$cache_file" ;;
14124 esac
14125 case "$ac_given_INSTALL" in
14126 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14127 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14128 esac
14129
14130 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14131 # The eval makes quoting arguments work.
14132 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14133 then :
14134 else
14135 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14136 fi
14137 fi
14138
14139 cd $ac_popdir
14140 done
14141 fi
14142
14143