]> git.saurik.com Git - wxWidgets.git/blob - configure
1. added --enable-gtk2 option, check for GTK+ 2.0 disabled 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-intl use internationalization system"
126 ac_help="$ac_help
127 --enable-config use wxConfig (and derived) classes"
128 ac_help="$ac_help
129 --enable-sockets use socket/network classes"
130 ac_help="$ac_help
131 --enable-ipc use interprocess communication (wxSocket etc.)"
132 ac_help="$ac_help
133 --enable-cmdline use wxCmdLineParser class"
134 ac_help="$ac_help
135 --enable-datetime use wxDateTime class"
136 ac_help="$ac_help
137 --enable-timedate use obsolete wxDate/wxTime classes"
138 ac_help="$ac_help
139 --enable-stopwatch use wxStopWatch class"
140 ac_help="$ac_help
141 --enable-dialupman use dialup network classes"
142 ac_help="$ac_help
143 --enable-apple_ieee use the Apple IEEE codec"
144 ac_help="$ac_help
145 --enable-timer use wxTimer class"
146 ac_help="$ac_help
147 --enable-wave use wxWave class"
148 ac_help="$ac_help
149 --enable-fraction use wxFraction class"
150 ac_help="$ac_help
151 --enable-dynlib use wxLibrary class for DLL loading"
152 ac_help="$ac_help
153 --enable-longlong use wxLongLong class"
154 ac_help="$ac_help
155 --enable-geometry use geometry class"
156 ac_help="$ac_help
157 --enable-log use logging system"
158 ac_help="$ac_help
159 --enable-streams use wxStream etc classes"
160 ac_help="$ac_help
161 --enable-file use wxFile classes"
162 ac_help="$ac_help
163 --enable-ffile use wxFFile classes"
164 ac_help="$ac_help
165 --enable-textfile use wxTextFile classes"
166 ac_help="$ac_help
167 --enable-fontmap use font encodings conversion classes"
168 ac_help="$ac_help
169 --enable-unicode compile wxString with Unicode support"
170 ac_help="$ac_help
171 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
172 ac_help="$ac_help
173 --enable-wxprintfv use wxWindows implementation of vprintf()"
174 ac_help="$ac_help
175 --enable-std_iostreams use standard C++ stream classes"
176 ac_help="$ac_help
177 --enable-filesystem use virtual file systems classes"
178 ac_help="$ac_help
179 --enable-fs_inet use virtual HTTP/FTP filesystems"
180 ac_help="$ac_help
181 --enable-fs_zip use virtual ZIP filesystems"
182 ac_help="$ac_help
183 --enable-zipstream use wxZipInputStream"
184 ac_help="$ac_help
185 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
186 ac_help="$ac_help
187 --enable-snglinst use wxSingleInstanceChecker class"
188 ac_help="$ac_help
189 --enable-mimetypes use wxMimeTypesManager"
190 ac_help="$ac_help
191 --enable-threads use threads"
192 ac_help="$ac_help
193 --enable-serial use class serialization"
194 ac_help="$ac_help
195 --enable-docview use document view architecture"
196 ac_help="$ac_help
197 --enable-help use help (using external browser at present)"
198 ac_help="$ac_help
199 --enable-constraints use layout-constraints system"
200 ac_help="$ac_help
201 --enable-printarch use printing architecture"
202 ac_help="$ac_help
203 --enable-mdi use multiple document interface architecture"
204 ac_help="$ac_help
205 --enable-loggui use standard GUI logger"
206 ac_help="$ac_help
207 --enable-logwin use wxLogWindow"
208 ac_help="$ac_help
209 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
210 ac_help="$ac_help
211 --enable-prologio use Prolog IO library"
212 ac_help="$ac_help
213 --enable-resources use wxWindows resources"
214 ac_help="$ac_help
215 --enable-xresources use X resources for save (default for gtk+)"
216 ac_help="$ac_help
217 --enable-clipboard use wxClipboard classes"
218 ac_help="$ac_help
219 --enable-dnd use Drag'n'Drop classes"
220 ac_help="$ac_help
221 --enable-metafile use win32 metafiles"
222 ac_help="$ac_help
223 --enable-wxtree make wxTree library"
224 ac_help="$ac_help
225 --enable-controls use all usual controls"
226 ac_help="$ac_help
227 --enable-accel use accelerators"
228 ac_help="$ac_help
229 --enable-button use wxButton class"
230 ac_help="$ac_help
231 --enable-bmpbutton use wxBitmapButton class"
232 ac_help="$ac_help
233 --enable-calendar use wxCalendarCtrl class"
234 ac_help="$ac_help
235 --enable-caret use wxCaret class"
236 ac_help="$ac_help
237 --enable-checkbox use wxCheckBox class"
238 ac_help="$ac_help
239 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
240 ac_help="$ac_help
241 --enable-choice use wxChoice class"
242 ac_help="$ac_help
243 --enable-combobox use wxComboBox classes"
244 ac_help="$ac_help
245 --enable-gauge use wxGauge class"
246 ac_help="$ac_help
247 --enable-grid use wxGrid class"
248 ac_help="$ac_help
249 --enable-newgrid use new wxGrid class"
250 ac_help="$ac_help
251 --enable-imaglist use wxImageList class"
252 ac_help="$ac_help
253 --enable-listbox use wxListBox class"
254 ac_help="$ac_help
255 --enable-listctrl use wxListCtrl class"
256 ac_help="$ac_help
257 --enable-notebook use wxNotebook class"
258 ac_help="$ac_help
259 --enable-radiobox use wxRadioBox class"
260 ac_help="$ac_help
261 --enable-radiobtn use wxRadioButton class"
262 ac_help="$ac_help
263 --enable-sash use wxSashWindow class"
264 ac_help="$ac_help
265 --enable-scrollbar use wxScrollBar class and scrollable windows"
266 ac_help="$ac_help
267 --enable-slider use wxSlider class"
268 ac_help="$ac_help
269 --enable-spinbtn use wxSpinButton class"
270 ac_help="$ac_help
271 --enable-spinctrl use wxSpinCtrl class"
272 ac_help="$ac_help
273 --enable-splitter use wxSplitterWindow class"
274 ac_help="$ac_help
275 --enable-statbmp use wxStaticBitmap class"
276 ac_help="$ac_help
277 --enable-statbox use wxStaticBox class"
278 ac_help="$ac_help
279 --enable-statline use wxStaticLine class"
280 ac_help="$ac_help
281 --enable-stattext use wxStaticText class"
282 ac_help="$ac_help
283 --enable-statusbar use wxStatusBar class"
284 ac_help="$ac_help
285 --enable-tabdialog use wxTabControl class"
286 ac_help="$ac_help
287 --enable-textctrl use wxTextCtrl class"
288 ac_help="$ac_help
289 --enable-togglebtn use wxToggleButton class"
290 ac_help="$ac_help
291 --enable-toolbar use wxToolBar class"
292 ac_help="$ac_help
293 --enable-tbarnative use native wxToolBar class"
294 ac_help="$ac_help
295 --enable-tbarsmpl use wxToolBarSimple class"
296 ac_help="$ac_help
297 --enable-treectrl use wxTreeCtrl class"
298 ac_help="$ac_help
299 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
300 ac_help="$ac_help
301 --enable-choicedlg use wxChoiceDialog"
302 ac_help="$ac_help
303 --enable-coldlg use wxColourDialog"
304 ac_help="$ac_help
305 --enable-filedlg use wxFileDialog"
306 ac_help="$ac_help
307 --enable-fontdlg use wxFontDialog"
308 ac_help="$ac_help
309 --enable-dirdlg use wxDirDialog"
310 ac_help="$ac_help
311 --enable-msgdlg use wxMessageDialog"
312 ac_help="$ac_help
313 --enable-numberdlg use wxNumberEntryDialog"
314 ac_help="$ac_help
315 --enable-textdlg use wxTextDialog"
316 ac_help="$ac_help
317 --enable-tipdlg use startup tips"
318 ac_help="$ac_help
319 --enable-progressdlg use wxProgressDialog"
320 ac_help="$ac_help
321 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
322 ac_help="$ac_help
323 --enable-miniframe use wxMiniFrame class"
324 ac_help="$ac_help
325 --enable-html use wxHTML sub-library"
326 ac_help="$ac_help
327 --enable-tooltips use wxToolTip class"
328 ac_help="$ac_help
329 --enable-splines use spline drawing code"
330 ac_help="$ac_help
331 --enable-validators use wxValidator and derived classes"
332 ac_help="$ac_help
333 --enable-busyinfo use wxBusyInfo"
334 ac_help="$ac_help
335 --enable-joystick compile in joystick support (Linux only)"
336 ac_help="$ac_help
337 --enable-metafiles use wxMetaFile (Windows only)"
338 ac_help="$ac_help
339 --enable-image use wxImage class"
340 ac_help="$ac_help
341 --enable-gif use gif images (GIF file format)"
342 ac_help="$ac_help
343 --enable-pcx use pcx images (PCX file format)"
344 ac_help="$ac_help
345 --enable-pnm use pnm images (PNM file format)"
346 ac_help="$ac_help
347 --enable-xpm use xpm images (XPM file format)"
348 ac_help="$ac_help
349 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
350 ac_help="$ac_help
351 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
352 ac_help="$ac_help
353 --disable-gtktest Do not try to compile and run a test GTK program"
354 ac_help="$ac_help
355 --with-x use the X Window System"
356
357 # Initialize some variables set by options.
358 # The variables have the same names as the options, with
359 # dashes changed to underlines.
360 build=NONE
361 cache_file=./config.cache
362 exec_prefix=NONE
363 host=NONE
364 no_create=
365 nonopt=NONE
366 no_recursion=
367 prefix=NONE
368 program_prefix=NONE
369 program_suffix=NONE
370 program_transform_name=s,x,x,
371 silent=
372 site=
373 srcdir=
374 target=NONE
375 verbose=
376 x_includes=NONE
377 x_libraries=NONE
378 bindir='${exec_prefix}/bin'
379 sbindir='${exec_prefix}/sbin'
380 libexecdir='${exec_prefix}/libexec'
381 datadir='${prefix}/share'
382 sysconfdir='${prefix}/etc'
383 sharedstatedir='${prefix}/com'
384 localstatedir='${prefix}/var'
385 libdir='${exec_prefix}/lib'
386 includedir='${prefix}/include'
387 oldincludedir='/usr/include'
388 infodir='${prefix}/info'
389 mandir='${prefix}/man'
390
391 # Initialize some other variables.
392 subdirs=
393 MFLAGS= MAKEFLAGS=
394 SHELL=${CONFIG_SHELL-/bin/sh}
395 # Maximum number of lines to put in a shell here document.
396 ac_max_here_lines=12
397
398 ac_prev=
399 for ac_option
400 do
401
402 # If the previous option needs an argument, assign it.
403 if test -n "$ac_prev"; then
404 eval "$ac_prev=\$ac_option"
405 ac_prev=
406 continue
407 fi
408
409 case "$ac_option" in
410 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
411 *) ac_optarg= ;;
412 esac
413
414 # Accept the important Cygnus configure options, so we can diagnose typos.
415
416 case "$ac_option" in
417
418 -bindir | --bindir | --bindi | --bind | --bin | --bi)
419 ac_prev=bindir ;;
420 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
421 bindir="$ac_optarg" ;;
422
423 -build | --build | --buil | --bui | --bu)
424 ac_prev=build ;;
425 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
426 build="$ac_optarg" ;;
427
428 -cache-file | --cache-file | --cache-fil | --cache-fi \
429 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
430 ac_prev=cache_file ;;
431 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
432 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
433 cache_file="$ac_optarg" ;;
434
435 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
436 ac_prev=datadir ;;
437 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
438 | --da=*)
439 datadir="$ac_optarg" ;;
440
441 -disable-* | --disable-*)
442 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
443 # Reject names that are not valid shell variable names.
444 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
445 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
446 fi
447 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
448 eval "enable_${ac_feature}=no" ;;
449
450 -enable-* | --enable-*)
451 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
452 # Reject names that are not valid shell variable names.
453 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
454 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
455 fi
456 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
457 case "$ac_option" in
458 *=*) ;;
459 *) ac_optarg=yes ;;
460 esac
461 eval "enable_${ac_feature}='$ac_optarg'" ;;
462
463 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
464 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
465 | --exec | --exe | --ex)
466 ac_prev=exec_prefix ;;
467 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
468 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
469 | --exec=* | --exe=* | --ex=*)
470 exec_prefix="$ac_optarg" ;;
471
472 -gas | --gas | --ga | --g)
473 # Obsolete; use --with-gas.
474 with_gas=yes ;;
475
476 -help | --help | --hel | --he)
477 # Omit some internal or obsolete options to make the list less imposing.
478 # This message is too long to be a string in the A/UX 3.1 sh.
479 cat << EOF
480 Usage: configure [options] [host]
481 Options: [defaults in brackets after descriptions]
482 Configuration:
483 --cache-file=FILE cache test results in FILE
484 --help print this message
485 --no-create do not create output files
486 --quiet, --silent do not print \`checking...' messages
487 --version print the version of autoconf that created configure
488 Directory and file names:
489 --prefix=PREFIX install architecture-independent files in PREFIX
490 [$ac_default_prefix]
491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
492 [same as prefix]
493 --bindir=DIR user executables in DIR [EPREFIX/bin]
494 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
495 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
496 --datadir=DIR read-only architecture-independent data in DIR
497 [PREFIX/share]
498 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
499 --sharedstatedir=DIR modifiable architecture-independent data in DIR
500 [PREFIX/com]
501 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
502 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
503 --includedir=DIR C header files in DIR [PREFIX/include]
504 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
505 --infodir=DIR info documentation in DIR [PREFIX/info]
506 --mandir=DIR man documentation in DIR [PREFIX/man]
507 --srcdir=DIR find the sources in DIR [configure dir or ..]
508 --program-prefix=PREFIX prepend PREFIX to installed program names
509 --program-suffix=SUFFIX append SUFFIX to installed program names
510 --program-transform-name=PROGRAM
511 run sed PROGRAM on installed program names
512 EOF
513 cat << EOF
514 Host type:
515 --build=BUILD configure for building on BUILD [BUILD=HOST]
516 --host=HOST configure for HOST [guessed]
517 --target=TARGET configure for TARGET [TARGET=HOST]
518 Features and packages:
519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
523 --x-includes=DIR X include files are in DIR
524 --x-libraries=DIR X library files are in DIR
525 EOF
526 if test -n "$ac_help"; then
527 echo "--enable and --with options recognized:$ac_help"
528 fi
529 exit 0 ;;
530
531 -host | --host | --hos | --ho)
532 ac_prev=host ;;
533 -host=* | --host=* | --hos=* | --ho=*)
534 host="$ac_optarg" ;;
535
536 -includedir | --includedir | --includedi | --included | --include \
537 | --includ | --inclu | --incl | --inc)
538 ac_prev=includedir ;;
539 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
540 | --includ=* | --inclu=* | --incl=* | --inc=*)
541 includedir="$ac_optarg" ;;
542
543 -infodir | --infodir | --infodi | --infod | --info | --inf)
544 ac_prev=infodir ;;
545 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
546 infodir="$ac_optarg" ;;
547
548 -libdir | --libdir | --libdi | --libd)
549 ac_prev=libdir ;;
550 -libdir=* | --libdir=* | --libdi=* | --libd=*)
551 libdir="$ac_optarg" ;;
552
553 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
554 | --libexe | --libex | --libe)
555 ac_prev=libexecdir ;;
556 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
557 | --libexe=* | --libex=* | --libe=*)
558 libexecdir="$ac_optarg" ;;
559
560 -localstatedir | --localstatedir | --localstatedi | --localstated \
561 | --localstate | --localstat | --localsta | --localst \
562 | --locals | --local | --loca | --loc | --lo)
563 ac_prev=localstatedir ;;
564 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
565 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
566 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
567 localstatedir="$ac_optarg" ;;
568
569 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
570 ac_prev=mandir ;;
571 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
572 mandir="$ac_optarg" ;;
573
574 -nfp | --nfp | --nf)
575 # Obsolete; use --without-fp.
576 with_fp=no ;;
577
578 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
579 | --no-cr | --no-c)
580 no_create=yes ;;
581
582 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
583 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
584 no_recursion=yes ;;
585
586 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
587 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
588 | --oldin | --oldi | --old | --ol | --o)
589 ac_prev=oldincludedir ;;
590 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
591 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
592 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
593 oldincludedir="$ac_optarg" ;;
594
595 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
596 ac_prev=prefix ;;
597 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
598 prefix="$ac_optarg" ;;
599
600 -program-prefix | --program-prefix | --program-prefi | --program-pref \
601 | --program-pre | --program-pr | --program-p)
602 ac_prev=program_prefix ;;
603 -program-prefix=* | --program-prefix=* | --program-prefi=* \
604 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
605 program_prefix="$ac_optarg" ;;
606
607 -program-suffix | --program-suffix | --program-suffi | --program-suff \
608 | --program-suf | --program-su | --program-s)
609 ac_prev=program_suffix ;;
610 -program-suffix=* | --program-suffix=* | --program-suffi=* \
611 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
612 program_suffix="$ac_optarg" ;;
613
614 -program-transform-name | --program-transform-name \
615 | --program-transform-nam | --program-transform-na \
616 | --program-transform-n | --program-transform- \
617 | --program-transform | --program-transfor \
618 | --program-transfo | --program-transf \
619 | --program-trans | --program-tran \
620 | --progr-tra | --program-tr | --program-t)
621 ac_prev=program_transform_name ;;
622 -program-transform-name=* | --program-transform-name=* \
623 | --program-transform-nam=* | --program-transform-na=* \
624 | --program-transform-n=* | --program-transform-=* \
625 | --program-transform=* | --program-transfor=* \
626 | --program-transfo=* | --program-transf=* \
627 | --program-trans=* | --program-tran=* \
628 | --progr-tra=* | --program-tr=* | --program-t=*)
629 program_transform_name="$ac_optarg" ;;
630
631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
632 | -silent | --silent | --silen | --sile | --sil)
633 silent=yes ;;
634
635 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
636 ac_prev=sbindir ;;
637 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
638 | --sbi=* | --sb=*)
639 sbindir="$ac_optarg" ;;
640
641 -sharedstatedir | --sharedstatedir | --sharedstatedi \
642 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
643 | --sharedst | --shareds | --shared | --share | --shar \
644 | --sha | --sh)
645 ac_prev=sharedstatedir ;;
646 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
647 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
648 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
649 | --sha=* | --sh=*)
650 sharedstatedir="$ac_optarg" ;;
651
652 -site | --site | --sit)
653 ac_prev=site ;;
654 -site=* | --site=* | --sit=*)
655 site="$ac_optarg" ;;
656
657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
658 ac_prev=srcdir ;;
659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
660 srcdir="$ac_optarg" ;;
661
662 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
663 | --syscon | --sysco | --sysc | --sys | --sy)
664 ac_prev=sysconfdir ;;
665 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
666 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
667 sysconfdir="$ac_optarg" ;;
668
669 -target | --target | --targe | --targ | --tar | --ta | --t)
670 ac_prev=target ;;
671 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
672 target="$ac_optarg" ;;
673
674 -v | -verbose | --verbose | --verbos | --verbo | --verb)
675 verbose=yes ;;
676
677 -version | --version | --versio | --versi | --vers)
678 echo "configure generated by autoconf version 2.13"
679 exit 0 ;;
680
681 -with-* | --with-*)
682 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
683 # Reject names that are not valid shell variable names.
684 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
685 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
686 fi
687 ac_package=`echo $ac_package| sed 's/-/_/g'`
688 case "$ac_option" in
689 *=*) ;;
690 *) ac_optarg=yes ;;
691 esac
692 eval "with_${ac_package}='$ac_optarg'" ;;
693
694 -without-* | --without-*)
695 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
696 # Reject names that are not valid shell variable names.
697 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
698 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
699 fi
700 ac_package=`echo $ac_package| sed 's/-/_/g'`
701 eval "with_${ac_package}=no" ;;
702
703 --x)
704 # Obsolete; use --with-x.
705 with_x=yes ;;
706
707 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
708 | --x-incl | --x-inc | --x-in | --x-i)
709 ac_prev=x_includes ;;
710 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
711 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
712 x_includes="$ac_optarg" ;;
713
714 -x-libraries | --x-libraries | --x-librarie | --x-librari \
715 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
716 ac_prev=x_libraries ;;
717 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
718 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
719 x_libraries="$ac_optarg" ;;
720
721 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
722 ;;
723
724 *)
725 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
726 echo "configure: warning: $ac_option: invalid host type" 1>&2
727 fi
728 if test "x$nonopt" != xNONE; then
729 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
730 fi
731 nonopt="$ac_option"
732 ;;
733
734 esac
735 done
736
737 if test -n "$ac_prev"; then
738 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
739 fi
740
741 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
742
743 # File descriptor usage:
744 # 0 standard input
745 # 1 file creation
746 # 2 errors and warnings
747 # 3 some systems may open it to /dev/tty
748 # 4 used on the Kubota Titan
749 # 6 checking for... messages and results
750 # 5 compiler messages saved in config.log
751 if test "$silent" = yes; then
752 exec 6>/dev/null
753 else
754 exec 6>&1
755 fi
756 exec 5>./config.log
757
758 echo "\
759 This file contains any messages produced by compilers while
760 running configure, to aid debugging if configure makes a mistake.
761 " 1>&5
762
763 # Strip out --no-create and --no-recursion so they do not pile up.
764 # Also quote any args containing shell metacharacters.
765 ac_configure_args=
766 for ac_arg
767 do
768 case "$ac_arg" in
769 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
770 | --no-cr | --no-c) ;;
771 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
772 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
773 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
774 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
775 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
776 esac
777 done
778
779 # NLS nuisances.
780 # Only set these to C if already set. These must not be set unconditionally
781 # because not all systems understand e.g. LANG=C (notably SCO).
782 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
783 # Non-C LC_CTYPE values break the ctype check.
784 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
785 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
786 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
787 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
788
789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
790 rm -rf conftest* confdefs.h
791 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
792 echo > confdefs.h
793
794 # A filename unique to this package, relative to the directory that
795 # configure is in, which we can look for to find out if srcdir is correct.
796 ac_unique_file=wx-config.in
797
798 # Find the source files, if location was not specified.
799 if test -z "$srcdir"; then
800 ac_srcdir_defaulted=yes
801 # Try the directory containing this script, then its parent.
802 ac_prog=$0
803 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
804 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
805 srcdir=$ac_confdir
806 if test ! -r $srcdir/$ac_unique_file; then
807 srcdir=..
808 fi
809 else
810 ac_srcdir_defaulted=no
811 fi
812 if test ! -r $srcdir/$ac_unique_file; then
813 if test "$ac_srcdir_defaulted" = yes; then
814 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
815 else
816 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
817 fi
818 fi
819 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
820
821 # Prefer explicitly selected file to automatically selected ones.
822 if test -z "$CONFIG_SITE"; then
823 if test "x$prefix" != xNONE; then
824 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
825 else
826 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
827 fi
828 fi
829 for ac_site_file in $CONFIG_SITE; do
830 if test -r "$ac_site_file"; then
831 echo "loading site script $ac_site_file"
832 . "$ac_site_file"
833 fi
834 done
835
836 if test -r "$cache_file"; then
837 echo "loading cache $cache_file"
838 . $cache_file
839 else
840 echo "creating cache $cache_file"
841 > $cache_file
842 fi
843
844 ac_ext=c
845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
846 ac_cpp='$CPP $CPPFLAGS'
847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
849 cross_compiling=$ac_cv_prog_cc_cross
850
851 ac_exeext=
852 ac_objext=o
853 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
854 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
855 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
856 ac_n= ac_c='
857 ' ac_t=' '
858 else
859 ac_n=-n ac_c= ac_t=
860 fi
861 else
862 ac_n= ac_c='\c' ac_t=
863 fi
864
865
866
867 ac_aux_dir=
868 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
869 if test -f $ac_dir/install-sh; then
870 ac_aux_dir=$ac_dir
871 ac_install_sh="$ac_aux_dir/install-sh -c"
872 break
873 elif 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 fi
878 done
879 if test -z "$ac_aux_dir"; then
880 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
881 fi
882 ac_config_guess=$ac_aux_dir/config.guess
883 ac_config_sub=$ac_aux_dir/config.sub
884 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
885
886
887 # Do some error checking and defaulting for the host and target type.
888 # The inputs are:
889 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
890 #
891 # The rules are:
892 # 1. You are not allowed to specify --host, --target, and nonopt at the
893 # same time.
894 # 2. Host defaults to nonopt.
895 # 3. If nonopt is not specified, then host defaults to the current host,
896 # as determined by config.guess.
897 # 4. Target and build default to nonopt.
898 # 5. If nonopt is not specified, then target and build default to host.
899
900 # The aliases save the names the user supplied, while $host etc.
901 # will get canonicalized.
902 case $host---$target---$nonopt in
903 NONE---*---* | *---NONE---* | *---*---NONE) ;;
904 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
905 esac
906
907
908 # Make sure we can run config.sub.
909 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
911 fi
912
913 echo $ac_n "checking host system type""... $ac_c" 1>&6
914 echo "configure:915: checking host system type" >&5
915
916 host_alias=$host
917 case "$host_alias" in
918 NONE)
919 case $nonopt in
920 NONE)
921 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
923 fi ;;
924 *) host_alias=$nonopt ;;
925 esac ;;
926 esac
927
928 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$host" 1>&6
933
934 echo $ac_n "checking target system type""... $ac_c" 1>&6
935 echo "configure:936: checking target system type" >&5
936
937 target_alias=$target
938 case "$target_alias" in
939 NONE)
940 case $nonopt in
941 NONE) target_alias=$host_alias ;;
942 *) target_alias=$nonopt ;;
943 esac ;;
944 esac
945
946 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
947 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950 echo "$ac_t""$target" 1>&6
951
952 echo $ac_n "checking build system type""... $ac_c" 1>&6
953 echo "configure:954: checking build system type" >&5
954
955 build_alias=$build
956 case "$build_alias" in
957 NONE)
958 case $nonopt in
959 NONE) build_alias=$host_alias ;;
960 *) build_alias=$nonopt ;;
961 esac ;;
962 esac
963
964 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
965 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
968 echo "$ac_t""$build" 1>&6
969
970 test "$host_alias" != "$target_alias" &&
971 test "$program_prefix$program_suffix$program_transform_name" = \
972 NONENONEs,x,x, &&
973 program_prefix=${target_alias}-
974
975
976
977 WX_MAJOR_VERSION_NUMBER=2
978 WX_MINOR_VERSION_NUMBER=3
979 WX_RELEASE_NUMBER=1
980
981 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
982 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
983
984 WX_CURRENT=0
985 WX_REVISION=0
986 WX_AGE=0
987
988
989
990 USE_UNIX=1
991 USE_WIN32=0
992 USE_BEOS=0
993 USE_MAC=0
994
995 USE_LINUX=
996 USE_SGI=
997 USE_HPUX=
998 USE_SYSV=
999 USE_SVR4=
1000 USE_AIX=
1001 USE_SUN=
1002 USE_SOLARIS=
1003 USE_SUNOS=
1004 USE_ALPHA=
1005 USE_OSF=
1006 USE_BSD=
1007 USE_FREEBSD=
1008 USE_OPENBSD=
1009 USE_NETBSD=
1010 USE_VMS=
1011 USE_ULTRIX=
1012 USE_CYGWIN=
1013 USE_MINGW=
1014 USE_DATA_GENERAL=
1015
1016 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1017
1018 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1019
1020 DEFAULT_wxUSE_GTK=0
1021 DEFAULT_wxUSE_MAC=0
1022 DEFAULT_wxUSE_MGL=0
1023 DEFAULT_wxUSE_MOTIF=0
1024 DEFAULT_wxUSE_MSW=0
1025 DEFAULT_wxUSE_PM=0
1026 DEFAULT_wxUSE_WINE=0
1027
1028 DEFAULT_DEFAULT_wxUSE_GTK=0
1029 DEFAULT_DEFAULT_wxUSE_MAC=0
1030 DEFAULT_DEFAULT_wxUSE_MGL=0
1031 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1032 DEFAULT_DEFAULT_wxUSE_MSW=0
1033 DEFAULT_DEFAULT_wxUSE_PM=0
1034 DEFAULT_DEFAULT_wxUSE_WINE=0
1035
1036 PROGRAM_EXT=
1037
1038 case "${host}" in
1039 *-hp-hpux* )
1040 USE_HPUX=1
1041 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1042 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1043 cat >> confdefs.h <<\EOF
1044 #define __HPUX__ 1
1045 EOF
1046
1047 ;;
1048 *-*-linux* )
1049 USE_LINUX=1
1050 cat >> confdefs.h <<\EOF
1051 #define __LINUX__ 1
1052 EOF
1053
1054 TMP=`uname -m`
1055 if test "x$TMP" = "xalpha"; then
1056 USE_ALPHA=1
1057 cat >> confdefs.h <<\EOF
1058 #define __ALPHA__ 1
1059 EOF
1060
1061 fi
1062 DEFAULT_DEFAULT_wxUSE_GTK=1
1063 ;;
1064 *-*-irix5* | *-*-irix6* )
1065 USE_SGI=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068 #define __SGI__ 1
1069 EOF
1070
1071 cat >> confdefs.h <<\EOF
1072 #define __SVR4__ 1
1073 EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-solaris2* )
1078 USE_SUN=1
1079 USE_SOLARIS=1
1080 USE_SVR4=1
1081 cat >> confdefs.h <<\EOF
1082 #define __SUN__ 1
1083 EOF
1084
1085 cat >> confdefs.h <<\EOF
1086 #define __SOLARIS__ 1
1087 EOF
1088
1089 cat >> confdefs.h <<\EOF
1090 #define __SVR4__ 1
1091 EOF
1092
1093 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1094 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1095 ;;
1096 *-*-sunos4* )
1097 USE_SUN=1
1098 USE_SUNOS=1
1099 USE_BSD=1
1100 cat >> confdefs.h <<\EOF
1101 #define __SUN__ 1
1102 EOF
1103
1104 cat >> confdefs.h <<\EOF
1105 #define __SUNOS__ 1
1106 EOF
1107
1108 cat >> confdefs.h <<\EOF
1109 #define __BSD__ 1
1110 EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1113 ;;
1114 *-*-freebsd*)
1115 USE_BSD=1
1116 USE_FREEBSD=1
1117 cat >> confdefs.h <<\EOF
1118 #define __FREEBSD__ 1
1119 EOF
1120
1121 cat >> confdefs.h <<\EOF
1122 #define __BSD__ 1
1123 EOF
1124
1125 DEFAULT_DEFAULT_wxUSE_GTK=1
1126 ;;
1127 *-*-openbsd*)
1128 USE_BSD=1
1129 USE_OPENBSD=1
1130 cat >> confdefs.h <<\EOF
1131 #define __FREEBSD__ 1
1132 EOF
1133
1134 cat >> confdefs.h <<\EOF
1135 #define __OPENBSD__ 1
1136 EOF
1137
1138 DEFAULT_DEFAULT_wxUSE_GTK=1
1139 ;;
1140 *-*-netbsd*)
1141 USE_BSD=1
1142 USE_NETBSD=1
1143 cat >> confdefs.h <<\EOF
1144 #define __FREEBSD__ 1
1145 EOF
1146
1147 cat >> confdefs.h <<\EOF
1148 #define __NETBSD__ 1
1149 EOF
1150
1151 DEFAULT_DEFAULT_wxUSE_GTK=1
1152 ;;
1153 *-*-osf* )
1154 USE_ALPHA=1
1155 USE_OSF=1
1156 cat >> confdefs.h <<\EOF
1157 #define __ALPHA__ 1
1158 EOF
1159
1160 cat >> confdefs.h <<\EOF
1161 #define __OSF__ 1
1162 EOF
1163
1164 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1165 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1166 ;;
1167 *-*-dgux5* )
1168 USE_ALPHA=1
1169 USE_SVR4=1
1170 cat >> confdefs.h <<\EOF
1171 #define __ALPHA__ 1
1172 EOF
1173
1174 cat >> confdefs.h <<\EOF
1175 #define __SVR4__ 1
1176 EOF
1177
1178 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1179 ;;
1180 *-*-sysv5* )
1181 USE_SYSV=1
1182 USE_SVR4=1
1183 cat >> confdefs.h <<\EOF
1184 #define __SYSV__ 1
1185 EOF
1186
1187 cat >> confdefs.h <<\EOF
1188 #define __SVR4__ 1
1189 EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-aix* )
1194 USE_AIX=1
1195 USE_SYSV=1
1196 USE_SVR4=1
1197 cat >> confdefs.h <<\EOF
1198 #define __AIX__ 1
1199 EOF
1200
1201 cat >> confdefs.h <<\EOF
1202 #define __SYSV__ 1
1203 EOF
1204
1205 cat >> confdefs.h <<\EOF
1206 #define __SVR4__ 1
1207 EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 ;;
1211
1212 *-*-cygwin* | *-*-mingw32* )
1213 USE_UNIX=0
1214 USE_WIN32=1
1215 cat >> confdefs.h <<\EOF
1216 #define __WIN32__ 1
1217 EOF
1218
1219 cat >> confdefs.h <<\EOF
1220 #define __WIN95__ 1
1221 EOF
1222
1223 cat >> confdefs.h <<\EOF
1224 #define __WINDOWS__ 1
1225 EOF
1226
1227 cat >> confdefs.h <<\EOF
1228 #define __GNUWIN32__ 1
1229 EOF
1230
1231 cat >> confdefs.h <<\EOF
1232 #define STRICT 1
1233 EOF
1234
1235 cat >> confdefs.h <<\EOF
1236 #define WINVER 0x0400
1237 EOF
1238
1239 PROGRAM_EXT=".exe"
1240 DEFAULT_DEFAULT_wxUSE_MSW=1
1241 ;;
1242
1243 *-pc-os2_emx )
1244 cat >> confdefs.h <<\EOF
1245 #define __EMX__ 1
1246 EOF
1247
1248 PROGRAM_EXT=".exe"
1249 DEFAULT_DEFAULT_wxUSE_PM=1
1250 ;;
1251
1252 *-*-darwin* )
1253 USE_BSD=1
1254 USE_MAC=1
1255 cat >> confdefs.h <<\EOF
1256 #define __MAC__ 1
1257 EOF
1258
1259 cat >> confdefs.h <<\EOF
1260 #define __BSD__ 1
1261 EOF
1262
1263 cat >> confdefs.h <<\EOF
1264 #define __UNIX__ 1
1265 EOF
1266
1267 DEFAULT_DEFAULT_wxUSE_MAC=1
1268 ;;
1269
1270 *-*-beos* )
1271 USE_BEOS=1
1272 cat >> confdefs.h <<\EOF
1273 #define __BEOS__ 1
1274 EOF
1275
1276 ;;
1277
1278 *)
1279 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1280 esac
1281
1282 if test "$USE_UNIX" = 1 ; then
1283 wxUSE_UNIX=yes
1284 cat >> confdefs.h <<\EOF
1285 #define __UNIX__ 1
1286 EOF
1287
1288
1289 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1290 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1291 fi
1292
1293 if test "$USE_BEOS" = 1; then
1294 SRC_SUBDIRS="$SRC_SUBDIRS be"
1295 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1296 fi
1297
1298 if test "$USE_LINUX" = 1; then
1299 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1300 echo "configure:1301: checking for gettext in -lc" >&5
1301 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1304 else
1305 ac_save_LIBS="$LIBS"
1306 LIBS="-lc $LIBS"
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 /* Override any gcc2 internal prototype to avoid an error. */
1311 /* We use char because int might match the return type of a gcc2
1312 builtin and then its argument prototype would still apply. */
1313 char gettext();
1314
1315 int main() {
1316 gettext()
1317 ; return 0; }
1318 EOF
1319 if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1320 rm -rf conftest*
1321 eval "ac_cv_lib_$ac_lib_var=yes"
1322 else
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1325 rm -rf conftest*
1326 eval "ac_cv_lib_$ac_lib_var=no"
1327 fi
1328 rm -f conftest*
1329 LIBS="$ac_save_LIBS"
1330
1331 fi
1332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1333 echo "$ac_t""yes" 1>&6
1334 cat >> confdefs.h <<\EOF
1335 #define wxHAVE_GLIBC2 1
1336 EOF
1337
1338 else
1339 echo "$ac_t""no" 1>&6
1340 fi
1341
1342 fi
1343
1344
1345
1346
1347 wx_arg_cache_file="configarg.cache"
1348 echo "loading argument cache $wx_arg_cache_file"
1349 rm -f ${wx_arg_cache_file}.tmp
1350 touch ${wx_arg_cache_file}.tmp
1351 touch ${wx_arg_cache_file}
1352
1353
1354 DEBUG_CONFIGURE=0
1355 if test $DEBUG_CONFIGURE = 1; then
1356 DEFAULT_wxUSE_UNIVERSAL=no
1357
1358 DEFAULT_wxUSE_THREADS=yes
1359
1360 DEFAULT_wxUSE_SHARED=yes
1361 DEFAULT_wxUSE_BURNT_NAME=no
1362 DEFAULT_wxUSE_OPTIMISE=no
1363 DEFAULT_wxUSE_PROFILE=no
1364 DEFAULT_wxUSE_NO_DEPS=no
1365 DEFAULT_wxUSE_NO_RTTI=no
1366 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1367 DEFAULT_wxUSE_PERMISSIVE=no
1368 DEFAULT_wxUSE_DEBUG_FLAG=yes
1369 DEFAULT_wxUSE_DEBUG_INFO=yes
1370 DEFAULT_wxUSE_DEBUG_GDB=yes
1371 DEFAULT_wxUSE_MEM_TRACING=no
1372 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1373 DEFAULT_wxUSE_DMALLOC=no
1374 DEFAULT_wxUSE_APPLE_IEEE=no
1375
1376 DEFAULT_wxUSE_LOG=yes
1377 DEFAULT_wxUSE_LOGWINDOW=no
1378 DEFAULT_wxUSE_LOGGUI=no
1379
1380 DEFAULT_wxUSE_GUI=yes
1381 DEFAULT_wxUSE_CONTROLS=no
1382
1383 DEFAULT_wxUSE_ZLIB=no
1384 DEFAULT_wxUSE_LIBPNG=no
1385 DEFAULT_wxUSE_LIBJPEG=no
1386 DEFAULT_wxUSE_LIBTIFF=no
1387 DEFAULT_wxUSE_ODBC=no
1388 DEFAULT_wxUSE_FREETYPE=no
1389 DEFAULT_wxUSE_OPENGL=no
1390
1391 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1392 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1393 DEFAULT_wxUSE_STD_IOSTREAM=no
1394 DEFAULT_wxUSE_CMDLINE_PARSER=no
1395 DEFAULT_wxUSE_DATETIME=no
1396 DEFAULT_wxUSE_TIMEDATE=no
1397 DEFAULT_wxUSE_TIMER=no
1398 DEFAULT_wxUSE_STOPWATCH=no
1399 DEFAULT_wxUSE_FILE=no
1400 DEFAULT_wxUSE_FFILE=no
1401 DEFAULT_wxUSE_TEXTFILE=no
1402 DEFAULT_wxUSE_WAVE=no
1403 DEFAULT_wxUSE_INTL=no
1404 DEFAULT_wxUSE_CONFIG=no
1405 DEFAULT_wxUSE_FONTMAP=no
1406 DEFAULT_wxUSE_STREAMS=no
1407 DEFAULT_wxUSE_SOCKETS=no
1408 DEFAULT_wxUSE_DIALUP_MANAGER=no
1409 DEFAULT_wxUSE_SERIAL=no
1410 DEFAULT_wxUSE_JOYSTICK=no
1411 DEFAULT_wxUSE_DYNLIB_CLASS=no
1412 DEFAULT_wxUSE_LONGLONG=no
1413 DEFAULT_wxUSE_GEOMETRY=no
1414
1415 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1416 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1417 DEFAULT_wxUSE_POSTSCRIPT=no
1418
1419 DEFAULT_wxUSE_X_RESOURCES=no
1420 DEFAULT_wxUSE_CLIPBOARD=no
1421 DEFAULT_wxUSE_TOOLTIPS=no
1422 DEFAULT_wxUSE_DRAG_AND_DROP=no
1423 DEFAULT_wxUSE_SPLINES=no
1424
1425 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1426 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1427 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1428
1429 DEFAULT_wxUSE_PROLOGIO=no
1430 DEFAULT_wxUSE_RESOURCES=no
1431 DEFAULT_wxUSE_CONSTRAINTS=no
1432 DEFAULT_wxUSE_IPC=no
1433 DEFAULT_wxUSE_HELP=no
1434 DEFAULT_wxUSE_WXTREE=no
1435 DEFAULT_wxUSE_METAFILE=no
1436 DEFAULT_wxUSE_MIMETYPE=no
1437
1438 DEFAULT_wxUSE_COMMONDLGS=no
1439 DEFAULT_wxUSE_CHOICEDLG=no
1440 DEFAULT_wxUSE_COLOURDLG=no
1441 DEFAULT_wxUSE_DIRDLG=no
1442 DEFAULT_wxUSE_FILEDLG=no
1443 DEFAULT_wxUSE_FONTDLG=no
1444 DEFAULT_wxUSE_MSGDLG=no
1445 DEFAULT_wxUSE_NUMBERDLG=no
1446 DEFAULT_wxUSE_TEXTDLG=no
1447 DEFAULT_wxUSE_STARTUP_TIPS=no
1448 DEFAULT_wxUSE_PROGRESSDLG=no
1449 DEFAULT_wxUSE_MENUS=no
1450 DEFAULT_wxUSE_MINIFRAME=no
1451 DEFAULT_wxUSE_HTML=no
1452 DEFAULT_wxUSE_FILESYSTEM=no
1453 DEFAULT_wxUSE_FS_INET=no
1454 DEFAULT_wxUSE_FS_ZIP=no
1455 DEFAULT_wxUSE_BUSYINFO=no
1456 DEFAULT_wxUSE_ZIPSTREAM=no
1457 DEFAULT_wxUSE_VALIDATORS=no
1458
1459 DEFAULT_wxUSE_ACCEL=no
1460 DEFAULT_wxUSE_BUTTON=no
1461 DEFAULT_wxUSE_BMPBUTTON=no
1462 DEFAULT_wxUSE_CALCTRL=no
1463 DEFAULT_wxUSE_CARET=no
1464 DEFAULT_wxUSE_CHECKBOX=no
1465 DEFAULT_wxUSE_CHECKLST=no
1466 DEFAULT_wxUSE_CHOICE=no
1467 DEFAULT_wxUSE_COMBOBOX=no
1468 DEFAULT_wxUSE_GAUGE=no
1469 DEFAULT_wxUSE_GRID=no
1470 DEFAULT_wxUSE_NEW_GRID=no
1471 DEFAULT_wxUSE_IMAGLIST=no
1472 DEFAULT_wxUSE_LISTBOX=no
1473 DEFAULT_wxUSE_LISTCTRL=no
1474 DEFAULT_wxUSE_NOTEBOOK=no
1475 DEFAULT_wxUSE_RADIOBOX=no
1476 DEFAULT_wxUSE_RADIOBTN=no
1477 DEFAULT_wxUSE_SASH=no
1478 DEFAULT_wxUSE_SCROLLBAR=no
1479 DEFAULT_wxUSE_SLIDER=no
1480 DEFAULT_wxUSE_SPINBTN=no
1481 DEFAULT_wxUSE_SPINCTRL=no
1482 DEFAULT_wxUSE_SPLITTER=no
1483 DEFAULT_wxUSE_STATBMP=no
1484 DEFAULT_wxUSE_STATBOX=no
1485 DEFAULT_wxUSE_STATLINE=no
1486 DEFAULT_wxUSE_STATTEXT=no
1487 DEFAULT_wxUSE_STATUSBAR=yes
1488 DEFAULT_wxUSE_TABDIALOG=no
1489 DEFAULT_wxUSE_TEXTCTRL=no
1490 DEFAULT_wxUSE_TOGGLEBTN=no
1491 DEFAULT_wxUSE_TOOLBAR=no
1492 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1493 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1494 DEFAULT_wxUSE_TREECTRL=no
1495
1496 DEFAULT_wxUSE_UNICODE=no
1497 DEFAULT_wxUSE_WCSRTOMBS=no
1498
1499 DEFAULT_wxUSE_IMAGE=no
1500 DEFAULT_wxUSE_GIF=no
1501 DEFAULT_wxUSE_PCX=no
1502 DEFAULT_wxUSE_PNM=no
1503 DEFAULT_wxUSE_XPM=no
1504 else
1505 DEFAULT_wxUSE_UNIVERSAL=no
1506
1507 DEFAULT_wxUSE_THREADS=yes
1508
1509 DEFAULT_wxUSE_SHARED=yes
1510 DEFAULT_wxUSE_BURNT_NAME=no
1511 DEFAULT_wxUSE_OPTIMISE=yes
1512 DEFAULT_wxUSE_PROFILE=no
1513 DEFAULT_wxUSE_NO_DEPS=no
1514 DEFAULT_wxUSE_NO_RTTI=no
1515 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1516 DEFAULT_wxUSE_PERMISSIVE=no
1517 DEFAULT_wxUSE_DEBUG_FLAG=no
1518 DEFAULT_wxUSE_DEBUG_INFO=no
1519 DEFAULT_wxUSE_DEBUG_GDB=no
1520 DEFAULT_wxUSE_MEM_TRACING=no
1521 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1522 DEFAULT_wxUSE_DMALLOC=no
1523 DEFAULT_wxUSE_APPLE_IEEE=yes
1524
1525 DEFAULT_wxUSE_LOG=yes
1526
1527 DEFAULT_wxUSE_GUI=yes
1528
1529 DEFAULT_wxUSE_ZLIB=yes
1530 DEFAULT_wxUSE_LIBPNG=yes
1531 DEFAULT_wxUSE_LIBJPEG=yes
1532 DEFAULT_wxUSE_LIBTIFF=yes
1533 DEFAULT_wxUSE_ODBC=no
1534 DEFAULT_wxUSE_FREETYPE=no
1535 DEFAULT_wxUSE_OPENGL=no
1536
1537 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1538 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1539 DEFAULT_wxUSE_STD_IOSTREAM=no
1540 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1541 DEFAULT_wxUSE_DATETIME=yes
1542 DEFAULT_wxUSE_TIMEDATE=no
1543 DEFAULT_wxUSE_TIMER=yes
1544 DEFAULT_wxUSE_STOPWATCH=yes
1545 DEFAULT_wxUSE_FILE=yes
1546 DEFAULT_wxUSE_FFILE=yes
1547 DEFAULT_wxUSE_TEXTFILE=yes
1548 DEFAULT_wxUSE_WAVE=no
1549 DEFAULT_wxUSE_INTL=yes
1550 DEFAULT_wxUSE_CONFIG=yes
1551 DEFAULT_wxUSE_FONTMAP=yes
1552 DEFAULT_wxUSE_STREAMS=yes
1553 DEFAULT_wxUSE_SOCKETS=yes
1554 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1555 DEFAULT_wxUSE_SERIAL=yes
1556 DEFAULT_wxUSE_JOYSTICK=yes
1557 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1558 DEFAULT_wxUSE_LONGLONG=yes
1559 DEFAULT_wxUSE_GEOMETRY=yes
1560
1561 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1562 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1563 DEFAULT_wxUSE_POSTSCRIPT=yes
1564
1565 DEFAULT_wxUSE_X_RESOURCES=no
1566 DEFAULT_wxUSE_CLIPBOARD=yes
1567 DEFAULT_wxUSE_TOOLTIPS=yes
1568 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1569 DEFAULT_wxUSE_SPLINES=yes
1570
1571 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1572 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1573 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1574
1575 DEFAULT_wxUSE_PROLOGIO=yes
1576 DEFAULT_wxUSE_RESOURCES=yes
1577 DEFAULT_wxUSE_CONSTRAINTS=yes
1578 DEFAULT_wxUSE_IPC=yes
1579 DEFAULT_wxUSE_HELP=yes
1580 DEFAULT_wxUSE_WXTREE=yes
1581 DEFAULT_wxUSE_METAFILE=yes
1582 DEFAULT_wxUSE_MIMETYPE=yes
1583
1584 DEFAULT_wxUSE_COMMONDLGS=yes
1585 DEFAULT_wxUSE_CHOICEDLG=yes
1586 DEFAULT_wxUSE_COLOURDLG=yes
1587 DEFAULT_wxUSE_DIRDLG=yes
1588 DEFAULT_wxUSE_FILEDLG=yes
1589 DEFAULT_wxUSE_FONTDLG=yes
1590 DEFAULT_wxUSE_MSGDLG=yes
1591 DEFAULT_wxUSE_NUMBERDLG=yes
1592 DEFAULT_wxUSE_TEXTDLG=yes
1593 DEFAULT_wxUSE_STARTUP_TIPS=yes
1594 DEFAULT_wxUSE_PROGRESSDLG=yes
1595 DEFAULT_wxUSE_MENUS=yes
1596 DEFAULT_wxUSE_MINIFRAME=yes
1597 DEFAULT_wxUSE_HTML=yes
1598 DEFAULT_wxUSE_FILESYSTEM=yes
1599 DEFAULT_wxUSE_FS_INET=yes
1600 DEFAULT_wxUSE_FS_ZIP=yes
1601 DEFAULT_wxUSE_BUSYINFO=yes
1602 DEFAULT_wxUSE_ZIPSTREAM=yes
1603 DEFAULT_wxUSE_VALIDATORS=yes
1604
1605 DEFAULT_wxUSE_ACCEL=yes
1606 DEFAULT_wxUSE_BUTTON=yes
1607 DEFAULT_wxUSE_BMPBUTTON=yes
1608 DEFAULT_wxUSE_CALCTRL=yes
1609 DEFAULT_wxUSE_CARET=yes
1610 DEFAULT_wxUSE_CHECKBOX=yes
1611 DEFAULT_wxUSE_CHECKLST=yes
1612 DEFAULT_wxUSE_CHOICE=yes
1613 DEFAULT_wxUSE_COMBOBOX=yes
1614 DEFAULT_wxUSE_GAUGE=yes
1615 DEFAULT_wxUSE_GRID=yes
1616 DEFAULT_wxUSE_NEW_GRID=yes
1617 DEFAULT_wxUSE_IMAGLIST=yes
1618 DEFAULT_wxUSE_LISTBOX=yes
1619 DEFAULT_wxUSE_LISTCTRL=yes
1620 DEFAULT_wxUSE_NOTEBOOK=yes
1621 DEFAULT_wxUSE_RADIOBOX=yes
1622 DEFAULT_wxUSE_RADIOBTN=yes
1623 DEFAULT_wxUSE_SASH=yes
1624 DEFAULT_wxUSE_SCROLLBAR=yes
1625 DEFAULT_wxUSE_SLIDER=yes
1626 DEFAULT_wxUSE_SPINBTN=yes
1627 DEFAULT_wxUSE_SPINCTRL=yes
1628 DEFAULT_wxUSE_SPLITTER=yes
1629 DEFAULT_wxUSE_STATBMP=yes
1630 DEFAULT_wxUSE_STATBOX=yes
1631 DEFAULT_wxUSE_STATLINE=yes
1632 DEFAULT_wxUSE_STATTEXT=yes
1633 DEFAULT_wxUSE_STATUSBAR=yes
1634 DEFAULT_wxUSE_TABDIALOG=no
1635 DEFAULT_wxUSE_TEXTCTRL=yes
1636 DEFAULT_wxUSE_TOGGLEBTN=yes
1637 DEFAULT_wxUSE_TOOLBAR=yes
1638 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1639 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1640 DEFAULT_wxUSE_TREECTRL=yes
1641
1642 DEFAULT_wxUSE_UNICODE=no
1643 DEFAULT_wxUSE_WCSRTOMBS=no
1644
1645 DEFAULT_wxUSE_IMAGE=yes
1646 DEFAULT_wxUSE_GIF=yes
1647 DEFAULT_wxUSE_PCX=yes
1648 DEFAULT_wxUSE_PNM=yes
1649 DEFAULT_wxUSE_XPM=yes
1650 fi
1651
1652
1653
1654 for toolkit in `echo $ALL_TOOLKITS`; do
1655 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1656 if test "x$LINE" != x ; then
1657 has_toolkit_in_cache=1
1658 eval "DEFAULT_$LINE"
1659 eval "CACHE_$toolkit=1"
1660 fi
1661 done
1662
1663
1664
1665 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1666 echo "configure:1667: checking for --enable-gui" >&5
1667 no_cache=0
1668 # Check whether --enable-gui or --disable-gui was given.
1669 if test "${enable_gui+set}" = set; then
1670 enableval="$enable_gui"
1671
1672 if test "$enableval" = yes; then
1673 ac_cv_use_gui='wxUSE_GUI=yes'
1674 else
1675 ac_cv_use_gui='wxUSE_GUI=no'
1676 fi
1677
1678 else
1679
1680 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1681 if test "x$LINE" != x ; then
1682 eval "DEFAULT_$LINE"
1683 else
1684 no_cache=1
1685 fi
1686
1687 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1688
1689 fi
1690
1691
1692 eval "$ac_cv_use_gui"
1693 if test "$no_cache" != 1; then
1694 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1695 fi
1696
1697 if test "$wxUSE_GUI" = yes; then
1698 echo "$ac_t""yes" 1>&6
1699 else
1700 echo "$ac_t""no" 1>&6
1701 fi
1702
1703
1704 if test "$wxUSE_GUI" = "yes"; then
1705
1706
1707 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1708 echo "configure:1709: checking for --enable-universal" >&5
1709 no_cache=0
1710 # Check whether --enable-universal or --disable-universal was given.
1711 if test "${enable_universal+set}" = set; then
1712 enableval="$enable_universal"
1713
1714 if test "$enableval" = yes; then
1715 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1716 else
1717 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1718 fi
1719
1720 else
1721
1722 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1723 if test "x$LINE" != x ; then
1724 eval "DEFAULT_$LINE"
1725 else
1726 no_cache=1
1727 fi
1728
1729 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1730
1731 fi
1732
1733
1734 eval "$ac_cv_use_universal"
1735 if test "$no_cache" != 1; then
1736 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1737 fi
1738
1739 if test "$wxUSE_UNIVERSAL" = yes; then
1740 echo "$ac_t""yes" 1>&6
1741 else
1742 echo "$ac_t""no" 1>&6
1743 fi
1744
1745 # Check whether --with-gtk or --without-gtk was given.
1746 if test "${with_gtk+set}" = set; then
1747 withval="$with_gtk"
1748 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1749 fi
1750
1751 # Check whether --with-motif or --without-motif was given.
1752 if test "${with_motif+set}" = set; then
1753 withval="$with_motif"
1754 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1755 fi
1756
1757 # Check whether --with-mac or --without-mac was given.
1758 if test "${with_mac+set}" = set; then
1759 withval="$with_mac"
1760 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1761 fi
1762
1763 # Check whether --with-wine or --without-wine was given.
1764 if test "${with_wine+set}" = set; then
1765 withval="$with_wine"
1766 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1767 fi
1768
1769 # Check whether --with-cygwin or --without-cygwin was given.
1770 if test "${with_cygwin+set}" = set; then
1771 withval="$with_cygwin"
1772 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1773 fi
1774
1775 # Check whether --with-mingw or --without-mingw was given.
1776 if test "${with_mingw+set}" = set; then
1777 withval="$with_mingw"
1778 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1779 fi
1780
1781 # Check whether --with-pm or --without-pm was given.
1782 if test "${with_pm+set}" = set; then
1783 withval="$with_pm"
1784 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1785 fi
1786
1787 # Check whether --with-mgl or --without-mgl was given.
1788 if test "${with_mgl+set}" = set; then
1789 withval="$with_mgl"
1790 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1791 fi
1792
1793
1794 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1795 if test "${enable_gtk2+set}" = set; then
1796 enableval="$enable_gtk2"
1797 wxUSE_GTK2=1
1798 else
1799 wxUSE_GTK2=0
1800 fi
1801
1802
1803
1804 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1805 echo "configure:1806: checking for --with-libpng" >&5
1806 no_cache=0
1807 # Check whether --with-libpng or --without-libpng was given.
1808 if test "${with_libpng+set}" = set; then
1809 withval="$with_libpng"
1810
1811 if test "$withval" = yes; then
1812 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1813 elif test "$withval" = no; then
1814 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1815 elif test "$withval" = sys; then
1816 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1817 else
1818 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1819 fi
1820
1821 else
1822
1823 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1824 if test "x$LINE" != x ; then
1825 eval "DEFAULT_$LINE"
1826 else
1827 no_cache=1
1828 fi
1829
1830 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1831
1832 fi
1833
1834
1835 eval "$ac_cv_use_libpng"
1836 if test "$no_cache" != 1; then
1837 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1838 fi
1839
1840 if test "$wxUSE_LIBPNG" = yes; then
1841 echo "$ac_t""yes" 1>&6
1842 elif test "$wxUSE_LIBPNG" = no; then
1843 echo "$ac_t""no" 1>&6
1844 elif test "$wxUSE_LIBPNG" = sys; then
1845 echo "$ac_t""system version" 1>&6
1846 else
1847 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1848 fi
1849
1850
1851 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1852 echo "configure:1853: checking for --with-libjpeg" >&5
1853 no_cache=0
1854 # Check whether --with-libjpeg or --without-libjpeg was given.
1855 if test "${with_libjpeg+set}" = set; then
1856 withval="$with_libjpeg"
1857
1858 if test "$withval" = yes; then
1859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1860 elif test "$withval" = no; then
1861 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1862 elif test "$withval" = sys; then
1863 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1864 else
1865 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1866 fi
1867
1868 else
1869
1870 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1871 if test "x$LINE" != x ; then
1872 eval "DEFAULT_$LINE"
1873 else
1874 no_cache=1
1875 fi
1876
1877 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1878
1879 fi
1880
1881
1882 eval "$ac_cv_use_libjpeg"
1883 if test "$no_cache" != 1; then
1884 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1885 fi
1886
1887 if test "$wxUSE_LIBJPEG" = yes; then
1888 echo "$ac_t""yes" 1>&6
1889 elif test "$wxUSE_LIBJPEG" = no; then
1890 echo "$ac_t""no" 1>&6
1891 elif test "$wxUSE_LIBJPEG" = sys; then
1892 echo "$ac_t""system version" 1>&6
1893 else
1894 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1895 fi
1896
1897
1898 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1899 echo "configure:1900: checking for --with-libtiff" >&5
1900 no_cache=0
1901 # Check whether --with-libtiff or --without-libtiff was given.
1902 if test "${with_libtiff+set}" = set; then
1903 withval="$with_libtiff"
1904
1905 if test "$withval" = yes; then
1906 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1907 elif test "$withval" = no; then
1908 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1909 elif test "$withval" = sys; then
1910 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1911 else
1912 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1913 fi
1914
1915 else
1916
1917 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1918 if test "x$LINE" != x ; then
1919 eval "DEFAULT_$LINE"
1920 else
1921 no_cache=1
1922 fi
1923
1924 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1925
1926 fi
1927
1928
1929 eval "$ac_cv_use_libtiff"
1930 if test "$no_cache" != 1; then
1931 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1932 fi
1933
1934 if test "$wxUSE_LIBTIFF" = yes; then
1935 echo "$ac_t""yes" 1>&6
1936 elif test "$wxUSE_LIBTIFF" = no; then
1937 echo "$ac_t""no" 1>&6
1938 elif test "$wxUSE_LIBTIFF" = sys; then
1939 echo "$ac_t""system version" 1>&6
1940 else
1941 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1942 fi
1943
1944
1945 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1946 echo "configure:1947: checking for --with-freetype" >&5
1947 no_cache=0
1948 # Check whether --with-freetype or --without-freetype was given.
1949 if test "${with_freetype+set}" = set; then
1950 withval="$with_freetype"
1951
1952 if test "$withval" = yes; then
1953 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1954 elif test "$withval" = no; then
1955 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1956 elif test "$withval" = sys; then
1957 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1958 else
1959 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1960 fi
1961
1962 else
1963
1964 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1965 if test "x$LINE" != x ; then
1966 eval "DEFAULT_$LINE"
1967 else
1968 no_cache=1
1969 fi
1970
1971 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1972
1973 fi
1974
1975
1976 eval "$ac_cv_use_freetype"
1977 if test "$no_cache" != 1; then
1978 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1979 fi
1980
1981 if test "$wxUSE_FREETYPE" = yes; then
1982 echo "$ac_t""yes" 1>&6
1983 elif test "$wxUSE_FREETYPE" = no; then
1984 echo "$ac_t""no" 1>&6
1985 elif test "$wxUSE_FREETYPE" = sys; then
1986 echo "$ac_t""system version" 1>&6
1987 else
1988 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1989 fi
1990
1991
1992 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
1993 echo "configure:1994: checking for --with-opengl" >&5
1994 no_cache=0
1995 # Check whether --with-opengl or --without-opengl was given.
1996 if test "${with_opengl+set}" = set; then
1997 withval="$with_opengl"
1998
1999 if test "$withval" = yes; then
2000 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2001 else
2002 ac_cv_use_opengl='wxUSE_OPENGL=no'
2003 fi
2004
2005 else
2006
2007 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2008 if test "x$LINE" != x ; then
2009 eval "DEFAULT_$LINE"
2010 else
2011 no_cache=1
2012 fi
2013
2014 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2015
2016 fi
2017
2018
2019 eval "$ac_cv_use_opengl"
2020 if test "$no_cache" != 1; then
2021 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2022 fi
2023
2024 if test "$wxUSE_OPENGL" = yes; then
2025 echo "$ac_t""yes" 1>&6
2026 else
2027 echo "$ac_t""no" 1>&6
2028 fi
2029
2030
2031 fi
2032
2033
2034 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2035 echo "configure:2036: checking for --with-dmalloc" >&5
2036 no_cache=0
2037 # Check whether --with-dmalloc or --without-dmalloc was given.
2038 if test "${with_dmalloc+set}" = set; then
2039 withval="$with_dmalloc"
2040
2041 if test "$withval" = yes; then
2042 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2043 else
2044 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2045 fi
2046
2047 else
2048
2049 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2050 if test "x$LINE" != x ; then
2051 eval "DEFAULT_$LINE"
2052 else
2053 no_cache=1
2054 fi
2055
2056 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2057
2058 fi
2059
2060
2061 eval "$ac_cv_use_dmalloc"
2062 if test "$no_cache" != 1; then
2063 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2064 fi
2065
2066 if test "$wxUSE_DMALLOC" = yes; then
2067 echo "$ac_t""yes" 1>&6
2068 else
2069 echo "$ac_t""no" 1>&6
2070 fi
2071
2072
2073 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2074 echo "configure:2075: checking for --with-zlib" >&5
2075 no_cache=0
2076 # Check whether --with-zlib or --without-zlib was given.
2077 if test "${with_zlib+set}" = set; then
2078 withval="$with_zlib"
2079
2080 if test "$withval" = yes; then
2081 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2082 elif test "$withval" = no; then
2083 ac_cv_use_zlib='wxUSE_ZLIB=no'
2084 elif test "$withval" = sys; then
2085 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2086 else
2087 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2088 fi
2089
2090 else
2091
2092 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2093 if test "x$LINE" != x ; then
2094 eval "DEFAULT_$LINE"
2095 else
2096 no_cache=1
2097 fi
2098
2099 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2100
2101 fi
2102
2103
2104 eval "$ac_cv_use_zlib"
2105 if test "$no_cache" != 1; then
2106 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2107 fi
2108
2109 if test "$wxUSE_ZLIB" = yes; then
2110 echo "$ac_t""yes" 1>&6
2111 elif test "$wxUSE_ZLIB" = no; then
2112 echo "$ac_t""no" 1>&6
2113 elif test "$wxUSE_ZLIB" = sys; then
2114 echo "$ac_t""system version" 1>&6
2115 else
2116 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2117 fi
2118
2119
2120 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2121 echo "configure:2122: checking for --with-odbc" >&5
2122 no_cache=0
2123 # Check whether --with-odbc or --without-odbc was given.
2124 if test "${with_odbc+set}" = set; then
2125 withval="$with_odbc"
2126
2127 if test "$withval" = yes; then
2128 ac_cv_use_odbc='wxUSE_ODBC=yes'
2129 else
2130 ac_cv_use_odbc='wxUSE_ODBC=no'
2131 fi
2132
2133 else
2134
2135 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2136 if test "x$LINE" != x ; then
2137 eval "DEFAULT_$LINE"
2138 else
2139 no_cache=1
2140 fi
2141
2142 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2143
2144 fi
2145
2146
2147 eval "$ac_cv_use_odbc"
2148 if test "$no_cache" != 1; then
2149 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2150 fi
2151
2152 if test "$wxUSE_ODBC" = yes; then
2153 echo "$ac_t""yes" 1>&6
2154 else
2155 echo "$ac_t""no" 1>&6
2156 fi
2157
2158
2159
2160
2161
2162 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2163 echo "configure:2164: checking for --enable-shared" >&5
2164 no_cache=0
2165 # Check whether --enable-shared or --disable-shared was given.
2166 if test "${enable_shared+set}" = set; then
2167 enableval="$enable_shared"
2168
2169 if test "$enableval" = yes; then
2170 ac_cv_use_shared='wxUSE_SHARED=yes'
2171 else
2172 ac_cv_use_shared='wxUSE_SHARED=no'
2173 fi
2174
2175 else
2176
2177 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2178 if test "x$LINE" != x ; then
2179 eval "DEFAULT_$LINE"
2180 else
2181 no_cache=1
2182 fi
2183
2184 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2185
2186 fi
2187
2188
2189 eval "$ac_cv_use_shared"
2190 if test "$no_cache" != 1; then
2191 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2192 fi
2193
2194 if test "$wxUSE_SHARED" = yes; then
2195 echo "$ac_t""yes" 1>&6
2196 else
2197 echo "$ac_t""no" 1>&6
2198 fi
2199
2200
2201 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2202 echo "configure:2203: checking for --enable-burnt_name" >&5
2203 no_cache=0
2204 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2205 if test "${enable_burnt_name+set}" = set; then
2206 enableval="$enable_burnt_name"
2207
2208 if test "$enableval" = yes; then
2209 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2210 else
2211 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2212 fi
2213
2214 else
2215
2216 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2217 if test "x$LINE" != x ; then
2218 eval "DEFAULT_$LINE"
2219 else
2220 no_cache=1
2221 fi
2222
2223 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2224
2225 fi
2226
2227
2228 eval "$ac_cv_use_burnt_name"
2229 if test "$no_cache" != 1; then
2230 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2231 fi
2232
2233 if test "$wxUSE_BURNT_NAME" = yes; then
2234 echo "$ac_t""yes" 1>&6
2235 else
2236 echo "$ac_t""no" 1>&6
2237 fi
2238
2239
2240 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2241 echo "configure:2242: checking for --enable-optimise" >&5
2242 no_cache=0
2243 # Check whether --enable-optimise or --disable-optimise was given.
2244 if test "${enable_optimise+set}" = set; then
2245 enableval="$enable_optimise"
2246
2247 if test "$enableval" = yes; then
2248 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2249 else
2250 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2251 fi
2252
2253 else
2254
2255 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2256 if test "x$LINE" != x ; then
2257 eval "DEFAULT_$LINE"
2258 else
2259 no_cache=1
2260 fi
2261
2262 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2263
2264 fi
2265
2266
2267 eval "$ac_cv_use_optimise"
2268 if test "$no_cache" != 1; then
2269 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2270 fi
2271
2272 if test "$wxUSE_OPTIMISE" = yes; then
2273 echo "$ac_t""yes" 1>&6
2274 else
2275 echo "$ac_t""no" 1>&6
2276 fi
2277
2278
2279 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2280 echo "configure:2281: checking for --enable-debug" >&5
2281 no_cache=0
2282 # Check whether --enable-debug or --disable-debug was given.
2283 if test "${enable_debug+set}" = set; then
2284 enableval="$enable_debug"
2285
2286 if test "$enableval" = yes; then
2287 ac_cv_use_debug='wxUSE_DEBUG=yes'
2288 else
2289 ac_cv_use_debug='wxUSE_DEBUG=no'
2290 fi
2291
2292 else
2293
2294 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2295 if test "x$LINE" != x ; then
2296 eval "DEFAULT_$LINE"
2297 else
2298 no_cache=1
2299 fi
2300
2301 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2302
2303 fi
2304
2305
2306 eval "$ac_cv_use_debug"
2307 if test "$no_cache" != 1; then
2308 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2309 fi
2310
2311 if test "$wxUSE_DEBUG" = yes; then
2312 echo "$ac_t""yes" 1>&6
2313 else
2314 echo "$ac_t""no" 1>&6
2315 fi
2316
2317
2318 if test "$wxUSE_DEBUG" = "yes"; then
2319 DEFAULT_wxUSE_DEBUG_FLAG=yes
2320 DEFAULT_wxUSE_DEBUG_INFO=yes
2321 elif test "$wxUSE_DEBUG" = "no"; then
2322 DEFAULT_wxUSE_DEBUG_FLAG=no
2323 DEFAULT_wxUSE_DEBUG_INFO=no
2324 fi
2325
2326
2327 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2328 echo "configure:2329: checking for --enable-debug_flag" >&5
2329 no_cache=0
2330 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2331 if test "${enable_debug_flag+set}" = set; then
2332 enableval="$enable_debug_flag"
2333
2334 if test "$enableval" = yes; then
2335 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2336 else
2337 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2338 fi
2339
2340 else
2341
2342 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2343 if test "x$LINE" != x ; then
2344 eval "DEFAULT_$LINE"
2345 else
2346 no_cache=1
2347 fi
2348
2349 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2350
2351 fi
2352
2353
2354 eval "$ac_cv_use_debug_flag"
2355 if test "$no_cache" != 1; then
2356 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2357 fi
2358
2359 if test "$wxUSE_DEBUG_FLAG" = yes; then
2360 echo "$ac_t""yes" 1>&6
2361 else
2362 echo "$ac_t""no" 1>&6
2363 fi
2364
2365
2366 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2367 echo "configure:2368: checking for --enable-debug_info" >&5
2368 no_cache=0
2369 # Check whether --enable-debug_info or --disable-debug_info was given.
2370 if test "${enable_debug_info+set}" = set; then
2371 enableval="$enable_debug_info"
2372
2373 if test "$enableval" = yes; then
2374 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2375 else
2376 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2377 fi
2378
2379 else
2380
2381 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2382 if test "x$LINE" != x ; then
2383 eval "DEFAULT_$LINE"
2384 else
2385 no_cache=1
2386 fi
2387
2388 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2389
2390 fi
2391
2392
2393 eval "$ac_cv_use_debug_info"
2394 if test "$no_cache" != 1; then
2395 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2396 fi
2397
2398 if test "$wxUSE_DEBUG_INFO" = yes; then
2399 echo "$ac_t""yes" 1>&6
2400 else
2401 echo "$ac_t""no" 1>&6
2402 fi
2403
2404
2405 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2406 echo "configure:2407: checking for --enable-debug_gdb" >&5
2407 no_cache=0
2408 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2409 if test "${enable_debug_gdb+set}" = set; then
2410 enableval="$enable_debug_gdb"
2411
2412 if test "$enableval" = yes; then
2413 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2414 else
2415 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2416 fi
2417
2418 else
2419
2420 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2421 if test "x$LINE" != x ; then
2422 eval "DEFAULT_$LINE"
2423 else
2424 no_cache=1
2425 fi
2426
2427 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2428
2429 fi
2430
2431
2432 eval "$ac_cv_use_debug_gdb"
2433 if test "$no_cache" != 1; then
2434 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2435 fi
2436
2437 if test "$wxUSE_DEBUG_GDB" = yes; then
2438 echo "$ac_t""yes" 1>&6
2439 else
2440 echo "$ac_t""no" 1>&6
2441 fi
2442
2443
2444 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2445 echo "configure:2446: checking for --enable-debug_cntxt" >&5
2446 no_cache=0
2447 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2448 if test "${enable_debug_cntxt+set}" = set; then
2449 enableval="$enable_debug_cntxt"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2453 else
2454 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2455 fi
2456
2457 else
2458
2459 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2467
2468 fi
2469
2470
2471 eval "$ac_cv_use_debug_cntxt"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
2483 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2484 echo "configure:2485: checking for --enable-mem_tracing" >&5
2485 no_cache=0
2486 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2487 if test "${enable_mem_tracing+set}" = set; then
2488 enableval="$enable_mem_tracing"
2489
2490 if test "$enableval" = yes; then
2491 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2492 else
2493 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2494 fi
2495
2496 else
2497
2498 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2499 if test "x$LINE" != x ; then
2500 eval "DEFAULT_$LINE"
2501 else
2502 no_cache=1
2503 fi
2504
2505 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2506
2507 fi
2508
2509
2510 eval "$ac_cv_use_mem_tracing"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_MEM_TRACING" = yes; then
2516 echo "$ac_t""yes" 1>&6
2517 else
2518 echo "$ac_t""no" 1>&6
2519 fi
2520
2521
2522 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2523 echo "configure:2524: checking for --enable-profile" >&5
2524 no_cache=0
2525 # Check whether --enable-profile or --disable-profile was given.
2526 if test "${enable_profile+set}" = set; then
2527 enableval="$enable_profile"
2528
2529 if test "$enableval" = yes; then
2530 ac_cv_use_profile='wxUSE_PROFILE=yes'
2531 else
2532 ac_cv_use_profile='wxUSE_PROFILE=no'
2533 fi
2534
2535 else
2536
2537 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2538 if test "x$LINE" != x ; then
2539 eval "DEFAULT_$LINE"
2540 else
2541 no_cache=1
2542 fi
2543
2544 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2545
2546 fi
2547
2548
2549 eval "$ac_cv_use_profile"
2550 if test "$no_cache" != 1; then
2551 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2552 fi
2553
2554 if test "$wxUSE_PROFILE" = yes; then
2555 echo "$ac_t""yes" 1>&6
2556 else
2557 echo "$ac_t""no" 1>&6
2558 fi
2559
2560
2561 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2562 echo "configure:2563: checking for --enable-no_rtti" >&5
2563 no_cache=0
2564 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2565 if test "${enable_no_rtti+set}" = set; then
2566 enableval="$enable_no_rtti"
2567
2568 if test "$enableval" = yes; then
2569 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2570 else
2571 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2572 fi
2573
2574 else
2575
2576 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2577 if test "x$LINE" != x ; then
2578 eval "DEFAULT_$LINE"
2579 else
2580 no_cache=1
2581 fi
2582
2583 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2584
2585 fi
2586
2587
2588 eval "$ac_cv_use_no_rtti"
2589 if test "$no_cache" != 1; then
2590 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2591 fi
2592
2593 if test "$wxUSE_NO_RTTI" = yes; then
2594 echo "$ac_t""yes" 1>&6
2595 else
2596 echo "$ac_t""no" 1>&6
2597 fi
2598
2599
2600 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2601 echo "configure:2602: checking for --enable-no_exceptions" >&5
2602 no_cache=0
2603 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2604 if test "${enable_no_exceptions+set}" = set; then
2605 enableval="$enable_no_exceptions"
2606
2607 if test "$enableval" = yes; then
2608 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2609 else
2610 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2611 fi
2612
2613 else
2614
2615 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2616 if test "x$LINE" != x ; then
2617 eval "DEFAULT_$LINE"
2618 else
2619 no_cache=1
2620 fi
2621
2622 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2623
2624 fi
2625
2626
2627 eval "$ac_cv_use_no_exceptions"
2628 if test "$no_cache" != 1; then
2629 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2630 fi
2631
2632 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2633 echo "$ac_t""yes" 1>&6
2634 else
2635 echo "$ac_t""no" 1>&6
2636 fi
2637
2638
2639 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2640 echo "configure:2641: checking for --enable-permissive" >&5
2641 no_cache=0
2642 # Check whether --enable-permissive or --disable-permissive was given.
2643 if test "${enable_permissive+set}" = set; then
2644 enableval="$enable_permissive"
2645
2646 if test "$enableval" = yes; then
2647 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2648 else
2649 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2650 fi
2651
2652 else
2653
2654 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2655 if test "x$LINE" != x ; then
2656 eval "DEFAULT_$LINE"
2657 else
2658 no_cache=1
2659 fi
2660
2661 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2662
2663 fi
2664
2665
2666 eval "$ac_cv_use_permissive"
2667 if test "$no_cache" != 1; then
2668 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2669 fi
2670
2671 if test "$wxUSE_PERMISSIVE" = yes; then
2672 echo "$ac_t""yes" 1>&6
2673 else
2674 echo "$ac_t""no" 1>&6
2675 fi
2676
2677
2678 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2679 echo "configure:2680: checking for --enable-no_deps" >&5
2680 no_cache=0
2681 # Check whether --enable-no_deps or --disable-no_deps was given.
2682 if test "${enable_no_deps+set}" = set; then
2683 enableval="$enable_no_deps"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2687 else
2688 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2689 fi
2690
2691 else
2692
2693 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2701
2702 fi
2703
2704
2705 eval "$ac_cv_use_no_deps"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_NO_DEPS" = yes; then
2711 echo "$ac_t""yes" 1>&6
2712 else
2713 echo "$ac_t""no" 1>&6
2714 fi
2715
2716
2717
2718
2719 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2720 echo "configure:2721: checking for --enable-intl" >&5
2721 no_cache=0
2722 # Check whether --enable-intl or --disable-intl was given.
2723 if test "${enable_intl+set}" = set; then
2724 enableval="$enable_intl"
2725
2726 if test "$enableval" = yes; then
2727 ac_cv_use_intl='wxUSE_INTL=yes'
2728 else
2729 ac_cv_use_intl='wxUSE_INTL=no'
2730 fi
2731
2732 else
2733
2734 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2742
2743 fi
2744
2745
2746 eval "$ac_cv_use_intl"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_INTL" = yes; then
2752 echo "$ac_t""yes" 1>&6
2753 else
2754 echo "$ac_t""no" 1>&6
2755 fi
2756
2757
2758 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2759 echo "configure:2760: checking for --enable-config" >&5
2760 no_cache=0
2761 # Check whether --enable-config or --disable-config was given.
2762 if test "${enable_config+set}" = set; then
2763 enableval="$enable_config"
2764
2765 if test "$enableval" = yes; then
2766 ac_cv_use_config='wxUSE_CONFIG=yes'
2767 else
2768 ac_cv_use_config='wxUSE_CONFIG=no'
2769 fi
2770
2771 else
2772
2773 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2781
2782 fi
2783
2784
2785 eval "$ac_cv_use_config"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_CONFIG" = yes; then
2791 echo "$ac_t""yes" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2794 fi
2795
2796
2797
2798 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2799 echo "configure:2800: checking for --enable-sockets" >&5
2800 no_cache=0
2801 # Check whether --enable-sockets or --disable-sockets was given.
2802 if test "${enable_sockets+set}" = set; then
2803 enableval="$enable_sockets"
2804
2805 if test "$enableval" = yes; then
2806 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2807 else
2808 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2809 fi
2810
2811 else
2812
2813 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2821
2822 fi
2823
2824
2825 eval "$ac_cv_use_sockets"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_SOCKETS" = yes; then
2831 echo "$ac_t""yes" 1>&6
2832 else
2833 echo "$ac_t""no" 1>&6
2834 fi
2835
2836
2837
2838 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
2839 echo "configure:2840: checking for --enable-ipc" >&5
2840 no_cache=0
2841 # Check whether --enable-ipc or --disable-ipc was given.
2842 if test "${enable_ipc+set}" = set; then
2843 enableval="$enable_ipc"
2844
2845 if test "$enableval" = yes; then
2846 ac_cv_use_ipc='wxUSE_IPC=yes'
2847 else
2848 ac_cv_use_ipc='wxUSE_IPC=no'
2849 fi
2850
2851 else
2852
2853 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
2860 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2861
2862 fi
2863
2864
2865 eval "$ac_cv_use_ipc"
2866 if test "$no_cache" != 1; then
2867 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2868 fi
2869
2870 if test "$wxUSE_IPC" = yes; then
2871 echo "$ac_t""yes" 1>&6
2872 else
2873 echo "$ac_t""no" 1>&6
2874 fi
2875
2876
2877
2878 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
2879 echo "configure:2880: checking for --enable-cmdline" >&5
2880 no_cache=0
2881 # Check whether --enable-cmdline or --disable-cmdline was given.
2882 if test "${enable_cmdline+set}" = set; then
2883 enableval="$enable_cmdline"
2884
2885 if test "$enableval" = yes; then
2886 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2887 else
2888 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2889 fi
2890
2891 else
2892
2893 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2901
2902 fi
2903
2904
2905 eval "$ac_cv_use_cmdline"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_CMDLINE_PARSER" = yes; then
2911 echo "$ac_t""yes" 1>&6
2912 else
2913 echo "$ac_t""no" 1>&6
2914 fi
2915
2916
2917 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
2918 echo "configure:2919: checking for --enable-datetime" >&5
2919 no_cache=0
2920 # Check whether --enable-datetime or --disable-datetime was given.
2921 if test "${enable_datetime+set}" = set; then
2922 enableval="$enable_datetime"
2923
2924 if test "$enableval" = yes; then
2925 ac_cv_use_datetime='wxUSE_DATETIME=yes'
2926 else
2927 ac_cv_use_datetime='wxUSE_DATETIME=no'
2928 fi
2929
2930 else
2931
2932 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
2933 if test "x$LINE" != x ; then
2934 eval "DEFAULT_$LINE"
2935 else
2936 no_cache=1
2937 fi
2938
2939 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
2940
2941 fi
2942
2943
2944 eval "$ac_cv_use_datetime"
2945 if test "$no_cache" != 1; then
2946 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
2947 fi
2948
2949 if test "$wxUSE_DATETIME" = yes; then
2950 echo "$ac_t""yes" 1>&6
2951 else
2952 echo "$ac_t""no" 1>&6
2953 fi
2954
2955
2956 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
2957 echo "configure:2958: checking for --enable-timedate" >&5
2958 no_cache=0
2959 # Check whether --enable-timedate or --disable-timedate was given.
2960 if test "${enable_timedate+set}" = set; then
2961 enableval="$enable_timedate"
2962
2963 if test "$enableval" = yes; then
2964 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2965 else
2966 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2967 fi
2968
2969 else
2970
2971 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2972 if test "x$LINE" != x ; then
2973 eval "DEFAULT_$LINE"
2974 else
2975 no_cache=1
2976 fi
2977
2978 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2979
2980 fi
2981
2982
2983 eval "$ac_cv_use_timedate"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$wxUSE_TIMEDATE" = yes; then
2989 echo "$ac_t""yes" 1>&6
2990 else
2991 echo "$ac_t""no" 1>&6
2992 fi
2993
2994
2995 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
2996 echo "configure:2997: checking for --enable-stopwatch" >&5
2997 no_cache=0
2998 # Check whether --enable-stopwatch or --disable-stopwatch was given.
2999 if test "${enable_stopwatch+set}" = set; then
3000 enableval="$enable_stopwatch"
3001
3002 if test "$enableval" = yes; then
3003 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3004 else
3005 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3006 fi
3007
3008 else
3009
3010 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3018
3019 fi
3020
3021
3022 eval "$ac_cv_use_stopwatch"
3023 if test "$no_cache" != 1; then
3024 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3025 fi
3026
3027 if test "$wxUSE_STOPWATCH" = yes; then
3028 echo "$ac_t""yes" 1>&6
3029 else
3030 echo "$ac_t""no" 1>&6
3031 fi
3032
3033
3034 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3035 echo "configure:3036: checking for --enable-dialupman" >&5
3036 no_cache=0
3037 # Check whether --enable-dialupman or --disable-dialupman was given.
3038 if test "${enable_dialupman+set}" = set; then
3039 enableval="$enable_dialupman"
3040
3041 if test "$enableval" = yes; then
3042 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3043 else
3044 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3045 fi
3046
3047 else
3048
3049 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3050 if test "x$LINE" != x ; then
3051 eval "DEFAULT_$LINE"
3052 else
3053 no_cache=1
3054 fi
3055
3056 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3057
3058 fi
3059
3060
3061 eval "$ac_cv_use_dialupman"
3062 if test "$no_cache" != 1; then
3063 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3064 fi
3065
3066 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3067 echo "$ac_t""yes" 1>&6
3068 else
3069 echo "$ac_t""no" 1>&6
3070 fi
3071
3072
3073 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3074 echo "configure:3075: checking for --enable-apple_ieee" >&5
3075 no_cache=0
3076 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3077 if test "${enable_apple_ieee+set}" = set; then
3078 enableval="$enable_apple_ieee"
3079
3080 if test "$enableval" = yes; then
3081 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3082 else
3083 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3084 fi
3085
3086 else
3087
3088 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3089 if test "x$LINE" != x ; then
3090 eval "DEFAULT_$LINE"
3091 else
3092 no_cache=1
3093 fi
3094
3095 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3096
3097 fi
3098
3099
3100 eval "$ac_cv_use_apple_ieee"
3101 if test "$no_cache" != 1; then
3102 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3103 fi
3104
3105 if test "$wxUSE_APPLE_IEEE" = yes; then
3106 echo "$ac_t""yes" 1>&6
3107 else
3108 echo "$ac_t""no" 1>&6
3109 fi
3110
3111
3112 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3113 echo "configure:3114: checking for --enable-timer" >&5
3114 no_cache=0
3115 # Check whether --enable-timer or --disable-timer was given.
3116 if test "${enable_timer+set}" = set; then
3117 enableval="$enable_timer"
3118
3119 if test "$enableval" = yes; then
3120 ac_cv_use_timer='wxUSE_TIMER=yes'
3121 else
3122 ac_cv_use_timer='wxUSE_TIMER=no'
3123 fi
3124
3125 else
3126
3127 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3135
3136 fi
3137
3138
3139 eval "$ac_cv_use_timer"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_TIMER" = yes; then
3145 echo "$ac_t""yes" 1>&6
3146 else
3147 echo "$ac_t""no" 1>&6
3148 fi
3149
3150
3151 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3152 echo "configure:3153: checking for --enable-wave" >&5
3153 no_cache=0
3154 # Check whether --enable-wave or --disable-wave was given.
3155 if test "${enable_wave+set}" = set; then
3156 enableval="$enable_wave"
3157
3158 if test "$enableval" = yes; then
3159 ac_cv_use_wave='wxUSE_WAVE=yes'
3160 else
3161 ac_cv_use_wave='wxUSE_WAVE=no'
3162 fi
3163
3164 else
3165
3166 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3167 if test "x$LINE" != x ; then
3168 eval "DEFAULT_$LINE"
3169 else
3170 no_cache=1
3171 fi
3172
3173 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3174
3175 fi
3176
3177
3178 eval "$ac_cv_use_wave"
3179 if test "$no_cache" != 1; then
3180 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3181 fi
3182
3183 if test "$wxUSE_WAVE" = yes; then
3184 echo "$ac_t""yes" 1>&6
3185 else
3186 echo "$ac_t""no" 1>&6
3187 fi
3188
3189
3190 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3191 echo "configure:3192: checking for --enable-fraction" >&5
3192 no_cache=0
3193 # Check whether --enable-fraction or --disable-fraction was given.
3194 if test "${enable_fraction+set}" = set; then
3195 enableval="$enable_fraction"
3196
3197 if test "$enableval" = yes; then
3198 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3199 else
3200 ac_cv_use_fraction='wxUSE_FRACTION=no'
3201 fi
3202
3203 else
3204
3205 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3206 if test "x$LINE" != x ; then
3207 eval "DEFAULT_$LINE"
3208 else
3209 no_cache=1
3210 fi
3211
3212 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3213
3214 fi
3215
3216
3217 eval "$ac_cv_use_fraction"
3218 if test "$no_cache" != 1; then
3219 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3220 fi
3221
3222 if test "$wxUSE_FRACTION" = yes; then
3223 echo "$ac_t""yes" 1>&6
3224 else
3225 echo "$ac_t""no" 1>&6
3226 fi
3227
3228
3229 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3230 echo "configure:3231: checking for --enable-dynlib" >&5
3231 no_cache=0
3232 # Check whether --enable-dynlib or --disable-dynlib was given.
3233 if test "${enable_dynlib+set}" = set; then
3234 enableval="$enable_dynlib"
3235
3236 if test "$enableval" = yes; then
3237 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3238 else
3239 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3240 fi
3241
3242 else
3243
3244 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3252
3253 fi
3254
3255
3256 eval "$ac_cv_use_dynlib"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3262 echo "$ac_t""yes" 1>&6
3263 else
3264 echo "$ac_t""no" 1>&6
3265 fi
3266
3267
3268 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3269 echo "configure:3270: checking for --enable-longlong" >&5
3270 no_cache=0
3271 # Check whether --enable-longlong or --disable-longlong was given.
3272 if test "${enable_longlong+set}" = set; then
3273 enableval="$enable_longlong"
3274
3275 if test "$enableval" = yes; then
3276 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3277 else
3278 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3279 fi
3280
3281 else
3282
3283 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3284 if test "x$LINE" != x ; then
3285 eval "DEFAULT_$LINE"
3286 else
3287 no_cache=1
3288 fi
3289
3290 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3291
3292 fi
3293
3294
3295 eval "$ac_cv_use_longlong"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_LONGLONG" = yes; then
3301 echo "$ac_t""yes" 1>&6
3302 else
3303 echo "$ac_t""no" 1>&6
3304 fi
3305
3306
3307 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3308 echo "configure:3309: checking for --enable-geometry" >&5
3309 no_cache=0
3310 # Check whether --enable-geometry or --disable-geometry was given.
3311 if test "${enable_geometry+set}" = set; then
3312 enableval="$enable_geometry"
3313
3314 if test "$enableval" = yes; then
3315 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3316 else
3317 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3318 fi
3319
3320 else
3321
3322 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3330
3331 fi
3332
3333
3334 eval "$ac_cv_use_geometry"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_GEOMETRY" = yes; then
3340 echo "$ac_t""yes" 1>&6
3341 else
3342 echo "$ac_t""no" 1>&6
3343 fi
3344
3345
3346 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3347 echo "configure:3348: checking for --enable-log" >&5
3348 no_cache=0
3349 # Check whether --enable-log or --disable-log was given.
3350 if test "${enable_log+set}" = set; then
3351 enableval="$enable_log"
3352
3353 if test "$enableval" = yes; then
3354 ac_cv_use_log='wxUSE_LOG=yes'
3355 else
3356 ac_cv_use_log='wxUSE_LOG=no'
3357 fi
3358
3359 else
3360
3361 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3369
3370 fi
3371
3372
3373 eval "$ac_cv_use_log"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_LOG" = yes; then
3379 echo "$ac_t""yes" 1>&6
3380 else
3381 echo "$ac_t""no" 1>&6
3382 fi
3383
3384
3385 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3386 echo "configure:3387: checking for --enable-streams" >&5
3387 no_cache=0
3388 # Check whether --enable-streams or --disable-streams was given.
3389 if test "${enable_streams+set}" = set; then
3390 enableval="$enable_streams"
3391
3392 if test "$enableval" = yes; then
3393 ac_cv_use_streams='wxUSE_STREAMS=yes'
3394 else
3395 ac_cv_use_streams='wxUSE_STREAMS=no'
3396 fi
3397
3398 else
3399
3400 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3408
3409 fi
3410
3411
3412 eval "$ac_cv_use_streams"
3413 if test "$no_cache" != 1; then
3414 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3415 fi
3416
3417 if test "$wxUSE_STREAMS" = yes; then
3418 echo "$ac_t""yes" 1>&6
3419 else
3420 echo "$ac_t""no" 1>&6
3421 fi
3422
3423
3424 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3425 echo "configure:3426: checking for --enable-file" >&5
3426 no_cache=0
3427 # Check whether --enable-file or --disable-file was given.
3428 if test "${enable_file+set}" = set; then
3429 enableval="$enable_file"
3430
3431 if test "$enableval" = yes; then
3432 ac_cv_use_file='wxUSE_FILE=yes'
3433 else
3434 ac_cv_use_file='wxUSE_FILE=no'
3435 fi
3436
3437 else
3438
3439 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3447
3448 fi
3449
3450
3451 eval "$ac_cv_use_file"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_FILE" = yes; then
3457 echo "$ac_t""yes" 1>&6
3458 else
3459 echo "$ac_t""no" 1>&6
3460 fi
3461
3462
3463 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3464 echo "configure:3465: checking for --enable-ffile" >&5
3465 no_cache=0
3466 # Check whether --enable-ffile or --disable-ffile was given.
3467 if test "${enable_ffile+set}" = set; then
3468 enableval="$enable_ffile"
3469
3470 if test "$enableval" = yes; then
3471 ac_cv_use_ffile='wxUSE_FFILE=yes'
3472 else
3473 ac_cv_use_ffile='wxUSE_FFILE=no'
3474 fi
3475
3476 else
3477
3478 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3486
3487 fi
3488
3489
3490 eval "$ac_cv_use_ffile"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_FFILE" = yes; then
3496 echo "$ac_t""yes" 1>&6
3497 else
3498 echo "$ac_t""no" 1>&6
3499 fi
3500
3501
3502 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3503 echo "configure:3504: checking for --enable-textfile" >&5
3504 no_cache=0
3505 # Check whether --enable-textfile or --disable-textfile was given.
3506 if test "${enable_textfile+set}" = set; then
3507 enableval="$enable_textfile"
3508
3509 if test "$enableval" = yes; then
3510 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3511 else
3512 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3513 fi
3514
3515 else
3516
3517 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3518 if test "x$LINE" != x ; then
3519 eval "DEFAULT_$LINE"
3520 else
3521 no_cache=1
3522 fi
3523
3524 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3525
3526 fi
3527
3528
3529 eval "$ac_cv_use_textfile"
3530 if test "$no_cache" != 1; then
3531 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3532 fi
3533
3534 if test "$wxUSE_TEXTFILE" = yes; then
3535 echo "$ac_t""yes" 1>&6
3536 else
3537 echo "$ac_t""no" 1>&6
3538 fi
3539
3540
3541 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3542 echo "configure:3543: checking for --enable-fontmap" >&5
3543 no_cache=0
3544 # Check whether --enable-fontmap or --disable-fontmap was given.
3545 if test "${enable_fontmap+set}" = set; then
3546 enableval="$enable_fontmap"
3547
3548 if test "$enableval" = yes; then
3549 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3550 else
3551 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3552 fi
3553
3554 else
3555
3556 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3557 if test "x$LINE" != x ; then
3558 eval "DEFAULT_$LINE"
3559 else
3560 no_cache=1
3561 fi
3562
3563 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3564
3565 fi
3566
3567
3568 eval "$ac_cv_use_fontmap"
3569 if test "$no_cache" != 1; then
3570 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3571 fi
3572
3573 if test "$wxUSE_FONTMAP" = yes; then
3574 echo "$ac_t""yes" 1>&6
3575 else
3576 echo "$ac_t""no" 1>&6
3577 fi
3578
3579
3580 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3581 echo "configure:3582: checking for --enable-unicode" >&5
3582 no_cache=0
3583 # Check whether --enable-unicode or --disable-unicode was given.
3584 if test "${enable_unicode+set}" = set; then
3585 enableval="$enable_unicode"
3586
3587 if test "$enableval" = yes; then
3588 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3589 else
3590 ac_cv_use_unicode='wxUSE_UNICODE=no'
3591 fi
3592
3593 else
3594
3595 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3596 if test "x$LINE" != x ; then
3597 eval "DEFAULT_$LINE"
3598 else
3599 no_cache=1
3600 fi
3601
3602 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3603
3604 fi
3605
3606
3607 eval "$ac_cv_use_unicode"
3608 if test "$no_cache" != 1; then
3609 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3610 fi
3611
3612 if test "$wxUSE_UNICODE" = yes; then
3613 echo "$ac_t""yes" 1>&6
3614 else
3615 echo "$ac_t""no" 1>&6
3616 fi
3617
3618
3619 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3620 echo "configure:3621: checking for --enable-wcsrtombs" >&5
3621 no_cache=0
3622 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3623 if test "${enable_wcsrtombs+set}" = set; then
3624 enableval="$enable_wcsrtombs"
3625
3626 if test "$enableval" = yes; then
3627 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3628 else
3629 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3630 fi
3631
3632 else
3633
3634 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3635 if test "x$LINE" != x ; then
3636 eval "DEFAULT_$LINE"
3637 else
3638 no_cache=1
3639 fi
3640
3641 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3642
3643 fi
3644
3645
3646 eval "$ac_cv_use_wcsrtombs"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_WCSRTOMBS" = yes; then
3652 echo "$ac_t""yes" 1>&6
3653 else
3654 echo "$ac_t""no" 1>&6
3655 fi
3656
3657
3658 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3659 echo "configure:3660: checking for --enable-wxprintfv" >&5
3660 no_cache=0
3661 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3662 if test "${enable_wxprintfv+set}" = set; then
3663 enableval="$enable_wxprintfv"
3664
3665 if test "$enableval" = yes; then
3666 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3667 else
3668 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3669 fi
3670
3671 else
3672
3673 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3674 if test "x$LINE" != x ; then
3675 eval "DEFAULT_$LINE"
3676 else
3677 no_cache=1
3678 fi
3679
3680 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3681
3682 fi
3683
3684
3685 eval "$ac_cv_use_wxprintfv"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3691 echo "$ac_t""yes" 1>&6
3692 else
3693 echo "$ac_t""no" 1>&6
3694 fi
3695
3696
3697 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3698 echo "configure:3699: checking for --enable-std_iostreams" >&5
3699 no_cache=0
3700 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3701 if test "${enable_std_iostreams+set}" = set; then
3702 enableval="$enable_std_iostreams"
3703
3704 if test "$enableval" = yes; then
3705 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3706 else
3707 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3708 fi
3709
3710 else
3711
3712 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3713 if test "x$LINE" != x ; then
3714 eval "DEFAULT_$LINE"
3715 else
3716 no_cache=1
3717 fi
3718
3719 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3720
3721 fi
3722
3723
3724 eval "$ac_cv_use_std_iostreams"
3725 if test "$no_cache" != 1; then
3726 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3727 fi
3728
3729 if test "$wxUSE_STD_IOSTREAM" = yes; then
3730 echo "$ac_t""yes" 1>&6
3731 else
3732 echo "$ac_t""no" 1>&6
3733 fi
3734
3735
3736 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3737 echo "configure:3738: checking for --enable-filesystem" >&5
3738 no_cache=0
3739 # Check whether --enable-filesystem or --disable-filesystem was given.
3740 if test "${enable_filesystem+set}" = set; then
3741 enableval="$enable_filesystem"
3742
3743 if test "$enableval" = yes; then
3744 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3745 else
3746 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3747 fi
3748
3749 else
3750
3751 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3752 if test "x$LINE" != x ; then
3753 eval "DEFAULT_$LINE"
3754 else
3755 no_cache=1
3756 fi
3757
3758 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3759
3760 fi
3761
3762
3763 eval "$ac_cv_use_filesystem"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_FILESYSTEM" = yes; then
3769 echo "$ac_t""yes" 1>&6
3770 else
3771 echo "$ac_t""no" 1>&6
3772 fi
3773
3774
3775 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3776 echo "configure:3777: checking for --enable-fs_inet" >&5
3777 no_cache=0
3778 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3779 if test "${enable_fs_inet+set}" = set; then
3780 enableval="$enable_fs_inet"
3781
3782 if test "$enableval" = yes; then
3783 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3784 else
3785 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3786 fi
3787
3788 else
3789
3790 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3791 if test "x$LINE" != x ; then
3792 eval "DEFAULT_$LINE"
3793 else
3794 no_cache=1
3795 fi
3796
3797 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3798
3799 fi
3800
3801
3802 eval "$ac_cv_use_fs_inet"
3803 if test "$no_cache" != 1; then
3804 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3805 fi
3806
3807 if test "$wxUSE_FS_INET" = yes; then
3808 echo "$ac_t""yes" 1>&6
3809 else
3810 echo "$ac_t""no" 1>&6
3811 fi
3812
3813
3814 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3815 echo "configure:3816: checking for --enable-fs_zip" >&5
3816 no_cache=0
3817 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3818 if test "${enable_fs_zip+set}" = set; then
3819 enableval="$enable_fs_zip"
3820
3821 if test "$enableval" = yes; then
3822 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3823 else
3824 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3825 fi
3826
3827 else
3828
3829 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3830 if test "x$LINE" != x ; then
3831 eval "DEFAULT_$LINE"
3832 else
3833 no_cache=1
3834 fi
3835
3836 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3837
3838 fi
3839
3840
3841 eval "$ac_cv_use_fs_zip"
3842 if test "$no_cache" != 1; then
3843 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3844 fi
3845
3846 if test "$wxUSE_FS_ZIP" = yes; then
3847 echo "$ac_t""yes" 1>&6
3848 else
3849 echo "$ac_t""no" 1>&6
3850 fi
3851
3852
3853 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3854 echo "configure:3855: checking for --enable-zipstream" >&5
3855 no_cache=0
3856 # Check whether --enable-zipstream or --disable-zipstream was given.
3857 if test "${enable_zipstream+set}" = set; then
3858 enableval="$enable_zipstream"
3859
3860 if test "$enableval" = yes; then
3861 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3862 else
3863 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3864 fi
3865
3866 else
3867
3868 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3869 if test "x$LINE" != x ; then
3870 eval "DEFAULT_$LINE"
3871 else
3872 no_cache=1
3873 fi
3874
3875 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3876
3877 fi
3878
3879
3880 eval "$ac_cv_use_zipstream"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_ZIPSTREAM" = yes; then
3886 echo "$ac_t""yes" 1>&6
3887 else
3888 echo "$ac_t""no" 1>&6
3889 fi
3890
3891
3892
3893 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3894 echo "configure:3895: checking for --enable-catch_segvs" >&5
3895 no_cache=0
3896 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3897 if test "${enable_catch_segvs+set}" = set; then
3898 enableval="$enable_catch_segvs"
3899
3900 if test "$enableval" = yes; then
3901 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3902 else
3903 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3904 fi
3905
3906 else
3907
3908 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3909 if test "x$LINE" != x ; then
3910 eval "DEFAULT_$LINE"
3911 else
3912 no_cache=1
3913 fi
3914
3915 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3916
3917 fi
3918
3919
3920 eval "$ac_cv_use_catch_segvs"
3921 if test "$no_cache" != 1; then
3922 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3923 fi
3924
3925 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3926 echo "$ac_t""yes" 1>&6
3927 else
3928 echo "$ac_t""no" 1>&6
3929 fi
3930
3931
3932 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
3933 echo "configure:3934: checking for --enable-snglinst" >&5
3934 no_cache=0
3935 # Check whether --enable-snglinst or --disable-snglinst was given.
3936 if test "${enable_snglinst+set}" = set; then
3937 enableval="$enable_snglinst"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
3941 else
3942 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
3943 fi
3944
3945 else
3946
3947 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
3955
3956 fi
3957
3958
3959 eval "$ac_cv_use_snglinst"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
3965 echo "$ac_t""yes" 1>&6
3966 else
3967 echo "$ac_t""no" 1>&6
3968 fi
3969
3970
3971
3972 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3973 echo "configure:3974: checking for --enable-mimetype" >&5
3974 no_cache=0
3975 # Check whether --enable-mimetype or --disable-mimetype was given.
3976 if test "${enable_mimetype+set}" = set; then
3977 enableval="$enable_mimetype"
3978
3979 if test "$enableval" = yes; then
3980 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
3981 else
3982 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
3983 fi
3984
3985 else
3986
3987 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
3988 if test "x$LINE" != x ; then
3989 eval "DEFAULT_$LINE"
3990 else
3991 no_cache=1
3992 fi
3993
3994 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
3995
3996 fi
3997
3998
3999 eval "$ac_cv_use_mimetype"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_MIMETYPE" = yes; then
4005 echo "$ac_t""yes" 1>&6
4006 else
4007 echo "$ac_t""no" 1>&6
4008 fi
4009
4010
4011
4012
4013 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4014 echo "configure:4015: checking for --enable-threads" >&5
4015 no_cache=0
4016 # Check whether --enable-threads or --disable-threads was given.
4017 if test "${enable_threads+set}" = set; then
4018 enableval="$enable_threads"
4019
4020 if test "$enableval" = yes; then
4021 ac_cv_use_threads='wxUSE_THREADS=yes'
4022 else
4023 ac_cv_use_threads='wxUSE_THREADS=no'
4024 fi
4025
4026 else
4027
4028 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4029 if test "x$LINE" != x ; then
4030 eval "DEFAULT_$LINE"
4031 else
4032 no_cache=1
4033 fi
4034
4035 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4036
4037 fi
4038
4039
4040 eval "$ac_cv_use_threads"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_THREADS" = yes; then
4046 echo "$ac_t""yes" 1>&6
4047 else
4048 echo "$ac_t""no" 1>&6
4049 fi
4050
4051
4052 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4053 echo "configure:4054: checking for --enable-serial" >&5
4054 no_cache=0
4055 # Check whether --enable-serial or --disable-serial was given.
4056 if test "${enable_serial+set}" = set; then
4057 enableval="$enable_serial"
4058
4059 if test "$enableval" = yes; then
4060 ac_cv_use_serial='wxUSE_SERIAL=yes'
4061 else
4062 ac_cv_use_serial='wxUSE_SERIAL=no'
4063 fi
4064
4065 else
4066
4067 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4068 if test "x$LINE" != x ; then
4069 eval "DEFAULT_$LINE"
4070 else
4071 no_cache=1
4072 fi
4073
4074 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4075
4076 fi
4077
4078
4079 eval "$ac_cv_use_serial"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_SERIAL" = yes; then
4085 echo "$ac_t""yes" 1>&6
4086 else
4087 echo "$ac_t""no" 1>&6
4088 fi
4089
4090
4091 if test "$wxUSE_GUI" = "yes"; then
4092
4093
4094
4095 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4096 echo "configure:4097: checking for --enable-docview" >&5
4097 no_cache=0
4098 # Check whether --enable-docview or --disable-docview was given.
4099 if test "${enable_docview+set}" = set; then
4100 enableval="$enable_docview"
4101
4102 if test "$enableval" = yes; then
4103 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4104 else
4105 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4106 fi
4107
4108 else
4109
4110 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4118
4119 fi
4120
4121
4122 eval "$ac_cv_use_docview"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4128 echo "$ac_t""yes" 1>&6
4129 else
4130 echo "$ac_t""no" 1>&6
4131 fi
4132
4133
4134 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4135 echo "configure:4136: checking for --enable-help" >&5
4136 no_cache=0
4137 # Check whether --enable-help or --disable-help was given.
4138 if test "${enable_help+set}" = set; then
4139 enableval="$enable_help"
4140
4141 if test "$enableval" = yes; then
4142 ac_cv_use_help='wxUSE_HELP=yes'
4143 else
4144 ac_cv_use_help='wxUSE_HELP=no'
4145 fi
4146
4147 else
4148
4149 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4150 if test "x$LINE" != x ; then
4151 eval "DEFAULT_$LINE"
4152 else
4153 no_cache=1
4154 fi
4155
4156 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4157
4158 fi
4159
4160
4161 eval "$ac_cv_use_help"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_HELP" = yes; then
4167 echo "$ac_t""yes" 1>&6
4168 else
4169 echo "$ac_t""no" 1>&6
4170 fi
4171
4172
4173 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4174 echo "configure:4175: checking for --enable-constraints" >&5
4175 no_cache=0
4176 # Check whether --enable-constraints or --disable-constraints was given.
4177 if test "${enable_constraints+set}" = set; then
4178 enableval="$enable_constraints"
4179
4180 if test "$enableval" = yes; then
4181 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4182 else
4183 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4184 fi
4185
4186 else
4187
4188 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4189 if test "x$LINE" != x ; then
4190 eval "DEFAULT_$LINE"
4191 else
4192 no_cache=1
4193 fi
4194
4195 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4196
4197 fi
4198
4199
4200 eval "$ac_cv_use_constraints"
4201 if test "$no_cache" != 1; then
4202 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4203 fi
4204
4205 if test "$wxUSE_CONSTRAINTS" = yes; then
4206 echo "$ac_t""yes" 1>&6
4207 else
4208 echo "$ac_t""no" 1>&6
4209 fi
4210
4211
4212 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4213 echo "configure:4214: checking for --enable-printarch" >&5
4214 no_cache=0
4215 # Check whether --enable-printarch or --disable-printarch was given.
4216 if test "${enable_printarch+set}" = set; then
4217 enableval="$enable_printarch"
4218
4219 if test "$enableval" = yes; then
4220 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4221 else
4222 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4223 fi
4224
4225 else
4226
4227 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4235
4236 fi
4237
4238
4239 eval "$ac_cv_use_printarch"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4245 echo "$ac_t""yes" 1>&6
4246 else
4247 echo "$ac_t""no" 1>&6
4248 fi
4249
4250
4251 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4252 echo "configure:4253: checking for --enable-mdi" >&5
4253 no_cache=0
4254 # Check whether --enable-mdi or --disable-mdi was given.
4255 if test "${enable_mdi+set}" = set; then
4256 enableval="$enable_mdi"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4260 else
4261 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4262 fi
4263
4264 else
4265
4266 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4274
4275 fi
4276
4277
4278 eval "$ac_cv_use_mdi"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4284 echo "$ac_t""yes" 1>&6
4285 else
4286 echo "$ac_t""no" 1>&6
4287 fi
4288
4289
4290 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4291 echo "configure:4292: checking for --enable-loggui" >&5
4292 no_cache=0
4293 # Check whether --enable-loggui or --disable-loggui was given.
4294 if test "${enable_loggui+set}" = set; then
4295 enableval="$enable_loggui"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4299 else
4300 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4301 fi
4302
4303 else
4304
4305 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4313
4314 fi
4315
4316
4317 eval "$ac_cv_use_loggui"
4318 if test "$no_cache" != 1; then
4319 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4320 fi
4321
4322 if test "$wxUSE_LOGGUI" = yes; then
4323 echo "$ac_t""yes" 1>&6
4324 else
4325 echo "$ac_t""no" 1>&6
4326 fi
4327
4328
4329 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4330 echo "configure:4331: checking for --enable-logwin" >&5
4331 no_cache=0
4332 # Check whether --enable-logwin or --disable-logwin was given.
4333 if test "${enable_logwin+set}" = set; then
4334 enableval="$enable_logwin"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4338 else
4339 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4340 fi
4341
4342 else
4343
4344 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4352
4353 fi
4354
4355
4356 eval "$ac_cv_use_logwin"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_LOGWINDOW" = yes; then
4362 echo "$ac_t""yes" 1>&6
4363 else
4364 echo "$ac_t""no" 1>&6
4365 fi
4366
4367
4368
4369 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4370 echo "configure:4371: checking for --enable-postscript" >&5
4371 no_cache=0
4372 # Check whether --enable-postscript or --disable-postscript was given.
4373 if test "${enable_postscript+set}" = set; then
4374 enableval="$enable_postscript"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4378 else
4379 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4380 fi
4381
4382 else
4383
4384 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4392
4393 fi
4394
4395
4396 eval "$ac_cv_use_postscript"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_POSTSCRIPT" = yes; then
4402 echo "$ac_t""yes" 1>&6
4403 else
4404 echo "$ac_t""no" 1>&6
4405 fi
4406
4407
4408
4409
4410
4411 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4412 echo "configure:4413: checking for --enable-prologio" >&5
4413 no_cache=0
4414 # Check whether --enable-prologio or --disable-prologio was given.
4415 if test "${enable_prologio+set}" = set; then
4416 enableval="$enable_prologio"
4417
4418 if test "$enableval" = yes; then
4419 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4420 else
4421 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4422 fi
4423
4424 else
4425
4426 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4427 if test "x$LINE" != x ; then
4428 eval "DEFAULT_$LINE"
4429 else
4430 no_cache=1
4431 fi
4432
4433 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4434
4435 fi
4436
4437
4438 eval "$ac_cv_use_prologio"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_PROLOGIO" = yes; then
4444 echo "$ac_t""yes" 1>&6
4445 else
4446 echo "$ac_t""no" 1>&6
4447 fi
4448
4449
4450 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4451 echo "configure:4452: checking for --enable-resources" >&5
4452 no_cache=0
4453 # Check whether --enable-resources or --disable-resources was given.
4454 if test "${enable_resources+set}" = set; then
4455 enableval="$enable_resources"
4456
4457 if test "$enableval" = yes; then
4458 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4459 else
4460 ac_cv_use_resources='wxUSE_RESOURCES=no'
4461 fi
4462
4463 else
4464
4465 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4466 if test "x$LINE" != x ; then
4467 eval "DEFAULT_$LINE"
4468 else
4469 no_cache=1
4470 fi
4471
4472 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4473
4474 fi
4475
4476
4477 eval "$ac_cv_use_resources"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_RESOURCES" = yes; then
4483 echo "$ac_t""yes" 1>&6
4484 else
4485 echo "$ac_t""no" 1>&6
4486 fi
4487
4488
4489
4490 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4491 echo "configure:4492: checking for --enable-xresources" >&5
4492 no_cache=0
4493 # Check whether --enable-xresources or --disable-xresources was given.
4494 if test "${enable_xresources+set}" = set; then
4495 enableval="$enable_xresources"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4499 else
4500 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4501 fi
4502
4503 else
4504
4505 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4513
4514 fi
4515
4516
4517 eval "$ac_cv_use_xresources"
4518 if test "$no_cache" != 1; then
4519 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4520 fi
4521
4522 if test "$wxUSE_X_RESOURCES" = yes; then
4523 echo "$ac_t""yes" 1>&6
4524 else
4525 echo "$ac_t""no" 1>&6
4526 fi
4527
4528
4529
4530
4531 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4532 echo "configure:4533: checking for --enable-clipboard" >&5
4533 no_cache=0
4534 # Check whether --enable-clipboard or --disable-clipboard was given.
4535 if test "${enable_clipboard+set}" = set; then
4536 enableval="$enable_clipboard"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4540 else
4541 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4542 fi
4543
4544 else
4545
4546 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4554
4555 fi
4556
4557
4558 eval "$ac_cv_use_clipboard"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_CLIPBOARD" = yes; then
4564 echo "$ac_t""yes" 1>&6
4565 else
4566 echo "$ac_t""no" 1>&6
4567 fi
4568
4569
4570 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4571 echo "configure:4572: checking for --enable-dnd" >&5
4572 no_cache=0
4573 # Check whether --enable-dnd or --disable-dnd was given.
4574 if test "${enable_dnd+set}" = set; then
4575 enableval="$enable_dnd"
4576
4577 if test "$enableval" = yes; then
4578 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4579 else
4580 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4581 fi
4582
4583 else
4584
4585 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4593
4594 fi
4595
4596
4597 eval "$ac_cv_use_dnd"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4603 echo "$ac_t""yes" 1>&6
4604 else
4605 echo "$ac_t""no" 1>&6
4606 fi
4607
4608
4609 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4610 echo "configure:4611: checking for --enable-metafile" >&5
4611 no_cache=0
4612 # Check whether --enable-metafile or --disable-metafile was given.
4613 if test "${enable_metafile+set}" = set; then
4614 enableval="$enable_metafile"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4618 else
4619 ac_cv_use_metafile='wxUSE_METAFILE=no'
4620 fi
4621
4622 else
4623
4624 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4632
4633 fi
4634
4635
4636 eval "$ac_cv_use_metafile"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_METAFILE" = yes; then
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "$ac_t""no" 1>&6
4645 fi
4646
4647
4648
4649 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
4650 echo "configure:4651: checking for --enable-wxtree" >&5
4651 no_cache=0
4652 # Check whether --enable-wxtree or --disable-wxtree was given.
4653 if test "${enable_wxtree+set}" = set; then
4654 enableval="$enable_wxtree"
4655
4656 if test "$enableval" = yes; then
4657 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4658 else
4659 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4660 fi
4661
4662 else
4663
4664 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4672
4673 fi
4674
4675
4676 eval "$ac_cv_use_wxtree"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_WXTREE" = yes; then
4682 echo "$ac_t""yes" 1>&6
4683 else
4684 echo "$ac_t""no" 1>&6
4685 fi
4686
4687
4688
4689
4690 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4691 echo "configure:4692: checking for --enable-controls" >&5
4692 no_cache=0
4693 # Check whether --enable-controls or --disable-controls was given.
4694 if test "${enable_controls+set}" = set; then
4695 enableval="$enable_controls"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4699 else
4700 ac_cv_use_controls='wxUSE_CONTROLS=no'
4701 fi
4702
4703 else
4704
4705 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4713
4714 fi
4715
4716
4717 eval "$ac_cv_use_controls"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_CONTROLS" = yes; then
4723 echo "$ac_t""yes" 1>&6
4724 else
4725 echo "$ac_t""no" 1>&6
4726 fi
4727
4728
4729 if test "$wxUSE_CONTROLS" = "yes"; then
4730 DEFAULT_wxUSE_ACCEL=yes
4731 DEFAULT_wxUSE_BMPBUTTON=yes
4732 DEFAULT_wxUSE_BUTTON=yes
4733 DEFAULT_wxUSE_CALCTRL=no
4734 DEFAULT_wxUSE_CARET=yes
4735 DEFAULT_wxUSE_COMBOBOX=yes
4736 DEFAULT_wxUSE_CHECKBOX=yes
4737 DEFAULT_wxUSE_CHECKLISTBOX=yes
4738 DEFAULT_wxUSE_CHOICE=yes
4739 DEFAULT_wxUSE_GAUGE=yes
4740 DEFAULT_wxUSE_GRID=yes
4741 DEFAULT_wxUSE_NEW_GRID=yes
4742 DEFAULT_wxUSE_IMAGLIST=yes
4743 DEFAULT_wxUSE_LISTBOX=yes
4744 DEFAULT_wxUSE_LISTCTRL=yes
4745 DEFAULT_wxUSE_NOTEBOOK=yes
4746 DEFAULT_wxUSE_RADIOBOX=yes
4747 DEFAULT_wxUSE_RADIOBTN=yes
4748 DEFAULT_wxUSE_SASH=yes
4749 DEFAULT_wxUSE_SCROLLBAR=yes
4750 DEFAULT_wxUSE_SLIDER=yes
4751 DEFAULT_wxUSE_SPINBTN=yes
4752 DEFAULT_wxUSE_SPINCTRL=yes
4753 DEFAULT_wxUSE_SPLITTER=yes
4754 DEFAULT_wxUSE_STATBMP=yes
4755 DEFAULT_wxUSE_STATBOX=yes
4756 DEFAULT_wxUSE_STATLINE=yes
4757 DEFAULT_wxUSE_STATUSBAR=yes
4758 DEFAULT_wxUSE_TAB_DIALOG=yes
4759 DEFAULT_wxUSE_TOGGLEBTN=yes
4760 DEFAULT_wxUSE_TOOLBAR=yes
4761 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4762 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4763 DEFAULT_wxUSE_TOOLTIPS=yes
4764 DEFAULT_wxUSE_TREECTRL=yes
4765 elif test "$wxUSE_CONTROLS" = "no"; then
4766 DEFAULT_wxUSE_ACCEL=no
4767 DEFAULT_wxUSE_BMPBUTTON=no
4768 DEFAULT_wxUSE_BUTTON=no
4769 DEFAULT_wxUSE_CALCTRL=no
4770 DEFAULT_wxUSE_CARET=no
4771 DEFAULT_wxUSE_COMBOBOX=no
4772 DEFAULT_wxUSE_CHECKBOX=no
4773 DEFAULT_wxUSE_CHECKLISTBOX=no
4774 DEFAULT_wxUSE_CHOICE=no
4775 DEFAULT_wxUSE_GAUGE=no
4776 DEFAULT_wxUSE_GRID=no
4777 DEFAULT_wxUSE_NEW_GRID=no
4778 DEFAULT_wxUSE_IMAGLIST=no
4779 DEFAULT_wxUSE_LISTBOX=no
4780 DEFAULT_wxUSE_LISTCTRL=no
4781 DEFAULT_wxUSE_NOTEBOOK=no
4782 DEFAULT_wxUSE_RADIOBOX=no
4783 DEFAULT_wxUSE_RADIOBTN=no
4784 DEFAULT_wxUSE_SASH=no
4785 DEFAULT_wxUSE_SCROLLBAR=no
4786 DEFAULT_wxUSE_SLIDER=no
4787 DEFAULT_wxUSE_SPINBTN=no
4788 DEFAULT_wxUSE_SPINCTRL=no
4789 DEFAULT_wxUSE_SPLITTER=no
4790 DEFAULT_wxUSE_STATBMP=no
4791 DEFAULT_wxUSE_STATBOX=no
4792 DEFAULT_wxUSE_STATLINE=no
4793 DEFAULT_wxUSE_STATUSBAR=no
4794 DEFAULT_wxUSE_TAB_DIALOG=no
4795 DEFAULT_wxUSE_TOGGLEBTN=no
4796 DEFAULT_wxUSE_TOOLBAR=no
4797 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4798 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4799 DEFAULT_wxUSE_TOOLTIPS=no
4800 DEFAULT_wxUSE_TREECTRL=no
4801 fi
4802
4803
4804 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
4805 echo "configure:4806: checking for --enable-accel" >&5
4806 no_cache=0
4807 # Check whether --enable-accel or --disable-accel was given.
4808 if test "${enable_accel+set}" = set; then
4809 enableval="$enable_accel"
4810
4811 if test "$enableval" = yes; then
4812 ac_cv_use_accel='wxUSE_ACCEL=yes'
4813 else
4814 ac_cv_use_accel='wxUSE_ACCEL=no'
4815 fi
4816
4817 else
4818
4819 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4827
4828 fi
4829
4830
4831 eval "$ac_cv_use_accel"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_ACCEL" = yes; then
4837 echo "$ac_t""yes" 1>&6
4838 else
4839 echo "$ac_t""no" 1>&6
4840 fi
4841
4842
4843 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
4844 echo "configure:4845: checking for --enable-button" >&5
4845 no_cache=0
4846 # Check whether --enable-button or --disable-button was given.
4847 if test "${enable_button+set}" = set; then
4848 enableval="$enable_button"
4849
4850 if test "$enableval" = yes; then
4851 ac_cv_use_button='wxUSE_BUTTON=yes'
4852 else
4853 ac_cv_use_button='wxUSE_BUTTON=no'
4854 fi
4855
4856 else
4857
4858 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
4866
4867 fi
4868
4869
4870 eval "$ac_cv_use_button"
4871 if test "$no_cache" != 1; then
4872 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
4873 fi
4874
4875 if test "$wxUSE_BUTTON" = yes; then
4876 echo "$ac_t""yes" 1>&6
4877 else
4878 echo "$ac_t""no" 1>&6
4879 fi
4880
4881
4882 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
4883 echo "configure:4884: checking for --enable-bmpbutton" >&5
4884 no_cache=0
4885 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4886 if test "${enable_bmpbutton+set}" = set; then
4887 enableval="$enable_bmpbutton"
4888
4889 if test "$enableval" = yes; then
4890 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4891 else
4892 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4893 fi
4894
4895 else
4896
4897 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4905
4906 fi
4907
4908
4909 eval "$ac_cv_use_bmpbutton"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_BMPBUTTON" = yes; then
4915 echo "$ac_t""yes" 1>&6
4916 else
4917 echo "$ac_t""no" 1>&6
4918 fi
4919
4920
4921 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
4922 echo "configure:4923: checking for --enable-calendar" >&5
4923 no_cache=0
4924 # Check whether --enable-calendar or --disable-calendar was given.
4925 if test "${enable_calendar+set}" = set; then
4926 enableval="$enable_calendar"
4927
4928 if test "$enableval" = yes; then
4929 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
4930 else
4931 ac_cv_use_calendar='wxUSE_CALCTRL=no'
4932 fi
4933
4934 else
4935
4936 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
4937 if test "x$LINE" != x ; then
4938 eval "DEFAULT_$LINE"
4939 else
4940 no_cache=1
4941 fi
4942
4943 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
4944
4945 fi
4946
4947
4948 eval "$ac_cv_use_calendar"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_CALCTRL" = yes; then
4954 echo "$ac_t""yes" 1>&6
4955 else
4956 echo "$ac_t""no" 1>&6
4957 fi
4958
4959
4960 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
4961 echo "configure:4962: checking for --enable-caret" >&5
4962 no_cache=0
4963 # Check whether --enable-caret or --disable-caret was given.
4964 if test "${enable_caret+set}" = set; then
4965 enableval="$enable_caret"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_caret='wxUSE_CARET=yes'
4969 else
4970 ac_cv_use_caret='wxUSE_CARET=no'
4971 fi
4972
4973 else
4974
4975 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4983
4984 fi
4985
4986
4987 eval "$ac_cv_use_caret"
4988 if test "$no_cache" != 1; then
4989 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4990 fi
4991
4992 if test "$wxUSE_CARET" = yes; then
4993 echo "$ac_t""yes" 1>&6
4994 else
4995 echo "$ac_t""no" 1>&6
4996 fi
4997
4998
4999 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5000 echo "configure:5001: checking for --enable-checkbox" >&5
5001 no_cache=0
5002 # Check whether --enable-checkbox or --disable-checkbox was given.
5003 if test "${enable_checkbox+set}" = set; then
5004 enableval="$enable_checkbox"
5005
5006 if test "$enableval" = yes; then
5007 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5008 else
5009 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5010 fi
5011
5012 else
5013
5014 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5015 if test "x$LINE" != x ; then
5016 eval "DEFAULT_$LINE"
5017 else
5018 no_cache=1
5019 fi
5020
5021 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5022
5023 fi
5024
5025
5026 eval "$ac_cv_use_checkbox"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_CHECKBOX" = yes; then
5032 echo "$ac_t""yes" 1>&6
5033 else
5034 echo "$ac_t""no" 1>&6
5035 fi
5036
5037
5038 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5039 echo "configure:5040: checking for --enable-checklst" >&5
5040 no_cache=0
5041 # Check whether --enable-checklst or --disable-checklst was given.
5042 if test "${enable_checklst+set}" = set; then
5043 enableval="$enable_checklst"
5044
5045 if test "$enableval" = yes; then
5046 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5047 else
5048 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5049 fi
5050
5051 else
5052
5053 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5061
5062 fi
5063
5064
5065 eval "$ac_cv_use_checklst"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_CHECKLST" = yes; then
5071 echo "$ac_t""yes" 1>&6
5072 else
5073 echo "$ac_t""no" 1>&6
5074 fi
5075
5076
5077 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5078 echo "configure:5079: checking for --enable-choice" >&5
5079 no_cache=0
5080 # Check whether --enable-choice or --disable-choice was given.
5081 if test "${enable_choice+set}" = set; then
5082 enableval="$enable_choice"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_choice='wxUSE_CHOICE=yes'
5086 else
5087 ac_cv_use_choice='wxUSE_CHOICE=no'
5088 fi
5089
5090 else
5091
5092 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5100
5101 fi
5102
5103
5104 eval "$ac_cv_use_choice"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_CHOICE" = yes; then
5110 echo "$ac_t""yes" 1>&6
5111 else
5112 echo "$ac_t""no" 1>&6
5113 fi
5114
5115
5116 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5117 echo "configure:5118: checking for --enable-combobox" >&5
5118 no_cache=0
5119 # Check whether --enable-combobox or --disable-combobox was given.
5120 if test "${enable_combobox+set}" = set; then
5121 enableval="$enable_combobox"
5122
5123 if test "$enableval" = yes; then
5124 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5125 else
5126 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5127 fi
5128
5129 else
5130
5131 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5139
5140 fi
5141
5142
5143 eval "$ac_cv_use_combobox"
5144 if test "$no_cache" != 1; then
5145 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5146 fi
5147
5148 if test "$wxUSE_COMBOBOX" = yes; then
5149 echo "$ac_t""yes" 1>&6
5150 else
5151 echo "$ac_t""no" 1>&6
5152 fi
5153
5154
5155 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5156 echo "configure:5157: checking for --enable-gauge" >&5
5157 no_cache=0
5158 # Check whether --enable-gauge or --disable-gauge was given.
5159 if test "${enable_gauge+set}" = set; then
5160 enableval="$enable_gauge"
5161
5162 if test "$enableval" = yes; then
5163 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5164 else
5165 ac_cv_use_gauge='wxUSE_GAUGE=no'
5166 fi
5167
5168 else
5169
5170 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5178
5179 fi
5180
5181
5182 eval "$ac_cv_use_gauge"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_GAUGE" = yes; then
5188 echo "$ac_t""yes" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192
5193
5194 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5195 echo "configure:5196: checking for --enable-grid" >&5
5196 no_cache=0
5197 # Check whether --enable-grid or --disable-grid was given.
5198 if test "${enable_grid+set}" = set; then
5199 enableval="$enable_grid"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_grid='wxUSE_GRID=yes'
5203 else
5204 ac_cv_use_grid='wxUSE_GRID=no'
5205 fi
5206
5207 else
5208
5209 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5217
5218 fi
5219
5220
5221 eval "$ac_cv_use_grid"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_GRID" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
5233 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5234 echo "configure:5235: checking for --enable-newgrid" >&5
5235 no_cache=0
5236 # Check whether --enable-newgrid or --disable-newgrid was given.
5237 if test "${enable_newgrid+set}" = set; then
5238 enableval="$enable_newgrid"
5239
5240 if test "$enableval" = yes; then
5241 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5242 else
5243 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5244 fi
5245
5246 else
5247
5248 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5249 if test "x$LINE" != x ; then
5250 eval "DEFAULT_$LINE"
5251 else
5252 no_cache=1
5253 fi
5254
5255 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5256
5257 fi
5258
5259
5260 eval "$ac_cv_use_newgrid"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_NEW_GRID" = yes; then
5266 echo "$ac_t""yes" 1>&6
5267 else
5268 echo "$ac_t""no" 1>&6
5269 fi
5270
5271
5272 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5273 echo "configure:5274: checking for --enable-imaglist" >&5
5274 no_cache=0
5275 # Check whether --enable-imaglist or --disable-imaglist was given.
5276 if test "${enable_imaglist+set}" = set; then
5277 enableval="$enable_imaglist"
5278
5279 if test "$enableval" = yes; then
5280 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5281 else
5282 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5283 fi
5284
5285 else
5286
5287 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5288 if test "x$LINE" != x ; then
5289 eval "DEFAULT_$LINE"
5290 else
5291 no_cache=1
5292 fi
5293
5294 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5295
5296 fi
5297
5298
5299 eval "$ac_cv_use_imaglist"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_IMAGLIST" = yes; then
5305 echo "$ac_t""yes" 1>&6
5306 else
5307 echo "$ac_t""no" 1>&6
5308 fi
5309
5310
5311 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5312 echo "configure:5313: checking for --enable-listbox" >&5
5313 no_cache=0
5314 # Check whether --enable-listbox or --disable-listbox was given.
5315 if test "${enable_listbox+set}" = set; then
5316 enableval="$enable_listbox"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5320 else
5321 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5322 fi
5323
5324 else
5325
5326 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5334
5335 fi
5336
5337
5338 eval "$ac_cv_use_listbox"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_LISTBOX" = yes; then
5344 echo "$ac_t""yes" 1>&6
5345 else
5346 echo "$ac_t""no" 1>&6
5347 fi
5348
5349
5350 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5351 echo "configure:5352: checking for --enable-listctrl" >&5
5352 no_cache=0
5353 # Check whether --enable-listctrl or --disable-listctrl was given.
5354 if test "${enable_listctrl+set}" = set; then
5355 enableval="$enable_listctrl"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5359 else
5360 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5361 fi
5362
5363 else
5364
5365 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5373
5374 fi
5375
5376
5377 eval "$ac_cv_use_listctrl"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_LISTCTRL" = yes; then
5383 echo "$ac_t""yes" 1>&6
5384 else
5385 echo "$ac_t""no" 1>&6
5386 fi
5387
5388
5389 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5390 echo "configure:5391: checking for --enable-notebook" >&5
5391 no_cache=0
5392 # Check whether --enable-notebook or --disable-notebook was given.
5393 if test "${enable_notebook+set}" = set; then
5394 enableval="$enable_notebook"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5398 else
5399 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5400 fi
5401
5402 else
5403
5404 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5412
5413 fi
5414
5415
5416 eval "$ac_cv_use_notebook"
5417 if test "$no_cache" != 1; then
5418 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5419 fi
5420
5421 if test "$wxUSE_NOTEBOOK" = yes; then
5422 echo "$ac_t""yes" 1>&6
5423 else
5424 echo "$ac_t""no" 1>&6
5425 fi
5426
5427
5428 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5429 echo "configure:5430: checking for --enable-radiobox" >&5
5430 no_cache=0
5431 # Check whether --enable-radiobox or --disable-radiobox was given.
5432 if test "${enable_radiobox+set}" = set; then
5433 enableval="$enable_radiobox"
5434
5435 if test "$enableval" = yes; then
5436 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5437 else
5438 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5439 fi
5440
5441 else
5442
5443 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5451
5452 fi
5453
5454
5455 eval "$ac_cv_use_radiobox"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_RADIOBOX" = yes; then
5461 echo "$ac_t""yes" 1>&6
5462 else
5463 echo "$ac_t""no" 1>&6
5464 fi
5465
5466
5467 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5468 echo "configure:5469: checking for --enable-radiobtn" >&5
5469 no_cache=0
5470 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5471 if test "${enable_radiobtn+set}" = set; then
5472 enableval="$enable_radiobtn"
5473
5474 if test "$enableval" = yes; then
5475 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5476 else
5477 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5478 fi
5479
5480 else
5481
5482 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5490
5491 fi
5492
5493
5494 eval "$ac_cv_use_radiobtn"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_RADIOBTN" = yes; then
5500 echo "$ac_t""yes" 1>&6
5501 else
5502 echo "$ac_t""no" 1>&6
5503 fi
5504
5505
5506 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5507 echo "configure:5508: checking for --enable-sash" >&5
5508 no_cache=0
5509 # Check whether --enable-sash or --disable-sash was given.
5510 if test "${enable_sash+set}" = set; then
5511 enableval="$enable_sash"
5512
5513 if test "$enableval" = yes; then
5514 ac_cv_use_sash='wxUSE_SASH=yes'
5515 else
5516 ac_cv_use_sash='wxUSE_SASH=no'
5517 fi
5518
5519 else
5520
5521 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5529
5530 fi
5531
5532
5533 eval "$ac_cv_use_sash"
5534 if test "$no_cache" != 1; then
5535 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5536 fi
5537
5538 if test "$wxUSE_SASH" = yes; then
5539 echo "$ac_t""yes" 1>&6
5540 else
5541 echo "$ac_t""no" 1>&6
5542 fi
5543
5544
5545 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5546 echo "configure:5547: checking for --enable-scrollbar" >&5
5547 no_cache=0
5548 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5549 if test "${enable_scrollbar+set}" = set; then
5550 enableval="$enable_scrollbar"
5551
5552 if test "$enableval" = yes; then
5553 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5554 else
5555 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5556 fi
5557
5558 else
5559
5560 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5561 if test "x$LINE" != x ; then
5562 eval "DEFAULT_$LINE"
5563 else
5564 no_cache=1
5565 fi
5566
5567 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5568
5569 fi
5570
5571
5572 eval "$ac_cv_use_scrollbar"
5573 if test "$no_cache" != 1; then
5574 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5575 fi
5576
5577 if test "$wxUSE_SCROLLBAR" = yes; then
5578 echo "$ac_t""yes" 1>&6
5579 else
5580 echo "$ac_t""no" 1>&6
5581 fi
5582
5583
5584 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5585 echo "configure:5586: checking for --enable-slider" >&5
5586 no_cache=0
5587 # Check whether --enable-slider or --disable-slider was given.
5588 if test "${enable_slider+set}" = set; then
5589 enableval="$enable_slider"
5590
5591 if test "$enableval" = yes; then
5592 ac_cv_use_slider='wxUSE_SLIDER=yes'
5593 else
5594 ac_cv_use_slider='wxUSE_SLIDER=no'
5595 fi
5596
5597 else
5598
5599 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
5606 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5607
5608 fi
5609
5610
5611 eval "$ac_cv_use_slider"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_SLIDER" = yes; then
5617 echo "$ac_t""yes" 1>&6
5618 else
5619 echo "$ac_t""no" 1>&6
5620 fi
5621
5622
5623 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5624 echo "configure:5625: checking for --enable-spinbtn" >&5
5625 no_cache=0
5626 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5627 if test "${enable_spinbtn+set}" = set; then
5628 enableval="$enable_spinbtn"
5629
5630 if test "$enableval" = yes; then
5631 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5632 else
5633 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5634 fi
5635
5636 else
5637
5638 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5646
5647 fi
5648
5649
5650 eval "$ac_cv_use_spinbtn"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_SPINBTN" = yes; then
5656 echo "$ac_t""yes" 1>&6
5657 else
5658 echo "$ac_t""no" 1>&6
5659 fi
5660
5661
5662 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5663 echo "configure:5664: checking for --enable-spinctrl" >&5
5664 no_cache=0
5665 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5666 if test "${enable_spinctrl+set}" = set; then
5667 enableval="$enable_spinctrl"
5668
5669 if test "$enableval" = yes; then
5670 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5671 else
5672 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5673 fi
5674
5675 else
5676
5677 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5678 if test "x$LINE" != x ; then
5679 eval "DEFAULT_$LINE"
5680 else
5681 no_cache=1
5682 fi
5683
5684 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5685
5686 fi
5687
5688
5689 eval "$ac_cv_use_spinctrl"
5690 if test "$no_cache" != 1; then
5691 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5692 fi
5693
5694 if test "$wxUSE_SPINCTRL" = yes; then
5695 echo "$ac_t""yes" 1>&6
5696 else
5697 echo "$ac_t""no" 1>&6
5698 fi
5699
5700
5701 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
5702 echo "configure:5703: checking for --enable-splitter" >&5
5703 no_cache=0
5704 # Check whether --enable-splitter or --disable-splitter was given.
5705 if test "${enable_splitter+set}" = set; then
5706 enableval="$enable_splitter"
5707
5708 if test "$enableval" = yes; then
5709 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5710 else
5711 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5712 fi
5713
5714 else
5715
5716 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5717 if test "x$LINE" != x ; then
5718 eval "DEFAULT_$LINE"
5719 else
5720 no_cache=1
5721 fi
5722
5723 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5724
5725 fi
5726
5727
5728 eval "$ac_cv_use_splitter"
5729 if test "$no_cache" != 1; then
5730 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5731 fi
5732
5733 if test "$wxUSE_SPLITTER" = yes; then
5734 echo "$ac_t""yes" 1>&6
5735 else
5736 echo "$ac_t""no" 1>&6
5737 fi
5738
5739
5740 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
5741 echo "configure:5742: checking for --enable-statbmp" >&5
5742 no_cache=0
5743 # Check whether --enable-statbmp or --disable-statbmp was given.
5744 if test "${enable_statbmp+set}" = set; then
5745 enableval="$enable_statbmp"
5746
5747 if test "$enableval" = yes; then
5748 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5749 else
5750 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5751 fi
5752
5753 else
5754
5755 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5756 if test "x$LINE" != x ; then
5757 eval "DEFAULT_$LINE"
5758 else
5759 no_cache=1
5760 fi
5761
5762 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5763
5764 fi
5765
5766
5767 eval "$ac_cv_use_statbmp"
5768 if test "$no_cache" != 1; then
5769 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5770 fi
5771
5772 if test "$wxUSE_STATBMP" = yes; then
5773 echo "$ac_t""yes" 1>&6
5774 else
5775 echo "$ac_t""no" 1>&6
5776 fi
5777
5778
5779 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
5780 echo "configure:5781: checking for --enable-statbox" >&5
5781 no_cache=0
5782 # Check whether --enable-statbox or --disable-statbox was given.
5783 if test "${enable_statbox+set}" = set; then
5784 enableval="$enable_statbox"
5785
5786 if test "$enableval" = yes; then
5787 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5788 else
5789 ac_cv_use_statbox='wxUSE_STATBOX=no'
5790 fi
5791
5792 else
5793
5794 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5795 if test "x$LINE" != x ; then
5796 eval "DEFAULT_$LINE"
5797 else
5798 no_cache=1
5799 fi
5800
5801 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5802
5803 fi
5804
5805
5806 eval "$ac_cv_use_statbox"
5807 if test "$no_cache" != 1; then
5808 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5809 fi
5810
5811 if test "$wxUSE_STATBOX" = yes; then
5812 echo "$ac_t""yes" 1>&6
5813 else
5814 echo "$ac_t""no" 1>&6
5815 fi
5816
5817
5818 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
5819 echo "configure:5820: checking for --enable-statline" >&5
5820 no_cache=0
5821 # Check whether --enable-statline or --disable-statline was given.
5822 if test "${enable_statline+set}" = set; then
5823 enableval="$enable_statline"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_statline='wxUSE_STATLINE=yes'
5827 else
5828 ac_cv_use_statline='wxUSE_STATLINE=no'
5829 fi
5830
5831 else
5832
5833 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5841
5842 fi
5843
5844
5845 eval "$ac_cv_use_statline"
5846 if test "$no_cache" != 1; then
5847 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5848 fi
5849
5850 if test "$wxUSE_STATLINE" = yes; then
5851 echo "$ac_t""yes" 1>&6
5852 else
5853 echo "$ac_t""no" 1>&6
5854 fi
5855
5856
5857 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
5858 echo "configure:5859: checking for --enable-stattext" >&5
5859 no_cache=0
5860 # Check whether --enable-stattext or --disable-stattext was given.
5861 if test "${enable_stattext+set}" = set; then
5862 enableval="$enable_stattext"
5863
5864 if test "$enableval" = yes; then
5865 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5866 else
5867 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5868 fi
5869
5870 else
5871
5872 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5873 if test "x$LINE" != x ; then
5874 eval "DEFAULT_$LINE"
5875 else
5876 no_cache=1
5877 fi
5878
5879 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5880
5881 fi
5882
5883
5884 eval "$ac_cv_use_stattext"
5885 if test "$no_cache" != 1; then
5886 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5887 fi
5888
5889 if test "$wxUSE_STATTEXT" = yes; then
5890 echo "$ac_t""yes" 1>&6
5891 else
5892 echo "$ac_t""no" 1>&6
5893 fi
5894
5895
5896 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
5897 echo "configure:5898: checking for --enable-statusbar" >&5
5898 no_cache=0
5899 # Check whether --enable-statusbar or --disable-statusbar was given.
5900 if test "${enable_statusbar+set}" = set; then
5901 enableval="$enable_statusbar"
5902
5903 if test "$enableval" = yes; then
5904 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5905 else
5906 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5907 fi
5908
5909 else
5910
5911 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5912 if test "x$LINE" != x ; then
5913 eval "DEFAULT_$LINE"
5914 else
5915 no_cache=1
5916 fi
5917
5918 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5919
5920 fi
5921
5922
5923 eval "$ac_cv_use_statusbar"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_STATUSBAR" = yes; then
5929 echo "$ac_t""yes" 1>&6
5930 else
5931 echo "$ac_t""no" 1>&6
5932 fi
5933
5934
5935 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
5936 echo "configure:5937: checking for --enable-tabdialog" >&5
5937 no_cache=0
5938 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5939 if test "${enable_tabdialog+set}" = set; then
5940 enableval="$enable_tabdialog"
5941
5942 if test "$enableval" = yes; then
5943 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5944 else
5945 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5946 fi
5947
5948 else
5949
5950 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5958
5959 fi
5960
5961
5962 eval "$ac_cv_use_tabdialog"
5963 if test "$no_cache" != 1; then
5964 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5965 fi
5966
5967 if test "$wxUSE_TABDIALOG" = yes; then
5968 echo "$ac_t""yes" 1>&6
5969 else
5970 echo "$ac_t""no" 1>&6
5971 fi
5972
5973
5974 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
5975 echo "configure:5976: checking for --enable-textctrl" >&5
5976 no_cache=0
5977 # Check whether --enable-textctrl or --disable-textctrl was given.
5978 if test "${enable_textctrl+set}" = set; then
5979 enableval="$enable_textctrl"
5980
5981 if test "$enableval" = yes; then
5982 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
5983 else
5984 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
5985 fi
5986
5987 else
5988
5989 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
5996 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
5997
5998 fi
5999
6000
6001 eval "$ac_cv_use_textctrl"
6002 if test "$no_cache" != 1; then
6003 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6004 fi
6005
6006 if test "$wxUSE_TEXTCTRL" = yes; then
6007 echo "$ac_t""yes" 1>&6
6008 else
6009 echo "$ac_t""no" 1>&6
6010 fi
6011
6012
6013 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6014 echo "configure:6015: checking for --enable-togglebtn" >&5
6015 no_cache=0
6016 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6017 if test "${enable_togglebtn+set}" = set; then
6018 enableval="$enable_togglebtn"
6019
6020 if test "$enableval" = yes; then
6021 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6022 else
6023 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6024 fi
6025
6026 else
6027
6028 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6029 if test "x$LINE" != x ; then
6030 eval "DEFAULT_$LINE"
6031 else
6032 no_cache=1
6033 fi
6034
6035 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6036
6037 fi
6038
6039
6040 eval "$ac_cv_use_togglebtn"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_TOGGLEBTN" = yes; then
6046 echo "$ac_t""yes" 1>&6
6047 else
6048 echo "$ac_t""no" 1>&6
6049 fi
6050
6051
6052 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6053 echo "configure:6054: checking for --enable-toolbar" >&5
6054 no_cache=0
6055 # Check whether --enable-toolbar or --disable-toolbar was given.
6056 if test "${enable_toolbar+set}" = set; then
6057 enableval="$enable_toolbar"
6058
6059 if test "$enableval" = yes; then
6060 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6061 else
6062 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6063 fi
6064
6065 else
6066
6067 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6075
6076 fi
6077
6078
6079 eval "$ac_cv_use_toolbar"
6080 if test "$no_cache" != 1; then
6081 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6082 fi
6083
6084 if test "$wxUSE_TOOLBAR" = yes; then
6085 echo "$ac_t""yes" 1>&6
6086 else
6087 echo "$ac_t""no" 1>&6
6088 fi
6089
6090
6091 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6092 echo "configure:6093: checking for --enable-tbarnative" >&5
6093 no_cache=0
6094 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6095 if test "${enable_tbarnative+set}" = set; then
6096 enableval="$enable_tbarnative"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6100 else
6101 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6102 fi
6103
6104 else
6105
6106 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6114
6115 fi
6116
6117
6118 eval "$ac_cv_use_tbarnative"
6119 if test "$no_cache" != 1; then
6120 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6121 fi
6122
6123 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6124 echo "$ac_t""yes" 1>&6
6125 else
6126 echo "$ac_t""no" 1>&6
6127 fi
6128
6129
6130 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6131 echo "configure:6132: checking for --enable-tbarsmpl" >&5
6132 no_cache=0
6133 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6134 if test "${enable_tbarsmpl+set}" = set; then
6135 enableval="$enable_tbarsmpl"
6136
6137 if test "$enableval" = yes; then
6138 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6139 else
6140 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6141 fi
6142
6143 else
6144
6145 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6146 if test "x$LINE" != x ; then
6147 eval "DEFAULT_$LINE"
6148 else
6149 no_cache=1
6150 fi
6151
6152 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6153
6154 fi
6155
6156
6157 eval "$ac_cv_use_tbarsmpl"
6158 if test "$no_cache" != 1; then
6159 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6160 fi
6161
6162 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6163 echo "$ac_t""yes" 1>&6
6164 else
6165 echo "$ac_t""no" 1>&6
6166 fi
6167
6168
6169 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6170 echo "configure:6171: checking for --enable-treectrl" >&5
6171 no_cache=0
6172 # Check whether --enable-treectrl or --disable-treectrl was given.
6173 if test "${enable_treectrl+set}" = set; then
6174 enableval="$enable_treectrl"
6175
6176 if test "$enableval" = yes; then
6177 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6178 else
6179 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6180 fi
6181
6182 else
6183
6184 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6192
6193 fi
6194
6195
6196 eval "$ac_cv_use_treectrl"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_TREECTRL" = yes; then
6202 echo "$ac_t""yes" 1>&6
6203 else
6204 echo "$ac_t""no" 1>&6
6205 fi
6206
6207
6208
6209
6210 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6211 echo "configure:6212: checking for --enable-commondlg" >&5
6212 no_cache=0
6213 # Check whether --enable-commondlg or --disable-commondlg was given.
6214 if test "${enable_commondlg+set}" = set; then
6215 enableval="$enable_commondlg"
6216
6217 if test "$enableval" = yes; then
6218 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6219 else
6220 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6221 fi
6222
6223 else
6224
6225 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6226 if test "x$LINE" != x ; then
6227 eval "DEFAULT_$LINE"
6228 else
6229 no_cache=1
6230 fi
6231
6232 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6233
6234 fi
6235
6236
6237 eval "$ac_cv_use_commondlg"
6238 if test "$no_cache" != 1; then
6239 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6240 fi
6241
6242 if test "$wxUSE_COMMONDLGS" = yes; then
6243 echo "$ac_t""yes" 1>&6
6244 else
6245 echo "$ac_t""no" 1>&6
6246 fi
6247
6248
6249 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6250 echo "configure:6251: checking for --enable-choicedlg" >&5
6251 no_cache=0
6252 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6253 if test "${enable_choicedlg+set}" = set; then
6254 enableval="$enable_choicedlg"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6258 else
6259 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6260 fi
6261
6262 else
6263
6264 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6272
6273 fi
6274
6275
6276 eval "$ac_cv_use_choicedlg"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_CHOICEDLG" = yes; then
6282 echo "$ac_t""yes" 1>&6
6283 else
6284 echo "$ac_t""no" 1>&6
6285 fi
6286
6287
6288 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6289 echo "configure:6290: checking for --enable-coldlg" >&5
6290 no_cache=0
6291 # Check whether --enable-coldlg or --disable-coldlg was given.
6292 if test "${enable_coldlg+set}" = set; then
6293 enableval="$enable_coldlg"
6294
6295 if test "$enableval" = yes; then
6296 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6297 else
6298 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6299 fi
6300
6301 else
6302
6303 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6304 if test "x$LINE" != x ; then
6305 eval "DEFAULT_$LINE"
6306 else
6307 no_cache=1
6308 fi
6309
6310 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6311
6312 fi
6313
6314
6315 eval "$ac_cv_use_coldlg"
6316 if test "$no_cache" != 1; then
6317 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6318 fi
6319
6320 if test "$wxUSE_COLOURDLG" = yes; then
6321 echo "$ac_t""yes" 1>&6
6322 else
6323 echo "$ac_t""no" 1>&6
6324 fi
6325
6326
6327 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6328 echo "configure:6329: checking for --enable-filedlg" >&5
6329 no_cache=0
6330 # Check whether --enable-filedlg or --disable-filedlg was given.
6331 if test "${enable_filedlg+set}" = set; then
6332 enableval="$enable_filedlg"
6333
6334 if test "$enableval" = yes; then
6335 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6336 else
6337 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6338 fi
6339
6340 else
6341
6342 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6343 if test "x$LINE" != x ; then
6344 eval "DEFAULT_$LINE"
6345 else
6346 no_cache=1
6347 fi
6348
6349 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6350
6351 fi
6352
6353
6354 eval "$ac_cv_use_filedlg"
6355 if test "$no_cache" != 1; then
6356 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6357 fi
6358
6359 if test "$wxUSE_FILEDLG" = yes; then
6360 echo "$ac_t""yes" 1>&6
6361 else
6362 echo "$ac_t""no" 1>&6
6363 fi
6364
6365
6366 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6367 echo "configure:6368: checking for --enable-fontdlg" >&5
6368 no_cache=0
6369 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6370 if test "${enable_fontdlg+set}" = set; then
6371 enableval="$enable_fontdlg"
6372
6373 if test "$enableval" = yes; then
6374 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6375 else
6376 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6377 fi
6378
6379 else
6380
6381 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6382 if test "x$LINE" != x ; then
6383 eval "DEFAULT_$LINE"
6384 else
6385 no_cache=1
6386 fi
6387
6388 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6389
6390 fi
6391
6392
6393 eval "$ac_cv_use_fontdlg"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_FONTDLG" = yes; then
6399 echo "$ac_t""yes" 1>&6
6400 else
6401 echo "$ac_t""no" 1>&6
6402 fi
6403
6404
6405 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6406 echo "configure:6407: checking for --enable-dirdlg" >&5
6407 no_cache=0
6408 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6409 if test "${enable_dirdlg+set}" = set; then
6410 enableval="$enable_dirdlg"
6411
6412 if test "$enableval" = yes; then
6413 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6414 else
6415 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6416 fi
6417
6418 else
6419
6420 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6421 if test "x$LINE" != x ; then
6422 eval "DEFAULT_$LINE"
6423 else
6424 no_cache=1
6425 fi
6426
6427 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6428
6429 fi
6430
6431
6432 eval "$ac_cv_use_dirdlg"
6433 if test "$no_cache" != 1; then
6434 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6435 fi
6436
6437 if test "$wxUSE_DIRDLG" = yes; then
6438 echo "$ac_t""yes" 1>&6
6439 else
6440 echo "$ac_t""no" 1>&6
6441 fi
6442
6443
6444 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6445 echo "configure:6446: checking for --enable-msgdlg" >&5
6446 no_cache=0
6447 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6448 if test "${enable_msgdlg+set}" = set; then
6449 enableval="$enable_msgdlg"
6450
6451 if test "$enableval" = yes; then
6452 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6453 else
6454 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6455 fi
6456
6457 else
6458
6459 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6460 if test "x$LINE" != x ; then
6461 eval "DEFAULT_$LINE"
6462 else
6463 no_cache=1
6464 fi
6465
6466 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6467
6468 fi
6469
6470
6471 eval "$ac_cv_use_msgdlg"
6472 if test "$no_cache" != 1; then
6473 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6474 fi
6475
6476 if test "$wxUSE_MSGDLG" = yes; then
6477 echo "$ac_t""yes" 1>&6
6478 else
6479 echo "$ac_t""no" 1>&6
6480 fi
6481
6482
6483 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6484 echo "configure:6485: checking for --enable-numberdlg" >&5
6485 no_cache=0
6486 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6487 if test "${enable_numberdlg+set}" = set; then
6488 enableval="$enable_numberdlg"
6489
6490 if test "$enableval" = yes; then
6491 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6492 else
6493 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6494 fi
6495
6496 else
6497
6498 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6499 if test "x$LINE" != x ; then
6500 eval "DEFAULT_$LINE"
6501 else
6502 no_cache=1
6503 fi
6504
6505 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6506
6507 fi
6508
6509
6510 eval "$ac_cv_use_numberdlg"
6511 if test "$no_cache" != 1; then
6512 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6513 fi
6514
6515 if test "$wxUSE_NUMBERDLG" = yes; then
6516 echo "$ac_t""yes" 1>&6
6517 else
6518 echo "$ac_t""no" 1>&6
6519 fi
6520
6521
6522 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6523 echo "configure:6524: checking for --enable-textdlg" >&5
6524 no_cache=0
6525 # Check whether --enable-textdlg or --disable-textdlg was given.
6526 if test "${enable_textdlg+set}" = set; then
6527 enableval="$enable_textdlg"
6528
6529 if test "$enableval" = yes; then
6530 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6531 else
6532 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6533 fi
6534
6535 else
6536
6537 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6538 if test "x$LINE" != x ; then
6539 eval "DEFAULT_$LINE"
6540 else
6541 no_cache=1
6542 fi
6543
6544 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6545
6546 fi
6547
6548
6549 eval "$ac_cv_use_textdlg"
6550 if test "$no_cache" != 1; then
6551 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6552 fi
6553
6554 if test "$wxUSE_TEXTDLG" = yes; then
6555 echo "$ac_t""yes" 1>&6
6556 else
6557 echo "$ac_t""no" 1>&6
6558 fi
6559
6560
6561 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6562 echo "configure:6563: checking for --enable-tipdlg" >&5
6563 no_cache=0
6564 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6565 if test "${enable_tipdlg+set}" = set; then
6566 enableval="$enable_tipdlg"
6567
6568 if test "$enableval" = yes; then
6569 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6570 else
6571 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6572 fi
6573
6574 else
6575
6576 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6584
6585 fi
6586
6587
6588 eval "$ac_cv_use_tipdlg"
6589 if test "$no_cache" != 1; then
6590 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6591 fi
6592
6593 if test "$wxUSE_STARTUP_TIPS" = yes; then
6594 echo "$ac_t""yes" 1>&6
6595 else
6596 echo "$ac_t""no" 1>&6
6597 fi
6598
6599
6600 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
6601 echo "configure:6602: checking for --enable-progressdlg" >&5
6602 no_cache=0
6603 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6604 if test "${enable_progressdlg+set}" = set; then
6605 enableval="$enable_progressdlg"
6606
6607 if test "$enableval" = yes; then
6608 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6609 else
6610 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6611 fi
6612
6613 else
6614
6615 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6616 if test "x$LINE" != x ; then
6617 eval "DEFAULT_$LINE"
6618 else
6619 no_cache=1
6620 fi
6621
6622 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
6623
6624 fi
6625
6626
6627 eval "$ac_cv_use_progressdlg"
6628 if test "$no_cache" != 1; then
6629 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6630 fi
6631
6632 if test "$wxUSE_PROGRESSDLG" = yes; then
6633 echo "$ac_t""yes" 1>&6
6634 else
6635 echo "$ac_t""no" 1>&6
6636 fi
6637
6638
6639 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
6640 echo "configure:6641: checking for --enable-menus" >&5
6641 no_cache=0
6642 # Check whether --enable-menus or --disable-menus was given.
6643 if test "${enable_menus+set}" = set; then
6644 enableval="$enable_menus"
6645
6646 if test "$enableval" = yes; then
6647 ac_cv_use_menus='wxUSE_MENUS=yes'
6648 else
6649 ac_cv_use_menus='wxUSE_MENUS=no'
6650 fi
6651
6652 else
6653
6654 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6655 if test "x$LINE" != x ; then
6656 eval "DEFAULT_$LINE"
6657 else
6658 no_cache=1
6659 fi
6660
6661 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6662
6663 fi
6664
6665
6666 eval "$ac_cv_use_menus"
6667 if test "$no_cache" != 1; then
6668 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6669 fi
6670
6671 if test "$wxUSE_MENUS" = yes; then
6672 echo "$ac_t""yes" 1>&6
6673 else
6674 echo "$ac_t""no" 1>&6
6675 fi
6676
6677
6678 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
6679 echo "configure:6680: checking for --enable-miniframe" >&5
6680 no_cache=0
6681 # Check whether --enable-miniframe or --disable-miniframe was given.
6682 if test "${enable_miniframe+set}" = set; then
6683 enableval="$enable_miniframe"
6684
6685 if test "$enableval" = yes; then
6686 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6687 else
6688 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6689 fi
6690
6691 else
6692
6693 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
6701
6702 fi
6703
6704
6705 eval "$ac_cv_use_miniframe"
6706 if test "$no_cache" != 1; then
6707 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6708 fi
6709
6710 if test "$wxUSE_MINIFRAME" = yes; then
6711 echo "$ac_t""yes" 1>&6
6712 else
6713 echo "$ac_t""no" 1>&6
6714 fi
6715
6716
6717 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
6718 echo "configure:6719: checking for --enable-html" >&5
6719 no_cache=0
6720 # Check whether --enable-html or --disable-html was given.
6721 if test "${enable_html+set}" = set; then
6722 enableval="$enable_html"
6723
6724 if test "$enableval" = yes; then
6725 ac_cv_use_html='wxUSE_HTML=yes'
6726 else
6727 ac_cv_use_html='wxUSE_HTML=no'
6728 fi
6729
6730 else
6731
6732 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6733 if test "x$LINE" != x ; then
6734 eval "DEFAULT_$LINE"
6735 else
6736 no_cache=1
6737 fi
6738
6739 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6740
6741 fi
6742
6743
6744 eval "$ac_cv_use_html"
6745 if test "$no_cache" != 1; then
6746 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6747 fi
6748
6749 if test "$wxUSE_HTML" = yes; then
6750 echo "$ac_t""yes" 1>&6
6751 else
6752 echo "$ac_t""no" 1>&6
6753 fi
6754
6755
6756 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
6757 echo "configure:6758: checking for --enable-tooltips" >&5
6758 no_cache=0
6759 # Check whether --enable-tooltips or --disable-tooltips was given.
6760 if test "${enable_tooltips+set}" = set; then
6761 enableval="$enable_tooltips"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6765 else
6766 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6767 fi
6768
6769 else
6770
6771 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6779
6780 fi
6781
6782
6783 eval "$ac_cv_use_tooltips"
6784 if test "$no_cache" != 1; then
6785 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6786 fi
6787
6788 if test "$wxUSE_TOOLTIPS" = yes; then
6789 echo "$ac_t""yes" 1>&6
6790 else
6791 echo "$ac_t""no" 1>&6
6792 fi
6793
6794
6795 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
6796 echo "configure:6797: checking for --enable-splines" >&5
6797 no_cache=0
6798 # Check whether --enable-splines or --disable-splines was given.
6799 if test "${enable_splines+set}" = set; then
6800 enableval="$enable_splines"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_splines='wxUSE_SPLINES=yes'
6804 else
6805 ac_cv_use_splines='wxUSE_SPLINES=no'
6806 fi
6807
6808 else
6809
6810 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
6818
6819 fi
6820
6821
6822 eval "$ac_cv_use_splines"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_SPLINES" = yes; then
6828 echo "$ac_t""yes" 1>&6
6829 else
6830 echo "$ac_t""no" 1>&6
6831 fi
6832
6833
6834 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
6835 echo "configure:6836: checking for --enable-validators" >&5
6836 no_cache=0
6837 # Check whether --enable-validators or --disable-validators was given.
6838 if test "${enable_validators+set}" = set; then
6839 enableval="$enable_validators"
6840
6841 if test "$enableval" = yes; then
6842 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6843 else
6844 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6845 fi
6846
6847 else
6848
6849 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6850 if test "x$LINE" != x ; then
6851 eval "DEFAULT_$LINE"
6852 else
6853 no_cache=1
6854 fi
6855
6856 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
6857
6858 fi
6859
6860
6861 eval "$ac_cv_use_validators"
6862 if test "$no_cache" != 1; then
6863 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6864 fi
6865
6866 if test "$wxUSE_VALIDATORS" = yes; then
6867 echo "$ac_t""yes" 1>&6
6868 else
6869 echo "$ac_t""no" 1>&6
6870 fi
6871
6872
6873 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
6874 echo "configure:6875: checking for --enable-busyinfo" >&5
6875 no_cache=0
6876 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6877 if test "${enable_busyinfo+set}" = set; then
6878 enableval="$enable_busyinfo"
6879
6880 if test "$enableval" = yes; then
6881 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6882 else
6883 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6884 fi
6885
6886 else
6887
6888 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6889 if test "x$LINE" != x ; then
6890 eval "DEFAULT_$LINE"
6891 else
6892 no_cache=1
6893 fi
6894
6895 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
6896
6897 fi
6898
6899
6900 eval "$ac_cv_use_busyinfo"
6901 if test "$no_cache" != 1; then
6902 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6903 fi
6904
6905 if test "$wxUSE_BUSYINFO" = yes; then
6906 echo "$ac_t""yes" 1>&6
6907 else
6908 echo "$ac_t""no" 1>&6
6909 fi
6910
6911
6912 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
6913 echo "configure:6914: checking for --enable-joystick" >&5
6914 no_cache=0
6915 # Check whether --enable-joystick or --disable-joystick was given.
6916 if test "${enable_joystick+set}" = set; then
6917 enableval="$enable_joystick"
6918
6919 if test "$enableval" = yes; then
6920 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
6921 else
6922 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
6923 fi
6924
6925 else
6926
6927 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
6928 if test "x$LINE" != x ; then
6929 eval "DEFAULT_$LINE"
6930 else
6931 no_cache=1
6932 fi
6933
6934 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
6935
6936 fi
6937
6938
6939 eval "$ac_cv_use_joystick"
6940 if test "$no_cache" != 1; then
6941 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
6942 fi
6943
6944 if test "$wxUSE_JOYSTICK" = yes; then
6945 echo "$ac_t""yes" 1>&6
6946 else
6947 echo "$ac_t""no" 1>&6
6948 fi
6949
6950
6951 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
6952 echo "configure:6953: checking for --enable-metafile" >&5
6953 no_cache=0
6954 # Check whether --enable-metafile or --disable-metafile was given.
6955 if test "${enable_metafile+set}" = set; then
6956 enableval="$enable_metafile"
6957
6958 if test "$enableval" = yes; then
6959 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6960 else
6961 ac_cv_use_metafile='wxUSE_METAFILE=no'
6962 fi
6963
6964 else
6965
6966 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6967 if test "x$LINE" != x ; then
6968 eval "DEFAULT_$LINE"
6969 else
6970 no_cache=1
6971 fi
6972
6973 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6974
6975 fi
6976
6977
6978 eval "$ac_cv_use_metafile"
6979 if test "$no_cache" != 1; then
6980 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6981 fi
6982
6983 if test "$wxUSE_METAFILE" = yes; then
6984 echo "$ac_t""yes" 1>&6
6985 else
6986 echo "$ac_t""no" 1>&6
6987 fi
6988
6989
6990
6991
6992 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
6993 echo "configure:6994: checking for --enable-image" >&5
6994 no_cache=0
6995 # Check whether --enable-image or --disable-image was given.
6996 if test "${enable_image+set}" = set; then
6997 enableval="$enable_image"
6998
6999 if test "$enableval" = yes; then
7000 ac_cv_use_image='wxUSE_IMAGE=yes'
7001 else
7002 ac_cv_use_image='wxUSE_IMAGE=no'
7003 fi
7004
7005 else
7006
7007 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7008 if test "x$LINE" != x ; then
7009 eval "DEFAULT_$LINE"
7010 else
7011 no_cache=1
7012 fi
7013
7014 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7015
7016 fi
7017
7018
7019 eval "$ac_cv_use_image"
7020 if test "$no_cache" != 1; then
7021 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7022 fi
7023
7024 if test "$wxUSE_IMAGE" = yes; then
7025 echo "$ac_t""yes" 1>&6
7026 else
7027 echo "$ac_t""no" 1>&6
7028 fi
7029
7030
7031 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7032 echo "configure:7033: checking for --enable-gif" >&5
7033 no_cache=0
7034 # Check whether --enable-gif or --disable-gif was given.
7035 if test "${enable_gif+set}" = set; then
7036 enableval="$enable_gif"
7037
7038 if test "$enableval" = yes; then
7039 ac_cv_use_gif='wxUSE_GIF=yes'
7040 else
7041 ac_cv_use_gif='wxUSE_GIF=no'
7042 fi
7043
7044 else
7045
7046 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7047 if test "x$LINE" != x ; then
7048 eval "DEFAULT_$LINE"
7049 else
7050 no_cache=1
7051 fi
7052
7053 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7054
7055 fi
7056
7057
7058 eval "$ac_cv_use_gif"
7059 if test "$no_cache" != 1; then
7060 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7061 fi
7062
7063 if test "$wxUSE_GIF" = yes; then
7064 echo "$ac_t""yes" 1>&6
7065 else
7066 echo "$ac_t""no" 1>&6
7067 fi
7068
7069
7070 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7071 echo "configure:7072: checking for --enable-pcx" >&5
7072 no_cache=0
7073 # Check whether --enable-pcx or --disable-pcx was given.
7074 if test "${enable_pcx+set}" = set; then
7075 enableval="$enable_pcx"
7076
7077 if test "$enableval" = yes; then
7078 ac_cv_use_pcx='wxUSE_PCX=yes'
7079 else
7080 ac_cv_use_pcx='wxUSE_PCX=no'
7081 fi
7082
7083 else
7084
7085 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7086 if test "x$LINE" != x ; then
7087 eval "DEFAULT_$LINE"
7088 else
7089 no_cache=1
7090 fi
7091
7092 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7093
7094 fi
7095
7096
7097 eval "$ac_cv_use_pcx"
7098 if test "$no_cache" != 1; then
7099 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7100 fi
7101
7102 if test "$wxUSE_PCX" = yes; then
7103 echo "$ac_t""yes" 1>&6
7104 else
7105 echo "$ac_t""no" 1>&6
7106 fi
7107
7108
7109 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7110 echo "configure:7111: checking for --enable-pnm" >&5
7111 no_cache=0
7112 # Check whether --enable-pnm or --disable-pnm was given.
7113 if test "${enable_pnm+set}" = set; then
7114 enableval="$enable_pnm"
7115
7116 if test "$enableval" = yes; then
7117 ac_cv_use_pnm='wxUSE_PNM=yes'
7118 else
7119 ac_cv_use_pnm='wxUSE_PNM=no'
7120 fi
7121
7122 else
7123
7124 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7125 if test "x$LINE" != x ; then
7126 eval "DEFAULT_$LINE"
7127 else
7128 no_cache=1
7129 fi
7130
7131 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7132
7133 fi
7134
7135
7136 eval "$ac_cv_use_pnm"
7137 if test "$no_cache" != 1; then
7138 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7139 fi
7140
7141 if test "$wxUSE_PNM" = yes; then
7142 echo "$ac_t""yes" 1>&6
7143 else
7144 echo "$ac_t""no" 1>&6
7145 fi
7146
7147
7148 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7149 echo "configure:7150: checking for --enable-pnm" >&5
7150 no_cache=0
7151 # Check whether --enable-pnm or --disable-pnm was given.
7152 if test "${enable_pnm+set}" = set; then
7153 enableval="$enable_pnm"
7154
7155 if test "$enableval" = yes; then
7156 ac_cv_use_pnm='wxUSE_XPM=yes'
7157 else
7158 ac_cv_use_pnm='wxUSE_XPM=no'
7159 fi
7160
7161 else
7162
7163 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7164 if test "x$LINE" != x ; then
7165 eval "DEFAULT_$LINE"
7166 else
7167 no_cache=1
7168 fi
7169
7170 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7171
7172 fi
7173
7174
7175 eval "$ac_cv_use_pnm"
7176 if test "$no_cache" != 1; then
7177 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7178 fi
7179
7180 if test "$wxUSE_XPM" = yes; then
7181 echo "$ac_t""yes" 1>&6
7182 else
7183 echo "$ac_t""no" 1>&6
7184 fi
7185
7186
7187 fi
7188
7189
7190 echo "saving argument cache $wx_arg_cache_file"
7191 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7192
7193
7194
7195 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7196 echo "configure:7197: checking for toolkit" >&5
7197
7198 if test "$wxUSE_GUI" = "yes"; then
7199
7200 if test "$USE_BEOS" = 1; then
7201 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7202 fi
7203
7204 if test "$TOOLKIT_GIVEN" = 1; then
7205 for toolkit in `echo $ALL_TOOLKITS`; do
7206 var=wxUSE_$toolkit
7207 eval "value=\$${var}"
7208 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7209 done
7210 else
7211 for toolkit in `echo $ALL_TOOLKITS`; do
7212 if test "$has_toolkit_in_cache" != 1; then
7213 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7214 else
7215 var=DEFAULT_wxUSE_$toolkit
7216 fi
7217 eval "wxUSE_$toolkit=\$${var}"
7218 done
7219 fi
7220
7221 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7222
7223 case "${host}" in
7224 *-pc-os2_emx )
7225 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7226 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7227 LEX_STEM="lexyy"
7228 ;;
7229 *)
7230 PATH_IFS=':'
7231 LEX_STEM="lex.yy"
7232 ;;
7233 esac
7234
7235 case "$NUM_TOOLKITS" in
7236 1)
7237 ;;
7238 0)
7239 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7240 ;;
7241 *)
7242 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7243 esac
7244
7245 for toolkit in `echo $ALL_TOOLKITS`; do
7246 var=wxUSE_$toolkit
7247 eval "value=\$${var}"
7248 if test "x$value" != x; then
7249 cache_var=CACHE_$toolkit
7250 eval "cache=\$${cache_var}"
7251 if test "$cache" = 1; then
7252 echo "$var=$value" >> ${wx_arg_cache_file}
7253 fi
7254 if test "$value" = 1; then
7255 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7256 echo "$ac_t""$toolkit_echo" 1>&6
7257 fi
7258 fi
7259 done
7260
7261 else
7262 PATH_IFS=':'
7263 echo "$ac_t""base only" 1>&6
7264 fi
7265
7266
7267 cat > confcache <<\EOF
7268 # This file is a shell script that caches the results of configure
7269 # tests run on this system so they can be shared between configure
7270 # scripts and configure runs. It is not useful on other systems.
7271 # If it contains results you don't want to keep, you may remove or edit it.
7272 #
7273 # By default, configure uses ./config.cache as the cache file,
7274 # creating it if it does not exist already. You can give configure
7275 # the --cache-file=FILE option to use a different cache file; that is
7276 # what configure does when it calls configure scripts in
7277 # subdirectories, so they share the cache.
7278 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7279 # config.status only pays attention to the cache file if you give it the
7280 # --recheck option to rerun configure.
7281 #
7282 EOF
7283 # The following way of writing the cache mishandles newlines in values,
7284 # but we know of no workaround that is simple, portable, and efficient.
7285 # So, don't put newlines in cache variables' values.
7286 # Ultrix sh set writes to stderr and can't be redirected directly,
7287 # and sets the high bit in the cache file unless we assign to the vars.
7288 (set) 2>&1 |
7289 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7290 *ac_space=\ *)
7291 # `set' does not quote correctly, so add quotes (double-quote substitution
7292 # turns \\\\ into \\, and sed turns \\ into \).
7293 sed -n \
7294 -e "s/'/'\\\\''/g" \
7295 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7296 ;;
7297 *)
7298 # `set' quotes correctly as required by POSIX, so do not add quotes.
7299 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7300 ;;
7301 esac >> confcache
7302 if cmp -s $cache_file confcache; then
7303 :
7304 else
7305 if test -w $cache_file; then
7306 echo "updating cache $cache_file"
7307 cat confcache > $cache_file
7308 else
7309 echo "not updating unwritable cache $cache_file"
7310 fi
7311 fi
7312 rm -f confcache
7313
7314
7315 if test "$build" != "$host" ; then
7316 CC=$host_alias-gcc
7317 CXX=$host_alias-c++
7318 AR=$host_alias-ar
7319 RANLIB=$host_alias-ranlib
7320 DLLTOOL=$host_alias-dlltool
7321 RESCOMP=$host_alias-windres
7322 LD=$host_alias-ld
7323 NM=$host_alias-nm
7324 STRIP=$host_alias-strip
7325 fi
7326
7327 # Extract the first word of "gcc", so it can be a program name with args.
7328 set dummy gcc; ac_word=$2
7329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7330 echo "configure:7331: checking for $ac_word" >&5
7331 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7333 else
7334 if test -n "$CC"; then
7335 ac_cv_prog_CC="$CC" # Let the user override the test.
7336 else
7337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7338 ac_dummy="$PATH"
7339 for ac_dir in $ac_dummy; do
7340 test -z "$ac_dir" && ac_dir=.
7341 if test -f $ac_dir/$ac_word; then
7342 ac_cv_prog_CC="gcc"
7343 break
7344 fi
7345 done
7346 IFS="$ac_save_ifs"
7347 fi
7348 fi
7349 CC="$ac_cv_prog_CC"
7350 if test -n "$CC"; then
7351 echo "$ac_t""$CC" 1>&6
7352 else
7353 echo "$ac_t""no" 1>&6
7354 fi
7355
7356 if test -z "$CC"; then
7357 # Extract the first word of "cc", so it can be a program name with args.
7358 set dummy cc; ac_word=$2
7359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7360 echo "configure:7361: checking for $ac_word" >&5
7361 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7363 else
7364 if test -n "$CC"; then
7365 ac_cv_prog_CC="$CC" # Let the user override the test.
7366 else
7367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7368 ac_prog_rejected=no
7369 ac_dummy="$PATH"
7370 for ac_dir in $ac_dummy; do
7371 test -z "$ac_dir" && ac_dir=.
7372 if test -f $ac_dir/$ac_word; then
7373 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7374 ac_prog_rejected=yes
7375 continue
7376 fi
7377 ac_cv_prog_CC="cc"
7378 break
7379 fi
7380 done
7381 IFS="$ac_save_ifs"
7382 if test $ac_prog_rejected = yes; then
7383 # We found a bogon in the path, so make sure we never use it.
7384 set dummy $ac_cv_prog_CC
7385 shift
7386 if test $# -gt 0; then
7387 # We chose a different compiler from the bogus one.
7388 # However, it has the same basename, so the bogon will be chosen
7389 # first if we set CC to just the basename; use the full file name.
7390 shift
7391 set dummy "$ac_dir/$ac_word" "$@"
7392 shift
7393 ac_cv_prog_CC="$@"
7394 fi
7395 fi
7396 fi
7397 fi
7398 CC="$ac_cv_prog_CC"
7399 if test -n "$CC"; then
7400 echo "$ac_t""$CC" 1>&6
7401 else
7402 echo "$ac_t""no" 1>&6
7403 fi
7404
7405 if test -z "$CC"; then
7406 case "`uname -s`" in
7407 *win32* | *WIN32*)
7408 # Extract the first word of "cl", so it can be a program name with args.
7409 set dummy cl; ac_word=$2
7410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7411 echo "configure:7412: checking for $ac_word" >&5
7412 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7413 echo $ac_n "(cached) $ac_c" 1>&6
7414 else
7415 if test -n "$CC"; then
7416 ac_cv_prog_CC="$CC" # Let the user override the test.
7417 else
7418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7419 ac_dummy="$PATH"
7420 for ac_dir in $ac_dummy; do
7421 test -z "$ac_dir" && ac_dir=.
7422 if test -f $ac_dir/$ac_word; then
7423 ac_cv_prog_CC="cl"
7424 break
7425 fi
7426 done
7427 IFS="$ac_save_ifs"
7428 fi
7429 fi
7430 CC="$ac_cv_prog_CC"
7431 if test -n "$CC"; then
7432 echo "$ac_t""$CC" 1>&6
7433 else
7434 echo "$ac_t""no" 1>&6
7435 fi
7436 ;;
7437 esac
7438 fi
7439 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7440 fi
7441
7442 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7443 echo "configure:7444: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7444
7445 ac_ext=c
7446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7447 ac_cpp='$CPP $CPPFLAGS'
7448 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7449 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7450 cross_compiling=$ac_cv_prog_cc_cross
7451
7452 cat > conftest.$ac_ext << EOF
7453
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456
7457 main(){return(0);}
7458 EOF
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460 ac_cv_prog_cc_works=yes
7461 # If we can't run a trivial program, we are probably using a cross compiler.
7462 if (./conftest; exit) 2>/dev/null; then
7463 ac_cv_prog_cc_cross=no
7464 else
7465 ac_cv_prog_cc_cross=yes
7466 fi
7467 else
7468 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7470 ac_cv_prog_cc_works=no
7471 fi
7472 rm -fr conftest*
7473 ac_ext=c
7474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7475 ac_cpp='$CPP $CPPFLAGS'
7476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7478 cross_compiling=$ac_cv_prog_cc_cross
7479
7480 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7481 if test $ac_cv_prog_cc_works = no; then
7482 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7483 fi
7484 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7485 echo "configure:7486: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7486 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7487 cross_compiling=$ac_cv_prog_cc_cross
7488
7489 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7490 echo "configure:7491: checking whether we are using GNU C" >&5
7491 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7492 echo $ac_n "(cached) $ac_c" 1>&6
7493 else
7494 cat > conftest.c <<EOF
7495 #ifdef __GNUC__
7496 yes;
7497 #endif
7498 EOF
7499 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7500 ac_cv_prog_gcc=yes
7501 else
7502 ac_cv_prog_gcc=no
7503 fi
7504 fi
7505
7506 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7507
7508 if test $ac_cv_prog_gcc = yes; then
7509 GCC=yes
7510 else
7511 GCC=
7512 fi
7513
7514 ac_test_CFLAGS="${CFLAGS+set}"
7515 ac_save_CFLAGS="$CFLAGS"
7516 CFLAGS=
7517 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7518 echo "configure:7519: checking whether ${CC-cc} accepts -g" >&5
7519 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7521 else
7522 echo 'void f(){}' > conftest.c
7523 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7524 ac_cv_prog_cc_g=yes
7525 else
7526 ac_cv_prog_cc_g=no
7527 fi
7528 rm -f conftest*
7529
7530 fi
7531
7532 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7533 if test "$ac_test_CFLAGS" = set; then
7534 CFLAGS="$ac_save_CFLAGS"
7535 elif test $ac_cv_prog_cc_g = yes; then
7536 if test "$GCC" = yes; then
7537 CFLAGS="-g -O2"
7538 else
7539 CFLAGS="-g"
7540 fi
7541 else
7542 if test "$GCC" = yes; then
7543 CFLAGS="-O2"
7544 else
7545 CFLAGS=
7546 fi
7547 fi
7548
7549
7550 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7551
7552 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7553 echo "configure:7554: checking how to run the C preprocessor" >&5
7554 # On Suns, sometimes $CPP names a directory.
7555 if test -n "$CPP" && test -d "$CPP"; then
7556 CPP=
7557 fi
7558 if test -z "$CPP"; then
7559 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7560 echo $ac_n "(cached) $ac_c" 1>&6
7561 else
7562 # This must be in double quotes, not single quotes, because CPP may get
7563 # substituted into the Makefile and "${CC-cc}" will confuse make.
7564 CPP="${CC-cc} -E"
7565 # On the NeXT, cc -E runs the code through the compiler's parser,
7566 # not just through cpp.
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7570 #include <assert.h>
7571 Syntax Error
7572 EOF
7573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7574 { (eval echo configure:7575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7576 if test -z "$ac_err"; then
7577 :
7578 else
7579 echo "$ac_err" >&5
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 rm -rf conftest*
7583 CPP="${CC-cc} -E -traditional-cpp"
7584 cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587 #include <assert.h>
7588 Syntax Error
7589 EOF
7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7591 { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7593 if test -z "$ac_err"; then
7594 :
7595 else
7596 echo "$ac_err" >&5
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 rm -rf conftest*
7600 CPP="${CC-cc} -nologo -E"
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 #include <assert.h>
7605 Syntax Error
7606 EOF
7607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7608 { (eval echo configure:7609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7610 if test -z "$ac_err"; then
7611 :
7612 else
7613 echo "$ac_err" >&5
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 CPP=/lib/cpp
7618 fi
7619 rm -f conftest*
7620 fi
7621 rm -f conftest*
7622 fi
7623 rm -f conftest*
7624 ac_cv_prog_CPP="$CPP"
7625 fi
7626 CPP="$ac_cv_prog_CPP"
7627 else
7628 ac_cv_prog_CPP="$CPP"
7629 fi
7630 echo "$ac_t""$CPP" 1>&6
7631
7632
7633 if test $ac_cv_prog_gcc = yes; then
7634 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7635 echo "configure:7636: checking whether ${CC-cc} needs -traditional" >&5
7636 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7638 else
7639 ac_pattern="Autoconf.*'x'"
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7643 #include <sgtty.h>
7644 Autoconf TIOCGETP
7645 EOF
7646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7647 egrep "$ac_pattern" >/dev/null 2>&1; then
7648 rm -rf conftest*
7649 ac_cv_prog_gcc_traditional=yes
7650 else
7651 rm -rf conftest*
7652 ac_cv_prog_gcc_traditional=no
7653 fi
7654 rm -f conftest*
7655
7656
7657 if test $ac_cv_prog_gcc_traditional = no; then
7658 cat > conftest.$ac_ext <<EOF
7659 #line 7660 "configure"
7660 #include "confdefs.h"
7661 #include <termio.h>
7662 Autoconf TCGETA
7663 EOF
7664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7665 egrep "$ac_pattern" >/dev/null 2>&1; then
7666 rm -rf conftest*
7667 ac_cv_prog_gcc_traditional=yes
7668 fi
7669 rm -f conftest*
7670
7671 fi
7672 fi
7673
7674 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
7675 if test $ac_cv_prog_gcc_traditional = yes; then
7676 CC="$CC -traditional"
7677 fi
7678 fi
7679
7680
7681
7682 ac_ext=C
7683 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7684 ac_cpp='$CXXCPP $CPPFLAGS'
7685 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7686 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7687 cross_compiling=$ac_cv_prog_cxx_cross
7688
7689
7690 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7691 do
7692 # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7695 echo "configure:7696: checking for $ac_word" >&5
7696 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7698 else
7699 if test -n "$CXX"; then
7700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7701 else
7702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7703 ac_dummy="$PATH"
7704 for ac_dir in $ac_dummy; do
7705 test -z "$ac_dir" && ac_dir=.
7706 if test -f $ac_dir/$ac_word; then
7707 ac_cv_prog_CXX="$ac_prog"
7708 break
7709 fi
7710 done
7711 IFS="$ac_save_ifs"
7712 fi
7713 fi
7714 CXX="$ac_cv_prog_CXX"
7715 if test -n "$CXX"; then
7716 echo "$ac_t""$CXX" 1>&6
7717 else
7718 echo "$ac_t""no" 1>&6
7719 fi
7720
7721 test -n "$CXX" && break
7722 done
7723 test -n "$CXX" || CXX="gcc"
7724
7725
7726 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7727 echo "configure:7728: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
7728
7729 ac_ext=C
7730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7731 ac_cpp='$CXXCPP $CPPFLAGS'
7732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7734 cross_compiling=$ac_cv_prog_cxx_cross
7735
7736 cat > conftest.$ac_ext << EOF
7737
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740
7741 int main(){return(0);}
7742 EOF
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7744 ac_cv_prog_cxx_works=yes
7745 # If we can't run a trivial program, we are probably using a cross compiler.
7746 if (./conftest; exit) 2>/dev/null; then
7747 ac_cv_prog_cxx_cross=no
7748 else
7749 ac_cv_prog_cxx_cross=yes
7750 fi
7751 else
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 ac_cv_prog_cxx_works=no
7755 fi
7756 rm -fr conftest*
7757 ac_ext=C
7758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7759 ac_cpp='$CXXCPP $CPPFLAGS'
7760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7762 cross_compiling=$ac_cv_prog_cxx_cross
7763
7764 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7765 if test $ac_cv_prog_cxx_works = no; then
7766 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7767 fi
7768 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7769 echo "configure:7770: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
7770 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7771 cross_compiling=$ac_cv_prog_cxx_cross
7772
7773 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7774 echo "configure:7775: checking whether we are using GNU C++" >&5
7775 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7777 else
7778 cat > conftest.C <<EOF
7779 #ifdef __GNUC__
7780 yes;
7781 #endif
7782 EOF
7783 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7784 ac_cv_prog_gxx=yes
7785 else
7786 ac_cv_prog_gxx=no
7787 fi
7788 fi
7789
7790 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
7791
7792 if test $ac_cv_prog_gxx = yes; then
7793 GXX=yes
7794 else
7795 GXX=
7796 fi
7797
7798 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7799 ac_save_CXXFLAGS="$CXXFLAGS"
7800 CXXFLAGS=
7801 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7802 echo "configure:7803: checking whether ${CXX-g++} accepts -g" >&5
7803 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6
7805 else
7806 echo 'void f(){}' > conftest.cc
7807 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
7808 ac_cv_prog_cxx_g=yes
7809 else
7810 ac_cv_prog_cxx_g=no
7811 fi
7812 rm -f conftest*
7813
7814 fi
7815
7816 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
7817 if test "$ac_test_CXXFLAGS" = set; then
7818 CXXFLAGS="$ac_save_CXXFLAGS"
7819 elif test $ac_cv_prog_cxx_g = yes; then
7820 if test "$GXX" = yes; then
7821 CXXFLAGS="-g -O2"
7822 else
7823 CXXFLAGS="-g"
7824 fi
7825 else
7826 if test "$GXX" = yes; then
7827 CXXFLAGS="-O2"
7828 else
7829 CXXFLAGS=
7830 fi
7831 fi
7832
7833
7834 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7835 echo "configure:7836: checking how to run the C++ preprocessor" >&5
7836 if test -z "$CXXCPP"; then
7837 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7839 else
7840 ac_ext=C
7841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7842 ac_cpp='$CXXCPP $CPPFLAGS'
7843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7845 cross_compiling=$ac_cv_prog_cxx_cross
7846 CXXCPP="${CXX-g++} -E"
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7850 #include <stdlib.h>
7851 EOF
7852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7853 { (eval echo configure:7854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7855 if test -z "$ac_err"; then
7856 :
7857 else
7858 echo "$ac_err" >&5
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 rm -rf conftest*
7862 CXXCPP=/lib/cpp
7863 fi
7864 rm -f conftest*
7865 ac_cv_prog_CXXCPP="$CXXCPP"
7866 ac_ext=C
7867 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7868 ac_cpp='$CXXCPP $CPPFLAGS'
7869 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7870 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7871 cross_compiling=$ac_cv_prog_cxx_cross
7872 fi
7873 fi
7874 CXXCPP="$ac_cv_prog_CXXCPP"
7875 echo "$ac_t""$CXXCPP" 1>&6
7876
7877
7878 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
7879
7880 ac_ext=c
7881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7882 ac_cpp='$CPP $CPPFLAGS'
7883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7885 cross_compiling=$ac_cv_prog_cc_cross
7886
7887
7888 # Extract the first word of "ranlib", so it can be a program name with args.
7889 set dummy ranlib; ac_word=$2
7890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7891 echo "configure:7892: checking for $ac_word" >&5
7892 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7894 else
7895 if test -n "$RANLIB"; then
7896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7897 else
7898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7899 ac_dummy="$PATH"
7900 for ac_dir in $ac_dummy; do
7901 test -z "$ac_dir" && ac_dir=.
7902 if test -f $ac_dir/$ac_word; then
7903 ac_cv_prog_RANLIB="ranlib"
7904 break
7905 fi
7906 done
7907 IFS="$ac_save_ifs"
7908 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
7909 fi
7910 fi
7911 RANLIB="$ac_cv_prog_RANLIB"
7912 if test -n "$RANLIB"; then
7913 echo "$ac_t""$RANLIB" 1>&6
7914 else
7915 echo "$ac_t""no" 1>&6
7916 fi
7917
7918
7919 # Extract the first word of "ar", so it can be a program name with args.
7920 set dummy ar; ac_word=$2
7921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7922 echo "configure:7923: checking for $ac_word" >&5
7923 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
7924 echo $ac_n "(cached) $ac_c" 1>&6
7925 else
7926 if test -n "$AR"; then
7927 ac_cv_prog_AR="$AR" # Let the user override the test.
7928 else
7929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7930 ac_dummy="$PATH"
7931 for ac_dir in $ac_dummy; do
7932 test -z "$ac_dir" && ac_dir=.
7933 if test -f $ac_dir/$ac_word; then
7934 ac_cv_prog_AR="ar"
7935 break
7936 fi
7937 done
7938 IFS="$ac_save_ifs"
7939 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
7940 fi
7941 fi
7942 AR="$ac_cv_prog_AR"
7943 if test -n "$AR"; then
7944 echo "$ac_t""$AR" 1>&6
7945 else
7946 echo "$ac_t""no" 1>&6
7947 fi
7948
7949
7950 # Find a good install program. We prefer a C program (faster),
7951 # so one script is as good as another. But avoid the broken or
7952 # incompatible versions:
7953 # SysV /etc/install, /usr/sbin/install
7954 # SunOS /usr/etc/install
7955 # IRIX /sbin/install
7956 # AIX /bin/install
7957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7960 # ./install, which can be erroneously created by make from ./install.sh.
7961 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7962 echo "configure:7963: checking for a BSD compatible install" >&5
7963 if test -z "$INSTALL"; then
7964 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7966 else
7967 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
7968 for ac_dir in $PATH; do
7969 # Account for people who put trailing slashes in PATH elements.
7970 case "$ac_dir/" in
7971 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7972 *)
7973 # OSF1 and SCO ODT 3.0 have their own names for install.
7974 # Don't use installbsd from OSF since it installs stuff as root
7975 # by default.
7976 for ac_prog in ginstall scoinst install; do
7977 if test -f $ac_dir/$ac_prog; then
7978 if test $ac_prog = install &&
7979 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7980 # AIX install. It has an incompatible calling convention.
7981 :
7982 else
7983 ac_cv_path_install="$ac_dir/$ac_prog -c"
7984 break 2
7985 fi
7986 fi
7987 done
7988 ;;
7989 esac
7990 done
7991 IFS="$ac_save_IFS"
7992
7993 fi
7994 if test "${ac_cv_path_install+set}" = set; then
7995 INSTALL="$ac_cv_path_install"
7996 else
7997 # As a last resort, use the slow shell script. We don't cache a
7998 # path for INSTALL within a source directory, because that will
7999 # break other packages using the cache if that directory is
8000 # removed, or if the path is relative.
8001 INSTALL="$ac_install_sh"
8002 fi
8003 fi
8004 echo "$ac_t""$INSTALL" 1>&6
8005
8006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8007 # It thinks the first close brace ends the variable substitution.
8008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8009
8010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8011
8012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8013
8014
8015 # Extract the first word of "strip", so it can be a program name with args.
8016 set dummy strip; ac_word=$2
8017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8018 echo "configure:8019: checking for $ac_word" >&5
8019 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8021 else
8022 if test -n "$STRIP"; then
8023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8024 else
8025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8026 ac_dummy="$PATH"
8027 for ac_dir in $ac_dummy; do
8028 test -z "$ac_dir" && ac_dir=.
8029 if test -f $ac_dir/$ac_word; then
8030 ac_cv_prog_STRIP="strip"
8031 break
8032 fi
8033 done
8034 IFS="$ac_save_ifs"
8035 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8036 fi
8037 fi
8038 STRIP="$ac_cv_prog_STRIP"
8039 if test -n "$STRIP"; then
8040 echo "$ac_t""$STRIP" 1>&6
8041 else
8042 echo "$ac_t""no" 1>&6
8043 fi
8044
8045
8046 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8047 echo "configure:8048: checking make for VPATH support" >&5
8048 cat - << EOF > confMake
8049 check : file
8050 cp \$? \$@
8051 cp \$? final_file
8052 EOF
8053
8054 if test ! -d sub ; then
8055 mkdir sub
8056 fi
8057 echo dummy > sub/file
8058 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8059 RESULT=$?
8060 rm -f sub/file check final_file confMake
8061 rmdir sub
8062 if test "$RESULT" = 0; then
8063 echo "$ac_t""yes" 1>&6
8064 else
8065 echo "$ac_t""no" 1>&6
8066 { echo "configure: error:
8067 You need a make-utility that is able to use the variable
8068 VPATH correctly.
8069 If your version of make does not support VPATH correctly,
8070 please install GNU-make (possibly as gmake), and start
8071 configure with the following command:
8072 export MAKE=gmake; ./configure for sh-type shells
8073 setenv MAKE gmake; ./configure for csh-type shells
8074 Also please do remember to use gmake in this case every time
8075 you are trying to compile.
8076 " 1>&2; exit 1; }
8077 fi
8078
8079 for ac_prog in 'bison -y' byacc
8080 do
8081 # Extract the first word of "$ac_prog", so it can be a program name with args.
8082 set dummy $ac_prog; ac_word=$2
8083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8084 echo "configure:8085: checking for $ac_word" >&5
8085 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
8087 else
8088 if test -n "$YACC"; then
8089 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8090 else
8091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8092 ac_dummy="$PATH"
8093 for ac_dir in $ac_dummy; do
8094 test -z "$ac_dir" && ac_dir=.
8095 if test -f $ac_dir/$ac_word; then
8096 ac_cv_prog_YACC="$ac_prog"
8097 break
8098 fi
8099 done
8100 IFS="$ac_save_ifs"
8101 fi
8102 fi
8103 YACC="$ac_cv_prog_YACC"
8104 if test -n "$YACC"; then
8105 echo "$ac_t""$YACC" 1>&6
8106 else
8107 echo "$ac_t""no" 1>&6
8108 fi
8109
8110 test -n "$YACC" && break
8111 done
8112 test -n "$YACC" || YACC="yacc"
8113
8114
8115 # Extract the first word of "flex", so it can be a program name with args.
8116 set dummy flex; ac_word=$2
8117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8118 echo "configure:8119: checking for $ac_word" >&5
8119 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8121 else
8122 if test -n "$LEX"; then
8123 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8124 else
8125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8126 ac_dummy="$PATH"
8127 for ac_dir in $ac_dummy; do
8128 test -z "$ac_dir" && ac_dir=.
8129 if test -f $ac_dir/$ac_word; then
8130 ac_cv_prog_LEX="flex"
8131 break
8132 fi
8133 done
8134 IFS="$ac_save_ifs"
8135 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8136 fi
8137 fi
8138 LEX="$ac_cv_prog_LEX"
8139 if test -n "$LEX"; then
8140 echo "$ac_t""$LEX" 1>&6
8141 else
8142 echo "$ac_t""no" 1>&6
8143 fi
8144
8145 if test -z "$LEXLIB"
8146 then
8147 case "$LEX" in
8148 flex*) ac_lib=fl ;;
8149 *) ac_lib=l ;;
8150 esac
8151 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8152 echo "configure:8153: checking for yywrap in -l$ac_lib" >&5
8153 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8156 else
8157 ac_save_LIBS="$LIBS"
8158 LIBS="-l$ac_lib $LIBS"
8159 cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165 char yywrap();
8166
8167 int main() {
8168 yywrap()
8169 ; return 0; }
8170 EOF
8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8172 rm -rf conftest*
8173 eval "ac_cv_lib_$ac_lib_var=yes"
8174 else
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 rm -rf conftest*
8178 eval "ac_cv_lib_$ac_lib_var=no"
8179 fi
8180 rm -f conftest*
8181 LIBS="$ac_save_LIBS"
8182
8183 fi
8184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 LEXLIB="-l$ac_lib"
8187 else
8188 echo "$ac_t""no" 1>&6
8189 fi
8190
8191 fi
8192
8193
8194 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8195 echo "configure:8196: checking whether ln -s works" >&5
8196 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8198 else
8199 rm -f conftestdata
8200 if ln -s X conftestdata 2>/dev/null
8201 then
8202 rm -f conftestdata
8203 ac_cv_prog_LN_S="ln -s"
8204 else
8205 ac_cv_prog_LN_S=ln
8206 fi
8207 fi
8208 LN_S="$ac_cv_prog_LN_S"
8209 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8210 echo "$ac_t""yes" 1>&6
8211 else
8212 echo "$ac_t""no" 1>&6
8213 fi
8214
8215
8216
8217 SEARCH_INCLUDE="\
8218 /usr/local/include \
8219 \
8220 /usr/Motif-1.2/include \
8221 /usr/Motif-2.1/include \
8222 \
8223 /usr/include/Motif1.2 \
8224 /opt/xpm/include/X11 \
8225 /opt/GBxpm/include/ \
8226 /opt/GBxpm/X11/include/ \
8227 \
8228 /usr/Motif1.2/include \
8229 /usr/dt/include \
8230 /usr/openwin/include \
8231 \
8232 /usr/include/Xm \
8233 \
8234 /usr/X11R6/include \
8235 /usr/X11R6.4/include \
8236 /usr/X11R5/include \
8237 /usr/X11R4/include \
8238 \
8239 /usr/include/X11R6 \
8240 /usr/include/X11R5 \
8241 /usr/include/X11R4 \
8242 \
8243 /usr/local/X11R6/include \
8244 /usr/local/X11R5/include \
8245 /usr/local/X11R4/include \
8246 \
8247 /usr/local/include/X11R6 \
8248 /usr/local/include/X11R5 \
8249 /usr/local/include/X11R4 \
8250 \
8251 /usr/X11/include \
8252 /usr/include/X11 \
8253 /usr/local/X11/include \
8254 /usr/local/include/X11 \
8255 \
8256 /usr/X386/include \
8257 /usr/x386/include \
8258 /usr/XFree86/include/X11 \
8259 \
8260 X:/XFree86/include \
8261 X:/XFree86/include/X11 \
8262 \
8263 /usr/include/gtk \
8264 /usr/local/include/gtk \
8265 /usr/include/glib \
8266 /usr/local/include/glib \
8267 \
8268 /usr/include/qt \
8269 /usr/local/include/qt \
8270 \
8271 /usr/include/windows \
8272 /usr/include/wine \
8273 /usr/local/include/wine \
8274 \
8275 /usr/unsupported/include \
8276 /usr/athena/include \
8277 /usr/local/x11r5/include \
8278 /usr/lpp/Xamples/include \
8279 \
8280 /usr/openwin/share/include \
8281 \
8282 /usr/include"
8283
8284 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8285
8286
8287 cat > confcache <<\EOF
8288 # This file is a shell script that caches the results of configure
8289 # tests run on this system so they can be shared between configure
8290 # scripts and configure runs. It is not useful on other systems.
8291 # If it contains results you don't want to keep, you may remove or edit it.
8292 #
8293 # By default, configure uses ./config.cache as the cache file,
8294 # creating it if it does not exist already. You can give configure
8295 # the --cache-file=FILE option to use a different cache file; that is
8296 # what configure does when it calls configure scripts in
8297 # subdirectories, so they share the cache.
8298 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8299 # config.status only pays attention to the cache file if you give it the
8300 # --recheck option to rerun configure.
8301 #
8302 EOF
8303 # The following way of writing the cache mishandles newlines in values,
8304 # but we know of no workaround that is simple, portable, and efficient.
8305 # So, don't put newlines in cache variables' values.
8306 # Ultrix sh set writes to stderr and can't be redirected directly,
8307 # and sets the high bit in the cache file unless we assign to the vars.
8308 (set) 2>&1 |
8309 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8310 *ac_space=\ *)
8311 # `set' does not quote correctly, so add quotes (double-quote substitution
8312 # turns \\\\ into \\, and sed turns \\ into \).
8313 sed -n \
8314 -e "s/'/'\\\\''/g" \
8315 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8316 ;;
8317 *)
8318 # `set' quotes correctly as required by POSIX, so do not add quotes.
8319 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8320 ;;
8321 esac >> confcache
8322 if cmp -s $cache_file confcache; then
8323 :
8324 else
8325 if test -w $cache_file; then
8326 echo "updating cache $cache_file"
8327 cat confcache > $cache_file
8328 else
8329 echo "not updating unwritable cache $cache_file"
8330 fi
8331 fi
8332 rm -f confcache
8333
8334
8335
8336 AFMINSTALL=
8337
8338 if test "$wxUSE_GUI" = "yes"; then
8339 USE_GUI=1
8340
8341 TOOLKIT=
8342 TOOLKIT_INCLUDE=
8343
8344 GUI_TK_LIBRARY=
8345 GUI_TK_LINK=
8346
8347 WXGTK12=
8348 WXGTK127=
8349 WXGTK20=
8350
8351 WXWINE=
8352
8353 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8354 if test "$cross_compiling" = "yes" ; then
8355 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8356 else
8357 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8358 echo "configure:8359: checking for Windows headers" >&5
8359
8360 ac_find_includes=
8361 for ac_dir in $SEARCH_INCLUDE;
8362 do
8363 if test -f "$ac_dir/windows.h"; then
8364 ac_find_includes=$ac_dir
8365 break
8366 fi
8367 done
8368
8369 if test "$ac_find_includes" != "" ; then
8370 echo "$ac_t""found $ac_find_includes" 1>&6
8371 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8372 else
8373 echo "$ac_t""no" 1>&6
8374 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8375 fi
8376 fi
8377
8378 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8379 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
8380
8381 if test "$wxUSE_ODBC" = "yes" ; then
8382 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8383 fi
8384
8385 if test "$wxUSE_MINGW" = 1; then
8386 LDFLAGS="$LDFLAGS -mwindows"
8387 fi
8388
8389 TOOLKIT=MSW
8390 GUIDIST=MSW_DIST
8391
8392 RCINCSWITCH="--include-dir"
8393 RCDEFSWITCH="--define"
8394 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8395 RCINPUTSWITCH="-i"
8396 RCOUTPUTSWITCH="-o"
8397 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8398
8399 RESPROGRAM="\$(RES_PROGRAM)"
8400 fi
8401
8402 if test "$wxUSE_GTK" = 1; then
8403 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8404 echo "configure:8405: checking for GTK+ version" >&5
8405
8406 gtk_version_cached=1
8407 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8409 else
8410
8411 gtk_version_cached=0
8412 echo "$ac_t""""" 1>&6
8413
8414 wx_cv_lib_gtk=
8415 if test "x$wxUSE_GTK2" = "xyes"; then
8416 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8417 if test "${with_gtk_prefix+set}" = set; then
8418 withval="$with_gtk_prefix"
8419 gtk_config_prefix="$withval"
8420 else
8421 gtk_config_prefix=""
8422 fi
8423
8424 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8425 if test "${with_gtk_exec_prefix+set}" = set; then
8426 withval="$with_gtk_exec_prefix"
8427 gtk_config_exec_prefix="$withval"
8428 else
8429 gtk_config_exec_prefix=""
8430 fi
8431
8432 # Check whether --enable-gtktest or --disable-gtktest was given.
8433 if test "${enable_gtktest+set}" = set; then
8434 enableval="$enable_gtktest"
8435 :
8436 else
8437 enable_gtktest=yes
8438 fi
8439
8440
8441 for module in .
8442 do
8443 case "$module" in
8444 gthread)
8445 gtk_config_args="$gtk_config_args gthread"
8446 ;;
8447 esac
8448 done
8449
8450 if test x$gtk_config_exec_prefix != x ; then
8451 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8452 if test x${GTK_CONFIG_2_0+set} != xset ; then
8453 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8454 fi
8455 fi
8456 if test x$gtk_config_prefix != x ; then
8457 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8458 if test x${GTK_CONFIG_2_0+set} != xset ; then
8459 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8460 fi
8461 fi
8462
8463 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8464 set dummy gtk-config-2.0; ac_word=$2
8465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8466 echo "configure:8467: checking for $ac_word" >&5
8467 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8469 else
8470 case "$GTK_CONFIG_2_0" in
8471 /*)
8472 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8473 ;;
8474 ?:/*)
8475 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8476 ;;
8477 *)
8478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8479 ac_dummy="$PATH"
8480 for ac_dir in $ac_dummy; do
8481 test -z "$ac_dir" && ac_dir=.
8482 if test -f $ac_dir/$ac_word; then
8483 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8484 break
8485 fi
8486 done
8487 IFS="$ac_save_ifs"
8488 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8489 ;;
8490 esac
8491 fi
8492 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8493 if test -n "$GTK_CONFIG_2_0"; then
8494 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8495 else
8496 echo "$ac_t""no" 1>&6
8497 fi
8498
8499 min_gtk_version=1.3.1
8500 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8501 echo "configure:8502: checking for GTK - version >= $min_gtk_version" >&5
8502 no_gtk=""
8503 if test "$GTK_CONFIG_2_0" = "no" ; then
8504 no_gtk=yes
8505 else
8506 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8507 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8508 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8509 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8510 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8511 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8512 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8514 if test "x$enable_gtktest" = "xyes" ; then
8515 ac_save_CFLAGS="$CFLAGS"
8516 ac_save_LIBS="$LIBS"
8517 CFLAGS="$CFLAGS $GTK_CFLAGS"
8518 LIBS="$GTK_LIBS $LIBS"
8519 rm -f conf.gtktest
8520 if test "$cross_compiling" = yes; then
8521 echo $ac_n "cross compiling; assumed OK... $ac_c"
8522 else
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8526
8527 #include <gtk/gtk.h>
8528 #include <stdio.h>
8529 #include <stdlib.h>
8530
8531 int
8532 main ()
8533 {
8534 int major, minor, micro;
8535 char *tmp_version;
8536
8537 system ("touch conf.gtktest");
8538
8539 /* HP/UX 9 (%@#!) writes to sscanf strings */
8540 tmp_version = g_strdup("$min_gtk_version");
8541 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8542 printf("%s, bad version string\n", "$min_gtk_version");
8543 exit(1);
8544 }
8545
8546 if ((gtk_major_version != $gtk_config_major_version) ||
8547 (gtk_minor_version != $gtk_config_minor_version) ||
8548 (gtk_micro_version != $gtk_config_micro_version))
8549 {
8550 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8551 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8552 gtk_major_version, gtk_minor_version, gtk_micro_version);
8553 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8554 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8555 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8556 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8557 printf("*** required on your system.\n");
8558 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8559 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8560 printf("*** before re-running configure\n");
8561 }
8562 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8563 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8564 (gtk_minor_version != GTK_MINOR_VERSION) ||
8565 (gtk_micro_version != GTK_MICRO_VERSION))
8566 {
8567 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8568 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8569 printf("*** library (version %d.%d.%d)\n",
8570 gtk_major_version, gtk_minor_version, gtk_micro_version);
8571 }
8572 #endif /* defined (GTK_MAJOR_VERSION) ... */
8573 else
8574 {
8575 if ((gtk_major_version > major) ||
8576 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8577 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8578 {
8579 return 0;
8580 }
8581 else
8582 {
8583 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8584 gtk_major_version, gtk_minor_version, gtk_micro_version);
8585 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8586 major, minor, micro);
8587 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8588 printf("***\n");
8589 printf("*** If you have already installed a sufficiently new version, this error\n");
8590 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8591 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8592 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8593 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8594 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8595 printf("*** so that the correct libraries are found at run-time))\n");
8596 }
8597 }
8598 return 1;
8599 }
8600
8601 EOF
8602 if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8603 then
8604 :
8605 else
8606 echo "configure: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8608 rm -fr conftest*
8609 no_gtk=yes
8610 fi
8611 rm -fr conftest*
8612 fi
8613
8614 CFLAGS="$ac_save_CFLAGS"
8615 LIBS="$ac_save_LIBS"
8616 fi
8617 fi
8618 if test "x$no_gtk" = x ; then
8619 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8620 wx_cv_lib_gtk=2.0
8621 else
8622 echo "$ac_t""no" 1>&6
8623 if test "$GTK_CONFIG_2_0" = "no" ; then
8624 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8625 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8626 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8627 echo "*** full path to gtk-config-2.0."
8628 else
8629 if test -f conf.gtktest ; then
8630 :
8631 else
8632 echo "*** Could not run GTK test program, checking why..."
8633 CFLAGS="$CFLAGS $GTK_CFLAGS"
8634 LIBS="$LIBS $GTK_LIBS"
8635 cat > conftest.$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8638
8639 #include <gtk/gtk.h>
8640 #include <stdio.h>
8641
8642 int main() {
8643 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8644 ; return 0; }
8645 EOF
8646 if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647 rm -rf conftest*
8648 echo "*** The test program compiled, but did not run. This usually means"
8649 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8650 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8651 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8652 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8653 echo "*** is required on your system"
8654 echo "***"
8655 echo "*** If you have an old version installed, it is best to remove it, although"
8656 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8657 echo "***"
8658 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8659 echo "*** came with the system with the command"
8660 echo "***"
8661 echo "*** rpm --erase --nodeps gtk gtk-devel"
8662 else
8663 echo "configure: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8665 rm -rf conftest*
8666 echo "*** The test program failed to compile or link. See the file config.log for the"
8667 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8668 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8669 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
8670 fi
8671 rm -f conftest*
8672 CFLAGS="$ac_save_CFLAGS"
8673 LIBS="$ac_save_LIBS"
8674 fi
8675 fi
8676 GTK_CFLAGS=""
8677 GTK_LIBS=""
8678 gthread
8679 fi
8680
8681
8682 rm -f conf.gtktest
8683
8684 fi
8685
8686 if test -z "$wx_cv_lib_gtk"; then
8687
8688 if test x$gtk_config_exec_prefix != x ; then
8689 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8690 if test x${GTK_CONFIG+set} != xset ; then
8691 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8692 fi
8693 fi
8694 if test x$gtk_config_prefix != x ; then
8695 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8696 if test x${GTK_CONFIG+set} != xset ; then
8697 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8698 fi
8699 fi
8700
8701 # Extract the first word of "gtk-config", so it can be a program name with args.
8702 set dummy gtk-config; ac_word=$2
8703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8704 echo "configure:8705: checking for $ac_word" >&5
8705 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
8707 else
8708 case "$GTK_CONFIG" in
8709 /*)
8710 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8711 ;;
8712 ?:/*)
8713 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8714 ;;
8715 *)
8716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8717 ac_dummy="$PATH"
8718 for ac_dir in $ac_dummy; do
8719 test -z "$ac_dir" && ac_dir=.
8720 if test -f $ac_dir/$ac_word; then
8721 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8722 break
8723 fi
8724 done
8725 IFS="$ac_save_ifs"
8726 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8727 ;;
8728 esac
8729 fi
8730 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8731 if test -n "$GTK_CONFIG"; then
8732 echo "$ac_t""$GTK_CONFIG" 1>&6
8733 else
8734 echo "$ac_t""no" 1>&6
8735 fi
8736
8737 min_gtk_version=1.2.7
8738 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8739 echo "configure:8740: checking for GTK - version >= $min_gtk_version" >&5
8740 no_gtk=""
8741 if test "$GTK_CONFIG" != "no" ; then
8742 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8743 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8744 ac_save_CFLAGS="$CFLAGS"
8745 ac_save_LIBS="$LIBS"
8746 CFLAGS="$CFLAGS $GTK_CFLAGS"
8747 LIBS="$LIBS $GTK_LIBS"
8748 if test "$cross_compiling" = yes; then
8749 echo $ac_n "cross compiling; assumed OK... $ac_c"
8750 else
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754
8755 #include <gtk/gtk.h>
8756 #include <gtk/gtkfeatures.h>
8757 #include <stdio.h>
8758 #include <stdlib.h>
8759
8760 int
8761 main ()
8762 {
8763 int major, minor, micro;
8764
8765 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8766 printf("%s, bad version string\n", "$min_gtk_version");
8767 exit(1);
8768 }
8769
8770 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8771 (GTK_MINOR_VERSION != gtk_minor_version) ||
8772 (GTK_MICRO_VERSION != gtk_micro_version)) {
8773 printf("Headers vs. library version mismatch!\n");
8774 exit(1);
8775 }
8776
8777 if (gtk_minor_version == 1) return FALSE;
8778
8779 return !((gtk_major_version > major) ||
8780 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8781 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8782 }
8783
8784 EOF
8785 if { (eval echo configure:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8786 then
8787 :
8788 else
8789 echo "configure: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 rm -fr conftest*
8792 no_gtk=yes
8793 fi
8794 rm -fr conftest*
8795 fi
8796
8797 CFLAGS="$ac_save_CFLAGS"
8798 LIBS="$ac_save_LIBS"
8799 else
8800 no_gtk=yes
8801 fi
8802 if test "x$no_gtk" = x ; then
8803 echo "$ac_t""yes" 1>&6
8804 wx_cv_lib_gtk=1.2.7
8805 else
8806 echo "$ac_t""no" 1>&6
8807 GTK_CFLAGS=""
8808 GTK_LIBS=""
8809 :
8810 fi
8811
8812
8813
8814 fi
8815
8816 if test -z "$wx_cv_lib_gtk"; then
8817
8818 if test x$gtk_config_exec_prefix != x ; then
8819 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8820 if test x${GTK_CONFIG+set} != xset ; then
8821 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8822 fi
8823 fi
8824 if test x$gtk_config_prefix != x ; then
8825 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8826 if test x${GTK_CONFIG+set} != xset ; then
8827 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8828 fi
8829 fi
8830
8831 # Extract the first word of "gtk-config", so it can be a program name with args.
8832 set dummy gtk-config; ac_word=$2
8833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8834 echo "configure:8835: checking for $ac_word" >&5
8835 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8836 echo $ac_n "(cached) $ac_c" 1>&6
8837 else
8838 case "$GTK_CONFIG" in
8839 /*)
8840 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8841 ;;
8842 ?:/*)
8843 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8844 ;;
8845 *)
8846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8847 ac_dummy="$PATH"
8848 for ac_dir in $ac_dummy; do
8849 test -z "$ac_dir" && ac_dir=.
8850 if test -f $ac_dir/$ac_word; then
8851 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8852 break
8853 fi
8854 done
8855 IFS="$ac_save_ifs"
8856 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8857 ;;
8858 esac
8859 fi
8860 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8861 if test -n "$GTK_CONFIG"; then
8862 echo "$ac_t""$GTK_CONFIG" 1>&6
8863 else
8864 echo "$ac_t""no" 1>&6
8865 fi
8866
8867 min_gtk_version=1.2.3
8868 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8869 echo "configure:8870: checking for GTK - version >= $min_gtk_version" >&5
8870 no_gtk=""
8871 if test "$GTK_CONFIG" != "no" ; then
8872 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8873 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8874 ac_save_CFLAGS="$CFLAGS"
8875 ac_save_LIBS="$LIBS"
8876 CFLAGS="$CFLAGS $GTK_CFLAGS"
8877 LIBS="$LIBS $GTK_LIBS"
8878 if test "$cross_compiling" = yes; then
8879 echo $ac_n "cross compiling; assumed OK... $ac_c"
8880 else
8881 cat > conftest.$ac_ext <<EOF
8882 #line 8883 "configure"
8883 #include "confdefs.h"
8884
8885 #include <gtk/gtk.h>
8886 #include <gtk/gtkfeatures.h>
8887 #include <stdio.h>
8888 #include <stdlib.h>
8889
8890 int
8891 main ()
8892 {
8893 int major, minor, micro;
8894
8895 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8896 printf("%s, bad version string\n", "$min_gtk_version");
8897 exit(1);
8898 }
8899
8900 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8901 (GTK_MINOR_VERSION != gtk_minor_version) ||
8902 (GTK_MICRO_VERSION != gtk_micro_version)) {
8903 printf("Headers vs. library version mismatch!\n");
8904 exit(1);
8905 }
8906
8907 if (gtk_minor_version == 1) return FALSE;
8908
8909 return !((gtk_major_version > major) ||
8910 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8911 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8912 }
8913
8914 EOF
8915 if { (eval echo configure:8916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8916 then
8917 :
8918 else
8919 echo "configure: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 rm -fr conftest*
8922 no_gtk=yes
8923 fi
8924 rm -fr conftest*
8925 fi
8926
8927 CFLAGS="$ac_save_CFLAGS"
8928 LIBS="$ac_save_LIBS"
8929 else
8930 no_gtk=yes
8931 fi
8932 if test "x$no_gtk" = x ; then
8933 echo "$ac_t""yes" 1>&6
8934 wx_cv_lib_gtk=1.2.3
8935 else
8936 echo "$ac_t""no" 1>&6
8937 GTK_CFLAGS=""
8938 GTK_LIBS=""
8939 :
8940 fi
8941
8942
8943
8944 fi
8945
8946 if test -z "$wx_cv_lib_gtk"; then
8947 wx_cv_lib_gtk=none
8948 fi
8949
8950
8951 fi
8952
8953
8954 if test "$gtk_version_cached" = 1; then
8955 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
8956 fi
8957
8958 case "$wx_cv_lib_gtk" in
8959 2.0) WXGTK20=1
8960 ;;
8961 1.2.7) WXGTK127=1
8962 ;;
8963 1.2.3) WXGTK12=1
8964 ;;
8965 *) { echo "configure: error:
8966 Please check that gtk-config is in path, the directory
8967 where GTK+ libraries are installed (returned by
8968 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
8969 equivalent variable and GTK+ is version 1.2.3 or above.
8970 " 1>&2; exit 1; }
8971 ;;
8972 esac
8973
8974 TOOLKIT_INCLUDE="$GTK_CFLAGS"
8975 GUI_TK_LIBRARY="$GTK_LIBS"
8976
8977 AFMINSTALL=afminstall
8978 TOOLKIT=GTK
8979 GUIDIST=GTK_DIST
8980
8981 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
8982 echo "configure:8983: checking for gdk_im_open in -lgdk" >&5
8983 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
8984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8986 else
8987 ac_save_LIBS="$LIBS"
8988 LIBS="-lgdk $LIBS"
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 /* Override any gcc2 internal prototype to avoid an error. */
8993 /* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
8995 char gdk_im_open();
8996
8997 int main() {
8998 gdk_im_open()
8999 ; return 0; }
9000 EOF
9001 if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9002 rm -rf conftest*
9003 eval "ac_cv_lib_$ac_lib_var=yes"
9004 else
9005 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9007 rm -rf conftest*
9008 eval "ac_cv_lib_$ac_lib_var=no"
9009 fi
9010 rm -f conftest*
9011 LIBS="$ac_save_LIBS"
9012
9013 fi
9014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9015 echo "$ac_t""yes" 1>&6
9016 cat >> confdefs.h <<\EOF
9017 #define HAVE_XIM 1
9018 EOF
9019
9020 else
9021 echo "$ac_t""no" 1>&6
9022 fi
9023
9024 fi
9025
9026 if test "$wxUSE_MGL" = 1; then
9027
9028 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9029 echo "configure:9030: checking for SciTech MGL library" >&5
9030 if test "x$MGL_ROOT" = x ; then
9031 echo "$ac_t""not found" 1>&6
9032 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9033 else
9034 echo "$ac_t""$MGL_ROOT" 1>&6
9035 fi
9036
9037 MGL_OS=linux/gcc/glibc
9038 MGL_LIB_TYPE=""
9039
9040 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9041 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9042 MGL_LIB_TYPE=debug
9043 fi
9044 fi
9045 if test "x$MGL_LIB_TYPE" = x ; then
9046 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9047 MGL_LIB_TYPE=release
9048 else
9049 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9050 fi
9051 fi
9052
9053 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9054 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9055
9056 AFMINSTALL=afminstall
9057 TOOLKIT=MGL
9058 GUIDIST=MGL_DIST
9059 fi
9060
9061 if test "$wxUSE_WINE" = 1; then
9062 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9063 echo "configure:9064: checking for WINE includes" >&5
9064
9065 ac_find_includes=
9066 for ac_dir in $SEARCH_INCLUDE;
9067 do
9068 if test -f "$ac_dir/windows.h"; then
9069 ac_find_includes=$ac_dir
9070 break
9071 fi
9072 done
9073
9074 if test "$ac_find_includes" != "" ; then
9075 echo "$ac_t""found $ac_find_includes" 1>&6
9076 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9077 else
9078 echo "$ac_t""no" 1>&6
9079 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9080 fi
9081
9082 XPM_LINK=""
9083 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9084 echo "configure:9085: checking for Xpm library" >&5
9085
9086 ac_find_libraries=
9087 for ac_dir in $SEARCH_LIB;
9088 do
9089 for ac_extension in a so sl; do
9090 if test -f "$ac_dir/libXpm.$ac_extension"; then
9091 ac_find_libraries=$ac_dir
9092 break 2
9093 fi
9094 done
9095 done
9096
9097 if test "$ac_find_libraries" != "" ; then
9098 GUI_TK_LIBRARY="-L$ac_find_libraries"
9099 XPM_LINK="-lXpm"
9100 cat >> confdefs.h <<\EOF
9101 #define wxHAVE_LIB_XPM 1
9102 EOF
9103
9104 echo "$ac_t""found at $ac_find_libraries" 1>&6
9105 else
9106 echo "$ac_t""no" 1>&6
9107 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9108 fi
9109
9110 MESA_LINK=""
9111 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9112 echo "configure:9113: checking for Mesa library" >&5
9113
9114 ac_find_libraries=
9115 for ac_dir in $SEARCH_LIB;
9116 do
9117 for ac_extension in a so sl; do
9118 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9119 ac_find_libraries=$ac_dir
9120 break 2
9121 fi
9122 done
9123 done
9124
9125 if test "$ac_find_libraries" != "" ; then
9126 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9127 MESA_LINK="-lMesaGL"
9128 echo "$ac_t""found at $ac_find_libraries" 1>&6
9129 else
9130 { echo "configure: error: no" 1>&2; exit 1; }
9131 fi
9132
9133 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9134 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9135 WXWINE=1
9136 TOOLKIT=MSW
9137 GUIDIST=MSW_DIST
9138 fi
9139
9140
9141 # If we find X, set shell vars x_includes and x_libraries to the
9142 # paths, otherwise set no_x=yes.
9143 # Uses ac_ vars as temps to allow command line to override cache and checks.
9144 # --without-x overrides everything else, but does not touch the cache.
9145 echo $ac_n "checking for X""... $ac_c" 1>&6
9146 echo "configure:9147: checking for X" >&5
9147
9148 # Check whether --with-x or --without-x was given.
9149 if test "${with_x+set}" = set; then
9150 withval="$with_x"
9151 :
9152 fi
9153
9154 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9155 if test "x$with_x" = xno; then
9156 # The user explicitly disabled X.
9157 have_x=disabled
9158 else
9159 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9160 # Both variables are already set.
9161 have_x=yes
9162 else
9163 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9165 else
9166 # One or both of the vars are not set, and there is no cached value.
9167 ac_x_includes=NO ac_x_libraries=NO
9168 rm -fr conftestdir
9169 if mkdir conftestdir; then
9170 cd conftestdir
9171 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9172 cat > Imakefile <<'EOF'
9173 acfindx:
9174 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9175 EOF
9176 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9178 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9179 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9180 for ac_extension in a so sl; do
9181 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9182 test -f $ac_im_libdir/libX11.$ac_extension; then
9183 ac_im_usrlibdir=$ac_im_libdir; break
9184 fi
9185 done
9186 # Screen out bogus values from the imake configuration. They are
9187 # bogus both because they are the default anyway, and because
9188 # using them would break gcc on systems where it needs fixed includes.
9189 case "$ac_im_incroot" in
9190 /usr/include) ;;
9191 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9192 esac
9193 case "$ac_im_usrlibdir" in
9194 /usr/lib | /lib) ;;
9195 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9196 esac
9197 fi
9198 cd ..
9199 rm -fr conftestdir
9200 fi
9201
9202 if test "$ac_x_includes" = NO; then
9203 # Guess where to find include files, by looking for this one X11 .h file.
9204 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9205
9206 # First, try using that file with no special directory specified.
9207 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure"
9209 #include "confdefs.h"
9210 #include <$x_direct_test_include>
9211 EOF
9212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9213 { (eval echo configure:9214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9215 if test -z "$ac_err"; then
9216 rm -rf conftest*
9217 # We can compile using X headers with no special include directory.
9218 ac_x_includes=
9219 else
9220 echo "$ac_err" >&5
9221 echo "configure: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9223 rm -rf conftest*
9224 # Look for the header file in a standard set of common directories.
9225 # Check X11 before X11Rn because it is often a symlink to the current release.
9226 for ac_dir in \
9227 /usr/X11/include \
9228 /usr/X11R6/include \
9229 /usr/X11R5/include \
9230 /usr/X11R4/include \
9231 \
9232 /usr/include/X11 \
9233 /usr/include/X11R6 \
9234 /usr/include/X11R5 \
9235 /usr/include/X11R4 \
9236 \
9237 /usr/local/X11/include \
9238 /usr/local/X11R6/include \
9239 /usr/local/X11R5/include \
9240 /usr/local/X11R4/include \
9241 \
9242 /usr/local/include/X11 \
9243 /usr/local/include/X11R6 \
9244 /usr/local/include/X11R5 \
9245 /usr/local/include/X11R4 \
9246 \
9247 /usr/X386/include \
9248 /usr/x386/include \
9249 /usr/XFree86/include/X11 \
9250 \
9251 /usr/include \
9252 /usr/local/include \
9253 /usr/unsupported/include \
9254 /usr/athena/include \
9255 /usr/local/x11r5/include \
9256 /usr/lpp/Xamples/include \
9257 \
9258 /usr/openwin/include \
9259 /usr/openwin/share/include \
9260 ; \
9261 do
9262 if test -r "$ac_dir/$x_direct_test_include"; then
9263 ac_x_includes=$ac_dir
9264 break
9265 fi
9266 done
9267 fi
9268 rm -f conftest*
9269 fi # $ac_x_includes = NO
9270
9271 if test "$ac_x_libraries" = NO; then
9272 # Check for the libraries.
9273
9274 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9275 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9276
9277 # See if we find them without any special options.
9278 # Don't add to $LIBS permanently.
9279 ac_save_LIBS="$LIBS"
9280 LIBS="-l$x_direct_test_library $LIBS"
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9284
9285 int main() {
9286 ${x_direct_test_function}()
9287 ; return 0; }
9288 EOF
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9290 rm -rf conftest*
9291 LIBS="$ac_save_LIBS"
9292 # We can link X programs with no special library path.
9293 ac_x_libraries=
9294 else
9295 echo "configure: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9297 rm -rf conftest*
9298 LIBS="$ac_save_LIBS"
9299 # First see if replacing the include by lib works.
9300 # Check X11 before X11Rn because it is often a symlink to the current release.
9301 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9302 /usr/X11/lib \
9303 /usr/X11R6/lib \
9304 /usr/X11R5/lib \
9305 /usr/X11R4/lib \
9306 \
9307 /usr/lib/X11 \
9308 /usr/lib/X11R6 \
9309 /usr/lib/X11R5 \
9310 /usr/lib/X11R4 \
9311 \
9312 /usr/local/X11/lib \
9313 /usr/local/X11R6/lib \
9314 /usr/local/X11R5/lib \
9315 /usr/local/X11R4/lib \
9316 \
9317 /usr/local/lib/X11 \
9318 /usr/local/lib/X11R6 \
9319 /usr/local/lib/X11R5 \
9320 /usr/local/lib/X11R4 \
9321 \
9322 /usr/X386/lib \
9323 /usr/x386/lib \
9324 /usr/XFree86/lib/X11 \
9325 \
9326 /usr/lib \
9327 /usr/local/lib \
9328 /usr/unsupported/lib \
9329 /usr/athena/lib \
9330 /usr/local/x11r5/lib \
9331 /usr/lpp/Xamples/lib \
9332 /lib/usr/lib/X11 \
9333 \
9334 /usr/openwin/lib \
9335 /usr/openwin/share/lib \
9336 ; \
9337 do
9338 for ac_extension in a so sl; do
9339 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9340 ac_x_libraries=$ac_dir
9341 break 2
9342 fi
9343 done
9344 done
9345 fi
9346 rm -f conftest*
9347 fi # $ac_x_libraries = NO
9348
9349 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9350 # Didn't find X anywhere. Cache the known absence of X.
9351 ac_cv_have_x="have_x=no"
9352 else
9353 # Record where we found X for the cache.
9354 ac_cv_have_x="have_x=yes \
9355 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9356 fi
9357 fi
9358 fi
9359 eval "$ac_cv_have_x"
9360 fi # $with_x != no
9361
9362 if test "$have_x" != yes; then
9363 echo "$ac_t""$have_x" 1>&6
9364 no_x=yes
9365 else
9366 # If each of the values was on the command line, it overrides each guess.
9367 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9368 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9369 # Update the cache value to reflect the command line values.
9370 ac_cv_have_x="have_x=yes \
9371 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9372 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9373 fi
9374
9375 if test "$no_x" = yes; then
9376 # Not all programs may use this symbol, but it does not hurt to define it.
9377 cat >> confdefs.h <<\EOF
9378 #define X_DISPLAY_MISSING 1
9379 EOF
9380
9381 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9382 else
9383 if test -n "$x_includes"; then
9384 X_CFLAGS="$X_CFLAGS -I$x_includes"
9385 fi
9386
9387 # It would also be nice to do this for all -L options, not just this one.
9388 if test -n "$x_libraries"; then
9389 X_LIBS="$X_LIBS -L$x_libraries"
9390 # For Solaris; some versions of Sun CC require a space after -R and
9391 # others require no space. Words are not sufficient . . . .
9392 case "`(uname -sr) 2>/dev/null`" in
9393 "SunOS 5"*)
9394 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9395 echo "configure:9396: checking whether -R must be followed by a space" >&5
9396 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400
9401 int main() {
9402
9403 ; return 0; }
9404 EOF
9405 if { (eval echo configure:9406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9406 rm -rf conftest*
9407 ac_R_nospace=yes
9408 else
9409 echo "configure: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 rm -rf conftest*
9412 ac_R_nospace=no
9413 fi
9414 rm -f conftest*
9415 if test $ac_R_nospace = yes; then
9416 echo "$ac_t""no" 1>&6
9417 X_LIBS="$X_LIBS -R$x_libraries"
9418 else
9419 LIBS="$ac_xsave_LIBS -R $x_libraries"
9420 cat > conftest.$ac_ext <<EOF
9421 #line 9422 "configure"
9422 #include "confdefs.h"
9423
9424 int main() {
9425
9426 ; return 0; }
9427 EOF
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 rm -rf conftest*
9430 ac_R_space=yes
9431 else
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -rf conftest*
9435 ac_R_space=no
9436 fi
9437 rm -f conftest*
9438 if test $ac_R_space = yes; then
9439 echo "$ac_t""yes" 1>&6
9440 X_LIBS="$X_LIBS -R $x_libraries"
9441 else
9442 echo "$ac_t""neither works" 1>&6
9443 fi
9444 fi
9445 LIBS="$ac_xsave_LIBS"
9446 esac
9447 fi
9448
9449 # Check for system-dependent libraries X programs must link with.
9450 # Do this before checking for the system-independent R6 libraries
9451 # (-lICE), since we may need -lsocket or whatever for X linking.
9452
9453 if test "$ISC" = yes; then
9454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9455 else
9456 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9457 # libraries were built with DECnet support. And karl@cs.umb.edu says
9458 # the Alpha needs dnet_stub (dnet does not exist).
9459 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9460 echo "configure:9461: checking for dnet_ntoa in -ldnet" >&5
9461 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9463 echo $ac_n "(cached) $ac_c" 1>&6
9464 else
9465 ac_save_LIBS="$LIBS"
9466 LIBS="-ldnet $LIBS"
9467 cat > conftest.$ac_ext <<EOF
9468 #line 9469 "configure"
9469 #include "confdefs.h"
9470 /* Override any gcc2 internal prototype to avoid an error. */
9471 /* We use char because int might match the return type of a gcc2
9472 builtin and then its argument prototype would still apply. */
9473 char dnet_ntoa();
9474
9475 int main() {
9476 dnet_ntoa()
9477 ; return 0; }
9478 EOF
9479 if { (eval echo configure:9480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9480 rm -rf conftest*
9481 eval "ac_cv_lib_$ac_lib_var=yes"
9482 else
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9485 rm -rf conftest*
9486 eval "ac_cv_lib_$ac_lib_var=no"
9487 fi
9488 rm -f conftest*
9489 LIBS="$ac_save_LIBS"
9490
9491 fi
9492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9493 echo "$ac_t""yes" 1>&6
9494 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9495 else
9496 echo "$ac_t""no" 1>&6
9497 fi
9498
9499 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9500 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9501 echo "configure:9502: checking for dnet_ntoa in -ldnet_stub" >&5
9502 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9504 echo $ac_n "(cached) $ac_c" 1>&6
9505 else
9506 ac_save_LIBS="$LIBS"
9507 LIBS="-ldnet_stub $LIBS"
9508 cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9511 /* Override any gcc2 internal prototype to avoid an error. */
9512 /* We use char because int might match the return type of a gcc2
9513 builtin and then its argument prototype would still apply. */
9514 char dnet_ntoa();
9515
9516 int main() {
9517 dnet_ntoa()
9518 ; return 0; }
9519 EOF
9520 if { (eval echo configure:9521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9521 rm -rf conftest*
9522 eval "ac_cv_lib_$ac_lib_var=yes"
9523 else
9524 echo "configure: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9526 rm -rf conftest*
9527 eval "ac_cv_lib_$ac_lib_var=no"
9528 fi
9529 rm -f conftest*
9530 LIBS="$ac_save_LIBS"
9531
9532 fi
9533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9534 echo "$ac_t""yes" 1>&6
9535 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9536 else
9537 echo "$ac_t""no" 1>&6
9538 fi
9539
9540 fi
9541
9542 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9543 # to get the SysV transport functions.
9544 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9545 # needs -lnsl.
9546 # The nsl library prevents programs from opening the X display
9547 # on Irix 5.2, according to dickey@clark.net.
9548 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9549 echo "configure:9550: checking for gethostbyname" >&5
9550 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
9552 else
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9556 /* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char gethostbyname(); below. */
9558 #include <assert.h>
9559 /* Override any gcc2 internal prototype to avoid an error. */
9560 /* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9562 char gethostbyname();
9563
9564 int main() {
9565
9566 /* The GNU C library defines this for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9570 choke me
9571 #else
9572 gethostbyname();
9573 #endif
9574
9575 ; return 0; }
9576 EOF
9577 if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9578 rm -rf conftest*
9579 eval "ac_cv_func_gethostbyname=yes"
9580 else
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 rm -rf conftest*
9584 eval "ac_cv_func_gethostbyname=no"
9585 fi
9586 rm -f conftest*
9587 fi
9588
9589 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9590 echo "$ac_t""yes" 1>&6
9591 :
9592 else
9593 echo "$ac_t""no" 1>&6
9594 fi
9595
9596 if test $ac_cv_func_gethostbyname = no; then
9597 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
9598 echo "configure:9599: checking for gethostbyname in -lnsl" >&5
9599 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602 else
9603 ac_save_LIBS="$LIBS"
9604 LIBS="-lnsl $LIBS"
9605 cat > conftest.$ac_ext <<EOF
9606 #line 9607 "configure"
9607 #include "confdefs.h"
9608 /* Override any gcc2 internal prototype to avoid an error. */
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9611 char gethostbyname();
9612
9613 int main() {
9614 gethostbyname()
9615 ; return 0; }
9616 EOF
9617 if { (eval echo configure:9618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9618 rm -rf conftest*
9619 eval "ac_cv_lib_$ac_lib_var=yes"
9620 else
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 rm -rf conftest*
9624 eval "ac_cv_lib_$ac_lib_var=no"
9625 fi
9626 rm -f conftest*
9627 LIBS="$ac_save_LIBS"
9628
9629 fi
9630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9631 echo "$ac_t""yes" 1>&6
9632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9633 else
9634 echo "$ac_t""no" 1>&6
9635 fi
9636
9637 fi
9638
9639 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9640 # socket/setsockopt and other routines are undefined under SCO ODT
9641 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9642 # on later versions), says simon@lia.di.epfl.ch: it contains
9643 # gethostby* variants that don't use the nameserver (or something).
9644 # -lsocket must be given before -lnsl if both are needed.
9645 # We assume that if connect needs -lnsl, so does gethostbyname.
9646 echo $ac_n "checking for connect""... $ac_c" 1>&6
9647 echo "configure:9648: checking for connect" >&5
9648 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9649 echo $ac_n "(cached) $ac_c" 1>&6
9650 else
9651 cat > conftest.$ac_ext <<EOF
9652 #line 9653 "configure"
9653 #include "confdefs.h"
9654 /* System header to define __stub macros and hopefully few prototypes,
9655 which can conflict with char connect(); below. */
9656 #include <assert.h>
9657 /* Override any gcc2 internal prototype to avoid an error. */
9658 /* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9660 char connect();
9661
9662 int main() {
9663
9664 /* The GNU C library defines this for functions which it implements
9665 to always fail with ENOSYS. Some functions are actually named
9666 something starting with __ and the normal name is an alias. */
9667 #if defined (__stub_connect) || defined (__stub___connect)
9668 choke me
9669 #else
9670 connect();
9671 #endif
9672
9673 ; return 0; }
9674 EOF
9675 if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9676 rm -rf conftest*
9677 eval "ac_cv_func_connect=yes"
9678 else
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9681 rm -rf conftest*
9682 eval "ac_cv_func_connect=no"
9683 fi
9684 rm -f conftest*
9685 fi
9686
9687 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 :
9690 else
9691 echo "$ac_t""no" 1>&6
9692 fi
9693
9694 if test $ac_cv_func_connect = no; then
9695 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
9696 echo "configure:9697: checking for connect in -lsocket" >&5
9697 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
9700 else
9701 ac_save_LIBS="$LIBS"
9702 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9703 cat > conftest.$ac_ext <<EOF
9704 #line 9705 "configure"
9705 #include "confdefs.h"
9706 /* Override any gcc2 internal prototype to avoid an error. */
9707 /* We use char because int might match the return type of a gcc2
9708 builtin and then its argument prototype would still apply. */
9709 char connect();
9710
9711 int main() {
9712 connect()
9713 ; return 0; }
9714 EOF
9715 if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9716 rm -rf conftest*
9717 eval "ac_cv_lib_$ac_lib_var=yes"
9718 else
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 eval "ac_cv_lib_$ac_lib_var=no"
9723 fi
9724 rm -f conftest*
9725 LIBS="$ac_save_LIBS"
9726
9727 fi
9728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9729 echo "$ac_t""yes" 1>&6
9730 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9731 else
9732 echo "$ac_t""no" 1>&6
9733 fi
9734
9735 fi
9736
9737 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9738 echo $ac_n "checking for remove""... $ac_c" 1>&6
9739 echo "configure:9740: checking for remove" >&5
9740 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9741 echo $ac_n "(cached) $ac_c" 1>&6
9742 else
9743 cat > conftest.$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9746 /* System header to define __stub macros and hopefully few prototypes,
9747 which can conflict with char remove(); below. */
9748 #include <assert.h>
9749 /* Override any gcc2 internal prototype to avoid an error. */
9750 /* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9752 char remove();
9753
9754 int main() {
9755
9756 /* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759 #if defined (__stub_remove) || defined (__stub___remove)
9760 choke me
9761 #else
9762 remove();
9763 #endif
9764
9765 ; return 0; }
9766 EOF
9767 if { (eval echo configure:9768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9768 rm -rf conftest*
9769 eval "ac_cv_func_remove=yes"
9770 else
9771 echo "configure: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9773 rm -rf conftest*
9774 eval "ac_cv_func_remove=no"
9775 fi
9776 rm -f conftest*
9777 fi
9778
9779 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9780 echo "$ac_t""yes" 1>&6
9781 :
9782 else
9783 echo "$ac_t""no" 1>&6
9784 fi
9785
9786 if test $ac_cv_func_remove = no; then
9787 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
9788 echo "configure:9789: checking for remove in -lposix" >&5
9789 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9792 else
9793 ac_save_LIBS="$LIBS"
9794 LIBS="-lposix $LIBS"
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 /* Override any gcc2 internal prototype to avoid an error. */
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9801 char remove();
9802
9803 int main() {
9804 remove()
9805 ; return 0; }
9806 EOF
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9808 rm -rf conftest*
9809 eval "ac_cv_lib_$ac_lib_var=yes"
9810 else
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9813 rm -rf conftest*
9814 eval "ac_cv_lib_$ac_lib_var=no"
9815 fi
9816 rm -f conftest*
9817 LIBS="$ac_save_LIBS"
9818
9819 fi
9820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9821 echo "$ac_t""yes" 1>&6
9822 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9823 else
9824 echo "$ac_t""no" 1>&6
9825 fi
9826
9827 fi
9828
9829 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9830 echo $ac_n "checking for shmat""... $ac_c" 1>&6
9831 echo "configure:9832: checking for shmat" >&5
9832 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
9834 else
9835 cat > conftest.$ac_ext <<EOF
9836 #line 9837 "configure"
9837 #include "confdefs.h"
9838 /* System header to define __stub macros and hopefully few prototypes,
9839 which can conflict with char shmat(); below. */
9840 #include <assert.h>
9841 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9844 char shmat();
9845
9846 int main() {
9847
9848 /* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
9851 #if defined (__stub_shmat) || defined (__stub___shmat)
9852 choke me
9853 #else
9854 shmat();
9855 #endif
9856
9857 ; return 0; }
9858 EOF
9859 if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9860 rm -rf conftest*
9861 eval "ac_cv_func_shmat=yes"
9862 else
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 rm -rf conftest*
9866 eval "ac_cv_func_shmat=no"
9867 fi
9868 rm -f conftest*
9869 fi
9870
9871 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
9872 echo "$ac_t""yes" 1>&6
9873 :
9874 else
9875 echo "$ac_t""no" 1>&6
9876 fi
9877
9878 if test $ac_cv_func_shmat = no; then
9879 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
9880 echo "configure:9881: checking for shmat in -lipc" >&5
9881 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
9882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9884 else
9885 ac_save_LIBS="$LIBS"
9886 LIBS="-lipc $LIBS"
9887 cat > conftest.$ac_ext <<EOF
9888 #line 9889 "configure"
9889 #include "confdefs.h"
9890 /* Override any gcc2 internal prototype to avoid an error. */
9891 /* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9893 char shmat();
9894
9895 int main() {
9896 shmat()
9897 ; return 0; }
9898 EOF
9899 if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9900 rm -rf conftest*
9901 eval "ac_cv_lib_$ac_lib_var=yes"
9902 else
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 rm -rf conftest*
9906 eval "ac_cv_lib_$ac_lib_var=no"
9907 fi
9908 rm -f conftest*
9909 LIBS="$ac_save_LIBS"
9910
9911 fi
9912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9913 echo "$ac_t""yes" 1>&6
9914 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9915 else
9916 echo "$ac_t""no" 1>&6
9917 fi
9918
9919 fi
9920 fi
9921
9922 # Check for libraries that X11R6 Xt/Xaw programs need.
9923 ac_save_LDFLAGS="$LDFLAGS"
9924 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9925 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9926 # check for ICE first), but we must link in the order -lSM -lICE or
9927 # we get undefined symbols. So assume we have SM if we have ICE.
9928 # These have to be linked with before -lX11, unlike the other
9929 # libraries we check for below, so use a different variable.
9930 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
9931 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
9932 echo "configure:9933: checking for IceConnectionNumber in -lICE" >&5
9933 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
9934 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9936 else
9937 ac_save_LIBS="$LIBS"
9938 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9939 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 /* Override any gcc2 internal prototype to avoid an error. */
9943 /* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */
9945 char IceConnectionNumber();
9946
9947 int main() {
9948 IceConnectionNumber()
9949 ; return 0; }
9950 EOF
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9952 rm -rf conftest*
9953 eval "ac_cv_lib_$ac_lib_var=yes"
9954 else
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 rm -rf conftest*
9958 eval "ac_cv_lib_$ac_lib_var=no"
9959 fi
9960 rm -f conftest*
9961 LIBS="$ac_save_LIBS"
9962
9963 fi
9964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9965 echo "$ac_t""yes" 1>&6
9966 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9967 else
9968 echo "$ac_t""no" 1>&6
9969 fi
9970
9971 LDFLAGS="$ac_save_LDFLAGS"
9972
9973 fi
9974
9975 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9976 LDFLAGS="$LDFLAGS $X_LIBS"
9977
9978 if test "$wxUSE_MOTIF" = 1; then
9979 if test "$no_x" = "yes"; then
9980 { echo "configure: error: X11 not found" 1>&2; exit 1; }
9981 fi
9982
9983 GUI_TK_LIBRARY="$X_LIBS"
9984 TOOLKIT_INCLUDE="$X_CFLAGS"
9985
9986 AFMINSTALL=afminstall
9987
9988
9989 COMPILED_X_PROGRAM=0
9990
9991 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
9992 echo "configure:9993: checking for Motif/Lesstif headers" >&5
9993
9994 ac_find_includes=
9995 for ac_dir in $SEARCH_INCLUDE;
9996 do
9997 if test -f "$ac_dir/Xm/Xm.h"; then
9998 ac_find_includes=$ac_dir
9999 break
10000 fi
10001 done
10002
10003 if test "$ac_find_includes" != "" ; then
10004 echo "$ac_t""found $ac_find_includes" 1>&6
10005 else
10006 cat > conftest.$ac_ext <<EOF
10007 #line 10008 "configure"
10008 #include "confdefs.h"
10009
10010 #include <Xm/Xm.h>
10011
10012 int main() {
10013
10014 int version;
10015
10016 version = xmUseVersion;
10017
10018 ; return 0; }
10019 EOF
10020 if { (eval echo configure:10021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10021 rm -rf conftest*
10022
10023 echo "$ac_t""found in default search path" 1>&6
10024 COMPILED_X_PROGRAM=1
10025
10026 else
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10029 rm -rf conftest*
10030
10031 echo "$ac_t""no" 1>&6
10032 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10033
10034
10035 fi
10036 rm -f conftest*
10037 fi
10038
10039 if test "$COMPILED_X_PROGRAM" = 0; then
10040 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10041 echo "configure:10042: checking for Motif/Lesstif library" >&5
10042
10043 ac_find_libraries=
10044 for ac_dir in $SEARCH_LIB;
10045 do
10046 for ac_extension in a so sl; do
10047 if test -f "$ac_dir/libXm.$ac_extension"; then
10048 ac_find_libraries=$ac_dir
10049 break 2
10050 fi
10051 done
10052 done
10053
10054 if test "$ac_find_libraries" != "" ; then
10055
10056 ac_path_to_include=$ac_find_includes
10057 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10058 result=$?
10059 if test $result = 0; then
10060 ac_path_to_include=""
10061 else
10062 ac_path_to_include="-I$ac_find_includes"
10063 fi
10064
10065
10066 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10067 result=$?
10068 if test $result = 0; then
10069 ac_path_to_link=""
10070 else
10071 ac_path_to_link="-L$ac_find_libraries"
10072 fi
10073
10074
10075 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10076 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10077 echo "$ac_t""found at $ac_find_libraries" 1>&6
10078 else
10079 cat > conftest.$ac_ext <<EOF
10080 #line 10081 "configure"
10081 #include "confdefs.h"
10082
10083 #include <Xm/Xm.h>
10084
10085 int main() {
10086
10087 int version;
10088
10089 version = xmUseVersion;
10090
10091 ; return 0; }
10092 EOF
10093 if { (eval echo configure:10094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10094 rm -rf conftest*
10095
10096 echo "$ac_t""found in default search path" 1>&6
10097 COMPILED_X_PROGRAM=1
10098
10099 else
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 rm -rf conftest*
10103
10104 echo "$ac_t""no" 1>&6
10105 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10106
10107
10108 fi
10109 rm -f conftest*
10110 fi
10111 fi
10112
10113
10114 XPM_LINK=""
10115 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10116 echo "configure:10117: checking for Xpm library" >&5
10117
10118 ac_find_libraries=
10119 for ac_dir in $SEARCH_LIB;
10120 do
10121 for ac_extension in a so sl; do
10122 if test -f "$ac_dir/libXpm.$ac_extension"; then
10123 ac_find_libraries=$ac_dir
10124 break 2
10125 fi
10126 done
10127 done
10128
10129 if test "$ac_find_libraries" != "" ; then
10130
10131 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10132 result=$?
10133 if test $result = 0; then
10134 ac_path_to_link=""
10135 else
10136 ac_path_to_link="-L$ac_find_libraries"
10137 fi
10138
10139 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10140 XPM_LINK="-lXpm "
10141 cat >> confdefs.h <<\EOF
10142 #define wxHAVE_LIB_XPM 1
10143 EOF
10144
10145 echo "$ac_t""found at $ac_find_libraries" 1>&6
10146 else
10147 cat > conftest.$ac_ext <<EOF
10148 #line 10149 "configure"
10149 #include "confdefs.h"
10150
10151 #include <X11/xpm.h>
10152
10153 int main() {
10154
10155 int version;
10156
10157 version = XpmLibraryVersion();
10158
10159 ; return 0; }
10160 EOF
10161 if { (eval echo configure:10162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10162 rm -rf conftest*
10163
10164 XPM_LINK="-lXpm "
10165 cat >> confdefs.h <<\EOF
10166 #define wxHAVE_LIB_XPM 1
10167 EOF
10168
10169 echo "$ac_t""found in default search path" 1>&6
10170 COMPILED_X_PROGRAM=0
10171
10172 else
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 rm -rf conftest*
10176
10177 echo "$ac_t""no" 1>&6
10178 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10179
10180
10181 fi
10182 rm -f conftest*
10183 fi
10184
10185 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10186 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10187 TOOLKIT=MOTIF
10188 GUIDIST=MOTIF_DIST
10189 fi
10190
10191 if test "$wxUSE_MAC" = 1; then
10192 TOOLKIT=MAC
10193 GUIDIST=MACX_DIST
10194 fi
10195
10196 if test "$wxUSE_PM" = 1; then
10197 TOOLKIT=PM
10198 GUIDIST=GTK_DIST
10199 fi
10200
10201 if test "$TOOLKIT" != "PM" ; then
10202 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10203 else
10204 TOOLKIT_DIR="os2"
10205 fi
10206
10207 TOOLKIT_NAME="${TOOLKIT_DIR}"
10208
10209 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10210
10211 if test "$TOOLKIT_NAME" = "motif"; then
10212 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10213 fi
10214
10215 if test "$wxUSE_UNIVERSAL" = "yes"; then
10216 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10217 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10218 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10219 SETUPH_DIR="univ"
10220 else
10221 SETUPH_DIR="${TOOLKIT_DIR}"
10222 fi
10223
10224 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10225 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10226 fi
10227
10228 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10229 if test "$wxUSE_UNIVERSAL" = "yes"; then
10230 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10231 fi
10232
10233 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10234
10235 if test "$wxUSE_UNIVERSAL" = "yes"; then
10236 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10237 else
10238 ALL_OBJECTS="\$(GUIOBJS)"
10239 fi
10240
10241 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10242
10243 if test "$TOOLKIT" != "MSW"; then
10244 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10245 fi
10246
10247 if test "$wxUSE_HTML" = "yes"; then
10248 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10249 fi
10250
10251 if test "$TOOLKIT" != "MSW"; then
10252 if test "$wxUSE_ODBC" = "yes" ; then
10253 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10254 fi
10255 fi
10256
10257 if test "$wxUSE_LIBJPEG" = "yes" ; then
10258 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10259 fi
10260 if test "$wxUSE_LIBTIFF" = "yes" ; then
10261 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10262 fi
10263 if test "$wxUSE_LIBPNG" = "yes" ; then
10264 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10265 fi
10266 if test "$wxUSE_ZLIB" = "yes" ; then
10267 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10268 fi
10269 if test "$wxUSE_FREETYPE" = "yes" ; then
10270 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10271 fi
10272
10273 if test "$wxUSE_UNIVERSAL" = "yes"; then
10274 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10275 else
10276 ALL_DEPFILES="\$(GUIDEPS)"
10277 fi
10278
10279 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10280
10281 if test "$TOOLKIT" != "MSW"; then
10282 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10283 fi
10284
10285 if test "$wxUSE_HTML" = "yes"; then
10286 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10287 fi
10288
10289 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10290 if test "$wxUSE_UNIVERSAL" = "yes"; then
10291 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10292 fi
10293 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10294 RPM_SPEC="wx\$(TOOLKIT).spec"
10295
10296 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10297 DISTDIR="wx\$(TOOLKIT)"
10298 else
10299 USE_GUI=0
10300
10301 TOOLKIT_DIR="base"
10302
10303 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10304 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10305 else
10306 TOOLKIT_NAME="${TOOLKIT_DIR}"
10307 fi
10308
10309 TOOLKIT_DEF="-D__WXBASE__"
10310
10311 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10312 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10313
10314 if test "$wxUSE_ZLIB" = "yes" ; then
10315 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10316 fi
10317
10318 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10319
10320 PORT_FILES="src/files.lst"
10321 RPM_FILES="src/rpmfiles.lst"
10322 RPM_SPEC="wxBase.spec"
10323
10324 GUIDIST="BASE_DIST"
10325 DISTDIR="wxBase"
10326 fi
10327
10328 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10329 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10330
10331 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10332 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10333
10334 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10335 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10336
10337 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10338 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10339 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10340 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10341 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10342 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10343
10344 SHARED_LD=
10345 PIC_FLAG=
10346 WX_ALL=
10347 WX_ALL_INSTALLED=
10348 BURNT_LIBRARY_NAME=
10349 WX_TARGET_LIBRARY_SONAME=
10350
10351
10352 if test "$wxUSE_SHARED" = "yes"; then
10353 case "${host}" in
10354 *-hp-hpux* )
10355 if test "$GCC" = yes ; then
10356 SHARED_LD="${CC} -shared -fPIC -o"
10357 PIC_FLAG="-fPIC"
10358 else
10359 LDFLAGS="-L/usr/lib"
10360
10361 SHARED_LD="${CXX} -b -o"
10362 PIC_FLAG="+Z"
10363 fi
10364 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10365 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10366 if test "$wxUSE_OPENGL" = "yes"; then
10367 WX_ALL_INSTALLED="preinstall_gl"
10368 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10369 else
10370 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10371 fi
10372 ;;
10373
10374 *-*-linux* )
10375 SHARED_LD="${CC} -shared -o"
10376 PIC_FLAG="-fPIC"
10377 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10378 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10379 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10380 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10381 fi
10382 if test "$wxUSE_OPENGL" = "yes"; then
10383 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10384 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10385 else
10386 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10387 WX_ALL="CREATE_LINKS"
10388 fi
10389 ;;
10390 *-*-irix5* | *-*-irix6* )
10391 if test "$GCC" = yes ; then
10392 SHARED_LD="${CC} -shared -o"
10393 PIC_FLAG="-fPIC"
10394 else
10395 SHARED_LD="${CXX} -shared -o"
10396 fi
10397 if test "$wxUSE_OPENGL" = "yes"; then
10398 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10399 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10400 else
10401 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10402 WX_ALL="CREATE_LINKS"
10403 fi
10404 ;;
10405 *-*-solaris2* )
10406 if test "$GCC" = yes ; then
10407 SHARED_LD="${CC} -shared -o"
10408 PIC_FLAG="-fPIC"
10409
10410 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10411 else
10412 SHARED_LD="${CXX} -G -o"
10413 PIC_FLAG="-KPIC"
10414 fi
10415 if test "$wxUSE_OPENGL" = "yes"; then
10416 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10417 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10418 else
10419 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10420 WX_ALL="CREATE_LINKS"
10421 fi
10422 ;;
10423 *-*-sunos4* )
10424 SHARED_LD="${CC} -shared -o"
10425 PIC_FLAG="-fPIC"
10426 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10427 WX_ALL="CREATE_LINKS"
10428 ;;
10429 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10430 SHARED_LD="${CC} -shared -o"
10431 PIC_FLAG="-fPIC"
10432 if test "$wxUSE_OPENGL" = "yes"; then
10433 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10434 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10435 else
10436 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10437 WX_ALL="CREATE_LINKS"
10438 fi
10439 ;;
10440 *-*-darwin* )
10441 SHARED_LD="${CXX} -dynamiclib -o"
10442 PIC_FLAG="-dynamic -fPIC"
10443 if test "$wxUSE_OPENGL" = "yes"; then
10444 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10445 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10446 else
10447 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10448 WX_ALL="CREATE_LINKS"
10449 fi
10450 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10451 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10452 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10453 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10454 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10455 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10456 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10457 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10458 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10459 ;;
10460 *-*-osf* )
10461 SHARED_LD="${CXX} -shared -o"
10462 PIC_FLAG="-fPIC"
10463 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10464 WX_ALL="CREATE_LINKS"
10465 ;;
10466 *-*-dgux5* )
10467 SHARED_LD="${CXX} -shared -o"
10468 PIC_FLAG="-fPIC"
10469 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10470 WX_ALL="CREATE_LINKS"
10471 ;;
10472 *-*-sysv5* )
10473 SHARED_LD="${CC} -shared -o"
10474 PIC_FLAG="-fPIC"
10475 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10476 WX_ALL="CREATE_LINKS"
10477 ;;
10478 *-*-aix* )
10479 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10480 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10481 ;;
10482 *-*-cygwin* )
10483 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10484 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10485 if test "$wxUSE_OPENGL" = "yes"; then
10486 WX_ALL_INSTALLED="preinstall_gl"
10487 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10488 else
10489 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10490 fi
10491 ;;
10492 *-*-mingw32* )
10493 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10494 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10495 if test "$wxUSE_OPENGL" = "yes"; then
10496 WX_ALL_INSTALLED="preinstall_gl"
10497 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10498 else
10499 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10500 fi
10501 ;;
10502 *-pc-os2_emx )
10503 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10504 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10505 ;;
10506 *-*-beos* )
10507 SHARED_LD="${LD} -shared -o"
10508 PIC_FLAG="-fPIC"
10509 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10510 WX_ALL="CREATE_LINKS"
10511 ;;
10512 *)
10513 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10514 esac
10515
10516 if test "x$WX_TARGET_LIBRARY" = "x"; then
10517 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10518 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10519 fi
10520 WX_TARGET_LIBRARY_TYPE="so"
10521 else
10522 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10523 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10524
10525 if test "$wxUSE_OPENGL" = "yes"; then
10526 WX_ALL_INSTALLED="preinstall_gl"
10527 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10528 else
10529 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10530 fi
10531
10532 if test "$wxUSE_GUI" = "no"; then
10533 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10534 fi
10535
10536 WX_TARGET_LIBRARY_TYPE="a"
10537 fi
10538
10539
10540 for ac_hdr in strings.h
10541 do
10542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10544 echo "configure:10545: checking for $ac_hdr" >&5
10545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10547 else
10548 cat > conftest.$ac_ext <<EOF
10549 #line 10550 "configure"
10550 #include "confdefs.h"
10551 #include <$ac_hdr>
10552 EOF
10553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10554 { (eval echo configure:10555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10556 if test -z "$ac_err"; then
10557 rm -rf conftest*
10558 eval "ac_cv_header_$ac_safe=yes"
10559 else
10560 echo "$ac_err" >&5
10561 echo "configure: failed program was:" >&5
10562 cat conftest.$ac_ext >&5
10563 rm -rf conftest*
10564 eval "ac_cv_header_$ac_safe=no"
10565 fi
10566 rm -f conftest*
10567 fi
10568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10571 cat >> confdefs.h <<EOF
10572 #define $ac_tr_hdr 1
10573 EOF
10574
10575 else
10576 echo "$ac_t""no" 1>&6
10577 fi
10578 done
10579
10580 for ac_hdr in stdlib.h
10581 do
10582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10584 echo "configure:10585: checking for $ac_hdr" >&5
10585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10587 else
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10590 "configure"
10590 #include "confdefs.h"
10591 #include <$ac_hdr>
10592 EOF
10593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10594 { (eval echo configure:10595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10596 if test -z "$ac_err"; then
10597 rm -rf conftest*
10598 eval "ac_cv_header_$ac_safe=yes"
10599 else
10600 echo "$ac_err" >&5
10601 echo "configure: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10603 rm -rf conftest*
10604 eval "ac_cv_header_$ac_safe=no"
10605 fi
10606 rm -f conftest*
10607 fi
10608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10609 echo "$ac_t""yes" 1>&6
10610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10611 cat >> confdefs.h <<EOF
10612 #define $ac_tr_hdr 1
10613 EOF
10614
10615 else
10616 echo "$ac_t""no" 1>&6
10617 fi
10618 done
10619
10620 for ac_hdr in unistd.h
10621 do
10622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10624 echo "configure:10625: checking for $ac_hdr" >&5
10625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10627 else
10628 cat > conftest.$ac_ext <<EOF
10629 #line 10630 "configure"
10630 #include "confdefs.h"
10631 #include <$ac_hdr>
10632 EOF
10633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10634 { (eval echo configure:10635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10636 if test -z "$ac_err"; then
10637 rm -rf conftest*
10638 eval "ac_cv_header_$ac_safe=yes"
10639 else
10640 echo "$ac_err" >&5
10641 echo "configure: failed program was:" >&5
10642 cat conftest.$ac_ext >&5
10643 rm -rf conftest*
10644 eval "ac_cv_header_$ac_safe=no"
10645 fi
10646 rm -f conftest*
10647 fi
10648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10649 echo "$ac_t""yes" 1>&6
10650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10651 cat >> confdefs.h <<EOF
10652 #define $ac_tr_hdr 1
10653 EOF
10654
10655 else
10656 echo "$ac_t""no" 1>&6
10657 fi
10658 done
10659
10660 for ac_hdr in wchar.h
10661 do
10662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10664 echo "configure:10665: checking for $ac_hdr" >&5
10665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10666 echo $ac_n "(cached) $ac_c" 1>&6
10667 else
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10671 #include <$ac_hdr>
10672 EOF
10673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10674 { (eval echo configure:10675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10676 if test -z "$ac_err"; then
10677 rm -rf conftest*
10678 eval "ac_cv_header_$ac_safe=yes"
10679 else
10680 echo "$ac_err" >&5
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 rm -rf conftest*
10684 eval "ac_cv_header_$ac_safe=no"
10685 fi
10686 rm -f conftest*
10687 fi
10688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10691 cat >> confdefs.h <<EOF
10692 #define $ac_tr_hdr 1
10693 EOF
10694
10695 else
10696 echo "$ac_t""no" 1>&6
10697 fi
10698 done
10699
10700 for ac_hdr in wcstr.h
10701 do
10702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10703 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10704 echo "configure:10705: checking for $ac_hdr" >&5
10705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10707 else
10708 cat > conftest.$ac_ext <<EOF
10709 #line 10710 "configure"
10710 #include "confdefs.h"
10711 #include <$ac_hdr>
10712 EOF
10713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10714 { (eval echo configure:10715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10716 if test -z "$ac_err"; then
10717 rm -rf conftest*
10718 eval "ac_cv_header_$ac_safe=yes"
10719 else
10720 echo "$ac_err" >&5
10721 echo "configure: failed program was:" >&5
10722 cat conftest.$ac_ext >&5
10723 rm -rf conftest*
10724 eval "ac_cv_header_$ac_safe=no"
10725 fi
10726 rm -f conftest*
10727 fi
10728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10729 echo "$ac_t""yes" 1>&6
10730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10731 cat >> confdefs.h <<EOF
10732 #define $ac_tr_hdr 1
10733 EOF
10734
10735 else
10736 echo "$ac_t""no" 1>&6
10737 fi
10738 done
10739
10740 for ac_hdr in fnmatch.h
10741 do
10742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10744 echo "configure:10745: checking for $ac_hdr" >&5
10745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10747 else
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10751 #include <$ac_hdr>
10752 EOF
10753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10754 { (eval echo configure:10755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10756 if test -z "$ac_err"; then
10757 rm -rf conftest*
10758 eval "ac_cv_header_$ac_safe=yes"
10759 else
10760 echo "$ac_err" >&5
10761 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10763 rm -rf conftest*
10764 eval "ac_cv_header_$ac_safe=no"
10765 fi
10766 rm -f conftest*
10767 fi
10768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10769 echo "$ac_t""yes" 1>&6
10770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10771 cat >> confdefs.h <<EOF
10772 #define $ac_tr_hdr 1
10773 EOF
10774
10775 else
10776 echo "$ac_t""no" 1>&6
10777 fi
10778 done
10779
10780 for ac_hdr in iconv.h
10781 do
10782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10784 echo "configure:10785: checking for $ac_hdr" >&5
10785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10786 echo $ac_n "(cached) $ac_c" 1>&6
10787 else
10788 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10791 #include <$ac_hdr>
10792 EOF
10793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10794 { (eval echo configure:10795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10796 if test -z "$ac_err"; then
10797 rm -rf conftest*
10798 eval "ac_cv_header_$ac_safe=yes"
10799 else
10800 echo "$ac_err" >&5
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -rf conftest*
10804 eval "ac_cv_header_$ac_safe=no"
10805 fi
10806 rm -f conftest*
10807 fi
10808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10809 echo "$ac_t""yes" 1>&6
10810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10811 cat >> confdefs.h <<EOF
10812 #define $ac_tr_hdr 1
10813 EOF
10814
10815 else
10816 echo "$ac_t""no" 1>&6
10817 fi
10818 done
10819
10820 for ac_hdr in langinfo.h
10821 do
10822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10824 echo "configure:10825: checking for $ac_hdr" >&5
10825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10826 echo $ac_n "(cached) $ac_c" 1>&6
10827 else
10828 cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure"
10830 #include "confdefs.h"
10831 #include <$ac_hdr>
10832 EOF
10833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10834 { (eval echo configure:10835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10836 if test -z "$ac_err"; then
10837 rm -rf conftest*
10838 eval "ac_cv_header_$ac_safe=yes"
10839 else
10840 echo "$ac_err" >&5
10841 echo "configure: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10843 rm -rf conftest*
10844 eval "ac_cv_header_$ac_safe=no"
10845 fi
10846 rm -f conftest*
10847 fi
10848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10849 echo "$ac_t""yes" 1>&6
10850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10851 cat >> confdefs.h <<EOF
10852 #define $ac_tr_hdr 1
10853 EOF
10854
10855 else
10856 echo "$ac_t""no" 1>&6
10857 fi
10858 done
10859
10860
10861 if test "$wxUSE_GUI" = "yes"; then
10862 if test "$wxUSE_UNIX" = "yes"; then
10863 for ac_hdr in X11/XKBlib.h
10864 do
10865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10867 echo "configure:10868: checking for $ac_hdr" >&5
10868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10869 echo $ac_n "(cached) $ac_c" 1>&6
10870 else
10871 cat > conftest.$ac_ext <<EOF
10872 #line 10873 "configure"
10873 #include "confdefs.h"
10874 #include <$ac_hdr>
10875 EOF
10876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10877 { (eval echo configure:10878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10879 if test -z "$ac_err"; then
10880 rm -rf conftest*
10881 eval "ac_cv_header_$ac_safe=yes"
10882 else
10883 echo "$ac_err" >&5
10884 echo "configure: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10886 rm -rf conftest*
10887 eval "ac_cv_header_$ac_safe=no"
10888 fi
10889 rm -f conftest*
10890 fi
10891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10892 echo "$ac_t""yes" 1>&6
10893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10894 cat >> confdefs.h <<EOF
10895 #define $ac_tr_hdr 1
10896 EOF
10897
10898 else
10899 echo "$ac_t""no" 1>&6
10900 fi
10901 done
10902
10903 fi
10904 fi
10905
10906
10907 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10908 echo "configure:10909: checking for ANSI C header files" >&5
10909 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10910 echo $ac_n "(cached) $ac_c" 1>&6
10911 else
10912 cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10915 #include <stdlib.h>
10916 #include <stdarg.h>
10917 #include <string.h>
10918 #include <float.h>
10919 EOF
10920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10921 { (eval echo configure:10922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10923 if test -z "$ac_err"; then
10924 rm -rf conftest*
10925 ac_cv_header_stdc=yes
10926 else
10927 echo "$ac_err" >&5
10928 echo "configure: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10930 rm -rf conftest*
10931 ac_cv_header_stdc=no
10932 fi
10933 rm -f conftest*
10934
10935 if test $ac_cv_header_stdc = yes; then
10936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10937 cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10940 #include <string.h>
10941 EOF
10942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10943 egrep "memchr" >/dev/null 2>&1; then
10944 :
10945 else
10946 rm -rf conftest*
10947 ac_cv_header_stdc=no
10948 fi
10949 rm -f conftest*
10950
10951 fi
10952
10953 if test $ac_cv_header_stdc = yes; then
10954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10955 cat > conftest.$ac_ext <<EOF
10956 #line 10957 "configure"
10957 #include "confdefs.h"
10958 #include <stdlib.h>
10959 EOF
10960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10961 egrep "free" >/dev/null 2>&1; then
10962 :
10963 else
10964 rm -rf conftest*
10965 ac_cv_header_stdc=no
10966 fi
10967 rm -f conftest*
10968
10969 fi
10970
10971 if test $ac_cv_header_stdc = yes; then
10972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10973 if test "$cross_compiling" = yes; then
10974 :
10975 else
10976 cat > conftest.$ac_ext <<EOF
10977 #line 10978 "configure"
10978 #include "confdefs.h"
10979 #include <ctype.h>
10980 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10981 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10983 int main () { int i; for (i = 0; i < 256; i++)
10984 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10985 exit (0); }
10986
10987 EOF
10988 if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10989 then
10990 :
10991 else
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 rm -fr conftest*
10995 ac_cv_header_stdc=no
10996 fi
10997 rm -fr conftest*
10998 fi
10999
11000 fi
11001 fi
11002
11003 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11004 if test $ac_cv_header_stdc = yes; then
11005 cat >> confdefs.h <<\EOF
11006 #define STDC_HEADERS 1
11007 EOF
11008
11009 fi
11010
11011 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11012 echo "configure:11013: checking for mode_t" >&5
11013 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11015 else
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <sys/types.h>
11020 #if STDC_HEADERS
11021 #include <stdlib.h>
11022 #include <stddef.h>
11023 #endif
11024 EOF
11025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11026 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11027 rm -rf conftest*
11028 ac_cv_type_mode_t=yes
11029 else
11030 rm -rf conftest*
11031 ac_cv_type_mode_t=no
11032 fi
11033 rm -f conftest*
11034
11035 fi
11036 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11037 if test $ac_cv_type_mode_t = no; then
11038 cat >> confdefs.h <<\EOF
11039 #define mode_t int
11040 EOF
11041
11042 fi
11043
11044 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11045 echo "configure:11046: checking for off_t" >&5
11046 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
11048 else
11049 cat > conftest.$ac_ext <<EOF
11050 #line 11051 "configure"
11051 #include "confdefs.h"
11052 #include <sys/types.h>
11053 #if STDC_HEADERS
11054 #include <stdlib.h>
11055 #include <stddef.h>
11056 #endif
11057 EOF
11058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11059 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11060 rm -rf conftest*
11061 ac_cv_type_off_t=yes
11062 else
11063 rm -rf conftest*
11064 ac_cv_type_off_t=no
11065 fi
11066 rm -f conftest*
11067
11068 fi
11069 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11070 if test $ac_cv_type_off_t = no; then
11071 cat >> confdefs.h <<\EOF
11072 #define off_t long
11073 EOF
11074
11075 fi
11076
11077 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11078 echo "configure:11079: checking for pid_t" >&5
11079 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11080 echo $ac_n "(cached) $ac_c" 1>&6
11081 else
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11085 #include <sys/types.h>
11086 #if STDC_HEADERS
11087 #include <stdlib.h>
11088 #include <stddef.h>
11089 #endif
11090 EOF
11091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11092 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11093 rm -rf conftest*
11094 ac_cv_type_pid_t=yes
11095 else
11096 rm -rf conftest*
11097 ac_cv_type_pid_t=no
11098 fi
11099 rm -f conftest*
11100
11101 fi
11102 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11103 if test $ac_cv_type_pid_t = no; then
11104 cat >> confdefs.h <<\EOF
11105 #define pid_t int
11106 EOF
11107
11108 fi
11109
11110 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11111 echo "configure:11112: checking for size_t" >&5
11112 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11113 echo $ac_n "(cached) $ac_c" 1>&6
11114 else
11115 cat > conftest.$ac_ext <<EOF
11116 #line 11117 "configure"
11117 #include "confdefs.h"
11118 #include <sys/types.h>
11119 #if STDC_HEADERS
11120 #include <stdlib.h>
11121 #include <stddef.h>
11122 #endif
11123 EOF
11124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11125 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11126 rm -rf conftest*
11127 ac_cv_type_size_t=yes
11128 else
11129 rm -rf conftest*
11130 ac_cv_type_size_t=no
11131 fi
11132 rm -f conftest*
11133
11134 fi
11135 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11136 if test $ac_cv_type_size_t = no; then
11137 cat >> confdefs.h <<\EOF
11138 #define size_t unsigned
11139 EOF
11140
11141 fi
11142
11143 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11144 echo "configure:11145: checking for uid_t in sys/types.h" >&5
11145 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11146 echo $ac_n "(cached) $ac_c" 1>&6
11147 else
11148 cat > conftest.$ac_ext <<EOF
11149 #line 11150 "configure"
11150 #include "confdefs.h"
11151 #include <sys/types.h>
11152 EOF
11153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11154 egrep "uid_t" >/dev/null 2>&1; then
11155 rm -rf conftest*
11156 ac_cv_type_uid_t=yes
11157 else
11158 rm -rf conftest*
11159 ac_cv_type_uid_t=no
11160 fi
11161 rm -f conftest*
11162
11163 fi
11164
11165 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11166 if test $ac_cv_type_uid_t = no; then
11167 cat >> confdefs.h <<\EOF
11168 #define uid_t int
11169 EOF
11170
11171 cat >> confdefs.h <<\EOF
11172 #define gid_t int
11173 EOF
11174
11175 fi
11176
11177
11178 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11179 echo "configure:11180: checking for wchar_t" >&5
11180 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11181 echo $ac_n "(cached) $ac_c" 1>&6
11182 else
11183
11184 cat > conftest.$ac_ext <<EOF
11185 #line 11186 "configure"
11186 #include "confdefs.h"
11187 #include <wchar.h>
11188 int main() {
11189
11190 wchar_t wc, *ws;
11191 wc = L'a';
11192 ws = L"Hello, world!";
11193
11194 ; return 0; }
11195 EOF
11196 if { (eval echo configure:11197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11197 rm -rf conftest*
11198 wx_cv_type_wchar_t=yes
11199 else
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11202 rm -rf conftest*
11203 cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure"
11205 #include "confdefs.h"
11206 #include <stdlib.h>
11207 int main() {
11208
11209 wchar_t wc, *ws;
11210 wc = L'a';
11211 ws = L"Hello, world!";
11212
11213 ; return 0; }
11214 EOF
11215 if { (eval echo configure:11216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11216 rm -rf conftest*
11217 wx_cv_type_wchar_t=yes
11218 else
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11221 rm -rf conftest*
11222 wx_cv_type_wchar_t=no
11223 fi
11224 rm -f conftest*
11225
11226 fi
11227 rm -f conftest*
11228
11229 fi
11230
11231 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11232
11233 if test "$wx_cv_type_wchar_t" = "yes"; then
11234 cat >> confdefs.h <<\EOF
11235 #define wxUSE_WCHAR_T 1
11236 EOF
11237
11238 fi
11239
11240
11241 ac_ext=C
11242 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11243 ac_cpp='$CXXCPP $CPPFLAGS'
11244 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11245 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11246 cross_compiling=$ac_cv_prog_cxx_cross
11247
11248 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11249 echo "configure:11250: checking if size_t is unsigned int" >&5
11250 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11252 else
11253 cat > conftest.$ac_ext <<EOF
11254 #line 11255 "configure"
11255 #include "confdefs.h"
11256 #include <stddef.h>
11257 int main() {
11258
11259 return 0; }
11260
11261 struct Foo { void foo(size_t); void foo(unsigned int); };
11262
11263 int bar() {
11264
11265 ; return 0; }
11266 EOF
11267 if { (eval echo configure:11268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11268 rm -rf conftest*
11269 wx_cv_size_t_is_uint=no
11270 else
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 rm -rf conftest*
11274 wx_cv_size_t_is_uint=yes
11275
11276 fi
11277 rm -f conftest*
11278
11279 fi
11280
11281 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11282
11283 if test "$wx_cv_size_t_is_uint" = "yes"; then
11284 cat >> confdefs.h <<\EOF
11285 #define wxSIZE_T_IS_UINT 1
11286 EOF
11287
11288 else
11289 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11290 echo "configure:11291: checking if size_t is unsigned long" >&5
11291 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11293 else
11294 cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure"
11296 #include "confdefs.h"
11297 #include <stddef.h>
11298 int main() {
11299
11300 return 0; }
11301
11302 struct Foo { void foo(size_t); void foo(unsigned long); };
11303
11304 int bar() {
11305
11306 ; return 0; }
11307 EOF
11308 if { (eval echo configure:11309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11309 rm -rf conftest*
11310 wx_cv_size_t_is_ulong=no
11311 else
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 rm -rf conftest*
11315 wx_cv_size_t_is_ulong=yes
11316
11317 fi
11318 rm -f conftest*
11319
11320 fi
11321
11322 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11323
11324 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11325 cat >> confdefs.h <<\EOF
11326 #define wxSIZE_T_IS_ULONG 1
11327 EOF
11328
11329 fi
11330 fi
11331
11332 ac_ext=c
11333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11334 ac_cpp='$CPP $CPPFLAGS'
11335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11337 cross_compiling=$ac_cv_prog_cc_cross
11338
11339
11340
11341 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11342 echo "configure:11343: checking for pw_gecos in struct passwd" >&5
11343 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11344 echo $ac_n "(cached) $ac_c" 1>&6
11345 else
11346
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 #include <pwd.h>
11351 int main() {
11352
11353 char *p;
11354 struct passwd *pw;
11355 p = pw->pw_gecos;
11356
11357 ; return 0; }
11358 EOF
11359 if { (eval echo configure:11360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11360 rm -rf conftest*
11361
11362 wx_cv_struct_pw_gecos=yes
11363
11364 else
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 rm -rf conftest*
11368
11369 wx_cv_struct_pw_gecos=no
11370
11371
11372 fi
11373 rm -f conftest*
11374
11375
11376 fi
11377
11378 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11379
11380 if test "$wx_cv_struct_pw_gecos" = "yes"; then
11381 cat >> confdefs.h <<\EOF
11382 #define HAVE_PW_GECOS 1
11383 EOF
11384
11385 fi
11386
11387
11388 echo $ac_n "checking for working const""... $ac_c" 1>&6
11389 echo "configure:11390: checking for working const" >&5
11390 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11391 echo $ac_n "(cached) $ac_c" 1>&6
11392 else
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11396
11397 int main() {
11398
11399 /* Ultrix mips cc rejects this. */
11400 typedef int charset[2]; const charset x;
11401 /* SunOS 4.1.1 cc rejects this. */
11402 char const *const *ccp;
11403 char **p;
11404 /* NEC SVR4.0.2 mips cc rejects this. */
11405 struct point {int x, y;};
11406 static struct point const zero = {0,0};
11407 /* AIX XL C 1.02.0.0 rejects this.
11408 It does not let you subtract one const X* pointer from another in an arm
11409 of an if-expression whose if-part is not a constant expression */
11410 const char *g = "string";
11411 ccp = &g + (g ? g-g : 0);
11412 /* HPUX 7.0 cc rejects these. */
11413 ++ccp;
11414 p = (char**) ccp;
11415 ccp = (char const *const *) p;
11416 { /* SCO 3.2v4 cc rejects this. */
11417 char *t;
11418 char const *s = 0 ? (char *) 0 : (char const *) 0;
11419
11420 *t++ = 0;
11421 }
11422 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11423 int x[] = {25, 17};
11424 const int *foo = &x[0];
11425 ++foo;
11426 }
11427 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11428 typedef const int *iptr;
11429 iptr p = 0;
11430 ++p;
11431 }
11432 { /* AIX XL C 1.02.0.0 rejects this saying
11433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11434 struct s { int j; const int *ap[3]; };
11435 struct s *b; b->j = 5;
11436 }
11437 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11438 const int foo = 10;
11439 }
11440
11441 ; return 0; }
11442 EOF
11443 if { (eval echo configure:11444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11444 rm -rf conftest*
11445 ac_cv_c_const=yes
11446 else
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 rm -rf conftest*
11450 ac_cv_c_const=no
11451 fi
11452 rm -f conftest*
11453 fi
11454
11455 echo "$ac_t""$ac_cv_c_const" 1>&6
11456 if test $ac_cv_c_const = no; then
11457 cat >> confdefs.h <<\EOF
11458 #define const
11459 EOF
11460
11461 fi
11462
11463 echo $ac_n "checking for inline""... $ac_c" 1>&6
11464 echo "configure:11465: checking for inline" >&5
11465 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11467 else
11468 ac_cv_c_inline=no
11469 for ac_kw in inline __inline__ __inline; do
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11473
11474 int main() {
11475 } $ac_kw foo() {
11476 ; return 0; }
11477 EOF
11478 if { (eval echo configure:11479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11479 rm -rf conftest*
11480 ac_cv_c_inline=$ac_kw; break
11481 else
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11484 fi
11485 rm -f conftest*
11486 done
11487
11488 fi
11489
11490 echo "$ac_t""$ac_cv_c_inline" 1>&6
11491 case "$ac_cv_c_inline" in
11492 inline | yes) ;;
11493 no) cat >> confdefs.h <<\EOF
11494 #define inline
11495 EOF
11496 ;;
11497 *) cat >> confdefs.h <<EOF
11498 #define inline $ac_cv_c_inline
11499 EOF
11500 ;;
11501 esac
11502
11503
11504 echo $ac_n "checking size of char""... $ac_c" 1>&6
11505 echo "configure:11506: checking size of char" >&5
11506 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11509 if test "$cross_compiling" = yes; then
11510 ac_cv_sizeof_char=1
11511 else
11512 cat > conftest.$ac_ext <<EOF
11513 #line 11514 "configure"
11514 #include "confdefs.h"
11515 #include <stdio.h>
11516 main()
11517 {
11518 FILE *f=fopen("conftestval", "w");
11519 if (!f) exit(1);
11520 fprintf(f, "%d\n", sizeof(char));
11521 exit(0);
11522 }
11523 EOF
11524 if { (eval echo configure:11525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11525 then
11526 ac_cv_sizeof_char=`cat conftestval`
11527 else
11528 echo "configure: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11530 rm -fr conftest*
11531 ac_cv_sizeof_char=0
11532 fi
11533 rm -fr conftest*
11534 fi
11535
11536 fi
11537 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11538 cat >> confdefs.h <<EOF
11539 #define SIZEOF_CHAR $ac_cv_sizeof_char
11540 EOF
11541
11542
11543 echo $ac_n "checking size of short""... $ac_c" 1>&6
11544 echo "configure:11545: checking size of short" >&5
11545 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11546 echo $ac_n "(cached) $ac_c" 1>&6
11547 else
11548 if test "$cross_compiling" = yes; then
11549 ac_cv_sizeof_short=2
11550 else
11551 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11554 #include <stdio.h>
11555 main()
11556 {
11557 FILE *f=fopen("conftestval", "w");
11558 if (!f) exit(1);
11559 fprintf(f, "%d\n", sizeof(short));
11560 exit(0);
11561 }
11562 EOF
11563 if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11564 then
11565 ac_cv_sizeof_short=`cat conftestval`
11566 else
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -fr conftest*
11570 ac_cv_sizeof_short=0
11571 fi
11572 rm -fr conftest*
11573 fi
11574
11575 fi
11576 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11577 cat >> confdefs.h <<EOF
11578 #define SIZEOF_SHORT $ac_cv_sizeof_short
11579 EOF
11580
11581
11582 echo $ac_n "checking size of int *""... $ac_c" 1>&6
11583 echo "configure:11584: checking size of int *" >&5
11584 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11585 echo $ac_n "(cached) $ac_c" 1>&6
11586 else
11587 if test "$cross_compiling" = yes; then
11588 ac_cv_sizeof_int_p=4
11589 else
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11593 #include <stdio.h>
11594 main()
11595 {
11596 FILE *f=fopen("conftestval", "w");
11597 if (!f) exit(1);
11598 fprintf(f, "%d\n", sizeof(int *));
11599 exit(0);
11600 }
11601 EOF
11602 if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11603 then
11604 ac_cv_sizeof_int_p=`cat conftestval`
11605 else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -fr conftest*
11609 ac_cv_sizeof_int_p=0
11610 fi
11611 rm -fr conftest*
11612 fi
11613
11614 fi
11615 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11616 cat >> confdefs.h <<EOF
11617 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
11618 EOF
11619
11620
11621 echo $ac_n "checking size of int""... $ac_c" 1>&6
11622 echo "configure:11623: checking size of int" >&5
11623 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11624 echo $ac_n "(cached) $ac_c" 1>&6
11625 else
11626 if test "$cross_compiling" = yes; then
11627 ac_cv_sizeof_int=4
11628 else
11629 cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 #include <stdio.h>
11633 main()
11634 {
11635 FILE *f=fopen("conftestval", "w");
11636 if (!f) exit(1);
11637 fprintf(f, "%d\n", sizeof(int));
11638 exit(0);
11639 }
11640 EOF
11641 if { (eval echo configure:11642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11642 then
11643 ac_cv_sizeof_int=`cat conftestval`
11644 else
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11647 rm -fr conftest*
11648 ac_cv_sizeof_int=0
11649 fi
11650 rm -fr conftest*
11651 fi
11652
11653 fi
11654 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11655 cat >> confdefs.h <<EOF
11656 #define SIZEOF_INT $ac_cv_sizeof_int
11657 EOF
11658
11659
11660 echo $ac_n "checking size of long""... $ac_c" 1>&6
11661 echo "configure:11662: checking size of long" >&5
11662 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11663 echo $ac_n "(cached) $ac_c" 1>&6
11664 else
11665 if test "$cross_compiling" = yes; then
11666 ac_cv_sizeof_long=4
11667 else
11668 cat > conftest.$ac_ext <<EOF
11669 #line 11670 "configure"
11670 #include "confdefs.h"
11671 #include <stdio.h>
11672 main()
11673 {
11674 FILE *f=fopen("conftestval", "w");
11675 if (!f) exit(1);
11676 fprintf(f, "%d\n", sizeof(long));
11677 exit(0);
11678 }
11679 EOF
11680 if { (eval echo configure:11681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11681 then
11682 ac_cv_sizeof_long=`cat conftestval`
11683 else
11684 echo "configure: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11686 rm -fr conftest*
11687 ac_cv_sizeof_long=0
11688 fi
11689 rm -fr conftest*
11690 fi
11691
11692 fi
11693 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11694 cat >> confdefs.h <<EOF
11695 #define SIZEOF_LONG $ac_cv_sizeof_long
11696 EOF
11697
11698
11699 echo $ac_n "checking size of long long""... $ac_c" 1>&6
11700 echo "configure:11701: checking size of long long" >&5
11701 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11702 echo $ac_n "(cached) $ac_c" 1>&6
11703 else
11704 if test "$cross_compiling" = yes; then
11705 ac_cv_sizeof_long_long=0
11706 else
11707 cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11710 #include <stdio.h>
11711 main()
11712 {
11713 FILE *f=fopen("conftestval", "w");
11714 if (!f) exit(1);
11715 fprintf(f, "%d\n", sizeof(long long));
11716 exit(0);
11717 }
11718 EOF
11719 if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11720 then
11721 ac_cv_sizeof_long_long=`cat conftestval`
11722 else
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11725 rm -fr conftest*
11726 ac_cv_sizeof_long_long=0
11727 fi
11728 rm -fr conftest*
11729 fi
11730
11731 fi
11732 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11733 cat >> confdefs.h <<EOF
11734 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11735 EOF
11736
11737
11738
11739 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
11740 echo "configure:11741: checking size of wchar_t" >&5
11741 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11743 else
11744
11745 if test "$cross_compiling" = yes; then
11746 wx_cv_sizeof_wchar_t=4
11747
11748 else
11749 cat > conftest.$ac_ext <<EOF
11750 #line 11751 "configure"
11751 #include "confdefs.h"
11752
11753 #ifdef HAVE_WCHAR_H
11754 # include <wchar.h>
11755 #endif
11756 #ifdef HAVE_STDLIB_H
11757 # include <stdlib.h>
11758 #endif
11759 #include <stdio.h>
11760 int main()
11761 {
11762 FILE *f=fopen("conftestval", "w");
11763 if (!f) exit(1);
11764 fprintf(f, "%i", sizeof(wchar_t));
11765 exit(0);
11766 }
11767
11768 EOF
11769 if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11770 then
11771 wx_cv_sizeof_wchar_t=`cat conftestval`
11772 else
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 rm -fr conftest*
11776 wx_cv_sizeof_wchar_t=0
11777 fi
11778 rm -fr conftest*
11779 fi
11780
11781
11782 fi
11783
11784 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11785
11786 cat >> confdefs.h <<EOF
11787 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
11788 EOF
11789
11790
11791 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11792 echo "configure:11793: checking whether byte ordering is bigendian" >&5
11793 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
11795 else
11796 ac_cv_c_bigendian=unknown
11797 # See if sys/param.h defines the BYTE_ORDER macro.
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 #include <sys/types.h>
11802 #include <sys/param.h>
11803 int main() {
11804
11805 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11806 bogus endian macros
11807 #endif
11808 ; return 0; }
11809 EOF
11810 if { (eval echo configure:11811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11811 rm -rf conftest*
11812 # It does; now see whether it defined to BIG_ENDIAN or not.
11813 cat > conftest.$ac_ext <<EOF
11814 #line 11815 "configure"
11815 #include "confdefs.h"
11816 #include <sys/types.h>
11817 #include <sys/param.h>
11818 int main() {
11819
11820 #if BYTE_ORDER != BIG_ENDIAN
11821 not big endian
11822 #endif
11823 ; return 0; }
11824 EOF
11825 if { (eval echo configure:11826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11826 rm -rf conftest*
11827 ac_cv_c_bigendian=yes
11828 else
11829 echo "configure: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 rm -rf conftest*
11832 ac_cv_c_bigendian=no
11833 fi
11834 rm -f conftest*
11835 else
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 fi
11839 rm -f conftest*
11840 if test $ac_cv_c_bigendian = unknown; then
11841 if test "$cross_compiling" = yes; then
11842 ac_cv_c_bigendian=unknown
11843 else
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 main () {
11848 /* Are we little or big endian? From Harbison&Steele. */
11849 union
11850 {
11851 long l;
11852 char c[sizeof (long)];
11853 } u;
11854 u.l = 1;
11855 exit (u.c[sizeof (long) - 1] == 1);
11856 }
11857 EOF
11858 if { (eval echo configure:11859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11859 then
11860 ac_cv_c_bigendian=no
11861 else
11862 echo "configure: failed program was:" >&5
11863 cat conftest.$ac_ext >&5
11864 rm -fr conftest*
11865 ac_cv_c_bigendian=yes
11866 fi
11867 rm -fr conftest*
11868 fi
11869
11870 fi
11871 fi
11872
11873 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11874 if test $ac_cv_c_bigendian = unknown; then
11875 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
11876 fi
11877 if test $ac_cv_c_bigendian = yes; then
11878 cat >> confdefs.h <<\EOF
11879 #define WORDS_BIGENDIAN 1
11880 EOF
11881
11882 fi
11883
11884
11885
11886 if test "$cross_compiling" = "yes"; then
11887 cat >> confdefs.h <<\EOF
11888 #define wxUSE_IOSTREAMH 1
11889 EOF
11890
11891 else
11892
11893 ac_ext=C
11894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11895 ac_cpp='$CXXCPP $CPPFLAGS'
11896 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11897 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11898 cross_compiling=$ac_cv_prog_cxx_cross
11899
11900
11901 for ac_hdr in iostream
11902 do
11903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11905 echo "configure:11906: checking for $ac_hdr" >&5
11906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11907 echo $ac_n "(cached) $ac_c" 1>&6
11908 else
11909 cat > conftest.$ac_ext <<EOF
11910 #line 11911 "configure"
11911 #include "confdefs.h"
11912 #include <$ac_hdr>
11913 EOF
11914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11915 { (eval echo configure:11916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11917 if test -z "$ac_err"; then
11918 rm -rf conftest*
11919 eval "ac_cv_header_$ac_safe=yes"
11920 else
11921 echo "$ac_err" >&5
11922 echo "configure: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 rm -rf conftest*
11925 eval "ac_cv_header_$ac_safe=no"
11926 fi
11927 rm -f conftest*
11928 fi
11929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11930 echo "$ac_t""yes" 1>&6
11931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11932 cat >> confdefs.h <<EOF
11933 #define $ac_tr_hdr 1
11934 EOF
11935
11936 else
11937 echo "$ac_t""no" 1>&6
11938 fi
11939 done
11940
11941
11942 if test "$ac_cv_header_iostream" = "yes" ; then
11943 :
11944 else
11945 cat >> confdefs.h <<\EOF
11946 #define wxUSE_IOSTREAMH 1
11947 EOF
11948
11949 fi
11950
11951 ac_ext=c
11952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11953 ac_cpp='$CPP $CPPFLAGS'
11954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11956 cross_compiling=$ac_cv_prog_cc_cross
11957
11958 fi
11959
11960
11961
11962 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11963 echo "configure:11964: checking if C++ compiler supports bool" >&5
11964 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11966 else
11967
11968
11969 ac_ext=C
11970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11971 ac_cpp='$CXXCPP $CPPFLAGS'
11972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11974 cross_compiling=$ac_cv_prog_cxx_cross
11975
11976
11977 cat > conftest.$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11980
11981
11982 int main() {
11983
11984 bool b = true;
11985
11986 return 0;
11987
11988 ; return 0; }
11989 EOF
11990 if { (eval echo configure:11991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11991 rm -rf conftest*
11992
11993 wx_cv_cpp_bool=yes
11994
11995 else
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 rm -rf conftest*
11999
12000 wx_cv_cpp_bool=no
12001
12002
12003 fi
12004 rm -f conftest*
12005
12006 ac_ext=c
12007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12008 ac_cpp='$CPP $CPPFLAGS'
12009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12011 cross_compiling=$ac_cv_prog_cc_cross
12012
12013
12014 fi
12015
12016 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12017
12018 if test "$wx_cv_cpp_bool" = "yes"; then
12019 cat >> confdefs.h <<\EOF
12020 #define HAVE_BOOL 1
12021 EOF
12022
12023 fi
12024
12025
12026
12027 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12028 echo "configure:12029: checking for wcslen in -lc" >&5
12029 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
12032 else
12033 ac_save_LIBS="$LIBS"
12034 LIBS="-lc $LIBS"
12035 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 /* Override any gcc2 internal prototype to avoid an error. */
12039 /* We use char because int might match the return type of a gcc2
12040 builtin and then its argument prototype would still apply. */
12041 char wcslen();
12042
12043 int main() {
12044 wcslen()
12045 ; return 0; }
12046 EOF
12047 if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12048 rm -rf conftest*
12049 eval "ac_cv_lib_$ac_lib_var=yes"
12050 else
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 rm -rf conftest*
12054 eval "ac_cv_lib_$ac_lib_var=no"
12055 fi
12056 rm -f conftest*
12057 LIBS="$ac_save_LIBS"
12058
12059 fi
12060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12061 echo "$ac_t""yes" 1>&6
12062
12063 cat >> confdefs.h <<\EOF
12064 #define HAVE_WCSLEN 1
12065 EOF
12066
12067 WCHAR_LINK=""
12068
12069 else
12070 echo "$ac_t""no" 1>&6
12071
12072 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12073 echo "configure:12074: checking for wcslen in -lw" >&5
12074 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12077 else
12078 ac_save_LIBS="$LIBS"
12079 LIBS="-lw $LIBS"
12080 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12083 /* Override any gcc2 internal prototype to avoid an error. */
12084 /* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12086 char wcslen();
12087
12088 int main() {
12089 wcslen()
12090 ; return 0; }
12091 EOF
12092 if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12093 rm -rf conftest*
12094 eval "ac_cv_lib_$ac_lib_var=yes"
12095 else
12096 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12098 rm -rf conftest*
12099 eval "ac_cv_lib_$ac_lib_var=no"
12100 fi
12101 rm -f conftest*
12102 LIBS="$ac_save_LIBS"
12103
12104 fi
12105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12106 echo "$ac_t""yes" 1>&6
12107
12108 cat >> confdefs.h <<\EOF
12109 #define HAVE_WCSLEN 1
12110 EOF
12111
12112 WCHAR_LINK="-lw"
12113
12114 else
12115 echo "$ac_t""no" 1>&6
12116 fi
12117
12118
12119 fi
12120
12121
12122 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12123 echo "configure:12124: checking for vprintf" >&5
12124 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12126 else
12127 cat > conftest.$ac_ext <<EOF
12128 #line 12129 "configure"
12129 #include "confdefs.h"
12130 /* System header to define __stub macros and hopefully few prototypes,
12131 which can conflict with char vprintf(); below. */
12132 #include <assert.h>
12133 /* Override any gcc2 internal prototype to avoid an error. */
12134 /* We use char because int might match the return type of a gcc2
12135 builtin and then its argument prototype would still apply. */
12136 char vprintf();
12137
12138 int main() {
12139
12140 /* The GNU C library defines this for functions which it implements
12141 to always fail with ENOSYS. Some functions are actually named
12142 something starting with __ and the normal name is an alias. */
12143 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12144 choke me
12145 #else
12146 vprintf();
12147 #endif
12148
12149 ; return 0; }
12150 EOF
12151 if { (eval echo configure:12152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12152 rm -rf conftest*
12153 eval "ac_cv_func_vprintf=yes"
12154 else
12155 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 rm -rf conftest*
12158 eval "ac_cv_func_vprintf=no"
12159 fi
12160 rm -f conftest*
12161 fi
12162
12163 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12164 echo "$ac_t""yes" 1>&6
12165 cat >> confdefs.h <<\EOF
12166 #define HAVE_VPRINTF 1
12167 EOF
12168
12169 else
12170 echo "$ac_t""no" 1>&6
12171 fi
12172
12173 if test "$ac_cv_func_vprintf" != yes; then
12174 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12175 echo "configure:12176: checking for _doprnt" >&5
12176 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12177 echo $ac_n "(cached) $ac_c" 1>&6
12178 else
12179 cat > conftest.$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 /* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char _doprnt(); below. */
12184 #include <assert.h>
12185 /* Override any gcc2 internal prototype to avoid an error. */
12186 /* We use char because int might match the return type of a gcc2
12187 builtin and then its argument prototype would still apply. */
12188 char _doprnt();
12189
12190 int main() {
12191
12192 /* The GNU C library defines this for functions which it implements
12193 to always fail with ENOSYS. Some functions are actually named
12194 something starting with __ and the normal name is an alias. */
12195 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12196 choke me
12197 #else
12198 _doprnt();
12199 #endif
12200
12201 ; return 0; }
12202 EOF
12203 if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12204 rm -rf conftest*
12205 eval "ac_cv_func__doprnt=yes"
12206 else
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 rm -rf conftest*
12210 eval "ac_cv_func__doprnt=no"
12211 fi
12212 rm -f conftest*
12213 fi
12214
12215 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12216 echo "$ac_t""yes" 1>&6
12217 cat >> confdefs.h <<\EOF
12218 #define HAVE_DOPRNT 1
12219 EOF
12220
12221 else
12222 echo "$ac_t""no" 1>&6
12223 fi
12224
12225 fi
12226
12227
12228
12229
12230
12231
12232
12233 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12234 echo "configure:12235: checking for vsnprintf" >&5
12235 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12236 echo $ac_n "(cached) $ac_c" 1>&6
12237 else
12238
12239 cat > conftest.$ac_ext <<EOF
12240 #line 12241 "configure"
12241 #include "confdefs.h"
12242
12243 #include <stdio.h>
12244 #include <stdarg.h>
12245
12246 int main() {
12247
12248 int wx_test_vsnprintf(const char *, ...);
12249
12250 wx_test_vsnprintf("%s");
12251 return 0;
12252 }
12253
12254 int wx_test_vsnprintf(const char *fmt, ...)
12255 {
12256 char *s;
12257
12258 va_list argp;
12259 va_start(argp, fmt);
12260 vsnprintf(s, 42, fmt, argp);
12261 va_end(argp);
12262
12263 ; return 0; }
12264 EOF
12265 if { (eval echo configure:12266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12266 rm -rf conftest*
12267
12268 wx_cv_func_vsnprintf=yes
12269
12270 else
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 rm -rf conftest*
12274
12275 cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12278
12279 #include <stdio.h>
12280 #include <stdarg.h>
12281
12282 int main() {
12283
12284 int wx_test_vsnprintf(const char *, ...);
12285
12286 wx_test_vsnprintf("%s");
12287 return 0;
12288 }
12289
12290 int wx_test_vsnprintf(const char *fmt, ...)
12291 {
12292 char *s;
12293
12294 va_list argp;
12295 va_start(argp, fmt);
12296 _vsnprintf(s, 42, fmt, argp);
12297 va_end(argp);
12298
12299 ; return 0; }
12300 EOF
12301 if { (eval echo configure:12302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12302 rm -rf conftest*
12303
12304 wx_cv_func_vsnprintf=yes
12305
12306 else
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 rm -rf conftest*
12310
12311 wx_cv_func_vsnprintf=no
12312
12313 fi
12314 rm -f conftest*
12315
12316 fi
12317 rm -f conftest*
12318
12319 fi
12320
12321 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12322
12323 if test "$wx_cv_func_vsnprintf" = yes; then
12324 cat >> confdefs.h <<\EOF
12325 #define HAVE_VSNPRINTF 1
12326 EOF
12327
12328 else
12329 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12330 fi
12331
12332 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12333 echo "configure:12334: checking for vsscanf" >&5
12334 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12335 echo $ac_n "(cached) $ac_c" 1>&6
12336 else
12337
12338 cat > conftest.$ac_ext <<EOF
12339 #line 12340 "configure"
12340 #include "confdefs.h"
12341
12342 #include <stdio.h>
12343 #include <stdarg.h>
12344
12345 int main() {
12346
12347 int wx_test_vsscanf(const char *, ...);
12348
12349 wx_test_vsscanf("%d");
12350 return 0;
12351 }
12352
12353 int wx_test_vsscanf(const char *fmt, ...)
12354 {
12355 va_list argp;
12356 va_start(argp, fmt);
12357 vsscanf("42", fmt, argp);
12358 va_end(argp);
12359
12360 ; return 0; }
12361 EOF
12362 if { (eval echo configure:12363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12363 rm -rf conftest*
12364
12365 wx_cv_func_vsscanf=yes
12366
12367 else
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 rm -rf conftest*
12371
12372 wx_cv_func_vsscanf=no
12373
12374 fi
12375 rm -f conftest*
12376
12377 fi
12378
12379 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12380
12381 if test "$wx_cv_func_vsscanf" = yes; then
12382 cat >> confdefs.h <<\EOF
12383 #define HAVE_VSSCANF 1
12384 EOF
12385
12386 fi
12387
12388 if test "$TOOLKIT" != "MSW"; then
12389
12390
12391
12392 ac_ext=C
12393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12394 ac_cpp='$CXXCPP $CPPFLAGS'
12395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12397 cross_compiling=$ac_cv_prog_cxx_cross
12398
12399 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12400 echo "configure:12401: checking if iconv() takes char**" >&5
12401 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12402 echo $ac_n "(cached) $ac_c" 1>&6
12403 else
12404
12405 cat > conftest.$ac_ext <<EOF
12406 #line 12407 "configure"
12407 #include "confdefs.h"
12408 #include <iconv.h>
12409 int main() {
12410
12411 char **inbuf, **outbuf;
12412 iconv_t cd;
12413 size_t insz, outsz;
12414 iconv(cd, inbuf, &insz, outbuf, &outsz);
12415
12416 ; return 0; }
12417 EOF
12418 if { (eval echo configure:12419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12419 rm -rf conftest*
12420 wx_cv_iconv_takes_char=yes
12421 else
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 rm -rf conftest*
12425 wx_cv_iconv_takes_char=no
12426 fi
12427 rm -f conftest*
12428
12429 fi
12430
12431 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12432 ac_ext=c
12433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12434 ac_cpp='$CPP $CPPFLAGS'
12435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12437 cross_compiling=$ac_cv_prog_cc_cross
12438
12439 if test "$wx_cv_iconv_takes_char" = yes ; then
12440 cat >> confdefs.h <<\EOF
12441 #define WX_ICONV_TAKES_CHAR 1
12442 EOF
12443
12444 fi
12445
12446
12447 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12448 for ac_func in sigaction
12449 do
12450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12451 echo "configure:12452: checking for $ac_func" >&5
12452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12453 echo $ac_n "(cached) $ac_c" 1>&6
12454 else
12455 cat > conftest.$ac_ext <<EOF
12456 #line 12457 "configure"
12457 #include "confdefs.h"
12458 /* System header to define __stub macros and hopefully few prototypes,
12459 which can conflict with char $ac_func(); below. */
12460 #include <assert.h>
12461 /* Override any gcc2 internal prototype to avoid an error. */
12462 /* We use char because int might match the return type of a gcc2
12463 builtin and then its argument prototype would still apply. */
12464 char $ac_func();
12465
12466 int main() {
12467
12468 /* The GNU C library defines this for functions which it implements
12469 to always fail with ENOSYS. Some functions are actually named
12470 something starting with __ and the normal name is an alias. */
12471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12472 choke me
12473 #else
12474 $ac_func();
12475 #endif
12476
12477 ; return 0; }
12478 EOF
12479 if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12480 rm -rf conftest*
12481 eval "ac_cv_func_$ac_func=yes"
12482 else
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 rm -rf conftest*
12486 eval "ac_cv_func_$ac_func=no"
12487 fi
12488 rm -f conftest*
12489 fi
12490
12491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12492 echo "$ac_t""yes" 1>&6
12493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12494 cat >> confdefs.h <<EOF
12495 #define $ac_tr_func 1
12496 EOF
12497
12498 else
12499 echo "$ac_t""no" 1>&6
12500 fi
12501 done
12502
12503
12504 if test "$ac_cv_func_sigaction" = "no"; then
12505 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
12506 wxUSE_ON_FATAL_EXCEPTION=no
12507 fi
12508
12509 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12510
12511 ac_ext=C
12512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12513 ac_cpp='$CXXCPP $CPPFLAGS'
12514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12516 cross_compiling=$ac_cv_prog_cxx_cross
12517
12518
12519 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
12520 echo "configure:12521: checking for sa_handler type" >&5
12521 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12523 else
12524
12525 cat > conftest.$ac_ext <<EOF
12526 #line 12527 "configure"
12527 #include "confdefs.h"
12528 #include <signal.h>
12529 int main() {
12530
12531 extern void testSigHandler(int);
12532
12533 struct sigaction sa;
12534 sa.sa_handler = testSigHandler;
12535
12536 ; return 0; }
12537 EOF
12538 if { (eval echo configure:12539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12539 rm -rf conftest*
12540
12541 wx_cv_type_sa_handler=int
12542
12543 else
12544 echo "configure: failed program was:" >&5
12545 cat conftest.$ac_ext >&5
12546 rm -rf conftest*
12547
12548 wx_cv_type_sa_handler=void
12549
12550 fi
12551 rm -f conftest*
12552
12553 fi
12554
12555 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
12556
12557 ac_ext=c
12558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12559 ac_cpp='$CPP $CPPFLAGS'
12560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12562 cross_compiling=$ac_cv_prog_cc_cross
12563
12564
12565 cat >> confdefs.h <<EOF
12566 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12567 EOF
12568
12569 fi
12570 fi
12571
12572 for ac_func in vfork
12573 do
12574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12575 echo "configure:12576: checking for $ac_func" >&5
12576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12577 echo $ac_n "(cached) $ac_c" 1>&6
12578 else
12579 cat > conftest.$ac_ext <<EOF
12580 #line 12581 "configure"
12581 #include "confdefs.h"
12582 /* System header to define __stub macros and hopefully few prototypes,
12583 which can conflict with char $ac_func(); below. */
12584 #include <assert.h>
12585 /* Override any gcc2 internal prototype to avoid an error. */
12586 /* We use char because int might match the return type of a gcc2
12587 builtin and then its argument prototype would still apply. */
12588 char $ac_func();
12589
12590 int main() {
12591
12592 /* The GNU C library defines this for functions which it implements
12593 to always fail with ENOSYS. Some functions are actually named
12594 something starting with __ and the normal name is an alias. */
12595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12596 choke me
12597 #else
12598 $ac_func();
12599 #endif
12600
12601 ; return 0; }
12602 EOF
12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12604 rm -rf conftest*
12605 eval "ac_cv_func_$ac_func=yes"
12606 else
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12609 rm -rf conftest*
12610 eval "ac_cv_func_$ac_func=no"
12611 fi
12612 rm -f conftest*
12613 fi
12614
12615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12616 echo "$ac_t""yes" 1>&6
12617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12618 cat >> confdefs.h <<EOF
12619 #define $ac_tr_func 1
12620 EOF
12621
12622 else
12623 echo "$ac_t""no" 1>&6
12624 fi
12625 done
12626
12627
12628 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12629 for ac_func in fcntl flock
12630 do
12631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12632 echo "configure:12633: checking for $ac_func" >&5
12633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12634 echo $ac_n "(cached) $ac_c" 1>&6
12635 else
12636 cat > conftest.$ac_ext <<EOF
12637 #line 12638 "configure"
12638 #include "confdefs.h"
12639 /* System header to define __stub macros and hopefully few prototypes,
12640 which can conflict with char $ac_func(); below. */
12641 #include <assert.h>
12642 /* Override any gcc2 internal prototype to avoid an error. */
12643 /* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12645 char $ac_func();
12646
12647 int main() {
12648
12649 /* The GNU C library defines this for functions which it implements
12650 to always fail with ENOSYS. Some functions are actually named
12651 something starting with __ and the normal name is an alias. */
12652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12653 choke me
12654 #else
12655 $ac_func();
12656 #endif
12657
12658 ; return 0; }
12659 EOF
12660 if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12661 rm -rf conftest*
12662 eval "ac_cv_func_$ac_func=yes"
12663 else
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 rm -rf conftest*
12667 eval "ac_cv_func_$ac_func=no"
12668 fi
12669 rm -f conftest*
12670 fi
12671
12672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12673 echo "$ac_t""yes" 1>&6
12674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12675 cat >> confdefs.h <<EOF
12676 #define $ac_tr_func 1
12677 EOF
12678 break
12679 else
12680 echo "$ac_t""no" 1>&6
12681 fi
12682 done
12683
12684
12685 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
12686 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
12687 wxUSE_SNGLINST_CHECKER=no
12688 fi
12689 fi
12690
12691 for ac_func in timegm
12692 do
12693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12694 echo "configure:12695: checking for $ac_func" >&5
12695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12696 echo $ac_n "(cached) $ac_c" 1>&6
12697 else
12698 cat > conftest.$ac_ext <<EOF
12699 #line 12700 "configure"
12700 #include "confdefs.h"
12701 /* System header to define __stub macros and hopefully few prototypes,
12702 which can conflict with char $ac_func(); below. */
12703 #include <assert.h>
12704 /* Override any gcc2 internal prototype to avoid an error. */
12705 /* We use char because int might match the return type of a gcc2
12706 builtin and then its argument prototype would still apply. */
12707 char $ac_func();
12708
12709 int main() {
12710
12711 /* The GNU C library defines this for functions which it implements
12712 to always fail with ENOSYS. Some functions are actually named
12713 something starting with __ and the normal name is an alias. */
12714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12715 choke me
12716 #else
12717 $ac_func();
12718 #endif
12719
12720 ; return 0; }
12721 EOF
12722 if { (eval echo configure:12723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12723 rm -rf conftest*
12724 eval "ac_cv_func_$ac_func=yes"
12725 else
12726 echo "configure: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12728 rm -rf conftest*
12729 eval "ac_cv_func_$ac_func=no"
12730 fi
12731 rm -f conftest*
12732 fi
12733
12734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12735 echo "$ac_t""yes" 1>&6
12736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12737 cat >> confdefs.h <<EOF
12738 #define $ac_tr_func 1
12739 EOF
12740
12741 else
12742 echo "$ac_t""no" 1>&6
12743 fi
12744 done
12745
12746
12747 for ac_func in putenv setenv
12748 do
12749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12750 echo "configure:12751: checking for $ac_func" >&5
12751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12752 echo $ac_n "(cached) $ac_c" 1>&6
12753 else
12754 cat > conftest.$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12757 /* System header to define __stub macros and hopefully few prototypes,
12758 which can conflict with char $ac_func(); below. */
12759 #include <assert.h>
12760 /* Override any gcc2 internal prototype to avoid an error. */
12761 /* We use char because int might match the return type of a gcc2
12762 builtin and then its argument prototype would still apply. */
12763 char $ac_func();
12764
12765 int main() {
12766
12767 /* The GNU C library defines this for functions which it implements
12768 to always fail with ENOSYS. Some functions are actually named
12769 something starting with __ and the normal name is an alias. */
12770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12771 choke me
12772 #else
12773 $ac_func();
12774 #endif
12775
12776 ; return 0; }
12777 EOF
12778 if { (eval echo configure:12779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12779 rm -rf conftest*
12780 eval "ac_cv_func_$ac_func=yes"
12781 else
12782 echo "configure: failed program was:" >&5
12783 cat conftest.$ac_ext >&5
12784 rm -rf conftest*
12785 eval "ac_cv_func_$ac_func=no"
12786 fi
12787 rm -f conftest*
12788 fi
12789
12790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12791 echo "$ac_t""yes" 1>&6
12792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12793 cat >> confdefs.h <<EOF
12794 #define $ac_tr_func 1
12795 EOF
12796 break
12797 else
12798 echo "$ac_t""no" 1>&6
12799 fi
12800 done
12801
12802
12803 HAVE_SOME_SLEEP_FUNC=0
12804 if test "$USE_BEOS" = 1; then
12805 cat >> confdefs.h <<\EOF
12806 #define HAVE_SLEEP 1
12807 EOF
12808
12809 HAVE_SOME_SLEEP_FUNC=1
12810 fi
12811
12812 if test "$USE_MAC" = 1; then
12813 cat >> confdefs.h <<\EOF
12814 #define HAVE_USLEEP 1
12815 EOF
12816
12817 HAVE_SOME_SLEEP_FUNC=1
12818 fi
12819
12820 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12821 POSIX4_LINK=
12822 for ac_func in nanosleep
12823 do
12824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12825 echo "configure:12826: checking for $ac_func" >&5
12826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12827 echo $ac_n "(cached) $ac_c" 1>&6
12828 else
12829 cat > conftest.$ac_ext <<EOF
12830 #line 12831 "configure"
12831 #include "confdefs.h"
12832 /* System header to define __stub macros and hopefully few prototypes,
12833 which can conflict with char $ac_func(); below. */
12834 #include <assert.h>
12835 /* Override any gcc2 internal prototype to avoid an error. */
12836 /* We use char because int might match the return type of a gcc2
12837 builtin and then its argument prototype would still apply. */
12838 char $ac_func();
12839
12840 int main() {
12841
12842 /* The GNU C library defines this for functions which it implements
12843 to always fail with ENOSYS. Some functions are actually named
12844 something starting with __ and the normal name is an alias. */
12845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12846 choke me
12847 #else
12848 $ac_func();
12849 #endif
12850
12851 ; return 0; }
12852 EOF
12853 if { (eval echo configure:12854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12854 rm -rf conftest*
12855 eval "ac_cv_func_$ac_func=yes"
12856 else
12857 echo "configure: failed program was:" >&5
12858 cat conftest.$ac_ext >&5
12859 rm -rf conftest*
12860 eval "ac_cv_func_$ac_func=no"
12861 fi
12862 rm -f conftest*
12863 fi
12864
12865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12866 echo "$ac_t""yes" 1>&6
12867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12868 cat >> confdefs.h <<EOF
12869 #define $ac_tr_func 1
12870 EOF
12871 cat >> confdefs.h <<\EOF
12872 #define HAVE_NANOSLEEP 1
12873 EOF
12874
12875 else
12876 echo "$ac_t""no" 1>&6
12877 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
12878 echo "configure:12879: checking for nanosleep in -lposix4" >&5
12879 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
12880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12881 echo $ac_n "(cached) $ac_c" 1>&6
12882 else
12883 ac_save_LIBS="$LIBS"
12884 LIBS="-lposix4 $LIBS"
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12888 /* Override any gcc2 internal prototype to avoid an error. */
12889 /* We use char because int might match the return type of a gcc2
12890 builtin and then its argument prototype would still apply. */
12891 char nanosleep();
12892
12893 int main() {
12894 nanosleep()
12895 ; return 0; }
12896 EOF
12897 if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12898 rm -rf conftest*
12899 eval "ac_cv_lib_$ac_lib_var=yes"
12900 else
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12903 rm -rf conftest*
12904 eval "ac_cv_lib_$ac_lib_var=no"
12905 fi
12906 rm -f conftest*
12907 LIBS="$ac_save_LIBS"
12908
12909 fi
12910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12911 echo "$ac_t""yes" 1>&6
12912
12913 cat >> confdefs.h <<\EOF
12914 #define HAVE_NANOSLEEP 1
12915 EOF
12916
12917 POSIX4_LINK="-lposix4"
12918
12919 else
12920 echo "$ac_t""no" 1>&6
12921
12922 for ac_func in usleep
12923 do
12924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12925 echo "configure:12926: checking for $ac_func" >&5
12926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12927 echo $ac_n "(cached) $ac_c" 1>&6
12928 else
12929 cat > conftest.$ac_ext <<EOF
12930 #line 12931 "configure"
12931 #include "confdefs.h"
12932 /* System header to define __stub macros and hopefully few prototypes,
12933 which can conflict with char $ac_func(); below. */
12934 #include <assert.h>
12935 /* Override any gcc2 internal prototype to avoid an error. */
12936 /* We use char because int might match the return type of a gcc2
12937 builtin and then its argument prototype would still apply. */
12938 char $ac_func();
12939
12940 int main() {
12941
12942 /* The GNU C library defines this for functions which it implements
12943 to always fail with ENOSYS. Some functions are actually named
12944 something starting with __ and the normal name is an alias. */
12945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12946 choke me
12947 #else
12948 $ac_func();
12949 #endif
12950
12951 ; return 0; }
12952 EOF
12953 if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12954 rm -rf conftest*
12955 eval "ac_cv_func_$ac_func=yes"
12956 else
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 rm -rf conftest*
12960 eval "ac_cv_func_$ac_func=no"
12961 fi
12962 rm -f conftest*
12963 fi
12964
12965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12966 echo "$ac_t""yes" 1>&6
12967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12968 cat >> confdefs.h <<EOF
12969 #define $ac_tr_func 1
12970 EOF
12971 cat >> confdefs.h <<\EOF
12972 #define HAVE_USLEEP 1
12973 EOF
12974
12975 else
12976 echo "$ac_t""no" 1>&6
12977 echo "configure: warning: wxSleep() function will not work" 1>&2
12978
12979 fi
12980 done
12981
12982
12983
12984 fi
12985
12986
12987
12988 fi
12989 done
12990
12991 fi
12992
12993 for ac_func in uname gethostname
12994 do
12995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12996 echo "configure:12997: checking for $ac_func" >&5
12997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12998 echo $ac_n "(cached) $ac_c" 1>&6
12999 else
13000 cat > conftest.$ac_ext <<EOF
13001 #line 13002 "configure"
13002 #include "confdefs.h"
13003 /* System header to define __stub macros and hopefully few prototypes,
13004 which can conflict with char $ac_func(); below. */
13005 #include <assert.h>
13006 /* Override any gcc2 internal prototype to avoid an error. */
13007 /* We use char because int might match the return type of a gcc2
13008 builtin and then its argument prototype would still apply. */
13009 char $ac_func();
13010
13011 int main() {
13012
13013 /* The GNU C library defines this for functions which it implements
13014 to always fail with ENOSYS. Some functions are actually named
13015 something starting with __ and the normal name is an alias. */
13016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13017 choke me
13018 #else
13019 $ac_func();
13020 #endif
13021
13022 ; return 0; }
13023 EOF
13024 if { (eval echo configure:13025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13025 rm -rf conftest*
13026 eval "ac_cv_func_$ac_func=yes"
13027 else
13028 echo "configure: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13030 rm -rf conftest*
13031 eval "ac_cv_func_$ac_func=no"
13032 fi
13033 rm -f conftest*
13034 fi
13035
13036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13037 echo "$ac_t""yes" 1>&6
13038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13039 cat >> confdefs.h <<EOF
13040 #define $ac_tr_func 1
13041 EOF
13042 break
13043 else
13044 echo "$ac_t""no" 1>&6
13045 fi
13046 done
13047
13048
13049
13050 ac_ext=C
13051 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13052 ac_cpp='$CXXCPP $CPPFLAGS'
13053 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13054 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13055 cross_compiling=$ac_cv_prog_cxx_cross
13056
13057
13058 for ac_func in strtok_r
13059 do
13060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13061 echo "configure:13062: checking for $ac_func" >&5
13062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13064 else
13065 cat > conftest.$ac_ext <<EOF
13066 #line 13067 "configure"
13067 #include "confdefs.h"
13068 /* System header to define __stub macros and hopefully few prototypes,
13069 which can conflict with char $ac_func(); below. */
13070 #include <assert.h>
13071 /* Override any gcc2 internal prototype to avoid an error. */
13072 #ifdef __cplusplus
13073 extern "C"
13074 #endif
13075 /* We use char because int might match the return type of a gcc2
13076 builtin and then its argument prototype would still apply. */
13077 char $ac_func();
13078
13079 int main() {
13080
13081 /* The GNU C library defines this for functions which it implements
13082 to always fail with ENOSYS. Some functions are actually named
13083 something starting with __ and the normal name is an alias. */
13084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13085 choke me
13086 #else
13087 $ac_func();
13088 #endif
13089
13090 ; return 0; }
13091 EOF
13092 if { (eval echo configure:13093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13093 rm -rf conftest*
13094 eval "ac_cv_func_$ac_func=yes"
13095 else
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13098 rm -rf conftest*
13099 eval "ac_cv_func_$ac_func=no"
13100 fi
13101 rm -f conftest*
13102 fi
13103
13104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13105 echo "$ac_t""yes" 1>&6
13106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13107 cat >> confdefs.h <<EOF
13108 #define $ac_tr_func 1
13109 EOF
13110
13111 else
13112 echo "$ac_t""no" 1>&6
13113 fi
13114 done
13115
13116
13117 ac_ext=c
13118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13119 ac_cpp='$CPP $CPPFLAGS'
13120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13122 cross_compiling=$ac_cv_prog_cc_cross
13123
13124
13125 INET_LINK=
13126 for ac_func in inet_addr
13127 do
13128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13129 echo "configure:13130: checking for $ac_func" >&5
13130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13131 echo $ac_n "(cached) $ac_c" 1>&6
13132 else
13133 cat > conftest.$ac_ext <<EOF
13134 #line 13135 "configure"
13135 #include "confdefs.h"
13136 /* System header to define __stub macros and hopefully few prototypes,
13137 which can conflict with char $ac_func(); below. */
13138 #include <assert.h>
13139 /* Override any gcc2 internal prototype to avoid an error. */
13140 /* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13142 char $ac_func();
13143
13144 int main() {
13145
13146 /* The GNU C library defines this for functions which it implements
13147 to always fail with ENOSYS. Some functions are actually named
13148 something starting with __ and the normal name is an alias. */
13149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13150 choke me
13151 #else
13152 $ac_func();
13153 #endif
13154
13155 ; return 0; }
13156 EOF
13157 if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13158 rm -rf conftest*
13159 eval "ac_cv_func_$ac_func=yes"
13160 else
13161 echo "configure: failed program was:" >&5
13162 cat conftest.$ac_ext >&5
13163 rm -rf conftest*
13164 eval "ac_cv_func_$ac_func=no"
13165 fi
13166 rm -f conftest*
13167 fi
13168
13169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13170 echo "$ac_t""yes" 1>&6
13171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13172 cat >> confdefs.h <<EOF
13173 #define $ac_tr_func 1
13174 EOF
13175 cat >> confdefs.h <<\EOF
13176 #define HAVE_INET_ADDR 1
13177 EOF
13178
13179 else
13180 echo "$ac_t""no" 1>&6
13181 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13182 echo "configure:13183: checking for inet_addr in -lnsl" >&5
13183 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13185 echo $ac_n "(cached) $ac_c" 1>&6
13186 else
13187 ac_save_LIBS="$LIBS"
13188 LIBS="-lnsl $LIBS"
13189 cat > conftest.$ac_ext <<EOF
13190 #line 13191 "configure"
13191 #include "confdefs.h"
13192 /* Override any gcc2 internal prototype to avoid an error. */
13193 /* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195 char inet_addr();
13196
13197 int main() {
13198 inet_addr()
13199 ; return 0; }
13200 EOF
13201 if { (eval echo configure:13202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13202 rm -rf conftest*
13203 eval "ac_cv_lib_$ac_lib_var=yes"
13204 else
13205 echo "configure: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13207 rm -rf conftest*
13208 eval "ac_cv_lib_$ac_lib_var=no"
13209 fi
13210 rm -f conftest*
13211 LIBS="$ac_save_LIBS"
13212
13213 fi
13214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13215 echo "$ac_t""yes" 1>&6
13216 INET_LINK="nsl"
13217 else
13218 echo "$ac_t""no" 1>&6
13219 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13220 echo "configure:13221: checking for inet_addr in -lresolv" >&5
13221 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
13224 else
13225 ac_save_LIBS="$LIBS"
13226 LIBS="-lresolv $LIBS"
13227 cat > conftest.$ac_ext <<EOF
13228 #line 13229 "configure"
13229 #include "confdefs.h"
13230 /* Override any gcc2 internal prototype to avoid an error. */
13231 /* We use char because int might match the return type of a gcc2
13232 builtin and then its argument prototype would still apply. */
13233 char inet_addr();
13234
13235 int main() {
13236 inet_addr()
13237 ; return 0; }
13238 EOF
13239 if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13240 rm -rf conftest*
13241 eval "ac_cv_lib_$ac_lib_var=yes"
13242 else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -rf conftest*
13246 eval "ac_cv_lib_$ac_lib_var=no"
13247 fi
13248 rm -f conftest*
13249 LIBS="$ac_save_LIBS"
13250
13251 fi
13252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13253 echo "$ac_t""yes" 1>&6
13254 INET_LINK="resolv"
13255
13256 else
13257 echo "$ac_t""no" 1>&6
13258 fi
13259
13260
13261 fi
13262
13263
13264
13265 fi
13266 done
13267
13268
13269 for ac_func in inet_aton
13270 do
13271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13272 echo "configure:13273: checking for $ac_func" >&5
13273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275 else
13276 cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279 /* System header to define __stub macros and hopefully few prototypes,
13280 which can conflict with char $ac_func(); below. */
13281 #include <assert.h>
13282 /* Override any gcc2 internal prototype to avoid an error. */
13283 /* We use char because int might match the return type of a gcc2
13284 builtin and then its argument prototype would still apply. */
13285 char $ac_func();
13286
13287 int main() {
13288
13289 /* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293 choke me
13294 #else
13295 $ac_func();
13296 #endif
13297
13298 ; return 0; }
13299 EOF
13300 if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13301 rm -rf conftest*
13302 eval "ac_cv_func_$ac_func=yes"
13303 else
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 rm -rf conftest*
13307 eval "ac_cv_func_$ac_func=no"
13308 fi
13309 rm -f conftest*
13310 fi
13311
13312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13313 echo "$ac_t""yes" 1>&6
13314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13315 cat >> confdefs.h <<EOF
13316 #define $ac_tr_func 1
13317 EOF
13318 cat >> confdefs.h <<\EOF
13319 #define HAVE_INET_ATON 1
13320 EOF
13321
13322 else
13323 echo "$ac_t""no" 1>&6
13324 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13325 echo "configure:13326: checking for inet_aton in -l$INET_LINK" >&5
13326 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13328 echo $ac_n "(cached) $ac_c" 1>&6
13329 else
13330 ac_save_LIBS="$LIBS"
13331 LIBS="-l$INET_LINK $LIBS"
13332 cat > conftest.$ac_ext <<EOF
13333 #line 13334 "configure"
13334 #include "confdefs.h"
13335 /* Override any gcc2 internal prototype to avoid an error. */
13336 /* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13338 char inet_aton();
13339
13340 int main() {
13341 inet_aton()
13342 ; return 0; }
13343 EOF
13344 if { (eval echo configure:13345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13345 rm -rf conftest*
13346 eval "ac_cv_lib_$ac_lib_var=yes"
13347 else
13348 echo "configure: failed program was:" >&5
13349 cat conftest.$ac_ext >&5
13350 rm -rf conftest*
13351 eval "ac_cv_lib_$ac_lib_var=no"
13352 fi
13353 rm -f conftest*
13354 LIBS="$ac_save_LIBS"
13355
13356 fi
13357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13358 echo "$ac_t""yes" 1>&6
13359 cat >> confdefs.h <<\EOF
13360 #define HAVE_INET_ATON 1
13361 EOF
13362
13363 else
13364 echo "$ac_t""no" 1>&6
13365 fi
13366
13367
13368 fi
13369 done
13370
13371
13372 if test "x$INET_LINK" != "x"; then
13373 cat >> confdefs.h <<\EOF
13374 #define HAVE_INET_ADDR 1
13375 EOF
13376
13377 INET_LINK="-l$INET_LINK"
13378 fi
13379
13380 fi
13381
13382
13383 cat > confcache <<\EOF
13384 # This file is a shell script that caches the results of configure
13385 # tests run on this system so they can be shared between configure
13386 # scripts and configure runs. It is not useful on other systems.
13387 # If it contains results you don't want to keep, you may remove or edit it.
13388 #
13389 # By default, configure uses ./config.cache as the cache file,
13390 # creating it if it does not exist already. You can give configure
13391 # the --cache-file=FILE option to use a different cache file; that is
13392 # what configure does when it calls configure scripts in
13393 # subdirectories, so they share the cache.
13394 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13395 # config.status only pays attention to the cache file if you give it the
13396 # --recheck option to rerun configure.
13397 #
13398 EOF
13399 # The following way of writing the cache mishandles newlines in values,
13400 # but we know of no workaround that is simple, portable, and efficient.
13401 # So, don't put newlines in cache variables' values.
13402 # Ultrix sh set writes to stderr and can't be redirected directly,
13403 # and sets the high bit in the cache file unless we assign to the vars.
13404 (set) 2>&1 |
13405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13406 *ac_space=\ *)
13407 # `set' does not quote correctly, so add quotes (double-quote substitution
13408 # turns \\\\ into \\, and sed turns \\ into \).
13409 sed -n \
13410 -e "s/'/'\\\\''/g" \
13411 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13412 ;;
13413 *)
13414 # `set' quotes correctly as required by POSIX, so do not add quotes.
13415 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13416 ;;
13417 esac >> confcache
13418 if cmp -s $cache_file confcache; then
13419 :
13420 else
13421 if test -w $cache_file; then
13422 echo "updating cache $cache_file"
13423 cat confcache > $cache_file
13424 else
13425 echo "not updating unwritable cache $cache_file"
13426 fi
13427 fi
13428 rm -f confcache
13429
13430
13431
13432 if test "$TOOLKIT" != "MSW"; then
13433
13434
13435 THREADS_LINK=""
13436 THREADS_OBJ=""
13437
13438 if test "$wxUSE_THREADS" = "yes" ; then
13439 if test "$wxUSE_WINE" = 1 ; then
13440 echo "configure: warning: Threads are not supported under WINE" 1>&2
13441 wxUSE_THREADS="no"
13442 elif test "$USE_BEOS" = 1; then
13443 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13444 wxUSE_THREADS="no"
13445 fi
13446 fi
13447
13448 if test "$wxUSE_THREADS" = "yes" ; then
13449
13450 if test "$USE_AIX" = 1; then
13451 THREADS_LIB=pthreads
13452 else
13453 THREADS_LIB=pthread
13454 fi
13455
13456 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13457 echo "configure:13458: checking for pthread_create in -l$THREADS_LIB" >&5
13458 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13460 echo $ac_n "(cached) $ac_c" 1>&6
13461 else
13462 ac_save_LIBS="$LIBS"
13463 LIBS="-l$THREADS_LIB $LIBS"
13464 cat > conftest.$ac_ext <<EOF
13465 #line 13466 "configure"
13466 #include "confdefs.h"
13467 /* Override any gcc2 internal prototype to avoid an error. */
13468 /* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470 char pthread_create();
13471
13472 int main() {
13473 pthread_create()
13474 ; return 0; }
13475 EOF
13476 if { (eval echo configure:13477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13477 rm -rf conftest*
13478 eval "ac_cv_lib_$ac_lib_var=yes"
13479 else
13480 echo "configure: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13482 rm -rf conftest*
13483 eval "ac_cv_lib_$ac_lib_var=no"
13484 fi
13485 rm -f conftest*
13486 LIBS="$ac_save_LIBS"
13487
13488 fi
13489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13490 echo "$ac_t""yes" 1>&6
13491
13492 THREADS_OBJ="threadpsx.lo"
13493 THREADS_LINK=$THREADS_LIB
13494
13495 else
13496 echo "$ac_t""no" 1>&6
13497
13498 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13499 echo "configure:13500: checking for pthread_create in -lc_r" >&5
13500 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13502 echo $ac_n "(cached) $ac_c" 1>&6
13503 else
13504 ac_save_LIBS="$LIBS"
13505 LIBS="-lc_r $LIBS"
13506 cat > conftest.$ac_ext <<EOF
13507 #line 13508 "configure"
13508 #include "confdefs.h"
13509 /* Override any gcc2 internal prototype to avoid an error. */
13510 /* We use char because int might match the return type of a gcc2
13511 builtin and then its argument prototype would still apply. */
13512 char pthread_create();
13513
13514 int main() {
13515 pthread_create()
13516 ; return 0; }
13517 EOF
13518 if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13519 rm -rf conftest*
13520 eval "ac_cv_lib_$ac_lib_var=yes"
13521 else
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13524 rm -rf conftest*
13525 eval "ac_cv_lib_$ac_lib_var=no"
13526 fi
13527 rm -f conftest*
13528 LIBS="$ac_save_LIBS"
13529
13530 fi
13531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13532 echo "$ac_t""yes" 1>&6
13533
13534 THREADS_OBJ="threadpsx.lo"
13535 THREADS_LINK="c_r"
13536
13537 else
13538 echo "$ac_t""no" 1>&6
13539
13540 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13541 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
13542 echo "configure:13543: checking for sys/prctl.h" >&5
13543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13544 echo $ac_n "(cached) $ac_c" 1>&6
13545 else
13546 cat > conftest.$ac_ext <<EOF
13547 #line 13548 "configure"
13548 #include "confdefs.h"
13549 #include <sys/prctl.h>
13550 EOF
13551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13552 { (eval echo configure:13553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13554 if test -z "$ac_err"; then
13555 rm -rf conftest*
13556 eval "ac_cv_header_$ac_safe=yes"
13557 else
13558 echo "$ac_err" >&5
13559 echo "configure: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13561 rm -rf conftest*
13562 eval "ac_cv_header_$ac_safe=no"
13563 fi
13564 rm -f conftest*
13565 fi
13566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13567 echo "$ac_t""yes" 1>&6
13568
13569 THREADS_OBJ="threadsgi.lo"
13570
13571 else
13572 echo "$ac_t""no" 1>&6
13573 fi
13574
13575
13576 fi
13577
13578
13579 fi
13580
13581
13582 if test -z "$THREADS_OBJ" ; then
13583 wxUSE_THREADS=no
13584 echo "configure: warning: No thread support on this system" 1>&2
13585 fi
13586 fi
13587
13588 if test "$wxUSE_THREADS" = "yes" ; then
13589 for ac_func in thr_setconcurrency
13590 do
13591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13592 echo "configure:13593: checking for $ac_func" >&5
13593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13594 echo $ac_n "(cached) $ac_c" 1>&6
13595 else
13596 cat > conftest.$ac_ext <<EOF
13597 #line 13598 "configure"
13598 #include "confdefs.h"
13599 /* System header to define __stub macros and hopefully few prototypes,
13600 which can conflict with char $ac_func(); below. */
13601 #include <assert.h>
13602 /* Override any gcc2 internal prototype to avoid an error. */
13603 /* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13605 char $ac_func();
13606
13607 int main() {
13608
13609 /* The GNU C library defines this for functions which it implements
13610 to always fail with ENOSYS. Some functions are actually named
13611 something starting with __ and the normal name is an alias. */
13612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13613 choke me
13614 #else
13615 $ac_func();
13616 #endif
13617
13618 ; return 0; }
13619 EOF
13620 if { (eval echo configure:13621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13621 rm -rf conftest*
13622 eval "ac_cv_func_$ac_func=yes"
13623 else
13624 echo "configure: failed program was:" >&5
13625 cat conftest.$ac_ext >&5
13626 rm -rf conftest*
13627 eval "ac_cv_func_$ac_func=no"
13628 fi
13629 rm -f conftest*
13630 fi
13631
13632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13633 echo "$ac_t""yes" 1>&6
13634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13635 cat >> confdefs.h <<EOF
13636 #define $ac_tr_func 1
13637 EOF
13638
13639 else
13640 echo "$ac_t""no" 1>&6
13641 fi
13642 done
13643
13644
13645
13646 for ac_hdr in sched.h
13647 do
13648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13650 echo "configure:13651: checking for $ac_hdr" >&5
13651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13652 echo $ac_n "(cached) $ac_c" 1>&6
13653 else
13654 cat > conftest.$ac_ext <<EOF
13655 #line 13656 "configure"
13656 #include "confdefs.h"
13657 #include <$ac_hdr>
13658 EOF
13659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13660 { (eval echo configure:13661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13662 if test -z "$ac_err"; then
13663 rm -rf conftest*
13664 eval "ac_cv_header_$ac_safe=yes"
13665 else
13666 echo "$ac_err" >&5
13667 echo "configure: failed program was:" >&5
13668 cat conftest.$ac_ext >&5
13669 rm -rf conftest*
13670 eval "ac_cv_header_$ac_safe=no"
13671 fi
13672 rm -f conftest*
13673 fi
13674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13675 echo "$ac_t""yes" 1>&6
13676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13677 cat >> confdefs.h <<EOF
13678 #define $ac_tr_hdr 1
13679 EOF
13680
13681 else
13682 echo "$ac_t""no" 1>&6
13683 fi
13684 done
13685
13686
13687 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
13688 echo "configure:13689: checking for sched_yield in -l$THREADS_LINK" >&5
13689 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13691 echo $ac_n "(cached) $ac_c" 1>&6
13692 else
13693 ac_save_LIBS="$LIBS"
13694 LIBS="-l$THREADS_LINK $LIBS"
13695 cat > conftest.$ac_ext <<EOF
13696 #line 13697 "configure"
13697 #include "confdefs.h"
13698 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701 char sched_yield();
13702
13703 int main() {
13704 sched_yield()
13705 ; return 0; }
13706 EOF
13707 if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13708 rm -rf conftest*
13709 eval "ac_cv_lib_$ac_lib_var=yes"
13710 else
13711 echo "configure: failed program was:" >&5
13712 cat conftest.$ac_ext >&5
13713 rm -rf conftest*
13714 eval "ac_cv_lib_$ac_lib_var=no"
13715 fi
13716 rm -f conftest*
13717 LIBS="$ac_save_LIBS"
13718
13719 fi
13720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13722 cat >> confdefs.h <<\EOF
13723 #define HAVE_SCHED_YIELD 1
13724 EOF
13725
13726 else
13727 echo "$ac_t""no" 1>&6
13728 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
13729 echo "configure:13730: checking for sched_yield in -lposix4" >&5
13730 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13732 echo $ac_n "(cached) $ac_c" 1>&6
13733 else
13734 ac_save_LIBS="$LIBS"
13735 LIBS="-lposix4 $LIBS"
13736 cat > conftest.$ac_ext <<EOF
13737 #line 13738 "configure"
13738 #include "confdefs.h"
13739 /* Override any gcc2 internal prototype to avoid an error. */
13740 /* We use char because int might match the return type of a gcc2
13741 builtin and then its argument prototype would still apply. */
13742 char sched_yield();
13743
13744 int main() {
13745 sched_yield()
13746 ; return 0; }
13747 EOF
13748 if { (eval echo configure:13749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13749 rm -rf conftest*
13750 eval "ac_cv_lib_$ac_lib_var=yes"
13751 else
13752 echo "configure: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 rm -rf conftest*
13755 eval "ac_cv_lib_$ac_lib_var=no"
13756 fi
13757 rm -f conftest*
13758 LIBS="$ac_save_LIBS"
13759
13760 fi
13761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13762 echo "$ac_t""yes" 1>&6
13763 cat >> confdefs.h <<\EOF
13764 #define HAVE_SCHED_YIELD 1
13765 EOF
13766 POSIX4_LINK="-lposix4"
13767 else
13768 echo "$ac_t""no" 1>&6
13769 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13770
13771 fi
13772
13773
13774 fi
13775
13776
13777 HAVE_PRIOR_FUNCS=0
13778 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
13779 echo "configure:13780: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
13780 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13782 echo $ac_n "(cached) $ac_c" 1>&6
13783 else
13784 ac_save_LIBS="$LIBS"
13785 LIBS="-l$THREADS_LINK $LIBS"
13786 cat > conftest.$ac_ext <<EOF
13787 #line 13788 "configure"
13788 #include "confdefs.h"
13789 /* Override any gcc2 internal prototype to avoid an error. */
13790 /* We use char because int might match the return type of a gcc2
13791 builtin and then its argument prototype would still apply. */
13792 char pthread_attr_getschedpolicy();
13793
13794 int main() {
13795 pthread_attr_getschedpolicy()
13796 ; return 0; }
13797 EOF
13798 if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13799 rm -rf conftest*
13800 eval "ac_cv_lib_$ac_lib_var=yes"
13801 else
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 rm -rf conftest*
13805 eval "ac_cv_lib_$ac_lib_var=no"
13806 fi
13807 rm -f conftest*
13808 LIBS="$ac_save_LIBS"
13809
13810 fi
13811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13812 echo "$ac_t""yes" 1>&6
13813 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
13814 echo "configure:13815: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
13815 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13817 echo $ac_n "(cached) $ac_c" 1>&6
13818 else
13819 ac_save_LIBS="$LIBS"
13820 LIBS="-l$THREADS_LINK $LIBS"
13821 cat > conftest.$ac_ext <<EOF
13822 #line 13823 "configure"
13823 #include "confdefs.h"
13824 /* Override any gcc2 internal prototype to avoid an error. */
13825 /* We use char because int might match the return type of a gcc2
13826 builtin and then its argument prototype would still apply. */
13827 char pthread_attr_setschedparam();
13828
13829 int main() {
13830 pthread_attr_setschedparam()
13831 ; return 0; }
13832 EOF
13833 if { (eval echo configure:13834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13834 rm -rf conftest*
13835 eval "ac_cv_lib_$ac_lib_var=yes"
13836 else
13837 echo "configure: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13839 rm -rf conftest*
13840 eval "ac_cv_lib_$ac_lib_var=no"
13841 fi
13842 rm -f conftest*
13843 LIBS="$ac_save_LIBS"
13844
13845 fi
13846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13847 echo "$ac_t""yes" 1>&6
13848 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
13849 echo "configure:13850: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
13850 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13852 echo $ac_n "(cached) $ac_c" 1>&6
13853 else
13854 ac_save_LIBS="$LIBS"
13855 LIBS="-l$THREADS_LINK $LIBS"
13856 cat > conftest.$ac_ext <<EOF
13857 #line 13858 "configure"
13858 #include "confdefs.h"
13859 /* Override any gcc2 internal prototype to avoid an error. */
13860 /* We use char because int might match the return type of a gcc2
13861 builtin and then its argument prototype would still apply. */
13862 char sched_get_priority_max();
13863
13864 int main() {
13865 sched_get_priority_max()
13866 ; return 0; }
13867 EOF
13868 if { (eval echo configure:13869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13869 rm -rf conftest*
13870 eval "ac_cv_lib_$ac_lib_var=yes"
13871 else
13872 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13874 rm -rf conftest*
13875 eval "ac_cv_lib_$ac_lib_var=no"
13876 fi
13877 rm -f conftest*
13878 LIBS="$ac_save_LIBS"
13879
13880 fi
13881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13882 echo "$ac_t""yes" 1>&6
13883 HAVE_PRIOR_FUNCS=1
13884 else
13885 echo "$ac_t""no" 1>&6
13886 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
13887 echo "configure:13888: checking for sched_get_priority_max in -lposix4" >&5
13888 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
13891 else
13892 ac_save_LIBS="$LIBS"
13893 LIBS="-lposix4 $LIBS"
13894 cat > conftest.$ac_ext <<EOF
13895 #line 13896 "configure"
13896 #include "confdefs.h"
13897 /* Override any gcc2 internal prototype to avoid an error. */
13898 /* We use char because int might match the return type of a gcc2
13899 builtin and then its argument prototype would still apply. */
13900 char sched_get_priority_max();
13901
13902 int main() {
13903 sched_get_priority_max()
13904 ; return 0; }
13905 EOF
13906 if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13907 rm -rf conftest*
13908 eval "ac_cv_lib_$ac_lib_var=yes"
13909 else
13910 echo "configure: failed program was:" >&5
13911 cat conftest.$ac_ext >&5
13912 rm -rf conftest*
13913 eval "ac_cv_lib_$ac_lib_var=no"
13914 fi
13915 rm -f conftest*
13916 LIBS="$ac_save_LIBS"
13917
13918 fi
13919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13920 echo "$ac_t""yes" 1>&6
13921
13922 HAVE_PRIOR_FUNCS=1
13923 POSIX4_LINK="-lposix4"
13924
13925 else
13926 echo "$ac_t""no" 1>&6
13927 fi
13928
13929
13930 fi
13931
13932
13933 else
13934 echo "$ac_t""no" 1>&6
13935 fi
13936
13937
13938 else
13939 echo "$ac_t""no" 1>&6
13940 fi
13941
13942
13943 if test "$HAVE_PRIOR_FUNCS" = 1; then
13944 cat >> confdefs.h <<\EOF
13945 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
13946 EOF
13947
13948 else
13949 echo "configure: warning: Setting thread priority will not work" 1>&2
13950 fi
13951
13952 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
13953 echo "configure:13954: checking for pthread_cancel in -l$THREADS_LINK" >&5
13954 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
13955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13956 echo $ac_n "(cached) $ac_c" 1>&6
13957 else
13958 ac_save_LIBS="$LIBS"
13959 LIBS="-l$THREADS_LINK $LIBS"
13960 cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13963 /* Override any gcc2 internal prototype to avoid an error. */
13964 /* We use char because int might match the return type of a gcc2
13965 builtin and then its argument prototype would still apply. */
13966 char pthread_cancel();
13967
13968 int main() {
13969 pthread_cancel()
13970 ; return 0; }
13971 EOF
13972 if { (eval echo configure:13973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13973 rm -rf conftest*
13974 eval "ac_cv_lib_$ac_lib_var=yes"
13975 else
13976 echo "configure: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13978 rm -rf conftest*
13979 eval "ac_cv_lib_$ac_lib_var=no"
13980 fi
13981 rm -f conftest*
13982 LIBS="$ac_save_LIBS"
13983
13984 fi
13985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13986 echo "$ac_t""yes" 1>&6
13987 cat >> confdefs.h <<\EOF
13988 #define HAVE_PTHREAD_CANCEL 1
13989 EOF
13990
13991 else
13992 echo "$ac_t""no" 1>&6
13993 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
13994 fi
13995
13996
13997 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
13998 echo "configure:13999: checking for pthread_cleanup_push/pop" >&5
13999 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14000 echo $ac_n "(cached) $ac_c" 1>&6
14001 else
14002
14003 cat > conftest.$ac_ext <<EOF
14004 #line 14005 "configure"
14005 #include "confdefs.h"
14006 #include <pthread.h>
14007 int main() {
14008
14009 pthread_cleanup_push(NULL, NULL);
14010 pthread_cleanup_pop(0);
14011
14012 ; return 0; }
14013 EOF
14014 if { (eval echo configure:14015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14015 rm -rf conftest*
14016
14017 wx_cv_func_pthread_cleanup_push=yes
14018
14019 else
14020 echo "configure: failed program was:" >&5
14021 cat conftest.$ac_ext >&5
14022 rm -rf conftest*
14023
14024 wx_cv_func_pthread_cleanup_push=no
14025
14026 fi
14027 rm -f conftest*
14028
14029 fi
14030
14031 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14032
14033 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14034 cat >> confdefs.h <<\EOF
14035 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14036 EOF
14037
14038 fi
14039
14040
14041 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14042 echo "configure:14043: checking for pthread_mutexattr_t" >&5
14043 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
14045 else
14046
14047 cat > conftest.$ac_ext <<EOF
14048 #line 14049 "configure"
14049 #include "confdefs.h"
14050 #include <pthread.h>
14051 int main() {
14052
14053 pthread_mutexattr_t attr;
14054 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14055
14056 ; return 0; }
14057 EOF
14058 if { (eval echo configure:14059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14059 rm -rf conftest*
14060
14061 wx_cv_type_pthread_mutexattr_t=yes
14062
14063 else
14064 echo "configure: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14066 rm -rf conftest*
14067
14068 wx_cv_type_pthread_mutexattr_t=no
14069
14070
14071 fi
14072 rm -f conftest*
14073
14074 fi
14075
14076 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14077
14078 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14079 cat >> confdefs.h <<\EOF
14080 #define HAVE_PTHREAD_MUTEXATTR_T 1
14081 EOF
14082
14083 else
14084 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14085 echo "configure:14086: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14086 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14087 echo $ac_n "(cached) $ac_c" 1>&6
14088 else
14089
14090 cat > conftest.$ac_ext <<EOF
14091 #line 14092 "configure"
14092 #include "confdefs.h"
14093 #include <pthread.h>
14094 int main() {
14095
14096 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14097
14098 ; return 0; }
14099 EOF
14100 if { (eval echo configure:14101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14101 rm -rf conftest*
14102
14103 wx_cv_type_pthread_rec_mutex_init=yes
14104
14105 else
14106 echo "configure: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 rm -rf conftest*
14109
14110 wx_cv_type_pthread_rec_mutex_init=no
14111
14112
14113 fi
14114 rm -f conftest*
14115
14116 fi
14117
14118 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14119 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14120 cat >> confdefs.h <<\EOF
14121 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14122 EOF
14123
14124 else
14125 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14126 fi
14127 fi
14128
14129 THREADS_LINK="-l$THREADS_LINK"
14130
14131 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14132 CFLAGS="${CFLAGS} -mt"
14133 CXXFLAGS="${CXXFLAGS} -mt"
14134 LDFLAGS="${LDFLAGS} -mt"
14135 fi
14136 fi
14137
14138 fi
14139
14140 if test "$wxUSE_THREADS" = "yes"; then
14141 cat >> confdefs.h <<\EOF
14142 #define wxUSE_THREADS 1
14143 EOF
14144
14145
14146 if test "$wxUSE_MAC" = "0"; then
14147 CFLAGS="${CFLAGS} -D_REENTRANT"
14148 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14149 fi
14150
14151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14152 else
14153 if test "$ac_cv_func_strtok_r" = "yes"; then
14154 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14155 echo "configure:14156: checking if -D_REENTRANT is needed" >&5
14156 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14157 CFLAGS="${CFLAGS} -D_REENTRANT"
14158 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14159 echo "$ac_t""yes" 1>&6
14160 else
14161 echo "$ac_t""no" 1>&6
14162 fi
14163 fi
14164 fi
14165
14166 if test "$WXGTK20" = 1 ; then
14167 cat >> confdefs.h <<EOF
14168 #define __WXGTK20__ $WXGTK20
14169 EOF
14170
14171 WXGTK12=1
14172 fi
14173
14174 if test "$WXGTK12" = 1 ; then
14175 cat >> confdefs.h <<EOF
14176 #define __WXGTK12__ $WXGTK12
14177 EOF
14178
14179 fi
14180
14181 if test "$WXGTK127" = 1 ; then
14182 cat >> confdefs.h <<EOF
14183 #define __WXGTK127__ $WXGTK127
14184 EOF
14185
14186 fi
14187
14188 if test "$WXWINE" = 1 ; then
14189 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14190 fi
14191
14192 if test "$wxUSE_MAC" = 1 ; then
14193 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
14194 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
14195 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
14196 # Extract the first word of "Rez", so it can be a program name with args.
14197 set dummy Rez; ac_word=$2
14198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14199 echo "configure:14200: checking for $ac_word" >&5
14200 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
14202 else
14203 if test -n "$REZ"; then
14204 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14205 else
14206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14207 ac_dummy="$PATH"
14208 for ac_dir in $ac_dummy; do
14209 test -z "$ac_dir" && ac_dir=.
14210 if test -f $ac_dir/$ac_word; then
14211 ac_cv_prog_REZ="Rez"
14212 break
14213 fi
14214 done
14215 IFS="$ac_save_ifs"
14216 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14217 fi
14218 fi
14219 REZ="$ac_cv_prog_REZ"
14220 if test -n "$REZ"; then
14221 echo "$ac_t""$REZ" 1>&6
14222 else
14223 echo "$ac_t""no" 1>&6
14224 fi
14225
14226 # Extract the first word of "Derez", so it can be a program name with args.
14227 set dummy Derez; ac_word=$2
14228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14229 echo "configure:14230: checking for $ac_word" >&5
14230 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14231 echo $ac_n "(cached) $ac_c" 1>&6
14232 else
14233 if test -n "$DEREZ"; then
14234 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14235 else
14236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14237 ac_dummy="$PATH"
14238 for ac_dir in $ac_dummy; do
14239 test -z "$ac_dir" && ac_dir=.
14240 if test -f $ac_dir/$ac_word; then
14241 ac_cv_prog_DEREZ="Derez"
14242 break
14243 fi
14244 done
14245 IFS="$ac_save_ifs"
14246 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14247 fi
14248 fi
14249 DEREZ="$ac_cv_prog_DEREZ"
14250 if test -n "$DEREZ"; then
14251 echo "$ac_t""$DEREZ" 1>&6
14252 else
14253 echo "$ac_t""no" 1>&6
14254 fi
14255
14256 RESCOMP=${REZ}
14257 REZFLAGS="-d __UNIX__ -useDF"
14258 DEREZFLAGS="Carbon.r -useDF"
14259 RESFLAGS="Carbon.r -t APPL"
14260 LIBWXMACRES="\$(LIBWX_MACRES)"
14261 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14262 fi
14263
14264 if test "$wxUSE_CYGWIN" = 1 ; then
14265 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14266 fi
14267
14268 WXDEBUG=
14269
14270 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14271 WXDEBUG="-g"
14272 wxUSE_OPTIMISE=no
14273 fi
14274
14275 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14276 wxUSE_DEBUG_INFO=yes
14277 WXDEBUG="-ggdb"
14278 fi
14279
14280 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14281 cat >> confdefs.h <<\EOF
14282 #define WXDEBUG 1
14283 EOF
14284
14285 WXDEBUG_DEFINE="-D__WXDEBUG__"
14286 else
14287 if test "$wxUSE_GTK" = 1 ; then
14288 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14289 fi
14290 fi
14291
14292 if test "$wxUSE_MEM_TRACING" = "yes" ; then
14293 cat >> confdefs.h <<\EOF
14294 #define wxUSE_MEMORY_TRACING 1
14295 EOF
14296
14297 cat >> confdefs.h <<\EOF
14298 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14299 EOF
14300
14301 cat >> confdefs.h <<\EOF
14302 #define wxUSE_DEBUG_NEW_ALWAYS 1
14303 EOF
14304
14305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14306 fi
14307
14308 if test "$wxUSE_DMALLOC" = "yes" ; then
14309 DMALLOC_LINK="-ldmalloc"
14310 fi
14311
14312 PROFILE=
14313 if test "$wxUSE_PROFILE" = "yes" ; then
14314 PROFILE="-pg"
14315 fi
14316
14317 DEP_INFO_FLAGS=
14318 CODE_GEN_FLAGS=
14319 CODE_GEN_FLAGS_CXX=
14320 if test "$GCC" = yes ; then
14321 if test "$wxUSE_NO_RTTI" = "yes" ; then
14322 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14323 fi
14324 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14325 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14326 fi
14327 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14328 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14329 fi
14330 if test "$wxUSE_NO_DEPS" = "no" ; then
14331 DEP_INFO_FLAGS="-MMD"
14332 fi
14333 fi
14334
14335
14336 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14337 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14338 if test "$wxUSE_OPTIMISE" = "no" ; then
14339 OPTIMISE=
14340 else
14341 if test "$GCC" = yes ; then
14342 OPTIMISE="-O2"
14343 case "${host}" in
14344 i586-*-*|i686-*-* )
14345 OPTIMISE="${OPTIMISE} "
14346 ;;
14347 esac
14348 else
14349 OPTIMISE="-O"
14350 fi
14351 fi
14352
14353
14354 ZLIB_INCLUDE=
14355 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
14356 cat >> confdefs.h <<\EOF
14357 #define wxUSE_ZLIB 1
14358 EOF
14359
14360 if test "$wxUSE_ZLIB" = "yes" ; then
14361 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14362 else
14363 ZLIB_LINK=
14364 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14365 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
14366 echo "configure:14367: checking for zlib.h" >&5
14367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14368 echo $ac_n "(cached) $ac_c" 1>&6
14369 else
14370 cat > conftest.$ac_ext <<EOF
14371 #line 14372 "configure"
14372 #include "confdefs.h"
14373 #include <zlib.h>
14374 EOF
14375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14376 { (eval echo configure:14377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14378 if test -z "$ac_err"; then
14379 rm -rf conftest*
14380 eval "ac_cv_header_$ac_safe=yes"
14381 else
14382 echo "$ac_err" >&5
14383 echo "configure: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14385 rm -rf conftest*
14386 eval "ac_cv_header_$ac_safe=no"
14387 fi
14388 rm -f conftest*
14389 fi
14390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14391 echo "$ac_t""yes" 1>&6
14392 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
14393 echo "configure:14394: checking for deflate in -lz" >&5
14394 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14396 echo $ac_n "(cached) $ac_c" 1>&6
14397 else
14398 ac_save_LIBS="$LIBS"
14399 LIBS="-lz $LIBS"
14400 cat > conftest.$ac_ext <<EOF
14401 #line 14402 "configure"
14402 #include "confdefs.h"
14403 /* Override any gcc2 internal prototype to avoid an error. */
14404 /* We use char because int might match the return type of a gcc2
14405 builtin and then its argument prototype would still apply. */
14406 char deflate();
14407
14408 int main() {
14409 deflate()
14410 ; return 0; }
14411 EOF
14412 if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14413 rm -rf conftest*
14414 eval "ac_cv_lib_$ac_lib_var=yes"
14415 else
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14418 rm -rf conftest*
14419 eval "ac_cv_lib_$ac_lib_var=no"
14420 fi
14421 rm -f conftest*
14422 LIBS="$ac_save_LIBS"
14423
14424 fi
14425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14426 echo "$ac_t""yes" 1>&6
14427 ZLIB_LINK="-lz"
14428 else
14429 echo "$ac_t""no" 1>&6
14430 fi
14431
14432 else
14433 echo "$ac_t""no" 1>&6
14434 fi
14435
14436 if test "x$ZLIB_LINK" = "x" ; then
14437 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
14438 fi
14439 fi
14440 fi
14441
14442 PNG_INCLUDE=
14443 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
14444 cat >> confdefs.h <<\EOF
14445 #define wxUSE_LIBPNG 1
14446 EOF
14447
14448 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
14449 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
14450 wxUSE_LIBPNG=yes
14451 fi
14452
14453 if test "$wxUSE_LIBPNG" = "yes" ; then
14454 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14455 else
14456 PNG_LINK=
14457 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14458 echo $ac_n "checking for png.h""... $ac_c" 1>&6
14459 echo "configure:14460: checking for png.h" >&5
14460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14461 echo $ac_n "(cached) $ac_c" 1>&6
14462 else
14463 cat > conftest.$ac_ext <<EOF
14464 #line 14465 "configure"
14465 #include "confdefs.h"
14466 #include <png.h>
14467 EOF
14468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14469 { (eval echo configure:14470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14471 if test -z "$ac_err"; then
14472 rm -rf conftest*
14473 eval "ac_cv_header_$ac_safe=yes"
14474 else
14475 echo "$ac_err" >&5
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14478 rm -rf conftest*
14479 eval "ac_cv_header_$ac_safe=no"
14480 fi
14481 rm -f conftest*
14482 fi
14483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14484 echo "$ac_t""yes" 1>&6
14485 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
14486 echo "configure:14487: checking for png_check_sig in -lpng" >&5
14487 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14489 echo $ac_n "(cached) $ac_c" 1>&6
14490 else
14491 ac_save_LIBS="$LIBS"
14492 LIBS="-lpng -lz -lm $LIBS"
14493 cat > conftest.$ac_ext <<EOF
14494 #line 14495 "configure"
14495 #include "confdefs.h"
14496 /* Override any gcc2 internal prototype to avoid an error. */
14497 /* We use char because int might match the return type of a gcc2
14498 builtin and then its argument prototype would still apply. */
14499 char png_check_sig();
14500
14501 int main() {
14502 png_check_sig()
14503 ; return 0; }
14504 EOF
14505 if { (eval echo configure:14506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14506 rm -rf conftest*
14507 eval "ac_cv_lib_$ac_lib_var=yes"
14508 else
14509 echo "configure: failed program was:" >&5
14510 cat conftest.$ac_ext >&5
14511 rm -rf conftest*
14512 eval "ac_cv_lib_$ac_lib_var=no"
14513 fi
14514 rm -f conftest*
14515 LIBS="$ac_save_LIBS"
14516
14517 fi
14518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14519 echo "$ac_t""yes" 1>&6
14520 PNG_LINK="-lpng"
14521 else
14522 echo "$ac_t""no" 1>&6
14523 fi
14524
14525
14526 else
14527 echo "$ac_t""no" 1>&6
14528 fi
14529
14530 if test "x$PNG_LINK" = "x" ; then
14531 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
14532 fi
14533 fi
14534
14535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14536 fi
14537
14538 JPEG_INCLUDE=
14539 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
14540 cat >> confdefs.h <<\EOF
14541 #define wxUSE_LIBJPEG 1
14542 EOF
14543
14544 if test "$wxUSE_LIBJPEG" = "yes" ; then
14545 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14546 else
14547 JPEG_LINK=
14548 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
14549 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
14550 echo "configure:14551: checking for jpeglib.h" >&5
14551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14553 else
14554 cat > conftest.$ac_ext <<EOF
14555 #line 14556 "configure"
14556 #include "confdefs.h"
14557 #include <jpeglib.h>
14558 EOF
14559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14560 { (eval echo configure:14561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14562 if test -z "$ac_err"; then
14563 rm -rf conftest*
14564 eval "ac_cv_header_$ac_safe=yes"
14565 else
14566 echo "$ac_err" >&5
14567 echo "configure: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14569 rm -rf conftest*
14570 eval "ac_cv_header_$ac_safe=no"
14571 fi
14572 rm -f conftest*
14573 fi
14574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14575 echo "$ac_t""yes" 1>&6
14576 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
14577 echo "configure:14578: checking for jpeg_read_header in -ljpeg" >&5
14578 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14580 echo $ac_n "(cached) $ac_c" 1>&6
14581 else
14582 ac_save_LIBS="$LIBS"
14583 LIBS="-ljpeg $LIBS"
14584 cat > conftest.$ac_ext <<EOF
14585 #line 14586 "configure"
14586 #include "confdefs.h"
14587 /* Override any gcc2 internal prototype to avoid an error. */
14588 /* We use char because int might match the return type of a gcc2
14589 builtin and then its argument prototype would still apply. */
14590 char jpeg_read_header();
14591
14592 int main() {
14593 jpeg_read_header()
14594 ; return 0; }
14595 EOF
14596 if { (eval echo configure:14597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14597 rm -rf conftest*
14598 eval "ac_cv_lib_$ac_lib_var=yes"
14599 else
14600 echo "configure: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14602 rm -rf conftest*
14603 eval "ac_cv_lib_$ac_lib_var=no"
14604 fi
14605 rm -f conftest*
14606 LIBS="$ac_save_LIBS"
14607
14608 fi
14609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14610 echo "$ac_t""yes" 1>&6
14611 JPEG_LINK="-ljpeg"
14612 else
14613 echo "$ac_t""no" 1>&6
14614 fi
14615
14616 else
14617 echo "$ac_t""no" 1>&6
14618 fi
14619
14620 if test "x$JPEG_LINK" = "x" ; then
14621 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
14622 fi
14623 fi
14624 fi
14625
14626 TIFF_INCLUDE=
14627 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
14628 cat >> confdefs.h <<\EOF
14629 #define wxUSE_LIBTIFF 1
14630 EOF
14631
14632 if test "$wxUSE_LIBTIFF" = "yes" ; then
14633 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14634 else
14635 TIFF_LINK=
14636 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14637 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
14638 echo "configure:14639: checking for tiffio.h" >&5
14639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14640 echo $ac_n "(cached) $ac_c" 1>&6
14641 else
14642 cat > conftest.$ac_ext <<EOF
14643 #line 14644 "configure"
14644 #include "confdefs.h"
14645 #include <tiffio.h>
14646 EOF
14647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14648 { (eval echo configure:14649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14650 if test -z "$ac_err"; then
14651 rm -rf conftest*
14652 eval "ac_cv_header_$ac_safe=yes"
14653 else
14654 echo "$ac_err" >&5
14655 echo "configure: failed program was:" >&5
14656 cat conftest.$ac_ext >&5
14657 rm -rf conftest*
14658 eval "ac_cv_header_$ac_safe=no"
14659 fi
14660 rm -f conftest*
14661 fi
14662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14663 echo "$ac_t""yes" 1>&6
14664 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
14665 echo "configure:14666: checking for TIFFError in -ltiff" >&5
14666 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14668 echo $ac_n "(cached) $ac_c" 1>&6
14669 else
14670 ac_save_LIBS="$LIBS"
14671 LIBS="-ltiff -lm $LIBS"
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14675 /* Override any gcc2 internal prototype to avoid an error. */
14676 /* We use char because int might match the return type of a gcc2
14677 builtin and then its argument prototype would still apply. */
14678 char TIFFError();
14679
14680 int main() {
14681 TIFFError()
14682 ; return 0; }
14683 EOF
14684 if { (eval echo configure:14685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14685 rm -rf conftest*
14686 eval "ac_cv_lib_$ac_lib_var=yes"
14687 else
14688 echo "configure: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14690 rm -rf conftest*
14691 eval "ac_cv_lib_$ac_lib_var=no"
14692 fi
14693 rm -f conftest*
14694 LIBS="$ac_save_LIBS"
14695
14696 fi
14697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14698 echo "$ac_t""yes" 1>&6
14699 TIFF_LINK="-ltiff"
14700 else
14701 echo "$ac_t""no" 1>&6
14702 fi
14703
14704 else
14705 echo "$ac_t""no" 1>&6
14706 fi
14707
14708 if test "x$TIFF_LINK" = "x" ; then
14709 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
14710 fi
14711 fi
14712 fi
14713
14714 FREETYPE_INCLUDE=
14715 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
14716 cat >> confdefs.h <<\EOF
14717 #define wxUSE_FREETYPE 1
14718 EOF
14719
14720 if test "$wxUSE_FREETYPE" = "yes" ; then
14721 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14722 else
14723 FREETYPE_LINK=
14724 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14725 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
14726 echo "configure:14727: checking for freetype.h" >&5
14727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14728 echo $ac_n "(cached) $ac_c" 1>&6
14729 else
14730 cat > conftest.$ac_ext <<EOF
14731 #line 14732 "configure"
14732 #include "confdefs.h"
14733 #include <freetype.h>
14734 EOF
14735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14736 { (eval echo configure:14737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14738 if test -z "$ac_err"; then
14739 rm -rf conftest*
14740 eval "ac_cv_header_$ac_safe=yes"
14741 else
14742 echo "$ac_err" >&5
14743 echo "configure: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 rm -rf conftest*
14746 eval "ac_cv_header_$ac_safe=no"
14747 fi
14748 rm -f conftest*
14749 fi
14750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14751 echo "$ac_t""yes" 1>&6
14752 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
14753 echo "configure:14754: checking for FT_Render_Glyph in -lfreetype" >&5
14754 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14756 echo $ac_n "(cached) $ac_c" 1>&6
14757 else
14758 ac_save_LIBS="$LIBS"
14759 LIBS="-lfreetype -lm $LIBS"
14760 cat > conftest.$ac_ext <<EOF
14761 #line 14762 "configure"
14762 #include "confdefs.h"
14763 /* Override any gcc2 internal prototype to avoid an error. */
14764 /* We use char because int might match the return type of a gcc2
14765 builtin and then its argument prototype would still apply. */
14766 char FT_Render_Glyph();
14767
14768 int main() {
14769 FT_Render_Glyph()
14770 ; return 0; }
14771 EOF
14772 if { (eval echo configure:14773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14773 rm -rf conftest*
14774 eval "ac_cv_lib_$ac_lib_var=yes"
14775 else
14776 echo "configure: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14778 rm -rf conftest*
14779 eval "ac_cv_lib_$ac_lib_var=no"
14780 fi
14781 rm -f conftest*
14782 LIBS="$ac_save_LIBS"
14783
14784 fi
14785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14786 echo "$ac_t""yes" 1>&6
14787 FREETYPE_LINK="-lfreetype"
14788 else
14789 echo "$ac_t""no" 1>&6
14790 fi
14791
14792
14793 else
14794 echo "$ac_t""no" 1>&6
14795 fi
14796
14797 if test "x$FREETYPE_LINK" = "x" ; then
14798 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
14799 fi
14800 fi
14801 fi
14802
14803 if test "$wxUSE_OPENGL" = "yes"; then
14804 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14805 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14806 echo "configure:14807: checking for GL/gl.h" >&5
14807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14808 echo $ac_n "(cached) $ac_c" 1>&6
14809 else
14810 cat > conftest.$ac_ext <<EOF
14811 #line 14812 "configure"
14812 #include "confdefs.h"
14813 #include <GL/gl.h>
14814 EOF
14815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14816 { (eval echo configure:14817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14818 if test -z "$ac_err"; then
14819 rm -rf conftest*
14820 eval "ac_cv_header_$ac_safe=yes"
14821 else
14822 echo "$ac_err" >&5
14823 echo "configure: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14825 rm -rf conftest*
14826 eval "ac_cv_header_$ac_safe=no"
14827 fi
14828 rm -f conftest*
14829 fi
14830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14831 echo "$ac_t""yes" 1>&6
14832
14833 cat >> confdefs.h <<\EOF
14834 #define wxUSE_OPENGL 1
14835 EOF
14836
14837 cat >> confdefs.h <<\EOF
14838 #define wxUSE_GLCANVAS 1
14839 EOF
14840
14841 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
14842 echo "configure:14843: checking for glFlush in -lGL" >&5
14843 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
14844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14845 echo $ac_n "(cached) $ac_c" 1>&6
14846 else
14847 ac_save_LIBS="$LIBS"
14848 LIBS="-lGL $LIBS"
14849 cat > conftest.$ac_ext <<EOF
14850 #line 14851 "configure"
14851 #include "confdefs.h"
14852 /* Override any gcc2 internal prototype to avoid an error. */
14853 /* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855 char glFlush();
14856
14857 int main() {
14858 glFlush()
14859 ; return 0; }
14860 EOF
14861 if { (eval echo configure:14862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14862 rm -rf conftest*
14863 eval "ac_cv_lib_$ac_lib_var=yes"
14864 else
14865 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14867 rm -rf conftest*
14868 eval "ac_cv_lib_$ac_lib_var=no"
14869 fi
14870 rm -f conftest*
14871 LIBS="$ac_save_LIBS"
14872
14873 fi
14874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14875 echo "$ac_t""yes" 1>&6
14876
14877 OPENGL_LINK="-lGL -lGLU"
14878
14879 else
14880 echo "$ac_t""no" 1>&6
14881
14882 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
14883 echo "configure:14884: checking for glFlush in -lMesaGL" >&5
14884 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
14885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14886 echo $ac_n "(cached) $ac_c" 1>&6
14887 else
14888 ac_save_LIBS="$LIBS"
14889 LIBS="-lMesaGL $LIBS"
14890 cat > conftest.$ac_ext <<EOF
14891 #line 14892 "configure"
14892 #include "confdefs.h"
14893 /* Override any gcc2 internal prototype to avoid an error. */
14894 /* We use char because int might match the return type of a gcc2
14895 builtin and then its argument prototype would still apply. */
14896 char glFlush();
14897
14898 int main() {
14899 glFlush()
14900 ; return 0; }
14901 EOF
14902 if { (eval echo configure:14903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14903 rm -rf conftest*
14904 eval "ac_cv_lib_$ac_lib_var=yes"
14905 else
14906 echo "configure: failed program was:" >&5
14907 cat conftest.$ac_ext >&5
14908 rm -rf conftest*
14909 eval "ac_cv_lib_$ac_lib_var=no"
14910 fi
14911 rm -f conftest*
14912 LIBS="$ac_save_LIBS"
14913
14914 fi
14915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14916 echo "$ac_t""yes" 1>&6
14917
14918 OPENGL_LINK="-lMesaGL -lMesaGLU"
14919
14920 else
14921 echo "$ac_t""no" 1>&6
14922 fi
14923
14924
14925 fi
14926
14927
14928 else
14929 echo "$ac_t""no" 1>&6
14930 wxUSE_OPENGL=0
14931 fi
14932
14933 fi
14934
14935
14936 if test "$wxUSE_GUI" = "yes"; then
14937 cat >> confdefs.h <<\EOF
14938 #define wxUSE_GUI 1
14939 EOF
14940
14941
14942 else
14943 cat >> confdefs.h <<\EOF
14944 #define wxUSE_NOGUI 1
14945 EOF
14946
14947 fi
14948
14949
14950 if test "$wxUSE_UNIX" = "yes"; then
14951 cat >> confdefs.h <<\EOF
14952 #define wxUSE_UNIX 1
14953 EOF
14954
14955 fi
14956
14957
14958 if test "$wxUSE_APPLE_IEEE" = "yes"; then
14959 cat >> confdefs.h <<\EOF
14960 #define wxUSE_APPLE_IEEE 1
14961 EOF
14962
14963 fi
14964
14965 if test "$wxUSE_TIMER" = "yes"; then
14966 cat >> confdefs.h <<\EOF
14967 #define wxUSE_TIMER 1
14968 EOF
14969
14970 fi
14971
14972 if test "$wxUSE_WAVE" = "yes"; then
14973 cat >> confdefs.h <<\EOF
14974 #define wxUSE_WAVE 1
14975 EOF
14976
14977 fi
14978
14979 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
14980 cat >> confdefs.h <<\EOF
14981 #define wxUSE_CMDLINE_PARSER 1
14982 EOF
14983
14984 fi
14985
14986 if test "$wxUSE_STOPWATCH" = "yes"; then
14987 cat >> confdefs.h <<\EOF
14988 #define wxUSE_STOPWATCH 1
14989 EOF
14990
14991 fi
14992
14993 if test "$wxUSE_DATETIME" = "yes"; then
14994 cat >> confdefs.h <<\EOF
14995 #define wxUSE_DATETIME 1
14996 EOF
14997
14998 fi
14999
15000 if test "$wxUSE_TIMEDATE" = "yes"; then
15001 cat >> confdefs.h <<\EOF
15002 #define wxUSE_TIMEDATE 1
15003 EOF
15004
15005 fi
15006
15007 if test "$wxUSE_FILE" = "yes"; then
15008 cat >> confdefs.h <<\EOF
15009 #define wxUSE_FILE 1
15010 EOF
15011
15012 fi
15013
15014 if test "$wxUSE_FFILE" = "yes"; then
15015 cat >> confdefs.h <<\EOF
15016 #define wxUSE_FFILE 1
15017 EOF
15018
15019 fi
15020
15021 if test "$wxUSE_FILESYSTEM" = "yes"; then
15022 cat >> confdefs.h <<\EOF
15023 #define wxUSE_FILESYSTEM 1
15024 EOF
15025
15026 fi
15027
15028 if test "$wxUSE_FS_INET" = "yes"; then
15029 cat >> confdefs.h <<\EOF
15030 #define wxUSE_FS_INET 1
15031 EOF
15032
15033 fi
15034
15035 if test "$wxUSE_FS_ZIP" = "yes"; then
15036 cat >> confdefs.h <<\EOF
15037 #define wxUSE_FS_ZIP 1
15038 EOF
15039
15040 fi
15041
15042 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15043 cat >> confdefs.h <<\EOF
15044 #define wxUSE_ZIPSTREAM 1
15045 EOF
15046
15047 fi
15048
15049 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15050 cat >> confdefs.h <<\EOF
15051 #define wxUSE_ON_FATAL_EXCEPTION 1
15052 EOF
15053
15054 fi
15055
15056 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15057 cat >> confdefs.h <<\EOF
15058 #define wxUSE_SNGLINST_CHECKER 1
15059 EOF
15060
15061 fi
15062
15063 if test "$wxUSE_BUSYINFO" = "yes"; then
15064 cat >> confdefs.h <<\EOF
15065 #define wxUSE_BUSYINFO 1
15066 EOF
15067
15068 fi
15069
15070 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15071 cat >> confdefs.h <<\EOF
15072 #define wxUSE_STD_IOSTREAM 1
15073 EOF
15074
15075 fi
15076
15077 if test "$wxUSE_TEXTFILE" = "yes"; then
15078 if test "$wxUSE_FILE" != "yes"; then
15079 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15080 else
15081 cat >> confdefs.h <<\EOF
15082 #define wxUSE_TEXTFILE 1
15083 EOF
15084
15085 fi
15086 fi
15087
15088 if test "$wxUSE_CONFIG" = "yes" ; then
15089 if test "$wxUSE_TEXTFILE" != "yes"; then
15090 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15091 else
15092 cat >> confdefs.h <<\EOF
15093 #define wxUSE_CONFIG 1
15094 EOF
15095
15096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15097 fi
15098 fi
15099
15100 if test "$wxUSE_INTL" = "yes" ; then
15101 if test "$wxUSE_FILE" != "yes"; then
15102 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15103 else
15104 cat >> confdefs.h <<\EOF
15105 #define wxUSE_INTL 1
15106 EOF
15107
15108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15109 GUIDIST="$GUIDIST INTL_DIST"
15110 fi
15111 fi
15112
15113 if test "$wxUSE_LOG" = "yes"; then
15114 cat >> confdefs.h <<\EOF
15115 #define wxUSE_LOG 1
15116 EOF
15117
15118 fi
15119
15120 if test "$wxUSE_LONGLONG" = "yes"; then
15121 cat >> confdefs.h <<\EOF
15122 #define wxUSE_LONGLONG 1
15123 EOF
15124
15125 fi
15126
15127 if test "$wxUSE_GEOMETRY" = "yes"; then
15128 cat >> confdefs.h <<\EOF
15129 #define wxUSE_GEOMETRY 1
15130 EOF
15131
15132 fi
15133
15134 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15135 cat >> confdefs.h <<\EOF
15136 #define wxUSE_DIALUP_MANAGER 1
15137 EOF
15138
15139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15140 fi
15141
15142 if test "$wxUSE_STREAMS" = "yes" ; then
15143 cat >> confdefs.h <<\EOF
15144 #define wxUSE_STREAMS 1
15145 EOF
15146
15147 fi
15148
15149
15150 if test "$wxUSE_DATETIME" = "yes"; then
15151 for ac_func in strptime
15152 do
15153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15154 echo "configure:15155: checking for $ac_func" >&5
15155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15156 echo $ac_n "(cached) $ac_c" 1>&6
15157 else
15158 cat > conftest.$ac_ext <<EOF
15159 #line 15160 "configure"
15160 #include "confdefs.h"
15161 /* System header to define __stub macros and hopefully few prototypes,
15162 which can conflict with char $ac_func(); below. */
15163 #include <assert.h>
15164 /* Override any gcc2 internal prototype to avoid an error. */
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15167 char $ac_func();
15168
15169 int main() {
15170
15171 /* The GNU C library defines this for functions which it implements
15172 to always fail with ENOSYS. Some functions are actually named
15173 something starting with __ and the normal name is an alias. */
15174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15175 choke me
15176 #else
15177 $ac_func();
15178 #endif
15179
15180 ; return 0; }
15181 EOF
15182 if { (eval echo configure:15183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15183 rm -rf conftest*
15184 eval "ac_cv_func_$ac_func=yes"
15185 else
15186 echo "configure: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 rm -rf conftest*
15189 eval "ac_cv_func_$ac_func=no"
15190 fi
15191 rm -f conftest*
15192 fi
15193
15194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15195 echo "$ac_t""yes" 1>&6
15196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15197 cat >> confdefs.h <<EOF
15198 #define $ac_tr_func 1
15199 EOF
15200
15201 else
15202 echo "$ac_t""no" 1>&6
15203 fi
15204 done
15205
15206
15207 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15208 echo "configure:15209: checking for timezone variable in <time.h>" >&5
15209 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15210 echo $ac_n "(cached) $ac_c" 1>&6
15211 else
15212
15213 cat > conftest.$ac_ext <<EOF
15214 #line 15215 "configure"
15215 #include "confdefs.h"
15216
15217 #include <time.h>
15218
15219 int main() {
15220
15221 int tz;
15222 tz = __timezone;
15223
15224 ; return 0; }
15225 EOF
15226 if { (eval echo configure:15227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15227 rm -rf conftest*
15228
15229 wx_cv_var_timezone=__timezone
15230
15231 else
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 rm -rf conftest*
15235
15236 cat > conftest.$ac_ext <<EOF
15237 #line 15238 "configure"
15238 #include "confdefs.h"
15239
15240 #include <time.h>
15241
15242 int main() {
15243
15244 int tz;
15245 tz = _timezone;
15246
15247 ; return 0; }
15248 EOF
15249 if { (eval echo configure:15250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15250 rm -rf conftest*
15251
15252 wx_cv_var_timezone=_timezone
15253
15254 else
15255 echo "configure: failed program was:" >&5
15256 cat conftest.$ac_ext >&5
15257 rm -rf conftest*
15258
15259 cat > conftest.$ac_ext <<EOF
15260 #line 15261 "configure"
15261 #include "confdefs.h"
15262
15263 #include <time.h>
15264
15265 int main() {
15266
15267 int tz;
15268 tz = timezone;
15269
15270 ; return 0; }
15271 EOF
15272 if { (eval echo configure:15273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15273 rm -rf conftest*
15274
15275 wx_cv_var_timezone=timezone
15276
15277 else
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15280 rm -rf conftest*
15281 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15282
15283 fi
15284 rm -f conftest*
15285
15286
15287 fi
15288 rm -f conftest*
15289
15290
15291 fi
15292 rm -f conftest*
15293
15294
15295 fi
15296
15297 echo "$ac_t""$wx_cv_var_timezone" 1>&6
15298
15299 cat >> confdefs.h <<EOF
15300 #define WX_TIMEZONE $wx_cv_var_timezone
15301 EOF
15302
15303
15304 for ac_func in localtime
15305 do
15306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15307 echo "configure:15308: checking for $ac_func" >&5
15308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15309 echo $ac_n "(cached) $ac_c" 1>&6
15310 else
15311 cat > conftest.$ac_ext <<EOF
15312 #line 15313 "configure"
15313 #include "confdefs.h"
15314 /* System header to define __stub macros and hopefully few prototypes,
15315 which can conflict with char $ac_func(); below. */
15316 #include <assert.h>
15317 /* Override any gcc2 internal prototype to avoid an error. */
15318 /* We use char because int might match the return type of a gcc2
15319 builtin and then its argument prototype would still apply. */
15320 char $ac_func();
15321
15322 int main() {
15323
15324 /* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15328 choke me
15329 #else
15330 $ac_func();
15331 #endif
15332
15333 ; return 0; }
15334 EOF
15335 if { (eval echo configure:15336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15336 rm -rf conftest*
15337 eval "ac_cv_func_$ac_func=yes"
15338 else
15339 echo "configure: failed program was:" >&5
15340 cat conftest.$ac_ext >&5
15341 rm -rf conftest*
15342 eval "ac_cv_func_$ac_func=no"
15343 fi
15344 rm -f conftest*
15345 fi
15346
15347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15348 echo "$ac_t""yes" 1>&6
15349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15350 cat >> confdefs.h <<EOF
15351 #define $ac_tr_func 1
15352 EOF
15353
15354 else
15355 echo "$ac_t""no" 1>&6
15356 fi
15357 done
15358
15359
15360 if test "$ac_cv_func_localtime" = "yes"; then
15361 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
15362 echo "configure:15363: checking for tm_gmtoff in struct tm" >&5
15363 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15364 echo $ac_n "(cached) $ac_c" 1>&6
15365 else
15366
15367 cat > conftest.$ac_ext <<EOF
15368 #line 15369 "configure"
15369 #include "confdefs.h"
15370
15371 #include <time.h>
15372
15373 int main() {
15374
15375 struct tm tm;
15376 tm.tm_gmtoff++;
15377
15378 ; return 0; }
15379 EOF
15380 if { (eval echo configure:15381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15381 rm -rf conftest*
15382
15383 wx_cv_struct_tm_has_gmtoff=yes
15384
15385 else
15386 echo "configure: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 rm -rf conftest*
15389 wx_cv_struct_tm_has_gmtoff=no
15390
15391 fi
15392 rm -f conftest*
15393
15394 fi
15395
15396 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
15397 fi
15398
15399 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
15400 cat >> confdefs.h <<\EOF
15401 #define WX_GMTOFF_IN_TM 1
15402 EOF
15403
15404 fi
15405
15406 for ac_func in gettimeofday ftime
15407 do
15408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15409 echo "configure:15410: checking for $ac_func" >&5
15410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15412 else
15413 cat > conftest.$ac_ext <<EOF
15414 #line 15415 "configure"
15415 #include "confdefs.h"
15416 /* System header to define __stub macros and hopefully few prototypes,
15417 which can conflict with char $ac_func(); below. */
15418 #include <assert.h>
15419 /* Override any gcc2 internal prototype to avoid an error. */
15420 /* We use char because int might match the return type of a gcc2
15421 builtin and then its argument prototype would still apply. */
15422 char $ac_func();
15423
15424 int main() {
15425
15426 /* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15430 choke me
15431 #else
15432 $ac_func();
15433 #endif
15434
15435 ; return 0; }
15436 EOF
15437 if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15438 rm -rf conftest*
15439 eval "ac_cv_func_$ac_func=yes"
15440 else
15441 echo "configure: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15443 rm -rf conftest*
15444 eval "ac_cv_func_$ac_func=no"
15445 fi
15446 rm -f conftest*
15447 fi
15448
15449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
15451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15452 cat >> confdefs.h <<EOF
15453 #define $ac_tr_func 1
15454 EOF
15455 break
15456 else
15457 echo "$ac_t""no" 1>&6
15458 fi
15459 done
15460
15461
15462 if test "$ac_cv_func_gettimeofday" = "yes"; then
15463 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
15464 echo "configure:15465: checking whether gettimeofday takes two arguments" >&5
15465 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15466 echo $ac_n "(cached) $ac_c" 1>&6
15467 else
15468
15469
15470 ac_ext=C
15471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15472 ac_cpp='$CXXCPP $CPPFLAGS'
15473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15475 cross_compiling=$ac_cv_prog_cxx_cross
15476
15477
15478 cat > conftest.$ac_ext <<EOF
15479 #line 15480 "configure"
15480 #include "confdefs.h"
15481
15482 #include <sys/time.h>
15483 #include <unistd.h>
15484
15485 int main() {
15486
15487 struct timeval tv;
15488 struct timezone tz;
15489 gettimeofday(&tv, &tz);
15490
15491 ; return 0; }
15492 EOF
15493 if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15494 rm -rf conftest*
15495 wx_cv_func_gettimeofday_has_2_args=yes
15496 else
15497 echo "configure: failed program was:" >&5
15498 cat conftest.$ac_ext >&5
15499 rm -rf conftest*
15500 cat > conftest.$ac_ext <<EOF
15501 #line 15502 "configure"
15502 #include "confdefs.h"
15503
15504 #include <sys/time.h>
15505 #include <unistd.h>
15506
15507 int main() {
15508
15509 struct timeval tv;
15510 gettimeofday(&tv);
15511
15512 ; return 0; }
15513 EOF
15514 if { (eval echo configure:15515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15515 rm -rf conftest*
15516 wx_cv_func_gettimeofday_has_2_args=no
15517 else
15518 echo "configure: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15520 rm -rf conftest*
15521 wx_cv_func_gettimeofday_has_2_args=unknown
15522
15523 fi
15524 rm -f conftest*
15525
15526 fi
15527 rm -f conftest*
15528 ac_ext=c
15529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15530 ac_cpp='$CPP $CPPFLAGS'
15531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15533 cross_compiling=$ac_cv_prog_cc_cross
15534
15535
15536 fi
15537
15538 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
15539
15540 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
15541 cat >> confdefs.h <<\EOF
15542 #define WX_GETTIMEOFDAY_NO_TZ 1
15543 EOF
15544
15545 fi
15546 fi
15547
15548 cat >> confdefs.h <<\EOF
15549 #define wxUSE_TIMEDATE 1
15550 EOF
15551
15552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15553 fi
15554
15555
15556 if test "$TOOLKIT" != "MSW"; then
15557
15558 if test "$wxUSE_SOCKETS" = "yes"; then
15559 echo $ac_n "checking for socket""... $ac_c" 1>&6
15560 echo "configure:15561: checking for socket" >&5
15561 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15562 echo $ac_n "(cached) $ac_c" 1>&6
15563 else
15564 cat > conftest.$ac_ext <<EOF
15565 #line 15566 "configure"
15566 #include "confdefs.h"
15567 /* System header to define __stub macros and hopefully few prototypes,
15568 which can conflict with char socket(); below. */
15569 #include <assert.h>
15570 /* Override any gcc2 internal prototype to avoid an error. */
15571 /* We use char because int might match the return type of a gcc2
15572 builtin and then its argument prototype would still apply. */
15573 char socket();
15574
15575 int main() {
15576
15577 /* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580 #if defined (__stub_socket) || defined (__stub___socket)
15581 choke me
15582 #else
15583 socket();
15584 #endif
15585
15586 ; return 0; }
15587 EOF
15588 if { (eval echo configure:15589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15589 rm -rf conftest*
15590 eval "ac_cv_func_socket=yes"
15591 else
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 rm -rf conftest*
15595 eval "ac_cv_func_socket=no"
15596 fi
15597 rm -f conftest*
15598 fi
15599
15600 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15601 echo "$ac_t""yes" 1>&6
15602 :
15603 else
15604 echo "$ac_t""no" 1>&6
15605 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
15606 echo "configure:15607: checking for socket in -lsocket" >&5
15607 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15609 echo $ac_n "(cached) $ac_c" 1>&6
15610 else
15611 ac_save_LIBS="$LIBS"
15612 LIBS="-lsocket $LIBS"
15613 cat > conftest.$ac_ext <<EOF
15614 #line 15615 "configure"
15615 #include "confdefs.h"
15616 /* Override any gcc2 internal prototype to avoid an error. */
15617 /* We use char because int might match the return type of a gcc2
15618 builtin and then its argument prototype would still apply. */
15619 char socket();
15620
15621 int main() {
15622 socket()
15623 ; return 0; }
15624 EOF
15625 if { (eval echo configure:15626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15626 rm -rf conftest*
15627 eval "ac_cv_lib_$ac_lib_var=yes"
15628 else
15629 echo "configure: failed program was:" >&5
15630 cat conftest.$ac_ext >&5
15631 rm -rf conftest*
15632 eval "ac_cv_lib_$ac_lib_var=no"
15633 fi
15634 rm -f conftest*
15635 LIBS="$ac_save_LIBS"
15636
15637 fi
15638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15639 echo "$ac_t""yes" 1>&6
15640 INET_LINK="$INET_LINK -lsocket"
15641 else
15642 echo "$ac_t""no" 1>&6
15643
15644 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
15645 wxUSE_SOCKETS=no
15646
15647
15648 fi
15649
15650
15651 fi
15652
15653 fi
15654
15655
15656 if test "$wxUSE_SOCKETS" = "yes" ; then
15657 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
15658 echo "configure:15659: checking what is the type of the third argument of getsockname" >&5
15659 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15660 echo $ac_n "(cached) $ac_c" 1>&6
15661 else
15662
15663
15664 ac_ext=C
15665 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15666 ac_cpp='$CXXCPP $CPPFLAGS'
15667 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15668 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15669 cross_compiling=$ac_cv_prog_cxx_cross
15670
15671
15672 cat > conftest.$ac_ext <<EOF
15673 #line 15674 "configure"
15674 #include "confdefs.h"
15675
15676 #include <sys/types.h>
15677 #include <sys/socket.h>
15678
15679 int main() {
15680
15681 socklen_t len;
15682 getsockname(0, 0, &len);
15683
15684 ; return 0; }
15685 EOF
15686 if { (eval echo configure:15687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15687 rm -rf conftest*
15688 wx_cv_type_getsockname3=socklen_t
15689 else
15690 echo "configure: failed program was:" >&5
15691 cat conftest.$ac_ext >&5
15692 rm -rf conftest*
15693 cat > conftest.$ac_ext <<EOF
15694 #line 15695 "configure"
15695 #include "confdefs.h"
15696
15697 #include <sys/types.h>
15698 #include <sys/socket.h>
15699
15700 int main() {
15701
15702 size_t len;
15703 getsockname(0, 0, &len);
15704
15705 ; return 0; }
15706 EOF
15707 if { (eval echo configure:15708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15708 rm -rf conftest*
15709 wx_cv_type_getsockname3=size_t
15710 else
15711 echo "configure: failed program was:" >&5
15712 cat conftest.$ac_ext >&5
15713 rm -rf conftest*
15714 cat > conftest.$ac_ext <<EOF
15715 #line 15716 "configure"
15716 #include "confdefs.h"
15717
15718 #include <sys/types.h>
15719 #include <sys/socket.h>
15720
15721 int main() {
15722
15723 int len;
15724 getsockname(0, 0, &len);
15725
15726 ; return 0; }
15727 EOF
15728 if { (eval echo configure:15729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15729 rm -rf conftest*
15730 wx_cv_type_getsockname3=int
15731 else
15732 echo "configure: failed program was:" >&5
15733 cat conftest.$ac_ext >&5
15734 rm -rf conftest*
15735 wx_cv_type_getsockname3=unknown
15736
15737 fi
15738 rm -f conftest*
15739
15740 fi
15741 rm -f conftest*
15742
15743 fi
15744 rm -f conftest*
15745
15746 ac_ext=c
15747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15748 ac_cpp='$CPP $CPPFLAGS'
15749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15751 cross_compiling=$ac_cv_prog_cc_cross
15752
15753
15754 fi
15755
15756 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
15757
15758 if test "$wx_cv_type_getsockname3" = "unknown"; then
15759 wxUSE_SOCKETS=no
15760 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
15761 else
15762 cat >> confdefs.h <<EOF
15763 #define SOCKLEN_T $wx_cv_type_getsockname3
15764 EOF
15765
15766 fi
15767 fi
15768
15769 fi
15770
15771 if test "$wxUSE_SOCKETS" = "yes" ; then
15772 cat >> confdefs.h <<\EOF
15773 #define wxUSE_SOCKETS 1
15774 EOF
15775
15776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
15777 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15778 fi
15779
15780
15781 if test "$wxUSE_GUI" = "yes"; then
15782
15783 if test "$TOOLKIT" != "MSW"; then
15784
15785 if test "$wxUSE_JOYSTICK" = "yes"; then
15786 for ac_hdr in linux/joystick.h
15787 do
15788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15790 echo "configure:15791: checking for $ac_hdr" >&5
15791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15792 echo $ac_n "(cached) $ac_c" 1>&6
15793 else
15794 cat > conftest.$ac_ext <<EOF
15795 #line 15796 "configure"
15796 #include "confdefs.h"
15797 #include <$ac_hdr>
15798 EOF
15799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15800 { (eval echo configure:15801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15802 if test -z "$ac_err"; then
15803 rm -rf conftest*
15804 eval "ac_cv_header_$ac_safe=yes"
15805 else
15806 echo "$ac_err" >&5
15807 echo "configure: failed program was:" >&5
15808 cat conftest.$ac_ext >&5
15809 rm -rf conftest*
15810 eval "ac_cv_header_$ac_safe=no"
15811 fi
15812 rm -f conftest*
15813 fi
15814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15815 echo "$ac_t""yes" 1>&6
15816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15817 cat >> confdefs.h <<EOF
15818 #define $ac_tr_hdr 1
15819 EOF
15820
15821 else
15822 echo "$ac_t""no" 1>&6
15823 fi
15824 done
15825
15826 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
15827 wxUSE_JOYSTICK=no
15828 echo "configure: warning: Joystick not supported by this system" 1>&2
15829 fi
15830 fi
15831
15832 fi
15833
15834 if test "$wxUSE_JOYSTICK" = "yes"; then
15835 cat >> confdefs.h <<\EOF
15836 #define wxUSE_JOYSTICK 1
15837 EOF
15838
15839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
15840 fi
15841
15842 fi
15843
15844
15845 if test "$TOOLKIT" != "MSW"; then
15846
15847 HAVE_DL_FUNCS=0
15848 HAVE_SHL_FUNCS=0
15849 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
15850 if test "$USE_MAC" = 1; then
15851 HAVE_DL_FUNCS=1
15852 else
15853 for ac_func in dlopen
15854 do
15855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15856 echo "configure:15857: checking for $ac_func" >&5
15857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15858 echo $ac_n "(cached) $ac_c" 1>&6
15859 else
15860 cat > conftest.$ac_ext <<EOF
15861 #line 15862 "configure"
15862 #include "confdefs.h"
15863 /* System header to define __stub macros and hopefully few prototypes,
15864 which can conflict with char $ac_func(); below. */
15865 #include <assert.h>
15866 /* Override any gcc2 internal prototype to avoid an error. */
15867 /* We use char because int might match the return type of a gcc2
15868 builtin and then its argument prototype would still apply. */
15869 char $ac_func();
15870
15871 int main() {
15872
15873 /* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15877 choke me
15878 #else
15879 $ac_func();
15880 #endif
15881
15882 ; return 0; }
15883 EOF
15884 if { (eval echo configure:15885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15885 rm -rf conftest*
15886 eval "ac_cv_func_$ac_func=yes"
15887 else
15888 echo "configure: failed program was:" >&5
15889 cat conftest.$ac_ext >&5
15890 rm -rf conftest*
15891 eval "ac_cv_func_$ac_func=no"
15892 fi
15893 rm -f conftest*
15894 fi
15895
15896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15897 echo "$ac_t""yes" 1>&6
15898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15899 cat >> confdefs.h <<EOF
15900 #define $ac_tr_func 1
15901 EOF
15902
15903 cat >> confdefs.h <<\EOF
15904 #define HAVE_DLOPEN 1
15905 EOF
15906
15907 HAVE_DL_FUNCS=1
15908
15909 else
15910 echo "$ac_t""no" 1>&6
15911 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
15912 echo "configure:15913: checking for dlopen in -ldl" >&5
15913 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
15914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
15916 else
15917 ac_save_LIBS="$LIBS"
15918 LIBS="-ldl $LIBS"
15919 cat > conftest.$ac_ext <<EOF
15920 #line 15921 "configure"
15921 #include "confdefs.h"
15922 /* Override any gcc2 internal prototype to avoid an error. */
15923 /* We use char because int might match the return type of a gcc2
15924 builtin and then its argument prototype would still apply. */
15925 char dlopen();
15926
15927 int main() {
15928 dlopen()
15929 ; return 0; }
15930 EOF
15931 if { (eval echo configure:15932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15932 rm -rf conftest*
15933 eval "ac_cv_lib_$ac_lib_var=yes"
15934 else
15935 echo "configure: failed program was:" >&5
15936 cat conftest.$ac_ext >&5
15937 rm -rf conftest*
15938 eval "ac_cv_lib_$ac_lib_var=no"
15939 fi
15940 rm -f conftest*
15941 LIBS="$ac_save_LIBS"
15942
15943 fi
15944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15945 echo "$ac_t""yes" 1>&6
15946
15947 cat >> confdefs.h <<\EOF
15948 #define HAVE_DLOPEN 1
15949 EOF
15950
15951 HAVE_DL_FUNCS=1
15952 LIBS="$LIBS -ldl"
15953
15954 else
15955 echo "$ac_t""no" 1>&6
15956
15957 for ac_func in shl_load
15958 do
15959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15960 echo "configure:15961: checking for $ac_func" >&5
15961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15962 echo $ac_n "(cached) $ac_c" 1>&6
15963 else
15964 cat > conftest.$ac_ext <<EOF
15965 #line 15966 "configure"
15966 #include "confdefs.h"
15967 /* System header to define __stub macros and hopefully few prototypes,
15968 which can conflict with char $ac_func(); below. */
15969 #include <assert.h>
15970 /* Override any gcc2 internal prototype to avoid an error. */
15971 /* We use char because int might match the return type of a gcc2
15972 builtin and then its argument prototype would still apply. */
15973 char $ac_func();
15974
15975 int main() {
15976
15977 /* The GNU C library defines this for functions which it implements
15978 to always fail with ENOSYS. Some functions are actually named
15979 something starting with __ and the normal name is an alias. */
15980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15981 choke me
15982 #else
15983 $ac_func();
15984 #endif
15985
15986 ; return 0; }
15987 EOF
15988 if { (eval echo configure:15989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15989 rm -rf conftest*
15990 eval "ac_cv_func_$ac_func=yes"
15991 else
15992 echo "configure: failed program was:" >&5
15993 cat conftest.$ac_ext >&5
15994 rm -rf conftest*
15995 eval "ac_cv_func_$ac_func=no"
15996 fi
15997 rm -f conftest*
15998 fi
15999
16000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16001 echo "$ac_t""yes" 1>&6
16002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16003 cat >> confdefs.h <<EOF
16004 #define $ac_tr_func 1
16005 EOF
16006
16007 cat >> confdefs.h <<\EOF
16008 #define HAVE_SHL_LOAD 1
16009 EOF
16010
16011 HAVE_SHL_FUNCS=1
16012
16013 else
16014 echo "$ac_t""no" 1>&6
16015 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16016 echo "configure:16017: checking for dld in -lshl_load" >&5
16017 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16019 echo $ac_n "(cached) $ac_c" 1>&6
16020 else
16021 ac_save_LIBS="$LIBS"
16022 LIBS="-lshl_load $LIBS"
16023 cat > conftest.$ac_ext <<EOF
16024 #line 16025 "configure"
16025 #include "confdefs.h"
16026 /* Override any gcc2 internal prototype to avoid an error. */
16027 /* We use char because int might match the return type of a gcc2
16028 builtin and then its argument prototype would still apply. */
16029 char dld();
16030
16031 int main() {
16032 dld()
16033 ; return 0; }
16034 EOF
16035 if { (eval echo configure:16036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16036 rm -rf conftest*
16037 eval "ac_cv_lib_$ac_lib_var=yes"
16038 else
16039 echo "configure: failed program was:" >&5
16040 cat conftest.$ac_ext >&5
16041 rm -rf conftest*
16042 eval "ac_cv_lib_$ac_lib_var=no"
16043 fi
16044 rm -f conftest*
16045 LIBS="$ac_save_LIBS"
16046
16047 fi
16048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16049 echo "$ac_t""yes" 1>&6
16050
16051 HAVE_SHL_FUNCS=1
16052 LIBS="$LIBS -ldld"
16053
16054 else
16055 echo "$ac_t""no" 1>&6
16056 fi
16057
16058
16059 fi
16060 done
16061
16062
16063 fi
16064
16065
16066 fi
16067 done
16068
16069
16070 if test "$HAVE_DL_FUNCS" = 1; then
16071 for ac_func in dlerror
16072 do
16073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16074 echo "configure:16075: checking for $ac_func" >&5
16075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16076 echo $ac_n "(cached) $ac_c" 1>&6
16077 else
16078 cat > conftest.$ac_ext <<EOF
16079 #line 16080 "configure"
16080 #include "confdefs.h"
16081 /* System header to define __stub macros and hopefully few prototypes,
16082 which can conflict with char $ac_func(); below. */
16083 #include <assert.h>
16084 /* Override any gcc2 internal prototype to avoid an error. */
16085 /* We use char because int might match the return type of a gcc2
16086 builtin and then its argument prototype would still apply. */
16087 char $ac_func();
16088
16089 int main() {
16090
16091 /* The GNU C library defines this for functions which it implements
16092 to always fail with ENOSYS. Some functions are actually named
16093 something starting with __ and the normal name is an alias. */
16094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16095 choke me
16096 #else
16097 $ac_func();
16098 #endif
16099
16100 ; return 0; }
16101 EOF
16102 if { (eval echo configure:16103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16103 rm -rf conftest*
16104 eval "ac_cv_func_$ac_func=yes"
16105 else
16106 echo "configure: failed program was:" >&5
16107 cat conftest.$ac_ext >&5
16108 rm -rf conftest*
16109 eval "ac_cv_func_$ac_func=no"
16110 fi
16111 rm -f conftest*
16112 fi
16113
16114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16115 echo "$ac_t""yes" 1>&6
16116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16117 cat >> confdefs.h <<EOF
16118 #define $ac_tr_func 1
16119 EOF
16120 cat >> confdefs.h <<\EOF
16121 #define HAVE_DLERROR 1
16122 EOF
16123
16124 else
16125 echo "$ac_t""no" 1>&6
16126 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16127 echo "configure:16128: checking for dlerror in -ldl" >&5
16128 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16130 echo $ac_n "(cached) $ac_c" 1>&6
16131 else
16132 ac_save_LIBS="$LIBS"
16133 LIBS="-ldl $LIBS"
16134 cat > conftest.$ac_ext <<EOF
16135 #line 16136 "configure"
16136 #include "confdefs.h"
16137 /* Override any gcc2 internal prototype to avoid an error. */
16138 /* We use char because int might match the return type of a gcc2
16139 builtin and then its argument prototype would still apply. */
16140 char dlerror();
16141
16142 int main() {
16143 dlerror()
16144 ; return 0; }
16145 EOF
16146 if { (eval echo configure:16147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16147 rm -rf conftest*
16148 eval "ac_cv_lib_$ac_lib_var=yes"
16149 else
16150 echo "configure: failed program was:" >&5
16151 cat conftest.$ac_ext >&5
16152 rm -rf conftest*
16153 eval "ac_cv_lib_$ac_lib_var=no"
16154 fi
16155 rm -f conftest*
16156 LIBS="$ac_save_LIBS"
16157
16158 fi
16159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16160 echo "$ac_t""yes" 1>&6
16161 cat >> confdefs.h <<\EOF
16162 #define HAVE_DLERROR 1
16163 EOF
16164
16165 else
16166 echo "$ac_t""no" 1>&6
16167 fi
16168
16169 fi
16170 done
16171
16172 fi
16173 fi
16174
16175 if test "$HAVE_DL_FUNCS" = 0; then
16176 if test "$HAVE_SHL_FUNCS" = 0; then
16177 if test "$USE_UNIX" = 1; then
16178 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16179 wxUSE_DYNLIB_CLASS=no
16180 else
16181 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16182 fi
16183 fi
16184 fi
16185 fi
16186
16187 fi
16188
16189 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16190 cat >> confdefs.h <<\EOF
16191 #define wxUSE_DYNLIB_CLASS 1
16192 EOF
16193
16194 else
16195 wxUSE_ODBC=no
16196 wxUSE_SERIAL=no
16197 fi
16198
16199
16200 if test "$wxUSE_FONTMAP" = "yes" ; then
16201 cat >> confdefs.h <<\EOF
16202 #define wxUSE_FONTMAP 1
16203 EOF
16204
16205 fi
16206
16207 if test "$wxUSE_UNICODE" = "yes" ; then
16208 cat >> confdefs.h <<\EOF
16209 #define wxUSE_UNICODE 1
16210 EOF
16211
16212 fi
16213
16214 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16215 cat >> confdefs.h <<\EOF
16216 #define wxUSE_WCSRTOMBS 1
16217 EOF
16218
16219 fi
16220
16221 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16222 cat >> confdefs.h <<\EOF
16223 #define wxUSE_EXPERIMENTAL_PRINTF 1
16224 EOF
16225
16226 fi
16227
16228
16229 if test "$wxUSE_SERIAL" = "yes" ; then
16230 cat >> confdefs.h <<\EOF
16231 #define wxUSE_SERIAL 1
16232 EOF
16233
16234 fi
16235
16236
16237 IODBC_C_SRC=""
16238 if test "$wxUSE_ODBC" = "yes" ; then
16239 cat >> confdefs.h <<\EOF
16240 #define wxUSE_ODBC 1
16241 EOF
16242
16243 WXODBCFLAG="-D_IODBC_"
16244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16245 fi
16246
16247
16248 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16249 cat >> confdefs.h <<\EOF
16250 #define wxUSE_POSTSCRIPT 1
16251 EOF
16252
16253 fi
16254
16255 cat >> confdefs.h <<\EOF
16256 #define wxUSE_AFM_FOR_POSTSCRIPT 1
16257 EOF
16258
16259
16260 cat >> confdefs.h <<\EOF
16261 #define wxUSE_NORMALIZED_PS_FONTS 1
16262 EOF
16263
16264
16265
16266 if test "$wxUSE_CONSTRAINTS" = "yes"; then
16267 cat >> confdefs.h <<\EOF
16268 #define wxUSE_CONSTRAINTS 1
16269 EOF
16270
16271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16272 fi
16273
16274 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16275 cat >> confdefs.h <<\EOF
16276 #define wxUSE_MDI_ARCHITECTURE 1
16277 EOF
16278
16279 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16280 fi
16281
16282 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16283 cat >> confdefs.h <<\EOF
16284 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
16285 EOF
16286
16287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16288 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16290 fi
16291 fi
16292
16293 if test "$wxUSE_HELP" = "yes"; then
16294 cat >> confdefs.h <<\EOF
16295 #define wxUSE_HELP 1
16296 EOF
16297
16298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16299 fi
16300
16301 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16302 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16303 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
16304 else
16305 cat >> confdefs.h <<\EOF
16306 #define wxUSE_PRINTING_ARCHITECTURE 1
16307 EOF
16308
16309 fi
16310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16311 fi
16312
16313 if test "$wxUSE_PROLOGIO" = "yes" ; then
16314 cat >> confdefs.h <<\EOF
16315 #define wxUSE_PROLOGIO 1
16316 EOF
16317
16318 fi
16319
16320 if test "$wxUSE_RESOURCES" = "yes" ; then
16321 if test "$wxUSE_PROLOGIO" = "yes" ; then
16322 cat >> confdefs.h <<\EOF
16323 #define wxUSE_RESOURCES 1
16324 EOF
16325
16326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16327 else
16328 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
16329 fi
16330 fi
16331
16332 if test "$wxUSE_X_RESOURCES" = "yes"; then
16333 cat >> confdefs.h <<\EOF
16334 #define wxUSE_X_RESOURCES 1
16335 EOF
16336
16337 fi
16338
16339
16340 if test "$wxUSE_IPC" = "yes"; then
16341 if test "$wxUSE_SOCKETS" != "yes"; then
16342 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
16343 fi
16344
16345 cat >> confdefs.h <<\EOF
16346 #define wxUSE_IPC 1
16347 EOF
16348
16349 fi
16350
16351 if test "$wxUSE_CLIPBOARD" = "yes"; then
16352 cat >> confdefs.h <<\EOF
16353 #define wxUSE_CLIPBOARD 1
16354 EOF
16355
16356 cat >> confdefs.h <<\EOF
16357 #define wxUSE_DATAOBJ 1
16358 EOF
16359
16360 fi
16361
16362 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16363 if test "$wxUSE_GTK" = 1; then
16364 if test "$WXGTK12" != 1; then
16365 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
16366 wxUSE_DRAG_AND_DROP=no
16367 fi
16368 fi
16369
16370 if test "$wxUSE_MOTIF" = 1; then
16371 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
16372 wxUSE_DRAG_AND_DROP=no
16373 fi
16374
16375 if test "$wxUSE_MAC" = 1; then
16376 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
16377 wxUSE_DRAG_AND_DROP=no
16378 fi
16379
16380 if test "$USE_WIN32" = 1; then
16381
16382 for ac_hdr in ole2.h
16383 do
16384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16386 echo "configure:16387: checking for $ac_hdr" >&5
16387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16388 echo $ac_n "(cached) $ac_c" 1>&6
16389 else
16390 cat > conftest.$ac_ext <<EOF
16391 #line 16392 "configure"
16392 #include "confdefs.h"
16393 #include <$ac_hdr>
16394 EOF
16395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16396 { (eval echo configure:16397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16398 if test -z "$ac_err"; then
16399 rm -rf conftest*
16400 eval "ac_cv_header_$ac_safe=yes"
16401 else
16402 echo "$ac_err" >&5
16403 echo "configure: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 rm -rf conftest*
16406 eval "ac_cv_header_$ac_safe=no"
16407 fi
16408 rm -f conftest*
16409 fi
16410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16411 echo "$ac_t""yes" 1>&6
16412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16413 cat >> confdefs.h <<EOF
16414 #define $ac_tr_hdr 1
16415 EOF
16416
16417 else
16418 echo "$ac_t""no" 1>&6
16419 fi
16420 done
16421
16422
16423 if test "$ac_cv_header_ole2_h" = "yes" ; then
16424 if test "$GCC" = yes ; then
16425 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16426 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
16427 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
16428 LIBS="$LIBS -lole32 -luuid"
16429
16430 if test "$wxUSE_METAFILE" = "yes"; then
16431 cat >> confdefs.h <<\EOF
16432 #define wxUSE_METAFILE 1
16433 EOF
16434
16435 cat >> confdefs.h <<\EOF
16436 #define wxUSE_ENH_METAFILE 1
16437 EOF
16438
16439 fi
16440 fi
16441 else
16442 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
16443 wxUSE_DRAG_AND_DROP=no
16444 fi
16445 fi
16446
16447 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
16448 cat >> confdefs.h <<\EOF
16449 #define wxUSE_DRAG_AND_DROP 1
16450 EOF
16451
16452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16453 fi
16454
16455 fi
16456
16457 if test "$wxUSE_SPLINES" = "yes" ; then
16458 cat >> confdefs.h <<\EOF
16459 #define wxUSE_SPLINES 1
16460 EOF
16461
16462 fi
16463
16464
16465 USES_CONTROLS=0
16466 if test "$wxUSE_CONTROLS" = "yes"; then
16467 USES_CONTROLS=1
16468 fi
16469
16470 if test "$wxUSE_ACCEL" = "yes"; then
16471 cat >> confdefs.h <<\EOF
16472 #define wxUSE_ACCEL 1
16473 EOF
16474
16475 USES_CONTROLS=1
16476 fi
16477
16478 if test "$wxUSE_BUTTON" = "yes"; then
16479 cat >> confdefs.h <<\EOF
16480 #define wxUSE_BUTTON 1
16481 EOF
16482
16483 USES_CONTROLS=1
16484 fi
16485
16486 if test "$wxUSE_BMPBUTTON" = "yes"; then
16487 cat >> confdefs.h <<\EOF
16488 #define wxUSE_BMPBUTTON 1
16489 EOF
16490
16491 USES_CONTROLS=1
16492 fi
16493
16494 if test "$wxUSE_CALCTRL" = "yes"; then
16495 cat >> confdefs.h <<\EOF
16496 #define wxUSE_CALENDARCTRL 1
16497 EOF
16498
16499 USES_CONTROLS=1
16500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
16501 fi
16502
16503 if test "$wxUSE_CARET" = "yes"; then
16504 cat >> confdefs.h <<\EOF
16505 #define wxUSE_CARET 1
16506 EOF
16507
16508 USES_CONTROLS=1
16509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16510 fi
16511
16512 if test "$wxUSE_COMBOBOX" = "yes"; then
16513 cat >> confdefs.h <<\EOF
16514 #define wxUSE_COMBOBOX 1
16515 EOF
16516
16517 USES_CONTROLS=1
16518 fi
16519
16520 if test "$wxUSE_CHOICE" = "yes"; then
16521 cat >> confdefs.h <<\EOF
16522 #define wxUSE_CHOICE 1
16523 EOF
16524
16525 USES_CONTROLS=1
16526 fi
16527
16528 if test "$wxUSE_CHECKBOX" = "yes"; then
16529 cat >> confdefs.h <<\EOF
16530 #define wxUSE_CHECKBOX 1
16531 EOF
16532
16533 USES_CONTROLS=1
16534 fi
16535
16536 if test "$wxUSE_CHECKLST" = "yes"; then
16537 cat >> confdefs.h <<\EOF
16538 #define wxUSE_CHECKLISTBOX 1
16539 EOF
16540
16541 USES_CONTROLS=1
16542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16543 fi
16544
16545 if test "$wxUSE_GAUGE" = "yes"; then
16546 cat >> confdefs.h <<\EOF
16547 #define wxUSE_GAUGE 1
16548 EOF
16549
16550 USES_CONTROLS=1
16551 fi
16552
16553 if test "$wxUSE_NEW_GRID" = "yes"; then
16554 wxUSE_GRID="yes"
16555 cat >> confdefs.h <<\EOF
16556 #define wxUSE_NEW_GRID 1
16557 EOF
16558
16559 USES_CONTROLS=1
16560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
16561 fi
16562
16563 if test "$wxUSE_GRID" = "yes"; then
16564 cat >> confdefs.h <<\EOF
16565 #define wxUSE_GRID 1
16566 EOF
16567
16568 USES_CONTROLS=1
16569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
16570 fi
16571
16572 if test "$wxUSE_IMAGLIST" = "yes"; then
16573 cat >> confdefs.h <<\EOF
16574 #define wxUSE_IMAGLIST 1
16575 EOF
16576
16577 fi
16578
16579 if test "$wxUSE_LISTBOX" = "yes"; then
16580 cat >> confdefs.h <<\EOF
16581 #define wxUSE_LISTBOX 1
16582 EOF
16583
16584 USES_CONTROLS=1
16585 fi
16586
16587 if test "$wxUSE_LISTCTRL" = "yes"; then
16588 if test "$wxUSE_IMAGLIST" = "yes"; then
16589 cat >> confdefs.h <<\EOF
16590 #define wxUSE_LISTCTRL 1
16591 EOF
16592
16593 USES_CONTROLS=1
16594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16595 else
16596 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
16597 fi
16598 fi
16599
16600 if test "$wxUSE_NOTEBOOK" = "yes"; then
16601 cat >> confdefs.h <<\EOF
16602 #define wxUSE_NOTEBOOK 1
16603 EOF
16604
16605 USES_CONTROLS=1
16606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16607 fi
16608
16609 if test "$wxUSE_RADIOBOX" = "yes"; then
16610 cat >> confdefs.h <<\EOF
16611 #define wxUSE_RADIOBOX 1
16612 EOF
16613
16614 USES_CONTROLS=1
16615 fi
16616
16617 if test "$wxUSE_RADIOBTN" = "yes"; then
16618 cat >> confdefs.h <<\EOF
16619 #define wxUSE_RADIOBTN 1
16620 EOF
16621
16622 USES_CONTROLS=1
16623 fi
16624
16625 if test "$wxUSE_SASH" = "yes"; then
16626 cat >> confdefs.h <<\EOF
16627 #define wxUSE_SASH 1
16628 EOF
16629
16630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16631 fi
16632
16633 if test "$wxUSE_SCROLLBAR" = "yes"; then
16634 cat >> confdefs.h <<\EOF
16635 #define wxUSE_SCROLLBAR 1
16636 EOF
16637
16638 USES_CONTROLS=1
16639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
16640 fi
16641
16642 if test "$wxUSE_SLIDER" = "yes"; then
16643 cat >> confdefs.h <<\EOF
16644 #define wxUSE_SLIDER 1
16645 EOF
16646
16647 USES_CONTROLS=1
16648 fi
16649
16650 if test "$wxUSE_SPINBTN" = "yes"; then
16651 cat >> confdefs.h <<\EOF
16652 #define wxUSE_SPINBTN 1
16653 EOF
16654
16655 USES_CONTROLS=1
16656 fi
16657
16658 if test "$wxUSE_SPINCTRL" = "yes"; then
16659 cat >> confdefs.h <<\EOF
16660 #define wxUSE_SPINCTRL 1
16661 EOF
16662
16663 USES_CONTROLS=1
16664 fi
16665
16666 if test "$wxUSE_SPLITTER" = "yes"; then
16667 cat >> confdefs.h <<\EOF
16668 #define wxUSE_SPLITTER 1
16669 EOF
16670
16671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16672 fi
16673
16674 if test "$wxUSE_STATBMP" = "yes"; then
16675 cat >> confdefs.h <<\EOF
16676 #define wxUSE_STATBMP 1
16677 EOF
16678
16679 USES_CONTROLS=1
16680 fi
16681
16682 if test "$wxUSE_STATBOX" = "yes"; then
16683 cat >> confdefs.h <<\EOF
16684 #define wxUSE_STATBOX 1
16685 EOF
16686
16687 USES_CONTROLS=1
16688 fi
16689
16690 if test "$wxUSE_STATTEXT" = "yes"; then
16691 cat >> confdefs.h <<\EOF
16692 #define wxUSE_STATTEXT 1
16693 EOF
16694
16695 USES_CONTROLS=1
16696 fi
16697
16698 if test "$wxUSE_STATLINE" = "yes"; then
16699 if test "$wxUSE_WINE" = 1 ; then
16700 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
16701 else
16702 cat >> confdefs.h <<\EOF
16703 #define wxUSE_STATLINE 1
16704 EOF
16705
16706 USES_CONTROLS=1
16707 fi
16708 fi
16709
16710 if test "$wxUSE_STATUSBAR" = "yes"; then
16711 cat >> confdefs.h <<\EOF
16712 #define wxUSE_STATUSBAR 1
16713 EOF
16714
16715 USES_CONTROLS=1
16716
16717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
16718 fi
16719
16720 if test "$wxUSE_TABDIALOG" = "yes"; then
16721 cat >> confdefs.h <<\EOF
16722 #define wxUSE_TAB_DIALOG 1
16723 EOF
16724
16725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16726 fi
16727
16728 if test "$wxUSE_TEXTCTRL" = "yes"; then
16729 cat >> confdefs.h <<\EOF
16730 #define wxUSE_TEXTCTRL 1
16731 EOF
16732
16733 USES_CONTROLS=1
16734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16735 fi
16736
16737 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16738 if test "$wxUSE_MAC" = 1; then
16739 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16740 wxUSE_TOGGLEBTN=no
16741 fi
16742
16743 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16744 cat >> confdefs.h <<\EOF
16745 #define wxUSE_TOGGLEBTN 1
16746 EOF
16747
16748 USES_CONTROLS=1
16749 fi
16750 fi
16751
16752 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
16753 cat >> confdefs.h <<\EOF
16754 #define wxUSE_TOOLBAR_SIMPLE 1
16755 EOF
16756
16757 wxUSE_TOOLBAR="yes"
16758 USES_CONTROLS=1
16759 fi
16760
16761 if test "$wxUSE_TOOLBAR" = "yes"; then
16762 cat >> confdefs.h <<\EOF
16763 #define wxUSE_TOOLBAR 1
16764 EOF
16765
16766 USES_CONTROLS=1
16767
16768 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16769 wxUSE_TOOLBAR_NATIVE="yes"
16770 fi
16771
16772 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16773 cat >> confdefs.h <<\EOF
16774 #define wxUSE_TOOLBAR_NATIVE 1
16775 EOF
16776
16777 USES_CONTROLS=1
16778 fi
16779
16780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
16781 fi
16782
16783 if test "$wxUSE_TOOLTIPS" = "yes"; then
16784 if test "$wxUSE_MOTIF" = 1; then
16785 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
16786 else
16787 if test "$wxUSE_WINE" = 1; then
16788 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
16789 else
16790 cat >> confdefs.h <<\EOF
16791 #define wxUSE_TOOLTIPS 1
16792 EOF
16793
16794 fi
16795 fi
16796 fi
16797
16798 if test "$wxUSE_TREECTRL" = "yes"; then
16799 if test "$wxUSE_IMAGLIST" = "yes"; then
16800 cat >> confdefs.h <<\EOF
16801 #define wxUSE_TREECTRL 1
16802 EOF
16803
16804 USES_CONTROLS=1
16805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
16806 else
16807 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
16808 fi
16809 fi
16810
16811 if test "$USES_CONTROLS" = 1; then
16812 cat >> confdefs.h <<\EOF
16813 #define wxUSE_CONTROLS 1
16814 EOF
16815
16816 fi
16817
16818
16819
16820 if test "$wxUSE_MENUS" = "yes"; then
16821 cat >> confdefs.h <<\EOF
16822 #define wxUSE_MENUS 1
16823 EOF
16824
16825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
16826 fi
16827
16828 if test "$wxUSE_METAFILE" = "yes"; then
16829 cat >> confdefs.h <<\EOF
16830 #define wxUSE_METAFILE 1
16831 EOF
16832
16833 fi
16834
16835 if test "$wxUSE_MIMETYPE" = "yes"; then
16836 cat >> confdefs.h <<\EOF
16837 #define wxUSE_MIMETYPE 1
16838 EOF
16839
16840 fi
16841
16842 if test "$wxUSE_MINIFRAME" = "yes"; then
16843 cat >> confdefs.h <<\EOF
16844 #define wxUSE_MINIFRAME 1
16845 EOF
16846
16847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
16848 fi
16849
16850 if test "$wxUSE_HTML" = "yes"; then
16851 cat >> confdefs.h <<\EOF
16852 #define wxUSE_HTML 1
16853 EOF
16854
16855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
16856 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
16857 fi
16858
16859 if test "$wxUSE_VALIDATORS" = "yes"; then
16860 cat >> confdefs.h <<\EOF
16861 #define wxUSE_VALIDATORS 1
16862 EOF
16863
16864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
16865 fi
16866
16867 if test "$wxUSE_IMAGE" = "yes" ; then
16868 cat >> confdefs.h <<\EOF
16869 #define wxUSE_IMAGE 1
16870 EOF
16871
16872 fi
16873
16874 if test "$wxUSE_GIF" = "yes" ; then
16875 cat >> confdefs.h <<\EOF
16876 #define wxUSE_GIF 1
16877 EOF
16878
16879 fi
16880
16881 if test "$wxUSE_PCX" = "yes" ; then
16882 cat >> confdefs.h <<\EOF
16883 #define wxUSE_PCX 1
16884 EOF
16885
16886 fi
16887
16888 if test "$wxUSE_PNM" = "yes" ; then
16889 cat >> confdefs.h <<\EOF
16890 #define wxUSE_PNM 1
16891 EOF
16892
16893 fi
16894
16895 if test "$wxUSE_XPM" = "yes" ; then
16896 cat >> confdefs.h <<\EOF
16897 #define wxUSE_XPM 1
16898 EOF
16899
16900 fi
16901
16902
16903 if test "$wxUSE_CHOICEDLG" = "yes"; then
16904 cat >> confdefs.h <<\EOF
16905 #define wxUSE_CHOICEDLG 1
16906 EOF
16907
16908 fi
16909
16910 if test "$wxUSE_COLOURDLG" = "yes"; then
16911 cat >> confdefs.h <<\EOF
16912 #define wxUSE_COLOURDLG 1
16913 EOF
16914
16915 fi
16916
16917 if test "$wxUSE_FILEDLG" = "yes"; then
16918 cat >> confdefs.h <<\EOF
16919 #define wxUSE_FILEDLG 1
16920 EOF
16921
16922 fi
16923
16924 if test "$wxUSE_FONTDLG" = "yes"; then
16925 cat >> confdefs.h <<\EOF
16926 #define wxUSE_FONTDLG 1
16927 EOF
16928
16929 fi
16930
16931 if test "$wxUSE_DIRDLG" = "yes"; then
16932 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16933 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
16934 else
16935 if test "$wxUSE_TREECTRL" != "yes"; then
16936 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
16937 else
16938 cat >> confdefs.h <<\EOF
16939 #define wxUSE_DIRDLG 1
16940 EOF
16941
16942 fi
16943 fi
16944 fi
16945
16946 if test "$wxUSE_MSGDLG" = "yes"; then
16947 cat >> confdefs.h <<\EOF
16948 #define wxUSE_MSGDLG 1
16949 EOF
16950
16951 fi
16952
16953 if test "$wxUSE_NUMBERDLG" = "yes"; then
16954 cat >> confdefs.h <<\EOF
16955 #define wxUSE_NUMBERDLG 1
16956 EOF
16957
16958 fi
16959
16960 if test "$wxUSE_PROGRESSDLG" = "yes"; then
16961 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16962 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
16963 else
16964 cat >> confdefs.h <<\EOF
16965 #define wxUSE_PROGRESSDLG 1
16966 EOF
16967
16968 fi
16969 fi
16970
16971 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
16972 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16973 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
16974 else
16975 cat >> confdefs.h <<\EOF
16976 #define wxUSE_STARTUP_TIPS 1
16977 EOF
16978
16979 fi
16980 fi
16981
16982 if test "$wxUSE_TEXTDLG" = "yes"; then
16983 cat >> confdefs.h <<\EOF
16984 #define wxUSE_TEXTDLG 1
16985 EOF
16986
16987 fi
16988
16989
16990 if test "$cross_compiling" = "yes"; then
16991 OSINFO="\"$host\""
16992 else
16993 OSINFO=`uname -s -r -m`
16994 OSINFO="\"$OSINFO\""
16995 fi
16996
16997 cat >> confdefs.h <<EOF
16998 #define WXWIN_OS_DESCRIPTION $OSINFO
16999 EOF
17000
17001
17002
17003 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17004 OPENGL_LIBS="$OPENGL_LINK"
17005
17006 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17007 if test "$USE_MAC" = 1 ; then
17008 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17009 fi
17010 if test "$wxUSE_GUI" = "yes"; then
17011 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17012 fi
17013
17014 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17015
17016 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17017
17018 if test "$wxUSE_GTK" = 1; then
17019 WXCONFIG_INCLUDE=""
17020 else
17021 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17022 fi
17023
17024 if test "$GXX" = yes ; then
17025 CXXWARNINGS="-Wall"
17026 fi
17027 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17028
17029 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17030 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17031
17032 LDFLAGS="$LDFLAGS $PROFILE"
17033
17034 if test "$wxUSE_GUI" = "yes"; then
17035
17036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
17037 drawing dynamic event font fractal image \
17038 minimal richedit widgets"
17039
17040 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17042 fi
17043
17044 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17045 else
17046 SAMPLES_SUBDIRS=""
17047 fi
17048
17049 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17145 echo "configure:17146: checking whether ${MAKE-make} sets \${MAKE}" >&5
17146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17147 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17148 echo $ac_n "(cached) $ac_c" 1>&6
17149 else
17150 cat > conftestmake <<\EOF
17151 all:
17152 @echo 'ac_maketemp="${MAKE}"'
17153 EOF
17154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17155 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17156 if test -n "$ac_maketemp"; then
17157 eval ac_cv_prog_make_${ac_make}_set=yes
17158 else
17159 eval ac_cv_prog_make_${ac_make}_set=no
17160 fi
17161 rm -f conftestmake
17162 fi
17163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17164 echo "$ac_t""yes" 1>&6
17165 SET_MAKE=
17166 else
17167 echo "$ac_t""no" 1>&6
17168 SET_MAKE="MAKE=${MAKE-make}"
17169 fi
17170
17171
17172 if test -d include; then
17173 if test -d include/wx; then
17174 if test -d include/wx/${SETUPH_DIR}; then
17175 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17176 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17177 fi
17178 fi
17179 fi
17180 fi
17181
17182
17183
17184 if test "$wxUSE_GUI" = "yes"; then
17185 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17186 wx_cv_path_ifs=$PATH_IFS
17187 wx_cv_program_ext=$PROGRAM_EXT
17188 wx_cv_target_library=$WX_TARGET_LIBRARY
17189 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17190 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17191 wx_cv_target_library wx_cv_target_libtype
17192 subdirs="demos samples utils contrib"
17193
17194 fi
17195
17196 trap '' 1 2 15
17197 cat > confcache <<\EOF
17198 # This file is a shell script that caches the results of configure
17199 # tests run on this system so they can be shared between configure
17200 # scripts and configure runs. It is not useful on other systems.
17201 # If it contains results you don't want to keep, you may remove or edit it.
17202 #
17203 # By default, configure uses ./config.cache as the cache file,
17204 # creating it if it does not exist already. You can give configure
17205 # the --cache-file=FILE option to use a different cache file; that is
17206 # what configure does when it calls configure scripts in
17207 # subdirectories, so they share the cache.
17208 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17209 # config.status only pays attention to the cache file if you give it the
17210 # --recheck option to rerun configure.
17211 #
17212 EOF
17213 # The following way of writing the cache mishandles newlines in values,
17214 # but we know of no workaround that is simple, portable, and efficient.
17215 # So, don't put newlines in cache variables' values.
17216 # Ultrix sh set writes to stderr and can't be redirected directly,
17217 # and sets the high bit in the cache file unless we assign to the vars.
17218 (set) 2>&1 |
17219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17220 *ac_space=\ *)
17221 # `set' does not quote correctly, so add quotes (double-quote substitution
17222 # turns \\\\ into \\, and sed turns \\ into \).
17223 sed -n \
17224 -e "s/'/'\\\\''/g" \
17225 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17226 ;;
17227 *)
17228 # `set' quotes correctly as required by POSIX, so do not add quotes.
17229 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17230 ;;
17231 esac >> confcache
17232 if cmp -s $cache_file confcache; then
17233 :
17234 else
17235 if test -w $cache_file; then
17236 echo "updating cache $cache_file"
17237 cat confcache > $cache_file
17238 else
17239 echo "not updating unwritable cache $cache_file"
17240 fi
17241 fi
17242 rm -f confcache
17243
17244 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17245
17246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17247 # Let make expand exec_prefix.
17248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17249
17250 # Any assignment to VPATH causes Sun make to only execute
17251 # the first set of double-colon rules, so remove it if not needed.
17252 # If there is a colon in the path, we need to keep it.
17253 if test "x$srcdir" = x.; then
17254 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17255 fi
17256
17257 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17258
17259 DEFS=-DHAVE_CONFIG_H
17260
17261 # Without the "./", some shells look in PATH for config.status.
17262 : ${CONFIG_STATUS=./config.status}
17263
17264 echo creating $CONFIG_STATUS
17265 rm -f $CONFIG_STATUS
17266 cat > $CONFIG_STATUS <<EOF
17267 #! /bin/sh
17268 # Generated automatically by configure.
17269 # Run this file to recreate the current configuration.
17270 # This directory was configured as follows,
17271 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17272 #
17273 # $0 $ac_configure_args
17274 #
17275 # Compiler output produced by configure, useful for debugging
17276 # configure, is in ./config.log if it exists.
17277
17278 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17279 for ac_option
17280 do
17281 case "\$ac_option" in
17282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17283 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17284 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17285 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17286 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17287 exit 0 ;;
17288 -help | --help | --hel | --he | --h)
17289 echo "\$ac_cs_usage"; exit 0 ;;
17290 *) echo "\$ac_cs_usage"; exit 1 ;;
17291 esac
17292 done
17293
17294 ac_given_srcdir=$srcdir
17295 ac_given_INSTALL="$INSTALL"
17296
17297 trap 'rm -fr `echo "
17298 wx-config
17299 src/make.env
17300 src/makeprog.env
17301 src/makelib.env
17302 Makefile
17303 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17304 EOF
17305 cat >> $CONFIG_STATUS <<EOF
17306
17307 # Protect against being on the right side of a sed subst in config.status.
17308 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17309 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17310 $ac_vpsub
17311 $extrasub
17312 s%@SHELL@%$SHELL%g
17313 s%@CFLAGS@%$CFLAGS%g
17314 s%@CPPFLAGS@%$CPPFLAGS%g
17315 s%@CXXFLAGS@%$CXXFLAGS%g
17316 s%@FFLAGS@%$FFLAGS%g
17317 s%@DEFS@%$DEFS%g
17318 s%@LDFLAGS@%$LDFLAGS%g
17319 s%@LIBS@%$LIBS%g
17320 s%@exec_prefix@%$exec_prefix%g
17321 s%@prefix@%$prefix%g
17322 s%@program_transform_name@%$program_transform_name%g
17323 s%@bindir@%$bindir%g
17324 s%@sbindir@%$sbindir%g
17325 s%@libexecdir@%$libexecdir%g
17326 s%@datadir@%$datadir%g
17327 s%@sysconfdir@%$sysconfdir%g
17328 s%@sharedstatedir@%$sharedstatedir%g
17329 s%@localstatedir@%$localstatedir%g
17330 s%@libdir@%$libdir%g
17331 s%@includedir@%$includedir%g
17332 s%@oldincludedir@%$oldincludedir%g
17333 s%@infodir@%$infodir%g
17334 s%@mandir@%$mandir%g
17335 s%@host@%$host%g
17336 s%@host_alias@%$host_alias%g
17337 s%@host_cpu@%$host_cpu%g
17338 s%@host_vendor@%$host_vendor%g
17339 s%@host_os@%$host_os%g
17340 s%@target@%$target%g
17341 s%@target_alias@%$target_alias%g
17342 s%@target_cpu@%$target_cpu%g
17343 s%@target_vendor@%$target_vendor%g
17344 s%@target_os@%$target_os%g
17345 s%@build@%$build%g
17346 s%@build_alias@%$build_alias%g
17347 s%@build_cpu@%$build_cpu%g
17348 s%@build_vendor@%$build_vendor%g
17349 s%@build_os@%$build_os%g
17350 s%@CC@%$CC%g
17351 s%@CPP@%$CPP%g
17352 s%@CXX@%$CXX%g
17353 s%@CXXCPP@%$CXXCPP%g
17354 s%@RANLIB@%$RANLIB%g
17355 s%@AR@%$AR%g
17356 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17357 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17358 s%@INSTALL_DATA@%$INSTALL_DATA%g
17359 s%@STRIP@%$STRIP%g
17360 s%@YACC@%$YACC%g
17361 s%@LEX@%$LEX%g
17362 s%@LEXLIB@%$LEXLIB%g
17363 s%@LN_S@%$LN_S%g
17364 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
17365 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17366 s%@GTK_LIBS@%$GTK_LIBS%g
17367 s%@GTK_CONFIG@%$GTK_CONFIG%g
17368 s%@X_CFLAGS@%$X_CFLAGS%g
17369 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17370 s%@X_LIBS@%$X_LIBS%g
17371 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17372 s%@REZ@%$REZ%g
17373 s%@DEREZ@%$DEREZ%g
17374 s%@LEX_STEM@%$LEX_STEM%g
17375 s%@PATH_IFS@%$PATH_IFS%g
17376 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17377 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17378 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17379 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17380 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17381 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17382 s%@WX_LIBRARY@%$WX_LIBRARY%g
17383 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17384 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17385 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17386 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17387 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17388 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17389 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17390 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17391 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17392 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17393 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17394 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17395 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17396 s%@WX_ALL@%$WX_ALL%g
17397 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17398 s%@SHARED_LD@%$SHARED_LD%g
17399 s%@PIC_FLAG@%$PIC_FLAG%g
17400 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17401 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17402 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17403 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17404 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17405 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17406 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17407 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17408 s%@USE_GUI@%$USE_GUI%g
17409 s%@AFMINSTALL@%$AFMINSTALL%g
17410 s%@SETUPH_DIR@%$SETUPH_DIR%g
17411 s%@TOOLKIT@%$TOOLKIT%g
17412 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17413 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17414 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17415 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
17416 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
17417 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17418 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17419 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17420 s%@GUIDIST@%$GUIDIST%g
17421 s%@PORT_FILES@%$PORT_FILES%g
17422 s%@DISTDIR@%$DISTDIR%g
17423 s%@RPM_SPEC@%$RPM_SPEC%g
17424 s%@RPM_FILES@%$RPM_FILES%g
17425 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17426 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17427 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17428 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17429 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17430 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17431 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17432 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17433 s%@EXTRADEFS@%$EXTRADEFS%g
17434 s%@LD_LIBS@%$LD_LIBS%g
17435 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17436 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17437 s%@RESPROGRAM@%$RESPROGRAM%g
17438 s%@RESCOMP@%$RESCOMP%g
17439 s%@RESFLAGS@%$RESFLAGS%g
17440 s%@REZFLAGS@%$REZFLAGS%g
17441 s%@DEREZFLAGS@%$DEREZFLAGS%g
17442 s%@LIBWXMACRES@%$LIBWXMACRES%g
17443 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17444 s%@DLLTOOL@%$DLLTOOL%g
17445 s%@AS@%$AS%g
17446 s%@NM@%$NM%g
17447 s%@LD@%$LD%g
17448 s%@MAKEINFO@%$MAKEINFO%g
17449 s%@SET_MAKE@%$SET_MAKE%g
17450 s%@subdirs@%$subdirs%g
17451
17452 CEOF
17453 EOF
17454
17455 cat >> $CONFIG_STATUS <<\EOF
17456
17457 # Split the substitutions into bite-sized pieces for seds with
17458 # small command number limits, like on Digital OSF/1 and HP-UX.
17459 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17460 ac_file=1 # Number of current file.
17461 ac_beg=1 # First line for current file.
17462 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17463 ac_more_lines=:
17464 ac_sed_cmds=""
17465 while $ac_more_lines; do
17466 if test $ac_beg -gt 1; then
17467 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17468 else
17469 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17470 fi
17471 if test ! -s conftest.s$ac_file; then
17472 ac_more_lines=false
17473 rm -f conftest.s$ac_file
17474 else
17475 if test -z "$ac_sed_cmds"; then
17476 ac_sed_cmds="sed -f conftest.s$ac_file"
17477 else
17478 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17479 fi
17480 ac_file=`expr $ac_file + 1`
17481 ac_beg=$ac_end
17482 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17483 fi
17484 done
17485 if test -z "$ac_sed_cmds"; then
17486 ac_sed_cmds=cat
17487 fi
17488 EOF
17489
17490 cat >> $CONFIG_STATUS <<EOF
17491
17492 CONFIG_FILES=\${CONFIG_FILES-"wx-config
17493 src/make.env
17494 src/makeprog.env
17495 src/makelib.env
17496 Makefile
17497 "}
17498 EOF
17499 cat >> $CONFIG_STATUS <<\EOF
17500 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17502 case "$ac_file" in
17503 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17504 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17505 *) ac_file_in="${ac_file}.in" ;;
17506 esac
17507
17508 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17509
17510 # Remove last slash and all that follows it. Not all systems have dirname.
17511 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17512 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17513 # The file is in a subdirectory.
17514 test ! -d "$ac_dir" && mkdir "$ac_dir"
17515 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17516 # A "../" for each directory in $ac_dir_suffix.
17517 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17518 else
17519 ac_dir_suffix= ac_dots=
17520 fi
17521
17522 case "$ac_given_srcdir" in
17523 .) srcdir=.
17524 if test -z "$ac_dots"; then top_srcdir=.
17525 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17526 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17527 *) # Relative path.
17528 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17529 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17530 esac
17531
17532 case "$ac_given_INSTALL" in
17533 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17534 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17535 esac
17536
17537 echo creating "$ac_file"
17538 rm -f "$ac_file"
17539 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17540 case "$ac_file" in
17541 *Makefile*) ac_comsub="1i\\
17542 # $configure_input" ;;
17543 *) ac_comsub= ;;
17544 esac
17545
17546 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17547 sed -e "$ac_comsub
17548 s%@configure_input@%$configure_input%g
17549 s%@srcdir@%$srcdir%g
17550 s%@top_srcdir@%$top_srcdir%g
17551 s%@INSTALL@%$INSTALL%g
17552 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17553 fi; done
17554 rm -f conftest.s*
17555
17556 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17557 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17558 #
17559 # ac_d sets the value in "#define NAME VALUE" lines.
17560 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17561 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17562 ac_dC='\3'
17563 ac_dD='%g'
17564 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17565 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17566 ac_uB='\([ ]\)%\1#\2define\3'
17567 ac_uC=' '
17568 ac_uD='\4%g'
17569 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17570 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17571 ac_eB='$%\1#\2define\3'
17572 ac_eC=' '
17573 ac_eD='%g'
17574
17575 if test "${CONFIG_HEADERS+set}" != set; then
17576 EOF
17577 cat >> $CONFIG_STATUS <<EOF
17578 CONFIG_HEADERS="setup.h:setup.h.in"
17579 EOF
17580 cat >> $CONFIG_STATUS <<\EOF
17581 fi
17582 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17584 case "$ac_file" in
17585 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17586 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17587 *) ac_file_in="${ac_file}.in" ;;
17588 esac
17589
17590 echo creating $ac_file
17591
17592 rm -f conftest.frag conftest.in conftest.out
17593 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17594 cat $ac_file_inputs > conftest.in
17595
17596 EOF
17597
17598 # Transform confdefs.h into a sed script conftest.vals that substitutes
17599 # the proper values into config.h.in to produce config.h. And first:
17600 # Protect against being on the right side of a sed subst in config.status.
17601 # Protect against being in an unquoted here document in config.status.
17602 rm -f conftest.vals
17603 cat > conftest.hdr <<\EOF
17604 s/[\\&%]/\\&/g
17605 s%[\\$`]%\\&%g
17606 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17607 s%ac_d%ac_u%gp
17608 s%ac_u%ac_e%gp
17609 EOF
17610 sed -n -f conftest.hdr confdefs.h > conftest.vals
17611 rm -f conftest.hdr
17612
17613 # This sed command replaces #undef with comments. This is necessary, for
17614 # example, in the case of _POSIX_SOURCE, which is predefined and required
17615 # on some systems where configure will not decide to define it.
17616 cat >> conftest.vals <<\EOF
17617 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17618 EOF
17619
17620 # Break up conftest.vals because some shells have a limit on
17621 # the size of here documents, and old seds have small limits too.
17622
17623 rm -f conftest.tail
17624 while :
17625 do
17626 ac_lines=`grep -c . conftest.vals`
17627 # grep -c gives empty output for an empty file on some AIX systems.
17628 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17629 # Write a limited-size here document to conftest.frag.
17630 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17631 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17632 echo 'CEOF
17633 sed -f conftest.frag conftest.in > conftest.out
17634 rm -f conftest.in
17635 mv conftest.out conftest.in
17636 ' >> $CONFIG_STATUS
17637 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17638 rm -f conftest.vals
17639 mv conftest.tail conftest.vals
17640 done
17641 rm -f conftest.vals
17642
17643 cat >> $CONFIG_STATUS <<\EOF
17644 rm -f conftest.frag conftest.h
17645 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17646 cat conftest.in >> conftest.h
17647 rm -f conftest.in
17648 if cmp -s $ac_file conftest.h 2>/dev/null; then
17649 echo "$ac_file is unchanged"
17650 rm -f conftest.h
17651 else
17652 # Remove last slash and all that follows it. Not all systems have dirname.
17653 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17654 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17655 # The file is in a subdirectory.
17656 test ! -d "$ac_dir" && mkdir "$ac_dir"
17657 fi
17658 rm -f $ac_file
17659 mv conftest.h $ac_file
17660 fi
17661 fi; done
17662
17663 EOF
17664 cat >> $CONFIG_STATUS <<EOF
17665
17666 SETUPH_DIR="${SETUPH_DIR}"
17667 TOOLKIT_NAME="${TOOLKIT_NAME}"
17668 LN_S="${LN_S}"
17669
17670
17671 EOF
17672 cat >> $CONFIG_STATUS <<\EOF
17673
17674 if test ! -f wx${TOOLKIT_NAME}-config; then
17675 chmod +x wx-config
17676 mv wx-config wx${TOOLKIT_NAME}-config
17677 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17678 fi
17679
17680
17681 if test ! -d lib; then
17682 mkdir lib
17683 fi
17684 if test ! -d lib/wx; then
17685 mkdir lib/wx
17686 fi
17687 if test ! -d lib/wx/include; then
17688 mkdir lib/wx/include
17689 fi
17690 if test ! -d lib/wx/include/wx; then
17691 mkdir lib/wx/include/wx
17692 fi
17693 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17694 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
17695 fi
17696 if test -f setup.h; then
17697 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
17698 fi
17699
17700
17701 if test ! -d include; then
17702 mkdir include
17703 fi
17704 if test ! -d include/wx; then
17705 mkdir include/wx
17706 fi
17707 if test ! -d include/wx/${SETUPH_DIR}; then
17708 mkdir include/wx/${SETUPH_DIR}
17709 fi
17710 if test -f setup.h; then
17711 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
17712 fi
17713
17714
17715 exit 0
17716 EOF
17717 chmod +x $CONFIG_STATUS
17718 rm -fr confdefs* $ac_clean_files
17719 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17720
17721 if test "$no_recursion" != yes; then
17722
17723 # Remove --cache-file and --srcdir arguments so they do not pile up.
17724 ac_sub_configure_args=
17725 ac_prev=
17726 for ac_arg in $ac_configure_args; do
17727 if test -n "$ac_prev"; then
17728 ac_prev=
17729 continue
17730 fi
17731 case "$ac_arg" in
17732 -cache-file | --cache-file | --cache-fil | --cache-fi \
17733 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17734 ac_prev=cache_file ;;
17735 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17736 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
17737 ;;
17738 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17739 ac_prev=srcdir ;;
17740 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17741 ;;
17742 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17743 esac
17744 done
17745
17746 for ac_config_dir in demos samples utils contrib; do
17747
17748 # Do not complain, so a configure script can configure whichever
17749 # parts of a large source tree are present.
17750 if test ! -d $srcdir/$ac_config_dir; then
17751 continue
17752 fi
17753
17754 echo configuring in $ac_config_dir
17755
17756 case "$srcdir" in
17757 .) ;;
17758 *)
17759 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17760 else
17761 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17762 fi
17763 ;;
17764 esac
17765
17766 ac_popdir=`pwd`
17767 cd $ac_config_dir
17768
17769 # A "../" for each directory in /$ac_config_dir.
17770 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
17771
17772 case "$srcdir" in
17773 .) # No --srcdir option. We are building in place.
17774 ac_sub_srcdir=$srcdir ;;
17775 /*) # Absolute path.
17776 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
17777 *) # Relative path.
17778 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
17779 esac
17780
17781 # Check for guested configure; otherwise get Cygnus style configure.
17782 if test -f $ac_sub_srcdir/configure; then
17783 ac_sub_configure=$ac_sub_srcdir/configure
17784 elif test -f $ac_sub_srcdir/configure.in; then
17785 ac_sub_configure=$ac_configure
17786 else
17787 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
17788 ac_sub_configure=
17789 fi
17790
17791 # The recursion is here.
17792 if test -n "$ac_sub_configure"; then
17793
17794 # Make the cache file name correct relative to the subdirectory.
17795 case "$cache_file" in
17796 /*) ac_sub_cache_file=$cache_file ;;
17797 *) # Relative path.
17798 ac_sub_cache_file="$ac_dots$cache_file" ;;
17799 esac
17800 case "$ac_given_INSTALL" in
17801 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17802 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17803 esac
17804
17805 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
17806 # The eval makes quoting arguments work.
17807 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
17808 then :
17809 else
17810 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
17811 fi
17812 fi
17813
17814 cd $ac_popdir
17815 done
17816 fi
17817
17818