]> git.saurik.com Git - wxWidgets.git/blob - configure
oops, fixed fatal bug in new HTML parsing code (I wonder why it didn't crash when...
[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 # Configure paths for GTK+
40 # Owen Taylor 97-11-3
41
42
43
44
45
46
47 # Guess values for system-dependent variables and create Makefiles.
48 # Generated automatically using autoconf version 2.13
49 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50 #
51 # This configure script is free software; the Free Software Foundation
52 # gives unlimited permission to copy, distribute and modify it.
53
54 # Defaults:
55 ac_help=
56 ac_default_prefix=/usr/local
57 # Any additions from configure.in:
58 ac_help="$ac_help
59 --enable-gui use GUI classes"
60 ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62 ac_help="$ac_help
63 --with-gtk use GTK+"
64 ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66 ac_help="$ac_help
67 --with-mac use Mac OS X"
68 ac_help="$ac_help
69 --with-wine use WINE"
70 ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72 ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74 ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76 ac_help="$ac_help
77 --with-mgl use MGL"
78 ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80 ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82 ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84 ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86 ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88 ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90 ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92 ac_help="$ac_help
93 --with-zlib use zlib for LZW compression"
94 ac_help="$ac_help
95 --with-odbc use the IODBC and wxODBC classes"
96 ac_help="$ac_help
97 --enable-shared create shared library code"
98 ac_help="$ac_help
99 --enable-burnt_name create set name in shared library "
100 ac_help="$ac_help
101 --enable-optimise create optimised code"
102 ac_help="$ac_help
103 --enable-debug same as debug_flag and debug_info"
104 ac_help="$ac_help
105 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
106 ac_help="$ac_help
107 --enable-debug_info create code with debugging information"
108 ac_help="$ac_help
109 --enable-debug_gdb create code with extra GDB debugging information"
110 ac_help="$ac_help
111 --enable-debug_cntxt use wxDebugContext"
112 ac_help="$ac_help
113 --enable-mem_tracing create code with memory tracing"
114 ac_help="$ac_help
115 --enable-profile create code with profiling information"
116 ac_help="$ac_help
117 --enable-no_rtti create code without RTTI information"
118 ac_help="$ac_help
119 --enable-no_exceptions create code without exceptions information"
120 ac_help="$ac_help
121 --enable-permissive compile code disregarding strict ANSI"
122 ac_help="$ac_help
123 --enable-no_deps create code without dependency information"
124 ac_help="$ac_help
125 --enable-compat20 enable wxWin 2.0 compatibility"
126 ac_help="$ac_help
127 --enable-compat22 enable wxWin 2.2 compatibility"
128 ac_help="$ac_help
129 --enable-intl use internationalization system"
130 ac_help="$ac_help
131 --enable-config use wxConfig (and derived) classes"
132 ac_help="$ac_help
133 --enable-sockets use socket/network classes"
134 ac_help="$ac_help
135 --enable-ipc use interprocess communication (wxSocket etc.)"
136 ac_help="$ac_help
137 --enable-cmdline use wxCmdLineParser class"
138 ac_help="$ac_help
139 --enable-datetime use wxDateTime class"
140 ac_help="$ac_help
141 --enable-timedate use obsolete wxDate/wxTime classes"
142 ac_help="$ac_help
143 --enable-stopwatch use wxStopWatch class"
144 ac_help="$ac_help
145 --enable-dialupman use dialup network classes"
146 ac_help="$ac_help
147 --enable-apple_ieee use the Apple IEEE codec"
148 ac_help="$ac_help
149 --enable-timer use wxTimer class"
150 ac_help="$ac_help
151 --enable-wave use wxWave class"
152 ac_help="$ac_help
153 --enable-fraction use wxFraction class"
154 ac_help="$ac_help
155 --enable-dynlib use wxLibrary class for DLL loading"
156 ac_help="$ac_help
157 --enable-longlong use wxLongLong class"
158 ac_help="$ac_help
159 --enable-geometry use geometry class"
160 ac_help="$ac_help
161 --enable-log use logging system"
162 ac_help="$ac_help
163 --enable-streams use wxStream etc classes"
164 ac_help="$ac_help
165 --enable-file use wxFile classes"
166 ac_help="$ac_help
167 --enable-ffile use wxFFile classes"
168 ac_help="$ac_help
169 --enable-textfile use wxTextFile classes"
170 ac_help="$ac_help
171 --enable-fontmap use font encodings conversion classes"
172 ac_help="$ac_help
173 --enable-unicode compile wxString with Unicode support"
174 ac_help="$ac_help
175 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
176 ac_help="$ac_help
177 --enable-wxprintfv use wxWindows implementation of vprintf()"
178 ac_help="$ac_help
179 --enable-std_iostreams use standard C++ stream classes"
180 ac_help="$ac_help
181 --enable-filesystem use virtual file systems classes"
182 ac_help="$ac_help
183 --enable-fs_inet use virtual HTTP/FTP filesystems"
184 ac_help="$ac_help
185 --enable-fs_zip use virtual ZIP filesystems"
186 ac_help="$ac_help
187 --enable-zipstream use wxZipInputStream"
188 ac_help="$ac_help
189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
190 ac_help="$ac_help
191 --enable-snglinst use wxSingleInstanceChecker class"
192 ac_help="$ac_help
193 --enable-mimetypes use wxMimeTypesManager"
194 ac_help="$ac_help
195 --enable-threads use threads"
196 ac_help="$ac_help
197 --enable-serial use class serialization"
198 ac_help="$ac_help
199 --enable-docview use document view architecture"
200 ac_help="$ac_help
201 --enable-help use help (using external browser at present)"
202 ac_help="$ac_help
203 --enable-constraints use layout-constraints system"
204 ac_help="$ac_help
205 --enable-printarch use printing architecture"
206 ac_help="$ac_help
207 --enable-mdi use multiple document interface architecture"
208 ac_help="$ac_help
209 --enable-loggui use standard GUI logger"
210 ac_help="$ac_help
211 --enable-logwin use wxLogWindow"
212 ac_help="$ac_help
213 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
214 ac_help="$ac_help
215 --enable-prologio use Prolog IO library"
216 ac_help="$ac_help
217 --enable-resources use wxWindows resources"
218 ac_help="$ac_help
219 --enable-xresources use X resources for save (default for gtk+)"
220 ac_help="$ac_help
221 --enable-clipboard use wxClipboard classes"
222 ac_help="$ac_help
223 --enable-dnd use Drag'n'Drop classes"
224 ac_help="$ac_help
225 --enable-metafile use win32 metafiles"
226 ac_help="$ac_help
227 --enable-wxtree make wxTree library"
228 ac_help="$ac_help
229 --enable-controls use all usual controls"
230 ac_help="$ac_help
231 --enable-accel use accelerators"
232 ac_help="$ac_help
233 --enable-button use wxButton class"
234 ac_help="$ac_help
235 --enable-bmpbutton use wxBitmapButton class"
236 ac_help="$ac_help
237 --enable-calendar use wxCalendarCtrl class"
238 ac_help="$ac_help
239 --enable-caret use wxCaret class"
240 ac_help="$ac_help
241 --enable-checkbox use wxCheckBox class"
242 ac_help="$ac_help
243 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
244 ac_help="$ac_help
245 --enable-choice use wxChoice class"
246 ac_help="$ac_help
247 --enable-combobox use wxComboBox classes"
248 ac_help="$ac_help
249 --enable-gauge use wxGauge class"
250 ac_help="$ac_help
251 --enable-grid use wxGrid class"
252 ac_help="$ac_help
253 --enable-newgrid use new wxGrid class"
254 ac_help="$ac_help
255 --enable-imaglist use wxImageList class"
256 ac_help="$ac_help
257 --enable-listbox use wxListBox class"
258 ac_help="$ac_help
259 --enable-listctrl use wxListCtrl class"
260 ac_help="$ac_help
261 --enable-notebook use wxNotebook class"
262 ac_help="$ac_help
263 --enable-radiobox use wxRadioBox class"
264 ac_help="$ac_help
265 --enable-radiobtn use wxRadioButton class"
266 ac_help="$ac_help
267 --enable-sash use wxSashWindow class"
268 ac_help="$ac_help
269 --enable-scrollbar use wxScrollBar class and scrollable windows"
270 ac_help="$ac_help
271 --enable-slider use wxSlider class"
272 ac_help="$ac_help
273 --enable-spinbtn use wxSpinButton class"
274 ac_help="$ac_help
275 --enable-spinctrl use wxSpinCtrl class"
276 ac_help="$ac_help
277 --enable-splitter use wxSplitterWindow class"
278 ac_help="$ac_help
279 --enable-statbmp use wxStaticBitmap class"
280 ac_help="$ac_help
281 --enable-statbox use wxStaticBox class"
282 ac_help="$ac_help
283 --enable-statline use wxStaticLine class"
284 ac_help="$ac_help
285 --enable-stattext use wxStaticText class"
286 ac_help="$ac_help
287 --enable-statusbar use wxStatusBar class"
288 ac_help="$ac_help
289 --enable-tabdialog use wxTabControl class"
290 ac_help="$ac_help
291 --enable-textctrl use wxTextCtrl class"
292 ac_help="$ac_help
293 --enable-togglebtn use wxToggleButton class"
294 ac_help="$ac_help
295 --enable-toolbar use wxToolBar class"
296 ac_help="$ac_help
297 --enable-tbarnative use native wxToolBar class"
298 ac_help="$ac_help
299 --enable-tbarsmpl use wxToolBarSimple class"
300 ac_help="$ac_help
301 --enable-treectrl use wxTreeCtrl class"
302 ac_help="$ac_help
303 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
304 ac_help="$ac_help
305 --enable-choicedlg use wxChoiceDialog"
306 ac_help="$ac_help
307 --enable-coldlg use wxColourDialog"
308 ac_help="$ac_help
309 --enable-filedlg use wxFileDialog"
310 ac_help="$ac_help
311 --enable-fontdlg use wxFontDialog"
312 ac_help="$ac_help
313 --enable-dirdlg use wxDirDialog"
314 ac_help="$ac_help
315 --enable-msgdlg use wxMessageDialog"
316 ac_help="$ac_help
317 --enable-numberdlg use wxNumberEntryDialog"
318 ac_help="$ac_help
319 --enable-textdlg use wxTextDialog"
320 ac_help="$ac_help
321 --enable-tipdlg use startup tips"
322 ac_help="$ac_help
323 --enable-progressdlg use wxProgressDialog"
324 ac_help="$ac_help
325 --enable-wizarddlg use wxWizard"
326 ac_help="$ac_help
327 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
328 ac_help="$ac_help
329 --enable-miniframe use wxMiniFrame class"
330 ac_help="$ac_help
331 --enable-html use wxHTML sub-library"
332 ac_help="$ac_help
333 --enable-tooltips use wxToolTip class"
334 ac_help="$ac_help
335 --enable-splines use spline drawing code"
336 ac_help="$ac_help
337 --enable-validators use wxValidator and derived classes"
338 ac_help="$ac_help
339 --enable-busyinfo use wxBusyInfo"
340 ac_help="$ac_help
341 --enable-joystick compile in joystick support (Linux only)"
342 ac_help="$ac_help
343 --enable-metafiles use wxMetaFile (Windows only)"
344 ac_help="$ac_help
345 --enable-dragimage use wxDragImage"
346 ac_help="$ac_help
347 --enable-image use wxImage class"
348 ac_help="$ac_help
349 --enable-gif use gif images (GIF file format)"
350 ac_help="$ac_help
351 --enable-pcx use pcx images (PCX file format)"
352 ac_help="$ac_help
353 --enable-pnm use pnm images (PNM file format)"
354 ac_help="$ac_help
355 --enable-xpm use xpm images (XPM file format)"
356 ac_help="$ac_help
357 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
358 ac_help="$ac_help
359 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
360 ac_help="$ac_help
361 --disable-gtktest Do not try to compile and run a test GTK program"
362 ac_help="$ac_help
363 --with-x use the X Window System"
364
365 # Initialize some variables set by options.
366 # The variables have the same names as the options, with
367 # dashes changed to underlines.
368 build=NONE
369 cache_file=./config.cache
370 exec_prefix=NONE
371 host=NONE
372 no_create=
373 nonopt=NONE
374 no_recursion=
375 prefix=NONE
376 program_prefix=NONE
377 program_suffix=NONE
378 program_transform_name=s,x,x,
379 silent=
380 site=
381 srcdir=
382 target=NONE
383 verbose=
384 x_includes=NONE
385 x_libraries=NONE
386 bindir='${exec_prefix}/bin'
387 sbindir='${exec_prefix}/sbin'
388 libexecdir='${exec_prefix}/libexec'
389 datadir='${prefix}/share'
390 sysconfdir='${prefix}/etc'
391 sharedstatedir='${prefix}/com'
392 localstatedir='${prefix}/var'
393 libdir='${exec_prefix}/lib'
394 includedir='${prefix}/include'
395 oldincludedir='/usr/include'
396 infodir='${prefix}/info'
397 mandir='${prefix}/man'
398
399 # Initialize some other variables.
400 subdirs=
401 MFLAGS= MAKEFLAGS=
402 SHELL=${CONFIG_SHELL-/bin/sh}
403 # Maximum number of lines to put in a shell here document.
404 ac_max_here_lines=12
405
406 ac_prev=
407 for ac_option
408 do
409
410 # If the previous option needs an argument, assign it.
411 if test -n "$ac_prev"; then
412 eval "$ac_prev=\$ac_option"
413 ac_prev=
414 continue
415 fi
416
417 case "$ac_option" in
418 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
419 *) ac_optarg= ;;
420 esac
421
422 # Accept the important Cygnus configure options, so we can diagnose typos.
423
424 case "$ac_option" in
425
426 -bindir | --bindir | --bindi | --bind | --bin | --bi)
427 ac_prev=bindir ;;
428 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
429 bindir="$ac_optarg" ;;
430
431 -build | --build | --buil | --bui | --bu)
432 ac_prev=build ;;
433 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
434 build="$ac_optarg" ;;
435
436 -cache-file | --cache-file | --cache-fil | --cache-fi \
437 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
438 ac_prev=cache_file ;;
439 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
440 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
441 cache_file="$ac_optarg" ;;
442
443 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
444 ac_prev=datadir ;;
445 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
446 | --da=*)
447 datadir="$ac_optarg" ;;
448
449 -disable-* | --disable-*)
450 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
451 # Reject names that are not valid shell variable names.
452 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
453 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
454 fi
455 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
456 eval "enable_${ac_feature}=no" ;;
457
458 -enable-* | --enable-*)
459 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
460 # Reject names that are not valid shell variable names.
461 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
462 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
463 fi
464 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
465 case "$ac_option" in
466 *=*) ;;
467 *) ac_optarg=yes ;;
468 esac
469 eval "enable_${ac_feature}='$ac_optarg'" ;;
470
471 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
472 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
473 | --exec | --exe | --ex)
474 ac_prev=exec_prefix ;;
475 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
476 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
477 | --exec=* | --exe=* | --ex=*)
478 exec_prefix="$ac_optarg" ;;
479
480 -gas | --gas | --ga | --g)
481 # Obsolete; use --with-gas.
482 with_gas=yes ;;
483
484 -help | --help | --hel | --he)
485 # Omit some internal or obsolete options to make the list less imposing.
486 # This message is too long to be a string in the A/UX 3.1 sh.
487 cat << EOF
488 Usage: configure [options] [host]
489 Options: [defaults in brackets after descriptions]
490 Configuration:
491 --cache-file=FILE cache test results in FILE
492 --help print this message
493 --no-create do not create output files
494 --quiet, --silent do not print \`checking...' messages
495 --version print the version of autoconf that created configure
496 Directory and file names:
497 --prefix=PREFIX install architecture-independent files in PREFIX
498 [$ac_default_prefix]
499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
500 [same as prefix]
501 --bindir=DIR user executables in DIR [EPREFIX/bin]
502 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
503 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
504 --datadir=DIR read-only architecture-independent data in DIR
505 [PREFIX/share]
506 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
507 --sharedstatedir=DIR modifiable architecture-independent data in DIR
508 [PREFIX/com]
509 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
510 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
511 --includedir=DIR C header files in DIR [PREFIX/include]
512 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
513 --infodir=DIR info documentation in DIR [PREFIX/info]
514 --mandir=DIR man documentation in DIR [PREFIX/man]
515 --srcdir=DIR find the sources in DIR [configure dir or ..]
516 --program-prefix=PREFIX prepend PREFIX to installed program names
517 --program-suffix=SUFFIX append SUFFIX to installed program names
518 --program-transform-name=PROGRAM
519 run sed PROGRAM on installed program names
520 EOF
521 cat << EOF
522 Host type:
523 --build=BUILD configure for building on BUILD [BUILD=HOST]
524 --host=HOST configure for HOST [guessed]
525 --target=TARGET configure for TARGET [TARGET=HOST]
526 Features and packages:
527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
531 --x-includes=DIR X include files are in DIR
532 --x-libraries=DIR X library files are in DIR
533 EOF
534 if test -n "$ac_help"; then
535 echo "--enable and --with options recognized:$ac_help"
536 fi
537 exit 0 ;;
538
539 -host | --host | --hos | --ho)
540 ac_prev=host ;;
541 -host=* | --host=* | --hos=* | --ho=*)
542 host="$ac_optarg" ;;
543
544 -includedir | --includedir | --includedi | --included | --include \
545 | --includ | --inclu | --incl | --inc)
546 ac_prev=includedir ;;
547 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
548 | --includ=* | --inclu=* | --incl=* | --inc=*)
549 includedir="$ac_optarg" ;;
550
551 -infodir | --infodir | --infodi | --infod | --info | --inf)
552 ac_prev=infodir ;;
553 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
554 infodir="$ac_optarg" ;;
555
556 -libdir | --libdir | --libdi | --libd)
557 ac_prev=libdir ;;
558 -libdir=* | --libdir=* | --libdi=* | --libd=*)
559 libdir="$ac_optarg" ;;
560
561 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
562 | --libexe | --libex | --libe)
563 ac_prev=libexecdir ;;
564 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
565 | --libexe=* | --libex=* | --libe=*)
566 libexecdir="$ac_optarg" ;;
567
568 -localstatedir | --localstatedir | --localstatedi | --localstated \
569 | --localstate | --localstat | --localsta | --localst \
570 | --locals | --local | --loca | --loc | --lo)
571 ac_prev=localstatedir ;;
572 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
573 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
574 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
575 localstatedir="$ac_optarg" ;;
576
577 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
578 ac_prev=mandir ;;
579 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
580 mandir="$ac_optarg" ;;
581
582 -nfp | --nfp | --nf)
583 # Obsolete; use --without-fp.
584 with_fp=no ;;
585
586 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
587 | --no-cr | --no-c)
588 no_create=yes ;;
589
590 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
591 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
592 no_recursion=yes ;;
593
594 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
595 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
596 | --oldin | --oldi | --old | --ol | --o)
597 ac_prev=oldincludedir ;;
598 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
599 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
600 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
601 oldincludedir="$ac_optarg" ;;
602
603 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
604 ac_prev=prefix ;;
605 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
606 prefix="$ac_optarg" ;;
607
608 -program-prefix | --program-prefix | --program-prefi | --program-pref \
609 | --program-pre | --program-pr | --program-p)
610 ac_prev=program_prefix ;;
611 -program-prefix=* | --program-prefix=* | --program-prefi=* \
612 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
613 program_prefix="$ac_optarg" ;;
614
615 -program-suffix | --program-suffix | --program-suffi | --program-suff \
616 | --program-suf | --program-su | --program-s)
617 ac_prev=program_suffix ;;
618 -program-suffix=* | --program-suffix=* | --program-suffi=* \
619 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
620 program_suffix="$ac_optarg" ;;
621
622 -program-transform-name | --program-transform-name \
623 | --program-transform-nam | --program-transform-na \
624 | --program-transform-n | --program-transform- \
625 | --program-transform | --program-transfor \
626 | --program-transfo | --program-transf \
627 | --program-trans | --program-tran \
628 | --progr-tra | --program-tr | --program-t)
629 ac_prev=program_transform_name ;;
630 -program-transform-name=* | --program-transform-name=* \
631 | --program-transform-nam=* | --program-transform-na=* \
632 | --program-transform-n=* | --program-transform-=* \
633 | --program-transform=* | --program-transfor=* \
634 | --program-transfo=* | --program-transf=* \
635 | --program-trans=* | --program-tran=* \
636 | --progr-tra=* | --program-tr=* | --program-t=*)
637 program_transform_name="$ac_optarg" ;;
638
639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
640 | -silent | --silent | --silen | --sile | --sil)
641 silent=yes ;;
642
643 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
644 ac_prev=sbindir ;;
645 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
646 | --sbi=* | --sb=*)
647 sbindir="$ac_optarg" ;;
648
649 -sharedstatedir | --sharedstatedir | --sharedstatedi \
650 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
651 | --sharedst | --shareds | --shared | --share | --shar \
652 | --sha | --sh)
653 ac_prev=sharedstatedir ;;
654 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
655 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
656 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
657 | --sha=* | --sh=*)
658 sharedstatedir="$ac_optarg" ;;
659
660 -site | --site | --sit)
661 ac_prev=site ;;
662 -site=* | --site=* | --sit=*)
663 site="$ac_optarg" ;;
664
665 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
666 ac_prev=srcdir ;;
667 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
668 srcdir="$ac_optarg" ;;
669
670 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
671 | --syscon | --sysco | --sysc | --sys | --sy)
672 ac_prev=sysconfdir ;;
673 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
674 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
675 sysconfdir="$ac_optarg" ;;
676
677 -target | --target | --targe | --targ | --tar | --ta | --t)
678 ac_prev=target ;;
679 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
680 target="$ac_optarg" ;;
681
682 -v | -verbose | --verbose | --verbos | --verbo | --verb)
683 verbose=yes ;;
684
685 -version | --version | --versio | --versi | --vers)
686 echo "configure generated by autoconf version 2.13"
687 exit 0 ;;
688
689 -with-* | --with-*)
690 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
691 # Reject names that are not valid shell variable names.
692 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
693 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
694 fi
695 ac_package=`echo $ac_package| sed 's/-/_/g'`
696 case "$ac_option" in
697 *=*) ;;
698 *) ac_optarg=yes ;;
699 esac
700 eval "with_${ac_package}='$ac_optarg'" ;;
701
702 -without-* | --without-*)
703 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
704 # Reject names that are not valid shell variable names.
705 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
706 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
707 fi
708 ac_package=`echo $ac_package| sed 's/-/_/g'`
709 eval "with_${ac_package}=no" ;;
710
711 --x)
712 # Obsolete; use --with-x.
713 with_x=yes ;;
714
715 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
716 | --x-incl | --x-inc | --x-in | --x-i)
717 ac_prev=x_includes ;;
718 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
719 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
720 x_includes="$ac_optarg" ;;
721
722 -x-libraries | --x-libraries | --x-librarie | --x-librari \
723 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
724 ac_prev=x_libraries ;;
725 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
726 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
727 x_libraries="$ac_optarg" ;;
728
729 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
730 ;;
731
732 *)
733 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
734 echo "configure: warning: $ac_option: invalid host type" 1>&2
735 fi
736 if test "x$nonopt" != xNONE; then
737 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
738 fi
739 nonopt="$ac_option"
740 ;;
741
742 esac
743 done
744
745 if test -n "$ac_prev"; then
746 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
747 fi
748
749 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
750
751 # File descriptor usage:
752 # 0 standard input
753 # 1 file creation
754 # 2 errors and warnings
755 # 3 some systems may open it to /dev/tty
756 # 4 used on the Kubota Titan
757 # 6 checking for... messages and results
758 # 5 compiler messages saved in config.log
759 if test "$silent" = yes; then
760 exec 6>/dev/null
761 else
762 exec 6>&1
763 fi
764 exec 5>./config.log
765
766 echo "\
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
769 " 1>&5
770
771 # Strip out --no-create and --no-recursion so they do not pile up.
772 # Also quote any args containing shell metacharacters.
773 ac_configure_args=
774 for ac_arg
775 do
776 case "$ac_arg" in
777 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
778 | --no-cr | --no-c) ;;
779 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
780 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
781 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
782 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
783 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
784 esac
785 done
786
787 # NLS nuisances.
788 # Only set these to C if already set. These must not be set unconditionally
789 # because not all systems understand e.g. LANG=C (notably SCO).
790 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
791 # Non-C LC_CTYPE values break the ctype check.
792 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
793 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
794 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
795 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
796
797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
798 rm -rf conftest* confdefs.h
799 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
800 echo > confdefs.h
801
802 # A filename unique to this package, relative to the directory that
803 # configure is in, which we can look for to find out if srcdir is correct.
804 ac_unique_file=wx-config.in
805
806 # Find the source files, if location was not specified.
807 if test -z "$srcdir"; then
808 ac_srcdir_defaulted=yes
809 # Try the directory containing this script, then its parent.
810 ac_prog=$0
811 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
812 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
813 srcdir=$ac_confdir
814 if test ! -r $srcdir/$ac_unique_file; then
815 srcdir=..
816 fi
817 else
818 ac_srcdir_defaulted=no
819 fi
820 if test ! -r $srcdir/$ac_unique_file; then
821 if test "$ac_srcdir_defaulted" = yes; then
822 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
823 else
824 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
825 fi
826 fi
827 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
828
829 # Prefer explicitly selected file to automatically selected ones.
830 if test -z "$CONFIG_SITE"; then
831 if test "x$prefix" != xNONE; then
832 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
833 else
834 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
835 fi
836 fi
837 for ac_site_file in $CONFIG_SITE; do
838 if test -r "$ac_site_file"; then
839 echo "loading site script $ac_site_file"
840 . "$ac_site_file"
841 fi
842 done
843
844 if test -r "$cache_file"; then
845 echo "loading cache $cache_file"
846 . $cache_file
847 else
848 echo "creating cache $cache_file"
849 > $cache_file
850 fi
851
852 ac_ext=c
853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
854 ac_cpp='$CPP $CPPFLAGS'
855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
857 cross_compiling=$ac_cv_prog_cc_cross
858
859 ac_exeext=
860 ac_objext=o
861 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
862 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
863 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
864 ac_n= ac_c='
865 ' ac_t=' '
866 else
867 ac_n=-n ac_c= ac_t=
868 fi
869 else
870 ac_n= ac_c='\c' ac_t=
871 fi
872
873
874
875 ac_aux_dir=
876 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
877 if test -f $ac_dir/install-sh; then
878 ac_aux_dir=$ac_dir
879 ac_install_sh="$ac_aux_dir/install-sh -c"
880 break
881 elif test -f $ac_dir/install.sh; then
882 ac_aux_dir=$ac_dir
883 ac_install_sh="$ac_aux_dir/install.sh -c"
884 break
885 fi
886 done
887 if test -z "$ac_aux_dir"; then
888 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
889 fi
890 ac_config_guess=$ac_aux_dir/config.guess
891 ac_config_sub=$ac_aux_dir/config.sub
892 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
893
894
895 # Do some error checking and defaulting for the host and target type.
896 # The inputs are:
897 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
898 #
899 # The rules are:
900 # 1. You are not allowed to specify --host, --target, and nonopt at the
901 # same time.
902 # 2. Host defaults to nonopt.
903 # 3. If nonopt is not specified, then host defaults to the current host,
904 # as determined by config.guess.
905 # 4. Target and build default to nonopt.
906 # 5. If nonopt is not specified, then target and build default to host.
907
908 # The aliases save the names the user supplied, while $host etc.
909 # will get canonicalized.
910 case $host---$target---$nonopt in
911 NONE---*---* | *---NONE---* | *---*---NONE) ;;
912 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
913 esac
914
915
916 # Make sure we can run config.sub.
917 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
918 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
919 fi
920
921 echo $ac_n "checking host system type""... $ac_c" 1>&6
922 echo "configure:923: checking host system type" >&5
923
924 host_alias=$host
925 case "$host_alias" in
926 NONE)
927 case $nonopt in
928 NONE)
929 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
930 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
931 fi ;;
932 *) host_alias=$nonopt ;;
933 esac ;;
934 esac
935
936 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
937 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
938 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
939 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
940 echo "$ac_t""$host" 1>&6
941
942 echo $ac_n "checking target system type""... $ac_c" 1>&6
943 echo "configure:944: checking target system type" >&5
944
945 target_alias=$target
946 case "$target_alias" in
947 NONE)
948 case $nonopt in
949 NONE) target_alias=$host_alias ;;
950 *) target_alias=$nonopt ;;
951 esac ;;
952 esac
953
954 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
955 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
958 echo "$ac_t""$target" 1>&6
959
960 echo $ac_n "checking build system type""... $ac_c" 1>&6
961 echo "configure:962: checking build system type" >&5
962
963 build_alias=$build
964 case "$build_alias" in
965 NONE)
966 case $nonopt in
967 NONE) build_alias=$host_alias ;;
968 *) build_alias=$nonopt ;;
969 esac ;;
970 esac
971
972 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
973 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976 echo "$ac_t""$build" 1>&6
977
978 test "$host_alias" != "$target_alias" &&
979 test "$program_prefix$program_suffix$program_transform_name" = \
980 NONENONEs,x,x, &&
981 program_prefix=${target_alias}-
982
983
984
985 WX_MAJOR_VERSION_NUMBER=2
986 WX_MINOR_VERSION_NUMBER=3
987 WX_RELEASE_NUMBER=1
988
989 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
990 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
991
992 WX_CURRENT=0
993 WX_REVISION=0
994 WX_AGE=0
995
996
997
998 USE_UNIX=1
999 USE_WIN32=0
1000 USE_BEOS=0
1001 USE_MAC=0
1002
1003 USE_LINUX=
1004 USE_SGI=
1005 USE_HPUX=
1006 USE_SYSV=
1007 USE_SVR4=
1008 USE_AIX=
1009 USE_SUN=
1010 USE_SOLARIS=
1011 USE_SUNOS=
1012 USE_ALPHA=
1013 USE_OSF=
1014 USE_BSD=
1015 USE_FREEBSD=
1016 USE_OPENBSD=
1017 USE_NETBSD=
1018 USE_VMS=
1019 USE_ULTRIX=
1020 USE_CYGWIN=
1021 USE_MINGW=
1022 USE_DATA_GENERAL=
1023
1024 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1025
1026 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1027
1028 DEFAULT_wxUSE_GTK=0
1029 DEFAULT_wxUSE_MAC=0
1030 DEFAULT_wxUSE_MGL=0
1031 DEFAULT_wxUSE_MOTIF=0
1032 DEFAULT_wxUSE_MSW=0
1033 DEFAULT_wxUSE_PM=0
1034 DEFAULT_wxUSE_WINE=0
1035
1036 DEFAULT_DEFAULT_wxUSE_GTK=0
1037 DEFAULT_DEFAULT_wxUSE_MAC=0
1038 DEFAULT_DEFAULT_wxUSE_MGL=0
1039 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1040 DEFAULT_DEFAULT_wxUSE_MSW=0
1041 DEFAULT_DEFAULT_wxUSE_PM=0
1042 DEFAULT_DEFAULT_wxUSE_WINE=0
1043
1044 PROGRAM_EXT=
1045
1046 case "${host}" in
1047 *-hp-hpux* )
1048 USE_HPUX=1
1049 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1050 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1051 cat >> confdefs.h <<\EOF
1052 #define __HPUX__ 1
1053 EOF
1054
1055 ;;
1056 *-*-linux* )
1057 USE_LINUX=1
1058 cat >> confdefs.h <<\EOF
1059 #define __LINUX__ 1
1060 EOF
1061
1062 TMP=`uname -m`
1063 if test "x$TMP" = "xalpha"; then
1064 USE_ALPHA=1
1065 cat >> confdefs.h <<\EOF
1066 #define __ALPHA__ 1
1067 EOF
1068
1069 fi
1070 DEFAULT_DEFAULT_wxUSE_GTK=1
1071 ;;
1072 *-*-irix5* | *-*-irix6* )
1073 USE_SGI=1
1074 USE_SVR4=1
1075 cat >> confdefs.h <<\EOF
1076 #define __SGI__ 1
1077 EOF
1078
1079 cat >> confdefs.h <<\EOF
1080 #define __SVR4__ 1
1081 EOF
1082
1083 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1084 ;;
1085 *-*-solaris2* )
1086 USE_SUN=1
1087 USE_SOLARIS=1
1088 USE_SVR4=1
1089 cat >> confdefs.h <<\EOF
1090 #define __SUN__ 1
1091 EOF
1092
1093 cat >> confdefs.h <<\EOF
1094 #define __SOLARIS__ 1
1095 EOF
1096
1097 cat >> confdefs.h <<\EOF
1098 #define __SVR4__ 1
1099 EOF
1100
1101 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1102 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1103 ;;
1104 *-*-sunos4* )
1105 USE_SUN=1
1106 USE_SUNOS=1
1107 USE_BSD=1
1108 cat >> confdefs.h <<\EOF
1109 #define __SUN__ 1
1110 EOF
1111
1112 cat >> confdefs.h <<\EOF
1113 #define __SUNOS__ 1
1114 EOF
1115
1116 cat >> confdefs.h <<\EOF
1117 #define __BSD__ 1
1118 EOF
1119
1120 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1121 ;;
1122 *-*-freebsd*)
1123 USE_BSD=1
1124 USE_FREEBSD=1
1125 cat >> confdefs.h <<\EOF
1126 #define __FREEBSD__ 1
1127 EOF
1128
1129 cat >> confdefs.h <<\EOF
1130 #define __BSD__ 1
1131 EOF
1132
1133 DEFAULT_DEFAULT_wxUSE_GTK=1
1134 ;;
1135 *-*-openbsd*)
1136 USE_BSD=1
1137 USE_OPENBSD=1
1138 cat >> confdefs.h <<\EOF
1139 #define __FREEBSD__ 1
1140 EOF
1141
1142 cat >> confdefs.h <<\EOF
1143 #define __OPENBSD__ 1
1144 EOF
1145
1146 DEFAULT_DEFAULT_wxUSE_GTK=1
1147 ;;
1148 *-*-netbsd*)
1149 USE_BSD=1
1150 USE_NETBSD=1
1151 cat >> confdefs.h <<\EOF
1152 #define __FREEBSD__ 1
1153 EOF
1154
1155 cat >> confdefs.h <<\EOF
1156 #define __NETBSD__ 1
1157 EOF
1158
1159 DEFAULT_DEFAULT_wxUSE_GTK=1
1160 ;;
1161 *-*-osf* )
1162 USE_ALPHA=1
1163 USE_OSF=1
1164 cat >> confdefs.h <<\EOF
1165 #define __ALPHA__ 1
1166 EOF
1167
1168 cat >> confdefs.h <<\EOF
1169 #define __OSF__ 1
1170 EOF
1171
1172 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1173 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1174 ;;
1175 *-*-dgux5* )
1176 USE_ALPHA=1
1177 USE_SVR4=1
1178 cat >> confdefs.h <<\EOF
1179 #define __ALPHA__ 1
1180 EOF
1181
1182 cat >> confdefs.h <<\EOF
1183 #define __SVR4__ 1
1184 EOF
1185
1186 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1187 ;;
1188 *-*-sysv5* )
1189 USE_SYSV=1
1190 USE_SVR4=1
1191 cat >> confdefs.h <<\EOF
1192 #define __SYSV__ 1
1193 EOF
1194
1195 cat >> confdefs.h <<\EOF
1196 #define __SVR4__ 1
1197 EOF
1198
1199 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1200 ;;
1201 *-*-aix* )
1202 USE_AIX=1
1203 USE_SYSV=1
1204 USE_SVR4=1
1205 cat >> confdefs.h <<\EOF
1206 #define __AIX__ 1
1207 EOF
1208
1209 cat >> confdefs.h <<\EOF
1210 #define __SYSV__ 1
1211 EOF
1212
1213 cat >> confdefs.h <<\EOF
1214 #define __SVR4__ 1
1215 EOF
1216
1217 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1218 ;;
1219
1220 *-*-cygwin* | *-*-mingw32* )
1221 USE_UNIX=0
1222 USE_WIN32=1
1223 cat >> confdefs.h <<\EOF
1224 #define __WIN32__ 1
1225 EOF
1226
1227 cat >> confdefs.h <<\EOF
1228 #define __WIN95__ 1
1229 EOF
1230
1231 cat >> confdefs.h <<\EOF
1232 #define __WINDOWS__ 1
1233 EOF
1234
1235 cat >> confdefs.h <<\EOF
1236 #define __GNUWIN32__ 1
1237 EOF
1238
1239 cat >> confdefs.h <<\EOF
1240 #define STRICT 1
1241 EOF
1242
1243 cat >> confdefs.h <<\EOF
1244 #define WINVER 0x0400
1245 EOF
1246
1247 PROGRAM_EXT=".exe"
1248 DEFAULT_DEFAULT_wxUSE_MSW=1
1249 ;;
1250
1251 *-pc-os2_emx )
1252 cat >> confdefs.h <<\EOF
1253 #define __EMX__ 1
1254 EOF
1255
1256 PROGRAM_EXT=".exe"
1257 DEFAULT_DEFAULT_wxUSE_PM=1
1258 ;;
1259
1260 *-*-darwin* )
1261 USE_BSD=1
1262 USE_MAC=1
1263 cat >> confdefs.h <<\EOF
1264 #define __MAC__ 1
1265 EOF
1266
1267 cat >> confdefs.h <<\EOF
1268 #define __BSD__ 1
1269 EOF
1270
1271 cat >> confdefs.h <<\EOF
1272 #define __UNIX__ 1
1273 EOF
1274
1275 DEFAULT_DEFAULT_wxUSE_MAC=1
1276 ;;
1277
1278 *-*-beos* )
1279 USE_BEOS=1
1280 cat >> confdefs.h <<\EOF
1281 #define __BEOS__ 1
1282 EOF
1283
1284 ;;
1285
1286 *)
1287 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1288 esac
1289
1290 if test "$USE_UNIX" = 1 ; then
1291 wxUSE_UNIX=yes
1292 cat >> confdefs.h <<\EOF
1293 #define __UNIX__ 1
1294 EOF
1295
1296
1297 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1298 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1299 fi
1300
1301 if test "$USE_BEOS" = 1; then
1302 SRC_SUBDIRS="$SRC_SUBDIRS be"
1303 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1304 fi
1305
1306 if test "$USE_LINUX" = 1; then
1307 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1308 echo "configure:1309: checking for gettext in -lc" >&5
1309 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313 ac_save_LIBS="$LIBS"
1314 LIBS="-lc $LIBS"
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 /* Override any gcc2 internal prototype to avoid an error. */
1319 /* We use char because int might match the return type of a gcc2
1320 builtin and then its argument prototype would still apply. */
1321 char gettext();
1322
1323 int main() {
1324 gettext()
1325 ; return 0; }
1326 EOF
1327 if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1328 rm -rf conftest*
1329 eval "ac_cv_lib_$ac_lib_var=yes"
1330 else
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1333 rm -rf conftest*
1334 eval "ac_cv_lib_$ac_lib_var=no"
1335 fi
1336 rm -f conftest*
1337 LIBS="$ac_save_LIBS"
1338
1339 fi
1340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1342 cat >> confdefs.h <<\EOF
1343 #define wxHAVE_GLIBC2 1
1344 EOF
1345
1346 else
1347 echo "$ac_t""no" 1>&6
1348 fi
1349
1350 fi
1351
1352
1353
1354
1355 wx_arg_cache_file="configarg.cache"
1356 echo "loading argument cache $wx_arg_cache_file"
1357 rm -f ${wx_arg_cache_file}.tmp
1358 touch ${wx_arg_cache_file}.tmp
1359 touch ${wx_arg_cache_file}
1360
1361
1362 DEBUG_CONFIGURE=0
1363 if test $DEBUG_CONFIGURE = 1; then
1364 DEFAULT_wxUSE_UNIVERSAL=no
1365
1366 DEFAULT_wxUSE_THREADS=yes
1367
1368 DEFAULT_wxUSE_SHARED=yes
1369 DEFAULT_wxUSE_BURNT_NAME=no
1370 DEFAULT_wxUSE_OPTIMISE=no
1371 DEFAULT_wxUSE_PROFILE=no
1372 DEFAULT_wxUSE_NO_DEPS=no
1373 DEFAULT_wxUSE_NO_RTTI=no
1374 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1375 DEFAULT_wxUSE_PERMISSIVE=no
1376 DEFAULT_wxUSE_DEBUG_FLAG=yes
1377 DEFAULT_wxUSE_DEBUG_INFO=yes
1378 DEFAULT_wxUSE_DEBUG_GDB=yes
1379 DEFAULT_wxUSE_MEM_TRACING=no
1380 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1381 DEFAULT_wxUSE_DMALLOC=no
1382 DEFAULT_wxUSE_APPLE_IEEE=no
1383
1384 DEFAULT_wxUSE_LOG=yes
1385 DEFAULT_wxUSE_LOGWINDOW=no
1386 DEFAULT_wxUSE_LOGGUI=no
1387
1388 DEFAULT_wxUSE_GUI=yes
1389 DEFAULT_wxUSE_CONTROLS=no
1390
1391 DEFAULT_wxUSE_ZLIB=no
1392 DEFAULT_wxUSE_LIBPNG=no
1393 DEFAULT_wxUSE_LIBJPEG=no
1394 DEFAULT_wxUSE_LIBTIFF=no
1395 DEFAULT_wxUSE_ODBC=no
1396 DEFAULT_wxUSE_FREETYPE=no
1397 DEFAULT_wxUSE_OPENGL=no
1398
1399 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1400 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1401 DEFAULT_wxUSE_STD_IOSTREAM=no
1402 DEFAULT_wxUSE_CMDLINE_PARSER=no
1403 DEFAULT_wxUSE_DATETIME=no
1404 DEFAULT_wxUSE_TIMEDATE=no
1405 DEFAULT_wxUSE_TIMER=no
1406 DEFAULT_wxUSE_STOPWATCH=no
1407 DEFAULT_wxUSE_FILE=no
1408 DEFAULT_wxUSE_FFILE=no
1409 DEFAULT_wxUSE_TEXTFILE=no
1410 DEFAULT_wxUSE_WAVE=no
1411 DEFAULT_wxUSE_INTL=no
1412 DEFAULT_wxUSE_CONFIG=no
1413 DEFAULT_wxUSE_FONTMAP=no
1414 DEFAULT_wxUSE_STREAMS=no
1415 DEFAULT_wxUSE_SOCKETS=no
1416 DEFAULT_wxUSE_DIALUP_MANAGER=no
1417 DEFAULT_wxUSE_SERIAL=no
1418 DEFAULT_wxUSE_JOYSTICK=no
1419 DEFAULT_wxUSE_DYNLIB_CLASS=no
1420 DEFAULT_wxUSE_LONGLONG=no
1421 DEFAULT_wxUSE_GEOMETRY=no
1422
1423 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1424 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1425 DEFAULT_wxUSE_POSTSCRIPT=no
1426
1427 DEFAULT_wxUSE_X_RESOURCES=no
1428 DEFAULT_wxUSE_CLIPBOARD=no
1429 DEFAULT_wxUSE_TOOLTIPS=no
1430 DEFAULT_wxUSE_DRAG_AND_DROP=no
1431 DEFAULT_wxUSE_DRAGIMAGE=no
1432 DEFAULT_wxUSE_SPLINES=no
1433
1434 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1435 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1436 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1437
1438 DEFAULT_wxUSE_PROLOGIO=no
1439 DEFAULT_wxUSE_RESOURCES=no
1440 DEFAULT_wxUSE_CONSTRAINTS=no
1441 DEFAULT_wxUSE_IPC=no
1442 DEFAULT_wxUSE_HELP=no
1443 DEFAULT_wxUSE_WXTREE=no
1444 DEFAULT_wxUSE_METAFILE=no
1445 DEFAULT_wxUSE_MIMETYPE=no
1446
1447 DEFAULT_wxUSE_COMMONDLGS=no
1448 DEFAULT_wxUSE_CHOICEDLG=no
1449 DEFAULT_wxUSE_COLOURDLG=no
1450 DEFAULT_wxUSE_DIRDLG=no
1451 DEFAULT_wxUSE_FILEDLG=no
1452 DEFAULT_wxUSE_FONTDLG=no
1453 DEFAULT_wxUSE_MSGDLG=no
1454 DEFAULT_wxUSE_NUMBERDLG=no
1455 DEFAULT_wxUSE_TEXTDLG=no
1456 DEFAULT_wxUSE_STARTUP_TIPS=no
1457 DEFAULT_wxUSE_PROGRESSDLG=no
1458 DEFAULT_wxUSE_WIZARDDLG=no
1459
1460 DEFAULT_wxUSE_MENUS=no
1461 DEFAULT_wxUSE_MINIFRAME=no
1462 DEFAULT_wxUSE_HTML=no
1463 DEFAULT_wxUSE_FILESYSTEM=no
1464 DEFAULT_wxUSE_FS_INET=no
1465 DEFAULT_wxUSE_FS_ZIP=no
1466 DEFAULT_wxUSE_BUSYINFO=no
1467 DEFAULT_wxUSE_ZIPSTREAM=no
1468 DEFAULT_wxUSE_VALIDATORS=no
1469
1470 DEFAULT_wxUSE_ACCEL=no
1471 DEFAULT_wxUSE_BUTTON=no
1472 DEFAULT_wxUSE_BMPBUTTON=no
1473 DEFAULT_wxUSE_CALCTRL=no
1474 DEFAULT_wxUSE_CARET=no
1475 DEFAULT_wxUSE_CHECKBOX=no
1476 DEFAULT_wxUSE_CHECKLST=no
1477 DEFAULT_wxUSE_CHOICE=no
1478 DEFAULT_wxUSE_COMBOBOX=no
1479 DEFAULT_wxUSE_GAUGE=no
1480 DEFAULT_wxUSE_GRID=no
1481 DEFAULT_wxUSE_NEW_GRID=no
1482 DEFAULT_wxUSE_IMAGLIST=no
1483 DEFAULT_wxUSE_LISTBOX=no
1484 DEFAULT_wxUSE_LISTCTRL=no
1485 DEFAULT_wxUSE_NOTEBOOK=no
1486 DEFAULT_wxUSE_RADIOBOX=no
1487 DEFAULT_wxUSE_RADIOBTN=no
1488 DEFAULT_wxUSE_SASH=no
1489 DEFAULT_wxUSE_SCROLLBAR=no
1490 DEFAULT_wxUSE_SLIDER=no
1491 DEFAULT_wxUSE_SPINBTN=no
1492 DEFAULT_wxUSE_SPINCTRL=no
1493 DEFAULT_wxUSE_SPLITTER=no
1494 DEFAULT_wxUSE_STATBMP=no
1495 DEFAULT_wxUSE_STATBOX=no
1496 DEFAULT_wxUSE_STATLINE=no
1497 DEFAULT_wxUSE_STATTEXT=no
1498 DEFAULT_wxUSE_STATUSBAR=yes
1499 DEFAULT_wxUSE_TABDIALOG=no
1500 DEFAULT_wxUSE_TEXTCTRL=no
1501 DEFAULT_wxUSE_TOGGLEBTN=no
1502 DEFAULT_wxUSE_TOOLBAR=no
1503 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1504 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1505 DEFAULT_wxUSE_TREECTRL=no
1506
1507 DEFAULT_wxUSE_UNICODE=no
1508 DEFAULT_wxUSE_WCSRTOMBS=no
1509
1510 DEFAULT_wxUSE_IMAGE=no
1511 DEFAULT_wxUSE_GIF=no
1512 DEFAULT_wxUSE_PCX=no
1513 DEFAULT_wxUSE_PNM=no
1514 DEFAULT_wxUSE_XPM=no
1515 else
1516 DEFAULT_wxUSE_UNIVERSAL=no
1517
1518 DEFAULT_wxUSE_THREADS=yes
1519
1520 DEFAULT_wxUSE_SHARED=yes
1521 DEFAULT_wxUSE_BURNT_NAME=no
1522 DEFAULT_wxUSE_OPTIMISE=yes
1523 DEFAULT_wxUSE_PROFILE=no
1524 DEFAULT_wxUSE_NO_DEPS=no
1525 DEFAULT_wxUSE_NO_RTTI=no
1526 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1527 DEFAULT_wxUSE_PERMISSIVE=no
1528 DEFAULT_wxUSE_DEBUG_FLAG=no
1529 DEFAULT_wxUSE_DEBUG_INFO=no
1530 DEFAULT_wxUSE_DEBUG_GDB=no
1531 DEFAULT_wxUSE_MEM_TRACING=no
1532 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1533 DEFAULT_wxUSE_DMALLOC=no
1534 DEFAULT_wxUSE_APPLE_IEEE=yes
1535
1536 DEFAULT_wxUSE_LOG=yes
1537 DEFAULT_wxUSE_LOGWINDOW=yes
1538 DEFAULT_wxUSE_LOGGUI=yes
1539
1540 DEFAULT_wxUSE_GUI=yes
1541
1542 DEFAULT_wxUSE_ZLIB=yes
1543 DEFAULT_wxUSE_LIBPNG=yes
1544 DEFAULT_wxUSE_LIBJPEG=yes
1545 DEFAULT_wxUSE_LIBTIFF=yes
1546 DEFAULT_wxUSE_ODBC=no
1547 DEFAULT_wxUSE_FREETYPE=no
1548 DEFAULT_wxUSE_OPENGL=no
1549
1550 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1551 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1552 DEFAULT_wxUSE_STD_IOSTREAM=no
1553 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1554 DEFAULT_wxUSE_DATETIME=yes
1555 DEFAULT_wxUSE_TIMEDATE=no
1556 DEFAULT_wxUSE_TIMER=yes
1557 DEFAULT_wxUSE_STOPWATCH=yes
1558 DEFAULT_wxUSE_FILE=yes
1559 DEFAULT_wxUSE_FFILE=yes
1560 DEFAULT_wxUSE_TEXTFILE=yes
1561 DEFAULT_wxUSE_WAVE=no
1562 DEFAULT_wxUSE_INTL=yes
1563 DEFAULT_wxUSE_CONFIG=yes
1564 DEFAULT_wxUSE_FONTMAP=yes
1565 DEFAULT_wxUSE_STREAMS=yes
1566 DEFAULT_wxUSE_SOCKETS=yes
1567 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1568 DEFAULT_wxUSE_SERIAL=yes
1569 DEFAULT_wxUSE_JOYSTICK=yes
1570 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1571 DEFAULT_wxUSE_LONGLONG=yes
1572 DEFAULT_wxUSE_GEOMETRY=yes
1573
1574 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1575 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1576 DEFAULT_wxUSE_POSTSCRIPT=yes
1577
1578 DEFAULT_wxUSE_X_RESOURCES=no
1579 DEFAULT_wxUSE_CLIPBOARD=yes
1580 DEFAULT_wxUSE_TOOLTIPS=yes
1581 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1582 DEFAULT_wxUSE_DRAGIMAGE=yes
1583 DEFAULT_wxUSE_SPLINES=yes
1584
1585 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1586 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1587 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1588
1589 DEFAULT_wxUSE_PROLOGIO=yes
1590 DEFAULT_wxUSE_RESOURCES=yes
1591 DEFAULT_wxUSE_CONSTRAINTS=yes
1592 DEFAULT_wxUSE_IPC=yes
1593 DEFAULT_wxUSE_HELP=yes
1594 DEFAULT_wxUSE_WXTREE=yes
1595 DEFAULT_wxUSE_METAFILE=yes
1596 DEFAULT_wxUSE_MIMETYPE=yes
1597
1598 DEFAULT_wxUSE_COMMONDLGS=yes
1599 DEFAULT_wxUSE_CHOICEDLG=yes
1600 DEFAULT_wxUSE_COLOURDLG=yes
1601 DEFAULT_wxUSE_DIRDLG=yes
1602 DEFAULT_wxUSE_FILEDLG=yes
1603 DEFAULT_wxUSE_FONTDLG=yes
1604 DEFAULT_wxUSE_MSGDLG=yes
1605 DEFAULT_wxUSE_NUMBERDLG=yes
1606 DEFAULT_wxUSE_TEXTDLG=yes
1607 DEFAULT_wxUSE_STARTUP_TIPS=yes
1608 DEFAULT_wxUSE_PROGRESSDLG=yes
1609 DEFAULT_wxUSE_MENUS=yes
1610 DEFAULT_wxUSE_MINIFRAME=yes
1611 DEFAULT_wxUSE_HTML=yes
1612 DEFAULT_wxUSE_FILESYSTEM=yes
1613 DEFAULT_wxUSE_FS_INET=yes
1614 DEFAULT_wxUSE_FS_ZIP=yes
1615 DEFAULT_wxUSE_BUSYINFO=yes
1616 DEFAULT_wxUSE_ZIPSTREAM=yes
1617 DEFAULT_wxUSE_VALIDATORS=yes
1618
1619 DEFAULT_wxUSE_ACCEL=yes
1620 DEFAULT_wxUSE_BUTTON=yes
1621 DEFAULT_wxUSE_BMPBUTTON=yes
1622 DEFAULT_wxUSE_CALCTRL=yes
1623 DEFAULT_wxUSE_CARET=yes
1624 DEFAULT_wxUSE_CHECKBOX=yes
1625 DEFAULT_wxUSE_CHECKLST=yes
1626 DEFAULT_wxUSE_CHOICE=yes
1627 DEFAULT_wxUSE_COMBOBOX=yes
1628 DEFAULT_wxUSE_GAUGE=yes
1629 DEFAULT_wxUSE_GRID=yes
1630 DEFAULT_wxUSE_NEW_GRID=yes
1631 DEFAULT_wxUSE_IMAGLIST=yes
1632 DEFAULT_wxUSE_LISTBOX=yes
1633 DEFAULT_wxUSE_LISTCTRL=yes
1634 DEFAULT_wxUSE_NOTEBOOK=yes
1635 DEFAULT_wxUSE_RADIOBOX=yes
1636 DEFAULT_wxUSE_RADIOBTN=yes
1637 DEFAULT_wxUSE_SASH=yes
1638 DEFAULT_wxUSE_SCROLLBAR=yes
1639 DEFAULT_wxUSE_SLIDER=yes
1640 DEFAULT_wxUSE_SPINBTN=yes
1641 DEFAULT_wxUSE_SPINCTRL=yes
1642 DEFAULT_wxUSE_SPLITTER=yes
1643 DEFAULT_wxUSE_STATBMP=yes
1644 DEFAULT_wxUSE_STATBOX=yes
1645 DEFAULT_wxUSE_STATLINE=yes
1646 DEFAULT_wxUSE_STATTEXT=yes
1647 DEFAULT_wxUSE_STATUSBAR=yes
1648 DEFAULT_wxUSE_TABDIALOG=no
1649 DEFAULT_wxUSE_TEXTCTRL=yes
1650 DEFAULT_wxUSE_TOGGLEBTN=yes
1651 DEFAULT_wxUSE_TOOLBAR=yes
1652 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1653 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1654 DEFAULT_wxUSE_TREECTRL=yes
1655
1656 DEFAULT_wxUSE_UNICODE=no
1657 DEFAULT_wxUSE_WCSRTOMBS=no
1658
1659 DEFAULT_wxUSE_IMAGE=yes
1660 DEFAULT_wxUSE_GIF=yes
1661 DEFAULT_wxUSE_PCX=yes
1662 DEFAULT_wxUSE_PNM=yes
1663 DEFAULT_wxUSE_XPM=yes
1664 fi
1665
1666
1667
1668 for toolkit in `echo $ALL_TOOLKITS`; do
1669 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1670 if test "x$LINE" != x ; then
1671 has_toolkit_in_cache=1
1672 eval "DEFAULT_$LINE"
1673 eval "CACHE_$toolkit=1"
1674 fi
1675 done
1676
1677
1678
1679 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1680 echo "configure:1681: checking for --enable-gui" >&5
1681 no_cache=0
1682 # Check whether --enable-gui or --disable-gui was given.
1683 if test "${enable_gui+set}" = set; then
1684 enableval="$enable_gui"
1685
1686 if test "$enableval" = yes; then
1687 ac_cv_use_gui='wxUSE_GUI=yes'
1688 else
1689 ac_cv_use_gui='wxUSE_GUI=no'
1690 fi
1691
1692 else
1693
1694 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1695 if test "x$LINE" != x ; then
1696 eval "DEFAULT_$LINE"
1697 else
1698 no_cache=1
1699 fi
1700
1701 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1702
1703 fi
1704
1705
1706 eval "$ac_cv_use_gui"
1707 if test "$no_cache" != 1; then
1708 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1709 fi
1710
1711 if test "$wxUSE_GUI" = yes; then
1712 echo "$ac_t""yes" 1>&6
1713 else
1714 echo "$ac_t""no" 1>&6
1715 fi
1716
1717
1718 if test "$wxUSE_GUI" = "yes"; then
1719
1720
1721 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1722 echo "configure:1723: checking for --enable-universal" >&5
1723 no_cache=0
1724 # Check whether --enable-universal or --disable-universal was given.
1725 if test "${enable_universal+set}" = set; then
1726 enableval="$enable_universal"
1727
1728 if test "$enableval" = yes; then
1729 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1730 else
1731 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1732 fi
1733
1734 else
1735
1736 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1737 if test "x$LINE" != x ; then
1738 eval "DEFAULT_$LINE"
1739 else
1740 no_cache=1
1741 fi
1742
1743 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1744
1745 fi
1746
1747
1748 eval "$ac_cv_use_universal"
1749 if test "$no_cache" != 1; then
1750 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1751 fi
1752
1753 if test "$wxUSE_UNIVERSAL" = yes; then
1754 echo "$ac_t""yes" 1>&6
1755 else
1756 echo "$ac_t""no" 1>&6
1757 fi
1758
1759 # Check whether --with-gtk or --without-gtk was given.
1760 if test "${with_gtk+set}" = set; then
1761 withval="$with_gtk"
1762 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1763 fi
1764
1765 # Check whether --with-motif or --without-motif was given.
1766 if test "${with_motif+set}" = set; then
1767 withval="$with_motif"
1768 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1769 fi
1770
1771 # Check whether --with-mac or --without-mac was given.
1772 if test "${with_mac+set}" = set; then
1773 withval="$with_mac"
1774 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1775 fi
1776
1777 # Check whether --with-wine or --without-wine was given.
1778 if test "${with_wine+set}" = set; then
1779 withval="$with_wine"
1780 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1781 fi
1782
1783 # Check whether --with-cygwin or --without-cygwin was given.
1784 if test "${with_cygwin+set}" = set; then
1785 withval="$with_cygwin"
1786 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1787 fi
1788
1789 # Check whether --with-mingw or --without-mingw was given.
1790 if test "${with_mingw+set}" = set; then
1791 withval="$with_mingw"
1792 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1793 fi
1794
1795 # Check whether --with-pm or --without-pm was given.
1796 if test "${with_pm+set}" = set; then
1797 withval="$with_pm"
1798 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1799 fi
1800
1801 # Check whether --with-mgl or --without-mgl was given.
1802 if test "${with_mgl+set}" = set; then
1803 withval="$with_mgl"
1804 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1805 fi
1806
1807
1808 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1809 if test "${enable_gtk2+set}" = set; then
1810 enableval="$enable_gtk2"
1811 wxUSE_GTK2=1
1812 else
1813 wxUSE_GTK2=0
1814 fi
1815
1816
1817
1818 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1819 echo "configure:1820: checking for --with-libpng" >&5
1820 no_cache=0
1821 # Check whether --with-libpng or --without-libpng was given.
1822 if test "${with_libpng+set}" = set; then
1823 withval="$with_libpng"
1824
1825 if test "$withval" = yes; then
1826 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1827 elif test "$withval" = no; then
1828 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1829 elif test "$withval" = sys; then
1830 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1831 else
1832 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1833 fi
1834
1835 else
1836
1837 LINE=`grep "wxUSE_LIBPNG" ${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_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1845
1846 fi
1847
1848
1849 eval "$ac_cv_use_libpng"
1850 if test "$no_cache" != 1; then
1851 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1852 fi
1853
1854 if test "$wxUSE_LIBPNG" = yes; then
1855 echo "$ac_t""yes" 1>&6
1856 elif test "$wxUSE_LIBPNG" = no; then
1857 echo "$ac_t""no" 1>&6
1858 elif test "$wxUSE_LIBPNG" = sys; then
1859 echo "$ac_t""system version" 1>&6
1860 else
1861 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1862 fi
1863
1864
1865 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1866 echo "configure:1867: checking for --with-libjpeg" >&5
1867 no_cache=0
1868 # Check whether --with-libjpeg or --without-libjpeg was given.
1869 if test "${with_libjpeg+set}" = set; then
1870 withval="$with_libjpeg"
1871
1872 if test "$withval" = yes; then
1873 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1874 elif test "$withval" = no; then
1875 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1876 elif test "$withval" = sys; then
1877 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1878 else
1879 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1880 fi
1881
1882 else
1883
1884 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1885 if test "x$LINE" != x ; then
1886 eval "DEFAULT_$LINE"
1887 else
1888 no_cache=1
1889 fi
1890
1891 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1892
1893 fi
1894
1895
1896 eval "$ac_cv_use_libjpeg"
1897 if test "$no_cache" != 1; then
1898 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1899 fi
1900
1901 if test "$wxUSE_LIBJPEG" = yes; then
1902 echo "$ac_t""yes" 1>&6
1903 elif test "$wxUSE_LIBJPEG" = no; then
1904 echo "$ac_t""no" 1>&6
1905 elif test "$wxUSE_LIBJPEG" = sys; then
1906 echo "$ac_t""system version" 1>&6
1907 else
1908 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1909 fi
1910
1911
1912 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1913 echo "configure:1914: checking for --with-libtiff" >&5
1914 no_cache=0
1915 # Check whether --with-libtiff or --without-libtiff was given.
1916 if test "${with_libtiff+set}" = set; then
1917 withval="$with_libtiff"
1918
1919 if test "$withval" = yes; then
1920 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1921 elif test "$withval" = no; then
1922 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1923 elif test "$withval" = sys; then
1924 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1925 else
1926 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1927 fi
1928
1929 else
1930
1931 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1932 if test "x$LINE" != x ; then
1933 eval "DEFAULT_$LINE"
1934 else
1935 no_cache=1
1936 fi
1937
1938 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1939
1940 fi
1941
1942
1943 eval "$ac_cv_use_libtiff"
1944 if test "$no_cache" != 1; then
1945 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1946 fi
1947
1948 if test "$wxUSE_LIBTIFF" = yes; then
1949 echo "$ac_t""yes" 1>&6
1950 elif test "$wxUSE_LIBTIFF" = no; then
1951 echo "$ac_t""no" 1>&6
1952 elif test "$wxUSE_LIBTIFF" = sys; then
1953 echo "$ac_t""system version" 1>&6
1954 else
1955 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1956 fi
1957
1958
1959 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1960 echo "configure:1961: checking for --with-freetype" >&5
1961 no_cache=0
1962 # Check whether --with-freetype or --without-freetype was given.
1963 if test "${with_freetype+set}" = set; then
1964 withval="$with_freetype"
1965
1966 if test "$withval" = yes; then
1967 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1968 elif test "$withval" = no; then
1969 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1970 elif test "$withval" = sys; then
1971 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1972 else
1973 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1974 fi
1975
1976 else
1977
1978 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1979 if test "x$LINE" != x ; then
1980 eval "DEFAULT_$LINE"
1981 else
1982 no_cache=1
1983 fi
1984
1985 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1986
1987 fi
1988
1989
1990 eval "$ac_cv_use_freetype"
1991 if test "$no_cache" != 1; then
1992 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1993 fi
1994
1995 if test "$wxUSE_FREETYPE" = yes; then
1996 echo "$ac_t""yes" 1>&6
1997 elif test "$wxUSE_FREETYPE" = no; then
1998 echo "$ac_t""no" 1>&6
1999 elif test "$wxUSE_FREETYPE" = sys; then
2000 echo "$ac_t""system version" 1>&6
2001 else
2002 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2003 fi
2004
2005
2006 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2007 echo "configure:2008: checking for --with-opengl" >&5
2008 no_cache=0
2009 # Check whether --with-opengl or --without-opengl was given.
2010 if test "${with_opengl+set}" = set; then
2011 withval="$with_opengl"
2012
2013 if test "$withval" = yes; then
2014 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2015 else
2016 ac_cv_use_opengl='wxUSE_OPENGL=no'
2017 fi
2018
2019 else
2020
2021 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2022 if test "x$LINE" != x ; then
2023 eval "DEFAULT_$LINE"
2024 else
2025 no_cache=1
2026 fi
2027
2028 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2029
2030 fi
2031
2032
2033 eval "$ac_cv_use_opengl"
2034 if test "$no_cache" != 1; then
2035 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2036 fi
2037
2038 if test "$wxUSE_OPENGL" = yes; then
2039 echo "$ac_t""yes" 1>&6
2040 else
2041 echo "$ac_t""no" 1>&6
2042 fi
2043
2044
2045 fi
2046
2047
2048 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2049 echo "configure:2050: checking for --with-dmalloc" >&5
2050 no_cache=0
2051 # Check whether --with-dmalloc or --without-dmalloc was given.
2052 if test "${with_dmalloc+set}" = set; then
2053 withval="$with_dmalloc"
2054
2055 if test "$withval" = yes; then
2056 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2057 else
2058 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2059 fi
2060
2061 else
2062
2063 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2064 if test "x$LINE" != x ; then
2065 eval "DEFAULT_$LINE"
2066 else
2067 no_cache=1
2068 fi
2069
2070 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2071
2072 fi
2073
2074
2075 eval "$ac_cv_use_dmalloc"
2076 if test "$no_cache" != 1; then
2077 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2078 fi
2079
2080 if test "$wxUSE_DMALLOC" = yes; then
2081 echo "$ac_t""yes" 1>&6
2082 else
2083 echo "$ac_t""no" 1>&6
2084 fi
2085
2086
2087 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2088 echo "configure:2089: checking for --with-zlib" >&5
2089 no_cache=0
2090 # Check whether --with-zlib or --without-zlib was given.
2091 if test "${with_zlib+set}" = set; then
2092 withval="$with_zlib"
2093
2094 if test "$withval" = yes; then
2095 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2096 elif test "$withval" = no; then
2097 ac_cv_use_zlib='wxUSE_ZLIB=no'
2098 elif test "$withval" = sys; then
2099 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2100 else
2101 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2102 fi
2103
2104 else
2105
2106 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2107 if test "x$LINE" != x ; then
2108 eval "DEFAULT_$LINE"
2109 else
2110 no_cache=1
2111 fi
2112
2113 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2114
2115 fi
2116
2117
2118 eval "$ac_cv_use_zlib"
2119 if test "$no_cache" != 1; then
2120 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2121 fi
2122
2123 if test "$wxUSE_ZLIB" = yes; then
2124 echo "$ac_t""yes" 1>&6
2125 elif test "$wxUSE_ZLIB" = no; then
2126 echo "$ac_t""no" 1>&6
2127 elif test "$wxUSE_ZLIB" = sys; then
2128 echo "$ac_t""system version" 1>&6
2129 else
2130 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2131 fi
2132
2133
2134 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2135 echo "configure:2136: checking for --with-odbc" >&5
2136 no_cache=0
2137 # Check whether --with-odbc or --without-odbc was given.
2138 if test "${with_odbc+set}" = set; then
2139 withval="$with_odbc"
2140
2141 if test "$withval" = yes; then
2142 ac_cv_use_odbc='wxUSE_ODBC=yes'
2143 else
2144 ac_cv_use_odbc='wxUSE_ODBC=no'
2145 fi
2146
2147 else
2148
2149 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2150 if test "x$LINE" != x ; then
2151 eval "DEFAULT_$LINE"
2152 else
2153 no_cache=1
2154 fi
2155
2156 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2157
2158 fi
2159
2160
2161 eval "$ac_cv_use_odbc"
2162 if test "$no_cache" != 1; then
2163 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2164 fi
2165
2166 if test "$wxUSE_ODBC" = yes; then
2167 echo "$ac_t""yes" 1>&6
2168 else
2169 echo "$ac_t""no" 1>&6
2170 fi
2171
2172
2173
2174
2175
2176 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2177 echo "configure:2178: checking for --enable-shared" >&5
2178 no_cache=0
2179 # Check whether --enable-shared or --disable-shared was given.
2180 if test "${enable_shared+set}" = set; then
2181 enableval="$enable_shared"
2182
2183 if test "$enableval" = yes; then
2184 ac_cv_use_shared='wxUSE_SHARED=yes'
2185 else
2186 ac_cv_use_shared='wxUSE_SHARED=no'
2187 fi
2188
2189 else
2190
2191 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2192 if test "x$LINE" != x ; then
2193 eval "DEFAULT_$LINE"
2194 else
2195 no_cache=1
2196 fi
2197
2198 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2199
2200 fi
2201
2202
2203 eval "$ac_cv_use_shared"
2204 if test "$no_cache" != 1; then
2205 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2206 fi
2207
2208 if test "$wxUSE_SHARED" = yes; then
2209 echo "$ac_t""yes" 1>&6
2210 else
2211 echo "$ac_t""no" 1>&6
2212 fi
2213
2214
2215 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2216 echo "configure:2217: checking for --enable-burnt_name" >&5
2217 no_cache=0
2218 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2219 if test "${enable_burnt_name+set}" = set; then
2220 enableval="$enable_burnt_name"
2221
2222 if test "$enableval" = yes; then
2223 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2224 else
2225 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2226 fi
2227
2228 else
2229
2230 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2231 if test "x$LINE" != x ; then
2232 eval "DEFAULT_$LINE"
2233 else
2234 no_cache=1
2235 fi
2236
2237 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2238
2239 fi
2240
2241
2242 eval "$ac_cv_use_burnt_name"
2243 if test "$no_cache" != 1; then
2244 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2245 fi
2246
2247 if test "$wxUSE_BURNT_NAME" = yes; then
2248 echo "$ac_t""yes" 1>&6
2249 else
2250 echo "$ac_t""no" 1>&6
2251 fi
2252
2253
2254 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2255 echo "configure:2256: checking for --enable-optimise" >&5
2256 no_cache=0
2257 # Check whether --enable-optimise or --disable-optimise was given.
2258 if test "${enable_optimise+set}" = set; then
2259 enableval="$enable_optimise"
2260
2261 if test "$enableval" = yes; then
2262 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2263 else
2264 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2265 fi
2266
2267 else
2268
2269 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2270 if test "x$LINE" != x ; then
2271 eval "DEFAULT_$LINE"
2272 else
2273 no_cache=1
2274 fi
2275
2276 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2277
2278 fi
2279
2280
2281 eval "$ac_cv_use_optimise"
2282 if test "$no_cache" != 1; then
2283 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2284 fi
2285
2286 if test "$wxUSE_OPTIMISE" = yes; then
2287 echo "$ac_t""yes" 1>&6
2288 else
2289 echo "$ac_t""no" 1>&6
2290 fi
2291
2292
2293 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2294 echo "configure:2295: checking for --enable-debug" >&5
2295 no_cache=0
2296 # Check whether --enable-debug or --disable-debug was given.
2297 if test "${enable_debug+set}" = set; then
2298 enableval="$enable_debug"
2299
2300 if test "$enableval" = yes; then
2301 ac_cv_use_debug='wxUSE_DEBUG=yes'
2302 else
2303 ac_cv_use_debug='wxUSE_DEBUG=no'
2304 fi
2305
2306 else
2307
2308 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2316
2317 fi
2318
2319
2320 eval "$ac_cv_use_debug"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_DEBUG" = yes; then
2326 echo "$ac_t""yes" 1>&6
2327 else
2328 echo "$ac_t""no" 1>&6
2329 fi
2330
2331
2332 if test "$wxUSE_DEBUG" = "yes"; then
2333 DEFAULT_wxUSE_DEBUG_FLAG=yes
2334 DEFAULT_wxUSE_DEBUG_INFO=yes
2335 elif test "$wxUSE_DEBUG" = "no"; then
2336 DEFAULT_wxUSE_DEBUG_FLAG=no
2337 DEFAULT_wxUSE_DEBUG_INFO=no
2338 fi
2339
2340
2341 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2342 echo "configure:2343: checking for --enable-debug_flag" >&5
2343 no_cache=0
2344 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2345 if test "${enable_debug_flag+set}" = set; then
2346 enableval="$enable_debug_flag"
2347
2348 if test "$enableval" = yes; then
2349 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2350 else
2351 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2352 fi
2353
2354 else
2355
2356 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2357 if test "x$LINE" != x ; then
2358 eval "DEFAULT_$LINE"
2359 else
2360 no_cache=1
2361 fi
2362
2363 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2364
2365 fi
2366
2367
2368 eval "$ac_cv_use_debug_flag"
2369 if test "$no_cache" != 1; then
2370 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2371 fi
2372
2373 if test "$wxUSE_DEBUG_FLAG" = yes; then
2374 echo "$ac_t""yes" 1>&6
2375 else
2376 echo "$ac_t""no" 1>&6
2377 fi
2378
2379
2380 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2381 echo "configure:2382: checking for --enable-debug_info" >&5
2382 no_cache=0
2383 # Check whether --enable-debug_info or --disable-debug_info was given.
2384 if test "${enable_debug_info+set}" = set; then
2385 enableval="$enable_debug_info"
2386
2387 if test "$enableval" = yes; then
2388 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2389 else
2390 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2391 fi
2392
2393 else
2394
2395 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2396 if test "x$LINE" != x ; then
2397 eval "DEFAULT_$LINE"
2398 else
2399 no_cache=1
2400 fi
2401
2402 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2403
2404 fi
2405
2406
2407 eval "$ac_cv_use_debug_info"
2408 if test "$no_cache" != 1; then
2409 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2410 fi
2411
2412 if test "$wxUSE_DEBUG_INFO" = yes; then
2413 echo "$ac_t""yes" 1>&6
2414 else
2415 echo "$ac_t""no" 1>&6
2416 fi
2417
2418
2419 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2420 echo "configure:2421: checking for --enable-debug_gdb" >&5
2421 no_cache=0
2422 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2423 if test "${enable_debug_gdb+set}" = set; then
2424 enableval="$enable_debug_gdb"
2425
2426 if test "$enableval" = yes; then
2427 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2428 else
2429 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2430 fi
2431
2432 else
2433
2434 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2435 if test "x$LINE" != x ; then
2436 eval "DEFAULT_$LINE"
2437 else
2438 no_cache=1
2439 fi
2440
2441 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2442
2443 fi
2444
2445
2446 eval "$ac_cv_use_debug_gdb"
2447 if test "$no_cache" != 1; then
2448 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2449 fi
2450
2451 if test "$wxUSE_DEBUG_GDB" = yes; then
2452 echo "$ac_t""yes" 1>&6
2453 else
2454 echo "$ac_t""no" 1>&6
2455 fi
2456
2457
2458 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2459 echo "configure:2460: checking for --enable-debug_cntxt" >&5
2460 no_cache=0
2461 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2462 if test "${enable_debug_cntxt+set}" = set; then
2463 enableval="$enable_debug_cntxt"
2464
2465 if test "$enableval" = yes; then
2466 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2467 else
2468 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2469 fi
2470
2471 else
2472
2473 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2474 if test "x$LINE" != x ; then
2475 eval "DEFAULT_$LINE"
2476 else
2477 no_cache=1
2478 fi
2479
2480 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2481
2482 fi
2483
2484
2485 eval "$ac_cv_use_debug_cntxt"
2486 if test "$no_cache" != 1; then
2487 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2488 fi
2489
2490 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2491 echo "$ac_t""yes" 1>&6
2492 else
2493 echo "$ac_t""no" 1>&6
2494 fi
2495
2496
2497 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2498 echo "configure:2499: checking for --enable-mem_tracing" >&5
2499 no_cache=0
2500 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2501 if test "${enable_mem_tracing+set}" = set; then
2502 enableval="$enable_mem_tracing"
2503
2504 if test "$enableval" = yes; then
2505 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2506 else
2507 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2508 fi
2509
2510 else
2511
2512 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2513 if test "x$LINE" != x ; then
2514 eval "DEFAULT_$LINE"
2515 else
2516 no_cache=1
2517 fi
2518
2519 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2520
2521 fi
2522
2523
2524 eval "$ac_cv_use_mem_tracing"
2525 if test "$no_cache" != 1; then
2526 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2527 fi
2528
2529 if test "$wxUSE_MEM_TRACING" = yes; then
2530 echo "$ac_t""yes" 1>&6
2531 else
2532 echo "$ac_t""no" 1>&6
2533 fi
2534
2535
2536 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2537 echo "configure:2538: checking for --enable-profile" >&5
2538 no_cache=0
2539 # Check whether --enable-profile or --disable-profile was given.
2540 if test "${enable_profile+set}" = set; then
2541 enableval="$enable_profile"
2542
2543 if test "$enableval" = yes; then
2544 ac_cv_use_profile='wxUSE_PROFILE=yes'
2545 else
2546 ac_cv_use_profile='wxUSE_PROFILE=no'
2547 fi
2548
2549 else
2550
2551 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2552 if test "x$LINE" != x ; then
2553 eval "DEFAULT_$LINE"
2554 else
2555 no_cache=1
2556 fi
2557
2558 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2559
2560 fi
2561
2562
2563 eval "$ac_cv_use_profile"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_PROFILE" = yes; then
2569 echo "$ac_t""yes" 1>&6
2570 else
2571 echo "$ac_t""no" 1>&6
2572 fi
2573
2574
2575 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2576 echo "configure:2577: checking for --enable-no_rtti" >&5
2577 no_cache=0
2578 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2579 if test "${enable_no_rtti+set}" = set; then
2580 enableval="$enable_no_rtti"
2581
2582 if test "$enableval" = yes; then
2583 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2584 else
2585 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2586 fi
2587
2588 else
2589
2590 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2591 if test "x$LINE" != x ; then
2592 eval "DEFAULT_$LINE"
2593 else
2594 no_cache=1
2595 fi
2596
2597 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2598
2599 fi
2600
2601
2602 eval "$ac_cv_use_no_rtti"
2603 if test "$no_cache" != 1; then
2604 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2605 fi
2606
2607 if test "$wxUSE_NO_RTTI" = yes; then
2608 echo "$ac_t""yes" 1>&6
2609 else
2610 echo "$ac_t""no" 1>&6
2611 fi
2612
2613
2614 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2615 echo "configure:2616: checking for --enable-no_exceptions" >&5
2616 no_cache=0
2617 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2618 if test "${enable_no_exceptions+set}" = set; then
2619 enableval="$enable_no_exceptions"
2620
2621 if test "$enableval" = yes; then
2622 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2623 else
2624 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2625 fi
2626
2627 else
2628
2629 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2630 if test "x$LINE" != x ; then
2631 eval "DEFAULT_$LINE"
2632 else
2633 no_cache=1
2634 fi
2635
2636 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2637
2638 fi
2639
2640
2641 eval "$ac_cv_use_no_exceptions"
2642 if test "$no_cache" != 1; then
2643 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2644 fi
2645
2646 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2647 echo "$ac_t""yes" 1>&6
2648 else
2649 echo "$ac_t""no" 1>&6
2650 fi
2651
2652
2653 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2654 echo "configure:2655: checking for --enable-permissive" >&5
2655 no_cache=0
2656 # Check whether --enable-permissive or --disable-permissive was given.
2657 if test "${enable_permissive+set}" = set; then
2658 enableval="$enable_permissive"
2659
2660 if test "$enableval" = yes; then
2661 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2662 else
2663 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2664 fi
2665
2666 else
2667
2668 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2676
2677 fi
2678
2679
2680 eval "$ac_cv_use_permissive"
2681 if test "$no_cache" != 1; then
2682 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2683 fi
2684
2685 if test "$wxUSE_PERMISSIVE" = yes; then
2686 echo "$ac_t""yes" 1>&6
2687 else
2688 echo "$ac_t""no" 1>&6
2689 fi
2690
2691
2692 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2693 echo "configure:2694: checking for --enable-no_deps" >&5
2694 no_cache=0
2695 # Check whether --enable-no_deps or --disable-no_deps was given.
2696 if test "${enable_no_deps+set}" = set; then
2697 enableval="$enable_no_deps"
2698
2699 if test "$enableval" = yes; then
2700 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2701 else
2702 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2703 fi
2704
2705 else
2706
2707 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
2714 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2715
2716 fi
2717
2718
2719 eval "$ac_cv_use_no_deps"
2720 if test "$no_cache" != 1; then
2721 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2722 fi
2723
2724 if test "$wxUSE_NO_DEPS" = yes; then
2725 echo "$ac_t""yes" 1>&6
2726 else
2727 echo "$ac_t""no" 1>&6
2728 fi
2729
2730
2731
2732 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2733 echo "configure:2734: checking for --enable-compat20" >&5
2734 no_cache=0
2735 # Check whether --enable-compat20 or --disable-compat20 was given.
2736 if test "${enable_compat20+set}" = set; then
2737 enableval="$enable_compat20"
2738
2739 if test "$enableval" = yes; then
2740 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2741 else
2742 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2743 fi
2744
2745 else
2746
2747 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2748 if test "x$LINE" != x ; then
2749 eval "DEFAULT_$LINE"
2750 else
2751 no_cache=1
2752 fi
2753
2754 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2755
2756 fi
2757
2758
2759 eval "$ac_cv_use_compat20"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2765 echo "$ac_t""yes" 1>&6
2766 else
2767 echo "$ac_t""no" 1>&6
2768 fi
2769
2770
2771 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2772 echo "configure:2773: checking for --enable-compat22" >&5
2773 no_cache=0
2774 # Check whether --enable-compat22 or --disable-compat22 was given.
2775 if test "${enable_compat22+set}" = set; then
2776 enableval="$enable_compat22"
2777
2778 if test "$enableval" = yes; then
2779 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2780 else
2781 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2782 fi
2783
2784 else
2785
2786 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2794
2795 fi
2796
2797
2798 eval "$ac_cv_use_compat22"
2799 if test "$no_cache" != 1; then
2800 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2801 fi
2802
2803 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2804 echo "$ac_t""yes" 1>&6
2805 else
2806 echo "$ac_t""no" 1>&6
2807 fi
2808
2809
2810
2811
2812 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2813 echo "configure:2814: checking for --enable-intl" >&5
2814 no_cache=0
2815 # Check whether --enable-intl or --disable-intl was given.
2816 if test "${enable_intl+set}" = set; then
2817 enableval="$enable_intl"
2818
2819 if test "$enableval" = yes; then
2820 ac_cv_use_intl='wxUSE_INTL=yes'
2821 else
2822 ac_cv_use_intl='wxUSE_INTL=no'
2823 fi
2824
2825 else
2826
2827 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2828 if test "x$LINE" != x ; then
2829 eval "DEFAULT_$LINE"
2830 else
2831 no_cache=1
2832 fi
2833
2834 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2835
2836 fi
2837
2838
2839 eval "$ac_cv_use_intl"
2840 if test "$no_cache" != 1; then
2841 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2842 fi
2843
2844 if test "$wxUSE_INTL" = yes; then
2845 echo "$ac_t""yes" 1>&6
2846 else
2847 echo "$ac_t""no" 1>&6
2848 fi
2849
2850
2851 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2852 echo "configure:2853: checking for --enable-config" >&5
2853 no_cache=0
2854 # Check whether --enable-config or --disable-config was given.
2855 if test "${enable_config+set}" = set; then
2856 enableval="$enable_config"
2857
2858 if test "$enableval" = yes; then
2859 ac_cv_use_config='wxUSE_CONFIG=yes'
2860 else
2861 ac_cv_use_config='wxUSE_CONFIG=no'
2862 fi
2863
2864 else
2865
2866 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2874
2875 fi
2876
2877
2878 eval "$ac_cv_use_config"
2879 if test "$no_cache" != 1; then
2880 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2881 fi
2882
2883 if test "$wxUSE_CONFIG" = yes; then
2884 echo "$ac_t""yes" 1>&6
2885 else
2886 echo "$ac_t""no" 1>&6
2887 fi
2888
2889
2890
2891 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2892 echo "configure:2893: checking for --enable-sockets" >&5
2893 no_cache=0
2894 # Check whether --enable-sockets or --disable-sockets was given.
2895 if test "${enable_sockets+set}" = set; then
2896 enableval="$enable_sockets"
2897
2898 if test "$enableval" = yes; then
2899 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2900 else
2901 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2902 fi
2903
2904 else
2905
2906 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2914
2915 fi
2916
2917
2918 eval "$ac_cv_use_sockets"
2919 if test "$no_cache" != 1; then
2920 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2921 fi
2922
2923 if test "$wxUSE_SOCKETS" = yes; then
2924 echo "$ac_t""yes" 1>&6
2925 else
2926 echo "$ac_t""no" 1>&6
2927 fi
2928
2929
2930
2931 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
2932 echo "configure:2933: checking for --enable-ipc" >&5
2933 no_cache=0
2934 # Check whether --enable-ipc or --disable-ipc was given.
2935 if test "${enable_ipc+set}" = set; then
2936 enableval="$enable_ipc"
2937
2938 if test "$enableval" = yes; then
2939 ac_cv_use_ipc='wxUSE_IPC=yes'
2940 else
2941 ac_cv_use_ipc='wxUSE_IPC=no'
2942 fi
2943
2944 else
2945
2946 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2947 if test "x$LINE" != x ; then
2948 eval "DEFAULT_$LINE"
2949 else
2950 no_cache=1
2951 fi
2952
2953 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2954
2955 fi
2956
2957
2958 eval "$ac_cv_use_ipc"
2959 if test "$no_cache" != 1; then
2960 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2961 fi
2962
2963 if test "$wxUSE_IPC" = yes; then
2964 echo "$ac_t""yes" 1>&6
2965 else
2966 echo "$ac_t""no" 1>&6
2967 fi
2968
2969
2970
2971 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
2972 echo "configure:2973: checking for --enable-cmdline" >&5
2973 no_cache=0
2974 # Check whether --enable-cmdline or --disable-cmdline was given.
2975 if test "${enable_cmdline+set}" = set; then
2976 enableval="$enable_cmdline"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2980 else
2981 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2982 fi
2983
2984 else
2985
2986 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2994
2995 fi
2996
2997
2998 eval "$ac_cv_use_cmdline"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3011 echo "configure:3012: checking for --enable-datetime" >&5
3012 no_cache=0
3013 # Check whether --enable-datetime or --disable-datetime was given.
3014 if test "${enable_datetime+set}" = set; then
3015 enableval="$enable_datetime"
3016
3017 if test "$enableval" = yes; then
3018 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3019 else
3020 ac_cv_use_datetime='wxUSE_DATETIME=no'
3021 fi
3022
3023 else
3024
3025 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
3032 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3033
3034 fi
3035
3036
3037 eval "$ac_cv_use_datetime"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_DATETIME" = yes; then
3043 echo "$ac_t""yes" 1>&6
3044 else
3045 echo "$ac_t""no" 1>&6
3046 fi
3047
3048
3049 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3050 echo "configure:3051: checking for --enable-timedate" >&5
3051 no_cache=0
3052 # Check whether --enable-timedate or --disable-timedate was given.
3053 if test "${enable_timedate+set}" = set; then
3054 enableval="$enable_timedate"
3055
3056 if test "$enableval" = yes; then
3057 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3058 else
3059 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3060 fi
3061
3062 else
3063
3064 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3072
3073 fi
3074
3075
3076 eval "$ac_cv_use_timedate"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_TIMEDATE" = yes; then
3082 echo "$ac_t""yes" 1>&6
3083 else
3084 echo "$ac_t""no" 1>&6
3085 fi
3086
3087
3088 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3089 echo "configure:3090: checking for --enable-stopwatch" >&5
3090 no_cache=0
3091 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3092 if test "${enable_stopwatch+set}" = set; then
3093 enableval="$enable_stopwatch"
3094
3095 if test "$enableval" = yes; then
3096 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3097 else
3098 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3099 fi
3100
3101 else
3102
3103 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3104 if test "x$LINE" != x ; then
3105 eval "DEFAULT_$LINE"
3106 else
3107 no_cache=1
3108 fi
3109
3110 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3111
3112 fi
3113
3114
3115 eval "$ac_cv_use_stopwatch"
3116 if test "$no_cache" != 1; then
3117 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3118 fi
3119
3120 if test "$wxUSE_STOPWATCH" = yes; then
3121 echo "$ac_t""yes" 1>&6
3122 else
3123 echo "$ac_t""no" 1>&6
3124 fi
3125
3126
3127 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3128 echo "configure:3129: checking for --enable-dialupman" >&5
3129 no_cache=0
3130 # Check whether --enable-dialupman or --disable-dialupman was given.
3131 if test "${enable_dialupman+set}" = set; then
3132 enableval="$enable_dialupman"
3133
3134 if test "$enableval" = yes; then
3135 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3136 else
3137 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3138 fi
3139
3140 else
3141
3142 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3143 if test "x$LINE" != x ; then
3144 eval "DEFAULT_$LINE"
3145 else
3146 no_cache=1
3147 fi
3148
3149 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3150
3151 fi
3152
3153
3154 eval "$ac_cv_use_dialupman"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3160 echo "$ac_t""yes" 1>&6
3161 else
3162 echo "$ac_t""no" 1>&6
3163 fi
3164
3165
3166 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3167 echo "configure:3168: checking for --enable-apple_ieee" >&5
3168 no_cache=0
3169 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3170 if test "${enable_apple_ieee+set}" = set; then
3171 enableval="$enable_apple_ieee"
3172
3173 if test "$enableval" = yes; then
3174 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3175 else
3176 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3177 fi
3178
3179 else
3180
3181 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3189
3190 fi
3191
3192
3193 eval "$ac_cv_use_apple_ieee"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_APPLE_IEEE" = yes; then
3199 echo "$ac_t""yes" 1>&6
3200 else
3201 echo "$ac_t""no" 1>&6
3202 fi
3203
3204
3205 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3206 echo "configure:3207: checking for --enable-timer" >&5
3207 no_cache=0
3208 # Check whether --enable-timer or --disable-timer was given.
3209 if test "${enable_timer+set}" = set; then
3210 enableval="$enable_timer"
3211
3212 if test "$enableval" = yes; then
3213 ac_cv_use_timer='wxUSE_TIMER=yes'
3214 else
3215 ac_cv_use_timer='wxUSE_TIMER=no'
3216 fi
3217
3218 else
3219
3220 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3221 if test "x$LINE" != x ; then
3222 eval "DEFAULT_$LINE"
3223 else
3224 no_cache=1
3225 fi
3226
3227 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3228
3229 fi
3230
3231
3232 eval "$ac_cv_use_timer"
3233 if test "$no_cache" != 1; then
3234 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3235 fi
3236
3237 if test "$wxUSE_TIMER" = yes; then
3238 echo "$ac_t""yes" 1>&6
3239 else
3240 echo "$ac_t""no" 1>&6
3241 fi
3242
3243
3244 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3245 echo "configure:3246: checking for --enable-wave" >&5
3246 no_cache=0
3247 # Check whether --enable-wave or --disable-wave was given.
3248 if test "${enable_wave+set}" = set; then
3249 enableval="$enable_wave"
3250
3251 if test "$enableval" = yes; then
3252 ac_cv_use_wave='wxUSE_WAVE=yes'
3253 else
3254 ac_cv_use_wave='wxUSE_WAVE=no'
3255 fi
3256
3257 else
3258
3259 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3260 if test "x$LINE" != x ; then
3261 eval "DEFAULT_$LINE"
3262 else
3263 no_cache=1
3264 fi
3265
3266 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3267
3268 fi
3269
3270
3271 eval "$ac_cv_use_wave"
3272 if test "$no_cache" != 1; then
3273 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3274 fi
3275
3276 if test "$wxUSE_WAVE" = yes; then
3277 echo "$ac_t""yes" 1>&6
3278 else
3279 echo "$ac_t""no" 1>&6
3280 fi
3281
3282
3283 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3284 echo "configure:3285: checking for --enable-fraction" >&5
3285 no_cache=0
3286 # Check whether --enable-fraction or --disable-fraction was given.
3287 if test "${enable_fraction+set}" = set; then
3288 enableval="$enable_fraction"
3289
3290 if test "$enableval" = yes; then
3291 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3292 else
3293 ac_cv_use_fraction='wxUSE_FRACTION=no'
3294 fi
3295
3296 else
3297
3298 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3299 if test "x$LINE" != x ; then
3300 eval "DEFAULT_$LINE"
3301 else
3302 no_cache=1
3303 fi
3304
3305 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3306
3307 fi
3308
3309
3310 eval "$ac_cv_use_fraction"
3311 if test "$no_cache" != 1; then
3312 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3313 fi
3314
3315 if test "$wxUSE_FRACTION" = yes; then
3316 echo "$ac_t""yes" 1>&6
3317 else
3318 echo "$ac_t""no" 1>&6
3319 fi
3320
3321
3322 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3323 echo "configure:3324: checking for --enable-dynlib" >&5
3324 no_cache=0
3325 # Check whether --enable-dynlib or --disable-dynlib was given.
3326 if test "${enable_dynlib+set}" = set; then
3327 enableval="$enable_dynlib"
3328
3329 if test "$enableval" = yes; then
3330 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3331 else
3332 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3333 fi
3334
3335 else
3336
3337 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3338 if test "x$LINE" != x ; then
3339 eval "DEFAULT_$LINE"
3340 else
3341 no_cache=1
3342 fi
3343
3344 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3345
3346 fi
3347
3348
3349 eval "$ac_cv_use_dynlib"
3350 if test "$no_cache" != 1; then
3351 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3352 fi
3353
3354 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3355 echo "$ac_t""yes" 1>&6
3356 else
3357 echo "$ac_t""no" 1>&6
3358 fi
3359
3360
3361 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3362 echo "configure:3363: checking for --enable-longlong" >&5
3363 no_cache=0
3364 # Check whether --enable-longlong or --disable-longlong was given.
3365 if test "${enable_longlong+set}" = set; then
3366 enableval="$enable_longlong"
3367
3368 if test "$enableval" = yes; then
3369 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3370 else
3371 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3372 fi
3373
3374 else
3375
3376 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3377 if test "x$LINE" != x ; then
3378 eval "DEFAULT_$LINE"
3379 else
3380 no_cache=1
3381 fi
3382
3383 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3384
3385 fi
3386
3387
3388 eval "$ac_cv_use_longlong"
3389 if test "$no_cache" != 1; then
3390 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3391 fi
3392
3393 if test "$wxUSE_LONGLONG" = yes; then
3394 echo "$ac_t""yes" 1>&6
3395 else
3396 echo "$ac_t""no" 1>&6
3397 fi
3398
3399
3400 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3401 echo "configure:3402: checking for --enable-geometry" >&5
3402 no_cache=0
3403 # Check whether --enable-geometry or --disable-geometry was given.
3404 if test "${enable_geometry+set}" = set; then
3405 enableval="$enable_geometry"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3409 else
3410 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3411 fi
3412
3413 else
3414
3415 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3423
3424 fi
3425
3426
3427 eval "$ac_cv_use_geometry"
3428 if test "$no_cache" != 1; then
3429 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3430 fi
3431
3432 if test "$wxUSE_GEOMETRY" = yes; then
3433 echo "$ac_t""yes" 1>&6
3434 else
3435 echo "$ac_t""no" 1>&6
3436 fi
3437
3438
3439 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3440 echo "configure:3441: checking for --enable-log" >&5
3441 no_cache=0
3442 # Check whether --enable-log or --disable-log was given.
3443 if test "${enable_log+set}" = set; then
3444 enableval="$enable_log"
3445
3446 if test "$enableval" = yes; then
3447 ac_cv_use_log='wxUSE_LOG=yes'
3448 else
3449 ac_cv_use_log='wxUSE_LOG=no'
3450 fi
3451
3452 else
3453
3454 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3455 if test "x$LINE" != x ; then
3456 eval "DEFAULT_$LINE"
3457 else
3458 no_cache=1
3459 fi
3460
3461 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3462
3463 fi
3464
3465
3466 eval "$ac_cv_use_log"
3467 if test "$no_cache" != 1; then
3468 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3469 fi
3470
3471 if test "$wxUSE_LOG" = yes; then
3472 echo "$ac_t""yes" 1>&6
3473 else
3474 echo "$ac_t""no" 1>&6
3475 fi
3476
3477
3478 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3479 echo "configure:3480: checking for --enable-streams" >&5
3480 no_cache=0
3481 # Check whether --enable-streams or --disable-streams was given.
3482 if test "${enable_streams+set}" = set; then
3483 enableval="$enable_streams"
3484
3485 if test "$enableval" = yes; then
3486 ac_cv_use_streams='wxUSE_STREAMS=yes'
3487 else
3488 ac_cv_use_streams='wxUSE_STREAMS=no'
3489 fi
3490
3491 else
3492
3493 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3494 if test "x$LINE" != x ; then
3495 eval "DEFAULT_$LINE"
3496 else
3497 no_cache=1
3498 fi
3499
3500 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3501
3502 fi
3503
3504
3505 eval "$ac_cv_use_streams"
3506 if test "$no_cache" != 1; then
3507 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3508 fi
3509
3510 if test "$wxUSE_STREAMS" = yes; then
3511 echo "$ac_t""yes" 1>&6
3512 else
3513 echo "$ac_t""no" 1>&6
3514 fi
3515
3516
3517 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3518 echo "configure:3519: checking for --enable-file" >&5
3519 no_cache=0
3520 # Check whether --enable-file or --disable-file was given.
3521 if test "${enable_file+set}" = set; then
3522 enableval="$enable_file"
3523
3524 if test "$enableval" = yes; then
3525 ac_cv_use_file='wxUSE_FILE=yes'
3526 else
3527 ac_cv_use_file='wxUSE_FILE=no'
3528 fi
3529
3530 else
3531
3532 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3540
3541 fi
3542
3543
3544 eval "$ac_cv_use_file"
3545 if test "$no_cache" != 1; then
3546 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3547 fi
3548
3549 if test "$wxUSE_FILE" = yes; then
3550 echo "$ac_t""yes" 1>&6
3551 else
3552 echo "$ac_t""no" 1>&6
3553 fi
3554
3555
3556 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3557 echo "configure:3558: checking for --enable-ffile" >&5
3558 no_cache=0
3559 # Check whether --enable-ffile or --disable-ffile was given.
3560 if test "${enable_ffile+set}" = set; then
3561 enableval="$enable_ffile"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_ffile='wxUSE_FFILE=yes'
3565 else
3566 ac_cv_use_ffile='wxUSE_FFILE=no'
3567 fi
3568
3569 else
3570
3571 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3579
3580 fi
3581
3582
3583 eval "$ac_cv_use_ffile"
3584 if test "$no_cache" != 1; then
3585 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3586 fi
3587
3588 if test "$wxUSE_FFILE" = yes; then
3589 echo "$ac_t""yes" 1>&6
3590 else
3591 echo "$ac_t""no" 1>&6
3592 fi
3593
3594
3595 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3596 echo "configure:3597: checking for --enable-textfile" >&5
3597 no_cache=0
3598 # Check whether --enable-textfile or --disable-textfile was given.
3599 if test "${enable_textfile+set}" = set; then
3600 enableval="$enable_textfile"
3601
3602 if test "$enableval" = yes; then
3603 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3604 else
3605 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3606 fi
3607
3608 else
3609
3610 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3611 if test "x$LINE" != x ; then
3612 eval "DEFAULT_$LINE"
3613 else
3614 no_cache=1
3615 fi
3616
3617 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3618
3619 fi
3620
3621
3622 eval "$ac_cv_use_textfile"
3623 if test "$no_cache" != 1; then
3624 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3625 fi
3626
3627 if test "$wxUSE_TEXTFILE" = yes; then
3628 echo "$ac_t""yes" 1>&6
3629 else
3630 echo "$ac_t""no" 1>&6
3631 fi
3632
3633
3634 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3635 echo "configure:3636: checking for --enable-fontmap" >&5
3636 no_cache=0
3637 # Check whether --enable-fontmap or --disable-fontmap was given.
3638 if test "${enable_fontmap+set}" = set; then
3639 enableval="$enable_fontmap"
3640
3641 if test "$enableval" = yes; then
3642 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3643 else
3644 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3645 fi
3646
3647 else
3648
3649 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3650 if test "x$LINE" != x ; then
3651 eval "DEFAULT_$LINE"
3652 else
3653 no_cache=1
3654 fi
3655
3656 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3657
3658 fi
3659
3660
3661 eval "$ac_cv_use_fontmap"
3662 if test "$no_cache" != 1; then
3663 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3664 fi
3665
3666 if test "$wxUSE_FONTMAP" = yes; then
3667 echo "$ac_t""yes" 1>&6
3668 else
3669 echo "$ac_t""no" 1>&6
3670 fi
3671
3672
3673 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3674 echo "configure:3675: checking for --enable-unicode" >&5
3675 no_cache=0
3676 # Check whether --enable-unicode or --disable-unicode was given.
3677 if test "${enable_unicode+set}" = set; then
3678 enableval="$enable_unicode"
3679
3680 if test "$enableval" = yes; then
3681 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3682 else
3683 ac_cv_use_unicode='wxUSE_UNICODE=no'
3684 fi
3685
3686 else
3687
3688 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3689 if test "x$LINE" != x ; then
3690 eval "DEFAULT_$LINE"
3691 else
3692 no_cache=1
3693 fi
3694
3695 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3696
3697 fi
3698
3699
3700 eval "$ac_cv_use_unicode"
3701 if test "$no_cache" != 1; then
3702 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3703 fi
3704
3705 if test "$wxUSE_UNICODE" = yes; then
3706 echo "$ac_t""yes" 1>&6
3707 else
3708 echo "$ac_t""no" 1>&6
3709 fi
3710
3711
3712 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3713 echo "configure:3714: checking for --enable-wcsrtombs" >&5
3714 no_cache=0
3715 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3716 if test "${enable_wcsrtombs+set}" = set; then
3717 enableval="$enable_wcsrtombs"
3718
3719 if test "$enableval" = yes; then
3720 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3721 else
3722 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3723 fi
3724
3725 else
3726
3727 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3735
3736 fi
3737
3738
3739 eval "$ac_cv_use_wcsrtombs"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_WCSRTOMBS" = yes; then
3745 echo "$ac_t""yes" 1>&6
3746 else
3747 echo "$ac_t""no" 1>&6
3748 fi
3749
3750
3751 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3752 echo "configure:3753: checking for --enable-wxprintfv" >&5
3753 no_cache=0
3754 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3755 if test "${enable_wxprintfv+set}" = set; then
3756 enableval="$enable_wxprintfv"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3760 else
3761 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3762 fi
3763
3764 else
3765
3766 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3774
3775 fi
3776
3777
3778 eval "$ac_cv_use_wxprintfv"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3784 echo "$ac_t""yes" 1>&6
3785 else
3786 echo "$ac_t""no" 1>&6
3787 fi
3788
3789
3790 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3791 echo "configure:3792: checking for --enable-std_iostreams" >&5
3792 no_cache=0
3793 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3794 if test "${enable_std_iostreams+set}" = set; then
3795 enableval="$enable_std_iostreams"
3796
3797 if test "$enableval" = yes; then
3798 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3799 else
3800 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3801 fi
3802
3803 else
3804
3805 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3806 if test "x$LINE" != x ; then
3807 eval "DEFAULT_$LINE"
3808 else
3809 no_cache=1
3810 fi
3811
3812 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3813
3814 fi
3815
3816
3817 eval "$ac_cv_use_std_iostreams"
3818 if test "$no_cache" != 1; then
3819 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3820 fi
3821
3822 if test "$wxUSE_STD_IOSTREAM" = yes; then
3823 echo "$ac_t""yes" 1>&6
3824 else
3825 echo "$ac_t""no" 1>&6
3826 fi
3827
3828
3829 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3830 echo "configure:3831: checking for --enable-filesystem" >&5
3831 no_cache=0
3832 # Check whether --enable-filesystem or --disable-filesystem was given.
3833 if test "${enable_filesystem+set}" = set; then
3834 enableval="$enable_filesystem"
3835
3836 if test "$enableval" = yes; then
3837 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3838 else
3839 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3840 fi
3841
3842 else
3843
3844 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3845 if test "x$LINE" != x ; then
3846 eval "DEFAULT_$LINE"
3847 else
3848 no_cache=1
3849 fi
3850
3851 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3852
3853 fi
3854
3855
3856 eval "$ac_cv_use_filesystem"
3857 if test "$no_cache" != 1; then
3858 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3859 fi
3860
3861 if test "$wxUSE_FILESYSTEM" = yes; then
3862 echo "$ac_t""yes" 1>&6
3863 else
3864 echo "$ac_t""no" 1>&6
3865 fi
3866
3867
3868 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3869 echo "configure:3870: checking for --enable-fs_inet" >&5
3870 no_cache=0
3871 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3872 if test "${enable_fs_inet+set}" = set; then
3873 enableval="$enable_fs_inet"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3877 else
3878 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3879 fi
3880
3881 else
3882
3883 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3891
3892 fi
3893
3894
3895 eval "$ac_cv_use_fs_inet"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_FS_INET" = yes; then
3901 echo "$ac_t""yes" 1>&6
3902 else
3903 echo "$ac_t""no" 1>&6
3904 fi
3905
3906
3907 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3908 echo "configure:3909: checking for --enable-fs_zip" >&5
3909 no_cache=0
3910 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3911 if test "${enable_fs_zip+set}" = set; then
3912 enableval="$enable_fs_zip"
3913
3914 if test "$enableval" = yes; then
3915 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3916 else
3917 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3918 fi
3919
3920 else
3921
3922 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3930
3931 fi
3932
3933
3934 eval "$ac_cv_use_fs_zip"
3935 if test "$no_cache" != 1; then
3936 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3937 fi
3938
3939 if test "$wxUSE_FS_ZIP" = yes; then
3940 echo "$ac_t""yes" 1>&6
3941 else
3942 echo "$ac_t""no" 1>&6
3943 fi
3944
3945
3946 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3947 echo "configure:3948: checking for --enable-zipstream" >&5
3948 no_cache=0
3949 # Check whether --enable-zipstream or --disable-zipstream was given.
3950 if test "${enable_zipstream+set}" = set; then
3951 enableval="$enable_zipstream"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3955 else
3956 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3957 fi
3958
3959 else
3960
3961 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3969
3970 fi
3971
3972
3973 eval "$ac_cv_use_zipstream"
3974 if test "$no_cache" != 1; then
3975 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3976 fi
3977
3978 if test "$wxUSE_ZIPSTREAM" = yes; then
3979 echo "$ac_t""yes" 1>&6
3980 else
3981 echo "$ac_t""no" 1>&6
3982 fi
3983
3984
3985
3986 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3987 echo "configure:3988: checking for --enable-catch_segvs" >&5
3988 no_cache=0
3989 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3990 if test "${enable_catch_segvs+set}" = set; then
3991 enableval="$enable_catch_segvs"
3992
3993 if test "$enableval" = yes; then
3994 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3995 else
3996 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3997 fi
3998
3999 else
4000
4001 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4002 if test "x$LINE" != x ; then
4003 eval "DEFAULT_$LINE"
4004 else
4005 no_cache=1
4006 fi
4007
4008 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4009
4010 fi
4011
4012
4013 eval "$ac_cv_use_catch_segvs"
4014 if test "$no_cache" != 1; then
4015 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4016 fi
4017
4018 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4019 echo "$ac_t""yes" 1>&6
4020 else
4021 echo "$ac_t""no" 1>&6
4022 fi
4023
4024
4025 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4026 echo "configure:4027: checking for --enable-snglinst" >&5
4027 no_cache=0
4028 # Check whether --enable-snglinst or --disable-snglinst was given.
4029 if test "${enable_snglinst+set}" = set; then
4030 enableval="$enable_snglinst"
4031
4032 if test "$enableval" = yes; then
4033 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4034 else
4035 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4036 fi
4037
4038 else
4039
4040 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4041 if test "x$LINE" != x ; then
4042 eval "DEFAULT_$LINE"
4043 else
4044 no_cache=1
4045 fi
4046
4047 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4048
4049 fi
4050
4051
4052 eval "$ac_cv_use_snglinst"
4053 if test "$no_cache" != 1; then
4054 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4055 fi
4056
4057 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4058 echo "$ac_t""yes" 1>&6
4059 else
4060 echo "$ac_t""no" 1>&6
4061 fi
4062
4063
4064
4065 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4066 echo "configure:4067: checking for --enable-mimetype" >&5
4067 no_cache=0
4068 # Check whether --enable-mimetype or --disable-mimetype was given.
4069 if test "${enable_mimetype+set}" = set; then
4070 enableval="$enable_mimetype"
4071
4072 if test "$enableval" = yes; then
4073 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4074 else
4075 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4076 fi
4077
4078 else
4079
4080 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4088
4089 fi
4090
4091
4092 eval "$ac_cv_use_mimetype"
4093 if test "$no_cache" != 1; then
4094 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4095 fi
4096
4097 if test "$wxUSE_MIMETYPE" = yes; then
4098 echo "$ac_t""yes" 1>&6
4099 else
4100 echo "$ac_t""no" 1>&6
4101 fi
4102
4103
4104
4105
4106 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4107 echo "configure:4108: checking for --enable-threads" >&5
4108 no_cache=0
4109 # Check whether --enable-threads or --disable-threads was given.
4110 if test "${enable_threads+set}" = set; then
4111 enableval="$enable_threads"
4112
4113 if test "$enableval" = yes; then
4114 ac_cv_use_threads='wxUSE_THREADS=yes'
4115 else
4116 ac_cv_use_threads='wxUSE_THREADS=no'
4117 fi
4118
4119 else
4120
4121 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4122 if test "x$LINE" != x ; then
4123 eval "DEFAULT_$LINE"
4124 else
4125 no_cache=1
4126 fi
4127
4128 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4129
4130 fi
4131
4132
4133 eval "$ac_cv_use_threads"
4134 if test "$no_cache" != 1; then
4135 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4136 fi
4137
4138 if test "$wxUSE_THREADS" = yes; then
4139 echo "$ac_t""yes" 1>&6
4140 else
4141 echo "$ac_t""no" 1>&6
4142 fi
4143
4144
4145 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4146 echo "configure:4147: checking for --enable-serial" >&5
4147 no_cache=0
4148 # Check whether --enable-serial or --disable-serial was given.
4149 if test "${enable_serial+set}" = set; then
4150 enableval="$enable_serial"
4151
4152 if test "$enableval" = yes; then
4153 ac_cv_use_serial='wxUSE_SERIAL=yes'
4154 else
4155 ac_cv_use_serial='wxUSE_SERIAL=no'
4156 fi
4157
4158 else
4159
4160 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4168
4169 fi
4170
4171
4172 eval "$ac_cv_use_serial"
4173 if test "$no_cache" != 1; then
4174 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4175 fi
4176
4177 if test "$wxUSE_SERIAL" = yes; then
4178 echo "$ac_t""yes" 1>&6
4179 else
4180 echo "$ac_t""no" 1>&6
4181 fi
4182
4183
4184 if test "$wxUSE_GUI" = "yes"; then
4185
4186
4187
4188 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4189 echo "configure:4190: checking for --enable-docview" >&5
4190 no_cache=0
4191 # Check whether --enable-docview or --disable-docview was given.
4192 if test "${enable_docview+set}" = set; then
4193 enableval="$enable_docview"
4194
4195 if test "$enableval" = yes; then
4196 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4197 else
4198 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4199 fi
4200
4201 else
4202
4203 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4211
4212 fi
4213
4214
4215 eval "$ac_cv_use_docview"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4221 echo "$ac_t""yes" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4224 fi
4225
4226
4227 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4228 echo "configure:4229: checking for --enable-help" >&5
4229 no_cache=0
4230 # Check whether --enable-help or --disable-help was given.
4231 if test "${enable_help+set}" = set; then
4232 enableval="$enable_help"
4233
4234 if test "$enableval" = yes; then
4235 ac_cv_use_help='wxUSE_HELP=yes'
4236 else
4237 ac_cv_use_help='wxUSE_HELP=no'
4238 fi
4239
4240 else
4241
4242 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4243 if test "x$LINE" != x ; then
4244 eval "DEFAULT_$LINE"
4245 else
4246 no_cache=1
4247 fi
4248
4249 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4250
4251 fi
4252
4253
4254 eval "$ac_cv_use_help"
4255 if test "$no_cache" != 1; then
4256 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4257 fi
4258
4259 if test "$wxUSE_HELP" = yes; then
4260 echo "$ac_t""yes" 1>&6
4261 else
4262 echo "$ac_t""no" 1>&6
4263 fi
4264
4265
4266 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4267 echo "configure:4268: checking for --enable-constraints" >&5
4268 no_cache=0
4269 # Check whether --enable-constraints or --disable-constraints was given.
4270 if test "${enable_constraints+set}" = set; then
4271 enableval="$enable_constraints"
4272
4273 if test "$enableval" = yes; then
4274 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4275 else
4276 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4277 fi
4278
4279 else
4280
4281 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4282 if test "x$LINE" != x ; then
4283 eval "DEFAULT_$LINE"
4284 else
4285 no_cache=1
4286 fi
4287
4288 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4289
4290 fi
4291
4292
4293 eval "$ac_cv_use_constraints"
4294 if test "$no_cache" != 1; then
4295 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4296 fi
4297
4298 if test "$wxUSE_CONSTRAINTS" = yes; then
4299 echo "$ac_t""yes" 1>&6
4300 else
4301 echo "$ac_t""no" 1>&6
4302 fi
4303
4304
4305 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4306 echo "configure:4307: checking for --enable-printarch" >&5
4307 no_cache=0
4308 # Check whether --enable-printarch or --disable-printarch was given.
4309 if test "${enable_printarch+set}" = set; then
4310 enableval="$enable_printarch"
4311
4312 if test "$enableval" = yes; then
4313 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4314 else
4315 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4316 fi
4317
4318 else
4319
4320 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4328
4329 fi
4330
4331
4332 eval "$ac_cv_use_printarch"
4333 if test "$no_cache" != 1; then
4334 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4335 fi
4336
4337 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4338 echo "$ac_t""yes" 1>&6
4339 else
4340 echo "$ac_t""no" 1>&6
4341 fi
4342
4343
4344 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4345 echo "configure:4346: checking for --enable-mdi" >&5
4346 no_cache=0
4347 # Check whether --enable-mdi or --disable-mdi was given.
4348 if test "${enable_mdi+set}" = set; then
4349 enableval="$enable_mdi"
4350
4351 if test "$enableval" = yes; then
4352 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4353 else
4354 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4355 fi
4356
4357 else
4358
4359 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4360 if test "x$LINE" != x ; then
4361 eval "DEFAULT_$LINE"
4362 else
4363 no_cache=1
4364 fi
4365
4366 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4367
4368 fi
4369
4370
4371 eval "$ac_cv_use_mdi"
4372 if test "$no_cache" != 1; then
4373 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4374 fi
4375
4376 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4377 echo "$ac_t""yes" 1>&6
4378 else
4379 echo "$ac_t""no" 1>&6
4380 fi
4381
4382
4383 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4384 echo "configure:4385: checking for --enable-loggui" >&5
4385 no_cache=0
4386 # Check whether --enable-loggui or --disable-loggui was given.
4387 if test "${enable_loggui+set}" = set; then
4388 enableval="$enable_loggui"
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4392 else
4393 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4394 fi
4395
4396 else
4397
4398 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4406
4407 fi
4408
4409
4410 eval "$ac_cv_use_loggui"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_LOGGUI" = yes; then
4416 echo "$ac_t""yes" 1>&6
4417 else
4418 echo "$ac_t""no" 1>&6
4419 fi
4420
4421
4422 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4423 echo "configure:4424: checking for --enable-logwin" >&5
4424 no_cache=0
4425 # Check whether --enable-logwin or --disable-logwin was given.
4426 if test "${enable_logwin+set}" = set; then
4427 enableval="$enable_logwin"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4431 else
4432 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4433 fi
4434
4435 else
4436
4437 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4445
4446 fi
4447
4448
4449 eval "$ac_cv_use_logwin"
4450 if test "$no_cache" != 1; then
4451 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4452 fi
4453
4454 if test "$wxUSE_LOGWINDOW" = yes; then
4455 echo "$ac_t""yes" 1>&6
4456 else
4457 echo "$ac_t""no" 1>&6
4458 fi
4459
4460
4461
4462 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4463 echo "configure:4464: checking for --enable-postscript" >&5
4464 no_cache=0
4465 # Check whether --enable-postscript or --disable-postscript was given.
4466 if test "${enable_postscript+set}" = set; then
4467 enableval="$enable_postscript"
4468
4469 if test "$enableval" = yes; then
4470 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4471 else
4472 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4473 fi
4474
4475 else
4476
4477 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4478 if test "x$LINE" != x ; then
4479 eval "DEFAULT_$LINE"
4480 else
4481 no_cache=1
4482 fi
4483
4484 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4485
4486 fi
4487
4488
4489 eval "$ac_cv_use_postscript"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_POSTSCRIPT" = yes; then
4495 echo "$ac_t""yes" 1>&6
4496 else
4497 echo "$ac_t""no" 1>&6
4498 fi
4499
4500
4501
4502
4503
4504 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4505 echo "configure:4506: checking for --enable-prologio" >&5
4506 no_cache=0
4507 # Check whether --enable-prologio or --disable-prologio was given.
4508 if test "${enable_prologio+set}" = set; then
4509 enableval="$enable_prologio"
4510
4511 if test "$enableval" = yes; then
4512 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4513 else
4514 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4515 fi
4516
4517 else
4518
4519 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4527
4528 fi
4529
4530
4531 eval "$ac_cv_use_prologio"
4532 if test "$no_cache" != 1; then
4533 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4534 fi
4535
4536 if test "$wxUSE_PROLOGIO" = yes; then
4537 echo "$ac_t""yes" 1>&6
4538 else
4539 echo "$ac_t""no" 1>&6
4540 fi
4541
4542
4543 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4544 echo "configure:4545: checking for --enable-resources" >&5
4545 no_cache=0
4546 # Check whether --enable-resources or --disable-resources was given.
4547 if test "${enable_resources+set}" = set; then
4548 enableval="$enable_resources"
4549
4550 if test "$enableval" = yes; then
4551 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4552 else
4553 ac_cv_use_resources='wxUSE_RESOURCES=no'
4554 fi
4555
4556 else
4557
4558 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4559 if test "x$LINE" != x ; then
4560 eval "DEFAULT_$LINE"
4561 else
4562 no_cache=1
4563 fi
4564
4565 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4566
4567 fi
4568
4569
4570 eval "$ac_cv_use_resources"
4571 if test "$no_cache" != 1; then
4572 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4573 fi
4574
4575 if test "$wxUSE_RESOURCES" = yes; then
4576 echo "$ac_t""yes" 1>&6
4577 else
4578 echo "$ac_t""no" 1>&6
4579 fi
4580
4581
4582
4583 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4584 echo "configure:4585: checking for --enable-xresources" >&5
4585 no_cache=0
4586 # Check whether --enable-xresources or --disable-xresources was given.
4587 if test "${enable_xresources+set}" = set; then
4588 enableval="$enable_xresources"
4589
4590 if test "$enableval" = yes; then
4591 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4592 else
4593 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4594 fi
4595
4596 else
4597
4598 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4599 if test "x$LINE" != x ; then
4600 eval "DEFAULT_$LINE"
4601 else
4602 no_cache=1
4603 fi
4604
4605 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4606
4607 fi
4608
4609
4610 eval "$ac_cv_use_xresources"
4611 if test "$no_cache" != 1; then
4612 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4613 fi
4614
4615 if test "$wxUSE_X_RESOURCES" = yes; then
4616 echo "$ac_t""yes" 1>&6
4617 else
4618 echo "$ac_t""no" 1>&6
4619 fi
4620
4621
4622
4623
4624 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4625 echo "configure:4626: checking for --enable-clipboard" >&5
4626 no_cache=0
4627 # Check whether --enable-clipboard or --disable-clipboard was given.
4628 if test "${enable_clipboard+set}" = set; then
4629 enableval="$enable_clipboard"
4630
4631 if test "$enableval" = yes; then
4632 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4633 else
4634 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4635 fi
4636
4637 else
4638
4639 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4640 if test "x$LINE" != x ; then
4641 eval "DEFAULT_$LINE"
4642 else
4643 no_cache=1
4644 fi
4645
4646 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4647
4648 fi
4649
4650
4651 eval "$ac_cv_use_clipboard"
4652 if test "$no_cache" != 1; then
4653 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4654 fi
4655
4656 if test "$wxUSE_CLIPBOARD" = yes; then
4657 echo "$ac_t""yes" 1>&6
4658 else
4659 echo "$ac_t""no" 1>&6
4660 fi
4661
4662
4663 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4664 echo "configure:4665: checking for --enable-dnd" >&5
4665 no_cache=0
4666 # Check whether --enable-dnd or --disable-dnd was given.
4667 if test "${enable_dnd+set}" = set; then
4668 enableval="$enable_dnd"
4669
4670 if test "$enableval" = yes; then
4671 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4672 else
4673 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4674 fi
4675
4676 else
4677
4678 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4679 if test "x$LINE" != x ; then
4680 eval "DEFAULT_$LINE"
4681 else
4682 no_cache=1
4683 fi
4684
4685 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4686
4687 fi
4688
4689
4690 eval "$ac_cv_use_dnd"
4691 if test "$no_cache" != 1; then
4692 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4693 fi
4694
4695 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4696 echo "$ac_t""yes" 1>&6
4697 else
4698 echo "$ac_t""no" 1>&6
4699 fi
4700
4701
4702 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4703 echo "configure:4704: checking for --enable-metafile" >&5
4704 no_cache=0
4705 # Check whether --enable-metafile or --disable-metafile was given.
4706 if test "${enable_metafile+set}" = set; then
4707 enableval="$enable_metafile"
4708
4709 if test "$enableval" = yes; then
4710 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4711 else
4712 ac_cv_use_metafile='wxUSE_METAFILE=no'
4713 fi
4714
4715 else
4716
4717 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4718 if test "x$LINE" != x ; then
4719 eval "DEFAULT_$LINE"
4720 else
4721 no_cache=1
4722 fi
4723
4724 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4725
4726 fi
4727
4728
4729 eval "$ac_cv_use_metafile"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4732 fi
4733
4734 if test "$wxUSE_METAFILE" = yes; then
4735 echo "$ac_t""yes" 1>&6
4736 else
4737 echo "$ac_t""no" 1>&6
4738 fi
4739
4740
4741
4742 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
4743 echo "configure:4744: checking for --enable-wxtree" >&5
4744 no_cache=0
4745 # Check whether --enable-wxtree or --disable-wxtree was given.
4746 if test "${enable_wxtree+set}" = set; then
4747 enableval="$enable_wxtree"
4748
4749 if test "$enableval" = yes; then
4750 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4751 else
4752 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4753 fi
4754
4755 else
4756
4757 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
4764 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4765
4766 fi
4767
4768
4769 eval "$ac_cv_use_wxtree"
4770 if test "$no_cache" != 1; then
4771 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4772 fi
4773
4774 if test "$wxUSE_WXTREE" = yes; then
4775 echo "$ac_t""yes" 1>&6
4776 else
4777 echo "$ac_t""no" 1>&6
4778 fi
4779
4780
4781
4782
4783 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4784 echo "configure:4785: checking for --enable-controls" >&5
4785 no_cache=0
4786 # Check whether --enable-controls or --disable-controls was given.
4787 if test "${enable_controls+set}" = set; then
4788 enableval="$enable_controls"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4792 else
4793 ac_cv_use_controls='wxUSE_CONTROLS=no'
4794 fi
4795
4796 else
4797
4798 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4806
4807 fi
4808
4809
4810 eval "$ac_cv_use_controls"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_CONTROLS" = yes; then
4816 echo "$ac_t""yes" 1>&6
4817 else
4818 echo "$ac_t""no" 1>&6
4819 fi
4820
4821
4822 if test "$wxUSE_CONTROLS" = "yes"; then
4823 DEFAULT_wxUSE_ACCEL=yes
4824 DEFAULT_wxUSE_BMPBUTTON=yes
4825 DEFAULT_wxUSE_BUTTON=yes
4826 DEFAULT_wxUSE_CALCTRL=no
4827 DEFAULT_wxUSE_CARET=yes
4828 DEFAULT_wxUSE_COMBOBOX=yes
4829 DEFAULT_wxUSE_CHECKBOX=yes
4830 DEFAULT_wxUSE_CHECKLISTBOX=yes
4831 DEFAULT_wxUSE_CHOICE=yes
4832 DEFAULT_wxUSE_GAUGE=yes
4833 DEFAULT_wxUSE_GRID=yes
4834 DEFAULT_wxUSE_NEW_GRID=yes
4835 DEFAULT_wxUSE_IMAGLIST=yes
4836 DEFAULT_wxUSE_LISTBOX=yes
4837 DEFAULT_wxUSE_LISTCTRL=yes
4838 DEFAULT_wxUSE_NOTEBOOK=yes
4839 DEFAULT_wxUSE_RADIOBOX=yes
4840 DEFAULT_wxUSE_RADIOBTN=yes
4841 DEFAULT_wxUSE_SASH=yes
4842 DEFAULT_wxUSE_SCROLLBAR=yes
4843 DEFAULT_wxUSE_SLIDER=yes
4844 DEFAULT_wxUSE_SPINBTN=yes
4845 DEFAULT_wxUSE_SPINCTRL=yes
4846 DEFAULT_wxUSE_SPLITTER=yes
4847 DEFAULT_wxUSE_STATBMP=yes
4848 DEFAULT_wxUSE_STATBOX=yes
4849 DEFAULT_wxUSE_STATLINE=yes
4850 DEFAULT_wxUSE_STATUSBAR=yes
4851 DEFAULT_wxUSE_TAB_DIALOG=yes
4852 DEFAULT_wxUSE_TOGGLEBTN=yes
4853 DEFAULT_wxUSE_TOOLBAR=yes
4854 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4855 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4856 DEFAULT_wxUSE_TOOLTIPS=yes
4857 DEFAULT_wxUSE_TREECTRL=yes
4858 elif test "$wxUSE_CONTROLS" = "no"; then
4859 DEFAULT_wxUSE_ACCEL=no
4860 DEFAULT_wxUSE_BMPBUTTON=no
4861 DEFAULT_wxUSE_BUTTON=no
4862 DEFAULT_wxUSE_CALCTRL=no
4863 DEFAULT_wxUSE_CARET=no
4864 DEFAULT_wxUSE_COMBOBOX=no
4865 DEFAULT_wxUSE_CHECKBOX=no
4866 DEFAULT_wxUSE_CHECKLISTBOX=no
4867 DEFAULT_wxUSE_CHOICE=no
4868 DEFAULT_wxUSE_GAUGE=no
4869 DEFAULT_wxUSE_GRID=no
4870 DEFAULT_wxUSE_NEW_GRID=no
4871 DEFAULT_wxUSE_IMAGLIST=no
4872 DEFAULT_wxUSE_LISTBOX=no
4873 DEFAULT_wxUSE_LISTCTRL=no
4874 DEFAULT_wxUSE_NOTEBOOK=no
4875 DEFAULT_wxUSE_RADIOBOX=no
4876 DEFAULT_wxUSE_RADIOBTN=no
4877 DEFAULT_wxUSE_SASH=no
4878 DEFAULT_wxUSE_SCROLLBAR=no
4879 DEFAULT_wxUSE_SLIDER=no
4880 DEFAULT_wxUSE_SPINBTN=no
4881 DEFAULT_wxUSE_SPINCTRL=no
4882 DEFAULT_wxUSE_SPLITTER=no
4883 DEFAULT_wxUSE_STATBMP=no
4884 DEFAULT_wxUSE_STATBOX=no
4885 DEFAULT_wxUSE_STATLINE=no
4886 DEFAULT_wxUSE_STATUSBAR=no
4887 DEFAULT_wxUSE_TAB_DIALOG=no
4888 DEFAULT_wxUSE_TOGGLEBTN=no
4889 DEFAULT_wxUSE_TOOLBAR=no
4890 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4891 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4892 DEFAULT_wxUSE_TOOLTIPS=no
4893 DEFAULT_wxUSE_TREECTRL=no
4894 fi
4895
4896
4897 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
4898 echo "configure:4899: checking for --enable-accel" >&5
4899 no_cache=0
4900 # Check whether --enable-accel or --disable-accel was given.
4901 if test "${enable_accel+set}" = set; then
4902 enableval="$enable_accel"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_accel='wxUSE_ACCEL=yes'
4906 else
4907 ac_cv_use_accel='wxUSE_ACCEL=no'
4908 fi
4909
4910 else
4911
4912 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4920
4921 fi
4922
4923
4924 eval "$ac_cv_use_accel"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_ACCEL" = yes; then
4930 echo "$ac_t""yes" 1>&6
4931 else
4932 echo "$ac_t""no" 1>&6
4933 fi
4934
4935
4936 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
4937 echo "configure:4938: checking for --enable-button" >&5
4938 no_cache=0
4939 # Check whether --enable-button or --disable-button was given.
4940 if test "${enable_button+set}" = set; then
4941 enableval="$enable_button"
4942
4943 if test "$enableval" = yes; then
4944 ac_cv_use_button='wxUSE_BUTTON=yes'
4945 else
4946 ac_cv_use_button='wxUSE_BUTTON=no'
4947 fi
4948
4949 else
4950
4951 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
4952 if test "x$LINE" != x ; then
4953 eval "DEFAULT_$LINE"
4954 else
4955 no_cache=1
4956 fi
4957
4958 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
4959
4960 fi
4961
4962
4963 eval "$ac_cv_use_button"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_BUTTON" = yes; then
4969 echo "$ac_t""yes" 1>&6
4970 else
4971 echo "$ac_t""no" 1>&6
4972 fi
4973
4974
4975 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
4976 echo "configure:4977: checking for --enable-bmpbutton" >&5
4977 no_cache=0
4978 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4979 if test "${enable_bmpbutton+set}" = set; then
4980 enableval="$enable_bmpbutton"
4981
4982 if test "$enableval" = yes; then
4983 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4984 else
4985 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4986 fi
4987
4988 else
4989
4990 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4991 if test "x$LINE" != x ; then
4992 eval "DEFAULT_$LINE"
4993 else
4994 no_cache=1
4995 fi
4996
4997 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4998
4999 fi
5000
5001
5002 eval "$ac_cv_use_bmpbutton"
5003 if test "$no_cache" != 1; then
5004 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5005 fi
5006
5007 if test "$wxUSE_BMPBUTTON" = yes; then
5008 echo "$ac_t""yes" 1>&6
5009 else
5010 echo "$ac_t""no" 1>&6
5011 fi
5012
5013
5014 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5015 echo "configure:5016: checking for --enable-calendar" >&5
5016 no_cache=0
5017 # Check whether --enable-calendar or --disable-calendar was given.
5018 if test "${enable_calendar+set}" = set; then
5019 enableval="$enable_calendar"
5020
5021 if test "$enableval" = yes; then
5022 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5023 else
5024 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5025 fi
5026
5027 else
5028
5029 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5037
5038 fi
5039
5040
5041 eval "$ac_cv_use_calendar"
5042 if test "$no_cache" != 1; then
5043 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5044 fi
5045
5046 if test "$wxUSE_CALCTRL" = yes; then
5047 echo "$ac_t""yes" 1>&6
5048 else
5049 echo "$ac_t""no" 1>&6
5050 fi
5051
5052
5053 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5054 echo "configure:5055: checking for --enable-caret" >&5
5055 no_cache=0
5056 # Check whether --enable-caret or --disable-caret was given.
5057 if test "${enable_caret+set}" = set; then
5058 enableval="$enable_caret"
5059
5060 if test "$enableval" = yes; then
5061 ac_cv_use_caret='wxUSE_CARET=yes'
5062 else
5063 ac_cv_use_caret='wxUSE_CARET=no'
5064 fi
5065
5066 else
5067
5068 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5069 if test "x$LINE" != x ; then
5070 eval "DEFAULT_$LINE"
5071 else
5072 no_cache=1
5073 fi
5074
5075 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5076
5077 fi
5078
5079
5080 eval "$ac_cv_use_caret"
5081 if test "$no_cache" != 1; then
5082 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5083 fi
5084
5085 if test "$wxUSE_CARET" = yes; then
5086 echo "$ac_t""yes" 1>&6
5087 else
5088 echo "$ac_t""no" 1>&6
5089 fi
5090
5091
5092 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5093 echo "configure:5094: checking for --enable-checkbox" >&5
5094 no_cache=0
5095 # Check whether --enable-checkbox or --disable-checkbox was given.
5096 if test "${enable_checkbox+set}" = set; then
5097 enableval="$enable_checkbox"
5098
5099 if test "$enableval" = yes; then
5100 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5101 else
5102 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5103 fi
5104
5105 else
5106
5107 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5115
5116 fi
5117
5118
5119 eval "$ac_cv_use_checkbox"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_CHECKBOX" = yes; then
5125 echo "$ac_t""yes" 1>&6
5126 else
5127 echo "$ac_t""no" 1>&6
5128 fi
5129
5130
5131 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5132 echo "configure:5133: checking for --enable-checklst" >&5
5133 no_cache=0
5134 # Check whether --enable-checklst or --disable-checklst was given.
5135 if test "${enable_checklst+set}" = set; then
5136 enableval="$enable_checklst"
5137
5138 if test "$enableval" = yes; then
5139 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5140 else
5141 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5142 fi
5143
5144 else
5145
5146 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5154
5155 fi
5156
5157
5158 eval "$ac_cv_use_checklst"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_CHECKLST" = yes; then
5164 echo "$ac_t""yes" 1>&6
5165 else
5166 echo "$ac_t""no" 1>&6
5167 fi
5168
5169
5170 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5171 echo "configure:5172: checking for --enable-choice" >&5
5172 no_cache=0
5173 # Check whether --enable-choice or --disable-choice was given.
5174 if test "${enable_choice+set}" = set; then
5175 enableval="$enable_choice"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_choice='wxUSE_CHOICE=yes'
5179 else
5180 ac_cv_use_choice='wxUSE_CHOICE=no'
5181 fi
5182
5183 else
5184
5185 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5193
5194 fi
5195
5196
5197 eval "$ac_cv_use_choice"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_CHOICE" = yes; then
5203 echo "$ac_t""yes" 1>&6
5204 else
5205 echo "$ac_t""no" 1>&6
5206 fi
5207
5208
5209 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5210 echo "configure:5211: checking for --enable-combobox" >&5
5211 no_cache=0
5212 # Check whether --enable-combobox or --disable-combobox was given.
5213 if test "${enable_combobox+set}" = set; then
5214 enableval="$enable_combobox"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5218 else
5219 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5220 fi
5221
5222 else
5223
5224 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5232
5233 fi
5234
5235
5236 eval "$ac_cv_use_combobox"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_COMBOBOX" = yes; then
5242 echo "$ac_t""yes" 1>&6
5243 else
5244 echo "$ac_t""no" 1>&6
5245 fi
5246
5247
5248 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5249 echo "configure:5250: checking for --enable-gauge" >&5
5250 no_cache=0
5251 # Check whether --enable-gauge or --disable-gauge was given.
5252 if test "${enable_gauge+set}" = set; then
5253 enableval="$enable_gauge"
5254
5255 if test "$enableval" = yes; then
5256 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5257 else
5258 ac_cv_use_gauge='wxUSE_GAUGE=no'
5259 fi
5260
5261 else
5262
5263 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5264 if test "x$LINE" != x ; then
5265 eval "DEFAULT_$LINE"
5266 else
5267 no_cache=1
5268 fi
5269
5270 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5271
5272 fi
5273
5274
5275 eval "$ac_cv_use_gauge"
5276 if test "$no_cache" != 1; then
5277 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5278 fi
5279
5280 if test "$wxUSE_GAUGE" = yes; then
5281 echo "$ac_t""yes" 1>&6
5282 else
5283 echo "$ac_t""no" 1>&6
5284 fi
5285
5286
5287 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5288 echo "configure:5289: checking for --enable-grid" >&5
5289 no_cache=0
5290 # Check whether --enable-grid or --disable-grid was given.
5291 if test "${enable_grid+set}" = set; then
5292 enableval="$enable_grid"
5293
5294 if test "$enableval" = yes; then
5295 ac_cv_use_grid='wxUSE_GRID=yes'
5296 else
5297 ac_cv_use_grid='wxUSE_GRID=no'
5298 fi
5299
5300 else
5301
5302 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5303 if test "x$LINE" != x ; then
5304 eval "DEFAULT_$LINE"
5305 else
5306 no_cache=1
5307 fi
5308
5309 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5310
5311 fi
5312
5313
5314 eval "$ac_cv_use_grid"
5315 if test "$no_cache" != 1; then
5316 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5317 fi
5318
5319 if test "$wxUSE_GRID" = yes; then
5320 echo "$ac_t""yes" 1>&6
5321 else
5322 echo "$ac_t""no" 1>&6
5323 fi
5324
5325
5326 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5327 echo "configure:5328: checking for --enable-newgrid" >&5
5328 no_cache=0
5329 # Check whether --enable-newgrid or --disable-newgrid was given.
5330 if test "${enable_newgrid+set}" = set; then
5331 enableval="$enable_newgrid"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5335 else
5336 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5337 fi
5338
5339 else
5340
5341 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5349
5350 fi
5351
5352
5353 eval "$ac_cv_use_newgrid"
5354 if test "$no_cache" != 1; then
5355 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5356 fi
5357
5358 if test "$wxUSE_NEW_GRID" = yes; then
5359 echo "$ac_t""yes" 1>&6
5360 else
5361 echo "$ac_t""no" 1>&6
5362 fi
5363
5364
5365 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5366 echo "configure:5367: checking for --enable-imaglist" >&5
5367 no_cache=0
5368 # Check whether --enable-imaglist or --disable-imaglist was given.
5369 if test "${enable_imaglist+set}" = set; then
5370 enableval="$enable_imaglist"
5371
5372 if test "$enableval" = yes; then
5373 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5374 else
5375 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5376 fi
5377
5378 else
5379
5380 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5381 if test "x$LINE" != x ; then
5382 eval "DEFAULT_$LINE"
5383 else
5384 no_cache=1
5385 fi
5386
5387 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5388
5389 fi
5390
5391
5392 eval "$ac_cv_use_imaglist"
5393 if test "$no_cache" != 1; then
5394 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5395 fi
5396
5397 if test "$wxUSE_IMAGLIST" = yes; then
5398 echo "$ac_t""yes" 1>&6
5399 else
5400 echo "$ac_t""no" 1>&6
5401 fi
5402
5403
5404 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5405 echo "configure:5406: checking for --enable-listbox" >&5
5406 no_cache=0
5407 # Check whether --enable-listbox or --disable-listbox was given.
5408 if test "${enable_listbox+set}" = set; then
5409 enableval="$enable_listbox"
5410
5411 if test "$enableval" = yes; then
5412 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5413 else
5414 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5415 fi
5416
5417 else
5418
5419 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5420 if test "x$LINE" != x ; then
5421 eval "DEFAULT_$LINE"
5422 else
5423 no_cache=1
5424 fi
5425
5426 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5427
5428 fi
5429
5430
5431 eval "$ac_cv_use_listbox"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_LISTBOX" = yes; then
5437 echo "$ac_t""yes" 1>&6
5438 else
5439 echo "$ac_t""no" 1>&6
5440 fi
5441
5442
5443 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5444 echo "configure:5445: checking for --enable-listctrl" >&5
5445 no_cache=0
5446 # Check whether --enable-listctrl or --disable-listctrl was given.
5447 if test "${enable_listctrl+set}" = set; then
5448 enableval="$enable_listctrl"
5449
5450 if test "$enableval" = yes; then
5451 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5452 else
5453 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5454 fi
5455
5456 else
5457
5458 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5459 if test "x$LINE" != x ; then
5460 eval "DEFAULT_$LINE"
5461 else
5462 no_cache=1
5463 fi
5464
5465 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5466
5467 fi
5468
5469
5470 eval "$ac_cv_use_listctrl"
5471 if test "$no_cache" != 1; then
5472 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5473 fi
5474
5475 if test "$wxUSE_LISTCTRL" = yes; then
5476 echo "$ac_t""yes" 1>&6
5477 else
5478 echo "$ac_t""no" 1>&6
5479 fi
5480
5481
5482 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5483 echo "configure:5484: checking for --enable-notebook" >&5
5484 no_cache=0
5485 # Check whether --enable-notebook or --disable-notebook was given.
5486 if test "${enable_notebook+set}" = set; then
5487 enableval="$enable_notebook"
5488
5489 if test "$enableval" = yes; then
5490 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5491 else
5492 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5493 fi
5494
5495 else
5496
5497 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5505
5506 fi
5507
5508
5509 eval "$ac_cv_use_notebook"
5510 if test "$no_cache" != 1; then
5511 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5512 fi
5513
5514 if test "$wxUSE_NOTEBOOK" = yes; then
5515 echo "$ac_t""yes" 1>&6
5516 else
5517 echo "$ac_t""no" 1>&6
5518 fi
5519
5520
5521 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5522 echo "configure:5523: checking for --enable-radiobox" >&5
5523 no_cache=0
5524 # Check whether --enable-radiobox or --disable-radiobox was given.
5525 if test "${enable_radiobox+set}" = set; then
5526 enableval="$enable_radiobox"
5527
5528 if test "$enableval" = yes; then
5529 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5530 else
5531 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5532 fi
5533
5534 else
5535
5536 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5544
5545 fi
5546
5547
5548 eval "$ac_cv_use_radiobox"
5549 if test "$no_cache" != 1; then
5550 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5551 fi
5552
5553 if test "$wxUSE_RADIOBOX" = yes; then
5554 echo "$ac_t""yes" 1>&6
5555 else
5556 echo "$ac_t""no" 1>&6
5557 fi
5558
5559
5560 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5561 echo "configure:5562: checking for --enable-radiobtn" >&5
5562 no_cache=0
5563 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5564 if test "${enable_radiobtn+set}" = set; then
5565 enableval="$enable_radiobtn"
5566
5567 if test "$enableval" = yes; then
5568 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5569 else
5570 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5571 fi
5572
5573 else
5574
5575 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
5582 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5583
5584 fi
5585
5586
5587 eval "$ac_cv_use_radiobtn"
5588 if test "$no_cache" != 1; then
5589 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5590 fi
5591
5592 if test "$wxUSE_RADIOBTN" = yes; then
5593 echo "$ac_t""yes" 1>&6
5594 else
5595 echo "$ac_t""no" 1>&6
5596 fi
5597
5598
5599 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5600 echo "configure:5601: checking for --enable-sash" >&5
5601 no_cache=0
5602 # Check whether --enable-sash or --disable-sash was given.
5603 if test "${enable_sash+set}" = set; then
5604 enableval="$enable_sash"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_sash='wxUSE_SASH=yes'
5608 else
5609 ac_cv_use_sash='wxUSE_SASH=no'
5610 fi
5611
5612 else
5613
5614 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5622
5623 fi
5624
5625
5626 eval "$ac_cv_use_sash"
5627 if test "$no_cache" != 1; then
5628 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5629 fi
5630
5631 if test "$wxUSE_SASH" = yes; then
5632 echo "$ac_t""yes" 1>&6
5633 else
5634 echo "$ac_t""no" 1>&6
5635 fi
5636
5637
5638 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5639 echo "configure:5640: checking for --enable-scrollbar" >&5
5640 no_cache=0
5641 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5642 if test "${enable_scrollbar+set}" = set; then
5643 enableval="$enable_scrollbar"
5644
5645 if test "$enableval" = yes; then
5646 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5647 else
5648 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5649 fi
5650
5651 else
5652
5653 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5654 if test "x$LINE" != x ; then
5655 eval "DEFAULT_$LINE"
5656 else
5657 no_cache=1
5658 fi
5659
5660 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5661
5662 fi
5663
5664
5665 eval "$ac_cv_use_scrollbar"
5666 if test "$no_cache" != 1; then
5667 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5668 fi
5669
5670 if test "$wxUSE_SCROLLBAR" = yes; then
5671 echo "$ac_t""yes" 1>&6
5672 else
5673 echo "$ac_t""no" 1>&6
5674 fi
5675
5676
5677 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5678 echo "configure:5679: checking for --enable-slider" >&5
5679 no_cache=0
5680 # Check whether --enable-slider or --disable-slider was given.
5681 if test "${enable_slider+set}" = set; then
5682 enableval="$enable_slider"
5683
5684 if test "$enableval" = yes; then
5685 ac_cv_use_slider='wxUSE_SLIDER=yes'
5686 else
5687 ac_cv_use_slider='wxUSE_SLIDER=no'
5688 fi
5689
5690 else
5691
5692 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5693 if test "x$LINE" != x ; then
5694 eval "DEFAULT_$LINE"
5695 else
5696 no_cache=1
5697 fi
5698
5699 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5700
5701 fi
5702
5703
5704 eval "$ac_cv_use_slider"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_SLIDER" = yes; then
5710 echo "$ac_t""yes" 1>&6
5711 else
5712 echo "$ac_t""no" 1>&6
5713 fi
5714
5715
5716 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5717 echo "configure:5718: checking for --enable-spinbtn" >&5
5718 no_cache=0
5719 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5720 if test "${enable_spinbtn+set}" = set; then
5721 enableval="$enable_spinbtn"
5722
5723 if test "$enableval" = yes; then
5724 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5725 else
5726 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5727 fi
5728
5729 else
5730
5731 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5732 if test "x$LINE" != x ; then
5733 eval "DEFAULT_$LINE"
5734 else
5735 no_cache=1
5736 fi
5737
5738 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5739
5740 fi
5741
5742
5743 eval "$ac_cv_use_spinbtn"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_SPINBTN" = yes; then
5749 echo "$ac_t""yes" 1>&6
5750 else
5751 echo "$ac_t""no" 1>&6
5752 fi
5753
5754
5755 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5756 echo "configure:5757: checking for --enable-spinctrl" >&5
5757 no_cache=0
5758 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5759 if test "${enable_spinctrl+set}" = set; then
5760 enableval="$enable_spinctrl"
5761
5762 if test "$enableval" = yes; then
5763 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5764 else
5765 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5766 fi
5767
5768 else
5769
5770 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5771 if test "x$LINE" != x ; then
5772 eval "DEFAULT_$LINE"
5773 else
5774 no_cache=1
5775 fi
5776
5777 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5778
5779 fi
5780
5781
5782 eval "$ac_cv_use_spinctrl"
5783 if test "$no_cache" != 1; then
5784 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5785 fi
5786
5787 if test "$wxUSE_SPINCTRL" = yes; then
5788 echo "$ac_t""yes" 1>&6
5789 else
5790 echo "$ac_t""no" 1>&6
5791 fi
5792
5793
5794 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
5795 echo "configure:5796: checking for --enable-splitter" >&5
5796 no_cache=0
5797 # Check whether --enable-splitter or --disable-splitter was given.
5798 if test "${enable_splitter+set}" = set; then
5799 enableval="$enable_splitter"
5800
5801 if test "$enableval" = yes; then
5802 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5803 else
5804 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5805 fi
5806
5807 else
5808
5809 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5810 if test "x$LINE" != x ; then
5811 eval "DEFAULT_$LINE"
5812 else
5813 no_cache=1
5814 fi
5815
5816 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5817
5818 fi
5819
5820
5821 eval "$ac_cv_use_splitter"
5822 if test "$no_cache" != 1; then
5823 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5824 fi
5825
5826 if test "$wxUSE_SPLITTER" = yes; then
5827 echo "$ac_t""yes" 1>&6
5828 else
5829 echo "$ac_t""no" 1>&6
5830 fi
5831
5832
5833 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
5834 echo "configure:5835: checking for --enable-statbmp" >&5
5835 no_cache=0
5836 # Check whether --enable-statbmp or --disable-statbmp was given.
5837 if test "${enable_statbmp+set}" = set; then
5838 enableval="$enable_statbmp"
5839
5840 if test "$enableval" = yes; then
5841 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5842 else
5843 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5844 fi
5845
5846 else
5847
5848 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5849 if test "x$LINE" != x ; then
5850 eval "DEFAULT_$LINE"
5851 else
5852 no_cache=1
5853 fi
5854
5855 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5856
5857 fi
5858
5859
5860 eval "$ac_cv_use_statbmp"
5861 if test "$no_cache" != 1; then
5862 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5863 fi
5864
5865 if test "$wxUSE_STATBMP" = yes; then
5866 echo "$ac_t""yes" 1>&6
5867 else
5868 echo "$ac_t""no" 1>&6
5869 fi
5870
5871
5872 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
5873 echo "configure:5874: checking for --enable-statbox" >&5
5874 no_cache=0
5875 # Check whether --enable-statbox or --disable-statbox was given.
5876 if test "${enable_statbox+set}" = set; then
5877 enableval="$enable_statbox"
5878
5879 if test "$enableval" = yes; then
5880 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5881 else
5882 ac_cv_use_statbox='wxUSE_STATBOX=no'
5883 fi
5884
5885 else
5886
5887 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5888 if test "x$LINE" != x ; then
5889 eval "DEFAULT_$LINE"
5890 else
5891 no_cache=1
5892 fi
5893
5894 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5895
5896 fi
5897
5898
5899 eval "$ac_cv_use_statbox"
5900 if test "$no_cache" != 1; then
5901 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5902 fi
5903
5904 if test "$wxUSE_STATBOX" = yes; then
5905 echo "$ac_t""yes" 1>&6
5906 else
5907 echo "$ac_t""no" 1>&6
5908 fi
5909
5910
5911 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
5912 echo "configure:5913: checking for --enable-statline" >&5
5913 no_cache=0
5914 # Check whether --enable-statline or --disable-statline was given.
5915 if test "${enable_statline+set}" = set; then
5916 enableval="$enable_statline"
5917
5918 if test "$enableval" = yes; then
5919 ac_cv_use_statline='wxUSE_STATLINE=yes'
5920 else
5921 ac_cv_use_statline='wxUSE_STATLINE=no'
5922 fi
5923
5924 else
5925
5926 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5934
5935 fi
5936
5937
5938 eval "$ac_cv_use_statline"
5939 if test "$no_cache" != 1; then
5940 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5941 fi
5942
5943 if test "$wxUSE_STATLINE" = yes; then
5944 echo "$ac_t""yes" 1>&6
5945 else
5946 echo "$ac_t""no" 1>&6
5947 fi
5948
5949
5950 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
5951 echo "configure:5952: checking for --enable-stattext" >&5
5952 no_cache=0
5953 # Check whether --enable-stattext or --disable-stattext was given.
5954 if test "${enable_stattext+set}" = set; then
5955 enableval="$enable_stattext"
5956
5957 if test "$enableval" = yes; then
5958 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5959 else
5960 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5961 fi
5962
5963 else
5964
5965 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
5972 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5973
5974 fi
5975
5976
5977 eval "$ac_cv_use_stattext"
5978 if test "$no_cache" != 1; then
5979 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5980 fi
5981
5982 if test "$wxUSE_STATTEXT" = yes; then
5983 echo "$ac_t""yes" 1>&6
5984 else
5985 echo "$ac_t""no" 1>&6
5986 fi
5987
5988
5989 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
5990 echo "configure:5991: checking for --enable-statusbar" >&5
5991 no_cache=0
5992 # Check whether --enable-statusbar or --disable-statusbar was given.
5993 if test "${enable_statusbar+set}" = set; then
5994 enableval="$enable_statusbar"
5995
5996 if test "$enableval" = yes; then
5997 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5998 else
5999 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6000 fi
6001
6002 else
6003
6004 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6005 if test "x$LINE" != x ; then
6006 eval "DEFAULT_$LINE"
6007 else
6008 no_cache=1
6009 fi
6010
6011 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6012
6013 fi
6014
6015
6016 eval "$ac_cv_use_statusbar"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_STATUSBAR" = yes; then
6022 echo "$ac_t""yes" 1>&6
6023 else
6024 echo "$ac_t""no" 1>&6
6025 fi
6026
6027
6028 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6029 echo "configure:6030: checking for --enable-tabdialog" >&5
6030 no_cache=0
6031 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6032 if test "${enable_tabdialog+set}" = set; then
6033 enableval="$enable_tabdialog"
6034
6035 if test "$enableval" = yes; then
6036 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6037 else
6038 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6039 fi
6040
6041 else
6042
6043 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6044 if test "x$LINE" != x ; then
6045 eval "DEFAULT_$LINE"
6046 else
6047 no_cache=1
6048 fi
6049
6050 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6051
6052 fi
6053
6054
6055 eval "$ac_cv_use_tabdialog"
6056 if test "$no_cache" != 1; then
6057 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6058 fi
6059
6060 if test "$wxUSE_TABDIALOG" = yes; then
6061 echo "$ac_t""yes" 1>&6
6062 else
6063 echo "$ac_t""no" 1>&6
6064 fi
6065
6066
6067 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6068 echo "configure:6069: checking for --enable-textctrl" >&5
6069 no_cache=0
6070 # Check whether --enable-textctrl or --disable-textctrl was given.
6071 if test "${enable_textctrl+set}" = set; then
6072 enableval="$enable_textctrl"
6073
6074 if test "$enableval" = yes; then
6075 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6076 else
6077 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6078 fi
6079
6080 else
6081
6082 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6083 if test "x$LINE" != x ; then
6084 eval "DEFAULT_$LINE"
6085 else
6086 no_cache=1
6087 fi
6088
6089 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6090
6091 fi
6092
6093
6094 eval "$ac_cv_use_textctrl"
6095 if test "$no_cache" != 1; then
6096 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6097 fi
6098
6099 if test "$wxUSE_TEXTCTRL" = yes; then
6100 echo "$ac_t""yes" 1>&6
6101 else
6102 echo "$ac_t""no" 1>&6
6103 fi
6104
6105
6106 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6107 echo "configure:6108: checking for --enable-togglebtn" >&5
6108 no_cache=0
6109 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6110 if test "${enable_togglebtn+set}" = set; then
6111 enableval="$enable_togglebtn"
6112
6113 if test "$enableval" = yes; then
6114 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6115 else
6116 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6117 fi
6118
6119 else
6120
6121 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6122 if test "x$LINE" != x ; then
6123 eval "DEFAULT_$LINE"
6124 else
6125 no_cache=1
6126 fi
6127
6128 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6129
6130 fi
6131
6132
6133 eval "$ac_cv_use_togglebtn"
6134 if test "$no_cache" != 1; then
6135 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6136 fi
6137
6138 if test "$wxUSE_TOGGLEBTN" = yes; then
6139 echo "$ac_t""yes" 1>&6
6140 else
6141 echo "$ac_t""no" 1>&6
6142 fi
6143
6144
6145 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6146 echo "configure:6147: checking for --enable-toolbar" >&5
6147 no_cache=0
6148 # Check whether --enable-toolbar or --disable-toolbar was given.
6149 if test "${enable_toolbar+set}" = set; then
6150 enableval="$enable_toolbar"
6151
6152 if test "$enableval" = yes; then
6153 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6154 else
6155 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6156 fi
6157
6158 else
6159
6160 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6161 if test "x$LINE" != x ; then
6162 eval "DEFAULT_$LINE"
6163 else
6164 no_cache=1
6165 fi
6166
6167 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6168
6169 fi
6170
6171
6172 eval "$ac_cv_use_toolbar"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_TOOLBAR" = yes; then
6178 echo "$ac_t""yes" 1>&6
6179 else
6180 echo "$ac_t""no" 1>&6
6181 fi
6182
6183
6184 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6185 echo "configure:6186: checking for --enable-tbarnative" >&5
6186 no_cache=0
6187 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6188 if test "${enable_tbarnative+set}" = set; then
6189 enableval="$enable_tbarnative"
6190
6191 if test "$enableval" = yes; then
6192 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6193 else
6194 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6195 fi
6196
6197 else
6198
6199 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6200 if test "x$LINE" != x ; then
6201 eval "DEFAULT_$LINE"
6202 else
6203 no_cache=1
6204 fi
6205
6206 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6207
6208 fi
6209
6210
6211 eval "$ac_cv_use_tbarnative"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6217 echo "$ac_t""yes" 1>&6
6218 else
6219 echo "$ac_t""no" 1>&6
6220 fi
6221
6222
6223 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6224 echo "configure:6225: checking for --enable-tbarsmpl" >&5
6225 no_cache=0
6226 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6227 if test "${enable_tbarsmpl+set}" = set; then
6228 enableval="$enable_tbarsmpl"
6229
6230 if test "$enableval" = yes; then
6231 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6232 else
6233 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6234 fi
6235
6236 else
6237
6238 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6239 if test "x$LINE" != x ; then
6240 eval "DEFAULT_$LINE"
6241 else
6242 no_cache=1
6243 fi
6244
6245 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6246
6247 fi
6248
6249
6250 eval "$ac_cv_use_tbarsmpl"
6251 if test "$no_cache" != 1; then
6252 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6253 fi
6254
6255 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6256 echo "$ac_t""yes" 1>&6
6257 else
6258 echo "$ac_t""no" 1>&6
6259 fi
6260
6261
6262 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6263 echo "configure:6264: checking for --enable-treectrl" >&5
6264 no_cache=0
6265 # Check whether --enable-treectrl or --disable-treectrl was given.
6266 if test "${enable_treectrl+set}" = set; then
6267 enableval="$enable_treectrl"
6268
6269 if test "$enableval" = yes; then
6270 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6271 else
6272 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6273 fi
6274
6275 else
6276
6277 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
6284 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6285
6286 fi
6287
6288
6289 eval "$ac_cv_use_treectrl"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_TREECTRL" = yes; then
6295 echo "$ac_t""yes" 1>&6
6296 else
6297 echo "$ac_t""no" 1>&6
6298 fi
6299
6300
6301
6302
6303 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6304 echo "configure:6305: checking for --enable-commondlg" >&5
6305 no_cache=0
6306 # Check whether --enable-commondlg or --disable-commondlg was given.
6307 if test "${enable_commondlg+set}" = set; then
6308 enableval="$enable_commondlg"
6309
6310 if test "$enableval" = yes; then
6311 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6312 else
6313 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6314 fi
6315
6316 else
6317
6318 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6326
6327 fi
6328
6329
6330 eval "$ac_cv_use_commondlg"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_COMMONDLGS" = yes; then
6336 echo "$ac_t""yes" 1>&6
6337 else
6338 echo "$ac_t""no" 1>&6
6339 fi
6340
6341
6342 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6343 echo "configure:6344: checking for --enable-choicedlg" >&5
6344 no_cache=0
6345 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6346 if test "${enable_choicedlg+set}" = set; then
6347 enableval="$enable_choicedlg"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6351 else
6352 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6353 fi
6354
6355 else
6356
6357 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6365
6366 fi
6367
6368
6369 eval "$ac_cv_use_choicedlg"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_CHOICEDLG" = yes; then
6375 echo "$ac_t""yes" 1>&6
6376 else
6377 echo "$ac_t""no" 1>&6
6378 fi
6379
6380
6381 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6382 echo "configure:6383: checking for --enable-coldlg" >&5
6383 no_cache=0
6384 # Check whether --enable-coldlg or --disable-coldlg was given.
6385 if test "${enable_coldlg+set}" = set; then
6386 enableval="$enable_coldlg"
6387
6388 if test "$enableval" = yes; then
6389 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6390 else
6391 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6392 fi
6393
6394 else
6395
6396 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6404
6405 fi
6406
6407
6408 eval "$ac_cv_use_coldlg"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6411 fi
6412
6413 if test "$wxUSE_COLOURDLG" = yes; then
6414 echo "$ac_t""yes" 1>&6
6415 else
6416 echo "$ac_t""no" 1>&6
6417 fi
6418
6419
6420 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6421 echo "configure:6422: checking for --enable-filedlg" >&5
6422 no_cache=0
6423 # Check whether --enable-filedlg or --disable-filedlg was given.
6424 if test "${enable_filedlg+set}" = set; then
6425 enableval="$enable_filedlg"
6426
6427 if test "$enableval" = yes; then
6428 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6429 else
6430 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6431 fi
6432
6433 else
6434
6435 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6436 if test "x$LINE" != x ; then
6437 eval "DEFAULT_$LINE"
6438 else
6439 no_cache=1
6440 fi
6441
6442 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6443
6444 fi
6445
6446
6447 eval "$ac_cv_use_filedlg"
6448 if test "$no_cache" != 1; then
6449 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6450 fi
6451
6452 if test "$wxUSE_FILEDLG" = yes; then
6453 echo "$ac_t""yes" 1>&6
6454 else
6455 echo "$ac_t""no" 1>&6
6456 fi
6457
6458
6459 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6460 echo "configure:6461: checking for --enable-fontdlg" >&5
6461 no_cache=0
6462 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6463 if test "${enable_fontdlg+set}" = set; then
6464 enableval="$enable_fontdlg"
6465
6466 if test "$enableval" = yes; then
6467 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6468 else
6469 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6470 fi
6471
6472 else
6473
6474 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6475 if test "x$LINE" != x ; then
6476 eval "DEFAULT_$LINE"
6477 else
6478 no_cache=1
6479 fi
6480
6481 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6482
6483 fi
6484
6485
6486 eval "$ac_cv_use_fontdlg"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_FONTDLG" = yes; then
6492 echo "$ac_t""yes" 1>&6
6493 else
6494 echo "$ac_t""no" 1>&6
6495 fi
6496
6497
6498 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6499 echo "configure:6500: checking for --enable-dirdlg" >&5
6500 no_cache=0
6501 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6502 if test "${enable_dirdlg+set}" = set; then
6503 enableval="$enable_dirdlg"
6504
6505 if test "$enableval" = yes; then
6506 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6507 else
6508 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6509 fi
6510
6511 else
6512
6513 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6521
6522 fi
6523
6524
6525 eval "$ac_cv_use_dirdlg"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_DIRDLG" = yes; then
6531 echo "$ac_t""yes" 1>&6
6532 else
6533 echo "$ac_t""no" 1>&6
6534 fi
6535
6536
6537 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6538 echo "configure:6539: checking for --enable-msgdlg" >&5
6539 no_cache=0
6540 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6541 if test "${enable_msgdlg+set}" = set; then
6542 enableval="$enable_msgdlg"
6543
6544 if test "$enableval" = yes; then
6545 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6546 else
6547 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6548 fi
6549
6550 else
6551
6552 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
6559 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6560
6561 fi
6562
6563
6564 eval "$ac_cv_use_msgdlg"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_MSGDLG" = yes; then
6570 echo "$ac_t""yes" 1>&6
6571 else
6572 echo "$ac_t""no" 1>&6
6573 fi
6574
6575
6576 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6577 echo "configure:6578: checking for --enable-numberdlg" >&5
6578 no_cache=0
6579 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6580 if test "${enable_numberdlg+set}" = set; then
6581 enableval="$enable_numberdlg"
6582
6583 if test "$enableval" = yes; then
6584 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6585 else
6586 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6587 fi
6588
6589 else
6590
6591 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6592 if test "x$LINE" != x ; then
6593 eval "DEFAULT_$LINE"
6594 else
6595 no_cache=1
6596 fi
6597
6598 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6599
6600 fi
6601
6602
6603 eval "$ac_cv_use_numberdlg"
6604 if test "$no_cache" != 1; then
6605 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6606 fi
6607
6608 if test "$wxUSE_NUMBERDLG" = yes; then
6609 echo "$ac_t""yes" 1>&6
6610 else
6611 echo "$ac_t""no" 1>&6
6612 fi
6613
6614
6615 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6616 echo "configure:6617: checking for --enable-textdlg" >&5
6617 no_cache=0
6618 # Check whether --enable-textdlg or --disable-textdlg was given.
6619 if test "${enable_textdlg+set}" = set; then
6620 enableval="$enable_textdlg"
6621
6622 if test "$enableval" = yes; then
6623 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6624 else
6625 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6626 fi
6627
6628 else
6629
6630 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6631 if test "x$LINE" != x ; then
6632 eval "DEFAULT_$LINE"
6633 else
6634 no_cache=1
6635 fi
6636
6637 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6638
6639 fi
6640
6641
6642 eval "$ac_cv_use_textdlg"
6643 if test "$no_cache" != 1; then
6644 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6645 fi
6646
6647 if test "$wxUSE_TEXTDLG" = yes; then
6648 echo "$ac_t""yes" 1>&6
6649 else
6650 echo "$ac_t""no" 1>&6
6651 fi
6652
6653
6654 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6655 echo "configure:6656: checking for --enable-tipdlg" >&5
6656 no_cache=0
6657 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6658 if test "${enable_tipdlg+set}" = set; then
6659 enableval="$enable_tipdlg"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6663 else
6664 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6665 fi
6666
6667 else
6668
6669 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6677
6678 fi
6679
6680
6681 eval "$ac_cv_use_tipdlg"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_STARTUP_TIPS" = yes; then
6687 echo "$ac_t""yes" 1>&6
6688 else
6689 echo "$ac_t""no" 1>&6
6690 fi
6691
6692
6693 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
6694 echo "configure:6695: checking for --enable-progressdlg" >&5
6695 no_cache=0
6696 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6697 if test "${enable_progressdlg+set}" = set; then
6698 enableval="$enable_progressdlg"
6699
6700 if test "$enableval" = yes; then
6701 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6702 else
6703 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6704 fi
6705
6706 else
6707
6708 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
6716
6717 fi
6718
6719
6720 eval "$ac_cv_use_progressdlg"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_PROGRESSDLG" = yes; then
6726 echo "$ac_t""yes" 1>&6
6727 else
6728 echo "$ac_t""no" 1>&6
6729 fi
6730
6731
6732 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
6733 echo "configure:6734: checking for --enable-wizarddlg" >&5
6734 no_cache=0
6735 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
6736 if test "${enable_wizarddlg+set}" = set; then
6737 enableval="$enable_wizarddlg"
6738
6739 if test "$enableval" = yes; then
6740 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
6741 else
6742 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
6743 fi
6744
6745 else
6746
6747 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
6755
6756 fi
6757
6758
6759 eval "$ac_cv_use_wizarddlg"
6760 if test "$no_cache" != 1; then
6761 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
6762 fi
6763
6764 if test "$wxUSE_WIZARDDLG" = yes; then
6765 echo "$ac_t""yes" 1>&6
6766 else
6767 echo "$ac_t""no" 1>&6
6768 fi
6769
6770
6771
6772
6773 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
6774 echo "configure:6775: checking for --enable-menus" >&5
6775 no_cache=0
6776 # Check whether --enable-menus or --disable-menus was given.
6777 if test "${enable_menus+set}" = set; then
6778 enableval="$enable_menus"
6779
6780 if test "$enableval" = yes; then
6781 ac_cv_use_menus='wxUSE_MENUS=yes'
6782 else
6783 ac_cv_use_menus='wxUSE_MENUS=no'
6784 fi
6785
6786 else
6787
6788 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6789 if test "x$LINE" != x ; then
6790 eval "DEFAULT_$LINE"
6791 else
6792 no_cache=1
6793 fi
6794
6795 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6796
6797 fi
6798
6799
6800 eval "$ac_cv_use_menus"
6801 if test "$no_cache" != 1; then
6802 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6803 fi
6804
6805 if test "$wxUSE_MENUS" = yes; then
6806 echo "$ac_t""yes" 1>&6
6807 else
6808 echo "$ac_t""no" 1>&6
6809 fi
6810
6811
6812 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
6813 echo "configure:6814: checking for --enable-miniframe" >&5
6814 no_cache=0
6815 # Check whether --enable-miniframe or --disable-miniframe was given.
6816 if test "${enable_miniframe+set}" = set; then
6817 enableval="$enable_miniframe"
6818
6819 if test "$enableval" = yes; then
6820 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6821 else
6822 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6823 fi
6824
6825 else
6826
6827 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6828 if test "x$LINE" != x ; then
6829 eval "DEFAULT_$LINE"
6830 else
6831 no_cache=1
6832 fi
6833
6834 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
6835
6836 fi
6837
6838
6839 eval "$ac_cv_use_miniframe"
6840 if test "$no_cache" != 1; then
6841 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6842 fi
6843
6844 if test "$wxUSE_MINIFRAME" = yes; then
6845 echo "$ac_t""yes" 1>&6
6846 else
6847 echo "$ac_t""no" 1>&6
6848 fi
6849
6850
6851 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
6852 echo "configure:6853: checking for --enable-html" >&5
6853 no_cache=0
6854 # Check whether --enable-html or --disable-html was given.
6855 if test "${enable_html+set}" = set; then
6856 enableval="$enable_html"
6857
6858 if test "$enableval" = yes; then
6859 ac_cv_use_html='wxUSE_HTML=yes'
6860 else
6861 ac_cv_use_html='wxUSE_HTML=no'
6862 fi
6863
6864 else
6865
6866 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6867 if test "x$LINE" != x ; then
6868 eval "DEFAULT_$LINE"
6869 else
6870 no_cache=1
6871 fi
6872
6873 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6874
6875 fi
6876
6877
6878 eval "$ac_cv_use_html"
6879 if test "$no_cache" != 1; then
6880 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6881 fi
6882
6883 if test "$wxUSE_HTML" = yes; then
6884 echo "$ac_t""yes" 1>&6
6885 else
6886 echo "$ac_t""no" 1>&6
6887 fi
6888
6889
6890 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
6891 echo "configure:6892: checking for --enable-tooltips" >&5
6892 no_cache=0
6893 # Check whether --enable-tooltips or --disable-tooltips was given.
6894 if test "${enable_tooltips+set}" = set; then
6895 enableval="$enable_tooltips"
6896
6897 if test "$enableval" = yes; then
6898 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6899 else
6900 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6901 fi
6902
6903 else
6904
6905 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6906 if test "x$LINE" != x ; then
6907 eval "DEFAULT_$LINE"
6908 else
6909 no_cache=1
6910 fi
6911
6912 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6913
6914 fi
6915
6916
6917 eval "$ac_cv_use_tooltips"
6918 if test "$no_cache" != 1; then
6919 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6920 fi
6921
6922 if test "$wxUSE_TOOLTIPS" = yes; then
6923 echo "$ac_t""yes" 1>&6
6924 else
6925 echo "$ac_t""no" 1>&6
6926 fi
6927
6928
6929 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
6930 echo "configure:6931: checking for --enable-splines" >&5
6931 no_cache=0
6932 # Check whether --enable-splines or --disable-splines was given.
6933 if test "${enable_splines+set}" = set; then
6934 enableval="$enable_splines"
6935
6936 if test "$enableval" = yes; then
6937 ac_cv_use_splines='wxUSE_SPLINES=yes'
6938 else
6939 ac_cv_use_splines='wxUSE_SPLINES=no'
6940 fi
6941
6942 else
6943
6944 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
6952
6953 fi
6954
6955
6956 eval "$ac_cv_use_splines"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_SPLINES" = yes; then
6962 echo "$ac_t""yes" 1>&6
6963 else
6964 echo "$ac_t""no" 1>&6
6965 fi
6966
6967
6968 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
6969 echo "configure:6970: checking for --enable-validators" >&5
6970 no_cache=0
6971 # Check whether --enable-validators or --disable-validators was given.
6972 if test "${enable_validators+set}" = set; then
6973 enableval="$enable_validators"
6974
6975 if test "$enableval" = yes; then
6976 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6977 else
6978 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6979 fi
6980
6981 else
6982
6983 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
6990 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
6991
6992 fi
6993
6994
6995 eval "$ac_cv_use_validators"
6996 if test "$no_cache" != 1; then
6997 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6998 fi
6999
7000 if test "$wxUSE_VALIDATORS" = yes; then
7001 echo "$ac_t""yes" 1>&6
7002 else
7003 echo "$ac_t""no" 1>&6
7004 fi
7005
7006
7007 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7008 echo "configure:7009: checking for --enable-busyinfo" >&5
7009 no_cache=0
7010 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7011 if test "${enable_busyinfo+set}" = set; then
7012 enableval="$enable_busyinfo"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7016 else
7017 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7018 fi
7019
7020 else
7021
7022 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7030
7031 fi
7032
7033
7034 eval "$ac_cv_use_busyinfo"
7035 if test "$no_cache" != 1; then
7036 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7037 fi
7038
7039 if test "$wxUSE_BUSYINFO" = yes; then
7040 echo "$ac_t""yes" 1>&6
7041 else
7042 echo "$ac_t""no" 1>&6
7043 fi
7044
7045
7046 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7047 echo "configure:7048: checking for --enable-joystick" >&5
7048 no_cache=0
7049 # Check whether --enable-joystick or --disable-joystick was given.
7050 if test "${enable_joystick+set}" = set; then
7051 enableval="$enable_joystick"
7052
7053 if test "$enableval" = yes; then
7054 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7055 else
7056 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7057 fi
7058
7059 else
7060
7061 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7069
7070 fi
7071
7072
7073 eval "$ac_cv_use_joystick"
7074 if test "$no_cache" != 1; then
7075 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7076 fi
7077
7078 if test "$wxUSE_JOYSTICK" = yes; then
7079 echo "$ac_t""yes" 1>&6
7080 else
7081 echo "$ac_t""no" 1>&6
7082 fi
7083
7084
7085 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7086 echo "configure:7087: checking for --enable-metafile" >&5
7087 no_cache=0
7088 # Check whether --enable-metafile or --disable-metafile was given.
7089 if test "${enable_metafile+set}" = set; then
7090 enableval="$enable_metafile"
7091
7092 if test "$enableval" = yes; then
7093 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7094 else
7095 ac_cv_use_metafile='wxUSE_METAFILE=no'
7096 fi
7097
7098 else
7099
7100 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7101 if test "x$LINE" != x ; then
7102 eval "DEFAULT_$LINE"
7103 else
7104 no_cache=1
7105 fi
7106
7107 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7108
7109 fi
7110
7111
7112 eval "$ac_cv_use_metafile"
7113 if test "$no_cache" != 1; then
7114 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7115 fi
7116
7117 if test "$wxUSE_METAFILE" = yes; then
7118 echo "$ac_t""yes" 1>&6
7119 else
7120 echo "$ac_t""no" 1>&6
7121 fi
7122
7123
7124 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7125 echo "configure:7126: checking for --enable-dragimage" >&5
7126 no_cache=0
7127 # Check whether --enable-dragimage or --disable-dragimage was given.
7128 if test "${enable_dragimage+set}" = set; then
7129 enableval="$enable_dragimage"
7130
7131 if test "$enableval" = yes; then
7132 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7133 else
7134 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7135 fi
7136
7137 else
7138
7139 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7140 if test "x$LINE" != x ; then
7141 eval "DEFAULT_$LINE"
7142 else
7143 no_cache=1
7144 fi
7145
7146 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7147
7148 fi
7149
7150
7151 eval "$ac_cv_use_dragimage"
7152 if test "$no_cache" != 1; then
7153 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7154 fi
7155
7156 if test "$wxUSE_DRAGIMAGE" = yes; then
7157 echo "$ac_t""yes" 1>&6
7158 else
7159 echo "$ac_t""no" 1>&6
7160 fi
7161
7162
7163
7164
7165 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7166 echo "configure:7167: checking for --enable-image" >&5
7167 no_cache=0
7168 # Check whether --enable-image or --disable-image was given.
7169 if test "${enable_image+set}" = set; then
7170 enableval="$enable_image"
7171
7172 if test "$enableval" = yes; then
7173 ac_cv_use_image='wxUSE_IMAGE=yes'
7174 else
7175 ac_cv_use_image='wxUSE_IMAGE=no'
7176 fi
7177
7178 else
7179
7180 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7181 if test "x$LINE" != x ; then
7182 eval "DEFAULT_$LINE"
7183 else
7184 no_cache=1
7185 fi
7186
7187 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7188
7189 fi
7190
7191
7192 eval "$ac_cv_use_image"
7193 if test "$no_cache" != 1; then
7194 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7195 fi
7196
7197 if test "$wxUSE_IMAGE" = yes; then
7198 echo "$ac_t""yes" 1>&6
7199 else
7200 echo "$ac_t""no" 1>&6
7201 fi
7202
7203
7204 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7205 echo "configure:7206: checking for --enable-gif" >&5
7206 no_cache=0
7207 # Check whether --enable-gif or --disable-gif was given.
7208 if test "${enable_gif+set}" = set; then
7209 enableval="$enable_gif"
7210
7211 if test "$enableval" = yes; then
7212 ac_cv_use_gif='wxUSE_GIF=yes'
7213 else
7214 ac_cv_use_gif='wxUSE_GIF=no'
7215 fi
7216
7217 else
7218
7219 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7220 if test "x$LINE" != x ; then
7221 eval "DEFAULT_$LINE"
7222 else
7223 no_cache=1
7224 fi
7225
7226 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7227
7228 fi
7229
7230
7231 eval "$ac_cv_use_gif"
7232 if test "$no_cache" != 1; then
7233 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7234 fi
7235
7236 if test "$wxUSE_GIF" = yes; then
7237 echo "$ac_t""yes" 1>&6
7238 else
7239 echo "$ac_t""no" 1>&6
7240 fi
7241
7242
7243 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7244 echo "configure:7245: checking for --enable-pcx" >&5
7245 no_cache=0
7246 # Check whether --enable-pcx or --disable-pcx was given.
7247 if test "${enable_pcx+set}" = set; then
7248 enableval="$enable_pcx"
7249
7250 if test "$enableval" = yes; then
7251 ac_cv_use_pcx='wxUSE_PCX=yes'
7252 else
7253 ac_cv_use_pcx='wxUSE_PCX=no'
7254 fi
7255
7256 else
7257
7258 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7259 if test "x$LINE" != x ; then
7260 eval "DEFAULT_$LINE"
7261 else
7262 no_cache=1
7263 fi
7264
7265 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7266
7267 fi
7268
7269
7270 eval "$ac_cv_use_pcx"
7271 if test "$no_cache" != 1; then
7272 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7273 fi
7274
7275 if test "$wxUSE_PCX" = yes; then
7276 echo "$ac_t""yes" 1>&6
7277 else
7278 echo "$ac_t""no" 1>&6
7279 fi
7280
7281
7282 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7283 echo "configure:7284: checking for --enable-pnm" >&5
7284 no_cache=0
7285 # Check whether --enable-pnm or --disable-pnm was given.
7286 if test "${enable_pnm+set}" = set; then
7287 enableval="$enable_pnm"
7288
7289 if test "$enableval" = yes; then
7290 ac_cv_use_pnm='wxUSE_PNM=yes'
7291 else
7292 ac_cv_use_pnm='wxUSE_PNM=no'
7293 fi
7294
7295 else
7296
7297 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7298 if test "x$LINE" != x ; then
7299 eval "DEFAULT_$LINE"
7300 else
7301 no_cache=1
7302 fi
7303
7304 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7305
7306 fi
7307
7308
7309 eval "$ac_cv_use_pnm"
7310 if test "$no_cache" != 1; then
7311 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7312 fi
7313
7314 if test "$wxUSE_PNM" = yes; then
7315 echo "$ac_t""yes" 1>&6
7316 else
7317 echo "$ac_t""no" 1>&6
7318 fi
7319
7320
7321 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7322 echo "configure:7323: checking for --enable-pnm" >&5
7323 no_cache=0
7324 # Check whether --enable-pnm or --disable-pnm was given.
7325 if test "${enable_pnm+set}" = set; then
7326 enableval="$enable_pnm"
7327
7328 if test "$enableval" = yes; then
7329 ac_cv_use_pnm='wxUSE_XPM=yes'
7330 else
7331 ac_cv_use_pnm='wxUSE_XPM=no'
7332 fi
7333
7334 else
7335
7336 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7344
7345 fi
7346
7347
7348 eval "$ac_cv_use_pnm"
7349 if test "$no_cache" != 1; then
7350 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7351 fi
7352
7353 if test "$wxUSE_XPM" = yes; then
7354 echo "$ac_t""yes" 1>&6
7355 else
7356 echo "$ac_t""no" 1>&6
7357 fi
7358
7359
7360 fi
7361
7362
7363 echo "saving argument cache $wx_arg_cache_file"
7364 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7365
7366
7367
7368 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7369 echo "configure:7370: checking for toolkit" >&5
7370
7371 if test "$wxUSE_GUI" = "yes"; then
7372
7373 if test "$USE_BEOS" = 1; then
7374 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7375 fi
7376
7377 if test "$TOOLKIT_GIVEN" = 1; then
7378 for toolkit in `echo $ALL_TOOLKITS`; do
7379 var=wxUSE_$toolkit
7380 eval "value=\$${var}"
7381 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7382 done
7383 else
7384 for toolkit in `echo $ALL_TOOLKITS`; do
7385 if test "$has_toolkit_in_cache" != 1; then
7386 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7387 else
7388 var=DEFAULT_wxUSE_$toolkit
7389 fi
7390 eval "wxUSE_$toolkit=\$${var}"
7391 done
7392 fi
7393
7394 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7395
7396 case "${host}" in
7397 *-pc-os2_emx )
7398 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7399 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7400 LEX_STEM="lexyy"
7401 ;;
7402 *)
7403 PATH_IFS=':'
7404 LEX_STEM="lex.yy"
7405 ;;
7406 esac
7407
7408 case "$NUM_TOOLKITS" in
7409 1)
7410 ;;
7411 0)
7412 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7413 ;;
7414 *)
7415 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7416 esac
7417
7418 for toolkit in `echo $ALL_TOOLKITS`; do
7419 var=wxUSE_$toolkit
7420 eval "value=\$${var}"
7421 if test "x$value" != x; then
7422 cache_var=CACHE_$toolkit
7423 eval "cache=\$${cache_var}"
7424 if test "$cache" = 1; then
7425 echo "$var=$value" >> ${wx_arg_cache_file}
7426 fi
7427 if test "$value" = 1; then
7428 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7429 echo "$ac_t""$toolkit_echo" 1>&6
7430 fi
7431 fi
7432 done
7433
7434 else
7435 PATH_IFS=':'
7436 echo "$ac_t""base only" 1>&6
7437 fi
7438
7439
7440 cat > confcache <<\EOF
7441 # This file is a shell script that caches the results of configure
7442 # tests run on this system so they can be shared between configure
7443 # scripts and configure runs. It is not useful on other systems.
7444 # If it contains results you don't want to keep, you may remove or edit it.
7445 #
7446 # By default, configure uses ./config.cache as the cache file,
7447 # creating it if it does not exist already. You can give configure
7448 # the --cache-file=FILE option to use a different cache file; that is
7449 # what configure does when it calls configure scripts in
7450 # subdirectories, so they share the cache.
7451 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7452 # config.status only pays attention to the cache file if you give it the
7453 # --recheck option to rerun configure.
7454 #
7455 EOF
7456 # The following way of writing the cache mishandles newlines in values,
7457 # but we know of no workaround that is simple, portable, and efficient.
7458 # So, don't put newlines in cache variables' values.
7459 # Ultrix sh set writes to stderr and can't be redirected directly,
7460 # and sets the high bit in the cache file unless we assign to the vars.
7461 (set) 2>&1 |
7462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7463 *ac_space=\ *)
7464 # `set' does not quote correctly, so add quotes (double-quote substitution
7465 # turns \\\\ into \\, and sed turns \\ into \).
7466 sed -n \
7467 -e "s/'/'\\\\''/g" \
7468 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7469 ;;
7470 *)
7471 # `set' quotes correctly as required by POSIX, so do not add quotes.
7472 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7473 ;;
7474 esac >> confcache
7475 if cmp -s $cache_file confcache; then
7476 :
7477 else
7478 if test -w $cache_file; then
7479 echo "updating cache $cache_file"
7480 cat confcache > $cache_file
7481 else
7482 echo "not updating unwritable cache $cache_file"
7483 fi
7484 fi
7485 rm -f confcache
7486
7487
7488 if test "$build" != "$host" ; then
7489 CC=$host_alias-gcc
7490 CXX=$host_alias-c++
7491 AR=$host_alias-ar
7492 RANLIB=$host_alias-ranlib
7493 DLLTOOL=$host_alias-dlltool
7494 RESCOMP=$host_alias-windres
7495 LD=$host_alias-ld
7496 NM=$host_alias-nm
7497 STRIP=$host_alias-strip
7498 fi
7499
7500 # Extract the first word of "gcc", so it can be a program name with args.
7501 set dummy gcc; ac_word=$2
7502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7503 echo "configure:7504: checking for $ac_word" >&5
7504 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7505 echo $ac_n "(cached) $ac_c" 1>&6
7506 else
7507 if test -n "$CC"; then
7508 ac_cv_prog_CC="$CC" # Let the user override the test.
7509 else
7510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7511 ac_dummy="$PATH"
7512 for ac_dir in $ac_dummy; do
7513 test -z "$ac_dir" && ac_dir=.
7514 if test -f $ac_dir/$ac_word; then
7515 ac_cv_prog_CC="gcc"
7516 break
7517 fi
7518 done
7519 IFS="$ac_save_ifs"
7520 fi
7521 fi
7522 CC="$ac_cv_prog_CC"
7523 if test -n "$CC"; then
7524 echo "$ac_t""$CC" 1>&6
7525 else
7526 echo "$ac_t""no" 1>&6
7527 fi
7528
7529 if test -z "$CC"; then
7530 # Extract the first word of "cc", so it can be a program name with args.
7531 set dummy cc; ac_word=$2
7532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7533 echo "configure:7534: checking for $ac_word" >&5
7534 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7535 echo $ac_n "(cached) $ac_c" 1>&6
7536 else
7537 if test -n "$CC"; then
7538 ac_cv_prog_CC="$CC" # Let the user override the test.
7539 else
7540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7541 ac_prog_rejected=no
7542 ac_dummy="$PATH"
7543 for ac_dir in $ac_dummy; do
7544 test -z "$ac_dir" && ac_dir=.
7545 if test -f $ac_dir/$ac_word; then
7546 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7547 ac_prog_rejected=yes
7548 continue
7549 fi
7550 ac_cv_prog_CC="cc"
7551 break
7552 fi
7553 done
7554 IFS="$ac_save_ifs"
7555 if test $ac_prog_rejected = yes; then
7556 # We found a bogon in the path, so make sure we never use it.
7557 set dummy $ac_cv_prog_CC
7558 shift
7559 if test $# -gt 0; then
7560 # We chose a different compiler from the bogus one.
7561 # However, it has the same basename, so the bogon will be chosen
7562 # first if we set CC to just the basename; use the full file name.
7563 shift
7564 set dummy "$ac_dir/$ac_word" "$@"
7565 shift
7566 ac_cv_prog_CC="$@"
7567 fi
7568 fi
7569 fi
7570 fi
7571 CC="$ac_cv_prog_CC"
7572 if test -n "$CC"; then
7573 echo "$ac_t""$CC" 1>&6
7574 else
7575 echo "$ac_t""no" 1>&6
7576 fi
7577
7578 if test -z "$CC"; then
7579 case "`uname -s`" in
7580 *win32* | *WIN32*)
7581 # Extract the first word of "cl", so it can be a program name with args.
7582 set dummy cl; ac_word=$2
7583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_word" >&5
7585 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7587 else
7588 if test -n "$CC"; then
7589 ac_cv_prog_CC="$CC" # Let the user override the test.
7590 else
7591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7592 ac_dummy="$PATH"
7593 for ac_dir in $ac_dummy; do
7594 test -z "$ac_dir" && ac_dir=.
7595 if test -f $ac_dir/$ac_word; then
7596 ac_cv_prog_CC="cl"
7597 break
7598 fi
7599 done
7600 IFS="$ac_save_ifs"
7601 fi
7602 fi
7603 CC="$ac_cv_prog_CC"
7604 if test -n "$CC"; then
7605 echo "$ac_t""$CC" 1>&6
7606 else
7607 echo "$ac_t""no" 1>&6
7608 fi
7609 ;;
7610 esac
7611 fi
7612 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7613 fi
7614
7615 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7616 echo "configure:7617: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7617
7618 ac_ext=c
7619 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7622 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7623 cross_compiling=$ac_cv_prog_cc_cross
7624
7625 cat > conftest.$ac_ext << EOF
7626
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7629
7630 main(){return(0);}
7631 EOF
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7633 ac_cv_prog_cc_works=yes
7634 # If we can't run a trivial program, we are probably using a cross compiler.
7635 if (./conftest; exit) 2>/dev/null; then
7636 ac_cv_prog_cc_cross=no
7637 else
7638 ac_cv_prog_cc_cross=yes
7639 fi
7640 else
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7643 ac_cv_prog_cc_works=no
7644 fi
7645 rm -fr conftest*
7646 ac_ext=c
7647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7648 ac_cpp='$CPP $CPPFLAGS'
7649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7651 cross_compiling=$ac_cv_prog_cc_cross
7652
7653 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7654 if test $ac_cv_prog_cc_works = no; then
7655 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7656 fi
7657 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7658 echo "configure:7659: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7659 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7660 cross_compiling=$ac_cv_prog_cc_cross
7661
7662 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7663 echo "configure:7664: checking whether we are using GNU C" >&5
7664 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7666 else
7667 cat > conftest.c <<EOF
7668 #ifdef __GNUC__
7669 yes;
7670 #endif
7671 EOF
7672 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7673 ac_cv_prog_gcc=yes
7674 else
7675 ac_cv_prog_gcc=no
7676 fi
7677 fi
7678
7679 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7680
7681 if test $ac_cv_prog_gcc = yes; then
7682 GCC=yes
7683 else
7684 GCC=
7685 fi
7686
7687 ac_test_CFLAGS="${CFLAGS+set}"
7688 ac_save_CFLAGS="$CFLAGS"
7689 CFLAGS=
7690 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7691 echo "configure:7692: checking whether ${CC-cc} accepts -g" >&5
7692 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7694 else
7695 echo 'void f(){}' > conftest.c
7696 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7697 ac_cv_prog_cc_g=yes
7698 else
7699 ac_cv_prog_cc_g=no
7700 fi
7701 rm -f conftest*
7702
7703 fi
7704
7705 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7706 if test "$ac_test_CFLAGS" = set; then
7707 CFLAGS="$ac_save_CFLAGS"
7708 elif test $ac_cv_prog_cc_g = yes; then
7709 if test "$GCC" = yes; then
7710 CFLAGS="-g -O2"
7711 else
7712 CFLAGS="-g"
7713 fi
7714 else
7715 if test "$GCC" = yes; then
7716 CFLAGS="-O2"
7717 else
7718 CFLAGS=
7719 fi
7720 fi
7721
7722
7723 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7724
7725 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7726 echo "configure:7727: checking how to run the C preprocessor" >&5
7727 # On Suns, sometimes $CPP names a directory.
7728 if test -n "$CPP" && test -d "$CPP"; then
7729 CPP=
7730 fi
7731 if test -z "$CPP"; then
7732 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7734 else
7735 # This must be in double quotes, not single quotes, because CPP may get
7736 # substituted into the Makefile and "${CC-cc}" will confuse make.
7737 CPP="${CC-cc} -E"
7738 # On the NeXT, cc -E runs the code through the compiler's parser,
7739 # not just through cpp.
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 #include <assert.h>
7744 Syntax Error
7745 EOF
7746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7747 { (eval echo configure:7748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7749 if test -z "$ac_err"; then
7750 :
7751 else
7752 echo "$ac_err" >&5
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7755 rm -rf conftest*
7756 CPP="${CC-cc} -E -traditional-cpp"
7757 cat > conftest.$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7760 #include <assert.h>
7761 Syntax Error
7762 EOF
7763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7764 { (eval echo configure:7765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7766 if test -z "$ac_err"; then
7767 :
7768 else
7769 echo "$ac_err" >&5
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7772 rm -rf conftest*
7773 CPP="${CC-cc} -nologo -E"
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 #include <assert.h>
7778 Syntax Error
7779 EOF
7780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7781 { (eval echo configure:7782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7783 if test -z "$ac_err"; then
7784 :
7785 else
7786 echo "$ac_err" >&5
7787 echo "configure: failed program was:" >&5
7788 cat conftest.$ac_ext >&5
7789 rm -rf conftest*
7790 CPP=/lib/cpp
7791 fi
7792 rm -f conftest*
7793 fi
7794 rm -f conftest*
7795 fi
7796 rm -f conftest*
7797 ac_cv_prog_CPP="$CPP"
7798 fi
7799 CPP="$ac_cv_prog_CPP"
7800 else
7801 ac_cv_prog_CPP="$CPP"
7802 fi
7803 echo "$ac_t""$CPP" 1>&6
7804
7805
7806 if test $ac_cv_prog_gcc = yes; then
7807 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7808 echo "configure:7809: checking whether ${CC-cc} needs -traditional" >&5
7809 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7810 echo $ac_n "(cached) $ac_c" 1>&6
7811 else
7812 ac_pattern="Autoconf.*'x'"
7813 cat > conftest.$ac_ext <<EOF
7814 #line 7815 "configure"
7815 #include "confdefs.h"
7816 #include <sgtty.h>
7817 Autoconf TIOCGETP
7818 EOF
7819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820 egrep "$ac_pattern" >/dev/null 2>&1; then
7821 rm -rf conftest*
7822 ac_cv_prog_gcc_traditional=yes
7823 else
7824 rm -rf conftest*
7825 ac_cv_prog_gcc_traditional=no
7826 fi
7827 rm -f conftest*
7828
7829
7830 if test $ac_cv_prog_gcc_traditional = no; then
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7834 #include <termio.h>
7835 Autoconf TCGETA
7836 EOF
7837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7838 egrep "$ac_pattern" >/dev/null 2>&1; then
7839 rm -rf conftest*
7840 ac_cv_prog_gcc_traditional=yes
7841 fi
7842 rm -f conftest*
7843
7844 fi
7845 fi
7846
7847 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
7848 if test $ac_cv_prog_gcc_traditional = yes; then
7849 CC="$CC -traditional"
7850 fi
7851 fi
7852
7853
7854
7855 ac_ext=C
7856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7857 ac_cpp='$CXXCPP $CPPFLAGS'
7858 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7859 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7860 cross_compiling=$ac_cv_prog_cxx_cross
7861
7862
7863 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7864 do
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866 set dummy $ac_prog; ac_word=$2
7867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7868 echo "configure:7869: checking for $ac_word" >&5
7869 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7870 echo $ac_n "(cached) $ac_c" 1>&6
7871 else
7872 if test -n "$CXX"; then
7873 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7874 else
7875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7876 ac_dummy="$PATH"
7877 for ac_dir in $ac_dummy; do
7878 test -z "$ac_dir" && ac_dir=.
7879 if test -f $ac_dir/$ac_word; then
7880 ac_cv_prog_CXX="$ac_prog"
7881 break
7882 fi
7883 done
7884 IFS="$ac_save_ifs"
7885 fi
7886 fi
7887 CXX="$ac_cv_prog_CXX"
7888 if test -n "$CXX"; then
7889 echo "$ac_t""$CXX" 1>&6
7890 else
7891 echo "$ac_t""no" 1>&6
7892 fi
7893
7894 test -n "$CXX" && break
7895 done
7896 test -n "$CXX" || CXX="gcc"
7897
7898
7899 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7900 echo "configure:7901: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
7901
7902 ac_ext=C
7903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7904 ac_cpp='$CXXCPP $CPPFLAGS'
7905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7907 cross_compiling=$ac_cv_prog_cxx_cross
7908
7909 cat > conftest.$ac_ext << EOF
7910
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913
7914 int main(){return(0);}
7915 EOF
7916 if { (eval echo configure:7917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7917 ac_cv_prog_cxx_works=yes
7918 # If we can't run a trivial program, we are probably using a cross compiler.
7919 if (./conftest; exit) 2>/dev/null; then
7920 ac_cv_prog_cxx_cross=no
7921 else
7922 ac_cv_prog_cxx_cross=yes
7923 fi
7924 else
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7927 ac_cv_prog_cxx_works=no
7928 fi
7929 rm -fr conftest*
7930 ac_ext=C
7931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7932 ac_cpp='$CXXCPP $CPPFLAGS'
7933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7935 cross_compiling=$ac_cv_prog_cxx_cross
7936
7937 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7938 if test $ac_cv_prog_cxx_works = no; then
7939 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7940 fi
7941 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7942 echo "configure:7943: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
7943 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7944 cross_compiling=$ac_cv_prog_cxx_cross
7945
7946 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7947 echo "configure:7948: checking whether we are using GNU C++" >&5
7948 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7949 echo $ac_n "(cached) $ac_c" 1>&6
7950 else
7951 cat > conftest.C <<EOF
7952 #ifdef __GNUC__
7953 yes;
7954 #endif
7955 EOF
7956 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7957 ac_cv_prog_gxx=yes
7958 else
7959 ac_cv_prog_gxx=no
7960 fi
7961 fi
7962
7963 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
7964
7965 if test $ac_cv_prog_gxx = yes; then
7966 GXX=yes
7967 else
7968 GXX=
7969 fi
7970
7971 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7972 ac_save_CXXFLAGS="$CXXFLAGS"
7973 CXXFLAGS=
7974 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7975 echo "configure:7976: checking whether ${CXX-g++} accepts -g" >&5
7976 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7977 echo $ac_n "(cached) $ac_c" 1>&6
7978 else
7979 echo 'void f(){}' > conftest.cc
7980 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
7981 ac_cv_prog_cxx_g=yes
7982 else
7983 ac_cv_prog_cxx_g=no
7984 fi
7985 rm -f conftest*
7986
7987 fi
7988
7989 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
7990 if test "$ac_test_CXXFLAGS" = set; then
7991 CXXFLAGS="$ac_save_CXXFLAGS"
7992 elif test $ac_cv_prog_cxx_g = yes; then
7993 if test "$GXX" = yes; then
7994 CXXFLAGS="-g -O2"
7995 else
7996 CXXFLAGS="-g"
7997 fi
7998 else
7999 if test "$GXX" = yes; then
8000 CXXFLAGS="-O2"
8001 else
8002 CXXFLAGS=
8003 fi
8004 fi
8005
8006
8007 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8008 echo "configure:8009: checking how to run the C++ preprocessor" >&5
8009 if test -z "$CXXCPP"; then
8010 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8012 else
8013 ac_ext=C
8014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8015 ac_cpp='$CXXCPP $CPPFLAGS'
8016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8018 cross_compiling=$ac_cv_prog_cxx_cross
8019 CXXCPP="${CXX-g++} -E"
8020 cat > conftest.$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8023 #include <stdlib.h>
8024 EOF
8025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8026 { (eval echo configure:8027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8028 if test -z "$ac_err"; then
8029 :
8030 else
8031 echo "$ac_err" >&5
8032 echo "configure: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8034 rm -rf conftest*
8035 CXXCPP=/lib/cpp
8036 fi
8037 rm -f conftest*
8038 ac_cv_prog_CXXCPP="$CXXCPP"
8039 ac_ext=C
8040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8041 ac_cpp='$CXXCPP $CPPFLAGS'
8042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8044 cross_compiling=$ac_cv_prog_cxx_cross
8045 fi
8046 fi
8047 CXXCPP="$ac_cv_prog_CXXCPP"
8048 echo "$ac_t""$CXXCPP" 1>&6
8049
8050
8051 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8052
8053 ac_ext=c
8054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8055 ac_cpp='$CPP $CPPFLAGS'
8056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8058 cross_compiling=$ac_cv_prog_cc_cross
8059
8060
8061 # Extract the first word of "ranlib", so it can be a program name with args.
8062 set dummy ranlib; ac_word=$2
8063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8064 echo "configure:8065: checking for $ac_word" >&5
8065 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8066 echo $ac_n "(cached) $ac_c" 1>&6
8067 else
8068 if test -n "$RANLIB"; then
8069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8070 else
8071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8072 ac_dummy="$PATH"
8073 for ac_dir in $ac_dummy; do
8074 test -z "$ac_dir" && ac_dir=.
8075 if test -f $ac_dir/$ac_word; then
8076 ac_cv_prog_RANLIB="ranlib"
8077 break
8078 fi
8079 done
8080 IFS="$ac_save_ifs"
8081 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8082 fi
8083 fi
8084 RANLIB="$ac_cv_prog_RANLIB"
8085 if test -n "$RANLIB"; then
8086 echo "$ac_t""$RANLIB" 1>&6
8087 else
8088 echo "$ac_t""no" 1>&6
8089 fi
8090
8091
8092 # Extract the first word of "ar", so it can be a program name with args.
8093 set dummy ar; ac_word=$2
8094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8095 echo "configure:8096: checking for $ac_word" >&5
8096 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8098 else
8099 if test -n "$AR"; then
8100 ac_cv_prog_AR="$AR" # Let the user override the test.
8101 else
8102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8103 ac_dummy="$PATH"
8104 for ac_dir in $ac_dummy; do
8105 test -z "$ac_dir" && ac_dir=.
8106 if test -f $ac_dir/$ac_word; then
8107 ac_cv_prog_AR="ar"
8108 break
8109 fi
8110 done
8111 IFS="$ac_save_ifs"
8112 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8113 fi
8114 fi
8115 AR="$ac_cv_prog_AR"
8116 if test -n "$AR"; then
8117 echo "$ac_t""$AR" 1>&6
8118 else
8119 echo "$ac_t""no" 1>&6
8120 fi
8121
8122
8123 # Find a good install program. We prefer a C program (faster),
8124 # so one script is as good as another. But avoid the broken or
8125 # incompatible versions:
8126 # SysV /etc/install, /usr/sbin/install
8127 # SunOS /usr/etc/install
8128 # IRIX /sbin/install
8129 # AIX /bin/install
8130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8133 # ./install, which can be erroneously created by make from ./install.sh.
8134 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8135 echo "configure:8136: checking for a BSD compatible install" >&5
8136 if test -z "$INSTALL"; then
8137 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8139 else
8140 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8141 for ac_dir in $PATH; do
8142 # Account for people who put trailing slashes in PATH elements.
8143 case "$ac_dir/" in
8144 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8145 *)
8146 # OSF1 and SCO ODT 3.0 have their own names for install.
8147 # Don't use installbsd from OSF since it installs stuff as root
8148 # by default.
8149 for ac_prog in ginstall scoinst install; do
8150 if test -f $ac_dir/$ac_prog; then
8151 if test $ac_prog = install &&
8152 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8153 # AIX install. It has an incompatible calling convention.
8154 :
8155 else
8156 ac_cv_path_install="$ac_dir/$ac_prog -c"
8157 break 2
8158 fi
8159 fi
8160 done
8161 ;;
8162 esac
8163 done
8164 IFS="$ac_save_IFS"
8165
8166 fi
8167 if test "${ac_cv_path_install+set}" = set; then
8168 INSTALL="$ac_cv_path_install"
8169 else
8170 # As a last resort, use the slow shell script. We don't cache a
8171 # path for INSTALL within a source directory, because that will
8172 # break other packages using the cache if that directory is
8173 # removed, or if the path is relative.
8174 INSTALL="$ac_install_sh"
8175 fi
8176 fi
8177 echo "$ac_t""$INSTALL" 1>&6
8178
8179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8180 # It thinks the first close brace ends the variable substitution.
8181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8182
8183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8184
8185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8186
8187
8188 # Extract the first word of "strip", so it can be a program name with args.
8189 set dummy strip; ac_word=$2
8190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8191 echo "configure:8192: checking for $ac_word" >&5
8192 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8193 echo $ac_n "(cached) $ac_c" 1>&6
8194 else
8195 if test -n "$STRIP"; then
8196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8197 else
8198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8199 ac_dummy="$PATH"
8200 for ac_dir in $ac_dummy; do
8201 test -z "$ac_dir" && ac_dir=.
8202 if test -f $ac_dir/$ac_word; then
8203 ac_cv_prog_STRIP="strip"
8204 break
8205 fi
8206 done
8207 IFS="$ac_save_ifs"
8208 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8209 fi
8210 fi
8211 STRIP="$ac_cv_prog_STRIP"
8212 if test -n "$STRIP"; then
8213 echo "$ac_t""$STRIP" 1>&6
8214 else
8215 echo "$ac_t""no" 1>&6
8216 fi
8217
8218
8219 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8220 echo "configure:8221: checking make for VPATH support" >&5
8221 cat - << EOF > confMake
8222 check : file
8223 cp \$? \$@
8224 cp \$? final_file
8225 EOF
8226
8227 if test ! -d sub ; then
8228 mkdir sub
8229 fi
8230 echo dummy > sub/file
8231 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8232 RESULT=$?
8233 rm -f sub/file check final_file confMake
8234 rmdir sub
8235 if test "$RESULT" = 0; then
8236 echo "$ac_t""yes" 1>&6
8237 else
8238 echo "$ac_t""no" 1>&6
8239 { echo "configure: error:
8240 You need a make-utility that is able to use the variable
8241 VPATH correctly.
8242 If your version of make does not support VPATH correctly,
8243 please install GNU-make (possibly as gmake), and start
8244 configure with the following command:
8245 export MAKE=gmake; ./configure for sh-type shells
8246 setenv MAKE gmake; ./configure for csh-type shells
8247 Also please do remember to use gmake in this case every time
8248 you are trying to compile.
8249 " 1>&2; exit 1; }
8250 fi
8251
8252 for ac_prog in 'bison -y' byacc
8253 do
8254 # Extract the first word of "$ac_prog", so it can be a program name with args.
8255 set dummy $ac_prog; ac_word=$2
8256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_word" >&5
8258 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8260 else
8261 if test -n "$YACC"; then
8262 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8263 else
8264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8265 ac_dummy="$PATH"
8266 for ac_dir in $ac_dummy; do
8267 test -z "$ac_dir" && ac_dir=.
8268 if test -f $ac_dir/$ac_word; then
8269 ac_cv_prog_YACC="$ac_prog"
8270 break
8271 fi
8272 done
8273 IFS="$ac_save_ifs"
8274 fi
8275 fi
8276 YACC="$ac_cv_prog_YACC"
8277 if test -n "$YACC"; then
8278 echo "$ac_t""$YACC" 1>&6
8279 else
8280 echo "$ac_t""no" 1>&6
8281 fi
8282
8283 test -n "$YACC" && break
8284 done
8285 test -n "$YACC" || YACC="yacc"
8286
8287
8288 # Extract the first word of "flex", so it can be a program name with args.
8289 set dummy flex; ac_word=$2
8290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8291 echo "configure:8292: checking for $ac_word" >&5
8292 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8293 echo $ac_n "(cached) $ac_c" 1>&6
8294 else
8295 if test -n "$LEX"; then
8296 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8297 else
8298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8299 ac_dummy="$PATH"
8300 for ac_dir in $ac_dummy; do
8301 test -z "$ac_dir" && ac_dir=.
8302 if test -f $ac_dir/$ac_word; then
8303 ac_cv_prog_LEX="flex"
8304 break
8305 fi
8306 done
8307 IFS="$ac_save_ifs"
8308 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8309 fi
8310 fi
8311 LEX="$ac_cv_prog_LEX"
8312 if test -n "$LEX"; then
8313 echo "$ac_t""$LEX" 1>&6
8314 else
8315 echo "$ac_t""no" 1>&6
8316 fi
8317
8318 if test -z "$LEXLIB"
8319 then
8320 case "$LEX" in
8321 flex*) ac_lib=fl ;;
8322 *) ac_lib=l ;;
8323 esac
8324 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8325 echo "configure:8326: checking for yywrap in -l$ac_lib" >&5
8326 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8328 echo $ac_n "(cached) $ac_c" 1>&6
8329 else
8330 ac_save_LIBS="$LIBS"
8331 LIBS="-l$ac_lib $LIBS"
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 /* Override any gcc2 internal prototype to avoid an error. */
8336 /* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
8338 char yywrap();
8339
8340 int main() {
8341 yywrap()
8342 ; return 0; }
8343 EOF
8344 if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8345 rm -rf conftest*
8346 eval "ac_cv_lib_$ac_lib_var=yes"
8347 else
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8350 rm -rf conftest*
8351 eval "ac_cv_lib_$ac_lib_var=no"
8352 fi
8353 rm -f conftest*
8354 LIBS="$ac_save_LIBS"
8355
8356 fi
8357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8359 LEXLIB="-l$ac_lib"
8360 else
8361 echo "$ac_t""no" 1>&6
8362 fi
8363
8364 fi
8365
8366
8367 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8368 echo "configure:8369: checking whether ln -s works" >&5
8369 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8370 echo $ac_n "(cached) $ac_c" 1>&6
8371 else
8372 rm -f conftestdata
8373 if ln -s X conftestdata 2>/dev/null
8374 then
8375 rm -f conftestdata
8376 ac_cv_prog_LN_S="ln -s"
8377 else
8378 ac_cv_prog_LN_S=ln
8379 fi
8380 fi
8381 LN_S="$ac_cv_prog_LN_S"
8382 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8383 echo "$ac_t""yes" 1>&6
8384 else
8385 echo "$ac_t""no" 1>&6
8386 fi
8387
8388
8389
8390 SEARCH_INCLUDE="\
8391 /usr/local/include \
8392 \
8393 /usr/Motif-1.2/include \
8394 /usr/Motif-2.1/include \
8395 \
8396 /usr/include/Motif1.2 \
8397 /opt/xpm/include/X11 \
8398 /opt/GBxpm/include/ \
8399 /opt/GBxpm/X11/include/ \
8400 \
8401 /usr/Motif1.2/include \
8402 /usr/dt/include \
8403 /usr/openwin/include \
8404 \
8405 /usr/include/Xm \
8406 \
8407 /usr/X11R6/include \
8408 /usr/X11R6.4/include \
8409 /usr/X11R5/include \
8410 /usr/X11R4/include \
8411 \
8412 /usr/include/X11R6 \
8413 /usr/include/X11R5 \
8414 /usr/include/X11R4 \
8415 \
8416 /usr/local/X11R6/include \
8417 /usr/local/X11R5/include \
8418 /usr/local/X11R4/include \
8419 \
8420 /usr/local/include/X11R6 \
8421 /usr/local/include/X11R5 \
8422 /usr/local/include/X11R4 \
8423 \
8424 /usr/X11/include \
8425 /usr/include/X11 \
8426 /usr/local/X11/include \
8427 /usr/local/include/X11 \
8428 \
8429 /usr/X386/include \
8430 /usr/x386/include \
8431 /usr/XFree86/include/X11 \
8432 \
8433 X:/XFree86/include \
8434 X:/XFree86/include/X11 \
8435 \
8436 /usr/include/gtk \
8437 /usr/local/include/gtk \
8438 /usr/include/glib \
8439 /usr/local/include/glib \
8440 \
8441 /usr/include/qt \
8442 /usr/local/include/qt \
8443 \
8444 /usr/include/windows \
8445 /usr/include/wine \
8446 /usr/local/include/wine \
8447 \
8448 /usr/unsupported/include \
8449 /usr/athena/include \
8450 /usr/local/x11r5/include \
8451 /usr/lpp/Xamples/include \
8452 \
8453 /usr/openwin/share/include \
8454 \
8455 /usr/include"
8456
8457 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8458
8459
8460 cat > confcache <<\EOF
8461 # This file is a shell script that caches the results of configure
8462 # tests run on this system so they can be shared between configure
8463 # scripts and configure runs. It is not useful on other systems.
8464 # If it contains results you don't want to keep, you may remove or edit it.
8465 #
8466 # By default, configure uses ./config.cache as the cache file,
8467 # creating it if it does not exist already. You can give configure
8468 # the --cache-file=FILE option to use a different cache file; that is
8469 # what configure does when it calls configure scripts in
8470 # subdirectories, so they share the cache.
8471 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8472 # config.status only pays attention to the cache file if you give it the
8473 # --recheck option to rerun configure.
8474 #
8475 EOF
8476 # The following way of writing the cache mishandles newlines in values,
8477 # but we know of no workaround that is simple, portable, and efficient.
8478 # So, don't put newlines in cache variables' values.
8479 # Ultrix sh set writes to stderr and can't be redirected directly,
8480 # and sets the high bit in the cache file unless we assign to the vars.
8481 (set) 2>&1 |
8482 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8483 *ac_space=\ *)
8484 # `set' does not quote correctly, so add quotes (double-quote substitution
8485 # turns \\\\ into \\, and sed turns \\ into \).
8486 sed -n \
8487 -e "s/'/'\\\\''/g" \
8488 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8489 ;;
8490 *)
8491 # `set' quotes correctly as required by POSIX, so do not add quotes.
8492 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8493 ;;
8494 esac >> confcache
8495 if cmp -s $cache_file confcache; then
8496 :
8497 else
8498 if test -w $cache_file; then
8499 echo "updating cache $cache_file"
8500 cat confcache > $cache_file
8501 else
8502 echo "not updating unwritable cache $cache_file"
8503 fi
8504 fi
8505 rm -f confcache
8506
8507
8508
8509 AFMINSTALL=
8510
8511 if test "$wxUSE_GUI" = "yes"; then
8512 USE_GUI=1
8513
8514 TOOLKIT=
8515 TOOLKIT_INCLUDE=
8516
8517 GUI_TK_LIBRARY=
8518 GUI_TK_LINK=
8519
8520 WXGTK12=
8521 WXGTK127=
8522 WXGTK20=
8523
8524 WXWINE=
8525
8526 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8527 if test "$cross_compiling" = "yes" ; then
8528 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8529 else
8530 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8531 echo "configure:8532: checking for Windows headers" >&5
8532
8533 ac_find_includes=
8534 for ac_dir in $SEARCH_INCLUDE;
8535 do
8536 if test -f "$ac_dir/windows.h"; then
8537 ac_find_includes=$ac_dir
8538 break
8539 fi
8540 done
8541
8542 if test "$ac_find_includes" != "" ; then
8543 echo "$ac_t""found $ac_find_includes" 1>&6
8544 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8545 else
8546 echo "$ac_t""no" 1>&6
8547 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8548 fi
8549 fi
8550
8551 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8552 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
8553
8554 if test "$wxUSE_ODBC" = "yes" ; then
8555 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8556 fi
8557
8558 if test "$wxUSE_MINGW" = 1; then
8559 LDFLAGS="$LDFLAGS -mwindows"
8560 fi
8561
8562 TOOLKIT=MSW
8563 GUIDIST=MSW_DIST
8564
8565 RCINCSWITCH="--include-dir"
8566 RCDEFSWITCH="--define"
8567 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8568 RCINPUTSWITCH="-i"
8569 RCOUTPUTSWITCH="-o"
8570 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8571
8572 RESPROGRAM="\$(RES_PROGRAM)"
8573 fi
8574
8575 if test "$wxUSE_GTK" = 1; then
8576 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8577 echo "configure:8578: checking for GTK+ version" >&5
8578
8579 gtk_version_cached=1
8580 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8581 echo $ac_n "(cached) $ac_c" 1>&6
8582 else
8583
8584 gtk_version_cached=0
8585 echo "$ac_t""""" 1>&6
8586
8587 wx_cv_lib_gtk=
8588 if test "x$wxUSE_GTK2" = "xyes"; then
8589 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8590 if test "${with_gtk_prefix+set}" = set; then
8591 withval="$with_gtk_prefix"
8592 gtk_config_prefix="$withval"
8593 else
8594 gtk_config_prefix=""
8595 fi
8596
8597 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8598 if test "${with_gtk_exec_prefix+set}" = set; then
8599 withval="$with_gtk_exec_prefix"
8600 gtk_config_exec_prefix="$withval"
8601 else
8602 gtk_config_exec_prefix=""
8603 fi
8604
8605 # Check whether --enable-gtktest or --disable-gtktest was given.
8606 if test "${enable_gtktest+set}" = set; then
8607 enableval="$enable_gtktest"
8608 :
8609 else
8610 enable_gtktest=yes
8611 fi
8612
8613
8614 for module in .
8615 do
8616 case "$module" in
8617 gthread)
8618 gtk_config_args="$gtk_config_args gthread"
8619 ;;
8620 esac
8621 done
8622
8623 if test x$gtk_config_exec_prefix != x ; then
8624 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8625 if test x${GTK_CONFIG_2_0+set} != xset ; then
8626 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8627 fi
8628 fi
8629 if test x$gtk_config_prefix != x ; then
8630 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8631 if test x${GTK_CONFIG_2_0+set} != xset ; then
8632 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8633 fi
8634 fi
8635
8636 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8637 set dummy gtk-config-2.0; ac_word=$2
8638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8639 echo "configure:8640: checking for $ac_word" >&5
8640 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8642 else
8643 case "$GTK_CONFIG_2_0" in
8644 /*)
8645 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8646 ;;
8647 ?:/*)
8648 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8649 ;;
8650 *)
8651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8652 ac_dummy="$PATH"
8653 for ac_dir in $ac_dummy; do
8654 test -z "$ac_dir" && ac_dir=.
8655 if test -f $ac_dir/$ac_word; then
8656 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8657 break
8658 fi
8659 done
8660 IFS="$ac_save_ifs"
8661 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8662 ;;
8663 esac
8664 fi
8665 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8666 if test -n "$GTK_CONFIG_2_0"; then
8667 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8668 else
8669 echo "$ac_t""no" 1>&6
8670 fi
8671
8672 min_gtk_version=1.3.1
8673 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8674 echo "configure:8675: checking for GTK - version >= $min_gtk_version" >&5
8675 no_gtk=""
8676 if test "$GTK_CONFIG_2_0" = "no" ; then
8677 no_gtk=yes
8678 else
8679 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8680 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8681 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8682 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8683 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8684 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8685 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8686 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8687 if test "x$enable_gtktest" = "xyes" ; then
8688 ac_save_CFLAGS="$CFLAGS"
8689 ac_save_LIBS="$LIBS"
8690 CFLAGS="$CFLAGS $GTK_CFLAGS"
8691 LIBS="$GTK_LIBS $LIBS"
8692 rm -f conf.gtktest
8693 if test "$cross_compiling" = yes; then
8694 echo $ac_n "cross compiling; assumed OK... $ac_c"
8695 else
8696 cat > conftest.$ac_ext <<EOF
8697 #line 8698 "configure"
8698 #include "confdefs.h"
8699
8700 #include <gtk/gtk.h>
8701 #include <stdio.h>
8702 #include <stdlib.h>
8703
8704 int
8705 main ()
8706 {
8707 int major, minor, micro;
8708 char *tmp_version;
8709
8710 system ("touch conf.gtktest");
8711
8712 /* HP/UX 9 (%@#!) writes to sscanf strings */
8713 tmp_version = g_strdup("$min_gtk_version");
8714 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8715 printf("%s, bad version string\n", "$min_gtk_version");
8716 exit(1);
8717 }
8718
8719 if ((gtk_major_version != $gtk_config_major_version) ||
8720 (gtk_minor_version != $gtk_config_minor_version) ||
8721 (gtk_micro_version != $gtk_config_micro_version))
8722 {
8723 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8724 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8725 gtk_major_version, gtk_minor_version, gtk_micro_version);
8726 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8727 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8728 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8729 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8730 printf("*** required on your system.\n");
8731 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8732 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8733 printf("*** before re-running configure\n");
8734 }
8735 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8736 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8737 (gtk_minor_version != GTK_MINOR_VERSION) ||
8738 (gtk_micro_version != GTK_MICRO_VERSION))
8739 {
8740 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8741 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8742 printf("*** library (version %d.%d.%d)\n",
8743 gtk_major_version, gtk_minor_version, gtk_micro_version);
8744 }
8745 #endif /* defined (GTK_MAJOR_VERSION) ... */
8746 else
8747 {
8748 if ((gtk_major_version > major) ||
8749 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8750 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8751 {
8752 return 0;
8753 }
8754 else
8755 {
8756 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8757 gtk_major_version, gtk_minor_version, gtk_micro_version);
8758 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8759 major, minor, micro);
8760 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8761 printf("***\n");
8762 printf("*** If you have already installed a sufficiently new version, this error\n");
8763 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8764 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8765 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8766 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8767 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8768 printf("*** so that the correct libraries are found at run-time))\n");
8769 }
8770 }
8771 return 1;
8772 }
8773
8774 EOF
8775 if { (eval echo configure:8776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8776 then
8777 :
8778 else
8779 echo "configure: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8781 rm -fr conftest*
8782 no_gtk=yes
8783 fi
8784 rm -fr conftest*
8785 fi
8786
8787 CFLAGS="$ac_save_CFLAGS"
8788 LIBS="$ac_save_LIBS"
8789 fi
8790 fi
8791 if test "x$no_gtk" = x ; then
8792 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8793 wx_cv_lib_gtk=2.0
8794 else
8795 echo "$ac_t""no" 1>&6
8796 if test "$GTK_CONFIG_2_0" = "no" ; then
8797 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8798 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8799 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8800 echo "*** full path to gtk-config-2.0."
8801 else
8802 if test -f conf.gtktest ; then
8803 :
8804 else
8805 echo "*** Could not run GTK test program, checking why..."
8806 CFLAGS="$CFLAGS $GTK_CFLAGS"
8807 LIBS="$LIBS $GTK_LIBS"
8808 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811
8812 #include <gtk/gtk.h>
8813 #include <stdio.h>
8814
8815 int main() {
8816 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8817 ; return 0; }
8818 EOF
8819 if { (eval echo configure:8820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8820 rm -rf conftest*
8821 echo "*** The test program compiled, but did not run. This usually means"
8822 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8823 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8824 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8825 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8826 echo "*** is required on your system"
8827 echo "***"
8828 echo "*** If you have an old version installed, it is best to remove it, although"
8829 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8830 echo "***"
8831 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8832 echo "*** came with the system with the command"
8833 echo "***"
8834 echo "*** rpm --erase --nodeps gtk gtk-devel"
8835 else
8836 echo "configure: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 rm -rf conftest*
8839 echo "*** The test program failed to compile or link. See the file config.log for the"
8840 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8841 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8842 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
8843 fi
8844 rm -f conftest*
8845 CFLAGS="$ac_save_CFLAGS"
8846 LIBS="$ac_save_LIBS"
8847 fi
8848 fi
8849 GTK_CFLAGS=""
8850 GTK_LIBS=""
8851 gthread
8852 fi
8853
8854
8855 rm -f conf.gtktest
8856
8857 fi
8858
8859 if test -z "$wx_cv_lib_gtk"; then
8860
8861 if test x$gtk_config_exec_prefix != x ; then
8862 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8863 if test x${GTK_CONFIG+set} != xset ; then
8864 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8865 fi
8866 fi
8867 if test x$gtk_config_prefix != x ; then
8868 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8869 if test x${GTK_CONFIG+set} != xset ; then
8870 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8871 fi
8872 fi
8873
8874 # Extract the first word of "gtk-config", so it can be a program name with args.
8875 set dummy gtk-config; ac_word=$2
8876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8877 echo "configure:8878: checking for $ac_word" >&5
8878 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8879 echo $ac_n "(cached) $ac_c" 1>&6
8880 else
8881 case "$GTK_CONFIG" in
8882 /*)
8883 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8884 ;;
8885 ?:/*)
8886 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8887 ;;
8888 *)
8889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8890 ac_dummy="$PATH"
8891 for ac_dir in $ac_dummy; do
8892 test -z "$ac_dir" && ac_dir=.
8893 if test -f $ac_dir/$ac_word; then
8894 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8895 break
8896 fi
8897 done
8898 IFS="$ac_save_ifs"
8899 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8900 ;;
8901 esac
8902 fi
8903 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8904 if test -n "$GTK_CONFIG"; then
8905 echo "$ac_t""$GTK_CONFIG" 1>&6
8906 else
8907 echo "$ac_t""no" 1>&6
8908 fi
8909
8910 min_gtk_version=1.2.7
8911 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8912 echo "configure:8913: checking for GTK - version >= $min_gtk_version" >&5
8913 no_gtk=""
8914 if test "$GTK_CONFIG" != "no" ; then
8915 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8916 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8917 ac_save_CFLAGS="$CFLAGS"
8918 ac_save_LIBS="$LIBS"
8919 CFLAGS="$CFLAGS $GTK_CFLAGS"
8920 LIBS="$LIBS $GTK_LIBS"
8921 if test "$cross_compiling" = yes; then
8922 echo $ac_n "cross compiling; assumed OK... $ac_c"
8923 else
8924 cat > conftest.$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8927
8928 #include <gtk/gtk.h>
8929 #include <gtk/gtkfeatures.h>
8930 #include <stdio.h>
8931 #include <stdlib.h>
8932
8933 int
8934 main ()
8935 {
8936 int major, minor, micro;
8937
8938 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8939 printf("%s, bad version string\n", "$min_gtk_version");
8940 exit(1);
8941 }
8942
8943 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8944 (GTK_MINOR_VERSION != gtk_minor_version) ||
8945 (GTK_MICRO_VERSION != gtk_micro_version)) {
8946 printf("Headers vs. library version mismatch!\n");
8947 exit(1);
8948 }
8949
8950 if (gtk_minor_version == 1) return FALSE;
8951
8952 return !((gtk_major_version > major) ||
8953 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8954 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8955 }
8956
8957 EOF
8958 if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8959 then
8960 :
8961 else
8962 echo "configure: failed program was:" >&5
8963 cat conftest.$ac_ext >&5
8964 rm -fr conftest*
8965 no_gtk=yes
8966 fi
8967 rm -fr conftest*
8968 fi
8969
8970 CFLAGS="$ac_save_CFLAGS"
8971 LIBS="$ac_save_LIBS"
8972 else
8973 no_gtk=yes
8974 fi
8975 if test "x$no_gtk" = x ; then
8976 echo "$ac_t""yes" 1>&6
8977 wx_cv_lib_gtk=1.2.7
8978 else
8979 echo "$ac_t""no" 1>&6
8980 GTK_CFLAGS=""
8981 GTK_LIBS=""
8982 :
8983 fi
8984
8985
8986
8987 fi
8988
8989 if test -z "$wx_cv_lib_gtk"; then
8990
8991 if test x$gtk_config_exec_prefix != x ; then
8992 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8993 if test x${GTK_CONFIG+set} != xset ; then
8994 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8995 fi
8996 fi
8997 if test x$gtk_config_prefix != x ; then
8998 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8999 if test x${GTK_CONFIG+set} != xset ; then
9000 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9001 fi
9002 fi
9003
9004 # Extract the first word of "gtk-config", so it can be a program name with args.
9005 set dummy gtk-config; ac_word=$2
9006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9007 echo "configure:9008: checking for $ac_word" >&5
9008 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9009 echo $ac_n "(cached) $ac_c" 1>&6
9010 else
9011 case "$GTK_CONFIG" in
9012 /*)
9013 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9014 ;;
9015 ?:/*)
9016 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9017 ;;
9018 *)
9019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9020 ac_dummy="$PATH"
9021 for ac_dir in $ac_dummy; do
9022 test -z "$ac_dir" && ac_dir=.
9023 if test -f $ac_dir/$ac_word; then
9024 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9025 break
9026 fi
9027 done
9028 IFS="$ac_save_ifs"
9029 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9030 ;;
9031 esac
9032 fi
9033 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9034 if test -n "$GTK_CONFIG"; then
9035 echo "$ac_t""$GTK_CONFIG" 1>&6
9036 else
9037 echo "$ac_t""no" 1>&6
9038 fi
9039
9040 min_gtk_version=1.2.3
9041 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9042 echo "configure:9043: checking for GTK - version >= $min_gtk_version" >&5
9043 no_gtk=""
9044 if test "$GTK_CONFIG" != "no" ; then
9045 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9046 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9047 ac_save_CFLAGS="$CFLAGS"
9048 ac_save_LIBS="$LIBS"
9049 CFLAGS="$CFLAGS $GTK_CFLAGS"
9050 LIBS="$LIBS $GTK_LIBS"
9051 if test "$cross_compiling" = yes; then
9052 echo $ac_n "cross compiling; assumed OK... $ac_c"
9053 else
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9057
9058 #include <gtk/gtk.h>
9059 #include <gtk/gtkfeatures.h>
9060 #include <stdio.h>
9061 #include <stdlib.h>
9062
9063 int
9064 main ()
9065 {
9066 int major, minor, micro;
9067
9068 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9069 printf("%s, bad version string\n", "$min_gtk_version");
9070 exit(1);
9071 }
9072
9073 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9074 (GTK_MINOR_VERSION != gtk_minor_version) ||
9075 (GTK_MICRO_VERSION != gtk_micro_version)) {
9076 printf("Headers vs. library version mismatch!\n");
9077 exit(1);
9078 }
9079
9080 if (gtk_minor_version == 1) return FALSE;
9081
9082 return !((gtk_major_version > major) ||
9083 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9084 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9085 }
9086
9087 EOF
9088 if { (eval echo configure:9089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9089 then
9090 :
9091 else
9092 echo "configure: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 rm -fr conftest*
9095 no_gtk=yes
9096 fi
9097 rm -fr conftest*
9098 fi
9099
9100 CFLAGS="$ac_save_CFLAGS"
9101 LIBS="$ac_save_LIBS"
9102 else
9103 no_gtk=yes
9104 fi
9105 if test "x$no_gtk" = x ; then
9106 echo "$ac_t""yes" 1>&6
9107 wx_cv_lib_gtk=1.2.3
9108 else
9109 echo "$ac_t""no" 1>&6
9110 GTK_CFLAGS=""
9111 GTK_LIBS=""
9112 :
9113 fi
9114
9115
9116
9117 fi
9118
9119 if test -z "$wx_cv_lib_gtk"; then
9120 wx_cv_lib_gtk=none
9121 else
9122 wx_cv_cflags_gtk=$GTK_CFLAGS
9123 wx_cv_libs_gtk=$GTK_LIBS
9124 fi
9125
9126
9127 fi
9128
9129
9130 if test "$gtk_version_cached" = 1; then
9131 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9132 fi
9133
9134 case "$wx_cv_lib_gtk" in
9135 2.0) WXGTK20=1
9136 ;;
9137 1.2.7) WXGTK127=1
9138 ;;
9139 1.2.3) WXGTK12=1
9140 ;;
9141 *) { echo "configure: error:
9142 Please check that gtk-config is in path, the directory
9143 where GTK+ libraries are installed (returned by
9144 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9145 equivalent variable and GTK+ is version 1.2.3 or above.
9146 " 1>&2; exit 1; }
9147 ;;
9148 esac
9149
9150 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9151 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9152
9153 AFMINSTALL=afminstall
9154 TOOLKIT=GTK
9155 GUIDIST=GTK_DIST
9156
9157 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9158 echo "configure:9159: checking for gdk_im_open in -lgdk" >&5
9159 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
9162 else
9163 ac_save_LIBS="$LIBS"
9164 LIBS="-lgdk $LIBS"
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 /* Override any gcc2 internal prototype to avoid an error. */
9169 /* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
9171 char gdk_im_open();
9172
9173 int main() {
9174 gdk_im_open()
9175 ; return 0; }
9176 EOF
9177 if { (eval echo configure:9178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9178 rm -rf conftest*
9179 eval "ac_cv_lib_$ac_lib_var=yes"
9180 else
9181 echo "configure: failed program was:" >&5
9182 cat conftest.$ac_ext >&5
9183 rm -rf conftest*
9184 eval "ac_cv_lib_$ac_lib_var=no"
9185 fi
9186 rm -f conftest*
9187 LIBS="$ac_save_LIBS"
9188
9189 fi
9190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9191 echo "$ac_t""yes" 1>&6
9192 cat >> confdefs.h <<\EOF
9193 #define HAVE_XIM 1
9194 EOF
9195
9196 else
9197 echo "$ac_t""no" 1>&6
9198 fi
9199
9200 fi
9201
9202 if test "$wxUSE_MGL" = 1; then
9203
9204 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9205 echo "configure:9206: checking for SciTech MGL library" >&5
9206 if test "x$MGL_ROOT" = x ; then
9207 echo "$ac_t""not found" 1>&6
9208 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9209 else
9210 echo "$ac_t""$MGL_ROOT" 1>&6
9211 fi
9212
9213 MGL_OS=linux/gcc/glibc
9214 MGL_LIB_TYPE=""
9215
9216 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9217 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9218 MGL_LIB_TYPE=debug
9219 fi
9220 fi
9221 if test "x$MGL_LIB_TYPE" = x ; then
9222 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9223 MGL_LIB_TYPE=release
9224 else
9225 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9226 fi
9227 fi
9228
9229 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9230 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9231
9232 AFMINSTALL=afminstall
9233 TOOLKIT=MGL
9234 GUIDIST=MGL_DIST
9235 fi
9236
9237 if test "$wxUSE_WINE" = 1; then
9238 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9239 echo "configure:9240: checking for WINE includes" >&5
9240
9241 ac_find_includes=
9242 for ac_dir in $SEARCH_INCLUDE;
9243 do
9244 if test -f "$ac_dir/windows.h"; then
9245 ac_find_includes=$ac_dir
9246 break
9247 fi
9248 done
9249
9250 if test "$ac_find_includes" != "" ; then
9251 echo "$ac_t""found $ac_find_includes" 1>&6
9252 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9253 else
9254 echo "$ac_t""no" 1>&6
9255 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9256 fi
9257
9258 XPM_LINK=""
9259 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9260 echo "configure:9261: checking for Xpm library" >&5
9261
9262 ac_find_libraries=
9263 for ac_dir in $SEARCH_LIB;
9264 do
9265 for ac_extension in a so sl; do
9266 if test -f "$ac_dir/libXpm.$ac_extension"; then
9267 ac_find_libraries=$ac_dir
9268 break 2
9269 fi
9270 done
9271 done
9272
9273 if test "$ac_find_libraries" != "" ; then
9274 GUI_TK_LIBRARY="-L$ac_find_libraries"
9275 XPM_LINK="-lXpm"
9276 cat >> confdefs.h <<\EOF
9277 #define wxHAVE_LIB_XPM 1
9278 EOF
9279
9280 echo "$ac_t""found at $ac_find_libraries" 1>&6
9281 else
9282 echo "$ac_t""no" 1>&6
9283 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9284 fi
9285
9286 MESA_LINK=""
9287 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9288 echo "configure:9289: checking for Mesa library" >&5
9289
9290 ac_find_libraries=
9291 for ac_dir in $SEARCH_LIB;
9292 do
9293 for ac_extension in a so sl; do
9294 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9295 ac_find_libraries=$ac_dir
9296 break 2
9297 fi
9298 done
9299 done
9300
9301 if test "$ac_find_libraries" != "" ; then
9302 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9303 MESA_LINK="-lMesaGL"
9304 echo "$ac_t""found at $ac_find_libraries" 1>&6
9305 else
9306 { echo "configure: error: no" 1>&2; exit 1; }
9307 fi
9308
9309 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9310 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9311 WXWINE=1
9312 TOOLKIT=MSW
9313 GUIDIST=MSW_DIST
9314 fi
9315
9316
9317 # If we find X, set shell vars x_includes and x_libraries to the
9318 # paths, otherwise set no_x=yes.
9319 # Uses ac_ vars as temps to allow command line to override cache and checks.
9320 # --without-x overrides everything else, but does not touch the cache.
9321 echo $ac_n "checking for X""... $ac_c" 1>&6
9322 echo "configure:9323: checking for X" >&5
9323
9324 # Check whether --with-x or --without-x was given.
9325 if test "${with_x+set}" = set; then
9326 withval="$with_x"
9327 :
9328 fi
9329
9330 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9331 if test "x$with_x" = xno; then
9332 # The user explicitly disabled X.
9333 have_x=disabled
9334 else
9335 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9336 # Both variables are already set.
9337 have_x=yes
9338 else
9339 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9340 echo $ac_n "(cached) $ac_c" 1>&6
9341 else
9342 # One or both of the vars are not set, and there is no cached value.
9343 ac_x_includes=NO ac_x_libraries=NO
9344 rm -fr conftestdir
9345 if mkdir conftestdir; then
9346 cd conftestdir
9347 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9348 cat > Imakefile <<'EOF'
9349 acfindx:
9350 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9351 EOF
9352 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9354 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9355 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9356 for ac_extension in a so sl; do
9357 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9358 test -f $ac_im_libdir/libX11.$ac_extension; then
9359 ac_im_usrlibdir=$ac_im_libdir; break
9360 fi
9361 done
9362 # Screen out bogus values from the imake configuration. They are
9363 # bogus both because they are the default anyway, and because
9364 # using them would break gcc on systems where it needs fixed includes.
9365 case "$ac_im_incroot" in
9366 /usr/include) ;;
9367 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9368 esac
9369 case "$ac_im_usrlibdir" in
9370 /usr/lib | /lib) ;;
9371 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9372 esac
9373 fi
9374 cd ..
9375 rm -fr conftestdir
9376 fi
9377
9378 if test "$ac_x_includes" = NO; then
9379 # Guess where to find include files, by looking for this one X11 .h file.
9380 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9381
9382 # First, try using that file with no special directory specified.
9383 cat > conftest.$ac_ext <<EOF
9384 #line 9385 "configure"
9385 #include "confdefs.h"
9386 #include <$x_direct_test_include>
9387 EOF
9388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9389 { (eval echo configure:9390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9391 if test -z "$ac_err"; then
9392 rm -rf conftest*
9393 # We can compile using X headers with no special include directory.
9394 ac_x_includes=
9395 else
9396 echo "$ac_err" >&5
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 rm -rf conftest*
9400 # Look for the header file in a standard set of common directories.
9401 # Check X11 before X11Rn because it is often a symlink to the current release.
9402 for ac_dir in \
9403 /usr/X11/include \
9404 /usr/X11R6/include \
9405 /usr/X11R5/include \
9406 /usr/X11R4/include \
9407 \
9408 /usr/include/X11 \
9409 /usr/include/X11R6 \
9410 /usr/include/X11R5 \
9411 /usr/include/X11R4 \
9412 \
9413 /usr/local/X11/include \
9414 /usr/local/X11R6/include \
9415 /usr/local/X11R5/include \
9416 /usr/local/X11R4/include \
9417 \
9418 /usr/local/include/X11 \
9419 /usr/local/include/X11R6 \
9420 /usr/local/include/X11R5 \
9421 /usr/local/include/X11R4 \
9422 \
9423 /usr/X386/include \
9424 /usr/x386/include \
9425 /usr/XFree86/include/X11 \
9426 \
9427 /usr/include \
9428 /usr/local/include \
9429 /usr/unsupported/include \
9430 /usr/athena/include \
9431 /usr/local/x11r5/include \
9432 /usr/lpp/Xamples/include \
9433 \
9434 /usr/openwin/include \
9435 /usr/openwin/share/include \
9436 ; \
9437 do
9438 if test -r "$ac_dir/$x_direct_test_include"; then
9439 ac_x_includes=$ac_dir
9440 break
9441 fi
9442 done
9443 fi
9444 rm -f conftest*
9445 fi # $ac_x_includes = NO
9446
9447 if test "$ac_x_libraries" = NO; then
9448 # Check for the libraries.
9449
9450 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9451 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9452
9453 # See if we find them without any special options.
9454 # Don't add to $LIBS permanently.
9455 ac_save_LIBS="$LIBS"
9456 LIBS="-l$x_direct_test_library $LIBS"
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9460
9461 int main() {
9462 ${x_direct_test_function}()
9463 ; return 0; }
9464 EOF
9465 if { (eval echo configure:9466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9466 rm -rf conftest*
9467 LIBS="$ac_save_LIBS"
9468 # We can link X programs with no special library path.
9469 ac_x_libraries=
9470 else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -rf conftest*
9474 LIBS="$ac_save_LIBS"
9475 # First see if replacing the include by lib works.
9476 # Check X11 before X11Rn because it is often a symlink to the current release.
9477 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9478 /usr/X11/lib \
9479 /usr/X11R6/lib \
9480 /usr/X11R5/lib \
9481 /usr/X11R4/lib \
9482 \
9483 /usr/lib/X11 \
9484 /usr/lib/X11R6 \
9485 /usr/lib/X11R5 \
9486 /usr/lib/X11R4 \
9487 \
9488 /usr/local/X11/lib \
9489 /usr/local/X11R6/lib \
9490 /usr/local/X11R5/lib \
9491 /usr/local/X11R4/lib \
9492 \
9493 /usr/local/lib/X11 \
9494 /usr/local/lib/X11R6 \
9495 /usr/local/lib/X11R5 \
9496 /usr/local/lib/X11R4 \
9497 \
9498 /usr/X386/lib \
9499 /usr/x386/lib \
9500 /usr/XFree86/lib/X11 \
9501 \
9502 /usr/lib \
9503 /usr/local/lib \
9504 /usr/unsupported/lib \
9505 /usr/athena/lib \
9506 /usr/local/x11r5/lib \
9507 /usr/lpp/Xamples/lib \
9508 /lib/usr/lib/X11 \
9509 \
9510 /usr/openwin/lib \
9511 /usr/openwin/share/lib \
9512 ; \
9513 do
9514 for ac_extension in a so sl; do
9515 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9516 ac_x_libraries=$ac_dir
9517 break 2
9518 fi
9519 done
9520 done
9521 fi
9522 rm -f conftest*
9523 fi # $ac_x_libraries = NO
9524
9525 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9526 # Didn't find X anywhere. Cache the known absence of X.
9527 ac_cv_have_x="have_x=no"
9528 else
9529 # Record where we found X for the cache.
9530 ac_cv_have_x="have_x=yes \
9531 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9532 fi
9533 fi
9534 fi
9535 eval "$ac_cv_have_x"
9536 fi # $with_x != no
9537
9538 if test "$have_x" != yes; then
9539 echo "$ac_t""$have_x" 1>&6
9540 no_x=yes
9541 else
9542 # If each of the values was on the command line, it overrides each guess.
9543 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9544 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9545 # Update the cache value to reflect the command line values.
9546 ac_cv_have_x="have_x=yes \
9547 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9548 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9549 fi
9550
9551 if test "$no_x" = yes; then
9552 # Not all programs may use this symbol, but it does not hurt to define it.
9553 cat >> confdefs.h <<\EOF
9554 #define X_DISPLAY_MISSING 1
9555 EOF
9556
9557 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9558 else
9559 if test -n "$x_includes"; then
9560 X_CFLAGS="$X_CFLAGS -I$x_includes"
9561 fi
9562
9563 # It would also be nice to do this for all -L options, not just this one.
9564 if test -n "$x_libraries"; then
9565 X_LIBS="$X_LIBS -L$x_libraries"
9566 # For Solaris; some versions of Sun CC require a space after -R and
9567 # others require no space. Words are not sufficient . . . .
9568 case "`(uname -sr) 2>/dev/null`" in
9569 "SunOS 5"*)
9570 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9571 echo "configure:9572: checking whether -R must be followed by a space" >&5
9572 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9573 cat > conftest.$ac_ext <<EOF
9574 #line 9575 "configure"
9575 #include "confdefs.h"
9576
9577 int main() {
9578
9579 ; return 0; }
9580 EOF
9581 if { (eval echo configure:9582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9582 rm -rf conftest*
9583 ac_R_nospace=yes
9584 else
9585 echo "configure: failed program was:" >&5
9586 cat conftest.$ac_ext >&5
9587 rm -rf conftest*
9588 ac_R_nospace=no
9589 fi
9590 rm -f conftest*
9591 if test $ac_R_nospace = yes; then
9592 echo "$ac_t""no" 1>&6
9593 X_LIBS="$X_LIBS -R$x_libraries"
9594 else
9595 LIBS="$ac_xsave_LIBS -R $x_libraries"
9596 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599
9600 int main() {
9601
9602 ; return 0; }
9603 EOF
9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9605 rm -rf conftest*
9606 ac_R_space=yes
9607 else
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 rm -rf conftest*
9611 ac_R_space=no
9612 fi
9613 rm -f conftest*
9614 if test $ac_R_space = yes; then
9615 echo "$ac_t""yes" 1>&6
9616 X_LIBS="$X_LIBS -R $x_libraries"
9617 else
9618 echo "$ac_t""neither works" 1>&6
9619 fi
9620 fi
9621 LIBS="$ac_xsave_LIBS"
9622 esac
9623 fi
9624
9625 # Check for system-dependent libraries X programs must link with.
9626 # Do this before checking for the system-independent R6 libraries
9627 # (-lICE), since we may need -lsocket or whatever for X linking.
9628
9629 if test "$ISC" = yes; then
9630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9631 else
9632 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9633 # libraries were built with DECnet support. And karl@cs.umb.edu says
9634 # the Alpha needs dnet_stub (dnet does not exist).
9635 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9636 echo "configure:9637: checking for dnet_ntoa in -ldnet" >&5
9637 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9639 echo $ac_n "(cached) $ac_c" 1>&6
9640 else
9641 ac_save_LIBS="$LIBS"
9642 LIBS="-ldnet $LIBS"
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 /* Override any gcc2 internal prototype to avoid an error. */
9647 /* We use char because int might match the return type of a gcc2
9648 builtin and then its argument prototype would still apply. */
9649 char dnet_ntoa();
9650
9651 int main() {
9652 dnet_ntoa()
9653 ; return 0; }
9654 EOF
9655 if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9656 rm -rf conftest*
9657 eval "ac_cv_lib_$ac_lib_var=yes"
9658 else
9659 echo "configure: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9661 rm -rf conftest*
9662 eval "ac_cv_lib_$ac_lib_var=no"
9663 fi
9664 rm -f conftest*
9665 LIBS="$ac_save_LIBS"
9666
9667 fi
9668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9671 else
9672 echo "$ac_t""no" 1>&6
9673 fi
9674
9675 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9676 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9677 echo "configure:9678: checking for dnet_ntoa in -ldnet_stub" >&5
9678 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9680 echo $ac_n "(cached) $ac_c" 1>&6
9681 else
9682 ac_save_LIBS="$LIBS"
9683 LIBS="-ldnet_stub $LIBS"
9684 cat > conftest.$ac_ext <<EOF
9685 #line 9686 "configure"
9686 #include "confdefs.h"
9687 /* Override any gcc2 internal prototype to avoid an error. */
9688 /* We use char because int might match the return type of a gcc2
9689 builtin and then its argument prototype would still apply. */
9690 char dnet_ntoa();
9691
9692 int main() {
9693 dnet_ntoa()
9694 ; return 0; }
9695 EOF
9696 if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9697 rm -rf conftest*
9698 eval "ac_cv_lib_$ac_lib_var=yes"
9699 else
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 eval "ac_cv_lib_$ac_lib_var=no"
9704 fi
9705 rm -f conftest*
9706 LIBS="$ac_save_LIBS"
9707
9708 fi
9709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9710 echo "$ac_t""yes" 1>&6
9711 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9712 else
9713 echo "$ac_t""no" 1>&6
9714 fi
9715
9716 fi
9717
9718 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9719 # to get the SysV transport functions.
9720 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9721 # needs -lnsl.
9722 # The nsl library prevents programs from opening the X display
9723 # on Irix 5.2, according to dickey@clark.net.
9724 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9725 echo "configure:9726: checking for gethostbyname" >&5
9726 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9727 echo $ac_n "(cached) $ac_c" 1>&6
9728 else
9729 cat > conftest.$ac_ext <<EOF
9730 #line 9731 "configure"
9731 #include "confdefs.h"
9732 /* System header to define __stub macros and hopefully few prototypes,
9733 which can conflict with char gethostbyname(); below. */
9734 #include <assert.h>
9735 /* Override any gcc2 internal prototype to avoid an error. */
9736 /* We use char because int might match the return type of a gcc2
9737 builtin and then its argument prototype would still apply. */
9738 char gethostbyname();
9739
9740 int main() {
9741
9742 /* The GNU C library defines this for functions which it implements
9743 to always fail with ENOSYS. Some functions are actually named
9744 something starting with __ and the normal name is an alias. */
9745 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9746 choke me
9747 #else
9748 gethostbyname();
9749 #endif
9750
9751 ; return 0; }
9752 EOF
9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9754 rm -rf conftest*
9755 eval "ac_cv_func_gethostbyname=yes"
9756 else
9757 echo "configure: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 rm -rf conftest*
9760 eval "ac_cv_func_gethostbyname=no"
9761 fi
9762 rm -f conftest*
9763 fi
9764
9765 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9766 echo "$ac_t""yes" 1>&6
9767 :
9768 else
9769 echo "$ac_t""no" 1>&6
9770 fi
9771
9772 if test $ac_cv_func_gethostbyname = no; then
9773 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
9774 echo "configure:9775: checking for gethostbyname in -lnsl" >&5
9775 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9778 else
9779 ac_save_LIBS="$LIBS"
9780 LIBS="-lnsl $LIBS"
9781 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9784 /* Override any gcc2 internal prototype to avoid an error. */
9785 /* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */
9787 char gethostbyname();
9788
9789 int main() {
9790 gethostbyname()
9791 ; return 0; }
9792 EOF
9793 if { (eval echo configure:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9794 rm -rf conftest*
9795 eval "ac_cv_lib_$ac_lib_var=yes"
9796 else
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9799 rm -rf conftest*
9800 eval "ac_cv_lib_$ac_lib_var=no"
9801 fi
9802 rm -f conftest*
9803 LIBS="$ac_save_LIBS"
9804
9805 fi
9806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9807 echo "$ac_t""yes" 1>&6
9808 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9809 else
9810 echo "$ac_t""no" 1>&6
9811 fi
9812
9813 fi
9814
9815 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9816 # socket/setsockopt and other routines are undefined under SCO ODT
9817 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9818 # on later versions), says simon@lia.di.epfl.ch: it contains
9819 # gethostby* variants that don't use the nameserver (or something).
9820 # -lsocket must be given before -lnsl if both are needed.
9821 # We assume that if connect needs -lnsl, so does gethostbyname.
9822 echo $ac_n "checking for connect""... $ac_c" 1>&6
9823 echo "configure:9824: checking for connect" >&5
9824 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9825 echo $ac_n "(cached) $ac_c" 1>&6
9826 else
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9830 /* System header to define __stub macros and hopefully few prototypes,
9831 which can conflict with char connect(); below. */
9832 #include <assert.h>
9833 /* Override any gcc2 internal prototype to avoid an error. */
9834 /* We use char because int might match the return type of a gcc2
9835 builtin and then its argument prototype would still apply. */
9836 char connect();
9837
9838 int main() {
9839
9840 /* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843 #if defined (__stub_connect) || defined (__stub___connect)
9844 choke me
9845 #else
9846 connect();
9847 #endif
9848
9849 ; return 0; }
9850 EOF
9851 if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9852 rm -rf conftest*
9853 eval "ac_cv_func_connect=yes"
9854 else
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9857 rm -rf conftest*
9858 eval "ac_cv_func_connect=no"
9859 fi
9860 rm -f conftest*
9861 fi
9862
9863 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9864 echo "$ac_t""yes" 1>&6
9865 :
9866 else
9867 echo "$ac_t""no" 1>&6
9868 fi
9869
9870 if test $ac_cv_func_connect = no; then
9871 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
9872 echo "configure:9873: checking for connect in -lsocket" >&5
9873 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9876 else
9877 ac_save_LIBS="$LIBS"
9878 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9882 /* Override any gcc2 internal prototype to avoid an error. */
9883 /* We use char because int might match the return type of a gcc2
9884 builtin and then its argument prototype would still apply. */
9885 char connect();
9886
9887 int main() {
9888 connect()
9889 ; return 0; }
9890 EOF
9891 if { (eval echo configure:9892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9892 rm -rf conftest*
9893 eval "ac_cv_lib_$ac_lib_var=yes"
9894 else
9895 echo "configure: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 rm -rf conftest*
9898 eval "ac_cv_lib_$ac_lib_var=no"
9899 fi
9900 rm -f conftest*
9901 LIBS="$ac_save_LIBS"
9902
9903 fi
9904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9905 echo "$ac_t""yes" 1>&6
9906 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9907 else
9908 echo "$ac_t""no" 1>&6
9909 fi
9910
9911 fi
9912
9913 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9914 echo $ac_n "checking for remove""... $ac_c" 1>&6
9915 echo "configure:9916: checking for remove" >&5
9916 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9917 echo $ac_n "(cached) $ac_c" 1>&6
9918 else
9919 cat > conftest.$ac_ext <<EOF
9920 #line 9921 "configure"
9921 #include "confdefs.h"
9922 /* System header to define __stub macros and hopefully few prototypes,
9923 which can conflict with char remove(); below. */
9924 #include <assert.h>
9925 /* Override any gcc2 internal prototype to avoid an error. */
9926 /* We use char because int might match the return type of a gcc2
9927 builtin and then its argument prototype would still apply. */
9928 char remove();
9929
9930 int main() {
9931
9932 /* The GNU C library defines this for functions which it implements
9933 to always fail with ENOSYS. Some functions are actually named
9934 something starting with __ and the normal name is an alias. */
9935 #if defined (__stub_remove) || defined (__stub___remove)
9936 choke me
9937 #else
9938 remove();
9939 #endif
9940
9941 ; return 0; }
9942 EOF
9943 if { (eval echo configure:9944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9944 rm -rf conftest*
9945 eval "ac_cv_func_remove=yes"
9946 else
9947 echo "configure: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 rm -rf conftest*
9950 eval "ac_cv_func_remove=no"
9951 fi
9952 rm -f conftest*
9953 fi
9954
9955 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9956 echo "$ac_t""yes" 1>&6
9957 :
9958 else
9959 echo "$ac_t""no" 1>&6
9960 fi
9961
9962 if test $ac_cv_func_remove = no; then
9963 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
9964 echo "configure:9965: checking for remove in -lposix" >&5
9965 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9967 echo $ac_n "(cached) $ac_c" 1>&6
9968 else
9969 ac_save_LIBS="$LIBS"
9970 LIBS="-lposix $LIBS"
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 /* Override any gcc2 internal prototype to avoid an error. */
9975 /* We use char because int might match the return type of a gcc2
9976 builtin and then its argument prototype would still apply. */
9977 char remove();
9978
9979 int main() {
9980 remove()
9981 ; return 0; }
9982 EOF
9983 if { (eval echo configure:9984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984 rm -rf conftest*
9985 eval "ac_cv_lib_$ac_lib_var=yes"
9986 else
9987 echo "configure: failed program was:" >&5
9988 cat conftest.$ac_ext >&5
9989 rm -rf conftest*
9990 eval "ac_cv_lib_$ac_lib_var=no"
9991 fi
9992 rm -f conftest*
9993 LIBS="$ac_save_LIBS"
9994
9995 fi
9996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9997 echo "$ac_t""yes" 1>&6
9998 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9999 else
10000 echo "$ac_t""no" 1>&6
10001 fi
10002
10003 fi
10004
10005 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10006 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10007 echo "configure:10008: checking for shmat" >&5
10008 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10009 echo $ac_n "(cached) $ac_c" 1>&6
10010 else
10011 cat > conftest.$ac_ext <<EOF
10012 #line 10013 "configure"
10013 #include "confdefs.h"
10014 /* System header to define __stub macros and hopefully few prototypes,
10015 which can conflict with char shmat(); below. */
10016 #include <assert.h>
10017 /* Override any gcc2 internal prototype to avoid an error. */
10018 /* We use char because int might match the return type of a gcc2
10019 builtin and then its argument prototype would still apply. */
10020 char shmat();
10021
10022 int main() {
10023
10024 /* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027 #if defined (__stub_shmat) || defined (__stub___shmat)
10028 choke me
10029 #else
10030 shmat();
10031 #endif
10032
10033 ; return 0; }
10034 EOF
10035 if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10036 rm -rf conftest*
10037 eval "ac_cv_func_shmat=yes"
10038 else
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 rm -rf conftest*
10042 eval "ac_cv_func_shmat=no"
10043 fi
10044 rm -f conftest*
10045 fi
10046
10047 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10048 echo "$ac_t""yes" 1>&6
10049 :
10050 else
10051 echo "$ac_t""no" 1>&6
10052 fi
10053
10054 if test $ac_cv_func_shmat = no; then
10055 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10056 echo "configure:10057: checking for shmat in -lipc" >&5
10057 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10060 else
10061 ac_save_LIBS="$LIBS"
10062 LIBS="-lipc $LIBS"
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 /* Override any gcc2 internal prototype to avoid an error. */
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069 char shmat();
10070
10071 int main() {
10072 shmat()
10073 ; return 0; }
10074 EOF
10075 if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076 rm -rf conftest*
10077 eval "ac_cv_lib_$ac_lib_var=yes"
10078 else
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 rm -rf conftest*
10082 eval "ac_cv_lib_$ac_lib_var=no"
10083 fi
10084 rm -f conftest*
10085 LIBS="$ac_save_LIBS"
10086
10087 fi
10088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10089 echo "$ac_t""yes" 1>&6
10090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10091 else
10092 echo "$ac_t""no" 1>&6
10093 fi
10094
10095 fi
10096 fi
10097
10098 # Check for libraries that X11R6 Xt/Xaw programs need.
10099 ac_save_LDFLAGS="$LDFLAGS"
10100 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10101 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10102 # check for ICE first), but we must link in the order -lSM -lICE or
10103 # we get undefined symbols. So assume we have SM if we have ICE.
10104 # These have to be linked with before -lX11, unlike the other
10105 # libraries we check for below, so use a different variable.
10106 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10107 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10108 echo "configure:10109: checking for IceConnectionNumber in -lICE" >&5
10109 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10112 else
10113 ac_save_LIBS="$LIBS"
10114 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 /* Override any gcc2 internal prototype to avoid an error. */
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10121 char IceConnectionNumber();
10122
10123 int main() {
10124 IceConnectionNumber()
10125 ; return 0; }
10126 EOF
10127 if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10128 rm -rf conftest*
10129 eval "ac_cv_lib_$ac_lib_var=yes"
10130 else
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10133 rm -rf conftest*
10134 eval "ac_cv_lib_$ac_lib_var=no"
10135 fi
10136 rm -f conftest*
10137 LIBS="$ac_save_LIBS"
10138
10139 fi
10140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10141 echo "$ac_t""yes" 1>&6
10142 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10143 else
10144 echo "$ac_t""no" 1>&6
10145 fi
10146
10147 LDFLAGS="$ac_save_LDFLAGS"
10148
10149 fi
10150
10151 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10152 LDFLAGS="$LDFLAGS $X_LIBS"
10153
10154 if test "$wxUSE_MOTIF" = 1; then
10155 if test "$no_x" = "yes"; then
10156 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10157 fi
10158
10159 GUI_TK_LIBRARY="$X_LIBS"
10160 TOOLKIT_INCLUDE="$X_CFLAGS"
10161
10162 AFMINSTALL=afminstall
10163
10164
10165 COMPILED_X_PROGRAM=0
10166
10167 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10168 echo "configure:10169: checking for Motif/Lesstif headers" >&5
10169
10170 ac_find_includes=
10171 for ac_dir in $SEARCH_INCLUDE;
10172 do
10173 if test -f "$ac_dir/Xm/Xm.h"; then
10174 ac_find_includes=$ac_dir
10175 break
10176 fi
10177 done
10178
10179 if test "$ac_find_includes" != "" ; then
10180 echo "$ac_t""found $ac_find_includes" 1>&6
10181 else
10182 cat > conftest.$ac_ext <<EOF
10183 #line 10184 "configure"
10184 #include "confdefs.h"
10185
10186 #include <Xm/Xm.h>
10187
10188 int main() {
10189
10190 int version;
10191
10192 version = xmUseVersion;
10193
10194 ; return 0; }
10195 EOF
10196 if { (eval echo configure:10197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10197 rm -rf conftest*
10198
10199 echo "$ac_t""found in default search path" 1>&6
10200 COMPILED_X_PROGRAM=1
10201
10202 else
10203 echo "configure: failed program was:" >&5
10204 cat conftest.$ac_ext >&5
10205 rm -rf conftest*
10206
10207 echo "$ac_t""no" 1>&6
10208 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10209
10210
10211 fi
10212 rm -f conftest*
10213 fi
10214
10215 if test "$COMPILED_X_PROGRAM" = 0; then
10216 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10217 echo "configure:10218: checking for Motif/Lesstif library" >&5
10218
10219 ac_find_libraries=
10220 for ac_dir in $SEARCH_LIB;
10221 do
10222 for ac_extension in a so sl; do
10223 if test -f "$ac_dir/libXm.$ac_extension"; then
10224 ac_find_libraries=$ac_dir
10225 break 2
10226 fi
10227 done
10228 done
10229
10230 if test "$ac_find_libraries" != "" ; then
10231
10232 ac_path_to_include=$ac_find_includes
10233 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10234 result=$?
10235 if test $result = 0; then
10236 ac_path_to_include=""
10237 else
10238 ac_path_to_include="-I$ac_find_includes"
10239 fi
10240
10241
10242 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10243 result=$?
10244 if test $result = 0; then
10245 ac_path_to_link=""
10246 else
10247 ac_path_to_link="-L$ac_find_libraries"
10248 fi
10249
10250
10251 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10252 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10253 echo "$ac_t""found at $ac_find_libraries" 1>&6
10254 else
10255 cat > conftest.$ac_ext <<EOF
10256 #line 10257 "configure"
10257 #include "confdefs.h"
10258
10259 #include <Xm/Xm.h>
10260
10261 int main() {
10262
10263 int version;
10264
10265 version = xmUseVersion;
10266
10267 ; return 0; }
10268 EOF
10269 if { (eval echo configure:10270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10270 rm -rf conftest*
10271
10272 echo "$ac_t""found in default search path" 1>&6
10273 COMPILED_X_PROGRAM=1
10274
10275 else
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10278 rm -rf conftest*
10279
10280 echo "$ac_t""no" 1>&6
10281 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10282
10283
10284 fi
10285 rm -f conftest*
10286 fi
10287 fi
10288
10289
10290 XPM_LINK=""
10291 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10292 echo "configure:10293: checking for Xpm library" >&5
10293
10294 ac_find_libraries=
10295 for ac_dir in $SEARCH_LIB;
10296 do
10297 for ac_extension in a so sl; do
10298 if test -f "$ac_dir/libXpm.$ac_extension"; then
10299 ac_find_libraries=$ac_dir
10300 break 2
10301 fi
10302 done
10303 done
10304
10305 if test "$ac_find_libraries" != "" ; then
10306
10307 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10308 result=$?
10309 if test $result = 0; then
10310 ac_path_to_link=""
10311 else
10312 ac_path_to_link="-L$ac_find_libraries"
10313 fi
10314
10315 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10316 XPM_LINK="-lXpm "
10317 cat >> confdefs.h <<\EOF
10318 #define wxHAVE_LIB_XPM 1
10319 EOF
10320
10321 echo "$ac_t""found at $ac_find_libraries" 1>&6
10322 else
10323 cat > conftest.$ac_ext <<EOF
10324 #line 10325 "configure"
10325 #include "confdefs.h"
10326
10327 #include <X11/xpm.h>
10328
10329 int main() {
10330
10331 int version;
10332
10333 version = XpmLibraryVersion();
10334
10335 ; return 0; }
10336 EOF
10337 if { (eval echo configure:10338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10338 rm -rf conftest*
10339
10340 XPM_LINK="-lXpm "
10341 cat >> confdefs.h <<\EOF
10342 #define wxHAVE_LIB_XPM 1
10343 EOF
10344
10345 echo "$ac_t""found in default search path" 1>&6
10346 COMPILED_X_PROGRAM=0
10347
10348 else
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10351 rm -rf conftest*
10352
10353 echo "$ac_t""no" 1>&6
10354 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10355
10356
10357 fi
10358 rm -f conftest*
10359 fi
10360
10361 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10362 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10363 TOOLKIT=MOTIF
10364 GUIDIST=MOTIF_DIST
10365 fi
10366
10367 if test "$wxUSE_MAC" = 1; then
10368 TOOLKIT=MAC
10369 GUIDIST=MACX_DIST
10370 fi
10371
10372 if test "$wxUSE_PM" = 1; then
10373 TOOLKIT=PM
10374 GUIDIST=GTK_DIST
10375 fi
10376
10377 if test "$TOOLKIT" != "PM" ; then
10378 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10379 else
10380 TOOLKIT_DIR="os2"
10381 fi
10382
10383 TOOLKIT_NAME="${TOOLKIT_DIR}"
10384
10385 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10386
10387 if test "$TOOLKIT_NAME" = "motif"; then
10388 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10389 fi
10390
10391 if test "$wxUSE_UNIVERSAL" = "yes"; then
10392 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10393 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10394 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10395 SETUPH_DIR="univ"
10396 else
10397 SETUPH_DIR="${TOOLKIT_DIR}"
10398 fi
10399
10400 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10401 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10402 fi
10403
10404 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10405 if test "$wxUSE_UNIVERSAL" = "yes"; then
10406 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10407 fi
10408
10409 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10410
10411 if test "$wxUSE_UNIVERSAL" = "yes"; then
10412 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10413 else
10414 ALL_OBJECTS="\$(GUIOBJS)"
10415 fi
10416
10417 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10418
10419 if test "$TOOLKIT" != "MSW"; then
10420 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10421 fi
10422
10423 if test "$wxUSE_HTML" = "yes"; then
10424 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10425 fi
10426
10427 if test "$TOOLKIT" != "MSW"; then
10428 if test "$wxUSE_ODBC" = "yes" ; then
10429 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10430 fi
10431 fi
10432
10433 if test "$wxUSE_LIBJPEG" = "yes" ; then
10434 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10435 fi
10436 if test "$wxUSE_LIBTIFF" = "yes" ; then
10437 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10438 fi
10439 if test "$wxUSE_LIBPNG" = "yes" ; then
10440 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10441 fi
10442 if test "$wxUSE_ZLIB" = "yes" ; then
10443 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10444 fi
10445 if test "$wxUSE_FREETYPE" = "yes" ; then
10446 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10447 fi
10448
10449 if test "$wxUSE_UNIVERSAL" = "yes"; then
10450 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10451 else
10452 ALL_DEPFILES="\$(GUIDEPS)"
10453 fi
10454
10455 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10456
10457 if test "$TOOLKIT" != "MSW"; then
10458 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10459 fi
10460
10461 if test "$wxUSE_HTML" = "yes"; then
10462 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10463 fi
10464
10465 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10466 if test "$wxUSE_UNIVERSAL" = "yes"; then
10467 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10468 fi
10469 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10470 RPM_SPEC="wx\$(TOOLKIT).spec"
10471
10472 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10473 DISTDIR="wx\$(TOOLKIT)"
10474 else
10475 USE_GUI=0
10476
10477 TOOLKIT_DIR="base"
10478
10479 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10480 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10481 else
10482 TOOLKIT_NAME="${TOOLKIT_DIR}"
10483 fi
10484
10485 TOOLKIT_DEF="-D__WXBASE__"
10486
10487 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10488 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10489
10490 if test "$wxUSE_ZLIB" = "yes" ; then
10491 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10492 fi
10493
10494 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10495
10496 PORT_FILES="src/files.lst"
10497 RPM_FILES="src/rpmfiles.lst"
10498 RPM_SPEC="wxBase.spec"
10499
10500 GUIDIST="BASE_DIST"
10501 DISTDIR="wxBase"
10502 fi
10503
10504 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10505 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10506
10507 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10508 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10509
10510 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10511 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10512
10513 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10514 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10515 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10516 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10517 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10518 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10519
10520 SHARED_LD=
10521 PIC_FLAG=
10522 WX_ALL=
10523 WX_ALL_INSTALLED=
10524 BURNT_LIBRARY_NAME=
10525 WX_TARGET_LIBRARY_SONAME=
10526
10527
10528 if test "$wxUSE_SHARED" = "yes"; then
10529 case "${host}" in
10530 *-hp-hpux* )
10531 if test "$GCC" = yes ; then
10532 SHARED_LD="${CC} -shared -fPIC -o"
10533 PIC_FLAG="-fPIC"
10534 else
10535 LDFLAGS="-L/usr/lib"
10536
10537 SHARED_LD="${CXX} -b -o"
10538 PIC_FLAG="+Z"
10539 fi
10540 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10541 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10542 if test "$wxUSE_OPENGL" = "yes"; then
10543 WX_ALL_INSTALLED="preinstall_gl"
10544 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10545 else
10546 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10547 fi
10548 ;;
10549
10550 *-*-linux* )
10551 SHARED_LD="${CC} -shared -o"
10552 PIC_FLAG="-fPIC"
10553 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10554 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10555 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10556 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10557 fi
10558 if test "$wxUSE_OPENGL" = "yes"; then
10559 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10560 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10561 else
10562 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10563 WX_ALL="CREATE_LINKS"
10564 fi
10565 ;;
10566 *-*-irix5* | *-*-irix6* )
10567 if test "$GCC" = yes ; then
10568 SHARED_LD="${CC} -shared -o"
10569 PIC_FLAG="-fPIC"
10570 else
10571 SHARED_LD="${CXX} -shared -o"
10572 fi
10573 if test "$wxUSE_OPENGL" = "yes"; then
10574 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10575 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10576 else
10577 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10578 WX_ALL="CREATE_LINKS"
10579 fi
10580 ;;
10581 *-*-solaris2* )
10582 if test "$GCC" = yes ; then
10583 SHARED_LD="${CC} -shared -o"
10584 PIC_FLAG="-fPIC"
10585
10586 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10587 else
10588 SHARED_LD="${CXX} -G -o"
10589 PIC_FLAG="-KPIC"
10590 fi
10591 if test "$wxUSE_OPENGL" = "yes"; then
10592 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10593 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10594 else
10595 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10596 WX_ALL="CREATE_LINKS"
10597 fi
10598 ;;
10599 *-*-sunos4* )
10600 SHARED_LD="${CC} -shared -o"
10601 PIC_FLAG="-fPIC"
10602 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10603 WX_ALL="CREATE_LINKS"
10604 ;;
10605 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10606 SHARED_LD="${CC} -shared -o"
10607 PIC_FLAG="-fPIC"
10608 if test "$wxUSE_OPENGL" = "yes"; then
10609 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10610 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10611 else
10612 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10613 WX_ALL="CREATE_LINKS"
10614 fi
10615 ;;
10616 *-*-darwin* )
10617 SHARED_LD="${CXX} -dynamiclib -o"
10618 PIC_FLAG="-dynamic -fPIC"
10619 if test "$wxUSE_OPENGL" = "yes"; then
10620 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10621 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10622 else
10623 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10624 WX_ALL="CREATE_LINKS"
10625 fi
10626 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10627 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10628 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10629 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10630 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10631 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10632 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10633 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10634 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10635 ;;
10636 *-*-osf* )
10637 SHARED_LD="${CXX} -shared -o"
10638 PIC_FLAG="-fPIC"
10639 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10640 WX_ALL="CREATE_LINKS"
10641 ;;
10642 *-*-dgux5* )
10643 SHARED_LD="${CXX} -shared -o"
10644 PIC_FLAG="-fPIC"
10645 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10646 WX_ALL="CREATE_LINKS"
10647 ;;
10648 *-*-sysv5* )
10649 SHARED_LD="${CC} -shared -o"
10650 PIC_FLAG="-fPIC"
10651 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10652 WX_ALL="CREATE_LINKS"
10653 ;;
10654 *-*-aix* )
10655 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10656 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10657 ;;
10658 *-*-cygwin* )
10659 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10660 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10661 if test "$wxUSE_OPENGL" = "yes"; then
10662 WX_ALL_INSTALLED="preinstall_gl"
10663 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10664 else
10665 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10666 fi
10667 ;;
10668 *-*-mingw32* )
10669 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10670 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10671 if test "$wxUSE_OPENGL" = "yes"; then
10672 WX_ALL_INSTALLED="preinstall_gl"
10673 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10674 else
10675 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10676 fi
10677 ;;
10678 *-pc-os2_emx )
10679 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10680 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10681 ;;
10682 *-*-beos* )
10683 SHARED_LD="${LD} -shared -o"
10684 PIC_FLAG="-fPIC"
10685 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10686 WX_ALL="CREATE_LINKS"
10687 ;;
10688 *)
10689 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10690 esac
10691
10692 if test "x$WX_TARGET_LIBRARY" = "x"; then
10693 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10694 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10695 fi
10696 WX_TARGET_LIBRARY_TYPE="so"
10697 else
10698 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10699 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10700
10701 if test "$wxUSE_OPENGL" = "yes"; then
10702 WX_ALL_INSTALLED="preinstall_gl"
10703 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10704 else
10705 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10706 fi
10707
10708 if test "$wxUSE_GUI" = "no"; then
10709 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10710 fi
10711
10712 WX_TARGET_LIBRARY_TYPE="a"
10713 fi
10714
10715
10716 for ac_hdr in strings.h
10717 do
10718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10720 echo "configure:10721: checking for $ac_hdr" >&5
10721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10722 echo $ac_n "(cached) $ac_c" 1>&6
10723 else
10724 cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10727 #include <$ac_hdr>
10728 EOF
10729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10730 { (eval echo configure:10731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10732 if test -z "$ac_err"; then
10733 rm -rf conftest*
10734 eval "ac_cv_header_$ac_safe=yes"
10735 else
10736 echo "$ac_err" >&5
10737 echo "configure: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 rm -rf conftest*
10740 eval "ac_cv_header_$ac_safe=no"
10741 fi
10742 rm -f conftest*
10743 fi
10744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10745 echo "$ac_t""yes" 1>&6
10746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10747 cat >> confdefs.h <<EOF
10748 #define $ac_tr_hdr 1
10749 EOF
10750
10751 else
10752 echo "$ac_t""no" 1>&6
10753 fi
10754 done
10755
10756 for ac_hdr in stdlib.h
10757 do
10758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10760 echo "configure:10761: checking for $ac_hdr" >&5
10761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10762 echo $ac_n "(cached) $ac_c" 1>&6
10763 else
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10767 #include <$ac_hdr>
10768 EOF
10769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10770 { (eval echo configure:10771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10772 if test -z "$ac_err"; then
10773 rm -rf conftest*
10774 eval "ac_cv_header_$ac_safe=yes"
10775 else
10776 echo "$ac_err" >&5
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10779 rm -rf conftest*
10780 eval "ac_cv_header_$ac_safe=no"
10781 fi
10782 rm -f conftest*
10783 fi
10784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10785 echo "$ac_t""yes" 1>&6
10786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10787 cat >> confdefs.h <<EOF
10788 #define $ac_tr_hdr 1
10789 EOF
10790
10791 else
10792 echo "$ac_t""no" 1>&6
10793 fi
10794 done
10795
10796 for ac_hdr in unistd.h
10797 do
10798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10800 echo "configure:10801: checking for $ac_hdr" >&5
10801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10802 echo $ac_n "(cached) $ac_c" 1>&6
10803 else
10804 cat > conftest.$ac_ext <<EOF
10805 #line 10806 "configure"
10806 #include "confdefs.h"
10807 #include <$ac_hdr>
10808 EOF
10809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10810 { (eval echo configure:10811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10812 if test -z "$ac_err"; then
10813 rm -rf conftest*
10814 eval "ac_cv_header_$ac_safe=yes"
10815 else
10816 echo "$ac_err" >&5
10817 echo "configure: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10819 rm -rf conftest*
10820 eval "ac_cv_header_$ac_safe=no"
10821 fi
10822 rm -f conftest*
10823 fi
10824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10825 echo "$ac_t""yes" 1>&6
10826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10827 cat >> confdefs.h <<EOF
10828 #define $ac_tr_hdr 1
10829 EOF
10830
10831 else
10832 echo "$ac_t""no" 1>&6
10833 fi
10834 done
10835
10836 for ac_hdr in wchar.h
10837 do
10838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10840 echo "configure:10841: checking for $ac_hdr" >&5
10841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10842 echo $ac_n "(cached) $ac_c" 1>&6
10843 else
10844 cat > conftest.$ac_ext <<EOF
10845 #line 10846 "configure"
10846 #include "confdefs.h"
10847 #include <$ac_hdr>
10848 EOF
10849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10850 { (eval echo configure:10851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10852 if test -z "$ac_err"; then
10853 rm -rf conftest*
10854 eval "ac_cv_header_$ac_safe=yes"
10855 else
10856 echo "$ac_err" >&5
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10859 rm -rf conftest*
10860 eval "ac_cv_header_$ac_safe=no"
10861 fi
10862 rm -f conftest*
10863 fi
10864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10865 echo "$ac_t""yes" 1>&6
10866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10867 cat >> confdefs.h <<EOF
10868 #define $ac_tr_hdr 1
10869 EOF
10870
10871 else
10872 echo "$ac_t""no" 1>&6
10873 fi
10874 done
10875
10876 for ac_hdr in wcstr.h
10877 do
10878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10880 echo "configure:10881: checking for $ac_hdr" >&5
10881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10883 else
10884 cat > conftest.$ac_ext <<EOF
10885 #line 10886 "configure"
10886 #include "confdefs.h"
10887 #include <$ac_hdr>
10888 EOF
10889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10890 { (eval echo configure:10891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10892 if test -z "$ac_err"; then
10893 rm -rf conftest*
10894 eval "ac_cv_header_$ac_safe=yes"
10895 else
10896 echo "$ac_err" >&5
10897 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10899 rm -rf conftest*
10900 eval "ac_cv_header_$ac_safe=no"
10901 fi
10902 rm -f conftest*
10903 fi
10904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10905 echo "$ac_t""yes" 1>&6
10906 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10907 cat >> confdefs.h <<EOF
10908 #define $ac_tr_hdr 1
10909 EOF
10910
10911 else
10912 echo "$ac_t""no" 1>&6
10913 fi
10914 done
10915
10916 for ac_hdr in fnmatch.h
10917 do
10918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10920 echo "configure:10921: checking for $ac_hdr" >&5
10921 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10923 else
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 #include <$ac_hdr>
10928 EOF
10929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10930 { (eval echo configure:10931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10932 if test -z "$ac_err"; then
10933 rm -rf conftest*
10934 eval "ac_cv_header_$ac_safe=yes"
10935 else
10936 echo "$ac_err" >&5
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -rf conftest*
10940 eval "ac_cv_header_$ac_safe=no"
10941 fi
10942 rm -f conftest*
10943 fi
10944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10945 echo "$ac_t""yes" 1>&6
10946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10947 cat >> confdefs.h <<EOF
10948 #define $ac_tr_hdr 1
10949 EOF
10950
10951 else
10952 echo "$ac_t""no" 1>&6
10953 fi
10954 done
10955
10956 for ac_hdr in iconv.h
10957 do
10958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10960 echo "configure:10961: checking for $ac_hdr" >&5
10961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10962 echo $ac_n "(cached) $ac_c" 1>&6
10963 else
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 #include <$ac_hdr>
10968 EOF
10969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10970 { (eval echo configure:10971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10972 if test -z "$ac_err"; then
10973 rm -rf conftest*
10974 eval "ac_cv_header_$ac_safe=yes"
10975 else
10976 echo "$ac_err" >&5
10977 echo "configure: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10979 rm -rf conftest*
10980 eval "ac_cv_header_$ac_safe=no"
10981 fi
10982 rm -f conftest*
10983 fi
10984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10985 echo "$ac_t""yes" 1>&6
10986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10987 cat >> confdefs.h <<EOF
10988 #define $ac_tr_hdr 1
10989 EOF
10990
10991 else
10992 echo "$ac_t""no" 1>&6
10993 fi
10994 done
10995
10996 for ac_hdr in langinfo.h
10997 do
10998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11000 echo "configure:11001: checking for $ac_hdr" >&5
11001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11002 echo $ac_n "(cached) $ac_c" 1>&6
11003 else
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11007 #include <$ac_hdr>
11008 EOF
11009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11010 { (eval echo configure:11011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11012 if test -z "$ac_err"; then
11013 rm -rf conftest*
11014 eval "ac_cv_header_$ac_safe=yes"
11015 else
11016 echo "$ac_err" >&5
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11019 rm -rf conftest*
11020 eval "ac_cv_header_$ac_safe=no"
11021 fi
11022 rm -f conftest*
11023 fi
11024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11025 echo "$ac_t""yes" 1>&6
11026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11027 cat >> confdefs.h <<EOF
11028 #define $ac_tr_hdr 1
11029 EOF
11030
11031 else
11032 echo "$ac_t""no" 1>&6
11033 fi
11034 done
11035
11036
11037 if test "$wxUSE_GUI" = "yes"; then
11038 if test "$wxUSE_UNIX" = "yes"; then
11039 for ac_hdr in X11/XKBlib.h
11040 do
11041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11043 echo "configure:11044: checking for $ac_hdr" >&5
11044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11046 else
11047 cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11050 #include <$ac_hdr>
11051 EOF
11052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11053 { (eval echo configure:11054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11055 if test -z "$ac_err"; then
11056 rm -rf conftest*
11057 eval "ac_cv_header_$ac_safe=yes"
11058 else
11059 echo "$ac_err" >&5
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11062 rm -rf conftest*
11063 eval "ac_cv_header_$ac_safe=no"
11064 fi
11065 rm -f conftest*
11066 fi
11067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11068 echo "$ac_t""yes" 1>&6
11069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11070 cat >> confdefs.h <<EOF
11071 #define $ac_tr_hdr 1
11072 EOF
11073
11074 else
11075 echo "$ac_t""no" 1>&6
11076 fi
11077 done
11078
11079 fi
11080 fi
11081
11082
11083 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11084 echo "configure:11085: checking for ANSI C header files" >&5
11085 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11087 else
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 #include <stdlib.h>
11092 #include <stdarg.h>
11093 #include <string.h>
11094 #include <float.h>
11095 EOF
11096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11097 { (eval echo configure:11098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11099 if test -z "$ac_err"; then
11100 rm -rf conftest*
11101 ac_cv_header_stdc=yes
11102 else
11103 echo "$ac_err" >&5
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11106 rm -rf conftest*
11107 ac_cv_header_stdc=no
11108 fi
11109 rm -f conftest*
11110
11111 if test $ac_cv_header_stdc = yes; then
11112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11113 cat > conftest.$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11116 #include <string.h>
11117 EOF
11118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11119 egrep "memchr" >/dev/null 2>&1; then
11120 :
11121 else
11122 rm -rf conftest*
11123 ac_cv_header_stdc=no
11124 fi
11125 rm -f conftest*
11126
11127 fi
11128
11129 if test $ac_cv_header_stdc = yes; then
11130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11131 cat > conftest.$ac_ext <<EOF
11132 #line 11133 "configure"
11133 #include "confdefs.h"
11134 #include <stdlib.h>
11135 EOF
11136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11137 egrep "free" >/dev/null 2>&1; then
11138 :
11139 else
11140 rm -rf conftest*
11141 ac_cv_header_stdc=no
11142 fi
11143 rm -f conftest*
11144
11145 fi
11146
11147 if test $ac_cv_header_stdc = yes; then
11148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11149 if test "$cross_compiling" = yes; then
11150 :
11151 else
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 #include <ctype.h>
11156 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11157 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11159 int main () { int i; for (i = 0; i < 256; i++)
11160 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11161 exit (0); }
11162
11163 EOF
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11165 then
11166 :
11167 else
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 rm -fr conftest*
11171 ac_cv_header_stdc=no
11172 fi
11173 rm -fr conftest*
11174 fi
11175
11176 fi
11177 fi
11178
11179 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11180 if test $ac_cv_header_stdc = yes; then
11181 cat >> confdefs.h <<\EOF
11182 #define STDC_HEADERS 1
11183 EOF
11184
11185 fi
11186
11187 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11188 echo "configure:11189: checking for mode_t" >&5
11189 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
11191 else
11192 cat > conftest.$ac_ext <<EOF
11193 #line 11194 "configure"
11194 #include "confdefs.h"
11195 #include <sys/types.h>
11196 #if STDC_HEADERS
11197 #include <stdlib.h>
11198 #include <stddef.h>
11199 #endif
11200 EOF
11201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11202 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11203 rm -rf conftest*
11204 ac_cv_type_mode_t=yes
11205 else
11206 rm -rf conftest*
11207 ac_cv_type_mode_t=no
11208 fi
11209 rm -f conftest*
11210
11211 fi
11212 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11213 if test $ac_cv_type_mode_t = no; then
11214 cat >> confdefs.h <<\EOF
11215 #define mode_t int
11216 EOF
11217
11218 fi
11219
11220 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11221 echo "configure:11222: checking for off_t" >&5
11222 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11223 echo $ac_n "(cached) $ac_c" 1>&6
11224 else
11225 cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11228 #include <sys/types.h>
11229 #if STDC_HEADERS
11230 #include <stdlib.h>
11231 #include <stddef.h>
11232 #endif
11233 EOF
11234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11236 rm -rf conftest*
11237 ac_cv_type_off_t=yes
11238 else
11239 rm -rf conftest*
11240 ac_cv_type_off_t=no
11241 fi
11242 rm -f conftest*
11243
11244 fi
11245 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11246 if test $ac_cv_type_off_t = no; then
11247 cat >> confdefs.h <<\EOF
11248 #define off_t long
11249 EOF
11250
11251 fi
11252
11253 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11254 echo "configure:11255: checking for pid_t" >&5
11255 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11256 echo $ac_n "(cached) $ac_c" 1>&6
11257 else
11258 cat > conftest.$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11261 #include <sys/types.h>
11262 #if STDC_HEADERS
11263 #include <stdlib.h>
11264 #include <stddef.h>
11265 #endif
11266 EOF
11267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11268 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11269 rm -rf conftest*
11270 ac_cv_type_pid_t=yes
11271 else
11272 rm -rf conftest*
11273 ac_cv_type_pid_t=no
11274 fi
11275 rm -f conftest*
11276
11277 fi
11278 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11279 if test $ac_cv_type_pid_t = no; then
11280 cat >> confdefs.h <<\EOF
11281 #define pid_t int
11282 EOF
11283
11284 fi
11285
11286 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11287 echo "configure:11288: checking for size_t" >&5
11288 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11290 else
11291 cat > conftest.$ac_ext <<EOF
11292 #line 11293 "configure"
11293 #include "confdefs.h"
11294 #include <sys/types.h>
11295 #if STDC_HEADERS
11296 #include <stdlib.h>
11297 #include <stddef.h>
11298 #endif
11299 EOF
11300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11301 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11302 rm -rf conftest*
11303 ac_cv_type_size_t=yes
11304 else
11305 rm -rf conftest*
11306 ac_cv_type_size_t=no
11307 fi
11308 rm -f conftest*
11309
11310 fi
11311 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11312 if test $ac_cv_type_size_t = no; then
11313 cat >> confdefs.h <<\EOF
11314 #define size_t unsigned
11315 EOF
11316
11317 fi
11318
11319 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11320 echo "configure:11321: checking for uid_t in sys/types.h" >&5
11321 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+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 #include <sys/types.h>
11328 EOF
11329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11330 egrep "uid_t" >/dev/null 2>&1; then
11331 rm -rf conftest*
11332 ac_cv_type_uid_t=yes
11333 else
11334 rm -rf conftest*
11335 ac_cv_type_uid_t=no
11336 fi
11337 rm -f conftest*
11338
11339 fi
11340
11341 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11342 if test $ac_cv_type_uid_t = no; then
11343 cat >> confdefs.h <<\EOF
11344 #define uid_t int
11345 EOF
11346
11347 cat >> confdefs.h <<\EOF
11348 #define gid_t int
11349 EOF
11350
11351 fi
11352
11353
11354 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11355 echo "configure:11356: checking for wchar_t" >&5
11356 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11358 else
11359
11360 cat > conftest.$ac_ext <<EOF
11361 #line 11362 "configure"
11362 #include "confdefs.h"
11363 #include <wchar.h>
11364 int main() {
11365
11366 wchar_t wc, *ws;
11367 wc = L'a';
11368 ws = L"Hello, world!";
11369
11370 ; return 0; }
11371 EOF
11372 if { (eval echo configure:11373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11373 rm -rf conftest*
11374 wx_cv_type_wchar_t=yes
11375 else
11376 echo "configure: failed program was:" >&5
11377 cat conftest.$ac_ext >&5
11378 rm -rf conftest*
11379 cat > conftest.$ac_ext <<EOF
11380 #line 11381 "configure"
11381 #include "confdefs.h"
11382 #include <stdlib.h>
11383 int main() {
11384
11385 wchar_t wc, *ws;
11386 wc = L'a';
11387 ws = L"Hello, world!";
11388
11389 ; return 0; }
11390 EOF
11391 if { (eval echo configure:11392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11392 rm -rf conftest*
11393 wx_cv_type_wchar_t=yes
11394 else
11395 echo "configure: failed program was:" >&5
11396 cat conftest.$ac_ext >&5
11397 rm -rf conftest*
11398 wx_cv_type_wchar_t=no
11399 fi
11400 rm -f conftest*
11401
11402 fi
11403 rm -f conftest*
11404
11405 fi
11406
11407 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11408
11409 if test "$wx_cv_type_wchar_t" = "yes"; then
11410 cat >> confdefs.h <<\EOF
11411 #define wxUSE_WCHAR_T 1
11412 EOF
11413
11414 fi
11415
11416
11417 ac_ext=C
11418 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11419 ac_cpp='$CXXCPP $CPPFLAGS'
11420 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11421 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11422 cross_compiling=$ac_cv_prog_cxx_cross
11423
11424 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11425 echo "configure:11426: checking if size_t is unsigned int" >&5
11426 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11427 echo $ac_n "(cached) $ac_c" 1>&6
11428 else
11429 cat > conftest.$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11432 #include <stddef.h>
11433 int main() {
11434
11435 return 0; }
11436
11437 struct Foo { void foo(size_t); void foo(unsigned int); };
11438
11439 int bar() {
11440
11441 ; return 0; }
11442 EOF
11443 if { (eval echo configure:11444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11444 rm -rf conftest*
11445 wx_cv_size_t_is_uint=no
11446 else
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 rm -rf conftest*
11450 wx_cv_size_t_is_uint=yes
11451
11452 fi
11453 rm -f conftest*
11454
11455 fi
11456
11457 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11458
11459 if test "$wx_cv_size_t_is_uint" = "yes"; then
11460 cat >> confdefs.h <<\EOF
11461 #define wxSIZE_T_IS_UINT 1
11462 EOF
11463
11464 else
11465 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11466 echo "configure:11467: checking if size_t is unsigned long" >&5
11467 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11468 echo $ac_n "(cached) $ac_c" 1>&6
11469 else
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11473 #include <stddef.h>
11474 int main() {
11475
11476 return 0; }
11477
11478 struct Foo { void foo(size_t); void foo(unsigned long); };
11479
11480 int bar() {
11481
11482 ; return 0; }
11483 EOF
11484 if { (eval echo configure:11485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11485 rm -rf conftest*
11486 wx_cv_size_t_is_ulong=no
11487 else
11488 echo "configure: failed program was:" >&5
11489 cat conftest.$ac_ext >&5
11490 rm -rf conftest*
11491 wx_cv_size_t_is_ulong=yes
11492
11493 fi
11494 rm -f conftest*
11495
11496 fi
11497
11498 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11499
11500 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11501 cat >> confdefs.h <<\EOF
11502 #define wxSIZE_T_IS_ULONG 1
11503 EOF
11504
11505 fi
11506 fi
11507
11508 ac_ext=c
11509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11510 ac_cpp='$CPP $CPPFLAGS'
11511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11513 cross_compiling=$ac_cv_prog_cc_cross
11514
11515
11516
11517 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11518 echo "configure:11519: checking for pw_gecos in struct passwd" >&5
11519 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11520 echo $ac_n "(cached) $ac_c" 1>&6
11521 else
11522
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11526 #include <pwd.h>
11527 int main() {
11528
11529 char *p;
11530 struct passwd *pw;
11531 p = pw->pw_gecos;
11532
11533 ; return 0; }
11534 EOF
11535 if { (eval echo configure:11536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11536 rm -rf conftest*
11537
11538 wx_cv_struct_pw_gecos=yes
11539
11540 else
11541 echo "configure: failed program was:" >&5
11542 cat conftest.$ac_ext >&5
11543 rm -rf conftest*
11544
11545 wx_cv_struct_pw_gecos=no
11546
11547
11548 fi
11549 rm -f conftest*
11550
11551
11552 fi
11553
11554 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11555
11556 if test "$wx_cv_struct_pw_gecos" = "yes"; then
11557 cat >> confdefs.h <<\EOF
11558 #define HAVE_PW_GECOS 1
11559 EOF
11560
11561 fi
11562
11563
11564 echo $ac_n "checking for working const""... $ac_c" 1>&6
11565 echo "configure:11566: checking for working const" >&5
11566 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11567 echo $ac_n "(cached) $ac_c" 1>&6
11568 else
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11571 "configure"
11571 #include "confdefs.h"
11572
11573 int main() {
11574
11575 /* Ultrix mips cc rejects this. */
11576 typedef int charset[2]; const charset x;
11577 /* SunOS 4.1.1 cc rejects this. */
11578 char const *const *ccp;
11579 char **p;
11580 /* NEC SVR4.0.2 mips cc rejects this. */
11581 struct point {int x, y;};
11582 static struct point const zero = {0,0};
11583 /* AIX XL C 1.02.0.0 rejects this.
11584 It does not let you subtract one const X* pointer from another in an arm
11585 of an if-expression whose if-part is not a constant expression */
11586 const char *g = "string";
11587 ccp = &g + (g ? g-g : 0);
11588 /* HPUX 7.0 cc rejects these. */
11589 ++ccp;
11590 p = (char**) ccp;
11591 ccp = (char const *const *) p;
11592 { /* SCO 3.2v4 cc rejects this. */
11593 char *t;
11594 char const *s = 0 ? (char *) 0 : (char const *) 0;
11595
11596 *t++ = 0;
11597 }
11598 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11599 int x[] = {25, 17};
11600 const int *foo = &x[0];
11601 ++foo;
11602 }
11603 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11604 typedef const int *iptr;
11605 iptr p = 0;
11606 ++p;
11607 }
11608 { /* AIX XL C 1.02.0.0 rejects this saying
11609 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11610 struct s { int j; const int *ap[3]; };
11611 struct s *b; b->j = 5;
11612 }
11613 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11614 const int foo = 10;
11615 }
11616
11617 ; return 0; }
11618 EOF
11619 if { (eval echo configure:11620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11620 rm -rf conftest*
11621 ac_cv_c_const=yes
11622 else
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11625 rm -rf conftest*
11626 ac_cv_c_const=no
11627 fi
11628 rm -f conftest*
11629 fi
11630
11631 echo "$ac_t""$ac_cv_c_const" 1>&6
11632 if test $ac_cv_c_const = no; then
11633 cat >> confdefs.h <<\EOF
11634 #define const
11635 EOF
11636
11637 fi
11638
11639 echo $ac_n "checking for inline""... $ac_c" 1>&6
11640 echo "configure:11641: checking for inline" >&5
11641 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
11643 else
11644 ac_cv_c_inline=no
11645 for ac_kw in inline __inline__ __inline; do
11646 cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11649
11650 int main() {
11651 } $ac_kw foo() {
11652 ; return 0; }
11653 EOF
11654 if { (eval echo configure:11655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11655 rm -rf conftest*
11656 ac_cv_c_inline=$ac_kw; break
11657 else
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11660 fi
11661 rm -f conftest*
11662 done
11663
11664 fi
11665
11666 echo "$ac_t""$ac_cv_c_inline" 1>&6
11667 case "$ac_cv_c_inline" in
11668 inline | yes) ;;
11669 no) cat >> confdefs.h <<\EOF
11670 #define inline
11671 EOF
11672 ;;
11673 *) cat >> confdefs.h <<EOF
11674 #define inline $ac_cv_c_inline
11675 EOF
11676 ;;
11677 esac
11678
11679
11680 echo $ac_n "checking size of char""... $ac_c" 1>&6
11681 echo "configure:11682: checking size of char" >&5
11682 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11684 else
11685 if test "$cross_compiling" = yes; then
11686 ac_cv_sizeof_char=1
11687 else
11688 cat > conftest.$ac_ext <<EOF
11689 #line 11690 "configure"
11690 #include "confdefs.h"
11691 #include <stdio.h>
11692 main()
11693 {
11694 FILE *f=fopen("conftestval", "w");
11695 if (!f) exit(1);
11696 fprintf(f, "%d\n", sizeof(char));
11697 exit(0);
11698 }
11699 EOF
11700 if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11701 then
11702 ac_cv_sizeof_char=`cat conftestval`
11703 else
11704 echo "configure: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11706 rm -fr conftest*
11707 ac_cv_sizeof_char=0
11708 fi
11709 rm -fr conftest*
11710 fi
11711
11712 fi
11713 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11714 cat >> confdefs.h <<EOF
11715 #define SIZEOF_CHAR $ac_cv_sizeof_char
11716 EOF
11717
11718
11719 echo $ac_n "checking size of short""... $ac_c" 1>&6
11720 echo "configure:11721: checking size of short" >&5
11721 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11722 echo $ac_n "(cached) $ac_c" 1>&6
11723 else
11724 if test "$cross_compiling" = yes; then
11725 ac_cv_sizeof_short=2
11726 else
11727 cat > conftest.$ac_ext <<EOF
11728 #line 11729 "configure"
11729 #include "confdefs.h"
11730 #include <stdio.h>
11731 main()
11732 {
11733 FILE *f=fopen("conftestval", "w");
11734 if (!f) exit(1);
11735 fprintf(f, "%d\n", sizeof(short));
11736 exit(0);
11737 }
11738 EOF
11739 if { (eval echo configure:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11740 then
11741 ac_cv_sizeof_short=`cat conftestval`
11742 else
11743 echo "configure: failed program was:" >&5
11744 cat conftest.$ac_ext >&5
11745 rm -fr conftest*
11746 ac_cv_sizeof_short=0
11747 fi
11748 rm -fr conftest*
11749 fi
11750
11751 fi
11752 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11753 cat >> confdefs.h <<EOF
11754 #define SIZEOF_SHORT $ac_cv_sizeof_short
11755 EOF
11756
11757
11758 echo $ac_n "checking size of int *""... $ac_c" 1>&6
11759 echo "configure:11760: checking size of int *" >&5
11760 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11761 echo $ac_n "(cached) $ac_c" 1>&6
11762 else
11763 if test "$cross_compiling" = yes; then
11764 ac_cv_sizeof_int_p=4
11765 else
11766 cat > conftest.$ac_ext <<EOF
11767 #line 11768 "configure"
11768 #include "confdefs.h"
11769 #include <stdio.h>
11770 main()
11771 {
11772 FILE *f=fopen("conftestval", "w");
11773 if (!f) exit(1);
11774 fprintf(f, "%d\n", sizeof(int *));
11775 exit(0);
11776 }
11777 EOF
11778 if { (eval echo configure:11779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11779 then
11780 ac_cv_sizeof_int_p=`cat conftestval`
11781 else
11782 echo "configure: failed program was:" >&5
11783 cat conftest.$ac_ext >&5
11784 rm -fr conftest*
11785 ac_cv_sizeof_int_p=0
11786 fi
11787 rm -fr conftest*
11788 fi
11789
11790 fi
11791 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11792 cat >> confdefs.h <<EOF
11793 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
11794 EOF
11795
11796
11797 echo $ac_n "checking size of int""... $ac_c" 1>&6
11798 echo "configure:11799: checking size of int" >&5
11799 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
11801 else
11802 if test "$cross_compiling" = yes; then
11803 ac_cv_sizeof_int=4
11804 else
11805 cat > conftest.$ac_ext <<EOF
11806 #line 11807 "configure"
11807 #include "confdefs.h"
11808 #include <stdio.h>
11809 main()
11810 {
11811 FILE *f=fopen("conftestval", "w");
11812 if (!f) exit(1);
11813 fprintf(f, "%d\n", sizeof(int));
11814 exit(0);
11815 }
11816 EOF
11817 if { (eval echo configure:11818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11818 then
11819 ac_cv_sizeof_int=`cat conftestval`
11820 else
11821 echo "configure: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11823 rm -fr conftest*
11824 ac_cv_sizeof_int=0
11825 fi
11826 rm -fr conftest*
11827 fi
11828
11829 fi
11830 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11831 cat >> confdefs.h <<EOF
11832 #define SIZEOF_INT $ac_cv_sizeof_int
11833 EOF
11834
11835
11836 echo $ac_n "checking size of long""... $ac_c" 1>&6
11837 echo "configure:11838: checking size of long" >&5
11838 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11840 else
11841 if test "$cross_compiling" = yes; then
11842 ac_cv_sizeof_long=4
11843 else
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 #include <stdio.h>
11848 main()
11849 {
11850 FILE *f=fopen("conftestval", "w");
11851 if (!f) exit(1);
11852 fprintf(f, "%d\n", sizeof(long));
11853 exit(0);
11854 }
11855 EOF
11856 if { (eval echo configure:11857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11857 then
11858 ac_cv_sizeof_long=`cat conftestval`
11859 else
11860 echo "configure: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 rm -fr conftest*
11863 ac_cv_sizeof_long=0
11864 fi
11865 rm -fr conftest*
11866 fi
11867
11868 fi
11869 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11870 cat >> confdefs.h <<EOF
11871 #define SIZEOF_LONG $ac_cv_sizeof_long
11872 EOF
11873
11874
11875 echo $ac_n "checking size of long long""... $ac_c" 1>&6
11876 echo "configure:11877: checking size of long long" >&5
11877 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11878 echo $ac_n "(cached) $ac_c" 1>&6
11879 else
11880 if test "$cross_compiling" = yes; then
11881 ac_cv_sizeof_long_long=0
11882 else
11883 cat > conftest.$ac_ext <<EOF
11884 #line 11885 "configure"
11885 #include "confdefs.h"
11886 #include <stdio.h>
11887 main()
11888 {
11889 FILE *f=fopen("conftestval", "w");
11890 if (!f) exit(1);
11891 fprintf(f, "%d\n", sizeof(long long));
11892 exit(0);
11893 }
11894 EOF
11895 if { (eval echo configure:11896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11896 then
11897 ac_cv_sizeof_long_long=`cat conftestval`
11898 else
11899 echo "configure: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11901 rm -fr conftest*
11902 ac_cv_sizeof_long_long=0
11903 fi
11904 rm -fr conftest*
11905 fi
11906
11907 fi
11908 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11909 cat >> confdefs.h <<EOF
11910 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11911 EOF
11912
11913
11914
11915 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
11916 echo "configure:11917: checking size of wchar_t" >&5
11917 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11918 echo $ac_n "(cached) $ac_c" 1>&6
11919 else
11920
11921 if test "$cross_compiling" = yes; then
11922 wx_cv_sizeof_wchar_t=4
11923
11924 else
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11928
11929 #ifdef HAVE_WCHAR_H
11930 # include <wchar.h>
11931 #endif
11932 #ifdef HAVE_STDLIB_H
11933 # include <stdlib.h>
11934 #endif
11935 #include <stdio.h>
11936 int main()
11937 {
11938 FILE *f=fopen("conftestval", "w");
11939 if (!f) exit(1);
11940 fprintf(f, "%i", sizeof(wchar_t));
11941 exit(0);
11942 }
11943
11944 EOF
11945 if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11946 then
11947 wx_cv_sizeof_wchar_t=`cat conftestval`
11948 else
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11951 rm -fr conftest*
11952 wx_cv_sizeof_wchar_t=0
11953 fi
11954 rm -fr conftest*
11955 fi
11956
11957
11958 fi
11959
11960 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11961
11962 cat >> confdefs.h <<EOF
11963 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
11964 EOF
11965
11966
11967 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11968 echo "configure:11969: checking whether byte ordering is bigendian" >&5
11969 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11970 echo $ac_n "(cached) $ac_c" 1>&6
11971 else
11972 ac_cv_c_bigendian=unknown
11973 # See if sys/param.h defines the BYTE_ORDER macro.
11974 cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11977 #include <sys/types.h>
11978 #include <sys/param.h>
11979 int main() {
11980
11981 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11982 bogus endian macros
11983 #endif
11984 ; return 0; }
11985 EOF
11986 if { (eval echo configure:11987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11987 rm -rf conftest*
11988 # It does; now see whether it defined to BIG_ENDIAN or not.
11989 cat > conftest.$ac_ext <<EOF
11990 #line 11991 "configure"
11991 #include "confdefs.h"
11992 #include <sys/types.h>
11993 #include <sys/param.h>
11994 int main() {
11995
11996 #if BYTE_ORDER != BIG_ENDIAN
11997 not big endian
11998 #endif
11999 ; return 0; }
12000 EOF
12001 if { (eval echo configure:12002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12002 rm -rf conftest*
12003 ac_cv_c_bigendian=yes
12004 else
12005 echo "configure: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12007 rm -rf conftest*
12008 ac_cv_c_bigendian=no
12009 fi
12010 rm -f conftest*
12011 else
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 fi
12015 rm -f conftest*
12016 if test $ac_cv_c_bigendian = unknown; then
12017 if test "$cross_compiling" = yes; then
12018 ac_cv_c_bigendian=unknown
12019 else
12020 cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure"
12022 #include "confdefs.h"
12023 main () {
12024 /* Are we little or big endian? From Harbison&Steele. */
12025 union
12026 {
12027 long l;
12028 char c[sizeof (long)];
12029 } u;
12030 u.l = 1;
12031 exit (u.c[sizeof (long) - 1] == 1);
12032 }
12033 EOF
12034 if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12035 then
12036 ac_cv_c_bigendian=no
12037 else
12038 echo "configure: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12040 rm -fr conftest*
12041 ac_cv_c_bigendian=yes
12042 fi
12043 rm -fr conftest*
12044 fi
12045
12046 fi
12047 fi
12048
12049 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12050 if test $ac_cv_c_bigendian = unknown; then
12051 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
12052 fi
12053 if test $ac_cv_c_bigendian = yes; then
12054 cat >> confdefs.h <<\EOF
12055 #define WORDS_BIGENDIAN 1
12056 EOF
12057
12058 fi
12059
12060
12061
12062 if test "$cross_compiling" = "yes"; then
12063 cat >> confdefs.h <<\EOF
12064 #define wxUSE_IOSTREAMH 1
12065 EOF
12066
12067 else
12068
12069 ac_ext=C
12070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12071 ac_cpp='$CXXCPP $CPPFLAGS'
12072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12074 cross_compiling=$ac_cv_prog_cxx_cross
12075
12076
12077 for ac_hdr in iostream
12078 do
12079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12081 echo "configure:12082: checking for $ac_hdr" >&5
12082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12083 echo $ac_n "(cached) $ac_c" 1>&6
12084 else
12085 cat > conftest.$ac_ext <<EOF
12086 #line 12087 "configure"
12087 #include "confdefs.h"
12088 #include <$ac_hdr>
12089 EOF
12090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12091 { (eval echo configure:12092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12093 if test -z "$ac_err"; then
12094 rm -rf conftest*
12095 eval "ac_cv_header_$ac_safe=yes"
12096 else
12097 echo "$ac_err" >&5
12098 echo "configure: failed program was:" >&5
12099 cat conftest.$ac_ext >&5
12100 rm -rf conftest*
12101 eval "ac_cv_header_$ac_safe=no"
12102 fi
12103 rm -f conftest*
12104 fi
12105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12106 echo "$ac_t""yes" 1>&6
12107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12108 cat >> confdefs.h <<EOF
12109 #define $ac_tr_hdr 1
12110 EOF
12111
12112 else
12113 echo "$ac_t""no" 1>&6
12114 fi
12115 done
12116
12117
12118 if test "$ac_cv_header_iostream" = "yes" ; then
12119 :
12120 else
12121 cat >> confdefs.h <<\EOF
12122 #define wxUSE_IOSTREAMH 1
12123 EOF
12124
12125 fi
12126
12127 ac_ext=c
12128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12129 ac_cpp='$CPP $CPPFLAGS'
12130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12132 cross_compiling=$ac_cv_prog_cc_cross
12133
12134 fi
12135
12136
12137
12138 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12139 echo "configure:12140: checking if C++ compiler supports bool" >&5
12140 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12141 echo $ac_n "(cached) $ac_c" 1>&6
12142 else
12143
12144
12145 ac_ext=C
12146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12147 ac_cpp='$CXXCPP $CPPFLAGS'
12148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12150 cross_compiling=$ac_cv_prog_cxx_cross
12151
12152
12153 cat > conftest.$ac_ext <<EOF
12154 #line 12155 "configure"
12155 #include "confdefs.h"
12156
12157
12158 int main() {
12159
12160 bool b = true;
12161
12162 return 0;
12163
12164 ; return 0; }
12165 EOF
12166 if { (eval echo configure:12167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12167 rm -rf conftest*
12168
12169 wx_cv_cpp_bool=yes
12170
12171 else
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12174 rm -rf conftest*
12175
12176 wx_cv_cpp_bool=no
12177
12178
12179 fi
12180 rm -f conftest*
12181
12182 ac_ext=c
12183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12184 ac_cpp='$CPP $CPPFLAGS'
12185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12187 cross_compiling=$ac_cv_prog_cc_cross
12188
12189
12190 fi
12191
12192 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12193
12194 if test "$wx_cv_cpp_bool" = "yes"; then
12195 cat >> confdefs.h <<\EOF
12196 #define HAVE_BOOL 1
12197 EOF
12198
12199 fi
12200
12201
12202
12203 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12204 echo "configure:12205: checking for wcslen in -lc" >&5
12205 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208 else
12209 ac_save_LIBS="$LIBS"
12210 LIBS="-lc $LIBS"
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 /* Override any gcc2 internal prototype to avoid an error. */
12215 /* We use char because int might match the return type of a gcc2
12216 builtin and then its argument prototype would still apply. */
12217 char wcslen();
12218
12219 int main() {
12220 wcslen()
12221 ; return 0; }
12222 EOF
12223 if { (eval echo configure:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12224 rm -rf conftest*
12225 eval "ac_cv_lib_$ac_lib_var=yes"
12226 else
12227 echo "configure: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12229 rm -rf conftest*
12230 eval "ac_cv_lib_$ac_lib_var=no"
12231 fi
12232 rm -f conftest*
12233 LIBS="$ac_save_LIBS"
12234
12235 fi
12236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12237 echo "$ac_t""yes" 1>&6
12238
12239 cat >> confdefs.h <<\EOF
12240 #define HAVE_WCSLEN 1
12241 EOF
12242
12243 WCHAR_LINK=""
12244
12245 else
12246 echo "$ac_t""no" 1>&6
12247
12248 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12249 echo "configure:12250: checking for wcslen in -lw" >&5
12250 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12252 echo $ac_n "(cached) $ac_c" 1>&6
12253 else
12254 ac_save_LIBS="$LIBS"
12255 LIBS="-lw $LIBS"
12256 cat > conftest.$ac_ext <<EOF
12257 #line 12258 "configure"
12258 #include "confdefs.h"
12259 /* Override any gcc2 internal prototype to avoid an error. */
12260 /* We use char because int might match the return type of a gcc2
12261 builtin and then its argument prototype would still apply. */
12262 char wcslen();
12263
12264 int main() {
12265 wcslen()
12266 ; return 0; }
12267 EOF
12268 if { (eval echo configure:12269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12269 rm -rf conftest*
12270 eval "ac_cv_lib_$ac_lib_var=yes"
12271 else
12272 echo "configure: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12274 rm -rf conftest*
12275 eval "ac_cv_lib_$ac_lib_var=no"
12276 fi
12277 rm -f conftest*
12278 LIBS="$ac_save_LIBS"
12279
12280 fi
12281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12282 echo "$ac_t""yes" 1>&6
12283
12284 cat >> confdefs.h <<\EOF
12285 #define HAVE_WCSLEN 1
12286 EOF
12287
12288 WCHAR_LINK="-lw"
12289
12290 else
12291 echo "$ac_t""no" 1>&6
12292 fi
12293
12294
12295 fi
12296
12297
12298 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12299 echo "configure:12300: checking for vprintf" >&5
12300 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12301 echo $ac_n "(cached) $ac_c" 1>&6
12302 else
12303 cat > conftest.$ac_ext <<EOF
12304 #line 12305 "configure"
12305 #include "confdefs.h"
12306 /* System header to define __stub macros and hopefully few prototypes,
12307 which can conflict with char vprintf(); below. */
12308 #include <assert.h>
12309 /* Override any gcc2 internal prototype to avoid an error. */
12310 /* We use char because int might match the return type of a gcc2
12311 builtin and then its argument prototype would still apply. */
12312 char vprintf();
12313
12314 int main() {
12315
12316 /* The GNU C library defines this for functions which it implements
12317 to always fail with ENOSYS. Some functions are actually named
12318 something starting with __ and the normal name is an alias. */
12319 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12320 choke me
12321 #else
12322 vprintf();
12323 #endif
12324
12325 ; return 0; }
12326 EOF
12327 if { (eval echo configure:12328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12328 rm -rf conftest*
12329 eval "ac_cv_func_vprintf=yes"
12330 else
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 rm -rf conftest*
12334 eval "ac_cv_func_vprintf=no"
12335 fi
12336 rm -f conftest*
12337 fi
12338
12339 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12340 echo "$ac_t""yes" 1>&6
12341 cat >> confdefs.h <<\EOF
12342 #define HAVE_VPRINTF 1
12343 EOF
12344
12345 else
12346 echo "$ac_t""no" 1>&6
12347 fi
12348
12349 if test "$ac_cv_func_vprintf" != yes; then
12350 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12351 echo "configure:12352: checking for _doprnt" >&5
12352 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
12354 else
12355 cat > conftest.$ac_ext <<EOF
12356 #line 12357 "configure"
12357 #include "confdefs.h"
12358 /* System header to define __stub macros and hopefully few prototypes,
12359 which can conflict with char _doprnt(); below. */
12360 #include <assert.h>
12361 /* Override any gcc2 internal prototype to avoid an error. */
12362 /* We use char because int might match the return type of a gcc2
12363 builtin and then its argument prototype would still apply. */
12364 char _doprnt();
12365
12366 int main() {
12367
12368 /* The GNU C library defines this for functions which it implements
12369 to always fail with ENOSYS. Some functions are actually named
12370 something starting with __ and the normal name is an alias. */
12371 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12372 choke me
12373 #else
12374 _doprnt();
12375 #endif
12376
12377 ; return 0; }
12378 EOF
12379 if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12380 rm -rf conftest*
12381 eval "ac_cv_func__doprnt=yes"
12382 else
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 rm -rf conftest*
12386 eval "ac_cv_func__doprnt=no"
12387 fi
12388 rm -f conftest*
12389 fi
12390
12391 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12392 echo "$ac_t""yes" 1>&6
12393 cat >> confdefs.h <<\EOF
12394 #define HAVE_DOPRNT 1
12395 EOF
12396
12397 else
12398 echo "$ac_t""no" 1>&6
12399 fi
12400
12401 fi
12402
12403
12404
12405
12406
12407
12408
12409 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12410 echo "configure:12411: checking for vsnprintf" >&5
12411 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12412 echo $ac_n "(cached) $ac_c" 1>&6
12413 else
12414
12415 cat > conftest.$ac_ext <<EOF
12416 #line 12417 "configure"
12417 #include "confdefs.h"
12418
12419 #include <stdio.h>
12420 #include <stdarg.h>
12421
12422 int main() {
12423
12424 int wx_test_vsnprintf(const char *, ...);
12425
12426 wx_test_vsnprintf("%s");
12427 return 0;
12428 }
12429
12430 int wx_test_vsnprintf(const char *fmt, ...)
12431 {
12432 char *s;
12433
12434 va_list argp;
12435 va_start(argp, fmt);
12436 vsnprintf(s, 42, fmt, argp);
12437 va_end(argp);
12438
12439 ; return 0; }
12440 EOF
12441 if { (eval echo configure:12442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12442 rm -rf conftest*
12443
12444 wx_cv_func_vsnprintf=yes
12445
12446 else
12447 echo "configure: failed program was:" >&5
12448 cat conftest.$ac_ext >&5
12449 rm -rf conftest*
12450
12451 cat > conftest.$ac_ext <<EOF
12452 #line 12453 "configure"
12453 #include "confdefs.h"
12454
12455 #include <stdio.h>
12456 #include <stdarg.h>
12457
12458 int main() {
12459
12460 int wx_test_vsnprintf(const char *, ...);
12461
12462 wx_test_vsnprintf("%s");
12463 return 0;
12464 }
12465
12466 int wx_test_vsnprintf(const char *fmt, ...)
12467 {
12468 char *s;
12469
12470 va_list argp;
12471 va_start(argp, fmt);
12472 _vsnprintf(s, 42, fmt, argp);
12473 va_end(argp);
12474
12475 ; return 0; }
12476 EOF
12477 if { (eval echo configure:12478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12478 rm -rf conftest*
12479
12480 wx_cv_func_vsnprintf=yes
12481
12482 else
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 rm -rf conftest*
12486
12487 wx_cv_func_vsnprintf=no
12488
12489 fi
12490 rm -f conftest*
12491
12492 fi
12493 rm -f conftest*
12494
12495 fi
12496
12497 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12498
12499 if test "$wx_cv_func_vsnprintf" = yes; then
12500 cat >> confdefs.h <<\EOF
12501 #define HAVE_VSNPRINTF 1
12502 EOF
12503
12504 else
12505 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12506 fi
12507
12508 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12509 echo "configure:12510: checking for vsscanf" >&5
12510 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12511 echo $ac_n "(cached) $ac_c" 1>&6
12512 else
12513
12514 cat > conftest.$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12517
12518 #include <stdio.h>
12519 #include <stdarg.h>
12520
12521 int main() {
12522
12523 int wx_test_vsscanf(const char *, ...);
12524
12525 wx_test_vsscanf("%d");
12526 return 0;
12527 }
12528
12529 int wx_test_vsscanf(const char *fmt, ...)
12530 {
12531 va_list argp;
12532 va_start(argp, fmt);
12533 vsscanf("42", fmt, argp);
12534 va_end(argp);
12535
12536 ; return 0; }
12537 EOF
12538 if { (eval echo configure:12539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12539 rm -rf conftest*
12540
12541 wx_cv_func_vsscanf=yes
12542
12543 else
12544 echo "configure: failed program was:" >&5
12545 cat conftest.$ac_ext >&5
12546 rm -rf conftest*
12547
12548 wx_cv_func_vsscanf=no
12549
12550 fi
12551 rm -f conftest*
12552
12553 fi
12554
12555 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12556
12557 if test "$wx_cv_func_vsscanf" = yes; then
12558 cat >> confdefs.h <<\EOF
12559 #define HAVE_VSSCANF 1
12560 EOF
12561
12562 fi
12563
12564 if test "$TOOLKIT" != "MSW"; then
12565
12566
12567
12568 ac_ext=C
12569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12570 ac_cpp='$CXXCPP $CPPFLAGS'
12571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12573 cross_compiling=$ac_cv_prog_cxx_cross
12574
12575 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12576 echo "configure:12577: checking if iconv() takes char**" >&5
12577 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12578 echo $ac_n "(cached) $ac_c" 1>&6
12579 else
12580
12581 cat > conftest.$ac_ext <<EOF
12582 #line 12583 "configure"
12583 #include "confdefs.h"
12584 #include <iconv.h>
12585 int main() {
12586
12587 char **inbuf, **outbuf;
12588 iconv_t cd;
12589 size_t insz, outsz;
12590 iconv(cd, inbuf, &insz, outbuf, &outsz);
12591
12592 ; return 0; }
12593 EOF
12594 if { (eval echo configure:12595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12595 rm -rf conftest*
12596 wx_cv_iconv_takes_char=yes
12597 else
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12600 rm -rf conftest*
12601 wx_cv_iconv_takes_char=no
12602 fi
12603 rm -f conftest*
12604
12605 fi
12606
12607 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12608 ac_ext=c
12609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12610 ac_cpp='$CPP $CPPFLAGS'
12611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12613 cross_compiling=$ac_cv_prog_cc_cross
12614
12615 if test "$wx_cv_iconv_takes_char" = yes ; then
12616 cat >> confdefs.h <<\EOF
12617 #define WX_ICONV_TAKES_CHAR 1
12618 EOF
12619
12620 fi
12621
12622
12623 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12624 for ac_func in sigaction
12625 do
12626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12627 echo "configure:12628: checking for $ac_func" >&5
12628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12629 echo $ac_n "(cached) $ac_c" 1>&6
12630 else
12631 cat > conftest.$ac_ext <<EOF
12632 #line 12633 "configure"
12633 #include "confdefs.h"
12634 /* System header to define __stub macros and hopefully few prototypes,
12635 which can conflict with char $ac_func(); below. */
12636 #include <assert.h>
12637 /* Override any gcc2 internal prototype to avoid an error. */
12638 /* We use char because int might match the return type of a gcc2
12639 builtin and then its argument prototype would still apply. */
12640 char $ac_func();
12641
12642 int main() {
12643
12644 /* The GNU C library defines this for functions which it implements
12645 to always fail with ENOSYS. Some functions are actually named
12646 something starting with __ and the normal name is an alias. */
12647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12648 choke me
12649 #else
12650 $ac_func();
12651 #endif
12652
12653 ; return 0; }
12654 EOF
12655 if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12656 rm -rf conftest*
12657 eval "ac_cv_func_$ac_func=yes"
12658 else
12659 echo "configure: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 rm -rf conftest*
12662 eval "ac_cv_func_$ac_func=no"
12663 fi
12664 rm -f conftest*
12665 fi
12666
12667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12668 echo "$ac_t""yes" 1>&6
12669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12670 cat >> confdefs.h <<EOF
12671 #define $ac_tr_func 1
12672 EOF
12673
12674 else
12675 echo "$ac_t""no" 1>&6
12676 fi
12677 done
12678
12679
12680 if test "$ac_cv_func_sigaction" = "no"; then
12681 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
12682 wxUSE_ON_FATAL_EXCEPTION=no
12683 fi
12684
12685 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12686
12687 ac_ext=C
12688 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12689 ac_cpp='$CXXCPP $CPPFLAGS'
12690 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12691 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12692 cross_compiling=$ac_cv_prog_cxx_cross
12693
12694
12695 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
12696 echo "configure:12697: checking for sa_handler type" >&5
12697 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12698 echo $ac_n "(cached) $ac_c" 1>&6
12699 else
12700
12701 cat > conftest.$ac_ext <<EOF
12702 #line 12703 "configure"
12703 #include "confdefs.h"
12704 #include <signal.h>
12705 int main() {
12706
12707 extern void testSigHandler(int);
12708
12709 struct sigaction sa;
12710 sa.sa_handler = testSigHandler;
12711
12712 ; return 0; }
12713 EOF
12714 if { (eval echo configure:12715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12715 rm -rf conftest*
12716
12717 wx_cv_type_sa_handler=int
12718
12719 else
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12722 rm -rf conftest*
12723
12724 wx_cv_type_sa_handler=void
12725
12726 fi
12727 rm -f conftest*
12728
12729 fi
12730
12731 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
12732
12733 ac_ext=c
12734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12735 ac_cpp='$CPP $CPPFLAGS'
12736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12738 cross_compiling=$ac_cv_prog_cc_cross
12739
12740
12741 cat >> confdefs.h <<EOF
12742 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12743 EOF
12744
12745 fi
12746 fi
12747
12748 for ac_func in vfork
12749 do
12750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12751 echo "configure:12752: checking for $ac_func" >&5
12752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12753 echo $ac_n "(cached) $ac_c" 1>&6
12754 else
12755 cat > conftest.$ac_ext <<EOF
12756 #line 12757 "configure"
12757 #include "confdefs.h"
12758 /* System header to define __stub macros and hopefully few prototypes,
12759 which can conflict with char $ac_func(); below. */
12760 #include <assert.h>
12761 /* Override any gcc2 internal prototype to avoid an error. */
12762 /* We use char because int might match the return type of a gcc2
12763 builtin and then its argument prototype would still apply. */
12764 char $ac_func();
12765
12766 int main() {
12767
12768 /* The GNU C library defines this for functions which it implements
12769 to always fail with ENOSYS. Some functions are actually named
12770 something starting with __ and the normal name is an alias. */
12771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12772 choke me
12773 #else
12774 $ac_func();
12775 #endif
12776
12777 ; return 0; }
12778 EOF
12779 if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12780 rm -rf conftest*
12781 eval "ac_cv_func_$ac_func=yes"
12782 else
12783 echo "configure: failed program was:" >&5
12784 cat conftest.$ac_ext >&5
12785 rm -rf conftest*
12786 eval "ac_cv_func_$ac_func=no"
12787 fi
12788 rm -f conftest*
12789 fi
12790
12791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12792 echo "$ac_t""yes" 1>&6
12793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12794 cat >> confdefs.h <<EOF
12795 #define $ac_tr_func 1
12796 EOF
12797
12798 else
12799 echo "$ac_t""no" 1>&6
12800 fi
12801 done
12802
12803
12804 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12805 for ac_func in fcntl flock
12806 do
12807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12808 echo "configure:12809: checking for $ac_func" >&5
12809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12810 echo $ac_n "(cached) $ac_c" 1>&6
12811 else
12812 cat > conftest.$ac_ext <<EOF
12813 #line 12814 "configure"
12814 #include "confdefs.h"
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func(); below. */
12817 #include <assert.h>
12818 /* Override any gcc2 internal prototype to avoid an error. */
12819 /* We use char because int might match the return type of a gcc2
12820 builtin and then its argument prototype would still apply. */
12821 char $ac_func();
12822
12823 int main() {
12824
12825 /* The GNU C library defines this for functions which it implements
12826 to always fail with ENOSYS. Some functions are actually named
12827 something starting with __ and the normal name is an alias. */
12828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12829 choke me
12830 #else
12831 $ac_func();
12832 #endif
12833
12834 ; return 0; }
12835 EOF
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12837 rm -rf conftest*
12838 eval "ac_cv_func_$ac_func=yes"
12839 else
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12842 rm -rf conftest*
12843 eval "ac_cv_func_$ac_func=no"
12844 fi
12845 rm -f conftest*
12846 fi
12847
12848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12849 echo "$ac_t""yes" 1>&6
12850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12851 cat >> confdefs.h <<EOF
12852 #define $ac_tr_func 1
12853 EOF
12854 break
12855 else
12856 echo "$ac_t""no" 1>&6
12857 fi
12858 done
12859
12860
12861 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
12862 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
12863 wxUSE_SNGLINST_CHECKER=no
12864 fi
12865 fi
12866
12867 for ac_func in timegm
12868 do
12869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12870 echo "configure:12871: checking for $ac_func" >&5
12871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12872 echo $ac_n "(cached) $ac_c" 1>&6
12873 else
12874 cat > conftest.$ac_ext <<EOF
12875 #line 12876 "configure"
12876 #include "confdefs.h"
12877 /* System header to define __stub macros and hopefully few prototypes,
12878 which can conflict with char $ac_func(); below. */
12879 #include <assert.h>
12880 /* Override any gcc2 internal prototype to avoid an error. */
12881 /* We use char because int might match the return type of a gcc2
12882 builtin and then its argument prototype would still apply. */
12883 char $ac_func();
12884
12885 int main() {
12886
12887 /* The GNU C library defines this for functions which it implements
12888 to always fail with ENOSYS. Some functions are actually named
12889 something starting with __ and the normal name is an alias. */
12890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12891 choke me
12892 #else
12893 $ac_func();
12894 #endif
12895
12896 ; return 0; }
12897 EOF
12898 if { (eval echo configure:12899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12899 rm -rf conftest*
12900 eval "ac_cv_func_$ac_func=yes"
12901 else
12902 echo "configure: failed program was:" >&5
12903 cat conftest.$ac_ext >&5
12904 rm -rf conftest*
12905 eval "ac_cv_func_$ac_func=no"
12906 fi
12907 rm -f conftest*
12908 fi
12909
12910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12911 echo "$ac_t""yes" 1>&6
12912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12913 cat >> confdefs.h <<EOF
12914 #define $ac_tr_func 1
12915 EOF
12916
12917 else
12918 echo "$ac_t""no" 1>&6
12919 fi
12920 done
12921
12922
12923 for ac_func in putenv setenv
12924 do
12925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12926 echo "configure:12927: checking for $ac_func" >&5
12927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12928 echo $ac_n "(cached) $ac_c" 1>&6
12929 else
12930 cat > conftest.$ac_ext <<EOF
12931 #line 12932 "configure"
12932 #include "confdefs.h"
12933 /* System header to define __stub macros and hopefully few prototypes,
12934 which can conflict with char $ac_func(); below. */
12935 #include <assert.h>
12936 /* Override any gcc2 internal prototype to avoid an error. */
12937 /* We use char because int might match the return type of a gcc2
12938 builtin and then its argument prototype would still apply. */
12939 char $ac_func();
12940
12941 int main() {
12942
12943 /* The GNU C library defines this for functions which it implements
12944 to always fail with ENOSYS. Some functions are actually named
12945 something starting with __ and the normal name is an alias. */
12946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12947 choke me
12948 #else
12949 $ac_func();
12950 #endif
12951
12952 ; return 0; }
12953 EOF
12954 if { (eval echo configure:12955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12955 rm -rf conftest*
12956 eval "ac_cv_func_$ac_func=yes"
12957 else
12958 echo "configure: failed program was:" >&5
12959 cat conftest.$ac_ext >&5
12960 rm -rf conftest*
12961 eval "ac_cv_func_$ac_func=no"
12962 fi
12963 rm -f conftest*
12964 fi
12965
12966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12967 echo "$ac_t""yes" 1>&6
12968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12969 cat >> confdefs.h <<EOF
12970 #define $ac_tr_func 1
12971 EOF
12972 break
12973 else
12974 echo "$ac_t""no" 1>&6
12975 fi
12976 done
12977
12978
12979 HAVE_SOME_SLEEP_FUNC=0
12980 if test "$USE_BEOS" = 1; then
12981 cat >> confdefs.h <<\EOF
12982 #define HAVE_SLEEP 1
12983 EOF
12984
12985 HAVE_SOME_SLEEP_FUNC=1
12986 fi
12987
12988 if test "$USE_MAC" = 1; then
12989 cat >> confdefs.h <<\EOF
12990 #define HAVE_USLEEP 1
12991 EOF
12992
12993 HAVE_SOME_SLEEP_FUNC=1
12994 fi
12995
12996 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12997 POSIX4_LINK=
12998 for ac_func in nanosleep
12999 do
13000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13001 echo "configure:13002: checking for $ac_func" >&5
13002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13003 echo $ac_n "(cached) $ac_c" 1>&6
13004 else
13005 cat > conftest.$ac_ext <<EOF
13006 #line 13007 "configure"
13007 #include "confdefs.h"
13008 /* System header to define __stub macros and hopefully few prototypes,
13009 which can conflict with char $ac_func(); below. */
13010 #include <assert.h>
13011 /* Override any gcc2 internal prototype to avoid an error. */
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13014 char $ac_func();
13015
13016 int main() {
13017
13018 /* The GNU C library defines this for functions which it implements
13019 to always fail with ENOSYS. Some functions are actually named
13020 something starting with __ and the normal name is an alias. */
13021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13022 choke me
13023 #else
13024 $ac_func();
13025 #endif
13026
13027 ; return 0; }
13028 EOF
13029 if { (eval echo configure:13030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13030 rm -rf conftest*
13031 eval "ac_cv_func_$ac_func=yes"
13032 else
13033 echo "configure: failed program was:" >&5
13034 cat conftest.$ac_ext >&5
13035 rm -rf conftest*
13036 eval "ac_cv_func_$ac_func=no"
13037 fi
13038 rm -f conftest*
13039 fi
13040
13041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13042 echo "$ac_t""yes" 1>&6
13043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13044 cat >> confdefs.h <<EOF
13045 #define $ac_tr_func 1
13046 EOF
13047 cat >> confdefs.h <<\EOF
13048 #define HAVE_NANOSLEEP 1
13049 EOF
13050
13051 else
13052 echo "$ac_t""no" 1>&6
13053 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13054 echo "configure:13055: checking for nanosleep in -lposix4" >&5
13055 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13057 echo $ac_n "(cached) $ac_c" 1>&6
13058 else
13059 ac_save_LIBS="$LIBS"
13060 LIBS="-lposix4 $LIBS"
13061 cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13064 /* Override any gcc2 internal prototype to avoid an error. */
13065 /* We use char because int might match the return type of a gcc2
13066 builtin and then its argument prototype would still apply. */
13067 char nanosleep();
13068
13069 int main() {
13070 nanosleep()
13071 ; return 0; }
13072 EOF
13073 if { (eval echo configure:13074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13074 rm -rf conftest*
13075 eval "ac_cv_lib_$ac_lib_var=yes"
13076 else
13077 echo "configure: failed program was:" >&5
13078 cat conftest.$ac_ext >&5
13079 rm -rf conftest*
13080 eval "ac_cv_lib_$ac_lib_var=no"
13081 fi
13082 rm -f conftest*
13083 LIBS="$ac_save_LIBS"
13084
13085 fi
13086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13087 echo "$ac_t""yes" 1>&6
13088
13089 cat >> confdefs.h <<\EOF
13090 #define HAVE_NANOSLEEP 1
13091 EOF
13092
13093 POSIX4_LINK="-lposix4"
13094
13095 else
13096 echo "$ac_t""no" 1>&6
13097
13098 for ac_func in usleep
13099 do
13100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13101 echo "configure:13102: checking for $ac_func" >&5
13102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13103 echo $ac_n "(cached) $ac_c" 1>&6
13104 else
13105 cat > conftest.$ac_ext <<EOF
13106 #line 13107 "configure"
13107 #include "confdefs.h"
13108 /* System header to define __stub macros and hopefully few prototypes,
13109 which can conflict with char $ac_func(); below. */
13110 #include <assert.h>
13111 /* Override any gcc2 internal prototype to avoid an error. */
13112 /* We use char because int might match the return type of a gcc2
13113 builtin and then its argument prototype would still apply. */
13114 char $ac_func();
13115
13116 int main() {
13117
13118 /* The GNU C library defines this for functions which it implements
13119 to always fail with ENOSYS. Some functions are actually named
13120 something starting with __ and the normal name is an alias. */
13121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13122 choke me
13123 #else
13124 $ac_func();
13125 #endif
13126
13127 ; return 0; }
13128 EOF
13129 if { (eval echo configure:13130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13130 rm -rf conftest*
13131 eval "ac_cv_func_$ac_func=yes"
13132 else
13133 echo "configure: failed program was:" >&5
13134 cat conftest.$ac_ext >&5
13135 rm -rf conftest*
13136 eval "ac_cv_func_$ac_func=no"
13137 fi
13138 rm -f conftest*
13139 fi
13140
13141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13142 echo "$ac_t""yes" 1>&6
13143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13144 cat >> confdefs.h <<EOF
13145 #define $ac_tr_func 1
13146 EOF
13147 cat >> confdefs.h <<\EOF
13148 #define HAVE_USLEEP 1
13149 EOF
13150
13151 else
13152 echo "$ac_t""no" 1>&6
13153 echo "configure: warning: wxSleep() function will not work" 1>&2
13154
13155 fi
13156 done
13157
13158
13159
13160 fi
13161
13162
13163
13164 fi
13165 done
13166
13167 fi
13168
13169 for ac_func in uname gethostname
13170 do
13171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13172 echo "configure:13173: checking for $ac_func" >&5
13173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13174 echo $ac_n "(cached) $ac_c" 1>&6
13175 else
13176 cat > conftest.$ac_ext <<EOF
13177 #line 13178 "configure"
13178 #include "confdefs.h"
13179 /* System header to define __stub macros and hopefully few prototypes,
13180 which can conflict with char $ac_func(); below. */
13181 #include <assert.h>
13182 /* Override any gcc2 internal prototype to avoid an error. */
13183 /* We use char because int might match the return type of a gcc2
13184 builtin and then its argument prototype would still apply. */
13185 char $ac_func();
13186
13187 int main() {
13188
13189 /* The GNU C library defines this for functions which it implements
13190 to always fail with ENOSYS. Some functions are actually named
13191 something starting with __ and the normal name is an alias. */
13192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13193 choke me
13194 #else
13195 $ac_func();
13196 #endif
13197
13198 ; return 0; }
13199 EOF
13200 if { (eval echo configure:13201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13201 rm -rf conftest*
13202 eval "ac_cv_func_$ac_func=yes"
13203 else
13204 echo "configure: failed program was:" >&5
13205 cat conftest.$ac_ext >&5
13206 rm -rf conftest*
13207 eval "ac_cv_func_$ac_func=no"
13208 fi
13209 rm -f conftest*
13210 fi
13211
13212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13213 echo "$ac_t""yes" 1>&6
13214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13215 cat >> confdefs.h <<EOF
13216 #define $ac_tr_func 1
13217 EOF
13218 break
13219 else
13220 echo "$ac_t""no" 1>&6
13221 fi
13222 done
13223
13224
13225
13226 ac_ext=C
13227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13228 ac_cpp='$CXXCPP $CPPFLAGS'
13229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13231 cross_compiling=$ac_cv_prog_cxx_cross
13232
13233
13234 for ac_func in strtok_r
13235 do
13236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13237 echo "configure:13238: checking for $ac_func" >&5
13238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13239 echo $ac_n "(cached) $ac_c" 1>&6
13240 else
13241 cat > conftest.$ac_ext <<EOF
13242 #line 13243 "configure"
13243 #include "confdefs.h"
13244 /* System header to define __stub macros and hopefully few prototypes,
13245 which can conflict with char $ac_func(); below. */
13246 #include <assert.h>
13247 /* Override any gcc2 internal prototype to avoid an error. */
13248 #ifdef __cplusplus
13249 extern "C"
13250 #endif
13251 /* We use char because int might match the return type of a gcc2
13252 builtin and then its argument prototype would still apply. */
13253 char $ac_func();
13254
13255 int main() {
13256
13257 /* The GNU C library defines this for functions which it implements
13258 to always fail with ENOSYS. Some functions are actually named
13259 something starting with __ and the normal name is an alias. */
13260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13261 choke me
13262 #else
13263 $ac_func();
13264 #endif
13265
13266 ; return 0; }
13267 EOF
13268 if { (eval echo configure:13269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13269 rm -rf conftest*
13270 eval "ac_cv_func_$ac_func=yes"
13271 else
13272 echo "configure: failed program was:" >&5
13273 cat conftest.$ac_ext >&5
13274 rm -rf conftest*
13275 eval "ac_cv_func_$ac_func=no"
13276 fi
13277 rm -f conftest*
13278 fi
13279
13280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13281 echo "$ac_t""yes" 1>&6
13282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13283 cat >> confdefs.h <<EOF
13284 #define $ac_tr_func 1
13285 EOF
13286
13287 else
13288 echo "$ac_t""no" 1>&6
13289 fi
13290 done
13291
13292
13293 ac_ext=c
13294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13295 ac_cpp='$CPP $CPPFLAGS'
13296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13298 cross_compiling=$ac_cv_prog_cc_cross
13299
13300
13301 INET_LINK=
13302 for ac_func in inet_addr
13303 do
13304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13305 echo "configure:13306: checking for $ac_func" >&5
13306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13307 echo $ac_n "(cached) $ac_c" 1>&6
13308 else
13309 cat > conftest.$ac_ext <<EOF
13310 #line 13311 "configure"
13311 #include "confdefs.h"
13312 /* System header to define __stub macros and hopefully few prototypes,
13313 which can conflict with char $ac_func(); below. */
13314 #include <assert.h>
13315 /* Override any gcc2 internal prototype to avoid an error. */
13316 /* We use char because int might match the return type of a gcc2
13317 builtin and then its argument prototype would still apply. */
13318 char $ac_func();
13319
13320 int main() {
13321
13322 /* The GNU C library defines this for functions which it implements
13323 to always fail with ENOSYS. Some functions are actually named
13324 something starting with __ and the normal name is an alias. */
13325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13326 choke me
13327 #else
13328 $ac_func();
13329 #endif
13330
13331 ; return 0; }
13332 EOF
13333 if { (eval echo configure:13334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13334 rm -rf conftest*
13335 eval "ac_cv_func_$ac_func=yes"
13336 else
13337 echo "configure: failed program was:" >&5
13338 cat conftest.$ac_ext >&5
13339 rm -rf conftest*
13340 eval "ac_cv_func_$ac_func=no"
13341 fi
13342 rm -f conftest*
13343 fi
13344
13345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13346 echo "$ac_t""yes" 1>&6
13347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13348 cat >> confdefs.h <<EOF
13349 #define $ac_tr_func 1
13350 EOF
13351 cat >> confdefs.h <<\EOF
13352 #define HAVE_INET_ADDR 1
13353 EOF
13354
13355 else
13356 echo "$ac_t""no" 1>&6
13357 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13358 echo "configure:13359: checking for inet_addr in -lnsl" >&5
13359 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13362 else
13363 ac_save_LIBS="$LIBS"
13364 LIBS="-lnsl $LIBS"
13365 cat > conftest.$ac_ext <<EOF
13366 #line 13367 "configure"
13367 #include "confdefs.h"
13368 /* Override any gcc2 internal prototype to avoid an error. */
13369 /* We use char because int might match the return type of a gcc2
13370 builtin and then its argument prototype would still apply. */
13371 char inet_addr();
13372
13373 int main() {
13374 inet_addr()
13375 ; return 0; }
13376 EOF
13377 if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13378 rm -rf conftest*
13379 eval "ac_cv_lib_$ac_lib_var=yes"
13380 else
13381 echo "configure: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13383 rm -rf conftest*
13384 eval "ac_cv_lib_$ac_lib_var=no"
13385 fi
13386 rm -f conftest*
13387 LIBS="$ac_save_LIBS"
13388
13389 fi
13390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13391 echo "$ac_t""yes" 1>&6
13392 INET_LINK="nsl"
13393 else
13394 echo "$ac_t""no" 1>&6
13395 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13396 echo "configure:13397: checking for inet_addr in -lresolv" >&5
13397 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13399 echo $ac_n "(cached) $ac_c" 1>&6
13400 else
13401 ac_save_LIBS="$LIBS"
13402 LIBS="-lresolv $LIBS"
13403 cat > conftest.$ac_ext <<EOF
13404 #line 13405 "configure"
13405 #include "confdefs.h"
13406 /* Override any gcc2 internal prototype to avoid an error. */
13407 /* We use char because int might match the return type of a gcc2
13408 builtin and then its argument prototype would still apply. */
13409 char inet_addr();
13410
13411 int main() {
13412 inet_addr()
13413 ; return 0; }
13414 EOF
13415 if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13416 rm -rf conftest*
13417 eval "ac_cv_lib_$ac_lib_var=yes"
13418 else
13419 echo "configure: failed program was:" >&5
13420 cat conftest.$ac_ext >&5
13421 rm -rf conftest*
13422 eval "ac_cv_lib_$ac_lib_var=no"
13423 fi
13424 rm -f conftest*
13425 LIBS="$ac_save_LIBS"
13426
13427 fi
13428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13429 echo "$ac_t""yes" 1>&6
13430 INET_LINK="resolv"
13431
13432 else
13433 echo "$ac_t""no" 1>&6
13434 fi
13435
13436
13437 fi
13438
13439
13440
13441 fi
13442 done
13443
13444
13445 for ac_func in inet_aton
13446 do
13447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13448 echo "configure:13449: checking for $ac_func" >&5
13449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13450 echo $ac_n "(cached) $ac_c" 1>&6
13451 else
13452 cat > conftest.$ac_ext <<EOF
13453 #line 13454 "configure"
13454 #include "confdefs.h"
13455 /* System header to define __stub macros and hopefully few prototypes,
13456 which can conflict with char $ac_func(); below. */
13457 #include <assert.h>
13458 /* Override any gcc2 internal prototype to avoid an error. */
13459 /* We use char because int might match the return type of a gcc2
13460 builtin and then its argument prototype would still apply. */
13461 char $ac_func();
13462
13463 int main() {
13464
13465 /* The GNU C library defines this for functions which it implements
13466 to always fail with ENOSYS. Some functions are actually named
13467 something starting with __ and the normal name is an alias. */
13468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13469 choke me
13470 #else
13471 $ac_func();
13472 #endif
13473
13474 ; return 0; }
13475 EOF
13476 if { (eval echo configure:13477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13477 rm -rf conftest*
13478 eval "ac_cv_func_$ac_func=yes"
13479 else
13480 echo "configure: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13482 rm -rf conftest*
13483 eval "ac_cv_func_$ac_func=no"
13484 fi
13485 rm -f conftest*
13486 fi
13487
13488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13489 echo "$ac_t""yes" 1>&6
13490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13491 cat >> confdefs.h <<EOF
13492 #define $ac_tr_func 1
13493 EOF
13494 cat >> confdefs.h <<\EOF
13495 #define HAVE_INET_ATON 1
13496 EOF
13497
13498 else
13499 echo "$ac_t""no" 1>&6
13500 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13501 echo "configure:13502: checking for inet_aton in -l$INET_LINK" >&5
13502 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13504 echo $ac_n "(cached) $ac_c" 1>&6
13505 else
13506 ac_save_LIBS="$LIBS"
13507 LIBS="-l$INET_LINK $LIBS"
13508 cat > conftest.$ac_ext <<EOF
13509 #line 13510 "configure"
13510 #include "confdefs.h"
13511 /* Override any gcc2 internal prototype to avoid an error. */
13512 /* We use char because int might match the return type of a gcc2
13513 builtin and then its argument prototype would still apply. */
13514 char inet_aton();
13515
13516 int main() {
13517 inet_aton()
13518 ; return 0; }
13519 EOF
13520 if { (eval echo configure:13521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13521 rm -rf conftest*
13522 eval "ac_cv_lib_$ac_lib_var=yes"
13523 else
13524 echo "configure: failed program was:" >&5
13525 cat conftest.$ac_ext >&5
13526 rm -rf conftest*
13527 eval "ac_cv_lib_$ac_lib_var=no"
13528 fi
13529 rm -f conftest*
13530 LIBS="$ac_save_LIBS"
13531
13532 fi
13533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13534 echo "$ac_t""yes" 1>&6
13535 cat >> confdefs.h <<\EOF
13536 #define HAVE_INET_ATON 1
13537 EOF
13538
13539 else
13540 echo "$ac_t""no" 1>&6
13541 fi
13542
13543
13544 fi
13545 done
13546
13547
13548 if test "x$INET_LINK" != "x"; then
13549 cat >> confdefs.h <<\EOF
13550 #define HAVE_INET_ADDR 1
13551 EOF
13552
13553 INET_LINK="-l$INET_LINK"
13554 fi
13555
13556 fi
13557
13558
13559 cat > confcache <<\EOF
13560 # This file is a shell script that caches the results of configure
13561 # tests run on this system so they can be shared between configure
13562 # scripts and configure runs. It is not useful on other systems.
13563 # If it contains results you don't want to keep, you may remove or edit it.
13564 #
13565 # By default, configure uses ./config.cache as the cache file,
13566 # creating it if it does not exist already. You can give configure
13567 # the --cache-file=FILE option to use a different cache file; that is
13568 # what configure does when it calls configure scripts in
13569 # subdirectories, so they share the cache.
13570 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13571 # config.status only pays attention to the cache file if you give it the
13572 # --recheck option to rerun configure.
13573 #
13574 EOF
13575 # The following way of writing the cache mishandles newlines in values,
13576 # but we know of no workaround that is simple, portable, and efficient.
13577 # So, don't put newlines in cache variables' values.
13578 # Ultrix sh set writes to stderr and can't be redirected directly,
13579 # and sets the high bit in the cache file unless we assign to the vars.
13580 (set) 2>&1 |
13581 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13582 *ac_space=\ *)
13583 # `set' does not quote correctly, so add quotes (double-quote substitution
13584 # turns \\\\ into \\, and sed turns \\ into \).
13585 sed -n \
13586 -e "s/'/'\\\\''/g" \
13587 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13588 ;;
13589 *)
13590 # `set' quotes correctly as required by POSIX, so do not add quotes.
13591 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13592 ;;
13593 esac >> confcache
13594 if cmp -s $cache_file confcache; then
13595 :
13596 else
13597 if test -w $cache_file; then
13598 echo "updating cache $cache_file"
13599 cat confcache > $cache_file
13600 else
13601 echo "not updating unwritable cache $cache_file"
13602 fi
13603 fi
13604 rm -f confcache
13605
13606
13607
13608 if test "$TOOLKIT" != "MSW"; then
13609
13610
13611 THREADS_LINK=""
13612 THREADS_OBJ=""
13613
13614 if test "$wxUSE_THREADS" = "yes" ; then
13615 if test "$wxUSE_WINE" = 1 ; then
13616 echo "configure: warning: Threads are not supported under WINE" 1>&2
13617 wxUSE_THREADS="no"
13618 elif test "$USE_BEOS" = 1; then
13619 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13620 wxUSE_THREADS="no"
13621 fi
13622 fi
13623
13624 if test "$wxUSE_THREADS" = "yes" ; then
13625
13626 if test "$USE_AIX" = 1; then
13627 THREADS_LIB=pthreads
13628 else
13629 THREADS_LIB=pthread
13630 fi
13631
13632 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13633 echo "configure:13634: checking for pthread_create in -l$THREADS_LIB" >&5
13634 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13636 echo $ac_n "(cached) $ac_c" 1>&6
13637 else
13638 ac_save_LIBS="$LIBS"
13639 LIBS="-l$THREADS_LIB $LIBS"
13640 cat > conftest.$ac_ext <<EOF
13641 #line 13642 "configure"
13642 #include "confdefs.h"
13643 /* Override any gcc2 internal prototype to avoid an error. */
13644 /* We use char because int might match the return type of a gcc2
13645 builtin and then its argument prototype would still apply. */
13646 char pthread_create();
13647
13648 int main() {
13649 pthread_create()
13650 ; return 0; }
13651 EOF
13652 if { (eval echo configure:13653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13653 rm -rf conftest*
13654 eval "ac_cv_lib_$ac_lib_var=yes"
13655 else
13656 echo "configure: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13658 rm -rf conftest*
13659 eval "ac_cv_lib_$ac_lib_var=no"
13660 fi
13661 rm -f conftest*
13662 LIBS="$ac_save_LIBS"
13663
13664 fi
13665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13666 echo "$ac_t""yes" 1>&6
13667
13668 THREADS_OBJ="threadpsx.lo"
13669 THREADS_LINK=$THREADS_LIB
13670
13671 else
13672 echo "$ac_t""no" 1>&6
13673
13674 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13675 echo "configure:13676: checking for pthread_create in -lc_r" >&5
13676 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13678 echo $ac_n "(cached) $ac_c" 1>&6
13679 else
13680 ac_save_LIBS="$LIBS"
13681 LIBS="-lc_r $LIBS"
13682 cat > conftest.$ac_ext <<EOF
13683 #line 13684 "configure"
13684 #include "confdefs.h"
13685 /* Override any gcc2 internal prototype to avoid an error. */
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13688 char pthread_create();
13689
13690 int main() {
13691 pthread_create()
13692 ; return 0; }
13693 EOF
13694 if { (eval echo configure:13695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13695 rm -rf conftest*
13696 eval "ac_cv_lib_$ac_lib_var=yes"
13697 else
13698 echo "configure: failed program was:" >&5
13699 cat conftest.$ac_ext >&5
13700 rm -rf conftest*
13701 eval "ac_cv_lib_$ac_lib_var=no"
13702 fi
13703 rm -f conftest*
13704 LIBS="$ac_save_LIBS"
13705
13706 fi
13707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13708 echo "$ac_t""yes" 1>&6
13709
13710 THREADS_OBJ="threadpsx.lo"
13711 THREADS_LINK="c_r"
13712
13713 else
13714 echo "$ac_t""no" 1>&6
13715
13716 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13717 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
13718 echo "configure:13719: checking for sys/prctl.h" >&5
13719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13720 echo $ac_n "(cached) $ac_c" 1>&6
13721 else
13722 cat > conftest.$ac_ext <<EOF
13723 #line 13724 "configure"
13724 #include "confdefs.h"
13725 #include <sys/prctl.h>
13726 EOF
13727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13728 { (eval echo configure:13729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13730 if test -z "$ac_err"; then
13731 rm -rf conftest*
13732 eval "ac_cv_header_$ac_safe=yes"
13733 else
13734 echo "$ac_err" >&5
13735 echo "configure: failed program was:" >&5
13736 cat conftest.$ac_ext >&5
13737 rm -rf conftest*
13738 eval "ac_cv_header_$ac_safe=no"
13739 fi
13740 rm -f conftest*
13741 fi
13742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13743 echo "$ac_t""yes" 1>&6
13744
13745 THREADS_OBJ="threadsgi.lo"
13746
13747 else
13748 echo "$ac_t""no" 1>&6
13749 fi
13750
13751
13752 fi
13753
13754
13755 fi
13756
13757
13758 if test -z "$THREADS_OBJ" ; then
13759 wxUSE_THREADS=no
13760 echo "configure: warning: No thread support on this system" 1>&2
13761 fi
13762 fi
13763
13764 if test "$wxUSE_THREADS" = "yes" ; then
13765 for ac_func in thr_setconcurrency
13766 do
13767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13768 echo "configure:13769: checking for $ac_func" >&5
13769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13770 echo $ac_n "(cached) $ac_c" 1>&6
13771 else
13772 cat > conftest.$ac_ext <<EOF
13773 #line 13774 "configure"
13774 #include "confdefs.h"
13775 /* System header to define __stub macros and hopefully few prototypes,
13776 which can conflict with char $ac_func(); below. */
13777 #include <assert.h>
13778 /* Override any gcc2 internal prototype to avoid an error. */
13779 /* We use char because int might match the return type of a gcc2
13780 builtin and then its argument prototype would still apply. */
13781 char $ac_func();
13782
13783 int main() {
13784
13785 /* The GNU C library defines this for functions which it implements
13786 to always fail with ENOSYS. Some functions are actually named
13787 something starting with __ and the normal name is an alias. */
13788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13789 choke me
13790 #else
13791 $ac_func();
13792 #endif
13793
13794 ; return 0; }
13795 EOF
13796 if { (eval echo configure:13797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13797 rm -rf conftest*
13798 eval "ac_cv_func_$ac_func=yes"
13799 else
13800 echo "configure: failed program was:" >&5
13801 cat conftest.$ac_ext >&5
13802 rm -rf conftest*
13803 eval "ac_cv_func_$ac_func=no"
13804 fi
13805 rm -f conftest*
13806 fi
13807
13808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13809 echo "$ac_t""yes" 1>&6
13810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13811 cat >> confdefs.h <<EOF
13812 #define $ac_tr_func 1
13813 EOF
13814
13815 else
13816 echo "$ac_t""no" 1>&6
13817 fi
13818 done
13819
13820
13821
13822 for ac_hdr in sched.h
13823 do
13824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13826 echo "configure:13827: checking for $ac_hdr" >&5
13827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13828 echo $ac_n "(cached) $ac_c" 1>&6
13829 else
13830 cat > conftest.$ac_ext <<EOF
13831 #line 13832 "configure"
13832 #include "confdefs.h"
13833 #include <$ac_hdr>
13834 EOF
13835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13836 { (eval echo configure:13837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13838 if test -z "$ac_err"; then
13839 rm -rf conftest*
13840 eval "ac_cv_header_$ac_safe=yes"
13841 else
13842 echo "$ac_err" >&5
13843 echo "configure: failed program was:" >&5
13844 cat conftest.$ac_ext >&5
13845 rm -rf conftest*
13846 eval "ac_cv_header_$ac_safe=no"
13847 fi
13848 rm -f conftest*
13849 fi
13850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13851 echo "$ac_t""yes" 1>&6
13852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13853 cat >> confdefs.h <<EOF
13854 #define $ac_tr_hdr 1
13855 EOF
13856
13857 else
13858 echo "$ac_t""no" 1>&6
13859 fi
13860 done
13861
13862
13863 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
13864 echo "configure:13865: checking for sched_yield in -l$THREADS_LINK" >&5
13865 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13867 echo $ac_n "(cached) $ac_c" 1>&6
13868 else
13869 ac_save_LIBS="$LIBS"
13870 LIBS="-l$THREADS_LINK $LIBS"
13871 cat > conftest.$ac_ext <<EOF
13872 #line 13873 "configure"
13873 #include "confdefs.h"
13874 /* Override any gcc2 internal prototype to avoid an error. */
13875 /* We use char because int might match the return type of a gcc2
13876 builtin and then its argument prototype would still apply. */
13877 char sched_yield();
13878
13879 int main() {
13880 sched_yield()
13881 ; return 0; }
13882 EOF
13883 if { (eval echo configure:13884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13884 rm -rf conftest*
13885 eval "ac_cv_lib_$ac_lib_var=yes"
13886 else
13887 echo "configure: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13889 rm -rf conftest*
13890 eval "ac_cv_lib_$ac_lib_var=no"
13891 fi
13892 rm -f conftest*
13893 LIBS="$ac_save_LIBS"
13894
13895 fi
13896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13897 echo "$ac_t""yes" 1>&6
13898 cat >> confdefs.h <<\EOF
13899 #define HAVE_SCHED_YIELD 1
13900 EOF
13901
13902 else
13903 echo "$ac_t""no" 1>&6
13904 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
13905 echo "configure:13906: checking for sched_yield in -lposix4" >&5
13906 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
13909 else
13910 ac_save_LIBS="$LIBS"
13911 LIBS="-lposix4 $LIBS"
13912 cat > conftest.$ac_ext <<EOF
13913 #line 13914 "configure"
13914 #include "confdefs.h"
13915 /* Override any gcc2 internal prototype to avoid an error. */
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918 char sched_yield();
13919
13920 int main() {
13921 sched_yield()
13922 ; return 0; }
13923 EOF
13924 if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13925 rm -rf conftest*
13926 eval "ac_cv_lib_$ac_lib_var=yes"
13927 else
13928 echo "configure: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13930 rm -rf conftest*
13931 eval "ac_cv_lib_$ac_lib_var=no"
13932 fi
13933 rm -f conftest*
13934 LIBS="$ac_save_LIBS"
13935
13936 fi
13937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13938 echo "$ac_t""yes" 1>&6
13939 cat >> confdefs.h <<\EOF
13940 #define HAVE_SCHED_YIELD 1
13941 EOF
13942 POSIX4_LINK="-lposix4"
13943 else
13944 echo "$ac_t""no" 1>&6
13945 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13946
13947 fi
13948
13949
13950 fi
13951
13952
13953 HAVE_PRIOR_FUNCS=0
13954 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
13955 echo "configure:13956: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
13956 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13958 echo $ac_n "(cached) $ac_c" 1>&6
13959 else
13960 ac_save_LIBS="$LIBS"
13961 LIBS="-l$THREADS_LINK $LIBS"
13962 cat > conftest.$ac_ext <<EOF
13963 #line 13964 "configure"
13964 #include "confdefs.h"
13965 /* Override any gcc2 internal prototype to avoid an error. */
13966 /* We use char because int might match the return type of a gcc2
13967 builtin and then its argument prototype would still apply. */
13968 char pthread_attr_getschedpolicy();
13969
13970 int main() {
13971 pthread_attr_getschedpolicy()
13972 ; return 0; }
13973 EOF
13974 if { (eval echo configure:13975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13975 rm -rf conftest*
13976 eval "ac_cv_lib_$ac_lib_var=yes"
13977 else
13978 echo "configure: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13980 rm -rf conftest*
13981 eval "ac_cv_lib_$ac_lib_var=no"
13982 fi
13983 rm -f conftest*
13984 LIBS="$ac_save_LIBS"
13985
13986 fi
13987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13988 echo "$ac_t""yes" 1>&6
13989 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
13990 echo "configure:13991: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
13991 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13993 echo $ac_n "(cached) $ac_c" 1>&6
13994 else
13995 ac_save_LIBS="$LIBS"
13996 LIBS="-l$THREADS_LINK $LIBS"
13997 cat > conftest.$ac_ext <<EOF
13998 #line 13999 "configure"
13999 #include "confdefs.h"
14000 /* Override any gcc2 internal prototype to avoid an error. */
14001 /* We use char because int might match the return type of a gcc2
14002 builtin and then its argument prototype would still apply. */
14003 char pthread_attr_setschedparam();
14004
14005 int main() {
14006 pthread_attr_setschedparam()
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_lib_$ac_lib_var=yes"
14012 else
14013 echo "configure: failed program was:" >&5
14014 cat conftest.$ac_ext >&5
14015 rm -rf conftest*
14016 eval "ac_cv_lib_$ac_lib_var=no"
14017 fi
14018 rm -f conftest*
14019 LIBS="$ac_save_LIBS"
14020
14021 fi
14022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14023 echo "$ac_t""yes" 1>&6
14024 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14025 echo "configure:14026: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14026 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14028 echo $ac_n "(cached) $ac_c" 1>&6
14029 else
14030 ac_save_LIBS="$LIBS"
14031 LIBS="-l$THREADS_LINK $LIBS"
14032 cat > conftest.$ac_ext <<EOF
14033 #line 14034 "configure"
14034 #include "confdefs.h"
14035 /* Override any gcc2 internal prototype to avoid an error. */
14036 /* We use char because int might match the return type of a gcc2
14037 builtin and then its argument prototype would still apply. */
14038 char sched_get_priority_max();
14039
14040 int main() {
14041 sched_get_priority_max()
14042 ; return 0; }
14043 EOF
14044 if { (eval echo configure:14045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14045 rm -rf conftest*
14046 eval "ac_cv_lib_$ac_lib_var=yes"
14047 else
14048 echo "configure: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14050 rm -rf conftest*
14051 eval "ac_cv_lib_$ac_lib_var=no"
14052 fi
14053 rm -f conftest*
14054 LIBS="$ac_save_LIBS"
14055
14056 fi
14057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14058 echo "$ac_t""yes" 1>&6
14059 HAVE_PRIOR_FUNCS=1
14060 else
14061 echo "$ac_t""no" 1>&6
14062 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14063 echo "configure:14064: checking for sched_get_priority_max in -lposix4" >&5
14064 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14066 echo $ac_n "(cached) $ac_c" 1>&6
14067 else
14068 ac_save_LIBS="$LIBS"
14069 LIBS="-lposix4 $LIBS"
14070 cat > conftest.$ac_ext <<EOF
14071 #line 14072 "configure"
14072 #include "confdefs.h"
14073 /* Override any gcc2 internal prototype to avoid an error. */
14074 /* We use char because int might match the return type of a gcc2
14075 builtin and then its argument prototype would still apply. */
14076 char sched_get_priority_max();
14077
14078 int main() {
14079 sched_get_priority_max()
14080 ; return 0; }
14081 EOF
14082 if { (eval echo configure:14083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14083 rm -rf conftest*
14084 eval "ac_cv_lib_$ac_lib_var=yes"
14085 else
14086 echo "configure: failed program was:" >&5
14087 cat conftest.$ac_ext >&5
14088 rm -rf conftest*
14089 eval "ac_cv_lib_$ac_lib_var=no"
14090 fi
14091 rm -f conftest*
14092 LIBS="$ac_save_LIBS"
14093
14094 fi
14095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14096 echo "$ac_t""yes" 1>&6
14097
14098 HAVE_PRIOR_FUNCS=1
14099 POSIX4_LINK="-lposix4"
14100
14101 else
14102 echo "$ac_t""no" 1>&6
14103 fi
14104
14105
14106 fi
14107
14108
14109 else
14110 echo "$ac_t""no" 1>&6
14111 fi
14112
14113
14114 else
14115 echo "$ac_t""no" 1>&6
14116 fi
14117
14118
14119 if test "$HAVE_PRIOR_FUNCS" = 1; then
14120 cat >> confdefs.h <<\EOF
14121 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14122 EOF
14123
14124 else
14125 echo "configure: warning: Setting thread priority will not work" 1>&2
14126 fi
14127
14128 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14129 echo "configure:14130: checking for pthread_cancel in -l$THREADS_LINK" >&5
14130 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14132 echo $ac_n "(cached) $ac_c" 1>&6
14133 else
14134 ac_save_LIBS="$LIBS"
14135 LIBS="-l$THREADS_LINK $LIBS"
14136 cat > conftest.$ac_ext <<EOF
14137 #line 14138 "configure"
14138 #include "confdefs.h"
14139 /* Override any gcc2 internal prototype to avoid an error. */
14140 /* We use char because int might match the return type of a gcc2
14141 builtin and then its argument prototype would still apply. */
14142 char pthread_cancel();
14143
14144 int main() {
14145 pthread_cancel()
14146 ; return 0; }
14147 EOF
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14149 rm -rf conftest*
14150 eval "ac_cv_lib_$ac_lib_var=yes"
14151 else
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 rm -rf conftest*
14155 eval "ac_cv_lib_$ac_lib_var=no"
14156 fi
14157 rm -f conftest*
14158 LIBS="$ac_save_LIBS"
14159
14160 fi
14161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14162 echo "$ac_t""yes" 1>&6
14163 cat >> confdefs.h <<\EOF
14164 #define HAVE_PTHREAD_CANCEL 1
14165 EOF
14166
14167 else
14168 echo "$ac_t""no" 1>&6
14169 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14170 fi
14171
14172
14173 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14174 echo "configure:14175: checking for pthread_cleanup_push/pop" >&5
14175 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14176 echo $ac_n "(cached) $ac_c" 1>&6
14177 else
14178
14179 cat > conftest.$ac_ext <<EOF
14180 #line 14181 "configure"
14181 #include "confdefs.h"
14182 #include <pthread.h>
14183 int main() {
14184
14185 pthread_cleanup_push(NULL, NULL);
14186 pthread_cleanup_pop(0);
14187
14188 ; return 0; }
14189 EOF
14190 if { (eval echo configure:14191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14191 rm -rf conftest*
14192
14193 wx_cv_func_pthread_cleanup_push=yes
14194
14195 else
14196 echo "configure: failed program was:" >&5
14197 cat conftest.$ac_ext >&5
14198 rm -rf conftest*
14199
14200 wx_cv_func_pthread_cleanup_push=no
14201
14202 fi
14203 rm -f conftest*
14204
14205 fi
14206
14207 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14208
14209 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14210 cat >> confdefs.h <<\EOF
14211 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14212 EOF
14213
14214 fi
14215
14216
14217 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14218 echo "configure:14219: checking for pthread_mutexattr_t" >&5
14219 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14220 echo $ac_n "(cached) $ac_c" 1>&6
14221 else
14222
14223 cat > conftest.$ac_ext <<EOF
14224 #line 14225 "configure"
14225 #include "confdefs.h"
14226 #include <pthread.h>
14227 int main() {
14228
14229 pthread_mutexattr_t attr;
14230 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14231
14232 ; return 0; }
14233 EOF
14234 if { (eval echo configure:14235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14235 rm -rf conftest*
14236
14237 wx_cv_type_pthread_mutexattr_t=yes
14238
14239 else
14240 echo "configure: failed program was:" >&5
14241 cat conftest.$ac_ext >&5
14242 rm -rf conftest*
14243
14244 wx_cv_type_pthread_mutexattr_t=no
14245
14246
14247 fi
14248 rm -f conftest*
14249
14250 fi
14251
14252 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14253
14254 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14255 cat >> confdefs.h <<\EOF
14256 #define HAVE_PTHREAD_MUTEXATTR_T 1
14257 EOF
14258
14259 else
14260 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14261 echo "configure:14262: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14262 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14263 echo $ac_n "(cached) $ac_c" 1>&6
14264 else
14265
14266 cat > conftest.$ac_ext <<EOF
14267 #line 14268 "configure"
14268 #include "confdefs.h"
14269 #include <pthread.h>
14270 int main() {
14271
14272 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14273
14274 ; return 0; }
14275 EOF
14276 if { (eval echo configure:14277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14277 rm -rf conftest*
14278
14279 wx_cv_type_pthread_rec_mutex_init=yes
14280
14281 else
14282 echo "configure: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14284 rm -rf conftest*
14285
14286 wx_cv_type_pthread_rec_mutex_init=no
14287
14288
14289 fi
14290 rm -f conftest*
14291
14292 fi
14293
14294 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14295 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14296 cat >> confdefs.h <<\EOF
14297 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14298 EOF
14299
14300 else
14301 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14302 fi
14303 fi
14304
14305 THREADS_LINK="-l$THREADS_LINK"
14306
14307 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14308 CFLAGS="${CFLAGS} -mt"
14309 CXXFLAGS="${CXXFLAGS} -mt"
14310 LDFLAGS="${LDFLAGS} -mt"
14311 fi
14312 fi
14313
14314 fi
14315
14316 if test "$wxUSE_THREADS" = "yes"; then
14317 cat >> confdefs.h <<\EOF
14318 #define wxUSE_THREADS 1
14319 EOF
14320
14321
14322 if test "$wxUSE_MAC" = "0"; then
14323 CFLAGS="${CFLAGS} -D_REENTRANT"
14324 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14325 fi
14326
14327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14328 else
14329 if test "$ac_cv_func_strtok_r" = "yes"; then
14330 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14331 echo "configure:14332: checking if -D_REENTRANT is needed" >&5
14332 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14333 CFLAGS="${CFLAGS} -D_REENTRANT"
14334 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14335 echo "$ac_t""yes" 1>&6
14336 else
14337 echo "$ac_t""no" 1>&6
14338 fi
14339 fi
14340 fi
14341
14342 if test "$WXGTK20" = 1 ; then
14343 cat >> confdefs.h <<EOF
14344 #define __WXGTK20__ $WXGTK20
14345 EOF
14346
14347 WXGTK12=1
14348 fi
14349
14350 if test "$WXGTK12" = 1 ; then
14351 cat >> confdefs.h <<EOF
14352 #define __WXGTK12__ $WXGTK12
14353 EOF
14354
14355 fi
14356
14357 if test "$WXGTK127" = 1 ; then
14358 cat >> confdefs.h <<EOF
14359 #define __WXGTK127__ $WXGTK127
14360 EOF
14361
14362 fi
14363
14364 if test "$WXWINE" = 1 ; then
14365 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14366 fi
14367
14368 if test "$wxUSE_MAC" = 1 ; then
14369 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
14370 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
14371 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
14372 # Extract the first word of "Rez", so it can be a program name with args.
14373 set dummy Rez; ac_word=$2
14374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14375 echo "configure:14376: checking for $ac_word" >&5
14376 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14377 echo $ac_n "(cached) $ac_c" 1>&6
14378 else
14379 if test -n "$REZ"; then
14380 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14381 else
14382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14383 ac_dummy="$PATH"
14384 for ac_dir in $ac_dummy; do
14385 test -z "$ac_dir" && ac_dir=.
14386 if test -f $ac_dir/$ac_word; then
14387 ac_cv_prog_REZ="Rez"
14388 break
14389 fi
14390 done
14391 IFS="$ac_save_ifs"
14392 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14393 fi
14394 fi
14395 REZ="$ac_cv_prog_REZ"
14396 if test -n "$REZ"; then
14397 echo "$ac_t""$REZ" 1>&6
14398 else
14399 echo "$ac_t""no" 1>&6
14400 fi
14401
14402 # Extract the first word of "Derez", so it can be a program name with args.
14403 set dummy Derez; ac_word=$2
14404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14405 echo "configure:14406: checking for $ac_word" >&5
14406 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14407 echo $ac_n "(cached) $ac_c" 1>&6
14408 else
14409 if test -n "$DEREZ"; then
14410 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14411 else
14412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14413 ac_dummy="$PATH"
14414 for ac_dir in $ac_dummy; do
14415 test -z "$ac_dir" && ac_dir=.
14416 if test -f $ac_dir/$ac_word; then
14417 ac_cv_prog_DEREZ="Derez"
14418 break
14419 fi
14420 done
14421 IFS="$ac_save_ifs"
14422 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14423 fi
14424 fi
14425 DEREZ="$ac_cv_prog_DEREZ"
14426 if test -n "$DEREZ"; then
14427 echo "$ac_t""$DEREZ" 1>&6
14428 else
14429 echo "$ac_t""no" 1>&6
14430 fi
14431
14432 RESCOMP=${REZ}
14433 REZFLAGS="-d __UNIX__ -useDF"
14434 DEREZFLAGS="Carbon.r -useDF"
14435 RESFLAGS="Carbon.r -t APPL"
14436 LIBWXMACRES="\$(LIBWX_MACRES)"
14437 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14438 fi
14439
14440 if test "$wxUSE_CYGWIN" = 1 ; then
14441 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14442 fi
14443
14444 WXDEBUG=
14445
14446 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14447 WXDEBUG="-g"
14448 wxUSE_OPTIMISE=no
14449 fi
14450
14451 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14452 wxUSE_DEBUG_INFO=yes
14453 WXDEBUG="-ggdb"
14454 fi
14455
14456 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14457 cat >> confdefs.h <<\EOF
14458 #define WXDEBUG 1
14459 EOF
14460
14461 WXDEBUG_DEFINE="-D__WXDEBUG__"
14462 else
14463 if test "$wxUSE_GTK" = 1 ; then
14464 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14465 fi
14466 fi
14467
14468 if test "$wxUSE_MEM_TRACING" = "yes" ; then
14469 cat >> confdefs.h <<\EOF
14470 #define wxUSE_MEMORY_TRACING 1
14471 EOF
14472
14473 cat >> confdefs.h <<\EOF
14474 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14475 EOF
14476
14477 cat >> confdefs.h <<\EOF
14478 #define wxUSE_DEBUG_NEW_ALWAYS 1
14479 EOF
14480
14481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14482 fi
14483
14484 if test "$wxUSE_DMALLOC" = "yes" ; then
14485 DMALLOC_LINK="-ldmalloc"
14486 fi
14487
14488 PROFILE=
14489 if test "$wxUSE_PROFILE" = "yes" ; then
14490 PROFILE="-pg"
14491 fi
14492
14493 DEP_INFO_FLAGS=
14494 CODE_GEN_FLAGS=
14495 CODE_GEN_FLAGS_CXX=
14496 if test "$GCC" = yes ; then
14497 if test "$wxUSE_NO_RTTI" = "yes" ; then
14498 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14499 fi
14500 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14501 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14502 fi
14503 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14504 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14505 fi
14506 if test "$wxUSE_NO_DEPS" = "no" ; then
14507 DEP_INFO_FLAGS="-MMD"
14508 fi
14509 fi
14510
14511
14512 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14513 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14514 if test "$wxUSE_OPTIMISE" = "no" ; then
14515 OPTIMISE=
14516 else
14517 if test "$GCC" = yes ; then
14518 OPTIMISE="-O2"
14519 case "${host}" in
14520 i586-*-*|i686-*-* )
14521 OPTIMISE="${OPTIMISE} "
14522 ;;
14523 esac
14524 else
14525 OPTIMISE="-O"
14526 fi
14527 fi
14528
14529 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14530 cat >> confdefs.h <<\EOF
14531 #define WXWIN_COMPATIBILITY_2 1
14532 EOF
14533
14534
14535 WXWIN_COMPATIBILITY_2_2="yes"
14536 fi
14537
14538 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14539 cat >> confdefs.h <<\EOF
14540 #define WXWIN_COMPATIBILITY_2_2 1
14541 EOF
14542
14543 fi
14544
14545
14546 ZLIB_INCLUDE=
14547 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
14548 cat >> confdefs.h <<\EOF
14549 #define wxUSE_ZLIB 1
14550 EOF
14551
14552 if test "$wxUSE_ZLIB" = "yes" ; then
14553 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14554 else
14555 ZLIB_LINK=
14556 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14557 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
14558 echo "configure:14559: checking for zlib.h" >&5
14559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14560 echo $ac_n "(cached) $ac_c" 1>&6
14561 else
14562 cat > conftest.$ac_ext <<EOF
14563 #line 14564 "configure"
14564 #include "confdefs.h"
14565 #include <zlib.h>
14566 EOF
14567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14568 { (eval echo configure:14569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14570 if test -z "$ac_err"; then
14571 rm -rf conftest*
14572 eval "ac_cv_header_$ac_safe=yes"
14573 else
14574 echo "$ac_err" >&5
14575 echo "configure: failed program was:" >&5
14576 cat conftest.$ac_ext >&5
14577 rm -rf conftest*
14578 eval "ac_cv_header_$ac_safe=no"
14579 fi
14580 rm -f conftest*
14581 fi
14582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14583 echo "$ac_t""yes" 1>&6
14584 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
14585 echo "configure:14586: checking for deflate in -lz" >&5
14586 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14588 echo $ac_n "(cached) $ac_c" 1>&6
14589 else
14590 ac_save_LIBS="$LIBS"
14591 LIBS="-lz $LIBS"
14592 cat > conftest.$ac_ext <<EOF
14593 #line 14594 "configure"
14594 #include "confdefs.h"
14595 /* Override any gcc2 internal prototype to avoid an error. */
14596 /* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */
14598 char deflate();
14599
14600 int main() {
14601 deflate()
14602 ; return 0; }
14603 EOF
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14605 rm -rf conftest*
14606 eval "ac_cv_lib_$ac_lib_var=yes"
14607 else
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14610 rm -rf conftest*
14611 eval "ac_cv_lib_$ac_lib_var=no"
14612 fi
14613 rm -f conftest*
14614 LIBS="$ac_save_LIBS"
14615
14616 fi
14617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14618 echo "$ac_t""yes" 1>&6
14619 ZLIB_LINK="-lz"
14620 else
14621 echo "$ac_t""no" 1>&6
14622 fi
14623
14624 else
14625 echo "$ac_t""no" 1>&6
14626 fi
14627
14628 if test "x$ZLIB_LINK" = "x" ; then
14629 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
14630 fi
14631 fi
14632 fi
14633
14634 PNG_INCLUDE=
14635 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
14636 cat >> confdefs.h <<\EOF
14637 #define wxUSE_LIBPNG 1
14638 EOF
14639
14640 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
14641 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
14642 wxUSE_LIBPNG=yes
14643 fi
14644
14645 if test "$wxUSE_LIBPNG" = "yes" ; then
14646 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14647 else
14648 PNG_LINK=
14649 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14650 echo $ac_n "checking for png.h""... $ac_c" 1>&6
14651 echo "configure:14652: checking for png.h" >&5
14652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14653 echo $ac_n "(cached) $ac_c" 1>&6
14654 else
14655 cat > conftest.$ac_ext <<EOF
14656 #line 14657 "configure"
14657 #include "confdefs.h"
14658 #include <png.h>
14659 EOF
14660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14661 { (eval echo configure:14662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14663 if test -z "$ac_err"; then
14664 rm -rf conftest*
14665 eval "ac_cv_header_$ac_safe=yes"
14666 else
14667 echo "$ac_err" >&5
14668 echo "configure: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14670 rm -rf conftest*
14671 eval "ac_cv_header_$ac_safe=no"
14672 fi
14673 rm -f conftest*
14674 fi
14675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14676 echo "$ac_t""yes" 1>&6
14677 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
14678 echo "configure:14679: checking for png_check_sig in -lpng" >&5
14679 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14681 echo $ac_n "(cached) $ac_c" 1>&6
14682 else
14683 ac_save_LIBS="$LIBS"
14684 LIBS="-lpng -lz -lm $LIBS"
14685 cat > conftest.$ac_ext <<EOF
14686 #line 14687 "configure"
14687 #include "confdefs.h"
14688 /* Override any gcc2 internal prototype to avoid an error. */
14689 /* We use char because int might match the return type of a gcc2
14690 builtin and then its argument prototype would still apply. */
14691 char png_check_sig();
14692
14693 int main() {
14694 png_check_sig()
14695 ; return 0; }
14696 EOF
14697 if { (eval echo configure:14698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14698 rm -rf conftest*
14699 eval "ac_cv_lib_$ac_lib_var=yes"
14700 else
14701 echo "configure: failed program was:" >&5
14702 cat conftest.$ac_ext >&5
14703 rm -rf conftest*
14704 eval "ac_cv_lib_$ac_lib_var=no"
14705 fi
14706 rm -f conftest*
14707 LIBS="$ac_save_LIBS"
14708
14709 fi
14710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14711 echo "$ac_t""yes" 1>&6
14712 PNG_LINK="-lpng"
14713 else
14714 echo "$ac_t""no" 1>&6
14715 fi
14716
14717
14718 else
14719 echo "$ac_t""no" 1>&6
14720 fi
14721
14722 if test "x$PNG_LINK" = "x" ; then
14723 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
14724 fi
14725 fi
14726
14727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14728 fi
14729
14730 JPEG_INCLUDE=
14731 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
14732 cat >> confdefs.h <<\EOF
14733 #define wxUSE_LIBJPEG 1
14734 EOF
14735
14736 if test "$wxUSE_LIBJPEG" = "yes" ; then
14737 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14738 else
14739 JPEG_LINK=
14740 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
14741 echo "configure:14742: checking for jpeglib.h" >&5
14742 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
14743 echo $ac_n "(cached) $ac_c" 1>&6
14744 else
14745 cat > conftest.$ac_ext <<EOF
14746 #line 14747 "configure"
14747 #include "confdefs.h"
14748
14749 #undef HAVE_STDLIB_H
14750 #include <stdio.h>
14751 #include <jpeglib.h>
14752
14753 int main() {
14754
14755
14756 ; return 0; }
14757 EOF
14758 if { (eval echo configure:14759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14759 rm -rf conftest*
14760 ac_cv_header_jpeglib_h=yes
14761 else
14762 echo "configure: failed program was:" >&5
14763 cat conftest.$ac_ext >&5
14764 rm -rf conftest*
14765 ac_cv_header_jpeglib_h=no
14766
14767 fi
14768 rm -f conftest*
14769
14770 fi
14771
14772 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
14773
14774 if test "$ac_cv_header_jpeglib_h" = "yes"; then
14775 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
14776 echo "configure:14777: checking for jpeg_read_header in -ljpeg" >&5
14777 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14779 echo $ac_n "(cached) $ac_c" 1>&6
14780 else
14781 ac_save_LIBS="$LIBS"
14782 LIBS="-ljpeg $LIBS"
14783 cat > conftest.$ac_ext <<EOF
14784 #line 14785 "configure"
14785 #include "confdefs.h"
14786 /* Override any gcc2 internal prototype to avoid an error. */
14787 /* We use char because int might match the return type of a gcc2
14788 builtin and then its argument prototype would still apply. */
14789 char jpeg_read_header();
14790
14791 int main() {
14792 jpeg_read_header()
14793 ; return 0; }
14794 EOF
14795 if { (eval echo configure:14796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14796 rm -rf conftest*
14797 eval "ac_cv_lib_$ac_lib_var=yes"
14798 else
14799 echo "configure: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
14801 rm -rf conftest*
14802 eval "ac_cv_lib_$ac_lib_var=no"
14803 fi
14804 rm -f conftest*
14805 LIBS="$ac_save_LIBS"
14806
14807 fi
14808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14809 echo "$ac_t""yes" 1>&6
14810 JPEG_LINK="-ljpeg"
14811 else
14812 echo "$ac_t""no" 1>&6
14813 fi
14814
14815 fi
14816
14817 if test "x$JPEG_LINK" = "x" ; then
14818 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
14819 fi
14820 fi
14821 fi
14822
14823 TIFF_INCLUDE=
14824 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
14825 cat >> confdefs.h <<\EOF
14826 #define wxUSE_LIBTIFF 1
14827 EOF
14828
14829 if test "$wxUSE_LIBTIFF" = "yes" ; then
14830 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14831 else
14832 TIFF_LINK=
14833 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14834 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
14835 echo "configure:14836: checking for tiffio.h" >&5
14836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14837 echo $ac_n "(cached) $ac_c" 1>&6
14838 else
14839 cat > conftest.$ac_ext <<EOF
14840 #line 14841 "configure"
14841 #include "confdefs.h"
14842 #include <tiffio.h>
14843 EOF
14844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14845 { (eval echo configure:14846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14847 if test -z "$ac_err"; then
14848 rm -rf conftest*
14849 eval "ac_cv_header_$ac_safe=yes"
14850 else
14851 echo "$ac_err" >&5
14852 echo "configure: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14854 rm -rf conftest*
14855 eval "ac_cv_header_$ac_safe=no"
14856 fi
14857 rm -f conftest*
14858 fi
14859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14860 echo "$ac_t""yes" 1>&6
14861 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
14862 echo "configure:14863: checking for TIFFError in -ltiff" >&5
14863 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14865 echo $ac_n "(cached) $ac_c" 1>&6
14866 else
14867 ac_save_LIBS="$LIBS"
14868 LIBS="-ltiff -lm $LIBS"
14869 cat > conftest.$ac_ext <<EOF
14870 #line 14871 "configure"
14871 #include "confdefs.h"
14872 /* Override any gcc2 internal prototype to avoid an error. */
14873 /* We use char because int might match the return type of a gcc2
14874 builtin and then its argument prototype would still apply. */
14875 char TIFFError();
14876
14877 int main() {
14878 TIFFError()
14879 ; return 0; }
14880 EOF
14881 if { (eval echo configure:14882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14882 rm -rf conftest*
14883 eval "ac_cv_lib_$ac_lib_var=yes"
14884 else
14885 echo "configure: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14887 rm -rf conftest*
14888 eval "ac_cv_lib_$ac_lib_var=no"
14889 fi
14890 rm -f conftest*
14891 LIBS="$ac_save_LIBS"
14892
14893 fi
14894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14895 echo "$ac_t""yes" 1>&6
14896 TIFF_LINK="-ltiff"
14897 else
14898 echo "$ac_t""no" 1>&6
14899 fi
14900
14901 else
14902 echo "$ac_t""no" 1>&6
14903 fi
14904
14905 if test "x$TIFF_LINK" = "x" ; then
14906 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
14907 fi
14908 fi
14909 fi
14910
14911 FREETYPE_INCLUDE=
14912 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
14913 cat >> confdefs.h <<\EOF
14914 #define wxUSE_FREETYPE 1
14915 EOF
14916
14917 if test "$wxUSE_FREETYPE" = "yes" ; then
14918 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14919 else
14920 FREETYPE_LINK=
14921 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14922 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
14923 echo "configure:14924: checking for freetype.h" >&5
14924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14925 echo $ac_n "(cached) $ac_c" 1>&6
14926 else
14927 cat > conftest.$ac_ext <<EOF
14928 #line 14929 "configure"
14929 #include "confdefs.h"
14930 #include <freetype.h>
14931 EOF
14932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14933 { (eval echo configure:14934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14935 if test -z "$ac_err"; then
14936 rm -rf conftest*
14937 eval "ac_cv_header_$ac_safe=yes"
14938 else
14939 echo "$ac_err" >&5
14940 echo "configure: failed program was:" >&5
14941 cat conftest.$ac_ext >&5
14942 rm -rf conftest*
14943 eval "ac_cv_header_$ac_safe=no"
14944 fi
14945 rm -f conftest*
14946 fi
14947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14948 echo "$ac_t""yes" 1>&6
14949 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
14950 echo "configure:14951: checking for FT_Render_Glyph in -lfreetype" >&5
14951 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14953 echo $ac_n "(cached) $ac_c" 1>&6
14954 else
14955 ac_save_LIBS="$LIBS"
14956 LIBS="-lfreetype -lm $LIBS"
14957 cat > conftest.$ac_ext <<EOF
14958 #line 14959 "configure"
14959 #include "confdefs.h"
14960 /* Override any gcc2 internal prototype to avoid an error. */
14961 /* We use char because int might match the return type of a gcc2
14962 builtin and then its argument prototype would still apply. */
14963 char FT_Render_Glyph();
14964
14965 int main() {
14966 FT_Render_Glyph()
14967 ; return 0; }
14968 EOF
14969 if { (eval echo configure:14970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14970 rm -rf conftest*
14971 eval "ac_cv_lib_$ac_lib_var=yes"
14972 else
14973 echo "configure: failed program was:" >&5
14974 cat conftest.$ac_ext >&5
14975 rm -rf conftest*
14976 eval "ac_cv_lib_$ac_lib_var=no"
14977 fi
14978 rm -f conftest*
14979 LIBS="$ac_save_LIBS"
14980
14981 fi
14982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14983 echo "$ac_t""yes" 1>&6
14984 FREETYPE_LINK="-lfreetype"
14985 else
14986 echo "$ac_t""no" 1>&6
14987 fi
14988
14989
14990 else
14991 echo "$ac_t""no" 1>&6
14992 fi
14993
14994 if test "x$FREETYPE_LINK" = "x" ; then
14995 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
14996 fi
14997 fi
14998 fi
14999
15000 if test "$wxUSE_OPENGL" = "yes"; then
15001 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15002 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15003 echo "configure:15004: checking for GL/gl.h" >&5
15004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15005 echo $ac_n "(cached) $ac_c" 1>&6
15006 else
15007 cat > conftest.$ac_ext <<EOF
15008 #line 15009 "configure"
15009 #include "confdefs.h"
15010 #include <GL/gl.h>
15011 EOF
15012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15013 { (eval echo configure:15014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15015 if test -z "$ac_err"; then
15016 rm -rf conftest*
15017 eval "ac_cv_header_$ac_safe=yes"
15018 else
15019 echo "$ac_err" >&5
15020 echo "configure: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15022 rm -rf conftest*
15023 eval "ac_cv_header_$ac_safe=no"
15024 fi
15025 rm -f conftest*
15026 fi
15027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15028 echo "$ac_t""yes" 1>&6
15029
15030 cat >> confdefs.h <<\EOF
15031 #define wxUSE_OPENGL 1
15032 EOF
15033
15034 cat >> confdefs.h <<\EOF
15035 #define wxUSE_GLCANVAS 1
15036 EOF
15037
15038 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
15039 echo "configure:15040: checking for glFlush in -lGL" >&5
15040 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15042 echo $ac_n "(cached) $ac_c" 1>&6
15043 else
15044 ac_save_LIBS="$LIBS"
15045 LIBS="-lGL $LIBS"
15046 cat > conftest.$ac_ext <<EOF
15047 #line 15048 "configure"
15048 #include "confdefs.h"
15049 /* Override any gcc2 internal prototype to avoid an error. */
15050 /* We use char because int might match the return type of a gcc2
15051 builtin and then its argument prototype would still apply. */
15052 char glFlush();
15053
15054 int main() {
15055 glFlush()
15056 ; return 0; }
15057 EOF
15058 if { (eval echo configure:15059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15059 rm -rf conftest*
15060 eval "ac_cv_lib_$ac_lib_var=yes"
15061 else
15062 echo "configure: failed program was:" >&5
15063 cat conftest.$ac_ext >&5
15064 rm -rf conftest*
15065 eval "ac_cv_lib_$ac_lib_var=no"
15066 fi
15067 rm -f conftest*
15068 LIBS="$ac_save_LIBS"
15069
15070 fi
15071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15072 echo "$ac_t""yes" 1>&6
15073
15074 OPENGL_LINK="-lGL -lGLU"
15075
15076 else
15077 echo "$ac_t""no" 1>&6
15078
15079 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
15080 echo "configure:15081: checking for glFlush in -lMesaGL" >&5
15081 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15083 echo $ac_n "(cached) $ac_c" 1>&6
15084 else
15085 ac_save_LIBS="$LIBS"
15086 LIBS="-lMesaGL $LIBS"
15087 cat > conftest.$ac_ext <<EOF
15088 #line 15089 "configure"
15089 #include "confdefs.h"
15090 /* Override any gcc2 internal prototype to avoid an error. */
15091 /* We use char because int might match the return type of a gcc2
15092 builtin and then its argument prototype would still apply. */
15093 char glFlush();
15094
15095 int main() {
15096 glFlush()
15097 ; return 0; }
15098 EOF
15099 if { (eval echo configure:15100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15100 rm -rf conftest*
15101 eval "ac_cv_lib_$ac_lib_var=yes"
15102 else
15103 echo "configure: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15105 rm -rf conftest*
15106 eval "ac_cv_lib_$ac_lib_var=no"
15107 fi
15108 rm -f conftest*
15109 LIBS="$ac_save_LIBS"
15110
15111 fi
15112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15113 echo "$ac_t""yes" 1>&6
15114
15115 OPENGL_LINK="-lMesaGL -lMesaGLU"
15116
15117 else
15118 echo "$ac_t""no" 1>&6
15119 fi
15120
15121
15122 fi
15123
15124
15125 else
15126 echo "$ac_t""no" 1>&6
15127 wxUSE_OPENGL=0
15128 fi
15129
15130 fi
15131
15132
15133 if test "$wxUSE_GUI" = "yes"; then
15134 cat >> confdefs.h <<\EOF
15135 #define wxUSE_GUI 1
15136 EOF
15137
15138
15139 else
15140 cat >> confdefs.h <<\EOF
15141 #define wxUSE_NOGUI 1
15142 EOF
15143
15144 fi
15145
15146
15147 if test "$wxUSE_UNIX" = "yes"; then
15148 cat >> confdefs.h <<\EOF
15149 #define wxUSE_UNIX 1
15150 EOF
15151
15152 fi
15153
15154
15155 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15156 cat >> confdefs.h <<\EOF
15157 #define wxUSE_APPLE_IEEE 1
15158 EOF
15159
15160 fi
15161
15162 if test "$wxUSE_TIMER" = "yes"; then
15163 cat >> confdefs.h <<\EOF
15164 #define wxUSE_TIMER 1
15165 EOF
15166
15167 fi
15168
15169 if test "$wxUSE_WAVE" = "yes"; then
15170 cat >> confdefs.h <<\EOF
15171 #define wxUSE_WAVE 1
15172 EOF
15173
15174 fi
15175
15176 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15177 cat >> confdefs.h <<\EOF
15178 #define wxUSE_CMDLINE_PARSER 1
15179 EOF
15180
15181 fi
15182
15183 if test "$wxUSE_STOPWATCH" = "yes"; then
15184 cat >> confdefs.h <<\EOF
15185 #define wxUSE_STOPWATCH 1
15186 EOF
15187
15188 fi
15189
15190 if test "$wxUSE_DATETIME" = "yes"; then
15191 cat >> confdefs.h <<\EOF
15192 #define wxUSE_DATETIME 1
15193 EOF
15194
15195 fi
15196
15197 if test "$wxUSE_TIMEDATE" = "yes"; then
15198 cat >> confdefs.h <<\EOF
15199 #define wxUSE_TIMEDATE 1
15200 EOF
15201
15202 fi
15203
15204 if test "$wxUSE_FILE" = "yes"; then
15205 cat >> confdefs.h <<\EOF
15206 #define wxUSE_FILE 1
15207 EOF
15208
15209 fi
15210
15211 if test "$wxUSE_FFILE" = "yes"; then
15212 cat >> confdefs.h <<\EOF
15213 #define wxUSE_FFILE 1
15214 EOF
15215
15216 fi
15217
15218 if test "$wxUSE_FILESYSTEM" = "yes"; then
15219 cat >> confdefs.h <<\EOF
15220 #define wxUSE_FILESYSTEM 1
15221 EOF
15222
15223 fi
15224
15225 if test "$wxUSE_FS_INET" = "yes"; then
15226 cat >> confdefs.h <<\EOF
15227 #define wxUSE_FS_INET 1
15228 EOF
15229
15230 fi
15231
15232 if test "$wxUSE_FS_ZIP" = "yes"; then
15233 cat >> confdefs.h <<\EOF
15234 #define wxUSE_FS_ZIP 1
15235 EOF
15236
15237 fi
15238
15239 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15240 cat >> confdefs.h <<\EOF
15241 #define wxUSE_ZIPSTREAM 1
15242 EOF
15243
15244 fi
15245
15246 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15247 cat >> confdefs.h <<\EOF
15248 #define wxUSE_ON_FATAL_EXCEPTION 1
15249 EOF
15250
15251 fi
15252
15253 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15254 cat >> confdefs.h <<\EOF
15255 #define wxUSE_SNGLINST_CHECKER 1
15256 EOF
15257
15258 fi
15259
15260 if test "$wxUSE_BUSYINFO" = "yes"; then
15261 cat >> confdefs.h <<\EOF
15262 #define wxUSE_BUSYINFO 1
15263 EOF
15264
15265 fi
15266
15267 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15268 cat >> confdefs.h <<\EOF
15269 #define wxUSE_STD_IOSTREAM 1
15270 EOF
15271
15272 fi
15273
15274 if test "$wxUSE_TEXTFILE" = "yes"; then
15275 if test "$wxUSE_FILE" != "yes"; then
15276 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15277 else
15278 cat >> confdefs.h <<\EOF
15279 #define wxUSE_TEXTFILE 1
15280 EOF
15281
15282 fi
15283 fi
15284
15285 if test "$wxUSE_CONFIG" = "yes" ; then
15286 if test "$wxUSE_TEXTFILE" != "yes"; then
15287 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15288 else
15289 cat >> confdefs.h <<\EOF
15290 #define wxUSE_CONFIG 1
15291 EOF
15292
15293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15294 fi
15295 fi
15296
15297 if test "$wxUSE_INTL" = "yes" ; then
15298 if test "$wxUSE_FILE" != "yes"; then
15299 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15300 else
15301 cat >> confdefs.h <<\EOF
15302 #define wxUSE_INTL 1
15303 EOF
15304
15305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15306 GUIDIST="$GUIDIST INTL_DIST"
15307 fi
15308 fi
15309
15310 if test "$wxUSE_LOG" = "yes"; then
15311 cat >> confdefs.h <<\EOF
15312 #define wxUSE_LOG 1
15313 EOF
15314
15315
15316 if test "$wxUSE_LOGGUI" = "yes"; then
15317 cat >> confdefs.h <<\EOF
15318 #define wxUSE_LOGGUI 1
15319 EOF
15320
15321 fi
15322
15323 if test "$wxUSE_LOGWINDOW" = "yes"; then
15324 cat >> confdefs.h <<\EOF
15325 #define wxUSE_LOGWINDOW 1
15326 EOF
15327
15328 fi
15329 fi
15330
15331 if test "$wxUSE_LONGLONG" = "yes"; then
15332 cat >> confdefs.h <<\EOF
15333 #define wxUSE_LONGLONG 1
15334 EOF
15335
15336 fi
15337
15338 if test "$wxUSE_GEOMETRY" = "yes"; then
15339 cat >> confdefs.h <<\EOF
15340 #define wxUSE_GEOMETRY 1
15341 EOF
15342
15343 fi
15344
15345 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15346 cat >> confdefs.h <<\EOF
15347 #define wxUSE_DIALUP_MANAGER 1
15348 EOF
15349
15350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15351 fi
15352
15353 if test "$wxUSE_STREAMS" = "yes" ; then
15354 cat >> confdefs.h <<\EOF
15355 #define wxUSE_STREAMS 1
15356 EOF
15357
15358 fi
15359
15360
15361 if test "$wxUSE_DATETIME" = "yes"; then
15362 for ac_func in strptime
15363 do
15364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15365 echo "configure:15366: checking for $ac_func" >&5
15366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15367 echo $ac_n "(cached) $ac_c" 1>&6
15368 else
15369 cat > conftest.$ac_ext <<EOF
15370 #line 15371 "configure"
15371 #include "confdefs.h"
15372 /* System header to define __stub macros and hopefully few prototypes,
15373 which can conflict with char $ac_func(); below. */
15374 #include <assert.h>
15375 /* Override any gcc2 internal prototype to avoid an error. */
15376 /* We use char because int might match the return type of a gcc2
15377 builtin and then its argument prototype would still apply. */
15378 char $ac_func();
15379
15380 int main() {
15381
15382 /* The GNU C library defines this for functions which it implements
15383 to always fail with ENOSYS. Some functions are actually named
15384 something starting with __ and the normal name is an alias. */
15385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15386 choke me
15387 #else
15388 $ac_func();
15389 #endif
15390
15391 ; return 0; }
15392 EOF
15393 if { (eval echo configure:15394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15394 rm -rf conftest*
15395 eval "ac_cv_func_$ac_func=yes"
15396 else
15397 echo "configure: failed program was:" >&5
15398 cat conftest.$ac_ext >&5
15399 rm -rf conftest*
15400 eval "ac_cv_func_$ac_func=no"
15401 fi
15402 rm -f conftest*
15403 fi
15404
15405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15406 echo "$ac_t""yes" 1>&6
15407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15408 cat >> confdefs.h <<EOF
15409 #define $ac_tr_func 1
15410 EOF
15411
15412 else
15413 echo "$ac_t""no" 1>&6
15414 fi
15415 done
15416
15417
15418 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15419 echo "configure:15420: checking for timezone variable in <time.h>" >&5
15420 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15421 echo $ac_n "(cached) $ac_c" 1>&6
15422 else
15423
15424 cat > conftest.$ac_ext <<EOF
15425 #line 15426 "configure"
15426 #include "confdefs.h"
15427
15428 #include <time.h>
15429
15430 int main() {
15431
15432 int tz;
15433 tz = __timezone;
15434
15435 ; return 0; }
15436 EOF
15437 if { (eval echo configure:15438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15438 rm -rf conftest*
15439
15440 wx_cv_var_timezone=__timezone
15441
15442 else
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15445 rm -rf conftest*
15446
15447 cat > conftest.$ac_ext <<EOF
15448 #line 15449 "configure"
15449 #include "confdefs.h"
15450
15451 #include <time.h>
15452
15453 int main() {
15454
15455 int tz;
15456 tz = _timezone;
15457
15458 ; return 0; }
15459 EOF
15460 if { (eval echo configure:15461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15461 rm -rf conftest*
15462
15463 wx_cv_var_timezone=_timezone
15464
15465 else
15466 echo "configure: failed program was:" >&5
15467 cat conftest.$ac_ext >&5
15468 rm -rf conftest*
15469
15470 cat > conftest.$ac_ext <<EOF
15471 #line 15472 "configure"
15472 #include "confdefs.h"
15473
15474 #include <time.h>
15475
15476 int main() {
15477
15478 int tz;
15479 tz = timezone;
15480
15481 ; return 0; }
15482 EOF
15483 if { (eval echo configure:15484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15484 rm -rf conftest*
15485
15486 wx_cv_var_timezone=timezone
15487
15488 else
15489 echo "configure: failed program was:" >&5
15490 cat conftest.$ac_ext >&5
15491 rm -rf conftest*
15492 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15493
15494 fi
15495 rm -f conftest*
15496
15497
15498 fi
15499 rm -f conftest*
15500
15501
15502 fi
15503 rm -f conftest*
15504
15505
15506 fi
15507
15508 echo "$ac_t""$wx_cv_var_timezone" 1>&6
15509
15510 cat >> confdefs.h <<EOF
15511 #define WX_TIMEZONE $wx_cv_var_timezone
15512 EOF
15513
15514
15515 for ac_func in localtime
15516 do
15517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15518 echo "configure:15519: checking for $ac_func" >&5
15519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15520 echo $ac_n "(cached) $ac_c" 1>&6
15521 else
15522 cat > conftest.$ac_ext <<EOF
15523 #line 15524 "configure"
15524 #include "confdefs.h"
15525 /* System header to define __stub macros and hopefully few prototypes,
15526 which can conflict with char $ac_func(); below. */
15527 #include <assert.h>
15528 /* Override any gcc2 internal prototype to avoid an error. */
15529 /* We use char because int might match the return type of a gcc2
15530 builtin and then its argument prototype would still apply. */
15531 char $ac_func();
15532
15533 int main() {
15534
15535 /* The GNU C library defines this for functions which it implements
15536 to always fail with ENOSYS. Some functions are actually named
15537 something starting with __ and the normal name is an alias. */
15538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15539 choke me
15540 #else
15541 $ac_func();
15542 #endif
15543
15544 ; return 0; }
15545 EOF
15546 if { (eval echo configure:15547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15547 rm -rf conftest*
15548 eval "ac_cv_func_$ac_func=yes"
15549 else
15550 echo "configure: failed program was:" >&5
15551 cat conftest.$ac_ext >&5
15552 rm -rf conftest*
15553 eval "ac_cv_func_$ac_func=no"
15554 fi
15555 rm -f conftest*
15556 fi
15557
15558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15559 echo "$ac_t""yes" 1>&6
15560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15561 cat >> confdefs.h <<EOF
15562 #define $ac_tr_func 1
15563 EOF
15564
15565 else
15566 echo "$ac_t""no" 1>&6
15567 fi
15568 done
15569
15570
15571 if test "$ac_cv_func_localtime" = "yes"; then
15572 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
15573 echo "configure:15574: checking for tm_gmtoff in struct tm" >&5
15574 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15575 echo $ac_n "(cached) $ac_c" 1>&6
15576 else
15577
15578 cat > conftest.$ac_ext <<EOF
15579 #line 15580 "configure"
15580 #include "confdefs.h"
15581
15582 #include <time.h>
15583
15584 int main() {
15585
15586 struct tm tm;
15587 tm.tm_gmtoff++;
15588
15589 ; return 0; }
15590 EOF
15591 if { (eval echo configure:15592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15592 rm -rf conftest*
15593
15594 wx_cv_struct_tm_has_gmtoff=yes
15595
15596 else
15597 echo "configure: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15599 rm -rf conftest*
15600 wx_cv_struct_tm_has_gmtoff=no
15601
15602 fi
15603 rm -f conftest*
15604
15605 fi
15606
15607 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
15608 fi
15609
15610 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
15611 cat >> confdefs.h <<\EOF
15612 #define WX_GMTOFF_IN_TM 1
15613 EOF
15614
15615 fi
15616
15617 for ac_func in gettimeofday ftime
15618 do
15619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15620 echo "configure:15621: checking for $ac_func" >&5
15621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15622 echo $ac_n "(cached) $ac_c" 1>&6
15623 else
15624 cat > conftest.$ac_ext <<EOF
15625 #line 15626 "configure"
15626 #include "confdefs.h"
15627 /* System header to define __stub macros and hopefully few prototypes,
15628 which can conflict with char $ac_func(); below. */
15629 #include <assert.h>
15630 /* Override any gcc2 internal prototype to avoid an error. */
15631 /* We use char because int might match the return type of a gcc2
15632 builtin and then its argument prototype would still apply. */
15633 char $ac_func();
15634
15635 int main() {
15636
15637 /* The GNU C library defines this for functions which it implements
15638 to always fail with ENOSYS. Some functions are actually named
15639 something starting with __ and the normal name is an alias. */
15640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15641 choke me
15642 #else
15643 $ac_func();
15644 #endif
15645
15646 ; return 0; }
15647 EOF
15648 if { (eval echo configure:15649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15649 rm -rf conftest*
15650 eval "ac_cv_func_$ac_func=yes"
15651 else
15652 echo "configure: failed program was:" >&5
15653 cat conftest.$ac_ext >&5
15654 rm -rf conftest*
15655 eval "ac_cv_func_$ac_func=no"
15656 fi
15657 rm -f conftest*
15658 fi
15659
15660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15661 echo "$ac_t""yes" 1>&6
15662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15663 cat >> confdefs.h <<EOF
15664 #define $ac_tr_func 1
15665 EOF
15666 break
15667 else
15668 echo "$ac_t""no" 1>&6
15669 fi
15670 done
15671
15672
15673 if test "$ac_cv_func_gettimeofday" = "yes"; then
15674 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
15675 echo "configure:15676: checking whether gettimeofday takes two arguments" >&5
15676 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15677 echo $ac_n "(cached) $ac_c" 1>&6
15678 else
15679
15680
15681 ac_ext=C
15682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15683 ac_cpp='$CXXCPP $CPPFLAGS'
15684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15686 cross_compiling=$ac_cv_prog_cxx_cross
15687
15688
15689 cat > conftest.$ac_ext <<EOF
15690 #line 15691 "configure"
15691 #include "confdefs.h"
15692
15693 #include <sys/time.h>
15694 #include <unistd.h>
15695
15696 int main() {
15697
15698 struct timeval tv;
15699 struct timezone tz;
15700 gettimeofday(&tv, &tz);
15701
15702 ; return 0; }
15703 EOF
15704 if { (eval echo configure:15705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15705 rm -rf conftest*
15706 wx_cv_func_gettimeofday_has_2_args=yes
15707 else
15708 echo "configure: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 rm -rf conftest*
15711 cat > conftest.$ac_ext <<EOF
15712 #line 15713 "configure"
15713 #include "confdefs.h"
15714
15715 #include <sys/time.h>
15716 #include <unistd.h>
15717
15718 int main() {
15719
15720 struct timeval tv;
15721 gettimeofday(&tv);
15722
15723 ; return 0; }
15724 EOF
15725 if { (eval echo configure:15726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15726 rm -rf conftest*
15727 wx_cv_func_gettimeofday_has_2_args=no
15728 else
15729 echo "configure: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15731 rm -rf conftest*
15732 wx_cv_func_gettimeofday_has_2_args=unknown
15733
15734 fi
15735 rm -f conftest*
15736
15737 fi
15738 rm -f conftest*
15739 ac_ext=c
15740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15741 ac_cpp='$CPP $CPPFLAGS'
15742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15744 cross_compiling=$ac_cv_prog_cc_cross
15745
15746
15747 fi
15748
15749 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
15750
15751 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
15752 cat >> confdefs.h <<\EOF
15753 #define WX_GETTIMEOFDAY_NO_TZ 1
15754 EOF
15755
15756 fi
15757 fi
15758
15759 cat >> confdefs.h <<\EOF
15760 #define wxUSE_TIMEDATE 1
15761 EOF
15762
15763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15764 fi
15765
15766
15767 if test "$TOOLKIT" != "MSW"; then
15768
15769 if test "$wxUSE_SOCKETS" = "yes"; then
15770 echo $ac_n "checking for socket""... $ac_c" 1>&6
15771 echo "configure:15772: checking for socket" >&5
15772 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15773 echo $ac_n "(cached) $ac_c" 1>&6
15774 else
15775 cat > conftest.$ac_ext <<EOF
15776 #line 15777 "configure"
15777 #include "confdefs.h"
15778 /* System header to define __stub macros and hopefully few prototypes,
15779 which can conflict with char socket(); below. */
15780 #include <assert.h>
15781 /* Override any gcc2 internal prototype to avoid an error. */
15782 /* We use char because int might match the return type of a gcc2
15783 builtin and then its argument prototype would still apply. */
15784 char socket();
15785
15786 int main() {
15787
15788 /* The GNU C library defines this for functions which it implements
15789 to always fail with ENOSYS. Some functions are actually named
15790 something starting with __ and the normal name is an alias. */
15791 #if defined (__stub_socket) || defined (__stub___socket)
15792 choke me
15793 #else
15794 socket();
15795 #endif
15796
15797 ; return 0; }
15798 EOF
15799 if { (eval echo configure:15800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15800 rm -rf conftest*
15801 eval "ac_cv_func_socket=yes"
15802 else
15803 echo "configure: failed program was:" >&5
15804 cat conftest.$ac_ext >&5
15805 rm -rf conftest*
15806 eval "ac_cv_func_socket=no"
15807 fi
15808 rm -f conftest*
15809 fi
15810
15811 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15812 echo "$ac_t""yes" 1>&6
15813 :
15814 else
15815 echo "$ac_t""no" 1>&6
15816 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
15817 echo "configure:15818: checking for socket in -lsocket" >&5
15818 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15820 echo $ac_n "(cached) $ac_c" 1>&6
15821 else
15822 ac_save_LIBS="$LIBS"
15823 LIBS="-lsocket $LIBS"
15824 cat > conftest.$ac_ext <<EOF
15825 #line 15826 "configure"
15826 #include "confdefs.h"
15827 /* Override any gcc2 internal prototype to avoid an error. */
15828 /* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15830 char socket();
15831
15832 int main() {
15833 socket()
15834 ; return 0; }
15835 EOF
15836 if { (eval echo configure:15837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15837 rm -rf conftest*
15838 eval "ac_cv_lib_$ac_lib_var=yes"
15839 else
15840 echo "configure: failed program was:" >&5
15841 cat conftest.$ac_ext >&5
15842 rm -rf conftest*
15843 eval "ac_cv_lib_$ac_lib_var=no"
15844 fi
15845 rm -f conftest*
15846 LIBS="$ac_save_LIBS"
15847
15848 fi
15849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15850 echo "$ac_t""yes" 1>&6
15851 INET_LINK="$INET_LINK -lsocket"
15852 else
15853 echo "$ac_t""no" 1>&6
15854
15855 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
15856 wxUSE_SOCKETS=no
15857
15858
15859 fi
15860
15861
15862 fi
15863
15864 fi
15865
15866
15867 if test "$wxUSE_SOCKETS" = "yes" ; then
15868 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
15869 echo "configure:15870: checking what is the type of the third argument of getsockname" >&5
15870 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15871 echo $ac_n "(cached) $ac_c" 1>&6
15872 else
15873
15874
15875 ac_ext=C
15876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15877 ac_cpp='$CXXCPP $CPPFLAGS'
15878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15880 cross_compiling=$ac_cv_prog_cxx_cross
15881
15882
15883 cat > conftest.$ac_ext <<EOF
15884 #line 15885 "configure"
15885 #include "confdefs.h"
15886
15887 #include <sys/types.h>
15888 #include <sys/socket.h>
15889
15890 int main() {
15891
15892 socklen_t len;
15893 getsockname(0, 0, &len);
15894
15895 ; return 0; }
15896 EOF
15897 if { (eval echo configure:15898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15898 rm -rf conftest*
15899 wx_cv_type_getsockname3=socklen_t
15900 else
15901 echo "configure: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15903 rm -rf conftest*
15904 cat > conftest.$ac_ext <<EOF
15905 #line 15906 "configure"
15906 #include "confdefs.h"
15907
15908 #include <sys/types.h>
15909 #include <sys/socket.h>
15910
15911 int main() {
15912
15913 size_t len;
15914 getsockname(0, 0, &len);
15915
15916 ; return 0; }
15917 EOF
15918 if { (eval echo configure:15919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15919 rm -rf conftest*
15920 wx_cv_type_getsockname3=size_t
15921 else
15922 echo "configure: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15924 rm -rf conftest*
15925 cat > conftest.$ac_ext <<EOF
15926 #line 15927 "configure"
15927 #include "confdefs.h"
15928
15929 #include <sys/types.h>
15930 #include <sys/socket.h>
15931
15932 int main() {
15933
15934 int len;
15935 getsockname(0, 0, &len);
15936
15937 ; return 0; }
15938 EOF
15939 if { (eval echo configure:15940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15940 rm -rf conftest*
15941 wx_cv_type_getsockname3=int
15942 else
15943 echo "configure: failed program was:" >&5
15944 cat conftest.$ac_ext >&5
15945 rm -rf conftest*
15946 wx_cv_type_getsockname3=unknown
15947
15948 fi
15949 rm -f conftest*
15950
15951 fi
15952 rm -f conftest*
15953
15954 fi
15955 rm -f conftest*
15956
15957 ac_ext=c
15958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15959 ac_cpp='$CPP $CPPFLAGS'
15960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15962 cross_compiling=$ac_cv_prog_cc_cross
15963
15964
15965 fi
15966
15967 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
15968
15969 if test "$wx_cv_type_getsockname3" = "unknown"; then
15970 wxUSE_SOCKETS=no
15971 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
15972 else
15973 cat >> confdefs.h <<EOF
15974 #define SOCKLEN_T $wx_cv_type_getsockname3
15975 EOF
15976
15977 fi
15978 fi
15979
15980 fi
15981
15982 if test "$wxUSE_SOCKETS" = "yes" ; then
15983 cat >> confdefs.h <<\EOF
15984 #define wxUSE_SOCKETS 1
15985 EOF
15986
15987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
15988 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15989 fi
15990
15991
15992 if test "$wxUSE_GUI" = "yes"; then
15993
15994 if test "$TOOLKIT" != "MSW"; then
15995
15996 if test "$wxUSE_JOYSTICK" = "yes"; then
15997 for ac_hdr in linux/joystick.h
15998 do
15999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16001 echo "configure:16002: checking for $ac_hdr" >&5
16002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16003 echo $ac_n "(cached) $ac_c" 1>&6
16004 else
16005 cat > conftest.$ac_ext <<EOF
16006 #line 16007 "configure"
16007 #include "confdefs.h"
16008 #include <$ac_hdr>
16009 EOF
16010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16011 { (eval echo configure:16012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16013 if test -z "$ac_err"; then
16014 rm -rf conftest*
16015 eval "ac_cv_header_$ac_safe=yes"
16016 else
16017 echo "$ac_err" >&5
16018 echo "configure: failed program was:" >&5
16019 cat conftest.$ac_ext >&5
16020 rm -rf conftest*
16021 eval "ac_cv_header_$ac_safe=no"
16022 fi
16023 rm -f conftest*
16024 fi
16025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16026 echo "$ac_t""yes" 1>&6
16027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16028 cat >> confdefs.h <<EOF
16029 #define $ac_tr_hdr 1
16030 EOF
16031
16032 else
16033 echo "$ac_t""no" 1>&6
16034 fi
16035 done
16036
16037 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16038 wxUSE_JOYSTICK=no
16039 echo "configure: warning: Joystick not supported by this system" 1>&2
16040 fi
16041 fi
16042
16043 fi
16044
16045 if test "$wxUSE_JOYSTICK" = "yes"; then
16046 cat >> confdefs.h <<\EOF
16047 #define wxUSE_JOYSTICK 1
16048 EOF
16049
16050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16051 fi
16052
16053 fi
16054
16055
16056 if test "$TOOLKIT" != "MSW"; then
16057
16058 HAVE_DL_FUNCS=0
16059 HAVE_SHL_FUNCS=0
16060 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16061 if test "$USE_MAC" = 1; then
16062 HAVE_DL_FUNCS=1
16063 else
16064 for ac_func in dlopen
16065 do
16066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16067 echo "configure:16068: checking for $ac_func" >&5
16068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16069 echo $ac_n "(cached) $ac_c" 1>&6
16070 else
16071 cat > conftest.$ac_ext <<EOF
16072 #line 16073 "configure"
16073 #include "confdefs.h"
16074 /* System header to define __stub macros and hopefully few prototypes,
16075 which can conflict with char $ac_func(); below. */
16076 #include <assert.h>
16077 /* Override any gcc2 internal prototype to avoid an error. */
16078 /* We use char because int might match the return type of a gcc2
16079 builtin and then its argument prototype would still apply. */
16080 char $ac_func();
16081
16082 int main() {
16083
16084 /* The GNU C library defines this for functions which it implements
16085 to always fail with ENOSYS. Some functions are actually named
16086 something starting with __ and the normal name is an alias. */
16087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16088 choke me
16089 #else
16090 $ac_func();
16091 #endif
16092
16093 ; return 0; }
16094 EOF
16095 if { (eval echo configure:16096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16096 rm -rf conftest*
16097 eval "ac_cv_func_$ac_func=yes"
16098 else
16099 echo "configure: failed program was:" >&5
16100 cat conftest.$ac_ext >&5
16101 rm -rf conftest*
16102 eval "ac_cv_func_$ac_func=no"
16103 fi
16104 rm -f conftest*
16105 fi
16106
16107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16108 echo "$ac_t""yes" 1>&6
16109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16110 cat >> confdefs.h <<EOF
16111 #define $ac_tr_func 1
16112 EOF
16113
16114 cat >> confdefs.h <<\EOF
16115 #define HAVE_DLOPEN 1
16116 EOF
16117
16118 HAVE_DL_FUNCS=1
16119
16120 else
16121 echo "$ac_t""no" 1>&6
16122 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16123 echo "configure:16124: checking for dlopen in -ldl" >&5
16124 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16126 echo $ac_n "(cached) $ac_c" 1>&6
16127 else
16128 ac_save_LIBS="$LIBS"
16129 LIBS="-ldl $LIBS"
16130 cat > conftest.$ac_ext <<EOF
16131 #line 16132 "configure"
16132 #include "confdefs.h"
16133 /* Override any gcc2 internal prototype to avoid an error. */
16134 /* We use char because int might match the return type of a gcc2
16135 builtin and then its argument prototype would still apply. */
16136 char dlopen();
16137
16138 int main() {
16139 dlopen()
16140 ; return 0; }
16141 EOF
16142 if { (eval echo configure:16143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16143 rm -rf conftest*
16144 eval "ac_cv_lib_$ac_lib_var=yes"
16145 else
16146 echo "configure: failed program was:" >&5
16147 cat conftest.$ac_ext >&5
16148 rm -rf conftest*
16149 eval "ac_cv_lib_$ac_lib_var=no"
16150 fi
16151 rm -f conftest*
16152 LIBS="$ac_save_LIBS"
16153
16154 fi
16155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16156 echo "$ac_t""yes" 1>&6
16157
16158 cat >> confdefs.h <<\EOF
16159 #define HAVE_DLOPEN 1
16160 EOF
16161
16162 HAVE_DL_FUNCS=1
16163 LIBS="$LIBS -ldl"
16164
16165 else
16166 echo "$ac_t""no" 1>&6
16167
16168 for ac_func in shl_load
16169 do
16170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16171 echo "configure:16172: checking for $ac_func" >&5
16172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16173 echo $ac_n "(cached) $ac_c" 1>&6
16174 else
16175 cat > conftest.$ac_ext <<EOF
16176 #line 16177 "configure"
16177 #include "confdefs.h"
16178 /* System header to define __stub macros and hopefully few prototypes,
16179 which can conflict with char $ac_func(); below. */
16180 #include <assert.h>
16181 /* Override any gcc2 internal prototype to avoid an error. */
16182 /* We use char because int might match the return type of a gcc2
16183 builtin and then its argument prototype would still apply. */
16184 char $ac_func();
16185
16186 int main() {
16187
16188 /* The GNU C library defines this for functions which it implements
16189 to always fail with ENOSYS. Some functions are actually named
16190 something starting with __ and the normal name is an alias. */
16191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16192 choke me
16193 #else
16194 $ac_func();
16195 #endif
16196
16197 ; return 0; }
16198 EOF
16199 if { (eval echo configure:16200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16200 rm -rf conftest*
16201 eval "ac_cv_func_$ac_func=yes"
16202 else
16203 echo "configure: failed program was:" >&5
16204 cat conftest.$ac_ext >&5
16205 rm -rf conftest*
16206 eval "ac_cv_func_$ac_func=no"
16207 fi
16208 rm -f conftest*
16209 fi
16210
16211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16212 echo "$ac_t""yes" 1>&6
16213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16214 cat >> confdefs.h <<EOF
16215 #define $ac_tr_func 1
16216 EOF
16217
16218 cat >> confdefs.h <<\EOF
16219 #define HAVE_SHL_LOAD 1
16220 EOF
16221
16222 HAVE_SHL_FUNCS=1
16223
16224 else
16225 echo "$ac_t""no" 1>&6
16226 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16227 echo "configure:16228: checking for dld in -lshl_load" >&5
16228 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16230 echo $ac_n "(cached) $ac_c" 1>&6
16231 else
16232 ac_save_LIBS="$LIBS"
16233 LIBS="-lshl_load $LIBS"
16234 cat > conftest.$ac_ext <<EOF
16235 #line 16236 "configure"
16236 #include "confdefs.h"
16237 /* Override any gcc2 internal prototype to avoid an error. */
16238 /* We use char because int might match the return type of a gcc2
16239 builtin and then its argument prototype would still apply. */
16240 char dld();
16241
16242 int main() {
16243 dld()
16244 ; return 0; }
16245 EOF
16246 if { (eval echo configure:16247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16247 rm -rf conftest*
16248 eval "ac_cv_lib_$ac_lib_var=yes"
16249 else
16250 echo "configure: failed program was:" >&5
16251 cat conftest.$ac_ext >&5
16252 rm -rf conftest*
16253 eval "ac_cv_lib_$ac_lib_var=no"
16254 fi
16255 rm -f conftest*
16256 LIBS="$ac_save_LIBS"
16257
16258 fi
16259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16260 echo "$ac_t""yes" 1>&6
16261
16262 HAVE_SHL_FUNCS=1
16263 LIBS="$LIBS -ldld"
16264
16265 else
16266 echo "$ac_t""no" 1>&6
16267 fi
16268
16269
16270 fi
16271 done
16272
16273
16274 fi
16275
16276
16277 fi
16278 done
16279
16280
16281 if test "$HAVE_DL_FUNCS" = 1; then
16282 for ac_func in dlerror
16283 do
16284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16285 echo "configure:16286: checking for $ac_func" >&5
16286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16287 echo $ac_n "(cached) $ac_c" 1>&6
16288 else
16289 cat > conftest.$ac_ext <<EOF
16290 #line 16291 "configure"
16291 #include "confdefs.h"
16292 /* System header to define __stub macros and hopefully few prototypes,
16293 which can conflict with char $ac_func(); below. */
16294 #include <assert.h>
16295 /* Override any gcc2 internal prototype to avoid an error. */
16296 /* We use char because int might match the return type of a gcc2
16297 builtin and then its argument prototype would still apply. */
16298 char $ac_func();
16299
16300 int main() {
16301
16302 /* The GNU C library defines this for functions which it implements
16303 to always fail with ENOSYS. Some functions are actually named
16304 something starting with __ and the normal name is an alias. */
16305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16306 choke me
16307 #else
16308 $ac_func();
16309 #endif
16310
16311 ; return 0; }
16312 EOF
16313 if { (eval echo configure:16314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16314 rm -rf conftest*
16315 eval "ac_cv_func_$ac_func=yes"
16316 else
16317 echo "configure: failed program was:" >&5
16318 cat conftest.$ac_ext >&5
16319 rm -rf conftest*
16320 eval "ac_cv_func_$ac_func=no"
16321 fi
16322 rm -f conftest*
16323 fi
16324
16325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16326 echo "$ac_t""yes" 1>&6
16327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16328 cat >> confdefs.h <<EOF
16329 #define $ac_tr_func 1
16330 EOF
16331 cat >> confdefs.h <<\EOF
16332 #define HAVE_DLERROR 1
16333 EOF
16334
16335 else
16336 echo "$ac_t""no" 1>&6
16337 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16338 echo "configure:16339: checking for dlerror in -ldl" >&5
16339 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16341 echo $ac_n "(cached) $ac_c" 1>&6
16342 else
16343 ac_save_LIBS="$LIBS"
16344 LIBS="-ldl $LIBS"
16345 cat > conftest.$ac_ext <<EOF
16346 #line 16347 "configure"
16347 #include "confdefs.h"
16348 /* Override any gcc2 internal prototype to avoid an error. */
16349 /* We use char because int might match the return type of a gcc2
16350 builtin and then its argument prototype would still apply. */
16351 char dlerror();
16352
16353 int main() {
16354 dlerror()
16355 ; return 0; }
16356 EOF
16357 if { (eval echo configure:16358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16358 rm -rf conftest*
16359 eval "ac_cv_lib_$ac_lib_var=yes"
16360 else
16361 echo "configure: failed program was:" >&5
16362 cat conftest.$ac_ext >&5
16363 rm -rf conftest*
16364 eval "ac_cv_lib_$ac_lib_var=no"
16365 fi
16366 rm -f conftest*
16367 LIBS="$ac_save_LIBS"
16368
16369 fi
16370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16371 echo "$ac_t""yes" 1>&6
16372 cat >> confdefs.h <<\EOF
16373 #define HAVE_DLERROR 1
16374 EOF
16375
16376 else
16377 echo "$ac_t""no" 1>&6
16378 fi
16379
16380 fi
16381 done
16382
16383 fi
16384 fi
16385
16386 if test "$HAVE_DL_FUNCS" = 0; then
16387 if test "$HAVE_SHL_FUNCS" = 0; then
16388 if test "$USE_UNIX" = 1; then
16389 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16390 wxUSE_DYNLIB_CLASS=no
16391 else
16392 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16393 fi
16394 fi
16395 fi
16396 fi
16397
16398 fi
16399
16400 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16401 cat >> confdefs.h <<\EOF
16402 #define wxUSE_DYNLIB_CLASS 1
16403 EOF
16404
16405 else
16406 wxUSE_ODBC=no
16407 wxUSE_SERIAL=no
16408 fi
16409
16410
16411 if test "$wxUSE_FONTMAP" = "yes" ; then
16412 cat >> confdefs.h <<\EOF
16413 #define wxUSE_FONTMAP 1
16414 EOF
16415
16416 fi
16417
16418 if test "$wxUSE_UNICODE" = "yes" ; then
16419 cat >> confdefs.h <<\EOF
16420 #define wxUSE_UNICODE 1
16421 EOF
16422
16423 fi
16424
16425 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16426 cat >> confdefs.h <<\EOF
16427 #define wxUSE_WCSRTOMBS 1
16428 EOF
16429
16430 fi
16431
16432 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16433 cat >> confdefs.h <<\EOF
16434 #define wxUSE_EXPERIMENTAL_PRINTF 1
16435 EOF
16436
16437 fi
16438
16439
16440 if test "$wxUSE_SERIAL" = "yes" ; then
16441 cat >> confdefs.h <<\EOF
16442 #define wxUSE_SERIAL 1
16443 EOF
16444
16445 fi
16446
16447
16448 IODBC_C_SRC=""
16449 if test "$wxUSE_ODBC" = "yes" ; then
16450 cat >> confdefs.h <<\EOF
16451 #define wxUSE_ODBC 1
16452 EOF
16453
16454 WXODBCFLAG="-D_IODBC_"
16455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16456 fi
16457
16458
16459 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16460 cat >> confdefs.h <<\EOF
16461 #define wxUSE_POSTSCRIPT 1
16462 EOF
16463
16464 fi
16465
16466 cat >> confdefs.h <<\EOF
16467 #define wxUSE_AFM_FOR_POSTSCRIPT 1
16468 EOF
16469
16470
16471 cat >> confdefs.h <<\EOF
16472 #define wxUSE_NORMALIZED_PS_FONTS 1
16473 EOF
16474
16475
16476
16477 if test "$wxUSE_CONSTRAINTS" = "yes"; then
16478 cat >> confdefs.h <<\EOF
16479 #define wxUSE_CONSTRAINTS 1
16480 EOF
16481
16482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16483 fi
16484
16485 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16486 cat >> confdefs.h <<\EOF
16487 #define wxUSE_MDI_ARCHITECTURE 1
16488 EOF
16489
16490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16491 fi
16492
16493 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16494 cat >> confdefs.h <<\EOF
16495 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
16496 EOF
16497
16498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16499 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16501 fi
16502 fi
16503
16504 if test "$wxUSE_HELP" = "yes"; then
16505 cat >> confdefs.h <<\EOF
16506 #define wxUSE_HELP 1
16507 EOF
16508
16509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16510 fi
16511
16512 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16513 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16514 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
16515 else
16516 cat >> confdefs.h <<\EOF
16517 #define wxUSE_PRINTING_ARCHITECTURE 1
16518 EOF
16519
16520 fi
16521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16522 fi
16523
16524 if test "$wxUSE_PROLOGIO" = "yes" ; then
16525 cat >> confdefs.h <<\EOF
16526 #define wxUSE_PROLOGIO 1
16527 EOF
16528
16529 fi
16530
16531 if test "$wxUSE_RESOURCES" = "yes" ; then
16532 if test "$wxUSE_PROLOGIO" = "yes" ; then
16533 cat >> confdefs.h <<\EOF
16534 #define wxUSE_RESOURCES 1
16535 EOF
16536
16537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16538 else
16539 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
16540 fi
16541 fi
16542
16543 if test "$wxUSE_X_RESOURCES" = "yes"; then
16544 cat >> confdefs.h <<\EOF
16545 #define wxUSE_X_RESOURCES 1
16546 EOF
16547
16548 fi
16549
16550
16551 if test "$wxUSE_IPC" = "yes"; then
16552 if test "$wxUSE_SOCKETS" != "yes"; then
16553 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
16554 fi
16555
16556 cat >> confdefs.h <<\EOF
16557 #define wxUSE_IPC 1
16558 EOF
16559
16560 fi
16561
16562 if test "$wxUSE_CLIPBOARD" = "yes"; then
16563 cat >> confdefs.h <<\EOF
16564 #define wxUSE_CLIPBOARD 1
16565 EOF
16566
16567 cat >> confdefs.h <<\EOF
16568 #define wxUSE_DATAOBJ 1
16569 EOF
16570
16571 fi
16572
16573 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16574 if test "$wxUSE_GTK" = 1; then
16575 if test "$WXGTK12" != 1; then
16576 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
16577 wxUSE_DRAG_AND_DROP=no
16578 fi
16579 fi
16580
16581 if test "$wxUSE_MOTIF" = 1; then
16582 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
16583 wxUSE_DRAG_AND_DROP=no
16584 fi
16585
16586 if test "$wxUSE_MAC" = 1; then
16587 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
16588 wxUSE_DRAG_AND_DROP=no
16589 fi
16590
16591 if test "$USE_WIN32" = 1; then
16592
16593 for ac_hdr in ole2.h
16594 do
16595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16597 echo "configure:16598: checking for $ac_hdr" >&5
16598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16599 echo $ac_n "(cached) $ac_c" 1>&6
16600 else
16601 cat > conftest.$ac_ext <<EOF
16602 #line 16603 "configure"
16603 #include "confdefs.h"
16604 #include <$ac_hdr>
16605 EOF
16606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16607 { (eval echo configure:16608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16609 if test -z "$ac_err"; then
16610 rm -rf conftest*
16611 eval "ac_cv_header_$ac_safe=yes"
16612 else
16613 echo "$ac_err" >&5
16614 echo "configure: failed program was:" >&5
16615 cat conftest.$ac_ext >&5
16616 rm -rf conftest*
16617 eval "ac_cv_header_$ac_safe=no"
16618 fi
16619 rm -f conftest*
16620 fi
16621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16622 echo "$ac_t""yes" 1>&6
16623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16624 cat >> confdefs.h <<EOF
16625 #define $ac_tr_hdr 1
16626 EOF
16627
16628 else
16629 echo "$ac_t""no" 1>&6
16630 fi
16631 done
16632
16633
16634 if test "$ac_cv_header_ole2_h" = "yes" ; then
16635 if test "$GCC" = yes ; then
16636 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16637 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
16638 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
16639 LIBS="$LIBS -lole32 -luuid"
16640
16641 if test "$wxUSE_METAFILE" = "yes"; then
16642 cat >> confdefs.h <<\EOF
16643 #define wxUSE_METAFILE 1
16644 EOF
16645
16646 cat >> confdefs.h <<\EOF
16647 #define wxUSE_ENH_METAFILE 1
16648 EOF
16649
16650 fi
16651 fi
16652 else
16653 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
16654 wxUSE_DRAG_AND_DROP=no
16655 fi
16656 fi
16657
16658 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
16659 cat >> confdefs.h <<\EOF
16660 #define wxUSE_DRAG_AND_DROP 1
16661 EOF
16662
16663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16664 fi
16665
16666 fi
16667
16668 if test "$wxUSE_SPLINES" = "yes" ; then
16669 cat >> confdefs.h <<\EOF
16670 #define wxUSE_SPLINES 1
16671 EOF
16672
16673 fi
16674
16675
16676 USES_CONTROLS=0
16677 if test "$wxUSE_CONTROLS" = "yes"; then
16678 USES_CONTROLS=1
16679 fi
16680
16681 if test "$wxUSE_ACCEL" = "yes"; then
16682 cat >> confdefs.h <<\EOF
16683 #define wxUSE_ACCEL 1
16684 EOF
16685
16686 USES_CONTROLS=1
16687 fi
16688
16689 if test "$wxUSE_BUTTON" = "yes"; then
16690 cat >> confdefs.h <<\EOF
16691 #define wxUSE_BUTTON 1
16692 EOF
16693
16694 USES_CONTROLS=1
16695 fi
16696
16697 if test "$wxUSE_BMPBUTTON" = "yes"; then
16698 cat >> confdefs.h <<\EOF
16699 #define wxUSE_BMPBUTTON 1
16700 EOF
16701
16702 USES_CONTROLS=1
16703 fi
16704
16705 if test "$wxUSE_CALCTRL" = "yes"; then
16706 cat >> confdefs.h <<\EOF
16707 #define wxUSE_CALENDARCTRL 1
16708 EOF
16709
16710 USES_CONTROLS=1
16711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
16712 fi
16713
16714 if test "$wxUSE_CARET" = "yes"; then
16715 cat >> confdefs.h <<\EOF
16716 #define wxUSE_CARET 1
16717 EOF
16718
16719 USES_CONTROLS=1
16720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16721 fi
16722
16723 if test "$wxUSE_COMBOBOX" = "yes"; then
16724 cat >> confdefs.h <<\EOF
16725 #define wxUSE_COMBOBOX 1
16726 EOF
16727
16728 USES_CONTROLS=1
16729 fi
16730
16731 if test "$wxUSE_CHOICE" = "yes"; then
16732 cat >> confdefs.h <<\EOF
16733 #define wxUSE_CHOICE 1
16734 EOF
16735
16736 USES_CONTROLS=1
16737 fi
16738
16739 if test "$wxUSE_CHECKBOX" = "yes"; then
16740 cat >> confdefs.h <<\EOF
16741 #define wxUSE_CHECKBOX 1
16742 EOF
16743
16744 USES_CONTROLS=1
16745 fi
16746
16747 if test "$wxUSE_CHECKLST" = "yes"; then
16748 cat >> confdefs.h <<\EOF
16749 #define wxUSE_CHECKLISTBOX 1
16750 EOF
16751
16752 USES_CONTROLS=1
16753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16754 fi
16755
16756 if test "$wxUSE_GAUGE" = "yes"; then
16757 cat >> confdefs.h <<\EOF
16758 #define wxUSE_GAUGE 1
16759 EOF
16760
16761 USES_CONTROLS=1
16762 fi
16763
16764 if test "$wxUSE_NEW_GRID" = "yes"; then
16765 wxUSE_GRID="yes"
16766 cat >> confdefs.h <<\EOF
16767 #define wxUSE_NEW_GRID 1
16768 EOF
16769
16770 USES_CONTROLS=1
16771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
16772 fi
16773
16774 if test "$wxUSE_GRID" = "yes"; then
16775 cat >> confdefs.h <<\EOF
16776 #define wxUSE_GRID 1
16777 EOF
16778
16779 USES_CONTROLS=1
16780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
16781 fi
16782
16783 if test "$wxUSE_IMAGLIST" = "yes"; then
16784 cat >> confdefs.h <<\EOF
16785 #define wxUSE_IMAGLIST 1
16786 EOF
16787
16788 fi
16789
16790 if test "$wxUSE_LISTBOX" = "yes"; then
16791 cat >> confdefs.h <<\EOF
16792 #define wxUSE_LISTBOX 1
16793 EOF
16794
16795 USES_CONTROLS=1
16796 fi
16797
16798 if test "$wxUSE_LISTCTRL" = "yes"; then
16799 if test "$wxUSE_IMAGLIST" = "yes"; then
16800 cat >> confdefs.h <<\EOF
16801 #define wxUSE_LISTCTRL 1
16802 EOF
16803
16804 USES_CONTROLS=1
16805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16806 else
16807 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
16808 fi
16809 fi
16810
16811 if test "$wxUSE_NOTEBOOK" = "yes"; then
16812 cat >> confdefs.h <<\EOF
16813 #define wxUSE_NOTEBOOK 1
16814 EOF
16815
16816 USES_CONTROLS=1
16817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16818 fi
16819
16820 if test "$wxUSE_RADIOBOX" = "yes"; then
16821 cat >> confdefs.h <<\EOF
16822 #define wxUSE_RADIOBOX 1
16823 EOF
16824
16825 USES_CONTROLS=1
16826 fi
16827
16828 if test "$wxUSE_RADIOBTN" = "yes"; then
16829 cat >> confdefs.h <<\EOF
16830 #define wxUSE_RADIOBTN 1
16831 EOF
16832
16833 USES_CONTROLS=1
16834 fi
16835
16836 if test "$wxUSE_SASH" = "yes"; then
16837 cat >> confdefs.h <<\EOF
16838 #define wxUSE_SASH 1
16839 EOF
16840
16841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16842 fi
16843
16844 if test "$wxUSE_SCROLLBAR" = "yes"; then
16845 cat >> confdefs.h <<\EOF
16846 #define wxUSE_SCROLLBAR 1
16847 EOF
16848
16849 USES_CONTROLS=1
16850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
16851 fi
16852
16853 if test "$wxUSE_SLIDER" = "yes"; then
16854 cat >> confdefs.h <<\EOF
16855 #define wxUSE_SLIDER 1
16856 EOF
16857
16858 USES_CONTROLS=1
16859 fi
16860
16861 if test "$wxUSE_SPINBTN" = "yes"; then
16862 cat >> confdefs.h <<\EOF
16863 #define wxUSE_SPINBTN 1
16864 EOF
16865
16866 USES_CONTROLS=1
16867 fi
16868
16869 if test "$wxUSE_SPINCTRL" = "yes"; then
16870 cat >> confdefs.h <<\EOF
16871 #define wxUSE_SPINCTRL 1
16872 EOF
16873
16874 USES_CONTROLS=1
16875 fi
16876
16877 if test "$wxUSE_SPLITTER" = "yes"; then
16878 cat >> confdefs.h <<\EOF
16879 #define wxUSE_SPLITTER 1
16880 EOF
16881
16882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16883 fi
16884
16885 if test "$wxUSE_STATBMP" = "yes"; then
16886 cat >> confdefs.h <<\EOF
16887 #define wxUSE_STATBMP 1
16888 EOF
16889
16890 USES_CONTROLS=1
16891 fi
16892
16893 if test "$wxUSE_STATBOX" = "yes"; then
16894 cat >> confdefs.h <<\EOF
16895 #define wxUSE_STATBOX 1
16896 EOF
16897
16898 USES_CONTROLS=1
16899 fi
16900
16901 if test "$wxUSE_STATTEXT" = "yes"; then
16902 cat >> confdefs.h <<\EOF
16903 #define wxUSE_STATTEXT 1
16904 EOF
16905
16906 USES_CONTROLS=1
16907 fi
16908
16909 if test "$wxUSE_STATLINE" = "yes"; then
16910 if test "$wxUSE_WINE" = 1 ; then
16911 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
16912 else
16913 cat >> confdefs.h <<\EOF
16914 #define wxUSE_STATLINE 1
16915 EOF
16916
16917 USES_CONTROLS=1
16918 fi
16919 fi
16920
16921 if test "$wxUSE_STATUSBAR" = "yes"; then
16922 cat >> confdefs.h <<\EOF
16923 #define wxUSE_STATUSBAR 1
16924 EOF
16925
16926 USES_CONTROLS=1
16927
16928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
16929 fi
16930
16931 if test "$wxUSE_TABDIALOG" = "yes"; then
16932 cat >> confdefs.h <<\EOF
16933 #define wxUSE_TAB_DIALOG 1
16934 EOF
16935
16936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16937 fi
16938
16939 if test "$wxUSE_TEXTCTRL" = "yes"; then
16940 cat >> confdefs.h <<\EOF
16941 #define wxUSE_TEXTCTRL 1
16942 EOF
16943
16944 USES_CONTROLS=1
16945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16946 fi
16947
16948 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16949 if test "$wxUSE_MAC" = 1; then
16950 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16951 wxUSE_TOGGLEBTN=no
16952 fi
16953
16954 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16955 cat >> confdefs.h <<\EOF
16956 #define wxUSE_TOGGLEBTN 1
16957 EOF
16958
16959 USES_CONTROLS=1
16960 fi
16961 fi
16962
16963 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
16964 cat >> confdefs.h <<\EOF
16965 #define wxUSE_TOOLBAR_SIMPLE 1
16966 EOF
16967
16968 wxUSE_TOOLBAR="yes"
16969 USES_CONTROLS=1
16970 fi
16971
16972 if test "$wxUSE_TOOLBAR" = "yes"; then
16973 cat >> confdefs.h <<\EOF
16974 #define wxUSE_TOOLBAR 1
16975 EOF
16976
16977 USES_CONTROLS=1
16978
16979 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16980 wxUSE_TOOLBAR_NATIVE="yes"
16981 fi
16982
16983 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16984 cat >> confdefs.h <<\EOF
16985 #define wxUSE_TOOLBAR_NATIVE 1
16986 EOF
16987
16988 USES_CONTROLS=1
16989 fi
16990
16991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
16992 fi
16993
16994 if test "$wxUSE_TOOLTIPS" = "yes"; then
16995 if test "$wxUSE_MOTIF" = 1; then
16996 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
16997 else
16998 if test "$wxUSE_WINE" = 1; then
16999 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17000 else
17001 cat >> confdefs.h <<\EOF
17002 #define wxUSE_TOOLTIPS 1
17003 EOF
17004
17005 fi
17006 fi
17007 fi
17008
17009 if test "$wxUSE_TREECTRL" = "yes"; then
17010 if test "$wxUSE_IMAGLIST" = "yes"; then
17011 cat >> confdefs.h <<\EOF
17012 #define wxUSE_TREECTRL 1
17013 EOF
17014
17015 USES_CONTROLS=1
17016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17017 else
17018 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17019 fi
17020 fi
17021
17022 if test "$USES_CONTROLS" = 1; then
17023 cat >> confdefs.h <<\EOF
17024 #define wxUSE_CONTROLS 1
17025 EOF
17026
17027 fi
17028
17029
17030
17031 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17032 cat >> confdefs.h <<\EOF
17033 #define wxUSE_DRAGIMAGE 1
17034 EOF
17035
17036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17037 fi
17038
17039 if test "$wxUSE_MENUS" = "yes"; then
17040 cat >> confdefs.h <<\EOF
17041 #define wxUSE_MENUS 1
17042 EOF
17043
17044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17045 fi
17046
17047 if test "$wxUSE_METAFILE" = "yes"; then
17048 cat >> confdefs.h <<\EOF
17049 #define wxUSE_METAFILE 1
17050 EOF
17051
17052 fi
17053
17054 if test "$wxUSE_MIMETYPE" = "yes"; then
17055 cat >> confdefs.h <<\EOF
17056 #define wxUSE_MIMETYPE 1
17057 EOF
17058
17059 fi
17060
17061 if test "$wxUSE_MINIFRAME" = "yes"; then
17062 cat >> confdefs.h <<\EOF
17063 #define wxUSE_MINIFRAME 1
17064 EOF
17065
17066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17067 fi
17068
17069 if test "$wxUSE_HTML" = "yes"; then
17070 cat >> confdefs.h <<\EOF
17071 #define wxUSE_HTML 1
17072 EOF
17073
17074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17075 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17076 fi
17077
17078 if test "$wxUSE_VALIDATORS" = "yes"; then
17079 cat >> confdefs.h <<\EOF
17080 #define wxUSE_VALIDATORS 1
17081 EOF
17082
17083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17084 fi
17085
17086 if test "$wxUSE_IMAGE" = "yes" ; then
17087 cat >> confdefs.h <<\EOF
17088 #define wxUSE_IMAGE 1
17089 EOF
17090
17091 fi
17092
17093 if test "$wxUSE_GIF" = "yes" ; then
17094 cat >> confdefs.h <<\EOF
17095 #define wxUSE_GIF 1
17096 EOF
17097
17098 fi
17099
17100 if test "$wxUSE_PCX" = "yes" ; then
17101 cat >> confdefs.h <<\EOF
17102 #define wxUSE_PCX 1
17103 EOF
17104
17105 fi
17106
17107 if test "$wxUSE_PNM" = "yes" ; then
17108 cat >> confdefs.h <<\EOF
17109 #define wxUSE_PNM 1
17110 EOF
17111
17112 fi
17113
17114 if test "$wxUSE_XPM" = "yes" ; then
17115 cat >> confdefs.h <<\EOF
17116 #define wxUSE_XPM 1
17117 EOF
17118
17119 fi
17120
17121
17122 if test "$wxUSE_CHOICEDLG" = "yes"; then
17123 cat >> confdefs.h <<\EOF
17124 #define wxUSE_CHOICEDLG 1
17125 EOF
17126
17127 fi
17128
17129 if test "$wxUSE_COLOURDLG" = "yes"; then
17130 cat >> confdefs.h <<\EOF
17131 #define wxUSE_COLOURDLG 1
17132 EOF
17133
17134 fi
17135
17136 if test "$wxUSE_FILEDLG" = "yes"; then
17137 cat >> confdefs.h <<\EOF
17138 #define wxUSE_FILEDLG 1
17139 EOF
17140
17141 fi
17142
17143 if test "$wxUSE_FONTDLG" = "yes"; then
17144 cat >> confdefs.h <<\EOF
17145 #define wxUSE_FONTDLG 1
17146 EOF
17147
17148 fi
17149
17150 if test "$wxUSE_DIRDLG" = "yes"; then
17151 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17152 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17153 else
17154 if test "$wxUSE_TREECTRL" != "yes"; then
17155 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17156 else
17157 cat >> confdefs.h <<\EOF
17158 #define wxUSE_DIRDLG 1
17159 EOF
17160
17161 fi
17162 fi
17163 fi
17164
17165 if test "$wxUSE_MSGDLG" = "yes"; then
17166 cat >> confdefs.h <<\EOF
17167 #define wxUSE_MSGDLG 1
17168 EOF
17169
17170 fi
17171
17172 if test "$wxUSE_NUMBERDLG" = "yes"; then
17173 cat >> confdefs.h <<\EOF
17174 #define wxUSE_NUMBERDLG 1
17175 EOF
17176
17177 fi
17178
17179 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17180 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17181 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17182 else
17183 cat >> confdefs.h <<\EOF
17184 #define wxUSE_PROGRESSDLG 1
17185 EOF
17186
17187 fi
17188 fi
17189
17190 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17191 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17192 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17193 else
17194 cat >> confdefs.h <<\EOF
17195 #define wxUSE_STARTUP_TIPS 1
17196 EOF
17197
17198 fi
17199 fi
17200
17201 if test "$wxUSE_TEXTDLG" = "yes"; then
17202 cat >> confdefs.h <<\EOF
17203 #define wxUSE_TEXTDLG 1
17204 EOF
17205
17206 fi
17207
17208 if test "$wxUSE_WIZARDDLG" = "yes"; then
17209 cat >> confdefs.h <<\EOF
17210 #define wxUSE_WIZARDDLG 1
17211 EOF
17212
17213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17214 fi
17215
17216
17217 if test "$cross_compiling" = "yes"; then
17218 OSINFO="\"$host\""
17219 else
17220 OSINFO=`uname -s -r -m`
17221 OSINFO="\"$OSINFO\""
17222 fi
17223
17224 cat >> confdefs.h <<EOF
17225 #define WXWIN_OS_DESCRIPTION $OSINFO
17226 EOF
17227
17228
17229
17230 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17231 OPENGL_LIBS="$OPENGL_LINK"
17232
17233 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17234 if test "$USE_MAC" = 1 ; then
17235 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17236 fi
17237 if test "$wxUSE_GUI" = "yes"; then
17238 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17239 fi
17240
17241 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17242
17243 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17244
17245 if test "$wxUSE_GTK" = 1; then
17246 WXCONFIG_INCLUDE=""
17247 else
17248 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17249 fi
17250
17251 if test "$GXX" = yes ; then
17252 CXXWARNINGS="-Wall"
17253 fi
17254 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17255
17256 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17257 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17258
17259 LDFLAGS="$LDFLAGS $PROFILE"
17260
17261 if test "$wxUSE_GUI" = "yes"; then
17262
17263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17264 drawing dynamic event font fractal image \
17265 minimal richedit widgets"
17266
17267 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17269 fi
17270
17271 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17272 else
17273 SAMPLES_SUBDIRS=""
17274 fi
17275
17276 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17372 echo "configure:17373: checking whether ${MAKE-make} sets \${MAKE}" >&5
17373 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17374 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17375 echo $ac_n "(cached) $ac_c" 1>&6
17376 else
17377 cat > conftestmake <<\EOF
17378 all:
17379 @echo 'ac_maketemp="${MAKE}"'
17380 EOF
17381 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17382 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17383 if test -n "$ac_maketemp"; then
17384 eval ac_cv_prog_make_${ac_make}_set=yes
17385 else
17386 eval ac_cv_prog_make_${ac_make}_set=no
17387 fi
17388 rm -f conftestmake
17389 fi
17390 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17391 echo "$ac_t""yes" 1>&6
17392 SET_MAKE=
17393 else
17394 echo "$ac_t""no" 1>&6
17395 SET_MAKE="MAKE=${MAKE-make}"
17396 fi
17397
17398
17399 if test -d include; then
17400 if test -d include/wx; then
17401 if test -d include/wx/${SETUPH_DIR}; then
17402 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17403 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17404 fi
17405 fi
17406 fi
17407 fi
17408
17409
17410
17411 if test "$wxUSE_GUI" = "yes"; then
17412 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17413 wx_cv_path_ifs=$PATH_IFS
17414 wx_cv_program_ext=$PROGRAM_EXT
17415 wx_cv_target_library=$WX_TARGET_LIBRARY
17416 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17417 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17418 wx_cv_target_library wx_cv_target_libtype
17419 subdirs="demos samples utils contrib"
17420
17421 fi
17422
17423 trap '' 1 2 15
17424 cat > confcache <<\EOF
17425 # This file is a shell script that caches the results of configure
17426 # tests run on this system so they can be shared between configure
17427 # scripts and configure runs. It is not useful on other systems.
17428 # If it contains results you don't want to keep, you may remove or edit it.
17429 #
17430 # By default, configure uses ./config.cache as the cache file,
17431 # creating it if it does not exist already. You can give configure
17432 # the --cache-file=FILE option to use a different cache file; that is
17433 # what configure does when it calls configure scripts in
17434 # subdirectories, so they share the cache.
17435 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17436 # config.status only pays attention to the cache file if you give it the
17437 # --recheck option to rerun configure.
17438 #
17439 EOF
17440 # The following way of writing the cache mishandles newlines in values,
17441 # but we know of no workaround that is simple, portable, and efficient.
17442 # So, don't put newlines in cache variables' values.
17443 # Ultrix sh set writes to stderr and can't be redirected directly,
17444 # and sets the high bit in the cache file unless we assign to the vars.
17445 (set) 2>&1 |
17446 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17447 *ac_space=\ *)
17448 # `set' does not quote correctly, so add quotes (double-quote substitution
17449 # turns \\\\ into \\, and sed turns \\ into \).
17450 sed -n \
17451 -e "s/'/'\\\\''/g" \
17452 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17453 ;;
17454 *)
17455 # `set' quotes correctly as required by POSIX, so do not add quotes.
17456 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17457 ;;
17458 esac >> confcache
17459 if cmp -s $cache_file confcache; then
17460 :
17461 else
17462 if test -w $cache_file; then
17463 echo "updating cache $cache_file"
17464 cat confcache > $cache_file
17465 else
17466 echo "not updating unwritable cache $cache_file"
17467 fi
17468 fi
17469 rm -f confcache
17470
17471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17472
17473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17474 # Let make expand exec_prefix.
17475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17476
17477 # Any assignment to VPATH causes Sun make to only execute
17478 # the first set of double-colon rules, so remove it if not needed.
17479 # If there is a colon in the path, we need to keep it.
17480 if test "x$srcdir" = x.; then
17481 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17482 fi
17483
17484 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17485
17486 DEFS=-DHAVE_CONFIG_H
17487
17488 # Without the "./", some shells look in PATH for config.status.
17489 : ${CONFIG_STATUS=./config.status}
17490
17491 echo creating $CONFIG_STATUS
17492 rm -f $CONFIG_STATUS
17493 cat > $CONFIG_STATUS <<EOF
17494 #! /bin/sh
17495 # Generated automatically by configure.
17496 # Run this file to recreate the current configuration.
17497 # This directory was configured as follows,
17498 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17499 #
17500 # $0 $ac_configure_args
17501 #
17502 # Compiler output produced by configure, useful for debugging
17503 # configure, is in ./config.log if it exists.
17504
17505 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17506 for ac_option
17507 do
17508 case "\$ac_option" in
17509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17510 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17511 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17512 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17513 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17514 exit 0 ;;
17515 -help | --help | --hel | --he | --h)
17516 echo "\$ac_cs_usage"; exit 0 ;;
17517 *) echo "\$ac_cs_usage"; exit 1 ;;
17518 esac
17519 done
17520
17521 ac_given_srcdir=$srcdir
17522 ac_given_INSTALL="$INSTALL"
17523
17524 trap 'rm -fr `echo "
17525 wx-config
17526 src/make.env
17527 src/makeprog.env
17528 src/makelib.env
17529 Makefile
17530 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17531 EOF
17532 cat >> $CONFIG_STATUS <<EOF
17533
17534 # Protect against being on the right side of a sed subst in config.status.
17535 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17536 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17537 $ac_vpsub
17538 $extrasub
17539 s%@SHELL@%$SHELL%g
17540 s%@CFLAGS@%$CFLAGS%g
17541 s%@CPPFLAGS@%$CPPFLAGS%g
17542 s%@CXXFLAGS@%$CXXFLAGS%g
17543 s%@FFLAGS@%$FFLAGS%g
17544 s%@DEFS@%$DEFS%g
17545 s%@LDFLAGS@%$LDFLAGS%g
17546 s%@LIBS@%$LIBS%g
17547 s%@exec_prefix@%$exec_prefix%g
17548 s%@prefix@%$prefix%g
17549 s%@program_transform_name@%$program_transform_name%g
17550 s%@bindir@%$bindir%g
17551 s%@sbindir@%$sbindir%g
17552 s%@libexecdir@%$libexecdir%g
17553 s%@datadir@%$datadir%g
17554 s%@sysconfdir@%$sysconfdir%g
17555 s%@sharedstatedir@%$sharedstatedir%g
17556 s%@localstatedir@%$localstatedir%g
17557 s%@libdir@%$libdir%g
17558 s%@includedir@%$includedir%g
17559 s%@oldincludedir@%$oldincludedir%g
17560 s%@infodir@%$infodir%g
17561 s%@mandir@%$mandir%g
17562 s%@host@%$host%g
17563 s%@host_alias@%$host_alias%g
17564 s%@host_cpu@%$host_cpu%g
17565 s%@host_vendor@%$host_vendor%g
17566 s%@host_os@%$host_os%g
17567 s%@target@%$target%g
17568 s%@target_alias@%$target_alias%g
17569 s%@target_cpu@%$target_cpu%g
17570 s%@target_vendor@%$target_vendor%g
17571 s%@target_os@%$target_os%g
17572 s%@build@%$build%g
17573 s%@build_alias@%$build_alias%g
17574 s%@build_cpu@%$build_cpu%g
17575 s%@build_vendor@%$build_vendor%g
17576 s%@build_os@%$build_os%g
17577 s%@CC@%$CC%g
17578 s%@CPP@%$CPP%g
17579 s%@CXX@%$CXX%g
17580 s%@CXXCPP@%$CXXCPP%g
17581 s%@RANLIB@%$RANLIB%g
17582 s%@AR@%$AR%g
17583 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17584 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17585 s%@INSTALL_DATA@%$INSTALL_DATA%g
17586 s%@STRIP@%$STRIP%g
17587 s%@YACC@%$YACC%g
17588 s%@LEX@%$LEX%g
17589 s%@LEXLIB@%$LEXLIB%g
17590 s%@LN_S@%$LN_S%g
17591 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
17592 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17593 s%@GTK_LIBS@%$GTK_LIBS%g
17594 s%@GTK_CONFIG@%$GTK_CONFIG%g
17595 s%@X_CFLAGS@%$X_CFLAGS%g
17596 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17597 s%@X_LIBS@%$X_LIBS%g
17598 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17599 s%@REZ@%$REZ%g
17600 s%@DEREZ@%$DEREZ%g
17601 s%@LEX_STEM@%$LEX_STEM%g
17602 s%@PATH_IFS@%$PATH_IFS%g
17603 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17604 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17605 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17606 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17607 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17608 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17609 s%@WX_LIBRARY@%$WX_LIBRARY%g
17610 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17611 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17612 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17613 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17614 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17615 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17616 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17617 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17618 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17619 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17620 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17621 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17622 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17623 s%@WX_ALL@%$WX_ALL%g
17624 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17625 s%@SHARED_LD@%$SHARED_LD%g
17626 s%@PIC_FLAG@%$PIC_FLAG%g
17627 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17628 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17629 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17630 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17631 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17632 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17633 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17634 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17635 s%@USE_GUI@%$USE_GUI%g
17636 s%@AFMINSTALL@%$AFMINSTALL%g
17637 s%@SETUPH_DIR@%$SETUPH_DIR%g
17638 s%@TOOLKIT@%$TOOLKIT%g
17639 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17640 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17641 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17642 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
17643 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
17644 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17645 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17646 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17647 s%@GUIDIST@%$GUIDIST%g
17648 s%@PORT_FILES@%$PORT_FILES%g
17649 s%@DISTDIR@%$DISTDIR%g
17650 s%@RPM_SPEC@%$RPM_SPEC%g
17651 s%@RPM_FILES@%$RPM_FILES%g
17652 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17653 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17654 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17655 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17656 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17657 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17658 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17659 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17660 s%@EXTRADEFS@%$EXTRADEFS%g
17661 s%@LD_LIBS@%$LD_LIBS%g
17662 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17663 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17664 s%@RESPROGRAM@%$RESPROGRAM%g
17665 s%@RESCOMP@%$RESCOMP%g
17666 s%@RESFLAGS@%$RESFLAGS%g
17667 s%@REZFLAGS@%$REZFLAGS%g
17668 s%@DEREZFLAGS@%$DEREZFLAGS%g
17669 s%@LIBWXMACRES@%$LIBWXMACRES%g
17670 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17671 s%@DLLTOOL@%$DLLTOOL%g
17672 s%@AS@%$AS%g
17673 s%@NM@%$NM%g
17674 s%@LD@%$LD%g
17675 s%@MAKEINFO@%$MAKEINFO%g
17676 s%@SET_MAKE@%$SET_MAKE%g
17677 s%@subdirs@%$subdirs%g
17678
17679 CEOF
17680 EOF
17681
17682 cat >> $CONFIG_STATUS <<\EOF
17683
17684 # Split the substitutions into bite-sized pieces for seds with
17685 # small command number limits, like on Digital OSF/1 and HP-UX.
17686 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17687 ac_file=1 # Number of current file.
17688 ac_beg=1 # First line for current file.
17689 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17690 ac_more_lines=:
17691 ac_sed_cmds=""
17692 while $ac_more_lines; do
17693 if test $ac_beg -gt 1; then
17694 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17695 else
17696 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17697 fi
17698 if test ! -s conftest.s$ac_file; then
17699 ac_more_lines=false
17700 rm -f conftest.s$ac_file
17701 else
17702 if test -z "$ac_sed_cmds"; then
17703 ac_sed_cmds="sed -f conftest.s$ac_file"
17704 else
17705 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17706 fi
17707 ac_file=`expr $ac_file + 1`
17708 ac_beg=$ac_end
17709 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17710 fi
17711 done
17712 if test -z "$ac_sed_cmds"; then
17713 ac_sed_cmds=cat
17714 fi
17715 EOF
17716
17717 cat >> $CONFIG_STATUS <<EOF
17718
17719 CONFIG_FILES=\${CONFIG_FILES-"wx-config
17720 src/make.env
17721 src/makeprog.env
17722 src/makelib.env
17723 Makefile
17724 "}
17725 EOF
17726 cat >> $CONFIG_STATUS <<\EOF
17727 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17729 case "$ac_file" in
17730 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17731 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17732 *) ac_file_in="${ac_file}.in" ;;
17733 esac
17734
17735 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17736
17737 # Remove last slash and all that follows it. Not all systems have dirname.
17738 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17739 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17740 # The file is in a subdirectory.
17741 test ! -d "$ac_dir" && mkdir "$ac_dir"
17742 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17743 # A "../" for each directory in $ac_dir_suffix.
17744 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17745 else
17746 ac_dir_suffix= ac_dots=
17747 fi
17748
17749 case "$ac_given_srcdir" in
17750 .) srcdir=.
17751 if test -z "$ac_dots"; then top_srcdir=.
17752 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17753 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17754 *) # Relative path.
17755 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17756 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17757 esac
17758
17759 case "$ac_given_INSTALL" in
17760 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17761 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17762 esac
17763
17764 echo creating "$ac_file"
17765 rm -f "$ac_file"
17766 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17767 case "$ac_file" in
17768 *Makefile*) ac_comsub="1i\\
17769 # $configure_input" ;;
17770 *) ac_comsub= ;;
17771 esac
17772
17773 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17774 sed -e "$ac_comsub
17775 s%@configure_input@%$configure_input%g
17776 s%@srcdir@%$srcdir%g
17777 s%@top_srcdir@%$top_srcdir%g
17778 s%@INSTALL@%$INSTALL%g
17779 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17780 fi; done
17781 rm -f conftest.s*
17782
17783 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17784 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17785 #
17786 # ac_d sets the value in "#define NAME VALUE" lines.
17787 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17788 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17789 ac_dC='\3'
17790 ac_dD='%g'
17791 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17792 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17793 ac_uB='\([ ]\)%\1#\2define\3'
17794 ac_uC=' '
17795 ac_uD='\4%g'
17796 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17797 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17798 ac_eB='$%\1#\2define\3'
17799 ac_eC=' '
17800 ac_eD='%g'
17801
17802 if test "${CONFIG_HEADERS+set}" != set; then
17803 EOF
17804 cat >> $CONFIG_STATUS <<EOF
17805 CONFIG_HEADERS="setup.h:setup.h.in"
17806 EOF
17807 cat >> $CONFIG_STATUS <<\EOF
17808 fi
17809 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17811 case "$ac_file" in
17812 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17813 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17814 *) ac_file_in="${ac_file}.in" ;;
17815 esac
17816
17817 echo creating $ac_file
17818
17819 rm -f conftest.frag conftest.in conftest.out
17820 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17821 cat $ac_file_inputs > conftest.in
17822
17823 EOF
17824
17825 # Transform confdefs.h into a sed script conftest.vals that substitutes
17826 # the proper values into config.h.in to produce config.h. And first:
17827 # Protect against being on the right side of a sed subst in config.status.
17828 # Protect against being in an unquoted here document in config.status.
17829 rm -f conftest.vals
17830 cat > conftest.hdr <<\EOF
17831 s/[\\&%]/\\&/g
17832 s%[\\$`]%\\&%g
17833 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17834 s%ac_d%ac_u%gp
17835 s%ac_u%ac_e%gp
17836 EOF
17837 sed -n -f conftest.hdr confdefs.h > conftest.vals
17838 rm -f conftest.hdr
17839
17840 # This sed command replaces #undef with comments. This is necessary, for
17841 # example, in the case of _POSIX_SOURCE, which is predefined and required
17842 # on some systems where configure will not decide to define it.
17843 cat >> conftest.vals <<\EOF
17844 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17845 EOF
17846
17847 # Break up conftest.vals because some shells have a limit on
17848 # the size of here documents, and old seds have small limits too.
17849
17850 rm -f conftest.tail
17851 while :
17852 do
17853 ac_lines=`grep -c . conftest.vals`
17854 # grep -c gives empty output for an empty file on some AIX systems.
17855 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17856 # Write a limited-size here document to conftest.frag.
17857 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17858 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17859 echo 'CEOF
17860 sed -f conftest.frag conftest.in > conftest.out
17861 rm -f conftest.in
17862 mv conftest.out conftest.in
17863 ' >> $CONFIG_STATUS
17864 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17865 rm -f conftest.vals
17866 mv conftest.tail conftest.vals
17867 done
17868 rm -f conftest.vals
17869
17870 cat >> $CONFIG_STATUS <<\EOF
17871 rm -f conftest.frag conftest.h
17872 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17873 cat conftest.in >> conftest.h
17874 rm -f conftest.in
17875 if cmp -s $ac_file conftest.h 2>/dev/null; then
17876 echo "$ac_file is unchanged"
17877 rm -f conftest.h
17878 else
17879 # Remove last slash and all that follows it. Not all systems have dirname.
17880 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17881 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17882 # The file is in a subdirectory.
17883 test ! -d "$ac_dir" && mkdir "$ac_dir"
17884 fi
17885 rm -f $ac_file
17886 mv conftest.h $ac_file
17887 fi
17888 fi; done
17889
17890 EOF
17891 cat >> $CONFIG_STATUS <<EOF
17892
17893 SETUPH_DIR="${SETUPH_DIR}"
17894 TOOLKIT_NAME="${TOOLKIT_NAME}"
17895 LN_S="${LN_S}"
17896
17897
17898 EOF
17899 cat >> $CONFIG_STATUS <<\EOF
17900
17901 if test ! -f wx${TOOLKIT_NAME}-config; then
17902 chmod +x wx-config
17903 mv wx-config wx${TOOLKIT_NAME}-config
17904 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17905 fi
17906
17907
17908 if test ! -d lib; then
17909 mkdir lib
17910 fi
17911 if test ! -d lib/wx; then
17912 mkdir lib/wx
17913 fi
17914 if test ! -d lib/wx/include; then
17915 mkdir lib/wx/include
17916 fi
17917 if test ! -d lib/wx/include/wx; then
17918 mkdir lib/wx/include/wx
17919 fi
17920 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17921 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
17922 fi
17923 if test -f setup.h; then
17924 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
17925 fi
17926
17927
17928 if test ! -d include; then
17929 mkdir include
17930 fi
17931 if test ! -d include/wx; then
17932 mkdir include/wx
17933 fi
17934 if test ! -d include/wx/${SETUPH_DIR}; then
17935 mkdir include/wx/${SETUPH_DIR}
17936 fi
17937 if test -f setup.h; then
17938 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
17939 fi
17940
17941
17942 exit 0
17943 EOF
17944 chmod +x $CONFIG_STATUS
17945 rm -fr confdefs* $ac_clean_files
17946 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17947
17948 if test "$no_recursion" != yes; then
17949
17950 # Remove --cache-file and --srcdir arguments so they do not pile up.
17951 ac_sub_configure_args=
17952 ac_prev=
17953 for ac_arg in $ac_configure_args; do
17954 if test -n "$ac_prev"; then
17955 ac_prev=
17956 continue
17957 fi
17958 case "$ac_arg" in
17959 -cache-file | --cache-file | --cache-fil | --cache-fi \
17960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17961 ac_prev=cache_file ;;
17962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
17964 ;;
17965 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17966 ac_prev=srcdir ;;
17967 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17968 ;;
17969 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17970 esac
17971 done
17972
17973 for ac_config_dir in demos samples utils contrib; do
17974
17975 # Do not complain, so a configure script can configure whichever
17976 # parts of a large source tree are present.
17977 if test ! -d $srcdir/$ac_config_dir; then
17978 continue
17979 fi
17980
17981 echo configuring in $ac_config_dir
17982
17983 case "$srcdir" in
17984 .) ;;
17985 *)
17986 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17987 else
17988 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17989 fi
17990 ;;
17991 esac
17992
17993 ac_popdir=`pwd`
17994 cd $ac_config_dir
17995
17996 # A "../" for each directory in /$ac_config_dir.
17997 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
17998
17999 case "$srcdir" in
18000 .) # No --srcdir option. We are building in place.
18001 ac_sub_srcdir=$srcdir ;;
18002 /*) # Absolute path.
18003 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18004 *) # Relative path.
18005 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18006 esac
18007
18008 # Check for guested configure; otherwise get Cygnus style configure.
18009 if test -f $ac_sub_srcdir/configure; then
18010 ac_sub_configure=$ac_sub_srcdir/configure
18011 elif test -f $ac_sub_srcdir/configure.in; then
18012 ac_sub_configure=$ac_configure
18013 else
18014 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18015 ac_sub_configure=
18016 fi
18017
18018 # The recursion is here.
18019 if test -n "$ac_sub_configure"; then
18020
18021 # Make the cache file name correct relative to the subdirectory.
18022 case "$cache_file" in
18023 /*) ac_sub_cache_file=$cache_file ;;
18024 *) # Relative path.
18025 ac_sub_cache_file="$ac_dots$cache_file" ;;
18026 esac
18027 case "$ac_given_INSTALL" in
18028 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18029 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18030 esac
18031
18032 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18033 # The eval makes quoting arguments work.
18034 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18035 then :
18036 else
18037 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18038 fi
18039 fi
18040
18041 cd $ac_popdir
18042 done
18043 fi
18044
18045