]> git.saurik.com Git - wxWidgets.git/blob - configure
corrected wxWindows library name under Mac OS X
[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 # Configure paths for GTK+
43 # Owen Taylor 97-11-3
44
45
46 # Guess values for system-dependent variables and create Makefiles.
47 # Generated automatically using autoconf version 2.13
48 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49 #
50 # This configure script is free software; the Free Software Foundation
51 # gives unlimited permission to copy, distribute and modify it.
52
53 # Defaults:
54 ac_help=
55 ac_default_prefix=/usr/local
56 # Any additions from configure.in:
57 ac_help="$ac_help
58 --enable-gui use GUI classes"
59 ac_help="$ac_help
60 --with-gtk use GTK+"
61 ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63 ac_help="$ac_help
64 --with-mac use Mac OS X"
65 ac_help="$ac_help
66 --with-wine use WINE"
67 ac_help="$ac_help
68 --with-cygwin use Cygwin for MS-Windows"
69 ac_help="$ac_help
70 --with-mingw use GCC Minimal MS-Windows"
71 ac_help="$ac_help
72 --with-pm use OS/2 Presentation Manager"
73 ac_help="$ac_help
74 --with-gtk-prefix=PFX Prefix where GTK is installed"
75 ac_help="$ac_help
76 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
77 ac_help="$ac_help
78 --with-libpng use libpng (PNG image format)"
79 ac_help="$ac_help
80 --with-libjpeg use libjpeg (JPEG file format)"
81 ac_help="$ac_help
82 --with-libtiff use libtiff (TIFF file format)"
83 ac_help="$ac_help
84 --with-freetype use freetype (font rasterizer)"
85 ac_help="$ac_help
86 --with-opengl use OpenGL (or Mesa)"
87 ac_help="$ac_help
88 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
89 ac_help="$ac_help
90 --with-zlib use zlib for LZW compression"
91 ac_help="$ac_help
92 --with-odbc use the IODBC and wxODBC classes"
93 ac_help="$ac_help
94 --enable-shared create shared library code"
95 ac_help="$ac_help
96 --enable-burnt_name create set name in shared library "
97 ac_help="$ac_help
98 --enable-optimise create optimised code"
99 ac_help="$ac_help
100 --enable-debug same as debug_flag and debug_info"
101 ac_help="$ac_help
102 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
103 ac_help="$ac_help
104 --enable-debug_info create code with debugging information"
105 ac_help="$ac_help
106 --enable-debug_gdb create code with extra GDB debugging information"
107 ac_help="$ac_help
108 --enable-debug_cntxt use wxDebugContext"
109 ac_help="$ac_help
110 --enable-mem_tracing create code with memory tracing"
111 ac_help="$ac_help
112 --enable-profile create code with profiling information"
113 ac_help="$ac_help
114 --enable-no_rtti create code without RTTI information"
115 ac_help="$ac_help
116 --enable-no_exceptions create code without exceptions information"
117 ac_help="$ac_help
118 --enable-permissive compile code disregarding strict ANSI"
119 ac_help="$ac_help
120 --enable-no_deps create code without dependency information"
121 ac_help="$ac_help
122 --enable-intl use internationalization system"
123 ac_help="$ac_help
124 --enable-config use wxConfig (and derived) classes"
125 ac_help="$ac_help
126 --enable-sockets use socket/network classes"
127 ac_help="$ac_help
128 --enable-ipc use interprocess communication (wxSocket etc.)"
129 ac_help="$ac_help
130 --enable-dialupman use dialup network classes"
131 ac_help="$ac_help
132 --enable-apple_ieee use the Apple IEEE codec"
133 ac_help="$ac_help
134 --enable-timedate use date/time classes"
135 ac_help="$ac_help
136 --enable-wave use wxWave class"
137 ac_help="$ac_help
138 --enable-fraction use wxFraction class"
139 ac_help="$ac_help
140 --enable-dynlib use wxLibrary class for DLL loading"
141 ac_help="$ac_help
142 --enable-longlong use wxLongLong class"
143 ac_help="$ac_help
144 --enable-geometry use geometry class"
145 ac_help="$ac_help
146 --enable-log use logging system"
147 ac_help="$ac_help
148 --enable-streams use wxStream etc classes"
149 ac_help="$ac_help
150 --enable-file use wxFile classes"
151 ac_help="$ac_help
152 --enable-textfile use wxTextFile classes"
153 ac_help="$ac_help
154 --enable-unicode compile wxString with Unicode support"
155 ac_help="$ac_help
156 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
157 ac_help="$ac_help
158 --enable-wxprintfv use wxWindows implementation of vprintf()"
159 ac_help="$ac_help
160 --enable-std_iostreams use standard C++ stream classes"
161 ac_help="$ac_help
162 --enable-filesystem use virtual file systems classes"
163 ac_help="$ac_help
164 --enable-fs_inet use virtual HTTP/FTP filesystems"
165 ac_help="$ac_help
166 --enable-fs_zip use virtual ZIP filesystems"
167 ac_help="$ac_help
168 --enable-zipstream use wxZipInputStream"
169 ac_help="$ac_help
170 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
171 ac_help="$ac_help
172 --enable-snglinst use wxSingleInstanceChecker class"
173 ac_help="$ac_help
174 --enable-threads use threads"
175 ac_help="$ac_help
176 --enable-serial use class serialization"
177 ac_help="$ac_help
178 --enable-docview use document view architecture"
179 ac_help="$ac_help
180 --enable-help use help (using external browser at present)"
181 ac_help="$ac_help
182 --enable-constraints use layout-constraints system"
183 ac_help="$ac_help
184 --enable-printarch use printing architecture"
185 ac_help="$ac_help
186 --enable-mdi use multiple document interface architecture"
187 ac_help="$ac_help
188 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
189 ac_help="$ac_help
190 --enable-prologio use Prolog IO library"
191 ac_help="$ac_help
192 --enable-resources use wxWindows resources"
193 ac_help="$ac_help
194 --enable-xresources use X resources for save (default for gtk+)"
195 ac_help="$ac_help
196 --enable-clipboard use wxClipboard classes"
197 ac_help="$ac_help
198 --enable-dnd use Drag'n'Drop classes"
199 ac_help="$ac_help
200 --enable-metafile use win32 metafiles"
201 ac_help="$ac_help
202 --enable-wxtree make wxTree library"
203 ac_help="$ac_help
204 --enable-controls use all usual controls"
205 ac_help="$ac_help
206 --enable-accel use accelerators"
207 ac_help="$ac_help
208 --enable-caret use wxCaret class"
209 ac_help="$ac_help
210 --enable-bmpbutton use wxBitmapButton class"
211 ac_help="$ac_help
212 --enable-checkbox use wxCheckBox class"
213 ac_help="$ac_help
214 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
215 ac_help="$ac_help
216 --enable-choice use wxChoice class"
217 ac_help="$ac_help
218 --enable-combobox use wxComboBox classes"
219 ac_help="$ac_help
220 --enable-gauge use wxGauge class"
221 ac_help="$ac_help
222 --enable-grid use wxGrid class"
223 ac_help="$ac_help
224 --enable-newgrid use new wxGrid class"
225 ac_help="$ac_help
226 --enable-imaglist use wxImageList class"
227 ac_help="$ac_help
228 --enable-listbox use wxListBox class"
229 ac_help="$ac_help
230 --enable-listctrl use wxListCtrl class"
231 ac_help="$ac_help
232 --enable-notebook use wxNotebook class"
233 ac_help="$ac_help
234 --enable-radiobox use wxRadioBox class"
235 ac_help="$ac_help
236 --enable-radiobtn use wxRadioButton class"
237 ac_help="$ac_help
238 --enable-sash use wxSashWindow class"
239 ac_help="$ac_help
240 --enable-scrollbar use wxScrollBar class and scrollable windows"
241 ac_help="$ac_help
242 --enable-slider use wxSlider class"
243 ac_help="$ac_help
244 --enable-spinbtn use wxSpinButton class"
245 ac_help="$ac_help
246 --enable-spinctrl use wxSpinCtrl class"
247 ac_help="$ac_help
248 --enable-splitter use wxSplitterWindow class"
249 ac_help="$ac_help
250 --enable-statbmp use wxStaticBitmap class"
251 ac_help="$ac_help
252 --enable-statbox use wxStaticBox class"
253 ac_help="$ac_help
254 --enable-statline use wxStaticLine class"
255 ac_help="$ac_help
256 --enable-statusbar use wxStatusBar class"
257 ac_help="$ac_help
258 --enable-tabdialog use wxTabControl class"
259 ac_help="$ac_help
260 --enable-togglebtn use wxToggleButton class"
261 ac_help="$ac_help
262 --enable-toolbar use wxToolBar class"
263 ac_help="$ac_help
264 --enable-tbarnative use native wxToolBar class"
265 ac_help="$ac_help
266 --enable-tbarsmpl use wxToolBarSimple class"
267 ac_help="$ac_help
268 --enable-treectrl use wxTreeCtrl class"
269 ac_help="$ac_help
270 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
271 ac_help="$ac_help
272 --enable-dirdlg use wxDirDialog"
273 ac_help="$ac_help
274 --enable-textdlg use wxTextDialog"
275 ac_help="$ac_help
276 --enable-tipdlg use startup tips"
277 ac_help="$ac_help
278 --enable-progressdlg use wxProgressDialog"
279 ac_help="$ac_help
280 --enable-miniframe use wxMiniFrame class"
281 ac_help="$ac_help
282 --enable-html use wxHTML sub-library"
283 ac_help="$ac_help
284 --enable-tooltips use wxToolTip class"
285 ac_help="$ac_help
286 --enable-splines use spline drawing code"
287 ac_help="$ac_help
288 --enable-validators use wxValidator and derived classes"
289 ac_help="$ac_help
290 --enable-busyinfo use wxBusyInfo"
291 ac_help="$ac_help
292 --enable-joystick compile in joystick support (Linux only)"
293 ac_help="$ac_help
294 --enable-image use wxImage class"
295 ac_help="$ac_help
296 --enable-gif use gif images (GIF file format)"
297 ac_help="$ac_help
298 --enable-pcx use pcx images (PCX file format)"
299 ac_help="$ac_help
300 --enable-pnm use pnm images (PNM file format)"
301 ac_help="$ac_help
302 --enable-xpm use xpm images (XPM file format)"
303 ac_help="$ac_help
304 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
305 ac_help="$ac_help
306 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
307 ac_help="$ac_help
308 --disable-gtktest Do not try to compile and run a test GTK program"
309 ac_help="$ac_help
310 --with-x use the X Window System"
311
312 # Initialize some variables set by options.
313 # The variables have the same names as the options, with
314 # dashes changed to underlines.
315 build=NONE
316 cache_file=./config.cache
317 exec_prefix=NONE
318 host=NONE
319 no_create=
320 nonopt=NONE
321 no_recursion=
322 prefix=NONE
323 program_prefix=NONE
324 program_suffix=NONE
325 program_transform_name=s,x,x,
326 silent=
327 site=
328 srcdir=
329 target=NONE
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333 bindir='${exec_prefix}/bin'
334 sbindir='${exec_prefix}/sbin'
335 libexecdir='${exec_prefix}/libexec'
336 datadir='${prefix}/share'
337 sysconfdir='${prefix}/etc'
338 sharedstatedir='${prefix}/com'
339 localstatedir='${prefix}/var'
340 libdir='${exec_prefix}/lib'
341 includedir='${prefix}/include'
342 oldincludedir='/usr/include'
343 infodir='${prefix}/info'
344 mandir='${prefix}/man'
345
346 # Initialize some other variables.
347 subdirs=
348 MFLAGS= MAKEFLAGS=
349 SHELL=${CONFIG_SHELL-/bin/sh}
350 # Maximum number of lines to put in a shell here document.
351 ac_max_here_lines=12
352
353 ac_prev=
354 for ac_option
355 do
356
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 case "$ac_option" in
365 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
366 *) ac_optarg= ;;
367 esac
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case "$ac_option" in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir="$ac_optarg" ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build="$ac_optarg" ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file="$ac_optarg" ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir="$ac_optarg" ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
401 fi
402 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
403 eval "enable_${ac_feature}=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
410 fi
411 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
412 case "$ac_option" in
413 *=*) ;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_${ac_feature}='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix="$ac_optarg" ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he)
432 # Omit some internal or obsolete options to make the list less imposing.
433 # This message is too long to be a string in the A/UX 3.1 sh.
434 cat << EOF
435 Usage: configure [options] [host]
436 Options: [defaults in brackets after descriptions]
437 Configuration:
438 --cache-file=FILE cache test results in FILE
439 --help print this message
440 --no-create do not create output files
441 --quiet, --silent do not print \`checking...' messages
442 --version print the version of autoconf that created configure
443 Directory and file names:
444 --prefix=PREFIX install architecture-independent files in PREFIX
445 [$ac_default_prefix]
446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
447 [same as prefix]
448 --bindir=DIR user executables in DIR [EPREFIX/bin]
449 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
450 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
451 --datadir=DIR read-only architecture-independent data in DIR
452 [PREFIX/share]
453 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
454 --sharedstatedir=DIR modifiable architecture-independent data in DIR
455 [PREFIX/com]
456 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
457 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
458 --includedir=DIR C header files in DIR [PREFIX/include]
459 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
460 --infodir=DIR info documentation in DIR [PREFIX/info]
461 --mandir=DIR man documentation in DIR [PREFIX/man]
462 --srcdir=DIR find the sources in DIR [configure dir or ..]
463 --program-prefix=PREFIX prepend PREFIX to installed program names
464 --program-suffix=SUFFIX append SUFFIX to installed program names
465 --program-transform-name=PROGRAM
466 run sed PROGRAM on installed program names
467 EOF
468 cat << EOF
469 Host type:
470 --build=BUILD configure for building on BUILD [BUILD=HOST]
471 --host=HOST configure for HOST [guessed]
472 --target=TARGET configure for TARGET [TARGET=HOST]
473 Features and packages:
474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
478 --x-includes=DIR X include files are in DIR
479 --x-libraries=DIR X library files are in DIR
480 EOF
481 if test -n "$ac_help"; then
482 echo "--enable and --with options recognized:$ac_help"
483 fi
484 exit 0 ;;
485
486 -host | --host | --hos | --ho)
487 ac_prev=host ;;
488 -host=* | --host=* | --hos=* | --ho=*)
489 host="$ac_optarg" ;;
490
491 -includedir | --includedir | --includedi | --included | --include \
492 | --includ | --inclu | --incl | --inc)
493 ac_prev=includedir ;;
494 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
495 | --includ=* | --inclu=* | --incl=* | --inc=*)
496 includedir="$ac_optarg" ;;
497
498 -infodir | --infodir | --infodi | --infod | --info | --inf)
499 ac_prev=infodir ;;
500 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
501 infodir="$ac_optarg" ;;
502
503 -libdir | --libdir | --libdi | --libd)
504 ac_prev=libdir ;;
505 -libdir=* | --libdir=* | --libdi=* | --libd=*)
506 libdir="$ac_optarg" ;;
507
508 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
509 | --libexe | --libex | --libe)
510 ac_prev=libexecdir ;;
511 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
512 | --libexe=* | --libex=* | --libe=*)
513 libexecdir="$ac_optarg" ;;
514
515 -localstatedir | --localstatedir | --localstatedi | --localstated \
516 | --localstate | --localstat | --localsta | --localst \
517 | --locals | --local | --loca | --loc | --lo)
518 ac_prev=localstatedir ;;
519 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
520 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
521 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
522 localstatedir="$ac_optarg" ;;
523
524 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
525 ac_prev=mandir ;;
526 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
527 mandir="$ac_optarg" ;;
528
529 -nfp | --nfp | --nf)
530 # Obsolete; use --without-fp.
531 with_fp=no ;;
532
533 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
534 | --no-cr | --no-c)
535 no_create=yes ;;
536
537 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
539 no_recursion=yes ;;
540
541 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
542 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
543 | --oldin | --oldi | --old | --ol | --o)
544 ac_prev=oldincludedir ;;
545 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
546 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
547 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
548 oldincludedir="$ac_optarg" ;;
549
550 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
551 ac_prev=prefix ;;
552 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
553 prefix="$ac_optarg" ;;
554
555 -program-prefix | --program-prefix | --program-prefi | --program-pref \
556 | --program-pre | --program-pr | --program-p)
557 ac_prev=program_prefix ;;
558 -program-prefix=* | --program-prefix=* | --program-prefi=* \
559 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
560 program_prefix="$ac_optarg" ;;
561
562 -program-suffix | --program-suffix | --program-suffi | --program-suff \
563 | --program-suf | --program-su | --program-s)
564 ac_prev=program_suffix ;;
565 -program-suffix=* | --program-suffix=* | --program-suffi=* \
566 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
567 program_suffix="$ac_optarg" ;;
568
569 -program-transform-name | --program-transform-name \
570 | --program-transform-nam | --program-transform-na \
571 | --program-transform-n | --program-transform- \
572 | --program-transform | --program-transfor \
573 | --program-transfo | --program-transf \
574 | --program-trans | --program-tran \
575 | --progr-tra | --program-tr | --program-t)
576 ac_prev=program_transform_name ;;
577 -program-transform-name=* | --program-transform-name=* \
578 | --program-transform-nam=* | --program-transform-na=* \
579 | --program-transform-n=* | --program-transform-=* \
580 | --program-transform=* | --program-transfor=* \
581 | --program-transfo=* | --program-transf=* \
582 | --program-trans=* | --program-tran=* \
583 | --progr-tra=* | --program-tr=* | --program-t=*)
584 program_transform_name="$ac_optarg" ;;
585
586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
587 | -silent | --silent | --silen | --sile | --sil)
588 silent=yes ;;
589
590 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
591 ac_prev=sbindir ;;
592 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
593 | --sbi=* | --sb=*)
594 sbindir="$ac_optarg" ;;
595
596 -sharedstatedir | --sharedstatedir | --sharedstatedi \
597 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
598 | --sharedst | --shareds | --shared | --share | --shar \
599 | --sha | --sh)
600 ac_prev=sharedstatedir ;;
601 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
602 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
603 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
604 | --sha=* | --sh=*)
605 sharedstatedir="$ac_optarg" ;;
606
607 -site | --site | --sit)
608 ac_prev=site ;;
609 -site=* | --site=* | --sit=*)
610 site="$ac_optarg" ;;
611
612 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
613 ac_prev=srcdir ;;
614 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
615 srcdir="$ac_optarg" ;;
616
617 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
618 | --syscon | --sysco | --sysc | --sys | --sy)
619 ac_prev=sysconfdir ;;
620 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
621 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
622 sysconfdir="$ac_optarg" ;;
623
624 -target | --target | --targe | --targ | --tar | --ta | --t)
625 ac_prev=target ;;
626 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
627 target="$ac_optarg" ;;
628
629 -v | -verbose | --verbose | --verbos | --verbo | --verb)
630 verbose=yes ;;
631
632 -version | --version | --versio | --versi | --vers)
633 echo "configure generated by autoconf version 2.13"
634 exit 0 ;;
635
636 -with-* | --with-*)
637 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
638 # Reject names that are not valid shell variable names.
639 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
640 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
641 fi
642 ac_package=`echo $ac_package| sed 's/-/_/g'`
643 case "$ac_option" in
644 *=*) ;;
645 *) ac_optarg=yes ;;
646 esac
647 eval "with_${ac_package}='$ac_optarg'" ;;
648
649 -without-* | --without-*)
650 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
651 # Reject names that are not valid shell variable names.
652 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
653 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
654 fi
655 ac_package=`echo $ac_package| sed 's/-/_/g'`
656 eval "with_${ac_package}=no" ;;
657
658 --x)
659 # Obsolete; use --with-x.
660 with_x=yes ;;
661
662 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
663 | --x-incl | --x-inc | --x-in | --x-i)
664 ac_prev=x_includes ;;
665 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
666 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
667 x_includes="$ac_optarg" ;;
668
669 -x-libraries | --x-libraries | --x-librarie | --x-librari \
670 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
671 ac_prev=x_libraries ;;
672 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
673 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
674 x_libraries="$ac_optarg" ;;
675
676 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
677 ;;
678
679 *)
680 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
681 echo "configure: warning: $ac_option: invalid host type" 1>&2
682 fi
683 if test "x$nonopt" != xNONE; then
684 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
685 fi
686 nonopt="$ac_option"
687 ;;
688
689 esac
690 done
691
692 if test -n "$ac_prev"; then
693 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
694 fi
695
696 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
697
698 # File descriptor usage:
699 # 0 standard input
700 # 1 file creation
701 # 2 errors and warnings
702 # 3 some systems may open it to /dev/tty
703 # 4 used on the Kubota Titan
704 # 6 checking for... messages and results
705 # 5 compiler messages saved in config.log
706 if test "$silent" = yes; then
707 exec 6>/dev/null
708 else
709 exec 6>&1
710 fi
711 exec 5>./config.log
712
713 echo "\
714 This file contains any messages produced by compilers while
715 running configure, to aid debugging if configure makes a mistake.
716 " 1>&5
717
718 # Strip out --no-create and --no-recursion so they do not pile up.
719 # Also quote any args containing shell metacharacters.
720 ac_configure_args=
721 for ac_arg
722 do
723 case "$ac_arg" in
724 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
725 | --no-cr | --no-c) ;;
726 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
727 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
728 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
729 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
730 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
731 esac
732 done
733
734 # NLS nuisances.
735 # Only set these to C if already set. These must not be set unconditionally
736 # because not all systems understand e.g. LANG=C (notably SCO).
737 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
738 # Non-C LC_CTYPE values break the ctype check.
739 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
740 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
741 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
742 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
743
744 # confdefs.h avoids OS command line length limits that DEFS can exceed.
745 rm -rf conftest* confdefs.h
746 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
747 echo > confdefs.h
748
749 # A filename unique to this package, relative to the directory that
750 # configure is in, which we can look for to find out if srcdir is correct.
751 ac_unique_file=wx-config.in
752
753 # Find the source files, if location was not specified.
754 if test -z "$srcdir"; then
755 ac_srcdir_defaulted=yes
756 # Try the directory containing this script, then its parent.
757 ac_prog=$0
758 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
759 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
760 srcdir=$ac_confdir
761 if test ! -r $srcdir/$ac_unique_file; then
762 srcdir=..
763 fi
764 else
765 ac_srcdir_defaulted=no
766 fi
767 if test ! -r $srcdir/$ac_unique_file; then
768 if test "$ac_srcdir_defaulted" = yes; then
769 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
770 else
771 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
772 fi
773 fi
774 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
775
776 # Prefer explicitly selected file to automatically selected ones.
777 if test -z "$CONFIG_SITE"; then
778 if test "x$prefix" != xNONE; then
779 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
780 else
781 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
782 fi
783 fi
784 for ac_site_file in $CONFIG_SITE; do
785 if test -r "$ac_site_file"; then
786 echo "loading site script $ac_site_file"
787 . "$ac_site_file"
788 fi
789 done
790
791 if test -r "$cache_file"; then
792 echo "loading cache $cache_file"
793 . $cache_file
794 else
795 echo "creating cache $cache_file"
796 > $cache_file
797 fi
798
799 ac_ext=c
800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
801 ac_cpp='$CPP $CPPFLAGS'
802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
804 cross_compiling=$ac_cv_prog_cc_cross
805
806 ac_exeext=
807 ac_objext=o
808 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
809 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
810 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
811 ac_n= ac_c='
812 ' ac_t=' '
813 else
814 ac_n=-n ac_c= ac_t=
815 fi
816 else
817 ac_n= ac_c='\c' ac_t=
818 fi
819
820
821
822 ac_aux_dir=
823 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
824 if test -f $ac_dir/install-sh; then
825 ac_aux_dir=$ac_dir
826 ac_install_sh="$ac_aux_dir/install-sh -c"
827 break
828 elif test -f $ac_dir/install.sh; then
829 ac_aux_dir=$ac_dir
830 ac_install_sh="$ac_aux_dir/install.sh -c"
831 break
832 fi
833 done
834 if test -z "$ac_aux_dir"; then
835 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
836 fi
837 ac_config_guess=$ac_aux_dir/config.guess
838 ac_config_sub=$ac_aux_dir/config.sub
839 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
840
841
842 # Do some error checking and defaulting for the host and target type.
843 # The inputs are:
844 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
845 #
846 # The rules are:
847 # 1. You are not allowed to specify --host, --target, and nonopt at the
848 # same time.
849 # 2. Host defaults to nonopt.
850 # 3. If nonopt is not specified, then host defaults to the current host,
851 # as determined by config.guess.
852 # 4. Target and build default to nonopt.
853 # 5. If nonopt is not specified, then target and build default to host.
854
855 # The aliases save the names the user supplied, while $host etc.
856 # will get canonicalized.
857 case $host---$target---$nonopt in
858 NONE---*---* | *---NONE---* | *---*---NONE) ;;
859 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
860 esac
861
862
863 # Make sure we can run config.sub.
864 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
865 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
866 fi
867
868 echo $ac_n "checking host system type""... $ac_c" 1>&6
869 echo "configure:870: checking host system type" >&5
870
871 host_alias=$host
872 case "$host_alias" in
873 NONE)
874 case $nonopt in
875 NONE)
876 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
877 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
878 fi ;;
879 *) host_alias=$nonopt ;;
880 esac ;;
881 esac
882
883 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
884 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
885 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
886 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
887 echo "$ac_t""$host" 1>&6
888
889 echo $ac_n "checking target system type""... $ac_c" 1>&6
890 echo "configure:891: checking target system type" >&5
891
892 target_alias=$target
893 case "$target_alias" in
894 NONE)
895 case $nonopt in
896 NONE) target_alias=$host_alias ;;
897 *) target_alias=$nonopt ;;
898 esac ;;
899 esac
900
901 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
902 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
903 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
904 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905 echo "$ac_t""$target" 1>&6
906
907 echo $ac_n "checking build system type""... $ac_c" 1>&6
908 echo "configure:909: checking build system type" >&5
909
910 build_alias=$build
911 case "$build_alias" in
912 NONE)
913 case $nonopt in
914 NONE) build_alias=$host_alias ;;
915 *) build_alias=$nonopt ;;
916 esac ;;
917 esac
918
919 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
920 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
921 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
922 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
923 echo "$ac_t""$build" 1>&6
924
925 test "$host_alias" != "$target_alias" &&
926 test "$program_prefix$program_suffix$program_transform_name" = \
927 NONENONEs,x,x, &&
928 program_prefix=${target_alias}-
929
930
931
932 WX_MAJOR_VERSION_NUMBER=2
933 WX_MINOR_VERSION_NUMBER=3
934 WX_RELEASE_NUMBER=1
935
936 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
937 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
938
939 WX_CURRENT=0
940 WX_REVISION=0
941 WX_AGE=0
942
943
944
945 USE_UNIX=1
946 USE_WIN32=0
947 USE_BEOS=0
948 USE_MAC=0
949
950 USE_LINUX=
951 USE_SGI=
952 USE_HPUX=
953 USE_SYSV=
954 USE_SVR4=
955 USE_AIX=
956 USE_SUN=
957 USE_SOLARIS=
958 USE_SUNOS=
959 USE_ALPHA=
960 USE_OSF=
961 USE_BSD=
962 USE_FREEBSD=
963 USE_OPENBSD=
964 USE_NETBSD=
965 USE_VMS=
966 USE_ULTRIX=
967 USE_CYGWIN=
968 USE_MINGW=
969 USE_DATA_GENERAL=
970
971 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
972
973 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
974
975 DEFAULT_wxUSE_GTK=0
976 DEFAULT_wxUSE_MOTIF=0
977 DEFAULT_wxUSE_MSW=0
978 DEFAULT_wxUSE_MAC=0
979 DEFAULT_wxUSE_WINE=0
980 DEFAULT_wxUSE_PM=0
981
982 DEFAULT_DEFAULT_wxUSE_GTK=0
983 DEFAULT_DEFAULT_wxUSE_MOTIF=0
984 DEFAULT_DEFAULT_wxUSE_MSW=0
985 DEFAULT_DEFAULT_wxUSE_MAC=0
986 DEFAULT_DEFAULT_wxUSE_WINE=0
987 DEFAULT_DEFAULT_wxUSE_PM=0
988
989 PROGRAM_EXT=
990
991 case "${host}" in
992 *-hp-hpux* )
993 USE_HPUX=1
994 DEFAULT_DEFAULT_wxUSE_MOTIF=1
995 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
996 cat >> confdefs.h <<\EOF
997 #define __HPUX__ 1
998 EOF
999
1000 ;;
1001 *-*-linux* )
1002 USE_LINUX=1
1003 cat >> confdefs.h <<\EOF
1004 #define __LINUX__ 1
1005 EOF
1006
1007 TMP=`uname -m`
1008 if test "x$TMP" = "xalpha"; then
1009 USE_ALPHA=1
1010 cat >> confdefs.h <<\EOF
1011 #define __ALPHA__ 1
1012 EOF
1013
1014 fi
1015 DEFAULT_DEFAULT_wxUSE_GTK=1
1016 ;;
1017 *-*-irix5* | *-*-irix6* )
1018 USE_SGI=1
1019 USE_SVR4=1
1020 cat >> confdefs.h <<\EOF
1021 #define __SGI__ 1
1022 EOF
1023
1024 cat >> confdefs.h <<\EOF
1025 #define __SVR4__ 1
1026 EOF
1027
1028 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1029 ;;
1030 *-*-solaris2* )
1031 USE_SUN=1
1032 USE_SOLARIS=1
1033 USE_SVR4=1
1034 cat >> confdefs.h <<\EOF
1035 #define __SUN__ 1
1036 EOF
1037
1038 cat >> confdefs.h <<\EOF
1039 #define __SOLARIS__ 1
1040 EOF
1041
1042 cat >> confdefs.h <<\EOF
1043 #define __SVR4__ 1
1044 EOF
1045
1046 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1047 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1048 ;;
1049 *-*-sunos4* )
1050 USE_SUN=1
1051 USE_SUNOS=1
1052 USE_BSD=1
1053 cat >> confdefs.h <<\EOF
1054 #define __SUN__ 1
1055 EOF
1056
1057 cat >> confdefs.h <<\EOF
1058 #define __SUNOS__ 1
1059 EOF
1060
1061 cat >> confdefs.h <<\EOF
1062 #define __BSD__ 1
1063 EOF
1064
1065 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1066 ;;
1067 *-*-freebsd*)
1068 USE_BSD=1
1069 USE_FREEBSD=1
1070 cat >> confdefs.h <<\EOF
1071 #define __FREEBSD__ 1
1072 EOF
1073
1074 cat >> confdefs.h <<\EOF
1075 #define __BSD__ 1
1076 EOF
1077
1078 DEFAULT_DEFAULT_wxUSE_GTK=1
1079 ;;
1080 *-*-openbsd*)
1081 USE_BSD=1
1082 USE_OPENBSD=1
1083 cat >> confdefs.h <<\EOF
1084 #define __FREEBSD__ 1
1085 EOF
1086
1087 cat >> confdefs.h <<\EOF
1088 #define __OPENBSD__ 1
1089 EOF
1090
1091 DEFAULT_DEFAULT_wxUSE_GTK=1
1092 ;;
1093 *-*-netbsd*)
1094 USE_BSD=1
1095 USE_NETBSD=1
1096 cat >> confdefs.h <<\EOF
1097 #define __FREEBSD__ 1
1098 EOF
1099
1100 cat >> confdefs.h <<\EOF
1101 #define __NETBSD__ 1
1102 EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_GTK=1
1105 ;;
1106 *-*-osf* )
1107 USE_ALPHA=1
1108 USE_OSF=1
1109 cat >> confdefs.h <<\EOF
1110 #define __ALPHA__ 1
1111 EOF
1112
1113 cat >> confdefs.h <<\EOF
1114 #define __OSF__ 1
1115 EOF
1116
1117 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1118 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1119 ;;
1120 *-*-dgux5* )
1121 USE_ALPHA=1
1122 USE_SVR4=1
1123 cat >> confdefs.h <<\EOF
1124 #define __ALPHA__ 1
1125 EOF
1126
1127 cat >> confdefs.h <<\EOF
1128 #define __SVR4__ 1
1129 EOF
1130
1131 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1132 ;;
1133 *-*-sysv5* )
1134 USE_SYSV=1
1135 USE_SVR4=1
1136 cat >> confdefs.h <<\EOF
1137 #define __SYSV__ 1
1138 EOF
1139
1140 cat >> confdefs.h <<\EOF
1141 #define __SVR4__ 1
1142 EOF
1143
1144 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1145 ;;
1146 *-*-aix* )
1147 USE_AIX=1
1148 USE_SYSV=1
1149 USE_SVR4=1
1150 cat >> confdefs.h <<\EOF
1151 #define __AIX__ 1
1152 EOF
1153
1154 cat >> confdefs.h <<\EOF
1155 #define __SYSV__ 1
1156 EOF
1157
1158 cat >> confdefs.h <<\EOF
1159 #define __SVR4__ 1
1160 EOF
1161
1162 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1163 ;;
1164
1165 *-*-cygwin* | *-*-mingw32* )
1166 USE_UNIX=0
1167 USE_WIN32=1
1168 cat >> confdefs.h <<\EOF
1169 #define __WIN32__ 1
1170 EOF
1171
1172 cat >> confdefs.h <<\EOF
1173 #define __WIN95__ 1
1174 EOF
1175
1176 cat >> confdefs.h <<\EOF
1177 #define __WINDOWS__ 1
1178 EOF
1179
1180 cat >> confdefs.h <<\EOF
1181 #define __GNUWIN32__ 1
1182 EOF
1183
1184 cat >> confdefs.h <<\EOF
1185 #define STRICT 1
1186 EOF
1187
1188 cat >> confdefs.h <<\EOF
1189 #define WINVER 0x0400
1190 EOF
1191
1192 PROGRAM_EXT=".exe"
1193 DEFAULT_DEFAULT_wxUSE_MSW=1
1194 ;;
1195
1196 *-pc-os2_emx )
1197 cat >> confdefs.h <<\EOF
1198 #define __EMX__ 1
1199 EOF
1200
1201 PROGRAM_EXT=".exe"
1202 DEFAULT_DEFAULT_wxUSE_PM=1
1203 ;;
1204
1205 *-*-darwin* )
1206 USE_BSD=1
1207 USE_MAC=1
1208 cat >> confdefs.h <<\EOF
1209 #define __MAC__ 1
1210 EOF
1211
1212 cat >> confdefs.h <<\EOF
1213 #define __BSD__ 1
1214 EOF
1215
1216 cat >> confdefs.h <<\EOF
1217 #define __UNIX__ 1
1218 EOF
1219
1220 DEFAULT_DEFAULT_wxUSE_MAC=1
1221 ;;
1222
1223 *-*-beos* )
1224 USE_BEOS=1
1225 cat >> confdefs.h <<\EOF
1226 #define __BEOS__ 1
1227 EOF
1228
1229 ;;
1230
1231 *)
1232 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1233 esac
1234
1235 if test "$USE_UNIX" = 1 ; then
1236 wxUSE_UNIX=yes
1237 cat >> confdefs.h <<\EOF
1238 #define __UNIX__ 1
1239 EOF
1240
1241
1242 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1243 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1244 fi
1245
1246 if test "$USE_BEOS" = 1; then
1247 SRC_SUBDIRS="$SRC_SUBDIRS be"
1248 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1249 fi
1250
1251 if test "$USE_LINUX" = 1; then
1252 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1253 echo "configure:1254: checking for gettext in -lc" >&5
1254 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1257 else
1258 ac_save_LIBS="$LIBS"
1259 LIBS="-lc $LIBS"
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1263 /* Override any gcc2 internal prototype to avoid an error. */
1264 /* We use char because int might match the return type of a gcc2
1265 builtin and then its argument prototype would still apply. */
1266 char gettext();
1267
1268 int main() {
1269 gettext()
1270 ; return 0; }
1271 EOF
1272 if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1273 rm -rf conftest*
1274 eval "ac_cv_lib_$ac_lib_var=yes"
1275 else
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1278 rm -rf conftest*
1279 eval "ac_cv_lib_$ac_lib_var=no"
1280 fi
1281 rm -f conftest*
1282 LIBS="$ac_save_LIBS"
1283
1284 fi
1285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1286 echo "$ac_t""yes" 1>&6
1287 cat >> confdefs.h <<\EOF
1288 #define wxHAVE_GLIBC2 1
1289 EOF
1290
1291 else
1292 echo "$ac_t""no" 1>&6
1293 fi
1294
1295 fi
1296
1297
1298
1299
1300 wx_arg_cache_file="configarg.cache"
1301 echo "loading argument cache $wx_arg_cache_file"
1302 rm -f ${wx_arg_cache_file}.tmp
1303 touch ${wx_arg_cache_file}.tmp
1304 touch ${wx_arg_cache_file}
1305
1306
1307 DEBUG_CONFIGURE=0
1308 if test $DEBUG_CONFIGURE = 1; then
1309 DEFAULT_wxUSE_THREADS=yes
1310
1311 DEFAULT_wxUSE_SHARED=yes
1312 DEFAULT_wxUSE_BURNT_NAME=no
1313 DEFAULT_wxUSE_OPTIMISE=yes
1314 DEFAULT_wxUSE_PROFILE=no
1315 DEFAULT_wxUSE_NO_DEPS=no
1316 DEFAULT_wxUSE_NO_RTTI=no
1317 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1318 DEFAULT_wxUSE_PERMISSIVE=no
1319 DEFAULT_wxUSE_DEBUG_FLAG=yes
1320 DEFAULT_wxUSE_DEBUG_INFO=yes
1321 DEFAULT_wxUSE_DEBUG_GDB=yes
1322 DEFAULT_wxUSE_MEM_TRACING=no
1323 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1324 DEFAULT_wxUSE_DMALLOC=no
1325 DEFAULT_wxUSE_APPLE_IEEE=no
1326
1327 DEFAULT_wxUSE_LOG=yes
1328
1329 DEFAULT_wxUSE_GUI=yes
1330
1331 DEFAULT_wxUSE_ZLIB=no
1332 DEFAULT_wxUSE_LIBPNG=no
1333 DEFAULT_wxUSE_LIBJPEG=no
1334 DEFAULT_wxUSE_LIBTIFF=no
1335 DEFAULT_wxUSE_ODBC=no
1336 DEFAULT_wxUSE_FREETYPE=no
1337 DEFAULT_wxUSE_OPENGL=no
1338
1339 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1340 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1341 DEFAULT_wxUSE_STD_IOSTREAM=no
1342 DEFAULT_wxUSE_FILE=no
1343 DEFAULT_wxUSE_TEXTFILE=no
1344 DEFAULT_wxUSE_TIMEDATE=no
1345 DEFAULT_wxUSE_WAVE=no
1346 DEFAULT_wxUSE_INTL=no
1347 DEFAULT_wxUSE_CONFIG=no
1348 DEFAULT_wxUSE_STREAMS=no
1349 DEFAULT_wxUSE_SOCKETS=no
1350 DEFAULT_wxUSE_DIALUP_MANAGER=no
1351 DEFAULT_wxUSE_SERIAL=no
1352 DEFAULT_wxUSE_JOYSTICK=no
1353 DEFAULT_wxUSE_DYNLIB_CLASS=no
1354 DEFAULT_wxUSE_LONGLONG=no
1355 DEFAULT_wxUSE_GEOMETRY=no
1356
1357 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1358 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1359 DEFAULT_wxUSE_POSTSCRIPT=no
1360
1361 DEFAULT_wxUSE_X_RESOURCES=no
1362 DEFAULT_wxUSE_CLIPBOARD=no
1363 DEFAULT_wxUSE_TOOLTIPS=no
1364 DEFAULT_wxUSE_DRAG_AND_DROP=no
1365 DEFAULT_wxUSE_SPLINES=no
1366
1367 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1368 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1369 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1370
1371 DEFAULT_wxUSE_PROLOGIO=no
1372 DEFAULT_wxUSE_RESOURCES=no
1373 DEFAULT_wxUSE_CONSTRAINTS=no
1374 DEFAULT_wxUSE_IPC=no
1375 DEFAULT_wxUSE_HELP=no
1376 DEFAULT_wxUSE_WXTREE=no
1377 DEFAULT_wxUSE_METAFILE=no
1378
1379 DEFAULT_wxUSE_COMMONDLGS=no
1380 DEFAULT_wxUSE_DIRDLG=no
1381 DEFAULT_wxUSE_TEXTDLG=no
1382 DEFAULT_wxUSE_STARTUP_TIPS=no
1383 DEFAULT_wxUSE_PROGRESSDLG=no
1384 DEFAULT_wxUSE_MINIFRAME=no
1385 DEFAULT_wxUSE_HTML=no
1386 DEFAULT_wxUSE_FILESYSTEM=no
1387 DEFAULT_wxUSE_FS_INET=no
1388 DEFAULT_wxUSE_FS_ZIP=no
1389 DEFAULT_wxUSE_BUSYINFO=no
1390 DEFAULT_wxUSE_ZIPSTREAM=no
1391 DEFAULT_wxUSE_VALIDATORS=yes
1392
1393 DEFAULT_wxUSE_ACCEL=no
1394 DEFAULT_wxUSE_CARET=no
1395 DEFAULT_wxUSE_BMPBUTTON=no
1396 DEFAULT_wxUSE_CHECKBOX=no
1397 DEFAULT_wxUSE_CHECKLST=no
1398 DEFAULT_wxUSE_CHOICE=yes
1399 DEFAULT_wxUSE_COMBOBOX=no
1400 DEFAULT_wxUSE_GAUGE=no
1401 DEFAULT_wxUSE_GRID=no
1402 DEFAULT_wxUSE_NEW_GRID=no
1403 DEFAULT_wxUSE_IMAGLIST=no
1404 DEFAULT_wxUSE_LISTBOX=no
1405 DEFAULT_wxUSE_LISTCTRL=no
1406 DEFAULT_wxUSE_NOTEBOOK=no
1407 DEFAULT_wxUSE_RADIOBOX=no
1408 DEFAULT_wxUSE_RADIOBTN=no
1409 DEFAULT_wxUSE_SASH=no
1410 DEFAULT_wxUSE_SCROLLBAR=no
1411 DEFAULT_wxUSE_SLIDER=no
1412 DEFAULT_wxUSE_SPINBTN=no
1413 DEFAULT_wxUSE_SPINCTRL=no
1414 DEFAULT_wxUSE_SPLITTER=no
1415 DEFAULT_wxUSE_STATBMP=no
1416 DEFAULT_wxUSE_STATBOX=no
1417 DEFAULT_wxUSE_STATLINE=no
1418 DEFAULT_wxUSE_STATUSBAR=yes
1419 DEFAULT_wxUSE_TABDIALOG=no
1420 DEFAULT_wxUSE_TOGGLEBTN=no
1421 DEFAULT_wxUSE_TOOLBAR=no
1422 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1423 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1424 DEFAULT_wxUSE_TREECTRL=no
1425
1426 DEFAULT_wxUSE_UNICODE=no
1427 DEFAULT_wxUSE_WCSRTOMBS=no
1428
1429 DEFAULT_wxUSE_IMAGE=no
1430 DEFAULT_wxUSE_GIF=no
1431 DEFAULT_wxUSE_PCX=no
1432 DEFAULT_wxUSE_PNM=no
1433 DEFAULT_wxUSE_XPM=no
1434 else
1435 DEFAULT_wxUSE_THREADS=yes
1436
1437 DEFAULT_wxUSE_SHARED=yes
1438 DEFAULT_wxUSE_BURNT_NAME=no
1439 DEFAULT_wxUSE_OPTIMISE=yes
1440 DEFAULT_wxUSE_PROFILE=no
1441 DEFAULT_wxUSE_NO_DEPS=no
1442 DEFAULT_wxUSE_NO_RTTI=no
1443 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1444 DEFAULT_wxUSE_PERMISSIVE=no
1445 DEFAULT_wxUSE_DEBUG_FLAG=no
1446 DEFAULT_wxUSE_DEBUG_INFO=no
1447 DEFAULT_wxUSE_DEBUG_GDB=no
1448 DEFAULT_wxUSE_MEM_TRACING=no
1449 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1450 DEFAULT_wxUSE_DMALLOC=no
1451 DEFAULT_wxUSE_APPLE_IEEE=yes
1452
1453 DEFAULT_wxUSE_LOG=yes
1454
1455 DEFAULT_wxUSE_GUI=yes
1456
1457 DEFAULT_wxUSE_ZLIB=yes
1458 DEFAULT_wxUSE_LIBPNG=yes
1459 DEFAULT_wxUSE_LIBJPEG=yes
1460 DEFAULT_wxUSE_LIBTIFF=yes
1461 DEFAULT_wxUSE_ODBC=no
1462 DEFAULT_wxUSE_FREETYPE=no
1463 DEFAULT_wxUSE_OPENGL=no
1464
1465 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1466 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1467 DEFAULT_wxUSE_STD_IOSTREAM=no
1468 DEFAULT_wxUSE_FILE=yes
1469 DEFAULT_wxUSE_TEXTFILE=yes
1470 DEFAULT_wxUSE_TIMEDATE=yes
1471 DEFAULT_wxUSE_WAVE=no
1472 DEFAULT_wxUSE_INTL=yes
1473 DEFAULT_wxUSE_CONFIG=yes
1474 DEFAULT_wxUSE_STREAMS=yes
1475 DEFAULT_wxUSE_SOCKETS=yes
1476 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1477 DEFAULT_wxUSE_SERIAL=yes
1478 DEFAULT_wxUSE_JOYSTICK=yes
1479 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1480 DEFAULT_wxUSE_LONGLONG=yes
1481 DEFAULT_wxUSE_GEOMETRY=yes
1482
1483 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1484 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1485 DEFAULT_wxUSE_POSTSCRIPT=yes
1486
1487 DEFAULT_wxUSE_X_RESOURCES=no
1488 DEFAULT_wxUSE_CLIPBOARD=yes
1489 DEFAULT_wxUSE_TOOLTIPS=yes
1490 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1491 DEFAULT_wxUSE_SPLINES=yes
1492
1493 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1494 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1495 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1496
1497 DEFAULT_wxUSE_PROLOGIO=yes
1498 DEFAULT_wxUSE_RESOURCES=yes
1499 DEFAULT_wxUSE_CONSTRAINTS=yes
1500 DEFAULT_wxUSE_IPC=yes
1501 DEFAULT_wxUSE_HELP=yes
1502 DEFAULT_wxUSE_WXTREE=yes
1503 DEFAULT_wxUSE_METAFILE=yes
1504
1505 DEFAULT_wxUSE_COMMONDLGS=yes
1506 DEFAULT_wxUSE_DIRDLG=yes
1507 DEFAULT_wxUSE_TEXTDLG=yes
1508 DEFAULT_wxUSE_STARTUP_TIPS=yes
1509 DEFAULT_wxUSE_PROGRESSDLG=yes
1510 DEFAULT_wxUSE_MINIFRAME=yes
1511 DEFAULT_wxUSE_HTML=yes
1512 DEFAULT_wxUSE_FILESYSTEM=yes
1513 DEFAULT_wxUSE_FS_INET=yes
1514 DEFAULT_wxUSE_FS_ZIP=yes
1515 DEFAULT_wxUSE_BUSYINFO=yes
1516 DEFAULT_wxUSE_ZIPSTREAM=yes
1517 DEFAULT_wxUSE_VALIDATORS=yes
1518
1519 DEFAULT_wxUSE_ACCEL=yes
1520 DEFAULT_wxUSE_CARET=yes
1521 DEFAULT_wxUSE_BMPBUTTON=yes
1522 DEFAULT_wxUSE_CHECKBOX=yes
1523 DEFAULT_wxUSE_CHECKLST=yes
1524 DEFAULT_wxUSE_CHOICE=yes
1525 DEFAULT_wxUSE_COMBOBOX=yes
1526 DEFAULT_wxUSE_GAUGE=yes
1527 DEFAULT_wxUSE_GRID=yes
1528 DEFAULT_wxUSE_NEW_GRID=yes
1529 DEFAULT_wxUSE_IMAGLIST=yes
1530 DEFAULT_wxUSE_LISTBOX=yes
1531 DEFAULT_wxUSE_LISTCTRL=yes
1532 DEFAULT_wxUSE_NOTEBOOK=yes
1533 DEFAULT_wxUSE_RADIOBOX=yes
1534 DEFAULT_wxUSE_RADIOBTN=yes
1535 DEFAULT_wxUSE_SASH=yes
1536 DEFAULT_wxUSE_SCROLLBAR=yes
1537 DEFAULT_wxUSE_SLIDER=yes
1538 DEFAULT_wxUSE_SPINBTN=yes
1539 DEFAULT_wxUSE_SPINCTRL=yes
1540 DEFAULT_wxUSE_SPLITTER=yes
1541 DEFAULT_wxUSE_STATBMP=yes
1542 DEFAULT_wxUSE_STATBOX=yes
1543 DEFAULT_wxUSE_STATLINE=yes
1544 DEFAULT_wxUSE_STATUSBAR=yes
1545 DEFAULT_wxUSE_TABDIALOG=no
1546 DEFAULT_wxUSE_TOGGLEBTN=yes
1547 DEFAULT_wxUSE_TOOLBAR=yes
1548 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1549 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1550 DEFAULT_wxUSE_TREECTRL=yes
1551
1552 DEFAULT_wxUSE_UNICODE=no
1553 DEFAULT_wxUSE_WCSRTOMBS=no
1554
1555 DEFAULT_wxUSE_IMAGE=yes
1556 DEFAULT_wxUSE_GIF=yes
1557 DEFAULT_wxUSE_PCX=yes
1558 DEFAULT_wxUSE_PNM=yes
1559 DEFAULT_wxUSE_XPM=yes
1560 fi
1561
1562
1563
1564 for toolkit in `echo $ALL_TOOLKITS`; do
1565 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1566 if test "x$LINE" != x ; then
1567 has_toolkit_in_cache=1
1568 eval "DEFAULT_$LINE"
1569 eval "CACHE_$toolkit=1"
1570 fi
1571 done
1572
1573
1574
1575 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1576 echo "configure:1577: checking "for --enable-gui"" >&5
1577 no_cache=0
1578 # Check whether --enable-gui or --disable-gui was given.
1579 if test "${enable_gui+set}" = set; then
1580 enableval="$enable_gui"
1581
1582 if test "$enableval" = yes; then
1583 ac_cv_use_gui='wxUSE_GUI=yes'
1584 else
1585 ac_cv_use_gui='wxUSE_GUI=no'
1586 fi
1587
1588 else
1589
1590 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1591 if test "x$LINE" != x ; then
1592 eval "DEFAULT_$LINE"
1593 else
1594 no_cache=1
1595 fi
1596
1597 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1598
1599 fi
1600
1601
1602 eval "$ac_cv_use_gui"
1603 if test "$no_cache" != 1; then
1604 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1605 fi
1606
1607 if test "$wxUSE_GUI" = yes; then
1608 echo "$ac_t""yes" 1>&6
1609 else
1610 echo "$ac_t""no" 1>&6
1611 fi
1612
1613
1614 if test "$wxUSE_GUI" = "yes"; then
1615
1616 # Check whether --with-gtk or --without-gtk was given.
1617 if test "${with_gtk+set}" = set; then
1618 withval="$with_gtk"
1619 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1620 fi
1621
1622 # Check whether --with-motif or --without-motif was given.
1623 if test "${with_motif+set}" = set; then
1624 withval="$with_motif"
1625 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1626 fi
1627
1628 # Check whether --with-mac or --without-mac was given.
1629 if test "${with_mac+set}" = set; then
1630 withval="$with_mac"
1631 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1632 fi
1633
1634 # Check whether --with-wine or --without-wine was given.
1635 if test "${with_wine+set}" = set; then
1636 withval="$with_wine"
1637 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1638 fi
1639
1640 # Check whether --with-cygwin or --without-cygwin was given.
1641 if test "${with_cygwin+set}" = set; then
1642 withval="$with_cygwin"
1643 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1644 fi
1645
1646 # Check whether --with-mingw or --without-mingw was given.
1647 if test "${with_mingw+set}" = set; then
1648 withval="$with_mingw"
1649 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1650 fi
1651
1652 # Check whether --with-pm or --without-pm was given.
1653 if test "${with_pm+set}" = set; then
1654 withval="$with_pm"
1655 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1656 fi
1657
1658
1659 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1660 if test "${with_gtk_prefix+set}" = set; then
1661 withval="$with_gtk_prefix"
1662 gtk_config_prefix="$withval"
1663 else
1664 gtk_config_prefix=""
1665 fi
1666
1667 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1668 if test "${with_gtk_exec_prefix+set}" = set; then
1669 withval="$with_gtk_exec_prefix"
1670 gtk_config_exec_prefix="$withval"
1671 else
1672 gtk_config_exec_prefix=""
1673 fi
1674
1675
1676
1677 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1678 echo "configure:1679: checking "for --with-libpng"" >&5
1679 no_cache=0
1680 # Check whether --with-libpng or --without-libpng was given.
1681 if test "${with_libpng+set}" = set; then
1682 withval="$with_libpng"
1683
1684 if test "$withval" = yes; then
1685 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1686 elif test "$withval" = no; then
1687 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1688 elif test "$withval" = sys; then
1689 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1690 else
1691 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1692 fi
1693
1694 else
1695
1696 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1697 if test "x$LINE" != x ; then
1698 eval "DEFAULT_$LINE"
1699 else
1700 no_cache=1
1701 fi
1702
1703 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1704
1705 fi
1706
1707
1708 eval "$ac_cv_use_libpng"
1709 if test "$no_cache" != 1; then
1710 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1711 fi
1712
1713 if test "$wxUSE_LIBPNG" = yes; then
1714 echo "$ac_t""yes" 1>&6
1715 elif test "$wxUSE_LIBPNG" = no; then
1716 echo "$ac_t""no" 1>&6
1717 elif test "$wxUSE_LIBPNG" = sys; then
1718 echo "$ac_t""system version" 1>&6
1719 else
1720 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1721 fi
1722
1723
1724 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1725 echo "configure:1726: checking "for --with-libjpeg"" >&5
1726 no_cache=0
1727 # Check whether --with-libjpeg or --without-libjpeg was given.
1728 if test "${with_libjpeg+set}" = set; then
1729 withval="$with_libjpeg"
1730
1731 if test "$withval" = yes; then
1732 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1733 elif test "$withval" = no; then
1734 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1735 elif test "$withval" = sys; then
1736 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1737 else
1738 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1739 fi
1740
1741 else
1742
1743 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1744 if test "x$LINE" != x ; then
1745 eval "DEFAULT_$LINE"
1746 else
1747 no_cache=1
1748 fi
1749
1750 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1751
1752 fi
1753
1754
1755 eval "$ac_cv_use_libjpeg"
1756 if test "$no_cache" != 1; then
1757 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1758 fi
1759
1760 if test "$wxUSE_LIBJPEG" = yes; then
1761 echo "$ac_t""yes" 1>&6
1762 elif test "$wxUSE_LIBJPEG" = no; then
1763 echo "$ac_t""no" 1>&6
1764 elif test "$wxUSE_LIBJPEG" = sys; then
1765 echo "$ac_t""system version" 1>&6
1766 else
1767 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1768 fi
1769
1770
1771 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1772 echo "configure:1773: checking "for --with-libtiff"" >&5
1773 no_cache=0
1774 # Check whether --with-libtiff or --without-libtiff was given.
1775 if test "${with_libtiff+set}" = set; then
1776 withval="$with_libtiff"
1777
1778 if test "$withval" = yes; then
1779 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1780 elif test "$withval" = no; then
1781 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1782 elif test "$withval" = sys; then
1783 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1784 else
1785 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1786 fi
1787
1788 else
1789
1790 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1791 if test "x$LINE" != x ; then
1792 eval "DEFAULT_$LINE"
1793 else
1794 no_cache=1
1795 fi
1796
1797 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1798
1799 fi
1800
1801
1802 eval "$ac_cv_use_libtiff"
1803 if test "$no_cache" != 1; then
1804 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1805 fi
1806
1807 if test "$wxUSE_LIBTIFF" = yes; then
1808 echo "$ac_t""yes" 1>&6
1809 elif test "$wxUSE_LIBTIFF" = no; then
1810 echo "$ac_t""no" 1>&6
1811 elif test "$wxUSE_LIBTIFF" = sys; then
1812 echo "$ac_t""system version" 1>&6
1813 else
1814 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1815 fi
1816
1817
1818 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
1819 echo "configure:1820: checking "for --with-freetype"" >&5
1820 no_cache=0
1821 # Check whether --with-freetype or --without-freetype was given.
1822 if test "${with_freetype+set}" = set; then
1823 withval="$with_freetype"
1824
1825 if test "$withval" = yes; then
1826 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1827 elif test "$withval" = no; then
1828 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1829 elif test "$withval" = sys; then
1830 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1831 else
1832 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1833 fi
1834
1835 else
1836
1837 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1838 if test "x$LINE" != x ; then
1839 eval "DEFAULT_$LINE"
1840 else
1841 no_cache=1
1842 fi
1843
1844 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1845
1846 fi
1847
1848
1849 eval "$ac_cv_use_freetype"
1850 if test "$no_cache" != 1; then
1851 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1852 fi
1853
1854 if test "$wxUSE_FREETYPE" = yes; then
1855 echo "$ac_t""yes" 1>&6
1856 elif test "$wxUSE_FREETYPE" = no; then
1857 echo "$ac_t""no" 1>&6
1858 elif test "$wxUSE_FREETYPE" = sys; then
1859 echo "$ac_t""system version" 1>&6
1860 else
1861 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1862 fi
1863
1864
1865 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1866 echo "configure:1867: checking "for --with-opengl"" >&5
1867 no_cache=0
1868 # Check whether --with-opengl or --without-opengl was given.
1869 if test "${with_opengl+set}" = set; then
1870 withval="$with_opengl"
1871
1872 if test "$withval" = yes; then
1873 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1874 else
1875 ac_cv_use_opengl='wxUSE_OPENGL=no'
1876 fi
1877
1878 else
1879
1880 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1881 if test "x$LINE" != x ; then
1882 eval "DEFAULT_$LINE"
1883 else
1884 no_cache=1
1885 fi
1886
1887 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1888
1889 fi
1890
1891
1892 eval "$ac_cv_use_opengl"
1893 if test "$no_cache" != 1; then
1894 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1895 fi
1896
1897 if test "$wxUSE_OPENGL" = yes; then
1898 echo "$ac_t""yes" 1>&6
1899 else
1900 echo "$ac_t""no" 1>&6
1901 fi
1902
1903
1904 fi
1905
1906
1907 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1908 echo "configure:1909: checking "for --with-dmalloc"" >&5
1909 no_cache=0
1910 # Check whether --with-dmalloc or --without-dmalloc was given.
1911 if test "${with_dmalloc+set}" = set; then
1912 withval="$with_dmalloc"
1913
1914 if test "$withval" = yes; then
1915 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1916 else
1917 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1918 fi
1919
1920 else
1921
1922 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1923 if test "x$LINE" != x ; then
1924 eval "DEFAULT_$LINE"
1925 else
1926 no_cache=1
1927 fi
1928
1929 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1930
1931 fi
1932
1933
1934 eval "$ac_cv_use_dmalloc"
1935 if test "$no_cache" != 1; then
1936 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1937 fi
1938
1939 if test "$wxUSE_DMALLOC" = yes; then
1940 echo "$ac_t""yes" 1>&6
1941 else
1942 echo "$ac_t""no" 1>&6
1943 fi
1944
1945
1946 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1947 echo "configure:1948: checking "for --with-zlib"" >&5
1948 no_cache=0
1949 # Check whether --with-zlib or --without-zlib was given.
1950 if test "${with_zlib+set}" = set; then
1951 withval="$with_zlib"
1952
1953 if test "$withval" = yes; then
1954 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1955 elif test "$withval" = no; then
1956 ac_cv_use_zlib='wxUSE_ZLIB=no'
1957 elif test "$withval" = sys; then
1958 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1959 else
1960 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1961 fi
1962
1963 else
1964
1965 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1966 if test "x$LINE" != x ; then
1967 eval "DEFAULT_$LINE"
1968 else
1969 no_cache=1
1970 fi
1971
1972 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1973
1974 fi
1975
1976
1977 eval "$ac_cv_use_zlib"
1978 if test "$no_cache" != 1; then
1979 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1980 fi
1981
1982 if test "$wxUSE_ZLIB" = yes; then
1983 echo "$ac_t""yes" 1>&6
1984 elif test "$wxUSE_ZLIB" = no; then
1985 echo "$ac_t""no" 1>&6
1986 elif test "$wxUSE_ZLIB" = sys; then
1987 echo "$ac_t""system version" 1>&6
1988 else
1989 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1990 fi
1991
1992
1993 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1994 echo "configure:1995: checking "for --with-odbc"" >&5
1995 no_cache=0
1996 # Check whether --with-odbc or --without-odbc was given.
1997 if test "${with_odbc+set}" = set; then
1998 withval="$with_odbc"
1999
2000 if test "$withval" = yes; then
2001 ac_cv_use_odbc='wxUSE_ODBC=yes'
2002 else
2003 ac_cv_use_odbc='wxUSE_ODBC=no'
2004 fi
2005
2006 else
2007
2008 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2009 if test "x$LINE" != x ; then
2010 eval "DEFAULT_$LINE"
2011 else
2012 no_cache=1
2013 fi
2014
2015 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2016
2017 fi
2018
2019
2020 eval "$ac_cv_use_odbc"
2021 if test "$no_cache" != 1; then
2022 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2023 fi
2024
2025 if test "$wxUSE_ODBC" = yes; then
2026 echo "$ac_t""yes" 1>&6
2027 else
2028 echo "$ac_t""no" 1>&6
2029 fi
2030
2031
2032
2033
2034
2035 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
2036 echo "configure:2037: checking "for --enable-shared"" >&5
2037 no_cache=0
2038 # Check whether --enable-shared or --disable-shared was given.
2039 if test "${enable_shared+set}" = set; then
2040 enableval="$enable_shared"
2041
2042 if test "$enableval" = yes; then
2043 ac_cv_use_shared='wxUSE_SHARED=yes'
2044 else
2045 ac_cv_use_shared='wxUSE_SHARED=no'
2046 fi
2047
2048 else
2049
2050 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2051 if test "x$LINE" != x ; then
2052 eval "DEFAULT_$LINE"
2053 else
2054 no_cache=1
2055 fi
2056
2057 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2058
2059 fi
2060
2061
2062 eval "$ac_cv_use_shared"
2063 if test "$no_cache" != 1; then
2064 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2065 fi
2066
2067 if test "$wxUSE_SHARED" = yes; then
2068 echo "$ac_t""yes" 1>&6
2069 else
2070 echo "$ac_t""no" 1>&6
2071 fi
2072
2073
2074 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
2075 echo "configure:2076: checking "for --enable-burnt_name"" >&5
2076 no_cache=0
2077 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2078 if test "${enable_burnt_name+set}" = set; then
2079 enableval="$enable_burnt_name"
2080
2081 if test "$enableval" = yes; then
2082 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2083 else
2084 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2085 fi
2086
2087 else
2088
2089 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2090 if test "x$LINE" != x ; then
2091 eval "DEFAULT_$LINE"
2092 else
2093 no_cache=1
2094 fi
2095
2096 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2097
2098 fi
2099
2100
2101 eval "$ac_cv_use_burnt_name"
2102 if test "$no_cache" != 1; then
2103 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2104 fi
2105
2106 if test "$wxUSE_BURNT_NAME" = yes; then
2107 echo "$ac_t""yes" 1>&6
2108 else
2109 echo "$ac_t""no" 1>&6
2110 fi
2111
2112
2113 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
2114 echo "configure:2115: checking "for --enable-optimise"" >&5
2115 no_cache=0
2116 # Check whether --enable-optimise or --disable-optimise was given.
2117 if test "${enable_optimise+set}" = set; then
2118 enableval="$enable_optimise"
2119
2120 if test "$enableval" = yes; then
2121 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2122 else
2123 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2124 fi
2125
2126 else
2127
2128 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2129 if test "x$LINE" != x ; then
2130 eval "DEFAULT_$LINE"
2131 else
2132 no_cache=1
2133 fi
2134
2135 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2136
2137 fi
2138
2139
2140 eval "$ac_cv_use_optimise"
2141 if test "$no_cache" != 1; then
2142 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2143 fi
2144
2145 if test "$wxUSE_OPTIMISE" = yes; then
2146 echo "$ac_t""yes" 1>&6
2147 else
2148 echo "$ac_t""no" 1>&6
2149 fi
2150
2151
2152 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
2153 echo "configure:2154: checking "for --enable-debug"" >&5
2154 no_cache=0
2155 # Check whether --enable-debug or --disable-debug was given.
2156 if test "${enable_debug+set}" = set; then
2157 enableval="$enable_debug"
2158
2159 if test "$enableval" = yes; then
2160 ac_cv_use_debug='wxUSE_DEBUG=yes'
2161 else
2162 ac_cv_use_debug='wxUSE_DEBUG=no'
2163 fi
2164
2165 else
2166
2167 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2168 if test "x$LINE" != x ; then
2169 eval "DEFAULT_$LINE"
2170 else
2171 no_cache=1
2172 fi
2173
2174 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2175
2176 fi
2177
2178
2179 eval "$ac_cv_use_debug"
2180 if test "$no_cache" != 1; then
2181 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2182 fi
2183
2184 if test "$wxUSE_DEBUG" = yes; then
2185 echo "$ac_t""yes" 1>&6
2186 else
2187 echo "$ac_t""no" 1>&6
2188 fi
2189
2190
2191 if test "$wxUSE_DEBUG" = "yes"; then
2192 DEFAULT_wxUSE_DEBUG_FLAG=yes
2193 DEFAULT_wxUSE_DEBUG_INFO=yes
2194 elif test "$wxUSE_DEBUG" = "no"; then
2195 DEFAULT_wxUSE_DEBUG_FLAG=no
2196 DEFAULT_wxUSE_DEBUG_INFO=no
2197 fi
2198
2199
2200 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2201 echo "configure:2202: checking "for --enable-debug_flag"" >&5
2202 no_cache=0
2203 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2204 if test "${enable_debug_flag+set}" = set; then
2205 enableval="$enable_debug_flag"
2206
2207 if test "$enableval" = yes; then
2208 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2209 else
2210 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2211 fi
2212
2213 else
2214
2215 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2216 if test "x$LINE" != x ; then
2217 eval "DEFAULT_$LINE"
2218 else
2219 no_cache=1
2220 fi
2221
2222 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2223
2224 fi
2225
2226
2227 eval "$ac_cv_use_debug_flag"
2228 if test "$no_cache" != 1; then
2229 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2230 fi
2231
2232 if test "$wxUSE_DEBUG_FLAG" = yes; then
2233 echo "$ac_t""yes" 1>&6
2234 else
2235 echo "$ac_t""no" 1>&6
2236 fi
2237
2238
2239 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2240 echo "configure:2241: checking "for --enable-debug_info"" >&5
2241 no_cache=0
2242 # Check whether --enable-debug_info or --disable-debug_info was given.
2243 if test "${enable_debug_info+set}" = set; then
2244 enableval="$enable_debug_info"
2245
2246 if test "$enableval" = yes; then
2247 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2248 else
2249 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2250 fi
2251
2252 else
2253
2254 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2255 if test "x$LINE" != x ; then
2256 eval "DEFAULT_$LINE"
2257 else
2258 no_cache=1
2259 fi
2260
2261 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2262
2263 fi
2264
2265
2266 eval "$ac_cv_use_debug_info"
2267 if test "$no_cache" != 1; then
2268 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2269 fi
2270
2271 if test "$wxUSE_DEBUG_INFO" = yes; then
2272 echo "$ac_t""yes" 1>&6
2273 else
2274 echo "$ac_t""no" 1>&6
2275 fi
2276
2277
2278 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2279 echo "configure:2280: checking "for --enable-debug_gdb"" >&5
2280 no_cache=0
2281 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2282 if test "${enable_debug_gdb+set}" = set; then
2283 enableval="$enable_debug_gdb"
2284
2285 if test "$enableval" = yes; then
2286 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2287 else
2288 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2289 fi
2290
2291 else
2292
2293 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2294 if test "x$LINE" != x ; then
2295 eval "DEFAULT_$LINE"
2296 else
2297 no_cache=1
2298 fi
2299
2300 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2301
2302 fi
2303
2304
2305 eval "$ac_cv_use_debug_gdb"
2306 if test "$no_cache" != 1; then
2307 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2308 fi
2309
2310 if test "$wxUSE_DEBUG_GDB" = yes; then
2311 echo "$ac_t""yes" 1>&6
2312 else
2313 echo "$ac_t""no" 1>&6
2314 fi
2315
2316
2317 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2318 echo "configure:2319: checking "for --enable-debug_cntxt"" >&5
2319 no_cache=0
2320 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2321 if test "${enable_debug_cntxt+set}" = set; then
2322 enableval="$enable_debug_cntxt"
2323
2324 if test "$enableval" = yes; then
2325 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2326 else
2327 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2328 fi
2329
2330 else
2331
2332 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2333 if test "x$LINE" != x ; then
2334 eval "DEFAULT_$LINE"
2335 else
2336 no_cache=1
2337 fi
2338
2339 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2340
2341 fi
2342
2343
2344 eval "$ac_cv_use_debug_cntxt"
2345 if test "$no_cache" != 1; then
2346 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2347 fi
2348
2349 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2350 echo "$ac_t""yes" 1>&6
2351 else
2352 echo "$ac_t""no" 1>&6
2353 fi
2354
2355
2356 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2357 echo "configure:2358: checking "for --enable-mem_tracing"" >&5
2358 no_cache=0
2359 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2360 if test "${enable_mem_tracing+set}" = set; then
2361 enableval="$enable_mem_tracing"
2362
2363 if test "$enableval" = yes; then
2364 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2365 else
2366 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2367 fi
2368
2369 else
2370
2371 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2372 if test "x$LINE" != x ; then
2373 eval "DEFAULT_$LINE"
2374 else
2375 no_cache=1
2376 fi
2377
2378 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2379
2380 fi
2381
2382
2383 eval "$ac_cv_use_mem_tracing"
2384 if test "$no_cache" != 1; then
2385 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2386 fi
2387
2388 if test "$wxUSE_MEM_TRACING" = yes; then
2389 echo "$ac_t""yes" 1>&6
2390 else
2391 echo "$ac_t""no" 1>&6
2392 fi
2393
2394
2395 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2396 echo "configure:2397: checking "for --enable-profile"" >&5
2397 no_cache=0
2398 # Check whether --enable-profile or --disable-profile was given.
2399 if test "${enable_profile+set}" = set; then
2400 enableval="$enable_profile"
2401
2402 if test "$enableval" = yes; then
2403 ac_cv_use_profile='wxUSE_PROFILE=yes'
2404 else
2405 ac_cv_use_profile='wxUSE_PROFILE=no'
2406 fi
2407
2408 else
2409
2410 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2411 if test "x$LINE" != x ; then
2412 eval "DEFAULT_$LINE"
2413 else
2414 no_cache=1
2415 fi
2416
2417 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2418
2419 fi
2420
2421
2422 eval "$ac_cv_use_profile"
2423 if test "$no_cache" != 1; then
2424 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2425 fi
2426
2427 if test "$wxUSE_PROFILE" = yes; then
2428 echo "$ac_t""yes" 1>&6
2429 else
2430 echo "$ac_t""no" 1>&6
2431 fi
2432
2433
2434 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2435 echo "configure:2436: checking "for --enable-no_rtti"" >&5
2436 no_cache=0
2437 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2438 if test "${enable_no_rtti+set}" = set; then
2439 enableval="$enable_no_rtti"
2440
2441 if test "$enableval" = yes; then
2442 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2443 else
2444 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2445 fi
2446
2447 else
2448
2449 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2457
2458 fi
2459
2460
2461 eval "$ac_cv_use_no_rtti"
2462 if test "$no_cache" != 1; then
2463 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2464 fi
2465
2466 if test "$wxUSE_NO_RTTI" = yes; then
2467 echo "$ac_t""yes" 1>&6
2468 else
2469 echo "$ac_t""no" 1>&6
2470 fi
2471
2472
2473 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2474 echo "configure:2475: checking "for --enable-no_exceptions"" >&5
2475 no_cache=0
2476 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2477 if test "${enable_no_exceptions+set}" = set; then
2478 enableval="$enable_no_exceptions"
2479
2480 if test "$enableval" = yes; then
2481 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2482 else
2483 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2484 fi
2485
2486 else
2487
2488 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2489 if test "x$LINE" != x ; then
2490 eval "DEFAULT_$LINE"
2491 else
2492 no_cache=1
2493 fi
2494
2495 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2496
2497 fi
2498
2499
2500 eval "$ac_cv_use_no_exceptions"
2501 if test "$no_cache" != 1; then
2502 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2503 fi
2504
2505 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2506 echo "$ac_t""yes" 1>&6
2507 else
2508 echo "$ac_t""no" 1>&6
2509 fi
2510
2511
2512 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2513 echo "configure:2514: checking "for --enable-permissive"" >&5
2514 no_cache=0
2515 # Check whether --enable-permissive or --disable-permissive was given.
2516 if test "${enable_permissive+set}" = set; then
2517 enableval="$enable_permissive"
2518
2519 if test "$enableval" = yes; then
2520 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2521 else
2522 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2523 fi
2524
2525 else
2526
2527 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2528 if test "x$LINE" != x ; then
2529 eval "DEFAULT_$LINE"
2530 else
2531 no_cache=1
2532 fi
2533
2534 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2535
2536 fi
2537
2538
2539 eval "$ac_cv_use_permissive"
2540 if test "$no_cache" != 1; then
2541 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2542 fi
2543
2544 if test "$wxUSE_PERMISSIVE" = yes; then
2545 echo "$ac_t""yes" 1>&6
2546 else
2547 echo "$ac_t""no" 1>&6
2548 fi
2549
2550
2551 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2552 echo "configure:2553: checking "for --enable-no_deps"" >&5
2553 no_cache=0
2554 # Check whether --enable-no_deps or --disable-no_deps was given.
2555 if test "${enable_no_deps+set}" = set; then
2556 enableval="$enable_no_deps"
2557
2558 if test "$enableval" = yes; then
2559 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2560 else
2561 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2562 fi
2563
2564 else
2565
2566 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2567 if test "x$LINE" != x ; then
2568 eval "DEFAULT_$LINE"
2569 else
2570 no_cache=1
2571 fi
2572
2573 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2574
2575 fi
2576
2577
2578 eval "$ac_cv_use_no_deps"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_NO_DEPS" = yes; then
2584 echo "$ac_t""yes" 1>&6
2585 else
2586 echo "$ac_t""no" 1>&6
2587 fi
2588
2589
2590
2591
2592 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2593 echo "configure:2594: checking "for --enable-intl"" >&5
2594 no_cache=0
2595 # Check whether --enable-intl or --disable-intl was given.
2596 if test "${enable_intl+set}" = set; then
2597 enableval="$enable_intl"
2598
2599 if test "$enableval" = yes; then
2600 ac_cv_use_intl='wxUSE_INTL=yes'
2601 else
2602 ac_cv_use_intl='wxUSE_INTL=no'
2603 fi
2604
2605 else
2606
2607 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2608 if test "x$LINE" != x ; then
2609 eval "DEFAULT_$LINE"
2610 else
2611 no_cache=1
2612 fi
2613
2614 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2615
2616 fi
2617
2618
2619 eval "$ac_cv_use_intl"
2620 if test "$no_cache" != 1; then
2621 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2622 fi
2623
2624 if test "$wxUSE_INTL" = yes; then
2625 echo "$ac_t""yes" 1>&6
2626 else
2627 echo "$ac_t""no" 1>&6
2628 fi
2629
2630
2631 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2632 echo "configure:2633: checking "for --enable-config"" >&5
2633 no_cache=0
2634 # Check whether --enable-config or --disable-config was given.
2635 if test "${enable_config+set}" = set; then
2636 enableval="$enable_config"
2637
2638 if test "$enableval" = yes; then
2639 ac_cv_use_config='wxUSE_CONFIG=yes'
2640 else
2641 ac_cv_use_config='wxUSE_CONFIG=no'
2642 fi
2643
2644 else
2645
2646 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2647 if test "x$LINE" != x ; then
2648 eval "DEFAULT_$LINE"
2649 else
2650 no_cache=1
2651 fi
2652
2653 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2654
2655 fi
2656
2657
2658 eval "$ac_cv_use_config"
2659 if test "$no_cache" != 1; then
2660 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2661 fi
2662
2663 if test "$wxUSE_CONFIG" = yes; then
2664 echo "$ac_t""yes" 1>&6
2665 else
2666 echo "$ac_t""no" 1>&6
2667 fi
2668
2669
2670
2671 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2672 echo "configure:2673: checking "for --enable-sockets"" >&5
2673 no_cache=0
2674 # Check whether --enable-sockets or --disable-sockets was given.
2675 if test "${enable_sockets+set}" = set; then
2676 enableval="$enable_sockets"
2677
2678 if test "$enableval" = yes; then
2679 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2680 else
2681 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2682 fi
2683
2684 else
2685
2686 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2687 if test "x$LINE" != x ; then
2688 eval "DEFAULT_$LINE"
2689 else
2690 no_cache=1
2691 fi
2692
2693 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2694
2695 fi
2696
2697
2698 eval "$ac_cv_use_sockets"
2699 if test "$no_cache" != 1; then
2700 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2701 fi
2702
2703 if test "$wxUSE_SOCKETS" = yes; then
2704 echo "$ac_t""yes" 1>&6
2705 else
2706 echo "$ac_t""no" 1>&6
2707 fi
2708
2709
2710
2711 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2712 echo "configure:2713: checking "for --enable-ipc"" >&5
2713 no_cache=0
2714 # Check whether --enable-ipc or --disable-ipc was given.
2715 if test "${enable_ipc+set}" = set; then
2716 enableval="$enable_ipc"
2717
2718 if test "$enableval" = yes; then
2719 ac_cv_use_ipc='wxUSE_IPC=yes'
2720 else
2721 ac_cv_use_ipc='wxUSE_IPC=no'
2722 fi
2723
2724 else
2725
2726 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2727 if test "x$LINE" != x ; then
2728 eval "DEFAULT_$LINE"
2729 else
2730 no_cache=1
2731 fi
2732
2733 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2734
2735 fi
2736
2737
2738 eval "$ac_cv_use_ipc"
2739 if test "$no_cache" != 1; then
2740 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2741 fi
2742
2743 if test "$wxUSE_IPC" = yes; then
2744 echo "$ac_t""yes" 1>&6
2745 else
2746 echo "$ac_t""no" 1>&6
2747 fi
2748
2749
2750
2751 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2752 echo "configure:2753: checking "for --enable-dialupman"" >&5
2753 no_cache=0
2754 # Check whether --enable-dialupman or --disable-dialupman was given.
2755 if test "${enable_dialupman+set}" = set; then
2756 enableval="$enable_dialupman"
2757
2758 if test "$enableval" = yes; then
2759 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2760 else
2761 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2762 fi
2763
2764 else
2765
2766 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2767 if test "x$LINE" != x ; then
2768 eval "DEFAULT_$LINE"
2769 else
2770 no_cache=1
2771 fi
2772
2773 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2774
2775 fi
2776
2777
2778 eval "$ac_cv_use_dialupman"
2779 if test "$no_cache" != 1; then
2780 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2781 fi
2782
2783 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2784 echo "$ac_t""yes" 1>&6
2785 else
2786 echo "$ac_t""no" 1>&6
2787 fi
2788
2789
2790 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2791 echo "configure:2792: checking "for --enable-apple_ieee"" >&5
2792 no_cache=0
2793 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2794 if test "${enable_apple_ieee+set}" = set; then
2795 enableval="$enable_apple_ieee"
2796
2797 if test "$enableval" = yes; then
2798 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2799 else
2800 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2801 fi
2802
2803 else
2804
2805 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2806 if test "x$LINE" != x ; then
2807 eval "DEFAULT_$LINE"
2808 else
2809 no_cache=1
2810 fi
2811
2812 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2813
2814 fi
2815
2816
2817 eval "$ac_cv_use_apple_ieee"
2818 if test "$no_cache" != 1; then
2819 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2820 fi
2821
2822 if test "$wxUSE_APPLE_IEEE" = yes; then
2823 echo "$ac_t""yes" 1>&6
2824 else
2825 echo "$ac_t""no" 1>&6
2826 fi
2827
2828
2829 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2830 echo "configure:2831: checking "for --enable-timedate"" >&5
2831 no_cache=0
2832 # Check whether --enable-timedate or --disable-timedate was given.
2833 if test "${enable_timedate+set}" = set; then
2834 enableval="$enable_timedate"
2835
2836 if test "$enableval" = yes; then
2837 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2838 else
2839 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2840 fi
2841
2842 else
2843
2844 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2845 if test "x$LINE" != x ; then
2846 eval "DEFAULT_$LINE"
2847 else
2848 no_cache=1
2849 fi
2850
2851 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2852
2853 fi
2854
2855
2856 eval "$ac_cv_use_timedate"
2857 if test "$no_cache" != 1; then
2858 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2859 fi
2860
2861 if test "$wxUSE_TIMEDATE" = yes; then
2862 echo "$ac_t""yes" 1>&6
2863 else
2864 echo "$ac_t""no" 1>&6
2865 fi
2866
2867
2868 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2869 echo "configure:2870: checking "for --enable-wave"" >&5
2870 no_cache=0
2871 # Check whether --enable-wave or --disable-wave was given.
2872 if test "${enable_wave+set}" = set; then
2873 enableval="$enable_wave"
2874
2875 if test "$enableval" = yes; then
2876 ac_cv_use_wave='wxUSE_WAVE=yes'
2877 else
2878 ac_cv_use_wave='wxUSE_WAVE=no'
2879 fi
2880
2881 else
2882
2883 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2884 if test "x$LINE" != x ; then
2885 eval "DEFAULT_$LINE"
2886 else
2887 no_cache=1
2888 fi
2889
2890 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2891
2892 fi
2893
2894
2895 eval "$ac_cv_use_wave"
2896 if test "$no_cache" != 1; then
2897 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2898 fi
2899
2900 if test "$wxUSE_WAVE" = yes; then
2901 echo "$ac_t""yes" 1>&6
2902 else
2903 echo "$ac_t""no" 1>&6
2904 fi
2905
2906
2907 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2908 echo "configure:2909: checking "for --enable-fraction"" >&5
2909 no_cache=0
2910 # Check whether --enable-fraction or --disable-fraction was given.
2911 if test "${enable_fraction+set}" = set; then
2912 enableval="$enable_fraction"
2913
2914 if test "$enableval" = yes; then
2915 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2916 else
2917 ac_cv_use_fraction='wxUSE_FRACTION=no'
2918 fi
2919
2920 else
2921
2922 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2923 if test "x$LINE" != x ; then
2924 eval "DEFAULT_$LINE"
2925 else
2926 no_cache=1
2927 fi
2928
2929 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2930
2931 fi
2932
2933
2934 eval "$ac_cv_use_fraction"
2935 if test "$no_cache" != 1; then
2936 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2937 fi
2938
2939 if test "$wxUSE_FRACTION" = yes; then
2940 echo "$ac_t""yes" 1>&6
2941 else
2942 echo "$ac_t""no" 1>&6
2943 fi
2944
2945
2946 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2947 echo "configure:2948: checking "for --enable-dynlib"" >&5
2948 no_cache=0
2949 # Check whether --enable-dynlib or --disable-dynlib was given.
2950 if test "${enable_dynlib+set}" = set; then
2951 enableval="$enable_dynlib"
2952
2953 if test "$enableval" = yes; then
2954 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2955 else
2956 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2957 fi
2958
2959 else
2960
2961 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2969
2970 fi
2971
2972
2973 eval "$ac_cv_use_dynlib"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2979 echo "$ac_t""yes" 1>&6
2980 else
2981 echo "$ac_t""no" 1>&6
2982 fi
2983
2984
2985 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2986 echo "configure:2987: checking "for --enable-longlong"" >&5
2987 no_cache=0
2988 # Check whether --enable-longlong or --disable-longlong was given.
2989 if test "${enable_longlong+set}" = set; then
2990 enableval="$enable_longlong"
2991
2992 if test "$enableval" = yes; then
2993 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2994 else
2995 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2996 fi
2997
2998 else
2999
3000 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
3007 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3008
3009 fi
3010
3011
3012 eval "$ac_cv_use_longlong"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$wxUSE_LONGLONG" = yes; then
3018 echo "$ac_t""yes" 1>&6
3019 else
3020 echo "$ac_t""no" 1>&6
3021 fi
3022
3023
3024 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
3025 echo "configure:3026: checking "for --enable-geometry"" >&5
3026 no_cache=0
3027 # Check whether --enable-geometry or --disable-geometry was given.
3028 if test "${enable_geometry+set}" = set; then
3029 enableval="$enable_geometry"
3030
3031 if test "$enableval" = yes; then
3032 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3033 else
3034 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3035 fi
3036
3037 else
3038
3039 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3047
3048 fi
3049
3050
3051 eval "$ac_cv_use_geometry"
3052 if test "$no_cache" != 1; then
3053 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3054 fi
3055
3056 if test "$wxUSE_GEOMETRY" = yes; then
3057 echo "$ac_t""yes" 1>&6
3058 else
3059 echo "$ac_t""no" 1>&6
3060 fi
3061
3062
3063 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
3064 echo "configure:3065: checking "for --enable-log"" >&5
3065 no_cache=0
3066 # Check whether --enable-log or --disable-log was given.
3067 if test "${enable_log+set}" = set; then
3068 enableval="$enable_log"
3069
3070 if test "$enableval" = yes; then
3071 ac_cv_use_log='wxUSE_LOG=yes'
3072 else
3073 ac_cv_use_log='wxUSE_LOG=no'
3074 fi
3075
3076 else
3077
3078 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3079 if test "x$LINE" != x ; then
3080 eval "DEFAULT_$LINE"
3081 else
3082 no_cache=1
3083 fi
3084
3085 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3086
3087 fi
3088
3089
3090 eval "$ac_cv_use_log"
3091 if test "$no_cache" != 1; then
3092 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3093 fi
3094
3095 if test "$wxUSE_LOG" = yes; then
3096 echo "$ac_t""yes" 1>&6
3097 else
3098 echo "$ac_t""no" 1>&6
3099 fi
3100
3101
3102 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
3103 echo "configure:3104: checking "for --enable-streams"" >&5
3104 no_cache=0
3105 # Check whether --enable-streams or --disable-streams was given.
3106 if test "${enable_streams+set}" = set; then
3107 enableval="$enable_streams"
3108
3109 if test "$enableval" = yes; then
3110 ac_cv_use_streams='wxUSE_STREAMS=yes'
3111 else
3112 ac_cv_use_streams='wxUSE_STREAMS=no'
3113 fi
3114
3115 else
3116
3117 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3125
3126 fi
3127
3128
3129 eval "$ac_cv_use_streams"
3130 if test "$no_cache" != 1; then
3131 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3132 fi
3133
3134 if test "$wxUSE_STREAMS" = yes; then
3135 echo "$ac_t""yes" 1>&6
3136 else
3137 echo "$ac_t""no" 1>&6
3138 fi
3139
3140
3141 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
3142 echo "configure:3143: checking "for --enable-file"" >&5
3143 no_cache=0
3144 # Check whether --enable-file or --disable-file was given.
3145 if test "${enable_file+set}" = set; then
3146 enableval="$enable_file"
3147
3148 if test "$enableval" = yes; then
3149 ac_cv_use_file='wxUSE_FILE=yes'
3150 else
3151 ac_cv_use_file='wxUSE_FILE=no'
3152 fi
3153
3154 else
3155
3156 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3157 if test "x$LINE" != x ; then
3158 eval "DEFAULT_$LINE"
3159 else
3160 no_cache=1
3161 fi
3162
3163 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3164
3165 fi
3166
3167
3168 eval "$ac_cv_use_file"
3169 if test "$no_cache" != 1; then
3170 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3171 fi
3172
3173 if test "$wxUSE_FILE" = yes; then
3174 echo "$ac_t""yes" 1>&6
3175 else
3176 echo "$ac_t""no" 1>&6
3177 fi
3178
3179
3180 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
3181 echo "configure:3182: checking "for --enable-textfile"" >&5
3182 no_cache=0
3183 # Check whether --enable-textfile or --disable-textfile was given.
3184 if test "${enable_textfile+set}" = set; then
3185 enableval="$enable_textfile"
3186
3187 if test "$enableval" = yes; then
3188 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3189 else
3190 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3191 fi
3192
3193 else
3194
3195 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3196 if test "x$LINE" != x ; then
3197 eval "DEFAULT_$LINE"
3198 else
3199 no_cache=1
3200 fi
3201
3202 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3203
3204 fi
3205
3206
3207 eval "$ac_cv_use_textfile"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$wxUSE_TEXTFILE" = yes; then
3213 echo "$ac_t""yes" 1>&6
3214 else
3215 echo "$ac_t""no" 1>&6
3216 fi
3217
3218
3219 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3220 echo "configure:3221: checking "for --enable-unicode"" >&5
3221 no_cache=0
3222 # Check whether --enable-unicode or --disable-unicode was given.
3223 if test "${enable_unicode+set}" = set; then
3224 enableval="$enable_unicode"
3225
3226 if test "$enableval" = yes; then
3227 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3228 else
3229 ac_cv_use_unicode='wxUSE_UNICODE=no'
3230 fi
3231
3232 else
3233
3234 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3235 if test "x$LINE" != x ; then
3236 eval "DEFAULT_$LINE"
3237 else
3238 no_cache=1
3239 fi
3240
3241 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3242
3243 fi
3244
3245
3246 eval "$ac_cv_use_unicode"
3247 if test "$no_cache" != 1; then
3248 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3249 fi
3250
3251 if test "$wxUSE_UNICODE" = yes; then
3252 echo "$ac_t""yes" 1>&6
3253 else
3254 echo "$ac_t""no" 1>&6
3255 fi
3256
3257
3258 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3259 echo "configure:3260: checking "for --enable-wcsrtombs"" >&5
3260 no_cache=0
3261 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3262 if test "${enable_wcsrtombs+set}" = set; then
3263 enableval="$enable_wcsrtombs"
3264
3265 if test "$enableval" = yes; then
3266 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3267 else
3268 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3269 fi
3270
3271 else
3272
3273 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3274 if test "x$LINE" != x ; then
3275 eval "DEFAULT_$LINE"
3276 else
3277 no_cache=1
3278 fi
3279
3280 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3281
3282 fi
3283
3284
3285 eval "$ac_cv_use_wcsrtombs"
3286 if test "$no_cache" != 1; then
3287 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3288 fi
3289
3290 if test "$wxUSE_WCSRTOMBS" = yes; then
3291 echo "$ac_t""yes" 1>&6
3292 else
3293 echo "$ac_t""no" 1>&6
3294 fi
3295
3296
3297 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3298 echo "configure:3299: checking "for --enable-wxprintfv"" >&5
3299 no_cache=0
3300 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3301 if test "${enable_wxprintfv+set}" = set; then
3302 enableval="$enable_wxprintfv"
3303
3304 if test "$enableval" = yes; then
3305 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3306 else
3307 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3308 fi
3309
3310 else
3311
3312 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3320
3321 fi
3322
3323
3324 eval "$ac_cv_use_wxprintfv"
3325 if test "$no_cache" != 1; then
3326 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3327 fi
3328
3329 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3330 echo "$ac_t""yes" 1>&6
3331 else
3332 echo "$ac_t""no" 1>&6
3333 fi
3334
3335
3336 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3337 echo "configure:3338: checking "for --enable-std_iostreams"" >&5
3338 no_cache=0
3339 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3340 if test "${enable_std_iostreams+set}" = set; then
3341 enableval="$enable_std_iostreams"
3342
3343 if test "$enableval" = yes; then
3344 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3345 else
3346 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3347 fi
3348
3349 else
3350
3351 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3352 if test "x$LINE" != x ; then
3353 eval "DEFAULT_$LINE"
3354 else
3355 no_cache=1
3356 fi
3357
3358 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3359
3360 fi
3361
3362
3363 eval "$ac_cv_use_std_iostreams"
3364 if test "$no_cache" != 1; then
3365 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3366 fi
3367
3368 if test "$wxUSE_STD_IOSTREAM" = yes; then
3369 echo "$ac_t""yes" 1>&6
3370 else
3371 echo "$ac_t""no" 1>&6
3372 fi
3373
3374
3375 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3376 echo "configure:3377: checking "for --enable-filesystem"" >&5
3377 no_cache=0
3378 # Check whether --enable-filesystem or --disable-filesystem was given.
3379 if test "${enable_filesystem+set}" = set; then
3380 enableval="$enable_filesystem"
3381
3382 if test "$enableval" = yes; then
3383 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3384 else
3385 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3386 fi
3387
3388 else
3389
3390 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3391 if test "x$LINE" != x ; then
3392 eval "DEFAULT_$LINE"
3393 else
3394 no_cache=1
3395 fi
3396
3397 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3398
3399 fi
3400
3401
3402 eval "$ac_cv_use_filesystem"
3403 if test "$no_cache" != 1; then
3404 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3405 fi
3406
3407 if test "$wxUSE_FILESYSTEM" = yes; then
3408 echo "$ac_t""yes" 1>&6
3409 else
3410 echo "$ac_t""no" 1>&6
3411 fi
3412
3413
3414 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3415 echo "configure:3416: checking "for --enable-fs_inet"" >&5
3416 no_cache=0
3417 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3418 if test "${enable_fs_inet+set}" = set; then
3419 enableval="$enable_fs_inet"
3420
3421 if test "$enableval" = yes; then
3422 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3423 else
3424 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3425 fi
3426
3427 else
3428
3429 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3437
3438 fi
3439
3440
3441 eval "$ac_cv_use_fs_inet"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_FS_INET" = yes; then
3447 echo "$ac_t""yes" 1>&6
3448 else
3449 echo "$ac_t""no" 1>&6
3450 fi
3451
3452
3453 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3454 echo "configure:3455: checking "for --enable-fs_zip"" >&5
3455 no_cache=0
3456 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3457 if test "${enable_fs_zip+set}" = set; then
3458 enableval="$enable_fs_zip"
3459
3460 if test "$enableval" = yes; then
3461 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3462 else
3463 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3464 fi
3465
3466 else
3467
3468 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3469 if test "x$LINE" != x ; then
3470 eval "DEFAULT_$LINE"
3471 else
3472 no_cache=1
3473 fi
3474
3475 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3476
3477 fi
3478
3479
3480 eval "$ac_cv_use_fs_zip"
3481 if test "$no_cache" != 1; then
3482 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3483 fi
3484
3485 if test "$wxUSE_FS_ZIP" = yes; then
3486 echo "$ac_t""yes" 1>&6
3487 else
3488 echo "$ac_t""no" 1>&6
3489 fi
3490
3491
3492 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3493 echo "configure:3494: checking "for --enable-zipstream"" >&5
3494 no_cache=0
3495 # Check whether --enable-zipstream or --disable-zipstream was given.
3496 if test "${enable_zipstream+set}" = set; then
3497 enableval="$enable_zipstream"
3498
3499 if test "$enableval" = yes; then
3500 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3501 else
3502 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3503 fi
3504
3505 else
3506
3507 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3508 if test "x$LINE" != x ; then
3509 eval "DEFAULT_$LINE"
3510 else
3511 no_cache=1
3512 fi
3513
3514 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3515
3516 fi
3517
3518
3519 eval "$ac_cv_use_zipstream"
3520 if test "$no_cache" != 1; then
3521 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3522 fi
3523
3524 if test "$wxUSE_ZIPSTREAM" = yes; then
3525 echo "$ac_t""yes" 1>&6
3526 else
3527 echo "$ac_t""no" 1>&6
3528 fi
3529
3530
3531
3532 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
3533 echo "configure:3534: checking "for --enable-catch_segvs"" >&5
3534 no_cache=0
3535 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3536 if test "${enable_catch_segvs+set}" = set; then
3537 enableval="$enable_catch_segvs"
3538
3539 if test "$enableval" = yes; then
3540 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3541 else
3542 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3543 fi
3544
3545 else
3546
3547 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3548 if test "x$LINE" != x ; then
3549 eval "DEFAULT_$LINE"
3550 else
3551 no_cache=1
3552 fi
3553
3554 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3555
3556 fi
3557
3558
3559 eval "$ac_cv_use_catch_segvs"
3560 if test "$no_cache" != 1; then
3561 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3562 fi
3563
3564 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3565 echo "$ac_t""yes" 1>&6
3566 else
3567 echo "$ac_t""no" 1>&6
3568 fi
3569
3570
3571 echo $ac_n "checking "for --enable-snglinst"""... $ac_c" 1>&6
3572 echo "configure:3573: checking "for --enable-snglinst"" >&5
3573 no_cache=0
3574 # Check whether --enable-snglinst or --disable-snglinst was given.
3575 if test "${enable_snglinst+set}" = set; then
3576 enableval="$enable_snglinst"
3577
3578 if test "$enableval" = yes; then
3579 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
3580 else
3581 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
3582 fi
3583
3584 else
3585
3586 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
3587 if test "x$LINE" != x ; then
3588 eval "DEFAULT_$LINE"
3589 else
3590 no_cache=1
3591 fi
3592
3593 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
3594
3595 fi
3596
3597
3598 eval "$ac_cv_use_snglinst"
3599 if test "$no_cache" != 1; then
3600 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
3601 fi
3602
3603 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
3604 echo "$ac_t""yes" 1>&6
3605 else
3606 echo "$ac_t""no" 1>&6
3607 fi
3608
3609
3610
3611
3612 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3613 echo "configure:3614: checking "for --enable-threads"" >&5
3614 no_cache=0
3615 # Check whether --enable-threads or --disable-threads was given.
3616 if test "${enable_threads+set}" = set; then
3617 enableval="$enable_threads"
3618
3619 if test "$enableval" = yes; then
3620 ac_cv_use_threads='wxUSE_THREADS=yes'
3621 else
3622 ac_cv_use_threads='wxUSE_THREADS=no'
3623 fi
3624
3625 else
3626
3627 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3628 if test "x$LINE" != x ; then
3629 eval "DEFAULT_$LINE"
3630 else
3631 no_cache=1
3632 fi
3633
3634 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3635
3636 fi
3637
3638
3639 eval "$ac_cv_use_threads"
3640 if test "$no_cache" != 1; then
3641 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3642 fi
3643
3644 if test "$wxUSE_THREADS" = yes; then
3645 echo "$ac_t""yes" 1>&6
3646 else
3647 echo "$ac_t""no" 1>&6
3648 fi
3649
3650
3651 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3652 echo "configure:3653: checking "for --enable-serial"" >&5
3653 no_cache=0
3654 # Check whether --enable-serial or --disable-serial was given.
3655 if test "${enable_serial+set}" = set; then
3656 enableval="$enable_serial"
3657
3658 if test "$enableval" = yes; then
3659 ac_cv_use_serial='wxUSE_SERIAL=yes'
3660 else
3661 ac_cv_use_serial='wxUSE_SERIAL=no'
3662 fi
3663
3664 else
3665
3666 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3667 if test "x$LINE" != x ; then
3668 eval "DEFAULT_$LINE"
3669 else
3670 no_cache=1
3671 fi
3672
3673 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3674
3675 fi
3676
3677
3678 eval "$ac_cv_use_serial"
3679 if test "$no_cache" != 1; then
3680 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3681 fi
3682
3683 if test "$wxUSE_SERIAL" = yes; then
3684 echo "$ac_t""yes" 1>&6
3685 else
3686 echo "$ac_t""no" 1>&6
3687 fi
3688
3689
3690 if test "$wxUSE_GUI" = "yes"; then
3691
3692
3693
3694 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3695 echo "configure:3696: checking "for --enable-docview"" >&5
3696 no_cache=0
3697 # Check whether --enable-docview or --disable-docview was given.
3698 if test "${enable_docview+set}" = set; then
3699 enableval="$enable_docview"
3700
3701 if test "$enableval" = yes; then
3702 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3703 else
3704 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3705 fi
3706
3707 else
3708
3709 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3710 if test "x$LINE" != x ; then
3711 eval "DEFAULT_$LINE"
3712 else
3713 no_cache=1
3714 fi
3715
3716 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3717
3718 fi
3719
3720
3721 eval "$ac_cv_use_docview"
3722 if test "$no_cache" != 1; then
3723 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3724 fi
3725
3726 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3727 echo "$ac_t""yes" 1>&6
3728 else
3729 echo "$ac_t""no" 1>&6
3730 fi
3731
3732
3733 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3734 echo "configure:3735: checking "for --enable-help"" >&5
3735 no_cache=0
3736 # Check whether --enable-help or --disable-help was given.
3737 if test "${enable_help+set}" = set; then
3738 enableval="$enable_help"
3739
3740 if test "$enableval" = yes; then
3741 ac_cv_use_help='wxUSE_HELP=yes'
3742 else
3743 ac_cv_use_help='wxUSE_HELP=no'
3744 fi
3745
3746 else
3747
3748 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3749 if test "x$LINE" != x ; then
3750 eval "DEFAULT_$LINE"
3751 else
3752 no_cache=1
3753 fi
3754
3755 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3756
3757 fi
3758
3759
3760 eval "$ac_cv_use_help"
3761 if test "$no_cache" != 1; then
3762 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3763 fi
3764
3765 if test "$wxUSE_HELP" = yes; then
3766 echo "$ac_t""yes" 1>&6
3767 else
3768 echo "$ac_t""no" 1>&6
3769 fi
3770
3771
3772 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3773 echo "configure:3774: checking "for --enable-constraints"" >&5
3774 no_cache=0
3775 # Check whether --enable-constraints or --disable-constraints was given.
3776 if test "${enable_constraints+set}" = set; then
3777 enableval="$enable_constraints"
3778
3779 if test "$enableval" = yes; then
3780 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3781 else
3782 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3783 fi
3784
3785 else
3786
3787 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3795
3796 fi
3797
3798
3799 eval "$ac_cv_use_constraints"
3800 if test "$no_cache" != 1; then
3801 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3802 fi
3803
3804 if test "$wxUSE_CONSTRAINTS" = yes; then
3805 echo "$ac_t""yes" 1>&6
3806 else
3807 echo "$ac_t""no" 1>&6
3808 fi
3809
3810
3811 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3812 echo "configure:3813: checking "for --enable-printarch"" >&5
3813 no_cache=0
3814 # Check whether --enable-printarch or --disable-printarch was given.
3815 if test "${enable_printarch+set}" = set; then
3816 enableval="$enable_printarch"
3817
3818 if test "$enableval" = yes; then
3819 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3820 else
3821 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3822 fi
3823
3824 else
3825
3826 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3827 if test "x$LINE" != x ; then
3828 eval "DEFAULT_$LINE"
3829 else
3830 no_cache=1
3831 fi
3832
3833 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3834
3835 fi
3836
3837
3838 eval "$ac_cv_use_printarch"
3839 if test "$no_cache" != 1; then
3840 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3841 fi
3842
3843 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3844 echo "$ac_t""yes" 1>&6
3845 else
3846 echo "$ac_t""no" 1>&6
3847 fi
3848
3849
3850 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3851 echo "configure:3852: checking "for --enable-mdi"" >&5
3852 no_cache=0
3853 # Check whether --enable-mdi or --disable-mdi was given.
3854 if test "${enable_mdi+set}" = set; then
3855 enableval="$enable_mdi"
3856
3857 if test "$enableval" = yes; then
3858 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3859 else
3860 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3861 fi
3862
3863 else
3864
3865 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3866 if test "x$LINE" != x ; then
3867 eval "DEFAULT_$LINE"
3868 else
3869 no_cache=1
3870 fi
3871
3872 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3873
3874 fi
3875
3876
3877 eval "$ac_cv_use_mdi"
3878 if test "$no_cache" != 1; then
3879 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3880 fi
3881
3882 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3883 echo "$ac_t""yes" 1>&6
3884 else
3885 echo "$ac_t""no" 1>&6
3886 fi
3887
3888
3889
3890 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3891 echo "configure:3892: checking "for --enable-postscript"" >&5
3892 no_cache=0
3893 # Check whether --enable-postscript or --disable-postscript was given.
3894 if test "${enable_postscript+set}" = set; then
3895 enableval="$enable_postscript"
3896
3897 if test "$enableval" = yes; then
3898 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3899 else
3900 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3901 fi
3902
3903 else
3904
3905 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3906 if test "x$LINE" != x ; then
3907 eval "DEFAULT_$LINE"
3908 else
3909 no_cache=1
3910 fi
3911
3912 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3913
3914 fi
3915
3916
3917 eval "$ac_cv_use_postscript"
3918 if test "$no_cache" != 1; then
3919 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3920 fi
3921
3922 if test "$wxUSE_POSTSCRIPT" = yes; then
3923 echo "$ac_t""yes" 1>&6
3924 else
3925 echo "$ac_t""no" 1>&6
3926 fi
3927
3928
3929
3930
3931 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3932 echo "configure:3933: checking "for --enable-prologio"" >&5
3933 no_cache=0
3934 # Check whether --enable-prologio or --disable-prologio was given.
3935 if test "${enable_prologio+set}" = set; then
3936 enableval="$enable_prologio"
3937
3938 if test "$enableval" = yes; then
3939 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3940 else
3941 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3942 fi
3943
3944 else
3945
3946 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3947 if test "x$LINE" != x ; then
3948 eval "DEFAULT_$LINE"
3949 else
3950 no_cache=1
3951 fi
3952
3953 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3954
3955 fi
3956
3957
3958 eval "$ac_cv_use_prologio"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_PROLOGIO" = yes; then
3964 echo "$ac_t""yes" 1>&6
3965 else
3966 echo "$ac_t""no" 1>&6
3967 fi
3968
3969
3970 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3971 echo "configure:3972: checking "for --enable-resources"" >&5
3972 no_cache=0
3973 # Check whether --enable-resources or --disable-resources was given.
3974 if test "${enable_resources+set}" = set; then
3975 enableval="$enable_resources"
3976
3977 if test "$enableval" = yes; then
3978 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3979 else
3980 ac_cv_use_resources='wxUSE_RESOURCES=no'
3981 fi
3982
3983 else
3984
3985 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3993
3994 fi
3995
3996
3997 eval "$ac_cv_use_resources"
3998 if test "$no_cache" != 1; then
3999 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4000 fi
4001
4002 if test "$wxUSE_RESOURCES" = yes; then
4003 echo "$ac_t""yes" 1>&6
4004 else
4005 echo "$ac_t""no" 1>&6
4006 fi
4007
4008
4009
4010 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
4011 echo "configure:4012: checking "for --enable-xresources"" >&5
4012 no_cache=0
4013 # Check whether --enable-xresources or --disable-xresources was given.
4014 if test "${enable_xresources+set}" = set; then
4015 enableval="$enable_xresources"
4016
4017 if test "$enableval" = yes; then
4018 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4019 else
4020 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4021 fi
4022
4023 else
4024
4025 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4026 if test "x$LINE" != x ; then
4027 eval "DEFAULT_$LINE"
4028 else
4029 no_cache=1
4030 fi
4031
4032 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4033
4034 fi
4035
4036
4037 eval "$ac_cv_use_xresources"
4038 if test "$no_cache" != 1; then
4039 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4040 fi
4041
4042 if test "$wxUSE_X_RESOURCES" = yes; then
4043 echo "$ac_t""yes" 1>&6
4044 else
4045 echo "$ac_t""no" 1>&6
4046 fi
4047
4048
4049
4050
4051 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
4052 echo "configure:4053: checking "for --enable-clipboard"" >&5
4053 no_cache=0
4054 # Check whether --enable-clipboard or --disable-clipboard was given.
4055 if test "${enable_clipboard+set}" = set; then
4056 enableval="$enable_clipboard"
4057
4058 if test "$enableval" = yes; then
4059 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4060 else
4061 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4062 fi
4063
4064 else
4065
4066 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4067 if test "x$LINE" != x ; then
4068 eval "DEFAULT_$LINE"
4069 else
4070 no_cache=1
4071 fi
4072
4073 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4074
4075 fi
4076
4077
4078 eval "$ac_cv_use_clipboard"
4079 if test "$no_cache" != 1; then
4080 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4081 fi
4082
4083 if test "$wxUSE_CLIPBOARD" = yes; then
4084 echo "$ac_t""yes" 1>&6
4085 else
4086 echo "$ac_t""no" 1>&6
4087 fi
4088
4089
4090 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
4091 echo "configure:4092: checking "for --enable-dnd"" >&5
4092 no_cache=0
4093 # Check whether --enable-dnd or --disable-dnd was given.
4094 if test "${enable_dnd+set}" = set; then
4095 enableval="$enable_dnd"
4096
4097 if test "$enableval" = yes; then
4098 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4099 else
4100 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4101 fi
4102
4103 else
4104
4105 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4106 if test "x$LINE" != x ; then
4107 eval "DEFAULT_$LINE"
4108 else
4109 no_cache=1
4110 fi
4111
4112 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4113
4114 fi
4115
4116
4117 eval "$ac_cv_use_dnd"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4123 echo "$ac_t""yes" 1>&6
4124 else
4125 echo "$ac_t""no" 1>&6
4126 fi
4127
4128
4129 echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6
4130 echo "configure:4131: checking "for --enable-metafile"" >&5
4131 no_cache=0
4132 # Check whether --enable-metafile or --disable-metafile was given.
4133 if test "${enable_metafile+set}" = set; then
4134 enableval="$enable_metafile"
4135
4136 if test "$enableval" = yes; then
4137 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4138 else
4139 ac_cv_use_metafile='wxUSE_METAFILE=no'
4140 fi
4141
4142 else
4143
4144 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4145 if test "x$LINE" != x ; then
4146 eval "DEFAULT_$LINE"
4147 else
4148 no_cache=1
4149 fi
4150
4151 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4152
4153 fi
4154
4155
4156 eval "$ac_cv_use_metafile"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_METAFILE" = yes; then
4162 echo "$ac_t""yes" 1>&6
4163 else
4164 echo "$ac_t""no" 1>&6
4165 fi
4166
4167
4168
4169 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
4170 echo "configure:4171: checking "for --enable-wxtree"" >&5
4171 no_cache=0
4172 # Check whether --enable-wxtree or --disable-wxtree was given.
4173 if test "${enable_wxtree+set}" = set; then
4174 enableval="$enable_wxtree"
4175
4176 if test "$enableval" = yes; then
4177 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4178 else
4179 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4180 fi
4181
4182 else
4183
4184 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4185 if test "x$LINE" != x ; then
4186 eval "DEFAULT_$LINE"
4187 else
4188 no_cache=1
4189 fi
4190
4191 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4192
4193 fi
4194
4195
4196 eval "$ac_cv_use_wxtree"
4197 if test "$no_cache" != 1; then
4198 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4199 fi
4200
4201 if test "$wxUSE_WXTREE" = yes; then
4202 echo "$ac_t""yes" 1>&6
4203 else
4204 echo "$ac_t""no" 1>&6
4205 fi
4206
4207
4208
4209
4210 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
4211 echo "configure:4212: checking "for --enable-controls"" >&5
4212 no_cache=0
4213 # Check whether --enable-controls or --disable-controls was given.
4214 if test "${enable_controls+set}" = set; then
4215 enableval="$enable_controls"
4216
4217 if test "$enableval" = yes; then
4218 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4219 else
4220 ac_cv_use_controls='wxUSE_CONTROLS=no'
4221 fi
4222
4223 else
4224
4225 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4226 if test "x$LINE" != x ; then
4227 eval "DEFAULT_$LINE"
4228 else
4229 no_cache=1
4230 fi
4231
4232 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4233
4234 fi
4235
4236
4237 eval "$ac_cv_use_controls"
4238 if test "$no_cache" != 1; then
4239 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4240 fi
4241
4242 if test "$wxUSE_CONTROLS" = yes; then
4243 echo "$ac_t""yes" 1>&6
4244 else
4245 echo "$ac_t""no" 1>&6
4246 fi
4247
4248
4249 if test "$wxUSE_CONTROLS" = "yes"; then
4250 DEFAULT_wxUSE_ACCEL=yes
4251 DEFAULT_wxUSE_CARET=yes
4252 DEFAULT_wxUSE_COMBOBOX=yes
4253 DEFAULT_wxUSE_BMPBUTTON=yes
4254 DEFAULT_wxUSE_CHECKBOX=yes
4255 DEFAULT_wxUSE_CHECKLISTBOX=yes
4256 DEFAULT_wxUSE_CHOICE=yes
4257 DEFAULT_wxUSE_GAUGE=yes
4258 DEFAULT_wxUSE_GRID=yes
4259 DEFAULT_wxUSE_NEW_GRID=yes
4260 DEFAULT_wxUSE_IMAGLIST=yes
4261 DEFAULT_wxUSE_LISTBOX=yes
4262 DEFAULT_wxUSE_LISTCTRL=yes
4263 DEFAULT_wxUSE_NOTEBOOK=yes
4264 DEFAULT_wxUSE_RADIOBOX=yes
4265 DEFAULT_wxUSE_RADIOBTN=yes
4266 DEFAULT_wxUSE_SASH=yes
4267 DEFAULT_wxUSE_SCROLLBAR=yes
4268 DEFAULT_wxUSE_SLIDER=yes
4269 DEFAULT_wxUSE_SPINBTN=yes
4270 DEFAULT_wxUSE_SPINCTRL=yes
4271 DEFAULT_wxUSE_SPLITTER=yes
4272 DEFAULT_wxUSE_STATBMP=yes
4273 DEFAULT_wxUSE_STATBOX=yes
4274 DEFAULT_wxUSE_STATLINE=yes
4275 DEFAULT_wxUSE_STATUSBAR=yes
4276 DEFAULT_wxUSE_TAB_DIALOG=yes
4277 DEFAULT_wxUSE_TOGGLEBTN=yes
4278 DEFAULT_wxUSE_TOOLBAR=yes
4279 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4280 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4281 DEFAULT_wxUSE_TOOLTIPS=yes
4282 DEFAULT_wxUSE_TREECTRL=yes
4283 elif test "$wxUSE_CONTROLS" = "no"; then
4284 DEFAULT_wxUSE_ACCEL=no
4285 DEFAULT_wxUSE_CARET=no
4286 DEFAULT_wxUSE_COMBOBOX=no
4287 DEFAULT_wxUSE_BMPBUTTON=no
4288 DEFAULT_wxUSE_CHECKBOX=no
4289 DEFAULT_wxUSE_CHECKLISTBOX=no
4290 DEFAULT_wxUSE_CHOICE=no
4291 DEFAULT_wxUSE_GAUGE=no
4292 DEFAULT_wxUSE_GRID=no
4293 DEFAULT_wxUSE_NEW_GRID=no
4294 DEFAULT_wxUSE_IMAGLIST=no
4295 DEFAULT_wxUSE_LISTBOX=no
4296 DEFAULT_wxUSE_LISTCTRL=no
4297 DEFAULT_wxUSE_NOTEBOOK=no
4298 DEFAULT_wxUSE_RADIOBOX=no
4299 DEFAULT_wxUSE_RADIOBTN=no
4300 DEFAULT_wxUSE_SASH=no
4301 DEFAULT_wxUSE_SCROLLBAR=no
4302 DEFAULT_wxUSE_SLIDER=no
4303 DEFAULT_wxUSE_SPINBTN=no
4304 DEFAULT_wxUSE_SPINCTRL=no
4305 DEFAULT_wxUSE_SPLITTER=no
4306 DEFAULT_wxUSE_STATBMP=no
4307 DEFAULT_wxUSE_STATBOX=no
4308 DEFAULT_wxUSE_STATLINE=no
4309 DEFAULT_wxUSE_STATUSBAR=no
4310 DEFAULT_wxUSE_TAB_DIALOG=no
4311 DEFAULT_wxUSE_TOGGLEBTN=no
4312 DEFAULT_wxUSE_TOOLBAR=no
4313 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4314 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4315 DEFAULT_wxUSE_TOOLTIPS=no
4316 DEFAULT_wxUSE_TREECTRL=no
4317 fi
4318
4319
4320 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4321 echo "configure:4322: checking "for --enable-accel"" >&5
4322 no_cache=0
4323 # Check whether --enable-accel or --disable-accel was given.
4324 if test "${enable_accel+set}" = set; then
4325 enableval="$enable_accel"
4326
4327 if test "$enableval" = yes; then
4328 ac_cv_use_accel='wxUSE_ACCEL=yes'
4329 else
4330 ac_cv_use_accel='wxUSE_ACCEL=no'
4331 fi
4332
4333 else
4334
4335 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4343
4344 fi
4345
4346
4347 eval "$ac_cv_use_accel"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_ACCEL" = yes; then
4353 echo "$ac_t""yes" 1>&6
4354 else
4355 echo "$ac_t""no" 1>&6
4356 fi
4357
4358
4359 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4360 echo "configure:4361: checking "for --enable-caret"" >&5
4361 no_cache=0
4362 # Check whether --enable-caret or --disable-caret was given.
4363 if test "${enable_caret+set}" = set; then
4364 enableval="$enable_caret"
4365
4366 if test "$enableval" = yes; then
4367 ac_cv_use_caret='wxUSE_CARET=yes'
4368 else
4369 ac_cv_use_caret='wxUSE_CARET=no'
4370 fi
4371
4372 else
4373
4374 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4375 if test "x$LINE" != x ; then
4376 eval "DEFAULT_$LINE"
4377 else
4378 no_cache=1
4379 fi
4380
4381 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4382
4383 fi
4384
4385
4386 eval "$ac_cv_use_caret"
4387 if test "$no_cache" != 1; then
4388 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4389 fi
4390
4391 if test "$wxUSE_CARET" = yes; then
4392 echo "$ac_t""yes" 1>&6
4393 else
4394 echo "$ac_t""no" 1>&6
4395 fi
4396
4397
4398 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4399 echo "configure:4400: checking "for --enable-bmpbutton"" >&5
4400 no_cache=0
4401 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4402 if test "${enable_bmpbutton+set}" = set; then
4403 enableval="$enable_bmpbutton"
4404
4405 if test "$enableval" = yes; then
4406 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4407 else
4408 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4409 fi
4410
4411 else
4412
4413 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4414 if test "x$LINE" != x ; then
4415 eval "DEFAULT_$LINE"
4416 else
4417 no_cache=1
4418 fi
4419
4420 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4421
4422 fi
4423
4424
4425 eval "$ac_cv_use_bmpbutton"
4426 if test "$no_cache" != 1; then
4427 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4428 fi
4429
4430 if test "$wxUSE_BMPBUTTON" = yes; then
4431 echo "$ac_t""yes" 1>&6
4432 else
4433 echo "$ac_t""no" 1>&6
4434 fi
4435
4436
4437 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4438 echo "configure:4439: checking "for --enable-checkbox"" >&5
4439 no_cache=0
4440 # Check whether --enable-checkbox or --disable-checkbox was given.
4441 if test "${enable_checkbox+set}" = set; then
4442 enableval="$enable_checkbox"
4443
4444 if test "$enableval" = yes; then
4445 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4446 else
4447 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4448 fi
4449
4450 else
4451
4452 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4453 if test "x$LINE" != x ; then
4454 eval "DEFAULT_$LINE"
4455 else
4456 no_cache=1
4457 fi
4458
4459 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4460
4461 fi
4462
4463
4464 eval "$ac_cv_use_checkbox"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_CHECKBOX" = yes; then
4470 echo "$ac_t""yes" 1>&6
4471 else
4472 echo "$ac_t""no" 1>&6
4473 fi
4474
4475
4476 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4477 echo "configure:4478: checking "for --enable-checklst"" >&5
4478 no_cache=0
4479 # Check whether --enable-checklst or --disable-checklst was given.
4480 if test "${enable_checklst+set}" = set; then
4481 enableval="$enable_checklst"
4482
4483 if test "$enableval" = yes; then
4484 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4485 else
4486 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4487 fi
4488
4489 else
4490
4491 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4492 if test "x$LINE" != x ; then
4493 eval "DEFAULT_$LINE"
4494 else
4495 no_cache=1
4496 fi
4497
4498 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4499
4500 fi
4501
4502
4503 eval "$ac_cv_use_checklst"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_CHECKLST" = yes; then
4509 echo "$ac_t""yes" 1>&6
4510 else
4511 echo "$ac_t""no" 1>&6
4512 fi
4513
4514
4515 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4516 echo "configure:4517: checking "for --enable-choice"" >&5
4517 no_cache=0
4518 # Check whether --enable-choice or --disable-choice was given.
4519 if test "${enable_choice+set}" = set; then
4520 enableval="$enable_choice"
4521
4522 if test "$enableval" = yes; then
4523 ac_cv_use_choice='wxUSE_CHOICE=yes'
4524 else
4525 ac_cv_use_choice='wxUSE_CHOICE=no'
4526 fi
4527
4528 else
4529
4530 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4531 if test "x$LINE" != x ; then
4532 eval "DEFAULT_$LINE"
4533 else
4534 no_cache=1
4535 fi
4536
4537 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4538
4539 fi
4540
4541
4542 eval "$ac_cv_use_choice"
4543 if test "$no_cache" != 1; then
4544 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4545 fi
4546
4547 if test "$wxUSE_CHOICE" = yes; then
4548 echo "$ac_t""yes" 1>&6
4549 else
4550 echo "$ac_t""no" 1>&6
4551 fi
4552
4553
4554 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4555 echo "configure:4556: checking "for --enable-combobox"" >&5
4556 no_cache=0
4557 # Check whether --enable-combobox or --disable-combobox was given.
4558 if test "${enable_combobox+set}" = set; then
4559 enableval="$enable_combobox"
4560
4561 if test "$enableval" = yes; then
4562 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4563 else
4564 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4565 fi
4566
4567 else
4568
4569 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4577
4578 fi
4579
4580
4581 eval "$ac_cv_use_combobox"
4582 if test "$no_cache" != 1; then
4583 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4584 fi
4585
4586 if test "$wxUSE_COMBOBOX" = yes; then
4587 echo "$ac_t""yes" 1>&6
4588 else
4589 echo "$ac_t""no" 1>&6
4590 fi
4591
4592
4593 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4594 echo "configure:4595: checking "for --enable-gauge"" >&5
4595 no_cache=0
4596 # Check whether --enable-gauge or --disable-gauge was given.
4597 if test "${enable_gauge+set}" = set; then
4598 enableval="$enable_gauge"
4599
4600 if test "$enableval" = yes; then
4601 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4602 else
4603 ac_cv_use_gauge='wxUSE_GAUGE=no'
4604 fi
4605
4606 else
4607
4608 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4609 if test "x$LINE" != x ; then
4610 eval "DEFAULT_$LINE"
4611 else
4612 no_cache=1
4613 fi
4614
4615 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4616
4617 fi
4618
4619
4620 eval "$ac_cv_use_gauge"
4621 if test "$no_cache" != 1; then
4622 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4623 fi
4624
4625 if test "$wxUSE_GAUGE" = yes; then
4626 echo "$ac_t""yes" 1>&6
4627 else
4628 echo "$ac_t""no" 1>&6
4629 fi
4630
4631
4632 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4633 echo "configure:4634: checking "for --enable-grid"" >&5
4634 no_cache=0
4635 # Check whether --enable-grid or --disable-grid was given.
4636 if test "${enable_grid+set}" = set; then
4637 enableval="$enable_grid"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_grid='wxUSE_GRID=yes'
4641 else
4642 ac_cv_use_grid='wxUSE_GRID=no'
4643 fi
4644
4645 else
4646
4647 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4655
4656 fi
4657
4658
4659 eval "$ac_cv_use_grid"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_GRID" = yes; then
4665 echo "$ac_t""yes" 1>&6
4666 else
4667 echo "$ac_t""no" 1>&6
4668 fi
4669
4670
4671 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4672 echo "configure:4673: checking "for --enable-newgrid"" >&5
4673 no_cache=0
4674 # Check whether --enable-newgrid or --disable-newgrid was given.
4675 if test "${enable_newgrid+set}" = set; then
4676 enableval="$enable_newgrid"
4677
4678 if test "$enableval" = yes; then
4679 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4680 else
4681 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4682 fi
4683
4684 else
4685
4686 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4687 if test "x$LINE" != x ; then
4688 eval "DEFAULT_$LINE"
4689 else
4690 no_cache=1
4691 fi
4692
4693 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4694
4695 fi
4696
4697
4698 eval "$ac_cv_use_newgrid"
4699 if test "$no_cache" != 1; then
4700 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4701 fi
4702
4703 if test "$wxUSE_NEW_GRID" = yes; then
4704 echo "$ac_t""yes" 1>&6
4705 else
4706 echo "$ac_t""no" 1>&6
4707 fi
4708
4709
4710 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4711 echo "configure:4712: checking "for --enable-imaglist"" >&5
4712 no_cache=0
4713 # Check whether --enable-imaglist or --disable-imaglist was given.
4714 if test "${enable_imaglist+set}" = set; then
4715 enableval="$enable_imaglist"
4716
4717 if test "$enableval" = yes; then
4718 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4719 else
4720 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4721 fi
4722
4723 else
4724
4725 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4733
4734 fi
4735
4736
4737 eval "$ac_cv_use_imaglist"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_IMAGLIST" = yes; then
4743 echo "$ac_t""yes" 1>&6
4744 else
4745 echo "$ac_t""no" 1>&6
4746 fi
4747
4748
4749 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4750 echo "configure:4751: checking "for --enable-listbox"" >&5
4751 no_cache=0
4752 # Check whether --enable-listbox or --disable-listbox was given.
4753 if test "${enable_listbox+set}" = set; then
4754 enableval="$enable_listbox"
4755
4756 if test "$enableval" = yes; then
4757 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4758 else
4759 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4760 fi
4761
4762 else
4763
4764 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4772
4773 fi
4774
4775
4776 eval "$ac_cv_use_listbox"
4777 if test "$no_cache" != 1; then
4778 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4779 fi
4780
4781 if test "$wxUSE_LISTBOX" = yes; then
4782 echo "$ac_t""yes" 1>&6
4783 else
4784 echo "$ac_t""no" 1>&6
4785 fi
4786
4787
4788 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4789 echo "configure:4790: checking "for --enable-listctrl"" >&5
4790 no_cache=0
4791 # Check whether --enable-listctrl or --disable-listctrl was given.
4792 if test "${enable_listctrl+set}" = set; then
4793 enableval="$enable_listctrl"
4794
4795 if test "$enableval" = yes; then
4796 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4797 else
4798 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4799 fi
4800
4801 else
4802
4803 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4804 if test "x$LINE" != x ; then
4805 eval "DEFAULT_$LINE"
4806 else
4807 no_cache=1
4808 fi
4809
4810 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4811
4812 fi
4813
4814
4815 eval "$ac_cv_use_listctrl"
4816 if test "$no_cache" != 1; then
4817 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4818 fi
4819
4820 if test "$wxUSE_LISTCTRL" = yes; then
4821 echo "$ac_t""yes" 1>&6
4822 else
4823 echo "$ac_t""no" 1>&6
4824 fi
4825
4826
4827 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4828 echo "configure:4829: checking "for --enable-notebook"" >&5
4829 no_cache=0
4830 # Check whether --enable-notebook or --disable-notebook was given.
4831 if test "${enable_notebook+set}" = set; then
4832 enableval="$enable_notebook"
4833
4834 if test "$enableval" = yes; then
4835 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4836 else
4837 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4838 fi
4839
4840 else
4841
4842 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4843 if test "x$LINE" != x ; then
4844 eval "DEFAULT_$LINE"
4845 else
4846 no_cache=1
4847 fi
4848
4849 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4850
4851 fi
4852
4853
4854 eval "$ac_cv_use_notebook"
4855 if test "$no_cache" != 1; then
4856 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4857 fi
4858
4859 if test "$wxUSE_NOTEBOOK" = yes; then
4860 echo "$ac_t""yes" 1>&6
4861 else
4862 echo "$ac_t""no" 1>&6
4863 fi
4864
4865
4866 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4867 echo "configure:4868: checking "for --enable-radiobox"" >&5
4868 no_cache=0
4869 # Check whether --enable-radiobox or --disable-radiobox was given.
4870 if test "${enable_radiobox+set}" = set; then
4871 enableval="$enable_radiobox"
4872
4873 if test "$enableval" = yes; then
4874 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4875 else
4876 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4877 fi
4878
4879 else
4880
4881 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4889
4890 fi
4891
4892
4893 eval "$ac_cv_use_radiobox"
4894 if test "$no_cache" != 1; then
4895 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4896 fi
4897
4898 if test "$wxUSE_RADIOBOX" = yes; then
4899 echo "$ac_t""yes" 1>&6
4900 else
4901 echo "$ac_t""no" 1>&6
4902 fi
4903
4904
4905 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4906 echo "configure:4907: checking "for --enable-radiobtn"" >&5
4907 no_cache=0
4908 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4909 if test "${enable_radiobtn+set}" = set; then
4910 enableval="$enable_radiobtn"
4911
4912 if test "$enableval" = yes; then
4913 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4914 else
4915 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4916 fi
4917
4918 else
4919
4920 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4921 if test "x$LINE" != x ; then
4922 eval "DEFAULT_$LINE"
4923 else
4924 no_cache=1
4925 fi
4926
4927 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4928
4929 fi
4930
4931
4932 eval "$ac_cv_use_radiobtn"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_RADIOBTN" = yes; then
4938 echo "$ac_t""yes" 1>&6
4939 else
4940 echo "$ac_t""no" 1>&6
4941 fi
4942
4943
4944 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4945 echo "configure:4946: checking "for --enable-sash"" >&5
4946 no_cache=0
4947 # Check whether --enable-sash or --disable-sash was given.
4948 if test "${enable_sash+set}" = set; then
4949 enableval="$enable_sash"
4950
4951 if test "$enableval" = yes; then
4952 ac_cv_use_sash='wxUSE_SASH=yes'
4953 else
4954 ac_cv_use_sash='wxUSE_SASH=no'
4955 fi
4956
4957 else
4958
4959 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4960 if test "x$LINE" != x ; then
4961 eval "DEFAULT_$LINE"
4962 else
4963 no_cache=1
4964 fi
4965
4966 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4967
4968 fi
4969
4970
4971 eval "$ac_cv_use_sash"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_SASH" = yes; then
4977 echo "$ac_t""yes" 1>&6
4978 else
4979 echo "$ac_t""no" 1>&6
4980 fi
4981
4982
4983 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4984 echo "configure:4985: checking "for --enable-scrollbar"" >&5
4985 no_cache=0
4986 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4987 if test "${enable_scrollbar+set}" = set; then
4988 enableval="$enable_scrollbar"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4992 else
4993 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4994 fi
4995
4996 else
4997
4998 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5006
5007 fi
5008
5009
5010 eval "$ac_cv_use_scrollbar"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_SCROLLBAR" = yes; then
5016 echo "$ac_t""yes" 1>&6
5017 else
5018 echo "$ac_t""no" 1>&6
5019 fi
5020
5021
5022 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
5023 echo "configure:5024: checking "for --enable-slider"" >&5
5024 no_cache=0
5025 # Check whether --enable-slider or --disable-slider was given.
5026 if test "${enable_slider+set}" = set; then
5027 enableval="$enable_slider"
5028
5029 if test "$enableval" = yes; then
5030 ac_cv_use_slider='wxUSE_SLIDER=yes'
5031 else
5032 ac_cv_use_slider='wxUSE_SLIDER=no'
5033 fi
5034
5035 else
5036
5037 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5038 if test "x$LINE" != x ; then
5039 eval "DEFAULT_$LINE"
5040 else
5041 no_cache=1
5042 fi
5043
5044 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5045
5046 fi
5047
5048
5049 eval "$ac_cv_use_slider"
5050 if test "$no_cache" != 1; then
5051 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5052 fi
5053
5054 if test "$wxUSE_SLIDER" = yes; then
5055 echo "$ac_t""yes" 1>&6
5056 else
5057 echo "$ac_t""no" 1>&6
5058 fi
5059
5060
5061 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
5062 echo "configure:5063: checking "for --enable-spinbtn"" >&5
5063 no_cache=0
5064 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5065 if test "${enable_spinbtn+set}" = set; then
5066 enableval="$enable_spinbtn"
5067
5068 if test "$enableval" = yes; then
5069 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5070 else
5071 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5072 fi
5073
5074 else
5075
5076 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5077 if test "x$LINE" != x ; then
5078 eval "DEFAULT_$LINE"
5079 else
5080 no_cache=1
5081 fi
5082
5083 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5084
5085 fi
5086
5087
5088 eval "$ac_cv_use_spinbtn"
5089 if test "$no_cache" != 1; then
5090 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5091 fi
5092
5093 if test "$wxUSE_SPINBTN" = yes; then
5094 echo "$ac_t""yes" 1>&6
5095 else
5096 echo "$ac_t""no" 1>&6
5097 fi
5098
5099
5100 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
5101 echo "configure:5102: checking "for --enable-spinctrl"" >&5
5102 no_cache=0
5103 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5104 if test "${enable_spinctrl+set}" = set; then
5105 enableval="$enable_spinctrl"
5106
5107 if test "$enableval" = yes; then
5108 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5109 else
5110 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5111 fi
5112
5113 else
5114
5115 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5116 if test "x$LINE" != x ; then
5117 eval "DEFAULT_$LINE"
5118 else
5119 no_cache=1
5120 fi
5121
5122 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5123
5124 fi
5125
5126
5127 eval "$ac_cv_use_spinctrl"
5128 if test "$no_cache" != 1; then
5129 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5130 fi
5131
5132 if test "$wxUSE_SPINCTRL" = yes; then
5133 echo "$ac_t""yes" 1>&6
5134 else
5135 echo "$ac_t""no" 1>&6
5136 fi
5137
5138
5139 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
5140 echo "configure:5141: checking "for --enable-splitter"" >&5
5141 no_cache=0
5142 # Check whether --enable-splitter or --disable-splitter was given.
5143 if test "${enable_splitter+set}" = set; then
5144 enableval="$enable_splitter"
5145
5146 if test "$enableval" = yes; then
5147 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5148 else
5149 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5150 fi
5151
5152 else
5153
5154 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5155 if test "x$LINE" != x ; then
5156 eval "DEFAULT_$LINE"
5157 else
5158 no_cache=1
5159 fi
5160
5161 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5162
5163 fi
5164
5165
5166 eval "$ac_cv_use_splitter"
5167 if test "$no_cache" != 1; then
5168 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5169 fi
5170
5171 if test "$wxUSE_SPLITTER" = yes; then
5172 echo "$ac_t""yes" 1>&6
5173 else
5174 echo "$ac_t""no" 1>&6
5175 fi
5176
5177
5178 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
5179 echo "configure:5180: checking "for --enable-statbmp"" >&5
5180 no_cache=0
5181 # Check whether --enable-statbmp or --disable-statbmp was given.
5182 if test "${enable_statbmp+set}" = set; then
5183 enableval="$enable_statbmp"
5184
5185 if test "$enableval" = yes; then
5186 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5187 else
5188 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5189 fi
5190
5191 else
5192
5193 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5194 if test "x$LINE" != x ; then
5195 eval "DEFAULT_$LINE"
5196 else
5197 no_cache=1
5198 fi
5199
5200 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5201
5202 fi
5203
5204
5205 eval "$ac_cv_use_statbmp"
5206 if test "$no_cache" != 1; then
5207 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5208 fi
5209
5210 if test "$wxUSE_STATBMP" = yes; then
5211 echo "$ac_t""yes" 1>&6
5212 else
5213 echo "$ac_t""no" 1>&6
5214 fi
5215
5216
5217 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
5218 echo "configure:5219: checking "for --enable-statbox"" >&5
5219 no_cache=0
5220 # Check whether --enable-statbox or --disable-statbox was given.
5221 if test "${enable_statbox+set}" = set; then
5222 enableval="$enable_statbox"
5223
5224 if test "$enableval" = yes; then
5225 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5226 else
5227 ac_cv_use_statbox='wxUSE_STATBOX=no'
5228 fi
5229
5230 else
5231
5232 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5233 if test "x$LINE" != x ; then
5234 eval "DEFAULT_$LINE"
5235 else
5236 no_cache=1
5237 fi
5238
5239 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5240
5241 fi
5242
5243
5244 eval "$ac_cv_use_statbox"
5245 if test "$no_cache" != 1; then
5246 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5247 fi
5248
5249 if test "$wxUSE_STATBOX" = yes; then
5250 echo "$ac_t""yes" 1>&6
5251 else
5252 echo "$ac_t""no" 1>&6
5253 fi
5254
5255
5256 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
5257 echo "configure:5258: checking "for --enable-statline"" >&5
5258 no_cache=0
5259 # Check whether --enable-statline or --disable-statline was given.
5260 if test "${enable_statline+set}" = set; then
5261 enableval="$enable_statline"
5262
5263 if test "$enableval" = yes; then
5264 ac_cv_use_statline='wxUSE_STATLINE=yes'
5265 else
5266 ac_cv_use_statline='wxUSE_STATLINE=no'
5267 fi
5268
5269 else
5270
5271 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5279
5280 fi
5281
5282
5283 eval "$ac_cv_use_statline"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_STATLINE" = yes; then
5289 echo "$ac_t""yes" 1>&6
5290 else
5291 echo "$ac_t""no" 1>&6
5292 fi
5293
5294
5295 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
5296 echo "configure:5297: checking "for --enable-statusbar"" >&5
5297 no_cache=0
5298 # Check whether --enable-statusbar or --disable-statusbar was given.
5299 if test "${enable_statusbar+set}" = set; then
5300 enableval="$enable_statusbar"
5301
5302 if test "$enableval" = yes; then
5303 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5304 else
5305 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5306 fi
5307
5308 else
5309
5310 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5318
5319 fi
5320
5321
5322 eval "$ac_cv_use_statusbar"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_STATUSBAR" = yes; then
5328 echo "$ac_t""yes" 1>&6
5329 else
5330 echo "$ac_t""no" 1>&6
5331 fi
5332
5333
5334 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
5335 echo "configure:5336: checking "for --enable-tabdialog"" >&5
5336 no_cache=0
5337 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5338 if test "${enable_tabdialog+set}" = set; then
5339 enableval="$enable_tabdialog"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5343 else
5344 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5345 fi
5346
5347 else
5348
5349 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5357
5358 fi
5359
5360
5361 eval "$ac_cv_use_tabdialog"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_TABDIALOG" = yes; then
5367 echo "$ac_t""yes" 1>&6
5368 else
5369 echo "$ac_t""no" 1>&6
5370 fi
5371
5372
5373 echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6
5374 echo "configure:5375: checking "for --enable-togglebtn"" >&5
5375 no_cache=0
5376 # Check whether --enable-togglebtn or --disable-togglebtn was given.
5377 if test "${enable_togglebtn+set}" = set; then
5378 enableval="$enable_togglebtn"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
5382 else
5383 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
5384 fi
5385
5386 else
5387
5388 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
5396
5397 fi
5398
5399
5400 eval "$ac_cv_use_togglebtn"
5401 if test "$no_cache" != 1; then
5402 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
5403 fi
5404
5405 if test "$wxUSE_TOGGLEBTN" = yes; then
5406 echo "$ac_t""yes" 1>&6
5407 else
5408 echo "$ac_t""no" 1>&6
5409 fi
5410
5411
5412 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5413 echo "configure:5414: checking "for --enable-toolbar"" >&5
5414 no_cache=0
5415 # Check whether --enable-toolbar or --disable-toolbar was given.
5416 if test "${enable_toolbar+set}" = set; then
5417 enableval="$enable_toolbar"
5418
5419 if test "$enableval" = yes; then
5420 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5421 else
5422 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5423 fi
5424
5425 else
5426
5427 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5435
5436 fi
5437
5438
5439 eval "$ac_cv_use_toolbar"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_TOOLBAR" = yes; then
5445 echo "$ac_t""yes" 1>&6
5446 else
5447 echo "$ac_t""no" 1>&6
5448 fi
5449
5450
5451 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5452 echo "configure:5453: checking "for --enable-tbarnative"" >&5
5453 no_cache=0
5454 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5455 if test "${enable_tbarnative+set}" = set; then
5456 enableval="$enable_tbarnative"
5457
5458 if test "$enableval" = yes; then
5459 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5460 else
5461 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5462 fi
5463
5464 else
5465
5466 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5474
5475 fi
5476
5477
5478 eval "$ac_cv_use_tbarnative"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5484 echo "$ac_t""yes" 1>&6
5485 else
5486 echo "$ac_t""no" 1>&6
5487 fi
5488
5489
5490 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5491 echo "configure:5492: checking "for --enable-tbarsmpl"" >&5
5492 no_cache=0
5493 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5494 if test "${enable_tbarsmpl+set}" = set; then
5495 enableval="$enable_tbarsmpl"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5499 else
5500 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5501 fi
5502
5503 else
5504
5505 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5513
5514 fi
5515
5516
5517 eval "$ac_cv_use_tbarsmpl"
5518 if test "$no_cache" != 1; then
5519 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5520 fi
5521
5522 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5523 echo "$ac_t""yes" 1>&6
5524 else
5525 echo "$ac_t""no" 1>&6
5526 fi
5527
5528
5529 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5530 echo "configure:5531: checking "for --enable-treectrl"" >&5
5531 no_cache=0
5532 # Check whether --enable-treectrl or --disable-treectrl was given.
5533 if test "${enable_treectrl+set}" = set; then
5534 enableval="$enable_treectrl"
5535
5536 if test "$enableval" = yes; then
5537 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5538 else
5539 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5540 fi
5541
5542 else
5543
5544 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5545 if test "x$LINE" != x ; then
5546 eval "DEFAULT_$LINE"
5547 else
5548 no_cache=1
5549 fi
5550
5551 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5552
5553 fi
5554
5555
5556 eval "$ac_cv_use_treectrl"
5557 if test "$no_cache" != 1; then
5558 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5559 fi
5560
5561 if test "$wxUSE_TREECTRL" = yes; then
5562 echo "$ac_t""yes" 1>&6
5563 else
5564 echo "$ac_t""no" 1>&6
5565 fi
5566
5567
5568
5569
5570 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5571 echo "configure:5572: checking "for --enable-commondlg"" >&5
5572 no_cache=0
5573 # Check whether --enable-commondlg or --disable-commondlg was given.
5574 if test "${enable_commondlg+set}" = set; then
5575 enableval="$enable_commondlg"
5576
5577 if test "$enableval" = yes; then
5578 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5579 else
5580 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5581 fi
5582
5583 else
5584
5585 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 else
5589 no_cache=1
5590 fi
5591
5592 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5593
5594 fi
5595
5596
5597 eval "$ac_cv_use_commondlg"
5598 if test "$no_cache" != 1; then
5599 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5600 fi
5601
5602 if test "$wxUSE_COMMONDLGS" = yes; then
5603 echo "$ac_t""yes" 1>&6
5604 else
5605 echo "$ac_t""no" 1>&6
5606 fi
5607
5608
5609 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5610 echo "configure:5611: checking "for --enable-dirdlg"" >&5
5611 no_cache=0
5612 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5613 if test "${enable_dirdlg+set}" = set; then
5614 enableval="$enable_dirdlg"
5615
5616 if test "$enableval" = yes; then
5617 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5618 else
5619 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5620 fi
5621
5622 else
5623
5624 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5625 if test "x$LINE" != x ; then
5626 eval "DEFAULT_$LINE"
5627 else
5628 no_cache=1
5629 fi
5630
5631 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5632
5633 fi
5634
5635
5636 eval "$ac_cv_use_dirdlg"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_DIRDLG" = yes; then
5642 echo "$ac_t""yes" 1>&6
5643 else
5644 echo "$ac_t""no" 1>&6
5645 fi
5646
5647
5648 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5649 echo "configure:5650: checking "for --enable-textdlg"" >&5
5650 no_cache=0
5651 # Check whether --enable-textdlg or --disable-textdlg was given.
5652 if test "${enable_textdlg+set}" = set; then
5653 enableval="$enable_textdlg"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5657 else
5658 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5659 fi
5660
5661 else
5662
5663 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5671
5672 fi
5673
5674
5675 eval "$ac_cv_use_textdlg"
5676 if test "$no_cache" != 1; then
5677 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5678 fi
5679
5680 if test "$wxUSE_TEXTDLG" = yes; then
5681 echo "$ac_t""yes" 1>&6
5682 else
5683 echo "$ac_t""no" 1>&6
5684 fi
5685
5686
5687 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5688 echo "configure:5689: checking "for --enable-tipdlg"" >&5
5689 no_cache=0
5690 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5691 if test "${enable_tipdlg+set}" = set; then
5692 enableval="$enable_tipdlg"
5693
5694 if test "$enableval" = yes; then
5695 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5696 else
5697 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5698 fi
5699
5700 else
5701
5702 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
5709 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5710
5711 fi
5712
5713
5714 eval "$ac_cv_use_tipdlg"
5715 if test "$no_cache" != 1; then
5716 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5717 fi
5718
5719 if test "$wxUSE_STARTUP_TIPS" = yes; then
5720 echo "$ac_t""yes" 1>&6
5721 else
5722 echo "$ac_t""no" 1>&6
5723 fi
5724
5725
5726 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5727 echo "configure:5728: checking "for --enable-progressdlg"" >&5
5728 no_cache=0
5729 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5730 if test "${enable_progressdlg+set}" = set; then
5731 enableval="$enable_progressdlg"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5735 else
5736 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5737 fi
5738
5739 else
5740
5741 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5749
5750 fi
5751
5752
5753 eval "$ac_cv_use_progressdlg"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_PROGRESSDLG" = yes; then
5759 echo "$ac_t""yes" 1>&6
5760 else
5761 echo "$ac_t""no" 1>&6
5762 fi
5763
5764
5765 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5766 echo "configure:5767: checking "for --enable-miniframe"" >&5
5767 no_cache=0
5768 # Check whether --enable-miniframe or --disable-miniframe was given.
5769 if test "${enable_miniframe+set}" = set; then
5770 enableval="$enable_miniframe"
5771
5772 if test "$enableval" = yes; then
5773 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5774 else
5775 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5776 fi
5777
5778 else
5779
5780 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5788
5789 fi
5790
5791
5792 eval "$ac_cv_use_miniframe"
5793 if test "$no_cache" != 1; then
5794 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5795 fi
5796
5797 if test "$wxUSE_MINIFRAME" = yes; then
5798 echo "$ac_t""yes" 1>&6
5799 else
5800 echo "$ac_t""no" 1>&6
5801 fi
5802
5803
5804 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5805 echo "configure:5806: checking "for --enable-html"" >&5
5806 no_cache=0
5807 # Check whether --enable-html or --disable-html was given.
5808 if test "${enable_html+set}" = set; then
5809 enableval="$enable_html"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_html='wxUSE_HTML=yes'
5813 else
5814 ac_cv_use_html='wxUSE_HTML=no'
5815 fi
5816
5817 else
5818
5819 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5827
5828 fi
5829
5830
5831 eval "$ac_cv_use_html"
5832 if test "$no_cache" != 1; then
5833 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5834 fi
5835
5836 if test "$wxUSE_HTML" = yes; then
5837 echo "$ac_t""yes" 1>&6
5838 else
5839 echo "$ac_t""no" 1>&6
5840 fi
5841
5842
5843 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5844 echo "configure:5845: checking "for --enable-tooltips"" >&5
5845 no_cache=0
5846 # Check whether --enable-tooltips or --disable-tooltips was given.
5847 if test "${enable_tooltips+set}" = set; then
5848 enableval="$enable_tooltips"
5849
5850 if test "$enableval" = yes; then
5851 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5852 else
5853 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5854 fi
5855
5856 else
5857
5858 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5866
5867 fi
5868
5869
5870 eval "$ac_cv_use_tooltips"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_TOOLTIPS" = yes; then
5876 echo "$ac_t""yes" 1>&6
5877 else
5878 echo "$ac_t""no" 1>&6
5879 fi
5880
5881
5882 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5883 echo "configure:5884: checking "for --enable-splines"" >&5
5884 no_cache=0
5885 # Check whether --enable-splines or --disable-splines was given.
5886 if test "${enable_splines+set}" = set; then
5887 enableval="$enable_splines"
5888
5889 if test "$enableval" = yes; then
5890 ac_cv_use_splines='wxUSE_SPLINES=yes'
5891 else
5892 ac_cv_use_splines='wxUSE_SPLINES=no'
5893 fi
5894
5895 else
5896
5897 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5898 if test "x$LINE" != x ; then
5899 eval "DEFAULT_$LINE"
5900 else
5901 no_cache=1
5902 fi
5903
5904 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5905
5906 fi
5907
5908
5909 eval "$ac_cv_use_splines"
5910 if test "$no_cache" != 1; then
5911 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5912 fi
5913
5914 if test "$wxUSE_SPLINES" = yes; then
5915 echo "$ac_t""yes" 1>&6
5916 else
5917 echo "$ac_t""no" 1>&6
5918 fi
5919
5920
5921 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5922 echo "configure:5923: checking "for --enable-validators"" >&5
5923 no_cache=0
5924 # Check whether --enable-validators or --disable-validators was given.
5925 if test "${enable_validators+set}" = set; then
5926 enableval="$enable_validators"
5927
5928 if test "$enableval" = yes; then
5929 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5930 else
5931 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5932 fi
5933
5934 else
5935
5936 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5937 if test "x$LINE" != x ; then
5938 eval "DEFAULT_$LINE"
5939 else
5940 no_cache=1
5941 fi
5942
5943 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5944
5945 fi
5946
5947
5948 eval "$ac_cv_use_validators"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_VALIDATORS" = yes; then
5954 echo "$ac_t""yes" 1>&6
5955 else
5956 echo "$ac_t""no" 1>&6
5957 fi
5958
5959
5960 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5961 echo "configure:5962: checking "for --enable-busyinfo"" >&5
5962 no_cache=0
5963 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5964 if test "${enable_busyinfo+set}" = set; then
5965 enableval="$enable_busyinfo"
5966
5967 if test "$enableval" = yes; then
5968 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5969 else
5970 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5971 fi
5972
5973 else
5974
5975 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5976 if test "x$LINE" != x ; then
5977 eval "DEFAULT_$LINE"
5978 else
5979 no_cache=1
5980 fi
5981
5982 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5983
5984 fi
5985
5986
5987 eval "$ac_cv_use_busyinfo"
5988 if test "$no_cache" != 1; then
5989 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5990 fi
5991
5992 if test "$wxUSE_BUSYINFO" = yes; then
5993 echo "$ac_t""yes" 1>&6
5994 else
5995 echo "$ac_t""no" 1>&6
5996 fi
5997
5998
5999 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
6000 echo "configure:6001: checking "for --enable-joystick"" >&5
6001 no_cache=0
6002 # Check whether --enable-joystick or --disable-joystick was given.
6003 if test "${enable_joystick+set}" = set; then
6004 enableval="$enable_joystick"
6005
6006 if test "$enableval" = yes; then
6007 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
6008 else
6009 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
6010 fi
6011
6012 else
6013
6014 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
6015 if test "x$LINE" != x ; then
6016 eval "DEFAULT_$LINE"
6017 else
6018 no_cache=1
6019 fi
6020
6021 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
6022
6023 fi
6024
6025
6026 eval "$ac_cv_use_joystick"
6027 if test "$no_cache" != 1; then
6028 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
6029 fi
6030
6031 if test "$wxUSE_JOYSTICK" = yes; then
6032 echo "$ac_t""yes" 1>&6
6033 else
6034 echo "$ac_t""no" 1>&6
6035 fi
6036
6037
6038
6039
6040 echo $ac_n "checking "for --enable-image"""... $ac_c" 1>&6
6041 echo "configure:6042: checking "for --enable-image"" >&5
6042 no_cache=0
6043 # Check whether --enable-image or --disable-image was given.
6044 if test "${enable_image+set}" = set; then
6045 enableval="$enable_image"
6046
6047 if test "$enableval" = yes; then
6048 ac_cv_use_image='wxUSE_IMAGE=yes'
6049 else
6050 ac_cv_use_image='wxUSE_IMAGE=no'
6051 fi
6052
6053 else
6054
6055 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
6056 if test "x$LINE" != x ; then
6057 eval "DEFAULT_$LINE"
6058 else
6059 no_cache=1
6060 fi
6061
6062 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
6063
6064 fi
6065
6066
6067 eval "$ac_cv_use_image"
6068 if test "$no_cache" != 1; then
6069 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
6070 fi
6071
6072 if test "$wxUSE_IMAGE" = yes; then
6073 echo "$ac_t""yes" 1>&6
6074 else
6075 echo "$ac_t""no" 1>&6
6076 fi
6077
6078
6079 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
6080 echo "configure:6081: checking "for --enable-gif"" >&5
6081 no_cache=0
6082 # Check whether --enable-gif or --disable-gif was given.
6083 if test "${enable_gif+set}" = set; then
6084 enableval="$enable_gif"
6085
6086 if test "$enableval" = yes; then
6087 ac_cv_use_gif='wxUSE_GIF=yes'
6088 else
6089 ac_cv_use_gif='wxUSE_GIF=no'
6090 fi
6091
6092 else
6093
6094 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
6095 if test "x$LINE" != x ; then
6096 eval "DEFAULT_$LINE"
6097 else
6098 no_cache=1
6099 fi
6100
6101 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
6102
6103 fi
6104
6105
6106 eval "$ac_cv_use_gif"
6107 if test "$no_cache" != 1; then
6108 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
6109 fi
6110
6111 if test "$wxUSE_GIF" = yes; then
6112 echo "$ac_t""yes" 1>&6
6113 else
6114 echo "$ac_t""no" 1>&6
6115 fi
6116
6117
6118 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
6119 echo "configure:6120: checking "for --enable-pcx"" >&5
6120 no_cache=0
6121 # Check whether --enable-pcx or --disable-pcx was given.
6122 if test "${enable_pcx+set}" = set; then
6123 enableval="$enable_pcx"
6124
6125 if test "$enableval" = yes; then
6126 ac_cv_use_pcx='wxUSE_PCX=yes'
6127 else
6128 ac_cv_use_pcx='wxUSE_PCX=no'
6129 fi
6130
6131 else
6132
6133 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
6134 if test "x$LINE" != x ; then
6135 eval "DEFAULT_$LINE"
6136 else
6137 no_cache=1
6138 fi
6139
6140 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
6141
6142 fi
6143
6144
6145 eval "$ac_cv_use_pcx"
6146 if test "$no_cache" != 1; then
6147 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
6148 fi
6149
6150 if test "$wxUSE_PCX" = yes; then
6151 echo "$ac_t""yes" 1>&6
6152 else
6153 echo "$ac_t""no" 1>&6
6154 fi
6155
6156
6157 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6158 echo "configure:6159: checking "for --enable-pnm"" >&5
6159 no_cache=0
6160 # Check whether --enable-pnm or --disable-pnm was given.
6161 if test "${enable_pnm+set}" = set; then
6162 enableval="$enable_pnm"
6163
6164 if test "$enableval" = yes; then
6165 ac_cv_use_pnm='wxUSE_PNM=yes'
6166 else
6167 ac_cv_use_pnm='wxUSE_PNM=no'
6168 fi
6169
6170 else
6171
6172 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
6180
6181 fi
6182
6183
6184 eval "$ac_cv_use_pnm"
6185 if test "$no_cache" != 1; then
6186 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6187 fi
6188
6189 if test "$wxUSE_PNM" = yes; then
6190 echo "$ac_t""yes" 1>&6
6191 else
6192 echo "$ac_t""no" 1>&6
6193 fi
6194
6195
6196 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6197 echo "configure:6198: checking "for --enable-pnm"" >&5
6198 no_cache=0
6199 # Check whether --enable-pnm or --disable-pnm was given.
6200 if test "${enable_pnm+set}" = set; then
6201 enableval="$enable_pnm"
6202
6203 if test "$enableval" = yes; then
6204 ac_cv_use_pnm='wxUSE_XPM=yes'
6205 else
6206 ac_cv_use_pnm='wxUSE_XPM=no'
6207 fi
6208
6209 else
6210
6211 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
6219
6220 fi
6221
6222
6223 eval "$ac_cv_use_pnm"
6224 if test "$no_cache" != 1; then
6225 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6226 fi
6227
6228 if test "$wxUSE_XPM" = yes; then
6229 echo "$ac_t""yes" 1>&6
6230 else
6231 echo "$ac_t""no" 1>&6
6232 fi
6233
6234
6235 fi
6236
6237
6238 echo "saving argument cache $wx_arg_cache_file"
6239 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6240
6241
6242
6243 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
6244 echo "configure:6245: checking for toolkit" >&5
6245
6246 if test "$wxUSE_GUI" = "yes"; then
6247
6248 if test "$USE_BEOS" = 1; then
6249 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6250 fi
6251
6252 if test "$TOOLKIT_GIVEN" = 1; then
6253 for toolkit in `echo $ALL_TOOLKITS`; do
6254 var=wxUSE_$toolkit
6255 eval "value=\$${var}"
6256 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6257 done
6258 else
6259 for toolkit in `echo $ALL_TOOLKITS`; do
6260 if test "$has_toolkit_in_cache" != 1; then
6261 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6262 else
6263 var=DEFAULT_wxUSE_$toolkit
6264 fi
6265 eval "wxUSE_$toolkit=\$${var}"
6266 done
6267 fi
6268
6269 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
6270
6271 case "${host}" in
6272 *-pc-os2_emx )
6273 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6274 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6275 LEX_STEM="lexyy"
6276 ;;
6277 *)
6278 PATH_IFS=':'
6279 LEX_STEM="lex.yy"
6280 ;;
6281 esac
6282
6283 case "$NUM_TOOLKITS" in
6284 1)
6285 ;;
6286 0)
6287 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6288 ;;
6289 *)
6290 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6291 esac
6292
6293 for toolkit in `echo $ALL_TOOLKITS`; do
6294 var=wxUSE_$toolkit
6295 eval "value=\$${var}"
6296 if test "x$value" != x; then
6297 cache_var=CACHE_$toolkit
6298 eval "cache=\$${cache_var}"
6299 if test "$cache" = 1; then
6300 echo "$var=$value" >> ${wx_arg_cache_file}
6301 fi
6302 if test "$value" = 1; then
6303 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6304 fi
6305 fi
6306 done
6307
6308 else
6309 PATH_IFS=':'
6310 echo "$ac_t""base only" 1>&6
6311 fi
6312
6313
6314 cat > confcache <<\EOF
6315 # This file is a shell script that caches the results of configure
6316 # tests run on this system so they can be shared between configure
6317 # scripts and configure runs. It is not useful on other systems.
6318 # If it contains results you don't want to keep, you may remove or edit it.
6319 #
6320 # By default, configure uses ./config.cache as the cache file,
6321 # creating it if it does not exist already. You can give configure
6322 # the --cache-file=FILE option to use a different cache file; that is
6323 # what configure does when it calls configure scripts in
6324 # subdirectories, so they share the cache.
6325 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6326 # config.status only pays attention to the cache file if you give it the
6327 # --recheck option to rerun configure.
6328 #
6329 EOF
6330 # The following way of writing the cache mishandles newlines in values,
6331 # but we know of no workaround that is simple, portable, and efficient.
6332 # So, don't put newlines in cache variables' values.
6333 # Ultrix sh set writes to stderr and can't be redirected directly,
6334 # and sets the high bit in the cache file unless we assign to the vars.
6335 (set) 2>&1 |
6336 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6337 *ac_space=\ *)
6338 # `set' does not quote correctly, so add quotes (double-quote substitution
6339 # turns \\\\ into \\, and sed turns \\ into \).
6340 sed -n \
6341 -e "s/'/'\\\\''/g" \
6342 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6343 ;;
6344 *)
6345 # `set' quotes correctly as required by POSIX, so do not add quotes.
6346 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6347 ;;
6348 esac >> confcache
6349 if cmp -s $cache_file confcache; then
6350 :
6351 else
6352 if test -w $cache_file; then
6353 echo "updating cache $cache_file"
6354 cat confcache > $cache_file
6355 else
6356 echo "not updating unwritable cache $cache_file"
6357 fi
6358 fi
6359 rm -f confcache
6360
6361
6362 if test "$build" != "$host" ; then
6363 CC=$host_alias-gcc
6364 CXX=$host_alias-c++
6365 AR=$host_alias-ar
6366 RANLIB=$host_alias-ranlib
6367 DLLTOOL=$host_alias-dlltool
6368 RESCOMP=$host_alias-windres
6369 LD=$host_alias-ld
6370 NM=$host_alias-nm
6371 STRIP=$host_alias-strip
6372 fi
6373
6374 # Extract the first word of "gcc", so it can be a program name with args.
6375 set dummy gcc; ac_word=$2
6376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6377 echo "configure:6378: checking for $ac_word" >&5
6378 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6380 else
6381 if test -n "$CC"; then
6382 ac_cv_prog_CC="$CC" # Let the user override the test.
6383 else
6384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6385 ac_dummy="$PATH"
6386 for ac_dir in $ac_dummy; do
6387 test -z "$ac_dir" && ac_dir=.
6388 if test -f $ac_dir/$ac_word; then
6389 ac_cv_prog_CC="gcc"
6390 break
6391 fi
6392 done
6393 IFS="$ac_save_ifs"
6394 fi
6395 fi
6396 CC="$ac_cv_prog_CC"
6397 if test -n "$CC"; then
6398 echo "$ac_t""$CC" 1>&6
6399 else
6400 echo "$ac_t""no" 1>&6
6401 fi
6402
6403 if test -z "$CC"; then
6404 # Extract the first word of "cc", so it can be a program name with args.
6405 set dummy cc; ac_word=$2
6406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6407 echo "configure:6408: checking for $ac_word" >&5
6408 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6409 echo $ac_n "(cached) $ac_c" 1>&6
6410 else
6411 if test -n "$CC"; then
6412 ac_cv_prog_CC="$CC" # Let the user override the test.
6413 else
6414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6415 ac_prog_rejected=no
6416 ac_dummy="$PATH"
6417 for ac_dir in $ac_dummy; do
6418 test -z "$ac_dir" && ac_dir=.
6419 if test -f $ac_dir/$ac_word; then
6420 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6421 ac_prog_rejected=yes
6422 continue
6423 fi
6424 ac_cv_prog_CC="cc"
6425 break
6426 fi
6427 done
6428 IFS="$ac_save_ifs"
6429 if test $ac_prog_rejected = yes; then
6430 # We found a bogon in the path, so make sure we never use it.
6431 set dummy $ac_cv_prog_CC
6432 shift
6433 if test $# -gt 0; then
6434 # We chose a different compiler from the bogus one.
6435 # However, it has the same basename, so the bogon will be chosen
6436 # first if we set CC to just the basename; use the full file name.
6437 shift
6438 set dummy "$ac_dir/$ac_word" "$@"
6439 shift
6440 ac_cv_prog_CC="$@"
6441 fi
6442 fi
6443 fi
6444 fi
6445 CC="$ac_cv_prog_CC"
6446 if test -n "$CC"; then
6447 echo "$ac_t""$CC" 1>&6
6448 else
6449 echo "$ac_t""no" 1>&6
6450 fi
6451
6452 if test -z "$CC"; then
6453 case "`uname -s`" in
6454 *win32* | *WIN32*)
6455 # Extract the first word of "cl", so it can be a program name with args.
6456 set dummy cl; ac_word=$2
6457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6458 echo "configure:6459: checking for $ac_word" >&5
6459 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6460 echo $ac_n "(cached) $ac_c" 1>&6
6461 else
6462 if test -n "$CC"; then
6463 ac_cv_prog_CC="$CC" # Let the user override the test.
6464 else
6465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6466 ac_dummy="$PATH"
6467 for ac_dir in $ac_dummy; do
6468 test -z "$ac_dir" && ac_dir=.
6469 if test -f $ac_dir/$ac_word; then
6470 ac_cv_prog_CC="cl"
6471 break
6472 fi
6473 done
6474 IFS="$ac_save_ifs"
6475 fi
6476 fi
6477 CC="$ac_cv_prog_CC"
6478 if test -n "$CC"; then
6479 echo "$ac_t""$CC" 1>&6
6480 else
6481 echo "$ac_t""no" 1>&6
6482 fi
6483 ;;
6484 esac
6485 fi
6486 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6487 fi
6488
6489 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6490 echo "configure:6491: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6491
6492 ac_ext=c
6493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6497 cross_compiling=$ac_cv_prog_cc_cross
6498
6499 cat > conftest.$ac_ext << EOF
6500
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503
6504 main(){return(0);}
6505 EOF
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6507 ac_cv_prog_cc_works=yes
6508 # If we can't run a trivial program, we are probably using a cross compiler.
6509 if (./conftest; exit) 2>/dev/null; then
6510 ac_cv_prog_cc_cross=no
6511 else
6512 ac_cv_prog_cc_cross=yes
6513 fi
6514 else
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6517 ac_cv_prog_cc_works=no
6518 fi
6519 rm -fr conftest*
6520 ac_ext=c
6521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6522 ac_cpp='$CPP $CPPFLAGS'
6523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6525 cross_compiling=$ac_cv_prog_cc_cross
6526
6527 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6528 if test $ac_cv_prog_cc_works = no; then
6529 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6530 fi
6531 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6532 echo "configure:6533: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6533 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6534 cross_compiling=$ac_cv_prog_cc_cross
6535
6536 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6537 echo "configure:6538: checking whether we are using GNU C" >&5
6538 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6540 else
6541 cat > conftest.c <<EOF
6542 #ifdef __GNUC__
6543 yes;
6544 #endif
6545 EOF
6546 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6547 ac_cv_prog_gcc=yes
6548 else
6549 ac_cv_prog_gcc=no
6550 fi
6551 fi
6552
6553 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6554
6555 if test $ac_cv_prog_gcc = yes; then
6556 GCC=yes
6557 else
6558 GCC=
6559 fi
6560
6561 ac_test_CFLAGS="${CFLAGS+set}"
6562 ac_save_CFLAGS="$CFLAGS"
6563 CFLAGS=
6564 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6565 echo "configure:6566: checking whether ${CC-cc} accepts -g" >&5
6566 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6567 echo $ac_n "(cached) $ac_c" 1>&6
6568 else
6569 echo 'void f(){}' > conftest.c
6570 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6571 ac_cv_prog_cc_g=yes
6572 else
6573 ac_cv_prog_cc_g=no
6574 fi
6575 rm -f conftest*
6576
6577 fi
6578
6579 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6580 if test "$ac_test_CFLAGS" = set; then
6581 CFLAGS="$ac_save_CFLAGS"
6582 elif test $ac_cv_prog_cc_g = yes; then
6583 if test "$GCC" = yes; then
6584 CFLAGS="-g -O2"
6585 else
6586 CFLAGS="-g"
6587 fi
6588 else
6589 if test "$GCC" = yes; then
6590 CFLAGS="-O2"
6591 else
6592 CFLAGS=
6593 fi
6594 fi
6595
6596
6597 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6598
6599 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6600 echo "configure:6601: checking how to run the C preprocessor" >&5
6601 # On Suns, sometimes $CPP names a directory.
6602 if test -n "$CPP" && test -d "$CPP"; then
6603 CPP=
6604 fi
6605 if test -z "$CPP"; then
6606 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6608 else
6609 # This must be in double quotes, not single quotes, because CPP may get
6610 # substituted into the Makefile and "${CC-cc}" will confuse make.
6611 CPP="${CC-cc} -E"
6612 # On the NeXT, cc -E runs the code through the compiler's parser,
6613 # not just through cpp.
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 #include <assert.h>
6618 Syntax Error
6619 EOF
6620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6621 { (eval echo configure:6622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6623 if test -z "$ac_err"; then
6624 :
6625 else
6626 echo "$ac_err" >&5
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6629 rm -rf conftest*
6630 CPP="${CC-cc} -E -traditional-cpp"
6631 cat > conftest.$ac_ext <<EOF
6632 #line 6633 "configure"
6633 #include "confdefs.h"
6634 #include <assert.h>
6635 Syntax Error
6636 EOF
6637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6638 { (eval echo configure:6639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6640 if test -z "$ac_err"; then
6641 :
6642 else
6643 echo "$ac_err" >&5
6644 echo "configure: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6646 rm -rf conftest*
6647 CPP="${CC-cc} -nologo -E"
6648 cat > conftest.$ac_ext <<EOF
6649 #line 6650 "configure"
6650 #include "confdefs.h"
6651 #include <assert.h>
6652 Syntax Error
6653 EOF
6654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6655 { (eval echo configure:6656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6657 if test -z "$ac_err"; then
6658 :
6659 else
6660 echo "$ac_err" >&5
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6663 rm -rf conftest*
6664 CPP=/lib/cpp
6665 fi
6666 rm -f conftest*
6667 fi
6668 rm -f conftest*
6669 fi
6670 rm -f conftest*
6671 ac_cv_prog_CPP="$CPP"
6672 fi
6673 CPP="$ac_cv_prog_CPP"
6674 else
6675 ac_cv_prog_CPP="$CPP"
6676 fi
6677 echo "$ac_t""$CPP" 1>&6
6678
6679
6680 if test $ac_cv_prog_gcc = yes; then
6681 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6682 echo "configure:6683: checking whether ${CC-cc} needs -traditional" >&5
6683 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6684 echo $ac_n "(cached) $ac_c" 1>&6
6685 else
6686 ac_pattern="Autoconf.*'x'"
6687 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 #include <sgtty.h>
6691 Autoconf TIOCGETP
6692 EOF
6693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694 egrep "$ac_pattern" >/dev/null 2>&1; then
6695 rm -rf conftest*
6696 ac_cv_prog_gcc_traditional=yes
6697 else
6698 rm -rf conftest*
6699 ac_cv_prog_gcc_traditional=no
6700 fi
6701 rm -f conftest*
6702
6703
6704 if test $ac_cv_prog_gcc_traditional = no; then
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708 #include <termio.h>
6709 Autoconf TCGETA
6710 EOF
6711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6712 egrep "$ac_pattern" >/dev/null 2>&1; then
6713 rm -rf conftest*
6714 ac_cv_prog_gcc_traditional=yes
6715 fi
6716 rm -f conftest*
6717
6718 fi
6719 fi
6720
6721 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6722 if test $ac_cv_prog_gcc_traditional = yes; then
6723 CC="$CC -traditional"
6724 fi
6725 fi
6726
6727
6728
6729 ac_ext=C
6730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6731 ac_cpp='$CXXCPP $CPPFLAGS'
6732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6734 cross_compiling=$ac_cv_prog_cxx_cross
6735
6736
6737 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6738 do
6739 # Extract the first word of "$ac_prog", so it can be a program name with args.
6740 set dummy $ac_prog; ac_word=$2
6741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6742 echo "configure:6743: checking for $ac_word" >&5
6743 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6744 echo $ac_n "(cached) $ac_c" 1>&6
6745 else
6746 if test -n "$CXX"; then
6747 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6748 else
6749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6750 ac_dummy="$PATH"
6751 for ac_dir in $ac_dummy; do
6752 test -z "$ac_dir" && ac_dir=.
6753 if test -f $ac_dir/$ac_word; then
6754 ac_cv_prog_CXX="$ac_prog"
6755 break
6756 fi
6757 done
6758 IFS="$ac_save_ifs"
6759 fi
6760 fi
6761 CXX="$ac_cv_prog_CXX"
6762 if test -n "$CXX"; then
6763 echo "$ac_t""$CXX" 1>&6
6764 else
6765 echo "$ac_t""no" 1>&6
6766 fi
6767
6768 test -n "$CXX" && break
6769 done
6770 test -n "$CXX" || CXX="gcc"
6771
6772
6773 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6774 echo "configure:6775: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6775
6776 ac_ext=C
6777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6778 ac_cpp='$CXXCPP $CPPFLAGS'
6779 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6780 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6781 cross_compiling=$ac_cv_prog_cxx_cross
6782
6783 cat > conftest.$ac_ext << EOF
6784
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6787
6788 int main(){return(0);}
6789 EOF
6790 if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6791 ac_cv_prog_cxx_works=yes
6792 # If we can't run a trivial program, we are probably using a cross compiler.
6793 if (./conftest; exit) 2>/dev/null; then
6794 ac_cv_prog_cxx_cross=no
6795 else
6796 ac_cv_prog_cxx_cross=yes
6797 fi
6798 else
6799 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6801 ac_cv_prog_cxx_works=no
6802 fi
6803 rm -fr conftest*
6804 ac_ext=C
6805 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6806 ac_cpp='$CXXCPP $CPPFLAGS'
6807 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6808 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6809 cross_compiling=$ac_cv_prog_cxx_cross
6810
6811 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6812 if test $ac_cv_prog_cxx_works = no; then
6813 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6814 fi
6815 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6816 echo "configure:6817: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6817 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6818 cross_compiling=$ac_cv_prog_cxx_cross
6819
6820 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6821 echo "configure:6822: checking whether we are using GNU C++" >&5
6822 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6824 else
6825 cat > conftest.C <<EOF
6826 #ifdef __GNUC__
6827 yes;
6828 #endif
6829 EOF
6830 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6831 ac_cv_prog_gxx=yes
6832 else
6833 ac_cv_prog_gxx=no
6834 fi
6835 fi
6836
6837 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6838
6839 if test $ac_cv_prog_gxx = yes; then
6840 GXX=yes
6841 else
6842 GXX=
6843 fi
6844
6845 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6846 ac_save_CXXFLAGS="$CXXFLAGS"
6847 CXXFLAGS=
6848 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6849 echo "configure:6850: checking whether ${CXX-g++} accepts -g" >&5
6850 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6851 echo $ac_n "(cached) $ac_c" 1>&6
6852 else
6853 echo 'void f(){}' > conftest.cc
6854 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6855 ac_cv_prog_cxx_g=yes
6856 else
6857 ac_cv_prog_cxx_g=no
6858 fi
6859 rm -f conftest*
6860
6861 fi
6862
6863 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6864 if test "$ac_test_CXXFLAGS" = set; then
6865 CXXFLAGS="$ac_save_CXXFLAGS"
6866 elif test $ac_cv_prog_cxx_g = yes; then
6867 if test "$GXX" = yes; then
6868 CXXFLAGS="-g -O2"
6869 else
6870 CXXFLAGS="-g"
6871 fi
6872 else
6873 if test "$GXX" = yes; then
6874 CXXFLAGS="-O2"
6875 else
6876 CXXFLAGS=
6877 fi
6878 fi
6879
6880
6881 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6882 echo "configure:6883: checking how to run the C++ preprocessor" >&5
6883 if test -z "$CXXCPP"; then
6884 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6885 echo $ac_n "(cached) $ac_c" 1>&6
6886 else
6887 ac_ext=C
6888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6889 ac_cpp='$CXXCPP $CPPFLAGS'
6890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6892 cross_compiling=$ac_cv_prog_cxx_cross
6893 CXXCPP="${CXX-g++} -E"
6894 cat > conftest.$ac_ext <<EOF
6895 #line 6896 "configure"
6896 #include "confdefs.h"
6897 #include <stdlib.h>
6898 EOF
6899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6900 { (eval echo configure:6901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6902 if test -z "$ac_err"; then
6903 :
6904 else
6905 echo "$ac_err" >&5
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6908 rm -rf conftest*
6909 CXXCPP=/lib/cpp
6910 fi
6911 rm -f conftest*
6912 ac_cv_prog_CXXCPP="$CXXCPP"
6913 ac_ext=C
6914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6915 ac_cpp='$CXXCPP $CPPFLAGS'
6916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6918 cross_compiling=$ac_cv_prog_cxx_cross
6919 fi
6920 fi
6921 CXXCPP="$ac_cv_prog_CXXCPP"
6922 echo "$ac_t""$CXXCPP" 1>&6
6923
6924
6925 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6926
6927 ac_ext=c
6928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6929 ac_cpp='$CPP $CPPFLAGS'
6930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6932 cross_compiling=$ac_cv_prog_cc_cross
6933
6934
6935 # Extract the first word of "ranlib", so it can be a program name with args.
6936 set dummy ranlib; ac_word=$2
6937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6938 echo "configure:6939: checking for $ac_word" >&5
6939 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6940 echo $ac_n "(cached) $ac_c" 1>&6
6941 else
6942 if test -n "$RANLIB"; then
6943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6944 else
6945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6946 ac_dummy="$PATH"
6947 for ac_dir in $ac_dummy; do
6948 test -z "$ac_dir" && ac_dir=.
6949 if test -f $ac_dir/$ac_word; then
6950 ac_cv_prog_RANLIB="ranlib"
6951 break
6952 fi
6953 done
6954 IFS="$ac_save_ifs"
6955 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6956 fi
6957 fi
6958 RANLIB="$ac_cv_prog_RANLIB"
6959 if test -n "$RANLIB"; then
6960 echo "$ac_t""$RANLIB" 1>&6
6961 else
6962 echo "$ac_t""no" 1>&6
6963 fi
6964
6965
6966 # Extract the first word of "ar", so it can be a program name with args.
6967 set dummy ar; ac_word=$2
6968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6969 echo "configure:6970: checking for $ac_word" >&5
6970 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6972 else
6973 if test -n "$AR"; then
6974 ac_cv_prog_AR="$AR" # Let the user override the test.
6975 else
6976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6977 ac_dummy="$PATH"
6978 for ac_dir in $ac_dummy; do
6979 test -z "$ac_dir" && ac_dir=.
6980 if test -f $ac_dir/$ac_word; then
6981 ac_cv_prog_AR="ar"
6982 break
6983 fi
6984 done
6985 IFS="$ac_save_ifs"
6986 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6987 fi
6988 fi
6989 AR="$ac_cv_prog_AR"
6990 if test -n "$AR"; then
6991 echo "$ac_t""$AR" 1>&6
6992 else
6993 echo "$ac_t""no" 1>&6
6994 fi
6995
6996
6997 # Find a good install program. We prefer a C program (faster),
6998 # so one script is as good as another. But avoid the broken or
6999 # incompatible versions:
7000 # SysV /etc/install, /usr/sbin/install
7001 # SunOS /usr/etc/install
7002 # IRIX /sbin/install
7003 # AIX /bin/install
7004 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7005 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7006 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7007 # ./install, which can be erroneously created by make from ./install.sh.
7008 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7009 echo "configure:7010: checking for a BSD compatible install" >&5
7010 if test -z "$INSTALL"; then
7011 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7012 echo $ac_n "(cached) $ac_c" 1>&6
7013 else
7014 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
7015 for ac_dir in $PATH; do
7016 # Account for people who put trailing slashes in PATH elements.
7017 case "$ac_dir/" in
7018 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7019 *)
7020 # OSF1 and SCO ODT 3.0 have their own names for install.
7021 # Don't use installbsd from OSF since it installs stuff as root
7022 # by default.
7023 for ac_prog in ginstall scoinst install; do
7024 if test -f $ac_dir/$ac_prog; then
7025 if test $ac_prog = install &&
7026 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7027 # AIX install. It has an incompatible calling convention.
7028 :
7029 else
7030 ac_cv_path_install="$ac_dir/$ac_prog -c"
7031 break 2
7032 fi
7033 fi
7034 done
7035 ;;
7036 esac
7037 done
7038 IFS="$ac_save_IFS"
7039
7040 fi
7041 if test "${ac_cv_path_install+set}" = set; then
7042 INSTALL="$ac_cv_path_install"
7043 else
7044 # As a last resort, use the slow shell script. We don't cache a
7045 # path for INSTALL within a source directory, because that will
7046 # break other packages using the cache if that directory is
7047 # removed, or if the path is relative.
7048 INSTALL="$ac_install_sh"
7049 fi
7050 fi
7051 echo "$ac_t""$INSTALL" 1>&6
7052
7053 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7054 # It thinks the first close brace ends the variable substitution.
7055 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7056
7057 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
7058
7059 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7060
7061
7062 # Extract the first word of "strip", so it can be a program name with args.
7063 set dummy strip; ac_word=$2
7064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7065 echo "configure:7066: checking for $ac_word" >&5
7066 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
7068 else
7069 if test -n "$STRIP"; then
7070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7071 else
7072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7073 ac_dummy="$PATH"
7074 for ac_dir in $ac_dummy; do
7075 test -z "$ac_dir" && ac_dir=.
7076 if test -f $ac_dir/$ac_word; then
7077 ac_cv_prog_STRIP="strip"
7078 break
7079 fi
7080 done
7081 IFS="$ac_save_ifs"
7082 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
7083 fi
7084 fi
7085 STRIP="$ac_cv_prog_STRIP"
7086 if test -n "$STRIP"; then
7087 echo "$ac_t""$STRIP" 1>&6
7088 else
7089 echo "$ac_t""no" 1>&6
7090 fi
7091
7092
7093 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
7094 echo "configure:7095: checking "make for VPATH support"" >&5
7095 cat - << EOF > confMake
7096 check : file
7097 cp \$? \$@
7098 cp \$? final_file
7099 EOF
7100
7101 if test ! -d sub ; then
7102 mkdir sub
7103 fi
7104 echo dummy > sub/file
7105 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
7106 RESULT=$?
7107 rm -f sub/file check final_file confMake
7108 rmdir sub
7109 if test "$RESULT" = 0; then
7110 echo "$ac_t""yes" 1>&6
7111 else
7112 echo "$ac_t""no" 1>&6
7113 { echo "configure: error: You need a make-utility that is able to use the variable
7114 VPATH correctly.
7115 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
7116 fi
7117
7118 for ac_prog in 'bison -y' byacc
7119 do
7120 # Extract the first word of "$ac_prog", so it can be a program name with args.
7121 set dummy $ac_prog; ac_word=$2
7122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7123 echo "configure:7124: checking for $ac_word" >&5
7124 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
7125 echo $ac_n "(cached) $ac_c" 1>&6
7126 else
7127 if test -n "$YACC"; then
7128 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7129 else
7130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7131 ac_dummy="$PATH"
7132 for ac_dir in $ac_dummy; do
7133 test -z "$ac_dir" && ac_dir=.
7134 if test -f $ac_dir/$ac_word; then
7135 ac_cv_prog_YACC="$ac_prog"
7136 break
7137 fi
7138 done
7139 IFS="$ac_save_ifs"
7140 fi
7141 fi
7142 YACC="$ac_cv_prog_YACC"
7143 if test -n "$YACC"; then
7144 echo "$ac_t""$YACC" 1>&6
7145 else
7146 echo "$ac_t""no" 1>&6
7147 fi
7148
7149 test -n "$YACC" && break
7150 done
7151 test -n "$YACC" || YACC="yacc"
7152
7153
7154 # Extract the first word of "flex", so it can be a program name with args.
7155 set dummy flex; ac_word=$2
7156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7157 echo "configure:7158: checking for $ac_word" >&5
7158 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7160 else
7161 if test -n "$LEX"; then
7162 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7163 else
7164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7165 ac_dummy="$PATH"
7166 for ac_dir in $ac_dummy; do
7167 test -z "$ac_dir" && ac_dir=.
7168 if test -f $ac_dir/$ac_word; then
7169 ac_cv_prog_LEX="flex"
7170 break
7171 fi
7172 done
7173 IFS="$ac_save_ifs"
7174 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
7175 fi
7176 fi
7177 LEX="$ac_cv_prog_LEX"
7178 if test -n "$LEX"; then
7179 echo "$ac_t""$LEX" 1>&6
7180 else
7181 echo "$ac_t""no" 1>&6
7182 fi
7183
7184 if test -z "$LEXLIB"
7185 then
7186 case "$LEX" in
7187 flex*) ac_lib=fl ;;
7188 *) ac_lib=l ;;
7189 esac
7190 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7191 echo "configure:7192: checking for yywrap in -l$ac_lib" >&5
7192 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
7193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7195 else
7196 ac_save_LIBS="$LIBS"
7197 LIBS="-l$ac_lib $LIBS"
7198 cat > conftest.$ac_ext <<EOF
7199 #line 7200 "configure"
7200 #include "confdefs.h"
7201 /* Override any gcc2 internal prototype to avoid an error. */
7202 /* We use char because int might match the return type of a gcc2
7203 builtin and then its argument prototype would still apply. */
7204 char yywrap();
7205
7206 int main() {
7207 yywrap()
7208 ; return 0; }
7209 EOF
7210 if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7211 rm -rf conftest*
7212 eval "ac_cv_lib_$ac_lib_var=yes"
7213 else
7214 echo "configure: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7216 rm -rf conftest*
7217 eval "ac_cv_lib_$ac_lib_var=no"
7218 fi
7219 rm -f conftest*
7220 LIBS="$ac_save_LIBS"
7221
7222 fi
7223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7224 echo "$ac_t""yes" 1>&6
7225 LEXLIB="-l$ac_lib"
7226 else
7227 echo "$ac_t""no" 1>&6
7228 fi
7229
7230 fi
7231
7232
7233 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7234 echo "configure:7235: checking whether ln -s works" >&5
7235 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7237 else
7238 rm -f conftestdata
7239 if ln -s X conftestdata 2>/dev/null
7240 then
7241 rm -f conftestdata
7242 ac_cv_prog_LN_S="ln -s"
7243 else
7244 ac_cv_prog_LN_S=ln
7245 fi
7246 fi
7247 LN_S="$ac_cv_prog_LN_S"
7248 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7249 echo "$ac_t""yes" 1>&6
7250 else
7251 echo "$ac_t""no" 1>&6
7252 fi
7253
7254
7255
7256 SEARCH_INCLUDE="\
7257 /usr/local/include \
7258 \
7259 /usr/Motif-1.2/include \
7260 /usr/Motif-2.1/include \
7261 \
7262 /usr/include/Motif1.2 \
7263 /opt/xpm/include/X11 \
7264 /opt/GBxpm/include/ \
7265 /opt/GBxpm/X11/include/ \
7266 \
7267 /usr/Motif1.2/include \
7268 /usr/dt/include \
7269 /usr/openwin/include \
7270 \
7271 /usr/include/Xm \
7272 \
7273 /usr/X11R6/include \
7274 /usr/X11R6.4/include \
7275 /usr/X11R5/include \
7276 /usr/X11R4/include \
7277 \
7278 /usr/include/X11R6 \
7279 /usr/include/X11R5 \
7280 /usr/include/X11R4 \
7281 \
7282 /usr/local/X11R6/include \
7283 /usr/local/X11R5/include \
7284 /usr/local/X11R4/include \
7285 \
7286 /usr/local/include/X11R6 \
7287 /usr/local/include/X11R5 \
7288 /usr/local/include/X11R4 \
7289 \
7290 /usr/X11/include \
7291 /usr/include/X11 \
7292 /usr/local/X11/include \
7293 /usr/local/include/X11 \
7294 \
7295 /usr/X386/include \
7296 /usr/x386/include \
7297 /usr/XFree86/include/X11 \
7298 \
7299 X:/XFree86/include \
7300 X:/XFree86/include/X11 \
7301 \
7302 /usr/include/gtk \
7303 /usr/local/include/gtk \
7304 /usr/include/glib \
7305 /usr/local/include/glib \
7306 \
7307 /usr/include/qt \
7308 /usr/local/include/qt \
7309 \
7310 /usr/include/windows \
7311 /usr/include/wine \
7312 /usr/local/include/wine \
7313 \
7314 /usr/unsupported/include \
7315 /usr/athena/include \
7316 /usr/local/x11r5/include \
7317 /usr/lpp/Xamples/include \
7318 \
7319 /usr/openwin/share/include \
7320 \
7321 /usr/include"
7322
7323 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7324
7325
7326 cat > confcache <<\EOF
7327 # This file is a shell script that caches the results of configure
7328 # tests run on this system so they can be shared between configure
7329 # scripts and configure runs. It is not useful on other systems.
7330 # If it contains results you don't want to keep, you may remove or edit it.
7331 #
7332 # By default, configure uses ./config.cache as the cache file,
7333 # creating it if it does not exist already. You can give configure
7334 # the --cache-file=FILE option to use a different cache file; that is
7335 # what configure does when it calls configure scripts in
7336 # subdirectories, so they share the cache.
7337 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7338 # config.status only pays attention to the cache file if you give it the
7339 # --recheck option to rerun configure.
7340 #
7341 EOF
7342 # The following way of writing the cache mishandles newlines in values,
7343 # but we know of no workaround that is simple, portable, and efficient.
7344 # So, don't put newlines in cache variables' values.
7345 # Ultrix sh set writes to stderr and can't be redirected directly,
7346 # and sets the high bit in the cache file unless we assign to the vars.
7347 (set) 2>&1 |
7348 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7349 *ac_space=\ *)
7350 # `set' does not quote correctly, so add quotes (double-quote substitution
7351 # turns \\\\ into \\, and sed turns \\ into \).
7352 sed -n \
7353 -e "s/'/'\\\\''/g" \
7354 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7355 ;;
7356 *)
7357 # `set' quotes correctly as required by POSIX, so do not add quotes.
7358 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7359 ;;
7360 esac >> confcache
7361 if cmp -s $cache_file confcache; then
7362 :
7363 else
7364 if test -w $cache_file; then
7365 echo "updating cache $cache_file"
7366 cat confcache > $cache_file
7367 else
7368 echo "not updating unwritable cache $cache_file"
7369 fi
7370 fi
7371 rm -f confcache
7372
7373
7374
7375 AFMINSTALL=
7376
7377 if test "$wxUSE_GUI" = "yes"; then
7378
7379 USE_GUI=1
7380
7381 TOOLKIT=
7382 TOOLKIT_INCLUDE=
7383
7384 GUI_TK_LIBRARY=
7385 GUI_TK_LINK=
7386
7387 WXGTK12=
7388 WXGTK127=
7389 WXGTK20=
7390
7391 WXWINE=
7392
7393 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7394 if test "$cross_compiling" = "yes" ; then
7395 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
7396 else
7397 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7398 echo "configure:7399: checking for Windows headers" >&5
7399
7400 ac_find_includes=
7401 for ac_dir in $SEARCH_INCLUDE;
7402 do
7403 if test -f "$ac_dir/windows.h"; then
7404 ac_find_includes=$ac_dir
7405 break
7406 fi
7407 done
7408
7409 if test "$ac_find_includes" != "" ; then
7410 echo "$ac_t""found $ac_find_includes" 1>&6
7411 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7412 else
7413 echo "$ac_t""no" 1>&6
7414 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7415 fi
7416 fi
7417
7418 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7419 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7420
7421 if test "$wxUSE_ODBC" = "yes" ; then
7422 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7423 fi
7424
7425 if test "$wxUSE_MINGW" = 1; then
7426 LDFLAGS="$LDFLAGS -mwindows"
7427 fi
7428
7429 TOOLKIT=MSW
7430 GUIDIST=MSW_DIST
7431
7432 RCINCSWITCH="--include-dir"
7433 RCDEFSWITCH="--define"
7434 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7435 RCINPUTSWITCH="-i"
7436 RCOUTPUTSWITCH="-o"
7437 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7438
7439 RESPROGRAM="\$(RES_PROGRAM)"
7440
7441 fi
7442
7443 if test "$wxUSE_GTK" = 1; then
7444 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7445 if test "${with_gtk_prefix+set}" = set; then
7446 withval="$with_gtk_prefix"
7447 gtk_config_prefix="$withval"
7448 else
7449 gtk_config_prefix=""
7450 fi
7451
7452 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7453 if test "${with_gtk_exec_prefix+set}" = set; then
7454 withval="$with_gtk_exec_prefix"
7455 gtk_config_exec_prefix="$withval"
7456 else
7457 gtk_config_exec_prefix=""
7458 fi
7459
7460 # Check whether --enable-gtktest or --disable-gtktest was given.
7461 if test "${enable_gtktest+set}" = set; then
7462 enableval="$enable_gtktest"
7463 :
7464 else
7465 enable_gtktest=yes
7466 fi
7467
7468
7469 for module in . gthread
7470 do
7471 case "$module" in
7472 gthread)
7473 gtk_config_args="$gtk_config_args gthread"
7474 ;;
7475 esac
7476 done
7477
7478 if test x$gtk_config_exec_prefix != x ; then
7479 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7480 if test x${GTK_CONFIG_2_0+set} != xset ; then
7481 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7482 fi
7483 fi
7484 if test x$gtk_config_prefix != x ; then
7485 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7486 if test x${GTK_CONFIG_2_0+set} != xset ; then
7487 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7488 fi
7489 fi
7490
7491 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7492 set dummy gtk-config-2.0; ac_word=$2
7493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7494 echo "configure:7495: checking for $ac_word" >&5
7495 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7497 else
7498 case "$GTK_CONFIG_2_0" in
7499 /*)
7500 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7501 ;;
7502 ?:/*)
7503 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7504 ;;
7505 *)
7506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7507 ac_dummy="$PATH"
7508 for ac_dir in $ac_dummy; do
7509 test -z "$ac_dir" && ac_dir=.
7510 if test -f $ac_dir/$ac_word; then
7511 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7512 break
7513 fi
7514 done
7515 IFS="$ac_save_ifs"
7516 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7517 ;;
7518 esac
7519 fi
7520 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7521 if test -n "$GTK_CONFIG_2_0"; then
7522 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7523 else
7524 echo "$ac_t""no" 1>&6
7525 fi
7526
7527 min_gtk_version=1.3.1
7528 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7529 echo "configure:7530: checking for GTK - version >= $min_gtk_version" >&5
7530 no_gtk=""
7531 if test "$GTK_CONFIG_2_0" = "no" ; then
7532 no_gtk=yes
7533 else
7534 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7535 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7536 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7537 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7538 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7539 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7540 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7541 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7542 if test "x$enable_gtktest" = "xyes" ; then
7543 ac_save_CFLAGS="$CFLAGS"
7544 ac_save_LIBS="$LIBS"
7545 CFLAGS="$CFLAGS $GTK_CFLAGS"
7546 LIBS="$GTK_LIBS $LIBS"
7547 rm -f conf.gtktest
7548 if test "$cross_compiling" = yes; then
7549 echo $ac_n "cross compiling; assumed OK... $ac_c"
7550 else
7551 cat > conftest.$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7554
7555 #include <gtk/gtk.h>
7556 #include <stdio.h>
7557 #include <stdlib.h>
7558
7559 int
7560 main ()
7561 {
7562 int major, minor, micro;
7563 char *tmp_version;
7564
7565 system ("touch conf.gtktest");
7566
7567 /* HP/UX 9 (%@#!) writes to sscanf strings */
7568 tmp_version = g_strdup("$min_gtk_version");
7569 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7570 printf("%s, bad version string\n", "$min_gtk_version");
7571 exit(1);
7572 }
7573
7574 if ((gtk_major_version != $gtk_config_major_version) ||
7575 (gtk_minor_version != $gtk_config_minor_version) ||
7576 (gtk_micro_version != $gtk_config_micro_version))
7577 {
7578 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7579 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7580 gtk_major_version, gtk_minor_version, gtk_micro_version);
7581 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7582 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7583 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7584 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7585 printf("*** required on your system.\n");
7586 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7587 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7588 printf("*** before re-running configure\n");
7589 }
7590 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7591 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7592 (gtk_minor_version != GTK_MINOR_VERSION) ||
7593 (gtk_micro_version != GTK_MICRO_VERSION))
7594 {
7595 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7596 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7597 printf("*** library (version %d.%d.%d)\n",
7598 gtk_major_version, gtk_minor_version, gtk_micro_version);
7599 }
7600 #endif /* defined (GTK_MAJOR_VERSION) ... */
7601 else
7602 {
7603 if ((gtk_major_version > major) ||
7604 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7605 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7606 {
7607 return 0;
7608 }
7609 else
7610 {
7611 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7612 gtk_major_version, gtk_minor_version, gtk_micro_version);
7613 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7614 major, minor, micro);
7615 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7616 printf("***\n");
7617 printf("*** If you have already installed a sufficiently new version, this error\n");
7618 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7619 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7620 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7621 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7622 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7623 printf("*** so that the correct libraries are found at run-time))\n");
7624 }
7625 }
7626 return 1;
7627 }
7628
7629 EOF
7630 if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7631 then
7632 :
7633 else
7634 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7636 rm -fr conftest*
7637 no_gtk=yes
7638 fi
7639 rm -fr conftest*
7640 fi
7641
7642 CFLAGS="$ac_save_CFLAGS"
7643 LIBS="$ac_save_LIBS"
7644 fi
7645 fi
7646 if test "x$no_gtk" = x ; then
7647 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7648 WXGTK20=1
7649 else
7650 echo "$ac_t""no" 1>&6
7651 if test "$GTK_CONFIG_2_0" = "no" ; then
7652 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7653 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7654 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7655 echo "*** full path to gtk-config-2.0."
7656 else
7657 if test -f conf.gtktest ; then
7658 :
7659 else
7660 echo "*** Could not run GTK test program, checking why..."
7661 CFLAGS="$CFLAGS $GTK_CFLAGS"
7662 LIBS="$LIBS $GTK_LIBS"
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666
7667 #include <gtk/gtk.h>
7668 #include <stdio.h>
7669
7670 int main() {
7671 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7672 ; return 0; }
7673 EOF
7674 if { (eval echo configure:7675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7675 rm -rf conftest*
7676 echo "*** The test program compiled, but did not run. This usually means"
7677 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7678 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7679 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7680 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7681 echo "*** is required on your system"
7682 echo "***"
7683 echo "*** If you have an old version installed, it is best to remove it, although"
7684 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7685 echo "***"
7686 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7687 echo "*** came with the system with the command"
7688 echo "***"
7689 echo "*** rpm --erase --nodeps gtk gtk-devel"
7690 else
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 rm -rf conftest*
7694 echo "*** The test program failed to compile or link. See the file config.log for the"
7695 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7696 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7697 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7698 fi
7699 rm -f conftest*
7700 CFLAGS="$ac_save_CFLAGS"
7701 LIBS="$ac_save_LIBS"
7702 fi
7703 fi
7704 GTK_CFLAGS=""
7705 GTK_LIBS=""
7706
7707
7708 if test x$gtk_config_exec_prefix != x ; then
7709 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7710 if test x${GTK_CONFIG+set} != xset ; then
7711 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7712 fi
7713 fi
7714 if test x$gtk_config_prefix != x ; then
7715 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7716 if test x${GTK_CONFIG+set} != xset ; then
7717 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7718 fi
7719 fi
7720
7721 # Extract the first word of "gtk-config", so it can be a program name with args.
7722 set dummy gtk-config; ac_word=$2
7723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7724 echo "configure:7725: checking for $ac_word" >&5
7725 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
7727 else
7728 case "$GTK_CONFIG" in
7729 /*)
7730 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7731 ;;
7732 ?:/*)
7733 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7734 ;;
7735 *)
7736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7737 ac_dummy="$PATH"
7738 for ac_dir in $ac_dummy; do
7739 test -z "$ac_dir" && ac_dir=.
7740 if test -f $ac_dir/$ac_word; then
7741 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7742 break
7743 fi
7744 done
7745 IFS="$ac_save_ifs"
7746 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7747 ;;
7748 esac
7749 fi
7750 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7751 if test -n "$GTK_CONFIG"; then
7752 echo "$ac_t""$GTK_CONFIG" 1>&6
7753 else
7754 echo "$ac_t""no" 1>&6
7755 fi
7756
7757 min_gtk_version=1.2.7
7758 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7759 echo "configure:7760: checking for GTK - version >= $min_gtk_version" >&5
7760 no_gtk=""
7761 if test "$GTK_CONFIG" != "no" ; then
7762 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7763 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7764 ac_save_CFLAGS="$CFLAGS"
7765 ac_save_LIBS="$LIBS"
7766 CFLAGS="$CFLAGS $GTK_CFLAGS"
7767 LIBS="$LIBS $GTK_LIBS"
7768 if test "$cross_compiling" = yes; then
7769 echo $ac_n "cross compiling; assumed OK... $ac_c"
7770 else
7771 cat > conftest.$ac_ext <<EOF
7772 #line 7773 "configure"
7773 #include "confdefs.h"
7774
7775 #include <gtk/gtk.h>
7776 #include <gtk/gtkfeatures.h>
7777 #include <stdio.h>
7778 #include <stdlib.h>
7779
7780 int
7781 main ()
7782 {
7783 int major, minor, micro;
7784
7785 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7786 printf("%s, bad version string\n", "$min_gtk_version");
7787 exit(1);
7788 }
7789
7790 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7791 (GTK_MINOR_VERSION != gtk_minor_version) ||
7792 (GTK_MICRO_VERSION != gtk_micro_version)) {
7793 printf("Headers vs. library version mismatch!\n");
7794 exit(1);
7795 }
7796
7797 if (gtk_minor_version == 1) return FALSE;
7798
7799 return !((gtk_major_version > major) ||
7800 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7801 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7802 }
7803
7804 EOF
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7806 then
7807 :
7808 else
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 rm -fr conftest*
7812 no_gtk=yes
7813 fi
7814 rm -fr conftest*
7815 fi
7816
7817 CFLAGS="$ac_save_CFLAGS"
7818 LIBS="$ac_save_LIBS"
7819 else
7820 no_gtk=yes
7821 fi
7822 if test "x$no_gtk" = x ; then
7823 echo "$ac_t""yes" 1>&6
7824 WXGTK127=1
7825 else
7826 echo "$ac_t""no" 1>&6
7827 GTK_CFLAGS=""
7828 GTK_LIBS=""
7829 :
7830 fi
7831
7832
7833
7834
7835 if test x$gtk_config_exec_prefix != x ; then
7836 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7837 if test x${GTK_CONFIG+set} != xset ; then
7838 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7839 fi
7840 fi
7841 if test x$gtk_config_prefix != x ; then
7842 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7843 if test x${GTK_CONFIG+set} != xset ; then
7844 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7845 fi
7846 fi
7847
7848 # Extract the first word of "gtk-config", so it can be a program name with args.
7849 set dummy gtk-config; ac_word=$2
7850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7851 echo "configure:7852: checking for $ac_word" >&5
7852 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7854 else
7855 case "$GTK_CONFIG" in
7856 /*)
7857 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7858 ;;
7859 ?:/*)
7860 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7861 ;;
7862 *)
7863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7864 ac_dummy="$PATH"
7865 for ac_dir in $ac_dummy; do
7866 test -z "$ac_dir" && ac_dir=.
7867 if test -f $ac_dir/$ac_word; then
7868 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7869 break
7870 fi
7871 done
7872 IFS="$ac_save_ifs"
7873 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7874 ;;
7875 esac
7876 fi
7877 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7878 if test -n "$GTK_CONFIG"; then
7879 echo "$ac_t""$GTK_CONFIG" 1>&6
7880 else
7881 echo "$ac_t""no" 1>&6
7882 fi
7883
7884 min_gtk_version=1.2.3
7885 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7886 echo "configure:7887: checking for GTK - version >= $min_gtk_version" >&5
7887 no_gtk=""
7888 if test "$GTK_CONFIG" != "no" ; then
7889 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7890 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7891 ac_save_CFLAGS="$CFLAGS"
7892 ac_save_LIBS="$LIBS"
7893 CFLAGS="$CFLAGS $GTK_CFLAGS"
7894 LIBS="$LIBS $GTK_LIBS"
7895 if test "$cross_compiling" = yes; then
7896 echo $ac_n "cross compiling; assumed OK... $ac_c"
7897 else
7898 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7901
7902 #include <gtk/gtk.h>
7903 #include <gtk/gtkfeatures.h>
7904 #include <stdio.h>
7905 #include <stdlib.h>
7906
7907 int
7908 main ()
7909 {
7910 int major, minor, micro;
7911
7912 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7913 printf("%s, bad version string\n", "$min_gtk_version");
7914 exit(1);
7915 }
7916
7917 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7918 (GTK_MINOR_VERSION != gtk_minor_version) ||
7919 (GTK_MICRO_VERSION != gtk_micro_version)) {
7920 printf("Headers vs. library version mismatch!\n");
7921 exit(1);
7922 }
7923
7924 if (gtk_minor_version == 1) return FALSE;
7925
7926 return !((gtk_major_version > major) ||
7927 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7928 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7929 }
7930
7931 EOF
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7933 then
7934 :
7935 else
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7938 rm -fr conftest*
7939 no_gtk=yes
7940 fi
7941 rm -fr conftest*
7942 fi
7943
7944 CFLAGS="$ac_save_CFLAGS"
7945 LIBS="$ac_save_LIBS"
7946 else
7947 no_gtk=yes
7948 fi
7949 if test "x$no_gtk" = x ; then
7950 echo "$ac_t""yes" 1>&6
7951 WXGTK12=1
7952 else
7953 echo "$ac_t""no" 1>&6
7954 GTK_CFLAGS=""
7955 GTK_LIBS=""
7956 :
7957 fi
7958
7959
7960
7961
7962 fi
7963
7964
7965 rm -f conf.gtktest
7966
7967
7968 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7969 { echo "configure: error:
7970 Please check that gtk-config is in path, the directory
7971 where GTK+ libraries are installed (returned by
7972 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7973 equivalent variable and GTK+ is version 1.2.3 or above.
7974 " 1>&2; exit 1; }
7975 fi
7976
7977 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7978
7979
7980 GUI_TK_LIBRARY="$GTK_LIBS"
7981
7982
7983 AFMINSTALL=afminstall
7984 TOOLKIT=GTK
7985 GUIDIST=GTK_DIST
7986
7987 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7988 echo "configure:7989: checking for gdk_im_open in -lgdk" >&5
7989 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7991 echo $ac_n "(cached) $ac_c" 1>&6
7992 else
7993 ac_save_LIBS="$LIBS"
7994 LIBS="-lgdk $LIBS"
7995 cat > conftest.$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
7998 /* Override any gcc2 internal prototype to avoid an error. */
7999 /* We use char because int might match the return type of a gcc2
8000 builtin and then its argument prototype would still apply. */
8001 char gdk_im_open();
8002
8003 int main() {
8004 gdk_im_open()
8005 ; return 0; }
8006 EOF
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8008 rm -rf conftest*
8009 eval "ac_cv_lib_$ac_lib_var=yes"
8010 else
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8013 rm -rf conftest*
8014 eval "ac_cv_lib_$ac_lib_var=no"
8015 fi
8016 rm -f conftest*
8017 LIBS="$ac_save_LIBS"
8018
8019 fi
8020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8021 echo "$ac_t""yes" 1>&6
8022 cat >> confdefs.h <<\EOF
8023 #define HAVE_XIM 1
8024 EOF
8025
8026 else
8027 echo "$ac_t""no" 1>&6
8028 fi
8029
8030 fi
8031
8032 if test "$wxUSE_WINE" = 1; then
8033 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
8034 echo "configure:8035: checking for WINE includes" >&5
8035
8036 ac_find_includes=
8037 for ac_dir in $SEARCH_INCLUDE;
8038 do
8039 if test -f "$ac_dir/windows.h"; then
8040 ac_find_includes=$ac_dir
8041 break
8042 fi
8043 done
8044
8045 if test "$ac_find_includes" != "" ; then
8046 echo "$ac_t""found $ac_find_includes" 1>&6
8047 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8048 else
8049 echo "$ac_t""no" 1>&6
8050 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8051 fi
8052
8053 XPM_LINK=""
8054 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8055 echo "configure:8056: checking for Xpm library" >&5
8056
8057 ac_find_libraries=
8058 for ac_dir in $SEARCH_LIB;
8059 do
8060 for ac_extension in a so sl; do
8061 if test -f "$ac_dir/libXpm.$ac_extension"; then
8062 ac_find_libraries=$ac_dir
8063 break 2
8064 fi
8065 done
8066 done
8067
8068 if test "$ac_find_libraries" != "" ; then
8069 GUI_TK_LIBRARY="-L$ac_find_libraries"
8070 XPM_LINK="-lXpm"
8071 cat >> confdefs.h <<\EOF
8072 #define wxHAVE_LIB_XPM 1
8073 EOF
8074
8075 echo "$ac_t""found at $ac_find_libraries" 1>&6
8076 else
8077 echo "$ac_t""no" 1>&6
8078 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8079 fi
8080
8081 MESA_LINK=""
8082 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
8083 echo "configure:8084: checking for Mesa library" >&5
8084
8085 ac_find_libraries=
8086 for ac_dir in $SEARCH_LIB;
8087 do
8088 for ac_extension in a so sl; do
8089 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
8090 ac_find_libraries=$ac_dir
8091 break 2
8092 fi
8093 done
8094 done
8095
8096 if test "$ac_find_libraries" != "" ; then
8097 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
8098 MESA_LINK="-lMesaGL"
8099 echo "$ac_t""found at $ac_find_libraries" 1>&6
8100 else
8101 { echo "configure: error: no" 1>&2; exit 1; }
8102 fi
8103
8104 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
8105 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8106 WXWINE=1
8107 TOOLKIT=MSW
8108 GUIDIST=MSW_DIST
8109 fi
8110
8111
8112 # If we find X, set shell vars x_includes and x_libraries to the
8113 # paths, otherwise set no_x=yes.
8114 # Uses ac_ vars as temps to allow command line to override cache and checks.
8115 # --without-x overrides everything else, but does not touch the cache.
8116 echo $ac_n "checking for X""... $ac_c" 1>&6
8117 echo "configure:8118: checking for X" >&5
8118
8119 # Check whether --with-x or --without-x was given.
8120 if test "${with_x+set}" = set; then
8121 withval="$with_x"
8122 :
8123 fi
8124
8125 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8126 if test "x$with_x" = xno; then
8127 # The user explicitly disabled X.
8128 have_x=disabled
8129 else
8130 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8131 # Both variables are already set.
8132 have_x=yes
8133 else
8134 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8135 echo $ac_n "(cached) $ac_c" 1>&6
8136 else
8137 # One or both of the vars are not set, and there is no cached value.
8138 ac_x_includes=NO ac_x_libraries=NO
8139 rm -fr conftestdir
8140 if mkdir conftestdir; then
8141 cd conftestdir
8142 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8143 cat > Imakefile <<'EOF'
8144 acfindx:
8145 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8146 EOF
8147 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8149 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8150 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8151 for ac_extension in a so sl; do
8152 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8153 test -f $ac_im_libdir/libX11.$ac_extension; then
8154 ac_im_usrlibdir=$ac_im_libdir; break
8155 fi
8156 done
8157 # Screen out bogus values from the imake configuration. They are
8158 # bogus both because they are the default anyway, and because
8159 # using them would break gcc on systems where it needs fixed includes.
8160 case "$ac_im_incroot" in
8161 /usr/include) ;;
8162 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
8163 esac
8164 case "$ac_im_usrlibdir" in
8165 /usr/lib | /lib) ;;
8166 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
8167 esac
8168 fi
8169 cd ..
8170 rm -fr conftestdir
8171 fi
8172
8173 if test "$ac_x_includes" = NO; then
8174 # Guess where to find include files, by looking for this one X11 .h file.
8175 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
8176
8177 # First, try using that file with no special directory specified.
8178 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8181 #include <$x_direct_test_include>
8182 EOF
8183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8184 { (eval echo configure:8185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8186 if test -z "$ac_err"; then
8187 rm -rf conftest*
8188 # We can compile using X headers with no special include directory.
8189 ac_x_includes=
8190 else
8191 echo "$ac_err" >&5
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 rm -rf conftest*
8195 # Look for the header file in a standard set of common directories.
8196 # Check X11 before X11Rn because it is often a symlink to the current release.
8197 for ac_dir in \
8198 /usr/X11/include \
8199 /usr/X11R6/include \
8200 /usr/X11R5/include \
8201 /usr/X11R4/include \
8202 \
8203 /usr/include/X11 \
8204 /usr/include/X11R6 \
8205 /usr/include/X11R5 \
8206 /usr/include/X11R4 \
8207 \
8208 /usr/local/X11/include \
8209 /usr/local/X11R6/include \
8210 /usr/local/X11R5/include \
8211 /usr/local/X11R4/include \
8212 \
8213 /usr/local/include/X11 \
8214 /usr/local/include/X11R6 \
8215 /usr/local/include/X11R5 \
8216 /usr/local/include/X11R4 \
8217 \
8218 /usr/X386/include \
8219 /usr/x386/include \
8220 /usr/XFree86/include/X11 \
8221 \
8222 /usr/include \
8223 /usr/local/include \
8224 /usr/unsupported/include \
8225 /usr/athena/include \
8226 /usr/local/x11r5/include \
8227 /usr/lpp/Xamples/include \
8228 \
8229 /usr/openwin/include \
8230 /usr/openwin/share/include \
8231 ; \
8232 do
8233 if test -r "$ac_dir/$x_direct_test_include"; then
8234 ac_x_includes=$ac_dir
8235 break
8236 fi
8237 done
8238 fi
8239 rm -f conftest*
8240 fi # $ac_x_includes = NO
8241
8242 if test "$ac_x_libraries" = NO; then
8243 # Check for the libraries.
8244
8245 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8246 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
8247
8248 # See if we find them without any special options.
8249 # Don't add to $LIBS permanently.
8250 ac_save_LIBS="$LIBS"
8251 LIBS="-l$x_direct_test_library $LIBS"
8252 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure"
8254 #include "confdefs.h"
8255
8256 int main() {
8257 ${x_direct_test_function}()
8258 ; return 0; }
8259 EOF
8260 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261 rm -rf conftest*
8262 LIBS="$ac_save_LIBS"
8263 # We can link X programs with no special library path.
8264 ac_x_libraries=
8265 else
8266 echo "configure: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8268 rm -rf conftest*
8269 LIBS="$ac_save_LIBS"
8270 # First see if replacing the include by lib works.
8271 # Check X11 before X11Rn because it is often a symlink to the current release.
8272 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8273 /usr/X11/lib \
8274 /usr/X11R6/lib \
8275 /usr/X11R5/lib \
8276 /usr/X11R4/lib \
8277 \
8278 /usr/lib/X11 \
8279 /usr/lib/X11R6 \
8280 /usr/lib/X11R5 \
8281 /usr/lib/X11R4 \
8282 \
8283 /usr/local/X11/lib \
8284 /usr/local/X11R6/lib \
8285 /usr/local/X11R5/lib \
8286 /usr/local/X11R4/lib \
8287 \
8288 /usr/local/lib/X11 \
8289 /usr/local/lib/X11R6 \
8290 /usr/local/lib/X11R5 \
8291 /usr/local/lib/X11R4 \
8292 \
8293 /usr/X386/lib \
8294 /usr/x386/lib \
8295 /usr/XFree86/lib/X11 \
8296 \
8297 /usr/lib \
8298 /usr/local/lib \
8299 /usr/unsupported/lib \
8300 /usr/athena/lib \
8301 /usr/local/x11r5/lib \
8302 /usr/lpp/Xamples/lib \
8303 /lib/usr/lib/X11 \
8304 \
8305 /usr/openwin/lib \
8306 /usr/openwin/share/lib \
8307 ; \
8308 do
8309 for ac_extension in a so sl; do
8310 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8311 ac_x_libraries=$ac_dir
8312 break 2
8313 fi
8314 done
8315 done
8316 fi
8317 rm -f conftest*
8318 fi # $ac_x_libraries = NO
8319
8320 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8321 # Didn't find X anywhere. Cache the known absence of X.
8322 ac_cv_have_x="have_x=no"
8323 else
8324 # Record where we found X for the cache.
8325 ac_cv_have_x="have_x=yes \
8326 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8327 fi
8328 fi
8329 fi
8330 eval "$ac_cv_have_x"
8331 fi # $with_x != no
8332
8333 if test "$have_x" != yes; then
8334 echo "$ac_t""$have_x" 1>&6
8335 no_x=yes
8336 else
8337 # If each of the values was on the command line, it overrides each guess.
8338 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8339 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8340 # Update the cache value to reflect the command line values.
8341 ac_cv_have_x="have_x=yes \
8342 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8343 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8344 fi
8345
8346 if test "$no_x" = yes; then
8347 # Not all programs may use this symbol, but it does not hurt to define it.
8348 cat >> confdefs.h <<\EOF
8349 #define X_DISPLAY_MISSING 1
8350 EOF
8351
8352 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8353 else
8354 if test -n "$x_includes"; then
8355 X_CFLAGS="$X_CFLAGS -I$x_includes"
8356 fi
8357
8358 # It would also be nice to do this for all -L options, not just this one.
8359 if test -n "$x_libraries"; then
8360 X_LIBS="$X_LIBS -L$x_libraries"
8361 # For Solaris; some versions of Sun CC require a space after -R and
8362 # others require no space. Words are not sufficient . . . .
8363 case "`(uname -sr) 2>/dev/null`" in
8364 "SunOS 5"*)
8365 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8366 echo "configure:8367: checking whether -R must be followed by a space" >&5
8367 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371
8372 int main() {
8373
8374 ; return 0; }
8375 EOF
8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377 rm -rf conftest*
8378 ac_R_nospace=yes
8379 else
8380 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8382 rm -rf conftest*
8383 ac_R_nospace=no
8384 fi
8385 rm -f conftest*
8386 if test $ac_R_nospace = yes; then
8387 echo "$ac_t""no" 1>&6
8388 X_LIBS="$X_LIBS -R$x_libraries"
8389 else
8390 LIBS="$ac_xsave_LIBS -R $x_libraries"
8391 cat > conftest.$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8394
8395 int main() {
8396
8397 ; return 0; }
8398 EOF
8399 if { (eval echo configure:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8400 rm -rf conftest*
8401 ac_R_space=yes
8402 else
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8405 rm -rf conftest*
8406 ac_R_space=no
8407 fi
8408 rm -f conftest*
8409 if test $ac_R_space = yes; then
8410 echo "$ac_t""yes" 1>&6
8411 X_LIBS="$X_LIBS -R $x_libraries"
8412 else
8413 echo "$ac_t""neither works" 1>&6
8414 fi
8415 fi
8416 LIBS="$ac_xsave_LIBS"
8417 esac
8418 fi
8419
8420 # Check for system-dependent libraries X programs must link with.
8421 # Do this before checking for the system-independent R6 libraries
8422 # (-lICE), since we may need -lsocket or whatever for X linking.
8423
8424 if test "$ISC" = yes; then
8425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8426 else
8427 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8428 # libraries were built with DECnet support. And karl@cs.umb.edu says
8429 # the Alpha needs dnet_stub (dnet does not exist).
8430 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8431 echo "configure:8432: checking for dnet_ntoa in -ldnet" >&5
8432 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8434 echo $ac_n "(cached) $ac_c" 1>&6
8435 else
8436 ac_save_LIBS="$LIBS"
8437 LIBS="-ldnet $LIBS"
8438 cat > conftest.$ac_ext <<EOF
8439 #line 8440 "configure"
8440 #include "confdefs.h"
8441 /* Override any gcc2 internal prototype to avoid an error. */
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444 char dnet_ntoa();
8445
8446 int main() {
8447 dnet_ntoa()
8448 ; return 0; }
8449 EOF
8450 if { (eval echo configure:8451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8451 rm -rf conftest*
8452 eval "ac_cv_lib_$ac_lib_var=yes"
8453 else
8454 echo "configure: failed program was:" >&5
8455 cat conftest.$ac_ext >&5
8456 rm -rf conftest*
8457 eval "ac_cv_lib_$ac_lib_var=no"
8458 fi
8459 rm -f conftest*
8460 LIBS="$ac_save_LIBS"
8461
8462 fi
8463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8464 echo "$ac_t""yes" 1>&6
8465 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8466 else
8467 echo "$ac_t""no" 1>&6
8468 fi
8469
8470 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8471 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8472 echo "configure:8473: checking for dnet_ntoa in -ldnet_stub" >&5
8473 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8475 echo $ac_n "(cached) $ac_c" 1>&6
8476 else
8477 ac_save_LIBS="$LIBS"
8478 LIBS="-ldnet_stub $LIBS"
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8482 /* Override any gcc2 internal prototype to avoid an error. */
8483 /* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8485 char dnet_ntoa();
8486
8487 int main() {
8488 dnet_ntoa()
8489 ; return 0; }
8490 EOF
8491 if { (eval echo configure:8492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8492 rm -rf conftest*
8493 eval "ac_cv_lib_$ac_lib_var=yes"
8494 else
8495 echo "configure: failed program was:" >&5
8496 cat conftest.$ac_ext >&5
8497 rm -rf conftest*
8498 eval "ac_cv_lib_$ac_lib_var=no"
8499 fi
8500 rm -f conftest*
8501 LIBS="$ac_save_LIBS"
8502
8503 fi
8504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8506 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8507 else
8508 echo "$ac_t""no" 1>&6
8509 fi
8510
8511 fi
8512
8513 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8514 # to get the SysV transport functions.
8515 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8516 # needs -lnsl.
8517 # The nsl library prevents programs from opening the X display
8518 # on Irix 5.2, according to dickey@clark.net.
8519 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8520 echo "configure:8521: checking for gethostbyname" >&5
8521 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8523 else
8524 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8527 /* System header to define __stub macros and hopefully few prototypes,
8528 which can conflict with char gethostbyname(); below. */
8529 #include <assert.h>
8530 /* Override any gcc2 internal prototype to avoid an error. */
8531 /* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8533 char gethostbyname();
8534
8535 int main() {
8536
8537 /* The GNU C library defines this for functions which it implements
8538 to always fail with ENOSYS. Some functions are actually named
8539 something starting with __ and the normal name is an alias. */
8540 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8541 choke me
8542 #else
8543 gethostbyname();
8544 #endif
8545
8546 ; return 0; }
8547 EOF
8548 if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8549 rm -rf conftest*
8550 eval "ac_cv_func_gethostbyname=yes"
8551 else
8552 echo "configure: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8554 rm -rf conftest*
8555 eval "ac_cv_func_gethostbyname=no"
8556 fi
8557 rm -f conftest*
8558 fi
8559
8560 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8561 echo "$ac_t""yes" 1>&6
8562 :
8563 else
8564 echo "$ac_t""no" 1>&6
8565 fi
8566
8567 if test $ac_cv_func_gethostbyname = no; then
8568 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8569 echo "configure:8570: checking for gethostbyname in -lnsl" >&5
8570 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8573 else
8574 ac_save_LIBS="$LIBS"
8575 LIBS="-lnsl $LIBS"
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8582 char gethostbyname();
8583
8584 int main() {
8585 gethostbyname()
8586 ; return 0; }
8587 EOF
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8589 rm -rf conftest*
8590 eval "ac_cv_lib_$ac_lib_var=yes"
8591 else
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 rm -rf conftest*
8595 eval "ac_cv_lib_$ac_lib_var=no"
8596 fi
8597 rm -f conftest*
8598 LIBS="$ac_save_LIBS"
8599
8600 fi
8601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8602 echo "$ac_t""yes" 1>&6
8603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8604 else
8605 echo "$ac_t""no" 1>&6
8606 fi
8607
8608 fi
8609
8610 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8611 # socket/setsockopt and other routines are undefined under SCO ODT
8612 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8613 # on later versions), says simon@lia.di.epfl.ch: it contains
8614 # gethostby* variants that don't use the nameserver (or something).
8615 # -lsocket must be given before -lnsl if both are needed.
8616 # We assume that if connect needs -lnsl, so does gethostbyname.
8617 echo $ac_n "checking for connect""... $ac_c" 1>&6
8618 echo "configure:8619: checking for connect" >&5
8619 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8620 echo $ac_n "(cached) $ac_c" 1>&6
8621 else
8622 cat > conftest.$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8625 /* System header to define __stub macros and hopefully few prototypes,
8626 which can conflict with char connect(); below. */
8627 #include <assert.h>
8628 /* Override any gcc2 internal prototype to avoid an error. */
8629 /* We use char because int might match the return type of a gcc2
8630 builtin and then its argument prototype would still apply. */
8631 char connect();
8632
8633 int main() {
8634
8635 /* The GNU C library defines this for functions which it implements
8636 to always fail with ENOSYS. Some functions are actually named
8637 something starting with __ and the normal name is an alias. */
8638 #if defined (__stub_connect) || defined (__stub___connect)
8639 choke me
8640 #else
8641 connect();
8642 #endif
8643
8644 ; return 0; }
8645 EOF
8646 if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647 rm -rf conftest*
8648 eval "ac_cv_func_connect=yes"
8649 else
8650 echo "configure: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8652 rm -rf conftest*
8653 eval "ac_cv_func_connect=no"
8654 fi
8655 rm -f conftest*
8656 fi
8657
8658 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8659 echo "$ac_t""yes" 1>&6
8660 :
8661 else
8662 echo "$ac_t""no" 1>&6
8663 fi
8664
8665 if test $ac_cv_func_connect = no; then
8666 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8667 echo "configure:8668: checking for connect in -lsocket" >&5
8668 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8671 else
8672 ac_save_LIBS="$LIBS"
8673 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 /* Override any gcc2 internal prototype to avoid an error. */
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8680 char connect();
8681
8682 int main() {
8683 connect()
8684 ; return 0; }
8685 EOF
8686 if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8687 rm -rf conftest*
8688 eval "ac_cv_lib_$ac_lib_var=yes"
8689 else
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8692 rm -rf conftest*
8693 eval "ac_cv_lib_$ac_lib_var=no"
8694 fi
8695 rm -f conftest*
8696 LIBS="$ac_save_LIBS"
8697
8698 fi
8699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8700 echo "$ac_t""yes" 1>&6
8701 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8702 else
8703 echo "$ac_t""no" 1>&6
8704 fi
8705
8706 fi
8707
8708 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8709 echo $ac_n "checking for remove""... $ac_c" 1>&6
8710 echo "configure:8711: checking for remove" >&5
8711 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8712 echo $ac_n "(cached) $ac_c" 1>&6
8713 else
8714 cat > conftest.$ac_ext <<EOF
8715 #line 8716 "configure"
8716 #include "confdefs.h"
8717 /* System header to define __stub macros and hopefully few prototypes,
8718 which can conflict with char remove(); below. */
8719 #include <assert.h>
8720 /* Override any gcc2 internal prototype to avoid an error. */
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8723 char remove();
8724
8725 int main() {
8726
8727 /* The GNU C library defines this for functions which it implements
8728 to always fail with ENOSYS. Some functions are actually named
8729 something starting with __ and the normal name is an alias. */
8730 #if defined (__stub_remove) || defined (__stub___remove)
8731 choke me
8732 #else
8733 remove();
8734 #endif
8735
8736 ; return 0; }
8737 EOF
8738 if { (eval echo configure:8739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8739 rm -rf conftest*
8740 eval "ac_cv_func_remove=yes"
8741 else
8742 echo "configure: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8744 rm -rf conftest*
8745 eval "ac_cv_func_remove=no"
8746 fi
8747 rm -f conftest*
8748 fi
8749
8750 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8751 echo "$ac_t""yes" 1>&6
8752 :
8753 else
8754 echo "$ac_t""no" 1>&6
8755 fi
8756
8757 if test $ac_cv_func_remove = no; then
8758 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8759 echo "configure:8760: checking for remove in -lposix" >&5
8760 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8763 else
8764 ac_save_LIBS="$LIBS"
8765 LIBS="-lposix $LIBS"
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8769 /* Override any gcc2 internal prototype to avoid an error. */
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8772 char remove();
8773
8774 int main() {
8775 remove()
8776 ; return 0; }
8777 EOF
8778 if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8779 rm -rf conftest*
8780 eval "ac_cv_lib_$ac_lib_var=yes"
8781 else
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 rm -rf conftest*
8785 eval "ac_cv_lib_$ac_lib_var=no"
8786 fi
8787 rm -f conftest*
8788 LIBS="$ac_save_LIBS"
8789
8790 fi
8791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8792 echo "$ac_t""yes" 1>&6
8793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8794 else
8795 echo "$ac_t""no" 1>&6
8796 fi
8797
8798 fi
8799
8800 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8801 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8802 echo "configure:8803: checking for shmat" >&5
8803 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8805 else
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 /* System header to define __stub macros and hopefully few prototypes,
8810 which can conflict with char shmat(); below. */
8811 #include <assert.h>
8812 /* Override any gcc2 internal prototype to avoid an error. */
8813 /* We use char because int might match the return type of a gcc2
8814 builtin and then its argument prototype would still apply. */
8815 char shmat();
8816
8817 int main() {
8818
8819 /* The GNU C library defines this for functions which it implements
8820 to always fail with ENOSYS. Some functions are actually named
8821 something starting with __ and the normal name is an alias. */
8822 #if defined (__stub_shmat) || defined (__stub___shmat)
8823 choke me
8824 #else
8825 shmat();
8826 #endif
8827
8828 ; return 0; }
8829 EOF
8830 if { (eval echo configure:8831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8831 rm -rf conftest*
8832 eval "ac_cv_func_shmat=yes"
8833 else
8834 echo "configure: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8836 rm -rf conftest*
8837 eval "ac_cv_func_shmat=no"
8838 fi
8839 rm -f conftest*
8840 fi
8841
8842 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8843 echo "$ac_t""yes" 1>&6
8844 :
8845 else
8846 echo "$ac_t""no" 1>&6
8847 fi
8848
8849 if test $ac_cv_func_shmat = no; then
8850 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8851 echo "configure:8852: checking for shmat in -lipc" >&5
8852 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8855 else
8856 ac_save_LIBS="$LIBS"
8857 LIBS="-lipc $LIBS"
8858 cat > conftest.$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 /* Override any gcc2 internal prototype to avoid an error. */
8862 /* We use char because int might match the return type of a gcc2
8863 builtin and then its argument prototype would still apply. */
8864 char shmat();
8865
8866 int main() {
8867 shmat()
8868 ; return 0; }
8869 EOF
8870 if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8871 rm -rf conftest*
8872 eval "ac_cv_lib_$ac_lib_var=yes"
8873 else
8874 echo "configure: failed program was:" >&5
8875 cat conftest.$ac_ext >&5
8876 rm -rf conftest*
8877 eval "ac_cv_lib_$ac_lib_var=no"
8878 fi
8879 rm -f conftest*
8880 LIBS="$ac_save_LIBS"
8881
8882 fi
8883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8884 echo "$ac_t""yes" 1>&6
8885 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8886 else
8887 echo "$ac_t""no" 1>&6
8888 fi
8889
8890 fi
8891 fi
8892
8893 # Check for libraries that X11R6 Xt/Xaw programs need.
8894 ac_save_LDFLAGS="$LDFLAGS"
8895 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8896 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8897 # check for ICE first), but we must link in the order -lSM -lICE or
8898 # we get undefined symbols. So assume we have SM if we have ICE.
8899 # These have to be linked with before -lX11, unlike the other
8900 # libraries we check for below, so use a different variable.
8901 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8902 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8903 echo "configure:8904: checking for IceConnectionNumber in -lICE" >&5
8904 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8906 echo $ac_n "(cached) $ac_c" 1>&6
8907 else
8908 ac_save_LIBS="$LIBS"
8909 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8910 cat > conftest.$ac_ext <<EOF
8911 #line 8912 "configure"
8912 #include "confdefs.h"
8913 /* Override any gcc2 internal prototype to avoid an error. */
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char IceConnectionNumber();
8917
8918 int main() {
8919 IceConnectionNumber()
8920 ; return 0; }
8921 EOF
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8923 rm -rf conftest*
8924 eval "ac_cv_lib_$ac_lib_var=yes"
8925 else
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 rm -rf conftest*
8929 eval "ac_cv_lib_$ac_lib_var=no"
8930 fi
8931 rm -f conftest*
8932 LIBS="$ac_save_LIBS"
8933
8934 fi
8935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8936 echo "$ac_t""yes" 1>&6
8937 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8938 else
8939 echo "$ac_t""no" 1>&6
8940 fi
8941
8942 LDFLAGS="$ac_save_LDFLAGS"
8943
8944 fi
8945
8946 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8947 LDFLAGS="$LDFLAGS $X_LIBS"
8948
8949 if test "$wxUSE_MOTIF" = 1; then
8950 if test "$no_x" = "yes"; then
8951 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8952 fi
8953
8954 GUI_TK_LIBRARY="$X_LIBS"
8955 TOOLKIT_INCLUDE="$X_CFLAGS"
8956
8957 AFMINSTALL=afminstall
8958
8959
8960 COMPILED_X_PROGRAM=0
8961
8962 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8963 echo "configure:8964: checking for Motif/Lesstif headers" >&5
8964
8965 ac_find_includes=
8966 for ac_dir in $SEARCH_INCLUDE;
8967 do
8968 if test -f "$ac_dir/Xm/Xm.h"; then
8969 ac_find_includes=$ac_dir
8970 break
8971 fi
8972 done
8973
8974 if test "$ac_find_includes" != "" ; then
8975 echo "$ac_t""found $ac_find_includes" 1>&6
8976 else
8977 cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8980
8981 #include <Xm/Xm.h>
8982
8983 int main() {
8984
8985 int version;
8986
8987 version = xmUseVersion;
8988
8989 ; return 0; }
8990 EOF
8991 if { (eval echo configure:8992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8992 rm -rf conftest*
8993
8994 echo "$ac_t""found in default search path" 1>&6
8995 COMPILED_X_PROGRAM=1
8996
8997 else
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9000 rm -rf conftest*
9001
9002 echo "$ac_t""no" 1>&6
9003 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
9004
9005
9006 fi
9007 rm -f conftest*
9008 fi
9009
9010 if test "$COMPILED_X_PROGRAM" = 0; then
9011 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
9012 echo "configure:9013: checking for Motif/Lesstif library" >&5
9013
9014 ac_find_libraries=
9015 for ac_dir in $SEARCH_LIB;
9016 do
9017 for ac_extension in a so sl; do
9018 if test -f "$ac_dir/libXm.$ac_extension"; then
9019 ac_find_libraries=$ac_dir
9020 break 2
9021 fi
9022 done
9023 done
9024
9025 if test "$ac_find_libraries" != "" ; then
9026
9027 ac_path_to_include=$ac_find_includes
9028 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
9029 result=$?
9030 if test $result = 0; then
9031 ac_path_to_include=""
9032 else
9033 ac_path_to_include="-I$ac_find_includes"
9034 fi
9035
9036
9037 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
9038 result=$?
9039 if test $result = 0; then
9040 ac_path_to_link=""
9041 else
9042 ac_path_to_link="-L$ac_find_libraries"
9043 fi
9044
9045
9046 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9047 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
9048 echo "$ac_t""found at $ac_find_libraries" 1>&6
9049 else
9050 cat > conftest.$ac_ext <<EOF
9051 #line 9052 "configure"
9052 #include "confdefs.h"
9053
9054 #include <Xm/Xm.h>
9055
9056 int main() {
9057
9058 int version;
9059
9060 version = xmUseVersion;
9061
9062 ; return 0; }
9063 EOF
9064 if { (eval echo configure:9065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9065 rm -rf conftest*
9066
9067 echo "$ac_t""found in default search path" 1>&6
9068 COMPILED_X_PROGRAM=1
9069
9070 else
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9073 rm -rf conftest*
9074
9075 echo "$ac_t""no" 1>&6
9076 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
9077
9078
9079 fi
9080 rm -f conftest*
9081 fi
9082 fi
9083
9084
9085 XPM_LINK=""
9086 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9087 echo "configure:9088: checking for Xpm library" >&5
9088
9089 ac_find_libraries=
9090 for ac_dir in $SEARCH_LIB;
9091 do
9092 for ac_extension in a so sl; do
9093 if test -f "$ac_dir/libXpm.$ac_extension"; then
9094 ac_find_libraries=$ac_dir
9095 break 2
9096 fi
9097 done
9098 done
9099
9100 if test "$ac_find_libraries" != "" ; then
9101
9102 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
9103 result=$?
9104 if test $result = 0; then
9105 ac_path_to_link=""
9106 else
9107 ac_path_to_link="-L$ac_find_libraries"
9108 fi
9109
9110 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9111 XPM_LINK="-lXpm "
9112 cat >> confdefs.h <<\EOF
9113 #define wxHAVE_LIB_XPM 1
9114 EOF
9115
9116 echo "$ac_t""found at $ac_find_libraries" 1>&6
9117 else
9118 cat > conftest.$ac_ext <<EOF
9119 #line 9120 "configure"
9120 #include "confdefs.h"
9121
9122 #include <X11/xpm.h>
9123
9124 int main() {
9125
9126 int version;
9127
9128 version = XpmLibraryVersion();
9129
9130 ; return 0; }
9131 EOF
9132 if { (eval echo configure:9133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9133 rm -rf conftest*
9134
9135 XPM_LINK="-lXpm "
9136 cat >> confdefs.h <<\EOF
9137 #define wxHAVE_LIB_XPM 1
9138 EOF
9139
9140 echo "$ac_t""found in default search path" 1>&6
9141 COMPILED_X_PROGRAM=0
9142
9143 else
9144 echo "configure: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9146 rm -rf conftest*
9147
9148 echo "$ac_t""no" 1>&6
9149 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9150
9151
9152 fi
9153 rm -f conftest*
9154 fi
9155
9156 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
9157 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9158 TOOLKIT=MOTIF
9159 GUIDIST=MOTIF_DIST
9160 fi
9161
9162 if test "$wxUSE_MAC" = 1; then
9163 TOOLKIT=MAC
9164 GUIDIST=MACX_DIST
9165 fi
9166
9167 if test "$wxUSE_PM" = 1; then
9168 TOOLKIT=PM
9169 GUIDIST=GTK_DIST
9170 fi
9171
9172 if test "$TOOLKIT" != "PM" ; then
9173 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
9174 else
9175 TOOLKIT_DIR="os2"
9176 fi
9177
9178 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9179 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9180 else
9181 TOOLKIT_NAME="${TOOLKIT_DIR}"
9182 fi
9183
9184 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
9185
9186 WX_LIBRARY="wx_${TOOLKIT_NAME}"
9187
9188 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
9189
9190 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
9191 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
9192 fi
9193
9194 if test "$wxUSE_LIBJPEG" = "yes" ; then
9195 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
9196 fi
9197 if test "$wxUSE_LIBTIFF" = "yes" ; then
9198 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9199 fi
9200 if test "$wxUSE_LIBPNG" = "yes" ; then
9201 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9202 fi
9203 if test "$wxUSE_ZLIB" = "yes" ; then
9204 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9205 fi
9206 if test "$wxUSE_FREETYPE" = "yes" ; then
9207 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9208 fi
9209 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
9210
9211 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9212 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9213 RPM_SPEC="wx\$(TOOLKIT).spec"
9214
9215 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9216 DISTDIR="wx\$(TOOLKIT)"
9217 else
9218 USE_GUI=0
9219
9220 TOOLKIT_DIR="base"
9221
9222 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9223 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9224 else
9225 TOOLKIT_NAME="${TOOLKIT_DIR}"
9226 fi
9227
9228 TOOLKIT_DEF="-D__WXBASE__"
9229
9230 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9231 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
9232
9233 if test "$wxUSE_ZLIB" = "yes" ; then
9234 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9235 fi
9236
9237 WX_LIBRARY="wx_${TOOLKIT_NAME}"
9238
9239 PORT_FILES="src/files.lst"
9240 RPM_FILES="src/rpmfiles.lst"
9241 RPM_SPEC="wxBase.spec"
9242
9243 GUIDIST="BASE_DIST"
9244 DISTDIR="wxBase"
9245 fi
9246
9247 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
9248 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
9249
9250 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
9251 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
9252
9253 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9254 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9255
9256 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9257 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9258 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
9259 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9260 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9261 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
9262
9263 SHARED_LD=
9264 PIC_FLAG=
9265 WX_ALL=
9266 WX_ALL_INSTALLED=
9267 BURNT_LIBRARY_NAME=
9268 WX_TARGET_LIBRARY_SONAME=
9269
9270
9271 if test "$wxUSE_SHARED" = "yes"; then
9272 case "${host}" in
9273 *-hp-hpux* )
9274 if test "$GCC" = yes ; then
9275 SHARED_LD="${CC} -shared -fPIC -o"
9276 PIC_FLAG="-fPIC"
9277 else
9278 LDFLAGS="-L/usr/lib"
9279
9280 SHARED_LD="${CXX} -b -o"
9281 PIC_FLAG="+Z"
9282 fi
9283 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9284 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
9285 if test "$wxUSE_OPENGL" = "yes"; then
9286 WX_ALL_INSTALLED="preinstall_gl"
9287 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9288 else
9289 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9290 fi
9291 ;;
9292
9293 *-*-linux* )
9294 SHARED_LD="${CC} -shared -o"
9295 PIC_FLAG="-fPIC"
9296 if test "$wxUSE_BURNT_NAME" = "yes" ; then
9297 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
9298 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
9299 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
9300 fi
9301 if test "$wxUSE_OPENGL" = "yes"; then
9302 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9303 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9304 else
9305 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9306 WX_ALL="CREATE_LINKS"
9307 fi
9308 ;;
9309 *-*-irix5* | *-*-irix6* )
9310 if test "$GCC" = yes ; then
9311 SHARED_LD="${CC} -shared -o"
9312 PIC_FLAG="-fPIC"
9313 else
9314 SHARED_LD="${CXX} -shared -o"
9315 fi
9316 if test "$wxUSE_OPENGL" = "yes"; then
9317 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9318 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9319 else
9320 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9321 WX_ALL="CREATE_LINKS"
9322 fi
9323 ;;
9324 *-*-solaris2* )
9325 if test "$GCC" = yes ; then
9326 SHARED_LD="${CC} -shared -o"
9327 PIC_FLAG="-fPIC"
9328
9329 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
9330 else
9331 SHARED_LD="${CXX} -G -o"
9332 PIC_FLAG="-KPIC"
9333 fi
9334 if test "$wxUSE_OPENGL" = "yes"; then
9335 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9336 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9337 else
9338 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9339 WX_ALL="CREATE_LINKS"
9340 fi
9341 ;;
9342 *-*-sunos4* )
9343 SHARED_LD="${CC} -shared -o"
9344 PIC_FLAG="-fPIC"
9345 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9346 WX_ALL="CREATE_LINKS"
9347 ;;
9348 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
9349 SHARED_LD="${CC} -shared -o"
9350 PIC_FLAG="-fPIC"
9351 if test "$wxUSE_OPENGL" = "yes"; then
9352 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9353 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9354 else
9355 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9356 WX_ALL="CREATE_LINKS"
9357 fi
9358 ;;
9359 *-*-darwin* )
9360 SHARED_LD="${CXX} -dynamiclib -o"
9361 PIC_FLAG="-dynamic -fPIC"
9362 if test "$wxUSE_OPENGL" = "yes"; then
9363 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9364 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9365 else
9366 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9367 WX_ALL="CREATE_LINKS"
9368 fi
9369 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
9370 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9371 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9372 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
9373 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
9374 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
9375 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
9376 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
9377 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
9378 ;;
9379 *-*-osf* )
9380 SHARED_LD="${CXX} -shared -o"
9381 PIC_FLAG="-fPIC"
9382 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9383 WX_ALL="CREATE_LINKS"
9384 ;;
9385 *-*-dgux5* )
9386 SHARED_LD="${CXX} -shared -o"
9387 PIC_FLAG="-fPIC"
9388 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9389 WX_ALL="CREATE_LINKS"
9390 ;;
9391 *-*-sysv5* )
9392 SHARED_LD="${CC} -shared -o"
9393 PIC_FLAG="-fPIC"
9394 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9395 WX_ALL="CREATE_LINKS"
9396 ;;
9397 *-*-aix* )
9398 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9399 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9400 ;;
9401 *-*-cygwin* )
9402 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9403 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9404 if test "$wxUSE_OPENGL" = "yes"; then
9405 WX_ALL_INSTALLED="preinstall_gl"
9406 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9407 else
9408 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9409 fi
9410 ;;
9411 *-*-mingw32* )
9412 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9413 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9414 if test "$wxUSE_OPENGL" = "yes"; then
9415 WX_ALL_INSTALLED="preinstall_gl"
9416 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9417 else
9418 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9419 fi
9420 ;;
9421 *-pc-os2_emx )
9422 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9423 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9424 ;;
9425 *-*-beos* )
9426 SHARED_LD="${LD} -shared -o"
9427 PIC_FLAG="-fPIC"
9428 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9429 WX_ALL="CREATE_LINKS"
9430 ;;
9431 *)
9432 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9433 esac
9434
9435 if test "x$WX_TARGET_LIBRARY" = "x"; then
9436 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
9437 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
9438 fi
9439 WX_TARGET_LIBRARY_TYPE="so"
9440 else
9441 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9442 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9443
9444 if test "$wxUSE_OPENGL" = "yes"; then
9445 WX_ALL_INSTALLED="preinstall_gl"
9446 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9447 else
9448 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9449 fi
9450
9451 if test "$wxUSE_GUI" = "no"; then
9452 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9453 fi
9454
9455 WX_TARGET_LIBRARY_TYPE="a"
9456 fi
9457
9458
9459 for ac_hdr in strings.h
9460 do
9461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9463 echo "configure:9464: checking for $ac_hdr" >&5
9464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9466 else
9467 cat > conftest.$ac_ext <<EOF
9468 #line 9469 "configure"
9469 #include "confdefs.h"
9470 #include <$ac_hdr>
9471 EOF
9472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9473 { (eval echo configure:9474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9475 if test -z "$ac_err"; then
9476 rm -rf conftest*
9477 eval "ac_cv_header_$ac_safe=yes"
9478 else
9479 echo "$ac_err" >&5
9480 echo "configure: failed program was:" >&5
9481 cat conftest.$ac_ext >&5
9482 rm -rf conftest*
9483 eval "ac_cv_header_$ac_safe=no"
9484 fi
9485 rm -f conftest*
9486 fi
9487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9488 echo "$ac_t""yes" 1>&6
9489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9490 cat >> confdefs.h <<EOF
9491 #define $ac_tr_hdr 1
9492 EOF
9493
9494 else
9495 echo "$ac_t""no" 1>&6
9496 fi
9497 done
9498
9499 for ac_hdr in stdlib.h
9500 do
9501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9503 echo "configure:9504: checking for $ac_hdr" >&5
9504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9506 else
9507 cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9510 #include <$ac_hdr>
9511 EOF
9512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9513 { (eval echo configure:9514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9515 if test -z "$ac_err"; then
9516 rm -rf conftest*
9517 eval "ac_cv_header_$ac_safe=yes"
9518 else
9519 echo "$ac_err" >&5
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 rm -rf conftest*
9523 eval "ac_cv_header_$ac_safe=no"
9524 fi
9525 rm -f conftest*
9526 fi
9527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9528 echo "$ac_t""yes" 1>&6
9529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9530 cat >> confdefs.h <<EOF
9531 #define $ac_tr_hdr 1
9532 EOF
9533
9534 else
9535 echo "$ac_t""no" 1>&6
9536 fi
9537 done
9538
9539 for ac_hdr in unistd.h
9540 do
9541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9543 echo "configure:9544: checking for $ac_hdr" >&5
9544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9545 echo $ac_n "(cached) $ac_c" 1>&6
9546 else
9547 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure"
9549 #include "confdefs.h"
9550 #include <$ac_hdr>
9551 EOF
9552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9553 { (eval echo configure:9554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9555 if test -z "$ac_err"; then
9556 rm -rf conftest*
9557 eval "ac_cv_header_$ac_safe=yes"
9558 else
9559 echo "$ac_err" >&5
9560 echo "configure: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9562 rm -rf conftest*
9563 eval "ac_cv_header_$ac_safe=no"
9564 fi
9565 rm -f conftest*
9566 fi
9567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9568 echo "$ac_t""yes" 1>&6
9569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9570 cat >> confdefs.h <<EOF
9571 #define $ac_tr_hdr 1
9572 EOF
9573
9574 else
9575 echo "$ac_t""no" 1>&6
9576 fi
9577 done
9578
9579 for ac_hdr in wchar.h
9580 do
9581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9583 echo "configure:9584: checking for $ac_hdr" >&5
9584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9585 echo $ac_n "(cached) $ac_c" 1>&6
9586 else
9587 cat > conftest.$ac_ext <<EOF
9588 #line 9589 "configure"
9589 #include "confdefs.h"
9590 #include <$ac_hdr>
9591 EOF
9592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9593 { (eval echo configure:9594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9595 if test -z "$ac_err"; then
9596 rm -rf conftest*
9597 eval "ac_cv_header_$ac_safe=yes"
9598 else
9599 echo "$ac_err" >&5
9600 echo "configure: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9602 rm -rf conftest*
9603 eval "ac_cv_header_$ac_safe=no"
9604 fi
9605 rm -f conftest*
9606 fi
9607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9608 echo "$ac_t""yes" 1>&6
9609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9610 cat >> confdefs.h <<EOF
9611 #define $ac_tr_hdr 1
9612 EOF
9613
9614 else
9615 echo "$ac_t""no" 1>&6
9616 fi
9617 done
9618
9619 for ac_hdr in wcstr.h
9620 do
9621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9623 echo "configure:9624: checking for $ac_hdr" >&5
9624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9626 else
9627 cat > conftest.$ac_ext <<EOF
9628 #line 9629 "configure"
9629 #include "confdefs.h"
9630 #include <$ac_hdr>
9631 EOF
9632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9633 { (eval echo configure:9634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9635 if test -z "$ac_err"; then
9636 rm -rf conftest*
9637 eval "ac_cv_header_$ac_safe=yes"
9638 else
9639 echo "$ac_err" >&5
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 rm -rf conftest*
9643 eval "ac_cv_header_$ac_safe=no"
9644 fi
9645 rm -f conftest*
9646 fi
9647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9648 echo "$ac_t""yes" 1>&6
9649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9650 cat >> confdefs.h <<EOF
9651 #define $ac_tr_hdr 1
9652 EOF
9653
9654 else
9655 echo "$ac_t""no" 1>&6
9656 fi
9657 done
9658
9659 for ac_hdr in fnmatch.h
9660 do
9661 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9662 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9663 echo "configure:9664: checking for $ac_hdr" >&5
9664 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9666 else
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 #include <$ac_hdr>
9671 EOF
9672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9673 { (eval echo configure:9674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9675 if test -z "$ac_err"; then
9676 rm -rf conftest*
9677 eval "ac_cv_header_$ac_safe=yes"
9678 else
9679 echo "$ac_err" >&5
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9682 rm -rf conftest*
9683 eval "ac_cv_header_$ac_safe=no"
9684 fi
9685 rm -f conftest*
9686 fi
9687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9690 cat >> confdefs.h <<EOF
9691 #define $ac_tr_hdr 1
9692 EOF
9693
9694 else
9695 echo "$ac_t""no" 1>&6
9696 fi
9697 done
9698
9699 for ac_hdr in iconv.h
9700 do
9701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9703 echo "configure:9704: checking for $ac_hdr" >&5
9704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9706 else
9707 cat > conftest.$ac_ext <<EOF
9708 #line 9709 "configure"
9709 #include "confdefs.h"
9710 #include <$ac_hdr>
9711 EOF
9712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9713 { (eval echo configure:9714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9715 if test -z "$ac_err"; then
9716 rm -rf conftest*
9717 eval "ac_cv_header_$ac_safe=yes"
9718 else
9719 echo "$ac_err" >&5
9720 echo "configure: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9722 rm -rf conftest*
9723 eval "ac_cv_header_$ac_safe=no"
9724 fi
9725 rm -f conftest*
9726 fi
9727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9728 echo "$ac_t""yes" 1>&6
9729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9730 cat >> confdefs.h <<EOF
9731 #define $ac_tr_hdr 1
9732 EOF
9733
9734 else
9735 echo "$ac_t""no" 1>&6
9736 fi
9737 done
9738
9739 for ac_hdr in langinfo.h
9740 do
9741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9743 echo "configure:9744: checking for $ac_hdr" >&5
9744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9746 else
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9750 #include <$ac_hdr>
9751 EOF
9752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9753 { (eval echo configure:9754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9755 if test -z "$ac_err"; then
9756 rm -rf conftest*
9757 eval "ac_cv_header_$ac_safe=yes"
9758 else
9759 echo "$ac_err" >&5
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 rm -rf conftest*
9763 eval "ac_cv_header_$ac_safe=no"
9764 fi
9765 rm -f conftest*
9766 fi
9767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9768 echo "$ac_t""yes" 1>&6
9769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9770 cat >> confdefs.h <<EOF
9771 #define $ac_tr_hdr 1
9772 EOF
9773
9774 else
9775 echo "$ac_t""no" 1>&6
9776 fi
9777 done
9778
9779
9780 if test "$wxUSE_GUI" = "yes"; then
9781 if test "$wxUSE_UNIX" = "yes"; then
9782 for ac_hdr in X11/XKBlib.h
9783 do
9784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9786 echo "configure:9787: checking for $ac_hdr" >&5
9787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789 else
9790 cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9793 #include <$ac_hdr>
9794 EOF
9795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9796 { (eval echo configure:9797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9798 if test -z "$ac_err"; then
9799 rm -rf conftest*
9800 eval "ac_cv_header_$ac_safe=yes"
9801 else
9802 echo "$ac_err" >&5
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 rm -rf conftest*
9806 eval "ac_cv_header_$ac_safe=no"
9807 fi
9808 rm -f conftest*
9809 fi
9810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9811 echo "$ac_t""yes" 1>&6
9812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9813 cat >> confdefs.h <<EOF
9814 #define $ac_tr_hdr 1
9815 EOF
9816
9817 else
9818 echo "$ac_t""no" 1>&6
9819 fi
9820 done
9821
9822 fi
9823 fi
9824
9825
9826 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9827 echo "configure:9828: checking for ANSI C header files" >&5
9828 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830 else
9831 cat > conftest.$ac_ext <<EOF
9832 #line 9833 "configure"
9833 #include "confdefs.h"
9834 #include <stdlib.h>
9835 #include <stdarg.h>
9836 #include <string.h>
9837 #include <float.h>
9838 EOF
9839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9840 { (eval echo configure:9841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9842 if test -z "$ac_err"; then
9843 rm -rf conftest*
9844 ac_cv_header_stdc=yes
9845 else
9846 echo "$ac_err" >&5
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 rm -rf conftest*
9850 ac_cv_header_stdc=no
9851 fi
9852 rm -f conftest*
9853
9854 if test $ac_cv_header_stdc = yes; then
9855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9856 cat > conftest.$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9859 #include <string.h>
9860 EOF
9861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9862 egrep "memchr" >/dev/null 2>&1; then
9863 :
9864 else
9865 rm -rf conftest*
9866 ac_cv_header_stdc=no
9867 fi
9868 rm -f conftest*
9869
9870 fi
9871
9872 if test $ac_cv_header_stdc = yes; then
9873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <stdlib.h>
9878 EOF
9879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9880 egrep "free" >/dev/null 2>&1; then
9881 :
9882 else
9883 rm -rf conftest*
9884 ac_cv_header_stdc=no
9885 fi
9886 rm -f conftest*
9887
9888 fi
9889
9890 if test $ac_cv_header_stdc = yes; then
9891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9892 if test "$cross_compiling" = yes; then
9893 :
9894 else
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9898 #include <ctype.h>
9899 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9900 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9902 int main () { int i; for (i = 0; i < 256; i++)
9903 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9904 exit (0); }
9905
9906 EOF
9907 if { (eval echo configure:9908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9908 then
9909 :
9910 else
9911 echo "configure: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9913 rm -fr conftest*
9914 ac_cv_header_stdc=no
9915 fi
9916 rm -fr conftest*
9917 fi
9918
9919 fi
9920 fi
9921
9922 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9923 if test $ac_cv_header_stdc = yes; then
9924 cat >> confdefs.h <<\EOF
9925 #define STDC_HEADERS 1
9926 EOF
9927
9928 fi
9929
9930 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9931 echo "configure:9932: checking for mode_t" >&5
9932 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
9934 else
9935 cat > conftest.$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 #include <sys/types.h>
9939 #if STDC_HEADERS
9940 #include <stdlib.h>
9941 #include <stddef.h>
9942 #endif
9943 EOF
9944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9945 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9946 rm -rf conftest*
9947 ac_cv_type_mode_t=yes
9948 else
9949 rm -rf conftest*
9950 ac_cv_type_mode_t=no
9951 fi
9952 rm -f conftest*
9953
9954 fi
9955 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9956 if test $ac_cv_type_mode_t = no; then
9957 cat >> confdefs.h <<\EOF
9958 #define mode_t int
9959 EOF
9960
9961 fi
9962
9963 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9964 echo "configure:9965: checking for off_t" >&5
9965 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9966 echo $ac_n "(cached) $ac_c" 1>&6
9967 else
9968 cat > conftest.$ac_ext <<EOF
9969 #line 9970 "configure"
9970 #include "confdefs.h"
9971 #include <sys/types.h>
9972 #if STDC_HEADERS
9973 #include <stdlib.h>
9974 #include <stddef.h>
9975 #endif
9976 EOF
9977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9978 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9979 rm -rf conftest*
9980 ac_cv_type_off_t=yes
9981 else
9982 rm -rf conftest*
9983 ac_cv_type_off_t=no
9984 fi
9985 rm -f conftest*
9986
9987 fi
9988 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9989 if test $ac_cv_type_off_t = no; then
9990 cat >> confdefs.h <<\EOF
9991 #define off_t long
9992 EOF
9993
9994 fi
9995
9996 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9997 echo "configure:9998: checking for pid_t" >&5
9998 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9999 echo $ac_n "(cached) $ac_c" 1>&6
10000 else
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <sys/types.h>
10005 #if STDC_HEADERS
10006 #include <stdlib.h>
10007 #include <stddef.h>
10008 #endif
10009 EOF
10010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10011 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10012 rm -rf conftest*
10013 ac_cv_type_pid_t=yes
10014 else
10015 rm -rf conftest*
10016 ac_cv_type_pid_t=no
10017 fi
10018 rm -f conftest*
10019
10020 fi
10021 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10022 if test $ac_cv_type_pid_t = no; then
10023 cat >> confdefs.h <<\EOF
10024 #define pid_t int
10025 EOF
10026
10027 fi
10028
10029 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10030 echo "configure:10031: checking for size_t" >&5
10031 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10032 echo $ac_n "(cached) $ac_c" 1>&6
10033 else
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <sys/types.h>
10038 #if STDC_HEADERS
10039 #include <stdlib.h>
10040 #include <stddef.h>
10041 #endif
10042 EOF
10043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10044 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10045 rm -rf conftest*
10046 ac_cv_type_size_t=yes
10047 else
10048 rm -rf conftest*
10049 ac_cv_type_size_t=no
10050 fi
10051 rm -f conftest*
10052
10053 fi
10054 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10055 if test $ac_cv_type_size_t = no; then
10056 cat >> confdefs.h <<\EOF
10057 #define size_t unsigned
10058 EOF
10059
10060 fi
10061
10062 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10063 echo "configure:10064: checking for uid_t in sys/types.h" >&5
10064 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10065 echo $ac_n "(cached) $ac_c" 1>&6
10066 else
10067 cat > conftest.$ac_ext <<EOF
10068 #line 10069 "configure"
10069 #include "confdefs.h"
10070 #include <sys/types.h>
10071 EOF
10072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10073 egrep "uid_t" >/dev/null 2>&1; then
10074 rm -rf conftest*
10075 ac_cv_type_uid_t=yes
10076 else
10077 rm -rf conftest*
10078 ac_cv_type_uid_t=no
10079 fi
10080 rm -f conftest*
10081
10082 fi
10083
10084 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10085 if test $ac_cv_type_uid_t = no; then
10086 cat >> confdefs.h <<\EOF
10087 #define uid_t int
10088 EOF
10089
10090 cat >> confdefs.h <<\EOF
10091 #define gid_t int
10092 EOF
10093
10094 fi
10095
10096
10097 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
10098 echo "configure:10099: checking for wchar_t" >&5
10099 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
10101 else
10102
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10106 #include <wchar.h>
10107 int main() {
10108
10109 wchar_t wc, *ws;
10110 wc = L'a';
10111 ws = L"Hello, world!";
10112
10113 ; return 0; }
10114 EOF
10115 if { (eval echo configure:10116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10116 rm -rf conftest*
10117 wx_cv_type_wchar_t=yes
10118 else
10119 echo "configure: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10121 rm -rf conftest*
10122 cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10125 #include <stdlib.h>
10126 int main() {
10127
10128 wchar_t wc, *ws;
10129 wc = L'a';
10130 ws = L"Hello, world!";
10131
10132 ; return 0; }
10133 EOF
10134 if { (eval echo configure:10135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10135 rm -rf conftest*
10136 wx_cv_type_wchar_t=yes
10137 else
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 rm -rf conftest*
10141 wx_cv_type_wchar_t=no
10142 fi
10143 rm -f conftest*
10144
10145 fi
10146 rm -f conftest*
10147
10148 fi
10149
10150 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
10151 if test "$wx_cv_type_wchar_t" = yes ; then
10152 cat >> confdefs.h <<\EOF
10153 #define wxUSE_WCHAR_T 1
10154 EOF
10155
10156 fi
10157
10158
10159 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
10160 echo "configure:10161: checking for pw_gecos in struct passwd" >&5
10161 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
10162 echo $ac_n "(cached) $ac_c" 1>&6
10163 else
10164
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 #include <pwd.h>
10169 int main() {
10170
10171 char *p;
10172 struct passwd *pw;
10173 p = pw->pw_gecos;
10174
10175 ; return 0; }
10176 EOF
10177 if { (eval echo configure:10178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10178 rm -rf conftest*
10179
10180 wx_cv_struct_pw_gecos=yes
10181
10182 else
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 rm -rf conftest*
10186
10187 wx_cv_struct_pw_gecos=no
10188
10189
10190 fi
10191 rm -f conftest*
10192
10193
10194 fi
10195
10196 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
10197
10198 if test "$wx_cv_struct_pw_gecos" = "yes"; then
10199 cat >> confdefs.h <<\EOF
10200 #define HAVE_PW_GECOS 1
10201 EOF
10202
10203 fi
10204
10205
10206 echo $ac_n "checking for working const""... $ac_c" 1>&6
10207 echo "configure:10208: checking for working const" >&5
10208 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10210 else
10211 cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10214
10215 int main() {
10216
10217 /* Ultrix mips cc rejects this. */
10218 typedef int charset[2]; const charset x;
10219 /* SunOS 4.1.1 cc rejects this. */
10220 char const *const *ccp;
10221 char **p;
10222 /* NEC SVR4.0.2 mips cc rejects this. */
10223 struct point {int x, y;};
10224 static struct point const zero = {0,0};
10225 /* AIX XL C 1.02.0.0 rejects this.
10226 It does not let you subtract one const X* pointer from another in an arm
10227 of an if-expression whose if-part is not a constant expression */
10228 const char *g = "string";
10229 ccp = &g + (g ? g-g : 0);
10230 /* HPUX 7.0 cc rejects these. */
10231 ++ccp;
10232 p = (char**) ccp;
10233 ccp = (char const *const *) p;
10234 { /* SCO 3.2v4 cc rejects this. */
10235 char *t;
10236 char const *s = 0 ? (char *) 0 : (char const *) 0;
10237
10238 *t++ = 0;
10239 }
10240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10241 int x[] = {25, 17};
10242 const int *foo = &x[0];
10243 ++foo;
10244 }
10245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10246 typedef const int *iptr;
10247 iptr p = 0;
10248 ++p;
10249 }
10250 { /* AIX XL C 1.02.0.0 rejects this saying
10251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10252 struct s { int j; const int *ap[3]; };
10253 struct s *b; b->j = 5;
10254 }
10255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10256 const int foo = 10;
10257 }
10258
10259 ; return 0; }
10260 EOF
10261 if { (eval echo configure:10262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10262 rm -rf conftest*
10263 ac_cv_c_const=yes
10264 else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -rf conftest*
10268 ac_cv_c_const=no
10269 fi
10270 rm -f conftest*
10271 fi
10272
10273 echo "$ac_t""$ac_cv_c_const" 1>&6
10274 if test $ac_cv_c_const = no; then
10275 cat >> confdefs.h <<\EOF
10276 #define const
10277 EOF
10278
10279 fi
10280
10281 echo $ac_n "checking for inline""... $ac_c" 1>&6
10282 echo "configure:10283: checking for inline" >&5
10283 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10284 echo $ac_n "(cached) $ac_c" 1>&6
10285 else
10286 ac_cv_c_inline=no
10287 for ac_kw in inline __inline__ __inline; do
10288 cat > conftest.$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10291
10292 int main() {
10293 } $ac_kw foo() {
10294 ; return 0; }
10295 EOF
10296 if { (eval echo configure:10297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10297 rm -rf conftest*
10298 ac_cv_c_inline=$ac_kw; break
10299 else
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10302 fi
10303 rm -f conftest*
10304 done
10305
10306 fi
10307
10308 echo "$ac_t""$ac_cv_c_inline" 1>&6
10309 case "$ac_cv_c_inline" in
10310 inline | yes) ;;
10311 no) cat >> confdefs.h <<\EOF
10312 #define inline
10313 EOF
10314 ;;
10315 *) cat >> confdefs.h <<EOF
10316 #define inline $ac_cv_c_inline
10317 EOF
10318 ;;
10319 esac
10320
10321
10322 echo $ac_n "checking size of char""... $ac_c" 1>&6
10323 echo "configure:10324: checking size of char" >&5
10324 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10325 echo $ac_n "(cached) $ac_c" 1>&6
10326 else
10327 if test "$cross_compiling" = yes; then
10328 ac_cv_sizeof_char=1
10329 else
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 #include <stdio.h>
10334 main()
10335 {
10336 FILE *f=fopen("conftestval", "w");
10337 if (!f) exit(1);
10338 fprintf(f, "%d\n", sizeof(char));
10339 exit(0);
10340 }
10341 EOF
10342 if { (eval echo configure:10343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10343 then
10344 ac_cv_sizeof_char=`cat conftestval`
10345 else
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10348 rm -fr conftest*
10349 ac_cv_sizeof_char=0
10350 fi
10351 rm -fr conftest*
10352 fi
10353
10354 fi
10355 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10356 cat >> confdefs.h <<EOF
10357 #define SIZEOF_CHAR $ac_cv_sizeof_char
10358 EOF
10359
10360
10361 echo $ac_n "checking size of short""... $ac_c" 1>&6
10362 echo "configure:10363: checking size of short" >&5
10363 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10364 echo $ac_n "(cached) $ac_c" 1>&6
10365 else
10366 if test "$cross_compiling" = yes; then
10367 ac_cv_sizeof_short=2
10368 else
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372 #include <stdio.h>
10373 main()
10374 {
10375 FILE *f=fopen("conftestval", "w");
10376 if (!f) exit(1);
10377 fprintf(f, "%d\n", sizeof(short));
10378 exit(0);
10379 }
10380 EOF
10381 if { (eval echo configure:10382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10382 then
10383 ac_cv_sizeof_short=`cat conftestval`
10384 else
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10387 rm -fr conftest*
10388 ac_cv_sizeof_short=0
10389 fi
10390 rm -fr conftest*
10391 fi
10392
10393 fi
10394 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10395 cat >> confdefs.h <<EOF
10396 #define SIZEOF_SHORT $ac_cv_sizeof_short
10397 EOF
10398
10399
10400 echo $ac_n "checking size of int *""... $ac_c" 1>&6
10401 echo "configure:10402: checking size of int *" >&5
10402 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10403 echo $ac_n "(cached) $ac_c" 1>&6
10404 else
10405 if test "$cross_compiling" = yes; then
10406 ac_cv_sizeof_int_p=4
10407 else
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10411 #include <stdio.h>
10412 main()
10413 {
10414 FILE *f=fopen("conftestval", "w");
10415 if (!f) exit(1);
10416 fprintf(f, "%d\n", sizeof(int *));
10417 exit(0);
10418 }
10419 EOF
10420 if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10421 then
10422 ac_cv_sizeof_int_p=`cat conftestval`
10423 else
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10426 rm -fr conftest*
10427 ac_cv_sizeof_int_p=0
10428 fi
10429 rm -fr conftest*
10430 fi
10431
10432 fi
10433 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10434 cat >> confdefs.h <<EOF
10435 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
10436 EOF
10437
10438
10439 echo $ac_n "checking size of int""... $ac_c" 1>&6
10440 echo "configure:10441: checking size of int" >&5
10441 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10443 else
10444 if test "$cross_compiling" = yes; then
10445 ac_cv_sizeof_int=4
10446 else
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 #include <stdio.h>
10451 main()
10452 {
10453 FILE *f=fopen("conftestval", "w");
10454 if (!f) exit(1);
10455 fprintf(f, "%d\n", sizeof(int));
10456 exit(0);
10457 }
10458 EOF
10459 if { (eval echo configure:10460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10460 then
10461 ac_cv_sizeof_int=`cat conftestval`
10462 else
10463 echo "configure: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10465 rm -fr conftest*
10466 ac_cv_sizeof_int=0
10467 fi
10468 rm -fr conftest*
10469 fi
10470
10471 fi
10472 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10473 cat >> confdefs.h <<EOF
10474 #define SIZEOF_INT $ac_cv_sizeof_int
10475 EOF
10476
10477
10478 echo $ac_n "checking size of long""... $ac_c" 1>&6
10479 echo "configure:10480: checking size of long" >&5
10480 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10481 echo $ac_n "(cached) $ac_c" 1>&6
10482 else
10483 if test "$cross_compiling" = yes; then
10484 ac_cv_sizeof_long=4
10485 else
10486 cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10489 #include <stdio.h>
10490 main()
10491 {
10492 FILE *f=fopen("conftestval", "w");
10493 if (!f) exit(1);
10494 fprintf(f, "%d\n", sizeof(long));
10495 exit(0);
10496 }
10497 EOF
10498 if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10499 then
10500 ac_cv_sizeof_long=`cat conftestval`
10501 else
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10504 rm -fr conftest*
10505 ac_cv_sizeof_long=0
10506 fi
10507 rm -fr conftest*
10508 fi
10509
10510 fi
10511 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10512 cat >> confdefs.h <<EOF
10513 #define SIZEOF_LONG $ac_cv_sizeof_long
10514 EOF
10515
10516
10517 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10518 echo "configure:10519: checking size of long long" >&5
10519 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10520 echo $ac_n "(cached) $ac_c" 1>&6
10521 else
10522 if test "$cross_compiling" = yes; then
10523 ac_cv_sizeof_long_long=0
10524 else
10525 cat > conftest.$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10528 #include <stdio.h>
10529 main()
10530 {
10531 FILE *f=fopen("conftestval", "w");
10532 if (!f) exit(1);
10533 fprintf(f, "%d\n", sizeof(long long));
10534 exit(0);
10535 }
10536 EOF
10537 if { (eval echo configure:10538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10538 then
10539 ac_cv_sizeof_long_long=`cat conftestval`
10540 else
10541 echo "configure: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10543 rm -fr conftest*
10544 ac_cv_sizeof_long_long=0
10545 fi
10546 rm -fr conftest*
10547 fi
10548
10549 fi
10550 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10551 cat >> confdefs.h <<EOF
10552 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10553 EOF
10554
10555
10556
10557 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10558 echo "configure:10559: checking size of wchar_t" >&5
10559 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10561 else
10562
10563 if test "$cross_compiling" = yes; then
10564 wx_cv_sizeof_wchar_t=4
10565
10566 else
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570
10571 #ifdef HAVE_WCHAR_H
10572 # include <wchar.h>
10573 #endif
10574 #ifdef HAVE_STDLIB_H
10575 # include <stdlib.h>
10576 #endif
10577 #include <stdio.h>
10578 int main()
10579 {
10580 FILE *f=fopen("conftestval", "w");
10581 if (!f) exit(1);
10582 fprintf(f, "%i", sizeof(wchar_t));
10583 exit(0);
10584 }
10585
10586 EOF
10587 if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10588 then
10589 wx_cv_sizeof_wchar_t=`cat conftestval`
10590 else
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10593 rm -fr conftest*
10594 wx_cv_sizeof_wchar_t=0
10595 fi
10596 rm -fr conftest*
10597 fi
10598
10599
10600 fi
10601
10602 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10603
10604 cat >> confdefs.h <<EOF
10605 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10606 EOF
10607
10608
10609
10610 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10611 echo "configure:10612: checking whether byte ordering is bigendian" >&5
10612 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10613 echo $ac_n "(cached) $ac_c" 1>&6
10614 else
10615 ac_cv_c_bigendian=unknown
10616 # See if sys/param.h defines the BYTE_ORDER macro.
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 #include <sys/types.h>
10621 #include <sys/param.h>
10622 int main() {
10623
10624 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10625 bogus endian macros
10626 #endif
10627 ; return 0; }
10628 EOF
10629 if { (eval echo configure:10630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10630 rm -rf conftest*
10631 # It does; now see whether it defined to BIG_ENDIAN or not.
10632 cat > conftest.$ac_ext <<EOF
10633 #line 10634 "configure"
10634 #include "confdefs.h"
10635 #include <sys/types.h>
10636 #include <sys/param.h>
10637 int main() {
10638
10639 #if BYTE_ORDER != BIG_ENDIAN
10640 not big endian
10641 #endif
10642 ; return 0; }
10643 EOF
10644 if { (eval echo configure:10645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10645 rm -rf conftest*
10646 ac_cv_c_bigendian=yes
10647 else
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10650 rm -rf conftest*
10651 ac_cv_c_bigendian=no
10652 fi
10653 rm -f conftest*
10654 else
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 fi
10658 rm -f conftest*
10659 if test $ac_cv_c_bigendian = unknown; then
10660 if test "$cross_compiling" = yes; then
10661 ac_cv_c_bigendian=unknown
10662 else
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 main () {
10667 /* Are we little or big endian? From Harbison&Steele. */
10668 union
10669 {
10670 long l;
10671 char c[sizeof (long)];
10672 } u;
10673 u.l = 1;
10674 exit (u.c[sizeof (long) - 1] == 1);
10675 }
10676 EOF
10677 if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10678 then
10679 ac_cv_c_bigendian=no
10680 else
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 rm -fr conftest*
10684 ac_cv_c_bigendian=yes
10685 fi
10686 rm -fr conftest*
10687 fi
10688
10689 fi
10690 fi
10691
10692 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10693 if test $ac_cv_c_bigendian = unknown; then
10694 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
10695 fi
10696 if test $ac_cv_c_bigendian = yes; then
10697 cat >> confdefs.h <<\EOF
10698 #define WORDS_BIGENDIAN 1
10699 EOF
10700
10701 fi
10702
10703
10704
10705 if test "$cross_compiling" = "yes"; then
10706 cat >> confdefs.h <<\EOF
10707 #define wxUSE_IOSTREAMH 1
10708 EOF
10709
10710 else
10711
10712 ac_ext=C
10713 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10714 ac_cpp='$CXXCPP $CPPFLAGS'
10715 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10716 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10717 cross_compiling=$ac_cv_prog_cxx_cross
10718
10719
10720 for ac_hdr in iostream
10721 do
10722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10724 echo "configure:10725: checking for $ac_hdr" >&5
10725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10727 else
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 #include <$ac_hdr>
10732 EOF
10733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10734 { (eval echo configure:10735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10736 if test -z "$ac_err"; then
10737 rm -rf conftest*
10738 eval "ac_cv_header_$ac_safe=yes"
10739 else
10740 echo "$ac_err" >&5
10741 echo "configure: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 rm -rf conftest*
10744 eval "ac_cv_header_$ac_safe=no"
10745 fi
10746 rm -f conftest*
10747 fi
10748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10749 echo "$ac_t""yes" 1>&6
10750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10751 cat >> confdefs.h <<EOF
10752 #define $ac_tr_hdr 1
10753 EOF
10754
10755 else
10756 echo "$ac_t""no" 1>&6
10757 fi
10758 done
10759
10760
10761 if test "x$HAVE_IOSTREAM" = x ; then
10762 cat >> confdefs.h <<\EOF
10763 #define wxUSE_IOSTREAMH 1
10764 EOF
10765
10766 else
10767 :
10768 fi
10769
10770 ac_ext=c
10771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10772 ac_cpp='$CPP $CPPFLAGS'
10773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10775 cross_compiling=$ac_cv_prog_cc_cross
10776
10777 fi
10778
10779
10780
10781 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10782 echo "configure:10783: checking if C++ compiler supports bool" >&5
10783 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
10785 else
10786
10787
10788 ac_ext=C
10789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10790 ac_cpp='$CXXCPP $CPPFLAGS'
10791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10793 cross_compiling=$ac_cv_prog_cxx_cross
10794
10795
10796 cat > conftest.$ac_ext <<EOF
10797 #line 10798 "configure"
10798 #include "confdefs.h"
10799
10800
10801 int main() {
10802
10803 bool b = true;
10804
10805 return 0;
10806
10807 ; return 0; }
10808 EOF
10809 if { (eval echo configure:10810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10810 rm -rf conftest*
10811
10812 cat >> confdefs.h <<\EOF
10813 #define HAVE_BOOL 1
10814 EOF
10815
10816 wx_cv_cpp_bool=yes
10817
10818 else
10819 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5
10821 rm -rf conftest*
10822
10823 wx_cv_cpp_bool=no
10824
10825
10826 fi
10827 rm -f conftest*
10828
10829 ac_ext=c
10830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10831 ac_cpp='$CPP $CPPFLAGS'
10832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10834 cross_compiling=$ac_cv_prog_cc_cross
10835
10836
10837 fi
10838
10839 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10840
10841 if test "$wx_cv_cpp_bool" = "yes"; then
10842 cat >> confdefs.h <<\EOF
10843 #define HAVE_BOOL 1
10844 EOF
10845
10846 fi
10847
10848
10849
10850 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
10851 echo "configure:10852: checking if you need GNU extensions" >&5
10852 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10854 else
10855
10856 cat > conftest.$ac_ext <<EOF
10857 #line 10858 "configure"
10858 #include "confdefs.h"
10859 #include <features.h>
10860 int main() {
10861
10862
10863 #ifndef __GNU_LIBRARY__
10864 Compile error wanted
10865 #endif
10866
10867
10868 ; return 0; }
10869 EOF
10870 if { (eval echo configure:10871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10871 rm -rf conftest*
10872 wx_cv_gnu_extensions=yes
10873 else
10874 echo "configure: failed program was:" >&5
10875 cat conftest.$ac_ext >&5
10876 rm -rf conftest*
10877 wx_cv_gnu_extensions=no
10878 fi
10879 rm -f conftest*
10880
10881 fi
10882
10883
10884 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10885 if test "$wx_cv_gnu_extensions" = "yes"; then
10886 cat >> confdefs.h <<EOF
10887 #define _GNU_SOURCE 1
10888 EOF
10889
10890 fi
10891
10892
10893
10894 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
10895 echo "configure:10896: checking for wcslen in -lc" >&5
10896 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10898 echo $ac_n "(cached) $ac_c" 1>&6
10899 else
10900 ac_save_LIBS="$LIBS"
10901 LIBS="-lc $LIBS"
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 /* Override any gcc2 internal prototype to avoid an error. */
10906 /* We use char because int might match the return type of a gcc2
10907 builtin and then its argument prototype would still apply. */
10908 char wcslen();
10909
10910 int main() {
10911 wcslen()
10912 ; return 0; }
10913 EOF
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10915 rm -rf conftest*
10916 eval "ac_cv_lib_$ac_lib_var=yes"
10917 else
10918 echo "configure: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10920 rm -rf conftest*
10921 eval "ac_cv_lib_$ac_lib_var=no"
10922 fi
10923 rm -f conftest*
10924 LIBS="$ac_save_LIBS"
10925
10926 fi
10927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10928 echo "$ac_t""yes" 1>&6
10929
10930 cat >> confdefs.h <<\EOF
10931 #define HAVE_WCSLEN 1
10932 EOF
10933
10934 WCHAR_LINK=""
10935
10936 else
10937 echo "$ac_t""no" 1>&6
10938
10939 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
10940 echo "configure:10941: checking for wcslen in -lw" >&5
10941 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10944 else
10945 ac_save_LIBS="$LIBS"
10946 LIBS="-lw $LIBS"
10947 cat > conftest.$ac_ext <<EOF
10948 #line 10949 "configure"
10949 #include "confdefs.h"
10950 /* Override any gcc2 internal prototype to avoid an error. */
10951 /* We use char because int might match the return type of a gcc2
10952 builtin and then its argument prototype would still apply. */
10953 char wcslen();
10954
10955 int main() {
10956 wcslen()
10957 ; return 0; }
10958 EOF
10959 if { (eval echo configure:10960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10960 rm -rf conftest*
10961 eval "ac_cv_lib_$ac_lib_var=yes"
10962 else
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10965 rm -rf conftest*
10966 eval "ac_cv_lib_$ac_lib_var=no"
10967 fi
10968 rm -f conftest*
10969 LIBS="$ac_save_LIBS"
10970
10971 fi
10972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10973 echo "$ac_t""yes" 1>&6
10974
10975 cat >> confdefs.h <<\EOF
10976 #define HAVE_WCSLEN 1
10977 EOF
10978
10979 WCHAR_LINK="-lw"
10980
10981 else
10982 echo "$ac_t""no" 1>&6
10983 fi
10984
10985
10986 fi
10987
10988
10989 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10990 echo "configure:10991: checking for vprintf" >&5
10991 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10992 echo $ac_n "(cached) $ac_c" 1>&6
10993 else
10994 cat > conftest.$ac_ext <<EOF
10995 #line 10996 "configure"
10996 #include "confdefs.h"
10997 /* System header to define __stub macros and hopefully few prototypes,
10998 which can conflict with char vprintf(); below. */
10999 #include <assert.h>
11000 /* Override any gcc2 internal prototype to avoid an error. */
11001 /* We use char because int might match the return type of a gcc2
11002 builtin and then its argument prototype would still apply. */
11003 char vprintf();
11004
11005 int main() {
11006
11007 /* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11011 choke me
11012 #else
11013 vprintf();
11014 #endif
11015
11016 ; return 0; }
11017 EOF
11018 if { (eval echo configure:11019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11019 rm -rf conftest*
11020 eval "ac_cv_func_vprintf=yes"
11021 else
11022 echo "configure: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11024 rm -rf conftest*
11025 eval "ac_cv_func_vprintf=no"
11026 fi
11027 rm -f conftest*
11028 fi
11029
11030 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11031 echo "$ac_t""yes" 1>&6
11032 cat >> confdefs.h <<\EOF
11033 #define HAVE_VPRINTF 1
11034 EOF
11035
11036 else
11037 echo "$ac_t""no" 1>&6
11038 fi
11039
11040 if test "$ac_cv_func_vprintf" != yes; then
11041 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11042 echo "configure:11043: checking for _doprnt" >&5
11043 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11044 echo $ac_n "(cached) $ac_c" 1>&6
11045 else
11046 cat > conftest.$ac_ext <<EOF
11047 #line 11048 "configure"
11048 #include "confdefs.h"
11049 /* System header to define __stub macros and hopefully few prototypes,
11050 which can conflict with char _doprnt(); below. */
11051 #include <assert.h>
11052 /* Override any gcc2 internal prototype to avoid an error. */
11053 /* We use char because int might match the return type of a gcc2
11054 builtin and then its argument prototype would still apply. */
11055 char _doprnt();
11056
11057 int main() {
11058
11059 /* The GNU C library defines this for functions which it implements
11060 to always fail with ENOSYS. Some functions are actually named
11061 something starting with __ and the normal name is an alias. */
11062 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11063 choke me
11064 #else
11065 _doprnt();
11066 #endif
11067
11068 ; return 0; }
11069 EOF
11070 if { (eval echo configure:11071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11071 rm -rf conftest*
11072 eval "ac_cv_func__doprnt=yes"
11073 else
11074 echo "configure: failed program was:" >&5
11075 cat conftest.$ac_ext >&5
11076 rm -rf conftest*
11077 eval "ac_cv_func__doprnt=no"
11078 fi
11079 rm -f conftest*
11080 fi
11081
11082 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11083 echo "$ac_t""yes" 1>&6
11084 cat >> confdefs.h <<\EOF
11085 #define HAVE_DOPRNT 1
11086 EOF
11087
11088 else
11089 echo "$ac_t""no" 1>&6
11090 fi
11091
11092 fi
11093
11094
11095
11096
11097
11098
11099
11100 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
11101 echo "configure:11102: checking for vsnprintf" >&5
11102 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
11103 echo $ac_n "(cached) $ac_c" 1>&6
11104 else
11105
11106 cat > conftest.$ac_ext <<EOF
11107 #line 11108 "configure"
11108 #include "confdefs.h"
11109
11110 #include <stdio.h>
11111 #include <stdarg.h>
11112
11113 int main() {
11114
11115 int wx_test_vsnprintf(const char *, ...);
11116
11117 wx_test_vsnprintf("%s");
11118 return 0;
11119 }
11120
11121 int wx_test_vsnprintf(const char *fmt, ...)
11122 {
11123 char *s;
11124
11125 va_list argp;
11126 va_start(argp, fmt);
11127 vsnprintf(s, 42, fmt, argp);
11128 va_end(argp);
11129
11130 ; return 0; }
11131 EOF
11132 if { (eval echo configure:11133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11133 rm -rf conftest*
11134
11135 wx_cv_func_vsnprintf=yes
11136
11137 else
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 rm -rf conftest*
11141
11142 cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145
11146 #include <stdio.h>
11147 #include <stdarg.h>
11148
11149 int main() {
11150
11151 int wx_test_vsnprintf(const char *, ...);
11152
11153 wx_test_vsnprintf("%s");
11154 return 0;
11155 }
11156
11157 int wx_test_vsnprintf(const char *fmt, ...)
11158 {
11159 char *s;
11160
11161 va_list argp;
11162 va_start(argp, fmt);
11163 _vsnprintf(s, 42, fmt, argp);
11164 va_end(argp);
11165
11166 ; return 0; }
11167 EOF
11168 if { (eval echo configure:11169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11169 rm -rf conftest*
11170
11171 wx_cv_func_vsnprintf=yes
11172
11173 else
11174 echo "configure: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 rm -rf conftest*
11177
11178 wx_cv_func_vsnprintf=no
11179
11180 fi
11181 rm -f conftest*
11182
11183 fi
11184 rm -f conftest*
11185
11186 fi
11187
11188 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
11189
11190 if test "$wx_cv_func_vsnprintf" = yes; then
11191 cat >> confdefs.h <<\EOF
11192 #define HAVE_VSNPRINTF 1
11193 EOF
11194
11195 else
11196 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
11197 fi
11198
11199 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
11200 echo "configure:11201: checking for vsscanf" >&5
11201 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
11202 echo $ac_n "(cached) $ac_c" 1>&6
11203 else
11204
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11208
11209 #include <stdio.h>
11210 #include <stdarg.h>
11211
11212 int main() {
11213
11214 int wx_test_vsscanf(const char *, ...);
11215
11216 wx_test_vsscanf("%d");
11217 return 0;
11218 }
11219
11220 int wx_test_vsscanf(const char *fmt, ...)
11221 {
11222 va_list argp;
11223 va_start(argp, fmt);
11224 vsscanf("42", fmt, argp);
11225 va_end(argp);
11226
11227 ; return 0; }
11228 EOF
11229 if { (eval echo configure:11230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11230 rm -rf conftest*
11231
11232 wx_cv_func_vsscanf=yes
11233
11234 else
11235 echo "configure: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 rm -rf conftest*
11238
11239 wx_cv_func_vsscanf=no
11240
11241 fi
11242 rm -f conftest*
11243
11244 fi
11245
11246 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
11247
11248 if test "$wx_cv_func_vsscanf" = yes; then
11249 cat >> confdefs.h <<\EOF
11250 #define HAVE_VSSCANF 1
11251 EOF
11252
11253 fi
11254
11255
11256
11257 if test "$TOOLKIT" != "MSW"; then
11258
11259
11260
11261 ac_ext=C
11262 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11263 ac_cpp='$CXXCPP $CPPFLAGS'
11264 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11265 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11266 cross_compiling=$ac_cv_prog_cxx_cross
11267
11268 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
11269 echo "configure:11270: checking if iconv() takes char**" >&5
11270 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
11271 echo $ac_n "(cached) $ac_c" 1>&6
11272 else
11273
11274 cat > conftest.$ac_ext <<EOF
11275 #line 11276 "configure"
11276 #include "confdefs.h"
11277 #include <iconv.h>
11278 int main() {
11279
11280 char **inbuf, **outbuf;
11281 iconv_t cd;
11282 size_t insz, outsz;
11283 iconv(cd, inbuf, &insz, outbuf, &outsz);
11284
11285 ; return 0; }
11286 EOF
11287 if { (eval echo configure:11288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11288 rm -rf conftest*
11289 wx_cv_iconv_takes_char=yes
11290 else
11291 echo "configure: failed program was:" >&5
11292 cat conftest.$ac_ext >&5
11293 rm -rf conftest*
11294 wx_cv_iconv_takes_char=no
11295 fi
11296 rm -f conftest*
11297
11298 fi
11299
11300 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
11301 ac_ext=c
11302 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11303 ac_cpp='$CPP $CPPFLAGS'
11304 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11305 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11306 cross_compiling=$ac_cv_prog_cc_cross
11307
11308 if test "$wx_cv_iconv_takes_char" = yes ; then
11309 cat >> confdefs.h <<\EOF
11310 #define WX_ICONV_TAKES_CHAR 1
11311 EOF
11312
11313 fi
11314
11315
11316 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
11317 for ac_func in sigaction
11318 do
11319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11320 echo "configure:11321: checking for $ac_func" >&5
11321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11322 echo $ac_n "(cached) $ac_c" 1>&6
11323 else
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func(); below. */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error. */
11331 /* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11333 char $ac_func();
11334
11335 int main() {
11336
11337 /* The GNU C library defines this for functions which it implements
11338 to always fail with ENOSYS. Some functions are actually named
11339 something starting with __ and the normal name is an alias. */
11340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11341 choke me
11342 #else
11343 $ac_func();
11344 #endif
11345
11346 ; return 0; }
11347 EOF
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11349 rm -rf conftest*
11350 eval "ac_cv_func_$ac_func=yes"
11351 else
11352 echo "configure: failed program was:" >&5
11353 cat conftest.$ac_ext >&5
11354 rm -rf conftest*
11355 eval "ac_cv_func_$ac_func=no"
11356 fi
11357 rm -f conftest*
11358 fi
11359
11360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11361 echo "$ac_t""yes" 1>&6
11362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11363 cat >> confdefs.h <<EOF
11364 #define $ac_tr_func 1
11365 EOF
11366
11367 else
11368 echo "$ac_t""no" 1>&6
11369 fi
11370 done
11371
11372
11373 if test "$ac_cv_func_sigaction" = "no"; then
11374 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11375 wxUSE_ON_FATAL_EXCEPTION=no
11376 fi
11377
11378 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11379
11380 ac_ext=C
11381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11382 ac_cpp='$CXXCPP $CPPFLAGS'
11383 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11384 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11385 cross_compiling=$ac_cv_prog_cxx_cross
11386
11387
11388 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
11389 echo "configure:11390: checking for sa_handler type" >&5
11390 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11391 echo $ac_n "(cached) $ac_c" 1>&6
11392 else
11393
11394 cat > conftest.$ac_ext <<EOF
11395 #line 11396 "configure"
11396 #include "confdefs.h"
11397 #include <signal.h>
11398 int main() {
11399
11400 extern void testSigHandler(int);
11401
11402 struct sigaction sa;
11403 sa.sa_handler = testSigHandler;
11404
11405 ; return 0; }
11406 EOF
11407 if { (eval echo configure:11408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11408 rm -rf conftest*
11409
11410 wx_cv_type_sa_handler=int
11411
11412 else
11413 echo "configure: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 rm -rf conftest*
11416
11417 wx_cv_type_sa_handler=void
11418
11419 fi
11420 rm -f conftest*
11421
11422 fi
11423
11424 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11425
11426 ac_ext=c
11427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11428 ac_cpp='$CPP $CPPFLAGS'
11429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11431 cross_compiling=$ac_cv_prog_cc_cross
11432
11433
11434 cat >> confdefs.h <<EOF
11435 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11436 EOF
11437
11438 fi
11439 fi
11440
11441 for ac_func in vfork
11442 do
11443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11444 echo "configure:11445: checking for $ac_func" >&5
11445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11446 echo $ac_n "(cached) $ac_c" 1>&6
11447 else
11448 cat > conftest.$ac_ext <<EOF
11449 #line 11450 "configure"
11450 #include "confdefs.h"
11451 /* System header to define __stub macros and hopefully few prototypes,
11452 which can conflict with char $ac_func(); below. */
11453 #include <assert.h>
11454 /* Override any gcc2 internal prototype to avoid an error. */
11455 /* We use char because int might match the return type of a gcc2
11456 builtin and then its argument prototype would still apply. */
11457 char $ac_func();
11458
11459 int main() {
11460
11461 /* The GNU C library defines this for functions which it implements
11462 to always fail with ENOSYS. Some functions are actually named
11463 something starting with __ and the normal name is an alias. */
11464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11465 choke me
11466 #else
11467 $ac_func();
11468 #endif
11469
11470 ; return 0; }
11471 EOF
11472 if { (eval echo configure:11473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11473 rm -rf conftest*
11474 eval "ac_cv_func_$ac_func=yes"
11475 else
11476 echo "configure: failed program was:" >&5
11477 cat conftest.$ac_ext >&5
11478 rm -rf conftest*
11479 eval "ac_cv_func_$ac_func=no"
11480 fi
11481 rm -f conftest*
11482 fi
11483
11484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11487 cat >> confdefs.h <<EOF
11488 #define $ac_tr_func 1
11489 EOF
11490
11491 else
11492 echo "$ac_t""no" 1>&6
11493 fi
11494 done
11495
11496
11497 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
11498 for ac_func in fcntl flock
11499 do
11500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11501 echo "configure:11502: checking for $ac_func" >&5
11502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11504 else
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11508 /* System header to define __stub macros and hopefully few prototypes,
11509 which can conflict with char $ac_func(); below. */
11510 #include <assert.h>
11511 /* Override any gcc2 internal prototype to avoid an error. */
11512 /* We use char because int might match the return type of a gcc2
11513 builtin and then its argument prototype would still apply. */
11514 char $ac_func();
11515
11516 int main() {
11517
11518 /* The GNU C library defines this for functions which it implements
11519 to always fail with ENOSYS. Some functions are actually named
11520 something starting with __ and the normal name is an alias. */
11521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11522 choke me
11523 #else
11524 $ac_func();
11525 #endif
11526
11527 ; return 0; }
11528 EOF
11529 if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11530 rm -rf conftest*
11531 eval "ac_cv_func_$ac_func=yes"
11532 else
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11535 rm -rf conftest*
11536 eval "ac_cv_func_$ac_func=no"
11537 fi
11538 rm -f conftest*
11539 fi
11540
11541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11542 echo "$ac_t""yes" 1>&6
11543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11544 cat >> confdefs.h <<EOF
11545 #define $ac_tr_func 1
11546 EOF
11547 break
11548 else
11549 echo "$ac_t""no" 1>&6
11550 fi
11551 done
11552
11553
11554 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
11555 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
11556 wxUSE_SNGLINST_CHECKER=no
11557 fi
11558 fi
11559
11560 for ac_func in timegm
11561 do
11562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11563 echo "configure:11564: checking for $ac_func" >&5
11564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11565 echo $ac_n "(cached) $ac_c" 1>&6
11566 else
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 /* System header to define __stub macros and hopefully few prototypes,
11571 which can conflict with char $ac_func(); below. */
11572 #include <assert.h>
11573 /* Override any gcc2 internal prototype to avoid an error. */
11574 /* We use char because int might match the return type of a gcc2
11575 builtin and then its argument prototype would still apply. */
11576 char $ac_func();
11577
11578 int main() {
11579
11580 /* The GNU C library defines this for functions which it implements
11581 to always fail with ENOSYS. Some functions are actually named
11582 something starting with __ and the normal name is an alias. */
11583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11584 choke me
11585 #else
11586 $ac_func();
11587 #endif
11588
11589 ; return 0; }
11590 EOF
11591 if { (eval echo configure:11592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11592 rm -rf conftest*
11593 eval "ac_cv_func_$ac_func=yes"
11594 else
11595 echo "configure: failed program was:" >&5
11596 cat conftest.$ac_ext >&5
11597 rm -rf conftest*
11598 eval "ac_cv_func_$ac_func=no"
11599 fi
11600 rm -f conftest*
11601 fi
11602
11603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11604 echo "$ac_t""yes" 1>&6
11605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11606 cat >> confdefs.h <<EOF
11607 #define $ac_tr_func 1
11608 EOF
11609
11610 else
11611 echo "$ac_t""no" 1>&6
11612 fi
11613 done
11614
11615
11616 for ac_func in putenv setenv
11617 do
11618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11619 echo "configure:11620: checking for $ac_func" >&5
11620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11621 echo $ac_n "(cached) $ac_c" 1>&6
11622 else
11623 cat > conftest.$ac_ext <<EOF
11624 #line 11625 "configure"
11625 #include "confdefs.h"
11626 /* System header to define __stub macros and hopefully few prototypes,
11627 which can conflict with char $ac_func(); below. */
11628 #include <assert.h>
11629 /* Override any gcc2 internal prototype to avoid an error. */
11630 /* We use char because int might match the return type of a gcc2
11631 builtin and then its argument prototype would still apply. */
11632 char $ac_func();
11633
11634 int main() {
11635
11636 /* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
11639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11640 choke me
11641 #else
11642 $ac_func();
11643 #endif
11644
11645 ; return 0; }
11646 EOF
11647 if { (eval echo configure:11648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11648 rm -rf conftest*
11649 eval "ac_cv_func_$ac_func=yes"
11650 else
11651 echo "configure: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11653 rm -rf conftest*
11654 eval "ac_cv_func_$ac_func=no"
11655 fi
11656 rm -f conftest*
11657 fi
11658
11659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11660 echo "$ac_t""yes" 1>&6
11661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11662 cat >> confdefs.h <<EOF
11663 #define $ac_tr_func 1
11664 EOF
11665 break
11666 else
11667 echo "$ac_t""no" 1>&6
11668 fi
11669 done
11670
11671
11672 HAVE_SOME_SLEEP_FUNC=0
11673 if test "$USE_BEOS" = 1; then
11674 cat >> confdefs.h <<\EOF
11675 #define HAVE_SLEEP 1
11676 EOF
11677
11678 HAVE_SOME_SLEEP_FUNC=1
11679 fi
11680
11681 if test "$USE_MAC" = 1; then
11682 cat >> confdefs.h <<\EOF
11683 #define HAVE_USLEEP 1
11684 EOF
11685
11686 HAVE_SOME_SLEEP_FUNC=1
11687 fi
11688
11689 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11690 POSIX4_LINK=
11691 for ac_func in nanosleep
11692 do
11693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11694 echo "configure:11695: checking for $ac_func" >&5
11695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11696 echo $ac_n "(cached) $ac_c" 1>&6
11697 else
11698 cat > conftest.$ac_ext <<EOF
11699 #line 11700 "configure"
11700 #include "confdefs.h"
11701 /* System header to define __stub macros and hopefully few prototypes,
11702 which can conflict with char $ac_func(); below. */
11703 #include <assert.h>
11704 /* Override any gcc2 internal prototype to avoid an error. */
11705 /* We use char because int might match the return type of a gcc2
11706 builtin and then its argument prototype would still apply. */
11707 char $ac_func();
11708
11709 int main() {
11710
11711 /* The GNU C library defines this for functions which it implements
11712 to always fail with ENOSYS. Some functions are actually named
11713 something starting with __ and the normal name is an alias. */
11714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11715 choke me
11716 #else
11717 $ac_func();
11718 #endif
11719
11720 ; return 0; }
11721 EOF
11722 if { (eval echo configure:11723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11723 rm -rf conftest*
11724 eval "ac_cv_func_$ac_func=yes"
11725 else
11726 echo "configure: failed program was:" >&5
11727 cat conftest.$ac_ext >&5
11728 rm -rf conftest*
11729 eval "ac_cv_func_$ac_func=no"
11730 fi
11731 rm -f conftest*
11732 fi
11733
11734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11735 echo "$ac_t""yes" 1>&6
11736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11737 cat >> confdefs.h <<EOF
11738 #define $ac_tr_func 1
11739 EOF
11740 cat >> confdefs.h <<\EOF
11741 #define HAVE_NANOSLEEP 1
11742 EOF
11743
11744 else
11745 echo "$ac_t""no" 1>&6
11746 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
11747 echo "configure:11748: checking for nanosleep in -lposix4" >&5
11748 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11750 echo $ac_n "(cached) $ac_c" 1>&6
11751 else
11752 ac_save_LIBS="$LIBS"
11753 LIBS="-lposix4 $LIBS"
11754 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11757 /* Override any gcc2 internal prototype to avoid an error. */
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11760 char nanosleep();
11761
11762 int main() {
11763 nanosleep()
11764 ; return 0; }
11765 EOF
11766 if { (eval echo configure:11767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11767 rm -rf conftest*
11768 eval "ac_cv_lib_$ac_lib_var=yes"
11769 else
11770 echo "configure: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11772 rm -rf conftest*
11773 eval "ac_cv_lib_$ac_lib_var=no"
11774 fi
11775 rm -f conftest*
11776 LIBS="$ac_save_LIBS"
11777
11778 fi
11779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11780 echo "$ac_t""yes" 1>&6
11781
11782 cat >> confdefs.h <<\EOF
11783 #define HAVE_NANOSLEEP 1
11784 EOF
11785
11786 POSIX4_LINK="-lposix4"
11787
11788 else
11789 echo "$ac_t""no" 1>&6
11790
11791 for ac_func in usleep
11792 do
11793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11794 echo "configure:11795: checking for $ac_func" >&5
11795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11796 echo $ac_n "(cached) $ac_c" 1>&6
11797 else
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 /* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func(); below. */
11803 #include <assert.h>
11804 /* Override any gcc2 internal prototype to avoid an error. */
11805 /* We use char because int might match the return type of a gcc2
11806 builtin and then its argument prototype would still apply. */
11807 char $ac_func();
11808
11809 int main() {
11810
11811 /* The GNU C library defines this for functions which it implements
11812 to always fail with ENOSYS. Some functions are actually named
11813 something starting with __ and the normal name is an alias. */
11814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11815 choke me
11816 #else
11817 $ac_func();
11818 #endif
11819
11820 ; return 0; }
11821 EOF
11822 if { (eval echo configure:11823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11823 rm -rf conftest*
11824 eval "ac_cv_func_$ac_func=yes"
11825 else
11826 echo "configure: failed program was:" >&5
11827 cat conftest.$ac_ext >&5
11828 rm -rf conftest*
11829 eval "ac_cv_func_$ac_func=no"
11830 fi
11831 rm -f conftest*
11832 fi
11833
11834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11835 echo "$ac_t""yes" 1>&6
11836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11837 cat >> confdefs.h <<EOF
11838 #define $ac_tr_func 1
11839 EOF
11840 cat >> confdefs.h <<\EOF
11841 #define HAVE_USLEEP 1
11842 EOF
11843
11844 else
11845 echo "$ac_t""no" 1>&6
11846 echo "configure: warning: wxSleep() function will not work" 1>&2
11847
11848 fi
11849 done
11850
11851
11852
11853 fi
11854
11855
11856
11857 fi
11858 done
11859
11860 fi
11861
11862 for ac_func in uname gethostname
11863 do
11864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11865 echo "configure:11866: checking for $ac_func" >&5
11866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11867 echo $ac_n "(cached) $ac_c" 1>&6
11868 else
11869 cat > conftest.$ac_ext <<EOF
11870 #line 11871 "configure"
11871 #include "confdefs.h"
11872 /* System header to define __stub macros and hopefully few prototypes,
11873 which can conflict with char $ac_func(); below. */
11874 #include <assert.h>
11875 /* Override any gcc2 internal prototype to avoid an error. */
11876 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11878 char $ac_func();
11879
11880 int main() {
11881
11882 /* The GNU C library defines this for functions which it implements
11883 to always fail with ENOSYS. Some functions are actually named
11884 something starting with __ and the normal name is an alias. */
11885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11886 choke me
11887 #else
11888 $ac_func();
11889 #endif
11890
11891 ; return 0; }
11892 EOF
11893 if { (eval echo configure:11894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11894 rm -rf conftest*
11895 eval "ac_cv_func_$ac_func=yes"
11896 else
11897 echo "configure: failed program was:" >&5
11898 cat conftest.$ac_ext >&5
11899 rm -rf conftest*
11900 eval "ac_cv_func_$ac_func=no"
11901 fi
11902 rm -f conftest*
11903 fi
11904
11905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11906 echo "$ac_t""yes" 1>&6
11907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11908 cat >> confdefs.h <<EOF
11909 #define $ac_tr_func 1
11910 EOF
11911 break
11912 else
11913 echo "$ac_t""no" 1>&6
11914 fi
11915 done
11916
11917
11918
11919 ac_ext=C
11920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11921 ac_cpp='$CXXCPP $CPPFLAGS'
11922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11924 cross_compiling=$ac_cv_prog_cxx_cross
11925
11926
11927 for ac_func in strtok_r
11928 do
11929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11930 echo "configure:11931: checking for $ac_func" >&5
11931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11932 echo $ac_n "(cached) $ac_c" 1>&6
11933 else
11934 cat > conftest.$ac_ext <<EOF
11935 #line 11936 "configure"
11936 #include "confdefs.h"
11937 /* System header to define __stub macros and hopefully few prototypes,
11938 which can conflict with char $ac_func(); below. */
11939 #include <assert.h>
11940 /* Override any gcc2 internal prototype to avoid an error. */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 /* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11946 char $ac_func();
11947
11948 int main() {
11949
11950 /* The GNU C library defines this for functions which it implements
11951 to always fail with ENOSYS. Some functions are actually named
11952 something starting with __ and the normal name is an alias. */
11953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11954 choke me
11955 #else
11956 $ac_func();
11957 #endif
11958
11959 ; return 0; }
11960 EOF
11961 if { (eval echo configure:11962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11962 rm -rf conftest*
11963 eval "ac_cv_func_$ac_func=yes"
11964 else
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11967 rm -rf conftest*
11968 eval "ac_cv_func_$ac_func=no"
11969 fi
11970 rm -f conftest*
11971 fi
11972
11973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11974 echo "$ac_t""yes" 1>&6
11975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11976 cat >> confdefs.h <<EOF
11977 #define $ac_tr_func 1
11978 EOF
11979
11980 else
11981 echo "$ac_t""no" 1>&6
11982 fi
11983 done
11984
11985
11986 ac_ext=c
11987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11988 ac_cpp='$CPP $CPPFLAGS'
11989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11991 cross_compiling=$ac_cv_prog_cc_cross
11992
11993
11994 INET_LINK=
11995 for ac_func in inet_addr
11996 do
11997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11998 echo "configure:11999: checking for $ac_func" >&5
11999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12000 echo $ac_n "(cached) $ac_c" 1>&6
12001 else
12002 cat > conftest.$ac_ext <<EOF
12003 #line 12004 "configure"
12004 #include "confdefs.h"
12005 /* System header to define __stub macros and hopefully few prototypes,
12006 which can conflict with char $ac_func(); below. */
12007 #include <assert.h>
12008 /* Override any gcc2 internal prototype to avoid an error. */
12009 /* We use char because int might match the return type of a gcc2
12010 builtin and then its argument prototype would still apply. */
12011 char $ac_func();
12012
12013 int main() {
12014
12015 /* The GNU C library defines this for functions which it implements
12016 to always fail with ENOSYS. Some functions are actually named
12017 something starting with __ and the normal name is an alias. */
12018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12019 choke me
12020 #else
12021 $ac_func();
12022 #endif
12023
12024 ; return 0; }
12025 EOF
12026 if { (eval echo configure:12027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12027 rm -rf conftest*
12028 eval "ac_cv_func_$ac_func=yes"
12029 else
12030 echo "configure: failed program was:" >&5
12031 cat conftest.$ac_ext >&5
12032 rm -rf conftest*
12033 eval "ac_cv_func_$ac_func=no"
12034 fi
12035 rm -f conftest*
12036 fi
12037
12038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12039 echo "$ac_t""yes" 1>&6
12040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12041 cat >> confdefs.h <<EOF
12042 #define $ac_tr_func 1
12043 EOF
12044 cat >> confdefs.h <<\EOF
12045 #define HAVE_INET_ADDR 1
12046 EOF
12047
12048 else
12049 echo "$ac_t""no" 1>&6
12050 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
12051 echo "configure:12052: checking for inet_addr in -lnsl" >&5
12052 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
12053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
12055 else
12056 ac_save_LIBS="$LIBS"
12057 LIBS="-lnsl $LIBS"
12058 cat > conftest.$ac_ext <<EOF
12059 #line 12060 "configure"
12060 #include "confdefs.h"
12061 /* Override any gcc2 internal prototype to avoid an error. */
12062 /* We use char because int might match the return type of a gcc2
12063 builtin and then its argument prototype would still apply. */
12064 char inet_addr();
12065
12066 int main() {
12067 inet_addr()
12068 ; return 0; }
12069 EOF
12070 if { (eval echo configure:12071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12071 rm -rf conftest*
12072 eval "ac_cv_lib_$ac_lib_var=yes"
12073 else
12074 echo "configure: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 rm -rf conftest*
12077 eval "ac_cv_lib_$ac_lib_var=no"
12078 fi
12079 rm -f conftest*
12080 LIBS="$ac_save_LIBS"
12081
12082 fi
12083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12084 echo "$ac_t""yes" 1>&6
12085 INET_LINK="nsl"
12086 else
12087 echo "$ac_t""no" 1>&6
12088 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
12089 echo "configure:12090: checking for inet_addr in -lresolv" >&5
12090 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
12091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12092 echo $ac_n "(cached) $ac_c" 1>&6
12093 else
12094 ac_save_LIBS="$LIBS"
12095 LIBS="-lresolv $LIBS"
12096 cat > conftest.$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12099 /* Override any gcc2 internal prototype to avoid an error. */
12100 /* We use char because int might match the return type of a gcc2
12101 builtin and then its argument prototype would still apply. */
12102 char inet_addr();
12103
12104 int main() {
12105 inet_addr()
12106 ; return 0; }
12107 EOF
12108 if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12109 rm -rf conftest*
12110 eval "ac_cv_lib_$ac_lib_var=yes"
12111 else
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12114 rm -rf conftest*
12115 eval "ac_cv_lib_$ac_lib_var=no"
12116 fi
12117 rm -f conftest*
12118 LIBS="$ac_save_LIBS"
12119
12120 fi
12121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12122 echo "$ac_t""yes" 1>&6
12123 INET_LINK="resolv"
12124
12125 else
12126 echo "$ac_t""no" 1>&6
12127 fi
12128
12129
12130 fi
12131
12132
12133
12134 fi
12135 done
12136
12137
12138 for ac_func in inet_aton
12139 do
12140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12141 echo "configure:12142: checking for $ac_func" >&5
12142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12144 else
12145 cat > conftest.$ac_ext <<EOF
12146 #line 12147 "configure"
12147 #include "confdefs.h"
12148 /* System header to define __stub macros and hopefully few prototypes,
12149 which can conflict with char $ac_func(); below. */
12150 #include <assert.h>
12151 /* Override any gcc2 internal prototype to avoid an error. */
12152 /* We use char because int might match the return type of a gcc2
12153 builtin and then its argument prototype would still apply. */
12154 char $ac_func();
12155
12156 int main() {
12157
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12162 choke me
12163 #else
12164 $ac_func();
12165 #endif
12166
12167 ; return 0; }
12168 EOF
12169 if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12170 rm -rf conftest*
12171 eval "ac_cv_func_$ac_func=yes"
12172 else
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -rf conftest*
12176 eval "ac_cv_func_$ac_func=no"
12177 fi
12178 rm -f conftest*
12179 fi
12180
12181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12182 echo "$ac_t""yes" 1>&6
12183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12184 cat >> confdefs.h <<EOF
12185 #define $ac_tr_func 1
12186 EOF
12187 cat >> confdefs.h <<\EOF
12188 #define HAVE_INET_ATON 1
12189 EOF
12190
12191 else
12192 echo "$ac_t""no" 1>&6
12193 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
12194 echo "configure:12195: checking for inet_aton in -l$INET_LINK" >&5
12195 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
12196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12198 else
12199 ac_save_LIBS="$LIBS"
12200 LIBS="-l$INET_LINK $LIBS"
12201 cat > conftest.$ac_ext <<EOF
12202 #line 12203 "configure"
12203 #include "confdefs.h"
12204 /* Override any gcc2 internal prototype to avoid an error. */
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207 char inet_aton();
12208
12209 int main() {
12210 inet_aton()
12211 ; return 0; }
12212 EOF
12213 if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12214 rm -rf conftest*
12215 eval "ac_cv_lib_$ac_lib_var=yes"
12216 else
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12219 rm -rf conftest*
12220 eval "ac_cv_lib_$ac_lib_var=no"
12221 fi
12222 rm -f conftest*
12223 LIBS="$ac_save_LIBS"
12224
12225 fi
12226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12227 echo "$ac_t""yes" 1>&6
12228 cat >> confdefs.h <<\EOF
12229 #define HAVE_INET_ATON 1
12230 EOF
12231
12232 else
12233 echo "$ac_t""no" 1>&6
12234 fi
12235
12236
12237 fi
12238 done
12239
12240
12241 if test "x$INET_LINK" != "x"; then
12242 cat >> confdefs.h <<\EOF
12243 #define HAVE_INET_ADDR 1
12244 EOF
12245
12246 INET_LINK="-l$INET_LINK"
12247 fi
12248
12249 fi
12250
12251
12252 cat > confcache <<\EOF
12253 # This file is a shell script that caches the results of configure
12254 # tests run on this system so they can be shared between configure
12255 # scripts and configure runs. It is not useful on other systems.
12256 # If it contains results you don't want to keep, you may remove or edit it.
12257 #
12258 # By default, configure uses ./config.cache as the cache file,
12259 # creating it if it does not exist already. You can give configure
12260 # the --cache-file=FILE option to use a different cache file; that is
12261 # what configure does when it calls configure scripts in
12262 # subdirectories, so they share the cache.
12263 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12264 # config.status only pays attention to the cache file if you give it the
12265 # --recheck option to rerun configure.
12266 #
12267 EOF
12268 # The following way of writing the cache mishandles newlines in values,
12269 # but we know of no workaround that is simple, portable, and efficient.
12270 # So, don't put newlines in cache variables' values.
12271 # Ultrix sh set writes to stderr and can't be redirected directly,
12272 # and sets the high bit in the cache file unless we assign to the vars.
12273 (set) 2>&1 |
12274 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12275 *ac_space=\ *)
12276 # `set' does not quote correctly, so add quotes (double-quote substitution
12277 # turns \\\\ into \\, and sed turns \\ into \).
12278 sed -n \
12279 -e "s/'/'\\\\''/g" \
12280 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12281 ;;
12282 *)
12283 # `set' quotes correctly as required by POSIX, so do not add quotes.
12284 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12285 ;;
12286 esac >> confcache
12287 if cmp -s $cache_file confcache; then
12288 :
12289 else
12290 if test -w $cache_file; then
12291 echo "updating cache $cache_file"
12292 cat confcache > $cache_file
12293 else
12294 echo "not updating unwritable cache $cache_file"
12295 fi
12296 fi
12297 rm -f confcache
12298
12299
12300
12301 if test "$TOOLKIT" != "MSW"; then
12302
12303
12304 THREADS_LINK=""
12305 THREADS_OBJ=""
12306
12307 if test "$wxUSE_THREADS" = "yes" ; then
12308 if test "$wxUSE_WINE" = 1 ; then
12309 echo "configure: warning: Threads are not supported under WINE" 1>&2
12310 wxUSE_THREADS="no"
12311 elif test "$USE_BEOS" = 1; then
12312 echo "configure: warning: BeOS threads are not yet supported" 1>&2
12313 wxUSE_THREADS="no"
12314 fi
12315 fi
12316
12317 if test "$wxUSE_THREADS" = "yes" ; then
12318
12319 if test "$USE_AIX" = 1; then
12320 THREADS_LIB=pthreads
12321 else
12322 THREADS_LIB=pthread
12323 fi
12324
12325 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
12326 echo "configure:12327: checking for pthread_create in -l$THREADS_LIB" >&5
12327 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
12328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12329 echo $ac_n "(cached) $ac_c" 1>&6
12330 else
12331 ac_save_LIBS="$LIBS"
12332 LIBS="-l$THREADS_LIB $LIBS"
12333 cat > conftest.$ac_ext <<EOF
12334 #line 12335 "configure"
12335 #include "confdefs.h"
12336 /* Override any gcc2 internal prototype to avoid an error. */
12337 /* We use char because int might match the return type of a gcc2
12338 builtin and then its argument prototype would still apply. */
12339 char pthread_create();
12340
12341 int main() {
12342 pthread_create()
12343 ; return 0; }
12344 EOF
12345 if { (eval echo configure:12346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12346 rm -rf conftest*
12347 eval "ac_cv_lib_$ac_lib_var=yes"
12348 else
12349 echo "configure: failed program was:" >&5
12350 cat conftest.$ac_ext >&5
12351 rm -rf conftest*
12352 eval "ac_cv_lib_$ac_lib_var=no"
12353 fi
12354 rm -f conftest*
12355 LIBS="$ac_save_LIBS"
12356
12357 fi
12358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12359 echo "$ac_t""yes" 1>&6
12360
12361 THREADS_OBJ="threadpsx.lo"
12362 THREADS_LINK=$THREADS_LIB
12363
12364 else
12365 echo "$ac_t""no" 1>&6
12366
12367 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
12368 echo "configure:12369: checking for pthread_create in -lc_r" >&5
12369 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
12370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12371 echo $ac_n "(cached) $ac_c" 1>&6
12372 else
12373 ac_save_LIBS="$LIBS"
12374 LIBS="-lc_r $LIBS"
12375 cat > conftest.$ac_ext <<EOF
12376 #line 12377 "configure"
12377 #include "confdefs.h"
12378 /* Override any gcc2 internal prototype to avoid an error. */
12379 /* We use char because int might match the return type of a gcc2
12380 builtin and then its argument prototype would still apply. */
12381 char pthread_create();
12382
12383 int main() {
12384 pthread_create()
12385 ; return 0; }
12386 EOF
12387 if { (eval echo configure:12388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12388 rm -rf conftest*
12389 eval "ac_cv_lib_$ac_lib_var=yes"
12390 else
12391 echo "configure: failed program was:" >&5
12392 cat conftest.$ac_ext >&5
12393 rm -rf conftest*
12394 eval "ac_cv_lib_$ac_lib_var=no"
12395 fi
12396 rm -f conftest*
12397 LIBS="$ac_save_LIBS"
12398
12399 fi
12400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12401 echo "$ac_t""yes" 1>&6
12402
12403 THREADS_OBJ="threadpsx.lo"
12404 THREADS_LINK="c_r"
12405
12406 else
12407 echo "$ac_t""no" 1>&6
12408
12409 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
12410 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
12411 echo "configure:12412: checking for sys/prctl.h" >&5
12412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12413 echo $ac_n "(cached) $ac_c" 1>&6
12414 else
12415 cat > conftest.$ac_ext <<EOF
12416 #line 12417 "configure"
12417 #include "confdefs.h"
12418 #include <sys/prctl.h>
12419 EOF
12420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12421 { (eval echo configure:12422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12423 if test -z "$ac_err"; then
12424 rm -rf conftest*
12425 eval "ac_cv_header_$ac_safe=yes"
12426 else
12427 echo "$ac_err" >&5
12428 echo "configure: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 rm -rf conftest*
12431 eval "ac_cv_header_$ac_safe=no"
12432 fi
12433 rm -f conftest*
12434 fi
12435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12436 echo "$ac_t""yes" 1>&6
12437
12438 THREADS_OBJ="threadsgi.lo"
12439
12440 else
12441 echo "$ac_t""no" 1>&6
12442 fi
12443
12444
12445 fi
12446
12447
12448 fi
12449
12450
12451 if test -z "$THREADS_OBJ" ; then
12452 wxUSE_THREADS=no
12453 echo "configure: warning: No thread support on this system" 1>&2
12454 fi
12455 fi
12456
12457 if test "$wxUSE_THREADS" = "yes" ; then
12458 for ac_func in thr_setconcurrency
12459 do
12460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12461 echo "configure:12462: checking for $ac_func" >&5
12462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12463 echo $ac_n "(cached) $ac_c" 1>&6
12464 else
12465 cat > conftest.$ac_ext <<EOF
12466 #line 12467 "configure"
12467 #include "confdefs.h"
12468 /* System header to define __stub macros and hopefully few prototypes,
12469 which can conflict with char $ac_func(); below. */
12470 #include <assert.h>
12471 /* Override any gcc2 internal prototype to avoid an error. */
12472 /* We use char because int might match the return type of a gcc2
12473 builtin and then its argument prototype would still apply. */
12474 char $ac_func();
12475
12476 int main() {
12477
12478 /* The GNU C library defines this for functions which it implements
12479 to always fail with ENOSYS. Some functions are actually named
12480 something starting with __ and the normal name is an alias. */
12481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12482 choke me
12483 #else
12484 $ac_func();
12485 #endif
12486
12487 ; return 0; }
12488 EOF
12489 if { (eval echo configure:12490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12490 rm -rf conftest*
12491 eval "ac_cv_func_$ac_func=yes"
12492 else
12493 echo "configure: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12495 rm -rf conftest*
12496 eval "ac_cv_func_$ac_func=no"
12497 fi
12498 rm -f conftest*
12499 fi
12500
12501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12502 echo "$ac_t""yes" 1>&6
12503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12504 cat >> confdefs.h <<EOF
12505 #define $ac_tr_func 1
12506 EOF
12507
12508 else
12509 echo "$ac_t""no" 1>&6
12510 fi
12511 done
12512
12513
12514
12515 for ac_hdr in sched.h
12516 do
12517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12519 echo "configure:12520: checking for $ac_hdr" >&5
12520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12521 echo $ac_n "(cached) $ac_c" 1>&6
12522 else
12523 cat > conftest.$ac_ext <<EOF
12524 #line 12525 "configure"
12525 #include "confdefs.h"
12526 #include <$ac_hdr>
12527 EOF
12528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12529 { (eval echo configure:12530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12531 if test -z "$ac_err"; then
12532 rm -rf conftest*
12533 eval "ac_cv_header_$ac_safe=yes"
12534 else
12535 echo "$ac_err" >&5
12536 echo "configure: failed program was:" >&5
12537 cat conftest.$ac_ext >&5
12538 rm -rf conftest*
12539 eval "ac_cv_header_$ac_safe=no"
12540 fi
12541 rm -f conftest*
12542 fi
12543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12544 echo "$ac_t""yes" 1>&6
12545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12546 cat >> confdefs.h <<EOF
12547 #define $ac_tr_hdr 1
12548 EOF
12549
12550 else
12551 echo "$ac_t""no" 1>&6
12552 fi
12553 done
12554
12555
12556 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
12557 echo "configure:12558: checking for sched_yield in -l$THREADS_LINK" >&5
12558 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12560 echo $ac_n "(cached) $ac_c" 1>&6
12561 else
12562 ac_save_LIBS="$LIBS"
12563 LIBS="-l$THREADS_LINK $LIBS"
12564 cat > conftest.$ac_ext <<EOF
12565 #line 12566 "configure"
12566 #include "confdefs.h"
12567 /* Override any gcc2 internal prototype to avoid an error. */
12568 /* We use char because int might match the return type of a gcc2
12569 builtin and then its argument prototype would still apply. */
12570 char sched_yield();
12571
12572 int main() {
12573 sched_yield()
12574 ; return 0; }
12575 EOF
12576 if { (eval echo configure:12577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12577 rm -rf conftest*
12578 eval "ac_cv_lib_$ac_lib_var=yes"
12579 else
12580 echo "configure: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12582 rm -rf conftest*
12583 eval "ac_cv_lib_$ac_lib_var=no"
12584 fi
12585 rm -f conftest*
12586 LIBS="$ac_save_LIBS"
12587
12588 fi
12589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12590 echo "$ac_t""yes" 1>&6
12591 cat >> confdefs.h <<\EOF
12592 #define HAVE_SCHED_YIELD 1
12593 EOF
12594
12595 else
12596 echo "$ac_t""no" 1>&6
12597 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
12598 echo "configure:12599: checking for sched_yield in -l"posix4"" >&5
12599 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12601 echo $ac_n "(cached) $ac_c" 1>&6
12602 else
12603 ac_save_LIBS="$LIBS"
12604 LIBS="-l"posix4" $LIBS"
12605 cat > conftest.$ac_ext <<EOF
12606 #line 12607 "configure"
12607 #include "confdefs.h"
12608 /* Override any gcc2 internal prototype to avoid an error. */
12609 /* We use char because int might match the return type of a gcc2
12610 builtin and then its argument prototype would still apply. */
12611 char sched_yield();
12612
12613 int main() {
12614 sched_yield()
12615 ; return 0; }
12616 EOF
12617 if { (eval echo configure:12618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12618 rm -rf conftest*
12619 eval "ac_cv_lib_$ac_lib_var=yes"
12620 else
12621 echo "configure: failed program was:" >&5
12622 cat conftest.$ac_ext >&5
12623 rm -rf conftest*
12624 eval "ac_cv_lib_$ac_lib_var=no"
12625 fi
12626 rm -f conftest*
12627 LIBS="$ac_save_LIBS"
12628
12629 fi
12630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12631 echo "$ac_t""yes" 1>&6
12632 cat >> confdefs.h <<\EOF
12633 #define HAVE_SCHED_YIELD 1
12634 EOF
12635 POSIX4_LINK="-lposix4"
12636 else
12637 echo "$ac_t""no" 1>&6
12638 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12639
12640 fi
12641
12642
12643 fi
12644
12645
12646 HAVE_PRIOR_FUNCS=0
12647 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
12648 echo "configure:12649: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
12649 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12651 echo $ac_n "(cached) $ac_c" 1>&6
12652 else
12653 ac_save_LIBS="$LIBS"
12654 LIBS="-l$THREADS_LINK $LIBS"
12655 cat > conftest.$ac_ext <<EOF
12656 #line 12657 "configure"
12657 #include "confdefs.h"
12658 /* Override any gcc2 internal prototype to avoid an error. */
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12661 char pthread_attr_getschedpolicy();
12662
12663 int main() {
12664 pthread_attr_getschedpolicy()
12665 ; return 0; }
12666 EOF
12667 if { (eval echo configure:12668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12668 rm -rf conftest*
12669 eval "ac_cv_lib_$ac_lib_var=yes"
12670 else
12671 echo "configure: failed program was:" >&5
12672 cat conftest.$ac_ext >&5
12673 rm -rf conftest*
12674 eval "ac_cv_lib_$ac_lib_var=no"
12675 fi
12676 rm -f conftest*
12677 LIBS="$ac_save_LIBS"
12678
12679 fi
12680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12681 echo "$ac_t""yes" 1>&6
12682 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
12683 echo "configure:12684: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
12684 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12686 echo $ac_n "(cached) $ac_c" 1>&6
12687 else
12688 ac_save_LIBS="$LIBS"
12689 LIBS="-l$THREADS_LINK $LIBS"
12690 cat > conftest.$ac_ext <<EOF
12691 #line 12692 "configure"
12692 #include "confdefs.h"
12693 /* Override any gcc2 internal prototype to avoid an error. */
12694 /* We use char because int might match the return type of a gcc2
12695 builtin and then its argument prototype would still apply. */
12696 char pthread_attr_setschedparam();
12697
12698 int main() {
12699 pthread_attr_setschedparam()
12700 ; return 0; }
12701 EOF
12702 if { (eval echo configure:12703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12703 rm -rf conftest*
12704 eval "ac_cv_lib_$ac_lib_var=yes"
12705 else
12706 echo "configure: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12708 rm -rf conftest*
12709 eval "ac_cv_lib_$ac_lib_var=no"
12710 fi
12711 rm -f conftest*
12712 LIBS="$ac_save_LIBS"
12713
12714 fi
12715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12716 echo "$ac_t""yes" 1>&6
12717 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
12718 echo "configure:12719: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
12719 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12721 echo $ac_n "(cached) $ac_c" 1>&6
12722 else
12723 ac_save_LIBS="$LIBS"
12724 LIBS="-l$THREADS_LINK $LIBS"
12725 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure"
12727 #include "confdefs.h"
12728 /* Override any gcc2 internal prototype to avoid an error. */
12729 /* We use char because int might match the return type of a gcc2
12730 builtin and then its argument prototype would still apply. */
12731 char sched_get_priority_max();
12732
12733 int main() {
12734 sched_get_priority_max()
12735 ; return 0; }
12736 EOF
12737 if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12738 rm -rf conftest*
12739 eval "ac_cv_lib_$ac_lib_var=yes"
12740 else
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 rm -rf conftest*
12744 eval "ac_cv_lib_$ac_lib_var=no"
12745 fi
12746 rm -f conftest*
12747 LIBS="$ac_save_LIBS"
12748
12749 fi
12750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12751 echo "$ac_t""yes" 1>&6
12752 HAVE_PRIOR_FUNCS=1
12753 else
12754 echo "$ac_t""no" 1>&6
12755 echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
12756 echo "configure:12757: checking for sched_get_priority_max in -l"posix4"" >&5
12757 ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12759 echo $ac_n "(cached) $ac_c" 1>&6
12760 else
12761 ac_save_LIBS="$LIBS"
12762 LIBS="-l"posix4" $LIBS"
12763 cat > conftest.$ac_ext <<EOF
12764 #line 12765 "configure"
12765 #include "confdefs.h"
12766 /* Override any gcc2 internal prototype to avoid an error. */
12767 /* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12769 char sched_get_priority_max();
12770
12771 int main() {
12772 sched_get_priority_max()
12773 ; return 0; }
12774 EOF
12775 if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12776 rm -rf conftest*
12777 eval "ac_cv_lib_$ac_lib_var=yes"
12778 else
12779 echo "configure: failed program was:" >&5
12780 cat conftest.$ac_ext >&5
12781 rm -rf conftest*
12782 eval "ac_cv_lib_$ac_lib_var=no"
12783 fi
12784 rm -f conftest*
12785 LIBS="$ac_save_LIBS"
12786
12787 fi
12788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12789 echo "$ac_t""yes" 1>&6
12790
12791 HAVE_PRIOR_FUNCS=1
12792 POSIX4_LINK="-lposix4"
12793
12794 else
12795 echo "$ac_t""no" 1>&6
12796 fi
12797
12798
12799 fi
12800
12801
12802 else
12803 echo "$ac_t""no" 1>&6
12804 fi
12805
12806
12807 else
12808 echo "$ac_t""no" 1>&6
12809 fi
12810
12811
12812 if test "$HAVE_PRIOR_FUNCS" = 1; then
12813 cat >> confdefs.h <<\EOF
12814 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12815 EOF
12816
12817 else
12818 echo "configure: warning: Setting thread priority will not work" 1>&2
12819 fi
12820
12821 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
12822 echo "configure:12823: checking for pthread_cancel in -l$THREADS_LINK" >&5
12823 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12825 echo $ac_n "(cached) $ac_c" 1>&6
12826 else
12827 ac_save_LIBS="$LIBS"
12828 LIBS="-l$THREADS_LINK $LIBS"
12829 cat > conftest.$ac_ext <<EOF
12830 #line 12831 "configure"
12831 #include "confdefs.h"
12832 /* Override any gcc2 internal prototype to avoid an error. */
12833 /* We use char because int might match the return type of a gcc2
12834 builtin and then its argument prototype would still apply. */
12835 char pthread_cancel();
12836
12837 int main() {
12838 pthread_cancel()
12839 ; return 0; }
12840 EOF
12841 if { (eval echo configure:12842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12842 rm -rf conftest*
12843 eval "ac_cv_lib_$ac_lib_var=yes"
12844 else
12845 echo "configure: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 rm -rf conftest*
12848 eval "ac_cv_lib_$ac_lib_var=no"
12849 fi
12850 rm -f conftest*
12851 LIBS="$ac_save_LIBS"
12852
12853 fi
12854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12855 echo "$ac_t""yes" 1>&6
12856 cat >> confdefs.h <<\EOF
12857 #define HAVE_PTHREAD_CANCEL 1
12858 EOF
12859
12860 else
12861 echo "$ac_t""no" 1>&6
12862 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12863 fi
12864
12865
12866 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
12867 echo "configure:12868: checking for pthread_cleanup_push/pop" >&5
12868 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12869 echo $ac_n "(cached) $ac_c" 1>&6
12870 else
12871
12872 cat > conftest.$ac_ext <<EOF
12873 #line 12874 "configure"
12874 #include "confdefs.h"
12875 #include <pthread.h>
12876 int main() {
12877
12878 pthread_cleanup_push(NULL, NULL);
12879 pthread_cleanup_pop(0);
12880
12881 ; return 0; }
12882 EOF
12883 if { (eval echo configure:12884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12884 rm -rf conftest*
12885
12886 wx_cv_func_pthread_cleanup_push=yes
12887
12888 else
12889 echo "configure: failed program was:" >&5
12890 cat conftest.$ac_ext >&5
12891 rm -rf conftest*
12892
12893 wx_cv_func_pthread_cleanup_push=no
12894
12895 fi
12896 rm -f conftest*
12897
12898 fi
12899
12900 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12901
12902 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
12903 cat >> confdefs.h <<\EOF
12904 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12905 EOF
12906
12907 fi
12908
12909
12910 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
12911 echo "configure:12912: checking for pthread_mutexattr_t" >&5
12912 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
12913 echo $ac_n "(cached) $ac_c" 1>&6
12914 else
12915
12916 cat > conftest.$ac_ext <<EOF
12917 #line 12918 "configure"
12918 #include "confdefs.h"
12919 #include <pthread.h>
12920 int main() {
12921
12922 pthread_mutexattr_t attr;
12923 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
12924
12925 ; return 0; }
12926 EOF
12927 if { (eval echo configure:12928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12928 rm -rf conftest*
12929
12930 wx_cv_type_pthread_mutexattr_t=yes
12931
12932 else
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12935 rm -rf conftest*
12936
12937 wx_cv_type_pthread_mutexattr_t=no
12938
12939
12940 fi
12941 rm -f conftest*
12942
12943 fi
12944
12945 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
12946
12947 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
12948 cat >> confdefs.h <<\EOF
12949 #define HAVE_PTHREAD_MUTEXATTR_T 1
12950 EOF
12951
12952 else
12953 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
12954 echo "configure:12955: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
12955 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
12956 echo $ac_n "(cached) $ac_c" 1>&6
12957 else
12958
12959 cat > conftest.$ac_ext <<EOF
12960 #line 12961 "configure"
12961 #include "confdefs.h"
12962 #include <pthread.h>
12963 int main() {
12964
12965 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
12966
12967 ; return 0; }
12968 EOF
12969 if { (eval echo configure:12970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12970 rm -rf conftest*
12971
12972 wx_cv_type_pthread_rec_mutex_init=yes
12973
12974 else
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12977 rm -rf conftest*
12978
12979 wx_cv_type_pthread_rec_mutex_init=no
12980
12981
12982 fi
12983 rm -f conftest*
12984
12985 fi
12986
12987 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
12988 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
12989 cat >> confdefs.h <<\EOF
12990 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
12991 EOF
12992
12993 else
12994 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
12995 fi
12996 fi
12997
12998 THREADS_LINK="-l$THREADS_LINK"
12999
13000 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
13001 CFLAGS="${CFLAGS} -mt"
13002 CXXFLAGS="${CXXFLAGS} -mt"
13003 LDFLAGS="${LDFLAGS} -mt"
13004 fi
13005 fi
13006
13007 fi
13008
13009 if test "$wxUSE_THREADS" = "yes"; then
13010 cat >> confdefs.h <<\EOF
13011 #define wxUSE_THREADS 1
13012 EOF
13013
13014
13015 if test "$wxUSE_MAC" = "0"; then
13016 CFLAGS="${CFLAGS} -D_REENTRANT"
13017 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
13018 fi
13019
13020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
13021 else
13022 if test "$ac_cv_func_strtok_r" = "yes"; then
13023 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
13024 echo "configure:13025: checking if -D_REENTRANT is needed" >&5
13025 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
13026 CFLAGS="${CFLAGS} -D_REENTRANT"
13027 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
13028 echo "$ac_t""yes" 1>&6
13029 else
13030 echo "$ac_t""no" 1>&6
13031 fi
13032 fi
13033 fi
13034
13035 if test "$WXGTK20" = 1 ; then
13036 cat >> confdefs.h <<EOF
13037 #define __WXGTK20__ $WXGTK20
13038 EOF
13039
13040 WXGTK12=1
13041 fi
13042
13043 if test "$WXGTK12" = 1 ; then
13044 cat >> confdefs.h <<EOF
13045 #define __WXGTK12__ $WXGTK12
13046 EOF
13047
13048 fi
13049
13050 if test "$WXGTK127" = 1 ; then
13051 cat >> confdefs.h <<EOF
13052 #define __WXGTK127__ $WXGTK127
13053 EOF
13054
13055 fi
13056
13057 if test "$WXWINE" = 1 ; then
13058 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
13059 fi
13060
13061 if test "$wxUSE_MAC" = 1 ; then
13062 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
13063 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
13064 CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings"
13065 # Extract the first word of "Rez", so it can be a program name with args.
13066 set dummy Rez; ac_word=$2
13067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13068 echo "configure:13069: checking for $ac_word" >&5
13069 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
13070 echo $ac_n "(cached) $ac_c" 1>&6
13071 else
13072 if test -n "$REZ"; then
13073 ac_cv_prog_REZ="$REZ" # Let the user override the test.
13074 else
13075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13076 ac_dummy="$PATH"
13077 for ac_dir in $ac_dummy; do
13078 test -z "$ac_dir" && ac_dir=.
13079 if test -f $ac_dir/$ac_word; then
13080 ac_cv_prog_REZ="Rez"
13081 break
13082 fi
13083 done
13084 IFS="$ac_save_ifs"
13085 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
13086 fi
13087 fi
13088 REZ="$ac_cv_prog_REZ"
13089 if test -n "$REZ"; then
13090 echo "$ac_t""$REZ" 1>&6
13091 else
13092 echo "$ac_t""no" 1>&6
13093 fi
13094
13095 # Extract the first word of "Derez", so it can be a program name with args.
13096 set dummy Derez; ac_word=$2
13097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13098 echo "configure:13099: checking for $ac_word" >&5
13099 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13100 echo $ac_n "(cached) $ac_c" 1>&6
13101 else
13102 if test -n "$DEREZ"; then
13103 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13104 else
13105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13106 ac_dummy="$PATH"
13107 for ac_dir in $ac_dummy; do
13108 test -z "$ac_dir" && ac_dir=.
13109 if test -f $ac_dir/$ac_word; then
13110 ac_cv_prog_DEREZ="Derez"
13111 break
13112 fi
13113 done
13114 IFS="$ac_save_ifs"
13115 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
13116 fi
13117 fi
13118 DEREZ="$ac_cv_prog_DEREZ"
13119 if test -n "$DEREZ"; then
13120 echo "$ac_t""$DEREZ" 1>&6
13121 else
13122 echo "$ac_t""no" 1>&6
13123 fi
13124
13125 RESCOMP=${REZ}
13126 REZFLAGS="-d __UNIX__ -useDF"
13127 DEREZFLAGS="Carbon.r -useDF"
13128 RESFLAGS="Carbon.r -t APPL"
13129 LIBWXMACRES="\$(LIBWX_MACRES)"
13130 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
13131 fi
13132
13133 if test "$wxUSE_CYGWIN" = 1 ; then
13134 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
13135 fi
13136
13137 WXDEBUG=
13138
13139 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
13140 WXDEBUG="-g"
13141 wxUSE_OPTIMISE=no
13142 fi
13143
13144 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
13145 wxUSE_DEBUG_INFO=yes
13146 WXDEBUG="-ggdb"
13147 fi
13148
13149 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
13150 cat >> confdefs.h <<\EOF
13151 #define WXDEBUG 1
13152 EOF
13153
13154 WXDEBUG_DEFINE="-D__WXDEBUG__"
13155 else
13156 if test "$wxUSE_GTK" = 1 ; then
13157 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
13158 fi
13159 fi
13160
13161 if test "$wxUSE_MEM_TRACING" = "yes" ; then
13162 cat >> confdefs.h <<\EOF
13163 #define wxUSE_MEMORY_TRACING 1
13164 EOF
13165
13166 cat >> confdefs.h <<\EOF
13167 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
13168 EOF
13169
13170 cat >> confdefs.h <<\EOF
13171 #define wxUSE_DEBUG_NEW_ALWAYS 1
13172 EOF
13173
13174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
13175 fi
13176
13177 if test "$wxUSE_DMALLOC" = "yes" ; then
13178 DMALLOC_LINK="-ldmalloc"
13179 fi
13180
13181 PROFILE=
13182 if test "$wxUSE_PROFILE" = "yes" ; then
13183 PROFILE="-pg"
13184 fi
13185
13186 DEP_INFO_FLAGS=
13187 CODE_GEN_FLAGS=
13188 CODE_GEN_FLAGS_CXX=
13189 if test "$GCC" = yes ; then
13190 if test "$wxUSE_NO_RTTI" = "yes" ; then
13191 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
13192 fi
13193 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
13194 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
13195 fi
13196 if test "$wxUSE_PERMISSIVE" = "yes" ; then
13197 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
13198 fi
13199 if test "$wxUSE_NO_DEPS" = "no" ; then
13200 DEP_INFO_FLAGS="-MMD"
13201 fi
13202 fi
13203
13204
13205 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
13206 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
13207 if test "$wxUSE_OPTIMISE" = "no" ; then
13208 OPTIMISE=
13209 else
13210 if test "$GCC" = yes ; then
13211 OPTIMISE="-O2"
13212 case "${host}" in
13213 i586-*-*|i686-*-* )
13214 OPTIMISE="${OPTIMISE} "
13215 ;;
13216 esac
13217 else
13218 OPTIMISE="-O"
13219 fi
13220 fi
13221
13222
13223 ZLIB_INCLUDE=
13224 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
13225 cat >> confdefs.h <<\EOF
13226 #define wxUSE_ZLIB 1
13227 EOF
13228
13229 if test "$wxUSE_ZLIB" = "yes" ; then
13230 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
13231 else
13232 ZLIB_LINK=
13233 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
13234 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
13235 echo "configure:13236: checking for zlib.h" >&5
13236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13237 echo $ac_n "(cached) $ac_c" 1>&6
13238 else
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13242 #include <zlib.h>
13243 EOF
13244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13245 { (eval echo configure:13246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13247 if test -z "$ac_err"; then
13248 rm -rf conftest*
13249 eval "ac_cv_header_$ac_safe=yes"
13250 else
13251 echo "$ac_err" >&5
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13254 rm -rf conftest*
13255 eval "ac_cv_header_$ac_safe=no"
13256 fi
13257 rm -f conftest*
13258 fi
13259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13260 echo "$ac_t""yes" 1>&6
13261 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
13262 echo "configure:13263: checking for deflate in -lz" >&5
13263 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
13264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13265 echo $ac_n "(cached) $ac_c" 1>&6
13266 else
13267 ac_save_LIBS="$LIBS"
13268 LIBS="-lz $LIBS"
13269 cat > conftest.$ac_ext <<EOF
13270 #line 13271 "configure"
13271 #include "confdefs.h"
13272 /* Override any gcc2 internal prototype to avoid an error. */
13273 /* We use char because int might match the return type of a gcc2
13274 builtin and then its argument prototype would still apply. */
13275 char deflate();
13276
13277 int main() {
13278 deflate()
13279 ; return 0; }
13280 EOF
13281 if { (eval echo configure:13282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13282 rm -rf conftest*
13283 eval "ac_cv_lib_$ac_lib_var=yes"
13284 else
13285 echo "configure: failed program was:" >&5
13286 cat conftest.$ac_ext >&5
13287 rm -rf conftest*
13288 eval "ac_cv_lib_$ac_lib_var=no"
13289 fi
13290 rm -f conftest*
13291 LIBS="$ac_save_LIBS"
13292
13293 fi
13294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13295 echo "$ac_t""yes" 1>&6
13296 ZLIB_LINK="-lz"
13297 else
13298 echo "$ac_t""no" 1>&6
13299 fi
13300
13301 else
13302 echo "$ac_t""no" 1>&6
13303 fi
13304
13305 if test "x$ZLIB_LINK" = "x" ; then
13306 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
13307 fi
13308 fi
13309 fi
13310
13311 PNG_INCLUDE=
13312 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
13313 cat >> confdefs.h <<\EOF
13314 #define wxUSE_LIBPNG 1
13315 EOF
13316
13317 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
13318 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
13319 wxUSE_LIBPNG=yes
13320 fi
13321
13322 if test "$wxUSE_LIBPNG" = "yes" ; then
13323 PNG_INCLUDE="-I\${top_srcdir}/src/png"
13324 else
13325 PNG_LINK=
13326 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
13327 echo $ac_n "checking for png.h""... $ac_c" 1>&6
13328 echo "configure:13329: checking for png.h" >&5
13329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13330 echo $ac_n "(cached) $ac_c" 1>&6
13331 else
13332 cat > conftest.$ac_ext <<EOF
13333 #line 13334 "configure"
13334 #include "confdefs.h"
13335 #include <png.h>
13336 EOF
13337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13338 { (eval echo configure:13339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13340 if test -z "$ac_err"; then
13341 rm -rf conftest*
13342 eval "ac_cv_header_$ac_safe=yes"
13343 else
13344 echo "$ac_err" >&5
13345 echo "configure: failed program was:" >&5
13346 cat conftest.$ac_ext >&5
13347 rm -rf conftest*
13348 eval "ac_cv_header_$ac_safe=no"
13349 fi
13350 rm -f conftest*
13351 fi
13352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13353 echo "$ac_t""yes" 1>&6
13354 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
13355 echo "configure:13356: checking for png_check_sig in -lpng" >&5
13356 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
13357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
13359 else
13360 ac_save_LIBS="$LIBS"
13361 LIBS="-lpng -lz -lm $LIBS"
13362 cat > conftest.$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13365 /* Override any gcc2 internal prototype to avoid an error. */
13366 /* We use char because int might match the return type of a gcc2
13367 builtin and then its argument prototype would still apply. */
13368 char png_check_sig();
13369
13370 int main() {
13371 png_check_sig()
13372 ; return 0; }
13373 EOF
13374 if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13375 rm -rf conftest*
13376 eval "ac_cv_lib_$ac_lib_var=yes"
13377 else
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 rm -rf conftest*
13381 eval "ac_cv_lib_$ac_lib_var=no"
13382 fi
13383 rm -f conftest*
13384 LIBS="$ac_save_LIBS"
13385
13386 fi
13387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13388 echo "$ac_t""yes" 1>&6
13389 PNG_LINK="-lpng"
13390 else
13391 echo "$ac_t""no" 1>&6
13392 fi
13393
13394
13395 else
13396 echo "$ac_t""no" 1>&6
13397 fi
13398
13399 if test "x$PNG_LINK" = "x" ; then
13400 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
13401 fi
13402 fi
13403
13404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
13405 fi
13406
13407 JPEG_INCLUDE=
13408 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
13409 cat >> confdefs.h <<\EOF
13410 #define wxUSE_LIBJPEG 1
13411 EOF
13412
13413 if test "$wxUSE_LIBJPEG" = "yes" ; then
13414 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
13415 else
13416 JPEG_LINK=
13417 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
13418 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
13419 echo "configure:13420: checking for jpeglib.h" >&5
13420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13421 echo $ac_n "(cached) $ac_c" 1>&6
13422 else
13423 cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure"
13425 #include "confdefs.h"
13426 #include <jpeglib.h>
13427 EOF
13428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13429 { (eval echo configure:13430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13431 if test -z "$ac_err"; then
13432 rm -rf conftest*
13433 eval "ac_cv_header_$ac_safe=yes"
13434 else
13435 echo "$ac_err" >&5
13436 echo "configure: failed program was:" >&5
13437 cat conftest.$ac_ext >&5
13438 rm -rf conftest*
13439 eval "ac_cv_header_$ac_safe=no"
13440 fi
13441 rm -f conftest*
13442 fi
13443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13444 echo "$ac_t""yes" 1>&6
13445 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
13446 echo "configure:13447: checking for jpeg_read_header in -ljpeg" >&5
13447 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13449 echo $ac_n "(cached) $ac_c" 1>&6
13450 else
13451 ac_save_LIBS="$LIBS"
13452 LIBS="-ljpeg $LIBS"
13453 cat > conftest.$ac_ext <<EOF
13454 #line 13455 "configure"
13455 #include "confdefs.h"
13456 /* Override any gcc2 internal prototype to avoid an error. */
13457 /* We use char because int might match the return type of a gcc2
13458 builtin and then its argument prototype would still apply. */
13459 char jpeg_read_header();
13460
13461 int main() {
13462 jpeg_read_header()
13463 ; return 0; }
13464 EOF
13465 if { (eval echo configure:13466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13466 rm -rf conftest*
13467 eval "ac_cv_lib_$ac_lib_var=yes"
13468 else
13469 echo "configure: failed program was:" >&5
13470 cat conftest.$ac_ext >&5
13471 rm -rf conftest*
13472 eval "ac_cv_lib_$ac_lib_var=no"
13473 fi
13474 rm -f conftest*
13475 LIBS="$ac_save_LIBS"
13476
13477 fi
13478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13479 echo "$ac_t""yes" 1>&6
13480 JPEG_LINK="-ljpeg"
13481 else
13482 echo "$ac_t""no" 1>&6
13483 fi
13484
13485 else
13486 echo "$ac_t""no" 1>&6
13487 fi
13488
13489 if test "x$JPEG_LINK" = "x" ; then
13490 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
13491 fi
13492 fi
13493 fi
13494
13495 TIFF_INCLUDE=
13496 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
13497 cat >> confdefs.h <<\EOF
13498 #define wxUSE_LIBTIFF 1
13499 EOF
13500
13501 if test "$wxUSE_LIBTIFF" = "yes" ; then
13502 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13503 else
13504 TIFF_LINK=
13505 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13506 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
13507 echo "configure:13508: checking for tiffio.h" >&5
13508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13509 echo $ac_n "(cached) $ac_c" 1>&6
13510 else
13511 cat > conftest.$ac_ext <<EOF
13512 #line 13513 "configure"
13513 #include "confdefs.h"
13514 #include <tiffio.h>
13515 EOF
13516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13517 { (eval echo configure:13518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13519 if test -z "$ac_err"; then
13520 rm -rf conftest*
13521 eval "ac_cv_header_$ac_safe=yes"
13522 else
13523 echo "$ac_err" >&5
13524 echo "configure: failed program was:" >&5
13525 cat conftest.$ac_ext >&5
13526 rm -rf conftest*
13527 eval "ac_cv_header_$ac_safe=no"
13528 fi
13529 rm -f conftest*
13530 fi
13531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13532 echo "$ac_t""yes" 1>&6
13533 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
13534 echo "configure:13535: checking for TIFFError in -ltiff" >&5
13535 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13537 echo $ac_n "(cached) $ac_c" 1>&6
13538 else
13539 ac_save_LIBS="$LIBS"
13540 LIBS="-ltiff -lm $LIBS"
13541 cat > conftest.$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13544 /* Override any gcc2 internal prototype to avoid an error. */
13545 /* We use char because int might match the return type of a gcc2
13546 builtin and then its argument prototype would still apply. */
13547 char TIFFError();
13548
13549 int main() {
13550 TIFFError()
13551 ; return 0; }
13552 EOF
13553 if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13554 rm -rf conftest*
13555 eval "ac_cv_lib_$ac_lib_var=yes"
13556 else
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559 rm -rf conftest*
13560 eval "ac_cv_lib_$ac_lib_var=no"
13561 fi
13562 rm -f conftest*
13563 LIBS="$ac_save_LIBS"
13564
13565 fi
13566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13567 echo "$ac_t""yes" 1>&6
13568 TIFF_LINK="-ltiff"
13569 else
13570 echo "$ac_t""no" 1>&6
13571 fi
13572
13573 else
13574 echo "$ac_t""no" 1>&6
13575 fi
13576
13577 if test "x$TIFF_LINK" = "x" ; then
13578 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13579 fi
13580 fi
13581 fi
13582
13583 FREETYPE_INCLUDE=
13584 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13585 cat >> confdefs.h <<\EOF
13586 #define wxUSE_FREETYPE 1
13587 EOF
13588
13589 if test "$wxUSE_FREETYPE" = "yes" ; then
13590 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13591 else
13592 FREETYPE_LINK=
13593 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13594 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
13595 echo "configure:13596: checking for freetype.h" >&5
13596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13597 echo $ac_n "(cached) $ac_c" 1>&6
13598 else
13599 cat > conftest.$ac_ext <<EOF
13600 #line 13601 "configure"
13601 #include "confdefs.h"
13602 #include <freetype.h>
13603 EOF
13604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13605 { (eval echo configure:13606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13607 if test -z "$ac_err"; then
13608 rm -rf conftest*
13609 eval "ac_cv_header_$ac_safe=yes"
13610 else
13611 echo "$ac_err" >&5
13612 echo "configure: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 rm -rf conftest*
13615 eval "ac_cv_header_$ac_safe=no"
13616 fi
13617 rm -f conftest*
13618 fi
13619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13620 echo "$ac_t""yes" 1>&6
13621 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
13622 echo "configure:13623: checking for FT_Render_Glyph in -lfreetype" >&5
13623 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13625 echo $ac_n "(cached) $ac_c" 1>&6
13626 else
13627 ac_save_LIBS="$LIBS"
13628 LIBS="-lfreetype -lm $LIBS"
13629 cat > conftest.$ac_ext <<EOF
13630 #line 13631 "configure"
13631 #include "confdefs.h"
13632 /* Override any gcc2 internal prototype to avoid an error. */
13633 /* We use char because int might match the return type of a gcc2
13634 builtin and then its argument prototype would still apply. */
13635 char FT_Render_Glyph();
13636
13637 int main() {
13638 FT_Render_Glyph()
13639 ; return 0; }
13640 EOF
13641 if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13642 rm -rf conftest*
13643 eval "ac_cv_lib_$ac_lib_var=yes"
13644 else
13645 echo "configure: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13647 rm -rf conftest*
13648 eval "ac_cv_lib_$ac_lib_var=no"
13649 fi
13650 rm -f conftest*
13651 LIBS="$ac_save_LIBS"
13652
13653 fi
13654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13655 echo "$ac_t""yes" 1>&6
13656 FREETYPE_LINK="-lfreetype"
13657 else
13658 echo "$ac_t""no" 1>&6
13659 fi
13660
13661
13662 else
13663 echo "$ac_t""no" 1>&6
13664 fi
13665
13666 if test "x$FREETYPE_LINK" = "x" ; then
13667 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13668 fi
13669 fi
13670 fi
13671
13672 if test "$wxUSE_OPENGL" = "yes"; then
13673 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13674 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13675 echo "configure:13676: checking for GL/gl.h" >&5
13676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13677 echo $ac_n "(cached) $ac_c" 1>&6
13678 else
13679 cat > conftest.$ac_ext <<EOF
13680 #line 13681 "configure"
13681 #include "confdefs.h"
13682 #include <GL/gl.h>
13683 EOF
13684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13685 { (eval echo configure:13686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13687 if test -z "$ac_err"; then
13688 rm -rf conftest*
13689 eval "ac_cv_header_$ac_safe=yes"
13690 else
13691 echo "$ac_err" >&5
13692 echo "configure: failed program was:" >&5
13693 cat conftest.$ac_ext >&5
13694 rm -rf conftest*
13695 eval "ac_cv_header_$ac_safe=no"
13696 fi
13697 rm -f conftest*
13698 fi
13699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13700 echo "$ac_t""yes" 1>&6
13701
13702 cat >> confdefs.h <<\EOF
13703 #define wxUSE_OPENGL 1
13704 EOF
13705
13706 cat >> confdefs.h <<\EOF
13707 #define wxUSE_GLCANVAS 1
13708 EOF
13709
13710 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
13711 echo "configure:13712: checking for glFlush in -lGL" >&5
13712 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
13713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13714 echo $ac_n "(cached) $ac_c" 1>&6
13715 else
13716 ac_save_LIBS="$LIBS"
13717 LIBS="-lGL $LIBS"
13718 cat > conftest.$ac_ext <<EOF
13719 #line 13720 "configure"
13720 #include "confdefs.h"
13721 /* Override any gcc2 internal prototype to avoid an error. */
13722 /* We use char because int might match the return type of a gcc2
13723 builtin and then its argument prototype would still apply. */
13724 char glFlush();
13725
13726 int main() {
13727 glFlush()
13728 ; return 0; }
13729 EOF
13730 if { (eval echo configure:13731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13731 rm -rf conftest*
13732 eval "ac_cv_lib_$ac_lib_var=yes"
13733 else
13734 echo "configure: failed program was:" >&5
13735 cat conftest.$ac_ext >&5
13736 rm -rf conftest*
13737 eval "ac_cv_lib_$ac_lib_var=no"
13738 fi
13739 rm -f conftest*
13740 LIBS="$ac_save_LIBS"
13741
13742 fi
13743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13744 echo "$ac_t""yes" 1>&6
13745
13746 OPENGL_LINK="-lGL -lGLU"
13747
13748 else
13749 echo "$ac_t""no" 1>&6
13750
13751 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
13752 echo "configure:13753: checking for glFlush in -lMesaGL" >&5
13753 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
13754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13755 echo $ac_n "(cached) $ac_c" 1>&6
13756 else
13757 ac_save_LIBS="$LIBS"
13758 LIBS="-lMesaGL $LIBS"
13759 cat > conftest.$ac_ext <<EOF
13760 #line 13761 "configure"
13761 #include "confdefs.h"
13762 /* Override any gcc2 internal prototype to avoid an error. */
13763 /* We use char because int might match the return type of a gcc2
13764 builtin and then its argument prototype would still apply. */
13765 char glFlush();
13766
13767 int main() {
13768 glFlush()
13769 ; return 0; }
13770 EOF
13771 if { (eval echo configure:13772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13772 rm -rf conftest*
13773 eval "ac_cv_lib_$ac_lib_var=yes"
13774 else
13775 echo "configure: failed program was:" >&5
13776 cat conftest.$ac_ext >&5
13777 rm -rf conftest*
13778 eval "ac_cv_lib_$ac_lib_var=no"
13779 fi
13780 rm -f conftest*
13781 LIBS="$ac_save_LIBS"
13782
13783 fi
13784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13785 echo "$ac_t""yes" 1>&6
13786
13787 OPENGL_LINK="-lMesaGL -lMesaGLU"
13788
13789 else
13790 echo "$ac_t""no" 1>&6
13791 fi
13792
13793
13794 fi
13795
13796
13797 else
13798 echo "$ac_t""no" 1>&6
13799 wxUSE_OPENGL=0
13800 fi
13801
13802 fi
13803
13804
13805 if test "$wxUSE_GUI" = "yes"; then
13806 cat >> confdefs.h <<\EOF
13807 #define wxUSE_GUI 1
13808 EOF
13809
13810
13811 else
13812 cat >> confdefs.h <<\EOF
13813 #define wxUSE_NOGUI 1
13814 EOF
13815
13816 fi
13817
13818
13819 if test "$wxUSE_UNIX" = "yes"; then
13820 cat >> confdefs.h <<\EOF
13821 #define wxUSE_UNIX 1
13822 EOF
13823
13824 fi
13825
13826
13827 if test "$wxUSE_APPLE_IEEE" = "yes"; then
13828 cat >> confdefs.h <<\EOF
13829 #define wxUSE_APPLE_IEEE 1
13830 EOF
13831
13832 fi
13833
13834 if test "$wxUSE_WAVE" = "yes"; then
13835 cat >> confdefs.h <<\EOF
13836 #define wxUSE_WAVE 1
13837 EOF
13838
13839 fi
13840
13841 if test "$wxUSE_FILE" = "yes"; then
13842 cat >> confdefs.h <<\EOF
13843 #define wxUSE_FILE 1
13844 EOF
13845
13846 fi
13847
13848 if test "$wxUSE_FILESYSTEM" = "yes"; then
13849 cat >> confdefs.h <<\EOF
13850 #define wxUSE_FILESYSTEM 1
13851 EOF
13852
13853 fi
13854
13855 if test "$wxUSE_FS_INET" = "yes"; then
13856 cat >> confdefs.h <<\EOF
13857 #define wxUSE_FS_INET 1
13858 EOF
13859
13860 fi
13861
13862 if test "$wxUSE_FS_ZIP" = "yes"; then
13863 cat >> confdefs.h <<\EOF
13864 #define wxUSE_FS_ZIP 1
13865 EOF
13866
13867 fi
13868
13869 if test "$wxUSE_ZIPSTREAM" = "yes"; then
13870 cat >> confdefs.h <<\EOF
13871 #define wxUSE_ZIPSTREAM 1
13872 EOF
13873
13874 fi
13875
13876 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13877 cat >> confdefs.h <<\EOF
13878 #define wxUSE_ON_FATAL_EXCEPTION 1
13879 EOF
13880
13881 fi
13882
13883 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13884 cat >> confdefs.h <<\EOF
13885 #define wxUSE_SNGLINST_CHECKER 1
13886 EOF
13887
13888 fi
13889
13890 if test "$wxUSE_BUSYINFO" = "yes"; then
13891 cat >> confdefs.h <<\EOF
13892 #define wxUSE_BUSYINFO 1
13893 EOF
13894
13895 fi
13896
13897 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13898 cat >> confdefs.h <<\EOF
13899 #define wxUSE_STD_IOSTREAM 1
13900 EOF
13901
13902 fi
13903
13904 if test "$wxUSE_TEXTFILE" = "yes"; then
13905 if test "$wxUSE_FILE" != "yes"; then
13906 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13907 else
13908 cat >> confdefs.h <<\EOF
13909 #define wxUSE_TEXTFILE 1
13910 EOF
13911
13912 fi
13913 fi
13914
13915 if test "$wxUSE_CONFIG" = "yes" ; then
13916 if test "$wxUSE_TEXTFILE" != "yes"; then
13917 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13918 else
13919 cat >> confdefs.h <<\EOF
13920 #define wxUSE_CONFIG 1
13921 EOF
13922
13923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13924 fi
13925 fi
13926
13927 if test "$wxUSE_INTL" = "yes" ; then
13928 if test "$wxUSE_FILE" != "yes"; then
13929 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13930 else
13931 cat >> confdefs.h <<\EOF
13932 #define wxUSE_INTL 1
13933 EOF
13934
13935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
13936 GUIDIST="$GUIDIST INTL_DIST"
13937 fi
13938 fi
13939
13940 if test "$wxUSE_LOG" = "yes"; then
13941 cat >> confdefs.h <<\EOF
13942 #define wxUSE_LOG 1
13943 EOF
13944
13945 fi
13946
13947 if test "$wxUSE_LONGLONG" = "yes"; then
13948 cat >> confdefs.h <<\EOF
13949 #define wxUSE_LONGLONG 1
13950 EOF
13951
13952 fi
13953
13954 if test "$wxUSE_GEOMETRY" = "yes"; then
13955 cat >> confdefs.h <<\EOF
13956 #define wxUSE_GEOMETRY 1
13957 EOF
13958
13959 fi
13960
13961 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13962 cat >> confdefs.h <<\EOF
13963 #define wxUSE_DIALUP_MANAGER 1
13964 EOF
13965
13966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
13967 fi
13968
13969 if test "$wxUSE_STREAMS" = "yes" ; then
13970 cat >> confdefs.h <<\EOF
13971 #define wxUSE_STREAMS 1
13972 EOF
13973
13974 fi
13975
13976
13977 if test "$wxUSE_TIMEDATE" = "yes"; then
13978 for ac_func in strptime
13979 do
13980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13981 echo "configure:13982: checking for $ac_func" >&5
13982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13983 echo $ac_n "(cached) $ac_c" 1>&6
13984 else
13985 cat > conftest.$ac_ext <<EOF
13986 #line 13987 "configure"
13987 #include "confdefs.h"
13988 /* System header to define __stub macros and hopefully few prototypes,
13989 which can conflict with char $ac_func(); below. */
13990 #include <assert.h>
13991 /* Override any gcc2 internal prototype to avoid an error. */
13992 /* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
13994 char $ac_func();
13995
13996 int main() {
13997
13998 /* The GNU C library defines this for functions which it implements
13999 to always fail with ENOSYS. Some functions are actually named
14000 something starting with __ and the normal name is an alias. */
14001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14002 choke me
14003 #else
14004 $ac_func();
14005 #endif
14006
14007 ; return 0; }
14008 EOF
14009 if { (eval echo configure:14010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14010 rm -rf conftest*
14011 eval "ac_cv_func_$ac_func=yes"
14012 else
14013 echo "configure: failed program was:" >&5
14014 cat conftest.$ac_ext >&5
14015 rm -rf conftest*
14016 eval "ac_cv_func_$ac_func=no"
14017 fi
14018 rm -f conftest*
14019 fi
14020
14021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14022 echo "$ac_t""yes" 1>&6
14023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14024 cat >> confdefs.h <<EOF
14025 #define $ac_tr_func 1
14026 EOF
14027
14028 else
14029 echo "$ac_t""no" 1>&6
14030 fi
14031 done
14032
14033
14034 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
14035 echo "configure:14036: checking for timezone variable in <time.h>" >&5
14036 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
14037 echo $ac_n "(cached) $ac_c" 1>&6
14038 else
14039
14040 cat > conftest.$ac_ext <<EOF
14041 #line 14042 "configure"
14042 #include "confdefs.h"
14043
14044 #include <time.h>
14045
14046 int main() {
14047
14048 int tz;
14049 tz = __timezone;
14050
14051 ; return 0; }
14052 EOF
14053 if { (eval echo configure:14054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14054 rm -rf conftest*
14055
14056 wx_cv_var_timezone=__timezone
14057
14058 else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062
14063 cat > conftest.$ac_ext <<EOF
14064 #line 14065 "configure"
14065 #include "confdefs.h"
14066
14067 #include <time.h>
14068
14069 int main() {
14070
14071 int tz;
14072 tz = _timezone;
14073
14074 ; return 0; }
14075 EOF
14076 if { (eval echo configure:14077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14077 rm -rf conftest*
14078
14079 wx_cv_var_timezone=_timezone
14080
14081 else
14082 echo "configure: failed program was:" >&5
14083 cat conftest.$ac_ext >&5
14084 rm -rf conftest*
14085
14086 cat > conftest.$ac_ext <<EOF
14087 #line 14088 "configure"
14088 #include "confdefs.h"
14089
14090 #include <time.h>
14091
14092 int main() {
14093
14094 int tz;
14095 tz = timezone;
14096
14097 ; return 0; }
14098 EOF
14099 if { (eval echo configure:14100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14100 rm -rf conftest*
14101
14102 wx_cv_var_timezone=timezone
14103
14104 else
14105 echo "configure: failed program was:" >&5
14106 cat conftest.$ac_ext >&5
14107 rm -rf conftest*
14108 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
14109
14110 fi
14111 rm -f conftest*
14112
14113
14114 fi
14115 rm -f conftest*
14116
14117
14118 fi
14119 rm -f conftest*
14120
14121
14122 fi
14123
14124 echo "$ac_t""$wx_cv_var_timezone" 1>&6
14125
14126 cat >> confdefs.h <<EOF
14127 #define WX_TIMEZONE $wx_cv_var_timezone
14128 EOF
14129
14130
14131 for ac_func in localtime
14132 do
14133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14134 echo "configure:14135: checking for $ac_func" >&5
14135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14136 echo $ac_n "(cached) $ac_c" 1>&6
14137 else
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14141 /* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char $ac_func(); below. */
14143 #include <assert.h>
14144 /* Override any gcc2 internal prototype to avoid an error. */
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14147 char $ac_func();
14148
14149 int main() {
14150
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155 choke me
14156 #else
14157 $ac_func();
14158 #endif
14159
14160 ; return 0; }
14161 EOF
14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14163 rm -rf conftest*
14164 eval "ac_cv_func_$ac_func=yes"
14165 else
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 rm -rf conftest*
14169 eval "ac_cv_func_$ac_func=no"
14170 fi
14171 rm -f conftest*
14172 fi
14173
14174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14177 cat >> confdefs.h <<EOF
14178 #define $ac_tr_func 1
14179 EOF
14180
14181 else
14182 echo "$ac_t""no" 1>&6
14183 fi
14184 done
14185
14186
14187 if test "$ac_cv_func_localtime" = "yes"; then
14188 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
14189 echo "configure:14190: checking for tm_gmtoff in struct tm" >&5
14190 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
14191 echo $ac_n "(cached) $ac_c" 1>&6
14192 else
14193
14194 cat > conftest.$ac_ext <<EOF
14195 #line 14196 "configure"
14196 #include "confdefs.h"
14197
14198 #include <time.h>
14199
14200 int main() {
14201
14202 struct tm tm;
14203 tm.tm_gmtoff++;
14204
14205 ; return 0; }
14206 EOF
14207 if { (eval echo configure:14208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14208 rm -rf conftest*
14209
14210 wx_cv_struct_tm_has_gmtoff=yes
14211 cat >> confdefs.h <<\EOF
14212 #define WX_GMTOFF_IN_TM 1
14213 EOF
14214
14215
14216 else
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 rm -rf conftest*
14220 wx_cv_struct_tm_has_gmtoff=no
14221
14222 fi
14223 rm -f conftest*
14224
14225 fi
14226
14227 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
14228 fi
14229
14230 for ac_func in gettimeofday ftime
14231 do
14232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14233 echo "configure:14234: checking for $ac_func" >&5
14234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14235 echo $ac_n "(cached) $ac_c" 1>&6
14236 else
14237 cat > conftest.$ac_ext <<EOF
14238 #line 14239 "configure"
14239 #include "confdefs.h"
14240 /* System header to define __stub macros and hopefully few prototypes,
14241 which can conflict with char $ac_func(); below. */
14242 #include <assert.h>
14243 /* Override any gcc2 internal prototype to avoid an error. */
14244 /* We use char because int might match the return type of a gcc2
14245 builtin and then its argument prototype would still apply. */
14246 char $ac_func();
14247
14248 int main() {
14249
14250 /* The GNU C library defines this for functions which it implements
14251 to always fail with ENOSYS. Some functions are actually named
14252 something starting with __ and the normal name is an alias. */
14253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14254 choke me
14255 #else
14256 $ac_func();
14257 #endif
14258
14259 ; return 0; }
14260 EOF
14261 if { (eval echo configure:14262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14262 rm -rf conftest*
14263 eval "ac_cv_func_$ac_func=yes"
14264 else
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14267 rm -rf conftest*
14268 eval "ac_cv_func_$ac_func=no"
14269 fi
14270 rm -f conftest*
14271 fi
14272
14273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14274 echo "$ac_t""yes" 1>&6
14275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14276 cat >> confdefs.h <<EOF
14277 #define $ac_tr_func 1
14278 EOF
14279 break
14280 else
14281 echo "$ac_t""no" 1>&6
14282 fi
14283 done
14284
14285
14286 if test "$ac_cv_func_gettimeofday" = "yes"; then
14287 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
14288 echo "configure:14289: checking whether gettimeofday takes two arguments" >&5
14289 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
14290 echo $ac_n "(cached) $ac_c" 1>&6
14291 else
14292
14293
14294 ac_ext=C
14295 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14296 ac_cpp='$CXXCPP $CPPFLAGS'
14297 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14298 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14299 cross_compiling=$ac_cv_prog_cxx_cross
14300
14301
14302 cat > conftest.$ac_ext <<EOF
14303 #line 14304 "configure"
14304 #include "confdefs.h"
14305
14306 #include <sys/time.h>
14307 #include <unistd.h>
14308
14309 int main() {
14310
14311 struct timeval tv;
14312 struct timezone tz;
14313 gettimeofday(&tv, &tz);
14314
14315 ; return 0; }
14316 EOF
14317 if { (eval echo configure:14318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14318 rm -rf conftest*
14319 wx_cv_func_gettimeofday_has_2_args=yes
14320 else
14321 echo "configure: failed program was:" >&5
14322 cat conftest.$ac_ext >&5
14323 rm -rf conftest*
14324 cat > conftest.$ac_ext <<EOF
14325 #line 14326 "configure"
14326 #include "confdefs.h"
14327
14328 #include <sys/time.h>
14329 #include <unistd.h>
14330
14331 int main() {
14332
14333 struct timeval tv;
14334 gettimeofday(&tv);
14335
14336 ; return 0; }
14337 EOF
14338 if { (eval echo configure:14339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14339 rm -rf conftest*
14340 wx_cv_func_gettimeofday_has_2_args=no
14341 else
14342 echo "configure: failed program was:" >&5
14343 cat conftest.$ac_ext >&5
14344 rm -rf conftest*
14345 wx_cv_func_gettimeofday_has_2_args=unknown
14346
14347 fi
14348 rm -f conftest*
14349
14350 fi
14351 rm -f conftest*
14352 ac_ext=c
14353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14354 ac_cpp='$CPP $CPPFLAGS'
14355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14357 cross_compiling=$ac_cv_prog_cc_cross
14358
14359
14360 fi
14361
14362 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
14363
14364 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
14365 cat >> confdefs.h <<\EOF
14366 #define WX_GETTIMEOFDAY_NO_TZ 1
14367 EOF
14368
14369 fi
14370 fi
14371
14372 cat >> confdefs.h <<\EOF
14373 #define wxUSE_TIMEDATE 1
14374 EOF
14375
14376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
14377 fi
14378
14379
14380 if test "$TOOLKIT" != "MSW"; then
14381
14382 if test "$wxUSE_SOCKETS" = "yes"; then
14383 echo $ac_n "checking for socket""... $ac_c" 1>&6
14384 echo "configure:14385: checking for socket" >&5
14385 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
14386 echo $ac_n "(cached) $ac_c" 1>&6
14387 else
14388 cat > conftest.$ac_ext <<EOF
14389 #line 14390 "configure"
14390 #include "confdefs.h"
14391 /* System header to define __stub macros and hopefully few prototypes,
14392 which can conflict with char socket(); below. */
14393 #include <assert.h>
14394 /* Override any gcc2 internal prototype to avoid an error. */
14395 /* We use char because int might match the return type of a gcc2
14396 builtin and then its argument prototype would still apply. */
14397 char socket();
14398
14399 int main() {
14400
14401 /* The GNU C library defines this for functions which it implements
14402 to always fail with ENOSYS. Some functions are actually named
14403 something starting with __ and the normal name is an alias. */
14404 #if defined (__stub_socket) || defined (__stub___socket)
14405 choke me
14406 #else
14407 socket();
14408 #endif
14409
14410 ; return 0; }
14411 EOF
14412 if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14413 rm -rf conftest*
14414 eval "ac_cv_func_socket=yes"
14415 else
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14418 rm -rf conftest*
14419 eval "ac_cv_func_socket=no"
14420 fi
14421 rm -f conftest*
14422 fi
14423
14424 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
14425 echo "$ac_t""yes" 1>&6
14426 :
14427 else
14428 echo "$ac_t""no" 1>&6
14429 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
14430 echo "configure:14431: checking for socket in -lsocket" >&5
14431 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
14432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14433 echo $ac_n "(cached) $ac_c" 1>&6
14434 else
14435 ac_save_LIBS="$LIBS"
14436 LIBS="-lsocket $LIBS"
14437 cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure"
14439 #include "confdefs.h"
14440 /* Override any gcc2 internal prototype to avoid an error. */
14441 /* We use char because int might match the return type of a gcc2
14442 builtin and then its argument prototype would still apply. */
14443 char socket();
14444
14445 int main() {
14446 socket()
14447 ; return 0; }
14448 EOF
14449 if { (eval echo configure:14450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14450 rm -rf conftest*
14451 eval "ac_cv_lib_$ac_lib_var=yes"
14452 else
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14455 rm -rf conftest*
14456 eval "ac_cv_lib_$ac_lib_var=no"
14457 fi
14458 rm -f conftest*
14459 LIBS="$ac_save_LIBS"
14460
14461 fi
14462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14463 echo "$ac_t""yes" 1>&6
14464 INET_LINK="$INET_LINK -lsocket"
14465 else
14466 echo "$ac_t""no" 1>&6
14467
14468 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
14469 wxUSE_SOCKETS=no
14470
14471
14472 fi
14473
14474
14475 fi
14476
14477 fi
14478
14479
14480 if test "$wxUSE_SOCKETS" = "yes" ; then
14481 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
14482 echo "configure:14483: checking what is the type of the third argument of getsockname" >&5
14483 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14484 echo $ac_n "(cached) $ac_c" 1>&6
14485 else
14486
14487
14488 ac_ext=C
14489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14490 ac_cpp='$CXXCPP $CPPFLAGS'
14491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14493 cross_compiling=$ac_cv_prog_cxx_cross
14494
14495
14496 cat > conftest.$ac_ext <<EOF
14497 #line 14498 "configure"
14498 #include "confdefs.h"
14499
14500 #include <sys/types.h>
14501 #include <sys/socket.h>
14502
14503 int main() {
14504
14505 socklen_t len;
14506 getsockname(0, 0, &len);
14507
14508 ; return 0; }
14509 EOF
14510 if { (eval echo configure:14511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14511 rm -rf conftest*
14512 wx_cv_type_getsockname3=socklen_t
14513 else
14514 echo "configure: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14516 rm -rf conftest*
14517 cat > conftest.$ac_ext <<EOF
14518 #line 14519 "configure"
14519 #include "confdefs.h"
14520
14521 #include <sys/types.h>
14522 #include <sys/socket.h>
14523
14524 int main() {
14525
14526 size_t len;
14527 getsockname(0, 0, &len);
14528
14529 ; return 0; }
14530 EOF
14531 if { (eval echo configure:14532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14532 rm -rf conftest*
14533 wx_cv_type_getsockname3=size_t
14534 else
14535 echo "configure: failed program was:" >&5
14536 cat conftest.$ac_ext >&5
14537 rm -rf conftest*
14538 cat > conftest.$ac_ext <<EOF
14539 #line 14540 "configure"
14540 #include "confdefs.h"
14541
14542 #include <sys/types.h>
14543 #include <sys/socket.h>
14544
14545 int main() {
14546
14547 int len;
14548 getsockname(0, 0, &len);
14549
14550 ; return 0; }
14551 EOF
14552 if { (eval echo configure:14553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14553 rm -rf conftest*
14554 wx_cv_type_getsockname3=int
14555 else
14556 echo "configure: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14558 rm -rf conftest*
14559 wx_cv_type_getsockname3=unknown
14560
14561 fi
14562 rm -f conftest*
14563
14564 fi
14565 rm -f conftest*
14566
14567 fi
14568 rm -f conftest*
14569
14570 ac_ext=c
14571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14572 ac_cpp='$CPP $CPPFLAGS'
14573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14575 cross_compiling=$ac_cv_prog_cc_cross
14576
14577
14578 fi
14579
14580 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14581
14582 if test "$wx_cv_type_getsockname3" = "unknown"; then
14583 wxUSE_SOCKETS=no
14584 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14585 else
14586 cat >> confdefs.h <<EOF
14587 #define SOCKLEN_T $wx_cv_type_getsockname3
14588 EOF
14589
14590 fi
14591 fi
14592
14593 fi
14594
14595 if test "$wxUSE_SOCKETS" = "yes" ; then
14596 cat >> confdefs.h <<\EOF
14597 #define wxUSE_SOCKETS 1
14598 EOF
14599
14600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
14601 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14602 fi
14603
14604
14605 if test "$wxUSE_GUI" = "yes"; then
14606
14607 if test "$TOOLKIT" != "MSW"; then
14608
14609 if test "$wxUSE_JOYSTICK" = "yes"; then
14610 for ac_hdr in linux/joystick.h
14611 do
14612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14614 echo "configure:14615: checking for $ac_hdr" >&5
14615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14616 echo $ac_n "(cached) $ac_c" 1>&6
14617 else
14618 cat > conftest.$ac_ext <<EOF
14619 #line 14620 "configure"
14620 #include "confdefs.h"
14621 #include <$ac_hdr>
14622 EOF
14623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14624 { (eval echo configure:14625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14626 if test -z "$ac_err"; then
14627 rm -rf conftest*
14628 eval "ac_cv_header_$ac_safe=yes"
14629 else
14630 echo "$ac_err" >&5
14631 echo "configure: failed program was:" >&5
14632 cat conftest.$ac_ext >&5
14633 rm -rf conftest*
14634 eval "ac_cv_header_$ac_safe=no"
14635 fi
14636 rm -f conftest*
14637 fi
14638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14639 echo "$ac_t""yes" 1>&6
14640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14641 cat >> confdefs.h <<EOF
14642 #define $ac_tr_hdr 1
14643 EOF
14644
14645 else
14646 echo "$ac_t""no" 1>&6
14647 fi
14648 done
14649
14650 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
14651 wxUSE_JOYSTICK=no
14652 echo "configure: warning: Joystick not supported by this system" 1>&2
14653 fi
14654 fi
14655
14656 fi
14657
14658 if test "$wxUSE_JOYSTICK" = "yes"; then
14659 cat >> confdefs.h <<\EOF
14660 #define wxUSE_JOYSTICK 1
14661 EOF
14662
14663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
14664 fi
14665
14666 fi
14667
14668
14669 if test "$TOOLKIT" != "MSW"; then
14670
14671 HAVE_DL_FUNCS=0
14672 HAVE_SHL_FUNCS=0
14673 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
14674 if test "$USE_MAC" = 1; then
14675 HAVE_DL_FUNCS=1
14676 else
14677 for ac_func in dlopen
14678 do
14679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14680 echo "configure:14681: checking for $ac_func" >&5
14681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14682 echo $ac_n "(cached) $ac_c" 1>&6
14683 else
14684 cat > conftest.$ac_ext <<EOF
14685 #line 14686 "configure"
14686 #include "confdefs.h"
14687 /* System header to define __stub macros and hopefully few prototypes,
14688 which can conflict with char $ac_func(); below. */
14689 #include <assert.h>
14690 /* Override any gcc2 internal prototype to avoid an error. */
14691 /* We use char because int might match the return type of a gcc2
14692 builtin and then its argument prototype would still apply. */
14693 char $ac_func();
14694
14695 int main() {
14696
14697 /* The GNU C library defines this for functions which it implements
14698 to always fail with ENOSYS. Some functions are actually named
14699 something starting with __ and the normal name is an alias. */
14700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14701 choke me
14702 #else
14703 $ac_func();
14704 #endif
14705
14706 ; return 0; }
14707 EOF
14708 if { (eval echo configure:14709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14709 rm -rf conftest*
14710 eval "ac_cv_func_$ac_func=yes"
14711 else
14712 echo "configure: failed program was:" >&5
14713 cat conftest.$ac_ext >&5
14714 rm -rf conftest*
14715 eval "ac_cv_func_$ac_func=no"
14716 fi
14717 rm -f conftest*
14718 fi
14719
14720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14721 echo "$ac_t""yes" 1>&6
14722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14723 cat >> confdefs.h <<EOF
14724 #define $ac_tr_func 1
14725 EOF
14726
14727 cat >> confdefs.h <<\EOF
14728 #define HAVE_DLOPEN 1
14729 EOF
14730
14731 HAVE_DL_FUNCS=1
14732
14733 else
14734 echo "$ac_t""no" 1>&6
14735 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14736 echo "configure:14737: checking for dlopen in -ldl" >&5
14737 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14739 echo $ac_n "(cached) $ac_c" 1>&6
14740 else
14741 ac_save_LIBS="$LIBS"
14742 LIBS="-ldl $LIBS"
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14746 /* Override any gcc2 internal prototype to avoid an error. */
14747 /* We use char because int might match the return type of a gcc2
14748 builtin and then its argument prototype would still apply. */
14749 char dlopen();
14750
14751 int main() {
14752 dlopen()
14753 ; return 0; }
14754 EOF
14755 if { (eval echo configure:14756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14756 rm -rf conftest*
14757 eval "ac_cv_lib_$ac_lib_var=yes"
14758 else
14759 echo "configure: failed program was:" >&5
14760 cat conftest.$ac_ext >&5
14761 rm -rf conftest*
14762 eval "ac_cv_lib_$ac_lib_var=no"
14763 fi
14764 rm -f conftest*
14765 LIBS="$ac_save_LIBS"
14766
14767 fi
14768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14769 echo "$ac_t""yes" 1>&6
14770
14771 cat >> confdefs.h <<\EOF
14772 #define HAVE_DLOPEN 1
14773 EOF
14774
14775 HAVE_DL_FUNCS=1
14776 LIBS="$LIBS -ldl"
14777
14778 else
14779 echo "$ac_t""no" 1>&6
14780
14781 for ac_func in shl_load
14782 do
14783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14784 echo "configure:14785: checking for $ac_func" >&5
14785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14786 echo $ac_n "(cached) $ac_c" 1>&6
14787 else
14788 cat > conftest.$ac_ext <<EOF
14789 #line 14790 "configure"
14790 #include "confdefs.h"
14791 /* System header to define __stub macros and hopefully few prototypes,
14792 which can conflict with char $ac_func(); below. */
14793 #include <assert.h>
14794 /* Override any gcc2 internal prototype to avoid an error. */
14795 /* We use char because int might match the return type of a gcc2
14796 builtin and then its argument prototype would still apply. */
14797 char $ac_func();
14798
14799 int main() {
14800
14801 /* The GNU C library defines this for functions which it implements
14802 to always fail with ENOSYS. Some functions are actually named
14803 something starting with __ and the normal name is an alias. */
14804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14805 choke me
14806 #else
14807 $ac_func();
14808 #endif
14809
14810 ; return 0; }
14811 EOF
14812 if { (eval echo configure:14813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14813 rm -rf conftest*
14814 eval "ac_cv_func_$ac_func=yes"
14815 else
14816 echo "configure: failed program was:" >&5
14817 cat conftest.$ac_ext >&5
14818 rm -rf conftest*
14819 eval "ac_cv_func_$ac_func=no"
14820 fi
14821 rm -f conftest*
14822 fi
14823
14824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14825 echo "$ac_t""yes" 1>&6
14826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14827 cat >> confdefs.h <<EOF
14828 #define $ac_tr_func 1
14829 EOF
14830
14831 cat >> confdefs.h <<\EOF
14832 #define HAVE_SHL_LOAD 1
14833 EOF
14834
14835 HAVE_SHL_FUNCS=1
14836
14837 else
14838 echo "$ac_t""no" 1>&6
14839 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
14840 echo "configure:14841: checking for dld in -lshl_load" >&5
14841 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14843 echo $ac_n "(cached) $ac_c" 1>&6
14844 else
14845 ac_save_LIBS="$LIBS"
14846 LIBS="-lshl_load $LIBS"
14847 cat > conftest.$ac_ext <<EOF
14848 #line 14849 "configure"
14849 #include "confdefs.h"
14850 /* Override any gcc2 internal prototype to avoid an error. */
14851 /* We use char because int might match the return type of a gcc2
14852 builtin and then its argument prototype would still apply. */
14853 char dld();
14854
14855 int main() {
14856 dld()
14857 ; return 0; }
14858 EOF
14859 if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14860 rm -rf conftest*
14861 eval "ac_cv_lib_$ac_lib_var=yes"
14862 else
14863 echo "configure: failed program was:" >&5
14864 cat conftest.$ac_ext >&5
14865 rm -rf conftest*
14866 eval "ac_cv_lib_$ac_lib_var=no"
14867 fi
14868 rm -f conftest*
14869 LIBS="$ac_save_LIBS"
14870
14871 fi
14872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14873 echo "$ac_t""yes" 1>&6
14874
14875 HAVE_SHL_FUNCS=1
14876 LIBS="$LIBS -ldld"
14877
14878 else
14879 echo "$ac_t""no" 1>&6
14880 fi
14881
14882
14883 fi
14884 done
14885
14886
14887 fi
14888
14889
14890 fi
14891 done
14892
14893
14894 if test "$HAVE_DL_FUNCS" = 1; then
14895 for ac_func in dlerror
14896 do
14897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14898 echo "configure:14899: checking for $ac_func" >&5
14899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14900 echo $ac_n "(cached) $ac_c" 1>&6
14901 else
14902 cat > conftest.$ac_ext <<EOF
14903 #line 14904 "configure"
14904 #include "confdefs.h"
14905 /* System header to define __stub macros and hopefully few prototypes,
14906 which can conflict with char $ac_func(); below. */
14907 #include <assert.h>
14908 /* Override any gcc2 internal prototype to avoid an error. */
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14911 char $ac_func();
14912
14913 int main() {
14914
14915 /* The GNU C library defines this for functions which it implements
14916 to always fail with ENOSYS. Some functions are actually named
14917 something starting with __ and the normal name is an alias. */
14918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14919 choke me
14920 #else
14921 $ac_func();
14922 #endif
14923
14924 ; return 0; }
14925 EOF
14926 if { (eval echo configure:14927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14927 rm -rf conftest*
14928 eval "ac_cv_func_$ac_func=yes"
14929 else
14930 echo "configure: failed program was:" >&5
14931 cat conftest.$ac_ext >&5
14932 rm -rf conftest*
14933 eval "ac_cv_func_$ac_func=no"
14934 fi
14935 rm -f conftest*
14936 fi
14937
14938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14939 echo "$ac_t""yes" 1>&6
14940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14941 cat >> confdefs.h <<EOF
14942 #define $ac_tr_func 1
14943 EOF
14944 cat >> confdefs.h <<\EOF
14945 #define HAVE_DLERROR 1
14946 EOF
14947
14948 else
14949 echo "$ac_t""no" 1>&6
14950 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
14951 echo "configure:14952: checking for dlerror in -ldl" >&5
14952 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14954 echo $ac_n "(cached) $ac_c" 1>&6
14955 else
14956 ac_save_LIBS="$LIBS"
14957 LIBS="-ldl $LIBS"
14958 cat > conftest.$ac_ext <<EOF
14959 #line 14960 "configure"
14960 #include "confdefs.h"
14961 /* Override any gcc2 internal prototype to avoid an error. */
14962 /* We use char because int might match the return type of a gcc2
14963 builtin and then its argument prototype would still apply. */
14964 char dlerror();
14965
14966 int main() {
14967 dlerror()
14968 ; return 0; }
14969 EOF
14970 if { (eval echo configure:14971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14971 rm -rf conftest*
14972 eval "ac_cv_lib_$ac_lib_var=yes"
14973 else
14974 echo "configure: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 rm -rf conftest*
14977 eval "ac_cv_lib_$ac_lib_var=no"
14978 fi
14979 rm -f conftest*
14980 LIBS="$ac_save_LIBS"
14981
14982 fi
14983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14984 echo "$ac_t""yes" 1>&6
14985 cat >> confdefs.h <<\EOF
14986 #define HAVE_DLERROR 1
14987 EOF
14988
14989 else
14990 echo "$ac_t""no" 1>&6
14991 fi
14992
14993 fi
14994 done
14995
14996 fi
14997 fi
14998
14999 if test "$HAVE_DL_FUNCS" = 0; then
15000 if test "$HAVE_SHL_FUNCS" = 0; then
15001 if test "$USE_UNIX" = 1; then
15002 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
15003 wxUSE_DYNLIB_CLASS=no
15004 else
15005 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
15006 fi
15007 fi
15008 fi
15009 fi
15010
15011 fi
15012
15013 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
15014 cat >> confdefs.h <<\EOF
15015 #define wxUSE_DYNLIB_CLASS 1
15016 EOF
15017
15018 else
15019 wxUSE_ODBC=no
15020 wxUSE_SERIAL=no
15021 fi
15022
15023
15024 if test "$wxUSE_UNICODE" = "yes" ; then
15025 cat >> confdefs.h <<\EOF
15026 #define wxUSE_UNICODE 1
15027 EOF
15028
15029 fi
15030
15031 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
15032 cat >> confdefs.h <<\EOF
15033 #define wxUSE_WCSRTOMBS 1
15034 EOF
15035
15036 fi
15037
15038 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
15039 cat >> confdefs.h <<\EOF
15040 #define wxUSE_EXPERIMENTAL_PRINTF 1
15041 EOF
15042
15043 fi
15044
15045
15046 if test "$wxUSE_SERIAL" = "yes" ; then
15047 cat >> confdefs.h <<\EOF
15048 #define wxUSE_SERIAL 1
15049 EOF
15050
15051 fi
15052
15053
15054 IODBC_C_SRC=""
15055 if test "$wxUSE_ODBC" = "yes" ; then
15056 cat >> confdefs.h <<\EOF
15057 #define wxUSE_ODBC 1
15058 EOF
15059
15060 WXODBCFLAG="-D_IODBC_"
15061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
15062 fi
15063
15064
15065 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
15066 cat >> confdefs.h <<\EOF
15067 #define wxUSE_POSTSCRIPT 1
15068 EOF
15069
15070 fi
15071
15072 cat >> confdefs.h <<\EOF
15073 #define wxUSE_AFM_FOR_POSTSCRIPT 1
15074 EOF
15075
15076
15077 cat >> confdefs.h <<\EOF
15078 #define wxUSE_NORMALIZED_PS_FONTS 1
15079 EOF
15080
15081
15082
15083 if test "$wxUSE_CONSTRAINTS" = "yes"; then
15084 cat >> confdefs.h <<\EOF
15085 #define wxUSE_CONSTRAINTS 1
15086 EOF
15087
15088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
15089 fi
15090
15091 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
15092 cat >> confdefs.h <<\EOF
15093 #define wxUSE_MDI_ARCHITECTURE 1
15094 EOF
15095
15096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
15097 fi
15098
15099 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
15100 cat >> confdefs.h <<\EOF
15101 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
15102 EOF
15103
15104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
15105 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
15106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
15107 fi
15108 fi
15109
15110 if test "$wxUSE_HELP" = "yes"; then
15111 cat >> confdefs.h <<\EOF
15112 #define wxUSE_HELP 1
15113 EOF
15114
15115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
15116 fi
15117
15118 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
15119 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15120 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
15121 else
15122 cat >> confdefs.h <<\EOF
15123 #define wxUSE_PRINTING_ARCHITECTURE 1
15124 EOF
15125
15126 fi
15127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
15128 fi
15129
15130 if test "$wxUSE_PROLOGIO" = "yes" ; then
15131 cat >> confdefs.h <<\EOF
15132 #define wxUSE_PROLOGIO 1
15133 EOF
15134
15135 fi
15136
15137 if test "$wxUSE_RESOURCES" = "yes" ; then
15138 if test "$wxUSE_PROLOGIO" = "yes" ; then
15139 cat >> confdefs.h <<\EOF
15140 #define wxUSE_RESOURCES 1
15141 EOF
15142
15143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
15144 else
15145 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
15146 fi
15147 fi
15148
15149 if test "$wxUSE_X_RESOURCES" = "yes"; then
15150 cat >> confdefs.h <<\EOF
15151 #define wxUSE_X_RESOURCES 1
15152 EOF
15153
15154 fi
15155
15156
15157 if test "$wxUSE_IPC" = "yes"; then
15158 if test "$wxUSE_SOCKETS" != "yes"; then
15159 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
15160 fi
15161
15162 cat >> confdefs.h <<\EOF
15163 #define wxUSE_IPC 1
15164 EOF
15165
15166 fi
15167
15168 if test "$wxUSE_CLIPBOARD" = "yes"; then
15169 cat >> confdefs.h <<\EOF
15170 #define wxUSE_CLIPBOARD 1
15171 EOF
15172
15173 fi
15174
15175 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
15176 if test "$wxUSE_GTK" = 1; then
15177 if test "$WXGTK12" != 1; then
15178 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
15179 wxUSE_DRAG_AND_DROP=no
15180 fi
15181 fi
15182
15183 if test "$wxUSE_MOTIF" = 1; then
15184 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
15185 wxUSE_DRAG_AND_DROP=no
15186 fi
15187
15188 if test "$wxUSE_MAC" = 1; then
15189 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
15190 wxUSE_DRAG_AND_DROP=no
15191 fi
15192
15193 if test "$USE_WIN32" = 1; then
15194
15195 for ac_hdr in ole2.h
15196 do
15197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15199 echo "configure:15200: checking for $ac_hdr" >&5
15200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15201 echo $ac_n "(cached) $ac_c" 1>&6
15202 else
15203 cat > conftest.$ac_ext <<EOF
15204 #line 15205 "configure"
15205 #include "confdefs.h"
15206 #include <$ac_hdr>
15207 EOF
15208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15209 { (eval echo configure:15210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15211 if test -z "$ac_err"; then
15212 rm -rf conftest*
15213 eval "ac_cv_header_$ac_safe=yes"
15214 else
15215 echo "$ac_err" >&5
15216 echo "configure: failed program was:" >&5
15217 cat conftest.$ac_ext >&5
15218 rm -rf conftest*
15219 eval "ac_cv_header_$ac_safe=no"
15220 fi
15221 rm -f conftest*
15222 fi
15223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15224 echo "$ac_t""yes" 1>&6
15225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15226 cat >> confdefs.h <<EOF
15227 #define $ac_tr_hdr 1
15228 EOF
15229
15230 else
15231 echo "$ac_t""no" 1>&6
15232 fi
15233 done
15234
15235
15236 if test "$ac_cv_header_ole2_h" = "yes" ; then
15237 if test "$GCC" = yes ; then
15238 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
15239 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
15240 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
15241 LIBS="$LIBS -lole32 -luuid"
15242
15243 if test "$wxUSE_METAFILE" = "yes"; then
15244 cat >> confdefs.h <<\EOF
15245 #define wxUSE_METAFILE 1
15246 EOF
15247
15248 cat >> confdefs.h <<\EOF
15249 #define wxUSE_ENH_METAFILE 1
15250 EOF
15251
15252 fi
15253 fi
15254 else
15255 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
15256 wxUSE_DRAG_AND_DROP=no
15257 fi
15258 fi
15259
15260 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
15261 cat >> confdefs.h <<\EOF
15262 #define wxUSE_DRAG_AND_DROP 1
15263 EOF
15264
15265 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
15266 fi
15267
15268 fi
15269
15270 if test "$wxUSE_SPLINES" = "yes" ; then
15271 cat >> confdefs.h <<\EOF
15272 #define wxUSE_SPLINES 1
15273 EOF
15274
15275 fi
15276
15277
15278 if test "$wxUSE_ACCEL" = "yes"; then
15279 cat >> confdefs.h <<\EOF
15280 #define wxUSE_ACCEL 1
15281 EOF
15282
15283 fi
15284
15285 if test "$wxUSE_CARET" = "yes"; then
15286 cat >> confdefs.h <<\EOF
15287 #define wxUSE_CARET 1
15288 EOF
15289
15290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
15291 fi
15292
15293 if test "$wxUSE_COMBOBOX" = "yes"; then
15294 cat >> confdefs.h <<\EOF
15295 #define wxUSE_COMBOBOX 1
15296 EOF
15297
15298 fi
15299
15300 if test "$wxUSE_CHOICE" = "yes"; then
15301 cat >> confdefs.h <<\EOF
15302 #define wxUSE_CHOICE 1
15303 EOF
15304
15305 fi
15306
15307 if test "$wxUSE_BMPBUTTON" = "yes"; then
15308 cat >> confdefs.h <<\EOF
15309 #define wxUSE_BMPBUTTON 1
15310 EOF
15311
15312 fi
15313
15314 if test "$wxUSE_CHECKBOX" = "yes"; then
15315 cat >> confdefs.h <<\EOF
15316 #define wxUSE_CHECKBOX 1
15317 EOF
15318
15319 fi
15320
15321 if test "$wxUSE_CHECKLST" = "yes"; then
15322 cat >> confdefs.h <<\EOF
15323 #define wxUSE_CHECKLISTBOX 1
15324 EOF
15325
15326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
15327 fi
15328
15329 if test "$wxUSE_GAUGE" = "yes"; then
15330 cat >> confdefs.h <<\EOF
15331 #define wxUSE_GAUGE 1
15332 EOF
15333
15334 fi
15335
15336 if test "$wxUSE_NEW_GRID" = "yes"; then
15337 wxUSE_GRID="yes"
15338 cat >> confdefs.h <<\EOF
15339 #define wxUSE_NEW_GRID 1
15340 EOF
15341
15342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
15343 fi
15344
15345 if test "$wxUSE_GRID" = "yes"; then
15346 cat >> confdefs.h <<\EOF
15347 #define wxUSE_GRID 1
15348 EOF
15349
15350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
15351 fi
15352
15353 if test "$wxUSE_IMAGLIST" = "yes"; then
15354 cat >> confdefs.h <<\EOF
15355 #define wxUSE_IMAGLIST 1
15356 EOF
15357
15358 fi
15359
15360 if test "$wxUSE_LISTBOX" = "yes"; then
15361 cat >> confdefs.h <<\EOF
15362 #define wxUSE_LISTBOX 1
15363 EOF
15364
15365 fi
15366
15367 if test "$wxUSE_LISTCTRL" = "yes"; then
15368 if test "$wxUSE_IMAGLIST" = "yes"; then
15369 cat >> confdefs.h <<\EOF
15370 #define wxUSE_LISTCTRL 1
15371 EOF
15372
15373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
15374 else
15375 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
15376 fi
15377 fi
15378
15379 if test "$wxUSE_NOTEBOOK" = "yes"; then
15380 cat >> confdefs.h <<\EOF
15381 #define wxUSE_NOTEBOOK 1
15382 EOF
15383
15384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
15385 fi
15386
15387 if test "$wxUSE_RADIOBOX" = "yes"; then
15388 cat >> confdefs.h <<\EOF
15389 #define wxUSE_RADIOBOX 1
15390 EOF
15391
15392 fi
15393
15394 if test "$wxUSE_RADIOBTN" = "yes"; then
15395 cat >> confdefs.h <<\EOF
15396 #define wxUSE_RADIOBTN 1
15397 EOF
15398
15399 fi
15400
15401 if test "$wxUSE_SASH" = "yes"; then
15402 cat >> confdefs.h <<\EOF
15403 #define wxUSE_SASH 1
15404 EOF
15405
15406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
15407 fi
15408
15409 if test "$wxUSE_SCROLLBAR" = "yes"; then
15410 cat >> confdefs.h <<\EOF
15411 #define wxUSE_SCROLLBAR 1
15412 EOF
15413
15414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
15415 fi
15416
15417 if test "$wxUSE_SLIDER" = "yes"; then
15418 cat >> confdefs.h <<\EOF
15419 #define wxUSE_SLIDER 1
15420 EOF
15421
15422 fi
15423
15424 if test "$wxUSE_SPINBTN" = "yes"; then
15425 cat >> confdefs.h <<\EOF
15426 #define wxUSE_SPINBTN 1
15427 EOF
15428
15429 fi
15430
15431 if test "$wxUSE_SPINCTRL" = "yes"; then
15432 cat >> confdefs.h <<\EOF
15433 #define wxUSE_SPINCTRL 1
15434 EOF
15435
15436 fi
15437
15438 if test "$wxUSE_SPLITTER" = "yes"; then
15439 cat >> confdefs.h <<\EOF
15440 #define wxUSE_SPLITTER 1
15441 EOF
15442
15443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
15444 fi
15445
15446 if test "$wxUSE_STATBMP" = "yes"; then
15447 cat >> confdefs.h <<\EOF
15448 #define wxUSE_STATBMP 1
15449 EOF
15450
15451 fi
15452
15453 if test "$wxUSE_STATBOX" = "yes"; then
15454 cat >> confdefs.h <<\EOF
15455 #define wxUSE_STATBOX 1
15456 EOF
15457
15458 fi
15459
15460 if test "$wxUSE_STATLINE" = "yes"; then
15461 if test "$wxUSE_WINE" = 1 ; then
15462 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
15463 else
15464 cat >> confdefs.h <<\EOF
15465 #define wxUSE_STATLINE 1
15466 EOF
15467
15468 fi
15469 fi
15470
15471 if test "$wxUSE_STATUSBAR" = "yes"; then
15472 cat >> confdefs.h <<\EOF
15473 #define wxUSE_STATUSBAR 1
15474 EOF
15475
15476
15477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
15478 fi
15479
15480 if test "$wxUSE_TABDIALOG" = "yes"; then
15481 cat >> confdefs.h <<\EOF
15482 #define wxUSE_TAB_DIALOG 1
15483 EOF
15484
15485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15486 fi
15487
15488 if test "$wxUSE_TOGGLEBTN" = "yes"; then
15489 cat >> confdefs.h <<\EOF
15490 #define wxUSE_TOGGLEBTN 1
15491 EOF
15492
15493 fi
15494
15495 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
15496 cat >> confdefs.h <<\EOF
15497 #define wxUSE_TOOLBAR_SIMPLE 1
15498 EOF
15499
15500 wxUSE_TOOLBAR="yes"
15501 fi
15502
15503 if test "$wxUSE_TOOLBAR" = "yes"; then
15504 cat >> confdefs.h <<\EOF
15505 #define wxUSE_TOOLBAR 1
15506 EOF
15507
15508
15509 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15510 wxUSE_TOOLBAR_NATIVE="yes"
15511 fi
15512
15513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15514 fi
15515
15516 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
15517 cat >> confdefs.h <<\EOF
15518 #define wxUSE_TOOLBAR_NATIVE 1
15519 EOF
15520
15521 fi
15522
15523 if test "$wxUSE_TOOLTIPS" = "yes"; then
15524 if test "$wxUSE_MOTIF" = 1; then
15525 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
15526 else
15527 if test "$wxUSE_WINE" = 1; then
15528 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
15529 else
15530 cat >> confdefs.h <<\EOF
15531 #define wxUSE_TOOLTIPS 1
15532 EOF
15533
15534 fi
15535 fi
15536 fi
15537
15538 if test "$wxUSE_TREECTRL" = "yes"; then
15539 if test "$wxUSE_IMAGLIST" = "yes"; then
15540 cat >> confdefs.h <<\EOF
15541 #define wxUSE_TREECTRL 1
15542 EOF
15543
15544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15545 else
15546 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
15547 fi
15548 fi
15549
15550
15551
15552 if test "$wxUSE_DIRDLG" = "yes"; then
15553 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15554 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15555 else
15556 if test "$wxUSE_TREECTRL" != "yes"; then
15557 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15558 else
15559 cat >> confdefs.h <<\EOF
15560 #define wxUSE_DIRDLG 1
15561 EOF
15562
15563 fi
15564 fi
15565 fi
15566
15567 if test "$wxUSE_TEXTDLG" = "yes"; then
15568 cat >> confdefs.h <<\EOF
15569 #define wxUSE_TEXTDLG 1
15570 EOF
15571
15572 fi
15573
15574 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15575 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15576 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15577 else
15578 cat >> confdefs.h <<\EOF
15579 #define wxUSE_STARTUP_TIPS 1
15580 EOF
15581
15582 fi
15583 fi
15584
15585 if test "$wxUSE_PROGRESSDLG" = "yes"; then
15586 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15587 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15588 else
15589 cat >> confdefs.h <<\EOF
15590 #define wxUSE_PROGRESSDLG 1
15591 EOF
15592
15593 fi
15594 fi
15595
15596 if test "$wxUSE_MINIFRAME" = "yes"; then
15597 cat >> confdefs.h <<\EOF
15598 #define wxUSE_MINIFRAME 1
15599 EOF
15600
15601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15602 fi
15603
15604 if test "$wxUSE_HTML" = "yes"; then
15605 cat >> confdefs.h <<\EOF
15606 #define wxUSE_HTML 1
15607 EOF
15608
15609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15610 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15611 fi
15612
15613 if test "$wxUSE_VALIDATORS" = "yes"; then
15614 cat >> confdefs.h <<\EOF
15615 #define wxUSE_VALIDATORS 1
15616 EOF
15617
15618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15619 fi
15620
15621 if test "$wxUSE_IMAGE" = "yes" ; then
15622 cat >> confdefs.h <<\EOF
15623 #define wxUSE_IMAGE 1
15624 EOF
15625
15626 fi
15627
15628 if test "$wxUSE_GIF" = "yes" ; then
15629 cat >> confdefs.h <<\EOF
15630 #define wxUSE_GIF 1
15631 EOF
15632
15633 fi
15634
15635 if test "$wxUSE_PCX" = "yes" ; then
15636 cat >> confdefs.h <<\EOF
15637 #define wxUSE_PCX 1
15638 EOF
15639
15640 fi
15641
15642 if test "$wxUSE_PNM" = "yes" ; then
15643 cat >> confdefs.h <<\EOF
15644 #define wxUSE_PNM 1
15645 EOF
15646
15647 fi
15648
15649 if test "$wxUSE_XPM" = "yes" ; then
15650 cat >> confdefs.h <<\EOF
15651 #define wxUSE_XPM 1
15652 EOF
15653
15654 fi
15655
15656
15657 if test "$cross_compiling" = "yes"; then
15658 OSINFO="\"$host\""
15659 else
15660 OSINFO=`uname -s -r -m`
15661 OSINFO="\"$OSINFO\""
15662 fi
15663
15664 cat >> confdefs.h <<EOF
15665 #define WXWIN_OS_DESCRIPTION $OSINFO
15666 EOF
15667
15668
15669
15670 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15671 OPENGL_LIBS="$OPENGL_LINK"
15672
15673 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
15674 if test "$USE_MAC" = 1 ; then
15675 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
15676 fi
15677 if test "$wxUSE_GUI" = "yes"; then
15678 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
15679 fi
15680
15681 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15682
15683 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
15684
15685 if test "$wxUSE_GTK" = 1; then
15686 WXCONFIG_INCLUDE=""
15687 else
15688 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15689 fi
15690
15691 if test "$GXX" = yes ; then
15692 CXXWARNINGS="-Wall"
15693 fi
15694 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15695
15696 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
15697 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15698
15699 LDFLAGS="$LDFLAGS $PROFILE"
15700
15701 if test "$wxUSE_GUI" = "yes"; then
15702
15703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15704 drawing dynamic event font fractal image menu \
15705 minimal richedit"
15706
15707 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
15708 else
15709 SAMPLES_SUBDIRS=""
15710 fi
15711
15712 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
15806 echo "configure:15807: checking whether ${MAKE-make} sets \${MAKE}" >&5
15807 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15808 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15809 echo $ac_n "(cached) $ac_c" 1>&6
15810 else
15811 cat > conftestmake <<\EOF
15812 all:
15813 @echo 'ac_maketemp="${MAKE}"'
15814 EOF
15815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15816 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15817 if test -n "$ac_maketemp"; then
15818 eval ac_cv_prog_make_${ac_make}_set=yes
15819 else
15820 eval ac_cv_prog_make_${ac_make}_set=no
15821 fi
15822 rm -f conftestmake
15823 fi
15824 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15825 echo "$ac_t""yes" 1>&6
15826 SET_MAKE=
15827 else
15828 echo "$ac_t""no" 1>&6
15829 SET_MAKE="MAKE=${MAKE-make}"
15830 fi
15831
15832
15833 if test -d include; then
15834 if test -d include/wx; then
15835 if test -d include/wx/${TOOLKIT_DIR}; then
15836 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15837 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15838 fi
15839 fi
15840 fi
15841 fi
15842
15843
15844
15845 if test "$wxUSE_GUI" = "yes"; then
15846 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
15847 wx_cv_path_ifs=$PATH_IFS
15848 wx_cv_program_ext=$PROGRAM_EXT
15849 wx_cv_target_library=$WX_TARGET_LIBRARY
15850 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
15851 subdirs="demos samples utils contrib"
15852
15853 fi
15854
15855 trap '' 1 2 15
15856 cat > confcache <<\EOF
15857 # This file is a shell script that caches the results of configure
15858 # tests run on this system so they can be shared between configure
15859 # scripts and configure runs. It is not useful on other systems.
15860 # If it contains results you don't want to keep, you may remove or edit it.
15861 #
15862 # By default, configure uses ./config.cache as the cache file,
15863 # creating it if it does not exist already. You can give configure
15864 # the --cache-file=FILE option to use a different cache file; that is
15865 # what configure does when it calls configure scripts in
15866 # subdirectories, so they share the cache.
15867 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15868 # config.status only pays attention to the cache file if you give it the
15869 # --recheck option to rerun configure.
15870 #
15871 EOF
15872 # The following way of writing the cache mishandles newlines in values,
15873 # but we know of no workaround that is simple, portable, and efficient.
15874 # So, don't put newlines in cache variables' values.
15875 # Ultrix sh set writes to stderr and can't be redirected directly,
15876 # and sets the high bit in the cache file unless we assign to the vars.
15877 (set) 2>&1 |
15878 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15879 *ac_space=\ *)
15880 # `set' does not quote correctly, so add quotes (double-quote substitution
15881 # turns \\\\ into \\, and sed turns \\ into \).
15882 sed -n \
15883 -e "s/'/'\\\\''/g" \
15884 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15885 ;;
15886 *)
15887 # `set' quotes correctly as required by POSIX, so do not add quotes.
15888 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15889 ;;
15890 esac >> confcache
15891 if cmp -s $cache_file confcache; then
15892 :
15893 else
15894 if test -w $cache_file; then
15895 echo "updating cache $cache_file"
15896 cat confcache > $cache_file
15897 else
15898 echo "not updating unwritable cache $cache_file"
15899 fi
15900 fi
15901 rm -f confcache
15902
15903 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15904
15905 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15906 # Let make expand exec_prefix.
15907 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15908
15909 # Any assignment to VPATH causes Sun make to only execute
15910 # the first set of double-colon rules, so remove it if not needed.
15911 # If there is a colon in the path, we need to keep it.
15912 if test "x$srcdir" = x.; then
15913 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15914 fi
15915
15916 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15917
15918 DEFS=-DHAVE_CONFIG_H
15919
15920 # Without the "./", some shells look in PATH for config.status.
15921 : ${CONFIG_STATUS=./config.status}
15922
15923 echo creating $CONFIG_STATUS
15924 rm -f $CONFIG_STATUS
15925 cat > $CONFIG_STATUS <<EOF
15926 #! /bin/sh
15927 # Generated automatically by configure.
15928 # Run this file to recreate the current configuration.
15929 # This directory was configured as follows,
15930 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15931 #
15932 # $0 $ac_configure_args
15933 #
15934 # Compiler output produced by configure, useful for debugging
15935 # configure, is in ./config.log if it exists.
15936
15937 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15938 for ac_option
15939 do
15940 case "\$ac_option" in
15941 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15942 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15943 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15944 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15945 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15946 exit 0 ;;
15947 -help | --help | --hel | --he | --h)
15948 echo "\$ac_cs_usage"; exit 0 ;;
15949 *) echo "\$ac_cs_usage"; exit 1 ;;
15950 esac
15951 done
15952
15953 ac_given_srcdir=$srcdir
15954 ac_given_INSTALL="$INSTALL"
15955
15956 trap 'rm -fr `echo "
15957 wx-config
15958 src/make.env
15959 src/makeprog.env
15960 src/makelib.env
15961 Makefile
15962 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15963 EOF
15964 cat >> $CONFIG_STATUS <<EOF
15965
15966 # Protect against being on the right side of a sed subst in config.status.
15967 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15968 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15969 $ac_vpsub
15970 $extrasub
15971 s%@SHELL@%$SHELL%g
15972 s%@CFLAGS@%$CFLAGS%g
15973 s%@CPPFLAGS@%$CPPFLAGS%g
15974 s%@CXXFLAGS@%$CXXFLAGS%g
15975 s%@FFLAGS@%$FFLAGS%g
15976 s%@DEFS@%$DEFS%g
15977 s%@LDFLAGS@%$LDFLAGS%g
15978 s%@LIBS@%$LIBS%g
15979 s%@exec_prefix@%$exec_prefix%g
15980 s%@prefix@%$prefix%g
15981 s%@program_transform_name@%$program_transform_name%g
15982 s%@bindir@%$bindir%g
15983 s%@sbindir@%$sbindir%g
15984 s%@libexecdir@%$libexecdir%g
15985 s%@datadir@%$datadir%g
15986 s%@sysconfdir@%$sysconfdir%g
15987 s%@sharedstatedir@%$sharedstatedir%g
15988 s%@localstatedir@%$localstatedir%g
15989 s%@libdir@%$libdir%g
15990 s%@includedir@%$includedir%g
15991 s%@oldincludedir@%$oldincludedir%g
15992 s%@infodir@%$infodir%g
15993 s%@mandir@%$mandir%g
15994 s%@host@%$host%g
15995 s%@host_alias@%$host_alias%g
15996 s%@host_cpu@%$host_cpu%g
15997 s%@host_vendor@%$host_vendor%g
15998 s%@host_os@%$host_os%g
15999 s%@target@%$target%g
16000 s%@target_alias@%$target_alias%g
16001 s%@target_cpu@%$target_cpu%g
16002 s%@target_vendor@%$target_vendor%g
16003 s%@target_os@%$target_os%g
16004 s%@build@%$build%g
16005 s%@build_alias@%$build_alias%g
16006 s%@build_cpu@%$build_cpu%g
16007 s%@build_vendor@%$build_vendor%g
16008 s%@build_os@%$build_os%g
16009 s%@CC@%$CC%g
16010 s%@CPP@%$CPP%g
16011 s%@CXX@%$CXX%g
16012 s%@CXXCPP@%$CXXCPP%g
16013 s%@RANLIB@%$RANLIB%g
16014 s%@AR@%$AR%g
16015 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16016 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16017 s%@INSTALL_DATA@%$INSTALL_DATA%g
16018 s%@STRIP@%$STRIP%g
16019 s%@YACC@%$YACC%g
16020 s%@LEX@%$LEX%g
16021 s%@LEXLIB@%$LEXLIB%g
16022 s%@LN_S@%$LN_S%g
16023 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
16024 s%@GTK_CONFIG@%$GTK_CONFIG%g
16025 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
16026 s%@GTK_LIBS@%$GTK_LIBS%g
16027 s%@X_CFLAGS@%$X_CFLAGS%g
16028 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16029 s%@X_LIBS@%$X_LIBS%g
16030 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16031 s%@REZ@%$REZ%g
16032 s%@DEREZ@%$DEREZ%g
16033 s%@LEX_STEM@%$LEX_STEM%g
16034 s%@PATH_IFS@%$PATH_IFS%g
16035 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
16036 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
16037 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
16038 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
16039 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
16040 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
16041 s%@WX_LIBRARY@%$WX_LIBRARY%g
16042 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
16043 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
16044 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
16045 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
16046 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
16047 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
16048 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
16049 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
16050 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
16051 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
16052 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
16053 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
16054 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
16055 s%@WX_ALL@%$WX_ALL%g
16056 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
16057 s%@SHARED_LD@%$SHARED_LD%g
16058 s%@PIC_FLAG@%$PIC_FLAG%g
16059 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
16060 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
16061 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
16062 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
16063 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
16064 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
16065 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
16066 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
16067 s%@USE_GUI@%$USE_GUI%g
16068 s%@AFMINSTALL@%$AFMINSTALL%g
16069 s%@TOOLKIT@%$TOOLKIT%g
16070 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
16071 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
16072 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
16073 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
16074 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
16075 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
16076 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
16077 s%@GUIDIST@%$GUIDIST%g
16078 s%@PORT_FILES@%$PORT_FILES%g
16079 s%@DISTDIR@%$DISTDIR%g
16080 s%@RPM_SPEC@%$RPM_SPEC%g
16081 s%@RPM_FILES@%$RPM_FILES%g
16082 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
16083 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
16084 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
16085 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
16086 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
16087 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
16088 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
16089 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
16090 s%@EXTRADEFS@%$EXTRADEFS%g
16091 s%@LD_LIBS@%$LD_LIBS%g
16092 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
16093 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
16094 s%@RESPROGRAM@%$RESPROGRAM%g
16095 s%@RESCOMP@%$RESCOMP%g
16096 s%@RESFLAGS@%$RESFLAGS%g
16097 s%@REZFLAGS@%$REZFLAGS%g
16098 s%@DEREZFLAGS@%$DEREZFLAGS%g
16099 s%@LIBWXMACRES@%$LIBWXMACRES%g
16100 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
16101 s%@DLLTOOL@%$DLLTOOL%g
16102 s%@AS@%$AS%g
16103 s%@NM@%$NM%g
16104 s%@LD@%$LD%g
16105 s%@MAKEINFO@%$MAKEINFO%g
16106 s%@SET_MAKE@%$SET_MAKE%g
16107 s%@subdirs@%$subdirs%g
16108
16109 CEOF
16110 EOF
16111
16112 cat >> $CONFIG_STATUS <<\EOF
16113
16114 # Split the substitutions into bite-sized pieces for seds with
16115 # small command number limits, like on Digital OSF/1 and HP-UX.
16116 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16117 ac_file=1 # Number of current file.
16118 ac_beg=1 # First line for current file.
16119 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16120 ac_more_lines=:
16121 ac_sed_cmds=""
16122 while $ac_more_lines; do
16123 if test $ac_beg -gt 1; then
16124 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16125 else
16126 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16127 fi
16128 if test ! -s conftest.s$ac_file; then
16129 ac_more_lines=false
16130 rm -f conftest.s$ac_file
16131 else
16132 if test -z "$ac_sed_cmds"; then
16133 ac_sed_cmds="sed -f conftest.s$ac_file"
16134 else
16135 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16136 fi
16137 ac_file=`expr $ac_file + 1`
16138 ac_beg=$ac_end
16139 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16140 fi
16141 done
16142 if test -z "$ac_sed_cmds"; then
16143 ac_sed_cmds=cat
16144 fi
16145 EOF
16146
16147 cat >> $CONFIG_STATUS <<EOF
16148
16149 CONFIG_FILES=\${CONFIG_FILES-"wx-config
16150 src/make.env
16151 src/makeprog.env
16152 src/makelib.env
16153 Makefile
16154 "}
16155 EOF
16156 cat >> $CONFIG_STATUS <<\EOF
16157 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16159 case "$ac_file" in
16160 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16161 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16162 *) ac_file_in="${ac_file}.in" ;;
16163 esac
16164
16165 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16166
16167 # Remove last slash and all that follows it. Not all systems have dirname.
16168 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16169 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16170 # The file is in a subdirectory.
16171 test ! -d "$ac_dir" && mkdir "$ac_dir"
16172 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16173 # A "../" for each directory in $ac_dir_suffix.
16174 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16175 else
16176 ac_dir_suffix= ac_dots=
16177 fi
16178
16179 case "$ac_given_srcdir" in
16180 .) srcdir=.
16181 if test -z "$ac_dots"; then top_srcdir=.
16182 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16183 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16184 *) # Relative path.
16185 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16186 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16187 esac
16188
16189 case "$ac_given_INSTALL" in
16190 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16191 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16192 esac
16193
16194 echo creating "$ac_file"
16195 rm -f "$ac_file"
16196 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16197 case "$ac_file" in
16198 *Makefile*) ac_comsub="1i\\
16199 # $configure_input" ;;
16200 *) ac_comsub= ;;
16201 esac
16202
16203 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16204 sed -e "$ac_comsub
16205 s%@configure_input@%$configure_input%g
16206 s%@srcdir@%$srcdir%g
16207 s%@top_srcdir@%$top_srcdir%g
16208 s%@INSTALL@%$INSTALL%g
16209 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16210 fi; done
16211 rm -f conftest.s*
16212
16213 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16214 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16215 #
16216 # ac_d sets the value in "#define NAME VALUE" lines.
16217 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16218 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16219 ac_dC='\3'
16220 ac_dD='%g'
16221 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16222 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16223 ac_uB='\([ ]\)%\1#\2define\3'
16224 ac_uC=' '
16225 ac_uD='\4%g'
16226 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16227 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16228 ac_eB='$%\1#\2define\3'
16229 ac_eC=' '
16230 ac_eD='%g'
16231
16232 if test "${CONFIG_HEADERS+set}" != set; then
16233 EOF
16234 cat >> $CONFIG_STATUS <<EOF
16235 CONFIG_HEADERS="setup.h:setup.h.in"
16236 EOF
16237 cat >> $CONFIG_STATUS <<\EOF
16238 fi
16239 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16241 case "$ac_file" in
16242 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16243 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16244 *) ac_file_in="${ac_file}.in" ;;
16245 esac
16246
16247 echo creating $ac_file
16248
16249 rm -f conftest.frag conftest.in conftest.out
16250 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16251 cat $ac_file_inputs > conftest.in
16252
16253 EOF
16254
16255 # Transform confdefs.h into a sed script conftest.vals that substitutes
16256 # the proper values into config.h.in to produce config.h. And first:
16257 # Protect against being on the right side of a sed subst in config.status.
16258 # Protect against being in an unquoted here document in config.status.
16259 rm -f conftest.vals
16260 cat > conftest.hdr <<\EOF
16261 s/[\\&%]/\\&/g
16262 s%[\\$`]%\\&%g
16263 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16264 s%ac_d%ac_u%gp
16265 s%ac_u%ac_e%gp
16266 EOF
16267 sed -n -f conftest.hdr confdefs.h > conftest.vals
16268 rm -f conftest.hdr
16269
16270 # This sed command replaces #undef with comments. This is necessary, for
16271 # example, in the case of _POSIX_SOURCE, which is predefined and required
16272 # on some systems where configure will not decide to define it.
16273 cat >> conftest.vals <<\EOF
16274 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16275 EOF
16276
16277 # Break up conftest.vals because some shells have a limit on
16278 # the size of here documents, and old seds have small limits too.
16279
16280 rm -f conftest.tail
16281 while :
16282 do
16283 ac_lines=`grep -c . conftest.vals`
16284 # grep -c gives empty output for an empty file on some AIX systems.
16285 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16286 # Write a limited-size here document to conftest.frag.
16287 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16288 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16289 echo 'CEOF
16290 sed -f conftest.frag conftest.in > conftest.out
16291 rm -f conftest.in
16292 mv conftest.out conftest.in
16293 ' >> $CONFIG_STATUS
16294 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16295 rm -f conftest.vals
16296 mv conftest.tail conftest.vals
16297 done
16298 rm -f conftest.vals
16299
16300 cat >> $CONFIG_STATUS <<\EOF
16301 rm -f conftest.frag conftest.h
16302 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16303 cat conftest.in >> conftest.h
16304 rm -f conftest.in
16305 if cmp -s $ac_file conftest.h 2>/dev/null; then
16306 echo "$ac_file is unchanged"
16307 rm -f conftest.h
16308 else
16309 # Remove last slash and all that follows it. Not all systems have dirname.
16310 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16311 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16312 # The file is in a subdirectory.
16313 test ! -d "$ac_dir" && mkdir "$ac_dir"
16314 fi
16315 rm -f $ac_file
16316 mv conftest.h $ac_file
16317 fi
16318 fi; done
16319
16320 EOF
16321 cat >> $CONFIG_STATUS <<EOF
16322
16323 TOOLKIT_DIR="${TOOLKIT_DIR}"
16324 TOOLKIT_NAME="${TOOLKIT_NAME}"
16325 LN_S="${LN_S}"
16326
16327
16328 EOF
16329 cat >> $CONFIG_STATUS <<\EOF
16330
16331 chmod +x wx-config
16332 mv wx-config wx${TOOLKIT_NAME}-config
16333 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
16334
16335
16336 if test ! -d lib; then
16337 mkdir lib
16338 fi
16339 if test ! -d lib/wx; then
16340 mkdir lib/wx
16341 fi
16342 if test ! -d lib/wx/include; then
16343 mkdir lib/wx/include
16344 fi
16345 if test ! -d lib/wx/include/wx; then
16346 mkdir lib/wx/include/wx
16347 fi
16348 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
16349 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
16350 fi
16351 if test -f setup.h; then
16352 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
16353 fi
16354
16355
16356 if test ! -d include; then
16357 mkdir include
16358 fi
16359 if test ! -d include/wx; then
16360 mkdir include/wx
16361 fi
16362 if test ! -d include/wx/${TOOLKIT_DIR}; then
16363 mkdir include/wx/${TOOLKIT_DIR}
16364 fi
16365 if test -f setup.h; then
16366 cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h
16367 fi
16368
16369
16370 exit 0
16371 EOF
16372 chmod +x $CONFIG_STATUS
16373 rm -fr confdefs* $ac_clean_files
16374 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16375
16376 if test "$no_recursion" != yes; then
16377
16378 # Remove --cache-file and --srcdir arguments so they do not pile up.
16379 ac_sub_configure_args=
16380 ac_prev=
16381 for ac_arg in $ac_configure_args; do
16382 if test -n "$ac_prev"; then
16383 ac_prev=
16384 continue
16385 fi
16386 case "$ac_arg" in
16387 -cache-file | --cache-file | --cache-fil | --cache-fi \
16388 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16389 ac_prev=cache_file ;;
16390 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16391 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
16392 ;;
16393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16394 ac_prev=srcdir ;;
16395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16396 ;;
16397 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16398 esac
16399 done
16400
16401 for ac_config_dir in demos samples utils contrib; do
16402
16403 # Do not complain, so a configure script can configure whichever
16404 # parts of a large source tree are present.
16405 if test ! -d $srcdir/$ac_config_dir; then
16406 continue
16407 fi
16408
16409 echo configuring in $ac_config_dir
16410
16411 case "$srcdir" in
16412 .) ;;
16413 *)
16414 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
16415 else
16416 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
16417 fi
16418 ;;
16419 esac
16420
16421 ac_popdir=`pwd`
16422 cd $ac_config_dir
16423
16424 # A "../" for each directory in /$ac_config_dir.
16425 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
16426
16427 case "$srcdir" in
16428 .) # No --srcdir option. We are building in place.
16429 ac_sub_srcdir=$srcdir ;;
16430 /*) # Absolute path.
16431 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
16432 *) # Relative path.
16433 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
16434 esac
16435
16436 # Check for guested configure; otherwise get Cygnus style configure.
16437 if test -f $ac_sub_srcdir/configure; then
16438 ac_sub_configure=$ac_sub_srcdir/configure
16439 elif test -f $ac_sub_srcdir/configure.in; then
16440 ac_sub_configure=$ac_configure
16441 else
16442 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
16443 ac_sub_configure=
16444 fi
16445
16446 # The recursion is here.
16447 if test -n "$ac_sub_configure"; then
16448
16449 # Make the cache file name correct relative to the subdirectory.
16450 case "$cache_file" in
16451 /*) ac_sub_cache_file=$cache_file ;;
16452 *) # Relative path.
16453 ac_sub_cache_file="$ac_dots$cache_file" ;;
16454 esac
16455 case "$ac_given_INSTALL" in
16456 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16457 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16458 esac
16459
16460 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
16461 # The eval makes quoting arguments work.
16462 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16463 then :
16464 else
16465 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16466 fi
16467 fi
16468
16469 cd $ac_popdir
16470 done
16471 fi
16472
16473