]> git.saurik.com Git - wxWidgets.git/blob - configure
define wxUSE_LOGGUI/WINDOW by default
[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-menus use wxMenu/wxMenuBar/wxMenuItem classes"
326 ac_help="$ac_help
327 --enable-miniframe use wxMiniFrame class"
328 ac_help="$ac_help
329 --enable-html use wxHTML sub-library"
330 ac_help="$ac_help
331 --enable-tooltips use wxToolTip class"
332 ac_help="$ac_help
333 --enable-splines use spline drawing code"
334 ac_help="$ac_help
335 --enable-validators use wxValidator and derived classes"
336 ac_help="$ac_help
337 --enable-busyinfo use wxBusyInfo"
338 ac_help="$ac_help
339 --enable-joystick compile in joystick support (Linux only)"
340 ac_help="$ac_help
341 --enable-metafiles use wxMetaFile (Windows only)"
342 ac_help="$ac_help
343 --enable-image use wxImage class"
344 ac_help="$ac_help
345 --enable-gif use gif images (GIF file format)"
346 ac_help="$ac_help
347 --enable-pcx use pcx images (PCX file format)"
348 ac_help="$ac_help
349 --enable-pnm use pnm images (PNM file format)"
350 ac_help="$ac_help
351 --enable-xpm use xpm images (XPM file format)"
352 ac_help="$ac_help
353 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
354 ac_help="$ac_help
355 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
356 ac_help="$ac_help
357 --disable-gtktest Do not try to compile and run a test GTK program"
358 ac_help="$ac_help
359 --with-x use the X Window System"
360
361 # Initialize some variables set by options.
362 # The variables have the same names as the options, with
363 # dashes changed to underlines.
364 build=NONE
365 cache_file=./config.cache
366 exec_prefix=NONE
367 host=NONE
368 no_create=
369 nonopt=NONE
370 no_recursion=
371 prefix=NONE
372 program_prefix=NONE
373 program_suffix=NONE
374 program_transform_name=s,x,x,
375 silent=
376 site=
377 srcdir=
378 target=NONE
379 verbose=
380 x_includes=NONE
381 x_libraries=NONE
382 bindir='${exec_prefix}/bin'
383 sbindir='${exec_prefix}/sbin'
384 libexecdir='${exec_prefix}/libexec'
385 datadir='${prefix}/share'
386 sysconfdir='${prefix}/etc'
387 sharedstatedir='${prefix}/com'
388 localstatedir='${prefix}/var'
389 libdir='${exec_prefix}/lib'
390 includedir='${prefix}/include'
391 oldincludedir='/usr/include'
392 infodir='${prefix}/info'
393 mandir='${prefix}/man'
394
395 # Initialize some other variables.
396 subdirs=
397 MFLAGS= MAKEFLAGS=
398 SHELL=${CONFIG_SHELL-/bin/sh}
399 # Maximum number of lines to put in a shell here document.
400 ac_max_here_lines=12
401
402 ac_prev=
403 for ac_option
404 do
405
406 # If the previous option needs an argument, assign it.
407 if test -n "$ac_prev"; then
408 eval "$ac_prev=\$ac_option"
409 ac_prev=
410 continue
411 fi
412
413 case "$ac_option" in
414 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
415 *) ac_optarg= ;;
416 esac
417
418 # Accept the important Cygnus configure options, so we can diagnose typos.
419
420 case "$ac_option" in
421
422 -bindir | --bindir | --bindi | --bind | --bin | --bi)
423 ac_prev=bindir ;;
424 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
425 bindir="$ac_optarg" ;;
426
427 -build | --build | --buil | --bui | --bu)
428 ac_prev=build ;;
429 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
430 build="$ac_optarg" ;;
431
432 -cache-file | --cache-file | --cache-fil | --cache-fi \
433 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
434 ac_prev=cache_file ;;
435 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
436 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
437 cache_file="$ac_optarg" ;;
438
439 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
440 ac_prev=datadir ;;
441 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
442 | --da=*)
443 datadir="$ac_optarg" ;;
444
445 -disable-* | --disable-*)
446 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
447 # Reject names that are not valid shell variable names.
448 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
449 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
450 fi
451 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
452 eval "enable_${ac_feature}=no" ;;
453
454 -enable-* | --enable-*)
455 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
456 # Reject names that are not valid shell variable names.
457 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
458 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
459 fi
460 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
461 case "$ac_option" in
462 *=*) ;;
463 *) ac_optarg=yes ;;
464 esac
465 eval "enable_${ac_feature}='$ac_optarg'" ;;
466
467 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
468 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
469 | --exec | --exe | --ex)
470 ac_prev=exec_prefix ;;
471 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
472 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
473 | --exec=* | --exe=* | --ex=*)
474 exec_prefix="$ac_optarg" ;;
475
476 -gas | --gas | --ga | --g)
477 # Obsolete; use --with-gas.
478 with_gas=yes ;;
479
480 -help | --help | --hel | --he)
481 # Omit some internal or obsolete options to make the list less imposing.
482 # This message is too long to be a string in the A/UX 3.1 sh.
483 cat << EOF
484 Usage: configure [options] [host]
485 Options: [defaults in brackets after descriptions]
486 Configuration:
487 --cache-file=FILE cache test results in FILE
488 --help print this message
489 --no-create do not create output files
490 --quiet, --silent do not print \`checking...' messages
491 --version print the version of autoconf that created configure
492 Directory and file names:
493 --prefix=PREFIX install architecture-independent files in PREFIX
494 [$ac_default_prefix]
495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
496 [same as prefix]
497 --bindir=DIR user executables in DIR [EPREFIX/bin]
498 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
499 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
500 --datadir=DIR read-only architecture-independent data in DIR
501 [PREFIX/share]
502 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
503 --sharedstatedir=DIR modifiable architecture-independent data in DIR
504 [PREFIX/com]
505 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
506 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
507 --includedir=DIR C header files in DIR [PREFIX/include]
508 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
509 --infodir=DIR info documentation in DIR [PREFIX/info]
510 --mandir=DIR man documentation in DIR [PREFIX/man]
511 --srcdir=DIR find the sources in DIR [configure dir or ..]
512 --program-prefix=PREFIX prepend PREFIX to installed program names
513 --program-suffix=SUFFIX append SUFFIX to installed program names
514 --program-transform-name=PROGRAM
515 run sed PROGRAM on installed program names
516 EOF
517 cat << EOF
518 Host type:
519 --build=BUILD configure for building on BUILD [BUILD=HOST]
520 --host=HOST configure for HOST [guessed]
521 --target=TARGET configure for TARGET [TARGET=HOST]
522 Features and packages:
523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
527 --x-includes=DIR X include files are in DIR
528 --x-libraries=DIR X library files are in DIR
529 EOF
530 if test -n "$ac_help"; then
531 echo "--enable and --with options recognized:$ac_help"
532 fi
533 exit 0 ;;
534
535 -host | --host | --hos | --ho)
536 ac_prev=host ;;
537 -host=* | --host=* | --hos=* | --ho=*)
538 host="$ac_optarg" ;;
539
540 -includedir | --includedir | --includedi | --included | --include \
541 | --includ | --inclu | --incl | --inc)
542 ac_prev=includedir ;;
543 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
544 | --includ=* | --inclu=* | --incl=* | --inc=*)
545 includedir="$ac_optarg" ;;
546
547 -infodir | --infodir | --infodi | --infod | --info | --inf)
548 ac_prev=infodir ;;
549 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
550 infodir="$ac_optarg" ;;
551
552 -libdir | --libdir | --libdi | --libd)
553 ac_prev=libdir ;;
554 -libdir=* | --libdir=* | --libdi=* | --libd=*)
555 libdir="$ac_optarg" ;;
556
557 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
558 | --libexe | --libex | --libe)
559 ac_prev=libexecdir ;;
560 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
561 | --libexe=* | --libex=* | --libe=*)
562 libexecdir="$ac_optarg" ;;
563
564 -localstatedir | --localstatedir | --localstatedi | --localstated \
565 | --localstate | --localstat | --localsta | --localst \
566 | --locals | --local | --loca | --loc | --lo)
567 ac_prev=localstatedir ;;
568 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
569 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
570 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
571 localstatedir="$ac_optarg" ;;
572
573 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
574 ac_prev=mandir ;;
575 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
576 mandir="$ac_optarg" ;;
577
578 -nfp | --nfp | --nf)
579 # Obsolete; use --without-fp.
580 with_fp=no ;;
581
582 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
583 | --no-cr | --no-c)
584 no_create=yes ;;
585
586 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
587 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
588 no_recursion=yes ;;
589
590 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
591 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
592 | --oldin | --oldi | --old | --ol | --o)
593 ac_prev=oldincludedir ;;
594 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
595 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
596 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
597 oldincludedir="$ac_optarg" ;;
598
599 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
600 ac_prev=prefix ;;
601 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
602 prefix="$ac_optarg" ;;
603
604 -program-prefix | --program-prefix | --program-prefi | --program-pref \
605 | --program-pre | --program-pr | --program-p)
606 ac_prev=program_prefix ;;
607 -program-prefix=* | --program-prefix=* | --program-prefi=* \
608 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
609 program_prefix="$ac_optarg" ;;
610
611 -program-suffix | --program-suffix | --program-suffi | --program-suff \
612 | --program-suf | --program-su | --program-s)
613 ac_prev=program_suffix ;;
614 -program-suffix=* | --program-suffix=* | --program-suffi=* \
615 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
616 program_suffix="$ac_optarg" ;;
617
618 -program-transform-name | --program-transform-name \
619 | --program-transform-nam | --program-transform-na \
620 | --program-transform-n | --program-transform- \
621 | --program-transform | --program-transfor \
622 | --program-transfo | --program-transf \
623 | --program-trans | --program-tran \
624 | --progr-tra | --program-tr | --program-t)
625 ac_prev=program_transform_name ;;
626 -program-transform-name=* | --program-transform-name=* \
627 | --program-transform-nam=* | --program-transform-na=* \
628 | --program-transform-n=* | --program-transform-=* \
629 | --program-transform=* | --program-transfor=* \
630 | --program-transfo=* | --program-transf=* \
631 | --program-trans=* | --program-tran=* \
632 | --progr-tra=* | --program-tr=* | --program-t=*)
633 program_transform_name="$ac_optarg" ;;
634
635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
636 | -silent | --silent | --silen | --sile | --sil)
637 silent=yes ;;
638
639 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
640 ac_prev=sbindir ;;
641 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
642 | --sbi=* | --sb=*)
643 sbindir="$ac_optarg" ;;
644
645 -sharedstatedir | --sharedstatedir | --sharedstatedi \
646 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
647 | --sharedst | --shareds | --shared | --share | --shar \
648 | --sha | --sh)
649 ac_prev=sharedstatedir ;;
650 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
651 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
652 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
653 | --sha=* | --sh=*)
654 sharedstatedir="$ac_optarg" ;;
655
656 -site | --site | --sit)
657 ac_prev=site ;;
658 -site=* | --site=* | --sit=*)
659 site="$ac_optarg" ;;
660
661 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
662 ac_prev=srcdir ;;
663 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
664 srcdir="$ac_optarg" ;;
665
666 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
667 | --syscon | --sysco | --sysc | --sys | --sy)
668 ac_prev=sysconfdir ;;
669 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
670 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
671 sysconfdir="$ac_optarg" ;;
672
673 -target | --target | --targe | --targ | --tar | --ta | --t)
674 ac_prev=target ;;
675 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
676 target="$ac_optarg" ;;
677
678 -v | -verbose | --verbose | --verbos | --verbo | --verb)
679 verbose=yes ;;
680
681 -version | --version | --versio | --versi | --vers)
682 echo "configure generated by autoconf version 2.13"
683 exit 0 ;;
684
685 -with-* | --with-*)
686 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
687 # Reject names that are not valid shell variable names.
688 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
689 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
690 fi
691 ac_package=`echo $ac_package| sed 's/-/_/g'`
692 case "$ac_option" in
693 *=*) ;;
694 *) ac_optarg=yes ;;
695 esac
696 eval "with_${ac_package}='$ac_optarg'" ;;
697
698 -without-* | --without-*)
699 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
700 # Reject names that are not valid shell variable names.
701 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
702 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
703 fi
704 ac_package=`echo $ac_package| sed 's/-/_/g'`
705 eval "with_${ac_package}=no" ;;
706
707 --x)
708 # Obsolete; use --with-x.
709 with_x=yes ;;
710
711 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
712 | --x-incl | --x-inc | --x-in | --x-i)
713 ac_prev=x_includes ;;
714 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
715 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
716 x_includes="$ac_optarg" ;;
717
718 -x-libraries | --x-libraries | --x-librarie | --x-librari \
719 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
720 ac_prev=x_libraries ;;
721 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
722 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
723 x_libraries="$ac_optarg" ;;
724
725 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
726 ;;
727
728 *)
729 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
730 echo "configure: warning: $ac_option: invalid host type" 1>&2
731 fi
732 if test "x$nonopt" != xNONE; then
733 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
734 fi
735 nonopt="$ac_option"
736 ;;
737
738 esac
739 done
740
741 if test -n "$ac_prev"; then
742 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
743 fi
744
745 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
746
747 # File descriptor usage:
748 # 0 standard input
749 # 1 file creation
750 # 2 errors and warnings
751 # 3 some systems may open it to /dev/tty
752 # 4 used on the Kubota Titan
753 # 6 checking for... messages and results
754 # 5 compiler messages saved in config.log
755 if test "$silent" = yes; then
756 exec 6>/dev/null
757 else
758 exec 6>&1
759 fi
760 exec 5>./config.log
761
762 echo "\
763 This file contains any messages produced by compilers while
764 running configure, to aid debugging if configure makes a mistake.
765 " 1>&5
766
767 # Strip out --no-create and --no-recursion so they do not pile up.
768 # Also quote any args containing shell metacharacters.
769 ac_configure_args=
770 for ac_arg
771 do
772 case "$ac_arg" in
773 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
774 | --no-cr | --no-c) ;;
775 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
776 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
777 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
778 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
779 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
780 esac
781 done
782
783 # NLS nuisances.
784 # Only set these to C if already set. These must not be set unconditionally
785 # because not all systems understand e.g. LANG=C (notably SCO).
786 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
787 # Non-C LC_CTYPE values break the ctype check.
788 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
789 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
790 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
791 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
792
793 # confdefs.h avoids OS command line length limits that DEFS can exceed.
794 rm -rf conftest* confdefs.h
795 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
796 echo > confdefs.h
797
798 # A filename unique to this package, relative to the directory that
799 # configure is in, which we can look for to find out if srcdir is correct.
800 ac_unique_file=wx-config.in
801
802 # Find the source files, if location was not specified.
803 if test -z "$srcdir"; then
804 ac_srcdir_defaulted=yes
805 # Try the directory containing this script, then its parent.
806 ac_prog=$0
807 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
808 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
809 srcdir=$ac_confdir
810 if test ! -r $srcdir/$ac_unique_file; then
811 srcdir=..
812 fi
813 else
814 ac_srcdir_defaulted=no
815 fi
816 if test ! -r $srcdir/$ac_unique_file; then
817 if test "$ac_srcdir_defaulted" = yes; then
818 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
819 else
820 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
821 fi
822 fi
823 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
824
825 # Prefer explicitly selected file to automatically selected ones.
826 if test -z "$CONFIG_SITE"; then
827 if test "x$prefix" != xNONE; then
828 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
829 else
830 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
831 fi
832 fi
833 for ac_site_file in $CONFIG_SITE; do
834 if test -r "$ac_site_file"; then
835 echo "loading site script $ac_site_file"
836 . "$ac_site_file"
837 fi
838 done
839
840 if test -r "$cache_file"; then
841 echo "loading cache $cache_file"
842 . $cache_file
843 else
844 echo "creating cache $cache_file"
845 > $cache_file
846 fi
847
848 ac_ext=c
849 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
850 ac_cpp='$CPP $CPPFLAGS'
851 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
852 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
853 cross_compiling=$ac_cv_prog_cc_cross
854
855 ac_exeext=
856 ac_objext=o
857 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
858 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
859 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
860 ac_n= ac_c='
861 ' ac_t=' '
862 else
863 ac_n=-n ac_c= ac_t=
864 fi
865 else
866 ac_n= ac_c='\c' ac_t=
867 fi
868
869
870
871 ac_aux_dir=
872 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
873 if test -f $ac_dir/install-sh; then
874 ac_aux_dir=$ac_dir
875 ac_install_sh="$ac_aux_dir/install-sh -c"
876 break
877 elif 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 fi
882 done
883 if test -z "$ac_aux_dir"; then
884 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
885 fi
886 ac_config_guess=$ac_aux_dir/config.guess
887 ac_config_sub=$ac_aux_dir/config.sub
888 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
889
890
891 # Do some error checking and defaulting for the host and target type.
892 # The inputs are:
893 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
894 #
895 # The rules are:
896 # 1. You are not allowed to specify --host, --target, and nonopt at the
897 # same time.
898 # 2. Host defaults to nonopt.
899 # 3. If nonopt is not specified, then host defaults to the current host,
900 # as determined by config.guess.
901 # 4. Target and build default to nonopt.
902 # 5. If nonopt is not specified, then target and build default to host.
903
904 # The aliases save the names the user supplied, while $host etc.
905 # will get canonicalized.
906 case $host---$target---$nonopt in
907 NONE---*---* | *---NONE---* | *---*---NONE) ;;
908 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
909 esac
910
911
912 # Make sure we can run config.sub.
913 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
914 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
915 fi
916
917 echo $ac_n "checking host system type""... $ac_c" 1>&6
918 echo "configure:919: checking host system type" >&5
919
920 host_alias=$host
921 case "$host_alias" in
922 NONE)
923 case $nonopt in
924 NONE)
925 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
926 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
927 fi ;;
928 *) host_alias=$nonopt ;;
929 esac ;;
930 esac
931
932 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
933 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
934 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
935 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
936 echo "$ac_t""$host" 1>&6
937
938 echo $ac_n "checking target system type""... $ac_c" 1>&6
939 echo "configure:940: checking target system type" >&5
940
941 target_alias=$target
942 case "$target_alias" in
943 NONE)
944 case $nonopt in
945 NONE) target_alias=$host_alias ;;
946 *) target_alias=$nonopt ;;
947 esac ;;
948 esac
949
950 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
951 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954 echo "$ac_t""$target" 1>&6
955
956 echo $ac_n "checking build system type""... $ac_c" 1>&6
957 echo "configure:958: checking build system type" >&5
958
959 build_alias=$build
960 case "$build_alias" in
961 NONE)
962 case $nonopt in
963 NONE) build_alias=$host_alias ;;
964 *) build_alias=$nonopt ;;
965 esac ;;
966 esac
967
968 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
969 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$build" 1>&6
973
974 test "$host_alias" != "$target_alias" &&
975 test "$program_prefix$program_suffix$program_transform_name" = \
976 NONENONEs,x,x, &&
977 program_prefix=${target_alias}-
978
979
980
981 WX_MAJOR_VERSION_NUMBER=2
982 WX_MINOR_VERSION_NUMBER=3
983 WX_RELEASE_NUMBER=1
984
985 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
986 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
987
988 WX_CURRENT=0
989 WX_REVISION=0
990 WX_AGE=0
991
992
993
994 USE_UNIX=1
995 USE_WIN32=0
996 USE_BEOS=0
997 USE_MAC=0
998
999 USE_LINUX=
1000 USE_SGI=
1001 USE_HPUX=
1002 USE_SYSV=
1003 USE_SVR4=
1004 USE_AIX=
1005 USE_SUN=
1006 USE_SOLARIS=
1007 USE_SUNOS=
1008 USE_ALPHA=
1009 USE_OSF=
1010 USE_BSD=
1011 USE_FREEBSD=
1012 USE_OPENBSD=
1013 USE_NETBSD=
1014 USE_VMS=
1015 USE_ULTRIX=
1016 USE_CYGWIN=
1017 USE_MINGW=
1018 USE_DATA_GENERAL=
1019
1020 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1021
1022 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1023
1024 DEFAULT_wxUSE_GTK=0
1025 DEFAULT_wxUSE_MAC=0
1026 DEFAULT_wxUSE_MGL=0
1027 DEFAULT_wxUSE_MOTIF=0
1028 DEFAULT_wxUSE_MSW=0
1029 DEFAULT_wxUSE_PM=0
1030 DEFAULT_wxUSE_WINE=0
1031
1032 DEFAULT_DEFAULT_wxUSE_GTK=0
1033 DEFAULT_DEFAULT_wxUSE_MAC=0
1034 DEFAULT_DEFAULT_wxUSE_MGL=0
1035 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1036 DEFAULT_DEFAULT_wxUSE_MSW=0
1037 DEFAULT_DEFAULT_wxUSE_PM=0
1038 DEFAULT_DEFAULT_wxUSE_WINE=0
1039
1040 PROGRAM_EXT=
1041
1042 case "${host}" in
1043 *-hp-hpux* )
1044 USE_HPUX=1
1045 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1046 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1047 cat >> confdefs.h <<\EOF
1048 #define __HPUX__ 1
1049 EOF
1050
1051 ;;
1052 *-*-linux* )
1053 USE_LINUX=1
1054 cat >> confdefs.h <<\EOF
1055 #define __LINUX__ 1
1056 EOF
1057
1058 TMP=`uname -m`
1059 if test "x$TMP" = "xalpha"; then
1060 USE_ALPHA=1
1061 cat >> confdefs.h <<\EOF
1062 #define __ALPHA__ 1
1063 EOF
1064
1065 fi
1066 DEFAULT_DEFAULT_wxUSE_GTK=1
1067 ;;
1068 *-*-irix5* | *-*-irix6* )
1069 USE_SGI=1
1070 USE_SVR4=1
1071 cat >> confdefs.h <<\EOF
1072 #define __SGI__ 1
1073 EOF
1074
1075 cat >> confdefs.h <<\EOF
1076 #define __SVR4__ 1
1077 EOF
1078
1079 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1080 ;;
1081 *-*-solaris2* )
1082 USE_SUN=1
1083 USE_SOLARIS=1
1084 USE_SVR4=1
1085 cat >> confdefs.h <<\EOF
1086 #define __SUN__ 1
1087 EOF
1088
1089 cat >> confdefs.h <<\EOF
1090 #define __SOLARIS__ 1
1091 EOF
1092
1093 cat >> confdefs.h <<\EOF
1094 #define __SVR4__ 1
1095 EOF
1096
1097 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1098 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1099 ;;
1100 *-*-sunos4* )
1101 USE_SUN=1
1102 USE_SUNOS=1
1103 USE_BSD=1
1104 cat >> confdefs.h <<\EOF
1105 #define __SUN__ 1
1106 EOF
1107
1108 cat >> confdefs.h <<\EOF
1109 #define __SUNOS__ 1
1110 EOF
1111
1112 cat >> confdefs.h <<\EOF
1113 #define __BSD__ 1
1114 EOF
1115
1116 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1117 ;;
1118 *-*-freebsd*)
1119 USE_BSD=1
1120 USE_FREEBSD=1
1121 cat >> confdefs.h <<\EOF
1122 #define __FREEBSD__ 1
1123 EOF
1124
1125 cat >> confdefs.h <<\EOF
1126 #define __BSD__ 1
1127 EOF
1128
1129 DEFAULT_DEFAULT_wxUSE_GTK=1
1130 ;;
1131 *-*-openbsd*)
1132 USE_BSD=1
1133 USE_OPENBSD=1
1134 cat >> confdefs.h <<\EOF
1135 #define __FREEBSD__ 1
1136 EOF
1137
1138 cat >> confdefs.h <<\EOF
1139 #define __OPENBSD__ 1
1140 EOF
1141
1142 DEFAULT_DEFAULT_wxUSE_GTK=1
1143 ;;
1144 *-*-netbsd*)
1145 USE_BSD=1
1146 USE_NETBSD=1
1147 cat >> confdefs.h <<\EOF
1148 #define __FREEBSD__ 1
1149 EOF
1150
1151 cat >> confdefs.h <<\EOF
1152 #define __NETBSD__ 1
1153 EOF
1154
1155 DEFAULT_DEFAULT_wxUSE_GTK=1
1156 ;;
1157 *-*-osf* )
1158 USE_ALPHA=1
1159 USE_OSF=1
1160 cat >> confdefs.h <<\EOF
1161 #define __ALPHA__ 1
1162 EOF
1163
1164 cat >> confdefs.h <<\EOF
1165 #define __OSF__ 1
1166 EOF
1167
1168 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1169 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1170 ;;
1171 *-*-dgux5* )
1172 USE_ALPHA=1
1173 USE_SVR4=1
1174 cat >> confdefs.h <<\EOF
1175 #define __ALPHA__ 1
1176 EOF
1177
1178 cat >> confdefs.h <<\EOF
1179 #define __SVR4__ 1
1180 EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1183 ;;
1184 *-*-sysv5* )
1185 USE_SYSV=1
1186 USE_SVR4=1
1187 cat >> confdefs.h <<\EOF
1188 #define __SYSV__ 1
1189 EOF
1190
1191 cat >> confdefs.h <<\EOF
1192 #define __SVR4__ 1
1193 EOF
1194
1195 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1196 ;;
1197 *-*-aix* )
1198 USE_AIX=1
1199 USE_SYSV=1
1200 USE_SVR4=1
1201 cat >> confdefs.h <<\EOF
1202 #define __AIX__ 1
1203 EOF
1204
1205 cat >> confdefs.h <<\EOF
1206 #define __SYSV__ 1
1207 EOF
1208
1209 cat >> confdefs.h <<\EOF
1210 #define __SVR4__ 1
1211 EOF
1212
1213 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1214 ;;
1215
1216 *-*-cygwin* | *-*-mingw32* )
1217 USE_UNIX=0
1218 USE_WIN32=1
1219 cat >> confdefs.h <<\EOF
1220 #define __WIN32__ 1
1221 EOF
1222
1223 cat >> confdefs.h <<\EOF
1224 #define __WIN95__ 1
1225 EOF
1226
1227 cat >> confdefs.h <<\EOF
1228 #define __WINDOWS__ 1
1229 EOF
1230
1231 cat >> confdefs.h <<\EOF
1232 #define __GNUWIN32__ 1
1233 EOF
1234
1235 cat >> confdefs.h <<\EOF
1236 #define STRICT 1
1237 EOF
1238
1239 cat >> confdefs.h <<\EOF
1240 #define WINVER 0x0400
1241 EOF
1242
1243 PROGRAM_EXT=".exe"
1244 DEFAULT_DEFAULT_wxUSE_MSW=1
1245 ;;
1246
1247 *-pc-os2_emx )
1248 cat >> confdefs.h <<\EOF
1249 #define __EMX__ 1
1250 EOF
1251
1252 PROGRAM_EXT=".exe"
1253 DEFAULT_DEFAULT_wxUSE_PM=1
1254 ;;
1255
1256 *-*-darwin* )
1257 USE_BSD=1
1258 USE_MAC=1
1259 cat >> confdefs.h <<\EOF
1260 #define __MAC__ 1
1261 EOF
1262
1263 cat >> confdefs.h <<\EOF
1264 #define __BSD__ 1
1265 EOF
1266
1267 cat >> confdefs.h <<\EOF
1268 #define __UNIX__ 1
1269 EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MAC=1
1272 ;;
1273
1274 *-*-beos* )
1275 USE_BEOS=1
1276 cat >> confdefs.h <<\EOF
1277 #define __BEOS__ 1
1278 EOF
1279
1280 ;;
1281
1282 *)
1283 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1284 esac
1285
1286 if test "$USE_UNIX" = 1 ; then
1287 wxUSE_UNIX=yes
1288 cat >> confdefs.h <<\EOF
1289 #define __UNIX__ 1
1290 EOF
1291
1292
1293 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1294 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1295 fi
1296
1297 if test "$USE_BEOS" = 1; then
1298 SRC_SUBDIRS="$SRC_SUBDIRS be"
1299 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1300 fi
1301
1302 if test "$USE_LINUX" = 1; then
1303 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1304 echo "configure:1305: checking for gettext in -lc" >&5
1305 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1308 else
1309 ac_save_LIBS="$LIBS"
1310 LIBS="-lc $LIBS"
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1314 /* Override any gcc2 internal prototype to avoid an error. */
1315 /* We use char because int might match the return type of a gcc2
1316 builtin and then its argument prototype would still apply. */
1317 char gettext();
1318
1319 int main() {
1320 gettext()
1321 ; return 0; }
1322 EOF
1323 if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1324 rm -rf conftest*
1325 eval "ac_cv_lib_$ac_lib_var=yes"
1326 else
1327 echo "configure: failed program was:" >&5
1328 cat conftest.$ac_ext >&5
1329 rm -rf conftest*
1330 eval "ac_cv_lib_$ac_lib_var=no"
1331 fi
1332 rm -f conftest*
1333 LIBS="$ac_save_LIBS"
1334
1335 fi
1336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1338 cat >> confdefs.h <<\EOF
1339 #define wxHAVE_GLIBC2 1
1340 EOF
1341
1342 else
1343 echo "$ac_t""no" 1>&6
1344 fi
1345
1346 fi
1347
1348
1349
1350
1351 wx_arg_cache_file="configarg.cache"
1352 echo "loading argument cache $wx_arg_cache_file"
1353 rm -f ${wx_arg_cache_file}.tmp
1354 touch ${wx_arg_cache_file}.tmp
1355 touch ${wx_arg_cache_file}
1356
1357
1358 DEBUG_CONFIGURE=0
1359 if test $DEBUG_CONFIGURE = 1; then
1360 DEFAULT_wxUSE_UNIVERSAL=no
1361
1362 DEFAULT_wxUSE_THREADS=yes
1363
1364 DEFAULT_wxUSE_SHARED=yes
1365 DEFAULT_wxUSE_BURNT_NAME=no
1366 DEFAULT_wxUSE_OPTIMISE=no
1367 DEFAULT_wxUSE_PROFILE=no
1368 DEFAULT_wxUSE_NO_DEPS=no
1369 DEFAULT_wxUSE_NO_RTTI=no
1370 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1371 DEFAULT_wxUSE_PERMISSIVE=no
1372 DEFAULT_wxUSE_DEBUG_FLAG=yes
1373 DEFAULT_wxUSE_DEBUG_INFO=yes
1374 DEFAULT_wxUSE_DEBUG_GDB=yes
1375 DEFAULT_wxUSE_MEM_TRACING=no
1376 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1377 DEFAULT_wxUSE_DMALLOC=no
1378 DEFAULT_wxUSE_APPLE_IEEE=no
1379
1380 DEFAULT_wxUSE_LOG=yes
1381 DEFAULT_wxUSE_LOGWINDOW=no
1382 DEFAULT_wxUSE_LOGGUI=no
1383
1384 DEFAULT_wxUSE_GUI=yes
1385 DEFAULT_wxUSE_CONTROLS=no
1386
1387 DEFAULT_wxUSE_ZLIB=no
1388 DEFAULT_wxUSE_LIBPNG=no
1389 DEFAULT_wxUSE_LIBJPEG=no
1390 DEFAULT_wxUSE_LIBTIFF=no
1391 DEFAULT_wxUSE_ODBC=no
1392 DEFAULT_wxUSE_FREETYPE=no
1393 DEFAULT_wxUSE_OPENGL=no
1394
1395 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1396 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1397 DEFAULT_wxUSE_STD_IOSTREAM=no
1398 DEFAULT_wxUSE_CMDLINE_PARSER=no
1399 DEFAULT_wxUSE_DATETIME=no
1400 DEFAULT_wxUSE_TIMEDATE=no
1401 DEFAULT_wxUSE_TIMER=no
1402 DEFAULT_wxUSE_STOPWATCH=no
1403 DEFAULT_wxUSE_FILE=no
1404 DEFAULT_wxUSE_FFILE=no
1405 DEFAULT_wxUSE_TEXTFILE=no
1406 DEFAULT_wxUSE_WAVE=no
1407 DEFAULT_wxUSE_INTL=no
1408 DEFAULT_wxUSE_CONFIG=no
1409 DEFAULT_wxUSE_FONTMAP=no
1410 DEFAULT_wxUSE_STREAMS=no
1411 DEFAULT_wxUSE_SOCKETS=no
1412 DEFAULT_wxUSE_DIALUP_MANAGER=no
1413 DEFAULT_wxUSE_SERIAL=no
1414 DEFAULT_wxUSE_JOYSTICK=no
1415 DEFAULT_wxUSE_DYNLIB_CLASS=no
1416 DEFAULT_wxUSE_LONGLONG=no
1417 DEFAULT_wxUSE_GEOMETRY=no
1418
1419 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1420 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1421 DEFAULT_wxUSE_POSTSCRIPT=no
1422
1423 DEFAULT_wxUSE_X_RESOURCES=no
1424 DEFAULT_wxUSE_CLIPBOARD=no
1425 DEFAULT_wxUSE_TOOLTIPS=no
1426 DEFAULT_wxUSE_DRAG_AND_DROP=no
1427 DEFAULT_wxUSE_SPLINES=no
1428
1429 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1430 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1431 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1432
1433 DEFAULT_wxUSE_PROLOGIO=no
1434 DEFAULT_wxUSE_RESOURCES=no
1435 DEFAULT_wxUSE_CONSTRAINTS=no
1436 DEFAULT_wxUSE_IPC=no
1437 DEFAULT_wxUSE_HELP=no
1438 DEFAULT_wxUSE_WXTREE=no
1439 DEFAULT_wxUSE_METAFILE=no
1440 DEFAULT_wxUSE_MIMETYPE=no
1441
1442 DEFAULT_wxUSE_COMMONDLGS=no
1443 DEFAULT_wxUSE_CHOICEDLG=no
1444 DEFAULT_wxUSE_COLOURDLG=no
1445 DEFAULT_wxUSE_DIRDLG=no
1446 DEFAULT_wxUSE_FILEDLG=no
1447 DEFAULT_wxUSE_FONTDLG=no
1448 DEFAULT_wxUSE_MSGDLG=no
1449 DEFAULT_wxUSE_NUMBERDLG=no
1450 DEFAULT_wxUSE_TEXTDLG=no
1451 DEFAULT_wxUSE_STARTUP_TIPS=no
1452 DEFAULT_wxUSE_PROGRESSDLG=no
1453 DEFAULT_wxUSE_MENUS=no
1454 DEFAULT_wxUSE_MINIFRAME=no
1455 DEFAULT_wxUSE_HTML=no
1456 DEFAULT_wxUSE_FILESYSTEM=no
1457 DEFAULT_wxUSE_FS_INET=no
1458 DEFAULT_wxUSE_FS_ZIP=no
1459 DEFAULT_wxUSE_BUSYINFO=no
1460 DEFAULT_wxUSE_ZIPSTREAM=no
1461 DEFAULT_wxUSE_VALIDATORS=no
1462
1463 DEFAULT_wxUSE_ACCEL=no
1464 DEFAULT_wxUSE_BUTTON=no
1465 DEFAULT_wxUSE_BMPBUTTON=no
1466 DEFAULT_wxUSE_CALCTRL=no
1467 DEFAULT_wxUSE_CARET=no
1468 DEFAULT_wxUSE_CHECKBOX=no
1469 DEFAULT_wxUSE_CHECKLST=no
1470 DEFAULT_wxUSE_CHOICE=no
1471 DEFAULT_wxUSE_COMBOBOX=no
1472 DEFAULT_wxUSE_GAUGE=no
1473 DEFAULT_wxUSE_GRID=no
1474 DEFAULT_wxUSE_NEW_GRID=no
1475 DEFAULT_wxUSE_IMAGLIST=no
1476 DEFAULT_wxUSE_LISTBOX=no
1477 DEFAULT_wxUSE_LISTCTRL=no
1478 DEFAULT_wxUSE_NOTEBOOK=no
1479 DEFAULT_wxUSE_RADIOBOX=no
1480 DEFAULT_wxUSE_RADIOBTN=no
1481 DEFAULT_wxUSE_SASH=no
1482 DEFAULT_wxUSE_SCROLLBAR=no
1483 DEFAULT_wxUSE_SLIDER=no
1484 DEFAULT_wxUSE_SPINBTN=no
1485 DEFAULT_wxUSE_SPINCTRL=no
1486 DEFAULT_wxUSE_SPLITTER=no
1487 DEFAULT_wxUSE_STATBMP=no
1488 DEFAULT_wxUSE_STATBOX=no
1489 DEFAULT_wxUSE_STATLINE=no
1490 DEFAULT_wxUSE_STATTEXT=no
1491 DEFAULT_wxUSE_STATUSBAR=yes
1492 DEFAULT_wxUSE_TABDIALOG=no
1493 DEFAULT_wxUSE_TEXTCTRL=no
1494 DEFAULT_wxUSE_TOGGLEBTN=no
1495 DEFAULT_wxUSE_TOOLBAR=no
1496 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1497 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1498 DEFAULT_wxUSE_TREECTRL=no
1499
1500 DEFAULT_wxUSE_UNICODE=no
1501 DEFAULT_wxUSE_WCSRTOMBS=no
1502
1503 DEFAULT_wxUSE_IMAGE=no
1504 DEFAULT_wxUSE_GIF=no
1505 DEFAULT_wxUSE_PCX=no
1506 DEFAULT_wxUSE_PNM=no
1507 DEFAULT_wxUSE_XPM=no
1508 else
1509 DEFAULT_wxUSE_UNIVERSAL=no
1510
1511 DEFAULT_wxUSE_THREADS=yes
1512
1513 DEFAULT_wxUSE_SHARED=yes
1514 DEFAULT_wxUSE_BURNT_NAME=no
1515 DEFAULT_wxUSE_OPTIMISE=yes
1516 DEFAULT_wxUSE_PROFILE=no
1517 DEFAULT_wxUSE_NO_DEPS=no
1518 DEFAULT_wxUSE_NO_RTTI=no
1519 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1520 DEFAULT_wxUSE_PERMISSIVE=no
1521 DEFAULT_wxUSE_DEBUG_FLAG=no
1522 DEFAULT_wxUSE_DEBUG_INFO=no
1523 DEFAULT_wxUSE_DEBUG_GDB=no
1524 DEFAULT_wxUSE_MEM_TRACING=no
1525 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1526 DEFAULT_wxUSE_DMALLOC=no
1527 DEFAULT_wxUSE_APPLE_IEEE=yes
1528
1529 DEFAULT_wxUSE_LOG=yes
1530 DEFAULT_wxUSE_LOGWINDOW=yes
1531 DEFAULT_wxUSE_LOGGUI=yes
1532
1533 DEFAULT_wxUSE_GUI=yes
1534
1535 DEFAULT_wxUSE_ZLIB=yes
1536 DEFAULT_wxUSE_LIBPNG=yes
1537 DEFAULT_wxUSE_LIBJPEG=yes
1538 DEFAULT_wxUSE_LIBTIFF=yes
1539 DEFAULT_wxUSE_ODBC=no
1540 DEFAULT_wxUSE_FREETYPE=no
1541 DEFAULT_wxUSE_OPENGL=no
1542
1543 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1544 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1545 DEFAULT_wxUSE_STD_IOSTREAM=no
1546 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1547 DEFAULT_wxUSE_DATETIME=yes
1548 DEFAULT_wxUSE_TIMEDATE=no
1549 DEFAULT_wxUSE_TIMER=yes
1550 DEFAULT_wxUSE_STOPWATCH=yes
1551 DEFAULT_wxUSE_FILE=yes
1552 DEFAULT_wxUSE_FFILE=yes
1553 DEFAULT_wxUSE_TEXTFILE=yes
1554 DEFAULT_wxUSE_WAVE=no
1555 DEFAULT_wxUSE_INTL=yes
1556 DEFAULT_wxUSE_CONFIG=yes
1557 DEFAULT_wxUSE_FONTMAP=yes
1558 DEFAULT_wxUSE_STREAMS=yes
1559 DEFAULT_wxUSE_SOCKETS=yes
1560 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1561 DEFAULT_wxUSE_SERIAL=yes
1562 DEFAULT_wxUSE_JOYSTICK=yes
1563 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1564 DEFAULT_wxUSE_LONGLONG=yes
1565 DEFAULT_wxUSE_GEOMETRY=yes
1566
1567 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1568 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1569 DEFAULT_wxUSE_POSTSCRIPT=yes
1570
1571 DEFAULT_wxUSE_X_RESOURCES=no
1572 DEFAULT_wxUSE_CLIPBOARD=yes
1573 DEFAULT_wxUSE_TOOLTIPS=yes
1574 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1575 DEFAULT_wxUSE_SPLINES=yes
1576
1577 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1578 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1579 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1580
1581 DEFAULT_wxUSE_PROLOGIO=yes
1582 DEFAULT_wxUSE_RESOURCES=yes
1583 DEFAULT_wxUSE_CONSTRAINTS=yes
1584 DEFAULT_wxUSE_IPC=yes
1585 DEFAULT_wxUSE_HELP=yes
1586 DEFAULT_wxUSE_WXTREE=yes
1587 DEFAULT_wxUSE_METAFILE=yes
1588 DEFAULT_wxUSE_MIMETYPE=yes
1589
1590 DEFAULT_wxUSE_COMMONDLGS=yes
1591 DEFAULT_wxUSE_CHOICEDLG=yes
1592 DEFAULT_wxUSE_COLOURDLG=yes
1593 DEFAULT_wxUSE_DIRDLG=yes
1594 DEFAULT_wxUSE_FILEDLG=yes
1595 DEFAULT_wxUSE_FONTDLG=yes
1596 DEFAULT_wxUSE_MSGDLG=yes
1597 DEFAULT_wxUSE_NUMBERDLG=yes
1598 DEFAULT_wxUSE_TEXTDLG=yes
1599 DEFAULT_wxUSE_STARTUP_TIPS=yes
1600 DEFAULT_wxUSE_PROGRESSDLG=yes
1601 DEFAULT_wxUSE_MENUS=yes
1602 DEFAULT_wxUSE_MINIFRAME=yes
1603 DEFAULT_wxUSE_HTML=yes
1604 DEFAULT_wxUSE_FILESYSTEM=yes
1605 DEFAULT_wxUSE_FS_INET=yes
1606 DEFAULT_wxUSE_FS_ZIP=yes
1607 DEFAULT_wxUSE_BUSYINFO=yes
1608 DEFAULT_wxUSE_ZIPSTREAM=yes
1609 DEFAULT_wxUSE_VALIDATORS=yes
1610
1611 DEFAULT_wxUSE_ACCEL=yes
1612 DEFAULT_wxUSE_BUTTON=yes
1613 DEFAULT_wxUSE_BMPBUTTON=yes
1614 DEFAULT_wxUSE_CALCTRL=yes
1615 DEFAULT_wxUSE_CARET=yes
1616 DEFAULT_wxUSE_CHECKBOX=yes
1617 DEFAULT_wxUSE_CHECKLST=yes
1618 DEFAULT_wxUSE_CHOICE=yes
1619 DEFAULT_wxUSE_COMBOBOX=yes
1620 DEFAULT_wxUSE_GAUGE=yes
1621 DEFAULT_wxUSE_GRID=yes
1622 DEFAULT_wxUSE_NEW_GRID=yes
1623 DEFAULT_wxUSE_IMAGLIST=yes
1624 DEFAULT_wxUSE_LISTBOX=yes
1625 DEFAULT_wxUSE_LISTCTRL=yes
1626 DEFAULT_wxUSE_NOTEBOOK=yes
1627 DEFAULT_wxUSE_RADIOBOX=yes
1628 DEFAULT_wxUSE_RADIOBTN=yes
1629 DEFAULT_wxUSE_SASH=yes
1630 DEFAULT_wxUSE_SCROLLBAR=yes
1631 DEFAULT_wxUSE_SLIDER=yes
1632 DEFAULT_wxUSE_SPINBTN=yes
1633 DEFAULT_wxUSE_SPINCTRL=yes
1634 DEFAULT_wxUSE_SPLITTER=yes
1635 DEFAULT_wxUSE_STATBMP=yes
1636 DEFAULT_wxUSE_STATBOX=yes
1637 DEFAULT_wxUSE_STATLINE=yes
1638 DEFAULT_wxUSE_STATTEXT=yes
1639 DEFAULT_wxUSE_STATUSBAR=yes
1640 DEFAULT_wxUSE_TABDIALOG=no
1641 DEFAULT_wxUSE_TEXTCTRL=yes
1642 DEFAULT_wxUSE_TOGGLEBTN=yes
1643 DEFAULT_wxUSE_TOOLBAR=yes
1644 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1645 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1646 DEFAULT_wxUSE_TREECTRL=yes
1647
1648 DEFAULT_wxUSE_UNICODE=no
1649 DEFAULT_wxUSE_WCSRTOMBS=no
1650
1651 DEFAULT_wxUSE_IMAGE=yes
1652 DEFAULT_wxUSE_GIF=yes
1653 DEFAULT_wxUSE_PCX=yes
1654 DEFAULT_wxUSE_PNM=yes
1655 DEFAULT_wxUSE_XPM=yes
1656 fi
1657
1658
1659
1660 for toolkit in `echo $ALL_TOOLKITS`; do
1661 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1662 if test "x$LINE" != x ; then
1663 has_toolkit_in_cache=1
1664 eval "DEFAULT_$LINE"
1665 eval "CACHE_$toolkit=1"
1666 fi
1667 done
1668
1669
1670
1671 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1672 echo "configure:1673: checking for --enable-gui" >&5
1673 no_cache=0
1674 # Check whether --enable-gui or --disable-gui was given.
1675 if test "${enable_gui+set}" = set; then
1676 enableval="$enable_gui"
1677
1678 if test "$enableval" = yes; then
1679 ac_cv_use_gui='wxUSE_GUI=yes'
1680 else
1681 ac_cv_use_gui='wxUSE_GUI=no'
1682 fi
1683
1684 else
1685
1686 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1687 if test "x$LINE" != x ; then
1688 eval "DEFAULT_$LINE"
1689 else
1690 no_cache=1
1691 fi
1692
1693 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1694
1695 fi
1696
1697
1698 eval "$ac_cv_use_gui"
1699 if test "$no_cache" != 1; then
1700 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1701 fi
1702
1703 if test "$wxUSE_GUI" = yes; then
1704 echo "$ac_t""yes" 1>&6
1705 else
1706 echo "$ac_t""no" 1>&6
1707 fi
1708
1709
1710 if test "$wxUSE_GUI" = "yes"; then
1711
1712
1713 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1714 echo "configure:1715: checking for --enable-universal" >&5
1715 no_cache=0
1716 # Check whether --enable-universal or --disable-universal was given.
1717 if test "${enable_universal+set}" = set; then
1718 enableval="$enable_universal"
1719
1720 if test "$enableval" = yes; then
1721 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1722 else
1723 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1724 fi
1725
1726 else
1727
1728 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1729 if test "x$LINE" != x ; then
1730 eval "DEFAULT_$LINE"
1731 else
1732 no_cache=1
1733 fi
1734
1735 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1736
1737 fi
1738
1739
1740 eval "$ac_cv_use_universal"
1741 if test "$no_cache" != 1; then
1742 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1743 fi
1744
1745 if test "$wxUSE_UNIVERSAL" = yes; then
1746 echo "$ac_t""yes" 1>&6
1747 else
1748 echo "$ac_t""no" 1>&6
1749 fi
1750
1751 # Check whether --with-gtk or --without-gtk was given.
1752 if test "${with_gtk+set}" = set; then
1753 withval="$with_gtk"
1754 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1755 fi
1756
1757 # Check whether --with-motif or --without-motif was given.
1758 if test "${with_motif+set}" = set; then
1759 withval="$with_motif"
1760 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1761 fi
1762
1763 # Check whether --with-mac or --without-mac was given.
1764 if test "${with_mac+set}" = set; then
1765 withval="$with_mac"
1766 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1767 fi
1768
1769 # Check whether --with-wine or --without-wine was given.
1770 if test "${with_wine+set}" = set; then
1771 withval="$with_wine"
1772 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1773 fi
1774
1775 # Check whether --with-cygwin or --without-cygwin was given.
1776 if test "${with_cygwin+set}" = set; then
1777 withval="$with_cygwin"
1778 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1779 fi
1780
1781 # Check whether --with-mingw or --without-mingw was given.
1782 if test "${with_mingw+set}" = set; then
1783 withval="$with_mingw"
1784 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1785 fi
1786
1787 # Check whether --with-pm or --without-pm was given.
1788 if test "${with_pm+set}" = set; then
1789 withval="$with_pm"
1790 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1791 fi
1792
1793 # Check whether --with-mgl or --without-mgl was given.
1794 if test "${with_mgl+set}" = set; then
1795 withval="$with_mgl"
1796 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1797 fi
1798
1799
1800 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1801 if test "${enable_gtk2+set}" = set; then
1802 enableval="$enable_gtk2"
1803 wxUSE_GTK2=1
1804 else
1805 wxUSE_GTK2=0
1806 fi
1807
1808
1809
1810 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1811 echo "configure:1812: checking for --with-libpng" >&5
1812 no_cache=0
1813 # Check whether --with-libpng or --without-libpng was given.
1814 if test "${with_libpng+set}" = set; then
1815 withval="$with_libpng"
1816
1817 if test "$withval" = yes; then
1818 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1819 elif test "$withval" = no; then
1820 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1821 elif test "$withval" = sys; then
1822 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1823 else
1824 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1825 fi
1826
1827 else
1828
1829 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1830 if test "x$LINE" != x ; then
1831 eval "DEFAULT_$LINE"
1832 else
1833 no_cache=1
1834 fi
1835
1836 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1837
1838 fi
1839
1840
1841 eval "$ac_cv_use_libpng"
1842 if test "$no_cache" != 1; then
1843 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1844 fi
1845
1846 if test "$wxUSE_LIBPNG" = yes; then
1847 echo "$ac_t""yes" 1>&6
1848 elif test "$wxUSE_LIBPNG" = no; then
1849 echo "$ac_t""no" 1>&6
1850 elif test "$wxUSE_LIBPNG" = sys; then
1851 echo "$ac_t""system version" 1>&6
1852 else
1853 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1854 fi
1855
1856
1857 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1858 echo "configure:1859: checking for --with-libjpeg" >&5
1859 no_cache=0
1860 # Check whether --with-libjpeg or --without-libjpeg was given.
1861 if test "${with_libjpeg+set}" = set; then
1862 withval="$with_libjpeg"
1863
1864 if test "$withval" = yes; then
1865 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1866 elif test "$withval" = no; then
1867 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1868 elif test "$withval" = sys; then
1869 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1870 else
1871 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1872 fi
1873
1874 else
1875
1876 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1877 if test "x$LINE" != x ; then
1878 eval "DEFAULT_$LINE"
1879 else
1880 no_cache=1
1881 fi
1882
1883 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1884
1885 fi
1886
1887
1888 eval "$ac_cv_use_libjpeg"
1889 if test "$no_cache" != 1; then
1890 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1891 fi
1892
1893 if test "$wxUSE_LIBJPEG" = yes; then
1894 echo "$ac_t""yes" 1>&6
1895 elif test "$wxUSE_LIBJPEG" = no; then
1896 echo "$ac_t""no" 1>&6
1897 elif test "$wxUSE_LIBJPEG" = sys; then
1898 echo "$ac_t""system version" 1>&6
1899 else
1900 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1901 fi
1902
1903
1904 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1905 echo "configure:1906: checking for --with-libtiff" >&5
1906 no_cache=0
1907 # Check whether --with-libtiff or --without-libtiff was given.
1908 if test "${with_libtiff+set}" = set; then
1909 withval="$with_libtiff"
1910
1911 if test "$withval" = yes; then
1912 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1913 elif test "$withval" = no; then
1914 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1915 elif test "$withval" = sys; then
1916 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1917 else
1918 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1919 fi
1920
1921 else
1922
1923 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1924 if test "x$LINE" != x ; then
1925 eval "DEFAULT_$LINE"
1926 else
1927 no_cache=1
1928 fi
1929
1930 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1931
1932 fi
1933
1934
1935 eval "$ac_cv_use_libtiff"
1936 if test "$no_cache" != 1; then
1937 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1938 fi
1939
1940 if test "$wxUSE_LIBTIFF" = yes; then
1941 echo "$ac_t""yes" 1>&6
1942 elif test "$wxUSE_LIBTIFF" = no; then
1943 echo "$ac_t""no" 1>&6
1944 elif test "$wxUSE_LIBTIFF" = sys; then
1945 echo "$ac_t""system version" 1>&6
1946 else
1947 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1948 fi
1949
1950
1951 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1952 echo "configure:1953: checking for --with-freetype" >&5
1953 no_cache=0
1954 # Check whether --with-freetype or --without-freetype was given.
1955 if test "${with_freetype+set}" = set; then
1956 withval="$with_freetype"
1957
1958 if test "$withval" = yes; then
1959 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1960 elif test "$withval" = no; then
1961 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1962 elif test "$withval" = sys; then
1963 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1964 else
1965 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1966 fi
1967
1968 else
1969
1970 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1971 if test "x$LINE" != x ; then
1972 eval "DEFAULT_$LINE"
1973 else
1974 no_cache=1
1975 fi
1976
1977 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1978
1979 fi
1980
1981
1982 eval "$ac_cv_use_freetype"
1983 if test "$no_cache" != 1; then
1984 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1985 fi
1986
1987 if test "$wxUSE_FREETYPE" = yes; then
1988 echo "$ac_t""yes" 1>&6
1989 elif test "$wxUSE_FREETYPE" = no; then
1990 echo "$ac_t""no" 1>&6
1991 elif test "$wxUSE_FREETYPE" = sys; then
1992 echo "$ac_t""system version" 1>&6
1993 else
1994 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1995 fi
1996
1997
1998 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
1999 echo "configure:2000: checking for --with-opengl" >&5
2000 no_cache=0
2001 # Check whether --with-opengl or --without-opengl was given.
2002 if test "${with_opengl+set}" = set; then
2003 withval="$with_opengl"
2004
2005 if test "$withval" = yes; then
2006 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2007 else
2008 ac_cv_use_opengl='wxUSE_OPENGL=no'
2009 fi
2010
2011 else
2012
2013 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2014 if test "x$LINE" != x ; then
2015 eval "DEFAULT_$LINE"
2016 else
2017 no_cache=1
2018 fi
2019
2020 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2021
2022 fi
2023
2024
2025 eval "$ac_cv_use_opengl"
2026 if test "$no_cache" != 1; then
2027 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2028 fi
2029
2030 if test "$wxUSE_OPENGL" = yes; then
2031 echo "$ac_t""yes" 1>&6
2032 else
2033 echo "$ac_t""no" 1>&6
2034 fi
2035
2036
2037 fi
2038
2039
2040 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2041 echo "configure:2042: checking for --with-dmalloc" >&5
2042 no_cache=0
2043 # Check whether --with-dmalloc or --without-dmalloc was given.
2044 if test "${with_dmalloc+set}" = set; then
2045 withval="$with_dmalloc"
2046
2047 if test "$withval" = yes; then
2048 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2049 else
2050 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2051 fi
2052
2053 else
2054
2055 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2056 if test "x$LINE" != x ; then
2057 eval "DEFAULT_$LINE"
2058 else
2059 no_cache=1
2060 fi
2061
2062 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2063
2064 fi
2065
2066
2067 eval "$ac_cv_use_dmalloc"
2068 if test "$no_cache" != 1; then
2069 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2070 fi
2071
2072 if test "$wxUSE_DMALLOC" = yes; then
2073 echo "$ac_t""yes" 1>&6
2074 else
2075 echo "$ac_t""no" 1>&6
2076 fi
2077
2078
2079 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2080 echo "configure:2081: checking for --with-zlib" >&5
2081 no_cache=0
2082 # Check whether --with-zlib or --without-zlib was given.
2083 if test "${with_zlib+set}" = set; then
2084 withval="$with_zlib"
2085
2086 if test "$withval" = yes; then
2087 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2088 elif test "$withval" = no; then
2089 ac_cv_use_zlib='wxUSE_ZLIB=no'
2090 elif test "$withval" = sys; then
2091 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2092 else
2093 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2094 fi
2095
2096 else
2097
2098 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2099 if test "x$LINE" != x ; then
2100 eval "DEFAULT_$LINE"
2101 else
2102 no_cache=1
2103 fi
2104
2105 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2106
2107 fi
2108
2109
2110 eval "$ac_cv_use_zlib"
2111 if test "$no_cache" != 1; then
2112 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2113 fi
2114
2115 if test "$wxUSE_ZLIB" = yes; then
2116 echo "$ac_t""yes" 1>&6
2117 elif test "$wxUSE_ZLIB" = no; then
2118 echo "$ac_t""no" 1>&6
2119 elif test "$wxUSE_ZLIB" = sys; then
2120 echo "$ac_t""system version" 1>&6
2121 else
2122 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2123 fi
2124
2125
2126 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2127 echo "configure:2128: checking for --with-odbc" >&5
2128 no_cache=0
2129 # Check whether --with-odbc or --without-odbc was given.
2130 if test "${with_odbc+set}" = set; then
2131 withval="$with_odbc"
2132
2133 if test "$withval" = yes; then
2134 ac_cv_use_odbc='wxUSE_ODBC=yes'
2135 else
2136 ac_cv_use_odbc='wxUSE_ODBC=no'
2137 fi
2138
2139 else
2140
2141 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2142 if test "x$LINE" != x ; then
2143 eval "DEFAULT_$LINE"
2144 else
2145 no_cache=1
2146 fi
2147
2148 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2149
2150 fi
2151
2152
2153 eval "$ac_cv_use_odbc"
2154 if test "$no_cache" != 1; then
2155 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2156 fi
2157
2158 if test "$wxUSE_ODBC" = yes; then
2159 echo "$ac_t""yes" 1>&6
2160 else
2161 echo "$ac_t""no" 1>&6
2162 fi
2163
2164
2165
2166
2167
2168 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2169 echo "configure:2170: checking for --enable-shared" >&5
2170 no_cache=0
2171 # Check whether --enable-shared or --disable-shared was given.
2172 if test "${enable_shared+set}" = set; then
2173 enableval="$enable_shared"
2174
2175 if test "$enableval" = yes; then
2176 ac_cv_use_shared='wxUSE_SHARED=yes'
2177 else
2178 ac_cv_use_shared='wxUSE_SHARED=no'
2179 fi
2180
2181 else
2182
2183 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2184 if test "x$LINE" != x ; then
2185 eval "DEFAULT_$LINE"
2186 else
2187 no_cache=1
2188 fi
2189
2190 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2191
2192 fi
2193
2194
2195 eval "$ac_cv_use_shared"
2196 if test "$no_cache" != 1; then
2197 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2198 fi
2199
2200 if test "$wxUSE_SHARED" = yes; then
2201 echo "$ac_t""yes" 1>&6
2202 else
2203 echo "$ac_t""no" 1>&6
2204 fi
2205
2206
2207 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2208 echo "configure:2209: checking for --enable-burnt_name" >&5
2209 no_cache=0
2210 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2211 if test "${enable_burnt_name+set}" = set; then
2212 enableval="$enable_burnt_name"
2213
2214 if test "$enableval" = yes; then
2215 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2216 else
2217 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2218 fi
2219
2220 else
2221
2222 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2223 if test "x$LINE" != x ; then
2224 eval "DEFAULT_$LINE"
2225 else
2226 no_cache=1
2227 fi
2228
2229 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2230
2231 fi
2232
2233
2234 eval "$ac_cv_use_burnt_name"
2235 if test "$no_cache" != 1; then
2236 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2237 fi
2238
2239 if test "$wxUSE_BURNT_NAME" = yes; then
2240 echo "$ac_t""yes" 1>&6
2241 else
2242 echo "$ac_t""no" 1>&6
2243 fi
2244
2245
2246 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2247 echo "configure:2248: checking for --enable-optimise" >&5
2248 no_cache=0
2249 # Check whether --enable-optimise or --disable-optimise was given.
2250 if test "${enable_optimise+set}" = set; then
2251 enableval="$enable_optimise"
2252
2253 if test "$enableval" = yes; then
2254 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2255 else
2256 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2257 fi
2258
2259 else
2260
2261 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2269
2270 fi
2271
2272
2273 eval "$ac_cv_use_optimise"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_OPTIMISE" = yes; then
2279 echo "$ac_t""yes" 1>&6
2280 else
2281 echo "$ac_t""no" 1>&6
2282 fi
2283
2284
2285 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2286 echo "configure:2287: checking for --enable-debug" >&5
2287 no_cache=0
2288 # Check whether --enable-debug or --disable-debug was given.
2289 if test "${enable_debug+set}" = set; then
2290 enableval="$enable_debug"
2291
2292 if test "$enableval" = yes; then
2293 ac_cv_use_debug='wxUSE_DEBUG=yes'
2294 else
2295 ac_cv_use_debug='wxUSE_DEBUG=no'
2296 fi
2297
2298 else
2299
2300 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2301 if test "x$LINE" != x ; then
2302 eval "DEFAULT_$LINE"
2303 else
2304 no_cache=1
2305 fi
2306
2307 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2308
2309 fi
2310
2311
2312 eval "$ac_cv_use_debug"
2313 if test "$no_cache" != 1; then
2314 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2315 fi
2316
2317 if test "$wxUSE_DEBUG" = yes; then
2318 echo "$ac_t""yes" 1>&6
2319 else
2320 echo "$ac_t""no" 1>&6
2321 fi
2322
2323
2324 if test "$wxUSE_DEBUG" = "yes"; then
2325 DEFAULT_wxUSE_DEBUG_FLAG=yes
2326 DEFAULT_wxUSE_DEBUG_INFO=yes
2327 elif test "$wxUSE_DEBUG" = "no"; then
2328 DEFAULT_wxUSE_DEBUG_FLAG=no
2329 DEFAULT_wxUSE_DEBUG_INFO=no
2330 fi
2331
2332
2333 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2334 echo "configure:2335: checking for --enable-debug_flag" >&5
2335 no_cache=0
2336 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2337 if test "${enable_debug_flag+set}" = set; then
2338 enableval="$enable_debug_flag"
2339
2340 if test "$enableval" = yes; then
2341 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2342 else
2343 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2344 fi
2345
2346 else
2347
2348 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2349 if test "x$LINE" != x ; then
2350 eval "DEFAULT_$LINE"
2351 else
2352 no_cache=1
2353 fi
2354
2355 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2356
2357 fi
2358
2359
2360 eval "$ac_cv_use_debug_flag"
2361 if test "$no_cache" != 1; then
2362 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2363 fi
2364
2365 if test "$wxUSE_DEBUG_FLAG" = yes; then
2366 echo "$ac_t""yes" 1>&6
2367 else
2368 echo "$ac_t""no" 1>&6
2369 fi
2370
2371
2372 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2373 echo "configure:2374: checking for --enable-debug_info" >&5
2374 no_cache=0
2375 # Check whether --enable-debug_info or --disable-debug_info was given.
2376 if test "${enable_debug_info+set}" = set; then
2377 enableval="$enable_debug_info"
2378
2379 if test "$enableval" = yes; then
2380 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2381 else
2382 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2383 fi
2384
2385 else
2386
2387 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2388 if test "x$LINE" != x ; then
2389 eval "DEFAULT_$LINE"
2390 else
2391 no_cache=1
2392 fi
2393
2394 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2395
2396 fi
2397
2398
2399 eval "$ac_cv_use_debug_info"
2400 if test "$no_cache" != 1; then
2401 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2402 fi
2403
2404 if test "$wxUSE_DEBUG_INFO" = yes; then
2405 echo "$ac_t""yes" 1>&6
2406 else
2407 echo "$ac_t""no" 1>&6
2408 fi
2409
2410
2411 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2412 echo "configure:2413: checking for --enable-debug_gdb" >&5
2413 no_cache=0
2414 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2415 if test "${enable_debug_gdb+set}" = set; then
2416 enableval="$enable_debug_gdb"
2417
2418 if test "$enableval" = yes; then
2419 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2420 else
2421 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2422 fi
2423
2424 else
2425
2426 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2434
2435 fi
2436
2437
2438 eval "$ac_cv_use_debug_gdb"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_DEBUG_GDB" = yes; then
2444 echo "$ac_t""yes" 1>&6
2445 else
2446 echo "$ac_t""no" 1>&6
2447 fi
2448
2449
2450 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2451 echo "configure:2452: checking for --enable-debug_cntxt" >&5
2452 no_cache=0
2453 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2454 if test "${enable_debug_cntxt+set}" = set; then
2455 enableval="$enable_debug_cntxt"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2459 else
2460 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2461 fi
2462
2463 else
2464
2465 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2473
2474 fi
2475
2476
2477 eval "$ac_cv_use_debug_cntxt"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2483 echo "$ac_t""yes" 1>&6
2484 else
2485 echo "$ac_t""no" 1>&6
2486 fi
2487
2488
2489 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2490 echo "configure:2491: checking for --enable-mem_tracing" >&5
2491 no_cache=0
2492 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2493 if test "${enable_mem_tracing+set}" = set; then
2494 enableval="$enable_mem_tracing"
2495
2496 if test "$enableval" = yes; then
2497 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2498 else
2499 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2500 fi
2501
2502 else
2503
2504 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2512
2513 fi
2514
2515
2516 eval "$ac_cv_use_mem_tracing"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_MEM_TRACING" = yes; then
2522 echo "$ac_t""yes" 1>&6
2523 else
2524 echo "$ac_t""no" 1>&6
2525 fi
2526
2527
2528 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2529 echo "configure:2530: checking for --enable-profile" >&5
2530 no_cache=0
2531 # Check whether --enable-profile or --disable-profile was given.
2532 if test "${enable_profile+set}" = set; then
2533 enableval="$enable_profile"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_profile='wxUSE_PROFILE=yes'
2537 else
2538 ac_cv_use_profile='wxUSE_PROFILE=no'
2539 fi
2540
2541 else
2542
2543 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2551
2552 fi
2553
2554
2555 eval "$ac_cv_use_profile"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_PROFILE" = yes; then
2561 echo "$ac_t""yes" 1>&6
2562 else
2563 echo "$ac_t""no" 1>&6
2564 fi
2565
2566
2567 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2568 echo "configure:2569: checking for --enable-no_rtti" >&5
2569 no_cache=0
2570 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2571 if test "${enable_no_rtti+set}" = set; then
2572 enableval="$enable_no_rtti"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2576 else
2577 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2578 fi
2579
2580 else
2581
2582 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2590
2591 fi
2592
2593
2594 eval "$ac_cv_use_no_rtti"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_NO_RTTI" = yes; then
2600 echo "$ac_t""yes" 1>&6
2601 else
2602 echo "$ac_t""no" 1>&6
2603 fi
2604
2605
2606 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2607 echo "configure:2608: checking for --enable-no_exceptions" >&5
2608 no_cache=0
2609 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2610 if test "${enable_no_exceptions+set}" = set; then
2611 enableval="$enable_no_exceptions"
2612
2613 if test "$enableval" = yes; then
2614 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2615 else
2616 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2617 fi
2618
2619 else
2620
2621 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2629
2630 fi
2631
2632
2633 eval "$ac_cv_use_no_exceptions"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2639 echo "$ac_t""yes" 1>&6
2640 else
2641 echo "$ac_t""no" 1>&6
2642 fi
2643
2644
2645 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2646 echo "configure:2647: checking for --enable-permissive" >&5
2647 no_cache=0
2648 # Check whether --enable-permissive or --disable-permissive was given.
2649 if test "${enable_permissive+set}" = set; then
2650 enableval="$enable_permissive"
2651
2652 if test "$enableval" = yes; then
2653 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2654 else
2655 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2656 fi
2657
2658 else
2659
2660 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2668
2669 fi
2670
2671
2672 eval "$ac_cv_use_permissive"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_PERMISSIVE" = yes; then
2678 echo "$ac_t""yes" 1>&6
2679 else
2680 echo "$ac_t""no" 1>&6
2681 fi
2682
2683
2684 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2685 echo "configure:2686: checking for --enable-no_deps" >&5
2686 no_cache=0
2687 # Check whether --enable-no_deps or --disable-no_deps was given.
2688 if test "${enable_no_deps+set}" = set; then
2689 enableval="$enable_no_deps"
2690
2691 if test "$enableval" = yes; then
2692 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2693 else
2694 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2695 fi
2696
2697 else
2698
2699 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2707
2708 fi
2709
2710
2711 eval "$ac_cv_use_no_deps"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_NO_DEPS" = yes; then
2717 echo "$ac_t""yes" 1>&6
2718 else
2719 echo "$ac_t""no" 1>&6
2720 fi
2721
2722
2723
2724 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2725 echo "configure:2726: checking for --enable-compat20" >&5
2726 no_cache=0
2727 # Check whether --enable-compat20 or --disable-compat20 was given.
2728 if test "${enable_compat20+set}" = set; then
2729 enableval="$enable_compat20"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2733 else
2734 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2735 fi
2736
2737 else
2738
2739 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2747
2748 fi
2749
2750
2751 eval "$ac_cv_use_compat20"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2757 echo "$ac_t""yes" 1>&6
2758 else
2759 echo "$ac_t""no" 1>&6
2760 fi
2761
2762
2763 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2764 echo "configure:2765: checking for --enable-compat22" >&5
2765 no_cache=0
2766 # Check whether --enable-compat22 or --disable-compat22 was given.
2767 if test "${enable_compat22+set}" = set; then
2768 enableval="$enable_compat22"
2769
2770 if test "$enableval" = yes; then
2771 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2772 else
2773 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2774 fi
2775
2776 else
2777
2778 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2786
2787 fi
2788
2789
2790 eval "$ac_cv_use_compat22"
2791 if test "$no_cache" != 1; then
2792 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2793 fi
2794
2795 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2796 echo "$ac_t""yes" 1>&6
2797 else
2798 echo "$ac_t""no" 1>&6
2799 fi
2800
2801
2802
2803
2804 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2805 echo "configure:2806: checking for --enable-intl" >&5
2806 no_cache=0
2807 # Check whether --enable-intl or --disable-intl was given.
2808 if test "${enable_intl+set}" = set; then
2809 enableval="$enable_intl"
2810
2811 if test "$enableval" = yes; then
2812 ac_cv_use_intl='wxUSE_INTL=yes'
2813 else
2814 ac_cv_use_intl='wxUSE_INTL=no'
2815 fi
2816
2817 else
2818
2819 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2827
2828 fi
2829
2830
2831 eval "$ac_cv_use_intl"
2832 if test "$no_cache" != 1; then
2833 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2834 fi
2835
2836 if test "$wxUSE_INTL" = yes; then
2837 echo "$ac_t""yes" 1>&6
2838 else
2839 echo "$ac_t""no" 1>&6
2840 fi
2841
2842
2843 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2844 echo "configure:2845: checking for --enable-config" >&5
2845 no_cache=0
2846 # Check whether --enable-config or --disable-config was given.
2847 if test "${enable_config+set}" = set; then
2848 enableval="$enable_config"
2849
2850 if test "$enableval" = yes; then
2851 ac_cv_use_config='wxUSE_CONFIG=yes'
2852 else
2853 ac_cv_use_config='wxUSE_CONFIG=no'
2854 fi
2855
2856 else
2857
2858 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2859 if test "x$LINE" != x ; then
2860 eval "DEFAULT_$LINE"
2861 else
2862 no_cache=1
2863 fi
2864
2865 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2866
2867 fi
2868
2869
2870 eval "$ac_cv_use_config"
2871 if test "$no_cache" != 1; then
2872 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2873 fi
2874
2875 if test "$wxUSE_CONFIG" = yes; then
2876 echo "$ac_t""yes" 1>&6
2877 else
2878 echo "$ac_t""no" 1>&6
2879 fi
2880
2881
2882
2883 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2884 echo "configure:2885: checking for --enable-sockets" >&5
2885 no_cache=0
2886 # Check whether --enable-sockets or --disable-sockets was given.
2887 if test "${enable_sockets+set}" = set; then
2888 enableval="$enable_sockets"
2889
2890 if test "$enableval" = yes; then
2891 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2892 else
2893 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2894 fi
2895
2896 else
2897
2898 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2906
2907 fi
2908
2909
2910 eval "$ac_cv_use_sockets"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$wxUSE_SOCKETS" = yes; then
2916 echo "$ac_t""yes" 1>&6
2917 else
2918 echo "$ac_t""no" 1>&6
2919 fi
2920
2921
2922
2923 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
2924 echo "configure:2925: checking for --enable-ipc" >&5
2925 no_cache=0
2926 # Check whether --enable-ipc or --disable-ipc was given.
2927 if test "${enable_ipc+set}" = set; then
2928 enableval="$enable_ipc"
2929
2930 if test "$enableval" = yes; then
2931 ac_cv_use_ipc='wxUSE_IPC=yes'
2932 else
2933 ac_cv_use_ipc='wxUSE_IPC=no'
2934 fi
2935
2936 else
2937
2938 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2939 if test "x$LINE" != x ; then
2940 eval "DEFAULT_$LINE"
2941 else
2942 no_cache=1
2943 fi
2944
2945 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2946
2947 fi
2948
2949
2950 eval "$ac_cv_use_ipc"
2951 if test "$no_cache" != 1; then
2952 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2953 fi
2954
2955 if test "$wxUSE_IPC" = yes; then
2956 echo "$ac_t""yes" 1>&6
2957 else
2958 echo "$ac_t""no" 1>&6
2959 fi
2960
2961
2962
2963 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
2964 echo "configure:2965: checking for --enable-cmdline" >&5
2965 no_cache=0
2966 # Check whether --enable-cmdline or --disable-cmdline was given.
2967 if test "${enable_cmdline+set}" = set; then
2968 enableval="$enable_cmdline"
2969
2970 if test "$enableval" = yes; then
2971 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2972 else
2973 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2974 fi
2975
2976 else
2977
2978 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2986
2987 fi
2988
2989
2990 eval "$ac_cv_use_cmdline"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_CMDLINE_PARSER" = yes; then
2996 echo "$ac_t""yes" 1>&6
2997 else
2998 echo "$ac_t""no" 1>&6
2999 fi
3000
3001
3002 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3003 echo "configure:3004: checking for --enable-datetime" >&5
3004 no_cache=0
3005 # Check whether --enable-datetime or --disable-datetime was given.
3006 if test "${enable_datetime+set}" = set; then
3007 enableval="$enable_datetime"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3011 else
3012 ac_cv_use_datetime='wxUSE_DATETIME=no'
3013 fi
3014
3015 else
3016
3017 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3025
3026 fi
3027
3028
3029 eval "$ac_cv_use_datetime"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_DATETIME" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3042 echo "configure:3043: checking for --enable-timedate" >&5
3043 no_cache=0
3044 # Check whether --enable-timedate or --disable-timedate was given.
3045 if test "${enable_timedate+set}" = set; then
3046 enableval="$enable_timedate"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3050 else
3051 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3052 fi
3053
3054 else
3055
3056 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3064
3065 fi
3066
3067
3068 eval "$ac_cv_use_timedate"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_TIMEDATE" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3081 echo "configure:3082: checking for --enable-stopwatch" >&5
3082 no_cache=0
3083 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3084 if test "${enable_stopwatch+set}" = set; then
3085 enableval="$enable_stopwatch"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3089 else
3090 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3091 fi
3092
3093 else
3094
3095 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3103
3104 fi
3105
3106
3107 eval "$ac_cv_use_stopwatch"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_STOPWATCH" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
3119 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3120 echo "configure:3121: checking for --enable-dialupman" >&5
3121 no_cache=0
3122 # Check whether --enable-dialupman or --disable-dialupman was given.
3123 if test "${enable_dialupman+set}" = set; then
3124 enableval="$enable_dialupman"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3128 else
3129 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3130 fi
3131
3132 else
3133
3134 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3142
3143 fi
3144
3145
3146 eval "$ac_cv_use_dialupman"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3159 echo "configure:3160: checking for --enable-apple_ieee" >&5
3160 no_cache=0
3161 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3162 if test "${enable_apple_ieee+set}" = set; then
3163 enableval="$enable_apple_ieee"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3167 else
3168 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3169 fi
3170
3171 else
3172
3173 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3181
3182 fi
3183
3184
3185 eval "$ac_cv_use_apple_ieee"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_APPLE_IEEE" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3198 echo "configure:3199: checking for --enable-timer" >&5
3199 no_cache=0
3200 # Check whether --enable-timer or --disable-timer was given.
3201 if test "${enable_timer+set}" = set; then
3202 enableval="$enable_timer"
3203
3204 if test "$enableval" = yes; then
3205 ac_cv_use_timer='wxUSE_TIMER=yes'
3206 else
3207 ac_cv_use_timer='wxUSE_TIMER=no'
3208 fi
3209
3210 else
3211
3212 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3220
3221 fi
3222
3223
3224 eval "$ac_cv_use_timer"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_TIMER" = yes; then
3230 echo "$ac_t""yes" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 fi
3234
3235
3236 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3237 echo "configure:3238: checking for --enable-wave" >&5
3238 no_cache=0
3239 # Check whether --enable-wave or --disable-wave was given.
3240 if test "${enable_wave+set}" = set; then
3241 enableval="$enable_wave"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_wave='wxUSE_WAVE=yes'
3245 else
3246 ac_cv_use_wave='wxUSE_WAVE=no'
3247 fi
3248
3249 else
3250
3251 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3259
3260 fi
3261
3262
3263 eval "$ac_cv_use_wave"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_WAVE" = yes; then
3269 echo "$ac_t""yes" 1>&6
3270 else
3271 echo "$ac_t""no" 1>&6
3272 fi
3273
3274
3275 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3276 echo "configure:3277: checking for --enable-fraction" >&5
3277 no_cache=0
3278 # Check whether --enable-fraction or --disable-fraction was given.
3279 if test "${enable_fraction+set}" = set; then
3280 enableval="$enable_fraction"
3281
3282 if test "$enableval" = yes; then
3283 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3284 else
3285 ac_cv_use_fraction='wxUSE_FRACTION=no'
3286 fi
3287
3288 else
3289
3290 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3298
3299 fi
3300
3301
3302 eval "$ac_cv_use_fraction"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_FRACTION" = yes; then
3308 echo "$ac_t""yes" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3311 fi
3312
3313
3314 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3315 echo "configure:3316: checking for --enable-dynlib" >&5
3316 no_cache=0
3317 # Check whether --enable-dynlib or --disable-dynlib was given.
3318 if test "${enable_dynlib+set}" = set; then
3319 enableval="$enable_dynlib"
3320
3321 if test "$enableval" = yes; then
3322 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3323 else
3324 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3325 fi
3326
3327 else
3328
3329 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3337
3338 fi
3339
3340
3341 eval "$ac_cv_use_dynlib"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352
3353 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3354 echo "configure:3355: checking for --enable-longlong" >&5
3355 no_cache=0
3356 # Check whether --enable-longlong or --disable-longlong was given.
3357 if test "${enable_longlong+set}" = set; then
3358 enableval="$enable_longlong"
3359
3360 if test "$enableval" = yes; then
3361 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3362 else
3363 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3364 fi
3365
3366 else
3367
3368 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3376
3377 fi
3378
3379
3380 eval "$ac_cv_use_longlong"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_LONGLONG" = yes; then
3386 echo "$ac_t""yes" 1>&6
3387 else
3388 echo "$ac_t""no" 1>&6
3389 fi
3390
3391
3392 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3393 echo "configure:3394: checking for --enable-geometry" >&5
3394 no_cache=0
3395 # Check whether --enable-geometry or --disable-geometry was given.
3396 if test "${enable_geometry+set}" = set; then
3397 enableval="$enable_geometry"
3398
3399 if test "$enableval" = yes; then
3400 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3401 else
3402 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3403 fi
3404
3405 else
3406
3407 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3415
3416 fi
3417
3418
3419 eval "$ac_cv_use_geometry"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_GEOMETRY" = yes; then
3425 echo "$ac_t""yes" 1>&6
3426 else
3427 echo "$ac_t""no" 1>&6
3428 fi
3429
3430
3431 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3432 echo "configure:3433: checking for --enable-log" >&5
3433 no_cache=0
3434 # Check whether --enable-log or --disable-log was given.
3435 if test "${enable_log+set}" = set; then
3436 enableval="$enable_log"
3437
3438 if test "$enableval" = yes; then
3439 ac_cv_use_log='wxUSE_LOG=yes'
3440 else
3441 ac_cv_use_log='wxUSE_LOG=no'
3442 fi
3443
3444 else
3445
3446 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3454
3455 fi
3456
3457
3458 eval "$ac_cv_use_log"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_LOG" = yes; then
3464 echo "$ac_t""yes" 1>&6
3465 else
3466 echo "$ac_t""no" 1>&6
3467 fi
3468
3469
3470 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3471 echo "configure:3472: checking for --enable-streams" >&5
3472 no_cache=0
3473 # Check whether --enable-streams or --disable-streams was given.
3474 if test "${enable_streams+set}" = set; then
3475 enableval="$enable_streams"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_streams='wxUSE_STREAMS=yes'
3479 else
3480 ac_cv_use_streams='wxUSE_STREAMS=no'
3481 fi
3482
3483 else
3484
3485 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3493
3494 fi
3495
3496
3497 eval "$ac_cv_use_streams"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_STREAMS" = yes; then
3503 echo "$ac_t""yes" 1>&6
3504 else
3505 echo "$ac_t""no" 1>&6
3506 fi
3507
3508
3509 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3510 echo "configure:3511: checking for --enable-file" >&5
3511 no_cache=0
3512 # Check whether --enable-file or --disable-file was given.
3513 if test "${enable_file+set}" = set; then
3514 enableval="$enable_file"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_file='wxUSE_FILE=yes'
3518 else
3519 ac_cv_use_file='wxUSE_FILE=no'
3520 fi
3521
3522 else
3523
3524 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3532
3533 fi
3534
3535
3536 eval "$ac_cv_use_file"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_FILE" = yes; then
3542 echo "$ac_t""yes" 1>&6
3543 else
3544 echo "$ac_t""no" 1>&6
3545 fi
3546
3547
3548 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3549 echo "configure:3550: checking for --enable-ffile" >&5
3550 no_cache=0
3551 # Check whether --enable-ffile or --disable-ffile was given.
3552 if test "${enable_ffile+set}" = set; then
3553 enableval="$enable_ffile"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_ffile='wxUSE_FFILE=yes'
3557 else
3558 ac_cv_use_ffile='wxUSE_FFILE=no'
3559 fi
3560
3561 else
3562
3563 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3571
3572 fi
3573
3574
3575 eval "$ac_cv_use_ffile"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_FFILE" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3588 echo "configure:3589: checking for --enable-textfile" >&5
3589 no_cache=0
3590 # Check whether --enable-textfile or --disable-textfile was given.
3591 if test "${enable_textfile+set}" = set; then
3592 enableval="$enable_textfile"
3593
3594 if test "$enableval" = yes; then
3595 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3596 else
3597 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3598 fi
3599
3600 else
3601
3602 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3610
3611 fi
3612
3613
3614 eval "$ac_cv_use_textfile"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_TEXTFILE" = yes; then
3620 echo "$ac_t""yes" 1>&6
3621 else
3622 echo "$ac_t""no" 1>&6
3623 fi
3624
3625
3626 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3627 echo "configure:3628: checking for --enable-fontmap" >&5
3628 no_cache=0
3629 # Check whether --enable-fontmap or --disable-fontmap was given.
3630 if test "${enable_fontmap+set}" = set; then
3631 enableval="$enable_fontmap"
3632
3633 if test "$enableval" = yes; then
3634 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3635 else
3636 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3637 fi
3638
3639 else
3640
3641 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
3648 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3649
3650 fi
3651
3652
3653 eval "$ac_cv_use_fontmap"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_FONTMAP" = yes; then
3659 echo "$ac_t""yes" 1>&6
3660 else
3661 echo "$ac_t""no" 1>&6
3662 fi
3663
3664
3665 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3666 echo "configure:3667: checking for --enable-unicode" >&5
3667 no_cache=0
3668 # Check whether --enable-unicode or --disable-unicode was given.
3669 if test "${enable_unicode+set}" = set; then
3670 enableval="$enable_unicode"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3674 else
3675 ac_cv_use_unicode='wxUSE_UNICODE=no'
3676 fi
3677
3678 else
3679
3680 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3688
3689 fi
3690
3691
3692 eval "$ac_cv_use_unicode"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_UNICODE" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3705 echo "configure:3706: checking for --enable-wcsrtombs" >&5
3706 no_cache=0
3707 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3708 if test "${enable_wcsrtombs+set}" = set; then
3709 enableval="$enable_wcsrtombs"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3713 else
3714 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3715 fi
3716
3717 else
3718
3719 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3727
3728 fi
3729
3730
3731 eval "$ac_cv_use_wcsrtombs"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_WCSRTOMBS" = yes; then
3737 echo "$ac_t""yes" 1>&6
3738 else
3739 echo "$ac_t""no" 1>&6
3740 fi
3741
3742
3743 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3744 echo "configure:3745: checking for --enable-wxprintfv" >&5
3745 no_cache=0
3746 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3747 if test "${enable_wxprintfv+set}" = set; then
3748 enableval="$enable_wxprintfv"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3752 else
3753 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3754 fi
3755
3756 else
3757
3758 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3766
3767 fi
3768
3769
3770 eval "$ac_cv_use_wxprintfv"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3783 echo "configure:3784: checking for --enable-std_iostreams" >&5
3784 no_cache=0
3785 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3786 if test "${enable_std_iostreams+set}" = set; then
3787 enableval="$enable_std_iostreams"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3791 else
3792 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3793 fi
3794
3795 else
3796
3797 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3805
3806 fi
3807
3808
3809 eval "$ac_cv_use_std_iostreams"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_STD_IOSTREAM" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3822 echo "configure:3823: checking for --enable-filesystem" >&5
3823 no_cache=0
3824 # Check whether --enable-filesystem or --disable-filesystem was given.
3825 if test "${enable_filesystem+set}" = set; then
3826 enableval="$enable_filesystem"
3827
3828 if test "$enableval" = yes; then
3829 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3830 else
3831 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3832 fi
3833
3834 else
3835
3836 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3844
3845 fi
3846
3847
3848 eval "$ac_cv_use_filesystem"
3849 if test "$no_cache" != 1; then
3850 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3851 fi
3852
3853 if test "$wxUSE_FILESYSTEM" = yes; then
3854 echo "$ac_t""yes" 1>&6
3855 else
3856 echo "$ac_t""no" 1>&6
3857 fi
3858
3859
3860 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3861 echo "configure:3862: checking for --enable-fs_inet" >&5
3862 no_cache=0
3863 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3864 if test "${enable_fs_inet+set}" = set; then
3865 enableval="$enable_fs_inet"
3866
3867 if test "$enableval" = yes; then
3868 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3869 else
3870 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3871 fi
3872
3873 else
3874
3875 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3883
3884 fi
3885
3886
3887 eval "$ac_cv_use_fs_inet"
3888 if test "$no_cache" != 1; then
3889 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3890 fi
3891
3892 if test "$wxUSE_FS_INET" = yes; then
3893 echo "$ac_t""yes" 1>&6
3894 else
3895 echo "$ac_t""no" 1>&6
3896 fi
3897
3898
3899 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3900 echo "configure:3901: checking for --enable-fs_zip" >&5
3901 no_cache=0
3902 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3903 if test "${enable_fs_zip+set}" = set; then
3904 enableval="$enable_fs_zip"
3905
3906 if test "$enableval" = yes; then
3907 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3908 else
3909 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3910 fi
3911
3912 else
3913
3914 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3922
3923 fi
3924
3925
3926 eval "$ac_cv_use_fs_zip"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_FS_ZIP" = yes; then
3932 echo "$ac_t""yes" 1>&6
3933 else
3934 echo "$ac_t""no" 1>&6
3935 fi
3936
3937
3938 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3939 echo "configure:3940: checking for --enable-zipstream" >&5
3940 no_cache=0
3941 # Check whether --enable-zipstream or --disable-zipstream was given.
3942 if test "${enable_zipstream+set}" = set; then
3943 enableval="$enable_zipstream"
3944
3945 if test "$enableval" = yes; then
3946 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3947 else
3948 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3949 fi
3950
3951 else
3952
3953 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3961
3962 fi
3963
3964
3965 eval "$ac_cv_use_zipstream"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_ZIPSTREAM" = yes; then
3971 echo "$ac_t""yes" 1>&6
3972 else
3973 echo "$ac_t""no" 1>&6
3974 fi
3975
3976
3977
3978 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3979 echo "configure:3980: checking for --enable-catch_segvs" >&5
3980 no_cache=0
3981 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3982 if test "${enable_catch_segvs+set}" = set; then
3983 enableval="$enable_catch_segvs"
3984
3985 if test "$enableval" = yes; then
3986 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3987 else
3988 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3989 fi
3990
3991 else
3992
3993 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4001
4002 fi
4003
4004
4005 eval "$ac_cv_use_catch_segvs"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4011 echo "$ac_t""yes" 1>&6
4012 else
4013 echo "$ac_t""no" 1>&6
4014 fi
4015
4016
4017 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4018 echo "configure:4019: checking for --enable-snglinst" >&5
4019 no_cache=0
4020 # Check whether --enable-snglinst or --disable-snglinst was given.
4021 if test "${enable_snglinst+set}" = set; then
4022 enableval="$enable_snglinst"
4023
4024 if test "$enableval" = yes; then
4025 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4026 else
4027 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4028 fi
4029
4030 else
4031
4032 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4033 if test "x$LINE" != x ; then
4034 eval "DEFAULT_$LINE"
4035 else
4036 no_cache=1
4037 fi
4038
4039 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4040
4041 fi
4042
4043
4044 eval "$ac_cv_use_snglinst"
4045 if test "$no_cache" != 1; then
4046 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4047 fi
4048
4049 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4050 echo "$ac_t""yes" 1>&6
4051 else
4052 echo "$ac_t""no" 1>&6
4053 fi
4054
4055
4056
4057 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4058 echo "configure:4059: checking for --enable-mimetype" >&5
4059 no_cache=0
4060 # Check whether --enable-mimetype or --disable-mimetype was given.
4061 if test "${enable_mimetype+set}" = set; then
4062 enableval="$enable_mimetype"
4063
4064 if test "$enableval" = yes; then
4065 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4066 else
4067 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4068 fi
4069
4070 else
4071
4072 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
4079 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4080
4081 fi
4082
4083
4084 eval "$ac_cv_use_mimetype"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_MIMETYPE" = yes; then
4090 echo "$ac_t""yes" 1>&6
4091 else
4092 echo "$ac_t""no" 1>&6
4093 fi
4094
4095
4096
4097
4098 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4099 echo "configure:4100: checking for --enable-threads" >&5
4100 no_cache=0
4101 # Check whether --enable-threads or --disable-threads was given.
4102 if test "${enable_threads+set}" = set; then
4103 enableval="$enable_threads"
4104
4105 if test "$enableval" = yes; then
4106 ac_cv_use_threads='wxUSE_THREADS=yes'
4107 else
4108 ac_cv_use_threads='wxUSE_THREADS=no'
4109 fi
4110
4111 else
4112
4113 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4114 if test "x$LINE" != x ; then
4115 eval "DEFAULT_$LINE"
4116 else
4117 no_cache=1
4118 fi
4119
4120 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4121
4122 fi
4123
4124
4125 eval "$ac_cv_use_threads"
4126 if test "$no_cache" != 1; then
4127 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4128 fi
4129
4130 if test "$wxUSE_THREADS" = yes; then
4131 echo "$ac_t""yes" 1>&6
4132 else
4133 echo "$ac_t""no" 1>&6
4134 fi
4135
4136
4137 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4138 echo "configure:4139: checking for --enable-serial" >&5
4139 no_cache=0
4140 # Check whether --enable-serial or --disable-serial was given.
4141 if test "${enable_serial+set}" = set; then
4142 enableval="$enable_serial"
4143
4144 if test "$enableval" = yes; then
4145 ac_cv_use_serial='wxUSE_SERIAL=yes'
4146 else
4147 ac_cv_use_serial='wxUSE_SERIAL=no'
4148 fi
4149
4150 else
4151
4152 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4153 if test "x$LINE" != x ; then
4154 eval "DEFAULT_$LINE"
4155 else
4156 no_cache=1
4157 fi
4158
4159 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4160
4161 fi
4162
4163
4164 eval "$ac_cv_use_serial"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_SERIAL" = yes; then
4170 echo "$ac_t""yes" 1>&6
4171 else
4172 echo "$ac_t""no" 1>&6
4173 fi
4174
4175
4176 if test "$wxUSE_GUI" = "yes"; then
4177
4178
4179
4180 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4181 echo "configure:4182: checking for --enable-docview" >&5
4182 no_cache=0
4183 # Check whether --enable-docview or --disable-docview was given.
4184 if test "${enable_docview+set}" = set; then
4185 enableval="$enable_docview"
4186
4187 if test "$enableval" = yes; then
4188 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4189 else
4190 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4191 fi
4192
4193 else
4194
4195 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4196 if test "x$LINE" != x ; then
4197 eval "DEFAULT_$LINE"
4198 else
4199 no_cache=1
4200 fi
4201
4202 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4203
4204 fi
4205
4206
4207 eval "$ac_cv_use_docview"
4208 if test "$no_cache" != 1; then
4209 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4210 fi
4211
4212 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4213 echo "$ac_t""yes" 1>&6
4214 else
4215 echo "$ac_t""no" 1>&6
4216 fi
4217
4218
4219 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4220 echo "configure:4221: checking for --enable-help" >&5
4221 no_cache=0
4222 # Check whether --enable-help or --disable-help was given.
4223 if test "${enable_help+set}" = set; then
4224 enableval="$enable_help"
4225
4226 if test "$enableval" = yes; then
4227 ac_cv_use_help='wxUSE_HELP=yes'
4228 else
4229 ac_cv_use_help='wxUSE_HELP=no'
4230 fi
4231
4232 else
4233
4234 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4235 if test "x$LINE" != x ; then
4236 eval "DEFAULT_$LINE"
4237 else
4238 no_cache=1
4239 fi
4240
4241 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4242
4243 fi
4244
4245
4246 eval "$ac_cv_use_help"
4247 if test "$no_cache" != 1; then
4248 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4249 fi
4250
4251 if test "$wxUSE_HELP" = yes; then
4252 echo "$ac_t""yes" 1>&6
4253 else
4254 echo "$ac_t""no" 1>&6
4255 fi
4256
4257
4258 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4259 echo "configure:4260: checking for --enable-constraints" >&5
4260 no_cache=0
4261 # Check whether --enable-constraints or --disable-constraints was given.
4262 if test "${enable_constraints+set}" = set; then
4263 enableval="$enable_constraints"
4264
4265 if test "$enableval" = yes; then
4266 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4267 else
4268 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4269 fi
4270
4271 else
4272
4273 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4281
4282 fi
4283
4284
4285 eval "$ac_cv_use_constraints"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_CONSTRAINTS" = yes; then
4291 echo "$ac_t""yes" 1>&6
4292 else
4293 echo "$ac_t""no" 1>&6
4294 fi
4295
4296
4297 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4298 echo "configure:4299: checking for --enable-printarch" >&5
4299 no_cache=0
4300 # Check whether --enable-printarch or --disable-printarch was given.
4301 if test "${enable_printarch+set}" = set; then
4302 enableval="$enable_printarch"
4303
4304 if test "$enableval" = yes; then
4305 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4306 else
4307 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4308 fi
4309
4310 else
4311
4312 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4313 if test "x$LINE" != x ; then
4314 eval "DEFAULT_$LINE"
4315 else
4316 no_cache=1
4317 fi
4318
4319 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4320
4321 fi
4322
4323
4324 eval "$ac_cv_use_printarch"
4325 if test "$no_cache" != 1; then
4326 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4327 fi
4328
4329 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4330 echo "$ac_t""yes" 1>&6
4331 else
4332 echo "$ac_t""no" 1>&6
4333 fi
4334
4335
4336 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4337 echo "configure:4338: checking for --enable-mdi" >&5
4338 no_cache=0
4339 # Check whether --enable-mdi or --disable-mdi was given.
4340 if test "${enable_mdi+set}" = set; then
4341 enableval="$enable_mdi"
4342
4343 if test "$enableval" = yes; then
4344 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4345 else
4346 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4347 fi
4348
4349 else
4350
4351 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4359
4360 fi
4361
4362
4363 eval "$ac_cv_use_mdi"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4369 echo "$ac_t""yes" 1>&6
4370 else
4371 echo "$ac_t""no" 1>&6
4372 fi
4373
4374
4375 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4376 echo "configure:4377: checking for --enable-loggui" >&5
4377 no_cache=0
4378 # Check whether --enable-loggui or --disable-loggui was given.
4379 if test "${enable_loggui+set}" = set; then
4380 enableval="$enable_loggui"
4381
4382 if test "$enableval" = yes; then
4383 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4384 else
4385 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4386 fi
4387
4388 else
4389
4390 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4391 if test "x$LINE" != x ; then
4392 eval "DEFAULT_$LINE"
4393 else
4394 no_cache=1
4395 fi
4396
4397 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4398
4399 fi
4400
4401
4402 eval "$ac_cv_use_loggui"
4403 if test "$no_cache" != 1; then
4404 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4405 fi
4406
4407 if test "$wxUSE_LOGGUI" = yes; then
4408 echo "$ac_t""yes" 1>&6
4409 else
4410 echo "$ac_t""no" 1>&6
4411 fi
4412
4413
4414 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4415 echo "configure:4416: checking for --enable-logwin" >&5
4416 no_cache=0
4417 # Check whether --enable-logwin or --disable-logwin was given.
4418 if test "${enable_logwin+set}" = set; then
4419 enableval="$enable_logwin"
4420
4421 if test "$enableval" = yes; then
4422 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4423 else
4424 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4425 fi
4426
4427 else
4428
4429 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4437
4438 fi
4439
4440
4441 eval "$ac_cv_use_logwin"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_LOGWINDOW" = yes; then
4447 echo "$ac_t""yes" 1>&6
4448 else
4449 echo "$ac_t""no" 1>&6
4450 fi
4451
4452
4453
4454 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4455 echo "configure:4456: checking for --enable-postscript" >&5
4456 no_cache=0
4457 # Check whether --enable-postscript or --disable-postscript was given.
4458 if test "${enable_postscript+set}" = set; then
4459 enableval="$enable_postscript"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4463 else
4464 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4465 fi
4466
4467 else
4468
4469 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4477
4478 fi
4479
4480
4481 eval "$ac_cv_use_postscript"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_POSTSCRIPT" = yes; then
4487 echo "$ac_t""yes" 1>&6
4488 else
4489 echo "$ac_t""no" 1>&6
4490 fi
4491
4492
4493
4494
4495
4496 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4497 echo "configure:4498: checking for --enable-prologio" >&5
4498 no_cache=0
4499 # Check whether --enable-prologio or --disable-prologio was given.
4500 if test "${enable_prologio+set}" = set; then
4501 enableval="$enable_prologio"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4505 else
4506 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4507 fi
4508
4509 else
4510
4511 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4519
4520 fi
4521
4522
4523 eval "$ac_cv_use_prologio"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_PROLOGIO" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4536 echo "configure:4537: checking for --enable-resources" >&5
4537 no_cache=0
4538 # Check whether --enable-resources or --disable-resources was given.
4539 if test "${enable_resources+set}" = set; then
4540 enableval="$enable_resources"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4544 else
4545 ac_cv_use_resources='wxUSE_RESOURCES=no'
4546 fi
4547
4548 else
4549
4550 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4558
4559 fi
4560
4561
4562 eval "$ac_cv_use_resources"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_RESOURCES" = yes; then
4568 echo "$ac_t""yes" 1>&6
4569 else
4570 echo "$ac_t""no" 1>&6
4571 fi
4572
4573
4574
4575 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4576 echo "configure:4577: checking for --enable-xresources" >&5
4577 no_cache=0
4578 # Check whether --enable-xresources or --disable-xresources was given.
4579 if test "${enable_xresources+set}" = set; then
4580 enableval="$enable_xresources"
4581
4582 if test "$enableval" = yes; then
4583 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4584 else
4585 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4586 fi
4587
4588 else
4589
4590 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4591 if test "x$LINE" != x ; then
4592 eval "DEFAULT_$LINE"
4593 else
4594 no_cache=1
4595 fi
4596
4597 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4598
4599 fi
4600
4601
4602 eval "$ac_cv_use_xresources"
4603 if test "$no_cache" != 1; then
4604 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4605 fi
4606
4607 if test "$wxUSE_X_RESOURCES" = yes; then
4608 echo "$ac_t""yes" 1>&6
4609 else
4610 echo "$ac_t""no" 1>&6
4611 fi
4612
4613
4614
4615
4616 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4617 echo "configure:4618: checking for --enable-clipboard" >&5
4618 no_cache=0
4619 # Check whether --enable-clipboard or --disable-clipboard was given.
4620 if test "${enable_clipboard+set}" = set; then
4621 enableval="$enable_clipboard"
4622
4623 if test "$enableval" = yes; then
4624 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4625 else
4626 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4627 fi
4628
4629 else
4630
4631 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4632 if test "x$LINE" != x ; then
4633 eval "DEFAULT_$LINE"
4634 else
4635 no_cache=1
4636 fi
4637
4638 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4639
4640 fi
4641
4642
4643 eval "$ac_cv_use_clipboard"
4644 if test "$no_cache" != 1; then
4645 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4646 fi
4647
4648 if test "$wxUSE_CLIPBOARD" = yes; then
4649 echo "$ac_t""yes" 1>&6
4650 else
4651 echo "$ac_t""no" 1>&6
4652 fi
4653
4654
4655 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4656 echo "configure:4657: checking for --enable-dnd" >&5
4657 no_cache=0
4658 # Check whether --enable-dnd or --disable-dnd was given.
4659 if test "${enable_dnd+set}" = set; then
4660 enableval="$enable_dnd"
4661
4662 if test "$enableval" = yes; then
4663 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4664 else
4665 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4666 fi
4667
4668 else
4669
4670 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
4677 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4678
4679 fi
4680
4681
4682 eval "$ac_cv_use_dnd"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4685 fi
4686
4687 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4688 echo "$ac_t""yes" 1>&6
4689 else
4690 echo "$ac_t""no" 1>&6
4691 fi
4692
4693
4694 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4695 echo "configure:4696: checking for --enable-metafile" >&5
4696 no_cache=0
4697 # Check whether --enable-metafile or --disable-metafile was given.
4698 if test "${enable_metafile+set}" = set; then
4699 enableval="$enable_metafile"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4703 else
4704 ac_cv_use_metafile='wxUSE_METAFILE=no'
4705 fi
4706
4707 else
4708
4709 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4717
4718 fi
4719
4720
4721 eval "$ac_cv_use_metafile"
4722 if test "$no_cache" != 1; then
4723 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4724 fi
4725
4726 if test "$wxUSE_METAFILE" = yes; then
4727 echo "$ac_t""yes" 1>&6
4728 else
4729 echo "$ac_t""no" 1>&6
4730 fi
4731
4732
4733
4734 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
4735 echo "configure:4736: checking for --enable-wxtree" >&5
4736 no_cache=0
4737 # Check whether --enable-wxtree or --disable-wxtree was given.
4738 if test "${enable_wxtree+set}" = set; then
4739 enableval="$enable_wxtree"
4740
4741 if test "$enableval" = yes; then
4742 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4743 else
4744 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4745 fi
4746
4747 else
4748
4749 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4757
4758 fi
4759
4760
4761 eval "$ac_cv_use_wxtree"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_WXTREE" = yes; then
4767 echo "$ac_t""yes" 1>&6
4768 else
4769 echo "$ac_t""no" 1>&6
4770 fi
4771
4772
4773
4774
4775 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4776 echo "configure:4777: checking for --enable-controls" >&5
4777 no_cache=0
4778 # Check whether --enable-controls or --disable-controls was given.
4779 if test "${enable_controls+set}" = set; then
4780 enableval="$enable_controls"
4781
4782 if test "$enableval" = yes; then
4783 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4784 else
4785 ac_cv_use_controls='wxUSE_CONTROLS=no'
4786 fi
4787
4788 else
4789
4790 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4791 if test "x$LINE" != x ; then
4792 eval "DEFAULT_$LINE"
4793 else
4794 no_cache=1
4795 fi
4796
4797 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4798
4799 fi
4800
4801
4802 eval "$ac_cv_use_controls"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_CONTROLS" = yes; then
4808 echo "$ac_t""yes" 1>&6
4809 else
4810 echo "$ac_t""no" 1>&6
4811 fi
4812
4813
4814 if test "$wxUSE_CONTROLS" = "yes"; then
4815 DEFAULT_wxUSE_ACCEL=yes
4816 DEFAULT_wxUSE_BMPBUTTON=yes
4817 DEFAULT_wxUSE_BUTTON=yes
4818 DEFAULT_wxUSE_CALCTRL=no
4819 DEFAULT_wxUSE_CARET=yes
4820 DEFAULT_wxUSE_COMBOBOX=yes
4821 DEFAULT_wxUSE_CHECKBOX=yes
4822 DEFAULT_wxUSE_CHECKLISTBOX=yes
4823 DEFAULT_wxUSE_CHOICE=yes
4824 DEFAULT_wxUSE_GAUGE=yes
4825 DEFAULT_wxUSE_GRID=yes
4826 DEFAULT_wxUSE_NEW_GRID=yes
4827 DEFAULT_wxUSE_IMAGLIST=yes
4828 DEFAULT_wxUSE_LISTBOX=yes
4829 DEFAULT_wxUSE_LISTCTRL=yes
4830 DEFAULT_wxUSE_NOTEBOOK=yes
4831 DEFAULT_wxUSE_RADIOBOX=yes
4832 DEFAULT_wxUSE_RADIOBTN=yes
4833 DEFAULT_wxUSE_SASH=yes
4834 DEFAULT_wxUSE_SCROLLBAR=yes
4835 DEFAULT_wxUSE_SLIDER=yes
4836 DEFAULT_wxUSE_SPINBTN=yes
4837 DEFAULT_wxUSE_SPINCTRL=yes
4838 DEFAULT_wxUSE_SPLITTER=yes
4839 DEFAULT_wxUSE_STATBMP=yes
4840 DEFAULT_wxUSE_STATBOX=yes
4841 DEFAULT_wxUSE_STATLINE=yes
4842 DEFAULT_wxUSE_STATUSBAR=yes
4843 DEFAULT_wxUSE_TAB_DIALOG=yes
4844 DEFAULT_wxUSE_TOGGLEBTN=yes
4845 DEFAULT_wxUSE_TOOLBAR=yes
4846 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4847 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4848 DEFAULT_wxUSE_TOOLTIPS=yes
4849 DEFAULT_wxUSE_TREECTRL=yes
4850 elif test "$wxUSE_CONTROLS" = "no"; then
4851 DEFAULT_wxUSE_ACCEL=no
4852 DEFAULT_wxUSE_BMPBUTTON=no
4853 DEFAULT_wxUSE_BUTTON=no
4854 DEFAULT_wxUSE_CALCTRL=no
4855 DEFAULT_wxUSE_CARET=no
4856 DEFAULT_wxUSE_COMBOBOX=no
4857 DEFAULT_wxUSE_CHECKBOX=no
4858 DEFAULT_wxUSE_CHECKLISTBOX=no
4859 DEFAULT_wxUSE_CHOICE=no
4860 DEFAULT_wxUSE_GAUGE=no
4861 DEFAULT_wxUSE_GRID=no
4862 DEFAULT_wxUSE_NEW_GRID=no
4863 DEFAULT_wxUSE_IMAGLIST=no
4864 DEFAULT_wxUSE_LISTBOX=no
4865 DEFAULT_wxUSE_LISTCTRL=no
4866 DEFAULT_wxUSE_NOTEBOOK=no
4867 DEFAULT_wxUSE_RADIOBOX=no
4868 DEFAULT_wxUSE_RADIOBTN=no
4869 DEFAULT_wxUSE_SASH=no
4870 DEFAULT_wxUSE_SCROLLBAR=no
4871 DEFAULT_wxUSE_SLIDER=no
4872 DEFAULT_wxUSE_SPINBTN=no
4873 DEFAULT_wxUSE_SPINCTRL=no
4874 DEFAULT_wxUSE_SPLITTER=no
4875 DEFAULT_wxUSE_STATBMP=no
4876 DEFAULT_wxUSE_STATBOX=no
4877 DEFAULT_wxUSE_STATLINE=no
4878 DEFAULT_wxUSE_STATUSBAR=no
4879 DEFAULT_wxUSE_TAB_DIALOG=no
4880 DEFAULT_wxUSE_TOGGLEBTN=no
4881 DEFAULT_wxUSE_TOOLBAR=no
4882 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4883 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4884 DEFAULT_wxUSE_TOOLTIPS=no
4885 DEFAULT_wxUSE_TREECTRL=no
4886 fi
4887
4888
4889 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
4890 echo "configure:4891: checking for --enable-accel" >&5
4891 no_cache=0
4892 # Check whether --enable-accel or --disable-accel was given.
4893 if test "${enable_accel+set}" = set; then
4894 enableval="$enable_accel"
4895
4896 if test "$enableval" = yes; then
4897 ac_cv_use_accel='wxUSE_ACCEL=yes'
4898 else
4899 ac_cv_use_accel='wxUSE_ACCEL=no'
4900 fi
4901
4902 else
4903
4904 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4912
4913 fi
4914
4915
4916 eval "$ac_cv_use_accel"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_ACCEL" = yes; then
4922 echo "$ac_t""yes" 1>&6
4923 else
4924 echo "$ac_t""no" 1>&6
4925 fi
4926
4927
4928 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
4929 echo "configure:4930: checking for --enable-button" >&5
4930 no_cache=0
4931 # Check whether --enable-button or --disable-button was given.
4932 if test "${enable_button+set}" = set; then
4933 enableval="$enable_button"
4934
4935 if test "$enableval" = yes; then
4936 ac_cv_use_button='wxUSE_BUTTON=yes'
4937 else
4938 ac_cv_use_button='wxUSE_BUTTON=no'
4939 fi
4940
4941 else
4942
4943 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
4950 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
4951
4952 fi
4953
4954
4955 eval "$ac_cv_use_button"
4956 if test "$no_cache" != 1; then
4957 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
4958 fi
4959
4960 if test "$wxUSE_BUTTON" = yes; then
4961 echo "$ac_t""yes" 1>&6
4962 else
4963 echo "$ac_t""no" 1>&6
4964 fi
4965
4966
4967 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
4968 echo "configure:4969: checking for --enable-bmpbutton" >&5
4969 no_cache=0
4970 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4971 if test "${enable_bmpbutton+set}" = set; then
4972 enableval="$enable_bmpbutton"
4973
4974 if test "$enableval" = yes; then
4975 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4976 else
4977 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4978 fi
4979
4980 else
4981
4982 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4983 if test "x$LINE" != x ; then
4984 eval "DEFAULT_$LINE"
4985 else
4986 no_cache=1
4987 fi
4988
4989 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4990
4991 fi
4992
4993
4994 eval "$ac_cv_use_bmpbutton"
4995 if test "$no_cache" != 1; then
4996 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4997 fi
4998
4999 if test "$wxUSE_BMPBUTTON" = yes; then
5000 echo "$ac_t""yes" 1>&6
5001 else
5002 echo "$ac_t""no" 1>&6
5003 fi
5004
5005
5006 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5007 echo "configure:5008: checking for --enable-calendar" >&5
5008 no_cache=0
5009 # Check whether --enable-calendar or --disable-calendar was given.
5010 if test "${enable_calendar+set}" = set; then
5011 enableval="$enable_calendar"
5012
5013 if test "$enableval" = yes; then
5014 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5015 else
5016 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5017 fi
5018
5019 else
5020
5021 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5029
5030 fi
5031
5032
5033 eval "$ac_cv_use_calendar"
5034 if test "$no_cache" != 1; then
5035 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5036 fi
5037
5038 if test "$wxUSE_CALCTRL" = yes; then
5039 echo "$ac_t""yes" 1>&6
5040 else
5041 echo "$ac_t""no" 1>&6
5042 fi
5043
5044
5045 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5046 echo "configure:5047: checking for --enable-caret" >&5
5047 no_cache=0
5048 # Check whether --enable-caret or --disable-caret was given.
5049 if test "${enable_caret+set}" = set; then
5050 enableval="$enable_caret"
5051
5052 if test "$enableval" = yes; then
5053 ac_cv_use_caret='wxUSE_CARET=yes'
5054 else
5055 ac_cv_use_caret='wxUSE_CARET=no'
5056 fi
5057
5058 else
5059
5060 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5068
5069 fi
5070
5071
5072 eval "$ac_cv_use_caret"
5073 if test "$no_cache" != 1; then
5074 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5075 fi
5076
5077 if test "$wxUSE_CARET" = yes; then
5078 echo "$ac_t""yes" 1>&6
5079 else
5080 echo "$ac_t""no" 1>&6
5081 fi
5082
5083
5084 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5085 echo "configure:5086: checking for --enable-checkbox" >&5
5086 no_cache=0
5087 # Check whether --enable-checkbox or --disable-checkbox was given.
5088 if test "${enable_checkbox+set}" = set; then
5089 enableval="$enable_checkbox"
5090
5091 if test "$enableval" = yes; then
5092 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5093 else
5094 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5095 fi
5096
5097 else
5098
5099 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5100 if test "x$LINE" != x ; then
5101 eval "DEFAULT_$LINE"
5102 else
5103 no_cache=1
5104 fi
5105
5106 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5107
5108 fi
5109
5110
5111 eval "$ac_cv_use_checkbox"
5112 if test "$no_cache" != 1; then
5113 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5114 fi
5115
5116 if test "$wxUSE_CHECKBOX" = yes; then
5117 echo "$ac_t""yes" 1>&6
5118 else
5119 echo "$ac_t""no" 1>&6
5120 fi
5121
5122
5123 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5124 echo "configure:5125: checking for --enable-checklst" >&5
5125 no_cache=0
5126 # Check whether --enable-checklst or --disable-checklst was given.
5127 if test "${enable_checklst+set}" = set; then
5128 enableval="$enable_checklst"
5129
5130 if test "$enableval" = yes; then
5131 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5132 else
5133 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5134 fi
5135
5136 else
5137
5138 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5139 if test "x$LINE" != x ; then
5140 eval "DEFAULT_$LINE"
5141 else
5142 no_cache=1
5143 fi
5144
5145 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5146
5147 fi
5148
5149
5150 eval "$ac_cv_use_checklst"
5151 if test "$no_cache" != 1; then
5152 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5153 fi
5154
5155 if test "$wxUSE_CHECKLST" = yes; then
5156 echo "$ac_t""yes" 1>&6
5157 else
5158 echo "$ac_t""no" 1>&6
5159 fi
5160
5161
5162 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5163 echo "configure:5164: checking for --enable-choice" >&5
5164 no_cache=0
5165 # Check whether --enable-choice or --disable-choice was given.
5166 if test "${enable_choice+set}" = set; then
5167 enableval="$enable_choice"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_choice='wxUSE_CHOICE=yes'
5171 else
5172 ac_cv_use_choice='wxUSE_CHOICE=no'
5173 fi
5174
5175 else
5176
5177 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5185
5186 fi
5187
5188
5189 eval "$ac_cv_use_choice"
5190 if test "$no_cache" != 1; then
5191 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5192 fi
5193
5194 if test "$wxUSE_CHOICE" = yes; then
5195 echo "$ac_t""yes" 1>&6
5196 else
5197 echo "$ac_t""no" 1>&6
5198 fi
5199
5200
5201 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5202 echo "configure:5203: checking for --enable-combobox" >&5
5203 no_cache=0
5204 # Check whether --enable-combobox or --disable-combobox was given.
5205 if test "${enable_combobox+set}" = set; then
5206 enableval="$enable_combobox"
5207
5208 if test "$enableval" = yes; then
5209 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5210 else
5211 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5212 fi
5213
5214 else
5215
5216 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5217 if test "x$LINE" != x ; then
5218 eval "DEFAULT_$LINE"
5219 else
5220 no_cache=1
5221 fi
5222
5223 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5224
5225 fi
5226
5227
5228 eval "$ac_cv_use_combobox"
5229 if test "$no_cache" != 1; then
5230 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5231 fi
5232
5233 if test "$wxUSE_COMBOBOX" = yes; then
5234 echo "$ac_t""yes" 1>&6
5235 else
5236 echo "$ac_t""no" 1>&6
5237 fi
5238
5239
5240 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5241 echo "configure:5242: checking for --enable-gauge" >&5
5242 no_cache=0
5243 # Check whether --enable-gauge or --disable-gauge was given.
5244 if test "${enable_gauge+set}" = set; then
5245 enableval="$enable_gauge"
5246
5247 if test "$enableval" = yes; then
5248 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5249 else
5250 ac_cv_use_gauge='wxUSE_GAUGE=no'
5251 fi
5252
5253 else
5254
5255 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5256 if test "x$LINE" != x ; then
5257 eval "DEFAULT_$LINE"
5258 else
5259 no_cache=1
5260 fi
5261
5262 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5263
5264 fi
5265
5266
5267 eval "$ac_cv_use_gauge"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_GAUGE" = yes; then
5273 echo "$ac_t""yes" 1>&6
5274 else
5275 echo "$ac_t""no" 1>&6
5276 fi
5277
5278
5279 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5280 echo "configure:5281: checking for --enable-grid" >&5
5281 no_cache=0
5282 # Check whether --enable-grid or --disable-grid was given.
5283 if test "${enable_grid+set}" = set; then
5284 enableval="$enable_grid"
5285
5286 if test "$enableval" = yes; then
5287 ac_cv_use_grid='wxUSE_GRID=yes'
5288 else
5289 ac_cv_use_grid='wxUSE_GRID=no'
5290 fi
5291
5292 else
5293
5294 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5295 if test "x$LINE" != x ; then
5296 eval "DEFAULT_$LINE"
5297 else
5298 no_cache=1
5299 fi
5300
5301 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5302
5303 fi
5304
5305
5306 eval "$ac_cv_use_grid"
5307 if test "$no_cache" != 1; then
5308 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5309 fi
5310
5311 if test "$wxUSE_GRID" = yes; then
5312 echo "$ac_t""yes" 1>&6
5313 else
5314 echo "$ac_t""no" 1>&6
5315 fi
5316
5317
5318 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5319 echo "configure:5320: checking for --enable-newgrid" >&5
5320 no_cache=0
5321 # Check whether --enable-newgrid or --disable-newgrid was given.
5322 if test "${enable_newgrid+set}" = set; then
5323 enableval="$enable_newgrid"
5324
5325 if test "$enableval" = yes; then
5326 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5327 else
5328 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5329 fi
5330
5331 else
5332
5333 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5341
5342 fi
5343
5344
5345 eval "$ac_cv_use_newgrid"
5346 if test "$no_cache" != 1; then
5347 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5348 fi
5349
5350 if test "$wxUSE_NEW_GRID" = yes; then
5351 echo "$ac_t""yes" 1>&6
5352 else
5353 echo "$ac_t""no" 1>&6
5354 fi
5355
5356
5357 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5358 echo "configure:5359: checking for --enable-imaglist" >&5
5359 no_cache=0
5360 # Check whether --enable-imaglist or --disable-imaglist was given.
5361 if test "${enable_imaglist+set}" = set; then
5362 enableval="$enable_imaglist"
5363
5364 if test "$enableval" = yes; then
5365 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5366 else
5367 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5368 fi
5369
5370 else
5371
5372 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
5379 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5380
5381 fi
5382
5383
5384 eval "$ac_cv_use_imaglist"
5385 if test "$no_cache" != 1; then
5386 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5387 fi
5388
5389 if test "$wxUSE_IMAGLIST" = yes; then
5390 echo "$ac_t""yes" 1>&6
5391 else
5392 echo "$ac_t""no" 1>&6
5393 fi
5394
5395
5396 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5397 echo "configure:5398: checking for --enable-listbox" >&5
5398 no_cache=0
5399 # Check whether --enable-listbox or --disable-listbox was given.
5400 if test "${enable_listbox+set}" = set; then
5401 enableval="$enable_listbox"
5402
5403 if test "$enableval" = yes; then
5404 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5405 else
5406 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5407 fi
5408
5409 else
5410
5411 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
5418 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5419
5420 fi
5421
5422
5423 eval "$ac_cv_use_listbox"
5424 if test "$no_cache" != 1; then
5425 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5426 fi
5427
5428 if test "$wxUSE_LISTBOX" = yes; then
5429 echo "$ac_t""yes" 1>&6
5430 else
5431 echo "$ac_t""no" 1>&6
5432 fi
5433
5434
5435 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5436 echo "configure:5437: checking for --enable-listctrl" >&5
5437 no_cache=0
5438 # Check whether --enable-listctrl or --disable-listctrl was given.
5439 if test "${enable_listctrl+set}" = set; then
5440 enableval="$enable_listctrl"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5444 else
5445 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5446 fi
5447
5448 else
5449
5450 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5458
5459 fi
5460
5461
5462 eval "$ac_cv_use_listctrl"
5463 if test "$no_cache" != 1; then
5464 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5465 fi
5466
5467 if test "$wxUSE_LISTCTRL" = yes; then
5468 echo "$ac_t""yes" 1>&6
5469 else
5470 echo "$ac_t""no" 1>&6
5471 fi
5472
5473
5474 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5475 echo "configure:5476: checking for --enable-notebook" >&5
5476 no_cache=0
5477 # Check whether --enable-notebook or --disable-notebook was given.
5478 if test "${enable_notebook+set}" = set; then
5479 enableval="$enable_notebook"
5480
5481 if test "$enableval" = yes; then
5482 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5483 else
5484 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5485 fi
5486
5487 else
5488
5489 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5490 if test "x$LINE" != x ; then
5491 eval "DEFAULT_$LINE"
5492 else
5493 no_cache=1
5494 fi
5495
5496 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5497
5498 fi
5499
5500
5501 eval "$ac_cv_use_notebook"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_NOTEBOOK" = yes; then
5507 echo "$ac_t""yes" 1>&6
5508 else
5509 echo "$ac_t""no" 1>&6
5510 fi
5511
5512
5513 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5514 echo "configure:5515: checking for --enable-radiobox" >&5
5515 no_cache=0
5516 # Check whether --enable-radiobox or --disable-radiobox was given.
5517 if test "${enable_radiobox+set}" = set; then
5518 enableval="$enable_radiobox"
5519
5520 if test "$enableval" = yes; then
5521 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5522 else
5523 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5524 fi
5525
5526 else
5527
5528 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5529 if test "x$LINE" != x ; then
5530 eval "DEFAULT_$LINE"
5531 else
5532 no_cache=1
5533 fi
5534
5535 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5536
5537 fi
5538
5539
5540 eval "$ac_cv_use_radiobox"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_RADIOBOX" = yes; then
5546 echo "$ac_t""yes" 1>&6
5547 else
5548 echo "$ac_t""no" 1>&6
5549 fi
5550
5551
5552 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5553 echo "configure:5554: checking for --enable-radiobtn" >&5
5554 no_cache=0
5555 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5556 if test "${enable_radiobtn+set}" = set; then
5557 enableval="$enable_radiobtn"
5558
5559 if test "$enableval" = yes; then
5560 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5561 else
5562 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5563 fi
5564
5565 else
5566
5567 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5568 if test "x$LINE" != x ; then
5569 eval "DEFAULT_$LINE"
5570 else
5571 no_cache=1
5572 fi
5573
5574 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5575
5576 fi
5577
5578
5579 eval "$ac_cv_use_radiobtn"
5580 if test "$no_cache" != 1; then
5581 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5582 fi
5583
5584 if test "$wxUSE_RADIOBTN" = yes; then
5585 echo "$ac_t""yes" 1>&6
5586 else
5587 echo "$ac_t""no" 1>&6
5588 fi
5589
5590
5591 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5592 echo "configure:5593: checking for --enable-sash" >&5
5593 no_cache=0
5594 # Check whether --enable-sash or --disable-sash was given.
5595 if test "${enable_sash+set}" = set; then
5596 enableval="$enable_sash"
5597
5598 if test "$enableval" = yes; then
5599 ac_cv_use_sash='wxUSE_SASH=yes'
5600 else
5601 ac_cv_use_sash='wxUSE_SASH=no'
5602 fi
5603
5604 else
5605
5606 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5607 if test "x$LINE" != x ; then
5608 eval "DEFAULT_$LINE"
5609 else
5610 no_cache=1
5611 fi
5612
5613 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5614
5615 fi
5616
5617
5618 eval "$ac_cv_use_sash"
5619 if test "$no_cache" != 1; then
5620 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5621 fi
5622
5623 if test "$wxUSE_SASH" = yes; then
5624 echo "$ac_t""yes" 1>&6
5625 else
5626 echo "$ac_t""no" 1>&6
5627 fi
5628
5629
5630 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5631 echo "configure:5632: checking for --enable-scrollbar" >&5
5632 no_cache=0
5633 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5634 if test "${enable_scrollbar+set}" = set; then
5635 enableval="$enable_scrollbar"
5636
5637 if test "$enableval" = yes; then
5638 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5639 else
5640 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5641 fi
5642
5643 else
5644
5645 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5646 if test "x$LINE" != x ; then
5647 eval "DEFAULT_$LINE"
5648 else
5649 no_cache=1
5650 fi
5651
5652 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5653
5654 fi
5655
5656
5657 eval "$ac_cv_use_scrollbar"
5658 if test "$no_cache" != 1; then
5659 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5660 fi
5661
5662 if test "$wxUSE_SCROLLBAR" = yes; then
5663 echo "$ac_t""yes" 1>&6
5664 else
5665 echo "$ac_t""no" 1>&6
5666 fi
5667
5668
5669 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5670 echo "configure:5671: checking for --enable-slider" >&5
5671 no_cache=0
5672 # Check whether --enable-slider or --disable-slider was given.
5673 if test "${enable_slider+set}" = set; then
5674 enableval="$enable_slider"
5675
5676 if test "$enableval" = yes; then
5677 ac_cv_use_slider='wxUSE_SLIDER=yes'
5678 else
5679 ac_cv_use_slider='wxUSE_SLIDER=no'
5680 fi
5681
5682 else
5683
5684 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5685 if test "x$LINE" != x ; then
5686 eval "DEFAULT_$LINE"
5687 else
5688 no_cache=1
5689 fi
5690
5691 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5692
5693 fi
5694
5695
5696 eval "$ac_cv_use_slider"
5697 if test "$no_cache" != 1; then
5698 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5699 fi
5700
5701 if test "$wxUSE_SLIDER" = yes; then
5702 echo "$ac_t""yes" 1>&6
5703 else
5704 echo "$ac_t""no" 1>&6
5705 fi
5706
5707
5708 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5709 echo "configure:5710: checking for --enable-spinbtn" >&5
5710 no_cache=0
5711 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5712 if test "${enable_spinbtn+set}" = set; then
5713 enableval="$enable_spinbtn"
5714
5715 if test "$enableval" = yes; then
5716 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5717 else
5718 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5719 fi
5720
5721 else
5722
5723 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5724 if test "x$LINE" != x ; then
5725 eval "DEFAULT_$LINE"
5726 else
5727 no_cache=1
5728 fi
5729
5730 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5731
5732 fi
5733
5734
5735 eval "$ac_cv_use_spinbtn"
5736 if test "$no_cache" != 1; then
5737 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5738 fi
5739
5740 if test "$wxUSE_SPINBTN" = yes; then
5741 echo "$ac_t""yes" 1>&6
5742 else
5743 echo "$ac_t""no" 1>&6
5744 fi
5745
5746
5747 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5748 echo "configure:5749: checking for --enable-spinctrl" >&5
5749 no_cache=0
5750 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5751 if test "${enable_spinctrl+set}" = set; then
5752 enableval="$enable_spinctrl"
5753
5754 if test "$enableval" = yes; then
5755 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5756 else
5757 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5758 fi
5759
5760 else
5761
5762 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5763 if test "x$LINE" != x ; then
5764 eval "DEFAULT_$LINE"
5765 else
5766 no_cache=1
5767 fi
5768
5769 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5770
5771 fi
5772
5773
5774 eval "$ac_cv_use_spinctrl"
5775 if test "$no_cache" != 1; then
5776 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5777 fi
5778
5779 if test "$wxUSE_SPINCTRL" = yes; then
5780 echo "$ac_t""yes" 1>&6
5781 else
5782 echo "$ac_t""no" 1>&6
5783 fi
5784
5785
5786 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
5787 echo "configure:5788: checking for --enable-splitter" >&5
5788 no_cache=0
5789 # Check whether --enable-splitter or --disable-splitter was given.
5790 if test "${enable_splitter+set}" = set; then
5791 enableval="$enable_splitter"
5792
5793 if test "$enableval" = yes; then
5794 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5795 else
5796 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5797 fi
5798
5799 else
5800
5801 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
5808 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5809
5810 fi
5811
5812
5813 eval "$ac_cv_use_splitter"
5814 if test "$no_cache" != 1; then
5815 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5816 fi
5817
5818 if test "$wxUSE_SPLITTER" = yes; then
5819 echo "$ac_t""yes" 1>&6
5820 else
5821 echo "$ac_t""no" 1>&6
5822 fi
5823
5824
5825 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
5826 echo "configure:5827: checking for --enable-statbmp" >&5
5827 no_cache=0
5828 # Check whether --enable-statbmp or --disable-statbmp was given.
5829 if test "${enable_statbmp+set}" = set; then
5830 enableval="$enable_statbmp"
5831
5832 if test "$enableval" = yes; then
5833 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5834 else
5835 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5836 fi
5837
5838 else
5839
5840 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5841 if test "x$LINE" != x ; then
5842 eval "DEFAULT_$LINE"
5843 else
5844 no_cache=1
5845 fi
5846
5847 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5848
5849 fi
5850
5851
5852 eval "$ac_cv_use_statbmp"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_STATBMP" = yes; then
5858 echo "$ac_t""yes" 1>&6
5859 else
5860 echo "$ac_t""no" 1>&6
5861 fi
5862
5863
5864 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
5865 echo "configure:5866: checking for --enable-statbox" >&5
5866 no_cache=0
5867 # Check whether --enable-statbox or --disable-statbox was given.
5868 if test "${enable_statbox+set}" = set; then
5869 enableval="$enable_statbox"
5870
5871 if test "$enableval" = yes; then
5872 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5873 else
5874 ac_cv_use_statbox='wxUSE_STATBOX=no'
5875 fi
5876
5877 else
5878
5879 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5880 if test "x$LINE" != x ; then
5881 eval "DEFAULT_$LINE"
5882 else
5883 no_cache=1
5884 fi
5885
5886 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5887
5888 fi
5889
5890
5891 eval "$ac_cv_use_statbox"
5892 if test "$no_cache" != 1; then
5893 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5894 fi
5895
5896 if test "$wxUSE_STATBOX" = yes; then
5897 echo "$ac_t""yes" 1>&6
5898 else
5899 echo "$ac_t""no" 1>&6
5900 fi
5901
5902
5903 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
5904 echo "configure:5905: checking for --enable-statline" >&5
5905 no_cache=0
5906 # Check whether --enable-statline or --disable-statline was given.
5907 if test "${enable_statline+set}" = set; then
5908 enableval="$enable_statline"
5909
5910 if test "$enableval" = yes; then
5911 ac_cv_use_statline='wxUSE_STATLINE=yes'
5912 else
5913 ac_cv_use_statline='wxUSE_STATLINE=no'
5914 fi
5915
5916 else
5917
5918 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5919 if test "x$LINE" != x ; then
5920 eval "DEFAULT_$LINE"
5921 else
5922 no_cache=1
5923 fi
5924
5925 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5926
5927 fi
5928
5929
5930 eval "$ac_cv_use_statline"
5931 if test "$no_cache" != 1; then
5932 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5933 fi
5934
5935 if test "$wxUSE_STATLINE" = yes; then
5936 echo "$ac_t""yes" 1>&6
5937 else
5938 echo "$ac_t""no" 1>&6
5939 fi
5940
5941
5942 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
5943 echo "configure:5944: checking for --enable-stattext" >&5
5944 no_cache=0
5945 # Check whether --enable-stattext or --disable-stattext was given.
5946 if test "${enable_stattext+set}" = set; then
5947 enableval="$enable_stattext"
5948
5949 if test "$enableval" = yes; then
5950 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5951 else
5952 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5953 fi
5954
5955 else
5956
5957 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5958 if test "x$LINE" != x ; then
5959 eval "DEFAULT_$LINE"
5960 else
5961 no_cache=1
5962 fi
5963
5964 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5965
5966 fi
5967
5968
5969 eval "$ac_cv_use_stattext"
5970 if test "$no_cache" != 1; then
5971 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5972 fi
5973
5974 if test "$wxUSE_STATTEXT" = yes; then
5975 echo "$ac_t""yes" 1>&6
5976 else
5977 echo "$ac_t""no" 1>&6
5978 fi
5979
5980
5981 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
5982 echo "configure:5983: checking for --enable-statusbar" >&5
5983 no_cache=0
5984 # Check whether --enable-statusbar or --disable-statusbar was given.
5985 if test "${enable_statusbar+set}" = set; then
5986 enableval="$enable_statusbar"
5987
5988 if test "$enableval" = yes; then
5989 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5990 else
5991 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5992 fi
5993
5994 else
5995
5996 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5997 if test "x$LINE" != x ; then
5998 eval "DEFAULT_$LINE"
5999 else
6000 no_cache=1
6001 fi
6002
6003 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6004
6005 fi
6006
6007
6008 eval "$ac_cv_use_statusbar"
6009 if test "$no_cache" != 1; then
6010 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6011 fi
6012
6013 if test "$wxUSE_STATUSBAR" = yes; then
6014 echo "$ac_t""yes" 1>&6
6015 else
6016 echo "$ac_t""no" 1>&6
6017 fi
6018
6019
6020 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6021 echo "configure:6022: checking for --enable-tabdialog" >&5
6022 no_cache=0
6023 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6024 if test "${enable_tabdialog+set}" = set; then
6025 enableval="$enable_tabdialog"
6026
6027 if test "$enableval" = yes; then
6028 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6029 else
6030 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6031 fi
6032
6033 else
6034
6035 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6036 if test "x$LINE" != x ; then
6037 eval "DEFAULT_$LINE"
6038 else
6039 no_cache=1
6040 fi
6041
6042 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6043
6044 fi
6045
6046
6047 eval "$ac_cv_use_tabdialog"
6048 if test "$no_cache" != 1; then
6049 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6050 fi
6051
6052 if test "$wxUSE_TABDIALOG" = yes; then
6053 echo "$ac_t""yes" 1>&6
6054 else
6055 echo "$ac_t""no" 1>&6
6056 fi
6057
6058
6059 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6060 echo "configure:6061: checking for --enable-textctrl" >&5
6061 no_cache=0
6062 # Check whether --enable-textctrl or --disable-textctrl was given.
6063 if test "${enable_textctrl+set}" = set; then
6064 enableval="$enable_textctrl"
6065
6066 if test "$enableval" = yes; then
6067 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6068 else
6069 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6070 fi
6071
6072 else
6073
6074 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6075 if test "x$LINE" != x ; then
6076 eval "DEFAULT_$LINE"
6077 else
6078 no_cache=1
6079 fi
6080
6081 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6082
6083 fi
6084
6085
6086 eval "$ac_cv_use_textctrl"
6087 if test "$no_cache" != 1; then
6088 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6089 fi
6090
6091 if test "$wxUSE_TEXTCTRL" = yes; then
6092 echo "$ac_t""yes" 1>&6
6093 else
6094 echo "$ac_t""no" 1>&6
6095 fi
6096
6097
6098 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6099 echo "configure:6100: checking for --enable-togglebtn" >&5
6100 no_cache=0
6101 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6102 if test "${enable_togglebtn+set}" = set; then
6103 enableval="$enable_togglebtn"
6104
6105 if test "$enableval" = yes; then
6106 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6107 else
6108 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6109 fi
6110
6111 else
6112
6113 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6114 if test "x$LINE" != x ; then
6115 eval "DEFAULT_$LINE"
6116 else
6117 no_cache=1
6118 fi
6119
6120 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6121
6122 fi
6123
6124
6125 eval "$ac_cv_use_togglebtn"
6126 if test "$no_cache" != 1; then
6127 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6128 fi
6129
6130 if test "$wxUSE_TOGGLEBTN" = yes; then
6131 echo "$ac_t""yes" 1>&6
6132 else
6133 echo "$ac_t""no" 1>&6
6134 fi
6135
6136
6137 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6138 echo "configure:6139: checking for --enable-toolbar" >&5
6139 no_cache=0
6140 # Check whether --enable-toolbar or --disable-toolbar was given.
6141 if test "${enable_toolbar+set}" = set; then
6142 enableval="$enable_toolbar"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6146 else
6147 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6148 fi
6149
6150 else
6151
6152 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6160
6161 fi
6162
6163
6164 eval "$ac_cv_use_toolbar"
6165 if test "$no_cache" != 1; then
6166 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6167 fi
6168
6169 if test "$wxUSE_TOOLBAR" = yes; then
6170 echo "$ac_t""yes" 1>&6
6171 else
6172 echo "$ac_t""no" 1>&6
6173 fi
6174
6175
6176 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6177 echo "configure:6178: checking for --enable-tbarnative" >&5
6178 no_cache=0
6179 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6180 if test "${enable_tbarnative+set}" = set; then
6181 enableval="$enable_tbarnative"
6182
6183 if test "$enableval" = yes; then
6184 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6185 else
6186 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6187 fi
6188
6189 else
6190
6191 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6192 if test "x$LINE" != x ; then
6193 eval "DEFAULT_$LINE"
6194 else
6195 no_cache=1
6196 fi
6197
6198 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6199
6200 fi
6201
6202
6203 eval "$ac_cv_use_tbarnative"
6204 if test "$no_cache" != 1; then
6205 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6206 fi
6207
6208 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6209 echo "$ac_t""yes" 1>&6
6210 else
6211 echo "$ac_t""no" 1>&6
6212 fi
6213
6214
6215 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6216 echo "configure:6217: checking for --enable-tbarsmpl" >&5
6217 no_cache=0
6218 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6219 if test "${enable_tbarsmpl+set}" = set; then
6220 enableval="$enable_tbarsmpl"
6221
6222 if test "$enableval" = yes; then
6223 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6224 else
6225 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6226 fi
6227
6228 else
6229
6230 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6231 if test "x$LINE" != x ; then
6232 eval "DEFAULT_$LINE"
6233 else
6234 no_cache=1
6235 fi
6236
6237 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6238
6239 fi
6240
6241
6242 eval "$ac_cv_use_tbarsmpl"
6243 if test "$no_cache" != 1; then
6244 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6245 fi
6246
6247 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6248 echo "$ac_t""yes" 1>&6
6249 else
6250 echo "$ac_t""no" 1>&6
6251 fi
6252
6253
6254 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6255 echo "configure:6256: checking for --enable-treectrl" >&5
6256 no_cache=0
6257 # Check whether --enable-treectrl or --disable-treectrl was given.
6258 if test "${enable_treectrl+set}" = set; then
6259 enableval="$enable_treectrl"
6260
6261 if test "$enableval" = yes; then
6262 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6263 else
6264 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6265 fi
6266
6267 else
6268
6269 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6270 if test "x$LINE" != x ; then
6271 eval "DEFAULT_$LINE"
6272 else
6273 no_cache=1
6274 fi
6275
6276 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6277
6278 fi
6279
6280
6281 eval "$ac_cv_use_treectrl"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_TREECTRL" = yes; then
6287 echo "$ac_t""yes" 1>&6
6288 else
6289 echo "$ac_t""no" 1>&6
6290 fi
6291
6292
6293
6294
6295 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6296 echo "configure:6297: checking for --enable-commondlg" >&5
6297 no_cache=0
6298 # Check whether --enable-commondlg or --disable-commondlg was given.
6299 if test "${enable_commondlg+set}" = set; then
6300 enableval="$enable_commondlg"
6301
6302 if test "$enableval" = yes; then
6303 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6304 else
6305 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6306 fi
6307
6308 else
6309
6310 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6311 if test "x$LINE" != x ; then
6312 eval "DEFAULT_$LINE"
6313 else
6314 no_cache=1
6315 fi
6316
6317 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6318
6319 fi
6320
6321
6322 eval "$ac_cv_use_commondlg"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_COMMONDLGS" = yes; then
6328 echo "$ac_t""yes" 1>&6
6329 else
6330 echo "$ac_t""no" 1>&6
6331 fi
6332
6333
6334 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6335 echo "configure:6336: checking for --enable-choicedlg" >&5
6336 no_cache=0
6337 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6338 if test "${enable_choicedlg+set}" = set; then
6339 enableval="$enable_choicedlg"
6340
6341 if test "$enableval" = yes; then
6342 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6343 else
6344 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6345 fi
6346
6347 else
6348
6349 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6357
6358 fi
6359
6360
6361 eval "$ac_cv_use_choicedlg"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_CHOICEDLG" = yes; then
6367 echo "$ac_t""yes" 1>&6
6368 else
6369 echo "$ac_t""no" 1>&6
6370 fi
6371
6372
6373 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6374 echo "configure:6375: checking for --enable-coldlg" >&5
6375 no_cache=0
6376 # Check whether --enable-coldlg or --disable-coldlg was given.
6377 if test "${enable_coldlg+set}" = set; then
6378 enableval="$enable_coldlg"
6379
6380 if test "$enableval" = yes; then
6381 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6382 else
6383 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6384 fi
6385
6386 else
6387
6388 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6396
6397 fi
6398
6399
6400 eval "$ac_cv_use_coldlg"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_COLOURDLG" = yes; then
6406 echo "$ac_t""yes" 1>&6
6407 else
6408 echo "$ac_t""no" 1>&6
6409 fi
6410
6411
6412 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6413 echo "configure:6414: checking for --enable-filedlg" >&5
6414 no_cache=0
6415 # Check whether --enable-filedlg or --disable-filedlg was given.
6416 if test "${enable_filedlg+set}" = set; then
6417 enableval="$enable_filedlg"
6418
6419 if test "$enableval" = yes; then
6420 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6421 else
6422 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6423 fi
6424
6425 else
6426
6427 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6428 if test "x$LINE" != x ; then
6429 eval "DEFAULT_$LINE"
6430 else
6431 no_cache=1
6432 fi
6433
6434 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6435
6436 fi
6437
6438
6439 eval "$ac_cv_use_filedlg"
6440 if test "$no_cache" != 1; then
6441 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6442 fi
6443
6444 if test "$wxUSE_FILEDLG" = yes; then
6445 echo "$ac_t""yes" 1>&6
6446 else
6447 echo "$ac_t""no" 1>&6
6448 fi
6449
6450
6451 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6452 echo "configure:6453: checking for --enable-fontdlg" >&5
6453 no_cache=0
6454 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6455 if test "${enable_fontdlg+set}" = set; then
6456 enableval="$enable_fontdlg"
6457
6458 if test "$enableval" = yes; then
6459 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6460 else
6461 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6462 fi
6463
6464 else
6465
6466 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6474
6475 fi
6476
6477
6478 eval "$ac_cv_use_fontdlg"
6479 if test "$no_cache" != 1; then
6480 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6481 fi
6482
6483 if test "$wxUSE_FONTDLG" = yes; then
6484 echo "$ac_t""yes" 1>&6
6485 else
6486 echo "$ac_t""no" 1>&6
6487 fi
6488
6489
6490 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6491 echo "configure:6492: checking for --enable-dirdlg" >&5
6492 no_cache=0
6493 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6494 if test "${enable_dirdlg+set}" = set; then
6495 enableval="$enable_dirdlg"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6499 else
6500 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6501 fi
6502
6503 else
6504
6505 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6513
6514 fi
6515
6516
6517 eval "$ac_cv_use_dirdlg"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_DIRDLG" = yes; then
6523 echo "$ac_t""yes" 1>&6
6524 else
6525 echo "$ac_t""no" 1>&6
6526 fi
6527
6528
6529 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6530 echo "configure:6531: checking for --enable-msgdlg" >&5
6531 no_cache=0
6532 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6533 if test "${enable_msgdlg+set}" = set; then
6534 enableval="$enable_msgdlg"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6538 else
6539 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6540 fi
6541
6542 else
6543
6544 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6552
6553 fi
6554
6555
6556 eval "$ac_cv_use_msgdlg"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_MSGDLG" = yes; then
6562 echo "$ac_t""yes" 1>&6
6563 else
6564 echo "$ac_t""no" 1>&6
6565 fi
6566
6567
6568 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6569 echo "configure:6570: checking for --enable-numberdlg" >&5
6570 no_cache=0
6571 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6572 if test "${enable_numberdlg+set}" = set; then
6573 enableval="$enable_numberdlg"
6574
6575 if test "$enableval" = yes; then
6576 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6577 else
6578 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6579 fi
6580
6581 else
6582
6583 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6584 if test "x$LINE" != x ; then
6585 eval "DEFAULT_$LINE"
6586 else
6587 no_cache=1
6588 fi
6589
6590 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6591
6592 fi
6593
6594
6595 eval "$ac_cv_use_numberdlg"
6596 if test "$no_cache" != 1; then
6597 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6598 fi
6599
6600 if test "$wxUSE_NUMBERDLG" = yes; then
6601 echo "$ac_t""yes" 1>&6
6602 else
6603 echo "$ac_t""no" 1>&6
6604 fi
6605
6606
6607 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6608 echo "configure:6609: checking for --enable-textdlg" >&5
6609 no_cache=0
6610 # Check whether --enable-textdlg or --disable-textdlg was given.
6611 if test "${enable_textdlg+set}" = set; then
6612 enableval="$enable_textdlg"
6613
6614 if test "$enableval" = yes; then
6615 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6616 else
6617 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6618 fi
6619
6620 else
6621
6622 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
6629 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6630
6631 fi
6632
6633
6634 eval "$ac_cv_use_textdlg"
6635 if test "$no_cache" != 1; then
6636 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6637 fi
6638
6639 if test "$wxUSE_TEXTDLG" = yes; then
6640 echo "$ac_t""yes" 1>&6
6641 else
6642 echo "$ac_t""no" 1>&6
6643 fi
6644
6645
6646 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6647 echo "configure:6648: checking for --enable-tipdlg" >&5
6648 no_cache=0
6649 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6650 if test "${enable_tipdlg+set}" = set; then
6651 enableval="$enable_tipdlg"
6652
6653 if test "$enableval" = yes; then
6654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6655 else
6656 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6657 fi
6658
6659 else
6660
6661 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6669
6670 fi
6671
6672
6673 eval "$ac_cv_use_tipdlg"
6674 if test "$no_cache" != 1; then
6675 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6676 fi
6677
6678 if test "$wxUSE_STARTUP_TIPS" = yes; then
6679 echo "$ac_t""yes" 1>&6
6680 else
6681 echo "$ac_t""no" 1>&6
6682 fi
6683
6684
6685 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
6686 echo "configure:6687: checking for --enable-progressdlg" >&5
6687 no_cache=0
6688 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6689 if test "${enable_progressdlg+set}" = set; then
6690 enableval="$enable_progressdlg"
6691
6692 if test "$enableval" = yes; then
6693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6694 else
6695 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6696 fi
6697
6698 else
6699
6700 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6701 if test "x$LINE" != x ; then
6702 eval "DEFAULT_$LINE"
6703 else
6704 no_cache=1
6705 fi
6706
6707 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
6708
6709 fi
6710
6711
6712 eval "$ac_cv_use_progressdlg"
6713 if test "$no_cache" != 1; then
6714 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6715 fi
6716
6717 if test "$wxUSE_PROGRESSDLG" = yes; then
6718 echo "$ac_t""yes" 1>&6
6719 else
6720 echo "$ac_t""no" 1>&6
6721 fi
6722
6723
6724 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
6725 echo "configure:6726: checking for --enable-menus" >&5
6726 no_cache=0
6727 # Check whether --enable-menus or --disable-menus was given.
6728 if test "${enable_menus+set}" = set; then
6729 enableval="$enable_menus"
6730
6731 if test "$enableval" = yes; then
6732 ac_cv_use_menus='wxUSE_MENUS=yes'
6733 else
6734 ac_cv_use_menus='wxUSE_MENUS=no'
6735 fi
6736
6737 else
6738
6739 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6740 if test "x$LINE" != x ; then
6741 eval "DEFAULT_$LINE"
6742 else
6743 no_cache=1
6744 fi
6745
6746 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6747
6748 fi
6749
6750
6751 eval "$ac_cv_use_menus"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_MENUS" = yes; then
6757 echo "$ac_t""yes" 1>&6
6758 else
6759 echo "$ac_t""no" 1>&6
6760 fi
6761
6762
6763 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
6764 echo "configure:6765: checking for --enable-miniframe" >&5
6765 no_cache=0
6766 # Check whether --enable-miniframe or --disable-miniframe was given.
6767 if test "${enable_miniframe+set}" = set; then
6768 enableval="$enable_miniframe"
6769
6770 if test "$enableval" = yes; then
6771 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6772 else
6773 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6774 fi
6775
6776 else
6777
6778 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6779 if test "x$LINE" != x ; then
6780 eval "DEFAULT_$LINE"
6781 else
6782 no_cache=1
6783 fi
6784
6785 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
6786
6787 fi
6788
6789
6790 eval "$ac_cv_use_miniframe"
6791 if test "$no_cache" != 1; then
6792 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6793 fi
6794
6795 if test "$wxUSE_MINIFRAME" = yes; then
6796 echo "$ac_t""yes" 1>&6
6797 else
6798 echo "$ac_t""no" 1>&6
6799 fi
6800
6801
6802 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
6803 echo "configure:6804: checking for --enable-html" >&5
6804 no_cache=0
6805 # Check whether --enable-html or --disable-html was given.
6806 if test "${enable_html+set}" = set; then
6807 enableval="$enable_html"
6808
6809 if test "$enableval" = yes; then
6810 ac_cv_use_html='wxUSE_HTML=yes'
6811 else
6812 ac_cv_use_html='wxUSE_HTML=no'
6813 fi
6814
6815 else
6816
6817 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6818 if test "x$LINE" != x ; then
6819 eval "DEFAULT_$LINE"
6820 else
6821 no_cache=1
6822 fi
6823
6824 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6825
6826 fi
6827
6828
6829 eval "$ac_cv_use_html"
6830 if test "$no_cache" != 1; then
6831 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6832 fi
6833
6834 if test "$wxUSE_HTML" = yes; then
6835 echo "$ac_t""yes" 1>&6
6836 else
6837 echo "$ac_t""no" 1>&6
6838 fi
6839
6840
6841 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
6842 echo "configure:6843: checking for --enable-tooltips" >&5
6843 no_cache=0
6844 # Check whether --enable-tooltips or --disable-tooltips was given.
6845 if test "${enable_tooltips+set}" = set; then
6846 enableval="$enable_tooltips"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6850 else
6851 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6852 fi
6853
6854 else
6855
6856 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6864
6865 fi
6866
6867
6868 eval "$ac_cv_use_tooltips"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_TOOLTIPS" = yes; then
6874 echo "$ac_t""yes" 1>&6
6875 else
6876 echo "$ac_t""no" 1>&6
6877 fi
6878
6879
6880 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
6881 echo "configure:6882: checking for --enable-splines" >&5
6882 no_cache=0
6883 # Check whether --enable-splines or --disable-splines was given.
6884 if test "${enable_splines+set}" = set; then
6885 enableval="$enable_splines"
6886
6887 if test "$enableval" = yes; then
6888 ac_cv_use_splines='wxUSE_SPLINES=yes'
6889 else
6890 ac_cv_use_splines='wxUSE_SPLINES=no'
6891 fi
6892
6893 else
6894
6895 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6896 if test "x$LINE" != x ; then
6897 eval "DEFAULT_$LINE"
6898 else
6899 no_cache=1
6900 fi
6901
6902 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
6903
6904 fi
6905
6906
6907 eval "$ac_cv_use_splines"
6908 if test "$no_cache" != 1; then
6909 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6910 fi
6911
6912 if test "$wxUSE_SPLINES" = yes; then
6913 echo "$ac_t""yes" 1>&6
6914 else
6915 echo "$ac_t""no" 1>&6
6916 fi
6917
6918
6919 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
6920 echo "configure:6921: checking for --enable-validators" >&5
6921 no_cache=0
6922 # Check whether --enable-validators or --disable-validators was given.
6923 if test "${enable_validators+set}" = set; then
6924 enableval="$enable_validators"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6928 else
6929 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6930 fi
6931
6932 else
6933
6934 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
6942
6943 fi
6944
6945
6946 eval "$ac_cv_use_validators"
6947 if test "$no_cache" != 1; then
6948 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6949 fi
6950
6951 if test "$wxUSE_VALIDATORS" = yes; then
6952 echo "$ac_t""yes" 1>&6
6953 else
6954 echo "$ac_t""no" 1>&6
6955 fi
6956
6957
6958 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
6959 echo "configure:6960: checking for --enable-busyinfo" >&5
6960 no_cache=0
6961 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6962 if test "${enable_busyinfo+set}" = set; then
6963 enableval="$enable_busyinfo"
6964
6965 if test "$enableval" = yes; then
6966 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6967 else
6968 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6969 fi
6970
6971 else
6972
6973 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6974 if test "x$LINE" != x ; then
6975 eval "DEFAULT_$LINE"
6976 else
6977 no_cache=1
6978 fi
6979
6980 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
6981
6982 fi
6983
6984
6985 eval "$ac_cv_use_busyinfo"
6986 if test "$no_cache" != 1; then
6987 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6988 fi
6989
6990 if test "$wxUSE_BUSYINFO" = yes; then
6991 echo "$ac_t""yes" 1>&6
6992 else
6993 echo "$ac_t""no" 1>&6
6994 fi
6995
6996
6997 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
6998 echo "configure:6999: checking for --enable-joystick" >&5
6999 no_cache=0
7000 # Check whether --enable-joystick or --disable-joystick was given.
7001 if test "${enable_joystick+set}" = set; then
7002 enableval="$enable_joystick"
7003
7004 if test "$enableval" = yes; then
7005 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7006 else
7007 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7008 fi
7009
7010 else
7011
7012 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7013 if test "x$LINE" != x ; then
7014 eval "DEFAULT_$LINE"
7015 else
7016 no_cache=1
7017 fi
7018
7019 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7020
7021 fi
7022
7023
7024 eval "$ac_cv_use_joystick"
7025 if test "$no_cache" != 1; then
7026 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7027 fi
7028
7029 if test "$wxUSE_JOYSTICK" = yes; then
7030 echo "$ac_t""yes" 1>&6
7031 else
7032 echo "$ac_t""no" 1>&6
7033 fi
7034
7035
7036 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7037 echo "configure:7038: checking for --enable-metafile" >&5
7038 no_cache=0
7039 # Check whether --enable-metafile or --disable-metafile was given.
7040 if test "${enable_metafile+set}" = set; then
7041 enableval="$enable_metafile"
7042
7043 if test "$enableval" = yes; then
7044 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7045 else
7046 ac_cv_use_metafile='wxUSE_METAFILE=no'
7047 fi
7048
7049 else
7050
7051 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7052 if test "x$LINE" != x ; then
7053 eval "DEFAULT_$LINE"
7054 else
7055 no_cache=1
7056 fi
7057
7058 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7059
7060 fi
7061
7062
7063 eval "$ac_cv_use_metafile"
7064 if test "$no_cache" != 1; then
7065 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7066 fi
7067
7068 if test "$wxUSE_METAFILE" = yes; then
7069 echo "$ac_t""yes" 1>&6
7070 else
7071 echo "$ac_t""no" 1>&6
7072 fi
7073
7074
7075
7076
7077 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7078 echo "configure:7079: checking for --enable-image" >&5
7079 no_cache=0
7080 # Check whether --enable-image or --disable-image was given.
7081 if test "${enable_image+set}" = set; then
7082 enableval="$enable_image"
7083
7084 if test "$enableval" = yes; then
7085 ac_cv_use_image='wxUSE_IMAGE=yes'
7086 else
7087 ac_cv_use_image='wxUSE_IMAGE=no'
7088 fi
7089
7090 else
7091
7092 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7093 if test "x$LINE" != x ; then
7094 eval "DEFAULT_$LINE"
7095 else
7096 no_cache=1
7097 fi
7098
7099 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7100
7101 fi
7102
7103
7104 eval "$ac_cv_use_image"
7105 if test "$no_cache" != 1; then
7106 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7107 fi
7108
7109 if test "$wxUSE_IMAGE" = yes; then
7110 echo "$ac_t""yes" 1>&6
7111 else
7112 echo "$ac_t""no" 1>&6
7113 fi
7114
7115
7116 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7117 echo "configure:7118: checking for --enable-gif" >&5
7118 no_cache=0
7119 # Check whether --enable-gif or --disable-gif was given.
7120 if test "${enable_gif+set}" = set; then
7121 enableval="$enable_gif"
7122
7123 if test "$enableval" = yes; then
7124 ac_cv_use_gif='wxUSE_GIF=yes'
7125 else
7126 ac_cv_use_gif='wxUSE_GIF=no'
7127 fi
7128
7129 else
7130
7131 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7132 if test "x$LINE" != x ; then
7133 eval "DEFAULT_$LINE"
7134 else
7135 no_cache=1
7136 fi
7137
7138 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7139
7140 fi
7141
7142
7143 eval "$ac_cv_use_gif"
7144 if test "$no_cache" != 1; then
7145 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7146 fi
7147
7148 if test "$wxUSE_GIF" = yes; then
7149 echo "$ac_t""yes" 1>&6
7150 else
7151 echo "$ac_t""no" 1>&6
7152 fi
7153
7154
7155 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7156 echo "configure:7157: checking for --enable-pcx" >&5
7157 no_cache=0
7158 # Check whether --enable-pcx or --disable-pcx was given.
7159 if test "${enable_pcx+set}" = set; then
7160 enableval="$enable_pcx"
7161
7162 if test "$enableval" = yes; then
7163 ac_cv_use_pcx='wxUSE_PCX=yes'
7164 else
7165 ac_cv_use_pcx='wxUSE_PCX=no'
7166 fi
7167
7168 else
7169
7170 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7171 if test "x$LINE" != x ; then
7172 eval "DEFAULT_$LINE"
7173 else
7174 no_cache=1
7175 fi
7176
7177 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7178
7179 fi
7180
7181
7182 eval "$ac_cv_use_pcx"
7183 if test "$no_cache" != 1; then
7184 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7185 fi
7186
7187 if test "$wxUSE_PCX" = yes; then
7188 echo "$ac_t""yes" 1>&6
7189 else
7190 echo "$ac_t""no" 1>&6
7191 fi
7192
7193
7194 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7195 echo "configure:7196: checking for --enable-pnm" >&5
7196 no_cache=0
7197 # Check whether --enable-pnm or --disable-pnm was given.
7198 if test "${enable_pnm+set}" = set; then
7199 enableval="$enable_pnm"
7200
7201 if test "$enableval" = yes; then
7202 ac_cv_use_pnm='wxUSE_PNM=yes'
7203 else
7204 ac_cv_use_pnm='wxUSE_PNM=no'
7205 fi
7206
7207 else
7208
7209 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7210 if test "x$LINE" != x ; then
7211 eval "DEFAULT_$LINE"
7212 else
7213 no_cache=1
7214 fi
7215
7216 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7217
7218 fi
7219
7220
7221 eval "$ac_cv_use_pnm"
7222 if test "$no_cache" != 1; then
7223 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7224 fi
7225
7226 if test "$wxUSE_PNM" = yes; then
7227 echo "$ac_t""yes" 1>&6
7228 else
7229 echo "$ac_t""no" 1>&6
7230 fi
7231
7232
7233 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7234 echo "configure:7235: checking for --enable-pnm" >&5
7235 no_cache=0
7236 # Check whether --enable-pnm or --disable-pnm was given.
7237 if test "${enable_pnm+set}" = set; then
7238 enableval="$enable_pnm"
7239
7240 if test "$enableval" = yes; then
7241 ac_cv_use_pnm='wxUSE_XPM=yes'
7242 else
7243 ac_cv_use_pnm='wxUSE_XPM=no'
7244 fi
7245
7246 else
7247
7248 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7249 if test "x$LINE" != x ; then
7250 eval "DEFAULT_$LINE"
7251 else
7252 no_cache=1
7253 fi
7254
7255 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7256
7257 fi
7258
7259
7260 eval "$ac_cv_use_pnm"
7261 if test "$no_cache" != 1; then
7262 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7263 fi
7264
7265 if test "$wxUSE_XPM" = yes; then
7266 echo "$ac_t""yes" 1>&6
7267 else
7268 echo "$ac_t""no" 1>&6
7269 fi
7270
7271
7272 fi
7273
7274
7275 echo "saving argument cache $wx_arg_cache_file"
7276 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7277
7278
7279
7280 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7281 echo "configure:7282: checking for toolkit" >&5
7282
7283 if test "$wxUSE_GUI" = "yes"; then
7284
7285 if test "$USE_BEOS" = 1; then
7286 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7287 fi
7288
7289 if test "$TOOLKIT_GIVEN" = 1; then
7290 for toolkit in `echo $ALL_TOOLKITS`; do
7291 var=wxUSE_$toolkit
7292 eval "value=\$${var}"
7293 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7294 done
7295 else
7296 for toolkit in `echo $ALL_TOOLKITS`; do
7297 if test "$has_toolkit_in_cache" != 1; then
7298 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7299 else
7300 var=DEFAULT_wxUSE_$toolkit
7301 fi
7302 eval "wxUSE_$toolkit=\$${var}"
7303 done
7304 fi
7305
7306 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7307
7308 case "${host}" in
7309 *-pc-os2_emx )
7310 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7311 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7312 LEX_STEM="lexyy"
7313 ;;
7314 *)
7315 PATH_IFS=':'
7316 LEX_STEM="lex.yy"
7317 ;;
7318 esac
7319
7320 case "$NUM_TOOLKITS" in
7321 1)
7322 ;;
7323 0)
7324 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7325 ;;
7326 *)
7327 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7328 esac
7329
7330 for toolkit in `echo $ALL_TOOLKITS`; do
7331 var=wxUSE_$toolkit
7332 eval "value=\$${var}"
7333 if test "x$value" != x; then
7334 cache_var=CACHE_$toolkit
7335 eval "cache=\$${cache_var}"
7336 if test "$cache" = 1; then
7337 echo "$var=$value" >> ${wx_arg_cache_file}
7338 fi
7339 if test "$value" = 1; then
7340 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7341 echo "$ac_t""$toolkit_echo" 1>&6
7342 fi
7343 fi
7344 done
7345
7346 else
7347 PATH_IFS=':'
7348 echo "$ac_t""base only" 1>&6
7349 fi
7350
7351
7352 cat > confcache <<\EOF
7353 # This file is a shell script that caches the results of configure
7354 # tests run on this system so they can be shared between configure
7355 # scripts and configure runs. It is not useful on other systems.
7356 # If it contains results you don't want to keep, you may remove or edit it.
7357 #
7358 # By default, configure uses ./config.cache as the cache file,
7359 # creating it if it does not exist already. You can give configure
7360 # the --cache-file=FILE option to use a different cache file; that is
7361 # what configure does when it calls configure scripts in
7362 # subdirectories, so they share the cache.
7363 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7364 # config.status only pays attention to the cache file if you give it the
7365 # --recheck option to rerun configure.
7366 #
7367 EOF
7368 # The following way of writing the cache mishandles newlines in values,
7369 # but we know of no workaround that is simple, portable, and efficient.
7370 # So, don't put newlines in cache variables' values.
7371 # Ultrix sh set writes to stderr and can't be redirected directly,
7372 # and sets the high bit in the cache file unless we assign to the vars.
7373 (set) 2>&1 |
7374 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7375 *ac_space=\ *)
7376 # `set' does not quote correctly, so add quotes (double-quote substitution
7377 # turns \\\\ into \\, and sed turns \\ into \).
7378 sed -n \
7379 -e "s/'/'\\\\''/g" \
7380 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7381 ;;
7382 *)
7383 # `set' quotes correctly as required by POSIX, so do not add quotes.
7384 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7385 ;;
7386 esac >> confcache
7387 if cmp -s $cache_file confcache; then
7388 :
7389 else
7390 if test -w $cache_file; then
7391 echo "updating cache $cache_file"
7392 cat confcache > $cache_file
7393 else
7394 echo "not updating unwritable cache $cache_file"
7395 fi
7396 fi
7397 rm -f confcache
7398
7399
7400 if test "$build" != "$host" ; then
7401 CC=$host_alias-gcc
7402 CXX=$host_alias-c++
7403 AR=$host_alias-ar
7404 RANLIB=$host_alias-ranlib
7405 DLLTOOL=$host_alias-dlltool
7406 RESCOMP=$host_alias-windres
7407 LD=$host_alias-ld
7408 NM=$host_alias-nm
7409 STRIP=$host_alias-strip
7410 fi
7411
7412 # Extract the first word of "gcc", so it can be a program name with args.
7413 set dummy gcc; ac_word=$2
7414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7415 echo "configure:7416: checking for $ac_word" >&5
7416 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7418 else
7419 if test -n "$CC"; then
7420 ac_cv_prog_CC="$CC" # Let the user override the test.
7421 else
7422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7423 ac_dummy="$PATH"
7424 for ac_dir in $ac_dummy; do
7425 test -z "$ac_dir" && ac_dir=.
7426 if test -f $ac_dir/$ac_word; then
7427 ac_cv_prog_CC="gcc"
7428 break
7429 fi
7430 done
7431 IFS="$ac_save_ifs"
7432 fi
7433 fi
7434 CC="$ac_cv_prog_CC"
7435 if test -n "$CC"; then
7436 echo "$ac_t""$CC" 1>&6
7437 else
7438 echo "$ac_t""no" 1>&6
7439 fi
7440
7441 if test -z "$CC"; then
7442 # Extract the first word of "cc", so it can be a program name with args.
7443 set dummy cc; ac_word=$2
7444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7445 echo "configure:7446: checking for $ac_word" >&5
7446 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7447 echo $ac_n "(cached) $ac_c" 1>&6
7448 else
7449 if test -n "$CC"; then
7450 ac_cv_prog_CC="$CC" # Let the user override the test.
7451 else
7452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7453 ac_prog_rejected=no
7454 ac_dummy="$PATH"
7455 for ac_dir in $ac_dummy; do
7456 test -z "$ac_dir" && ac_dir=.
7457 if test -f $ac_dir/$ac_word; then
7458 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7459 ac_prog_rejected=yes
7460 continue
7461 fi
7462 ac_cv_prog_CC="cc"
7463 break
7464 fi
7465 done
7466 IFS="$ac_save_ifs"
7467 if test $ac_prog_rejected = yes; then
7468 # We found a bogon in the path, so make sure we never use it.
7469 set dummy $ac_cv_prog_CC
7470 shift
7471 if test $# -gt 0; then
7472 # We chose a different compiler from the bogus one.
7473 # However, it has the same basename, so the bogon will be chosen
7474 # first if we set CC to just the basename; use the full file name.
7475 shift
7476 set dummy "$ac_dir/$ac_word" "$@"
7477 shift
7478 ac_cv_prog_CC="$@"
7479 fi
7480 fi
7481 fi
7482 fi
7483 CC="$ac_cv_prog_CC"
7484 if test -n "$CC"; then
7485 echo "$ac_t""$CC" 1>&6
7486 else
7487 echo "$ac_t""no" 1>&6
7488 fi
7489
7490 if test -z "$CC"; then
7491 case "`uname -s`" in
7492 *win32* | *WIN32*)
7493 # Extract the first word of "cl", so it can be a program name with args.
7494 set dummy cl; ac_word=$2
7495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7496 echo "configure:7497: checking for $ac_word" >&5
7497 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7499 else
7500 if test -n "$CC"; then
7501 ac_cv_prog_CC="$CC" # Let the user override the test.
7502 else
7503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7504 ac_dummy="$PATH"
7505 for ac_dir in $ac_dummy; do
7506 test -z "$ac_dir" && ac_dir=.
7507 if test -f $ac_dir/$ac_word; then
7508 ac_cv_prog_CC="cl"
7509 break
7510 fi
7511 done
7512 IFS="$ac_save_ifs"
7513 fi
7514 fi
7515 CC="$ac_cv_prog_CC"
7516 if test -n "$CC"; then
7517 echo "$ac_t""$CC" 1>&6
7518 else
7519 echo "$ac_t""no" 1>&6
7520 fi
7521 ;;
7522 esac
7523 fi
7524 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7525 fi
7526
7527 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7528 echo "configure:7529: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7529
7530 ac_ext=c
7531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7535 cross_compiling=$ac_cv_prog_cc_cross
7536
7537 cat > conftest.$ac_ext << EOF
7538
7539 #line 7540 "configure"
7540 #include "confdefs.h"
7541
7542 main(){return(0);}
7543 EOF
7544 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7545 ac_cv_prog_cc_works=yes
7546 # If we can't run a trivial program, we are probably using a cross compiler.
7547 if (./conftest; exit) 2>/dev/null; then
7548 ac_cv_prog_cc_cross=no
7549 else
7550 ac_cv_prog_cc_cross=yes
7551 fi
7552 else
7553 echo "configure: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 ac_cv_prog_cc_works=no
7556 fi
7557 rm -fr conftest*
7558 ac_ext=c
7559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7560 ac_cpp='$CPP $CPPFLAGS'
7561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7563 cross_compiling=$ac_cv_prog_cc_cross
7564
7565 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7566 if test $ac_cv_prog_cc_works = no; then
7567 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7568 fi
7569 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7570 echo "configure:7571: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7571 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7572 cross_compiling=$ac_cv_prog_cc_cross
7573
7574 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7575 echo "configure:7576: checking whether we are using GNU C" >&5
7576 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7578 else
7579 cat > conftest.c <<EOF
7580 #ifdef __GNUC__
7581 yes;
7582 #endif
7583 EOF
7584 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7585 ac_cv_prog_gcc=yes
7586 else
7587 ac_cv_prog_gcc=no
7588 fi
7589 fi
7590
7591 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7592
7593 if test $ac_cv_prog_gcc = yes; then
7594 GCC=yes
7595 else
7596 GCC=
7597 fi
7598
7599 ac_test_CFLAGS="${CFLAGS+set}"
7600 ac_save_CFLAGS="$CFLAGS"
7601 CFLAGS=
7602 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7603 echo "configure:7604: checking whether ${CC-cc} accepts -g" >&5
7604 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7606 else
7607 echo 'void f(){}' > conftest.c
7608 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7609 ac_cv_prog_cc_g=yes
7610 else
7611 ac_cv_prog_cc_g=no
7612 fi
7613 rm -f conftest*
7614
7615 fi
7616
7617 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7618 if test "$ac_test_CFLAGS" = set; then
7619 CFLAGS="$ac_save_CFLAGS"
7620 elif test $ac_cv_prog_cc_g = yes; then
7621 if test "$GCC" = yes; then
7622 CFLAGS="-g -O2"
7623 else
7624 CFLAGS="-g"
7625 fi
7626 else
7627 if test "$GCC" = yes; then
7628 CFLAGS="-O2"
7629 else
7630 CFLAGS=
7631 fi
7632 fi
7633
7634
7635 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7636
7637 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7638 echo "configure:7639: checking how to run the C preprocessor" >&5
7639 # On Suns, sometimes $CPP names a directory.
7640 if test -n "$CPP" && test -d "$CPP"; then
7641 CPP=
7642 fi
7643 if test -z "$CPP"; then
7644 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7646 else
7647 # This must be in double quotes, not single quotes, because CPP may get
7648 # substituted into the Makefile and "${CC-cc}" will confuse make.
7649 CPP="${CC-cc} -E"
7650 # On the NeXT, cc -E runs the code through the compiler's parser,
7651 # not just through cpp.
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 #include <assert.h>
7656 Syntax Error
7657 EOF
7658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7659 { (eval echo configure:7660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7661 if test -z "$ac_err"; then
7662 :
7663 else
7664 echo "$ac_err" >&5
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 rm -rf conftest*
7668 CPP="${CC-cc} -E -traditional-cpp"
7669 cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 #include <assert.h>
7673 Syntax Error
7674 EOF
7675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7676 { (eval echo configure:7677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7678 if test -z "$ac_err"; then
7679 :
7680 else
7681 echo "$ac_err" >&5
7682 echo "configure: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 rm -rf conftest*
7685 CPP="${CC-cc} -nologo -E"
7686 cat > conftest.$ac_ext <<EOF
7687 #line 7688 "configure"
7688 #include "confdefs.h"
7689 #include <assert.h>
7690 Syntax Error
7691 EOF
7692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7693 { (eval echo configure:7694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7695 if test -z "$ac_err"; then
7696 :
7697 else
7698 echo "$ac_err" >&5
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7701 rm -rf conftest*
7702 CPP=/lib/cpp
7703 fi
7704 rm -f conftest*
7705 fi
7706 rm -f conftest*
7707 fi
7708 rm -f conftest*
7709 ac_cv_prog_CPP="$CPP"
7710 fi
7711 CPP="$ac_cv_prog_CPP"
7712 else
7713 ac_cv_prog_CPP="$CPP"
7714 fi
7715 echo "$ac_t""$CPP" 1>&6
7716
7717
7718 if test $ac_cv_prog_gcc = yes; then
7719 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7720 echo "configure:7721: checking whether ${CC-cc} needs -traditional" >&5
7721 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7723 else
7724 ac_pattern="Autoconf.*'x'"
7725 cat > conftest.$ac_ext <<EOF
7726 #line 7727 "configure"
7727 #include "confdefs.h"
7728 #include <sgtty.h>
7729 Autoconf TIOCGETP
7730 EOF
7731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732 egrep "$ac_pattern" >/dev/null 2>&1; then
7733 rm -rf conftest*
7734 ac_cv_prog_gcc_traditional=yes
7735 else
7736 rm -rf conftest*
7737 ac_cv_prog_gcc_traditional=no
7738 fi
7739 rm -f conftest*
7740
7741
7742 if test $ac_cv_prog_gcc_traditional = no; then
7743 cat > conftest.$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7746 #include <termio.h>
7747 Autoconf TCGETA
7748 EOF
7749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750 egrep "$ac_pattern" >/dev/null 2>&1; then
7751 rm -rf conftest*
7752 ac_cv_prog_gcc_traditional=yes
7753 fi
7754 rm -f conftest*
7755
7756 fi
7757 fi
7758
7759 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
7760 if test $ac_cv_prog_gcc_traditional = yes; then
7761 CC="$CC -traditional"
7762 fi
7763 fi
7764
7765
7766
7767 ac_ext=C
7768 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7769 ac_cpp='$CXXCPP $CPPFLAGS'
7770 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7771 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7772 cross_compiling=$ac_cv_prog_cxx_cross
7773
7774
7775 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7776 do
7777 # Extract the first word of "$ac_prog", so it can be a program name with args.
7778 set dummy $ac_prog; ac_word=$2
7779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7780 echo "configure:7781: checking for $ac_word" >&5
7781 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
7783 else
7784 if test -n "$CXX"; then
7785 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7786 else
7787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7788 ac_dummy="$PATH"
7789 for ac_dir in $ac_dummy; do
7790 test -z "$ac_dir" && ac_dir=.
7791 if test -f $ac_dir/$ac_word; then
7792 ac_cv_prog_CXX="$ac_prog"
7793 break
7794 fi
7795 done
7796 IFS="$ac_save_ifs"
7797 fi
7798 fi
7799 CXX="$ac_cv_prog_CXX"
7800 if test -n "$CXX"; then
7801 echo "$ac_t""$CXX" 1>&6
7802 else
7803 echo "$ac_t""no" 1>&6
7804 fi
7805
7806 test -n "$CXX" && break
7807 done
7808 test -n "$CXX" || CXX="gcc"
7809
7810
7811 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7812 echo "configure:7813: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
7813
7814 ac_ext=C
7815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7816 ac_cpp='$CXXCPP $CPPFLAGS'
7817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7819 cross_compiling=$ac_cv_prog_cxx_cross
7820
7821 cat > conftest.$ac_ext << EOF
7822
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825
7826 int main(){return(0);}
7827 EOF
7828 if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7829 ac_cv_prog_cxx_works=yes
7830 # If we can't run a trivial program, we are probably using a cross compiler.
7831 if (./conftest; exit) 2>/dev/null; then
7832 ac_cv_prog_cxx_cross=no
7833 else
7834 ac_cv_prog_cxx_cross=yes
7835 fi
7836 else
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 ac_cv_prog_cxx_works=no
7840 fi
7841 rm -fr conftest*
7842 ac_ext=C
7843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7844 ac_cpp='$CXXCPP $CPPFLAGS'
7845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7847 cross_compiling=$ac_cv_prog_cxx_cross
7848
7849 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7850 if test $ac_cv_prog_cxx_works = no; then
7851 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7852 fi
7853 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7854 echo "configure:7855: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
7855 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7856 cross_compiling=$ac_cv_prog_cxx_cross
7857
7858 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7859 echo "configure:7860: checking whether we are using GNU C++" >&5
7860 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7862 else
7863 cat > conftest.C <<EOF
7864 #ifdef __GNUC__
7865 yes;
7866 #endif
7867 EOF
7868 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7869 ac_cv_prog_gxx=yes
7870 else
7871 ac_cv_prog_gxx=no
7872 fi
7873 fi
7874
7875 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
7876
7877 if test $ac_cv_prog_gxx = yes; then
7878 GXX=yes
7879 else
7880 GXX=
7881 fi
7882
7883 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7884 ac_save_CXXFLAGS="$CXXFLAGS"
7885 CXXFLAGS=
7886 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7887 echo "configure:7888: checking whether ${CXX-g++} accepts -g" >&5
7888 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7890 else
7891 echo 'void f(){}' > conftest.cc
7892 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
7893 ac_cv_prog_cxx_g=yes
7894 else
7895 ac_cv_prog_cxx_g=no
7896 fi
7897 rm -f conftest*
7898
7899 fi
7900
7901 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
7902 if test "$ac_test_CXXFLAGS" = set; then
7903 CXXFLAGS="$ac_save_CXXFLAGS"
7904 elif test $ac_cv_prog_cxx_g = yes; then
7905 if test "$GXX" = yes; then
7906 CXXFLAGS="-g -O2"
7907 else
7908 CXXFLAGS="-g"
7909 fi
7910 else
7911 if test "$GXX" = yes; then
7912 CXXFLAGS="-O2"
7913 else
7914 CXXFLAGS=
7915 fi
7916 fi
7917
7918
7919 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7920 echo "configure:7921: checking how to run the C++ preprocessor" >&5
7921 if test -z "$CXXCPP"; then
7922 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7924 else
7925 ac_ext=C
7926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7927 ac_cpp='$CXXCPP $CPPFLAGS'
7928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7930 cross_compiling=$ac_cv_prog_cxx_cross
7931 CXXCPP="${CXX-g++} -E"
7932 cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935 #include <stdlib.h>
7936 EOF
7937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7938 { (eval echo configure:7939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7940 if test -z "$ac_err"; then
7941 :
7942 else
7943 echo "$ac_err" >&5
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7946 rm -rf conftest*
7947 CXXCPP=/lib/cpp
7948 fi
7949 rm -f conftest*
7950 ac_cv_prog_CXXCPP="$CXXCPP"
7951 ac_ext=C
7952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7953 ac_cpp='$CXXCPP $CPPFLAGS'
7954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7956 cross_compiling=$ac_cv_prog_cxx_cross
7957 fi
7958 fi
7959 CXXCPP="$ac_cv_prog_CXXCPP"
7960 echo "$ac_t""$CXXCPP" 1>&6
7961
7962
7963 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
7964
7965 ac_ext=c
7966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7970 cross_compiling=$ac_cv_prog_cc_cross
7971
7972
7973 # Extract the first word of "ranlib", so it can be a program name with args.
7974 set dummy ranlib; ac_word=$2
7975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7976 echo "configure:7977: checking for $ac_word" >&5
7977 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7978 echo $ac_n "(cached) $ac_c" 1>&6
7979 else
7980 if test -n "$RANLIB"; then
7981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7982 else
7983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7984 ac_dummy="$PATH"
7985 for ac_dir in $ac_dummy; do
7986 test -z "$ac_dir" && ac_dir=.
7987 if test -f $ac_dir/$ac_word; then
7988 ac_cv_prog_RANLIB="ranlib"
7989 break
7990 fi
7991 done
7992 IFS="$ac_save_ifs"
7993 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
7994 fi
7995 fi
7996 RANLIB="$ac_cv_prog_RANLIB"
7997 if test -n "$RANLIB"; then
7998 echo "$ac_t""$RANLIB" 1>&6
7999 else
8000 echo "$ac_t""no" 1>&6
8001 fi
8002
8003
8004 # Extract the first word of "ar", so it can be a program name with args.
8005 set dummy ar; ac_word=$2
8006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8007 echo "configure:8008: checking for $ac_word" >&5
8008 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8010 else
8011 if test -n "$AR"; then
8012 ac_cv_prog_AR="$AR" # Let the user override the test.
8013 else
8014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8015 ac_dummy="$PATH"
8016 for ac_dir in $ac_dummy; do
8017 test -z "$ac_dir" && ac_dir=.
8018 if test -f $ac_dir/$ac_word; then
8019 ac_cv_prog_AR="ar"
8020 break
8021 fi
8022 done
8023 IFS="$ac_save_ifs"
8024 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8025 fi
8026 fi
8027 AR="$ac_cv_prog_AR"
8028 if test -n "$AR"; then
8029 echo "$ac_t""$AR" 1>&6
8030 else
8031 echo "$ac_t""no" 1>&6
8032 fi
8033
8034
8035 # Find a good install program. We prefer a C program (faster),
8036 # so one script is as good as another. But avoid the broken or
8037 # incompatible versions:
8038 # SysV /etc/install, /usr/sbin/install
8039 # SunOS /usr/etc/install
8040 # IRIX /sbin/install
8041 # AIX /bin/install
8042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8045 # ./install, which can be erroneously created by make from ./install.sh.
8046 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8047 echo "configure:8048: checking for a BSD compatible install" >&5
8048 if test -z "$INSTALL"; then
8049 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8051 else
8052 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8053 for ac_dir in $PATH; do
8054 # Account for people who put trailing slashes in PATH elements.
8055 case "$ac_dir/" in
8056 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8057 *)
8058 # OSF1 and SCO ODT 3.0 have their own names for install.
8059 # Don't use installbsd from OSF since it installs stuff as root
8060 # by default.
8061 for ac_prog in ginstall scoinst install; do
8062 if test -f $ac_dir/$ac_prog; then
8063 if test $ac_prog = install &&
8064 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8065 # AIX install. It has an incompatible calling convention.
8066 :
8067 else
8068 ac_cv_path_install="$ac_dir/$ac_prog -c"
8069 break 2
8070 fi
8071 fi
8072 done
8073 ;;
8074 esac
8075 done
8076 IFS="$ac_save_IFS"
8077
8078 fi
8079 if test "${ac_cv_path_install+set}" = set; then
8080 INSTALL="$ac_cv_path_install"
8081 else
8082 # As a last resort, use the slow shell script. We don't cache a
8083 # path for INSTALL within a source directory, because that will
8084 # break other packages using the cache if that directory is
8085 # removed, or if the path is relative.
8086 INSTALL="$ac_install_sh"
8087 fi
8088 fi
8089 echo "$ac_t""$INSTALL" 1>&6
8090
8091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8092 # It thinks the first close brace ends the variable substitution.
8093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8094
8095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8096
8097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8098
8099
8100 # Extract the first word of "strip", so it can be a program name with args.
8101 set dummy strip; ac_word=$2
8102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8103 echo "configure:8104: checking for $ac_word" >&5
8104 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8106 else
8107 if test -n "$STRIP"; then
8108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8109 else
8110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8111 ac_dummy="$PATH"
8112 for ac_dir in $ac_dummy; do
8113 test -z "$ac_dir" && ac_dir=.
8114 if test -f $ac_dir/$ac_word; then
8115 ac_cv_prog_STRIP="strip"
8116 break
8117 fi
8118 done
8119 IFS="$ac_save_ifs"
8120 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8121 fi
8122 fi
8123 STRIP="$ac_cv_prog_STRIP"
8124 if test -n "$STRIP"; then
8125 echo "$ac_t""$STRIP" 1>&6
8126 else
8127 echo "$ac_t""no" 1>&6
8128 fi
8129
8130
8131 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8132 echo "configure:8133: checking make for VPATH support" >&5
8133 cat - << EOF > confMake
8134 check : file
8135 cp \$? \$@
8136 cp \$? final_file
8137 EOF
8138
8139 if test ! -d sub ; then
8140 mkdir sub
8141 fi
8142 echo dummy > sub/file
8143 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8144 RESULT=$?
8145 rm -f sub/file check final_file confMake
8146 rmdir sub
8147 if test "$RESULT" = 0; then
8148 echo "$ac_t""yes" 1>&6
8149 else
8150 echo "$ac_t""no" 1>&6
8151 { echo "configure: error:
8152 You need a make-utility that is able to use the variable
8153 VPATH correctly.
8154 If your version of make does not support VPATH correctly,
8155 please install GNU-make (possibly as gmake), and start
8156 configure with the following command:
8157 export MAKE=gmake; ./configure for sh-type shells
8158 setenv MAKE gmake; ./configure for csh-type shells
8159 Also please do remember to use gmake in this case every time
8160 you are trying to compile.
8161 " 1>&2; exit 1; }
8162 fi
8163
8164 for ac_prog in 'bison -y' byacc
8165 do
8166 # Extract the first word of "$ac_prog", so it can be a program name with args.
8167 set dummy $ac_prog; ac_word=$2
8168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8169 echo "configure:8170: checking for $ac_word" >&5
8170 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8172 else
8173 if test -n "$YACC"; then
8174 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8175 else
8176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8177 ac_dummy="$PATH"
8178 for ac_dir in $ac_dummy; do
8179 test -z "$ac_dir" && ac_dir=.
8180 if test -f $ac_dir/$ac_word; then
8181 ac_cv_prog_YACC="$ac_prog"
8182 break
8183 fi
8184 done
8185 IFS="$ac_save_ifs"
8186 fi
8187 fi
8188 YACC="$ac_cv_prog_YACC"
8189 if test -n "$YACC"; then
8190 echo "$ac_t""$YACC" 1>&6
8191 else
8192 echo "$ac_t""no" 1>&6
8193 fi
8194
8195 test -n "$YACC" && break
8196 done
8197 test -n "$YACC" || YACC="yacc"
8198
8199
8200 # Extract the first word of "flex", so it can be a program name with args.
8201 set dummy flex; ac_word=$2
8202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8203 echo "configure:8204: checking for $ac_word" >&5
8204 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8206 else
8207 if test -n "$LEX"; then
8208 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8209 else
8210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8211 ac_dummy="$PATH"
8212 for ac_dir in $ac_dummy; do
8213 test -z "$ac_dir" && ac_dir=.
8214 if test -f $ac_dir/$ac_word; then
8215 ac_cv_prog_LEX="flex"
8216 break
8217 fi
8218 done
8219 IFS="$ac_save_ifs"
8220 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8221 fi
8222 fi
8223 LEX="$ac_cv_prog_LEX"
8224 if test -n "$LEX"; then
8225 echo "$ac_t""$LEX" 1>&6
8226 else
8227 echo "$ac_t""no" 1>&6
8228 fi
8229
8230 if test -z "$LEXLIB"
8231 then
8232 case "$LEX" in
8233 flex*) ac_lib=fl ;;
8234 *) ac_lib=l ;;
8235 esac
8236 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8237 echo "configure:8238: checking for yywrap in -l$ac_lib" >&5
8238 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8241 else
8242 ac_save_LIBS="$LIBS"
8243 LIBS="-l$ac_lib $LIBS"
8244 cat > conftest.$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8247 /* Override any gcc2 internal prototype to avoid an error. */
8248 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */
8250 char yywrap();
8251
8252 int main() {
8253 yywrap()
8254 ; return 0; }
8255 EOF
8256 if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8257 rm -rf conftest*
8258 eval "ac_cv_lib_$ac_lib_var=yes"
8259 else
8260 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 rm -rf conftest*
8263 eval "ac_cv_lib_$ac_lib_var=no"
8264 fi
8265 rm -f conftest*
8266 LIBS="$ac_save_LIBS"
8267
8268 fi
8269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8270 echo "$ac_t""yes" 1>&6
8271 LEXLIB="-l$ac_lib"
8272 else
8273 echo "$ac_t""no" 1>&6
8274 fi
8275
8276 fi
8277
8278
8279 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8280 echo "configure:8281: checking whether ln -s works" >&5
8281 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
8283 else
8284 rm -f conftestdata
8285 if ln -s X conftestdata 2>/dev/null
8286 then
8287 rm -f conftestdata
8288 ac_cv_prog_LN_S="ln -s"
8289 else
8290 ac_cv_prog_LN_S=ln
8291 fi
8292 fi
8293 LN_S="$ac_cv_prog_LN_S"
8294 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8295 echo "$ac_t""yes" 1>&6
8296 else
8297 echo "$ac_t""no" 1>&6
8298 fi
8299
8300
8301
8302 SEARCH_INCLUDE="\
8303 /usr/local/include \
8304 \
8305 /usr/Motif-1.2/include \
8306 /usr/Motif-2.1/include \
8307 \
8308 /usr/include/Motif1.2 \
8309 /opt/xpm/include/X11 \
8310 /opt/GBxpm/include/ \
8311 /opt/GBxpm/X11/include/ \
8312 \
8313 /usr/Motif1.2/include \
8314 /usr/dt/include \
8315 /usr/openwin/include \
8316 \
8317 /usr/include/Xm \
8318 \
8319 /usr/X11R6/include \
8320 /usr/X11R6.4/include \
8321 /usr/X11R5/include \
8322 /usr/X11R4/include \
8323 \
8324 /usr/include/X11R6 \
8325 /usr/include/X11R5 \
8326 /usr/include/X11R4 \
8327 \
8328 /usr/local/X11R6/include \
8329 /usr/local/X11R5/include \
8330 /usr/local/X11R4/include \
8331 \
8332 /usr/local/include/X11R6 \
8333 /usr/local/include/X11R5 \
8334 /usr/local/include/X11R4 \
8335 \
8336 /usr/X11/include \
8337 /usr/include/X11 \
8338 /usr/local/X11/include \
8339 /usr/local/include/X11 \
8340 \
8341 /usr/X386/include \
8342 /usr/x386/include \
8343 /usr/XFree86/include/X11 \
8344 \
8345 X:/XFree86/include \
8346 X:/XFree86/include/X11 \
8347 \
8348 /usr/include/gtk \
8349 /usr/local/include/gtk \
8350 /usr/include/glib \
8351 /usr/local/include/glib \
8352 \
8353 /usr/include/qt \
8354 /usr/local/include/qt \
8355 \
8356 /usr/include/windows \
8357 /usr/include/wine \
8358 /usr/local/include/wine \
8359 \
8360 /usr/unsupported/include \
8361 /usr/athena/include \
8362 /usr/local/x11r5/include \
8363 /usr/lpp/Xamples/include \
8364 \
8365 /usr/openwin/share/include \
8366 \
8367 /usr/include"
8368
8369 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8370
8371
8372 cat > confcache <<\EOF
8373 # This file is a shell script that caches the results of configure
8374 # tests run on this system so they can be shared between configure
8375 # scripts and configure runs. It is not useful on other systems.
8376 # If it contains results you don't want to keep, you may remove or edit it.
8377 #
8378 # By default, configure uses ./config.cache as the cache file,
8379 # creating it if it does not exist already. You can give configure
8380 # the --cache-file=FILE option to use a different cache file; that is
8381 # what configure does when it calls configure scripts in
8382 # subdirectories, so they share the cache.
8383 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8384 # config.status only pays attention to the cache file if you give it the
8385 # --recheck option to rerun configure.
8386 #
8387 EOF
8388 # The following way of writing the cache mishandles newlines in values,
8389 # but we know of no workaround that is simple, portable, and efficient.
8390 # So, don't put newlines in cache variables' values.
8391 # Ultrix sh set writes to stderr and can't be redirected directly,
8392 # and sets the high bit in the cache file unless we assign to the vars.
8393 (set) 2>&1 |
8394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8395 *ac_space=\ *)
8396 # `set' does not quote correctly, so add quotes (double-quote substitution
8397 # turns \\\\ into \\, and sed turns \\ into \).
8398 sed -n \
8399 -e "s/'/'\\\\''/g" \
8400 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8401 ;;
8402 *)
8403 # `set' quotes correctly as required by POSIX, so do not add quotes.
8404 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8405 ;;
8406 esac >> confcache
8407 if cmp -s $cache_file confcache; then
8408 :
8409 else
8410 if test -w $cache_file; then
8411 echo "updating cache $cache_file"
8412 cat confcache > $cache_file
8413 else
8414 echo "not updating unwritable cache $cache_file"
8415 fi
8416 fi
8417 rm -f confcache
8418
8419
8420
8421 AFMINSTALL=
8422
8423 if test "$wxUSE_GUI" = "yes"; then
8424 USE_GUI=1
8425
8426 TOOLKIT=
8427 TOOLKIT_INCLUDE=
8428
8429 GUI_TK_LIBRARY=
8430 GUI_TK_LINK=
8431
8432 WXGTK12=
8433 WXGTK127=
8434 WXGTK20=
8435
8436 WXWINE=
8437
8438 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8439 if test "$cross_compiling" = "yes" ; then
8440 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8441 else
8442 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8443 echo "configure:8444: checking for Windows headers" >&5
8444
8445 ac_find_includes=
8446 for ac_dir in $SEARCH_INCLUDE;
8447 do
8448 if test -f "$ac_dir/windows.h"; then
8449 ac_find_includes=$ac_dir
8450 break
8451 fi
8452 done
8453
8454 if test "$ac_find_includes" != "" ; then
8455 echo "$ac_t""found $ac_find_includes" 1>&6
8456 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8457 else
8458 echo "$ac_t""no" 1>&6
8459 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8460 fi
8461 fi
8462
8463 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8464 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
8465
8466 if test "$wxUSE_ODBC" = "yes" ; then
8467 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8468 fi
8469
8470 if test "$wxUSE_MINGW" = 1; then
8471 LDFLAGS="$LDFLAGS -mwindows"
8472 fi
8473
8474 TOOLKIT=MSW
8475 GUIDIST=MSW_DIST
8476
8477 RCINCSWITCH="--include-dir"
8478 RCDEFSWITCH="--define"
8479 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8480 RCINPUTSWITCH="-i"
8481 RCOUTPUTSWITCH="-o"
8482 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8483
8484 RESPROGRAM="\$(RES_PROGRAM)"
8485 fi
8486
8487 if test "$wxUSE_GTK" = 1; then
8488 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8489 echo "configure:8490: checking for GTK+ version" >&5
8490
8491 gtk_version_cached=1
8492 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8494 else
8495
8496 gtk_version_cached=0
8497 echo "$ac_t""""" 1>&6
8498
8499 wx_cv_lib_gtk=
8500 if test "x$wxUSE_GTK2" = "xyes"; then
8501 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8502 if test "${with_gtk_prefix+set}" = set; then
8503 withval="$with_gtk_prefix"
8504 gtk_config_prefix="$withval"
8505 else
8506 gtk_config_prefix=""
8507 fi
8508
8509 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8510 if test "${with_gtk_exec_prefix+set}" = set; then
8511 withval="$with_gtk_exec_prefix"
8512 gtk_config_exec_prefix="$withval"
8513 else
8514 gtk_config_exec_prefix=""
8515 fi
8516
8517 # Check whether --enable-gtktest or --disable-gtktest was given.
8518 if test "${enable_gtktest+set}" = set; then
8519 enableval="$enable_gtktest"
8520 :
8521 else
8522 enable_gtktest=yes
8523 fi
8524
8525
8526 for module in .
8527 do
8528 case "$module" in
8529 gthread)
8530 gtk_config_args="$gtk_config_args gthread"
8531 ;;
8532 esac
8533 done
8534
8535 if test x$gtk_config_exec_prefix != x ; then
8536 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8537 if test x${GTK_CONFIG_2_0+set} != xset ; then
8538 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8539 fi
8540 fi
8541 if test x$gtk_config_prefix != x ; then
8542 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8543 if test x${GTK_CONFIG_2_0+set} != xset ; then
8544 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8545 fi
8546 fi
8547
8548 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8549 set dummy gtk-config-2.0; ac_word=$2
8550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8551 echo "configure:8552: checking for $ac_word" >&5
8552 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8554 else
8555 case "$GTK_CONFIG_2_0" in
8556 /*)
8557 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8558 ;;
8559 ?:/*)
8560 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8561 ;;
8562 *)
8563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8564 ac_dummy="$PATH"
8565 for ac_dir in $ac_dummy; do
8566 test -z "$ac_dir" && ac_dir=.
8567 if test -f $ac_dir/$ac_word; then
8568 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8569 break
8570 fi
8571 done
8572 IFS="$ac_save_ifs"
8573 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8574 ;;
8575 esac
8576 fi
8577 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8578 if test -n "$GTK_CONFIG_2_0"; then
8579 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8580 else
8581 echo "$ac_t""no" 1>&6
8582 fi
8583
8584 min_gtk_version=1.3.1
8585 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8586 echo "configure:8587: checking for GTK - version >= $min_gtk_version" >&5
8587 no_gtk=""
8588 if test "$GTK_CONFIG_2_0" = "no" ; then
8589 no_gtk=yes
8590 else
8591 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8592 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8593 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8595 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8597 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8599 if test "x$enable_gtktest" = "xyes" ; then
8600 ac_save_CFLAGS="$CFLAGS"
8601 ac_save_LIBS="$LIBS"
8602 CFLAGS="$CFLAGS $GTK_CFLAGS"
8603 LIBS="$GTK_LIBS $LIBS"
8604 rm -f conf.gtktest
8605 if test "$cross_compiling" = yes; then
8606 echo $ac_n "cross compiling; assumed OK... $ac_c"
8607 else
8608 cat > conftest.$ac_ext <<EOF
8609 #line 8610 "configure"
8610 #include "confdefs.h"
8611
8612 #include <gtk/gtk.h>
8613 #include <stdio.h>
8614 #include <stdlib.h>
8615
8616 int
8617 main ()
8618 {
8619 int major, minor, micro;
8620 char *tmp_version;
8621
8622 system ("touch conf.gtktest");
8623
8624 /* HP/UX 9 (%@#!) writes to sscanf strings */
8625 tmp_version = g_strdup("$min_gtk_version");
8626 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8627 printf("%s, bad version string\n", "$min_gtk_version");
8628 exit(1);
8629 }
8630
8631 if ((gtk_major_version != $gtk_config_major_version) ||
8632 (gtk_minor_version != $gtk_config_minor_version) ||
8633 (gtk_micro_version != $gtk_config_micro_version))
8634 {
8635 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8636 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8637 gtk_major_version, gtk_minor_version, gtk_micro_version);
8638 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8639 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8640 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8641 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8642 printf("*** required on your system.\n");
8643 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8644 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8645 printf("*** before re-running configure\n");
8646 }
8647 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8648 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8649 (gtk_minor_version != GTK_MINOR_VERSION) ||
8650 (gtk_micro_version != GTK_MICRO_VERSION))
8651 {
8652 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8653 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8654 printf("*** library (version %d.%d.%d)\n",
8655 gtk_major_version, gtk_minor_version, gtk_micro_version);
8656 }
8657 #endif /* defined (GTK_MAJOR_VERSION) ... */
8658 else
8659 {
8660 if ((gtk_major_version > major) ||
8661 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8662 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8663 {
8664 return 0;
8665 }
8666 else
8667 {
8668 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8669 gtk_major_version, gtk_minor_version, gtk_micro_version);
8670 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8671 major, minor, micro);
8672 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8673 printf("***\n");
8674 printf("*** If you have already installed a sufficiently new version, this error\n");
8675 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8676 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8677 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8678 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8679 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8680 printf("*** so that the correct libraries are found at run-time))\n");
8681 }
8682 }
8683 return 1;
8684 }
8685
8686 EOF
8687 if { (eval echo configure:8688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8688 then
8689 :
8690 else
8691 echo "configure: failed program was:" >&5
8692 cat conftest.$ac_ext >&5
8693 rm -fr conftest*
8694 no_gtk=yes
8695 fi
8696 rm -fr conftest*
8697 fi
8698
8699 CFLAGS="$ac_save_CFLAGS"
8700 LIBS="$ac_save_LIBS"
8701 fi
8702 fi
8703 if test "x$no_gtk" = x ; then
8704 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8705 wx_cv_lib_gtk=2.0
8706 else
8707 echo "$ac_t""no" 1>&6
8708 if test "$GTK_CONFIG_2_0" = "no" ; then
8709 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8710 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8711 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8712 echo "*** full path to gtk-config-2.0."
8713 else
8714 if test -f conf.gtktest ; then
8715 :
8716 else
8717 echo "*** Could not run GTK test program, checking why..."
8718 CFLAGS="$CFLAGS $GTK_CFLAGS"
8719 LIBS="$LIBS $GTK_LIBS"
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8723
8724 #include <gtk/gtk.h>
8725 #include <stdio.h>
8726
8727 int main() {
8728 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8729 ; return 0; }
8730 EOF
8731 if { (eval echo configure:8732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8732 rm -rf conftest*
8733 echo "*** The test program compiled, but did not run. This usually means"
8734 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8735 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8736 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8737 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8738 echo "*** is required on your system"
8739 echo "***"
8740 echo "*** If you have an old version installed, it is best to remove it, although"
8741 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8742 echo "***"
8743 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8744 echo "*** came with the system with the command"
8745 echo "***"
8746 echo "*** rpm --erase --nodeps gtk gtk-devel"
8747 else
8748 echo "configure: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8750 rm -rf conftest*
8751 echo "*** The test program failed to compile or link. See the file config.log for the"
8752 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8753 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8754 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
8755 fi
8756 rm -f conftest*
8757 CFLAGS="$ac_save_CFLAGS"
8758 LIBS="$ac_save_LIBS"
8759 fi
8760 fi
8761 GTK_CFLAGS=""
8762 GTK_LIBS=""
8763 gthread
8764 fi
8765
8766
8767 rm -f conf.gtktest
8768
8769 fi
8770
8771 if test -z "$wx_cv_lib_gtk"; then
8772
8773 if test x$gtk_config_exec_prefix != x ; then
8774 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8775 if test x${GTK_CONFIG+set} != xset ; then
8776 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8777 fi
8778 fi
8779 if test x$gtk_config_prefix != x ; then
8780 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8781 if test x${GTK_CONFIG+set} != xset ; then
8782 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8783 fi
8784 fi
8785
8786 # Extract the first word of "gtk-config", so it can be a program name with args.
8787 set dummy gtk-config; ac_word=$2
8788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8789 echo "configure:8790: checking for $ac_word" >&5
8790 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8791 echo $ac_n "(cached) $ac_c" 1>&6
8792 else
8793 case "$GTK_CONFIG" in
8794 /*)
8795 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8796 ;;
8797 ?:/*)
8798 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8799 ;;
8800 *)
8801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8802 ac_dummy="$PATH"
8803 for ac_dir in $ac_dummy; do
8804 test -z "$ac_dir" && ac_dir=.
8805 if test -f $ac_dir/$ac_word; then
8806 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8807 break
8808 fi
8809 done
8810 IFS="$ac_save_ifs"
8811 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8812 ;;
8813 esac
8814 fi
8815 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8816 if test -n "$GTK_CONFIG"; then
8817 echo "$ac_t""$GTK_CONFIG" 1>&6
8818 else
8819 echo "$ac_t""no" 1>&6
8820 fi
8821
8822 min_gtk_version=1.2.7
8823 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8824 echo "configure:8825: checking for GTK - version >= $min_gtk_version" >&5
8825 no_gtk=""
8826 if test "$GTK_CONFIG" != "no" ; then
8827 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8828 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8829 ac_save_CFLAGS="$CFLAGS"
8830 ac_save_LIBS="$LIBS"
8831 CFLAGS="$CFLAGS $GTK_CFLAGS"
8832 LIBS="$LIBS $GTK_LIBS"
8833 if test "$cross_compiling" = yes; then
8834 echo $ac_n "cross compiling; assumed OK... $ac_c"
8835 else
8836 cat > conftest.$ac_ext <<EOF
8837 #line 8838 "configure"
8838 #include "confdefs.h"
8839
8840 #include <gtk/gtk.h>
8841 #include <gtk/gtkfeatures.h>
8842 #include <stdio.h>
8843 #include <stdlib.h>
8844
8845 int
8846 main ()
8847 {
8848 int major, minor, micro;
8849
8850 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8851 printf("%s, bad version string\n", "$min_gtk_version");
8852 exit(1);
8853 }
8854
8855 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8856 (GTK_MINOR_VERSION != gtk_minor_version) ||
8857 (GTK_MICRO_VERSION != gtk_micro_version)) {
8858 printf("Headers vs. library version mismatch!\n");
8859 exit(1);
8860 }
8861
8862 if (gtk_minor_version == 1) return FALSE;
8863
8864 return !((gtk_major_version > major) ||
8865 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8866 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8867 }
8868
8869 EOF
8870 if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8871 then
8872 :
8873 else
8874 echo "configure: failed program was:" >&5
8875 cat conftest.$ac_ext >&5
8876 rm -fr conftest*
8877 no_gtk=yes
8878 fi
8879 rm -fr conftest*
8880 fi
8881
8882 CFLAGS="$ac_save_CFLAGS"
8883 LIBS="$ac_save_LIBS"
8884 else
8885 no_gtk=yes
8886 fi
8887 if test "x$no_gtk" = x ; then
8888 echo "$ac_t""yes" 1>&6
8889 wx_cv_lib_gtk=1.2.7
8890 else
8891 echo "$ac_t""no" 1>&6
8892 GTK_CFLAGS=""
8893 GTK_LIBS=""
8894 :
8895 fi
8896
8897
8898
8899 fi
8900
8901 if test -z "$wx_cv_lib_gtk"; then
8902
8903 if test x$gtk_config_exec_prefix != x ; then
8904 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8905 if test x${GTK_CONFIG+set} != xset ; then
8906 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8907 fi
8908 fi
8909 if test x$gtk_config_prefix != x ; then
8910 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8911 if test x${GTK_CONFIG+set} != xset ; then
8912 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8913 fi
8914 fi
8915
8916 # Extract the first word of "gtk-config", so it can be a program name with args.
8917 set dummy gtk-config; ac_word=$2
8918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8919 echo "configure:8920: checking for $ac_word" >&5
8920 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922 else
8923 case "$GTK_CONFIG" in
8924 /*)
8925 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8926 ;;
8927 ?:/*)
8928 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8929 ;;
8930 *)
8931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8932 ac_dummy="$PATH"
8933 for ac_dir in $ac_dummy; do
8934 test -z "$ac_dir" && ac_dir=.
8935 if test -f $ac_dir/$ac_word; then
8936 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8937 break
8938 fi
8939 done
8940 IFS="$ac_save_ifs"
8941 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8942 ;;
8943 esac
8944 fi
8945 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8946 if test -n "$GTK_CONFIG"; then
8947 echo "$ac_t""$GTK_CONFIG" 1>&6
8948 else
8949 echo "$ac_t""no" 1>&6
8950 fi
8951
8952 min_gtk_version=1.2.3
8953 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8954 echo "configure:8955: checking for GTK - version >= $min_gtk_version" >&5
8955 no_gtk=""
8956 if test "$GTK_CONFIG" != "no" ; then
8957 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8958 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8959 ac_save_CFLAGS="$CFLAGS"
8960 ac_save_LIBS="$LIBS"
8961 CFLAGS="$CFLAGS $GTK_CFLAGS"
8962 LIBS="$LIBS $GTK_LIBS"
8963 if test "$cross_compiling" = yes; then
8964 echo $ac_n "cross compiling; assumed OK... $ac_c"
8965 else
8966 cat > conftest.$ac_ext <<EOF
8967 #line 8968 "configure"
8968 #include "confdefs.h"
8969
8970 #include <gtk/gtk.h>
8971 #include <gtk/gtkfeatures.h>
8972 #include <stdio.h>
8973 #include <stdlib.h>
8974
8975 int
8976 main ()
8977 {
8978 int major, minor, micro;
8979
8980 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8981 printf("%s, bad version string\n", "$min_gtk_version");
8982 exit(1);
8983 }
8984
8985 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8986 (GTK_MINOR_VERSION != gtk_minor_version) ||
8987 (GTK_MICRO_VERSION != gtk_micro_version)) {
8988 printf("Headers vs. library version mismatch!\n");
8989 exit(1);
8990 }
8991
8992 if (gtk_minor_version == 1) return FALSE;
8993
8994 return !((gtk_major_version > major) ||
8995 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8996 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8997 }
8998
8999 EOF
9000 if { (eval echo configure:9001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9001 then
9002 :
9003 else
9004 echo "configure: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9006 rm -fr conftest*
9007 no_gtk=yes
9008 fi
9009 rm -fr conftest*
9010 fi
9011
9012 CFLAGS="$ac_save_CFLAGS"
9013 LIBS="$ac_save_LIBS"
9014 else
9015 no_gtk=yes
9016 fi
9017 if test "x$no_gtk" = x ; then
9018 echo "$ac_t""yes" 1>&6
9019 wx_cv_lib_gtk=1.2.3
9020 else
9021 echo "$ac_t""no" 1>&6
9022 GTK_CFLAGS=""
9023 GTK_LIBS=""
9024 :
9025 fi
9026
9027
9028
9029 fi
9030
9031 if test -z "$wx_cv_lib_gtk"; then
9032 wx_cv_lib_gtk=none
9033 else
9034 wx_cv_cflags_gtk=$GTK_CFLAGS
9035 wx_cv_libs_gtk=$GTK_LIBS
9036 fi
9037
9038
9039 fi
9040
9041
9042 if test "$gtk_version_cached" = 1; then
9043 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9044 fi
9045
9046 case "$wx_cv_lib_gtk" in
9047 2.0) WXGTK20=1
9048 ;;
9049 1.2.7) WXGTK127=1
9050 ;;
9051 1.2.3) WXGTK12=1
9052 ;;
9053 *) { echo "configure: error:
9054 Please check that gtk-config is in path, the directory
9055 where GTK+ libraries are installed (returned by
9056 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9057 equivalent variable and GTK+ is version 1.2.3 or above.
9058 " 1>&2; exit 1; }
9059 ;;
9060 esac
9061
9062 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9063 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9064
9065 AFMINSTALL=afminstall
9066 TOOLKIT=GTK
9067 GUIDIST=GTK_DIST
9068
9069 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9070 echo "configure:9071: checking for gdk_im_open in -lgdk" >&5
9071 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9074 else
9075 ac_save_LIBS="$LIBS"
9076 LIBS="-lgdk $LIBS"
9077 cat > conftest.$ac_ext <<EOF
9078 #line 9079 "configure"
9079 #include "confdefs.h"
9080 /* Override any gcc2 internal prototype to avoid an error. */
9081 /* We use char because int might match the return type of a gcc2
9082 builtin and then its argument prototype would still apply. */
9083 char gdk_im_open();
9084
9085 int main() {
9086 gdk_im_open()
9087 ; return 0; }
9088 EOF
9089 if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9090 rm -rf conftest*
9091 eval "ac_cv_lib_$ac_lib_var=yes"
9092 else
9093 echo "configure: failed program was:" >&5
9094 cat conftest.$ac_ext >&5
9095 rm -rf conftest*
9096 eval "ac_cv_lib_$ac_lib_var=no"
9097 fi
9098 rm -f conftest*
9099 LIBS="$ac_save_LIBS"
9100
9101 fi
9102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6
9104 cat >> confdefs.h <<\EOF
9105 #define HAVE_XIM 1
9106 EOF
9107
9108 else
9109 echo "$ac_t""no" 1>&6
9110 fi
9111
9112 fi
9113
9114 if test "$wxUSE_MGL" = 1; then
9115
9116 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9117 echo "configure:9118: checking for SciTech MGL library" >&5
9118 if test "x$MGL_ROOT" = x ; then
9119 echo "$ac_t""not found" 1>&6
9120 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9121 else
9122 echo "$ac_t""$MGL_ROOT" 1>&6
9123 fi
9124
9125 MGL_OS=linux/gcc/glibc
9126 MGL_LIB_TYPE=""
9127
9128 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9129 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9130 MGL_LIB_TYPE=debug
9131 fi
9132 fi
9133 if test "x$MGL_LIB_TYPE" = x ; then
9134 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9135 MGL_LIB_TYPE=release
9136 else
9137 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9138 fi
9139 fi
9140
9141 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9142 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9143
9144 AFMINSTALL=afminstall
9145 TOOLKIT=MGL
9146 GUIDIST=MGL_DIST
9147 fi
9148
9149 if test "$wxUSE_WINE" = 1; then
9150 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9151 echo "configure:9152: checking for WINE includes" >&5
9152
9153 ac_find_includes=
9154 for ac_dir in $SEARCH_INCLUDE;
9155 do
9156 if test -f "$ac_dir/windows.h"; then
9157 ac_find_includes=$ac_dir
9158 break
9159 fi
9160 done
9161
9162 if test "$ac_find_includes" != "" ; then
9163 echo "$ac_t""found $ac_find_includes" 1>&6
9164 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9165 else
9166 echo "$ac_t""no" 1>&6
9167 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9168 fi
9169
9170 XPM_LINK=""
9171 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9172 echo "configure:9173: checking for Xpm library" >&5
9173
9174 ac_find_libraries=
9175 for ac_dir in $SEARCH_LIB;
9176 do
9177 for ac_extension in a so sl; do
9178 if test -f "$ac_dir/libXpm.$ac_extension"; then
9179 ac_find_libraries=$ac_dir
9180 break 2
9181 fi
9182 done
9183 done
9184
9185 if test "$ac_find_libraries" != "" ; then
9186 GUI_TK_LIBRARY="-L$ac_find_libraries"
9187 XPM_LINK="-lXpm"
9188 cat >> confdefs.h <<\EOF
9189 #define wxHAVE_LIB_XPM 1
9190 EOF
9191
9192 echo "$ac_t""found at $ac_find_libraries" 1>&6
9193 else
9194 echo "$ac_t""no" 1>&6
9195 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9196 fi
9197
9198 MESA_LINK=""
9199 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9200 echo "configure:9201: checking for Mesa library" >&5
9201
9202 ac_find_libraries=
9203 for ac_dir in $SEARCH_LIB;
9204 do
9205 for ac_extension in a so sl; do
9206 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9207 ac_find_libraries=$ac_dir
9208 break 2
9209 fi
9210 done
9211 done
9212
9213 if test "$ac_find_libraries" != "" ; then
9214 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9215 MESA_LINK="-lMesaGL"
9216 echo "$ac_t""found at $ac_find_libraries" 1>&6
9217 else
9218 { echo "configure: error: no" 1>&2; exit 1; }
9219 fi
9220
9221 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9222 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9223 WXWINE=1
9224 TOOLKIT=MSW
9225 GUIDIST=MSW_DIST
9226 fi
9227
9228
9229 # If we find X, set shell vars x_includes and x_libraries to the
9230 # paths, otherwise set no_x=yes.
9231 # Uses ac_ vars as temps to allow command line to override cache and checks.
9232 # --without-x overrides everything else, but does not touch the cache.
9233 echo $ac_n "checking for X""... $ac_c" 1>&6
9234 echo "configure:9235: checking for X" >&5
9235
9236 # Check whether --with-x or --without-x was given.
9237 if test "${with_x+set}" = set; then
9238 withval="$with_x"
9239 :
9240 fi
9241
9242 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9243 if test "x$with_x" = xno; then
9244 # The user explicitly disabled X.
9245 have_x=disabled
9246 else
9247 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9248 # Both variables are already set.
9249 have_x=yes
9250 else
9251 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9253 else
9254 # One or both of the vars are not set, and there is no cached value.
9255 ac_x_includes=NO ac_x_libraries=NO
9256 rm -fr conftestdir
9257 if mkdir conftestdir; then
9258 cd conftestdir
9259 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9260 cat > Imakefile <<'EOF'
9261 acfindx:
9262 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9263 EOF
9264 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9266 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9267 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9268 for ac_extension in a so sl; do
9269 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9270 test -f $ac_im_libdir/libX11.$ac_extension; then
9271 ac_im_usrlibdir=$ac_im_libdir; break
9272 fi
9273 done
9274 # Screen out bogus values from the imake configuration. They are
9275 # bogus both because they are the default anyway, and because
9276 # using them would break gcc on systems where it needs fixed includes.
9277 case "$ac_im_incroot" in
9278 /usr/include) ;;
9279 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9280 esac
9281 case "$ac_im_usrlibdir" in
9282 /usr/lib | /lib) ;;
9283 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9284 esac
9285 fi
9286 cd ..
9287 rm -fr conftestdir
9288 fi
9289
9290 if test "$ac_x_includes" = NO; then
9291 # Guess where to find include files, by looking for this one X11 .h file.
9292 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9293
9294 # First, try using that file with no special directory specified.
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9298 #include <$x_direct_test_include>
9299 EOF
9300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9301 { (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9303 if test -z "$ac_err"; then
9304 rm -rf conftest*
9305 # We can compile using X headers with no special include directory.
9306 ac_x_includes=
9307 else
9308 echo "$ac_err" >&5
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9311 rm -rf conftest*
9312 # Look for the header file in a standard set of common directories.
9313 # Check X11 before X11Rn because it is often a symlink to the current release.
9314 for ac_dir in \
9315 /usr/X11/include \
9316 /usr/X11R6/include \
9317 /usr/X11R5/include \
9318 /usr/X11R4/include \
9319 \
9320 /usr/include/X11 \
9321 /usr/include/X11R6 \
9322 /usr/include/X11R5 \
9323 /usr/include/X11R4 \
9324 \
9325 /usr/local/X11/include \
9326 /usr/local/X11R6/include \
9327 /usr/local/X11R5/include \
9328 /usr/local/X11R4/include \
9329 \
9330 /usr/local/include/X11 \
9331 /usr/local/include/X11R6 \
9332 /usr/local/include/X11R5 \
9333 /usr/local/include/X11R4 \
9334 \
9335 /usr/X386/include \
9336 /usr/x386/include \
9337 /usr/XFree86/include/X11 \
9338 \
9339 /usr/include \
9340 /usr/local/include \
9341 /usr/unsupported/include \
9342 /usr/athena/include \
9343 /usr/local/x11r5/include \
9344 /usr/lpp/Xamples/include \
9345 \
9346 /usr/openwin/include \
9347 /usr/openwin/share/include \
9348 ; \
9349 do
9350 if test -r "$ac_dir/$x_direct_test_include"; then
9351 ac_x_includes=$ac_dir
9352 break
9353 fi
9354 done
9355 fi
9356 rm -f conftest*
9357 fi # $ac_x_includes = NO
9358
9359 if test "$ac_x_libraries" = NO; then
9360 # Check for the libraries.
9361
9362 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9363 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9364
9365 # See if we find them without any special options.
9366 # Don't add to $LIBS permanently.
9367 ac_save_LIBS="$LIBS"
9368 LIBS="-l$x_direct_test_library $LIBS"
9369 cat > conftest.$ac_ext <<EOF
9370 #line 9371 "configure"
9371 #include "confdefs.h"
9372
9373 int main() {
9374 ${x_direct_test_function}()
9375 ; return 0; }
9376 EOF
9377 if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9378 rm -rf conftest*
9379 LIBS="$ac_save_LIBS"
9380 # We can link X programs with no special library path.
9381 ac_x_libraries=
9382 else
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 rm -rf conftest*
9386 LIBS="$ac_save_LIBS"
9387 # First see if replacing the include by lib works.
9388 # Check X11 before X11Rn because it is often a symlink to the current release.
9389 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9390 /usr/X11/lib \
9391 /usr/X11R6/lib \
9392 /usr/X11R5/lib \
9393 /usr/X11R4/lib \
9394 \
9395 /usr/lib/X11 \
9396 /usr/lib/X11R6 \
9397 /usr/lib/X11R5 \
9398 /usr/lib/X11R4 \
9399 \
9400 /usr/local/X11/lib \
9401 /usr/local/X11R6/lib \
9402 /usr/local/X11R5/lib \
9403 /usr/local/X11R4/lib \
9404 \
9405 /usr/local/lib/X11 \
9406 /usr/local/lib/X11R6 \
9407 /usr/local/lib/X11R5 \
9408 /usr/local/lib/X11R4 \
9409 \
9410 /usr/X386/lib \
9411 /usr/x386/lib \
9412 /usr/XFree86/lib/X11 \
9413 \
9414 /usr/lib \
9415 /usr/local/lib \
9416 /usr/unsupported/lib \
9417 /usr/athena/lib \
9418 /usr/local/x11r5/lib \
9419 /usr/lpp/Xamples/lib \
9420 /lib/usr/lib/X11 \
9421 \
9422 /usr/openwin/lib \
9423 /usr/openwin/share/lib \
9424 ; \
9425 do
9426 for ac_extension in a so sl; do
9427 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9428 ac_x_libraries=$ac_dir
9429 break 2
9430 fi
9431 done
9432 done
9433 fi
9434 rm -f conftest*
9435 fi # $ac_x_libraries = NO
9436
9437 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9438 # Didn't find X anywhere. Cache the known absence of X.
9439 ac_cv_have_x="have_x=no"
9440 else
9441 # Record where we found X for the cache.
9442 ac_cv_have_x="have_x=yes \
9443 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9444 fi
9445 fi
9446 fi
9447 eval "$ac_cv_have_x"
9448 fi # $with_x != no
9449
9450 if test "$have_x" != yes; then
9451 echo "$ac_t""$have_x" 1>&6
9452 no_x=yes
9453 else
9454 # If each of the values was on the command line, it overrides each guess.
9455 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9456 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9457 # Update the cache value to reflect the command line values.
9458 ac_cv_have_x="have_x=yes \
9459 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9460 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9461 fi
9462
9463 if test "$no_x" = yes; then
9464 # Not all programs may use this symbol, but it does not hurt to define it.
9465 cat >> confdefs.h <<\EOF
9466 #define X_DISPLAY_MISSING 1
9467 EOF
9468
9469 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9470 else
9471 if test -n "$x_includes"; then
9472 X_CFLAGS="$X_CFLAGS -I$x_includes"
9473 fi
9474
9475 # It would also be nice to do this for all -L options, not just this one.
9476 if test -n "$x_libraries"; then
9477 X_LIBS="$X_LIBS -L$x_libraries"
9478 # For Solaris; some versions of Sun CC require a space after -R and
9479 # others require no space. Words are not sufficient . . . .
9480 case "`(uname -sr) 2>/dev/null`" in
9481 "SunOS 5"*)
9482 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9483 echo "configure:9484: checking whether -R must be followed by a space" >&5
9484 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488
9489 int main() {
9490
9491 ; return 0; }
9492 EOF
9493 if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9494 rm -rf conftest*
9495 ac_R_nospace=yes
9496 else
9497 echo "configure: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9499 rm -rf conftest*
9500 ac_R_nospace=no
9501 fi
9502 rm -f conftest*
9503 if test $ac_R_nospace = yes; then
9504 echo "$ac_t""no" 1>&6
9505 X_LIBS="$X_LIBS -R$x_libraries"
9506 else
9507 LIBS="$ac_xsave_LIBS -R $x_libraries"
9508 cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9511
9512 int main() {
9513
9514 ; return 0; }
9515 EOF
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9517 rm -rf conftest*
9518 ac_R_space=yes
9519 else
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 rm -rf conftest*
9523 ac_R_space=no
9524 fi
9525 rm -f conftest*
9526 if test $ac_R_space = yes; then
9527 echo "$ac_t""yes" 1>&6
9528 X_LIBS="$X_LIBS -R $x_libraries"
9529 else
9530 echo "$ac_t""neither works" 1>&6
9531 fi
9532 fi
9533 LIBS="$ac_xsave_LIBS"
9534 esac
9535 fi
9536
9537 # Check for system-dependent libraries X programs must link with.
9538 # Do this before checking for the system-independent R6 libraries
9539 # (-lICE), since we may need -lsocket or whatever for X linking.
9540
9541 if test "$ISC" = yes; then
9542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9543 else
9544 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9545 # libraries were built with DECnet support. And karl@cs.umb.edu says
9546 # the Alpha needs dnet_stub (dnet does not exist).
9547 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9548 echo "configure:9549: checking for dnet_ntoa in -ldnet" >&5
9549 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
9552 else
9553 ac_save_LIBS="$LIBS"
9554 LIBS="-ldnet $LIBS"
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9558 /* Override any gcc2 internal prototype to avoid an error. */
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9561 char dnet_ntoa();
9562
9563 int main() {
9564 dnet_ntoa()
9565 ; return 0; }
9566 EOF
9567 if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9568 rm -rf conftest*
9569 eval "ac_cv_lib_$ac_lib_var=yes"
9570 else
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 rm -rf conftest*
9574 eval "ac_cv_lib_$ac_lib_var=no"
9575 fi
9576 rm -f conftest*
9577 LIBS="$ac_save_LIBS"
9578
9579 fi
9580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9581 echo "$ac_t""yes" 1>&6
9582 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9583 else
9584 echo "$ac_t""no" 1>&6
9585 fi
9586
9587 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9588 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9589 echo "configure:9590: checking for dnet_ntoa in -ldnet_stub" >&5
9590 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9593 else
9594 ac_save_LIBS="$LIBS"
9595 LIBS="-ldnet_stub $LIBS"
9596 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 /* Override any gcc2 internal prototype to avoid an error. */
9600 /* We use char because int might match the return type of a gcc2
9601 builtin and then its argument prototype would still apply. */
9602 char dnet_ntoa();
9603
9604 int main() {
9605 dnet_ntoa()
9606 ; return 0; }
9607 EOF
9608 if { (eval echo configure:9609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9609 rm -rf conftest*
9610 eval "ac_cv_lib_$ac_lib_var=yes"
9611 else
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 rm -rf conftest*
9615 eval "ac_cv_lib_$ac_lib_var=no"
9616 fi
9617 rm -f conftest*
9618 LIBS="$ac_save_LIBS"
9619
9620 fi
9621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9622 echo "$ac_t""yes" 1>&6
9623 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9624 else
9625 echo "$ac_t""no" 1>&6
9626 fi
9627
9628 fi
9629
9630 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9631 # to get the SysV transport functions.
9632 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9633 # needs -lnsl.
9634 # The nsl library prevents programs from opening the X display
9635 # on Irix 5.2, according to dickey@clark.net.
9636 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9637 echo "configure:9638: checking for gethostbyname" >&5
9638 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9639 echo $ac_n "(cached) $ac_c" 1>&6
9640 else
9641 cat > conftest.$ac_ext <<EOF
9642 #line 9643 "configure"
9643 #include "confdefs.h"
9644 /* System header to define __stub macros and hopefully few prototypes,
9645 which can conflict with char gethostbyname(); below. */
9646 #include <assert.h>
9647 /* Override any gcc2 internal prototype to avoid an error. */
9648 /* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9650 char gethostbyname();
9651
9652 int main() {
9653
9654 /* The GNU C library defines this for functions which it implements
9655 to always fail with ENOSYS. Some functions are actually named
9656 something starting with __ and the normal name is an alias. */
9657 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9658 choke me
9659 #else
9660 gethostbyname();
9661 #endif
9662
9663 ; return 0; }
9664 EOF
9665 if { (eval echo configure:9666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9666 rm -rf conftest*
9667 eval "ac_cv_func_gethostbyname=yes"
9668 else
9669 echo "configure: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 rm -rf conftest*
9672 eval "ac_cv_func_gethostbyname=no"
9673 fi
9674 rm -f conftest*
9675 fi
9676
9677 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9678 echo "$ac_t""yes" 1>&6
9679 :
9680 else
9681 echo "$ac_t""no" 1>&6
9682 fi
9683
9684 if test $ac_cv_func_gethostbyname = no; then
9685 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
9686 echo "configure:9687: checking for gethostbyname in -lnsl" >&5
9687 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9690 else
9691 ac_save_LIBS="$LIBS"
9692 LIBS="-lnsl $LIBS"
9693 cat > conftest.$ac_ext <<EOF
9694 #line 9695 "configure"
9695 #include "confdefs.h"
9696 /* Override any gcc2 internal prototype to avoid an error. */
9697 /* We use char because int might match the return type of a gcc2
9698 builtin and then its argument prototype would still apply. */
9699 char gethostbyname();
9700
9701 int main() {
9702 gethostbyname()
9703 ; return 0; }
9704 EOF
9705 if { (eval echo configure:9706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9706 rm -rf conftest*
9707 eval "ac_cv_lib_$ac_lib_var=yes"
9708 else
9709 echo "configure: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9711 rm -rf conftest*
9712 eval "ac_cv_lib_$ac_lib_var=no"
9713 fi
9714 rm -f conftest*
9715 LIBS="$ac_save_LIBS"
9716
9717 fi
9718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9719 echo "$ac_t""yes" 1>&6
9720 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9721 else
9722 echo "$ac_t""no" 1>&6
9723 fi
9724
9725 fi
9726
9727 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9728 # socket/setsockopt and other routines are undefined under SCO ODT
9729 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9730 # on later versions), says simon@lia.di.epfl.ch: it contains
9731 # gethostby* variants that don't use the nameserver (or something).
9732 # -lsocket must be given before -lnsl if both are needed.
9733 # We assume that if connect needs -lnsl, so does gethostbyname.
9734 echo $ac_n "checking for connect""... $ac_c" 1>&6
9735 echo "configure:9736: checking for connect" >&5
9736 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9738 else
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 /* System header to define __stub macros and hopefully few prototypes,
9743 which can conflict with char connect(); below. */
9744 #include <assert.h>
9745 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9748 char connect();
9749
9750 int main() {
9751
9752 /* The GNU C library defines this for functions which it implements
9753 to always fail with ENOSYS. Some functions are actually named
9754 something starting with __ and the normal name is an alias. */
9755 #if defined (__stub_connect) || defined (__stub___connect)
9756 choke me
9757 #else
9758 connect();
9759 #endif
9760
9761 ; return 0; }
9762 EOF
9763 if { (eval echo configure:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9764 rm -rf conftest*
9765 eval "ac_cv_func_connect=yes"
9766 else
9767 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9769 rm -rf conftest*
9770 eval "ac_cv_func_connect=no"
9771 fi
9772 rm -f conftest*
9773 fi
9774
9775 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9776 echo "$ac_t""yes" 1>&6
9777 :
9778 else
9779 echo "$ac_t""no" 1>&6
9780 fi
9781
9782 if test $ac_cv_func_connect = no; then
9783 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
9784 echo "configure:9785: checking for connect in -lsocket" >&5
9785 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9788 else
9789 ac_save_LIBS="$LIBS"
9790 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9794 /* Override any gcc2 internal prototype to avoid an error. */
9795 /* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */
9797 char connect();
9798
9799 int main() {
9800 connect()
9801 ; return 0; }
9802 EOF
9803 if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9804 rm -rf conftest*
9805 eval "ac_cv_lib_$ac_lib_var=yes"
9806 else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 eval "ac_cv_lib_$ac_lib_var=no"
9811 fi
9812 rm -f conftest*
9813 LIBS="$ac_save_LIBS"
9814
9815 fi
9816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9817 echo "$ac_t""yes" 1>&6
9818 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9819 else
9820 echo "$ac_t""no" 1>&6
9821 fi
9822
9823 fi
9824
9825 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9826 echo $ac_n "checking for remove""... $ac_c" 1>&6
9827 echo "configure:9828: checking for remove" >&5
9828 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830 else
9831 cat > conftest.$ac_ext <<EOF
9832 #line 9833 "configure"
9833 #include "confdefs.h"
9834 /* System header to define __stub macros and hopefully few prototypes,
9835 which can conflict with char remove(); below. */
9836 #include <assert.h>
9837 /* Override any gcc2 internal prototype to avoid an error. */
9838 /* We use char because int might match the return type of a gcc2
9839 builtin and then its argument prototype would still apply. */
9840 char remove();
9841
9842 int main() {
9843
9844 /* The GNU C library defines this for functions which it implements
9845 to always fail with ENOSYS. Some functions are actually named
9846 something starting with __ and the normal name is an alias. */
9847 #if defined (__stub_remove) || defined (__stub___remove)
9848 choke me
9849 #else
9850 remove();
9851 #endif
9852
9853 ; return 0; }
9854 EOF
9855 if { (eval echo configure:9856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9856 rm -rf conftest*
9857 eval "ac_cv_func_remove=yes"
9858 else
9859 echo "configure: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9861 rm -rf conftest*
9862 eval "ac_cv_func_remove=no"
9863 fi
9864 rm -f conftest*
9865 fi
9866
9867 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9868 echo "$ac_t""yes" 1>&6
9869 :
9870 else
9871 echo "$ac_t""no" 1>&6
9872 fi
9873
9874 if test $ac_cv_func_remove = no; then
9875 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
9876 echo "configure:9877: checking for remove in -lposix" >&5
9877 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9880 else
9881 ac_save_LIBS="$LIBS"
9882 LIBS="-lposix $LIBS"
9883 cat > conftest.$ac_ext <<EOF
9884 #line 9885 "configure"
9885 #include "confdefs.h"
9886 /* Override any gcc2 internal prototype to avoid an error. */
9887 /* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9889 char remove();
9890
9891 int main() {
9892 remove()
9893 ; return 0; }
9894 EOF
9895 if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9896 rm -rf conftest*
9897 eval "ac_cv_lib_$ac_lib_var=yes"
9898 else
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 rm -rf conftest*
9902 eval "ac_cv_lib_$ac_lib_var=no"
9903 fi
9904 rm -f conftest*
9905 LIBS="$ac_save_LIBS"
9906
9907 fi
9908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9909 echo "$ac_t""yes" 1>&6
9910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9911 else
9912 echo "$ac_t""no" 1>&6
9913 fi
9914
9915 fi
9916
9917 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9918 echo $ac_n "checking for shmat""... $ac_c" 1>&6
9919 echo "configure:9920: checking for shmat" >&5
9920 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9922 else
9923 cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9926 /* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char shmat(); below. */
9928 #include <assert.h>
9929 /* Override any gcc2 internal prototype to avoid an error. */
9930 /* We use char because int might match the return type of a gcc2
9931 builtin and then its argument prototype would still apply. */
9932 char shmat();
9933
9934 int main() {
9935
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined (__stub_shmat) || defined (__stub___shmat)
9940 choke me
9941 #else
9942 shmat();
9943 #endif
9944
9945 ; return 0; }
9946 EOF
9947 if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9948 rm -rf conftest*
9949 eval "ac_cv_func_shmat=yes"
9950 else
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -rf conftest*
9954 eval "ac_cv_func_shmat=no"
9955 fi
9956 rm -f conftest*
9957 fi
9958
9959 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
9960 echo "$ac_t""yes" 1>&6
9961 :
9962 else
9963 echo "$ac_t""no" 1>&6
9964 fi
9965
9966 if test $ac_cv_func_shmat = no; then
9967 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
9968 echo "configure:9969: checking for shmat in -lipc" >&5
9969 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
9970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9972 else
9973 ac_save_LIBS="$LIBS"
9974 LIBS="-lipc $LIBS"
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 /* Override any gcc2 internal prototype to avoid an error. */
9979 /* We use char because int might match the return type of a gcc2
9980 builtin and then its argument prototype would still apply. */
9981 char shmat();
9982
9983 int main() {
9984 shmat()
9985 ; return 0; }
9986 EOF
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9988 rm -rf conftest*
9989 eval "ac_cv_lib_$ac_lib_var=yes"
9990 else
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9993 rm -rf conftest*
9994 eval "ac_cv_lib_$ac_lib_var=no"
9995 fi
9996 rm -f conftest*
9997 LIBS="$ac_save_LIBS"
9998
9999 fi
10000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10001 echo "$ac_t""yes" 1>&6
10002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10003 else
10004 echo "$ac_t""no" 1>&6
10005 fi
10006
10007 fi
10008 fi
10009
10010 # Check for libraries that X11R6 Xt/Xaw programs need.
10011 ac_save_LDFLAGS="$LDFLAGS"
10012 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10013 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10014 # check for ICE first), but we must link in the order -lSM -lICE or
10015 # we get undefined symbols. So assume we have SM if we have ICE.
10016 # These have to be linked with before -lX11, unlike the other
10017 # libraries we check for below, so use a different variable.
10018 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10019 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10020 echo "configure:10021: checking for IceConnectionNumber in -lICE" >&5
10021 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10023 echo $ac_n "(cached) $ac_c" 1>&6
10024 else
10025 ac_save_LIBS="$LIBS"
10026 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10027 cat > conftest.$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10030 /* Override any gcc2 internal prototype to avoid an error. */
10031 /* We use char because int might match the return type of a gcc2
10032 builtin and then its argument prototype would still apply. */
10033 char IceConnectionNumber();
10034
10035 int main() {
10036 IceConnectionNumber()
10037 ; return 0; }
10038 EOF
10039 if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10040 rm -rf conftest*
10041 eval "ac_cv_lib_$ac_lib_var=yes"
10042 else
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 rm -rf conftest*
10046 eval "ac_cv_lib_$ac_lib_var=no"
10047 fi
10048 rm -f conftest*
10049 LIBS="$ac_save_LIBS"
10050
10051 fi
10052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10053 echo "$ac_t""yes" 1>&6
10054 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10055 else
10056 echo "$ac_t""no" 1>&6
10057 fi
10058
10059 LDFLAGS="$ac_save_LDFLAGS"
10060
10061 fi
10062
10063 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10064 LDFLAGS="$LDFLAGS $X_LIBS"
10065
10066 if test "$wxUSE_MOTIF" = 1; then
10067 if test "$no_x" = "yes"; then
10068 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10069 fi
10070
10071 GUI_TK_LIBRARY="$X_LIBS"
10072 TOOLKIT_INCLUDE="$X_CFLAGS"
10073
10074 AFMINSTALL=afminstall
10075
10076
10077 COMPILED_X_PROGRAM=0
10078
10079 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10080 echo "configure:10081: checking for Motif/Lesstif headers" >&5
10081
10082 ac_find_includes=
10083 for ac_dir in $SEARCH_INCLUDE;
10084 do
10085 if test -f "$ac_dir/Xm/Xm.h"; then
10086 ac_find_includes=$ac_dir
10087 break
10088 fi
10089 done
10090
10091 if test "$ac_find_includes" != "" ; then
10092 echo "$ac_t""found $ac_find_includes" 1>&6
10093 else
10094 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097
10098 #include <Xm/Xm.h>
10099
10100 int main() {
10101
10102 int version;
10103
10104 version = xmUseVersion;
10105
10106 ; return 0; }
10107 EOF
10108 if { (eval echo configure:10109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10109 rm -rf conftest*
10110
10111 echo "$ac_t""found in default search path" 1>&6
10112 COMPILED_X_PROGRAM=1
10113
10114 else
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 rm -rf conftest*
10118
10119 echo "$ac_t""no" 1>&6
10120 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10121
10122
10123 fi
10124 rm -f conftest*
10125 fi
10126
10127 if test "$COMPILED_X_PROGRAM" = 0; then
10128 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10129 echo "configure:10130: checking for Motif/Lesstif library" >&5
10130
10131 ac_find_libraries=
10132 for ac_dir in $SEARCH_LIB;
10133 do
10134 for ac_extension in a so sl; do
10135 if test -f "$ac_dir/libXm.$ac_extension"; then
10136 ac_find_libraries=$ac_dir
10137 break 2
10138 fi
10139 done
10140 done
10141
10142 if test "$ac_find_libraries" != "" ; then
10143
10144 ac_path_to_include=$ac_find_includes
10145 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10146 result=$?
10147 if test $result = 0; then
10148 ac_path_to_include=""
10149 else
10150 ac_path_to_include="-I$ac_find_includes"
10151 fi
10152
10153
10154 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10155 result=$?
10156 if test $result = 0; then
10157 ac_path_to_link=""
10158 else
10159 ac_path_to_link="-L$ac_find_libraries"
10160 fi
10161
10162
10163 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10164 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10165 echo "$ac_t""found at $ac_find_libraries" 1>&6
10166 else
10167 cat > conftest.$ac_ext <<EOF
10168 #line 10169 "configure"
10169 #include "confdefs.h"
10170
10171 #include <Xm/Xm.h>
10172
10173 int main() {
10174
10175 int version;
10176
10177 version = xmUseVersion;
10178
10179 ; return 0; }
10180 EOF
10181 if { (eval echo configure:10182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10182 rm -rf conftest*
10183
10184 echo "$ac_t""found in default search path" 1>&6
10185 COMPILED_X_PROGRAM=1
10186
10187 else
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -rf conftest*
10191
10192 echo "$ac_t""no" 1>&6
10193 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10194
10195
10196 fi
10197 rm -f conftest*
10198 fi
10199 fi
10200
10201
10202 XPM_LINK=""
10203 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10204 echo "configure:10205: checking for Xpm library" >&5
10205
10206 ac_find_libraries=
10207 for ac_dir in $SEARCH_LIB;
10208 do
10209 for ac_extension in a so sl; do
10210 if test -f "$ac_dir/libXpm.$ac_extension"; then
10211 ac_find_libraries=$ac_dir
10212 break 2
10213 fi
10214 done
10215 done
10216
10217 if test "$ac_find_libraries" != "" ; then
10218
10219 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10220 result=$?
10221 if test $result = 0; then
10222 ac_path_to_link=""
10223 else
10224 ac_path_to_link="-L$ac_find_libraries"
10225 fi
10226
10227 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10228 XPM_LINK="-lXpm "
10229 cat >> confdefs.h <<\EOF
10230 #define wxHAVE_LIB_XPM 1
10231 EOF
10232
10233 echo "$ac_t""found at $ac_find_libraries" 1>&6
10234 else
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238
10239 #include <X11/xpm.h>
10240
10241 int main() {
10242
10243 int version;
10244
10245 version = XpmLibraryVersion();
10246
10247 ; return 0; }
10248 EOF
10249 if { (eval echo configure:10250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10250 rm -rf conftest*
10251
10252 XPM_LINK="-lXpm "
10253 cat >> confdefs.h <<\EOF
10254 #define wxHAVE_LIB_XPM 1
10255 EOF
10256
10257 echo "$ac_t""found in default search path" 1>&6
10258 COMPILED_X_PROGRAM=0
10259
10260 else
10261 echo "configure: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10263 rm -rf conftest*
10264
10265 echo "$ac_t""no" 1>&6
10266 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10267
10268
10269 fi
10270 rm -f conftest*
10271 fi
10272
10273 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10274 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10275 TOOLKIT=MOTIF
10276 GUIDIST=MOTIF_DIST
10277 fi
10278
10279 if test "$wxUSE_MAC" = 1; then
10280 TOOLKIT=MAC
10281 GUIDIST=MACX_DIST
10282 fi
10283
10284 if test "$wxUSE_PM" = 1; then
10285 TOOLKIT=PM
10286 GUIDIST=GTK_DIST
10287 fi
10288
10289 if test "$TOOLKIT" != "PM" ; then
10290 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10291 else
10292 TOOLKIT_DIR="os2"
10293 fi
10294
10295 TOOLKIT_NAME="${TOOLKIT_DIR}"
10296
10297 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10298
10299 if test "$TOOLKIT_NAME" = "motif"; then
10300 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10301 fi
10302
10303 if test "$wxUSE_UNIVERSAL" = "yes"; then
10304 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10305 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10306 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10307 SETUPH_DIR="univ"
10308 else
10309 SETUPH_DIR="${TOOLKIT_DIR}"
10310 fi
10311
10312 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10313 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10314 fi
10315
10316 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10317 if test "$wxUSE_UNIVERSAL" = "yes"; then
10318 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10319 fi
10320
10321 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10322
10323 if test "$wxUSE_UNIVERSAL" = "yes"; then
10324 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10325 else
10326 ALL_OBJECTS="\$(GUIOBJS)"
10327 fi
10328
10329 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10330
10331 if test "$TOOLKIT" != "MSW"; then
10332 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10333 fi
10334
10335 if test "$wxUSE_HTML" = "yes"; then
10336 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10337 fi
10338
10339 if test "$TOOLKIT" != "MSW"; then
10340 if test "$wxUSE_ODBC" = "yes" ; then
10341 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10342 fi
10343 fi
10344
10345 if test "$wxUSE_LIBJPEG" = "yes" ; then
10346 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10347 fi
10348 if test "$wxUSE_LIBTIFF" = "yes" ; then
10349 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10350 fi
10351 if test "$wxUSE_LIBPNG" = "yes" ; then
10352 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10353 fi
10354 if test "$wxUSE_ZLIB" = "yes" ; then
10355 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10356 fi
10357 if test "$wxUSE_FREETYPE" = "yes" ; then
10358 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10359 fi
10360
10361 if test "$wxUSE_UNIVERSAL" = "yes"; then
10362 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10363 else
10364 ALL_DEPFILES="\$(GUIDEPS)"
10365 fi
10366
10367 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10368
10369 if test "$TOOLKIT" != "MSW"; then
10370 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10371 fi
10372
10373 if test "$wxUSE_HTML" = "yes"; then
10374 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10375 fi
10376
10377 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10378 if test "$wxUSE_UNIVERSAL" = "yes"; then
10379 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10380 fi
10381 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10382 RPM_SPEC="wx\$(TOOLKIT).spec"
10383
10384 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10385 DISTDIR="wx\$(TOOLKIT)"
10386 else
10387 USE_GUI=0
10388
10389 TOOLKIT_DIR="base"
10390
10391 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10392 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10393 else
10394 TOOLKIT_NAME="${TOOLKIT_DIR}"
10395 fi
10396
10397 TOOLKIT_DEF="-D__WXBASE__"
10398
10399 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10400 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10401
10402 if test "$wxUSE_ZLIB" = "yes" ; then
10403 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10404 fi
10405
10406 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10407
10408 PORT_FILES="src/files.lst"
10409 RPM_FILES="src/rpmfiles.lst"
10410 RPM_SPEC="wxBase.spec"
10411
10412 GUIDIST="BASE_DIST"
10413 DISTDIR="wxBase"
10414 fi
10415
10416 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10417 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10418
10419 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10420 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10421
10422 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10423 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10424
10425 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10426 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10427 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10428 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10429 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10430 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10431
10432 SHARED_LD=
10433 PIC_FLAG=
10434 WX_ALL=
10435 WX_ALL_INSTALLED=
10436 BURNT_LIBRARY_NAME=
10437 WX_TARGET_LIBRARY_SONAME=
10438
10439
10440 if test "$wxUSE_SHARED" = "yes"; then
10441 case "${host}" in
10442 *-hp-hpux* )
10443 if test "$GCC" = yes ; then
10444 SHARED_LD="${CC} -shared -fPIC -o"
10445 PIC_FLAG="-fPIC"
10446 else
10447 LDFLAGS="-L/usr/lib"
10448
10449 SHARED_LD="${CXX} -b -o"
10450 PIC_FLAG="+Z"
10451 fi
10452 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10453 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10454 if test "$wxUSE_OPENGL" = "yes"; then
10455 WX_ALL_INSTALLED="preinstall_gl"
10456 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10457 else
10458 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10459 fi
10460 ;;
10461
10462 *-*-linux* )
10463 SHARED_LD="${CC} -shared -o"
10464 PIC_FLAG="-fPIC"
10465 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10466 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10467 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10468 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10469 fi
10470 if test "$wxUSE_OPENGL" = "yes"; then
10471 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10472 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10473 else
10474 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10475 WX_ALL="CREATE_LINKS"
10476 fi
10477 ;;
10478 *-*-irix5* | *-*-irix6* )
10479 if test "$GCC" = yes ; then
10480 SHARED_LD="${CC} -shared -o"
10481 PIC_FLAG="-fPIC"
10482 else
10483 SHARED_LD="${CXX} -shared -o"
10484 fi
10485 if test "$wxUSE_OPENGL" = "yes"; then
10486 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10487 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10488 else
10489 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10490 WX_ALL="CREATE_LINKS"
10491 fi
10492 ;;
10493 *-*-solaris2* )
10494 if test "$GCC" = yes ; then
10495 SHARED_LD="${CC} -shared -o"
10496 PIC_FLAG="-fPIC"
10497
10498 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10499 else
10500 SHARED_LD="${CXX} -G -o"
10501 PIC_FLAG="-KPIC"
10502 fi
10503 if test "$wxUSE_OPENGL" = "yes"; then
10504 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10505 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10506 else
10507 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10508 WX_ALL="CREATE_LINKS"
10509 fi
10510 ;;
10511 *-*-sunos4* )
10512 SHARED_LD="${CC} -shared -o"
10513 PIC_FLAG="-fPIC"
10514 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10515 WX_ALL="CREATE_LINKS"
10516 ;;
10517 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10518 SHARED_LD="${CC} -shared -o"
10519 PIC_FLAG="-fPIC"
10520 if test "$wxUSE_OPENGL" = "yes"; then
10521 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10522 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10523 else
10524 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10525 WX_ALL="CREATE_LINKS"
10526 fi
10527 ;;
10528 *-*-darwin* )
10529 SHARED_LD="${CXX} -dynamiclib -o"
10530 PIC_FLAG="-dynamic -fPIC"
10531 if test "$wxUSE_OPENGL" = "yes"; then
10532 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10533 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10534 else
10535 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10536 WX_ALL="CREATE_LINKS"
10537 fi
10538 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10539 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10540 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10541 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10542 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10543 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10544 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10545 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10546 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10547 ;;
10548 *-*-osf* )
10549 SHARED_LD="${CXX} -shared -o"
10550 PIC_FLAG="-fPIC"
10551 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10552 WX_ALL="CREATE_LINKS"
10553 ;;
10554 *-*-dgux5* )
10555 SHARED_LD="${CXX} -shared -o"
10556 PIC_FLAG="-fPIC"
10557 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10558 WX_ALL="CREATE_LINKS"
10559 ;;
10560 *-*-sysv5* )
10561 SHARED_LD="${CC} -shared -o"
10562 PIC_FLAG="-fPIC"
10563 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10564 WX_ALL="CREATE_LINKS"
10565 ;;
10566 *-*-aix* )
10567 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10568 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10569 ;;
10570 *-*-cygwin* )
10571 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10572 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10573 if test "$wxUSE_OPENGL" = "yes"; then
10574 WX_ALL_INSTALLED="preinstall_gl"
10575 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10576 else
10577 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10578 fi
10579 ;;
10580 *-*-mingw32* )
10581 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10582 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10583 if test "$wxUSE_OPENGL" = "yes"; then
10584 WX_ALL_INSTALLED="preinstall_gl"
10585 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10586 else
10587 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10588 fi
10589 ;;
10590 *-pc-os2_emx )
10591 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10592 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10593 ;;
10594 *-*-beos* )
10595 SHARED_LD="${LD} -shared -o"
10596 PIC_FLAG="-fPIC"
10597 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10598 WX_ALL="CREATE_LINKS"
10599 ;;
10600 *)
10601 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10602 esac
10603
10604 if test "x$WX_TARGET_LIBRARY" = "x"; then
10605 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10606 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10607 fi
10608 WX_TARGET_LIBRARY_TYPE="so"
10609 else
10610 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10611 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10612
10613 if test "$wxUSE_OPENGL" = "yes"; then
10614 WX_ALL_INSTALLED="preinstall_gl"
10615 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10616 else
10617 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10618 fi
10619
10620 if test "$wxUSE_GUI" = "no"; then
10621 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10622 fi
10623
10624 WX_TARGET_LIBRARY_TYPE="a"
10625 fi
10626
10627
10628 for ac_hdr in strings.h
10629 do
10630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10632 echo "configure:10633: checking for $ac_hdr" >&5
10633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10635 else
10636 cat > conftest.$ac_ext <<EOF
10637 #line 10638 "configure"
10638 #include "confdefs.h"
10639 #include <$ac_hdr>
10640 EOF
10641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10642 { (eval echo configure:10643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10644 if test -z "$ac_err"; then
10645 rm -rf conftest*
10646 eval "ac_cv_header_$ac_safe=yes"
10647 else
10648 echo "$ac_err" >&5
10649 echo "configure: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10651 rm -rf conftest*
10652 eval "ac_cv_header_$ac_safe=no"
10653 fi
10654 rm -f conftest*
10655 fi
10656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10657 echo "$ac_t""yes" 1>&6
10658 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10659 cat >> confdefs.h <<EOF
10660 #define $ac_tr_hdr 1
10661 EOF
10662
10663 else
10664 echo "$ac_t""no" 1>&6
10665 fi
10666 done
10667
10668 for ac_hdr in stdlib.h
10669 do
10670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10672 echo "configure:10673: checking for $ac_hdr" >&5
10673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10674 echo $ac_n "(cached) $ac_c" 1>&6
10675 else
10676 cat > conftest.$ac_ext <<EOF
10677 #line 10678 "configure"
10678 #include "confdefs.h"
10679 #include <$ac_hdr>
10680 EOF
10681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10682 { (eval echo configure:10683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10684 if test -z "$ac_err"; then
10685 rm -rf conftest*
10686 eval "ac_cv_header_$ac_safe=yes"
10687 else
10688 echo "$ac_err" >&5
10689 echo "configure: failed program was:" >&5
10690 cat conftest.$ac_ext >&5
10691 rm -rf conftest*
10692 eval "ac_cv_header_$ac_safe=no"
10693 fi
10694 rm -f conftest*
10695 fi
10696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10697 echo "$ac_t""yes" 1>&6
10698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10699 cat >> confdefs.h <<EOF
10700 #define $ac_tr_hdr 1
10701 EOF
10702
10703 else
10704 echo "$ac_t""no" 1>&6
10705 fi
10706 done
10707
10708 for ac_hdr in unistd.h
10709 do
10710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10712 echo "configure:10713: checking for $ac_hdr" >&5
10713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10715 else
10716 cat > conftest.$ac_ext <<EOF
10717 #line 10718 "configure"
10718 #include "confdefs.h"
10719 #include <$ac_hdr>
10720 EOF
10721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10722 { (eval echo configure:10723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10724 if test -z "$ac_err"; then
10725 rm -rf conftest*
10726 eval "ac_cv_header_$ac_safe=yes"
10727 else
10728 echo "$ac_err" >&5
10729 echo "configure: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10731 rm -rf conftest*
10732 eval "ac_cv_header_$ac_safe=no"
10733 fi
10734 rm -f conftest*
10735 fi
10736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10737 echo "$ac_t""yes" 1>&6
10738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10739 cat >> confdefs.h <<EOF
10740 #define $ac_tr_hdr 1
10741 EOF
10742
10743 else
10744 echo "$ac_t""no" 1>&6
10745 fi
10746 done
10747
10748 for ac_hdr in wchar.h
10749 do
10750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10752 echo "configure:10753: checking for $ac_hdr" >&5
10753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10754 echo $ac_n "(cached) $ac_c" 1>&6
10755 else
10756 cat > conftest.$ac_ext <<EOF
10757 #line 10758 "configure"
10758 #include "confdefs.h"
10759 #include <$ac_hdr>
10760 EOF
10761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10762 { (eval echo configure:10763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10764 if test -z "$ac_err"; then
10765 rm -rf conftest*
10766 eval "ac_cv_header_$ac_safe=yes"
10767 else
10768 echo "$ac_err" >&5
10769 echo "configure: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 rm -rf conftest*
10772 eval "ac_cv_header_$ac_safe=no"
10773 fi
10774 rm -f conftest*
10775 fi
10776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10777 echo "$ac_t""yes" 1>&6
10778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10779 cat >> confdefs.h <<EOF
10780 #define $ac_tr_hdr 1
10781 EOF
10782
10783 else
10784 echo "$ac_t""no" 1>&6
10785 fi
10786 done
10787
10788 for ac_hdr in wcstr.h
10789 do
10790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10792 echo "configure:10793: checking for $ac_hdr" >&5
10793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10794 echo $ac_n "(cached) $ac_c" 1>&6
10795 else
10796 cat > conftest.$ac_ext <<EOF
10797 #line 10798 "configure"
10798 #include "confdefs.h"
10799 #include <$ac_hdr>
10800 EOF
10801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10802 { (eval echo configure:10803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10804 if test -z "$ac_err"; then
10805 rm -rf conftest*
10806 eval "ac_cv_header_$ac_safe=yes"
10807 else
10808 echo "$ac_err" >&5
10809 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10811 rm -rf conftest*
10812 eval "ac_cv_header_$ac_safe=no"
10813 fi
10814 rm -f conftest*
10815 fi
10816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10817 echo "$ac_t""yes" 1>&6
10818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10819 cat >> confdefs.h <<EOF
10820 #define $ac_tr_hdr 1
10821 EOF
10822
10823 else
10824 echo "$ac_t""no" 1>&6
10825 fi
10826 done
10827
10828 for ac_hdr in fnmatch.h
10829 do
10830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10832 echo "configure:10833: checking for $ac_hdr" >&5
10833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10834 echo $ac_n "(cached) $ac_c" 1>&6
10835 else
10836 cat > conftest.$ac_ext <<EOF
10837 #line 10838 "configure"
10838 #include "confdefs.h"
10839 #include <$ac_hdr>
10840 EOF
10841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10842 { (eval echo configure:10843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10844 if test -z "$ac_err"; then
10845 rm -rf conftest*
10846 eval "ac_cv_header_$ac_safe=yes"
10847 else
10848 echo "$ac_err" >&5
10849 echo "configure: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10851 rm -rf conftest*
10852 eval "ac_cv_header_$ac_safe=no"
10853 fi
10854 rm -f conftest*
10855 fi
10856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10857 echo "$ac_t""yes" 1>&6
10858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10859 cat >> confdefs.h <<EOF
10860 #define $ac_tr_hdr 1
10861 EOF
10862
10863 else
10864 echo "$ac_t""no" 1>&6
10865 fi
10866 done
10867
10868 for ac_hdr in iconv.h
10869 do
10870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10872 echo "configure:10873: checking for $ac_hdr" >&5
10873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10874 echo $ac_n "(cached) $ac_c" 1>&6
10875 else
10876 cat > conftest.$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10879 #include <$ac_hdr>
10880 EOF
10881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10882 { (eval echo configure:10883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10884 if test -z "$ac_err"; then
10885 rm -rf conftest*
10886 eval "ac_cv_header_$ac_safe=yes"
10887 else
10888 echo "$ac_err" >&5
10889 echo "configure: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10891 rm -rf conftest*
10892 eval "ac_cv_header_$ac_safe=no"
10893 fi
10894 rm -f conftest*
10895 fi
10896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10899 cat >> confdefs.h <<EOF
10900 #define $ac_tr_hdr 1
10901 EOF
10902
10903 else
10904 echo "$ac_t""no" 1>&6
10905 fi
10906 done
10907
10908 for ac_hdr in langinfo.h
10909 do
10910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10912 echo "configure:10913: checking for $ac_hdr" >&5
10913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10915 else
10916 cat > conftest.$ac_ext <<EOF
10917 #line 10918 "configure"
10918 #include "confdefs.h"
10919 #include <$ac_hdr>
10920 EOF
10921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10922 { (eval echo configure:10923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10924 if test -z "$ac_err"; then
10925 rm -rf conftest*
10926 eval "ac_cv_header_$ac_safe=yes"
10927 else
10928 echo "$ac_err" >&5
10929 echo "configure: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 rm -rf conftest*
10932 eval "ac_cv_header_$ac_safe=no"
10933 fi
10934 rm -f conftest*
10935 fi
10936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10937 echo "$ac_t""yes" 1>&6
10938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10939 cat >> confdefs.h <<EOF
10940 #define $ac_tr_hdr 1
10941 EOF
10942
10943 else
10944 echo "$ac_t""no" 1>&6
10945 fi
10946 done
10947
10948
10949 if test "$wxUSE_GUI" = "yes"; then
10950 if test "$wxUSE_UNIX" = "yes"; then
10951 for ac_hdr in X11/XKBlib.h
10952 do
10953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10955 echo "configure:10956: checking for $ac_hdr" >&5
10956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10957 echo $ac_n "(cached) $ac_c" 1>&6
10958 else
10959 cat > conftest.$ac_ext <<EOF
10960 #line 10961 "configure"
10961 #include "confdefs.h"
10962 #include <$ac_hdr>
10963 EOF
10964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10965 { (eval echo configure:10966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10967 if test -z "$ac_err"; then
10968 rm -rf conftest*
10969 eval "ac_cv_header_$ac_safe=yes"
10970 else
10971 echo "$ac_err" >&5
10972 echo "configure: failed program was:" >&5
10973 cat conftest.$ac_ext >&5
10974 rm -rf conftest*
10975 eval "ac_cv_header_$ac_safe=no"
10976 fi
10977 rm -f conftest*
10978 fi
10979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10980 echo "$ac_t""yes" 1>&6
10981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10982 cat >> confdefs.h <<EOF
10983 #define $ac_tr_hdr 1
10984 EOF
10985
10986 else
10987 echo "$ac_t""no" 1>&6
10988 fi
10989 done
10990
10991 fi
10992 fi
10993
10994
10995 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10996 echo "configure:10997: checking for ANSI C header files" >&5
10997 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
10999 else
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003 #include <stdlib.h>
11004 #include <stdarg.h>
11005 #include <string.h>
11006 #include <float.h>
11007 EOF
11008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11009 { (eval echo configure:11010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11011 if test -z "$ac_err"; then
11012 rm -rf conftest*
11013 ac_cv_header_stdc=yes
11014 else
11015 echo "$ac_err" >&5
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 rm -rf conftest*
11019 ac_cv_header_stdc=no
11020 fi
11021 rm -f conftest*
11022
11023 if test $ac_cv_header_stdc = yes; then
11024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11025 cat > conftest.$ac_ext <<EOF
11026 #line 11027 "configure"
11027 #include "confdefs.h"
11028 #include <string.h>
11029 EOF
11030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11031 egrep "memchr" >/dev/null 2>&1; then
11032 :
11033 else
11034 rm -rf conftest*
11035 ac_cv_header_stdc=no
11036 fi
11037 rm -f conftest*
11038
11039 fi
11040
11041 if test $ac_cv_header_stdc = yes; then
11042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11043 cat > conftest.$ac_ext <<EOF
11044 #line 11045 "configure"
11045 #include "confdefs.h"
11046 #include <stdlib.h>
11047 EOF
11048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11049 egrep "free" >/dev/null 2>&1; then
11050 :
11051 else
11052 rm -rf conftest*
11053 ac_cv_header_stdc=no
11054 fi
11055 rm -f conftest*
11056
11057 fi
11058
11059 if test $ac_cv_header_stdc = yes; then
11060 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11061 if test "$cross_compiling" = yes; then
11062 :
11063 else
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11067 #include <ctype.h>
11068 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11069 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11071 int main () { int i; for (i = 0; i < 256; i++)
11072 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11073 exit (0); }
11074
11075 EOF
11076 if { (eval echo configure:11077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11077 then
11078 :
11079 else
11080 echo "configure: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11082 rm -fr conftest*
11083 ac_cv_header_stdc=no
11084 fi
11085 rm -fr conftest*
11086 fi
11087
11088 fi
11089 fi
11090
11091 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11092 if test $ac_cv_header_stdc = yes; then
11093 cat >> confdefs.h <<\EOF
11094 #define STDC_HEADERS 1
11095 EOF
11096
11097 fi
11098
11099 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11100 echo "configure:11101: checking for mode_t" >&5
11101 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11102 echo $ac_n "(cached) $ac_c" 1>&6
11103 else
11104 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 #include <sys/types.h>
11108 #if STDC_HEADERS
11109 #include <stdlib.h>
11110 #include <stddef.h>
11111 #endif
11112 EOF
11113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11114 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11115 rm -rf conftest*
11116 ac_cv_type_mode_t=yes
11117 else
11118 rm -rf conftest*
11119 ac_cv_type_mode_t=no
11120 fi
11121 rm -f conftest*
11122
11123 fi
11124 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11125 if test $ac_cv_type_mode_t = no; then
11126 cat >> confdefs.h <<\EOF
11127 #define mode_t int
11128 EOF
11129
11130 fi
11131
11132 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11133 echo "configure:11134: checking for off_t" >&5
11134 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11135 echo $ac_n "(cached) $ac_c" 1>&6
11136 else
11137 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure"
11139 #include "confdefs.h"
11140 #include <sys/types.h>
11141 #if STDC_HEADERS
11142 #include <stdlib.h>
11143 #include <stddef.h>
11144 #endif
11145 EOF
11146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11147 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11148 rm -rf conftest*
11149 ac_cv_type_off_t=yes
11150 else
11151 rm -rf conftest*
11152 ac_cv_type_off_t=no
11153 fi
11154 rm -f conftest*
11155
11156 fi
11157 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11158 if test $ac_cv_type_off_t = no; then
11159 cat >> confdefs.h <<\EOF
11160 #define off_t long
11161 EOF
11162
11163 fi
11164
11165 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11166 echo "configure:11167: checking for pid_t" >&5
11167 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11169 else
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11173 #include <sys/types.h>
11174 #if STDC_HEADERS
11175 #include <stdlib.h>
11176 #include <stddef.h>
11177 #endif
11178 EOF
11179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11180 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11181 rm -rf conftest*
11182 ac_cv_type_pid_t=yes
11183 else
11184 rm -rf conftest*
11185 ac_cv_type_pid_t=no
11186 fi
11187 rm -f conftest*
11188
11189 fi
11190 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11191 if test $ac_cv_type_pid_t = no; then
11192 cat >> confdefs.h <<\EOF
11193 #define pid_t int
11194 EOF
11195
11196 fi
11197
11198 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11199 echo "configure:11200: checking for size_t" >&5
11200 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11203 cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure"
11205 #include "confdefs.h"
11206 #include <sys/types.h>
11207 #if STDC_HEADERS
11208 #include <stdlib.h>
11209 #include <stddef.h>
11210 #endif
11211 EOF
11212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11213 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11214 rm -rf conftest*
11215 ac_cv_type_size_t=yes
11216 else
11217 rm -rf conftest*
11218 ac_cv_type_size_t=no
11219 fi
11220 rm -f conftest*
11221
11222 fi
11223 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11224 if test $ac_cv_type_size_t = no; then
11225 cat >> confdefs.h <<\EOF
11226 #define size_t unsigned
11227 EOF
11228
11229 fi
11230
11231 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11232 echo "configure:11233: checking for uid_t in sys/types.h" >&5
11233 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11235 else
11236 cat > conftest.$ac_ext <<EOF
11237 #line 11238 "configure"
11238 #include "confdefs.h"
11239 #include <sys/types.h>
11240 EOF
11241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11242 egrep "uid_t" >/dev/null 2>&1; then
11243 rm -rf conftest*
11244 ac_cv_type_uid_t=yes
11245 else
11246 rm -rf conftest*
11247 ac_cv_type_uid_t=no
11248 fi
11249 rm -f conftest*
11250
11251 fi
11252
11253 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11254 if test $ac_cv_type_uid_t = no; then
11255 cat >> confdefs.h <<\EOF
11256 #define uid_t int
11257 EOF
11258
11259 cat >> confdefs.h <<\EOF
11260 #define gid_t int
11261 EOF
11262
11263 fi
11264
11265
11266 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11267 echo "configure:11268: checking for wchar_t" >&5
11268 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11269 echo $ac_n "(cached) $ac_c" 1>&6
11270 else
11271
11272 cat > conftest.$ac_ext <<EOF
11273 #line 11274 "configure"
11274 #include "confdefs.h"
11275 #include <wchar.h>
11276 int main() {
11277
11278 wchar_t wc, *ws;
11279 wc = L'a';
11280 ws = L"Hello, world!";
11281
11282 ; return 0; }
11283 EOF
11284 if { (eval echo configure:11285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11285 rm -rf conftest*
11286 wx_cv_type_wchar_t=yes
11287 else
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11290 rm -rf conftest*
11291 cat > conftest.$ac_ext <<EOF
11292 #line 11293 "configure"
11293 #include "confdefs.h"
11294 #include <stdlib.h>
11295 int main() {
11296
11297 wchar_t wc, *ws;
11298 wc = L'a';
11299 ws = L"Hello, world!";
11300
11301 ; return 0; }
11302 EOF
11303 if { (eval echo configure:11304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11304 rm -rf conftest*
11305 wx_cv_type_wchar_t=yes
11306 else
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 rm -rf conftest*
11310 wx_cv_type_wchar_t=no
11311 fi
11312 rm -f conftest*
11313
11314 fi
11315 rm -f conftest*
11316
11317 fi
11318
11319 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11320
11321 if test "$wx_cv_type_wchar_t" = "yes"; then
11322 cat >> confdefs.h <<\EOF
11323 #define wxUSE_WCHAR_T 1
11324 EOF
11325
11326 fi
11327
11328
11329 ac_ext=C
11330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11331 ac_cpp='$CXXCPP $CPPFLAGS'
11332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11334 cross_compiling=$ac_cv_prog_cxx_cross
11335
11336 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11337 echo "configure:11338: checking if size_t is unsigned int" >&5
11338 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11340 else
11341 cat > conftest.$ac_ext <<EOF
11342 #line 11343 "configure"
11343 #include "confdefs.h"
11344 #include <stddef.h>
11345 int main() {
11346
11347 return 0; }
11348
11349 struct Foo { void foo(size_t); void foo(unsigned int); };
11350
11351 int bar() {
11352
11353 ; return 0; }
11354 EOF
11355 if { (eval echo configure:11356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11356 rm -rf conftest*
11357 wx_cv_size_t_is_uint=no
11358 else
11359 echo "configure: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 rm -rf conftest*
11362 wx_cv_size_t_is_uint=yes
11363
11364 fi
11365 rm -f conftest*
11366
11367 fi
11368
11369 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11370
11371 if test "$wx_cv_size_t_is_uint" = "yes"; then
11372 cat >> confdefs.h <<\EOF
11373 #define wxSIZE_T_IS_UINT 1
11374 EOF
11375
11376 else
11377 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11378 echo "configure:11379: checking if size_t is unsigned long" >&5
11379 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
11381 else
11382 cat > conftest.$ac_ext <<EOF
11383 #line 11384 "configure"
11384 #include "confdefs.h"
11385 #include <stddef.h>
11386 int main() {
11387
11388 return 0; }
11389
11390 struct Foo { void foo(size_t); void foo(unsigned long); };
11391
11392 int bar() {
11393
11394 ; return 0; }
11395 EOF
11396 if { (eval echo configure:11397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11397 rm -rf conftest*
11398 wx_cv_size_t_is_ulong=no
11399 else
11400 echo "configure: failed program was:" >&5
11401 cat conftest.$ac_ext >&5
11402 rm -rf conftest*
11403 wx_cv_size_t_is_ulong=yes
11404
11405 fi
11406 rm -f conftest*
11407
11408 fi
11409
11410 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11411
11412 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11413 cat >> confdefs.h <<\EOF
11414 #define wxSIZE_T_IS_ULONG 1
11415 EOF
11416
11417 fi
11418 fi
11419
11420 ac_ext=c
11421 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11422 ac_cpp='$CPP $CPPFLAGS'
11423 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11424 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11425 cross_compiling=$ac_cv_prog_cc_cross
11426
11427
11428
11429 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11430 echo "configure:11431: checking for pw_gecos in struct passwd" >&5
11431 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11433 else
11434
11435 cat > conftest.$ac_ext <<EOF
11436 #line 11437 "configure"
11437 #include "confdefs.h"
11438 #include <pwd.h>
11439 int main() {
11440
11441 char *p;
11442 struct passwd *pw;
11443 p = pw->pw_gecos;
11444
11445 ; return 0; }
11446 EOF
11447 if { (eval echo configure:11448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11448 rm -rf conftest*
11449
11450 wx_cv_struct_pw_gecos=yes
11451
11452 else
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 rm -rf conftest*
11456
11457 wx_cv_struct_pw_gecos=no
11458
11459
11460 fi
11461 rm -f conftest*
11462
11463
11464 fi
11465
11466 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11467
11468 if test "$wx_cv_struct_pw_gecos" = "yes"; then
11469 cat >> confdefs.h <<\EOF
11470 #define HAVE_PW_GECOS 1
11471 EOF
11472
11473 fi
11474
11475
11476 echo $ac_n "checking for working const""... $ac_c" 1>&6
11477 echo "configure:11478: checking for working const" >&5
11478 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11479 echo $ac_n "(cached) $ac_c" 1>&6
11480 else
11481 cat > conftest.$ac_ext <<EOF
11482 #line 11483 "configure"
11483 #include "confdefs.h"
11484
11485 int main() {
11486
11487 /* Ultrix mips cc rejects this. */
11488 typedef int charset[2]; const charset x;
11489 /* SunOS 4.1.1 cc rejects this. */
11490 char const *const *ccp;
11491 char **p;
11492 /* NEC SVR4.0.2 mips cc rejects this. */
11493 struct point {int x, y;};
11494 static struct point const zero = {0,0};
11495 /* AIX XL C 1.02.0.0 rejects this.
11496 It does not let you subtract one const X* pointer from another in an arm
11497 of an if-expression whose if-part is not a constant expression */
11498 const char *g = "string";
11499 ccp = &g + (g ? g-g : 0);
11500 /* HPUX 7.0 cc rejects these. */
11501 ++ccp;
11502 p = (char**) ccp;
11503 ccp = (char const *const *) p;
11504 { /* SCO 3.2v4 cc rejects this. */
11505 char *t;
11506 char const *s = 0 ? (char *) 0 : (char const *) 0;
11507
11508 *t++ = 0;
11509 }
11510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11511 int x[] = {25, 17};
11512 const int *foo = &x[0];
11513 ++foo;
11514 }
11515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11516 typedef const int *iptr;
11517 iptr p = 0;
11518 ++p;
11519 }
11520 { /* AIX XL C 1.02.0.0 rejects this saying
11521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11522 struct s { int j; const int *ap[3]; };
11523 struct s *b; b->j = 5;
11524 }
11525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11526 const int foo = 10;
11527 }
11528
11529 ; return 0; }
11530 EOF
11531 if { (eval echo configure:11532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11532 rm -rf conftest*
11533 ac_cv_c_const=yes
11534 else
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11537 rm -rf conftest*
11538 ac_cv_c_const=no
11539 fi
11540 rm -f conftest*
11541 fi
11542
11543 echo "$ac_t""$ac_cv_c_const" 1>&6
11544 if test $ac_cv_c_const = no; then
11545 cat >> confdefs.h <<\EOF
11546 #define const
11547 EOF
11548
11549 fi
11550
11551 echo $ac_n "checking for inline""... $ac_c" 1>&6
11552 echo "configure:11553: checking for inline" >&5
11553 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11554 echo $ac_n "(cached) $ac_c" 1>&6
11555 else
11556 ac_cv_c_inline=no
11557 for ac_kw in inline __inline__ __inline; do
11558 cat > conftest.$ac_ext <<EOF
11559 #line 11560 "configure"
11560 #include "confdefs.h"
11561
11562 int main() {
11563 } $ac_kw foo() {
11564 ; return 0; }
11565 EOF
11566 if { (eval echo configure:11567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11567 rm -rf conftest*
11568 ac_cv_c_inline=$ac_kw; break
11569 else
11570 echo "configure: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 fi
11573 rm -f conftest*
11574 done
11575
11576 fi
11577
11578 echo "$ac_t""$ac_cv_c_inline" 1>&6
11579 case "$ac_cv_c_inline" in
11580 inline | yes) ;;
11581 no) cat >> confdefs.h <<\EOF
11582 #define inline
11583 EOF
11584 ;;
11585 *) cat >> confdefs.h <<EOF
11586 #define inline $ac_cv_c_inline
11587 EOF
11588 ;;
11589 esac
11590
11591
11592 echo $ac_n "checking size of char""... $ac_c" 1>&6
11593 echo "configure:11594: checking size of char" >&5
11594 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11595 echo $ac_n "(cached) $ac_c" 1>&6
11596 else
11597 if test "$cross_compiling" = yes; then
11598 ac_cv_sizeof_char=1
11599 else
11600 cat > conftest.$ac_ext <<EOF
11601 #line 11602 "configure"
11602 #include "confdefs.h"
11603 #include <stdio.h>
11604 main()
11605 {
11606 FILE *f=fopen("conftestval", "w");
11607 if (!f) exit(1);
11608 fprintf(f, "%d\n", sizeof(char));
11609 exit(0);
11610 }
11611 EOF
11612 if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11613 then
11614 ac_cv_sizeof_char=`cat conftestval`
11615 else
11616 echo "configure: failed program was:" >&5
11617 cat conftest.$ac_ext >&5
11618 rm -fr conftest*
11619 ac_cv_sizeof_char=0
11620 fi
11621 rm -fr conftest*
11622 fi
11623
11624 fi
11625 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11626 cat >> confdefs.h <<EOF
11627 #define SIZEOF_CHAR $ac_cv_sizeof_char
11628 EOF
11629
11630
11631 echo $ac_n "checking size of short""... $ac_c" 1>&6
11632 echo "configure:11633: checking size of short" >&5
11633 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11634 echo $ac_n "(cached) $ac_c" 1>&6
11635 else
11636 if test "$cross_compiling" = yes; then
11637 ac_cv_sizeof_short=2
11638 else
11639 cat > conftest.$ac_ext <<EOF
11640 #line 11641 "configure"
11641 #include "confdefs.h"
11642 #include <stdio.h>
11643 main()
11644 {
11645 FILE *f=fopen("conftestval", "w");
11646 if (!f) exit(1);
11647 fprintf(f, "%d\n", sizeof(short));
11648 exit(0);
11649 }
11650 EOF
11651 if { (eval echo configure:11652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11652 then
11653 ac_cv_sizeof_short=`cat conftestval`
11654 else
11655 echo "configure: failed program was:" >&5
11656 cat conftest.$ac_ext >&5
11657 rm -fr conftest*
11658 ac_cv_sizeof_short=0
11659 fi
11660 rm -fr conftest*
11661 fi
11662
11663 fi
11664 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11665 cat >> confdefs.h <<EOF
11666 #define SIZEOF_SHORT $ac_cv_sizeof_short
11667 EOF
11668
11669
11670 echo $ac_n "checking size of int *""... $ac_c" 1>&6
11671 echo "configure:11672: checking size of int *" >&5
11672 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
11674 else
11675 if test "$cross_compiling" = yes; then
11676 ac_cv_sizeof_int_p=4
11677 else
11678 cat > conftest.$ac_ext <<EOF
11679 #line 11680 "configure"
11680 #include "confdefs.h"
11681 #include <stdio.h>
11682 main()
11683 {
11684 FILE *f=fopen("conftestval", "w");
11685 if (!f) exit(1);
11686 fprintf(f, "%d\n", sizeof(int *));
11687 exit(0);
11688 }
11689 EOF
11690 if { (eval echo configure:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11691 then
11692 ac_cv_sizeof_int_p=`cat conftestval`
11693 else
11694 echo "configure: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 rm -fr conftest*
11697 ac_cv_sizeof_int_p=0
11698 fi
11699 rm -fr conftest*
11700 fi
11701
11702 fi
11703 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11704 cat >> confdefs.h <<EOF
11705 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
11706 EOF
11707
11708
11709 echo $ac_n "checking size of int""... $ac_c" 1>&6
11710 echo "configure:11711: checking size of int" >&5
11711 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11712 echo $ac_n "(cached) $ac_c" 1>&6
11713 else
11714 if test "$cross_compiling" = yes; then
11715 ac_cv_sizeof_int=4
11716 else
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11720 #include <stdio.h>
11721 main()
11722 {
11723 FILE *f=fopen("conftestval", "w");
11724 if (!f) exit(1);
11725 fprintf(f, "%d\n", sizeof(int));
11726 exit(0);
11727 }
11728 EOF
11729 if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11730 then
11731 ac_cv_sizeof_int=`cat conftestval`
11732 else
11733 echo "configure: failed program was:" >&5
11734 cat conftest.$ac_ext >&5
11735 rm -fr conftest*
11736 ac_cv_sizeof_int=0
11737 fi
11738 rm -fr conftest*
11739 fi
11740
11741 fi
11742 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11743 cat >> confdefs.h <<EOF
11744 #define SIZEOF_INT $ac_cv_sizeof_int
11745 EOF
11746
11747
11748 echo $ac_n "checking size of long""... $ac_c" 1>&6
11749 echo "configure:11750: checking size of long" >&5
11750 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11751 echo $ac_n "(cached) $ac_c" 1>&6
11752 else
11753 if test "$cross_compiling" = yes; then
11754 ac_cv_sizeof_long=4
11755 else
11756 cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure"
11758 #include "confdefs.h"
11759 #include <stdio.h>
11760 main()
11761 {
11762 FILE *f=fopen("conftestval", "w");
11763 if (!f) exit(1);
11764 fprintf(f, "%d\n", sizeof(long));
11765 exit(0);
11766 }
11767 EOF
11768 if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11769 then
11770 ac_cv_sizeof_long=`cat conftestval`
11771 else
11772 echo "configure: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11774 rm -fr conftest*
11775 ac_cv_sizeof_long=0
11776 fi
11777 rm -fr conftest*
11778 fi
11779
11780 fi
11781 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11782 cat >> confdefs.h <<EOF
11783 #define SIZEOF_LONG $ac_cv_sizeof_long
11784 EOF
11785
11786
11787 echo $ac_n "checking size of long long""... $ac_c" 1>&6
11788 echo "configure:11789: checking size of long long" >&5
11789 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791 else
11792 if test "$cross_compiling" = yes; then
11793 ac_cv_sizeof_long_long=0
11794 else
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 #include <stdio.h>
11799 main()
11800 {
11801 FILE *f=fopen("conftestval", "w");
11802 if (!f) exit(1);
11803 fprintf(f, "%d\n", sizeof(long long));
11804 exit(0);
11805 }
11806 EOF
11807 if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11808 then
11809 ac_cv_sizeof_long_long=`cat conftestval`
11810 else
11811 echo "configure: failed program was:" >&5
11812 cat conftest.$ac_ext >&5
11813 rm -fr conftest*
11814 ac_cv_sizeof_long_long=0
11815 fi
11816 rm -fr conftest*
11817 fi
11818
11819 fi
11820 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11821 cat >> confdefs.h <<EOF
11822 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11823 EOF
11824
11825
11826
11827 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
11828 echo "configure:11829: checking size of wchar_t" >&5
11829 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11831 else
11832
11833 if test "$cross_compiling" = yes; then
11834 wx_cv_sizeof_wchar_t=4
11835
11836 else
11837 cat > conftest.$ac_ext <<EOF
11838 #line 11839 "configure"
11839 #include "confdefs.h"
11840
11841 #ifdef HAVE_WCHAR_H
11842 # include <wchar.h>
11843 #endif
11844 #ifdef HAVE_STDLIB_H
11845 # include <stdlib.h>
11846 #endif
11847 #include <stdio.h>
11848 int main()
11849 {
11850 FILE *f=fopen("conftestval", "w");
11851 if (!f) exit(1);
11852 fprintf(f, "%i", sizeof(wchar_t));
11853 exit(0);
11854 }
11855
11856 EOF
11857 if { (eval echo configure:11858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11858 then
11859 wx_cv_sizeof_wchar_t=`cat conftestval`
11860 else
11861 echo "configure: failed program was:" >&5
11862 cat conftest.$ac_ext >&5
11863 rm -fr conftest*
11864 wx_cv_sizeof_wchar_t=0
11865 fi
11866 rm -fr conftest*
11867 fi
11868
11869
11870 fi
11871
11872 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11873
11874 cat >> confdefs.h <<EOF
11875 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
11876 EOF
11877
11878
11879 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11880 echo "configure:11881: checking whether byte ordering is bigendian" >&5
11881 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11882 echo $ac_n "(cached) $ac_c" 1>&6
11883 else
11884 ac_cv_c_bigendian=unknown
11885 # See if sys/param.h defines the BYTE_ORDER macro.
11886 cat > conftest.$ac_ext <<EOF
11887 #line 11888 "configure"
11888 #include "confdefs.h"
11889 #include <sys/types.h>
11890 #include <sys/param.h>
11891 int main() {
11892
11893 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11894 bogus endian macros
11895 #endif
11896 ; return 0; }
11897 EOF
11898 if { (eval echo configure:11899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11899 rm -rf conftest*
11900 # It does; now see whether it defined to BIG_ENDIAN or not.
11901 cat > conftest.$ac_ext <<EOF
11902 #line 11903 "configure"
11903 #include "confdefs.h"
11904 #include <sys/types.h>
11905 #include <sys/param.h>
11906 int main() {
11907
11908 #if BYTE_ORDER != BIG_ENDIAN
11909 not big endian
11910 #endif
11911 ; return 0; }
11912 EOF
11913 if { (eval echo configure:11914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11914 rm -rf conftest*
11915 ac_cv_c_bigendian=yes
11916 else
11917 echo "configure: failed program was:" >&5
11918 cat conftest.$ac_ext >&5
11919 rm -rf conftest*
11920 ac_cv_c_bigendian=no
11921 fi
11922 rm -f conftest*
11923 else
11924 echo "configure: failed program was:" >&5
11925 cat conftest.$ac_ext >&5
11926 fi
11927 rm -f conftest*
11928 if test $ac_cv_c_bigendian = unknown; then
11929 if test "$cross_compiling" = yes; then
11930 ac_cv_c_bigendian=unknown
11931 else
11932 cat > conftest.$ac_ext <<EOF
11933 #line 11934 "configure"
11934 #include "confdefs.h"
11935 main () {
11936 /* Are we little or big endian? From Harbison&Steele. */
11937 union
11938 {
11939 long l;
11940 char c[sizeof (long)];
11941 } u;
11942 u.l = 1;
11943 exit (u.c[sizeof (long) - 1] == 1);
11944 }
11945 EOF
11946 if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11947 then
11948 ac_cv_c_bigendian=no
11949 else
11950 echo "configure: failed program was:" >&5
11951 cat conftest.$ac_ext >&5
11952 rm -fr conftest*
11953 ac_cv_c_bigendian=yes
11954 fi
11955 rm -fr conftest*
11956 fi
11957
11958 fi
11959 fi
11960
11961 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11962 if test $ac_cv_c_bigendian = unknown; then
11963 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
11964 fi
11965 if test $ac_cv_c_bigendian = yes; then
11966 cat >> confdefs.h <<\EOF
11967 #define WORDS_BIGENDIAN 1
11968 EOF
11969
11970 fi
11971
11972
11973
11974 if test "$cross_compiling" = "yes"; then
11975 cat >> confdefs.h <<\EOF
11976 #define wxUSE_IOSTREAMH 1
11977 EOF
11978
11979 else
11980
11981 ac_ext=C
11982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11983 ac_cpp='$CXXCPP $CPPFLAGS'
11984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11986 cross_compiling=$ac_cv_prog_cxx_cross
11987
11988
11989 for ac_hdr in iostream
11990 do
11991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11993 echo "configure:11994: checking for $ac_hdr" >&5
11994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11996 else
11997 cat > conftest.$ac_ext <<EOF
11998 #line 11999 "configure"
11999 #include "confdefs.h"
12000 #include <$ac_hdr>
12001 EOF
12002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12003 { (eval echo configure:12004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12005 if test -z "$ac_err"; then
12006 rm -rf conftest*
12007 eval "ac_cv_header_$ac_safe=yes"
12008 else
12009 echo "$ac_err" >&5
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12012 rm -rf conftest*
12013 eval "ac_cv_header_$ac_safe=no"
12014 fi
12015 rm -f conftest*
12016 fi
12017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12018 echo "$ac_t""yes" 1>&6
12019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12020 cat >> confdefs.h <<EOF
12021 #define $ac_tr_hdr 1
12022 EOF
12023
12024 else
12025 echo "$ac_t""no" 1>&6
12026 fi
12027 done
12028
12029
12030 if test "$ac_cv_header_iostream" = "yes" ; then
12031 :
12032 else
12033 cat >> confdefs.h <<\EOF
12034 #define wxUSE_IOSTREAMH 1
12035 EOF
12036
12037 fi
12038
12039 ac_ext=c
12040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12041 ac_cpp='$CPP $CPPFLAGS'
12042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12044 cross_compiling=$ac_cv_prog_cc_cross
12045
12046 fi
12047
12048
12049
12050 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12051 echo "configure:12052: checking if C++ compiler supports bool" >&5
12052 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12054 else
12055
12056
12057 ac_ext=C
12058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12059 ac_cpp='$CXXCPP $CPPFLAGS'
12060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12062 cross_compiling=$ac_cv_prog_cxx_cross
12063
12064
12065 cat > conftest.$ac_ext <<EOF
12066 #line 12067 "configure"
12067 #include "confdefs.h"
12068
12069
12070 int main() {
12071
12072 bool b = true;
12073
12074 return 0;
12075
12076 ; return 0; }
12077 EOF
12078 if { (eval echo configure:12079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12079 rm -rf conftest*
12080
12081 wx_cv_cpp_bool=yes
12082
12083 else
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 rm -rf conftest*
12087
12088 wx_cv_cpp_bool=no
12089
12090
12091 fi
12092 rm -f conftest*
12093
12094 ac_ext=c
12095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12096 ac_cpp='$CPP $CPPFLAGS'
12097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12099 cross_compiling=$ac_cv_prog_cc_cross
12100
12101
12102 fi
12103
12104 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12105
12106 if test "$wx_cv_cpp_bool" = "yes"; then
12107 cat >> confdefs.h <<\EOF
12108 #define HAVE_BOOL 1
12109 EOF
12110
12111 fi
12112
12113
12114
12115 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12116 echo "configure:12117: checking for wcslen in -lc" >&5
12117 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
12120 else
12121 ac_save_LIBS="$LIBS"
12122 LIBS="-lc $LIBS"
12123 cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure"
12125 #include "confdefs.h"
12126 /* Override any gcc2 internal prototype to avoid an error. */
12127 /* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
12129 char wcslen();
12130
12131 int main() {
12132 wcslen()
12133 ; return 0; }
12134 EOF
12135 if { (eval echo configure:12136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12136 rm -rf conftest*
12137 eval "ac_cv_lib_$ac_lib_var=yes"
12138 else
12139 echo "configure: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12141 rm -rf conftest*
12142 eval "ac_cv_lib_$ac_lib_var=no"
12143 fi
12144 rm -f conftest*
12145 LIBS="$ac_save_LIBS"
12146
12147 fi
12148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12149 echo "$ac_t""yes" 1>&6
12150
12151 cat >> confdefs.h <<\EOF
12152 #define HAVE_WCSLEN 1
12153 EOF
12154
12155 WCHAR_LINK=""
12156
12157 else
12158 echo "$ac_t""no" 1>&6
12159
12160 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12161 echo "configure:12162: checking for wcslen in -lw" >&5
12162 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12164 echo $ac_n "(cached) $ac_c" 1>&6
12165 else
12166 ac_save_LIBS="$LIBS"
12167 LIBS="-lw $LIBS"
12168 cat > conftest.$ac_ext <<EOF
12169 #line 12170 "configure"
12170 #include "confdefs.h"
12171 /* Override any gcc2 internal prototype to avoid an error. */
12172 /* We use char because int might match the return type of a gcc2
12173 builtin and then its argument prototype would still apply. */
12174 char wcslen();
12175
12176 int main() {
12177 wcslen()
12178 ; return 0; }
12179 EOF
12180 if { (eval echo configure:12181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12181 rm -rf conftest*
12182 eval "ac_cv_lib_$ac_lib_var=yes"
12183 else
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 rm -rf conftest*
12187 eval "ac_cv_lib_$ac_lib_var=no"
12188 fi
12189 rm -f conftest*
12190 LIBS="$ac_save_LIBS"
12191
12192 fi
12193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12194 echo "$ac_t""yes" 1>&6
12195
12196 cat >> confdefs.h <<\EOF
12197 #define HAVE_WCSLEN 1
12198 EOF
12199
12200 WCHAR_LINK="-lw"
12201
12202 else
12203 echo "$ac_t""no" 1>&6
12204 fi
12205
12206
12207 fi
12208
12209
12210 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12211 echo "configure:12212: checking for vprintf" >&5
12212 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12213 echo $ac_n "(cached) $ac_c" 1>&6
12214 else
12215 cat > conftest.$ac_ext <<EOF
12216 #line 12217 "configure"
12217 #include "confdefs.h"
12218 /* System header to define __stub macros and hopefully few prototypes,
12219 which can conflict with char vprintf(); below. */
12220 #include <assert.h>
12221 /* Override any gcc2 internal prototype to avoid an error. */
12222 /* We use char because int might match the return type of a gcc2
12223 builtin and then its argument prototype would still apply. */
12224 char vprintf();
12225
12226 int main() {
12227
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12232 choke me
12233 #else
12234 vprintf();
12235 #endif
12236
12237 ; return 0; }
12238 EOF
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12240 rm -rf conftest*
12241 eval "ac_cv_func_vprintf=yes"
12242 else
12243 echo "configure: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12245 rm -rf conftest*
12246 eval "ac_cv_func_vprintf=no"
12247 fi
12248 rm -f conftest*
12249 fi
12250
12251 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12252 echo "$ac_t""yes" 1>&6
12253 cat >> confdefs.h <<\EOF
12254 #define HAVE_VPRINTF 1
12255 EOF
12256
12257 else
12258 echo "$ac_t""no" 1>&6
12259 fi
12260
12261 if test "$ac_cv_func_vprintf" != yes; then
12262 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12263 echo "configure:12264: checking for _doprnt" >&5
12264 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12265 echo $ac_n "(cached) $ac_c" 1>&6
12266 else
12267 cat > conftest.$ac_ext <<EOF
12268 #line 12269 "configure"
12269 #include "confdefs.h"
12270 /* System header to define __stub macros and hopefully few prototypes,
12271 which can conflict with char _doprnt(); below. */
12272 #include <assert.h>
12273 /* Override any gcc2 internal prototype to avoid an error. */
12274 /* We use char because int might match the return type of a gcc2
12275 builtin and then its argument prototype would still apply. */
12276 char _doprnt();
12277
12278 int main() {
12279
12280 /* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
12283 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12284 choke me
12285 #else
12286 _doprnt();
12287 #endif
12288
12289 ; return 0; }
12290 EOF
12291 if { (eval echo configure:12292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12292 rm -rf conftest*
12293 eval "ac_cv_func__doprnt=yes"
12294 else
12295 echo "configure: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 rm -rf conftest*
12298 eval "ac_cv_func__doprnt=no"
12299 fi
12300 rm -f conftest*
12301 fi
12302
12303 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12304 echo "$ac_t""yes" 1>&6
12305 cat >> confdefs.h <<\EOF
12306 #define HAVE_DOPRNT 1
12307 EOF
12308
12309 else
12310 echo "$ac_t""no" 1>&6
12311 fi
12312
12313 fi
12314
12315
12316
12317
12318
12319
12320
12321 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12322 echo "configure:12323: checking for vsnprintf" >&5
12323 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12324 echo $ac_n "(cached) $ac_c" 1>&6
12325 else
12326
12327 cat > conftest.$ac_ext <<EOF
12328 #line 12329 "configure"
12329 #include "confdefs.h"
12330
12331 #include <stdio.h>
12332 #include <stdarg.h>
12333
12334 int main() {
12335
12336 int wx_test_vsnprintf(const char *, ...);
12337
12338 wx_test_vsnprintf("%s");
12339 return 0;
12340 }
12341
12342 int wx_test_vsnprintf(const char *fmt, ...)
12343 {
12344 char *s;
12345
12346 va_list argp;
12347 va_start(argp, fmt);
12348 vsnprintf(s, 42, fmt, argp);
12349 va_end(argp);
12350
12351 ; return 0; }
12352 EOF
12353 if { (eval echo configure:12354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12354 rm -rf conftest*
12355
12356 wx_cv_func_vsnprintf=yes
12357
12358 else
12359 echo "configure: failed program was:" >&5
12360 cat conftest.$ac_ext >&5
12361 rm -rf conftest*
12362
12363 cat > conftest.$ac_ext <<EOF
12364 #line 12365 "configure"
12365 #include "confdefs.h"
12366
12367 #include <stdio.h>
12368 #include <stdarg.h>
12369
12370 int main() {
12371
12372 int wx_test_vsnprintf(const char *, ...);
12373
12374 wx_test_vsnprintf("%s");
12375 return 0;
12376 }
12377
12378 int wx_test_vsnprintf(const char *fmt, ...)
12379 {
12380 char *s;
12381
12382 va_list argp;
12383 va_start(argp, fmt);
12384 _vsnprintf(s, 42, fmt, argp);
12385 va_end(argp);
12386
12387 ; return 0; }
12388 EOF
12389 if { (eval echo configure:12390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12390 rm -rf conftest*
12391
12392 wx_cv_func_vsnprintf=yes
12393
12394 else
12395 echo "configure: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12397 rm -rf conftest*
12398
12399 wx_cv_func_vsnprintf=no
12400
12401 fi
12402 rm -f conftest*
12403
12404 fi
12405 rm -f conftest*
12406
12407 fi
12408
12409 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12410
12411 if test "$wx_cv_func_vsnprintf" = yes; then
12412 cat >> confdefs.h <<\EOF
12413 #define HAVE_VSNPRINTF 1
12414 EOF
12415
12416 else
12417 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12418 fi
12419
12420 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12421 echo "configure:12422: checking for vsscanf" >&5
12422 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12424 else
12425
12426 cat > conftest.$ac_ext <<EOF
12427 #line 12428 "configure"
12428 #include "confdefs.h"
12429
12430 #include <stdio.h>
12431 #include <stdarg.h>
12432
12433 int main() {
12434
12435 int wx_test_vsscanf(const char *, ...);
12436
12437 wx_test_vsscanf("%d");
12438 return 0;
12439 }
12440
12441 int wx_test_vsscanf(const char *fmt, ...)
12442 {
12443 va_list argp;
12444 va_start(argp, fmt);
12445 vsscanf("42", fmt, argp);
12446 va_end(argp);
12447
12448 ; return 0; }
12449 EOF
12450 if { (eval echo configure:12451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12451 rm -rf conftest*
12452
12453 wx_cv_func_vsscanf=yes
12454
12455 else
12456 echo "configure: failed program was:" >&5
12457 cat conftest.$ac_ext >&5
12458 rm -rf conftest*
12459
12460 wx_cv_func_vsscanf=no
12461
12462 fi
12463 rm -f conftest*
12464
12465 fi
12466
12467 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12468
12469 if test "$wx_cv_func_vsscanf" = yes; then
12470 cat >> confdefs.h <<\EOF
12471 #define HAVE_VSSCANF 1
12472 EOF
12473
12474 fi
12475
12476 if test "$TOOLKIT" != "MSW"; then
12477
12478
12479
12480 ac_ext=C
12481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12482 ac_cpp='$CXXCPP $CPPFLAGS'
12483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12485 cross_compiling=$ac_cv_prog_cxx_cross
12486
12487 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12488 echo "configure:12489: checking if iconv() takes char**" >&5
12489 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12490 echo $ac_n "(cached) $ac_c" 1>&6
12491 else
12492
12493 cat > conftest.$ac_ext <<EOF
12494 #line 12495 "configure"
12495 #include "confdefs.h"
12496 #include <iconv.h>
12497 int main() {
12498
12499 char **inbuf, **outbuf;
12500 iconv_t cd;
12501 size_t insz, outsz;
12502 iconv(cd, inbuf, &insz, outbuf, &outsz);
12503
12504 ; return 0; }
12505 EOF
12506 if { (eval echo configure:12507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12507 rm -rf conftest*
12508 wx_cv_iconv_takes_char=yes
12509 else
12510 echo "configure: failed program was:" >&5
12511 cat conftest.$ac_ext >&5
12512 rm -rf conftest*
12513 wx_cv_iconv_takes_char=no
12514 fi
12515 rm -f conftest*
12516
12517 fi
12518
12519 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12520 ac_ext=c
12521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12522 ac_cpp='$CPP $CPPFLAGS'
12523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12525 cross_compiling=$ac_cv_prog_cc_cross
12526
12527 if test "$wx_cv_iconv_takes_char" = yes ; then
12528 cat >> confdefs.h <<\EOF
12529 #define WX_ICONV_TAKES_CHAR 1
12530 EOF
12531
12532 fi
12533
12534
12535 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12536 for ac_func in sigaction
12537 do
12538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12539 echo "configure:12540: checking for $ac_func" >&5
12540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12541 echo $ac_n "(cached) $ac_c" 1>&6
12542 else
12543 cat > conftest.$ac_ext <<EOF
12544 #line 12545 "configure"
12545 #include "confdefs.h"
12546 /* System header to define __stub macros and hopefully few prototypes,
12547 which can conflict with char $ac_func(); below. */
12548 #include <assert.h>
12549 /* Override any gcc2 internal prototype to avoid an error. */
12550 /* We use char because int might match the return type of a gcc2
12551 builtin and then its argument prototype would still apply. */
12552 char $ac_func();
12553
12554 int main() {
12555
12556 /* The GNU C library defines this for functions which it implements
12557 to always fail with ENOSYS. Some functions are actually named
12558 something starting with __ and the normal name is an alias. */
12559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12560 choke me
12561 #else
12562 $ac_func();
12563 #endif
12564
12565 ; return 0; }
12566 EOF
12567 if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12568 rm -rf conftest*
12569 eval "ac_cv_func_$ac_func=yes"
12570 else
12571 echo "configure: failed program was:" >&5
12572 cat conftest.$ac_ext >&5
12573 rm -rf conftest*
12574 eval "ac_cv_func_$ac_func=no"
12575 fi
12576 rm -f conftest*
12577 fi
12578
12579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12580 echo "$ac_t""yes" 1>&6
12581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12582 cat >> confdefs.h <<EOF
12583 #define $ac_tr_func 1
12584 EOF
12585
12586 else
12587 echo "$ac_t""no" 1>&6
12588 fi
12589 done
12590
12591
12592 if test "$ac_cv_func_sigaction" = "no"; then
12593 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
12594 wxUSE_ON_FATAL_EXCEPTION=no
12595 fi
12596
12597 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12598
12599 ac_ext=C
12600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12601 ac_cpp='$CXXCPP $CPPFLAGS'
12602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12604 cross_compiling=$ac_cv_prog_cxx_cross
12605
12606
12607 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
12608 echo "configure:12609: checking for sa_handler type" >&5
12609 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12610 echo $ac_n "(cached) $ac_c" 1>&6
12611 else
12612
12613 cat > conftest.$ac_ext <<EOF
12614 #line 12615 "configure"
12615 #include "confdefs.h"
12616 #include <signal.h>
12617 int main() {
12618
12619 extern void testSigHandler(int);
12620
12621 struct sigaction sa;
12622 sa.sa_handler = testSigHandler;
12623
12624 ; return 0; }
12625 EOF
12626 if { (eval echo configure:12627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12627 rm -rf conftest*
12628
12629 wx_cv_type_sa_handler=int
12630
12631 else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635
12636 wx_cv_type_sa_handler=void
12637
12638 fi
12639 rm -f conftest*
12640
12641 fi
12642
12643 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
12644
12645 ac_ext=c
12646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12647 ac_cpp='$CPP $CPPFLAGS'
12648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12650 cross_compiling=$ac_cv_prog_cc_cross
12651
12652
12653 cat >> confdefs.h <<EOF
12654 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12655 EOF
12656
12657 fi
12658 fi
12659
12660 for ac_func in vfork
12661 do
12662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12663 echo "configure:12664: checking for $ac_func" >&5
12664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12665 echo $ac_n "(cached) $ac_c" 1>&6
12666 else
12667 cat > conftest.$ac_ext <<EOF
12668 #line 12669 "configure"
12669 #include "confdefs.h"
12670 /* System header to define __stub macros and hopefully few prototypes,
12671 which can conflict with char $ac_func(); below. */
12672 #include <assert.h>
12673 /* Override any gcc2 internal prototype to avoid an error. */
12674 /* We use char because int might match the return type of a gcc2
12675 builtin and then its argument prototype would still apply. */
12676 char $ac_func();
12677
12678 int main() {
12679
12680 /* The GNU C library defines this for functions which it implements
12681 to always fail with ENOSYS. Some functions are actually named
12682 something starting with __ and the normal name is an alias. */
12683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12684 choke me
12685 #else
12686 $ac_func();
12687 #endif
12688
12689 ; return 0; }
12690 EOF
12691 if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12692 rm -rf conftest*
12693 eval "ac_cv_func_$ac_func=yes"
12694 else
12695 echo "configure: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12697 rm -rf conftest*
12698 eval "ac_cv_func_$ac_func=no"
12699 fi
12700 rm -f conftest*
12701 fi
12702
12703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12704 echo "$ac_t""yes" 1>&6
12705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12706 cat >> confdefs.h <<EOF
12707 #define $ac_tr_func 1
12708 EOF
12709
12710 else
12711 echo "$ac_t""no" 1>&6
12712 fi
12713 done
12714
12715
12716 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12717 for ac_func in fcntl flock
12718 do
12719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12720 echo "configure:12721: checking for $ac_func" >&5
12721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12722 echo $ac_n "(cached) $ac_c" 1>&6
12723 else
12724 cat > conftest.$ac_ext <<EOF
12725 #line 12726 "configure"
12726 #include "confdefs.h"
12727 /* System header to define __stub macros and hopefully few prototypes,
12728 which can conflict with char $ac_func(); below. */
12729 #include <assert.h>
12730 /* Override any gcc2 internal prototype to avoid an error. */
12731 /* We use char because int might match the return type of a gcc2
12732 builtin and then its argument prototype would still apply. */
12733 char $ac_func();
12734
12735 int main() {
12736
12737 /* The GNU C library defines this for functions which it implements
12738 to always fail with ENOSYS. Some functions are actually named
12739 something starting with __ and the normal name is an alias. */
12740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12741 choke me
12742 #else
12743 $ac_func();
12744 #endif
12745
12746 ; return 0; }
12747 EOF
12748 if { (eval echo configure:12749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12749 rm -rf conftest*
12750 eval "ac_cv_func_$ac_func=yes"
12751 else
12752 echo "configure: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12754 rm -rf conftest*
12755 eval "ac_cv_func_$ac_func=no"
12756 fi
12757 rm -f conftest*
12758 fi
12759
12760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12761 echo "$ac_t""yes" 1>&6
12762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12763 cat >> confdefs.h <<EOF
12764 #define $ac_tr_func 1
12765 EOF
12766 break
12767 else
12768 echo "$ac_t""no" 1>&6
12769 fi
12770 done
12771
12772
12773 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
12774 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
12775 wxUSE_SNGLINST_CHECKER=no
12776 fi
12777 fi
12778
12779 for ac_func in timegm
12780 do
12781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12782 echo "configure:12783: checking for $ac_func" >&5
12783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12784 echo $ac_n "(cached) $ac_c" 1>&6
12785 else
12786 cat > conftest.$ac_ext <<EOF
12787 #line 12788 "configure"
12788 #include "confdefs.h"
12789 /* System header to define __stub macros and hopefully few prototypes,
12790 which can conflict with char $ac_func(); below. */
12791 #include <assert.h>
12792 /* Override any gcc2 internal prototype to avoid an error. */
12793 /* We use char because int might match the return type of a gcc2
12794 builtin and then its argument prototype would still apply. */
12795 char $ac_func();
12796
12797 int main() {
12798
12799 /* The GNU C library defines this for functions which it implements
12800 to always fail with ENOSYS. Some functions are actually named
12801 something starting with __ and the normal name is an alias. */
12802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12803 choke me
12804 #else
12805 $ac_func();
12806 #endif
12807
12808 ; return 0; }
12809 EOF
12810 if { (eval echo configure:12811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12811 rm -rf conftest*
12812 eval "ac_cv_func_$ac_func=yes"
12813 else
12814 echo "configure: failed program was:" >&5
12815 cat conftest.$ac_ext >&5
12816 rm -rf conftest*
12817 eval "ac_cv_func_$ac_func=no"
12818 fi
12819 rm -f conftest*
12820 fi
12821
12822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12823 echo "$ac_t""yes" 1>&6
12824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12825 cat >> confdefs.h <<EOF
12826 #define $ac_tr_func 1
12827 EOF
12828
12829 else
12830 echo "$ac_t""no" 1>&6
12831 fi
12832 done
12833
12834
12835 for ac_func in putenv setenv
12836 do
12837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12838 echo "configure:12839: checking for $ac_func" >&5
12839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12840 echo $ac_n "(cached) $ac_c" 1>&6
12841 else
12842 cat > conftest.$ac_ext <<EOF
12843 #line 12844 "configure"
12844 #include "confdefs.h"
12845 /* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char $ac_func(); below. */
12847 #include <assert.h>
12848 /* Override any gcc2 internal prototype to avoid an error. */
12849 /* We use char because int might match the return type of a gcc2
12850 builtin and then its argument prototype would still apply. */
12851 char $ac_func();
12852
12853 int main() {
12854
12855 /* The GNU C library defines this for functions which it implements
12856 to always fail with ENOSYS. Some functions are actually named
12857 something starting with __ and the normal name is an alias. */
12858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12859 choke me
12860 #else
12861 $ac_func();
12862 #endif
12863
12864 ; return 0; }
12865 EOF
12866 if { (eval echo configure:12867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12867 rm -rf conftest*
12868 eval "ac_cv_func_$ac_func=yes"
12869 else
12870 echo "configure: failed program was:" >&5
12871 cat conftest.$ac_ext >&5
12872 rm -rf conftest*
12873 eval "ac_cv_func_$ac_func=no"
12874 fi
12875 rm -f conftest*
12876 fi
12877
12878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12879 echo "$ac_t""yes" 1>&6
12880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12881 cat >> confdefs.h <<EOF
12882 #define $ac_tr_func 1
12883 EOF
12884 break
12885 else
12886 echo "$ac_t""no" 1>&6
12887 fi
12888 done
12889
12890
12891 HAVE_SOME_SLEEP_FUNC=0
12892 if test "$USE_BEOS" = 1; then
12893 cat >> confdefs.h <<\EOF
12894 #define HAVE_SLEEP 1
12895 EOF
12896
12897 HAVE_SOME_SLEEP_FUNC=1
12898 fi
12899
12900 if test "$USE_MAC" = 1; then
12901 cat >> confdefs.h <<\EOF
12902 #define HAVE_USLEEP 1
12903 EOF
12904
12905 HAVE_SOME_SLEEP_FUNC=1
12906 fi
12907
12908 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12909 POSIX4_LINK=
12910 for ac_func in nanosleep
12911 do
12912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12913 echo "configure:12914: checking for $ac_func" >&5
12914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12915 echo $ac_n "(cached) $ac_c" 1>&6
12916 else
12917 cat > conftest.$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12920 /* System header to define __stub macros and hopefully few prototypes,
12921 which can conflict with char $ac_func(); below. */
12922 #include <assert.h>
12923 /* Override any gcc2 internal prototype to avoid an error. */
12924 /* We use char because int might match the return type of a gcc2
12925 builtin and then its argument prototype would still apply. */
12926 char $ac_func();
12927
12928 int main() {
12929
12930 /* The GNU C library defines this for functions which it implements
12931 to always fail with ENOSYS. Some functions are actually named
12932 something starting with __ and the normal name is an alias. */
12933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12934 choke me
12935 #else
12936 $ac_func();
12937 #endif
12938
12939 ; return 0; }
12940 EOF
12941 if { (eval echo configure:12942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12942 rm -rf conftest*
12943 eval "ac_cv_func_$ac_func=yes"
12944 else
12945 echo "configure: failed program was:" >&5
12946 cat conftest.$ac_ext >&5
12947 rm -rf conftest*
12948 eval "ac_cv_func_$ac_func=no"
12949 fi
12950 rm -f conftest*
12951 fi
12952
12953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12954 echo "$ac_t""yes" 1>&6
12955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12956 cat >> confdefs.h <<EOF
12957 #define $ac_tr_func 1
12958 EOF
12959 cat >> confdefs.h <<\EOF
12960 #define HAVE_NANOSLEEP 1
12961 EOF
12962
12963 else
12964 echo "$ac_t""no" 1>&6
12965 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
12966 echo "configure:12967: checking for nanosleep in -lposix4" >&5
12967 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
12968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12969 echo $ac_n "(cached) $ac_c" 1>&6
12970 else
12971 ac_save_LIBS="$LIBS"
12972 LIBS="-lposix4 $LIBS"
12973 cat > conftest.$ac_ext <<EOF
12974 #line 12975 "configure"
12975 #include "confdefs.h"
12976 /* Override any gcc2 internal prototype to avoid an error. */
12977 /* We use char because int might match the return type of a gcc2
12978 builtin and then its argument prototype would still apply. */
12979 char nanosleep();
12980
12981 int main() {
12982 nanosleep()
12983 ; return 0; }
12984 EOF
12985 if { (eval echo configure:12986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12986 rm -rf conftest*
12987 eval "ac_cv_lib_$ac_lib_var=yes"
12988 else
12989 echo "configure: failed program was:" >&5
12990 cat conftest.$ac_ext >&5
12991 rm -rf conftest*
12992 eval "ac_cv_lib_$ac_lib_var=no"
12993 fi
12994 rm -f conftest*
12995 LIBS="$ac_save_LIBS"
12996
12997 fi
12998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12999 echo "$ac_t""yes" 1>&6
13000
13001 cat >> confdefs.h <<\EOF
13002 #define HAVE_NANOSLEEP 1
13003 EOF
13004
13005 POSIX4_LINK="-lposix4"
13006
13007 else
13008 echo "$ac_t""no" 1>&6
13009
13010 for ac_func in usleep
13011 do
13012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13013 echo "configure:13014: checking for $ac_func" >&5
13014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13015 echo $ac_n "(cached) $ac_c" 1>&6
13016 else
13017 cat > conftest.$ac_ext <<EOF
13018 #line 13019 "configure"
13019 #include "confdefs.h"
13020 /* System header to define __stub macros and hopefully few prototypes,
13021 which can conflict with char $ac_func(); below. */
13022 #include <assert.h>
13023 /* Override any gcc2 internal prototype to avoid an error. */
13024 /* We use char because int might match the return type of a gcc2
13025 builtin and then its argument prototype would still apply. */
13026 char $ac_func();
13027
13028 int main() {
13029
13030 /* The GNU C library defines this for functions which it implements
13031 to always fail with ENOSYS. Some functions are actually named
13032 something starting with __ and the normal name is an alias. */
13033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13034 choke me
13035 #else
13036 $ac_func();
13037 #endif
13038
13039 ; return 0; }
13040 EOF
13041 if { (eval echo configure:13042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13042 rm -rf conftest*
13043 eval "ac_cv_func_$ac_func=yes"
13044 else
13045 echo "configure: failed program was:" >&5
13046 cat conftest.$ac_ext >&5
13047 rm -rf conftest*
13048 eval "ac_cv_func_$ac_func=no"
13049 fi
13050 rm -f conftest*
13051 fi
13052
13053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13054 echo "$ac_t""yes" 1>&6
13055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13056 cat >> confdefs.h <<EOF
13057 #define $ac_tr_func 1
13058 EOF
13059 cat >> confdefs.h <<\EOF
13060 #define HAVE_USLEEP 1
13061 EOF
13062
13063 else
13064 echo "$ac_t""no" 1>&6
13065 echo "configure: warning: wxSleep() function will not work" 1>&2
13066
13067 fi
13068 done
13069
13070
13071
13072 fi
13073
13074
13075
13076 fi
13077 done
13078
13079 fi
13080
13081 for ac_func in uname gethostname
13082 do
13083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13084 echo "configure:13085: checking for $ac_func" >&5
13085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13086 echo $ac_n "(cached) $ac_c" 1>&6
13087 else
13088 cat > conftest.$ac_ext <<EOF
13089 #line 13090 "configure"
13090 #include "confdefs.h"
13091 /* System header to define __stub macros and hopefully few prototypes,
13092 which can conflict with char $ac_func(); below. */
13093 #include <assert.h>
13094 /* Override any gcc2 internal prototype to avoid an error. */
13095 /* We use char because int might match the return type of a gcc2
13096 builtin and then its argument prototype would still apply. */
13097 char $ac_func();
13098
13099 int main() {
13100
13101 /* The GNU C library defines this for functions which it implements
13102 to always fail with ENOSYS. Some functions are actually named
13103 something starting with __ and the normal name is an alias. */
13104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13105 choke me
13106 #else
13107 $ac_func();
13108 #endif
13109
13110 ; return 0; }
13111 EOF
13112 if { (eval echo configure:13113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13113 rm -rf conftest*
13114 eval "ac_cv_func_$ac_func=yes"
13115 else
13116 echo "configure: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13118 rm -rf conftest*
13119 eval "ac_cv_func_$ac_func=no"
13120 fi
13121 rm -f conftest*
13122 fi
13123
13124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13125 echo "$ac_t""yes" 1>&6
13126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13127 cat >> confdefs.h <<EOF
13128 #define $ac_tr_func 1
13129 EOF
13130 break
13131 else
13132 echo "$ac_t""no" 1>&6
13133 fi
13134 done
13135
13136
13137
13138 ac_ext=C
13139 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13140 ac_cpp='$CXXCPP $CPPFLAGS'
13141 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13142 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13143 cross_compiling=$ac_cv_prog_cxx_cross
13144
13145
13146 for ac_func in strtok_r
13147 do
13148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13149 echo "configure:13150: checking for $ac_func" >&5
13150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13151 echo $ac_n "(cached) $ac_c" 1>&6
13152 else
13153 cat > conftest.$ac_ext <<EOF
13154 #line 13155 "configure"
13155 #include "confdefs.h"
13156 /* System header to define __stub macros and hopefully few prototypes,
13157 which can conflict with char $ac_func(); below. */
13158 #include <assert.h>
13159 /* Override any gcc2 internal prototype to avoid an error. */
13160 #ifdef __cplusplus
13161 extern "C"
13162 #endif
13163 /* We use char because int might match the return type of a gcc2
13164 builtin and then its argument prototype would still apply. */
13165 char $ac_func();
13166
13167 int main() {
13168
13169 /* The GNU C library defines this for functions which it implements
13170 to always fail with ENOSYS. Some functions are actually named
13171 something starting with __ and the normal name is an alias. */
13172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13173 choke me
13174 #else
13175 $ac_func();
13176 #endif
13177
13178 ; return 0; }
13179 EOF
13180 if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=yes"
13183 else
13184 echo "configure: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13186 rm -rf conftest*
13187 eval "ac_cv_func_$ac_func=no"
13188 fi
13189 rm -f conftest*
13190 fi
13191
13192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13193 echo "$ac_t""yes" 1>&6
13194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13195 cat >> confdefs.h <<EOF
13196 #define $ac_tr_func 1
13197 EOF
13198
13199 else
13200 echo "$ac_t""no" 1>&6
13201 fi
13202 done
13203
13204
13205 ac_ext=c
13206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13207 ac_cpp='$CPP $CPPFLAGS'
13208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13210 cross_compiling=$ac_cv_prog_cc_cross
13211
13212
13213 INET_LINK=
13214 for ac_func in inet_addr
13215 do
13216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13217 echo "configure:13218: checking for $ac_func" >&5
13218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13219 echo $ac_n "(cached) $ac_c" 1>&6
13220 else
13221 cat > conftest.$ac_ext <<EOF
13222 #line 13223 "configure"
13223 #include "confdefs.h"
13224 /* System header to define __stub macros and hopefully few prototypes,
13225 which can conflict with char $ac_func(); below. */
13226 #include <assert.h>
13227 /* Override any gcc2 internal prototype to avoid an error. */
13228 /* We use char because int might match the return type of a gcc2
13229 builtin and then its argument prototype would still apply. */
13230 char $ac_func();
13231
13232 int main() {
13233
13234 /* The GNU C library defines this for functions which it implements
13235 to always fail with ENOSYS. Some functions are actually named
13236 something starting with __ and the normal name is an alias. */
13237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13238 choke me
13239 #else
13240 $ac_func();
13241 #endif
13242
13243 ; return 0; }
13244 EOF
13245 if { (eval echo configure:13246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13246 rm -rf conftest*
13247 eval "ac_cv_func_$ac_func=yes"
13248 else
13249 echo "configure: failed program was:" >&5
13250 cat conftest.$ac_ext >&5
13251 rm -rf conftest*
13252 eval "ac_cv_func_$ac_func=no"
13253 fi
13254 rm -f conftest*
13255 fi
13256
13257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13258 echo "$ac_t""yes" 1>&6
13259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13260 cat >> confdefs.h <<EOF
13261 #define $ac_tr_func 1
13262 EOF
13263 cat >> confdefs.h <<\EOF
13264 #define HAVE_INET_ADDR 1
13265 EOF
13266
13267 else
13268 echo "$ac_t""no" 1>&6
13269 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13270 echo "configure:13271: checking for inet_addr in -lnsl" >&5
13271 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13273 echo $ac_n "(cached) $ac_c" 1>&6
13274 else
13275 ac_save_LIBS="$LIBS"
13276 LIBS="-lnsl $LIBS"
13277 cat > conftest.$ac_ext <<EOF
13278 #line 13279 "configure"
13279 #include "confdefs.h"
13280 /* Override any gcc2 internal prototype to avoid an error. */
13281 /* We use char because int might match the return type of a gcc2
13282 builtin and then its argument prototype would still apply. */
13283 char inet_addr();
13284
13285 int main() {
13286 inet_addr()
13287 ; return 0; }
13288 EOF
13289 if { (eval echo configure:13290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13290 rm -rf conftest*
13291 eval "ac_cv_lib_$ac_lib_var=yes"
13292 else
13293 echo "configure: failed program was:" >&5
13294 cat conftest.$ac_ext >&5
13295 rm -rf conftest*
13296 eval "ac_cv_lib_$ac_lib_var=no"
13297 fi
13298 rm -f conftest*
13299 LIBS="$ac_save_LIBS"
13300
13301 fi
13302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13303 echo "$ac_t""yes" 1>&6
13304 INET_LINK="nsl"
13305 else
13306 echo "$ac_t""no" 1>&6
13307 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13308 echo "configure:13309: checking for inet_addr in -lresolv" >&5
13309 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13311 echo $ac_n "(cached) $ac_c" 1>&6
13312 else
13313 ac_save_LIBS="$LIBS"
13314 LIBS="-lresolv $LIBS"
13315 cat > conftest.$ac_ext <<EOF
13316 #line 13317 "configure"
13317 #include "confdefs.h"
13318 /* Override any gcc2 internal prototype to avoid an error. */
13319 /* We use char because int might match the return type of a gcc2
13320 builtin and then its argument prototype would still apply. */
13321 char inet_addr();
13322
13323 int main() {
13324 inet_addr()
13325 ; return 0; }
13326 EOF
13327 if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13328 rm -rf conftest*
13329 eval "ac_cv_lib_$ac_lib_var=yes"
13330 else
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13333 rm -rf conftest*
13334 eval "ac_cv_lib_$ac_lib_var=no"
13335 fi
13336 rm -f conftest*
13337 LIBS="$ac_save_LIBS"
13338
13339 fi
13340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13341 echo "$ac_t""yes" 1>&6
13342 INET_LINK="resolv"
13343
13344 else
13345 echo "$ac_t""no" 1>&6
13346 fi
13347
13348
13349 fi
13350
13351
13352
13353 fi
13354 done
13355
13356
13357 for ac_func in inet_aton
13358 do
13359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13360 echo "configure:13361: checking for $ac_func" >&5
13361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13362 echo $ac_n "(cached) $ac_c" 1>&6
13363 else
13364 cat > conftest.$ac_ext <<EOF
13365 #line 13366 "configure"
13366 #include "confdefs.h"
13367 /* System header to define __stub macros and hopefully few prototypes,
13368 which can conflict with char $ac_func(); below. */
13369 #include <assert.h>
13370 /* Override any gcc2 internal prototype to avoid an error. */
13371 /* We use char because int might match the return type of a gcc2
13372 builtin and then its argument prototype would still apply. */
13373 char $ac_func();
13374
13375 int main() {
13376
13377 /* The GNU C library defines this for functions which it implements
13378 to always fail with ENOSYS. Some functions are actually named
13379 something starting with __ and the normal name is an alias. */
13380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13381 choke me
13382 #else
13383 $ac_func();
13384 #endif
13385
13386 ; return 0; }
13387 EOF
13388 if { (eval echo configure:13389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13389 rm -rf conftest*
13390 eval "ac_cv_func_$ac_func=yes"
13391 else
13392 echo "configure: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 rm -rf conftest*
13395 eval "ac_cv_func_$ac_func=no"
13396 fi
13397 rm -f conftest*
13398 fi
13399
13400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13401 echo "$ac_t""yes" 1>&6
13402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13403 cat >> confdefs.h <<EOF
13404 #define $ac_tr_func 1
13405 EOF
13406 cat >> confdefs.h <<\EOF
13407 #define HAVE_INET_ATON 1
13408 EOF
13409
13410 else
13411 echo "$ac_t""no" 1>&6
13412 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13413 echo "configure:13414: checking for inet_aton in -l$INET_LINK" >&5
13414 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13416 echo $ac_n "(cached) $ac_c" 1>&6
13417 else
13418 ac_save_LIBS="$LIBS"
13419 LIBS="-l$INET_LINK $LIBS"
13420 cat > conftest.$ac_ext <<EOF
13421 #line 13422 "configure"
13422 #include "confdefs.h"
13423 /* Override any gcc2 internal prototype to avoid an error. */
13424 /* We use char because int might match the return type of a gcc2
13425 builtin and then its argument prototype would still apply. */
13426 char inet_aton();
13427
13428 int main() {
13429 inet_aton()
13430 ; return 0; }
13431 EOF
13432 if { (eval echo configure:13433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13433 rm -rf conftest*
13434 eval "ac_cv_lib_$ac_lib_var=yes"
13435 else
13436 echo "configure: failed program was:" >&5
13437 cat conftest.$ac_ext >&5
13438 rm -rf conftest*
13439 eval "ac_cv_lib_$ac_lib_var=no"
13440 fi
13441 rm -f conftest*
13442 LIBS="$ac_save_LIBS"
13443
13444 fi
13445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13446 echo "$ac_t""yes" 1>&6
13447 cat >> confdefs.h <<\EOF
13448 #define HAVE_INET_ATON 1
13449 EOF
13450
13451 else
13452 echo "$ac_t""no" 1>&6
13453 fi
13454
13455
13456 fi
13457 done
13458
13459
13460 if test "x$INET_LINK" != "x"; then
13461 cat >> confdefs.h <<\EOF
13462 #define HAVE_INET_ADDR 1
13463 EOF
13464
13465 INET_LINK="-l$INET_LINK"
13466 fi
13467
13468 fi
13469
13470
13471 cat > confcache <<\EOF
13472 # This file is a shell script that caches the results of configure
13473 # tests run on this system so they can be shared between configure
13474 # scripts and configure runs. It is not useful on other systems.
13475 # If it contains results you don't want to keep, you may remove or edit it.
13476 #
13477 # By default, configure uses ./config.cache as the cache file,
13478 # creating it if it does not exist already. You can give configure
13479 # the --cache-file=FILE option to use a different cache file; that is
13480 # what configure does when it calls configure scripts in
13481 # subdirectories, so they share the cache.
13482 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13483 # config.status only pays attention to the cache file if you give it the
13484 # --recheck option to rerun configure.
13485 #
13486 EOF
13487 # The following way of writing the cache mishandles newlines in values,
13488 # but we know of no workaround that is simple, portable, and efficient.
13489 # So, don't put newlines in cache variables' values.
13490 # Ultrix sh set writes to stderr and can't be redirected directly,
13491 # and sets the high bit in the cache file unless we assign to the vars.
13492 (set) 2>&1 |
13493 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13494 *ac_space=\ *)
13495 # `set' does not quote correctly, so add quotes (double-quote substitution
13496 # turns \\\\ into \\, and sed turns \\ into \).
13497 sed -n \
13498 -e "s/'/'\\\\''/g" \
13499 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13500 ;;
13501 *)
13502 # `set' quotes correctly as required by POSIX, so do not add quotes.
13503 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13504 ;;
13505 esac >> confcache
13506 if cmp -s $cache_file confcache; then
13507 :
13508 else
13509 if test -w $cache_file; then
13510 echo "updating cache $cache_file"
13511 cat confcache > $cache_file
13512 else
13513 echo "not updating unwritable cache $cache_file"
13514 fi
13515 fi
13516 rm -f confcache
13517
13518
13519
13520 if test "$TOOLKIT" != "MSW"; then
13521
13522
13523 THREADS_LINK=""
13524 THREADS_OBJ=""
13525
13526 if test "$wxUSE_THREADS" = "yes" ; then
13527 if test "$wxUSE_WINE" = 1 ; then
13528 echo "configure: warning: Threads are not supported under WINE" 1>&2
13529 wxUSE_THREADS="no"
13530 elif test "$USE_BEOS" = 1; then
13531 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13532 wxUSE_THREADS="no"
13533 fi
13534 fi
13535
13536 if test "$wxUSE_THREADS" = "yes" ; then
13537
13538 if test "$USE_AIX" = 1; then
13539 THREADS_LIB=pthreads
13540 else
13541 THREADS_LIB=pthread
13542 fi
13543
13544 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13545 echo "configure:13546: checking for pthread_create in -l$THREADS_LIB" >&5
13546 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13548 echo $ac_n "(cached) $ac_c" 1>&6
13549 else
13550 ac_save_LIBS="$LIBS"
13551 LIBS="-l$THREADS_LIB $LIBS"
13552 cat > conftest.$ac_ext <<EOF
13553 #line 13554 "configure"
13554 #include "confdefs.h"
13555 /* Override any gcc2 internal prototype to avoid an error. */
13556 /* We use char because int might match the return type of a gcc2
13557 builtin and then its argument prototype would still apply. */
13558 char pthread_create();
13559
13560 int main() {
13561 pthread_create()
13562 ; return 0; }
13563 EOF
13564 if { (eval echo configure:13565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13565 rm -rf conftest*
13566 eval "ac_cv_lib_$ac_lib_var=yes"
13567 else
13568 echo "configure: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 rm -rf conftest*
13571 eval "ac_cv_lib_$ac_lib_var=no"
13572 fi
13573 rm -f conftest*
13574 LIBS="$ac_save_LIBS"
13575
13576 fi
13577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13578 echo "$ac_t""yes" 1>&6
13579
13580 THREADS_OBJ="threadpsx.lo"
13581 THREADS_LINK=$THREADS_LIB
13582
13583 else
13584 echo "$ac_t""no" 1>&6
13585
13586 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13587 echo "configure:13588: checking for pthread_create in -lc_r" >&5
13588 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
13591 else
13592 ac_save_LIBS="$LIBS"
13593 LIBS="-lc_r $LIBS"
13594 cat > conftest.$ac_ext <<EOF
13595 #line 13596 "configure"
13596 #include "confdefs.h"
13597 /* Override any gcc2 internal prototype to avoid an error. */
13598 /* We use char because int might match the return type of a gcc2
13599 builtin and then its argument prototype would still apply. */
13600 char pthread_create();
13601
13602 int main() {
13603 pthread_create()
13604 ; return 0; }
13605 EOF
13606 if { (eval echo configure:13607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13607 rm -rf conftest*
13608 eval "ac_cv_lib_$ac_lib_var=yes"
13609 else
13610 echo "configure: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13612 rm -rf conftest*
13613 eval "ac_cv_lib_$ac_lib_var=no"
13614 fi
13615 rm -f conftest*
13616 LIBS="$ac_save_LIBS"
13617
13618 fi
13619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13620 echo "$ac_t""yes" 1>&6
13621
13622 THREADS_OBJ="threadpsx.lo"
13623 THREADS_LINK="c_r"
13624
13625 else
13626 echo "$ac_t""no" 1>&6
13627
13628 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13629 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
13630 echo "configure:13631: checking for sys/prctl.h" >&5
13631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13632 echo $ac_n "(cached) $ac_c" 1>&6
13633 else
13634 cat > conftest.$ac_ext <<EOF
13635 #line 13636 "configure"
13636 #include "confdefs.h"
13637 #include <sys/prctl.h>
13638 EOF
13639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13640 { (eval echo configure:13641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13642 if test -z "$ac_err"; then
13643 rm -rf conftest*
13644 eval "ac_cv_header_$ac_safe=yes"
13645 else
13646 echo "$ac_err" >&5
13647 echo "configure: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13649 rm -rf conftest*
13650 eval "ac_cv_header_$ac_safe=no"
13651 fi
13652 rm -f conftest*
13653 fi
13654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13655 echo "$ac_t""yes" 1>&6
13656
13657 THREADS_OBJ="threadsgi.lo"
13658
13659 else
13660 echo "$ac_t""no" 1>&6
13661 fi
13662
13663
13664 fi
13665
13666
13667 fi
13668
13669
13670 if test -z "$THREADS_OBJ" ; then
13671 wxUSE_THREADS=no
13672 echo "configure: warning: No thread support on this system" 1>&2
13673 fi
13674 fi
13675
13676 if test "$wxUSE_THREADS" = "yes" ; then
13677 for ac_func in thr_setconcurrency
13678 do
13679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13680 echo "configure:13681: checking for $ac_func" >&5
13681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13682 echo $ac_n "(cached) $ac_c" 1>&6
13683 else
13684 cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure"
13686 #include "confdefs.h"
13687 /* System header to define __stub macros and hopefully few prototypes,
13688 which can conflict with char $ac_func(); below. */
13689 #include <assert.h>
13690 /* Override any gcc2 internal prototype to avoid an error. */
13691 /* We use char because int might match the return type of a gcc2
13692 builtin and then its argument prototype would still apply. */
13693 char $ac_func();
13694
13695 int main() {
13696
13697 /* The GNU C library defines this for functions which it implements
13698 to always fail with ENOSYS. Some functions are actually named
13699 something starting with __ and the normal name is an alias. */
13700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13701 choke me
13702 #else
13703 $ac_func();
13704 #endif
13705
13706 ; return 0; }
13707 EOF
13708 if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13709 rm -rf conftest*
13710 eval "ac_cv_func_$ac_func=yes"
13711 else
13712 echo "configure: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13714 rm -rf conftest*
13715 eval "ac_cv_func_$ac_func=no"
13716 fi
13717 rm -f conftest*
13718 fi
13719
13720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13723 cat >> confdefs.h <<EOF
13724 #define $ac_tr_func 1
13725 EOF
13726
13727 else
13728 echo "$ac_t""no" 1>&6
13729 fi
13730 done
13731
13732
13733
13734 for ac_hdr in sched.h
13735 do
13736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13738 echo "configure:13739: checking for $ac_hdr" >&5
13739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13740 echo $ac_n "(cached) $ac_c" 1>&6
13741 else
13742 cat > conftest.$ac_ext <<EOF
13743 #line 13744 "configure"
13744 #include "confdefs.h"
13745 #include <$ac_hdr>
13746 EOF
13747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13748 { (eval echo configure:13749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13750 if test -z "$ac_err"; then
13751 rm -rf conftest*
13752 eval "ac_cv_header_$ac_safe=yes"
13753 else
13754 echo "$ac_err" >&5
13755 echo "configure: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 rm -rf conftest*
13758 eval "ac_cv_header_$ac_safe=no"
13759 fi
13760 rm -f conftest*
13761 fi
13762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13763 echo "$ac_t""yes" 1>&6
13764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13765 cat >> confdefs.h <<EOF
13766 #define $ac_tr_hdr 1
13767 EOF
13768
13769 else
13770 echo "$ac_t""no" 1>&6
13771 fi
13772 done
13773
13774
13775 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
13776 echo "configure:13777: checking for sched_yield in -l$THREADS_LINK" >&5
13777 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13779 echo $ac_n "(cached) $ac_c" 1>&6
13780 else
13781 ac_save_LIBS="$LIBS"
13782 LIBS="-l$THREADS_LINK $LIBS"
13783 cat > conftest.$ac_ext <<EOF
13784 #line 13785 "configure"
13785 #include "confdefs.h"
13786 /* Override any gcc2 internal prototype to avoid an error. */
13787 /* We use char because int might match the return type of a gcc2
13788 builtin and then its argument prototype would still apply. */
13789 char sched_yield();
13790
13791 int main() {
13792 sched_yield()
13793 ; return 0; }
13794 EOF
13795 if { (eval echo configure:13796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13796 rm -rf conftest*
13797 eval "ac_cv_lib_$ac_lib_var=yes"
13798 else
13799 echo "configure: failed program was:" >&5
13800 cat conftest.$ac_ext >&5
13801 rm -rf conftest*
13802 eval "ac_cv_lib_$ac_lib_var=no"
13803 fi
13804 rm -f conftest*
13805 LIBS="$ac_save_LIBS"
13806
13807 fi
13808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13809 echo "$ac_t""yes" 1>&6
13810 cat >> confdefs.h <<\EOF
13811 #define HAVE_SCHED_YIELD 1
13812 EOF
13813
13814 else
13815 echo "$ac_t""no" 1>&6
13816 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
13817 echo "configure:13818: checking for sched_yield in -lposix4" >&5
13818 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13820 echo $ac_n "(cached) $ac_c" 1>&6
13821 else
13822 ac_save_LIBS="$LIBS"
13823 LIBS="-lposix4 $LIBS"
13824 cat > conftest.$ac_ext <<EOF
13825 #line 13826 "configure"
13826 #include "confdefs.h"
13827 /* Override any gcc2 internal prototype to avoid an error. */
13828 /* We use char because int might match the return type of a gcc2
13829 builtin and then its argument prototype would still apply. */
13830 char sched_yield();
13831
13832 int main() {
13833 sched_yield()
13834 ; return 0; }
13835 EOF
13836 if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13837 rm -rf conftest*
13838 eval "ac_cv_lib_$ac_lib_var=yes"
13839 else
13840 echo "configure: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13842 rm -rf conftest*
13843 eval "ac_cv_lib_$ac_lib_var=no"
13844 fi
13845 rm -f conftest*
13846 LIBS="$ac_save_LIBS"
13847
13848 fi
13849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13850 echo "$ac_t""yes" 1>&6
13851 cat >> confdefs.h <<\EOF
13852 #define HAVE_SCHED_YIELD 1
13853 EOF
13854 POSIX4_LINK="-lposix4"
13855 else
13856 echo "$ac_t""no" 1>&6
13857 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13858
13859 fi
13860
13861
13862 fi
13863
13864
13865 HAVE_PRIOR_FUNCS=0
13866 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
13867 echo "configure:13868: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
13868 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13870 echo $ac_n "(cached) $ac_c" 1>&6
13871 else
13872 ac_save_LIBS="$LIBS"
13873 LIBS="-l$THREADS_LINK $LIBS"
13874 cat > conftest.$ac_ext <<EOF
13875 #line 13876 "configure"
13876 #include "confdefs.h"
13877 /* Override any gcc2 internal prototype to avoid an error. */
13878 /* We use char because int might match the return type of a gcc2
13879 builtin and then its argument prototype would still apply. */
13880 char pthread_attr_getschedpolicy();
13881
13882 int main() {
13883 pthread_attr_getschedpolicy()
13884 ; return 0; }
13885 EOF
13886 if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13887 rm -rf conftest*
13888 eval "ac_cv_lib_$ac_lib_var=yes"
13889 else
13890 echo "configure: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 rm -rf conftest*
13893 eval "ac_cv_lib_$ac_lib_var=no"
13894 fi
13895 rm -f conftest*
13896 LIBS="$ac_save_LIBS"
13897
13898 fi
13899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13900 echo "$ac_t""yes" 1>&6
13901 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
13902 echo "configure:13903: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
13903 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13905 echo $ac_n "(cached) $ac_c" 1>&6
13906 else
13907 ac_save_LIBS="$LIBS"
13908 LIBS="-l$THREADS_LINK $LIBS"
13909 cat > conftest.$ac_ext <<EOF
13910 #line 13911 "configure"
13911 #include "confdefs.h"
13912 /* Override any gcc2 internal prototype to avoid an error. */
13913 /* We use char because int might match the return type of a gcc2
13914 builtin and then its argument prototype would still apply. */
13915 char pthread_attr_setschedparam();
13916
13917 int main() {
13918 pthread_attr_setschedparam()
13919 ; return 0; }
13920 EOF
13921 if { (eval echo configure:13922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13922 rm -rf conftest*
13923 eval "ac_cv_lib_$ac_lib_var=yes"
13924 else
13925 echo "configure: failed program was:" >&5
13926 cat conftest.$ac_ext >&5
13927 rm -rf conftest*
13928 eval "ac_cv_lib_$ac_lib_var=no"
13929 fi
13930 rm -f conftest*
13931 LIBS="$ac_save_LIBS"
13932
13933 fi
13934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13935 echo "$ac_t""yes" 1>&6
13936 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
13937 echo "configure:13938: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
13938 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13940 echo $ac_n "(cached) $ac_c" 1>&6
13941 else
13942 ac_save_LIBS="$LIBS"
13943 LIBS="-l$THREADS_LINK $LIBS"
13944 cat > conftest.$ac_ext <<EOF
13945 #line 13946 "configure"
13946 #include "confdefs.h"
13947 /* Override any gcc2 internal prototype to avoid an error. */
13948 /* We use char because int might match the return type of a gcc2
13949 builtin and then its argument prototype would still apply. */
13950 char sched_get_priority_max();
13951
13952 int main() {
13953 sched_get_priority_max()
13954 ; return 0; }
13955 EOF
13956 if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13957 rm -rf conftest*
13958 eval "ac_cv_lib_$ac_lib_var=yes"
13959 else
13960 echo "configure: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13962 rm -rf conftest*
13963 eval "ac_cv_lib_$ac_lib_var=no"
13964 fi
13965 rm -f conftest*
13966 LIBS="$ac_save_LIBS"
13967
13968 fi
13969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13970 echo "$ac_t""yes" 1>&6
13971 HAVE_PRIOR_FUNCS=1
13972 else
13973 echo "$ac_t""no" 1>&6
13974 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
13975 echo "configure:13976: checking for sched_get_priority_max in -lposix4" >&5
13976 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13978 echo $ac_n "(cached) $ac_c" 1>&6
13979 else
13980 ac_save_LIBS="$LIBS"
13981 LIBS="-lposix4 $LIBS"
13982 cat > conftest.$ac_ext <<EOF
13983 #line 13984 "configure"
13984 #include "confdefs.h"
13985 /* Override any gcc2 internal prototype to avoid an error. */
13986 /* We use char because int might match the return type of a gcc2
13987 builtin and then its argument prototype would still apply. */
13988 char sched_get_priority_max();
13989
13990 int main() {
13991 sched_get_priority_max()
13992 ; return 0; }
13993 EOF
13994 if { (eval echo configure:13995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13995 rm -rf conftest*
13996 eval "ac_cv_lib_$ac_lib_var=yes"
13997 else
13998 echo "configure: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14000 rm -rf conftest*
14001 eval "ac_cv_lib_$ac_lib_var=no"
14002 fi
14003 rm -f conftest*
14004 LIBS="$ac_save_LIBS"
14005
14006 fi
14007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14008 echo "$ac_t""yes" 1>&6
14009
14010 HAVE_PRIOR_FUNCS=1
14011 POSIX4_LINK="-lposix4"
14012
14013 else
14014 echo "$ac_t""no" 1>&6
14015 fi
14016
14017
14018 fi
14019
14020
14021 else
14022 echo "$ac_t""no" 1>&6
14023 fi
14024
14025
14026 else
14027 echo "$ac_t""no" 1>&6
14028 fi
14029
14030
14031 if test "$HAVE_PRIOR_FUNCS" = 1; then
14032 cat >> confdefs.h <<\EOF
14033 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14034 EOF
14035
14036 else
14037 echo "configure: warning: Setting thread priority will not work" 1>&2
14038 fi
14039
14040 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14041 echo "configure:14042: checking for pthread_cancel in -l$THREADS_LINK" >&5
14042 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
14045 else
14046 ac_save_LIBS="$LIBS"
14047 LIBS="-l$THREADS_LINK $LIBS"
14048 cat > conftest.$ac_ext <<EOF
14049 #line 14050 "configure"
14050 #include "confdefs.h"
14051 /* Override any gcc2 internal prototype to avoid an error. */
14052 /* We use char because int might match the return type of a gcc2
14053 builtin and then its argument prototype would still apply. */
14054 char pthread_cancel();
14055
14056 int main() {
14057 pthread_cancel()
14058 ; return 0; }
14059 EOF
14060 if { (eval echo configure:14061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14061 rm -rf conftest*
14062 eval "ac_cv_lib_$ac_lib_var=yes"
14063 else
14064 echo "configure: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14066 rm -rf conftest*
14067 eval "ac_cv_lib_$ac_lib_var=no"
14068 fi
14069 rm -f conftest*
14070 LIBS="$ac_save_LIBS"
14071
14072 fi
14073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14074 echo "$ac_t""yes" 1>&6
14075 cat >> confdefs.h <<\EOF
14076 #define HAVE_PTHREAD_CANCEL 1
14077 EOF
14078
14079 else
14080 echo "$ac_t""no" 1>&6
14081 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14082 fi
14083
14084
14085 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14086 echo "configure:14087: checking for pthread_cleanup_push/pop" >&5
14087 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14089 else
14090
14091 cat > conftest.$ac_ext <<EOF
14092 #line 14093 "configure"
14093 #include "confdefs.h"
14094 #include <pthread.h>
14095 int main() {
14096
14097 pthread_cleanup_push(NULL, NULL);
14098 pthread_cleanup_pop(0);
14099
14100 ; return 0; }
14101 EOF
14102 if { (eval echo configure:14103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14103 rm -rf conftest*
14104
14105 wx_cv_func_pthread_cleanup_push=yes
14106
14107 else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111
14112 wx_cv_func_pthread_cleanup_push=no
14113
14114 fi
14115 rm -f conftest*
14116
14117 fi
14118
14119 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14120
14121 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14122 cat >> confdefs.h <<\EOF
14123 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14124 EOF
14125
14126 fi
14127
14128
14129 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14130 echo "configure:14131: checking for pthread_mutexattr_t" >&5
14131 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14132 echo $ac_n "(cached) $ac_c" 1>&6
14133 else
14134
14135 cat > conftest.$ac_ext <<EOF
14136 #line 14137 "configure"
14137 #include "confdefs.h"
14138 #include <pthread.h>
14139 int main() {
14140
14141 pthread_mutexattr_t attr;
14142 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14143
14144 ; return 0; }
14145 EOF
14146 if { (eval echo configure:14147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14147 rm -rf conftest*
14148
14149 wx_cv_type_pthread_mutexattr_t=yes
14150
14151 else
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 rm -rf conftest*
14155
14156 wx_cv_type_pthread_mutexattr_t=no
14157
14158
14159 fi
14160 rm -f conftest*
14161
14162 fi
14163
14164 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14165
14166 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14167 cat >> confdefs.h <<\EOF
14168 #define HAVE_PTHREAD_MUTEXATTR_T 1
14169 EOF
14170
14171 else
14172 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14173 echo "configure:14174: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14174 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14176 else
14177
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14181 #include <pthread.h>
14182 int main() {
14183
14184 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14185
14186 ; return 0; }
14187 EOF
14188 if { (eval echo configure:14189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14189 rm -rf conftest*
14190
14191 wx_cv_type_pthread_rec_mutex_init=yes
14192
14193 else
14194 echo "configure: failed program was:" >&5
14195 cat conftest.$ac_ext >&5
14196 rm -rf conftest*
14197
14198 wx_cv_type_pthread_rec_mutex_init=no
14199
14200
14201 fi
14202 rm -f conftest*
14203
14204 fi
14205
14206 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14207 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14208 cat >> confdefs.h <<\EOF
14209 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14210 EOF
14211
14212 else
14213 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14214 fi
14215 fi
14216
14217 THREADS_LINK="-l$THREADS_LINK"
14218
14219 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14220 CFLAGS="${CFLAGS} -mt"
14221 CXXFLAGS="${CXXFLAGS} -mt"
14222 LDFLAGS="${LDFLAGS} -mt"
14223 fi
14224 fi
14225
14226 fi
14227
14228 if test "$wxUSE_THREADS" = "yes"; then
14229 cat >> confdefs.h <<\EOF
14230 #define wxUSE_THREADS 1
14231 EOF
14232
14233
14234 if test "$wxUSE_MAC" = "0"; then
14235 CFLAGS="${CFLAGS} -D_REENTRANT"
14236 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14237 fi
14238
14239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14240 else
14241 if test "$ac_cv_func_strtok_r" = "yes"; then
14242 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14243 echo "configure:14244: checking if -D_REENTRANT is needed" >&5
14244 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14245 CFLAGS="${CFLAGS} -D_REENTRANT"
14246 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14247 echo "$ac_t""yes" 1>&6
14248 else
14249 echo "$ac_t""no" 1>&6
14250 fi
14251 fi
14252 fi
14253
14254 if test "$WXGTK20" = 1 ; then
14255 cat >> confdefs.h <<EOF
14256 #define __WXGTK20__ $WXGTK20
14257 EOF
14258
14259 WXGTK12=1
14260 fi
14261
14262 if test "$WXGTK12" = 1 ; then
14263 cat >> confdefs.h <<EOF
14264 #define __WXGTK12__ $WXGTK12
14265 EOF
14266
14267 fi
14268
14269 if test "$WXGTK127" = 1 ; then
14270 cat >> confdefs.h <<EOF
14271 #define __WXGTK127__ $WXGTK127
14272 EOF
14273
14274 fi
14275
14276 if test "$WXWINE" = 1 ; then
14277 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14278 fi
14279
14280 if test "$wxUSE_MAC" = 1 ; then
14281 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
14282 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
14283 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
14284 # Extract the first word of "Rez", so it can be a program name with args.
14285 set dummy Rez; ac_word=$2
14286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14287 echo "configure:14288: checking for $ac_word" >&5
14288 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14289 echo $ac_n "(cached) $ac_c" 1>&6
14290 else
14291 if test -n "$REZ"; then
14292 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14293 else
14294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14295 ac_dummy="$PATH"
14296 for ac_dir in $ac_dummy; do
14297 test -z "$ac_dir" && ac_dir=.
14298 if test -f $ac_dir/$ac_word; then
14299 ac_cv_prog_REZ="Rez"
14300 break
14301 fi
14302 done
14303 IFS="$ac_save_ifs"
14304 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14305 fi
14306 fi
14307 REZ="$ac_cv_prog_REZ"
14308 if test -n "$REZ"; then
14309 echo "$ac_t""$REZ" 1>&6
14310 else
14311 echo "$ac_t""no" 1>&6
14312 fi
14313
14314 # Extract the first word of "Derez", so it can be a program name with args.
14315 set dummy Derez; ac_word=$2
14316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14317 echo "configure:14318: checking for $ac_word" >&5
14318 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14319 echo $ac_n "(cached) $ac_c" 1>&6
14320 else
14321 if test -n "$DEREZ"; then
14322 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14323 else
14324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14325 ac_dummy="$PATH"
14326 for ac_dir in $ac_dummy; do
14327 test -z "$ac_dir" && ac_dir=.
14328 if test -f $ac_dir/$ac_word; then
14329 ac_cv_prog_DEREZ="Derez"
14330 break
14331 fi
14332 done
14333 IFS="$ac_save_ifs"
14334 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14335 fi
14336 fi
14337 DEREZ="$ac_cv_prog_DEREZ"
14338 if test -n "$DEREZ"; then
14339 echo "$ac_t""$DEREZ" 1>&6
14340 else
14341 echo "$ac_t""no" 1>&6
14342 fi
14343
14344 RESCOMP=${REZ}
14345 REZFLAGS="-d __UNIX__ -useDF"
14346 DEREZFLAGS="Carbon.r -useDF"
14347 RESFLAGS="Carbon.r -t APPL"
14348 LIBWXMACRES="\$(LIBWX_MACRES)"
14349 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14350 fi
14351
14352 if test "$wxUSE_CYGWIN" = 1 ; then
14353 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14354 fi
14355
14356 WXDEBUG=
14357
14358 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14359 WXDEBUG="-g"
14360 wxUSE_OPTIMISE=no
14361 fi
14362
14363 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14364 wxUSE_DEBUG_INFO=yes
14365 WXDEBUG="-ggdb"
14366 fi
14367
14368 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14369 cat >> confdefs.h <<\EOF
14370 #define WXDEBUG 1
14371 EOF
14372
14373 WXDEBUG_DEFINE="-D__WXDEBUG__"
14374 else
14375 if test "$wxUSE_GTK" = 1 ; then
14376 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14377 fi
14378 fi
14379
14380 if test "$wxUSE_MEM_TRACING" = "yes" ; then
14381 cat >> confdefs.h <<\EOF
14382 #define wxUSE_MEMORY_TRACING 1
14383 EOF
14384
14385 cat >> confdefs.h <<\EOF
14386 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14387 EOF
14388
14389 cat >> confdefs.h <<\EOF
14390 #define wxUSE_DEBUG_NEW_ALWAYS 1
14391 EOF
14392
14393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14394 fi
14395
14396 if test "$wxUSE_DMALLOC" = "yes" ; then
14397 DMALLOC_LINK="-ldmalloc"
14398 fi
14399
14400 PROFILE=
14401 if test "$wxUSE_PROFILE" = "yes" ; then
14402 PROFILE="-pg"
14403 fi
14404
14405 DEP_INFO_FLAGS=
14406 CODE_GEN_FLAGS=
14407 CODE_GEN_FLAGS_CXX=
14408 if test "$GCC" = yes ; then
14409 if test "$wxUSE_NO_RTTI" = "yes" ; then
14410 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14411 fi
14412 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14413 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14414 fi
14415 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14416 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14417 fi
14418 if test "$wxUSE_NO_DEPS" = "no" ; then
14419 DEP_INFO_FLAGS="-MMD"
14420 fi
14421 fi
14422
14423
14424 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14425 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14426 if test "$wxUSE_OPTIMISE" = "no" ; then
14427 OPTIMISE=
14428 else
14429 if test "$GCC" = yes ; then
14430 OPTIMISE="-O2"
14431 case "${host}" in
14432 i586-*-*|i686-*-* )
14433 OPTIMISE="${OPTIMISE} "
14434 ;;
14435 esac
14436 else
14437 OPTIMISE="-O"
14438 fi
14439 fi
14440
14441 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14442 cat >> confdefs.h <<\EOF
14443 #define WXWIN_COMPATIBILITY_2 1
14444 EOF
14445
14446
14447 WXWIN_COMPATIBILITY_2_2="yes"
14448 fi
14449
14450 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14451 cat >> confdefs.h <<\EOF
14452 #define WXWIN_COMPATIBILITY_2_2 1
14453 EOF
14454
14455 fi
14456
14457
14458 ZLIB_INCLUDE=
14459 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
14460 cat >> confdefs.h <<\EOF
14461 #define wxUSE_ZLIB 1
14462 EOF
14463
14464 if test "$wxUSE_ZLIB" = "yes" ; then
14465 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14466 else
14467 ZLIB_LINK=
14468 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14469 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
14470 echo "configure:14471: checking for zlib.h" >&5
14471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14473 else
14474 cat > conftest.$ac_ext <<EOF
14475 #line 14476 "configure"
14476 #include "confdefs.h"
14477 #include <zlib.h>
14478 EOF
14479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14480 { (eval echo configure:14481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14482 if test -z "$ac_err"; then
14483 rm -rf conftest*
14484 eval "ac_cv_header_$ac_safe=yes"
14485 else
14486 echo "$ac_err" >&5
14487 echo "configure: failed program was:" >&5
14488 cat conftest.$ac_ext >&5
14489 rm -rf conftest*
14490 eval "ac_cv_header_$ac_safe=no"
14491 fi
14492 rm -f conftest*
14493 fi
14494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14495 echo "$ac_t""yes" 1>&6
14496 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
14497 echo "configure:14498: checking for deflate in -lz" >&5
14498 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14500 echo $ac_n "(cached) $ac_c" 1>&6
14501 else
14502 ac_save_LIBS="$LIBS"
14503 LIBS="-lz $LIBS"
14504 cat > conftest.$ac_ext <<EOF
14505 #line 14506 "configure"
14506 #include "confdefs.h"
14507 /* Override any gcc2 internal prototype to avoid an error. */
14508 /* We use char because int might match the return type of a gcc2
14509 builtin and then its argument prototype would still apply. */
14510 char deflate();
14511
14512 int main() {
14513 deflate()
14514 ; return 0; }
14515 EOF
14516 if { (eval echo configure:14517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14517 rm -rf conftest*
14518 eval "ac_cv_lib_$ac_lib_var=yes"
14519 else
14520 echo "configure: failed program was:" >&5
14521 cat conftest.$ac_ext >&5
14522 rm -rf conftest*
14523 eval "ac_cv_lib_$ac_lib_var=no"
14524 fi
14525 rm -f conftest*
14526 LIBS="$ac_save_LIBS"
14527
14528 fi
14529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14530 echo "$ac_t""yes" 1>&6
14531 ZLIB_LINK="-lz"
14532 else
14533 echo "$ac_t""no" 1>&6
14534 fi
14535
14536 else
14537 echo "$ac_t""no" 1>&6
14538 fi
14539
14540 if test "x$ZLIB_LINK" = "x" ; then
14541 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
14542 fi
14543 fi
14544 fi
14545
14546 PNG_INCLUDE=
14547 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
14548 cat >> confdefs.h <<\EOF
14549 #define wxUSE_LIBPNG 1
14550 EOF
14551
14552 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
14553 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
14554 wxUSE_LIBPNG=yes
14555 fi
14556
14557 if test "$wxUSE_LIBPNG" = "yes" ; then
14558 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14559 else
14560 PNG_LINK=
14561 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14562 echo $ac_n "checking for png.h""... $ac_c" 1>&6
14563 echo "configure:14564: checking for png.h" >&5
14564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14565 echo $ac_n "(cached) $ac_c" 1>&6
14566 else
14567 cat > conftest.$ac_ext <<EOF
14568 #line 14569 "configure"
14569 #include "confdefs.h"
14570 #include <png.h>
14571 EOF
14572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14573 { (eval echo configure:14574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14575 if test -z "$ac_err"; then
14576 rm -rf conftest*
14577 eval "ac_cv_header_$ac_safe=yes"
14578 else
14579 echo "$ac_err" >&5
14580 echo "configure: failed program was:" >&5
14581 cat conftest.$ac_ext >&5
14582 rm -rf conftest*
14583 eval "ac_cv_header_$ac_safe=no"
14584 fi
14585 rm -f conftest*
14586 fi
14587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14588 echo "$ac_t""yes" 1>&6
14589 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
14590 echo "configure:14591: checking for png_check_sig in -lpng" >&5
14591 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14593 echo $ac_n "(cached) $ac_c" 1>&6
14594 else
14595 ac_save_LIBS="$LIBS"
14596 LIBS="-lpng -lz -lm $LIBS"
14597 cat > conftest.$ac_ext <<EOF
14598 #line 14599 "configure"
14599 #include "confdefs.h"
14600 /* Override any gcc2 internal prototype to avoid an error. */
14601 /* We use char because int might match the return type of a gcc2
14602 builtin and then its argument prototype would still apply. */
14603 char png_check_sig();
14604
14605 int main() {
14606 png_check_sig()
14607 ; return 0; }
14608 EOF
14609 if { (eval echo configure:14610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14610 rm -rf conftest*
14611 eval "ac_cv_lib_$ac_lib_var=yes"
14612 else
14613 echo "configure: failed program was:" >&5
14614 cat conftest.$ac_ext >&5
14615 rm -rf conftest*
14616 eval "ac_cv_lib_$ac_lib_var=no"
14617 fi
14618 rm -f conftest*
14619 LIBS="$ac_save_LIBS"
14620
14621 fi
14622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14623 echo "$ac_t""yes" 1>&6
14624 PNG_LINK="-lpng"
14625 else
14626 echo "$ac_t""no" 1>&6
14627 fi
14628
14629
14630 else
14631 echo "$ac_t""no" 1>&6
14632 fi
14633
14634 if test "x$PNG_LINK" = "x" ; then
14635 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
14636 fi
14637 fi
14638
14639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14640 fi
14641
14642 JPEG_INCLUDE=
14643 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
14644 cat >> confdefs.h <<\EOF
14645 #define wxUSE_LIBJPEG 1
14646 EOF
14647
14648 if test "$wxUSE_LIBJPEG" = "yes" ; then
14649 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14650 else
14651 JPEG_LINK=
14652 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
14653 echo "configure:14654: checking for jpeglib.h" >&5
14654 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
14655 echo $ac_n "(cached) $ac_c" 1>&6
14656 else
14657 cat > conftest.$ac_ext <<EOF
14658 #line 14659 "configure"
14659 #include "confdefs.h"
14660
14661 #undef HAVE_STDLIB_H
14662 #include <stdio.h>
14663 #include <jpeglib.h>
14664
14665 int main() {
14666
14667
14668 ; return 0; }
14669 EOF
14670 if { (eval echo configure:14671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14671 rm -rf conftest*
14672 ac_cv_header_jpeglib_h=yes
14673 else
14674 echo "configure: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14676 rm -rf conftest*
14677 ac_cv_header_jpeglib_h=no
14678
14679 fi
14680 rm -f conftest*
14681
14682 fi
14683
14684 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
14685
14686 if test "$ac_cv_header_jpeglib_h" = "yes"; then
14687 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
14688 echo "configure:14689: checking for jpeg_read_header in -ljpeg" >&5
14689 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14691 echo $ac_n "(cached) $ac_c" 1>&6
14692 else
14693 ac_save_LIBS="$LIBS"
14694 LIBS="-ljpeg $LIBS"
14695 cat > conftest.$ac_ext <<EOF
14696 #line 14697 "configure"
14697 #include "confdefs.h"
14698 /* Override any gcc2 internal prototype to avoid an error. */
14699 /* We use char because int might match the return type of a gcc2
14700 builtin and then its argument prototype would still apply. */
14701 char jpeg_read_header();
14702
14703 int main() {
14704 jpeg_read_header()
14705 ; return 0; }
14706 EOF
14707 if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14708 rm -rf conftest*
14709 eval "ac_cv_lib_$ac_lib_var=yes"
14710 else
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14713 rm -rf conftest*
14714 eval "ac_cv_lib_$ac_lib_var=no"
14715 fi
14716 rm -f conftest*
14717 LIBS="$ac_save_LIBS"
14718
14719 fi
14720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14721 echo "$ac_t""yes" 1>&6
14722 JPEG_LINK="-ljpeg"
14723 else
14724 echo "$ac_t""no" 1>&6
14725 fi
14726
14727 fi
14728
14729 if test "x$JPEG_LINK" = "x" ; then
14730 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
14731 fi
14732 fi
14733 fi
14734
14735 TIFF_INCLUDE=
14736 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
14737 cat >> confdefs.h <<\EOF
14738 #define wxUSE_LIBTIFF 1
14739 EOF
14740
14741 if test "$wxUSE_LIBTIFF" = "yes" ; then
14742 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14743 else
14744 TIFF_LINK=
14745 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14746 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
14747 echo "configure:14748: checking for tiffio.h" >&5
14748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14749 echo $ac_n "(cached) $ac_c" 1>&6
14750 else
14751 cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 #include <tiffio.h>
14755 EOF
14756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14757 { (eval echo configure:14758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14759 if test -z "$ac_err"; then
14760 rm -rf conftest*
14761 eval "ac_cv_header_$ac_safe=yes"
14762 else
14763 echo "$ac_err" >&5
14764 echo "configure: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 rm -rf conftest*
14767 eval "ac_cv_header_$ac_safe=no"
14768 fi
14769 rm -f conftest*
14770 fi
14771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14772 echo "$ac_t""yes" 1>&6
14773 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
14774 echo "configure:14775: checking for TIFFError in -ltiff" >&5
14775 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14777 echo $ac_n "(cached) $ac_c" 1>&6
14778 else
14779 ac_save_LIBS="$LIBS"
14780 LIBS="-ltiff -lm $LIBS"
14781 cat > conftest.$ac_ext <<EOF
14782 #line 14783 "configure"
14783 #include "confdefs.h"
14784 /* Override any gcc2 internal prototype to avoid an error. */
14785 /* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14787 char TIFFError();
14788
14789 int main() {
14790 TIFFError()
14791 ; return 0; }
14792 EOF
14793 if { (eval echo configure:14794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14794 rm -rf conftest*
14795 eval "ac_cv_lib_$ac_lib_var=yes"
14796 else
14797 echo "configure: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14799 rm -rf conftest*
14800 eval "ac_cv_lib_$ac_lib_var=no"
14801 fi
14802 rm -f conftest*
14803 LIBS="$ac_save_LIBS"
14804
14805 fi
14806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14807 echo "$ac_t""yes" 1>&6
14808 TIFF_LINK="-ltiff"
14809 else
14810 echo "$ac_t""no" 1>&6
14811 fi
14812
14813 else
14814 echo "$ac_t""no" 1>&6
14815 fi
14816
14817 if test "x$TIFF_LINK" = "x" ; then
14818 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
14819 fi
14820 fi
14821 fi
14822
14823 FREETYPE_INCLUDE=
14824 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
14825 cat >> confdefs.h <<\EOF
14826 #define wxUSE_FREETYPE 1
14827 EOF
14828
14829 if test "$wxUSE_FREETYPE" = "yes" ; then
14830 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14831 else
14832 FREETYPE_LINK=
14833 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14834 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
14835 echo "configure:14836: checking for freetype.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 <freetype.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 FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
14862 echo "configure:14863: checking for FT_Render_Glyph in -lfreetype" >&5
14863 ac_lib_var=`echo freetype'_'FT_Render_Glyph | 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="-lfreetype -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 FT_Render_Glyph();
14876
14877 int main() {
14878 FT_Render_Glyph()
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 FREETYPE_LINK="-lfreetype"
14897 else
14898 echo "$ac_t""no" 1>&6
14899 fi
14900
14901
14902 else
14903 echo "$ac_t""no" 1>&6
14904 fi
14905
14906 if test "x$FREETYPE_LINK" = "x" ; then
14907 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
14908 fi
14909 fi
14910 fi
14911
14912 if test "$wxUSE_OPENGL" = "yes"; then
14913 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14914 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14915 echo "configure:14916: checking for GL/gl.h" >&5
14916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14917 echo $ac_n "(cached) $ac_c" 1>&6
14918 else
14919 cat > conftest.$ac_ext <<EOF
14920 #line 14921 "configure"
14921 #include "confdefs.h"
14922 #include <GL/gl.h>
14923 EOF
14924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14925 { (eval echo configure:14926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14927 if test -z "$ac_err"; then
14928 rm -rf conftest*
14929 eval "ac_cv_header_$ac_safe=yes"
14930 else
14931 echo "$ac_err" >&5
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 rm -rf conftest*
14935 eval "ac_cv_header_$ac_safe=no"
14936 fi
14937 rm -f conftest*
14938 fi
14939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14940 echo "$ac_t""yes" 1>&6
14941
14942 cat >> confdefs.h <<\EOF
14943 #define wxUSE_OPENGL 1
14944 EOF
14945
14946 cat >> confdefs.h <<\EOF
14947 #define wxUSE_GLCANVAS 1
14948 EOF
14949
14950 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
14951 echo "configure:14952: checking for glFlush in -lGL" >&5
14952 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
14953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14954 echo $ac_n "(cached) $ac_c" 1>&6
14955 else
14956 ac_save_LIBS="$LIBS"
14957 LIBS="-lGL $LIBS"
14958 cat > conftest.$ac_ext <<EOF
14959 #line 14960 "configure"
14960 #include "confdefs.h"
14961 /* Override any gcc2 internal prototype to avoid an error. */
14962 /* We use char because int might match the return type of a gcc2
14963 builtin and then its argument prototype would still apply. */
14964 char glFlush();
14965
14966 int main() {
14967 glFlush()
14968 ; return 0; }
14969 EOF
14970 if { (eval echo configure:14971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14971 rm -rf conftest*
14972 eval "ac_cv_lib_$ac_lib_var=yes"
14973 else
14974 echo "configure: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 rm -rf conftest*
14977 eval "ac_cv_lib_$ac_lib_var=no"
14978 fi
14979 rm -f conftest*
14980 LIBS="$ac_save_LIBS"
14981
14982 fi
14983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14984 echo "$ac_t""yes" 1>&6
14985
14986 OPENGL_LINK="-lGL -lGLU"
14987
14988 else
14989 echo "$ac_t""no" 1>&6
14990
14991 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
14992 echo "configure:14993: checking for glFlush in -lMesaGL" >&5
14993 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
14994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
14996 else
14997 ac_save_LIBS="$LIBS"
14998 LIBS="-lMesaGL $LIBS"
14999 cat > conftest.$ac_ext <<EOF
15000 #line 15001 "configure"
15001 #include "confdefs.h"
15002 /* Override any gcc2 internal prototype to avoid an error. */
15003 /* We use char because int might match the return type of a gcc2
15004 builtin and then its argument prototype would still apply. */
15005 char glFlush();
15006
15007 int main() {
15008 glFlush()
15009 ; return 0; }
15010 EOF
15011 if { (eval echo configure:15012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15012 rm -rf conftest*
15013 eval "ac_cv_lib_$ac_lib_var=yes"
15014 else
15015 echo "configure: failed program was:" >&5
15016 cat conftest.$ac_ext >&5
15017 rm -rf conftest*
15018 eval "ac_cv_lib_$ac_lib_var=no"
15019 fi
15020 rm -f conftest*
15021 LIBS="$ac_save_LIBS"
15022
15023 fi
15024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15025 echo "$ac_t""yes" 1>&6
15026
15027 OPENGL_LINK="-lMesaGL -lMesaGLU"
15028
15029 else
15030 echo "$ac_t""no" 1>&6
15031 fi
15032
15033
15034 fi
15035
15036
15037 else
15038 echo "$ac_t""no" 1>&6
15039 wxUSE_OPENGL=0
15040 fi
15041
15042 fi
15043
15044
15045 if test "$wxUSE_GUI" = "yes"; then
15046 cat >> confdefs.h <<\EOF
15047 #define wxUSE_GUI 1
15048 EOF
15049
15050
15051 else
15052 cat >> confdefs.h <<\EOF
15053 #define wxUSE_NOGUI 1
15054 EOF
15055
15056 fi
15057
15058
15059 if test "$wxUSE_UNIX" = "yes"; then
15060 cat >> confdefs.h <<\EOF
15061 #define wxUSE_UNIX 1
15062 EOF
15063
15064 fi
15065
15066
15067 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15068 cat >> confdefs.h <<\EOF
15069 #define wxUSE_APPLE_IEEE 1
15070 EOF
15071
15072 fi
15073
15074 if test "$wxUSE_TIMER" = "yes"; then
15075 cat >> confdefs.h <<\EOF
15076 #define wxUSE_TIMER 1
15077 EOF
15078
15079 fi
15080
15081 if test "$wxUSE_WAVE" = "yes"; then
15082 cat >> confdefs.h <<\EOF
15083 #define wxUSE_WAVE 1
15084 EOF
15085
15086 fi
15087
15088 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15089 cat >> confdefs.h <<\EOF
15090 #define wxUSE_CMDLINE_PARSER 1
15091 EOF
15092
15093 fi
15094
15095 if test "$wxUSE_STOPWATCH" = "yes"; then
15096 cat >> confdefs.h <<\EOF
15097 #define wxUSE_STOPWATCH 1
15098 EOF
15099
15100 fi
15101
15102 if test "$wxUSE_DATETIME" = "yes"; then
15103 cat >> confdefs.h <<\EOF
15104 #define wxUSE_DATETIME 1
15105 EOF
15106
15107 fi
15108
15109 if test "$wxUSE_TIMEDATE" = "yes"; then
15110 cat >> confdefs.h <<\EOF
15111 #define wxUSE_TIMEDATE 1
15112 EOF
15113
15114 fi
15115
15116 if test "$wxUSE_FILE" = "yes"; then
15117 cat >> confdefs.h <<\EOF
15118 #define wxUSE_FILE 1
15119 EOF
15120
15121 fi
15122
15123 if test "$wxUSE_FFILE" = "yes"; then
15124 cat >> confdefs.h <<\EOF
15125 #define wxUSE_FFILE 1
15126 EOF
15127
15128 fi
15129
15130 if test "$wxUSE_FILESYSTEM" = "yes"; then
15131 cat >> confdefs.h <<\EOF
15132 #define wxUSE_FILESYSTEM 1
15133 EOF
15134
15135 fi
15136
15137 if test "$wxUSE_FS_INET" = "yes"; then
15138 cat >> confdefs.h <<\EOF
15139 #define wxUSE_FS_INET 1
15140 EOF
15141
15142 fi
15143
15144 if test "$wxUSE_FS_ZIP" = "yes"; then
15145 cat >> confdefs.h <<\EOF
15146 #define wxUSE_FS_ZIP 1
15147 EOF
15148
15149 fi
15150
15151 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15152 cat >> confdefs.h <<\EOF
15153 #define wxUSE_ZIPSTREAM 1
15154 EOF
15155
15156 fi
15157
15158 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15159 cat >> confdefs.h <<\EOF
15160 #define wxUSE_ON_FATAL_EXCEPTION 1
15161 EOF
15162
15163 fi
15164
15165 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15166 cat >> confdefs.h <<\EOF
15167 #define wxUSE_SNGLINST_CHECKER 1
15168 EOF
15169
15170 fi
15171
15172 if test "$wxUSE_BUSYINFO" = "yes"; then
15173 cat >> confdefs.h <<\EOF
15174 #define wxUSE_BUSYINFO 1
15175 EOF
15176
15177 fi
15178
15179 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15180 cat >> confdefs.h <<\EOF
15181 #define wxUSE_STD_IOSTREAM 1
15182 EOF
15183
15184 fi
15185
15186 if test "$wxUSE_TEXTFILE" = "yes"; then
15187 if test "$wxUSE_FILE" != "yes"; then
15188 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15189 else
15190 cat >> confdefs.h <<\EOF
15191 #define wxUSE_TEXTFILE 1
15192 EOF
15193
15194 fi
15195 fi
15196
15197 if test "$wxUSE_CONFIG" = "yes" ; then
15198 if test "$wxUSE_TEXTFILE" != "yes"; then
15199 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15200 else
15201 cat >> confdefs.h <<\EOF
15202 #define wxUSE_CONFIG 1
15203 EOF
15204
15205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15206 fi
15207 fi
15208
15209 if test "$wxUSE_INTL" = "yes" ; then
15210 if test "$wxUSE_FILE" != "yes"; then
15211 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15212 else
15213 cat >> confdefs.h <<\EOF
15214 #define wxUSE_INTL 1
15215 EOF
15216
15217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15218 GUIDIST="$GUIDIST INTL_DIST"
15219 fi
15220 fi
15221
15222 if test "$wxUSE_LOG" = "yes"; then
15223 cat >> confdefs.h <<\EOF
15224 #define wxUSE_LOG 1
15225 EOF
15226
15227
15228 if test "$wxUSE_LOGGUI" = "yes"; then
15229 cat >> confdefs.h <<\EOF
15230 #define wxUSE_LOGGUI 1
15231 EOF
15232
15233 fi
15234
15235 if test "$wxUSE_LOGWINDOW" = "yes"; then
15236 cat >> confdefs.h <<\EOF
15237 #define wxUSE_LOGWINDOW 1
15238 EOF
15239
15240 fi
15241 fi
15242
15243 if test "$wxUSE_LONGLONG" = "yes"; then
15244 cat >> confdefs.h <<\EOF
15245 #define wxUSE_LONGLONG 1
15246 EOF
15247
15248 fi
15249
15250 if test "$wxUSE_GEOMETRY" = "yes"; then
15251 cat >> confdefs.h <<\EOF
15252 #define wxUSE_GEOMETRY 1
15253 EOF
15254
15255 fi
15256
15257 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15258 cat >> confdefs.h <<\EOF
15259 #define wxUSE_DIALUP_MANAGER 1
15260 EOF
15261
15262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15263 fi
15264
15265 if test "$wxUSE_STREAMS" = "yes" ; then
15266 cat >> confdefs.h <<\EOF
15267 #define wxUSE_STREAMS 1
15268 EOF
15269
15270 fi
15271
15272
15273 if test "$wxUSE_DATETIME" = "yes"; then
15274 for ac_func in strptime
15275 do
15276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15277 echo "configure:15278: checking for $ac_func" >&5
15278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15279 echo $ac_n "(cached) $ac_c" 1>&6
15280 else
15281 cat > conftest.$ac_ext <<EOF
15282 #line 15283 "configure"
15283 #include "confdefs.h"
15284 /* System header to define __stub macros and hopefully few prototypes,
15285 which can conflict with char $ac_func(); below. */
15286 #include <assert.h>
15287 /* Override any gcc2 internal prototype to avoid an error. */
15288 /* We use char because int might match the return type of a gcc2
15289 builtin and then its argument prototype would still apply. */
15290 char $ac_func();
15291
15292 int main() {
15293
15294 /* The GNU C library defines this for functions which it implements
15295 to always fail with ENOSYS. Some functions are actually named
15296 something starting with __ and the normal name is an alias. */
15297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15298 choke me
15299 #else
15300 $ac_func();
15301 #endif
15302
15303 ; return 0; }
15304 EOF
15305 if { (eval echo configure:15306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15306 rm -rf conftest*
15307 eval "ac_cv_func_$ac_func=yes"
15308 else
15309 echo "configure: failed program was:" >&5
15310 cat conftest.$ac_ext >&5
15311 rm -rf conftest*
15312 eval "ac_cv_func_$ac_func=no"
15313 fi
15314 rm -f conftest*
15315 fi
15316
15317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15318 echo "$ac_t""yes" 1>&6
15319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15320 cat >> confdefs.h <<EOF
15321 #define $ac_tr_func 1
15322 EOF
15323
15324 else
15325 echo "$ac_t""no" 1>&6
15326 fi
15327 done
15328
15329
15330 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15331 echo "configure:15332: checking for timezone variable in <time.h>" >&5
15332 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15334 else
15335
15336 cat > conftest.$ac_ext <<EOF
15337 #line 15338 "configure"
15338 #include "confdefs.h"
15339
15340 #include <time.h>
15341
15342 int main() {
15343
15344 int tz;
15345 tz = __timezone;
15346
15347 ; return 0; }
15348 EOF
15349 if { (eval echo configure:15350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15350 rm -rf conftest*
15351
15352 wx_cv_var_timezone=__timezone
15353
15354 else
15355 echo "configure: failed program was:" >&5
15356 cat conftest.$ac_ext >&5
15357 rm -rf conftest*
15358
15359 cat > conftest.$ac_ext <<EOF
15360 #line 15361 "configure"
15361 #include "confdefs.h"
15362
15363 #include <time.h>
15364
15365 int main() {
15366
15367 int tz;
15368 tz = _timezone;
15369
15370 ; return 0; }
15371 EOF
15372 if { (eval echo configure:15373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15373 rm -rf conftest*
15374
15375 wx_cv_var_timezone=_timezone
15376
15377 else
15378 echo "configure: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15380 rm -rf conftest*
15381
15382 cat > conftest.$ac_ext <<EOF
15383 #line 15384 "configure"
15384 #include "confdefs.h"
15385
15386 #include <time.h>
15387
15388 int main() {
15389
15390 int tz;
15391 tz = timezone;
15392
15393 ; return 0; }
15394 EOF
15395 if { (eval echo configure:15396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15396 rm -rf conftest*
15397
15398 wx_cv_var_timezone=timezone
15399
15400 else
15401 echo "configure: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15403 rm -rf conftest*
15404 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15405
15406 fi
15407 rm -f conftest*
15408
15409
15410 fi
15411 rm -f conftest*
15412
15413
15414 fi
15415 rm -f conftest*
15416
15417
15418 fi
15419
15420 echo "$ac_t""$wx_cv_var_timezone" 1>&6
15421
15422 cat >> confdefs.h <<EOF
15423 #define WX_TIMEZONE $wx_cv_var_timezone
15424 EOF
15425
15426
15427 for ac_func in localtime
15428 do
15429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15430 echo "configure:15431: checking for $ac_func" >&5
15431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15432 echo $ac_n "(cached) $ac_c" 1>&6
15433 else
15434 cat > conftest.$ac_ext <<EOF
15435 #line 15436 "configure"
15436 #include "confdefs.h"
15437 /* System header to define __stub macros and hopefully few prototypes,
15438 which can conflict with char $ac_func(); below. */
15439 #include <assert.h>
15440 /* Override any gcc2 internal prototype to avoid an error. */
15441 /* We use char because int might match the return type of a gcc2
15442 builtin and then its argument prototype would still apply. */
15443 char $ac_func();
15444
15445 int main() {
15446
15447 /* The GNU C library defines this for functions which it implements
15448 to always fail with ENOSYS. Some functions are actually named
15449 something starting with __ and the normal name is an alias. */
15450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15451 choke me
15452 #else
15453 $ac_func();
15454 #endif
15455
15456 ; return 0; }
15457 EOF
15458 if { (eval echo configure:15459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15459 rm -rf conftest*
15460 eval "ac_cv_func_$ac_func=yes"
15461 else
15462 echo "configure: failed program was:" >&5
15463 cat conftest.$ac_ext >&5
15464 rm -rf conftest*
15465 eval "ac_cv_func_$ac_func=no"
15466 fi
15467 rm -f conftest*
15468 fi
15469
15470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15471 echo "$ac_t""yes" 1>&6
15472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15473 cat >> confdefs.h <<EOF
15474 #define $ac_tr_func 1
15475 EOF
15476
15477 else
15478 echo "$ac_t""no" 1>&6
15479 fi
15480 done
15481
15482
15483 if test "$ac_cv_func_localtime" = "yes"; then
15484 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
15485 echo "configure:15486: checking for tm_gmtoff in struct tm" >&5
15486 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15487 echo $ac_n "(cached) $ac_c" 1>&6
15488 else
15489
15490 cat > conftest.$ac_ext <<EOF
15491 #line 15492 "configure"
15492 #include "confdefs.h"
15493
15494 #include <time.h>
15495
15496 int main() {
15497
15498 struct tm tm;
15499 tm.tm_gmtoff++;
15500
15501 ; return 0; }
15502 EOF
15503 if { (eval echo configure:15504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15504 rm -rf conftest*
15505
15506 wx_cv_struct_tm_has_gmtoff=yes
15507
15508 else
15509 echo "configure: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15511 rm -rf conftest*
15512 wx_cv_struct_tm_has_gmtoff=no
15513
15514 fi
15515 rm -f conftest*
15516
15517 fi
15518
15519 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
15520 fi
15521
15522 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
15523 cat >> confdefs.h <<\EOF
15524 #define WX_GMTOFF_IN_TM 1
15525 EOF
15526
15527 fi
15528
15529 for ac_func in gettimeofday ftime
15530 do
15531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15532 echo "configure:15533: checking for $ac_func" >&5
15533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15534 echo $ac_n "(cached) $ac_c" 1>&6
15535 else
15536 cat > conftest.$ac_ext <<EOF
15537 #line 15538 "configure"
15538 #include "confdefs.h"
15539 /* System header to define __stub macros and hopefully few prototypes,
15540 which can conflict with char $ac_func(); below. */
15541 #include <assert.h>
15542 /* Override any gcc2 internal prototype to avoid an error. */
15543 /* We use char because int might match the return type of a gcc2
15544 builtin and then its argument prototype would still apply. */
15545 char $ac_func();
15546
15547 int main() {
15548
15549 /* The GNU C library defines this for functions which it implements
15550 to always fail with ENOSYS. Some functions are actually named
15551 something starting with __ and the normal name is an alias. */
15552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15553 choke me
15554 #else
15555 $ac_func();
15556 #endif
15557
15558 ; return 0; }
15559 EOF
15560 if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15561 rm -rf conftest*
15562 eval "ac_cv_func_$ac_func=yes"
15563 else
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 rm -rf conftest*
15567 eval "ac_cv_func_$ac_func=no"
15568 fi
15569 rm -f conftest*
15570 fi
15571
15572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15573 echo "$ac_t""yes" 1>&6
15574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15575 cat >> confdefs.h <<EOF
15576 #define $ac_tr_func 1
15577 EOF
15578 break
15579 else
15580 echo "$ac_t""no" 1>&6
15581 fi
15582 done
15583
15584
15585 if test "$ac_cv_func_gettimeofday" = "yes"; then
15586 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
15587 echo "configure:15588: checking whether gettimeofday takes two arguments" >&5
15588 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15589 echo $ac_n "(cached) $ac_c" 1>&6
15590 else
15591
15592
15593 ac_ext=C
15594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15595 ac_cpp='$CXXCPP $CPPFLAGS'
15596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15598 cross_compiling=$ac_cv_prog_cxx_cross
15599
15600
15601 cat > conftest.$ac_ext <<EOF
15602 #line 15603 "configure"
15603 #include "confdefs.h"
15604
15605 #include <sys/time.h>
15606 #include <unistd.h>
15607
15608 int main() {
15609
15610 struct timeval tv;
15611 struct timezone tz;
15612 gettimeofday(&tv, &tz);
15613
15614 ; return 0; }
15615 EOF
15616 if { (eval echo configure:15617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15617 rm -rf conftest*
15618 wx_cv_func_gettimeofday_has_2_args=yes
15619 else
15620 echo "configure: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 rm -rf conftest*
15623 cat > conftest.$ac_ext <<EOF
15624 #line 15625 "configure"
15625 #include "confdefs.h"
15626
15627 #include <sys/time.h>
15628 #include <unistd.h>
15629
15630 int main() {
15631
15632 struct timeval tv;
15633 gettimeofday(&tv);
15634
15635 ; return 0; }
15636 EOF
15637 if { (eval echo configure:15638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15638 rm -rf conftest*
15639 wx_cv_func_gettimeofday_has_2_args=no
15640 else
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15643 rm -rf conftest*
15644 wx_cv_func_gettimeofday_has_2_args=unknown
15645
15646 fi
15647 rm -f conftest*
15648
15649 fi
15650 rm -f conftest*
15651 ac_ext=c
15652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15653 ac_cpp='$CPP $CPPFLAGS'
15654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15656 cross_compiling=$ac_cv_prog_cc_cross
15657
15658
15659 fi
15660
15661 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
15662
15663 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
15664 cat >> confdefs.h <<\EOF
15665 #define WX_GETTIMEOFDAY_NO_TZ 1
15666 EOF
15667
15668 fi
15669 fi
15670
15671 cat >> confdefs.h <<\EOF
15672 #define wxUSE_TIMEDATE 1
15673 EOF
15674
15675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15676 fi
15677
15678
15679 if test "$TOOLKIT" != "MSW"; then
15680
15681 if test "$wxUSE_SOCKETS" = "yes"; then
15682 echo $ac_n "checking for socket""... $ac_c" 1>&6
15683 echo "configure:15684: checking for socket" >&5
15684 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15685 echo $ac_n "(cached) $ac_c" 1>&6
15686 else
15687 cat > conftest.$ac_ext <<EOF
15688 #line 15689 "configure"
15689 #include "confdefs.h"
15690 /* System header to define __stub macros and hopefully few prototypes,
15691 which can conflict with char socket(); below. */
15692 #include <assert.h>
15693 /* Override any gcc2 internal prototype to avoid an error. */
15694 /* We use char because int might match the return type of a gcc2
15695 builtin and then its argument prototype would still apply. */
15696 char socket();
15697
15698 int main() {
15699
15700 /* The GNU C library defines this for functions which it implements
15701 to always fail with ENOSYS. Some functions are actually named
15702 something starting with __ and the normal name is an alias. */
15703 #if defined (__stub_socket) || defined (__stub___socket)
15704 choke me
15705 #else
15706 socket();
15707 #endif
15708
15709 ; return 0; }
15710 EOF
15711 if { (eval echo configure:15712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15712 rm -rf conftest*
15713 eval "ac_cv_func_socket=yes"
15714 else
15715 echo "configure: failed program was:" >&5
15716 cat conftest.$ac_ext >&5
15717 rm -rf conftest*
15718 eval "ac_cv_func_socket=no"
15719 fi
15720 rm -f conftest*
15721 fi
15722
15723 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15724 echo "$ac_t""yes" 1>&6
15725 :
15726 else
15727 echo "$ac_t""no" 1>&6
15728 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
15729 echo "configure:15730: checking for socket in -lsocket" >&5
15730 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15732 echo $ac_n "(cached) $ac_c" 1>&6
15733 else
15734 ac_save_LIBS="$LIBS"
15735 LIBS="-lsocket $LIBS"
15736 cat > conftest.$ac_ext <<EOF
15737 #line 15738 "configure"
15738 #include "confdefs.h"
15739 /* Override any gcc2 internal prototype to avoid an error. */
15740 /* We use char because int might match the return type of a gcc2
15741 builtin and then its argument prototype would still apply. */
15742 char socket();
15743
15744 int main() {
15745 socket()
15746 ; return 0; }
15747 EOF
15748 if { (eval echo configure:15749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15749 rm -rf conftest*
15750 eval "ac_cv_lib_$ac_lib_var=yes"
15751 else
15752 echo "configure: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15754 rm -rf conftest*
15755 eval "ac_cv_lib_$ac_lib_var=no"
15756 fi
15757 rm -f conftest*
15758 LIBS="$ac_save_LIBS"
15759
15760 fi
15761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15762 echo "$ac_t""yes" 1>&6
15763 INET_LINK="$INET_LINK -lsocket"
15764 else
15765 echo "$ac_t""no" 1>&6
15766
15767 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
15768 wxUSE_SOCKETS=no
15769
15770
15771 fi
15772
15773
15774 fi
15775
15776 fi
15777
15778
15779 if test "$wxUSE_SOCKETS" = "yes" ; then
15780 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
15781 echo "configure:15782: checking what is the type of the third argument of getsockname" >&5
15782 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15783 echo $ac_n "(cached) $ac_c" 1>&6
15784 else
15785
15786
15787 ac_ext=C
15788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15789 ac_cpp='$CXXCPP $CPPFLAGS'
15790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15792 cross_compiling=$ac_cv_prog_cxx_cross
15793
15794
15795 cat > conftest.$ac_ext <<EOF
15796 #line 15797 "configure"
15797 #include "confdefs.h"
15798
15799 #include <sys/types.h>
15800 #include <sys/socket.h>
15801
15802 int main() {
15803
15804 socklen_t len;
15805 getsockname(0, 0, &len);
15806
15807 ; return 0; }
15808 EOF
15809 if { (eval echo configure:15810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15810 rm -rf conftest*
15811 wx_cv_type_getsockname3=socklen_t
15812 else
15813 echo "configure: failed program was:" >&5
15814 cat conftest.$ac_ext >&5
15815 rm -rf conftest*
15816 cat > conftest.$ac_ext <<EOF
15817 #line 15818 "configure"
15818 #include "confdefs.h"
15819
15820 #include <sys/types.h>
15821 #include <sys/socket.h>
15822
15823 int main() {
15824
15825 size_t len;
15826 getsockname(0, 0, &len);
15827
15828 ; return 0; }
15829 EOF
15830 if { (eval echo configure:15831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15831 rm -rf conftest*
15832 wx_cv_type_getsockname3=size_t
15833 else
15834 echo "configure: failed program was:" >&5
15835 cat conftest.$ac_ext >&5
15836 rm -rf conftest*
15837 cat > conftest.$ac_ext <<EOF
15838 #line 15839 "configure"
15839 #include "confdefs.h"
15840
15841 #include <sys/types.h>
15842 #include <sys/socket.h>
15843
15844 int main() {
15845
15846 int len;
15847 getsockname(0, 0, &len);
15848
15849 ; return 0; }
15850 EOF
15851 if { (eval echo configure:15852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15852 rm -rf conftest*
15853 wx_cv_type_getsockname3=int
15854 else
15855 echo "configure: failed program was:" >&5
15856 cat conftest.$ac_ext >&5
15857 rm -rf conftest*
15858 wx_cv_type_getsockname3=unknown
15859
15860 fi
15861 rm -f conftest*
15862
15863 fi
15864 rm -f conftest*
15865
15866 fi
15867 rm -f conftest*
15868
15869 ac_ext=c
15870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15871 ac_cpp='$CPP $CPPFLAGS'
15872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15874 cross_compiling=$ac_cv_prog_cc_cross
15875
15876
15877 fi
15878
15879 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
15880
15881 if test "$wx_cv_type_getsockname3" = "unknown"; then
15882 wxUSE_SOCKETS=no
15883 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
15884 else
15885 cat >> confdefs.h <<EOF
15886 #define SOCKLEN_T $wx_cv_type_getsockname3
15887 EOF
15888
15889 fi
15890 fi
15891
15892 fi
15893
15894 if test "$wxUSE_SOCKETS" = "yes" ; then
15895 cat >> confdefs.h <<\EOF
15896 #define wxUSE_SOCKETS 1
15897 EOF
15898
15899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
15900 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15901 fi
15902
15903
15904 if test "$wxUSE_GUI" = "yes"; then
15905
15906 if test "$TOOLKIT" != "MSW"; then
15907
15908 if test "$wxUSE_JOYSTICK" = "yes"; then
15909 for ac_hdr in linux/joystick.h
15910 do
15911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15913 echo "configure:15914: checking for $ac_hdr" >&5
15914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
15916 else
15917 cat > conftest.$ac_ext <<EOF
15918 #line 15919 "configure"
15919 #include "confdefs.h"
15920 #include <$ac_hdr>
15921 EOF
15922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15923 { (eval echo configure:15924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15925 if test -z "$ac_err"; then
15926 rm -rf conftest*
15927 eval "ac_cv_header_$ac_safe=yes"
15928 else
15929 echo "$ac_err" >&5
15930 echo "configure: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15932 rm -rf conftest*
15933 eval "ac_cv_header_$ac_safe=no"
15934 fi
15935 rm -f conftest*
15936 fi
15937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15938 echo "$ac_t""yes" 1>&6
15939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15940 cat >> confdefs.h <<EOF
15941 #define $ac_tr_hdr 1
15942 EOF
15943
15944 else
15945 echo "$ac_t""no" 1>&6
15946 fi
15947 done
15948
15949 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
15950 wxUSE_JOYSTICK=no
15951 echo "configure: warning: Joystick not supported by this system" 1>&2
15952 fi
15953 fi
15954
15955 fi
15956
15957 if test "$wxUSE_JOYSTICK" = "yes"; then
15958 cat >> confdefs.h <<\EOF
15959 #define wxUSE_JOYSTICK 1
15960 EOF
15961
15962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
15963 fi
15964
15965 fi
15966
15967
15968 if test "$TOOLKIT" != "MSW"; then
15969
15970 HAVE_DL_FUNCS=0
15971 HAVE_SHL_FUNCS=0
15972 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
15973 if test "$USE_MAC" = 1; then
15974 HAVE_DL_FUNCS=1
15975 else
15976 for ac_func in dlopen
15977 do
15978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15979 echo "configure:15980: checking for $ac_func" >&5
15980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15981 echo $ac_n "(cached) $ac_c" 1>&6
15982 else
15983 cat > conftest.$ac_ext <<EOF
15984 #line 15985 "configure"
15985 #include "confdefs.h"
15986 /* System header to define __stub macros and hopefully few prototypes,
15987 which can conflict with char $ac_func(); below. */
15988 #include <assert.h>
15989 /* Override any gcc2 internal prototype to avoid an error. */
15990 /* We use char because int might match the return type of a gcc2
15991 builtin and then its argument prototype would still apply. */
15992 char $ac_func();
15993
15994 int main() {
15995
15996 /* The GNU C library defines this for functions which it implements
15997 to always fail with ENOSYS. Some functions are actually named
15998 something starting with __ and the normal name is an alias. */
15999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16000 choke me
16001 #else
16002 $ac_func();
16003 #endif
16004
16005 ; return 0; }
16006 EOF
16007 if { (eval echo configure:16008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16008 rm -rf conftest*
16009 eval "ac_cv_func_$ac_func=yes"
16010 else
16011 echo "configure: failed program was:" >&5
16012 cat conftest.$ac_ext >&5
16013 rm -rf conftest*
16014 eval "ac_cv_func_$ac_func=no"
16015 fi
16016 rm -f conftest*
16017 fi
16018
16019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16020 echo "$ac_t""yes" 1>&6
16021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16022 cat >> confdefs.h <<EOF
16023 #define $ac_tr_func 1
16024 EOF
16025
16026 cat >> confdefs.h <<\EOF
16027 #define HAVE_DLOPEN 1
16028 EOF
16029
16030 HAVE_DL_FUNCS=1
16031
16032 else
16033 echo "$ac_t""no" 1>&6
16034 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16035 echo "configure:16036: checking for dlopen in -ldl" >&5
16036 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16038 echo $ac_n "(cached) $ac_c" 1>&6
16039 else
16040 ac_save_LIBS="$LIBS"
16041 LIBS="-ldl $LIBS"
16042 cat > conftest.$ac_ext <<EOF
16043 #line 16044 "configure"
16044 #include "confdefs.h"
16045 /* Override any gcc2 internal prototype to avoid an error. */
16046 /* We use char because int might match the return type of a gcc2
16047 builtin and then its argument prototype would still apply. */
16048 char dlopen();
16049
16050 int main() {
16051 dlopen()
16052 ; return 0; }
16053 EOF
16054 if { (eval echo configure:16055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16055 rm -rf conftest*
16056 eval "ac_cv_lib_$ac_lib_var=yes"
16057 else
16058 echo "configure: failed program was:" >&5
16059 cat conftest.$ac_ext >&5
16060 rm -rf conftest*
16061 eval "ac_cv_lib_$ac_lib_var=no"
16062 fi
16063 rm -f conftest*
16064 LIBS="$ac_save_LIBS"
16065
16066 fi
16067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16068 echo "$ac_t""yes" 1>&6
16069
16070 cat >> confdefs.h <<\EOF
16071 #define HAVE_DLOPEN 1
16072 EOF
16073
16074 HAVE_DL_FUNCS=1
16075 LIBS="$LIBS -ldl"
16076
16077 else
16078 echo "$ac_t""no" 1>&6
16079
16080 for ac_func in shl_load
16081 do
16082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16083 echo "configure:16084: checking for $ac_func" >&5
16084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16085 echo $ac_n "(cached) $ac_c" 1>&6
16086 else
16087 cat > conftest.$ac_ext <<EOF
16088 #line 16089 "configure"
16089 #include "confdefs.h"
16090 /* System header to define __stub macros and hopefully few prototypes,
16091 which can conflict with char $ac_func(); below. */
16092 #include <assert.h>
16093 /* Override any gcc2 internal prototype to avoid an error. */
16094 /* We use char because int might match the return type of a gcc2
16095 builtin and then its argument prototype would still apply. */
16096 char $ac_func();
16097
16098 int main() {
16099
16100 /* The GNU C library defines this for functions which it implements
16101 to always fail with ENOSYS. Some functions are actually named
16102 something starting with __ and the normal name is an alias. */
16103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16104 choke me
16105 #else
16106 $ac_func();
16107 #endif
16108
16109 ; return 0; }
16110 EOF
16111 if { (eval echo configure:16112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16112 rm -rf conftest*
16113 eval "ac_cv_func_$ac_func=yes"
16114 else
16115 echo "configure: failed program was:" >&5
16116 cat conftest.$ac_ext >&5
16117 rm -rf conftest*
16118 eval "ac_cv_func_$ac_func=no"
16119 fi
16120 rm -f conftest*
16121 fi
16122
16123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16124 echo "$ac_t""yes" 1>&6
16125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16126 cat >> confdefs.h <<EOF
16127 #define $ac_tr_func 1
16128 EOF
16129
16130 cat >> confdefs.h <<\EOF
16131 #define HAVE_SHL_LOAD 1
16132 EOF
16133
16134 HAVE_SHL_FUNCS=1
16135
16136 else
16137 echo "$ac_t""no" 1>&6
16138 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16139 echo "configure:16140: checking for dld in -lshl_load" >&5
16140 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16142 echo $ac_n "(cached) $ac_c" 1>&6
16143 else
16144 ac_save_LIBS="$LIBS"
16145 LIBS="-lshl_load $LIBS"
16146 cat > conftest.$ac_ext <<EOF
16147 #line 16148 "configure"
16148 #include "confdefs.h"
16149 /* Override any gcc2 internal prototype to avoid an error. */
16150 /* We use char because int might match the return type of a gcc2
16151 builtin and then its argument prototype would still apply. */
16152 char dld();
16153
16154 int main() {
16155 dld()
16156 ; return 0; }
16157 EOF
16158 if { (eval echo configure:16159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16159 rm -rf conftest*
16160 eval "ac_cv_lib_$ac_lib_var=yes"
16161 else
16162 echo "configure: failed program was:" >&5
16163 cat conftest.$ac_ext >&5
16164 rm -rf conftest*
16165 eval "ac_cv_lib_$ac_lib_var=no"
16166 fi
16167 rm -f conftest*
16168 LIBS="$ac_save_LIBS"
16169
16170 fi
16171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16172 echo "$ac_t""yes" 1>&6
16173
16174 HAVE_SHL_FUNCS=1
16175 LIBS="$LIBS -ldld"
16176
16177 else
16178 echo "$ac_t""no" 1>&6
16179 fi
16180
16181
16182 fi
16183 done
16184
16185
16186 fi
16187
16188
16189 fi
16190 done
16191
16192
16193 if test "$HAVE_DL_FUNCS" = 1; then
16194 for ac_func in dlerror
16195 do
16196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16197 echo "configure:16198: checking for $ac_func" >&5
16198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16199 echo $ac_n "(cached) $ac_c" 1>&6
16200 else
16201 cat > conftest.$ac_ext <<EOF
16202 #line 16203 "configure"
16203 #include "confdefs.h"
16204 /* System header to define __stub macros and hopefully few prototypes,
16205 which can conflict with char $ac_func(); below. */
16206 #include <assert.h>
16207 /* Override any gcc2 internal prototype to avoid an error. */
16208 /* We use char because int might match the return type of a gcc2
16209 builtin and then its argument prototype would still apply. */
16210 char $ac_func();
16211
16212 int main() {
16213
16214 /* The GNU C library defines this for functions which it implements
16215 to always fail with ENOSYS. Some functions are actually named
16216 something starting with __ and the normal name is an alias. */
16217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16218 choke me
16219 #else
16220 $ac_func();
16221 #endif
16222
16223 ; return 0; }
16224 EOF
16225 if { (eval echo configure:16226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16226 rm -rf conftest*
16227 eval "ac_cv_func_$ac_func=yes"
16228 else
16229 echo "configure: failed program was:" >&5
16230 cat conftest.$ac_ext >&5
16231 rm -rf conftest*
16232 eval "ac_cv_func_$ac_func=no"
16233 fi
16234 rm -f conftest*
16235 fi
16236
16237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16238 echo "$ac_t""yes" 1>&6
16239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16240 cat >> confdefs.h <<EOF
16241 #define $ac_tr_func 1
16242 EOF
16243 cat >> confdefs.h <<\EOF
16244 #define HAVE_DLERROR 1
16245 EOF
16246
16247 else
16248 echo "$ac_t""no" 1>&6
16249 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16250 echo "configure:16251: checking for dlerror in -ldl" >&5
16251 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16253 echo $ac_n "(cached) $ac_c" 1>&6
16254 else
16255 ac_save_LIBS="$LIBS"
16256 LIBS="-ldl $LIBS"
16257 cat > conftest.$ac_ext <<EOF
16258 #line 16259 "configure"
16259 #include "confdefs.h"
16260 /* Override any gcc2 internal prototype to avoid an error. */
16261 /* We use char because int might match the return type of a gcc2
16262 builtin and then its argument prototype would still apply. */
16263 char dlerror();
16264
16265 int main() {
16266 dlerror()
16267 ; return 0; }
16268 EOF
16269 if { (eval echo configure:16270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16270 rm -rf conftest*
16271 eval "ac_cv_lib_$ac_lib_var=yes"
16272 else
16273 echo "configure: failed program was:" >&5
16274 cat conftest.$ac_ext >&5
16275 rm -rf conftest*
16276 eval "ac_cv_lib_$ac_lib_var=no"
16277 fi
16278 rm -f conftest*
16279 LIBS="$ac_save_LIBS"
16280
16281 fi
16282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16283 echo "$ac_t""yes" 1>&6
16284 cat >> confdefs.h <<\EOF
16285 #define HAVE_DLERROR 1
16286 EOF
16287
16288 else
16289 echo "$ac_t""no" 1>&6
16290 fi
16291
16292 fi
16293 done
16294
16295 fi
16296 fi
16297
16298 if test "$HAVE_DL_FUNCS" = 0; then
16299 if test "$HAVE_SHL_FUNCS" = 0; then
16300 if test "$USE_UNIX" = 1; then
16301 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16302 wxUSE_DYNLIB_CLASS=no
16303 else
16304 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16305 fi
16306 fi
16307 fi
16308 fi
16309
16310 fi
16311
16312 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16313 cat >> confdefs.h <<\EOF
16314 #define wxUSE_DYNLIB_CLASS 1
16315 EOF
16316
16317 else
16318 wxUSE_ODBC=no
16319 wxUSE_SERIAL=no
16320 fi
16321
16322
16323 if test "$wxUSE_FONTMAP" = "yes" ; then
16324 cat >> confdefs.h <<\EOF
16325 #define wxUSE_FONTMAP 1
16326 EOF
16327
16328 fi
16329
16330 if test "$wxUSE_UNICODE" = "yes" ; then
16331 cat >> confdefs.h <<\EOF
16332 #define wxUSE_UNICODE 1
16333 EOF
16334
16335 fi
16336
16337 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16338 cat >> confdefs.h <<\EOF
16339 #define wxUSE_WCSRTOMBS 1
16340 EOF
16341
16342 fi
16343
16344 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16345 cat >> confdefs.h <<\EOF
16346 #define wxUSE_EXPERIMENTAL_PRINTF 1
16347 EOF
16348
16349 fi
16350
16351
16352 if test "$wxUSE_SERIAL" = "yes" ; then
16353 cat >> confdefs.h <<\EOF
16354 #define wxUSE_SERIAL 1
16355 EOF
16356
16357 fi
16358
16359
16360 IODBC_C_SRC=""
16361 if test "$wxUSE_ODBC" = "yes" ; then
16362 cat >> confdefs.h <<\EOF
16363 #define wxUSE_ODBC 1
16364 EOF
16365
16366 WXODBCFLAG="-D_IODBC_"
16367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16368 fi
16369
16370
16371 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16372 cat >> confdefs.h <<\EOF
16373 #define wxUSE_POSTSCRIPT 1
16374 EOF
16375
16376 fi
16377
16378 cat >> confdefs.h <<\EOF
16379 #define wxUSE_AFM_FOR_POSTSCRIPT 1
16380 EOF
16381
16382
16383 cat >> confdefs.h <<\EOF
16384 #define wxUSE_NORMALIZED_PS_FONTS 1
16385 EOF
16386
16387
16388
16389 if test "$wxUSE_CONSTRAINTS" = "yes"; then
16390 cat >> confdefs.h <<\EOF
16391 #define wxUSE_CONSTRAINTS 1
16392 EOF
16393
16394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16395 fi
16396
16397 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16398 cat >> confdefs.h <<\EOF
16399 #define wxUSE_MDI_ARCHITECTURE 1
16400 EOF
16401
16402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16403 fi
16404
16405 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16406 cat >> confdefs.h <<\EOF
16407 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
16408 EOF
16409
16410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16411 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16413 fi
16414 fi
16415
16416 if test "$wxUSE_HELP" = "yes"; then
16417 cat >> confdefs.h <<\EOF
16418 #define wxUSE_HELP 1
16419 EOF
16420
16421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16422 fi
16423
16424 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16425 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16426 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
16427 else
16428 cat >> confdefs.h <<\EOF
16429 #define wxUSE_PRINTING_ARCHITECTURE 1
16430 EOF
16431
16432 fi
16433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16434 fi
16435
16436 if test "$wxUSE_PROLOGIO" = "yes" ; then
16437 cat >> confdefs.h <<\EOF
16438 #define wxUSE_PROLOGIO 1
16439 EOF
16440
16441 fi
16442
16443 if test "$wxUSE_RESOURCES" = "yes" ; then
16444 if test "$wxUSE_PROLOGIO" = "yes" ; then
16445 cat >> confdefs.h <<\EOF
16446 #define wxUSE_RESOURCES 1
16447 EOF
16448
16449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16450 else
16451 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
16452 fi
16453 fi
16454
16455 if test "$wxUSE_X_RESOURCES" = "yes"; then
16456 cat >> confdefs.h <<\EOF
16457 #define wxUSE_X_RESOURCES 1
16458 EOF
16459
16460 fi
16461
16462
16463 if test "$wxUSE_IPC" = "yes"; then
16464 if test "$wxUSE_SOCKETS" != "yes"; then
16465 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
16466 fi
16467
16468 cat >> confdefs.h <<\EOF
16469 #define wxUSE_IPC 1
16470 EOF
16471
16472 fi
16473
16474 if test "$wxUSE_CLIPBOARD" = "yes"; then
16475 cat >> confdefs.h <<\EOF
16476 #define wxUSE_CLIPBOARD 1
16477 EOF
16478
16479 cat >> confdefs.h <<\EOF
16480 #define wxUSE_DATAOBJ 1
16481 EOF
16482
16483 fi
16484
16485 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16486 if test "$wxUSE_GTK" = 1; then
16487 if test "$WXGTK12" != 1; then
16488 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
16489 wxUSE_DRAG_AND_DROP=no
16490 fi
16491 fi
16492
16493 if test "$wxUSE_MOTIF" = 1; then
16494 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
16495 wxUSE_DRAG_AND_DROP=no
16496 fi
16497
16498 if test "$wxUSE_MAC" = 1; then
16499 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
16500 wxUSE_DRAG_AND_DROP=no
16501 fi
16502
16503 if test "$USE_WIN32" = 1; then
16504
16505 for ac_hdr in ole2.h
16506 do
16507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16509 echo "configure:16510: checking for $ac_hdr" >&5
16510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16511 echo $ac_n "(cached) $ac_c" 1>&6
16512 else
16513 cat > conftest.$ac_ext <<EOF
16514 #line 16515 "configure"
16515 #include "confdefs.h"
16516 #include <$ac_hdr>
16517 EOF
16518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16519 { (eval echo configure:16520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16521 if test -z "$ac_err"; then
16522 rm -rf conftest*
16523 eval "ac_cv_header_$ac_safe=yes"
16524 else
16525 echo "$ac_err" >&5
16526 echo "configure: failed program was:" >&5
16527 cat conftest.$ac_ext >&5
16528 rm -rf conftest*
16529 eval "ac_cv_header_$ac_safe=no"
16530 fi
16531 rm -f conftest*
16532 fi
16533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16534 echo "$ac_t""yes" 1>&6
16535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16536 cat >> confdefs.h <<EOF
16537 #define $ac_tr_hdr 1
16538 EOF
16539
16540 else
16541 echo "$ac_t""no" 1>&6
16542 fi
16543 done
16544
16545
16546 if test "$ac_cv_header_ole2_h" = "yes" ; then
16547 if test "$GCC" = yes ; then
16548 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16549 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
16550 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
16551 LIBS="$LIBS -lole32 -luuid"
16552
16553 if test "$wxUSE_METAFILE" = "yes"; then
16554 cat >> confdefs.h <<\EOF
16555 #define wxUSE_METAFILE 1
16556 EOF
16557
16558 cat >> confdefs.h <<\EOF
16559 #define wxUSE_ENH_METAFILE 1
16560 EOF
16561
16562 fi
16563 fi
16564 else
16565 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
16566 wxUSE_DRAG_AND_DROP=no
16567 fi
16568 fi
16569
16570 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
16571 cat >> confdefs.h <<\EOF
16572 #define wxUSE_DRAG_AND_DROP 1
16573 EOF
16574
16575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16576 fi
16577
16578 fi
16579
16580 if test "$wxUSE_SPLINES" = "yes" ; then
16581 cat >> confdefs.h <<\EOF
16582 #define wxUSE_SPLINES 1
16583 EOF
16584
16585 fi
16586
16587
16588 USES_CONTROLS=0
16589 if test "$wxUSE_CONTROLS" = "yes"; then
16590 USES_CONTROLS=1
16591 fi
16592
16593 if test "$wxUSE_ACCEL" = "yes"; then
16594 cat >> confdefs.h <<\EOF
16595 #define wxUSE_ACCEL 1
16596 EOF
16597
16598 USES_CONTROLS=1
16599 fi
16600
16601 if test "$wxUSE_BUTTON" = "yes"; then
16602 cat >> confdefs.h <<\EOF
16603 #define wxUSE_BUTTON 1
16604 EOF
16605
16606 USES_CONTROLS=1
16607 fi
16608
16609 if test "$wxUSE_BMPBUTTON" = "yes"; then
16610 cat >> confdefs.h <<\EOF
16611 #define wxUSE_BMPBUTTON 1
16612 EOF
16613
16614 USES_CONTROLS=1
16615 fi
16616
16617 if test "$wxUSE_CALCTRL" = "yes"; then
16618 cat >> confdefs.h <<\EOF
16619 #define wxUSE_CALENDARCTRL 1
16620 EOF
16621
16622 USES_CONTROLS=1
16623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
16624 fi
16625
16626 if test "$wxUSE_CARET" = "yes"; then
16627 cat >> confdefs.h <<\EOF
16628 #define wxUSE_CARET 1
16629 EOF
16630
16631 USES_CONTROLS=1
16632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16633 fi
16634
16635 if test "$wxUSE_COMBOBOX" = "yes"; then
16636 cat >> confdefs.h <<\EOF
16637 #define wxUSE_COMBOBOX 1
16638 EOF
16639
16640 USES_CONTROLS=1
16641 fi
16642
16643 if test "$wxUSE_CHOICE" = "yes"; then
16644 cat >> confdefs.h <<\EOF
16645 #define wxUSE_CHOICE 1
16646 EOF
16647
16648 USES_CONTROLS=1
16649 fi
16650
16651 if test "$wxUSE_CHECKBOX" = "yes"; then
16652 cat >> confdefs.h <<\EOF
16653 #define wxUSE_CHECKBOX 1
16654 EOF
16655
16656 USES_CONTROLS=1
16657 fi
16658
16659 if test "$wxUSE_CHECKLST" = "yes"; then
16660 cat >> confdefs.h <<\EOF
16661 #define wxUSE_CHECKLISTBOX 1
16662 EOF
16663
16664 USES_CONTROLS=1
16665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16666 fi
16667
16668 if test "$wxUSE_GAUGE" = "yes"; then
16669 cat >> confdefs.h <<\EOF
16670 #define wxUSE_GAUGE 1
16671 EOF
16672
16673 USES_CONTROLS=1
16674 fi
16675
16676 if test "$wxUSE_NEW_GRID" = "yes"; then
16677 wxUSE_GRID="yes"
16678 cat >> confdefs.h <<\EOF
16679 #define wxUSE_NEW_GRID 1
16680 EOF
16681
16682 USES_CONTROLS=1
16683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
16684 fi
16685
16686 if test "$wxUSE_GRID" = "yes"; then
16687 cat >> confdefs.h <<\EOF
16688 #define wxUSE_GRID 1
16689 EOF
16690
16691 USES_CONTROLS=1
16692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
16693 fi
16694
16695 if test "$wxUSE_IMAGLIST" = "yes"; then
16696 cat >> confdefs.h <<\EOF
16697 #define wxUSE_IMAGLIST 1
16698 EOF
16699
16700 fi
16701
16702 if test "$wxUSE_LISTBOX" = "yes"; then
16703 cat >> confdefs.h <<\EOF
16704 #define wxUSE_LISTBOX 1
16705 EOF
16706
16707 USES_CONTROLS=1
16708 fi
16709
16710 if test "$wxUSE_LISTCTRL" = "yes"; then
16711 if test "$wxUSE_IMAGLIST" = "yes"; then
16712 cat >> confdefs.h <<\EOF
16713 #define wxUSE_LISTCTRL 1
16714 EOF
16715
16716 USES_CONTROLS=1
16717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16718 else
16719 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
16720 fi
16721 fi
16722
16723 if test "$wxUSE_NOTEBOOK" = "yes"; then
16724 cat >> confdefs.h <<\EOF
16725 #define wxUSE_NOTEBOOK 1
16726 EOF
16727
16728 USES_CONTROLS=1
16729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16730 fi
16731
16732 if test "$wxUSE_RADIOBOX" = "yes"; then
16733 cat >> confdefs.h <<\EOF
16734 #define wxUSE_RADIOBOX 1
16735 EOF
16736
16737 USES_CONTROLS=1
16738 fi
16739
16740 if test "$wxUSE_RADIOBTN" = "yes"; then
16741 cat >> confdefs.h <<\EOF
16742 #define wxUSE_RADIOBTN 1
16743 EOF
16744
16745 USES_CONTROLS=1
16746 fi
16747
16748 if test "$wxUSE_SASH" = "yes"; then
16749 cat >> confdefs.h <<\EOF
16750 #define wxUSE_SASH 1
16751 EOF
16752
16753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16754 fi
16755
16756 if test "$wxUSE_SCROLLBAR" = "yes"; then
16757 cat >> confdefs.h <<\EOF
16758 #define wxUSE_SCROLLBAR 1
16759 EOF
16760
16761 USES_CONTROLS=1
16762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
16763 fi
16764
16765 if test "$wxUSE_SLIDER" = "yes"; then
16766 cat >> confdefs.h <<\EOF
16767 #define wxUSE_SLIDER 1
16768 EOF
16769
16770 USES_CONTROLS=1
16771 fi
16772
16773 if test "$wxUSE_SPINBTN" = "yes"; then
16774 cat >> confdefs.h <<\EOF
16775 #define wxUSE_SPINBTN 1
16776 EOF
16777
16778 USES_CONTROLS=1
16779 fi
16780
16781 if test "$wxUSE_SPINCTRL" = "yes"; then
16782 cat >> confdefs.h <<\EOF
16783 #define wxUSE_SPINCTRL 1
16784 EOF
16785
16786 USES_CONTROLS=1
16787 fi
16788
16789 if test "$wxUSE_SPLITTER" = "yes"; then
16790 cat >> confdefs.h <<\EOF
16791 #define wxUSE_SPLITTER 1
16792 EOF
16793
16794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16795 fi
16796
16797 if test "$wxUSE_STATBMP" = "yes"; then
16798 cat >> confdefs.h <<\EOF
16799 #define wxUSE_STATBMP 1
16800 EOF
16801
16802 USES_CONTROLS=1
16803 fi
16804
16805 if test "$wxUSE_STATBOX" = "yes"; then
16806 cat >> confdefs.h <<\EOF
16807 #define wxUSE_STATBOX 1
16808 EOF
16809
16810 USES_CONTROLS=1
16811 fi
16812
16813 if test "$wxUSE_STATTEXT" = "yes"; then
16814 cat >> confdefs.h <<\EOF
16815 #define wxUSE_STATTEXT 1
16816 EOF
16817
16818 USES_CONTROLS=1
16819 fi
16820
16821 if test "$wxUSE_STATLINE" = "yes"; then
16822 if test "$wxUSE_WINE" = 1 ; then
16823 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
16824 else
16825 cat >> confdefs.h <<\EOF
16826 #define wxUSE_STATLINE 1
16827 EOF
16828
16829 USES_CONTROLS=1
16830 fi
16831 fi
16832
16833 if test "$wxUSE_STATUSBAR" = "yes"; then
16834 cat >> confdefs.h <<\EOF
16835 #define wxUSE_STATUSBAR 1
16836 EOF
16837
16838 USES_CONTROLS=1
16839
16840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
16841 fi
16842
16843 if test "$wxUSE_TABDIALOG" = "yes"; then
16844 cat >> confdefs.h <<\EOF
16845 #define wxUSE_TAB_DIALOG 1
16846 EOF
16847
16848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16849 fi
16850
16851 if test "$wxUSE_TEXTCTRL" = "yes"; then
16852 cat >> confdefs.h <<\EOF
16853 #define wxUSE_TEXTCTRL 1
16854 EOF
16855
16856 USES_CONTROLS=1
16857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16858 fi
16859
16860 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16861 if test "$wxUSE_MAC" = 1; then
16862 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16863 wxUSE_TOGGLEBTN=no
16864 fi
16865
16866 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16867 cat >> confdefs.h <<\EOF
16868 #define wxUSE_TOGGLEBTN 1
16869 EOF
16870
16871 USES_CONTROLS=1
16872 fi
16873 fi
16874
16875 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
16876 cat >> confdefs.h <<\EOF
16877 #define wxUSE_TOOLBAR_SIMPLE 1
16878 EOF
16879
16880 wxUSE_TOOLBAR="yes"
16881 USES_CONTROLS=1
16882 fi
16883
16884 if test "$wxUSE_TOOLBAR" = "yes"; then
16885 cat >> confdefs.h <<\EOF
16886 #define wxUSE_TOOLBAR 1
16887 EOF
16888
16889 USES_CONTROLS=1
16890
16891 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16892 wxUSE_TOOLBAR_NATIVE="yes"
16893 fi
16894
16895 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16896 cat >> confdefs.h <<\EOF
16897 #define wxUSE_TOOLBAR_NATIVE 1
16898 EOF
16899
16900 USES_CONTROLS=1
16901 fi
16902
16903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
16904 fi
16905
16906 if test "$wxUSE_TOOLTIPS" = "yes"; then
16907 if test "$wxUSE_MOTIF" = 1; then
16908 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
16909 else
16910 if test "$wxUSE_WINE" = 1; then
16911 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
16912 else
16913 cat >> confdefs.h <<\EOF
16914 #define wxUSE_TOOLTIPS 1
16915 EOF
16916
16917 fi
16918 fi
16919 fi
16920
16921 if test "$wxUSE_TREECTRL" = "yes"; then
16922 if test "$wxUSE_IMAGLIST" = "yes"; then
16923 cat >> confdefs.h <<\EOF
16924 #define wxUSE_TREECTRL 1
16925 EOF
16926
16927 USES_CONTROLS=1
16928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
16929 else
16930 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
16931 fi
16932 fi
16933
16934 if test "$USES_CONTROLS" = 1; then
16935 cat >> confdefs.h <<\EOF
16936 #define wxUSE_CONTROLS 1
16937 EOF
16938
16939 fi
16940
16941
16942
16943 if test "$wxUSE_MENUS" = "yes"; then
16944 cat >> confdefs.h <<\EOF
16945 #define wxUSE_MENUS 1
16946 EOF
16947
16948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
16949 fi
16950
16951 if test "$wxUSE_METAFILE" = "yes"; then
16952 cat >> confdefs.h <<\EOF
16953 #define wxUSE_METAFILE 1
16954 EOF
16955
16956 fi
16957
16958 if test "$wxUSE_MIMETYPE" = "yes"; then
16959 cat >> confdefs.h <<\EOF
16960 #define wxUSE_MIMETYPE 1
16961 EOF
16962
16963 fi
16964
16965 if test "$wxUSE_MINIFRAME" = "yes"; then
16966 cat >> confdefs.h <<\EOF
16967 #define wxUSE_MINIFRAME 1
16968 EOF
16969
16970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
16971 fi
16972
16973 if test "$wxUSE_HTML" = "yes"; then
16974 cat >> confdefs.h <<\EOF
16975 #define wxUSE_HTML 1
16976 EOF
16977
16978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
16979 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
16980 fi
16981
16982 if test "$wxUSE_VALIDATORS" = "yes"; then
16983 cat >> confdefs.h <<\EOF
16984 #define wxUSE_VALIDATORS 1
16985 EOF
16986
16987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
16988 fi
16989
16990 if test "$wxUSE_IMAGE" = "yes" ; then
16991 cat >> confdefs.h <<\EOF
16992 #define wxUSE_IMAGE 1
16993 EOF
16994
16995 fi
16996
16997 if test "$wxUSE_GIF" = "yes" ; then
16998 cat >> confdefs.h <<\EOF
16999 #define wxUSE_GIF 1
17000 EOF
17001
17002 fi
17003
17004 if test "$wxUSE_PCX" = "yes" ; then
17005 cat >> confdefs.h <<\EOF
17006 #define wxUSE_PCX 1
17007 EOF
17008
17009 fi
17010
17011 if test "$wxUSE_PNM" = "yes" ; then
17012 cat >> confdefs.h <<\EOF
17013 #define wxUSE_PNM 1
17014 EOF
17015
17016 fi
17017
17018 if test "$wxUSE_XPM" = "yes" ; then
17019 cat >> confdefs.h <<\EOF
17020 #define wxUSE_XPM 1
17021 EOF
17022
17023 fi
17024
17025
17026 if test "$wxUSE_CHOICEDLG" = "yes"; then
17027 cat >> confdefs.h <<\EOF
17028 #define wxUSE_CHOICEDLG 1
17029 EOF
17030
17031 fi
17032
17033 if test "$wxUSE_COLOURDLG" = "yes"; then
17034 cat >> confdefs.h <<\EOF
17035 #define wxUSE_COLOURDLG 1
17036 EOF
17037
17038 fi
17039
17040 if test "$wxUSE_FILEDLG" = "yes"; then
17041 cat >> confdefs.h <<\EOF
17042 #define wxUSE_FILEDLG 1
17043 EOF
17044
17045 fi
17046
17047 if test "$wxUSE_FONTDLG" = "yes"; then
17048 cat >> confdefs.h <<\EOF
17049 #define wxUSE_FONTDLG 1
17050 EOF
17051
17052 fi
17053
17054 if test "$wxUSE_DIRDLG" = "yes"; then
17055 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17056 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17057 else
17058 if test "$wxUSE_TREECTRL" != "yes"; then
17059 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17060 else
17061 cat >> confdefs.h <<\EOF
17062 #define wxUSE_DIRDLG 1
17063 EOF
17064
17065 fi
17066 fi
17067 fi
17068
17069 if test "$wxUSE_MSGDLG" = "yes"; then
17070 cat >> confdefs.h <<\EOF
17071 #define wxUSE_MSGDLG 1
17072 EOF
17073
17074 fi
17075
17076 if test "$wxUSE_NUMBERDLG" = "yes"; then
17077 cat >> confdefs.h <<\EOF
17078 #define wxUSE_NUMBERDLG 1
17079 EOF
17080
17081 fi
17082
17083 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17084 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17085 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17086 else
17087 cat >> confdefs.h <<\EOF
17088 #define wxUSE_PROGRESSDLG 1
17089 EOF
17090
17091 fi
17092 fi
17093
17094 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17095 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17096 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17097 else
17098 cat >> confdefs.h <<\EOF
17099 #define wxUSE_STARTUP_TIPS 1
17100 EOF
17101
17102 fi
17103 fi
17104
17105 if test "$wxUSE_TEXTDLG" = "yes"; then
17106 cat >> confdefs.h <<\EOF
17107 #define wxUSE_TEXTDLG 1
17108 EOF
17109
17110 fi
17111
17112
17113 if test "$cross_compiling" = "yes"; then
17114 OSINFO="\"$host\""
17115 else
17116 OSINFO=`uname -s -r -m`
17117 OSINFO="\"$OSINFO\""
17118 fi
17119
17120 cat >> confdefs.h <<EOF
17121 #define WXWIN_OS_DESCRIPTION $OSINFO
17122 EOF
17123
17124
17125
17126 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17127 OPENGL_LIBS="$OPENGL_LINK"
17128
17129 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17130 if test "$USE_MAC" = 1 ; then
17131 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17132 fi
17133 if test "$wxUSE_GUI" = "yes"; then
17134 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17135 fi
17136
17137 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17138
17139 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17140
17141 if test "$wxUSE_GTK" = 1; then
17142 WXCONFIG_INCLUDE=""
17143 else
17144 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17145 fi
17146
17147 if test "$GXX" = yes ; then
17148 CXXWARNINGS="-Wall"
17149 fi
17150 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17151
17152 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17153 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17154
17155 LDFLAGS="$LDFLAGS $PROFILE"
17156
17157 if test "$wxUSE_GUI" = "yes"; then
17158
17159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
17160 drawing dynamic event font fractal image \
17161 minimal richedit widgets"
17162
17163 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17165 fi
17166
17167 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17168 else
17169 SAMPLES_SUBDIRS=""
17170 fi
17171
17172 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17268 echo "configure:17269: checking whether ${MAKE-make} sets \${MAKE}" >&5
17269 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17270 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17271 echo $ac_n "(cached) $ac_c" 1>&6
17272 else
17273 cat > conftestmake <<\EOF
17274 all:
17275 @echo 'ac_maketemp="${MAKE}"'
17276 EOF
17277 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17278 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17279 if test -n "$ac_maketemp"; then
17280 eval ac_cv_prog_make_${ac_make}_set=yes
17281 else
17282 eval ac_cv_prog_make_${ac_make}_set=no
17283 fi
17284 rm -f conftestmake
17285 fi
17286 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17287 echo "$ac_t""yes" 1>&6
17288 SET_MAKE=
17289 else
17290 echo "$ac_t""no" 1>&6
17291 SET_MAKE="MAKE=${MAKE-make}"
17292 fi
17293
17294
17295 if test -d include; then
17296 if test -d include/wx; then
17297 if test -d include/wx/${SETUPH_DIR}; then
17298 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17299 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17300 fi
17301 fi
17302 fi
17303 fi
17304
17305
17306
17307 if test "$wxUSE_GUI" = "yes"; then
17308 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17309 wx_cv_path_ifs=$PATH_IFS
17310 wx_cv_program_ext=$PROGRAM_EXT
17311 wx_cv_target_library=$WX_TARGET_LIBRARY
17312 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17313 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17314 wx_cv_target_library wx_cv_target_libtype
17315 subdirs="demos samples utils contrib"
17316
17317 fi
17318
17319 trap '' 1 2 15
17320 cat > confcache <<\EOF
17321 # This file is a shell script that caches the results of configure
17322 # tests run on this system so they can be shared between configure
17323 # scripts and configure runs. It is not useful on other systems.
17324 # If it contains results you don't want to keep, you may remove or edit it.
17325 #
17326 # By default, configure uses ./config.cache as the cache file,
17327 # creating it if it does not exist already. You can give configure
17328 # the --cache-file=FILE option to use a different cache file; that is
17329 # what configure does when it calls configure scripts in
17330 # subdirectories, so they share the cache.
17331 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17332 # config.status only pays attention to the cache file if you give it the
17333 # --recheck option to rerun configure.
17334 #
17335 EOF
17336 # The following way of writing the cache mishandles newlines in values,
17337 # but we know of no workaround that is simple, portable, and efficient.
17338 # So, don't put newlines in cache variables' values.
17339 # Ultrix sh set writes to stderr and can't be redirected directly,
17340 # and sets the high bit in the cache file unless we assign to the vars.
17341 (set) 2>&1 |
17342 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17343 *ac_space=\ *)
17344 # `set' does not quote correctly, so add quotes (double-quote substitution
17345 # turns \\\\ into \\, and sed turns \\ into \).
17346 sed -n \
17347 -e "s/'/'\\\\''/g" \
17348 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17349 ;;
17350 *)
17351 # `set' quotes correctly as required by POSIX, so do not add quotes.
17352 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17353 ;;
17354 esac >> confcache
17355 if cmp -s $cache_file confcache; then
17356 :
17357 else
17358 if test -w $cache_file; then
17359 echo "updating cache $cache_file"
17360 cat confcache > $cache_file
17361 else
17362 echo "not updating unwritable cache $cache_file"
17363 fi
17364 fi
17365 rm -f confcache
17366
17367 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17368
17369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17370 # Let make expand exec_prefix.
17371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17372
17373 # Any assignment to VPATH causes Sun make to only execute
17374 # the first set of double-colon rules, so remove it if not needed.
17375 # If there is a colon in the path, we need to keep it.
17376 if test "x$srcdir" = x.; then
17377 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17378 fi
17379
17380 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17381
17382 DEFS=-DHAVE_CONFIG_H
17383
17384 # Without the "./", some shells look in PATH for config.status.
17385 : ${CONFIG_STATUS=./config.status}
17386
17387 echo creating $CONFIG_STATUS
17388 rm -f $CONFIG_STATUS
17389 cat > $CONFIG_STATUS <<EOF
17390 #! /bin/sh
17391 # Generated automatically by configure.
17392 # Run this file to recreate the current configuration.
17393 # This directory was configured as follows,
17394 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17395 #
17396 # $0 $ac_configure_args
17397 #
17398 # Compiler output produced by configure, useful for debugging
17399 # configure, is in ./config.log if it exists.
17400
17401 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17402 for ac_option
17403 do
17404 case "\$ac_option" in
17405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17406 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17407 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17408 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17409 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17410 exit 0 ;;
17411 -help | --help | --hel | --he | --h)
17412 echo "\$ac_cs_usage"; exit 0 ;;
17413 *) echo "\$ac_cs_usage"; exit 1 ;;
17414 esac
17415 done
17416
17417 ac_given_srcdir=$srcdir
17418 ac_given_INSTALL="$INSTALL"
17419
17420 trap 'rm -fr `echo "
17421 wx-config
17422 src/make.env
17423 src/makeprog.env
17424 src/makelib.env
17425 Makefile
17426 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17427 EOF
17428 cat >> $CONFIG_STATUS <<EOF
17429
17430 # Protect against being on the right side of a sed subst in config.status.
17431 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17432 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17433 $ac_vpsub
17434 $extrasub
17435 s%@SHELL@%$SHELL%g
17436 s%@CFLAGS@%$CFLAGS%g
17437 s%@CPPFLAGS@%$CPPFLAGS%g
17438 s%@CXXFLAGS@%$CXXFLAGS%g
17439 s%@FFLAGS@%$FFLAGS%g
17440 s%@DEFS@%$DEFS%g
17441 s%@LDFLAGS@%$LDFLAGS%g
17442 s%@LIBS@%$LIBS%g
17443 s%@exec_prefix@%$exec_prefix%g
17444 s%@prefix@%$prefix%g
17445 s%@program_transform_name@%$program_transform_name%g
17446 s%@bindir@%$bindir%g
17447 s%@sbindir@%$sbindir%g
17448 s%@libexecdir@%$libexecdir%g
17449 s%@datadir@%$datadir%g
17450 s%@sysconfdir@%$sysconfdir%g
17451 s%@sharedstatedir@%$sharedstatedir%g
17452 s%@localstatedir@%$localstatedir%g
17453 s%@libdir@%$libdir%g
17454 s%@includedir@%$includedir%g
17455 s%@oldincludedir@%$oldincludedir%g
17456 s%@infodir@%$infodir%g
17457 s%@mandir@%$mandir%g
17458 s%@host@%$host%g
17459 s%@host_alias@%$host_alias%g
17460 s%@host_cpu@%$host_cpu%g
17461 s%@host_vendor@%$host_vendor%g
17462 s%@host_os@%$host_os%g
17463 s%@target@%$target%g
17464 s%@target_alias@%$target_alias%g
17465 s%@target_cpu@%$target_cpu%g
17466 s%@target_vendor@%$target_vendor%g
17467 s%@target_os@%$target_os%g
17468 s%@build@%$build%g
17469 s%@build_alias@%$build_alias%g
17470 s%@build_cpu@%$build_cpu%g
17471 s%@build_vendor@%$build_vendor%g
17472 s%@build_os@%$build_os%g
17473 s%@CC@%$CC%g
17474 s%@CPP@%$CPP%g
17475 s%@CXX@%$CXX%g
17476 s%@CXXCPP@%$CXXCPP%g
17477 s%@RANLIB@%$RANLIB%g
17478 s%@AR@%$AR%g
17479 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17480 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17481 s%@INSTALL_DATA@%$INSTALL_DATA%g
17482 s%@STRIP@%$STRIP%g
17483 s%@YACC@%$YACC%g
17484 s%@LEX@%$LEX%g
17485 s%@LEXLIB@%$LEXLIB%g
17486 s%@LN_S@%$LN_S%g
17487 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
17488 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17489 s%@GTK_LIBS@%$GTK_LIBS%g
17490 s%@GTK_CONFIG@%$GTK_CONFIG%g
17491 s%@X_CFLAGS@%$X_CFLAGS%g
17492 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17493 s%@X_LIBS@%$X_LIBS%g
17494 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17495 s%@REZ@%$REZ%g
17496 s%@DEREZ@%$DEREZ%g
17497 s%@LEX_STEM@%$LEX_STEM%g
17498 s%@PATH_IFS@%$PATH_IFS%g
17499 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17500 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17501 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17502 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17503 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17504 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17505 s%@WX_LIBRARY@%$WX_LIBRARY%g
17506 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17507 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17508 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17509 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17510 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17511 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17512 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17513 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17514 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17515 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17516 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17517 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17518 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17519 s%@WX_ALL@%$WX_ALL%g
17520 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17521 s%@SHARED_LD@%$SHARED_LD%g
17522 s%@PIC_FLAG@%$PIC_FLAG%g
17523 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17524 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17525 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17526 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17527 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17528 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17529 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17530 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17531 s%@USE_GUI@%$USE_GUI%g
17532 s%@AFMINSTALL@%$AFMINSTALL%g
17533 s%@SETUPH_DIR@%$SETUPH_DIR%g
17534 s%@TOOLKIT@%$TOOLKIT%g
17535 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17536 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17537 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17538 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
17539 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
17540 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17541 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17542 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17543 s%@GUIDIST@%$GUIDIST%g
17544 s%@PORT_FILES@%$PORT_FILES%g
17545 s%@DISTDIR@%$DISTDIR%g
17546 s%@RPM_SPEC@%$RPM_SPEC%g
17547 s%@RPM_FILES@%$RPM_FILES%g
17548 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17549 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17550 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17551 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17552 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17553 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17554 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17555 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17556 s%@EXTRADEFS@%$EXTRADEFS%g
17557 s%@LD_LIBS@%$LD_LIBS%g
17558 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17559 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17560 s%@RESPROGRAM@%$RESPROGRAM%g
17561 s%@RESCOMP@%$RESCOMP%g
17562 s%@RESFLAGS@%$RESFLAGS%g
17563 s%@REZFLAGS@%$REZFLAGS%g
17564 s%@DEREZFLAGS@%$DEREZFLAGS%g
17565 s%@LIBWXMACRES@%$LIBWXMACRES%g
17566 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17567 s%@DLLTOOL@%$DLLTOOL%g
17568 s%@AS@%$AS%g
17569 s%@NM@%$NM%g
17570 s%@LD@%$LD%g
17571 s%@MAKEINFO@%$MAKEINFO%g
17572 s%@SET_MAKE@%$SET_MAKE%g
17573 s%@subdirs@%$subdirs%g
17574
17575 CEOF
17576 EOF
17577
17578 cat >> $CONFIG_STATUS <<\EOF
17579
17580 # Split the substitutions into bite-sized pieces for seds with
17581 # small command number limits, like on Digital OSF/1 and HP-UX.
17582 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17583 ac_file=1 # Number of current file.
17584 ac_beg=1 # First line for current file.
17585 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17586 ac_more_lines=:
17587 ac_sed_cmds=""
17588 while $ac_more_lines; do
17589 if test $ac_beg -gt 1; then
17590 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17591 else
17592 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17593 fi
17594 if test ! -s conftest.s$ac_file; then
17595 ac_more_lines=false
17596 rm -f conftest.s$ac_file
17597 else
17598 if test -z "$ac_sed_cmds"; then
17599 ac_sed_cmds="sed -f conftest.s$ac_file"
17600 else
17601 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17602 fi
17603 ac_file=`expr $ac_file + 1`
17604 ac_beg=$ac_end
17605 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17606 fi
17607 done
17608 if test -z "$ac_sed_cmds"; then
17609 ac_sed_cmds=cat
17610 fi
17611 EOF
17612
17613 cat >> $CONFIG_STATUS <<EOF
17614
17615 CONFIG_FILES=\${CONFIG_FILES-"wx-config
17616 src/make.env
17617 src/makeprog.env
17618 src/makelib.env
17619 Makefile
17620 "}
17621 EOF
17622 cat >> $CONFIG_STATUS <<\EOF
17623 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17625 case "$ac_file" in
17626 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17627 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17628 *) ac_file_in="${ac_file}.in" ;;
17629 esac
17630
17631 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17632
17633 # Remove last slash and all that follows it. Not all systems have dirname.
17634 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17635 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17636 # The file is in a subdirectory.
17637 test ! -d "$ac_dir" && mkdir "$ac_dir"
17638 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17639 # A "../" for each directory in $ac_dir_suffix.
17640 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17641 else
17642 ac_dir_suffix= ac_dots=
17643 fi
17644
17645 case "$ac_given_srcdir" in
17646 .) srcdir=.
17647 if test -z "$ac_dots"; then top_srcdir=.
17648 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17649 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17650 *) # Relative path.
17651 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17652 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17653 esac
17654
17655 case "$ac_given_INSTALL" in
17656 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17657 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17658 esac
17659
17660 echo creating "$ac_file"
17661 rm -f "$ac_file"
17662 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17663 case "$ac_file" in
17664 *Makefile*) ac_comsub="1i\\
17665 # $configure_input" ;;
17666 *) ac_comsub= ;;
17667 esac
17668
17669 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17670 sed -e "$ac_comsub
17671 s%@configure_input@%$configure_input%g
17672 s%@srcdir@%$srcdir%g
17673 s%@top_srcdir@%$top_srcdir%g
17674 s%@INSTALL@%$INSTALL%g
17675 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17676 fi; done
17677 rm -f conftest.s*
17678
17679 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17680 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17681 #
17682 # ac_d sets the value in "#define NAME VALUE" lines.
17683 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17684 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17685 ac_dC='\3'
17686 ac_dD='%g'
17687 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17688 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17689 ac_uB='\([ ]\)%\1#\2define\3'
17690 ac_uC=' '
17691 ac_uD='\4%g'
17692 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17693 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17694 ac_eB='$%\1#\2define\3'
17695 ac_eC=' '
17696 ac_eD='%g'
17697
17698 if test "${CONFIG_HEADERS+set}" != set; then
17699 EOF
17700 cat >> $CONFIG_STATUS <<EOF
17701 CONFIG_HEADERS="setup.h:setup.h.in"
17702 EOF
17703 cat >> $CONFIG_STATUS <<\EOF
17704 fi
17705 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17707 case "$ac_file" in
17708 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17709 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17710 *) ac_file_in="${ac_file}.in" ;;
17711 esac
17712
17713 echo creating $ac_file
17714
17715 rm -f conftest.frag conftest.in conftest.out
17716 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17717 cat $ac_file_inputs > conftest.in
17718
17719 EOF
17720
17721 # Transform confdefs.h into a sed script conftest.vals that substitutes
17722 # the proper values into config.h.in to produce config.h. And first:
17723 # Protect against being on the right side of a sed subst in config.status.
17724 # Protect against being in an unquoted here document in config.status.
17725 rm -f conftest.vals
17726 cat > conftest.hdr <<\EOF
17727 s/[\\&%]/\\&/g
17728 s%[\\$`]%\\&%g
17729 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17730 s%ac_d%ac_u%gp
17731 s%ac_u%ac_e%gp
17732 EOF
17733 sed -n -f conftest.hdr confdefs.h > conftest.vals
17734 rm -f conftest.hdr
17735
17736 # This sed command replaces #undef with comments. This is necessary, for
17737 # example, in the case of _POSIX_SOURCE, which is predefined and required
17738 # on some systems where configure will not decide to define it.
17739 cat >> conftest.vals <<\EOF
17740 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17741 EOF
17742
17743 # Break up conftest.vals because some shells have a limit on
17744 # the size of here documents, and old seds have small limits too.
17745
17746 rm -f conftest.tail
17747 while :
17748 do
17749 ac_lines=`grep -c . conftest.vals`
17750 # grep -c gives empty output for an empty file on some AIX systems.
17751 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17752 # Write a limited-size here document to conftest.frag.
17753 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17754 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17755 echo 'CEOF
17756 sed -f conftest.frag conftest.in > conftest.out
17757 rm -f conftest.in
17758 mv conftest.out conftest.in
17759 ' >> $CONFIG_STATUS
17760 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17761 rm -f conftest.vals
17762 mv conftest.tail conftest.vals
17763 done
17764 rm -f conftest.vals
17765
17766 cat >> $CONFIG_STATUS <<\EOF
17767 rm -f conftest.frag conftest.h
17768 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17769 cat conftest.in >> conftest.h
17770 rm -f conftest.in
17771 if cmp -s $ac_file conftest.h 2>/dev/null; then
17772 echo "$ac_file is unchanged"
17773 rm -f conftest.h
17774 else
17775 # Remove last slash and all that follows it. Not all systems have dirname.
17776 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17777 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17778 # The file is in a subdirectory.
17779 test ! -d "$ac_dir" && mkdir "$ac_dir"
17780 fi
17781 rm -f $ac_file
17782 mv conftest.h $ac_file
17783 fi
17784 fi; done
17785
17786 EOF
17787 cat >> $CONFIG_STATUS <<EOF
17788
17789 SETUPH_DIR="${SETUPH_DIR}"
17790 TOOLKIT_NAME="${TOOLKIT_NAME}"
17791 LN_S="${LN_S}"
17792
17793
17794 EOF
17795 cat >> $CONFIG_STATUS <<\EOF
17796
17797 if test ! -f wx${TOOLKIT_NAME}-config; then
17798 chmod +x wx-config
17799 mv wx-config wx${TOOLKIT_NAME}-config
17800 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17801 fi
17802
17803
17804 if test ! -d lib; then
17805 mkdir lib
17806 fi
17807 if test ! -d lib/wx; then
17808 mkdir lib/wx
17809 fi
17810 if test ! -d lib/wx/include; then
17811 mkdir lib/wx/include
17812 fi
17813 if test ! -d lib/wx/include/wx; then
17814 mkdir lib/wx/include/wx
17815 fi
17816 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17817 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
17818 fi
17819 if test -f setup.h; then
17820 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
17821 fi
17822
17823
17824 if test ! -d include; then
17825 mkdir include
17826 fi
17827 if test ! -d include/wx; then
17828 mkdir include/wx
17829 fi
17830 if test ! -d include/wx/${SETUPH_DIR}; then
17831 mkdir include/wx/${SETUPH_DIR}
17832 fi
17833 if test -f setup.h; then
17834 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
17835 fi
17836
17837
17838 exit 0
17839 EOF
17840 chmod +x $CONFIG_STATUS
17841 rm -fr confdefs* $ac_clean_files
17842 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17843
17844 if test "$no_recursion" != yes; then
17845
17846 # Remove --cache-file and --srcdir arguments so they do not pile up.
17847 ac_sub_configure_args=
17848 ac_prev=
17849 for ac_arg in $ac_configure_args; do
17850 if test -n "$ac_prev"; then
17851 ac_prev=
17852 continue
17853 fi
17854 case "$ac_arg" in
17855 -cache-file | --cache-file | --cache-fil | --cache-fi \
17856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17857 ac_prev=cache_file ;;
17858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
17860 ;;
17861 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17862 ac_prev=srcdir ;;
17863 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17864 ;;
17865 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17866 esac
17867 done
17868
17869 for ac_config_dir in demos samples utils contrib; do
17870
17871 # Do not complain, so a configure script can configure whichever
17872 # parts of a large source tree are present.
17873 if test ! -d $srcdir/$ac_config_dir; then
17874 continue
17875 fi
17876
17877 echo configuring in $ac_config_dir
17878
17879 case "$srcdir" in
17880 .) ;;
17881 *)
17882 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17883 else
17884 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17885 fi
17886 ;;
17887 esac
17888
17889 ac_popdir=`pwd`
17890 cd $ac_config_dir
17891
17892 # A "../" for each directory in /$ac_config_dir.
17893 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
17894
17895 case "$srcdir" in
17896 .) # No --srcdir option. We are building in place.
17897 ac_sub_srcdir=$srcdir ;;
17898 /*) # Absolute path.
17899 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
17900 *) # Relative path.
17901 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
17902 esac
17903
17904 # Check for guested configure; otherwise get Cygnus style configure.
17905 if test -f $ac_sub_srcdir/configure; then
17906 ac_sub_configure=$ac_sub_srcdir/configure
17907 elif test -f $ac_sub_srcdir/configure.in; then
17908 ac_sub_configure=$ac_configure
17909 else
17910 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
17911 ac_sub_configure=
17912 fi
17913
17914 # The recursion is here.
17915 if test -n "$ac_sub_configure"; then
17916
17917 # Make the cache file name correct relative to the subdirectory.
17918 case "$cache_file" in
17919 /*) ac_sub_cache_file=$cache_file ;;
17920 *) # Relative path.
17921 ac_sub_cache_file="$ac_dots$cache_file" ;;
17922 esac
17923 case "$ac_given_INSTALL" in
17924 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17925 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17926 esac
17927
17928 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
17929 # The eval makes quoting arguments work.
17930 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
17931 then :
17932 else
17933 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
17934 fi
17935 fi
17936
17937 cd $ac_popdir
17938 done
17939 fi
17940
17941