]> git.saurik.com Git - wxWidgets.git/blob - configure
first pass of wxUniv merge - nothing works, most parts don't even compile
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 # Configure paths for GTK+
43 # Owen Taylor 97-11-3
44
45
46 # Guess values for system-dependent variables and create Makefiles.
47 # Generated automatically using autoconf version 2.13
48 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49 #
50 # This configure script is free software; the Free Software Foundation
51 # gives unlimited permission to copy, distribute and modify it.
52
53 # Defaults:
54 ac_help=
55 ac_default_prefix=/usr/local
56 # Any additions from configure.in:
57 ac_help="$ac_help
58 --enable-gui use GUI classes"
59 ac_help="$ac_help
60 --enable-universal use wxWindows GUI controls instead of native ones"
61 ac_help="$ac_help
62 --with-gtk use GTK+"
63 ac_help="$ac_help
64 --with-motif use Motif/Lesstif"
65 ac_help="$ac_help
66 --with-mac use Mac OS X"
67 ac_help="$ac_help
68 --with-wine use WINE"
69 ac_help="$ac_help
70 --with-cygwin use Cygwin for MS-Windows"
71 ac_help="$ac_help
72 --with-mingw use GCC Minimal MS-Windows"
73 ac_help="$ac_help
74 --with-pm use OS/2 Presentation Manager"
75 ac_help="$ac_help
76 --with-mgl use MGL"
77 ac_help="$ac_help
78 --with-gtk-prefix=PFX Prefix where GTK is installed"
79 ac_help="$ac_help
80 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
81 ac_help="$ac_help
82 --with-libpng use libpng (PNG image format)"
83 ac_help="$ac_help
84 --with-libjpeg use libjpeg (JPEG file format)"
85 ac_help="$ac_help
86 --with-libtiff use libtiff (TIFF file format)"
87 ac_help="$ac_help
88 --with-freetype use freetype (font rasterizer)"
89 ac_help="$ac_help
90 --with-opengl use OpenGL (or Mesa)"
91 ac_help="$ac_help
92 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
93 ac_help="$ac_help
94 --with-zlib use zlib for LZW compression"
95 ac_help="$ac_help
96 --with-odbc use the IODBC and wxODBC classes"
97 ac_help="$ac_help
98 --enable-shared create shared library code"
99 ac_help="$ac_help
100 --enable-burnt_name create set name in shared library "
101 ac_help="$ac_help
102 --enable-optimise create optimised code"
103 ac_help="$ac_help
104 --enable-debug same as debug_flag and debug_info"
105 ac_help="$ac_help
106 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
107 ac_help="$ac_help
108 --enable-debug_info create code with debugging information"
109 ac_help="$ac_help
110 --enable-debug_gdb create code with extra GDB debugging information"
111 ac_help="$ac_help
112 --enable-debug_cntxt use wxDebugContext"
113 ac_help="$ac_help
114 --enable-mem_tracing create code with memory tracing"
115 ac_help="$ac_help
116 --enable-profile create code with profiling information"
117 ac_help="$ac_help
118 --enable-no_rtti create code without RTTI information"
119 ac_help="$ac_help
120 --enable-no_exceptions create code without exceptions information"
121 ac_help="$ac_help
122 --enable-permissive compile code disregarding strict ANSI"
123 ac_help="$ac_help
124 --enable-no_deps create code without dependency information"
125 ac_help="$ac_help
126 --enable-intl use internationalization system"
127 ac_help="$ac_help
128 --enable-config use wxConfig (and derived) classes"
129 ac_help="$ac_help
130 --enable-sockets use socket/network classes"
131 ac_help="$ac_help
132 --enable-ipc use interprocess communication (wxSocket etc.)"
133 ac_help="$ac_help
134 --enable-cmdline use wxCmdLineParser class"
135 ac_help="$ac_help
136 --enable-datetime use wxDateTime class"
137 ac_help="$ac_help
138 --enable-timedate use obsolete wxDate/wxTime classes"
139 ac_help="$ac_help
140 --enable-stopwatch use wxStopWatch class"
141 ac_help="$ac_help
142 --enable-dialupman use dialup network classes"
143 ac_help="$ac_help
144 --enable-apple_ieee use the Apple IEEE codec"
145 ac_help="$ac_help
146 --enable-timer use wxTimer class"
147 ac_help="$ac_help
148 --enable-wave use wxWave class"
149 ac_help="$ac_help
150 --enable-fraction use wxFraction class"
151 ac_help="$ac_help
152 --enable-dynlib use wxLibrary class for DLL loading"
153 ac_help="$ac_help
154 --enable-longlong use wxLongLong class"
155 ac_help="$ac_help
156 --enable-geometry use geometry class"
157 ac_help="$ac_help
158 --enable-log use logging system"
159 ac_help="$ac_help
160 --enable-streams use wxStream etc classes"
161 ac_help="$ac_help
162 --enable-file use wxFile classes"
163 ac_help="$ac_help
164 --enable-ffile use wxFFile classes"
165 ac_help="$ac_help
166 --enable-textfile use wxTextFile classes"
167 ac_help="$ac_help
168 --enable-fontmap use font encodings conversion classes"
169 ac_help="$ac_help
170 --enable-unicode compile wxString with Unicode support"
171 ac_help="$ac_help
172 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
173 ac_help="$ac_help
174 --enable-wxprintfv use wxWindows implementation of vprintf()"
175 ac_help="$ac_help
176 --enable-std_iostreams use standard C++ stream classes"
177 ac_help="$ac_help
178 --enable-filesystem use virtual file systems classes"
179 ac_help="$ac_help
180 --enable-fs_inet use virtual HTTP/FTP filesystems"
181 ac_help="$ac_help
182 --enable-fs_zip use virtual ZIP filesystems"
183 ac_help="$ac_help
184 --enable-zipstream use wxZipInputStream"
185 ac_help="$ac_help
186 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
187 ac_help="$ac_help
188 --enable-snglinst use wxSingleInstanceChecker class"
189 ac_help="$ac_help
190 --enable-mimetypes use wxMimeTypesManager"
191 ac_help="$ac_help
192 --enable-threads use threads"
193 ac_help="$ac_help
194 --enable-serial use class serialization"
195 ac_help="$ac_help
196 --enable-docview use document view architecture"
197 ac_help="$ac_help
198 --enable-help use help (using external browser at present)"
199 ac_help="$ac_help
200 --enable-constraints use layout-constraints system"
201 ac_help="$ac_help
202 --enable-printarch use printing architecture"
203 ac_help="$ac_help
204 --enable-mdi use multiple document interface architecture"
205 ac_help="$ac_help
206 --enable-loggui use standard GUI logger"
207 ac_help="$ac_help
208 --enable-logwin use wxLogWindow"
209 ac_help="$ac_help
210 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
211 ac_help="$ac_help
212 --enable-prologio use Prolog IO library"
213 ac_help="$ac_help
214 --enable-resources use wxWindows resources"
215 ac_help="$ac_help
216 --enable-xresources use X resources for save (default for gtk+)"
217 ac_help="$ac_help
218 --enable-clipboard use wxClipboard classes"
219 ac_help="$ac_help
220 --enable-dnd use Drag'n'Drop classes"
221 ac_help="$ac_help
222 --enable-metafile use win32 metafiles"
223 ac_help="$ac_help
224 --enable-wxtree make wxTree library"
225 ac_help="$ac_help
226 --enable-controls use all usual controls"
227 ac_help="$ac_help
228 --enable-accel use accelerators"
229 ac_help="$ac_help
230 --enable-button use wxButton class"
231 ac_help="$ac_help
232 --enable-bmpbutton use wxBitmapButton class"
233 ac_help="$ac_help
234 --enable-calendar use wxCalendarCtrl class"
235 ac_help="$ac_help
236 --enable-caret use wxCaret class"
237 ac_help="$ac_help
238 --enable-checkbox use wxCheckBox class"
239 ac_help="$ac_help
240 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
241 ac_help="$ac_help
242 --enable-choice use wxChoice class"
243 ac_help="$ac_help
244 --enable-combobox use wxComboBox classes"
245 ac_help="$ac_help
246 --enable-gauge use wxGauge class"
247 ac_help="$ac_help
248 --enable-grid use wxGrid class"
249 ac_help="$ac_help
250 --enable-newgrid use new wxGrid class"
251 ac_help="$ac_help
252 --enable-imaglist use wxImageList class"
253 ac_help="$ac_help
254 --enable-listbox use wxListBox class"
255 ac_help="$ac_help
256 --enable-listctrl use wxListCtrl class"
257 ac_help="$ac_help
258 --enable-notebook use wxNotebook class"
259 ac_help="$ac_help
260 --enable-radiobox use wxRadioBox class"
261 ac_help="$ac_help
262 --enable-radiobtn use wxRadioButton class"
263 ac_help="$ac_help
264 --enable-sash use wxSashWindow class"
265 ac_help="$ac_help
266 --enable-scrollbar use wxScrollBar class and scrollable windows"
267 ac_help="$ac_help
268 --enable-slider use wxSlider class"
269 ac_help="$ac_help
270 --enable-spinbtn use wxSpinButton class"
271 ac_help="$ac_help
272 --enable-spinctrl use wxSpinCtrl class"
273 ac_help="$ac_help
274 --enable-splitter use wxSplitterWindow class"
275 ac_help="$ac_help
276 --enable-statbmp use wxStaticBitmap class"
277 ac_help="$ac_help
278 --enable-statbox use wxStaticBox class"
279 ac_help="$ac_help
280 --enable-statline use wxStaticLine class"
281 ac_help="$ac_help
282 --enable-stattext use wxStaticText class"
283 ac_help="$ac_help
284 --enable-statusbar use wxStatusBar class"
285 ac_help="$ac_help
286 --enable-tabdialog use wxTabControl class"
287 ac_help="$ac_help
288 --enable-textctrl use wxTextCtrl class"
289 ac_help="$ac_help
290 --enable-togglebtn use wxToggleButton class"
291 ac_help="$ac_help
292 --enable-toolbar use wxToolBar class"
293 ac_help="$ac_help
294 --enable-tbarnative use native wxToolBar class"
295 ac_help="$ac_help
296 --enable-tbarsmpl use wxToolBarSimple class"
297 ac_help="$ac_help
298 --enable-treectrl use wxTreeCtrl class"
299 ac_help="$ac_help
300 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
301 ac_help="$ac_help
302 --enable-choicedlg use wxChoiceDialog"
303 ac_help="$ac_help
304 --enable-coldlg use wxColourDialog"
305 ac_help="$ac_help
306 --enable-filedlg use wxFileDialog"
307 ac_help="$ac_help
308 --enable-fontdlg use wxFontDialog"
309 ac_help="$ac_help
310 --enable-dirdlg use wxDirDialog"
311 ac_help="$ac_help
312 --enable-msgdlg use wxMessageDialog"
313 ac_help="$ac_help
314 --enable-numberdlg use wxNumberEntryDialog"
315 ac_help="$ac_help
316 --enable-textdlg use wxTextDialog"
317 ac_help="$ac_help
318 --enable-tipdlg use startup tips"
319 ac_help="$ac_help
320 --enable-progressdlg use wxProgressDialog"
321 ac_help="$ac_help
322 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
323 ac_help="$ac_help
324 --enable-miniframe use wxMiniFrame class"
325 ac_help="$ac_help
326 --enable-html use wxHTML sub-library"
327 ac_help="$ac_help
328 --enable-tooltips use wxToolTip class"
329 ac_help="$ac_help
330 --enable-splines use spline drawing code"
331 ac_help="$ac_help
332 --enable-validators use wxValidator and derived classes"
333 ac_help="$ac_help
334 --enable-busyinfo use wxBusyInfo"
335 ac_help="$ac_help
336 --enable-joystick compile in joystick support (Linux only)"
337 ac_help="$ac_help
338 --enable-metafiles use wxMetaFile (Windows only)"
339 ac_help="$ac_help
340 --enable-image use wxImage class"
341 ac_help="$ac_help
342 --enable-gif use gif images (GIF file format)"
343 ac_help="$ac_help
344 --enable-pcx use pcx images (PCX file format)"
345 ac_help="$ac_help
346 --enable-pnm use pnm images (PNM file format)"
347 ac_help="$ac_help
348 --enable-xpm use xpm images (XPM file format)"
349 ac_help="$ac_help
350 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
351 ac_help="$ac_help
352 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
353 ac_help="$ac_help
354 --disable-gtktest Do not try to compile and run a test GTK program"
355 ac_help="$ac_help
356 --with-x use the X Window System"
357
358 # Initialize some variables set by options.
359 # The variables have the same names as the options, with
360 # dashes changed to underlines.
361 build=NONE
362 cache_file=./config.cache
363 exec_prefix=NONE
364 host=NONE
365 no_create=
366 nonopt=NONE
367 no_recursion=
368 prefix=NONE
369 program_prefix=NONE
370 program_suffix=NONE
371 program_transform_name=s,x,x,
372 silent=
373 site=
374 srcdir=
375 target=NONE
376 verbose=
377 x_includes=NONE
378 x_libraries=NONE
379 bindir='${exec_prefix}/bin'
380 sbindir='${exec_prefix}/sbin'
381 libexecdir='${exec_prefix}/libexec'
382 datadir='${prefix}/share'
383 sysconfdir='${prefix}/etc'
384 sharedstatedir='${prefix}/com'
385 localstatedir='${prefix}/var'
386 libdir='${exec_prefix}/lib'
387 includedir='${prefix}/include'
388 oldincludedir='/usr/include'
389 infodir='${prefix}/info'
390 mandir='${prefix}/man'
391
392 # Initialize some other variables.
393 subdirs=
394 MFLAGS= MAKEFLAGS=
395 SHELL=${CONFIG_SHELL-/bin/sh}
396 # Maximum number of lines to put in a shell here document.
397 ac_max_here_lines=12
398
399 ac_prev=
400 for ac_option
401 do
402
403 # If the previous option needs an argument, assign it.
404 if test -n "$ac_prev"; then
405 eval "$ac_prev=\$ac_option"
406 ac_prev=
407 continue
408 fi
409
410 case "$ac_option" in
411 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
412 *) ac_optarg= ;;
413 esac
414
415 # Accept the important Cygnus configure options, so we can diagnose typos.
416
417 case "$ac_option" in
418
419 -bindir | --bindir | --bindi | --bind | --bin | --bi)
420 ac_prev=bindir ;;
421 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
422 bindir="$ac_optarg" ;;
423
424 -build | --build | --buil | --bui | --bu)
425 ac_prev=build ;;
426 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
427 build="$ac_optarg" ;;
428
429 -cache-file | --cache-file | --cache-fil | --cache-fi \
430 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
431 ac_prev=cache_file ;;
432 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
433 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
434 cache_file="$ac_optarg" ;;
435
436 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
437 ac_prev=datadir ;;
438 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
439 | --da=*)
440 datadir="$ac_optarg" ;;
441
442 -disable-* | --disable-*)
443 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
446 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
447 fi
448 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
449 eval "enable_${ac_feature}=no" ;;
450
451 -enable-* | --enable-*)
452 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
453 # Reject names that are not valid shell variable names.
454 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
455 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
456 fi
457 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
458 case "$ac_option" in
459 *=*) ;;
460 *) ac_optarg=yes ;;
461 esac
462 eval "enable_${ac_feature}='$ac_optarg'" ;;
463
464 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
465 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
466 | --exec | --exe | --ex)
467 ac_prev=exec_prefix ;;
468 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
469 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
470 | --exec=* | --exe=* | --ex=*)
471 exec_prefix="$ac_optarg" ;;
472
473 -gas | --gas | --ga | --g)
474 # Obsolete; use --with-gas.
475 with_gas=yes ;;
476
477 -help | --help | --hel | --he)
478 # Omit some internal or obsolete options to make the list less imposing.
479 # This message is too long to be a string in the A/UX 3.1 sh.
480 cat << EOF
481 Usage: configure [options] [host]
482 Options: [defaults in brackets after descriptions]
483 Configuration:
484 --cache-file=FILE cache test results in FILE
485 --help print this message
486 --no-create do not create output files
487 --quiet, --silent do not print \`checking...' messages
488 --version print the version of autoconf that created configure
489 Directory and file names:
490 --prefix=PREFIX install architecture-independent files in PREFIX
491 [$ac_default_prefix]
492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
493 [same as prefix]
494 --bindir=DIR user executables in DIR [EPREFIX/bin]
495 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
496 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
497 --datadir=DIR read-only architecture-independent data in DIR
498 [PREFIX/share]
499 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
500 --sharedstatedir=DIR modifiable architecture-independent data in DIR
501 [PREFIX/com]
502 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
503 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
504 --includedir=DIR C header files in DIR [PREFIX/include]
505 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
506 --infodir=DIR info documentation in DIR [PREFIX/info]
507 --mandir=DIR man documentation in DIR [PREFIX/man]
508 --srcdir=DIR find the sources in DIR [configure dir or ..]
509 --program-prefix=PREFIX prepend PREFIX to installed program names
510 --program-suffix=SUFFIX append SUFFIX to installed program names
511 --program-transform-name=PROGRAM
512 run sed PROGRAM on installed program names
513 EOF
514 cat << EOF
515 Host type:
516 --build=BUILD configure for building on BUILD [BUILD=HOST]
517 --host=HOST configure for HOST [guessed]
518 --target=TARGET configure for TARGET [TARGET=HOST]
519 Features and packages:
520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
524 --x-includes=DIR X include files are in DIR
525 --x-libraries=DIR X library files are in DIR
526 EOF
527 if test -n "$ac_help"; then
528 echo "--enable and --with options recognized:$ac_help"
529 fi
530 exit 0 ;;
531
532 -host | --host | --hos | --ho)
533 ac_prev=host ;;
534 -host=* | --host=* | --hos=* | --ho=*)
535 host="$ac_optarg" ;;
536
537 -includedir | --includedir | --includedi | --included | --include \
538 | --includ | --inclu | --incl | --inc)
539 ac_prev=includedir ;;
540 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
541 | --includ=* | --inclu=* | --incl=* | --inc=*)
542 includedir="$ac_optarg" ;;
543
544 -infodir | --infodir | --infodi | --infod | --info | --inf)
545 ac_prev=infodir ;;
546 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
547 infodir="$ac_optarg" ;;
548
549 -libdir | --libdir | --libdi | --libd)
550 ac_prev=libdir ;;
551 -libdir=* | --libdir=* | --libdi=* | --libd=*)
552 libdir="$ac_optarg" ;;
553
554 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
555 | --libexe | --libex | --libe)
556 ac_prev=libexecdir ;;
557 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
558 | --libexe=* | --libex=* | --libe=*)
559 libexecdir="$ac_optarg" ;;
560
561 -localstatedir | --localstatedir | --localstatedi | --localstated \
562 | --localstate | --localstat | --localsta | --localst \
563 | --locals | --local | --loca | --loc | --lo)
564 ac_prev=localstatedir ;;
565 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
566 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
567 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
568 localstatedir="$ac_optarg" ;;
569
570 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
571 ac_prev=mandir ;;
572 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
573 mandir="$ac_optarg" ;;
574
575 -nfp | --nfp | --nf)
576 # Obsolete; use --without-fp.
577 with_fp=no ;;
578
579 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
580 | --no-cr | --no-c)
581 no_create=yes ;;
582
583 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
584 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
585 no_recursion=yes ;;
586
587 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
588 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
589 | --oldin | --oldi | --old | --ol | --o)
590 ac_prev=oldincludedir ;;
591 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
592 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
593 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
594 oldincludedir="$ac_optarg" ;;
595
596 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
597 ac_prev=prefix ;;
598 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
599 prefix="$ac_optarg" ;;
600
601 -program-prefix | --program-prefix | --program-prefi | --program-pref \
602 | --program-pre | --program-pr | --program-p)
603 ac_prev=program_prefix ;;
604 -program-prefix=* | --program-prefix=* | --program-prefi=* \
605 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
606 program_prefix="$ac_optarg" ;;
607
608 -program-suffix | --program-suffix | --program-suffi | --program-suff \
609 | --program-suf | --program-su | --program-s)
610 ac_prev=program_suffix ;;
611 -program-suffix=* | --program-suffix=* | --program-suffi=* \
612 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
613 program_suffix="$ac_optarg" ;;
614
615 -program-transform-name | --program-transform-name \
616 | --program-transform-nam | --program-transform-na \
617 | --program-transform-n | --program-transform- \
618 | --program-transform | --program-transfor \
619 | --program-transfo | --program-transf \
620 | --program-trans | --program-tran \
621 | --progr-tra | --program-tr | --program-t)
622 ac_prev=program_transform_name ;;
623 -program-transform-name=* | --program-transform-name=* \
624 | --program-transform-nam=* | --program-transform-na=* \
625 | --program-transform-n=* | --program-transform-=* \
626 | --program-transform=* | --program-transfor=* \
627 | --program-transfo=* | --program-transf=* \
628 | --program-trans=* | --program-tran=* \
629 | --progr-tra=* | --program-tr=* | --program-t=*)
630 program_transform_name="$ac_optarg" ;;
631
632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
633 | -silent | --silent | --silen | --sile | --sil)
634 silent=yes ;;
635
636 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
637 ac_prev=sbindir ;;
638 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
639 | --sbi=* | --sb=*)
640 sbindir="$ac_optarg" ;;
641
642 -sharedstatedir | --sharedstatedir | --sharedstatedi \
643 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
644 | --sharedst | --shareds | --shared | --share | --shar \
645 | --sha | --sh)
646 ac_prev=sharedstatedir ;;
647 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
648 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
649 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
650 | --sha=* | --sh=*)
651 sharedstatedir="$ac_optarg" ;;
652
653 -site | --site | --sit)
654 ac_prev=site ;;
655 -site=* | --site=* | --sit=*)
656 site="$ac_optarg" ;;
657
658 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
659 ac_prev=srcdir ;;
660 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
661 srcdir="$ac_optarg" ;;
662
663 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
664 | --syscon | --sysco | --sysc | --sys | --sy)
665 ac_prev=sysconfdir ;;
666 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
667 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
668 sysconfdir="$ac_optarg" ;;
669
670 -target | --target | --targe | --targ | --tar | --ta | --t)
671 ac_prev=target ;;
672 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
673 target="$ac_optarg" ;;
674
675 -v | -verbose | --verbose | --verbos | --verbo | --verb)
676 verbose=yes ;;
677
678 -version | --version | --versio | --versi | --vers)
679 echo "configure generated by autoconf version 2.13"
680 exit 0 ;;
681
682 -with-* | --with-*)
683 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
684 # Reject names that are not valid shell variable names.
685 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
686 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
687 fi
688 ac_package=`echo $ac_package| sed 's/-/_/g'`
689 case "$ac_option" in
690 *=*) ;;
691 *) ac_optarg=yes ;;
692 esac
693 eval "with_${ac_package}='$ac_optarg'" ;;
694
695 -without-* | --without-*)
696 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
697 # Reject names that are not valid shell variable names.
698 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
699 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
700 fi
701 ac_package=`echo $ac_package| sed 's/-/_/g'`
702 eval "with_${ac_package}=no" ;;
703
704 --x)
705 # Obsolete; use --with-x.
706 with_x=yes ;;
707
708 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
709 | --x-incl | --x-inc | --x-in | --x-i)
710 ac_prev=x_includes ;;
711 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
712 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
713 x_includes="$ac_optarg" ;;
714
715 -x-libraries | --x-libraries | --x-librarie | --x-librari \
716 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
717 ac_prev=x_libraries ;;
718 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
719 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
720 x_libraries="$ac_optarg" ;;
721
722 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
723 ;;
724
725 *)
726 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
727 echo "configure: warning: $ac_option: invalid host type" 1>&2
728 fi
729 if test "x$nonopt" != xNONE; then
730 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
731 fi
732 nonopt="$ac_option"
733 ;;
734
735 esac
736 done
737
738 if test -n "$ac_prev"; then
739 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
740 fi
741
742 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
743
744 # File descriptor usage:
745 # 0 standard input
746 # 1 file creation
747 # 2 errors and warnings
748 # 3 some systems may open it to /dev/tty
749 # 4 used on the Kubota Titan
750 # 6 checking for... messages and results
751 # 5 compiler messages saved in config.log
752 if test "$silent" = yes; then
753 exec 6>/dev/null
754 else
755 exec 6>&1
756 fi
757 exec 5>./config.log
758
759 echo "\
760 This file contains any messages produced by compilers while
761 running configure, to aid debugging if configure makes a mistake.
762 " 1>&5
763
764 # Strip out --no-create and --no-recursion so they do not pile up.
765 # Also quote any args containing shell metacharacters.
766 ac_configure_args=
767 for ac_arg
768 do
769 case "$ac_arg" in
770 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
771 | --no-cr | --no-c) ;;
772 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
773 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
774 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
775 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
776 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
777 esac
778 done
779
780 # NLS nuisances.
781 # Only set these to C if already set. These must not be set unconditionally
782 # because not all systems understand e.g. LANG=C (notably SCO).
783 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
784 # Non-C LC_CTYPE values break the ctype check.
785 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
786 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
787 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
788 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
789
790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
791 rm -rf conftest* confdefs.h
792 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
793 echo > confdefs.h
794
795 # A filename unique to this package, relative to the directory that
796 # configure is in, which we can look for to find out if srcdir is correct.
797 ac_unique_file=wx-config.in
798
799 # Find the source files, if location was not specified.
800 if test -z "$srcdir"; then
801 ac_srcdir_defaulted=yes
802 # Try the directory containing this script, then its parent.
803 ac_prog=$0
804 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
805 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
806 srcdir=$ac_confdir
807 if test ! -r $srcdir/$ac_unique_file; then
808 srcdir=..
809 fi
810 else
811 ac_srcdir_defaulted=no
812 fi
813 if test ! -r $srcdir/$ac_unique_file; then
814 if test "$ac_srcdir_defaulted" = yes; then
815 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
816 else
817 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
818 fi
819 fi
820 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
821
822 # Prefer explicitly selected file to automatically selected ones.
823 if test -z "$CONFIG_SITE"; then
824 if test "x$prefix" != xNONE; then
825 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
826 else
827 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
828 fi
829 fi
830 for ac_site_file in $CONFIG_SITE; do
831 if test -r "$ac_site_file"; then
832 echo "loading site script $ac_site_file"
833 . "$ac_site_file"
834 fi
835 done
836
837 if test -r "$cache_file"; then
838 echo "loading cache $cache_file"
839 . $cache_file
840 else
841 echo "creating cache $cache_file"
842 > $cache_file
843 fi
844
845 ac_ext=c
846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
847 ac_cpp='$CPP $CPPFLAGS'
848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
850 cross_compiling=$ac_cv_prog_cc_cross
851
852 ac_exeext=
853 ac_objext=o
854 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
855 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
856 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
857 ac_n= ac_c='
858 ' ac_t=' '
859 else
860 ac_n=-n ac_c= ac_t=
861 fi
862 else
863 ac_n= ac_c='\c' ac_t=
864 fi
865
866
867
868 ac_aux_dir=
869 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
870 if test -f $ac_dir/install-sh; then
871 ac_aux_dir=$ac_dir
872 ac_install_sh="$ac_aux_dir/install-sh -c"
873 break
874 elif test -f $ac_dir/install.sh; then
875 ac_aux_dir=$ac_dir
876 ac_install_sh="$ac_aux_dir/install.sh -c"
877 break
878 fi
879 done
880 if test -z "$ac_aux_dir"; then
881 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
882 fi
883 ac_config_guess=$ac_aux_dir/config.guess
884 ac_config_sub=$ac_aux_dir/config.sub
885 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
886
887
888 # Do some error checking and defaulting for the host and target type.
889 # The inputs are:
890 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
891 #
892 # The rules are:
893 # 1. You are not allowed to specify --host, --target, and nonopt at the
894 # same time.
895 # 2. Host defaults to nonopt.
896 # 3. If nonopt is not specified, then host defaults to the current host,
897 # as determined by config.guess.
898 # 4. Target and build default to nonopt.
899 # 5. If nonopt is not specified, then target and build default to host.
900
901 # The aliases save the names the user supplied, while $host etc.
902 # will get canonicalized.
903 case $host---$target---$nonopt in
904 NONE---*---* | *---NONE---* | *---*---NONE) ;;
905 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
906 esac
907
908
909 # Make sure we can run config.sub.
910 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
911 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
912 fi
913
914 echo $ac_n "checking host system type""... $ac_c" 1>&6
915 echo "configure:916: checking host system type" >&5
916
917 host_alias=$host
918 case "$host_alias" in
919 NONE)
920 case $nonopt in
921 NONE)
922 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
923 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
924 fi ;;
925 *) host_alias=$nonopt ;;
926 esac ;;
927 esac
928
929 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
930 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
931 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
932 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
933 echo "$ac_t""$host" 1>&6
934
935 echo $ac_n "checking target system type""... $ac_c" 1>&6
936 echo "configure:937: checking target system type" >&5
937
938 target_alias=$target
939 case "$target_alias" in
940 NONE)
941 case $nonopt in
942 NONE) target_alias=$host_alias ;;
943 *) target_alias=$nonopt ;;
944 esac ;;
945 esac
946
947 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
948 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
949 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
950 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
951 echo "$ac_t""$target" 1>&6
952
953 echo $ac_n "checking build system type""... $ac_c" 1>&6
954 echo "configure:955: checking build system type" >&5
955
956 build_alias=$build
957 case "$build_alias" in
958 NONE)
959 case $nonopt in
960 NONE) build_alias=$host_alias ;;
961 *) build_alias=$nonopt ;;
962 esac ;;
963 esac
964
965 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
966 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
967 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
968 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
969 echo "$ac_t""$build" 1>&6
970
971 test "$host_alias" != "$target_alias" &&
972 test "$program_prefix$program_suffix$program_transform_name" = \
973 NONENONEs,x,x, &&
974 program_prefix=${target_alias}-
975
976
977
978 WX_MAJOR_VERSION_NUMBER=2
979 WX_MINOR_VERSION_NUMBER=3
980 WX_RELEASE_NUMBER=1
981
982 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
983 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
984
985 WX_CURRENT=0
986 WX_REVISION=0
987 WX_AGE=0
988
989
990
991 USE_UNIX=1
992 USE_WIN32=0
993 USE_BEOS=0
994 USE_MAC=0
995
996 USE_LINUX=
997 USE_SGI=
998 USE_HPUX=
999 USE_SYSV=
1000 USE_SVR4=
1001 USE_AIX=
1002 USE_SUN=
1003 USE_SOLARIS=
1004 USE_SUNOS=
1005 USE_ALPHA=
1006 USE_OSF=
1007 USE_BSD=
1008 USE_FREEBSD=
1009 USE_OPENBSD=
1010 USE_NETBSD=
1011 USE_VMS=
1012 USE_ULTRIX=
1013 USE_CYGWIN=
1014 USE_MINGW=
1015 USE_DATA_GENERAL=
1016
1017 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1018
1019 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1020
1021 DEFAULT_wxUSE_GTK=0
1022 DEFAULT_wxUSE_MAC=0
1023 DEFAULT_wxUSE_MGL=0
1024 DEFAULT_wxUSE_MOTIF=0
1025 DEFAULT_wxUSE_MSW=0
1026 DEFAULT_wxUSE_PM=0
1027 DEFAULT_wxUSE_WINE=0
1028
1029 DEFAULT_DEFAULT_wxUSE_GTK=0
1030 DEFAULT_DEFAULT_wxUSE_MAC=0
1031 DEFAULT_DEFAULT_wxUSE_MGL=0
1032 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1033 DEFAULT_DEFAULT_wxUSE_MSW=0
1034 DEFAULT_DEFAULT_wxUSE_PM=0
1035 DEFAULT_DEFAULT_wxUSE_WINE=0
1036
1037 PROGRAM_EXT=
1038
1039 case "${host}" in
1040 *-hp-hpux* )
1041 USE_HPUX=1
1042 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1043 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1044 cat >> confdefs.h <<\EOF
1045 #define __HPUX__ 1
1046 EOF
1047
1048 ;;
1049 *-*-linux* )
1050 USE_LINUX=1
1051 cat >> confdefs.h <<\EOF
1052 #define __LINUX__ 1
1053 EOF
1054
1055 TMP=`uname -m`
1056 if test "x$TMP" = "xalpha"; then
1057 USE_ALPHA=1
1058 cat >> confdefs.h <<\EOF
1059 #define __ALPHA__ 1
1060 EOF
1061
1062 fi
1063 DEFAULT_DEFAULT_wxUSE_GTK=1
1064 ;;
1065 *-*-irix5* | *-*-irix6* )
1066 USE_SGI=1
1067 USE_SVR4=1
1068 cat >> confdefs.h <<\EOF
1069 #define __SGI__ 1
1070 EOF
1071
1072 cat >> confdefs.h <<\EOF
1073 #define __SVR4__ 1
1074 EOF
1075
1076 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1077 ;;
1078 *-*-solaris2* )
1079 USE_SUN=1
1080 USE_SOLARIS=1
1081 USE_SVR4=1
1082 cat >> confdefs.h <<\EOF
1083 #define __SUN__ 1
1084 EOF
1085
1086 cat >> confdefs.h <<\EOF
1087 #define __SOLARIS__ 1
1088 EOF
1089
1090 cat >> confdefs.h <<\EOF
1091 #define __SVR4__ 1
1092 EOF
1093
1094 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1095 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1096 ;;
1097 *-*-sunos4* )
1098 USE_SUN=1
1099 USE_SUNOS=1
1100 USE_BSD=1
1101 cat >> confdefs.h <<\EOF
1102 #define __SUN__ 1
1103 EOF
1104
1105 cat >> confdefs.h <<\EOF
1106 #define __SUNOS__ 1
1107 EOF
1108
1109 cat >> confdefs.h <<\EOF
1110 #define __BSD__ 1
1111 EOF
1112
1113 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1114 ;;
1115 *-*-freebsd*)
1116 USE_BSD=1
1117 USE_FREEBSD=1
1118 cat >> confdefs.h <<\EOF
1119 #define __FREEBSD__ 1
1120 EOF
1121
1122 cat >> confdefs.h <<\EOF
1123 #define __BSD__ 1
1124 EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_GTK=1
1127 ;;
1128 *-*-openbsd*)
1129 USE_BSD=1
1130 USE_OPENBSD=1
1131 cat >> confdefs.h <<\EOF
1132 #define __FREEBSD__ 1
1133 EOF
1134
1135 cat >> confdefs.h <<\EOF
1136 #define __OPENBSD__ 1
1137 EOF
1138
1139 DEFAULT_DEFAULT_wxUSE_GTK=1
1140 ;;
1141 *-*-netbsd*)
1142 USE_BSD=1
1143 USE_NETBSD=1
1144 cat >> confdefs.h <<\EOF
1145 #define __FREEBSD__ 1
1146 EOF
1147
1148 cat >> confdefs.h <<\EOF
1149 #define __NETBSD__ 1
1150 EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-osf* )
1155 USE_ALPHA=1
1156 USE_OSF=1
1157 cat >> confdefs.h <<\EOF
1158 #define __ALPHA__ 1
1159 EOF
1160
1161 cat >> confdefs.h <<\EOF
1162 #define __OSF__ 1
1163 EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1166 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1167 ;;
1168 *-*-dgux5* )
1169 USE_ALPHA=1
1170 USE_SVR4=1
1171 cat >> confdefs.h <<\EOF
1172 #define __ALPHA__ 1
1173 EOF
1174
1175 cat >> confdefs.h <<\EOF
1176 #define __SVR4__ 1
1177 EOF
1178
1179 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1180 ;;
1181 *-*-sysv5* )
1182 USE_SYSV=1
1183 USE_SVR4=1
1184 cat >> confdefs.h <<\EOF
1185 #define __SYSV__ 1
1186 EOF
1187
1188 cat >> confdefs.h <<\EOF
1189 #define __SVR4__ 1
1190 EOF
1191
1192 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1193 ;;
1194 *-*-aix* )
1195 USE_AIX=1
1196 USE_SYSV=1
1197 USE_SVR4=1
1198 cat >> confdefs.h <<\EOF
1199 #define __AIX__ 1
1200 EOF
1201
1202 cat >> confdefs.h <<\EOF
1203 #define __SYSV__ 1
1204 EOF
1205
1206 cat >> confdefs.h <<\EOF
1207 #define __SVR4__ 1
1208 EOF
1209
1210 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1211 ;;
1212
1213 *-*-cygwin* | *-*-mingw32* )
1214 USE_UNIX=0
1215 USE_WIN32=1
1216 cat >> confdefs.h <<\EOF
1217 #define __WIN32__ 1
1218 EOF
1219
1220 cat >> confdefs.h <<\EOF
1221 #define __WIN95__ 1
1222 EOF
1223
1224 cat >> confdefs.h <<\EOF
1225 #define __WINDOWS__ 1
1226 EOF
1227
1228 cat >> confdefs.h <<\EOF
1229 #define __GNUWIN32__ 1
1230 EOF
1231
1232 cat >> confdefs.h <<\EOF
1233 #define STRICT 1
1234 EOF
1235
1236 cat >> confdefs.h <<\EOF
1237 #define WINVER 0x0400
1238 EOF
1239
1240 PROGRAM_EXT=".exe"
1241 DEFAULT_DEFAULT_wxUSE_MSW=1
1242 ;;
1243
1244 *-pc-os2_emx )
1245 cat >> confdefs.h <<\EOF
1246 #define __EMX__ 1
1247 EOF
1248
1249 PROGRAM_EXT=".exe"
1250 DEFAULT_DEFAULT_wxUSE_PM=1
1251 ;;
1252
1253 *-*-darwin* )
1254 USE_BSD=1
1255 USE_MAC=1
1256 cat >> confdefs.h <<\EOF
1257 #define __MAC__ 1
1258 EOF
1259
1260 cat >> confdefs.h <<\EOF
1261 #define __BSD__ 1
1262 EOF
1263
1264 cat >> confdefs.h <<\EOF
1265 #define __UNIX__ 1
1266 EOF
1267
1268 DEFAULT_DEFAULT_wxUSE_MAC=1
1269 ;;
1270
1271 *-*-beos* )
1272 USE_BEOS=1
1273 cat >> confdefs.h <<\EOF
1274 #define __BEOS__ 1
1275 EOF
1276
1277 ;;
1278
1279 *)
1280 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1281 esac
1282
1283 if test "$USE_UNIX" = 1 ; then
1284 wxUSE_UNIX=yes
1285 cat >> confdefs.h <<\EOF
1286 #define __UNIX__ 1
1287 EOF
1288
1289
1290 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1291 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1292 fi
1293
1294 if test "$USE_BEOS" = 1; then
1295 SRC_SUBDIRS="$SRC_SUBDIRS be"
1296 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1297 fi
1298
1299 if test "$USE_LINUX" = 1; then
1300 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1301 echo "configure:1302: checking for gettext in -lc" >&5
1302 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306 ac_save_LIBS="$LIBS"
1307 LIBS="-lc $LIBS"
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 /* Override any gcc2 internal prototype to avoid an error. */
1312 /* We use char because int might match the return type of a gcc2
1313 builtin and then its argument prototype would still apply. */
1314 char gettext();
1315
1316 int main() {
1317 gettext()
1318 ; return 0; }
1319 EOF
1320 if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1321 rm -rf conftest*
1322 eval "ac_cv_lib_$ac_lib_var=yes"
1323 else
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 eval "ac_cv_lib_$ac_lib_var=no"
1328 fi
1329 rm -f conftest*
1330 LIBS="$ac_save_LIBS"
1331
1332 fi
1333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1335 cat >> confdefs.h <<\EOF
1336 #define wxHAVE_GLIBC2 1
1337 EOF
1338
1339 else
1340 echo "$ac_t""no" 1>&6
1341 fi
1342
1343 fi
1344
1345
1346
1347
1348 wx_arg_cache_file="configarg.cache"
1349 echo "loading argument cache $wx_arg_cache_file"
1350 rm -f ${wx_arg_cache_file}.tmp
1351 touch ${wx_arg_cache_file}.tmp
1352 touch ${wx_arg_cache_file}
1353
1354
1355 DEBUG_CONFIGURE=0
1356 if test $DEBUG_CONFIGURE = 1; then
1357 DEFAULT_wxUSE_UNIVERSAL=no
1358
1359 DEFAULT_wxUSE_THREADS=yes
1360
1361 DEFAULT_wxUSE_SHARED=yes
1362 DEFAULT_wxUSE_BURNT_NAME=no
1363 DEFAULT_wxUSE_OPTIMISE=no
1364 DEFAULT_wxUSE_PROFILE=no
1365 DEFAULT_wxUSE_NO_DEPS=no
1366 DEFAULT_wxUSE_NO_RTTI=no
1367 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1368 DEFAULT_wxUSE_PERMISSIVE=no
1369 DEFAULT_wxUSE_DEBUG_FLAG=yes
1370 DEFAULT_wxUSE_DEBUG_INFO=yes
1371 DEFAULT_wxUSE_DEBUG_GDB=yes
1372 DEFAULT_wxUSE_MEM_TRACING=no
1373 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1374 DEFAULT_wxUSE_DMALLOC=no
1375 DEFAULT_wxUSE_APPLE_IEEE=no
1376
1377 DEFAULT_wxUSE_LOG=yes
1378 DEFAULT_wxUSE_LOGWINDOW=no
1379 DEFAULT_wxUSE_LOGGUI=no
1380
1381 DEFAULT_wxUSE_GUI=yes
1382 DEFAULT_wxUSE_CONTROLS=no
1383
1384 DEFAULT_wxUSE_ZLIB=no
1385 DEFAULT_wxUSE_LIBPNG=no
1386 DEFAULT_wxUSE_LIBJPEG=no
1387 DEFAULT_wxUSE_LIBTIFF=no
1388 DEFAULT_wxUSE_ODBC=no
1389 DEFAULT_wxUSE_FREETYPE=no
1390 DEFAULT_wxUSE_OPENGL=no
1391
1392 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1393 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1394 DEFAULT_wxUSE_STD_IOSTREAM=no
1395 DEFAULT_wxUSE_CMDLINE_PARSER=no
1396 DEFAULT_wxUSE_DATETIME=no
1397 DEFAULT_wxUSE_TIMEDATE=no
1398 DEFAULT_wxUSE_TIMER=no
1399 DEFAULT_wxUSE_STOPWATCH=no
1400 DEFAULT_wxUSE_FILE=no
1401 DEFAULT_wxUSE_FFILE=no
1402 DEFAULT_wxUSE_TEXTFILE=no
1403 DEFAULT_wxUSE_WAVE=no
1404 DEFAULT_wxUSE_INTL=no
1405 DEFAULT_wxUSE_CONFIG=no
1406 DEFAULT_wxUSE_FONTMAP=no
1407 DEFAULT_wxUSE_STREAMS=no
1408 DEFAULT_wxUSE_SOCKETS=no
1409 DEFAULT_wxUSE_DIALUP_MANAGER=no
1410 DEFAULT_wxUSE_SERIAL=no
1411 DEFAULT_wxUSE_JOYSTICK=no
1412 DEFAULT_wxUSE_DYNLIB_CLASS=no
1413 DEFAULT_wxUSE_LONGLONG=no
1414 DEFAULT_wxUSE_GEOMETRY=no
1415
1416 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1417 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1418 DEFAULT_wxUSE_POSTSCRIPT=no
1419
1420 DEFAULT_wxUSE_X_RESOURCES=no
1421 DEFAULT_wxUSE_CLIPBOARD=no
1422 DEFAULT_wxUSE_TOOLTIPS=no
1423 DEFAULT_wxUSE_DRAG_AND_DROP=no
1424 DEFAULT_wxUSE_SPLINES=no
1425
1426 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1427 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1428 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1429
1430 DEFAULT_wxUSE_PROLOGIO=no
1431 DEFAULT_wxUSE_RESOURCES=no
1432 DEFAULT_wxUSE_CONSTRAINTS=no
1433 DEFAULT_wxUSE_IPC=no
1434 DEFAULT_wxUSE_HELP=no
1435 DEFAULT_wxUSE_WXTREE=no
1436 DEFAULT_wxUSE_METAFILE=no
1437 DEFAULT_wxUSE_MIMETYPE=no
1438
1439 DEFAULT_wxUSE_COMMONDLGS=no
1440 DEFAULT_wxUSE_CHOICEDLG=no
1441 DEFAULT_wxUSE_COLOURDLG=no
1442 DEFAULT_wxUSE_DIRDLG=no
1443 DEFAULT_wxUSE_FILEDLG=no
1444 DEFAULT_wxUSE_FONTDLG=no
1445 DEFAULT_wxUSE_MSGDLG=no
1446 DEFAULT_wxUSE_NUMBERDLG=no
1447 DEFAULT_wxUSE_TEXTDLG=no
1448 DEFAULT_wxUSE_STARTUP_TIPS=no
1449 DEFAULT_wxUSE_PROGRESSDLG=no
1450 DEFAULT_wxUSE_MENUS=no
1451 DEFAULT_wxUSE_MINIFRAME=no
1452 DEFAULT_wxUSE_HTML=no
1453 DEFAULT_wxUSE_FILESYSTEM=no
1454 DEFAULT_wxUSE_FS_INET=no
1455 DEFAULT_wxUSE_FS_ZIP=no
1456 DEFAULT_wxUSE_BUSYINFO=no
1457 DEFAULT_wxUSE_ZIPSTREAM=no
1458 DEFAULT_wxUSE_VALIDATORS=no
1459
1460 DEFAULT_wxUSE_ACCEL=no
1461 DEFAULT_wxUSE_BUTTON=no
1462 DEFAULT_wxUSE_BMPBUTTON=no
1463 DEFAULT_wxUSE_CALCTRL=no
1464 DEFAULT_wxUSE_CARET=no
1465 DEFAULT_wxUSE_CHECKBOX=no
1466 DEFAULT_wxUSE_CHECKLST=no
1467 DEFAULT_wxUSE_CHOICE=no
1468 DEFAULT_wxUSE_COMBOBOX=no
1469 DEFAULT_wxUSE_GAUGE=no
1470 DEFAULT_wxUSE_GRID=no
1471 DEFAULT_wxUSE_NEW_GRID=no
1472 DEFAULT_wxUSE_IMAGLIST=no
1473 DEFAULT_wxUSE_LISTBOX=no
1474 DEFAULT_wxUSE_LISTCTRL=no
1475 DEFAULT_wxUSE_NOTEBOOK=no
1476 DEFAULT_wxUSE_RADIOBOX=no
1477 DEFAULT_wxUSE_RADIOBTN=no
1478 DEFAULT_wxUSE_SASH=no
1479 DEFAULT_wxUSE_SCROLLBAR=no
1480 DEFAULT_wxUSE_SLIDER=no
1481 DEFAULT_wxUSE_SPINBTN=no
1482 DEFAULT_wxUSE_SPINCTRL=no
1483 DEFAULT_wxUSE_SPLITTER=no
1484 DEFAULT_wxUSE_STATBMP=no
1485 DEFAULT_wxUSE_STATBOX=no
1486 DEFAULT_wxUSE_STATLINE=no
1487 DEFAULT_wxUSE_STATTEXT=no
1488 DEFAULT_wxUSE_STATUSBAR=yes
1489 DEFAULT_wxUSE_TABDIALOG=no
1490 DEFAULT_wxUSE_TEXTCTRL=no
1491 DEFAULT_wxUSE_TOGGLEBTN=no
1492 DEFAULT_wxUSE_TOOLBAR=no
1493 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1494 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1495 DEFAULT_wxUSE_TREECTRL=no
1496
1497 DEFAULT_wxUSE_UNICODE=no
1498 DEFAULT_wxUSE_WCSRTOMBS=no
1499
1500 DEFAULT_wxUSE_IMAGE=no
1501 DEFAULT_wxUSE_GIF=no
1502 DEFAULT_wxUSE_PCX=no
1503 DEFAULT_wxUSE_PNM=no
1504 DEFAULT_wxUSE_XPM=no
1505 else
1506 DEFAULT_wxUSE_UNIVERSAL=no
1507
1508 DEFAULT_wxUSE_THREADS=yes
1509
1510 DEFAULT_wxUSE_SHARED=yes
1511 DEFAULT_wxUSE_BURNT_NAME=no
1512 DEFAULT_wxUSE_OPTIMISE=yes
1513 DEFAULT_wxUSE_PROFILE=no
1514 DEFAULT_wxUSE_NO_DEPS=no
1515 DEFAULT_wxUSE_NO_RTTI=no
1516 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1517 DEFAULT_wxUSE_PERMISSIVE=no
1518 DEFAULT_wxUSE_DEBUG_FLAG=no
1519 DEFAULT_wxUSE_DEBUG_INFO=no
1520 DEFAULT_wxUSE_DEBUG_GDB=no
1521 DEFAULT_wxUSE_MEM_TRACING=no
1522 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1523 DEFAULT_wxUSE_DMALLOC=no
1524 DEFAULT_wxUSE_APPLE_IEEE=yes
1525
1526 DEFAULT_wxUSE_LOG=yes
1527
1528 DEFAULT_wxUSE_GUI=yes
1529
1530 DEFAULT_wxUSE_ZLIB=yes
1531 DEFAULT_wxUSE_LIBPNG=yes
1532 DEFAULT_wxUSE_LIBJPEG=yes
1533 DEFAULT_wxUSE_LIBTIFF=yes
1534 DEFAULT_wxUSE_ODBC=no
1535 DEFAULT_wxUSE_FREETYPE=no
1536 DEFAULT_wxUSE_OPENGL=no
1537
1538 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1539 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1540 DEFAULT_wxUSE_STD_IOSTREAM=no
1541 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1542 DEFAULT_wxUSE_DATETIME=yes
1543 DEFAULT_wxUSE_TIMEDATE=no
1544 DEFAULT_wxUSE_TIMER=yes
1545 DEFAULT_wxUSE_STOPWATCH=yes
1546 DEFAULT_wxUSE_FILE=yes
1547 DEFAULT_wxUSE_FFILE=yes
1548 DEFAULT_wxUSE_TEXTFILE=yes
1549 DEFAULT_wxUSE_WAVE=no
1550 DEFAULT_wxUSE_INTL=yes
1551 DEFAULT_wxUSE_CONFIG=yes
1552 DEFAULT_wxUSE_FONTMAP=yes
1553 DEFAULT_wxUSE_STREAMS=yes
1554 DEFAULT_wxUSE_SOCKETS=yes
1555 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1556 DEFAULT_wxUSE_SERIAL=yes
1557 DEFAULT_wxUSE_JOYSTICK=yes
1558 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1559 DEFAULT_wxUSE_LONGLONG=yes
1560 DEFAULT_wxUSE_GEOMETRY=yes
1561
1562 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1563 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1564 DEFAULT_wxUSE_POSTSCRIPT=yes
1565
1566 DEFAULT_wxUSE_X_RESOURCES=no
1567 DEFAULT_wxUSE_CLIPBOARD=yes
1568 DEFAULT_wxUSE_TOOLTIPS=yes
1569 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1570 DEFAULT_wxUSE_SPLINES=yes
1571
1572 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1573 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1574 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1575
1576 DEFAULT_wxUSE_PROLOGIO=yes
1577 DEFAULT_wxUSE_RESOURCES=yes
1578 DEFAULT_wxUSE_CONSTRAINTS=yes
1579 DEFAULT_wxUSE_IPC=yes
1580 DEFAULT_wxUSE_HELP=yes
1581 DEFAULT_wxUSE_WXTREE=yes
1582 DEFAULT_wxUSE_METAFILE=yes
1583 DEFAULT_wxUSE_MIMETYPE=yes
1584
1585 DEFAULT_wxUSE_COMMONDLGS=yes
1586 DEFAULT_wxUSE_CHOICEDLG=yes
1587 DEFAULT_wxUSE_COLOURDLG=yes
1588 DEFAULT_wxUSE_DIRDLG=yes
1589 DEFAULT_wxUSE_FILEDLG=yes
1590 DEFAULT_wxUSE_FONTDLG=yes
1591 DEFAULT_wxUSE_MSGDLG=yes
1592 DEFAULT_wxUSE_NUMBERDLG=yes
1593 DEFAULT_wxUSE_TEXTDLG=yes
1594 DEFAULT_wxUSE_STARTUP_TIPS=yes
1595 DEFAULT_wxUSE_PROGRESSDLG=yes
1596 DEFAULT_wxUSE_MENUS=yes
1597 DEFAULT_wxUSE_MINIFRAME=yes
1598 DEFAULT_wxUSE_HTML=yes
1599 DEFAULT_wxUSE_FILESYSTEM=yes
1600 DEFAULT_wxUSE_FS_INET=yes
1601 DEFAULT_wxUSE_FS_ZIP=yes
1602 DEFAULT_wxUSE_BUSYINFO=yes
1603 DEFAULT_wxUSE_ZIPSTREAM=yes
1604 DEFAULT_wxUSE_VALIDATORS=yes
1605
1606 DEFAULT_wxUSE_ACCEL=yes
1607 DEFAULT_wxUSE_BUTTON=yes
1608 DEFAULT_wxUSE_BMPBUTTON=yes
1609 DEFAULT_wxUSE_CALCTRL=yes
1610 DEFAULT_wxUSE_CARET=yes
1611 DEFAULT_wxUSE_CHECKBOX=yes
1612 DEFAULT_wxUSE_CHECKLST=yes
1613 DEFAULT_wxUSE_CHOICE=yes
1614 DEFAULT_wxUSE_COMBOBOX=yes
1615 DEFAULT_wxUSE_GAUGE=yes
1616 DEFAULT_wxUSE_GRID=yes
1617 DEFAULT_wxUSE_NEW_GRID=yes
1618 DEFAULT_wxUSE_IMAGLIST=yes
1619 DEFAULT_wxUSE_LISTBOX=yes
1620 DEFAULT_wxUSE_LISTCTRL=yes
1621 DEFAULT_wxUSE_NOTEBOOK=yes
1622 DEFAULT_wxUSE_RADIOBOX=yes
1623 DEFAULT_wxUSE_RADIOBTN=yes
1624 DEFAULT_wxUSE_SASH=yes
1625 DEFAULT_wxUSE_SCROLLBAR=yes
1626 DEFAULT_wxUSE_SLIDER=yes
1627 DEFAULT_wxUSE_SPINBTN=yes
1628 DEFAULT_wxUSE_SPINCTRL=yes
1629 DEFAULT_wxUSE_SPLITTER=yes
1630 DEFAULT_wxUSE_STATBMP=yes
1631 DEFAULT_wxUSE_STATBOX=yes
1632 DEFAULT_wxUSE_STATLINE=yes
1633 DEFAULT_wxUSE_STATTEXT=yes
1634 DEFAULT_wxUSE_STATUSBAR=yes
1635 DEFAULT_wxUSE_TABDIALOG=no
1636 DEFAULT_wxUSE_TEXTCTRL=yes
1637 DEFAULT_wxUSE_TOGGLEBTN=yes
1638 DEFAULT_wxUSE_TOOLBAR=yes
1639 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1640 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1641 DEFAULT_wxUSE_TREECTRL=yes
1642
1643 DEFAULT_wxUSE_UNICODE=no
1644 DEFAULT_wxUSE_WCSRTOMBS=no
1645
1646 DEFAULT_wxUSE_IMAGE=yes
1647 DEFAULT_wxUSE_GIF=yes
1648 DEFAULT_wxUSE_PCX=yes
1649 DEFAULT_wxUSE_PNM=yes
1650 DEFAULT_wxUSE_XPM=yes
1651 fi
1652
1653
1654
1655 for toolkit in `echo $ALL_TOOLKITS`; do
1656 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1657 if test "x$LINE" != x ; then
1658 has_toolkit_in_cache=1
1659 eval "DEFAULT_$LINE"
1660 eval "CACHE_$toolkit=1"
1661 fi
1662 done
1663
1664
1665
1666 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1667 echo "configure:1668: checking for --enable-gui" >&5
1668 no_cache=0
1669 # Check whether --enable-gui or --disable-gui was given.
1670 if test "${enable_gui+set}" = set; then
1671 enableval="$enable_gui"
1672
1673 if test "$enableval" = yes; then
1674 ac_cv_use_gui='wxUSE_GUI=yes'
1675 else
1676 ac_cv_use_gui='wxUSE_GUI=no'
1677 fi
1678
1679 else
1680
1681 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1682 if test "x$LINE" != x ; then
1683 eval "DEFAULT_$LINE"
1684 else
1685 no_cache=1
1686 fi
1687
1688 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1689
1690 fi
1691
1692
1693 eval "$ac_cv_use_gui"
1694 if test "$no_cache" != 1; then
1695 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1696 fi
1697
1698 if test "$wxUSE_GUI" = yes; then
1699 echo "$ac_t""yes" 1>&6
1700 else
1701 echo "$ac_t""no" 1>&6
1702 fi
1703
1704
1705 if test "$wxUSE_GUI" = "yes"; then
1706
1707
1708 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1709 echo "configure:1710: checking for --enable-universal" >&5
1710 no_cache=0
1711 # Check whether --enable-universal or --disable-universal was given.
1712 if test "${enable_universal+set}" = set; then
1713 enableval="$enable_universal"
1714
1715 if test "$enableval" = yes; then
1716 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1717 else
1718 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1719 fi
1720
1721 else
1722
1723 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1724 if test "x$LINE" != x ; then
1725 eval "DEFAULT_$LINE"
1726 else
1727 no_cache=1
1728 fi
1729
1730 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1731
1732 fi
1733
1734
1735 eval "$ac_cv_use_universal"
1736 if test "$no_cache" != 1; then
1737 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1738 fi
1739
1740 if test "$wxUSE_UNIVERSAL" = yes; then
1741 echo "$ac_t""yes" 1>&6
1742 else
1743 echo "$ac_t""no" 1>&6
1744 fi
1745
1746 # Check whether --with-gtk or --without-gtk was given.
1747 if test "${with_gtk+set}" = set; then
1748 withval="$with_gtk"
1749 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1750 fi
1751
1752 # Check whether --with-motif or --without-motif was given.
1753 if test "${with_motif+set}" = set; then
1754 withval="$with_motif"
1755 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1756 fi
1757
1758 # Check whether --with-mac or --without-mac was given.
1759 if test "${with_mac+set}" = set; then
1760 withval="$with_mac"
1761 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1762 fi
1763
1764 # Check whether --with-wine or --without-wine was given.
1765 if test "${with_wine+set}" = set; then
1766 withval="$with_wine"
1767 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1768 fi
1769
1770 # Check whether --with-cygwin or --without-cygwin was given.
1771 if test "${with_cygwin+set}" = set; then
1772 withval="$with_cygwin"
1773 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1774 fi
1775
1776 # Check whether --with-mingw or --without-mingw was given.
1777 if test "${with_mingw+set}" = set; then
1778 withval="$with_mingw"
1779 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1780 fi
1781
1782 # Check whether --with-pm or --without-pm was given.
1783 if test "${with_pm+set}" = set; then
1784 withval="$with_pm"
1785 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1786 fi
1787
1788 # Check whether --with-mgl or --without-mgl was given.
1789 if test "${with_mgl+set}" = set; then
1790 withval="$with_mgl"
1791 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1792 fi
1793
1794
1795 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1796 if test "${with_gtk_prefix+set}" = set; then
1797 withval="$with_gtk_prefix"
1798 gtk_config_prefix="$withval"
1799 else
1800 gtk_config_prefix=""
1801 fi
1802
1803 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1804 if test "${with_gtk_exec_prefix+set}" = set; then
1805 withval="$with_gtk_exec_prefix"
1806 gtk_config_exec_prefix="$withval"
1807 else
1808 gtk_config_exec_prefix=""
1809 fi
1810
1811
1812
1813 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1814 echo "configure:1815: checking for --with-libpng" >&5
1815 no_cache=0
1816 # Check whether --with-libpng or --without-libpng was given.
1817 if test "${with_libpng+set}" = set; then
1818 withval="$with_libpng"
1819
1820 if test "$withval" = yes; then
1821 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1822 elif test "$withval" = no; then
1823 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1824 elif test "$withval" = sys; then
1825 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1826 else
1827 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1828 fi
1829
1830 else
1831
1832 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1840
1841 fi
1842
1843
1844 eval "$ac_cv_use_libpng"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_LIBPNG" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 elif test "$wxUSE_LIBPNG" = no; then
1852 echo "$ac_t""no" 1>&6
1853 elif test "$wxUSE_LIBPNG" = sys; then
1854 echo "$ac_t""system version" 1>&6
1855 else
1856 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1857 fi
1858
1859
1860 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1861 echo "configure:1862: checking for --with-libjpeg" >&5
1862 no_cache=0
1863 # Check whether --with-libjpeg or --without-libjpeg was given.
1864 if test "${with_libjpeg+set}" = set; then
1865 withval="$with_libjpeg"
1866
1867 if test "$withval" = yes; then
1868 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1869 elif test "$withval" = no; then
1870 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1871 elif test "$withval" = sys; then
1872 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1873 else
1874 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1875 fi
1876
1877 else
1878
1879 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1880 if test "x$LINE" != x ; then
1881 eval "DEFAULT_$LINE"
1882 else
1883 no_cache=1
1884 fi
1885
1886 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1887
1888 fi
1889
1890
1891 eval "$ac_cv_use_libjpeg"
1892 if test "$no_cache" != 1; then
1893 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1894 fi
1895
1896 if test "$wxUSE_LIBJPEG" = yes; then
1897 echo "$ac_t""yes" 1>&6
1898 elif test "$wxUSE_LIBJPEG" = no; then
1899 echo "$ac_t""no" 1>&6
1900 elif test "$wxUSE_LIBJPEG" = sys; then
1901 echo "$ac_t""system version" 1>&6
1902 else
1903 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1904 fi
1905
1906
1907 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1908 echo "configure:1909: checking for --with-libtiff" >&5
1909 no_cache=0
1910 # Check whether --with-libtiff or --without-libtiff was given.
1911 if test "${with_libtiff+set}" = set; then
1912 withval="$with_libtiff"
1913
1914 if test "$withval" = yes; then
1915 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1916 elif test "$withval" = no; then
1917 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1918 elif test "$withval" = sys; then
1919 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1920 else
1921 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1922 fi
1923
1924 else
1925
1926 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1927 if test "x$LINE" != x ; then
1928 eval "DEFAULT_$LINE"
1929 else
1930 no_cache=1
1931 fi
1932
1933 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1934
1935 fi
1936
1937
1938 eval "$ac_cv_use_libtiff"
1939 if test "$no_cache" != 1; then
1940 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1941 fi
1942
1943 if test "$wxUSE_LIBTIFF" = yes; then
1944 echo "$ac_t""yes" 1>&6
1945 elif test "$wxUSE_LIBTIFF" = no; then
1946 echo "$ac_t""no" 1>&6
1947 elif test "$wxUSE_LIBTIFF" = sys; then
1948 echo "$ac_t""system version" 1>&6
1949 else
1950 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1951 fi
1952
1953
1954 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1955 echo "configure:1956: checking for --with-freetype" >&5
1956 no_cache=0
1957 # Check whether --with-freetype or --without-freetype was given.
1958 if test "${with_freetype+set}" = set; then
1959 withval="$with_freetype"
1960
1961 if test "$withval" = yes; then
1962 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1963 elif test "$withval" = no; then
1964 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1965 elif test "$withval" = sys; then
1966 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1967 else
1968 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1969 fi
1970
1971 else
1972
1973 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1974 if test "x$LINE" != x ; then
1975 eval "DEFAULT_$LINE"
1976 else
1977 no_cache=1
1978 fi
1979
1980 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1981
1982 fi
1983
1984
1985 eval "$ac_cv_use_freetype"
1986 if test "$no_cache" != 1; then
1987 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1988 fi
1989
1990 if test "$wxUSE_FREETYPE" = yes; then
1991 echo "$ac_t""yes" 1>&6
1992 elif test "$wxUSE_FREETYPE" = no; then
1993 echo "$ac_t""no" 1>&6
1994 elif test "$wxUSE_FREETYPE" = sys; then
1995 echo "$ac_t""system version" 1>&6
1996 else
1997 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1998 fi
1999
2000
2001 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2002 echo "configure:2003: checking for --with-opengl" >&5
2003 no_cache=0
2004 # Check whether --with-opengl or --without-opengl was given.
2005 if test "${with_opengl+set}" = set; then
2006 withval="$with_opengl"
2007
2008 if test "$withval" = yes; then
2009 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2010 else
2011 ac_cv_use_opengl='wxUSE_OPENGL=no'
2012 fi
2013
2014 else
2015
2016 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2017 if test "x$LINE" != x ; then
2018 eval "DEFAULT_$LINE"
2019 else
2020 no_cache=1
2021 fi
2022
2023 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2024
2025 fi
2026
2027
2028 eval "$ac_cv_use_opengl"
2029 if test "$no_cache" != 1; then
2030 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2031 fi
2032
2033 if test "$wxUSE_OPENGL" = yes; then
2034 echo "$ac_t""yes" 1>&6
2035 else
2036 echo "$ac_t""no" 1>&6
2037 fi
2038
2039
2040 fi
2041
2042
2043 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2044 echo "configure:2045: checking for --with-dmalloc" >&5
2045 no_cache=0
2046 # Check whether --with-dmalloc or --without-dmalloc was given.
2047 if test "${with_dmalloc+set}" = set; then
2048 withval="$with_dmalloc"
2049
2050 if test "$withval" = yes; then
2051 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2052 else
2053 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2054 fi
2055
2056 else
2057
2058 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2059 if test "x$LINE" != x ; then
2060 eval "DEFAULT_$LINE"
2061 else
2062 no_cache=1
2063 fi
2064
2065 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2066
2067 fi
2068
2069
2070 eval "$ac_cv_use_dmalloc"
2071 if test "$no_cache" != 1; then
2072 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2073 fi
2074
2075 if test "$wxUSE_DMALLOC" = yes; then
2076 echo "$ac_t""yes" 1>&6
2077 else
2078 echo "$ac_t""no" 1>&6
2079 fi
2080
2081
2082 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2083 echo "configure:2084: checking for --with-zlib" >&5
2084 no_cache=0
2085 # Check whether --with-zlib or --without-zlib was given.
2086 if test "${with_zlib+set}" = set; then
2087 withval="$with_zlib"
2088
2089 if test "$withval" = yes; then
2090 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2091 elif test "$withval" = no; then
2092 ac_cv_use_zlib='wxUSE_ZLIB=no'
2093 elif test "$withval" = sys; then
2094 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2095 else
2096 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2097 fi
2098
2099 else
2100
2101 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2102 if test "x$LINE" != x ; then
2103 eval "DEFAULT_$LINE"
2104 else
2105 no_cache=1
2106 fi
2107
2108 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2109
2110 fi
2111
2112
2113 eval "$ac_cv_use_zlib"
2114 if test "$no_cache" != 1; then
2115 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2116 fi
2117
2118 if test "$wxUSE_ZLIB" = yes; then
2119 echo "$ac_t""yes" 1>&6
2120 elif test "$wxUSE_ZLIB" = no; then
2121 echo "$ac_t""no" 1>&6
2122 elif test "$wxUSE_ZLIB" = sys; then
2123 echo "$ac_t""system version" 1>&6
2124 else
2125 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2126 fi
2127
2128
2129 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2130 echo "configure:2131: checking for --with-odbc" >&5
2131 no_cache=0
2132 # Check whether --with-odbc or --without-odbc was given.
2133 if test "${with_odbc+set}" = set; then
2134 withval="$with_odbc"
2135
2136 if test "$withval" = yes; then
2137 ac_cv_use_odbc='wxUSE_ODBC=yes'
2138 else
2139 ac_cv_use_odbc='wxUSE_ODBC=no'
2140 fi
2141
2142 else
2143
2144 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2145 if test "x$LINE" != x ; then
2146 eval "DEFAULT_$LINE"
2147 else
2148 no_cache=1
2149 fi
2150
2151 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2152
2153 fi
2154
2155
2156 eval "$ac_cv_use_odbc"
2157 if test "$no_cache" != 1; then
2158 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2159 fi
2160
2161 if test "$wxUSE_ODBC" = yes; then
2162 echo "$ac_t""yes" 1>&6
2163 else
2164 echo "$ac_t""no" 1>&6
2165 fi
2166
2167
2168
2169
2170
2171 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2172 echo "configure:2173: checking for --enable-shared" >&5
2173 no_cache=0
2174 # Check whether --enable-shared or --disable-shared was given.
2175 if test "${enable_shared+set}" = set; then
2176 enableval="$enable_shared"
2177
2178 if test "$enableval" = yes; then
2179 ac_cv_use_shared='wxUSE_SHARED=yes'
2180 else
2181 ac_cv_use_shared='wxUSE_SHARED=no'
2182 fi
2183
2184 else
2185
2186 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2194
2195 fi
2196
2197
2198 eval "$ac_cv_use_shared"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_SHARED" = yes; then
2204 echo "$ac_t""yes" 1>&6
2205 else
2206 echo "$ac_t""no" 1>&6
2207 fi
2208
2209
2210 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2211 echo "configure:2212: checking for --enable-burnt_name" >&5
2212 no_cache=0
2213 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2214 if test "${enable_burnt_name+set}" = set; then
2215 enableval="$enable_burnt_name"
2216
2217 if test "$enableval" = yes; then
2218 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2219 else
2220 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2221 fi
2222
2223 else
2224
2225 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2226 if test "x$LINE" != x ; then
2227 eval "DEFAULT_$LINE"
2228 else
2229 no_cache=1
2230 fi
2231
2232 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2233
2234 fi
2235
2236
2237 eval "$ac_cv_use_burnt_name"
2238 if test "$no_cache" != 1; then
2239 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2240 fi
2241
2242 if test "$wxUSE_BURNT_NAME" = yes; then
2243 echo "$ac_t""yes" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2246 fi
2247
2248
2249 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2250 echo "configure:2251: checking for --enable-optimise" >&5
2251 no_cache=0
2252 # Check whether --enable-optimise or --disable-optimise was given.
2253 if test "${enable_optimise+set}" = set; then
2254 enableval="$enable_optimise"
2255
2256 if test "$enableval" = yes; then
2257 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2258 else
2259 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2260 fi
2261
2262 else
2263
2264 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
2271 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2272
2273 fi
2274
2275
2276 eval "$ac_cv_use_optimise"
2277 if test "$no_cache" != 1; then
2278 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2279 fi
2280
2281 if test "$wxUSE_OPTIMISE" = yes; then
2282 echo "$ac_t""yes" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2285 fi
2286
2287
2288 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2289 echo "configure:2290: checking for --enable-debug" >&5
2290 no_cache=0
2291 # Check whether --enable-debug or --disable-debug was given.
2292 if test "${enable_debug+set}" = set; then
2293 enableval="$enable_debug"
2294
2295 if test "$enableval" = yes; then
2296 ac_cv_use_debug='wxUSE_DEBUG=yes'
2297 else
2298 ac_cv_use_debug='wxUSE_DEBUG=no'
2299 fi
2300
2301 else
2302
2303 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2304 if test "x$LINE" != x ; then
2305 eval "DEFAULT_$LINE"
2306 else
2307 no_cache=1
2308 fi
2309
2310 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2311
2312 fi
2313
2314
2315 eval "$ac_cv_use_debug"
2316 if test "$no_cache" != 1; then
2317 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2318 fi
2319
2320 if test "$wxUSE_DEBUG" = yes; then
2321 echo "$ac_t""yes" 1>&6
2322 else
2323 echo "$ac_t""no" 1>&6
2324 fi
2325
2326
2327 if test "$wxUSE_DEBUG" = "yes"; then
2328 DEFAULT_wxUSE_DEBUG_FLAG=yes
2329 DEFAULT_wxUSE_DEBUG_INFO=yes
2330 elif test "$wxUSE_DEBUG" = "no"; then
2331 DEFAULT_wxUSE_DEBUG_FLAG=no
2332 DEFAULT_wxUSE_DEBUG_INFO=no
2333 fi
2334
2335
2336 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2337 echo "configure:2338: checking for --enable-debug_flag" >&5
2338 no_cache=0
2339 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2340 if test "${enable_debug_flag+set}" = set; then
2341 enableval="$enable_debug_flag"
2342
2343 if test "$enableval" = yes; then
2344 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2345 else
2346 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2347 fi
2348
2349 else
2350
2351 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2359
2360 fi
2361
2362
2363 eval "$ac_cv_use_debug_flag"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_DEBUG_FLAG" = yes; then
2369 echo "$ac_t""yes" 1>&6
2370 else
2371 echo "$ac_t""no" 1>&6
2372 fi
2373
2374
2375 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2376 echo "configure:2377: checking for --enable-debug_info" >&5
2377 no_cache=0
2378 # Check whether --enable-debug_info or --disable-debug_info was given.
2379 if test "${enable_debug_info+set}" = set; then
2380 enableval="$enable_debug_info"
2381
2382 if test "$enableval" = yes; then
2383 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2384 else
2385 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2386 fi
2387
2388 else
2389
2390 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
2397 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2398
2399 fi
2400
2401
2402 eval "$ac_cv_use_debug_info"
2403 if test "$no_cache" != 1; then
2404 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2405 fi
2406
2407 if test "$wxUSE_DEBUG_INFO" = yes; then
2408 echo "$ac_t""yes" 1>&6
2409 else
2410 echo "$ac_t""no" 1>&6
2411 fi
2412
2413
2414 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2415 echo "configure:2416: checking for --enable-debug_gdb" >&5
2416 no_cache=0
2417 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2418 if test "${enable_debug_gdb+set}" = set; then
2419 enableval="$enable_debug_gdb"
2420
2421 if test "$enableval" = yes; then
2422 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2423 else
2424 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2425 fi
2426
2427 else
2428
2429 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2437
2438 fi
2439
2440
2441 eval "$ac_cv_use_debug_gdb"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_DEBUG_GDB" = yes; then
2447 echo "$ac_t""yes" 1>&6
2448 else
2449 echo "$ac_t""no" 1>&6
2450 fi
2451
2452
2453 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2454 echo "configure:2455: checking for --enable-debug_cntxt" >&5
2455 no_cache=0
2456 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2457 if test "${enable_debug_cntxt+set}" = set; then
2458 enableval="$enable_debug_cntxt"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2462 else
2463 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2464 fi
2465
2466 else
2467
2468 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2476
2477 fi
2478
2479
2480 eval "$ac_cv_use_debug_cntxt"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2493 echo "configure:2494: checking for --enable-mem_tracing" >&5
2494 no_cache=0
2495 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2496 if test "${enable_mem_tracing+set}" = set; then
2497 enableval="$enable_mem_tracing"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2501 else
2502 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2503 fi
2504
2505 else
2506
2507 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2515
2516 fi
2517
2518
2519 eval "$ac_cv_use_mem_tracing"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_MEM_TRACING" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
2531 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2532 echo "configure:2533: checking for --enable-profile" >&5
2533 no_cache=0
2534 # Check whether --enable-profile or --disable-profile was given.
2535 if test "${enable_profile+set}" = set; then
2536 enableval="$enable_profile"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_profile='wxUSE_PROFILE=yes'
2540 else
2541 ac_cv_use_profile='wxUSE_PROFILE=no'
2542 fi
2543
2544 else
2545
2546 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2554
2555 fi
2556
2557
2558 eval "$ac_cv_use_profile"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_PROFILE" = yes; then
2564 echo "$ac_t""yes" 1>&6
2565 else
2566 echo "$ac_t""no" 1>&6
2567 fi
2568
2569
2570 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2571 echo "configure:2572: checking for --enable-no_rtti" >&5
2572 no_cache=0
2573 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2574 if test "${enable_no_rtti+set}" = set; then
2575 enableval="$enable_no_rtti"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2579 else
2580 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2581 fi
2582
2583 else
2584
2585 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2593
2594 fi
2595
2596
2597 eval "$ac_cv_use_no_rtti"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_NO_RTTI" = yes; then
2603 echo "$ac_t""yes" 1>&6
2604 else
2605 echo "$ac_t""no" 1>&6
2606 fi
2607
2608
2609 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2610 echo "configure:2611: checking for --enable-no_exceptions" >&5
2611 no_cache=0
2612 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2613 if test "${enable_no_exceptions+set}" = set; then
2614 enableval="$enable_no_exceptions"
2615
2616 if test "$enableval" = yes; then
2617 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2618 else
2619 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2620 fi
2621
2622 else
2623
2624 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2632
2633 fi
2634
2635
2636 eval "$ac_cv_use_no_exceptions"
2637 if test "$no_cache" != 1; then
2638 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2639 fi
2640
2641 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2642 echo "$ac_t""yes" 1>&6
2643 else
2644 echo "$ac_t""no" 1>&6
2645 fi
2646
2647
2648 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2649 echo "configure:2650: checking for --enable-permissive" >&5
2650 no_cache=0
2651 # Check whether --enable-permissive or --disable-permissive was given.
2652 if test "${enable_permissive+set}" = set; then
2653 enableval="$enable_permissive"
2654
2655 if test "$enableval" = yes; then
2656 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2657 else
2658 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2659 fi
2660
2661 else
2662
2663 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2664 if test "x$LINE" != x ; then
2665 eval "DEFAULT_$LINE"
2666 else
2667 no_cache=1
2668 fi
2669
2670 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2671
2672 fi
2673
2674
2675 eval "$ac_cv_use_permissive"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_PERMISSIVE" = yes; then
2681 echo "$ac_t""yes" 1>&6
2682 else
2683 echo "$ac_t""no" 1>&6
2684 fi
2685
2686
2687 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2688 echo "configure:2689: checking for --enable-no_deps" >&5
2689 no_cache=0
2690 # Check whether --enable-no_deps or --disable-no_deps was given.
2691 if test "${enable_no_deps+set}" = set; then
2692 enableval="$enable_no_deps"
2693
2694 if test "$enableval" = yes; then
2695 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2696 else
2697 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2698 fi
2699
2700 else
2701
2702 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2710
2711 fi
2712
2713
2714 eval "$ac_cv_use_no_deps"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_NO_DEPS" = yes; then
2720 echo "$ac_t""yes" 1>&6
2721 else
2722 echo "$ac_t""no" 1>&6
2723 fi
2724
2725
2726
2727
2728 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2729 echo "configure:2730: checking for --enable-intl" >&5
2730 no_cache=0
2731 # Check whether --enable-intl or --disable-intl was given.
2732 if test "${enable_intl+set}" = set; then
2733 enableval="$enable_intl"
2734
2735 if test "$enableval" = yes; then
2736 ac_cv_use_intl='wxUSE_INTL=yes'
2737 else
2738 ac_cv_use_intl='wxUSE_INTL=no'
2739 fi
2740
2741 else
2742
2743 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
2750 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2751
2752 fi
2753
2754
2755 eval "$ac_cv_use_intl"
2756 if test "$no_cache" != 1; then
2757 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2758 fi
2759
2760 if test "$wxUSE_INTL" = yes; then
2761 echo "$ac_t""yes" 1>&6
2762 else
2763 echo "$ac_t""no" 1>&6
2764 fi
2765
2766
2767 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2768 echo "configure:2769: checking for --enable-config" >&5
2769 no_cache=0
2770 # Check whether --enable-config or --disable-config was given.
2771 if test "${enable_config+set}" = set; then
2772 enableval="$enable_config"
2773
2774 if test "$enableval" = yes; then
2775 ac_cv_use_config='wxUSE_CONFIG=yes'
2776 else
2777 ac_cv_use_config='wxUSE_CONFIG=no'
2778 fi
2779
2780 else
2781
2782 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2790
2791 fi
2792
2793
2794 eval "$ac_cv_use_config"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_CONFIG" = yes; then
2800 echo "$ac_t""yes" 1>&6
2801 else
2802 echo "$ac_t""no" 1>&6
2803 fi
2804
2805
2806
2807 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2808 echo "configure:2809: checking for --enable-sockets" >&5
2809 no_cache=0
2810 # Check whether --enable-sockets or --disable-sockets was given.
2811 if test "${enable_sockets+set}" = set; then
2812 enableval="$enable_sockets"
2813
2814 if test "$enableval" = yes; then
2815 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2816 else
2817 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2818 fi
2819
2820 else
2821
2822 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
2829 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2830
2831 fi
2832
2833
2834 eval "$ac_cv_use_sockets"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$wxUSE_SOCKETS" = yes; then
2840 echo "$ac_t""yes" 1>&6
2841 else
2842 echo "$ac_t""no" 1>&6
2843 fi
2844
2845
2846
2847 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
2848 echo "configure:2849: checking for --enable-ipc" >&5
2849 no_cache=0
2850 # Check whether --enable-ipc or --disable-ipc was given.
2851 if test "${enable_ipc+set}" = set; then
2852 enableval="$enable_ipc"
2853
2854 if test "$enableval" = yes; then
2855 ac_cv_use_ipc='wxUSE_IPC=yes'
2856 else
2857 ac_cv_use_ipc='wxUSE_IPC=no'
2858 fi
2859
2860 else
2861
2862 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2863 if test "x$LINE" != x ; then
2864 eval "DEFAULT_$LINE"
2865 else
2866 no_cache=1
2867 fi
2868
2869 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2870
2871 fi
2872
2873
2874 eval "$ac_cv_use_ipc"
2875 if test "$no_cache" != 1; then
2876 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2877 fi
2878
2879 if test "$wxUSE_IPC" = yes; then
2880 echo "$ac_t""yes" 1>&6
2881 else
2882 echo "$ac_t""no" 1>&6
2883 fi
2884
2885
2886
2887 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
2888 echo "configure:2889: checking for --enable-cmdline" >&5
2889 no_cache=0
2890 # Check whether --enable-cmdline or --disable-cmdline was given.
2891 if test "${enable_cmdline+set}" = set; then
2892 enableval="$enable_cmdline"
2893
2894 if test "$enableval" = yes; then
2895 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2896 else
2897 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2898 fi
2899
2900 else
2901
2902 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2910
2911 fi
2912
2913
2914 eval "$ac_cv_use_cmdline"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_CMDLINE_PARSER" = yes; then
2920 echo "$ac_t""yes" 1>&6
2921 else
2922 echo "$ac_t""no" 1>&6
2923 fi
2924
2925
2926 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
2927 echo "configure:2928: checking for --enable-datetime" >&5
2928 no_cache=0
2929 # Check whether --enable-datetime or --disable-datetime was given.
2930 if test "${enable_datetime+set}" = set; then
2931 enableval="$enable_datetime"
2932
2933 if test "$enableval" = yes; then
2934 ac_cv_use_datetime='wxUSE_DATETIME=yes'
2935 else
2936 ac_cv_use_datetime='wxUSE_DATETIME=no'
2937 fi
2938
2939 else
2940
2941 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
2942 if test "x$LINE" != x ; then
2943 eval "DEFAULT_$LINE"
2944 else
2945 no_cache=1
2946 fi
2947
2948 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
2949
2950 fi
2951
2952
2953 eval "$ac_cv_use_datetime"
2954 if test "$no_cache" != 1; then
2955 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
2956 fi
2957
2958 if test "$wxUSE_DATETIME" = yes; then
2959 echo "$ac_t""yes" 1>&6
2960 else
2961 echo "$ac_t""no" 1>&6
2962 fi
2963
2964
2965 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
2966 echo "configure:2967: checking for --enable-timedate" >&5
2967 no_cache=0
2968 # Check whether --enable-timedate or --disable-timedate was given.
2969 if test "${enable_timedate+set}" = set; then
2970 enableval="$enable_timedate"
2971
2972 if test "$enableval" = yes; then
2973 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2974 else
2975 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2976 fi
2977
2978 else
2979
2980 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2988
2989 fi
2990
2991
2992 eval "$ac_cv_use_timedate"
2993 if test "$no_cache" != 1; then
2994 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2995 fi
2996
2997 if test "$wxUSE_TIMEDATE" = yes; then
2998 echo "$ac_t""yes" 1>&6
2999 else
3000 echo "$ac_t""no" 1>&6
3001 fi
3002
3003
3004 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3005 echo "configure:3006: checking for --enable-stopwatch" >&5
3006 no_cache=0
3007 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3008 if test "${enable_stopwatch+set}" = set; then
3009 enableval="$enable_stopwatch"
3010
3011 if test "$enableval" = yes; then
3012 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3013 else
3014 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3015 fi
3016
3017 else
3018
3019 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3020 if test "x$LINE" != x ; then
3021 eval "DEFAULT_$LINE"
3022 else
3023 no_cache=1
3024 fi
3025
3026 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3027
3028 fi
3029
3030
3031 eval "$ac_cv_use_stopwatch"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_STOPWATCH" = yes; then
3037 echo "$ac_t""yes" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3040 fi
3041
3042
3043 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3044 echo "configure:3045: checking for --enable-dialupman" >&5
3045 no_cache=0
3046 # Check whether --enable-dialupman or --disable-dialupman was given.
3047 if test "${enable_dialupman+set}" = set; then
3048 enableval="$enable_dialupman"
3049
3050 if test "$enableval" = yes; then
3051 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3052 else
3053 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3054 fi
3055
3056 else
3057
3058 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3059 if test "x$LINE" != x ; then
3060 eval "DEFAULT_$LINE"
3061 else
3062 no_cache=1
3063 fi
3064
3065 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3066
3067 fi
3068
3069
3070 eval "$ac_cv_use_dialupman"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3076 echo "$ac_t""yes" 1>&6
3077 else
3078 echo "$ac_t""no" 1>&6
3079 fi
3080
3081
3082 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3083 echo "configure:3084: checking for --enable-apple_ieee" >&5
3084 no_cache=0
3085 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3086 if test "${enable_apple_ieee+set}" = set; then
3087 enableval="$enable_apple_ieee"
3088
3089 if test "$enableval" = yes; then
3090 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3091 else
3092 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3093 fi
3094
3095 else
3096
3097 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
3104 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3105
3106 fi
3107
3108
3109 eval "$ac_cv_use_apple_ieee"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_APPLE_IEEE" = yes; then
3115 echo "$ac_t""yes" 1>&6
3116 else
3117 echo "$ac_t""no" 1>&6
3118 fi
3119
3120
3121 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3122 echo "configure:3123: checking for --enable-timer" >&5
3123 no_cache=0
3124 # Check whether --enable-timer or --disable-timer was given.
3125 if test "${enable_timer+set}" = set; then
3126 enableval="$enable_timer"
3127
3128 if test "$enableval" = yes; then
3129 ac_cv_use_timer='wxUSE_TIMER=yes'
3130 else
3131 ac_cv_use_timer='wxUSE_TIMER=no'
3132 fi
3133
3134 else
3135
3136 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3144
3145 fi
3146
3147
3148 eval "$ac_cv_use_timer"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_TIMER" = yes; then
3154 echo "$ac_t""yes" 1>&6
3155 else
3156 echo "$ac_t""no" 1>&6
3157 fi
3158
3159
3160 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3161 echo "configure:3162: checking for --enable-wave" >&5
3162 no_cache=0
3163 # Check whether --enable-wave or --disable-wave was given.
3164 if test "${enable_wave+set}" = set; then
3165 enableval="$enable_wave"
3166
3167 if test "$enableval" = yes; then
3168 ac_cv_use_wave='wxUSE_WAVE=yes'
3169 else
3170 ac_cv_use_wave='wxUSE_WAVE=no'
3171 fi
3172
3173 else
3174
3175 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3176 if test "x$LINE" != x ; then
3177 eval "DEFAULT_$LINE"
3178 else
3179 no_cache=1
3180 fi
3181
3182 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3183
3184 fi
3185
3186
3187 eval "$ac_cv_use_wave"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_WAVE" = yes; then
3193 echo "$ac_t""yes" 1>&6
3194 else
3195 echo "$ac_t""no" 1>&6
3196 fi
3197
3198
3199 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3200 echo "configure:3201: checking for --enable-fraction" >&5
3201 no_cache=0
3202 # Check whether --enable-fraction or --disable-fraction was given.
3203 if test "${enable_fraction+set}" = set; then
3204 enableval="$enable_fraction"
3205
3206 if test "$enableval" = yes; then
3207 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3208 else
3209 ac_cv_use_fraction='wxUSE_FRACTION=no'
3210 fi
3211
3212 else
3213
3214 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3215 if test "x$LINE" != x ; then
3216 eval "DEFAULT_$LINE"
3217 else
3218 no_cache=1
3219 fi
3220
3221 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3222
3223 fi
3224
3225
3226 eval "$ac_cv_use_fraction"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_FRACTION" = yes; then
3232 echo "$ac_t""yes" 1>&6
3233 else
3234 echo "$ac_t""no" 1>&6
3235 fi
3236
3237
3238 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3239 echo "configure:3240: checking for --enable-dynlib" >&5
3240 no_cache=0
3241 # Check whether --enable-dynlib or --disable-dynlib was given.
3242 if test "${enable_dynlib+set}" = set; then
3243 enableval="$enable_dynlib"
3244
3245 if test "$enableval" = yes; then
3246 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3247 else
3248 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3249 fi
3250
3251 else
3252
3253 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3261
3262 fi
3263
3264
3265 eval "$ac_cv_use_dynlib"
3266 if test "$no_cache" != 1; then
3267 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3268 fi
3269
3270 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3271 echo "$ac_t""yes" 1>&6
3272 else
3273 echo "$ac_t""no" 1>&6
3274 fi
3275
3276
3277 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3278 echo "configure:3279: checking for --enable-longlong" >&5
3279 no_cache=0
3280 # Check whether --enable-longlong or --disable-longlong was given.
3281 if test "${enable_longlong+set}" = set; then
3282 enableval="$enable_longlong"
3283
3284 if test "$enableval" = yes; then
3285 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3286 else
3287 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3288 fi
3289
3290 else
3291
3292 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3293 if test "x$LINE" != x ; then
3294 eval "DEFAULT_$LINE"
3295 else
3296 no_cache=1
3297 fi
3298
3299 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3300
3301 fi
3302
3303
3304 eval "$ac_cv_use_longlong"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_LONGLONG" = yes; then
3310 echo "$ac_t""yes" 1>&6
3311 else
3312 echo "$ac_t""no" 1>&6
3313 fi
3314
3315
3316 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3317 echo "configure:3318: checking for --enable-geometry" >&5
3318 no_cache=0
3319 # Check whether --enable-geometry or --disable-geometry was given.
3320 if test "${enable_geometry+set}" = set; then
3321 enableval="$enable_geometry"
3322
3323 if test "$enableval" = yes; then
3324 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3325 else
3326 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3327 fi
3328
3329 else
3330
3331 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3332 if test "x$LINE" != x ; then
3333 eval "DEFAULT_$LINE"
3334 else
3335 no_cache=1
3336 fi
3337
3338 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3339
3340 fi
3341
3342
3343 eval "$ac_cv_use_geometry"
3344 if test "$no_cache" != 1; then
3345 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3346 fi
3347
3348 if test "$wxUSE_GEOMETRY" = yes; then
3349 echo "$ac_t""yes" 1>&6
3350 else
3351 echo "$ac_t""no" 1>&6
3352 fi
3353
3354
3355 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3356 echo "configure:3357: checking for --enable-log" >&5
3357 no_cache=0
3358 # Check whether --enable-log or --disable-log was given.
3359 if test "${enable_log+set}" = set; then
3360 enableval="$enable_log"
3361
3362 if test "$enableval" = yes; then
3363 ac_cv_use_log='wxUSE_LOG=yes'
3364 else
3365 ac_cv_use_log='wxUSE_LOG=no'
3366 fi
3367
3368 else
3369
3370 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3378
3379 fi
3380
3381
3382 eval "$ac_cv_use_log"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_LOG" = yes; then
3388 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393
3394 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3395 echo "configure:3396: checking for --enable-streams" >&5
3396 no_cache=0
3397 # Check whether --enable-streams or --disable-streams was given.
3398 if test "${enable_streams+set}" = set; then
3399 enableval="$enable_streams"
3400
3401 if test "$enableval" = yes; then
3402 ac_cv_use_streams='wxUSE_STREAMS=yes'
3403 else
3404 ac_cv_use_streams='wxUSE_STREAMS=no'
3405 fi
3406
3407 else
3408
3409 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3417
3418 fi
3419
3420
3421 eval "$ac_cv_use_streams"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_STREAMS" = yes; then
3427 echo "$ac_t""yes" 1>&6
3428 else
3429 echo "$ac_t""no" 1>&6
3430 fi
3431
3432
3433 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3434 echo "configure:3435: checking for --enable-file" >&5
3435 no_cache=0
3436 # Check whether --enable-file or --disable-file was given.
3437 if test "${enable_file+set}" = set; then
3438 enableval="$enable_file"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_file='wxUSE_FILE=yes'
3442 else
3443 ac_cv_use_file='wxUSE_FILE=no'
3444 fi
3445
3446 else
3447
3448 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3456
3457 fi
3458
3459
3460 eval "$ac_cv_use_file"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_FILE" = yes; then
3466 echo "$ac_t""yes" 1>&6
3467 else
3468 echo "$ac_t""no" 1>&6
3469 fi
3470
3471
3472 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3473 echo "configure:3474: checking for --enable-ffile" >&5
3474 no_cache=0
3475 # Check whether --enable-ffile or --disable-ffile was given.
3476 if test "${enable_ffile+set}" = set; then
3477 enableval="$enable_ffile"
3478
3479 if test "$enableval" = yes; then
3480 ac_cv_use_ffile='wxUSE_FFILE=yes'
3481 else
3482 ac_cv_use_ffile='wxUSE_FFILE=no'
3483 fi
3484
3485 else
3486
3487 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3495
3496 fi
3497
3498
3499 eval "$ac_cv_use_ffile"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_FFILE" = yes; then
3505 echo "$ac_t""yes" 1>&6
3506 else
3507 echo "$ac_t""no" 1>&6
3508 fi
3509
3510
3511 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3512 echo "configure:3513: checking for --enable-textfile" >&5
3513 no_cache=0
3514 # Check whether --enable-textfile or --disable-textfile was given.
3515 if test "${enable_textfile+set}" = set; then
3516 enableval="$enable_textfile"
3517
3518 if test "$enableval" = yes; then
3519 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3520 else
3521 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3522 fi
3523
3524 else
3525
3526 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3534
3535 fi
3536
3537
3538 eval "$ac_cv_use_textfile"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_TEXTFILE" = yes; then
3544 echo "$ac_t""yes" 1>&6
3545 else
3546 echo "$ac_t""no" 1>&6
3547 fi
3548
3549
3550 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3551 echo "configure:3552: checking for --enable-fontmap" >&5
3552 no_cache=0
3553 # Check whether --enable-fontmap or --disable-fontmap was given.
3554 if test "${enable_fontmap+set}" = set; then
3555 enableval="$enable_fontmap"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3559 else
3560 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3561 fi
3562
3563 else
3564
3565 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3573
3574 fi
3575
3576
3577 eval "$ac_cv_use_fontmap"
3578 if test "$no_cache" != 1; then
3579 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3580 fi
3581
3582 if test "$wxUSE_FONTMAP" = yes; then
3583 echo "$ac_t""yes" 1>&6
3584 else
3585 echo "$ac_t""no" 1>&6
3586 fi
3587
3588
3589 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3590 echo "configure:3591: checking for --enable-unicode" >&5
3591 no_cache=0
3592 # Check whether --enable-unicode or --disable-unicode was given.
3593 if test "${enable_unicode+set}" = set; then
3594 enableval="$enable_unicode"
3595
3596 if test "$enableval" = yes; then
3597 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3598 else
3599 ac_cv_use_unicode='wxUSE_UNICODE=no'
3600 fi
3601
3602 else
3603
3604 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
3611 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3612
3613 fi
3614
3615
3616 eval "$ac_cv_use_unicode"
3617 if test "$no_cache" != 1; then
3618 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3619 fi
3620
3621 if test "$wxUSE_UNICODE" = yes; then
3622 echo "$ac_t""yes" 1>&6
3623 else
3624 echo "$ac_t""no" 1>&6
3625 fi
3626
3627
3628 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3629 echo "configure:3630: checking for --enable-wcsrtombs" >&5
3630 no_cache=0
3631 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3632 if test "${enable_wcsrtombs+set}" = set; then
3633 enableval="$enable_wcsrtombs"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3637 else
3638 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3639 fi
3640
3641 else
3642
3643 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3651
3652 fi
3653
3654
3655 eval "$ac_cv_use_wcsrtombs"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_WCSRTOMBS" = yes; then
3661 echo "$ac_t""yes" 1>&6
3662 else
3663 echo "$ac_t""no" 1>&6
3664 fi
3665
3666
3667 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3668 echo "configure:3669: checking for --enable-wxprintfv" >&5
3669 no_cache=0
3670 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3671 if test "${enable_wxprintfv+set}" = set; then
3672 enableval="$enable_wxprintfv"
3673
3674 if test "$enableval" = yes; then
3675 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3676 else
3677 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3678 fi
3679
3680 else
3681
3682 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3690
3691 fi
3692
3693
3694 eval "$ac_cv_use_wxprintfv"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3700 echo "$ac_t""yes" 1>&6
3701 else
3702 echo "$ac_t""no" 1>&6
3703 fi
3704
3705
3706 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3707 echo "configure:3708: checking for --enable-std_iostreams" >&5
3708 no_cache=0
3709 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3710 if test "${enable_std_iostreams+set}" = set; then
3711 enableval="$enable_std_iostreams"
3712
3713 if test "$enableval" = yes; then
3714 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3715 else
3716 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3717 fi
3718
3719 else
3720
3721 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3729
3730 fi
3731
3732
3733 eval "$ac_cv_use_std_iostreams"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_STD_IOSTREAM" = yes; then
3739 echo "$ac_t""yes" 1>&6
3740 else
3741 echo "$ac_t""no" 1>&6
3742 fi
3743
3744
3745 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3746 echo "configure:3747: checking for --enable-filesystem" >&5
3747 no_cache=0
3748 # Check whether --enable-filesystem or --disable-filesystem was given.
3749 if test "${enable_filesystem+set}" = set; then
3750 enableval="$enable_filesystem"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3754 else
3755 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3756 fi
3757
3758 else
3759
3760 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3768
3769 fi
3770
3771
3772 eval "$ac_cv_use_filesystem"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_FILESYSTEM" = yes; then
3778 echo "$ac_t""yes" 1>&6
3779 else
3780 echo "$ac_t""no" 1>&6
3781 fi
3782
3783
3784 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3785 echo "configure:3786: checking for --enable-fs_inet" >&5
3786 no_cache=0
3787 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3788 if test "${enable_fs_inet+set}" = set; then
3789 enableval="$enable_fs_inet"
3790
3791 if test "$enableval" = yes; then
3792 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3793 else
3794 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3795 fi
3796
3797 else
3798
3799 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3807
3808 fi
3809
3810
3811 eval "$ac_cv_use_fs_inet"
3812 if test "$no_cache" != 1; then
3813 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3814 fi
3815
3816 if test "$wxUSE_FS_INET" = yes; then
3817 echo "$ac_t""yes" 1>&6
3818 else
3819 echo "$ac_t""no" 1>&6
3820 fi
3821
3822
3823 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3824 echo "configure:3825: checking for --enable-fs_zip" >&5
3825 no_cache=0
3826 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3827 if test "${enable_fs_zip+set}" = set; then
3828 enableval="$enable_fs_zip"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3832 else
3833 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3834 fi
3835
3836 else
3837
3838 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3846
3847 fi
3848
3849
3850 eval "$ac_cv_use_fs_zip"
3851 if test "$no_cache" != 1; then
3852 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3853 fi
3854
3855 if test "$wxUSE_FS_ZIP" = yes; then
3856 echo "$ac_t""yes" 1>&6
3857 else
3858 echo "$ac_t""no" 1>&6
3859 fi
3860
3861
3862 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3863 echo "configure:3864: checking for --enable-zipstream" >&5
3864 no_cache=0
3865 # Check whether --enable-zipstream or --disable-zipstream was given.
3866 if test "${enable_zipstream+set}" = set; then
3867 enableval="$enable_zipstream"
3868
3869 if test "$enableval" = yes; then
3870 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3871 else
3872 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3873 fi
3874
3875 else
3876
3877 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3885
3886 fi
3887
3888
3889 eval "$ac_cv_use_zipstream"
3890 if test "$no_cache" != 1; then
3891 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3892 fi
3893
3894 if test "$wxUSE_ZIPSTREAM" = yes; then
3895 echo "$ac_t""yes" 1>&6
3896 else
3897 echo "$ac_t""no" 1>&6
3898 fi
3899
3900
3901
3902 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3903 echo "configure:3904: checking for --enable-catch_segvs" >&5
3904 no_cache=0
3905 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3906 if test "${enable_catch_segvs+set}" = set; then
3907 enableval="$enable_catch_segvs"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3911 else
3912 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3913 fi
3914
3915 else
3916
3917 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3925
3926 fi
3927
3928
3929 eval "$ac_cv_use_catch_segvs"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
3942 echo "configure:3943: checking for --enable-snglinst" >&5
3943 no_cache=0
3944 # Check whether --enable-snglinst or --disable-snglinst was given.
3945 if test "${enable_snglinst+set}" = set; then
3946 enableval="$enable_snglinst"
3947
3948 if test "$enableval" = yes; then
3949 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
3950 else
3951 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
3952 fi
3953
3954 else
3955
3956 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
3964
3965 fi
3966
3967
3968 eval "$ac_cv_use_snglinst"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
3974 echo "$ac_t""yes" 1>&6
3975 else
3976 echo "$ac_t""no" 1>&6
3977 fi
3978
3979
3980
3981 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3982 echo "configure:3983: checking for --enable-mimetype" >&5
3983 no_cache=0
3984 # Check whether --enable-mimetype or --disable-mimetype was given.
3985 if test "${enable_mimetype+set}" = set; then
3986 enableval="$enable_mimetype"
3987
3988 if test "$enableval" = yes; then
3989 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
3990 else
3991 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
3992 fi
3993
3994 else
3995
3996 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
3997 if test "x$LINE" != x ; then
3998 eval "DEFAULT_$LINE"
3999 else
4000 no_cache=1
4001 fi
4002
4003 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4004
4005 fi
4006
4007
4008 eval "$ac_cv_use_mimetype"
4009 if test "$no_cache" != 1; then
4010 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4011 fi
4012
4013 if test "$wxUSE_MIMETYPE" = yes; then
4014 echo "$ac_t""yes" 1>&6
4015 else
4016 echo "$ac_t""no" 1>&6
4017 fi
4018
4019
4020
4021
4022 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4023 echo "configure:4024: checking for --enable-threads" >&5
4024 no_cache=0
4025 # Check whether --enable-threads or --disable-threads was given.
4026 if test "${enable_threads+set}" = set; then
4027 enableval="$enable_threads"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_threads='wxUSE_THREADS=yes'
4031 else
4032 ac_cv_use_threads='wxUSE_THREADS=no'
4033 fi
4034
4035 else
4036
4037 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4045
4046 fi
4047
4048
4049 eval "$ac_cv_use_threads"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_THREADS" = yes; then
4055 echo "$ac_t""yes" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059
4060
4061 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4062 echo "configure:4063: checking for --enable-serial" >&5
4063 no_cache=0
4064 # Check whether --enable-serial or --disable-serial was given.
4065 if test "${enable_serial+set}" = set; then
4066 enableval="$enable_serial"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_serial='wxUSE_SERIAL=yes'
4070 else
4071 ac_cv_use_serial='wxUSE_SERIAL=no'
4072 fi
4073
4074 else
4075
4076 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4084
4085 fi
4086
4087
4088 eval "$ac_cv_use_serial"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_SERIAL" = yes; then
4094 echo "$ac_t""yes" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100 if test "$wxUSE_GUI" = "yes"; then
4101
4102
4103
4104 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4105 echo "configure:4106: checking for --enable-docview" >&5
4106 no_cache=0
4107 # Check whether --enable-docview or --disable-docview was given.
4108 if test "${enable_docview+set}" = set; then
4109 enableval="$enable_docview"
4110
4111 if test "$enableval" = yes; then
4112 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4113 else
4114 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4115 fi
4116
4117 else
4118
4119 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4120 if test "x$LINE" != x ; then
4121 eval "DEFAULT_$LINE"
4122 else
4123 no_cache=1
4124 fi
4125
4126 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4127
4128 fi
4129
4130
4131 eval "$ac_cv_use_docview"
4132 if test "$no_cache" != 1; then
4133 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4134 fi
4135
4136 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4137 echo "$ac_t""yes" 1>&6
4138 else
4139 echo "$ac_t""no" 1>&6
4140 fi
4141
4142
4143 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4144 echo "configure:4145: checking for --enable-help" >&5
4145 no_cache=0
4146 # Check whether --enable-help or --disable-help was given.
4147 if test "${enable_help+set}" = set; then
4148 enableval="$enable_help"
4149
4150 if test "$enableval" = yes; then
4151 ac_cv_use_help='wxUSE_HELP=yes'
4152 else
4153 ac_cv_use_help='wxUSE_HELP=no'
4154 fi
4155
4156 else
4157
4158 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4159 if test "x$LINE" != x ; then
4160 eval "DEFAULT_$LINE"
4161 else
4162 no_cache=1
4163 fi
4164
4165 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4166
4167 fi
4168
4169
4170 eval "$ac_cv_use_help"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_HELP" = yes; then
4176 echo "$ac_t""yes" 1>&6
4177 else
4178 echo "$ac_t""no" 1>&6
4179 fi
4180
4181
4182 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4183 echo "configure:4184: checking for --enable-constraints" >&5
4184 no_cache=0
4185 # Check whether --enable-constraints or --disable-constraints was given.
4186 if test "${enable_constraints+set}" = set; then
4187 enableval="$enable_constraints"
4188
4189 if test "$enableval" = yes; then
4190 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4191 else
4192 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4193 fi
4194
4195 else
4196
4197 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4205
4206 fi
4207
4208
4209 eval "$ac_cv_use_constraints"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_CONSTRAINTS" = yes; then
4215 echo "$ac_t""yes" 1>&6
4216 else
4217 echo "$ac_t""no" 1>&6
4218 fi
4219
4220
4221 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4222 echo "configure:4223: checking for --enable-printarch" >&5
4223 no_cache=0
4224 # Check whether --enable-printarch or --disable-printarch was given.
4225 if test "${enable_printarch+set}" = set; then
4226 enableval="$enable_printarch"
4227
4228 if test "$enableval" = yes; then
4229 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4230 else
4231 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4232 fi
4233
4234 else
4235
4236 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4237 if test "x$LINE" != x ; then
4238 eval "DEFAULT_$LINE"
4239 else
4240 no_cache=1
4241 fi
4242
4243 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4244
4245 fi
4246
4247
4248 eval "$ac_cv_use_printarch"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4254 echo "$ac_t""yes" 1>&6
4255 else
4256 echo "$ac_t""no" 1>&6
4257 fi
4258
4259
4260 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4261 echo "configure:4262: checking for --enable-mdi" >&5
4262 no_cache=0
4263 # Check whether --enable-mdi or --disable-mdi was given.
4264 if test "${enable_mdi+set}" = set; then
4265 enableval="$enable_mdi"
4266
4267 if test "$enableval" = yes; then
4268 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4269 else
4270 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4271 fi
4272
4273 else
4274
4275 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4276 if test "x$LINE" != x ; then
4277 eval "DEFAULT_$LINE"
4278 else
4279 no_cache=1
4280 fi
4281
4282 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4283
4284 fi
4285
4286
4287 eval "$ac_cv_use_mdi"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4293 echo "$ac_t""yes" 1>&6
4294 else
4295 echo "$ac_t""no" 1>&6
4296 fi
4297
4298
4299 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4300 echo "configure:4301: checking for --enable-loggui" >&5
4301 no_cache=0
4302 # Check whether --enable-loggui or --disable-loggui was given.
4303 if test "${enable_loggui+set}" = set; then
4304 enableval="$enable_loggui"
4305
4306 if test "$enableval" = yes; then
4307 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4308 else
4309 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4310 fi
4311
4312 else
4313
4314 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4322
4323 fi
4324
4325
4326 eval "$ac_cv_use_loggui"
4327 if test "$no_cache" != 1; then
4328 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4329 fi
4330
4331 if test "$wxUSE_LOGGUI" = yes; then
4332 echo "$ac_t""yes" 1>&6
4333 else
4334 echo "$ac_t""no" 1>&6
4335 fi
4336
4337
4338 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4339 echo "configure:4340: checking for --enable-logwin" >&5
4340 no_cache=0
4341 # Check whether --enable-logwin or --disable-logwin was given.
4342 if test "${enable_logwin+set}" = set; then
4343 enableval="$enable_logwin"
4344
4345 if test "$enableval" = yes; then
4346 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4347 else
4348 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4349 fi
4350
4351 else
4352
4353 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4354 if test "x$LINE" != x ; then
4355 eval "DEFAULT_$LINE"
4356 else
4357 no_cache=1
4358 fi
4359
4360 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4361
4362 fi
4363
4364
4365 eval "$ac_cv_use_logwin"
4366 if test "$no_cache" != 1; then
4367 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4368 fi
4369
4370 if test "$wxUSE_LOGWINDOW" = yes; then
4371 echo "$ac_t""yes" 1>&6
4372 else
4373 echo "$ac_t""no" 1>&6
4374 fi
4375
4376
4377
4378 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4379 echo "configure:4380: checking for --enable-postscript" >&5
4380 no_cache=0
4381 # Check whether --enable-postscript or --disable-postscript was given.
4382 if test "${enable_postscript+set}" = set; then
4383 enableval="$enable_postscript"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4387 else
4388 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4389 fi
4390
4391 else
4392
4393 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4401
4402 fi
4403
4404
4405 eval "$ac_cv_use_postscript"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_POSTSCRIPT" = yes; then
4411 echo "$ac_t""yes" 1>&6
4412 else
4413 echo "$ac_t""no" 1>&6
4414 fi
4415
4416
4417
4418
4419
4420 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4421 echo "configure:4422: checking for --enable-prologio" >&5
4422 no_cache=0
4423 # Check whether --enable-prologio or --disable-prologio was given.
4424 if test "${enable_prologio+set}" = set; then
4425 enableval="$enable_prologio"
4426
4427 if test "$enableval" = yes; then
4428 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4429 else
4430 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4431 fi
4432
4433 else
4434
4435 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4443
4444 fi
4445
4446
4447 eval "$ac_cv_use_prologio"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_PROLOGIO" = yes; then
4453 echo "$ac_t""yes" 1>&6
4454 else
4455 echo "$ac_t""no" 1>&6
4456 fi
4457
4458
4459 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4460 echo "configure:4461: checking for --enable-resources" >&5
4461 no_cache=0
4462 # Check whether --enable-resources or --disable-resources was given.
4463 if test "${enable_resources+set}" = set; then
4464 enableval="$enable_resources"
4465
4466 if test "$enableval" = yes; then
4467 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4468 else
4469 ac_cv_use_resources='wxUSE_RESOURCES=no'
4470 fi
4471
4472 else
4473
4474 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4482
4483 fi
4484
4485
4486 eval "$ac_cv_use_resources"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_RESOURCES" = yes; then
4492 echo "$ac_t""yes" 1>&6
4493 else
4494 echo "$ac_t""no" 1>&6
4495 fi
4496
4497
4498
4499 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4500 echo "configure:4501: checking for --enable-xresources" >&5
4501 no_cache=0
4502 # Check whether --enable-xresources or --disable-xresources was given.
4503 if test "${enable_xresources+set}" = set; then
4504 enableval="$enable_xresources"
4505
4506 if test "$enableval" = yes; then
4507 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4508 else
4509 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4510 fi
4511
4512 else
4513
4514 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4522
4523 fi
4524
4525
4526 eval "$ac_cv_use_xresources"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_X_RESOURCES" = yes; then
4532 echo "$ac_t""yes" 1>&6
4533 else
4534 echo "$ac_t""no" 1>&6
4535 fi
4536
4537
4538
4539
4540 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4541 echo "configure:4542: checking for --enable-clipboard" >&5
4542 no_cache=0
4543 # Check whether --enable-clipboard or --disable-clipboard was given.
4544 if test "${enable_clipboard+set}" = set; then
4545 enableval="$enable_clipboard"
4546
4547 if test "$enableval" = yes; then
4548 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4549 else
4550 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4551 fi
4552
4553 else
4554
4555 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4556 if test "x$LINE" != x ; then
4557 eval "DEFAULT_$LINE"
4558 else
4559 no_cache=1
4560 fi
4561
4562 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4563
4564 fi
4565
4566
4567 eval "$ac_cv_use_clipboard"
4568 if test "$no_cache" != 1; then
4569 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4570 fi
4571
4572 if test "$wxUSE_CLIPBOARD" = yes; then
4573 echo "$ac_t""yes" 1>&6
4574 else
4575 echo "$ac_t""no" 1>&6
4576 fi
4577
4578
4579 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4580 echo "configure:4581: checking for --enable-dnd" >&5
4581 no_cache=0
4582 # Check whether --enable-dnd or --disable-dnd was given.
4583 if test "${enable_dnd+set}" = set; then
4584 enableval="$enable_dnd"
4585
4586 if test "$enableval" = yes; then
4587 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4588 else
4589 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4590 fi
4591
4592 else
4593
4594 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4602
4603 fi
4604
4605
4606 eval "$ac_cv_use_dnd"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4612 echo "$ac_t""yes" 1>&6
4613 else
4614 echo "$ac_t""no" 1>&6
4615 fi
4616
4617
4618 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4619 echo "configure:4620: checking for --enable-metafile" >&5
4620 no_cache=0
4621 # Check whether --enable-metafile or --disable-metafile was given.
4622 if test "${enable_metafile+set}" = set; then
4623 enableval="$enable_metafile"
4624
4625 if test "$enableval" = yes; then
4626 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4627 else
4628 ac_cv_use_metafile='wxUSE_METAFILE=no'
4629 fi
4630
4631 else
4632
4633 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4634 if test "x$LINE" != x ; then
4635 eval "DEFAULT_$LINE"
4636 else
4637 no_cache=1
4638 fi
4639
4640 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4641
4642 fi
4643
4644
4645 eval "$ac_cv_use_metafile"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_METAFILE" = yes; then
4651 echo "$ac_t""yes" 1>&6
4652 else
4653 echo "$ac_t""no" 1>&6
4654 fi
4655
4656
4657
4658 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
4659 echo "configure:4660: checking for --enable-wxtree" >&5
4660 no_cache=0
4661 # Check whether --enable-wxtree or --disable-wxtree was given.
4662 if test "${enable_wxtree+set}" = set; then
4663 enableval="$enable_wxtree"
4664
4665 if test "$enableval" = yes; then
4666 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4667 else
4668 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4669 fi
4670
4671 else
4672
4673 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
4680 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4681
4682 fi
4683
4684
4685 eval "$ac_cv_use_wxtree"
4686 if test "$no_cache" != 1; then
4687 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4688 fi
4689
4690 if test "$wxUSE_WXTREE" = yes; then
4691 echo "$ac_t""yes" 1>&6
4692 else
4693 echo "$ac_t""no" 1>&6
4694 fi
4695
4696
4697
4698
4699 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4700 echo "configure:4701: checking for --enable-controls" >&5
4701 no_cache=0
4702 # Check whether --enable-controls or --disable-controls was given.
4703 if test "${enable_controls+set}" = set; then
4704 enableval="$enable_controls"
4705
4706 if test "$enableval" = yes; then
4707 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4708 else
4709 ac_cv_use_controls='wxUSE_CONTROLS=no'
4710 fi
4711
4712 else
4713
4714 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
4721 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4722
4723 fi
4724
4725
4726 eval "$ac_cv_use_controls"
4727 if test "$no_cache" != 1; then
4728 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4729 fi
4730
4731 if test "$wxUSE_CONTROLS" = yes; then
4732 echo "$ac_t""yes" 1>&6
4733 else
4734 echo "$ac_t""no" 1>&6
4735 fi
4736
4737
4738 if test "$wxUSE_CONTROLS" = "yes"; then
4739 DEFAULT_wxUSE_ACCEL=yes
4740 DEFAULT_wxUSE_BMPBUTTON=yes
4741 DEFAULT_wxUSE_BUTTON=yes
4742 DEFAULT_wxUSE_CALCTRL=no
4743 DEFAULT_wxUSE_CARET=yes
4744 DEFAULT_wxUSE_COMBOBOX=yes
4745 DEFAULT_wxUSE_CHECKBOX=yes
4746 DEFAULT_wxUSE_CHECKLISTBOX=yes
4747 DEFAULT_wxUSE_CHOICE=yes
4748 DEFAULT_wxUSE_GAUGE=yes
4749 DEFAULT_wxUSE_GRID=yes
4750 DEFAULT_wxUSE_NEW_GRID=yes
4751 DEFAULT_wxUSE_IMAGLIST=yes
4752 DEFAULT_wxUSE_LISTBOX=yes
4753 DEFAULT_wxUSE_LISTCTRL=yes
4754 DEFAULT_wxUSE_NOTEBOOK=yes
4755 DEFAULT_wxUSE_RADIOBOX=yes
4756 DEFAULT_wxUSE_RADIOBTN=yes
4757 DEFAULT_wxUSE_SASH=yes
4758 DEFAULT_wxUSE_SCROLLBAR=yes
4759 DEFAULT_wxUSE_SLIDER=yes
4760 DEFAULT_wxUSE_SPINBTN=yes
4761 DEFAULT_wxUSE_SPINCTRL=yes
4762 DEFAULT_wxUSE_SPLITTER=yes
4763 DEFAULT_wxUSE_STATBMP=yes
4764 DEFAULT_wxUSE_STATBOX=yes
4765 DEFAULT_wxUSE_STATLINE=yes
4766 DEFAULT_wxUSE_STATUSBAR=yes
4767 DEFAULT_wxUSE_TAB_DIALOG=yes
4768 DEFAULT_wxUSE_TOGGLEBTN=yes
4769 DEFAULT_wxUSE_TOOLBAR=yes
4770 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4771 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4772 DEFAULT_wxUSE_TOOLTIPS=yes
4773 DEFAULT_wxUSE_TREECTRL=yes
4774 elif test "$wxUSE_CONTROLS" = "no"; then
4775 DEFAULT_wxUSE_ACCEL=no
4776 DEFAULT_wxUSE_BMPBUTTON=no
4777 DEFAULT_wxUSE_BUTTON=no
4778 DEFAULT_wxUSE_CALCTRL=no
4779 DEFAULT_wxUSE_CARET=no
4780 DEFAULT_wxUSE_COMBOBOX=no
4781 DEFAULT_wxUSE_CHECKBOX=no
4782 DEFAULT_wxUSE_CHECKLISTBOX=no
4783 DEFAULT_wxUSE_CHOICE=no
4784 DEFAULT_wxUSE_GAUGE=no
4785 DEFAULT_wxUSE_GRID=no
4786 DEFAULT_wxUSE_NEW_GRID=no
4787 DEFAULT_wxUSE_IMAGLIST=no
4788 DEFAULT_wxUSE_LISTBOX=no
4789 DEFAULT_wxUSE_LISTCTRL=no
4790 DEFAULT_wxUSE_NOTEBOOK=no
4791 DEFAULT_wxUSE_RADIOBOX=no
4792 DEFAULT_wxUSE_RADIOBTN=no
4793 DEFAULT_wxUSE_SASH=no
4794 DEFAULT_wxUSE_SCROLLBAR=no
4795 DEFAULT_wxUSE_SLIDER=no
4796 DEFAULT_wxUSE_SPINBTN=no
4797 DEFAULT_wxUSE_SPINCTRL=no
4798 DEFAULT_wxUSE_SPLITTER=no
4799 DEFAULT_wxUSE_STATBMP=no
4800 DEFAULT_wxUSE_STATBOX=no
4801 DEFAULT_wxUSE_STATLINE=no
4802 DEFAULT_wxUSE_STATUSBAR=no
4803 DEFAULT_wxUSE_TAB_DIALOG=no
4804 DEFAULT_wxUSE_TOGGLEBTN=no
4805 DEFAULT_wxUSE_TOOLBAR=no
4806 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4807 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4808 DEFAULT_wxUSE_TOOLTIPS=no
4809 DEFAULT_wxUSE_TREECTRL=no
4810 fi
4811
4812
4813 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
4814 echo "configure:4815: checking for --enable-accel" >&5
4815 no_cache=0
4816 # Check whether --enable-accel or --disable-accel was given.
4817 if test "${enable_accel+set}" = set; then
4818 enableval="$enable_accel"
4819
4820 if test "$enableval" = yes; then
4821 ac_cv_use_accel='wxUSE_ACCEL=yes'
4822 else
4823 ac_cv_use_accel='wxUSE_ACCEL=no'
4824 fi
4825
4826 else
4827
4828 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4829 if test "x$LINE" != x ; then
4830 eval "DEFAULT_$LINE"
4831 else
4832 no_cache=1
4833 fi
4834
4835 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4836
4837 fi
4838
4839
4840 eval "$ac_cv_use_accel"
4841 if test "$no_cache" != 1; then
4842 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4843 fi
4844
4845 if test "$wxUSE_ACCEL" = yes; then
4846 echo "$ac_t""yes" 1>&6
4847 else
4848 echo "$ac_t""no" 1>&6
4849 fi
4850
4851
4852 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
4853 echo "configure:4854: checking for --enable-button" >&5
4854 no_cache=0
4855 # Check whether --enable-button or --disable-button was given.
4856 if test "${enable_button+set}" = set; then
4857 enableval="$enable_button"
4858
4859 if test "$enableval" = yes; then
4860 ac_cv_use_button='wxUSE_BUTTON=yes'
4861 else
4862 ac_cv_use_button='wxUSE_BUTTON=no'
4863 fi
4864
4865 else
4866
4867 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
4868 if test "x$LINE" != x ; then
4869 eval "DEFAULT_$LINE"
4870 else
4871 no_cache=1
4872 fi
4873
4874 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
4875
4876 fi
4877
4878
4879 eval "$ac_cv_use_button"
4880 if test "$no_cache" != 1; then
4881 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
4882 fi
4883
4884 if test "$wxUSE_BUTTON" = yes; then
4885 echo "$ac_t""yes" 1>&6
4886 else
4887 echo "$ac_t""no" 1>&6
4888 fi
4889
4890
4891 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
4892 echo "configure:4893: checking for --enable-bmpbutton" >&5
4893 no_cache=0
4894 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4895 if test "${enable_bmpbutton+set}" = set; then
4896 enableval="$enable_bmpbutton"
4897
4898 if test "$enableval" = yes; then
4899 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4900 else
4901 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4902 fi
4903
4904 else
4905
4906 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4907 if test "x$LINE" != x ; then
4908 eval "DEFAULT_$LINE"
4909 else
4910 no_cache=1
4911 fi
4912
4913 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4914
4915 fi
4916
4917
4918 eval "$ac_cv_use_bmpbutton"
4919 if test "$no_cache" != 1; then
4920 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4921 fi
4922
4923 if test "$wxUSE_BMPBUTTON" = yes; then
4924 echo "$ac_t""yes" 1>&6
4925 else
4926 echo "$ac_t""no" 1>&6
4927 fi
4928
4929
4930 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
4931 echo "configure:4932: checking for --enable-calendar" >&5
4932 no_cache=0
4933 # Check whether --enable-calendar or --disable-calendar was given.
4934 if test "${enable_calendar+set}" = set; then
4935 enableval="$enable_calendar"
4936
4937 if test "$enableval" = yes; then
4938 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
4939 else
4940 ac_cv_use_calendar='wxUSE_CALCTRL=no'
4941 fi
4942
4943 else
4944
4945 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
4946 if test "x$LINE" != x ; then
4947 eval "DEFAULT_$LINE"
4948 else
4949 no_cache=1
4950 fi
4951
4952 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
4953
4954 fi
4955
4956
4957 eval "$ac_cv_use_calendar"
4958 if test "$no_cache" != 1; then
4959 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
4960 fi
4961
4962 if test "$wxUSE_CALCTRL" = yes; then
4963 echo "$ac_t""yes" 1>&6
4964 else
4965 echo "$ac_t""no" 1>&6
4966 fi
4967
4968
4969 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
4970 echo "configure:4971: checking for --enable-caret" >&5
4971 no_cache=0
4972 # Check whether --enable-caret or --disable-caret was given.
4973 if test "${enable_caret+set}" = set; then
4974 enableval="$enable_caret"
4975
4976 if test "$enableval" = yes; then
4977 ac_cv_use_caret='wxUSE_CARET=yes'
4978 else
4979 ac_cv_use_caret='wxUSE_CARET=no'
4980 fi
4981
4982 else
4983
4984 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
4991 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4992
4993 fi
4994
4995
4996 eval "$ac_cv_use_caret"
4997 if test "$no_cache" != 1; then
4998 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4999 fi
5000
5001 if test "$wxUSE_CARET" = yes; then
5002 echo "$ac_t""yes" 1>&6
5003 else
5004 echo "$ac_t""no" 1>&6
5005 fi
5006
5007
5008 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5009 echo "configure:5010: checking for --enable-checkbox" >&5
5010 no_cache=0
5011 # Check whether --enable-checkbox or --disable-checkbox was given.
5012 if test "${enable_checkbox+set}" = set; then
5013 enableval="$enable_checkbox"
5014
5015 if test "$enableval" = yes; then
5016 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5017 else
5018 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5019 fi
5020
5021 else
5022
5023 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5024 if test "x$LINE" != x ; then
5025 eval "DEFAULT_$LINE"
5026 else
5027 no_cache=1
5028 fi
5029
5030 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5031
5032 fi
5033
5034
5035 eval "$ac_cv_use_checkbox"
5036 if test "$no_cache" != 1; then
5037 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5038 fi
5039
5040 if test "$wxUSE_CHECKBOX" = yes; then
5041 echo "$ac_t""yes" 1>&6
5042 else
5043 echo "$ac_t""no" 1>&6
5044 fi
5045
5046
5047 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5048 echo "configure:5049: checking for --enable-checklst" >&5
5049 no_cache=0
5050 # Check whether --enable-checklst or --disable-checklst was given.
5051 if test "${enable_checklst+set}" = set; then
5052 enableval="$enable_checklst"
5053
5054 if test "$enableval" = yes; then
5055 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5056 else
5057 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5058 fi
5059
5060 else
5061
5062 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5063 if test "x$LINE" != x ; then
5064 eval "DEFAULT_$LINE"
5065 else
5066 no_cache=1
5067 fi
5068
5069 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5070
5071 fi
5072
5073
5074 eval "$ac_cv_use_checklst"
5075 if test "$no_cache" != 1; then
5076 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5077 fi
5078
5079 if test "$wxUSE_CHECKLST" = yes; then
5080 echo "$ac_t""yes" 1>&6
5081 else
5082 echo "$ac_t""no" 1>&6
5083 fi
5084
5085
5086 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5087 echo "configure:5088: checking for --enable-choice" >&5
5088 no_cache=0
5089 # Check whether --enable-choice or --disable-choice was given.
5090 if test "${enable_choice+set}" = set; then
5091 enableval="$enable_choice"
5092
5093 if test "$enableval" = yes; then
5094 ac_cv_use_choice='wxUSE_CHOICE=yes'
5095 else
5096 ac_cv_use_choice='wxUSE_CHOICE=no'
5097 fi
5098
5099 else
5100
5101 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5109
5110 fi
5111
5112
5113 eval "$ac_cv_use_choice"
5114 if test "$no_cache" != 1; then
5115 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5116 fi
5117
5118 if test "$wxUSE_CHOICE" = yes; then
5119 echo "$ac_t""yes" 1>&6
5120 else
5121 echo "$ac_t""no" 1>&6
5122 fi
5123
5124
5125 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5126 echo "configure:5127: checking for --enable-combobox" >&5
5127 no_cache=0
5128 # Check whether --enable-combobox or --disable-combobox was given.
5129 if test "${enable_combobox+set}" = set; then
5130 enableval="$enable_combobox"
5131
5132 if test "$enableval" = yes; then
5133 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5134 else
5135 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5136 fi
5137
5138 else
5139
5140 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5141 if test "x$LINE" != x ; then
5142 eval "DEFAULT_$LINE"
5143 else
5144 no_cache=1
5145 fi
5146
5147 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5148
5149 fi
5150
5151
5152 eval "$ac_cv_use_combobox"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_COMBOBOX" = yes; then
5158 echo "$ac_t""yes" 1>&6
5159 else
5160 echo "$ac_t""no" 1>&6
5161 fi
5162
5163
5164 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5165 echo "configure:5166: checking for --enable-gauge" >&5
5166 no_cache=0
5167 # Check whether --enable-gauge or --disable-gauge was given.
5168 if test "${enable_gauge+set}" = set; then
5169 enableval="$enable_gauge"
5170
5171 if test "$enableval" = yes; then
5172 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5173 else
5174 ac_cv_use_gauge='wxUSE_GAUGE=no'
5175 fi
5176
5177 else
5178
5179 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
5186 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5187
5188 fi
5189
5190
5191 eval "$ac_cv_use_gauge"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_GAUGE" = yes; then
5197 echo "$ac_t""yes" 1>&6
5198 else
5199 echo "$ac_t""no" 1>&6
5200 fi
5201
5202
5203 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5204 echo "configure:5205: checking for --enable-grid" >&5
5205 no_cache=0
5206 # Check whether --enable-grid or --disable-grid was given.
5207 if test "${enable_grid+set}" = set; then
5208 enableval="$enable_grid"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_grid='wxUSE_GRID=yes'
5212 else
5213 ac_cv_use_grid='wxUSE_GRID=no'
5214 fi
5215
5216 else
5217
5218 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5226
5227 fi
5228
5229
5230 eval "$ac_cv_use_grid"
5231 if test "$no_cache" != 1; then
5232 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5233 fi
5234
5235 if test "$wxUSE_GRID" = yes; then
5236 echo "$ac_t""yes" 1>&6
5237 else
5238 echo "$ac_t""no" 1>&6
5239 fi
5240
5241
5242 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5243 echo "configure:5244: checking for --enable-newgrid" >&5
5244 no_cache=0
5245 # Check whether --enable-newgrid or --disable-newgrid was given.
5246 if test "${enable_newgrid+set}" = set; then
5247 enableval="$enable_newgrid"
5248
5249 if test "$enableval" = yes; then
5250 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5251 else
5252 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5253 fi
5254
5255 else
5256
5257 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5258 if test "x$LINE" != x ; then
5259 eval "DEFAULT_$LINE"
5260 else
5261 no_cache=1
5262 fi
5263
5264 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5265
5266 fi
5267
5268
5269 eval "$ac_cv_use_newgrid"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_NEW_GRID" = yes; then
5275 echo "$ac_t""yes" 1>&6
5276 else
5277 echo "$ac_t""no" 1>&6
5278 fi
5279
5280
5281 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5282 echo "configure:5283: checking for --enable-imaglist" >&5
5283 no_cache=0
5284 # Check whether --enable-imaglist or --disable-imaglist was given.
5285 if test "${enable_imaglist+set}" = set; then
5286 enableval="$enable_imaglist"
5287
5288 if test "$enableval" = yes; then
5289 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5290 else
5291 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5292 fi
5293
5294 else
5295
5296 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5304
5305 fi
5306
5307
5308 eval "$ac_cv_use_imaglist"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_IMAGLIST" = yes; then
5314 echo "$ac_t""yes" 1>&6
5315 else
5316 echo "$ac_t""no" 1>&6
5317 fi
5318
5319
5320 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5321 echo "configure:5322: checking for --enable-listbox" >&5
5322 no_cache=0
5323 # Check whether --enable-listbox or --disable-listbox was given.
5324 if test "${enable_listbox+set}" = set; then
5325 enableval="$enable_listbox"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5329 else
5330 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5331 fi
5332
5333 else
5334
5335 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5343
5344 fi
5345
5346
5347 eval "$ac_cv_use_listbox"
5348 if test "$no_cache" != 1; then
5349 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5350 fi
5351
5352 if test "$wxUSE_LISTBOX" = yes; then
5353 echo "$ac_t""yes" 1>&6
5354 else
5355 echo "$ac_t""no" 1>&6
5356 fi
5357
5358
5359 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5360 echo "configure:5361: checking for --enable-listctrl" >&5
5361 no_cache=0
5362 # Check whether --enable-listctrl or --disable-listctrl was given.
5363 if test "${enable_listctrl+set}" = set; then
5364 enableval="$enable_listctrl"
5365
5366 if test "$enableval" = yes; then
5367 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5368 else
5369 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5370 fi
5371
5372 else
5373
5374 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5382
5383 fi
5384
5385
5386 eval "$ac_cv_use_listctrl"
5387 if test "$no_cache" != 1; then
5388 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5389 fi
5390
5391 if test "$wxUSE_LISTCTRL" = yes; then
5392 echo "$ac_t""yes" 1>&6
5393 else
5394 echo "$ac_t""no" 1>&6
5395 fi
5396
5397
5398 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5399 echo "configure:5400: checking for --enable-notebook" >&5
5400 no_cache=0
5401 # Check whether --enable-notebook or --disable-notebook was given.
5402 if test "${enable_notebook+set}" = set; then
5403 enableval="$enable_notebook"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5407 else
5408 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5409 fi
5410
5411 else
5412
5413 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5421
5422 fi
5423
5424
5425 eval "$ac_cv_use_notebook"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_NOTEBOOK" = yes; then
5431 echo "$ac_t""yes" 1>&6
5432 else
5433 echo "$ac_t""no" 1>&6
5434 fi
5435
5436
5437 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5438 echo "configure:5439: checking for --enable-radiobox" >&5
5439 no_cache=0
5440 # Check whether --enable-radiobox or --disable-radiobox was given.
5441 if test "${enable_radiobox+set}" = set; then
5442 enableval="$enable_radiobox"
5443
5444 if test "$enableval" = yes; then
5445 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5446 else
5447 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5448 fi
5449
5450 else
5451
5452 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5460
5461 fi
5462
5463
5464 eval "$ac_cv_use_radiobox"
5465 if test "$no_cache" != 1; then
5466 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5467 fi
5468
5469 if test "$wxUSE_RADIOBOX" = yes; then
5470 echo "$ac_t""yes" 1>&6
5471 else
5472 echo "$ac_t""no" 1>&6
5473 fi
5474
5475
5476 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5477 echo "configure:5478: checking for --enable-radiobtn" >&5
5478 no_cache=0
5479 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5480 if test "${enable_radiobtn+set}" = set; then
5481 enableval="$enable_radiobtn"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5485 else
5486 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5487 fi
5488
5489 else
5490
5491 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5499
5500 fi
5501
5502
5503 eval "$ac_cv_use_radiobtn"
5504 if test "$no_cache" != 1; then
5505 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5506 fi
5507
5508 if test "$wxUSE_RADIOBTN" = yes; then
5509 echo "$ac_t""yes" 1>&6
5510 else
5511 echo "$ac_t""no" 1>&6
5512 fi
5513
5514
5515 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5516 echo "configure:5517: checking for --enable-sash" >&5
5517 no_cache=0
5518 # Check whether --enable-sash or --disable-sash was given.
5519 if test "${enable_sash+set}" = set; then
5520 enableval="$enable_sash"
5521
5522 if test "$enableval" = yes; then
5523 ac_cv_use_sash='wxUSE_SASH=yes'
5524 else
5525 ac_cv_use_sash='wxUSE_SASH=no'
5526 fi
5527
5528 else
5529
5530 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5531 if test "x$LINE" != x ; then
5532 eval "DEFAULT_$LINE"
5533 else
5534 no_cache=1
5535 fi
5536
5537 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5538
5539 fi
5540
5541
5542 eval "$ac_cv_use_sash"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_SASH" = yes; then
5548 echo "$ac_t""yes" 1>&6
5549 else
5550 echo "$ac_t""no" 1>&6
5551 fi
5552
5553
5554 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5555 echo "configure:5556: checking for --enable-scrollbar" >&5
5556 no_cache=0
5557 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5558 if test "${enable_scrollbar+set}" = set; then
5559 enableval="$enable_scrollbar"
5560
5561 if test "$enableval" = yes; then
5562 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5563 else
5564 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5565 fi
5566
5567 else
5568
5569 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5570 if test "x$LINE" != x ; then
5571 eval "DEFAULT_$LINE"
5572 else
5573 no_cache=1
5574 fi
5575
5576 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5577
5578 fi
5579
5580
5581 eval "$ac_cv_use_scrollbar"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_SCROLLBAR" = yes; then
5587 echo "$ac_t""yes" 1>&6
5588 else
5589 echo "$ac_t""no" 1>&6
5590 fi
5591
5592
5593 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5594 echo "configure:5595: checking for --enable-slider" >&5
5595 no_cache=0
5596 # Check whether --enable-slider or --disable-slider was given.
5597 if test "${enable_slider+set}" = set; then
5598 enableval="$enable_slider"
5599
5600 if test "$enableval" = yes; then
5601 ac_cv_use_slider='wxUSE_SLIDER=yes'
5602 else
5603 ac_cv_use_slider='wxUSE_SLIDER=no'
5604 fi
5605
5606 else
5607
5608 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
5615 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5616
5617 fi
5618
5619
5620 eval "$ac_cv_use_slider"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_SLIDER" = yes; then
5626 echo "$ac_t""yes" 1>&6
5627 else
5628 echo "$ac_t""no" 1>&6
5629 fi
5630
5631
5632 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5633 echo "configure:5634: checking for --enable-spinbtn" >&5
5634 no_cache=0
5635 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5636 if test "${enable_spinbtn+set}" = set; then
5637 enableval="$enable_spinbtn"
5638
5639 if test "$enableval" = yes; then
5640 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5641 else
5642 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5643 fi
5644
5645 else
5646
5647 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5655
5656 fi
5657
5658
5659 eval "$ac_cv_use_spinbtn"
5660 if test "$no_cache" != 1; then
5661 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5662 fi
5663
5664 if test "$wxUSE_SPINBTN" = yes; then
5665 echo "$ac_t""yes" 1>&6
5666 else
5667 echo "$ac_t""no" 1>&6
5668 fi
5669
5670
5671 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5672 echo "configure:5673: checking for --enable-spinctrl" >&5
5673 no_cache=0
5674 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5675 if test "${enable_spinctrl+set}" = set; then
5676 enableval="$enable_spinctrl"
5677
5678 if test "$enableval" = yes; then
5679 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5680 else
5681 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5682 fi
5683
5684 else
5685
5686 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5687 if test "x$LINE" != x ; then
5688 eval "DEFAULT_$LINE"
5689 else
5690 no_cache=1
5691 fi
5692
5693 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5694
5695 fi
5696
5697
5698 eval "$ac_cv_use_spinctrl"
5699 if test "$no_cache" != 1; then
5700 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5701 fi
5702
5703 if test "$wxUSE_SPINCTRL" = yes; then
5704 echo "$ac_t""yes" 1>&6
5705 else
5706 echo "$ac_t""no" 1>&6
5707 fi
5708
5709
5710 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
5711 echo "configure:5712: checking for --enable-splitter" >&5
5712 no_cache=0
5713 # Check whether --enable-splitter or --disable-splitter was given.
5714 if test "${enable_splitter+set}" = set; then
5715 enableval="$enable_splitter"
5716
5717 if test "$enableval" = yes; then
5718 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5719 else
5720 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5721 fi
5722
5723 else
5724
5725 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5726 if test "x$LINE" != x ; then
5727 eval "DEFAULT_$LINE"
5728 else
5729 no_cache=1
5730 fi
5731
5732 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5733
5734 fi
5735
5736
5737 eval "$ac_cv_use_splitter"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_SPLITTER" = yes; then
5743 echo "$ac_t""yes" 1>&6
5744 else
5745 echo "$ac_t""no" 1>&6
5746 fi
5747
5748
5749 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
5750 echo "configure:5751: checking for --enable-statbmp" >&5
5751 no_cache=0
5752 # Check whether --enable-statbmp or --disable-statbmp was given.
5753 if test "${enable_statbmp+set}" = set; then
5754 enableval="$enable_statbmp"
5755
5756 if test "$enableval" = yes; then
5757 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5758 else
5759 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5760 fi
5761
5762 else
5763
5764 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5765 if test "x$LINE" != x ; then
5766 eval "DEFAULT_$LINE"
5767 else
5768 no_cache=1
5769 fi
5770
5771 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5772
5773 fi
5774
5775
5776 eval "$ac_cv_use_statbmp"
5777 if test "$no_cache" != 1; then
5778 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5779 fi
5780
5781 if test "$wxUSE_STATBMP" = yes; then
5782 echo "$ac_t""yes" 1>&6
5783 else
5784 echo "$ac_t""no" 1>&6
5785 fi
5786
5787
5788 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
5789 echo "configure:5790: checking for --enable-statbox" >&5
5790 no_cache=0
5791 # Check whether --enable-statbox or --disable-statbox was given.
5792 if test "${enable_statbox+set}" = set; then
5793 enableval="$enable_statbox"
5794
5795 if test "$enableval" = yes; then
5796 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5797 else
5798 ac_cv_use_statbox='wxUSE_STATBOX=no'
5799 fi
5800
5801 else
5802
5803 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5811
5812 fi
5813
5814
5815 eval "$ac_cv_use_statbox"
5816 if test "$no_cache" != 1; then
5817 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5818 fi
5819
5820 if test "$wxUSE_STATBOX" = yes; then
5821 echo "$ac_t""yes" 1>&6
5822 else
5823 echo "$ac_t""no" 1>&6
5824 fi
5825
5826
5827 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
5828 echo "configure:5829: checking for --enable-statline" >&5
5829 no_cache=0
5830 # Check whether --enable-statline or --disable-statline was given.
5831 if test "${enable_statline+set}" = set; then
5832 enableval="$enable_statline"
5833
5834 if test "$enableval" = yes; then
5835 ac_cv_use_statline='wxUSE_STATLINE=yes'
5836 else
5837 ac_cv_use_statline='wxUSE_STATLINE=no'
5838 fi
5839
5840 else
5841
5842 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5850
5851 fi
5852
5853
5854 eval "$ac_cv_use_statline"
5855 if test "$no_cache" != 1; then
5856 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5857 fi
5858
5859 if test "$wxUSE_STATLINE" = yes; then
5860 echo "$ac_t""yes" 1>&6
5861 else
5862 echo "$ac_t""no" 1>&6
5863 fi
5864
5865
5866 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
5867 echo "configure:5868: checking for --enable-stattext" >&5
5868 no_cache=0
5869 # Check whether --enable-stattext or --disable-stattext was given.
5870 if test "${enable_stattext+set}" = set; then
5871 enableval="$enable_stattext"
5872
5873 if test "$enableval" = yes; then
5874 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5875 else
5876 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5877 fi
5878
5879 else
5880
5881 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5889
5890 fi
5891
5892
5893 eval "$ac_cv_use_stattext"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_STATTEXT" = yes; then
5899 echo "$ac_t""yes" 1>&6
5900 else
5901 echo "$ac_t""no" 1>&6
5902 fi
5903
5904
5905 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
5906 echo "configure:5907: checking for --enable-statusbar" >&5
5907 no_cache=0
5908 # Check whether --enable-statusbar or --disable-statusbar was given.
5909 if test "${enable_statusbar+set}" = set; then
5910 enableval="$enable_statusbar"
5911
5912 if test "$enableval" = yes; then
5913 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5914 else
5915 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5916 fi
5917
5918 else
5919
5920 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5928
5929 fi
5930
5931
5932 eval "$ac_cv_use_statusbar"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_STATUSBAR" = yes; then
5938 echo "$ac_t""yes" 1>&6
5939 else
5940 echo "$ac_t""no" 1>&6
5941 fi
5942
5943
5944 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
5945 echo "configure:5946: checking for --enable-tabdialog" >&5
5946 no_cache=0
5947 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5948 if test "${enable_tabdialog+set}" = set; then
5949 enableval="$enable_tabdialog"
5950
5951 if test "$enableval" = yes; then
5952 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5953 else
5954 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5955 fi
5956
5957 else
5958
5959 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5967
5968 fi
5969
5970
5971 eval "$ac_cv_use_tabdialog"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_TABDIALOG" = yes; then
5977 echo "$ac_t""yes" 1>&6
5978 else
5979 echo "$ac_t""no" 1>&6
5980 fi
5981
5982
5983 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
5984 echo "configure:5985: checking for --enable-textctrl" >&5
5985 no_cache=0
5986 # Check whether --enable-textctrl or --disable-textctrl was given.
5987 if test "${enable_textctrl+set}" = set; then
5988 enableval="$enable_textctrl"
5989
5990 if test "$enableval" = yes; then
5991 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
5992 else
5993 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
5994 fi
5995
5996 else
5997
5998 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6006
6007 fi
6008
6009
6010 eval "$ac_cv_use_textctrl"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_TEXTCTRL" = yes; then
6016 echo "$ac_t""yes" 1>&6
6017 else
6018 echo "$ac_t""no" 1>&6
6019 fi
6020
6021
6022 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6023 echo "configure:6024: checking for --enable-togglebtn" >&5
6024 no_cache=0
6025 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6026 if test "${enable_togglebtn+set}" = set; then
6027 enableval="$enable_togglebtn"
6028
6029 if test "$enableval" = yes; then
6030 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6031 else
6032 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6033 fi
6034
6035 else
6036
6037 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6038 if test "x$LINE" != x ; then
6039 eval "DEFAULT_$LINE"
6040 else
6041 no_cache=1
6042 fi
6043
6044 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6045
6046 fi
6047
6048
6049 eval "$ac_cv_use_togglebtn"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_TOGGLEBTN" = yes; then
6055 echo "$ac_t""yes" 1>&6
6056 else
6057 echo "$ac_t""no" 1>&6
6058 fi
6059
6060
6061 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6062 echo "configure:6063: checking for --enable-toolbar" >&5
6063 no_cache=0
6064 # Check whether --enable-toolbar or --disable-toolbar was given.
6065 if test "${enable_toolbar+set}" = set; then
6066 enableval="$enable_toolbar"
6067
6068 if test "$enableval" = yes; then
6069 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6070 else
6071 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6072 fi
6073
6074 else
6075
6076 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
6083 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6084
6085 fi
6086
6087
6088 eval "$ac_cv_use_toolbar"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_TOOLBAR" = yes; then
6094 echo "$ac_t""yes" 1>&6
6095 else
6096 echo "$ac_t""no" 1>&6
6097 fi
6098
6099
6100 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6101 echo "configure:6102: checking for --enable-tbarnative" >&5
6102 no_cache=0
6103 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6104 if test "${enable_tbarnative+set}" = set; then
6105 enableval="$enable_tbarnative"
6106
6107 if test "$enableval" = yes; then
6108 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6109 else
6110 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6111 fi
6112
6113 else
6114
6115 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6116 if test "x$LINE" != x ; then
6117 eval "DEFAULT_$LINE"
6118 else
6119 no_cache=1
6120 fi
6121
6122 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6123
6124 fi
6125
6126
6127 eval "$ac_cv_use_tbarnative"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6133 echo "$ac_t""yes" 1>&6
6134 else
6135 echo "$ac_t""no" 1>&6
6136 fi
6137
6138
6139 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6140 echo "configure:6141: checking for --enable-tbarsmpl" >&5
6141 no_cache=0
6142 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6143 if test "${enable_tbarsmpl+set}" = set; then
6144 enableval="$enable_tbarsmpl"
6145
6146 if test "$enableval" = yes; then
6147 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6148 else
6149 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6150 fi
6151
6152 else
6153
6154 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6155 if test "x$LINE" != x ; then
6156 eval "DEFAULT_$LINE"
6157 else
6158 no_cache=1
6159 fi
6160
6161 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6162
6163 fi
6164
6165
6166 eval "$ac_cv_use_tbarsmpl"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6172 echo "$ac_t""yes" 1>&6
6173 else
6174 echo "$ac_t""no" 1>&6
6175 fi
6176
6177
6178 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6179 echo "configure:6180: checking for --enable-treectrl" >&5
6180 no_cache=0
6181 # Check whether --enable-treectrl or --disable-treectrl was given.
6182 if test "${enable_treectrl+set}" = set; then
6183 enableval="$enable_treectrl"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6187 else
6188 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6189 fi
6190
6191 else
6192
6193 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6201
6202 fi
6203
6204
6205 eval "$ac_cv_use_treectrl"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_TREECTRL" = yes; then
6211 echo "$ac_t""yes" 1>&6
6212 else
6213 echo "$ac_t""no" 1>&6
6214 fi
6215
6216
6217
6218
6219 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6220 echo "configure:6221: checking for --enable-commondlg" >&5
6221 no_cache=0
6222 # Check whether --enable-commondlg or --disable-commondlg was given.
6223 if test "${enable_commondlg+set}" = set; then
6224 enableval="$enable_commondlg"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6228 else
6229 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6230 fi
6231
6232 else
6233
6234 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6242
6243 fi
6244
6245
6246 eval "$ac_cv_use_commondlg"
6247 if test "$no_cache" != 1; then
6248 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6249 fi
6250
6251 if test "$wxUSE_COMMONDLGS" = yes; then
6252 echo "$ac_t""yes" 1>&6
6253 else
6254 echo "$ac_t""no" 1>&6
6255 fi
6256
6257
6258 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6259 echo "configure:6260: checking for --enable-choicedlg" >&5
6260 no_cache=0
6261 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6262 if test "${enable_choicedlg+set}" = set; then
6263 enableval="$enable_choicedlg"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6267 else
6268 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6269 fi
6270
6271 else
6272
6273 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6281
6282 fi
6283
6284
6285 eval "$ac_cv_use_choicedlg"
6286 if test "$no_cache" != 1; then
6287 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6288 fi
6289
6290 if test "$wxUSE_CHOICEDLG" = yes; then
6291 echo "$ac_t""yes" 1>&6
6292 else
6293 echo "$ac_t""no" 1>&6
6294 fi
6295
6296
6297 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6298 echo "configure:6299: checking for --enable-coldlg" >&5
6299 no_cache=0
6300 # Check whether --enable-coldlg or --disable-coldlg was given.
6301 if test "${enable_coldlg+set}" = set; then
6302 enableval="$enable_coldlg"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6306 else
6307 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6308 fi
6309
6310 else
6311
6312 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6320
6321 fi
6322
6323
6324 eval "$ac_cv_use_coldlg"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_COLOURDLG" = yes; then
6330 echo "$ac_t""yes" 1>&6
6331 else
6332 echo "$ac_t""no" 1>&6
6333 fi
6334
6335
6336 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6337 echo "configure:6338: checking for --enable-filedlg" >&5
6338 no_cache=0
6339 # Check whether --enable-filedlg or --disable-filedlg was given.
6340 if test "${enable_filedlg+set}" = set; then
6341 enableval="$enable_filedlg"
6342
6343 if test "$enableval" = yes; then
6344 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6345 else
6346 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6347 fi
6348
6349 else
6350
6351 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6352 if test "x$LINE" != x ; then
6353 eval "DEFAULT_$LINE"
6354 else
6355 no_cache=1
6356 fi
6357
6358 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6359
6360 fi
6361
6362
6363 eval "$ac_cv_use_filedlg"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6366 fi
6367
6368 if test "$wxUSE_FILEDLG" = yes; then
6369 echo "$ac_t""yes" 1>&6
6370 else
6371 echo "$ac_t""no" 1>&6
6372 fi
6373
6374
6375 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6376 echo "configure:6377: checking for --enable-fontdlg" >&5
6377 no_cache=0
6378 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6379 if test "${enable_fontdlg+set}" = set; then
6380 enableval="$enable_fontdlg"
6381
6382 if test "$enableval" = yes; then
6383 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6384 else
6385 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6386 fi
6387
6388 else
6389
6390 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6391 if test "x$LINE" != x ; then
6392 eval "DEFAULT_$LINE"
6393 else
6394 no_cache=1
6395 fi
6396
6397 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6398
6399 fi
6400
6401
6402 eval "$ac_cv_use_fontdlg"
6403 if test "$no_cache" != 1; then
6404 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6405 fi
6406
6407 if test "$wxUSE_FONTDLG" = yes; then
6408 echo "$ac_t""yes" 1>&6
6409 else
6410 echo "$ac_t""no" 1>&6
6411 fi
6412
6413
6414 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6415 echo "configure:6416: checking for --enable-dirdlg" >&5
6416 no_cache=0
6417 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6418 if test "${enable_dirdlg+set}" = set; then
6419 enableval="$enable_dirdlg"
6420
6421 if test "$enableval" = yes; then
6422 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6423 else
6424 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6425 fi
6426
6427 else
6428
6429 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6430 if test "x$LINE" != x ; then
6431 eval "DEFAULT_$LINE"
6432 else
6433 no_cache=1
6434 fi
6435
6436 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6437
6438 fi
6439
6440
6441 eval "$ac_cv_use_dirdlg"
6442 if test "$no_cache" != 1; then
6443 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6444 fi
6445
6446 if test "$wxUSE_DIRDLG" = yes; then
6447 echo "$ac_t""yes" 1>&6
6448 else
6449 echo "$ac_t""no" 1>&6
6450 fi
6451
6452
6453 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6454 echo "configure:6455: checking for --enable-msgdlg" >&5
6455 no_cache=0
6456 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6457 if test "${enable_msgdlg+set}" = set; then
6458 enableval="$enable_msgdlg"
6459
6460 if test "$enableval" = yes; then
6461 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6462 else
6463 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6464 fi
6465
6466 else
6467
6468 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6476
6477 fi
6478
6479
6480 eval "$ac_cv_use_msgdlg"
6481 if test "$no_cache" != 1; then
6482 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6483 fi
6484
6485 if test "$wxUSE_MSGDLG" = yes; then
6486 echo "$ac_t""yes" 1>&6
6487 else
6488 echo "$ac_t""no" 1>&6
6489 fi
6490
6491
6492 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6493 echo "configure:6494: checking for --enable-numberdlg" >&5
6494 no_cache=0
6495 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6496 if test "${enable_numberdlg+set}" = set; then
6497 enableval="$enable_numberdlg"
6498
6499 if test "$enableval" = yes; then
6500 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6501 else
6502 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6503 fi
6504
6505 else
6506
6507 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6508 if test "x$LINE" != x ; then
6509 eval "DEFAULT_$LINE"
6510 else
6511 no_cache=1
6512 fi
6513
6514 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6515
6516 fi
6517
6518
6519 eval "$ac_cv_use_numberdlg"
6520 if test "$no_cache" != 1; then
6521 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6522 fi
6523
6524 if test "$wxUSE_NUMBERDLG" = yes; then
6525 echo "$ac_t""yes" 1>&6
6526 else
6527 echo "$ac_t""no" 1>&6
6528 fi
6529
6530
6531 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6532 echo "configure:6533: checking for --enable-textdlg" >&5
6533 no_cache=0
6534 # Check whether --enable-textdlg or --disable-textdlg was given.
6535 if test "${enable_textdlg+set}" = set; then
6536 enableval="$enable_textdlg"
6537
6538 if test "$enableval" = yes; then
6539 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6540 else
6541 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6542 fi
6543
6544 else
6545
6546 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6554
6555 fi
6556
6557
6558 eval "$ac_cv_use_textdlg"
6559 if test "$no_cache" != 1; then
6560 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6561 fi
6562
6563 if test "$wxUSE_TEXTDLG" = yes; then
6564 echo "$ac_t""yes" 1>&6
6565 else
6566 echo "$ac_t""no" 1>&6
6567 fi
6568
6569
6570 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6571 echo "configure:6572: checking for --enable-tipdlg" >&5
6572 no_cache=0
6573 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6574 if test "${enable_tipdlg+set}" = set; then
6575 enableval="$enable_tipdlg"
6576
6577 if test "$enableval" = yes; then
6578 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6579 else
6580 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6581 fi
6582
6583 else
6584
6585 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6593
6594 fi
6595
6596
6597 eval "$ac_cv_use_tipdlg"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_STARTUP_TIPS" = yes; then
6603 echo "$ac_t""yes" 1>&6
6604 else
6605 echo "$ac_t""no" 1>&6
6606 fi
6607
6608
6609 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
6610 echo "configure:6611: checking for --enable-progressdlg" >&5
6611 no_cache=0
6612 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6613 if test "${enable_progressdlg+set}" = set; then
6614 enableval="$enable_progressdlg"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6618 else
6619 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6620 fi
6621
6622 else
6623
6624 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
6632
6633 fi
6634
6635
6636 eval "$ac_cv_use_progressdlg"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_PROGRESSDLG" = yes; then
6642 echo "$ac_t""yes" 1>&6
6643 else
6644 echo "$ac_t""no" 1>&6
6645 fi
6646
6647
6648 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
6649 echo "configure:6650: checking for --enable-menus" >&5
6650 no_cache=0
6651 # Check whether --enable-menus or --disable-menus was given.
6652 if test "${enable_menus+set}" = set; then
6653 enableval="$enable_menus"
6654
6655 if test "$enableval" = yes; then
6656 ac_cv_use_menus='wxUSE_MENUS=yes'
6657 else
6658 ac_cv_use_menus='wxUSE_MENUS=no'
6659 fi
6660
6661 else
6662
6663 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6671
6672 fi
6673
6674
6675 eval "$ac_cv_use_menus"
6676 if test "$no_cache" != 1; then
6677 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6678 fi
6679
6680 if test "$wxUSE_MENUS" = yes; then
6681 echo "$ac_t""yes" 1>&6
6682 else
6683 echo "$ac_t""no" 1>&6
6684 fi
6685
6686
6687 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
6688 echo "configure:6689: checking for --enable-miniframe" >&5
6689 no_cache=0
6690 # Check whether --enable-miniframe or --disable-miniframe was given.
6691 if test "${enable_miniframe+set}" = set; then
6692 enableval="$enable_miniframe"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6696 else
6697 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6698 fi
6699
6700 else
6701
6702 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
6710
6711 fi
6712
6713
6714 eval "$ac_cv_use_miniframe"
6715 if test "$no_cache" != 1; then
6716 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6717 fi
6718
6719 if test "$wxUSE_MINIFRAME" = yes; then
6720 echo "$ac_t""yes" 1>&6
6721 else
6722 echo "$ac_t""no" 1>&6
6723 fi
6724
6725
6726 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
6727 echo "configure:6728: checking for --enable-html" >&5
6728 no_cache=0
6729 # Check whether --enable-html or --disable-html was given.
6730 if test "${enable_html+set}" = set; then
6731 enableval="$enable_html"
6732
6733 if test "$enableval" = yes; then
6734 ac_cv_use_html='wxUSE_HTML=yes'
6735 else
6736 ac_cv_use_html='wxUSE_HTML=no'
6737 fi
6738
6739 else
6740
6741 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6742 if test "x$LINE" != x ; then
6743 eval "DEFAULT_$LINE"
6744 else
6745 no_cache=1
6746 fi
6747
6748 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6749
6750 fi
6751
6752
6753 eval "$ac_cv_use_html"
6754 if test "$no_cache" != 1; then
6755 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6756 fi
6757
6758 if test "$wxUSE_HTML" = yes; then
6759 echo "$ac_t""yes" 1>&6
6760 else
6761 echo "$ac_t""no" 1>&6
6762 fi
6763
6764
6765 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
6766 echo "configure:6767: checking for --enable-tooltips" >&5
6767 no_cache=0
6768 # Check whether --enable-tooltips or --disable-tooltips was given.
6769 if test "${enable_tooltips+set}" = set; then
6770 enableval="$enable_tooltips"
6771
6772 if test "$enableval" = yes; then
6773 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6774 else
6775 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6776 fi
6777
6778 else
6779
6780 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6788
6789 fi
6790
6791
6792 eval "$ac_cv_use_tooltips"
6793 if test "$no_cache" != 1; then
6794 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6795 fi
6796
6797 if test "$wxUSE_TOOLTIPS" = yes; then
6798 echo "$ac_t""yes" 1>&6
6799 else
6800 echo "$ac_t""no" 1>&6
6801 fi
6802
6803
6804 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
6805 echo "configure:6806: checking for --enable-splines" >&5
6806 no_cache=0
6807 # Check whether --enable-splines or --disable-splines was given.
6808 if test "${enable_splines+set}" = set; then
6809 enableval="$enable_splines"
6810
6811 if test "$enableval" = yes; then
6812 ac_cv_use_splines='wxUSE_SPLINES=yes'
6813 else
6814 ac_cv_use_splines='wxUSE_SPLINES=no'
6815 fi
6816
6817 else
6818
6819 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
6826 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
6827
6828 fi
6829
6830
6831 eval "$ac_cv_use_splines"
6832 if test "$no_cache" != 1; then
6833 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6834 fi
6835
6836 if test "$wxUSE_SPLINES" = yes; then
6837 echo "$ac_t""yes" 1>&6
6838 else
6839 echo "$ac_t""no" 1>&6
6840 fi
6841
6842
6843 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
6844 echo "configure:6845: checking for --enable-validators" >&5
6845 no_cache=0
6846 # Check whether --enable-validators or --disable-validators was given.
6847 if test "${enable_validators+set}" = set; then
6848 enableval="$enable_validators"
6849
6850 if test "$enableval" = yes; then
6851 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6852 else
6853 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6854 fi
6855
6856 else
6857
6858 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
6865 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
6866
6867 fi
6868
6869
6870 eval "$ac_cv_use_validators"
6871 if test "$no_cache" != 1; then
6872 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6873 fi
6874
6875 if test "$wxUSE_VALIDATORS" = yes; then
6876 echo "$ac_t""yes" 1>&6
6877 else
6878 echo "$ac_t""no" 1>&6
6879 fi
6880
6881
6882 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
6883 echo "configure:6884: checking for --enable-busyinfo" >&5
6884 no_cache=0
6885 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6886 if test "${enable_busyinfo+set}" = set; then
6887 enableval="$enable_busyinfo"
6888
6889 if test "$enableval" = yes; then
6890 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6891 else
6892 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6893 fi
6894
6895 else
6896
6897 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
6905
6906 fi
6907
6908
6909 eval "$ac_cv_use_busyinfo"
6910 if test "$no_cache" != 1; then
6911 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6912 fi
6913
6914 if test "$wxUSE_BUSYINFO" = yes; then
6915 echo "$ac_t""yes" 1>&6
6916 else
6917 echo "$ac_t""no" 1>&6
6918 fi
6919
6920
6921 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
6922 echo "configure:6923: checking for --enable-joystick" >&5
6923 no_cache=0
6924 # Check whether --enable-joystick or --disable-joystick was given.
6925 if test "${enable_joystick+set}" = set; then
6926 enableval="$enable_joystick"
6927
6928 if test "$enableval" = yes; then
6929 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
6930 else
6931 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
6932 fi
6933
6934 else
6935
6936 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
6944
6945 fi
6946
6947
6948 eval "$ac_cv_use_joystick"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_JOYSTICK" = yes; then
6954 echo "$ac_t""yes" 1>&6
6955 else
6956 echo "$ac_t""no" 1>&6
6957 fi
6958
6959
6960 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
6961 echo "configure:6962: checking for --enable-metafile" >&5
6962 no_cache=0
6963 # Check whether --enable-metafile or --disable-metafile was given.
6964 if test "${enable_metafile+set}" = set; then
6965 enableval="$enable_metafile"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6969 else
6970 ac_cv_use_metafile='wxUSE_METAFILE=no'
6971 fi
6972
6973 else
6974
6975 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6983
6984 fi
6985
6986
6987 eval "$ac_cv_use_metafile"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_METAFILE" = yes; then
6993 echo "$ac_t""yes" 1>&6
6994 else
6995 echo "$ac_t""no" 1>&6
6996 fi
6997
6998
6999
7000
7001 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7002 echo "configure:7003: checking for --enable-image" >&5
7003 no_cache=0
7004 # Check whether --enable-image or --disable-image was given.
7005 if test "${enable_image+set}" = set; then
7006 enableval="$enable_image"
7007
7008 if test "$enableval" = yes; then
7009 ac_cv_use_image='wxUSE_IMAGE=yes'
7010 else
7011 ac_cv_use_image='wxUSE_IMAGE=no'
7012 fi
7013
7014 else
7015
7016 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7024
7025 fi
7026
7027
7028 eval "$ac_cv_use_image"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_IMAGE" = yes; then
7034 echo "$ac_t""yes" 1>&6
7035 else
7036 echo "$ac_t""no" 1>&6
7037 fi
7038
7039
7040 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7041 echo "configure:7042: checking for --enable-gif" >&5
7042 no_cache=0
7043 # Check whether --enable-gif or --disable-gif was given.
7044 if test "${enable_gif+set}" = set; then
7045 enableval="$enable_gif"
7046
7047 if test "$enableval" = yes; then
7048 ac_cv_use_gif='wxUSE_GIF=yes'
7049 else
7050 ac_cv_use_gif='wxUSE_GIF=no'
7051 fi
7052
7053 else
7054
7055 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7063
7064 fi
7065
7066
7067 eval "$ac_cv_use_gif"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_GIF" = yes; then
7073 echo "$ac_t""yes" 1>&6
7074 else
7075 echo "$ac_t""no" 1>&6
7076 fi
7077
7078
7079 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7080 echo "configure:7081: checking for --enable-pcx" >&5
7081 no_cache=0
7082 # Check whether --enable-pcx or --disable-pcx was given.
7083 if test "${enable_pcx+set}" = set; then
7084 enableval="$enable_pcx"
7085
7086 if test "$enableval" = yes; then
7087 ac_cv_use_pcx='wxUSE_PCX=yes'
7088 else
7089 ac_cv_use_pcx='wxUSE_PCX=no'
7090 fi
7091
7092 else
7093
7094 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7102
7103 fi
7104
7105
7106 eval "$ac_cv_use_pcx"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_PCX" = yes; then
7112 echo "$ac_t""yes" 1>&6
7113 else
7114 echo "$ac_t""no" 1>&6
7115 fi
7116
7117
7118 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7119 echo "configure:7120: checking for --enable-pnm" >&5
7120 no_cache=0
7121 # Check whether --enable-pnm or --disable-pnm was given.
7122 if test "${enable_pnm+set}" = set; then
7123 enableval="$enable_pnm"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_pnm='wxUSE_PNM=yes'
7127 else
7128 ac_cv_use_pnm='wxUSE_PNM=no'
7129 fi
7130
7131 else
7132
7133 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7141
7142 fi
7143
7144
7145 eval "$ac_cv_use_pnm"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_PNM" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
7157 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7158 echo "configure:7159: checking for --enable-pnm" >&5
7159 no_cache=0
7160 # Check whether --enable-pnm or --disable-pnm was given.
7161 if test "${enable_pnm+set}" = set; then
7162 enableval="$enable_pnm"
7163
7164 if test "$enableval" = yes; then
7165 ac_cv_use_pnm='wxUSE_XPM=yes'
7166 else
7167 ac_cv_use_pnm='wxUSE_XPM=no'
7168 fi
7169
7170 else
7171
7172 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7180
7181 fi
7182
7183
7184 eval "$ac_cv_use_pnm"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_XPM" = yes; then
7190 echo "$ac_t""yes" 1>&6
7191 else
7192 echo "$ac_t""no" 1>&6
7193 fi
7194
7195
7196 fi
7197
7198
7199 echo "saving argument cache $wx_arg_cache_file"
7200 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7201
7202
7203
7204 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7205 echo "configure:7206: checking for toolkit" >&5
7206
7207 if test "$wxUSE_GUI" = "yes"; then
7208
7209 if test "$USE_BEOS" = 1; then
7210 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7211 fi
7212
7213 if test "$TOOLKIT_GIVEN" = 1; then
7214 for toolkit in `echo $ALL_TOOLKITS`; do
7215 var=wxUSE_$toolkit
7216 eval "value=\$${var}"
7217 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7218 done
7219 else
7220 for toolkit in `echo $ALL_TOOLKITS`; do
7221 if test "$has_toolkit_in_cache" != 1; then
7222 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7223 else
7224 var=DEFAULT_wxUSE_$toolkit
7225 fi
7226 eval "wxUSE_$toolkit=\$${var}"
7227 done
7228 fi
7229
7230 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7231
7232 case "${host}" in
7233 *-pc-os2_emx )
7234 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7235 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7236 LEX_STEM="lexyy"
7237 ;;
7238 *)
7239 PATH_IFS=':'
7240 LEX_STEM="lex.yy"
7241 ;;
7242 esac
7243
7244 case "$NUM_TOOLKITS" in
7245 1)
7246 ;;
7247 0)
7248 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7249 ;;
7250 *)
7251 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7252 esac
7253
7254 for toolkit in `echo $ALL_TOOLKITS`; do
7255 var=wxUSE_$toolkit
7256 eval "value=\$${var}"
7257 if test "x$value" != x; then
7258 cache_var=CACHE_$toolkit
7259 eval "cache=\$${cache_var}"
7260 if test "$cache" = 1; then
7261 echo "$var=$value" >> ${wx_arg_cache_file}
7262 fi
7263 if test "$value" = 1; then
7264 echo "$ac_t""`echo $toolkit | tr [A-Z] [a-z]`" 1>&6
7265 fi
7266 fi
7267 done
7268
7269 else
7270 PATH_IFS=':'
7271 echo "$ac_t""base only" 1>&6
7272 fi
7273
7274
7275 cat > confcache <<\EOF
7276 # This file is a shell script that caches the results of configure
7277 # tests run on this system so they can be shared between configure
7278 # scripts and configure runs. It is not useful on other systems.
7279 # If it contains results you don't want to keep, you may remove or edit it.
7280 #
7281 # By default, configure uses ./config.cache as the cache file,
7282 # creating it if it does not exist already. You can give configure
7283 # the --cache-file=FILE option to use a different cache file; that is
7284 # what configure does when it calls configure scripts in
7285 # subdirectories, so they share the cache.
7286 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7287 # config.status only pays attention to the cache file if you give it the
7288 # --recheck option to rerun configure.
7289 #
7290 EOF
7291 # The following way of writing the cache mishandles newlines in values,
7292 # but we know of no workaround that is simple, portable, and efficient.
7293 # So, don't put newlines in cache variables' values.
7294 # Ultrix sh set writes to stderr and can't be redirected directly,
7295 # and sets the high bit in the cache file unless we assign to the vars.
7296 (set) 2>&1 |
7297 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7298 *ac_space=\ *)
7299 # `set' does not quote correctly, so add quotes (double-quote substitution
7300 # turns \\\\ into \\, and sed turns \\ into \).
7301 sed -n \
7302 -e "s/'/'\\\\''/g" \
7303 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7304 ;;
7305 *)
7306 # `set' quotes correctly as required by POSIX, so do not add quotes.
7307 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7308 ;;
7309 esac >> confcache
7310 if cmp -s $cache_file confcache; then
7311 :
7312 else
7313 if test -w $cache_file; then
7314 echo "updating cache $cache_file"
7315 cat confcache > $cache_file
7316 else
7317 echo "not updating unwritable cache $cache_file"
7318 fi
7319 fi
7320 rm -f confcache
7321
7322
7323 if test "$build" != "$host" ; then
7324 CC=$host_alias-gcc
7325 CXX=$host_alias-c++
7326 AR=$host_alias-ar
7327 RANLIB=$host_alias-ranlib
7328 DLLTOOL=$host_alias-dlltool
7329 RESCOMP=$host_alias-windres
7330 LD=$host_alias-ld
7331 NM=$host_alias-nm
7332 STRIP=$host_alias-strip
7333 fi
7334
7335 # Extract the first word of "gcc", so it can be a program name with args.
7336 set dummy gcc; ac_word=$2
7337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7338 echo "configure:7339: checking for $ac_word" >&5
7339 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7341 else
7342 if test -n "$CC"; then
7343 ac_cv_prog_CC="$CC" # Let the user override the test.
7344 else
7345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7346 ac_dummy="$PATH"
7347 for ac_dir in $ac_dummy; do
7348 test -z "$ac_dir" && ac_dir=.
7349 if test -f $ac_dir/$ac_word; then
7350 ac_cv_prog_CC="gcc"
7351 break
7352 fi
7353 done
7354 IFS="$ac_save_ifs"
7355 fi
7356 fi
7357 CC="$ac_cv_prog_CC"
7358 if test -n "$CC"; then
7359 echo "$ac_t""$CC" 1>&6
7360 else
7361 echo "$ac_t""no" 1>&6
7362 fi
7363
7364 if test -z "$CC"; then
7365 # Extract the first word of "cc", so it can be a program name with args.
7366 set dummy cc; ac_word=$2
7367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7368 echo "configure:7369: checking for $ac_word" >&5
7369 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7371 else
7372 if test -n "$CC"; then
7373 ac_cv_prog_CC="$CC" # Let the user override the test.
7374 else
7375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7376 ac_prog_rejected=no
7377 ac_dummy="$PATH"
7378 for ac_dir in $ac_dummy; do
7379 test -z "$ac_dir" && ac_dir=.
7380 if test -f $ac_dir/$ac_word; then
7381 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7382 ac_prog_rejected=yes
7383 continue
7384 fi
7385 ac_cv_prog_CC="cc"
7386 break
7387 fi
7388 done
7389 IFS="$ac_save_ifs"
7390 if test $ac_prog_rejected = yes; then
7391 # We found a bogon in the path, so make sure we never use it.
7392 set dummy $ac_cv_prog_CC
7393 shift
7394 if test $# -gt 0; then
7395 # We chose a different compiler from the bogus one.
7396 # However, it has the same basename, so the bogon will be chosen
7397 # first if we set CC to just the basename; use the full file name.
7398 shift
7399 set dummy "$ac_dir/$ac_word" "$@"
7400 shift
7401 ac_cv_prog_CC="$@"
7402 fi
7403 fi
7404 fi
7405 fi
7406 CC="$ac_cv_prog_CC"
7407 if test -n "$CC"; then
7408 echo "$ac_t""$CC" 1>&6
7409 else
7410 echo "$ac_t""no" 1>&6
7411 fi
7412
7413 if test -z "$CC"; then
7414 case "`uname -s`" in
7415 *win32* | *WIN32*)
7416 # Extract the first word of "cl", so it can be a program name with args.
7417 set dummy cl; ac_word=$2
7418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7419 echo "configure:7420: checking for $ac_word" >&5
7420 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7421 echo $ac_n "(cached) $ac_c" 1>&6
7422 else
7423 if test -n "$CC"; then
7424 ac_cv_prog_CC="$CC" # Let the user override the test.
7425 else
7426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7427 ac_dummy="$PATH"
7428 for ac_dir in $ac_dummy; do
7429 test -z "$ac_dir" && ac_dir=.
7430 if test -f $ac_dir/$ac_word; then
7431 ac_cv_prog_CC="cl"
7432 break
7433 fi
7434 done
7435 IFS="$ac_save_ifs"
7436 fi
7437 fi
7438 CC="$ac_cv_prog_CC"
7439 if test -n "$CC"; then
7440 echo "$ac_t""$CC" 1>&6
7441 else
7442 echo "$ac_t""no" 1>&6
7443 fi
7444 ;;
7445 esac
7446 fi
7447 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7448 fi
7449
7450 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7451 echo "configure:7452: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7452
7453 ac_ext=c
7454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7455 ac_cpp='$CPP $CPPFLAGS'
7456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7458 cross_compiling=$ac_cv_prog_cc_cross
7459
7460 cat > conftest.$ac_ext << EOF
7461
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7464
7465 main(){return(0);}
7466 EOF
7467 if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7468 ac_cv_prog_cc_works=yes
7469 # If we can't run a trivial program, we are probably using a cross compiler.
7470 if (./conftest; exit) 2>/dev/null; then
7471 ac_cv_prog_cc_cross=no
7472 else
7473 ac_cv_prog_cc_cross=yes
7474 fi
7475 else
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 ac_cv_prog_cc_works=no
7479 fi
7480 rm -fr conftest*
7481 ac_ext=c
7482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7486 cross_compiling=$ac_cv_prog_cc_cross
7487
7488 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7489 if test $ac_cv_prog_cc_works = no; then
7490 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7491 fi
7492 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7493 echo "configure:7494: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7494 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7495 cross_compiling=$ac_cv_prog_cc_cross
7496
7497 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7498 echo "configure:7499: checking whether we are using GNU C" >&5
7499 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7501 else
7502 cat > conftest.c <<EOF
7503 #ifdef __GNUC__
7504 yes;
7505 #endif
7506 EOF
7507 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7508 ac_cv_prog_gcc=yes
7509 else
7510 ac_cv_prog_gcc=no
7511 fi
7512 fi
7513
7514 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7515
7516 if test $ac_cv_prog_gcc = yes; then
7517 GCC=yes
7518 else
7519 GCC=
7520 fi
7521
7522 ac_test_CFLAGS="${CFLAGS+set}"
7523 ac_save_CFLAGS="$CFLAGS"
7524 CFLAGS=
7525 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7526 echo "configure:7527: checking whether ${CC-cc} accepts -g" >&5
7527 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7528 echo $ac_n "(cached) $ac_c" 1>&6
7529 else
7530 echo 'void f(){}' > conftest.c
7531 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7532 ac_cv_prog_cc_g=yes
7533 else
7534 ac_cv_prog_cc_g=no
7535 fi
7536 rm -f conftest*
7537
7538 fi
7539
7540 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7541 if test "$ac_test_CFLAGS" = set; then
7542 CFLAGS="$ac_save_CFLAGS"
7543 elif test $ac_cv_prog_cc_g = yes; then
7544 if test "$GCC" = yes; then
7545 CFLAGS="-g -O2"
7546 else
7547 CFLAGS="-g"
7548 fi
7549 else
7550 if test "$GCC" = yes; then
7551 CFLAGS="-O2"
7552 else
7553 CFLAGS=
7554 fi
7555 fi
7556
7557
7558 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7559
7560 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7561 echo "configure:7562: checking how to run the C preprocessor" >&5
7562 # On Suns, sometimes $CPP names a directory.
7563 if test -n "$CPP" && test -d "$CPP"; then
7564 CPP=
7565 fi
7566 if test -z "$CPP"; then
7567 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7569 else
7570 # This must be in double quotes, not single quotes, because CPP may get
7571 # substituted into the Makefile and "${CC-cc}" will confuse make.
7572 CPP="${CC-cc} -E"
7573 # On the NeXT, cc -E runs the code through the compiler's parser,
7574 # not just through cpp.
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7578 #include <assert.h>
7579 Syntax Error
7580 EOF
7581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7582 { (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7584 if test -z "$ac_err"; then
7585 :
7586 else
7587 echo "$ac_err" >&5
7588 echo "configure: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 rm -rf conftest*
7591 CPP="${CC-cc} -E -traditional-cpp"
7592 cat > conftest.$ac_ext <<EOF
7593 #line 7594 "configure"
7594 #include "confdefs.h"
7595 #include <assert.h>
7596 Syntax Error
7597 EOF
7598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7599 { (eval echo configure:7600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7601 if test -z "$ac_err"; then
7602 :
7603 else
7604 echo "$ac_err" >&5
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 rm -rf conftest*
7608 CPP="${CC-cc} -nologo -E"
7609 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure"
7611 #include "confdefs.h"
7612 #include <assert.h>
7613 Syntax Error
7614 EOF
7615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7616 { (eval echo configure:7617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7618 if test -z "$ac_err"; then
7619 :
7620 else
7621 echo "$ac_err" >&5
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7624 rm -rf conftest*
7625 CPP=/lib/cpp
7626 fi
7627 rm -f conftest*
7628 fi
7629 rm -f conftest*
7630 fi
7631 rm -f conftest*
7632 ac_cv_prog_CPP="$CPP"
7633 fi
7634 CPP="$ac_cv_prog_CPP"
7635 else
7636 ac_cv_prog_CPP="$CPP"
7637 fi
7638 echo "$ac_t""$CPP" 1>&6
7639
7640
7641 if test $ac_cv_prog_gcc = yes; then
7642 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7643 echo "configure:7644: checking whether ${CC-cc} needs -traditional" >&5
7644 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7646 else
7647 ac_pattern="Autoconf.*'x'"
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7651 #include <sgtty.h>
7652 Autoconf TIOCGETP
7653 EOF
7654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7655 egrep "$ac_pattern" >/dev/null 2>&1; then
7656 rm -rf conftest*
7657 ac_cv_prog_gcc_traditional=yes
7658 else
7659 rm -rf conftest*
7660 ac_cv_prog_gcc_traditional=no
7661 fi
7662 rm -f conftest*
7663
7664
7665 if test $ac_cv_prog_gcc_traditional = no; then
7666 cat > conftest.$ac_ext <<EOF
7667 #line 7668 "configure"
7668 #include "confdefs.h"
7669 #include <termio.h>
7670 Autoconf TCGETA
7671 EOF
7672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7673 egrep "$ac_pattern" >/dev/null 2>&1; then
7674 rm -rf conftest*
7675 ac_cv_prog_gcc_traditional=yes
7676 fi
7677 rm -f conftest*
7678
7679 fi
7680 fi
7681
7682 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
7683 if test $ac_cv_prog_gcc_traditional = yes; then
7684 CC="$CC -traditional"
7685 fi
7686 fi
7687
7688
7689
7690 ac_ext=C
7691 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7692 ac_cpp='$CXXCPP $CPPFLAGS'
7693 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7694 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7695 cross_compiling=$ac_cv_prog_cxx_cross
7696
7697
7698 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7699 do
7700 # Extract the first word of "$ac_prog", so it can be a program name with args.
7701 set dummy $ac_prog; ac_word=$2
7702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7703 echo "configure:7704: checking for $ac_word" >&5
7704 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7706 else
7707 if test -n "$CXX"; then
7708 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7709 else
7710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7711 ac_dummy="$PATH"
7712 for ac_dir in $ac_dummy; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f $ac_dir/$ac_word; then
7715 ac_cv_prog_CXX="$ac_prog"
7716 break
7717 fi
7718 done
7719 IFS="$ac_save_ifs"
7720 fi
7721 fi
7722 CXX="$ac_cv_prog_CXX"
7723 if test -n "$CXX"; then
7724 echo "$ac_t""$CXX" 1>&6
7725 else
7726 echo "$ac_t""no" 1>&6
7727 fi
7728
7729 test -n "$CXX" && break
7730 done
7731 test -n "$CXX" || CXX="gcc"
7732
7733
7734 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7735 echo "configure:7736: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
7736
7737 ac_ext=C
7738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7739 ac_cpp='$CXXCPP $CPPFLAGS'
7740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7742 cross_compiling=$ac_cv_prog_cxx_cross
7743
7744 cat > conftest.$ac_ext << EOF
7745
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748
7749 int main(){return(0);}
7750 EOF
7751 if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7752 ac_cv_prog_cxx_works=yes
7753 # If we can't run a trivial program, we are probably using a cross compiler.
7754 if (./conftest; exit) 2>/dev/null; then
7755 ac_cv_prog_cxx_cross=no
7756 else
7757 ac_cv_prog_cxx_cross=yes
7758 fi
7759 else
7760 echo "configure: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7762 ac_cv_prog_cxx_works=no
7763 fi
7764 rm -fr conftest*
7765 ac_ext=C
7766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7767 ac_cpp='$CXXCPP $CPPFLAGS'
7768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7770 cross_compiling=$ac_cv_prog_cxx_cross
7771
7772 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7773 if test $ac_cv_prog_cxx_works = no; then
7774 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7775 fi
7776 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7777 echo "configure:7778: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
7778 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7779 cross_compiling=$ac_cv_prog_cxx_cross
7780
7781 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7782 echo "configure:7783: checking whether we are using GNU C++" >&5
7783 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7784 echo $ac_n "(cached) $ac_c" 1>&6
7785 else
7786 cat > conftest.C <<EOF
7787 #ifdef __GNUC__
7788 yes;
7789 #endif
7790 EOF
7791 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7792 ac_cv_prog_gxx=yes
7793 else
7794 ac_cv_prog_gxx=no
7795 fi
7796 fi
7797
7798 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
7799
7800 if test $ac_cv_prog_gxx = yes; then
7801 GXX=yes
7802 else
7803 GXX=
7804 fi
7805
7806 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7807 ac_save_CXXFLAGS="$CXXFLAGS"
7808 CXXFLAGS=
7809 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7810 echo "configure:7811: checking whether ${CXX-g++} accepts -g" >&5
7811 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7812 echo $ac_n "(cached) $ac_c" 1>&6
7813 else
7814 echo 'void f(){}' > conftest.cc
7815 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
7816 ac_cv_prog_cxx_g=yes
7817 else
7818 ac_cv_prog_cxx_g=no
7819 fi
7820 rm -f conftest*
7821
7822 fi
7823
7824 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
7825 if test "$ac_test_CXXFLAGS" = set; then
7826 CXXFLAGS="$ac_save_CXXFLAGS"
7827 elif test $ac_cv_prog_cxx_g = yes; then
7828 if test "$GXX" = yes; then
7829 CXXFLAGS="-g -O2"
7830 else
7831 CXXFLAGS="-g"
7832 fi
7833 else
7834 if test "$GXX" = yes; then
7835 CXXFLAGS="-O2"
7836 else
7837 CXXFLAGS=
7838 fi
7839 fi
7840
7841
7842 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7843 echo "configure:7844: checking how to run the C++ preprocessor" >&5
7844 if test -z "$CXXCPP"; then
7845 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7847 else
7848 ac_ext=C
7849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7850 ac_cpp='$CXXCPP $CPPFLAGS'
7851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7853 cross_compiling=$ac_cv_prog_cxx_cross
7854 CXXCPP="${CXX-g++} -E"
7855 cat > conftest.$ac_ext <<EOF
7856 #line 7857 "configure"
7857 #include "confdefs.h"
7858 #include <stdlib.h>
7859 EOF
7860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7861 { (eval echo configure:7862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7863 if test -z "$ac_err"; then
7864 :
7865 else
7866 echo "$ac_err" >&5
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7869 rm -rf conftest*
7870 CXXCPP=/lib/cpp
7871 fi
7872 rm -f conftest*
7873 ac_cv_prog_CXXCPP="$CXXCPP"
7874 ac_ext=C
7875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7876 ac_cpp='$CXXCPP $CPPFLAGS'
7877 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7878 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7879 cross_compiling=$ac_cv_prog_cxx_cross
7880 fi
7881 fi
7882 CXXCPP="$ac_cv_prog_CXXCPP"
7883 echo "$ac_t""$CXXCPP" 1>&6
7884
7885
7886 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
7887
7888 ac_ext=c
7889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7893 cross_compiling=$ac_cv_prog_cc_cross
7894
7895
7896 # Extract the first word of "ranlib", so it can be a program name with args.
7897 set dummy ranlib; ac_word=$2
7898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_word" >&5
7900 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7902 else
7903 if test -n "$RANLIB"; then
7904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7905 else
7906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7907 ac_dummy="$PATH"
7908 for ac_dir in $ac_dummy; do
7909 test -z "$ac_dir" && ac_dir=.
7910 if test -f $ac_dir/$ac_word; then
7911 ac_cv_prog_RANLIB="ranlib"
7912 break
7913 fi
7914 done
7915 IFS="$ac_save_ifs"
7916 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
7917 fi
7918 fi
7919 RANLIB="$ac_cv_prog_RANLIB"
7920 if test -n "$RANLIB"; then
7921 echo "$ac_t""$RANLIB" 1>&6
7922 else
7923 echo "$ac_t""no" 1>&6
7924 fi
7925
7926
7927 # Extract the first word of "ar", so it can be a program name with args.
7928 set dummy ar; ac_word=$2
7929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7930 echo "configure:7931: checking for $ac_word" >&5
7931 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7933 else
7934 if test -n "$AR"; then
7935 ac_cv_prog_AR="$AR" # Let the user override the test.
7936 else
7937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7938 ac_dummy="$PATH"
7939 for ac_dir in $ac_dummy; do
7940 test -z "$ac_dir" && ac_dir=.
7941 if test -f $ac_dir/$ac_word; then
7942 ac_cv_prog_AR="ar"
7943 break
7944 fi
7945 done
7946 IFS="$ac_save_ifs"
7947 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
7948 fi
7949 fi
7950 AR="$ac_cv_prog_AR"
7951 if test -n "$AR"; then
7952 echo "$ac_t""$AR" 1>&6
7953 else
7954 echo "$ac_t""no" 1>&6
7955 fi
7956
7957
7958 # Find a good install program. We prefer a C program (faster),
7959 # so one script is as good as another. But avoid the broken or
7960 # incompatible versions:
7961 # SysV /etc/install, /usr/sbin/install
7962 # SunOS /usr/etc/install
7963 # IRIX /sbin/install
7964 # AIX /bin/install
7965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7968 # ./install, which can be erroneously created by make from ./install.sh.
7969 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7970 echo "configure:7971: checking for a BSD compatible install" >&5
7971 if test -z "$INSTALL"; then
7972 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7974 else
7975 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
7976 for ac_dir in $PATH; do
7977 # Account for people who put trailing slashes in PATH elements.
7978 case "$ac_dir/" in
7979 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7980 *)
7981 # OSF1 and SCO ODT 3.0 have their own names for install.
7982 # Don't use installbsd from OSF since it installs stuff as root
7983 # by default.
7984 for ac_prog in ginstall scoinst install; do
7985 if test -f $ac_dir/$ac_prog; then
7986 if test $ac_prog = install &&
7987 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7988 # AIX install. It has an incompatible calling convention.
7989 :
7990 else
7991 ac_cv_path_install="$ac_dir/$ac_prog -c"
7992 break 2
7993 fi
7994 fi
7995 done
7996 ;;
7997 esac
7998 done
7999 IFS="$ac_save_IFS"
8000
8001 fi
8002 if test "${ac_cv_path_install+set}" = set; then
8003 INSTALL="$ac_cv_path_install"
8004 else
8005 # As a last resort, use the slow shell script. We don't cache a
8006 # path for INSTALL within a source directory, because that will
8007 # break other packages using the cache if that directory is
8008 # removed, or if the path is relative.
8009 INSTALL="$ac_install_sh"
8010 fi
8011 fi
8012 echo "$ac_t""$INSTALL" 1>&6
8013
8014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8015 # It thinks the first close brace ends the variable substitution.
8016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8017
8018 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8019
8020 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8021
8022
8023 # Extract the first word of "strip", so it can be a program name with args.
8024 set dummy strip; ac_word=$2
8025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8026 echo "configure:8027: checking for $ac_word" >&5
8027 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8028 echo $ac_n "(cached) $ac_c" 1>&6
8029 else
8030 if test -n "$STRIP"; then
8031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8032 else
8033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8034 ac_dummy="$PATH"
8035 for ac_dir in $ac_dummy; do
8036 test -z "$ac_dir" && ac_dir=.
8037 if test -f $ac_dir/$ac_word; then
8038 ac_cv_prog_STRIP="strip"
8039 break
8040 fi
8041 done
8042 IFS="$ac_save_ifs"
8043 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8044 fi
8045 fi
8046 STRIP="$ac_cv_prog_STRIP"
8047 if test -n "$STRIP"; then
8048 echo "$ac_t""$STRIP" 1>&6
8049 else
8050 echo "$ac_t""no" 1>&6
8051 fi
8052
8053
8054 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8055 echo "configure:8056: checking make for VPATH support" >&5
8056 cat - << EOF > confMake
8057 check : file
8058 cp \$? \$@
8059 cp \$? final_file
8060 EOF
8061
8062 if test ! -d sub ; then
8063 mkdir sub
8064 fi
8065 echo dummy > sub/file
8066 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8067 RESULT=$?
8068 rm -f sub/file check final_file confMake
8069 rmdir sub
8070 if test "$RESULT" = 0; then
8071 echo "$ac_t""yes" 1>&6
8072 else
8073 echo "$ac_t""no" 1>&6
8074 { echo "configure: error:
8075 You need a make-utility that is able to use the variable
8076 VPATH correctly.
8077 If your version of make does not support VPATH correctly,
8078 please install GNU-make (possibly as gmake), and start
8079 configure with the following command:
8080 export MAKE=gmake; ./configure for sh-type shells
8081 setenv MAKE gmake; ./configure for csh-type shells
8082 Also please do remember to use gmake in this case every time
8083 you are trying to compile.
8084 " 1>&2; exit 1; }
8085 fi
8086
8087 for ac_prog in 'bison -y' byacc
8088 do
8089 # Extract the first word of "$ac_prog", so it can be a program name with args.
8090 set dummy $ac_prog; ac_word=$2
8091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8092 echo "configure:8093: checking for $ac_word" >&5
8093 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8095 else
8096 if test -n "$YACC"; then
8097 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8098 else
8099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8100 ac_dummy="$PATH"
8101 for ac_dir in $ac_dummy; do
8102 test -z "$ac_dir" && ac_dir=.
8103 if test -f $ac_dir/$ac_word; then
8104 ac_cv_prog_YACC="$ac_prog"
8105 break
8106 fi
8107 done
8108 IFS="$ac_save_ifs"
8109 fi
8110 fi
8111 YACC="$ac_cv_prog_YACC"
8112 if test -n "$YACC"; then
8113 echo "$ac_t""$YACC" 1>&6
8114 else
8115 echo "$ac_t""no" 1>&6
8116 fi
8117
8118 test -n "$YACC" && break
8119 done
8120 test -n "$YACC" || YACC="yacc"
8121
8122
8123 # Extract the first word of "flex", so it can be a program name with args.
8124 set dummy flex; ac_word=$2
8125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8126 echo "configure:8127: checking for $ac_word" >&5
8127 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8128 echo $ac_n "(cached) $ac_c" 1>&6
8129 else
8130 if test -n "$LEX"; then
8131 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8132 else
8133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8134 ac_dummy="$PATH"
8135 for ac_dir in $ac_dummy; do
8136 test -z "$ac_dir" && ac_dir=.
8137 if test -f $ac_dir/$ac_word; then
8138 ac_cv_prog_LEX="flex"
8139 break
8140 fi
8141 done
8142 IFS="$ac_save_ifs"
8143 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8144 fi
8145 fi
8146 LEX="$ac_cv_prog_LEX"
8147 if test -n "$LEX"; then
8148 echo "$ac_t""$LEX" 1>&6
8149 else
8150 echo "$ac_t""no" 1>&6
8151 fi
8152
8153 if test -z "$LEXLIB"
8154 then
8155 case "$LEX" in
8156 flex*) ac_lib=fl ;;
8157 *) ac_lib=l ;;
8158 esac
8159 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8160 echo "configure:8161: checking for yywrap in -l$ac_lib" >&5
8161 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8163 echo $ac_n "(cached) $ac_c" 1>&6
8164 else
8165 ac_save_LIBS="$LIBS"
8166 LIBS="-l$ac_lib $LIBS"
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8170 /* Override any gcc2 internal prototype to avoid an error. */
8171 /* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8173 char yywrap();
8174
8175 int main() {
8176 yywrap()
8177 ; return 0; }
8178 EOF
8179 if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8180 rm -rf conftest*
8181 eval "ac_cv_lib_$ac_lib_var=yes"
8182 else
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 rm -rf conftest*
8186 eval "ac_cv_lib_$ac_lib_var=no"
8187 fi
8188 rm -f conftest*
8189 LIBS="$ac_save_LIBS"
8190
8191 fi
8192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8194 LEXLIB="-l$ac_lib"
8195 else
8196 echo "$ac_t""no" 1>&6
8197 fi
8198
8199 fi
8200
8201
8202 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8203 echo "configure:8204: checking whether ln -s works" >&5
8204 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8206 else
8207 rm -f conftestdata
8208 if ln -s X conftestdata 2>/dev/null
8209 then
8210 rm -f conftestdata
8211 ac_cv_prog_LN_S="ln -s"
8212 else
8213 ac_cv_prog_LN_S=ln
8214 fi
8215 fi
8216 LN_S="$ac_cv_prog_LN_S"
8217 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8218 echo "$ac_t""yes" 1>&6
8219 else
8220 echo "$ac_t""no" 1>&6
8221 fi
8222
8223
8224
8225 SEARCH_INCLUDE="\
8226 /usr/local/include \
8227 \
8228 /usr/Motif-1.2/include \
8229 /usr/Motif-2.1/include \
8230 \
8231 /usr/include/Motif1.2 \
8232 /opt/xpm/include/X11 \
8233 /opt/GBxpm/include/ \
8234 /opt/GBxpm/X11/include/ \
8235 \
8236 /usr/Motif1.2/include \
8237 /usr/dt/include \
8238 /usr/openwin/include \
8239 \
8240 /usr/include/Xm \
8241 \
8242 /usr/X11R6/include \
8243 /usr/X11R6.4/include \
8244 /usr/X11R5/include \
8245 /usr/X11R4/include \
8246 \
8247 /usr/include/X11R6 \
8248 /usr/include/X11R5 \
8249 /usr/include/X11R4 \
8250 \
8251 /usr/local/X11R6/include \
8252 /usr/local/X11R5/include \
8253 /usr/local/X11R4/include \
8254 \
8255 /usr/local/include/X11R6 \
8256 /usr/local/include/X11R5 \
8257 /usr/local/include/X11R4 \
8258 \
8259 /usr/X11/include \
8260 /usr/include/X11 \
8261 /usr/local/X11/include \
8262 /usr/local/include/X11 \
8263 \
8264 /usr/X386/include \
8265 /usr/x386/include \
8266 /usr/XFree86/include/X11 \
8267 \
8268 X:/XFree86/include \
8269 X:/XFree86/include/X11 \
8270 \
8271 /usr/include/gtk \
8272 /usr/local/include/gtk \
8273 /usr/include/glib \
8274 /usr/local/include/glib \
8275 \
8276 /usr/include/qt \
8277 /usr/local/include/qt \
8278 \
8279 /usr/include/windows \
8280 /usr/include/wine \
8281 /usr/local/include/wine \
8282 \
8283 /usr/unsupported/include \
8284 /usr/athena/include \
8285 /usr/local/x11r5/include \
8286 /usr/lpp/Xamples/include \
8287 \
8288 /usr/openwin/share/include \
8289 \
8290 /usr/include"
8291
8292 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8293
8294
8295 cat > confcache <<\EOF
8296 # This file is a shell script that caches the results of configure
8297 # tests run on this system so they can be shared between configure
8298 # scripts and configure runs. It is not useful on other systems.
8299 # If it contains results you don't want to keep, you may remove or edit it.
8300 #
8301 # By default, configure uses ./config.cache as the cache file,
8302 # creating it if it does not exist already. You can give configure
8303 # the --cache-file=FILE option to use a different cache file; that is
8304 # what configure does when it calls configure scripts in
8305 # subdirectories, so they share the cache.
8306 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8307 # config.status only pays attention to the cache file if you give it the
8308 # --recheck option to rerun configure.
8309 #
8310 EOF
8311 # The following way of writing the cache mishandles newlines in values,
8312 # but we know of no workaround that is simple, portable, and efficient.
8313 # So, don't put newlines in cache variables' values.
8314 # Ultrix sh set writes to stderr and can't be redirected directly,
8315 # and sets the high bit in the cache file unless we assign to the vars.
8316 (set) 2>&1 |
8317 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8318 *ac_space=\ *)
8319 # `set' does not quote correctly, so add quotes (double-quote substitution
8320 # turns \\\\ into \\, and sed turns \\ into \).
8321 sed -n \
8322 -e "s/'/'\\\\''/g" \
8323 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8324 ;;
8325 *)
8326 # `set' quotes correctly as required by POSIX, so do not add quotes.
8327 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8328 ;;
8329 esac >> confcache
8330 if cmp -s $cache_file confcache; then
8331 :
8332 else
8333 if test -w $cache_file; then
8334 echo "updating cache $cache_file"
8335 cat confcache > $cache_file
8336 else
8337 echo "not updating unwritable cache $cache_file"
8338 fi
8339 fi
8340 rm -f confcache
8341
8342
8343
8344 AFMINSTALL=
8345
8346 if test "$wxUSE_GUI" = "yes"; then
8347 USE_GUI=1
8348
8349 TOOLKIT=
8350 TOOLKIT_INCLUDE=
8351
8352 GUI_TK_LIBRARY=
8353 GUI_TK_LINK=
8354
8355 WXGTK12=
8356 WXGTK127=
8357 WXGTK20=
8358
8359 WXWINE=
8360
8361 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8362 if test "$cross_compiling" = "yes" ; then
8363 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8364 else
8365 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8366 echo "configure:8367: checking for Windows headers" >&5
8367
8368 ac_find_includes=
8369 for ac_dir in $SEARCH_INCLUDE;
8370 do
8371 if test -f "$ac_dir/windows.h"; then
8372 ac_find_includes=$ac_dir
8373 break
8374 fi
8375 done
8376
8377 if test "$ac_find_includes" != "" ; then
8378 echo "$ac_t""found $ac_find_includes" 1>&6
8379 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8380 else
8381 echo "$ac_t""no" 1>&6
8382 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8383 fi
8384 fi
8385
8386 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8387 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
8388
8389 if test "$wxUSE_ODBC" = "yes" ; then
8390 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8391 fi
8392
8393 if test "$wxUSE_MINGW" = 1; then
8394 LDFLAGS="$LDFLAGS -mwindows"
8395 fi
8396
8397 TOOLKIT=MSW
8398 GUIDIST=MSW_DIST
8399
8400 RCINCSWITCH="--include-dir"
8401 RCDEFSWITCH="--define"
8402 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8403 RCINPUTSWITCH="-i"
8404 RCOUTPUTSWITCH="-o"
8405 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8406
8407 RESPROGRAM="\$(RES_PROGRAM)"
8408 fi
8409
8410 if test "$wxUSE_GTK" = 1; then
8411 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8412 if test "${with_gtk_prefix+set}" = set; then
8413 withval="$with_gtk_prefix"
8414 gtk_config_prefix="$withval"
8415 else
8416 gtk_config_prefix=""
8417 fi
8418
8419 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8420 if test "${with_gtk_exec_prefix+set}" = set; then
8421 withval="$with_gtk_exec_prefix"
8422 gtk_config_exec_prefix="$withval"
8423 else
8424 gtk_config_exec_prefix=""
8425 fi
8426
8427 # Check whether --enable-gtktest or --disable-gtktest was given.
8428 if test "${enable_gtktest+set}" = set; then
8429 enableval="$enable_gtktest"
8430 :
8431 else
8432 enable_gtktest=yes
8433 fi
8434
8435
8436 for module in . gthread
8437 do
8438 case "$module" in
8439 gthread)
8440 gtk_config_args="$gtk_config_args gthread"
8441 ;;
8442 esac
8443 done
8444
8445 if test x$gtk_config_exec_prefix != x ; then
8446 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8447 if test x${GTK_CONFIG_2_0+set} != xset ; then
8448 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8449 fi
8450 fi
8451 if test x$gtk_config_prefix != x ; then
8452 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8453 if test x${GTK_CONFIG_2_0+set} != xset ; then
8454 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8455 fi
8456 fi
8457
8458 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8459 set dummy gtk-config-2.0; ac_word=$2
8460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8461 echo "configure:8462: checking for $ac_word" >&5
8462 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8464 else
8465 case "$GTK_CONFIG_2_0" in
8466 /*)
8467 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8468 ;;
8469 ?:/*)
8470 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8471 ;;
8472 *)
8473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8474 ac_dummy="$PATH"
8475 for ac_dir in $ac_dummy; do
8476 test -z "$ac_dir" && ac_dir=.
8477 if test -f $ac_dir/$ac_word; then
8478 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8479 break
8480 fi
8481 done
8482 IFS="$ac_save_ifs"
8483 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8484 ;;
8485 esac
8486 fi
8487 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8488 if test -n "$GTK_CONFIG_2_0"; then
8489 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8490 else
8491 echo "$ac_t""no" 1>&6
8492 fi
8493
8494 min_gtk_version=1.3.1
8495 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8496 echo "configure:8497: checking for GTK - version >= $min_gtk_version" >&5
8497 no_gtk=""
8498 if test "$GTK_CONFIG_2_0" = "no" ; then
8499 no_gtk=yes
8500 else
8501 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8502 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8503 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8504 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8505 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8507 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8509 if test "x$enable_gtktest" = "xyes" ; then
8510 ac_save_CFLAGS="$CFLAGS"
8511 ac_save_LIBS="$LIBS"
8512 CFLAGS="$CFLAGS $GTK_CFLAGS"
8513 LIBS="$GTK_LIBS $LIBS"
8514 rm -f conf.gtktest
8515 if test "$cross_compiling" = yes; then
8516 echo $ac_n "cross compiling; assumed OK... $ac_c"
8517 else
8518 cat > conftest.$ac_ext <<EOF
8519 #line 8520 "configure"
8520 #include "confdefs.h"
8521
8522 #include <gtk/gtk.h>
8523 #include <stdio.h>
8524 #include <stdlib.h>
8525
8526 int
8527 main ()
8528 {
8529 int major, minor, micro;
8530 char *tmp_version;
8531
8532 system ("touch conf.gtktest");
8533
8534 /* HP/UX 9 (%@#!) writes to sscanf strings */
8535 tmp_version = g_strdup("$min_gtk_version");
8536 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8537 printf("%s, bad version string\n", "$min_gtk_version");
8538 exit(1);
8539 }
8540
8541 if ((gtk_major_version != $gtk_config_major_version) ||
8542 (gtk_minor_version != $gtk_config_minor_version) ||
8543 (gtk_micro_version != $gtk_config_micro_version))
8544 {
8545 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8546 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8547 gtk_major_version, gtk_minor_version, gtk_micro_version);
8548 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8549 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8550 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8551 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8552 printf("*** required on your system.\n");
8553 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8554 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8555 printf("*** before re-running configure\n");
8556 }
8557 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8558 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8559 (gtk_minor_version != GTK_MINOR_VERSION) ||
8560 (gtk_micro_version != GTK_MICRO_VERSION))
8561 {
8562 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8563 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8564 printf("*** library (version %d.%d.%d)\n",
8565 gtk_major_version, gtk_minor_version, gtk_micro_version);
8566 }
8567 #endif /* defined (GTK_MAJOR_VERSION) ... */
8568 else
8569 {
8570 if ((gtk_major_version > major) ||
8571 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8572 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8573 {
8574 return 0;
8575 }
8576 else
8577 {
8578 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8579 gtk_major_version, gtk_minor_version, gtk_micro_version);
8580 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8581 major, minor, micro);
8582 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8583 printf("***\n");
8584 printf("*** If you have already installed a sufficiently new version, this error\n");
8585 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8586 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8587 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8588 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8589 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8590 printf("*** so that the correct libraries are found at run-time))\n");
8591 }
8592 }
8593 return 1;
8594 }
8595
8596 EOF
8597 if { (eval echo configure:8598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8598 then
8599 :
8600 else
8601 echo "configure: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8603 rm -fr conftest*
8604 no_gtk=yes
8605 fi
8606 rm -fr conftest*
8607 fi
8608
8609 CFLAGS="$ac_save_CFLAGS"
8610 LIBS="$ac_save_LIBS"
8611 fi
8612 fi
8613 if test "x$no_gtk" = x ; then
8614 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8615 WXGTK20=1
8616 else
8617 echo "$ac_t""no" 1>&6
8618 if test "$GTK_CONFIG_2_0" = "no" ; then
8619 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8620 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8621 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8622 echo "*** full path to gtk-config-2.0."
8623 else
8624 if test -f conf.gtktest ; then
8625 :
8626 else
8627 echo "*** Could not run GTK test program, checking why..."
8628 CFLAGS="$CFLAGS $GTK_CFLAGS"
8629 LIBS="$LIBS $GTK_LIBS"
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633
8634 #include <gtk/gtk.h>
8635 #include <stdio.h>
8636
8637 int main() {
8638 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8639 ; return 0; }
8640 EOF
8641 if { (eval echo configure:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8642 rm -rf conftest*
8643 echo "*** The test program compiled, but did not run. This usually means"
8644 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8645 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8646 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8647 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8648 echo "*** is required on your system"
8649 echo "***"
8650 echo "*** If you have an old version installed, it is best to remove it, although"
8651 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8652 echo "***"
8653 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8654 echo "*** came with the system with the command"
8655 echo "***"
8656 echo "*** rpm --erase --nodeps gtk gtk-devel"
8657 else
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8660 rm -rf conftest*
8661 echo "*** The test program failed to compile or link. See the file config.log for the"
8662 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8663 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8664 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
8665 fi
8666 rm -f conftest*
8667 CFLAGS="$ac_save_CFLAGS"
8668 LIBS="$ac_save_LIBS"
8669 fi
8670 fi
8671 GTK_CFLAGS=""
8672 GTK_LIBS=""
8673
8674
8675 if test x$gtk_config_exec_prefix != x ; then
8676 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8677 if test x${GTK_CONFIG+set} != xset ; then
8678 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8679 fi
8680 fi
8681 if test x$gtk_config_prefix != x ; then
8682 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8683 if test x${GTK_CONFIG+set} != xset ; then
8684 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8685 fi
8686 fi
8687
8688 # Extract the first word of "gtk-config", so it can be a program name with args.
8689 set dummy gtk-config; ac_word=$2
8690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8691 echo "configure:8692: checking for $ac_word" >&5
8692 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8694 else
8695 case "$GTK_CONFIG" in
8696 /*)
8697 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8698 ;;
8699 ?:/*)
8700 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8701 ;;
8702 *)
8703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8704 ac_dummy="$PATH"
8705 for ac_dir in $ac_dummy; do
8706 test -z "$ac_dir" && ac_dir=.
8707 if test -f $ac_dir/$ac_word; then
8708 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8709 break
8710 fi
8711 done
8712 IFS="$ac_save_ifs"
8713 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8714 ;;
8715 esac
8716 fi
8717 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8718 if test -n "$GTK_CONFIG"; then
8719 echo "$ac_t""$GTK_CONFIG" 1>&6
8720 else
8721 echo "$ac_t""no" 1>&6
8722 fi
8723
8724 min_gtk_version=1.2.7
8725 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8726 echo "configure:8727: checking for GTK - version >= $min_gtk_version" >&5
8727 no_gtk=""
8728 if test "$GTK_CONFIG" != "no" ; then
8729 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8730 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8731 ac_save_CFLAGS="$CFLAGS"
8732 ac_save_LIBS="$LIBS"
8733 CFLAGS="$CFLAGS $GTK_CFLAGS"
8734 LIBS="$LIBS $GTK_LIBS"
8735 if test "$cross_compiling" = yes; then
8736 echo $ac_n "cross compiling; assumed OK... $ac_c"
8737 else
8738 cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741
8742 #include <gtk/gtk.h>
8743 #include <gtk/gtkfeatures.h>
8744 #include <stdio.h>
8745 #include <stdlib.h>
8746
8747 int
8748 main ()
8749 {
8750 int major, minor, micro;
8751
8752 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8753 printf("%s, bad version string\n", "$min_gtk_version");
8754 exit(1);
8755 }
8756
8757 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8758 (GTK_MINOR_VERSION != gtk_minor_version) ||
8759 (GTK_MICRO_VERSION != gtk_micro_version)) {
8760 printf("Headers vs. library version mismatch!\n");
8761 exit(1);
8762 }
8763
8764 if (gtk_minor_version == 1) return FALSE;
8765
8766 return !((gtk_major_version > major) ||
8767 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8768 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8769 }
8770
8771 EOF
8772 if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8773 then
8774 :
8775 else
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 rm -fr conftest*
8779 no_gtk=yes
8780 fi
8781 rm -fr conftest*
8782 fi
8783
8784 CFLAGS="$ac_save_CFLAGS"
8785 LIBS="$ac_save_LIBS"
8786 else
8787 no_gtk=yes
8788 fi
8789 if test "x$no_gtk" = x ; then
8790 echo "$ac_t""yes" 1>&6
8791 WXGTK127=1
8792 else
8793 echo "$ac_t""no" 1>&6
8794 GTK_CFLAGS=""
8795 GTK_LIBS=""
8796 :
8797 fi
8798
8799
8800
8801
8802 if test x$gtk_config_exec_prefix != x ; then
8803 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8804 if test x${GTK_CONFIG+set} != xset ; then
8805 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8806 fi
8807 fi
8808 if test x$gtk_config_prefix != x ; then
8809 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8810 if test x${GTK_CONFIG+set} != xset ; then
8811 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8812 fi
8813 fi
8814
8815 # Extract the first word of "gtk-config", so it can be a program name with args.
8816 set dummy gtk-config; ac_word=$2
8817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8818 echo "configure:8819: checking for $ac_word" >&5
8819 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8820 echo $ac_n "(cached) $ac_c" 1>&6
8821 else
8822 case "$GTK_CONFIG" in
8823 /*)
8824 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8825 ;;
8826 ?:/*)
8827 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8828 ;;
8829 *)
8830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8831 ac_dummy="$PATH"
8832 for ac_dir in $ac_dummy; do
8833 test -z "$ac_dir" && ac_dir=.
8834 if test -f $ac_dir/$ac_word; then
8835 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8836 break
8837 fi
8838 done
8839 IFS="$ac_save_ifs"
8840 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8841 ;;
8842 esac
8843 fi
8844 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8845 if test -n "$GTK_CONFIG"; then
8846 echo "$ac_t""$GTK_CONFIG" 1>&6
8847 else
8848 echo "$ac_t""no" 1>&6
8849 fi
8850
8851 min_gtk_version=1.2.3
8852 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8853 echo "configure:8854: checking for GTK - version >= $min_gtk_version" >&5
8854 no_gtk=""
8855 if test "$GTK_CONFIG" != "no" ; then
8856 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8857 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8858 ac_save_CFLAGS="$CFLAGS"
8859 ac_save_LIBS="$LIBS"
8860 CFLAGS="$CFLAGS $GTK_CFLAGS"
8861 LIBS="$LIBS $GTK_LIBS"
8862 if test "$cross_compiling" = yes; then
8863 echo $ac_n "cross compiling; assumed OK... $ac_c"
8864 else
8865 cat > conftest.$ac_ext <<EOF
8866 #line 8867 "configure"
8867 #include "confdefs.h"
8868
8869 #include <gtk/gtk.h>
8870 #include <gtk/gtkfeatures.h>
8871 #include <stdio.h>
8872 #include <stdlib.h>
8873
8874 int
8875 main ()
8876 {
8877 int major, minor, micro;
8878
8879 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8880 printf("%s, bad version string\n", "$min_gtk_version");
8881 exit(1);
8882 }
8883
8884 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8885 (GTK_MINOR_VERSION != gtk_minor_version) ||
8886 (GTK_MICRO_VERSION != gtk_micro_version)) {
8887 printf("Headers vs. library version mismatch!\n");
8888 exit(1);
8889 }
8890
8891 if (gtk_minor_version == 1) return FALSE;
8892
8893 return !((gtk_major_version > major) ||
8894 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8895 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8896 }
8897
8898 EOF
8899 if { (eval echo configure:8900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8900 then
8901 :
8902 else
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8905 rm -fr conftest*
8906 no_gtk=yes
8907 fi
8908 rm -fr conftest*
8909 fi
8910
8911 CFLAGS="$ac_save_CFLAGS"
8912 LIBS="$ac_save_LIBS"
8913 else
8914 no_gtk=yes
8915 fi
8916 if test "x$no_gtk" = x ; then
8917 echo "$ac_t""yes" 1>&6
8918 WXGTK12=1
8919 else
8920 echo "$ac_t""no" 1>&6
8921 GTK_CFLAGS=""
8922 GTK_LIBS=""
8923 :
8924 fi
8925
8926
8927
8928
8929 fi
8930
8931
8932 rm -f conf.gtktest
8933
8934
8935 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
8936 { echo "configure: error:
8937 Please check that gtk-config is in path, the directory
8938 where GTK+ libraries are installed (returned by
8939 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
8940 equivalent variable and GTK+ is version 1.2.3 or above.
8941 " 1>&2; exit 1; }
8942 fi
8943
8944 TOOLKIT_INCLUDE="$GTK_CFLAGS"
8945
8946
8947 GUI_TK_LIBRARY="$GTK_LIBS"
8948
8949
8950 AFMINSTALL=afminstall
8951 TOOLKIT=GTK
8952 GUIDIST=GTK_DIST
8953
8954 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
8955 echo "configure:8956: checking for gdk_im_open in -lgdk" >&5
8956 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
8957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8959 else
8960 ac_save_LIBS="$LIBS"
8961 LIBS="-lgdk $LIBS"
8962 cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure"
8964 #include "confdefs.h"
8965 /* Override any gcc2 internal prototype to avoid an error. */
8966 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8968 char gdk_im_open();
8969
8970 int main() {
8971 gdk_im_open()
8972 ; return 0; }
8973 EOF
8974 if { (eval echo configure:8975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8975 rm -rf conftest*
8976 eval "ac_cv_lib_$ac_lib_var=yes"
8977 else
8978 echo "configure: failed program was:" >&5
8979 cat conftest.$ac_ext >&5
8980 rm -rf conftest*
8981 eval "ac_cv_lib_$ac_lib_var=no"
8982 fi
8983 rm -f conftest*
8984 LIBS="$ac_save_LIBS"
8985
8986 fi
8987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8988 echo "$ac_t""yes" 1>&6
8989 cat >> confdefs.h <<\EOF
8990 #define HAVE_XIM 1
8991 EOF
8992
8993 else
8994 echo "$ac_t""no" 1>&6
8995 fi
8996
8997 fi
8998
8999 if test "$wxUSE_MGL" = 1; then
9000
9001 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9002 echo "configure:9003: checking for SciTech MGL library" >&5
9003 if test "x$MGL_ROOT" = x ; then
9004 echo "$ac_t""not found" 1>&6
9005 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9006 else
9007 echo "$ac_t""$MGL_ROOT" 1>&6
9008 fi
9009
9010 MGL_OS=linux/gcc/glibc
9011 MGL_LIB_TYPE=""
9012
9013 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9014 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9015 MGL_LIB_TYPE=debug
9016 fi
9017 fi
9018 if test "x$MGL_LIB_TYPE" = x ; then
9019 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9020 MGL_LIB_TYPE=release
9021 else
9022 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9023 fi
9024 fi
9025
9026 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9027 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9028
9029 AFMINSTALL=afminstall
9030 TOOLKIT=MGL
9031 GUIDIST=MGL_DIST
9032 fi
9033
9034 if test "$wxUSE_WINE" = 1; then
9035 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9036 echo "configure:9037: checking for WINE includes" >&5
9037
9038 ac_find_includes=
9039 for ac_dir in $SEARCH_INCLUDE;
9040 do
9041 if test -f "$ac_dir/windows.h"; then
9042 ac_find_includes=$ac_dir
9043 break
9044 fi
9045 done
9046
9047 if test "$ac_find_includes" != "" ; then
9048 echo "$ac_t""found $ac_find_includes" 1>&6
9049 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9050 else
9051 echo "$ac_t""no" 1>&6
9052 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9053 fi
9054
9055 XPM_LINK=""
9056 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9057 echo "configure:9058: checking for Xpm library" >&5
9058
9059 ac_find_libraries=
9060 for ac_dir in $SEARCH_LIB;
9061 do
9062 for ac_extension in a so sl; do
9063 if test -f "$ac_dir/libXpm.$ac_extension"; then
9064 ac_find_libraries=$ac_dir
9065 break 2
9066 fi
9067 done
9068 done
9069
9070 if test "$ac_find_libraries" != "" ; then
9071 GUI_TK_LIBRARY="-L$ac_find_libraries"
9072 XPM_LINK="-lXpm"
9073 cat >> confdefs.h <<\EOF
9074 #define wxHAVE_LIB_XPM 1
9075 EOF
9076
9077 echo "$ac_t""found at $ac_find_libraries" 1>&6
9078 else
9079 echo "$ac_t""no" 1>&6
9080 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9081 fi
9082
9083 MESA_LINK=""
9084 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9085 echo "configure:9086: checking for Mesa library" >&5
9086
9087 ac_find_libraries=
9088 for ac_dir in $SEARCH_LIB;
9089 do
9090 for ac_extension in a so sl; do
9091 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9092 ac_find_libraries=$ac_dir
9093 break 2
9094 fi
9095 done
9096 done
9097
9098 if test "$ac_find_libraries" != "" ; then
9099 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9100 MESA_LINK="-lMesaGL"
9101 echo "$ac_t""found at $ac_find_libraries" 1>&6
9102 else
9103 { echo "configure: error: no" 1>&2; exit 1; }
9104 fi
9105
9106 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9107 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9108 WXWINE=1
9109 TOOLKIT=MSW
9110 GUIDIST=MSW_DIST
9111 fi
9112
9113
9114 # If we find X, set shell vars x_includes and x_libraries to the
9115 # paths, otherwise set no_x=yes.
9116 # Uses ac_ vars as temps to allow command line to override cache and checks.
9117 # --without-x overrides everything else, but does not touch the cache.
9118 echo $ac_n "checking for X""... $ac_c" 1>&6
9119 echo "configure:9120: checking for X" >&5
9120
9121 # Check whether --with-x or --without-x was given.
9122 if test "${with_x+set}" = set; then
9123 withval="$with_x"
9124 :
9125 fi
9126
9127 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9128 if test "x$with_x" = xno; then
9129 # The user explicitly disabled X.
9130 have_x=disabled
9131 else
9132 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9133 # Both variables are already set.
9134 have_x=yes
9135 else
9136 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9137 echo $ac_n "(cached) $ac_c" 1>&6
9138 else
9139 # One or both of the vars are not set, and there is no cached value.
9140 ac_x_includes=NO ac_x_libraries=NO
9141 rm -fr conftestdir
9142 if mkdir conftestdir; then
9143 cd conftestdir
9144 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9145 cat > Imakefile <<'EOF'
9146 acfindx:
9147 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9148 EOF
9149 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9150 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9151 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9152 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9153 for ac_extension in a so sl; do
9154 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9155 test -f $ac_im_libdir/libX11.$ac_extension; then
9156 ac_im_usrlibdir=$ac_im_libdir; break
9157 fi
9158 done
9159 # Screen out bogus values from the imake configuration. They are
9160 # bogus both because they are the default anyway, and because
9161 # using them would break gcc on systems where it needs fixed includes.
9162 case "$ac_im_incroot" in
9163 /usr/include) ;;
9164 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9165 esac
9166 case "$ac_im_usrlibdir" in
9167 /usr/lib | /lib) ;;
9168 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9169 esac
9170 fi
9171 cd ..
9172 rm -fr conftestdir
9173 fi
9174
9175 if test "$ac_x_includes" = NO; then
9176 # Guess where to find include files, by looking for this one X11 .h file.
9177 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9178
9179 # First, try using that file with no special directory specified.
9180 cat > conftest.$ac_ext <<EOF
9181 #line 9182 "configure"
9182 #include "confdefs.h"
9183 #include <$x_direct_test_include>
9184 EOF
9185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9186 { (eval echo configure:9187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9188 if test -z "$ac_err"; then
9189 rm -rf conftest*
9190 # We can compile using X headers with no special include directory.
9191 ac_x_includes=
9192 else
9193 echo "$ac_err" >&5
9194 echo "configure: failed program was:" >&5
9195 cat conftest.$ac_ext >&5
9196 rm -rf conftest*
9197 # Look for the header file in a standard set of common directories.
9198 # Check X11 before X11Rn because it is often a symlink to the current release.
9199 for ac_dir in \
9200 /usr/X11/include \
9201 /usr/X11R6/include \
9202 /usr/X11R5/include \
9203 /usr/X11R4/include \
9204 \
9205 /usr/include/X11 \
9206 /usr/include/X11R6 \
9207 /usr/include/X11R5 \
9208 /usr/include/X11R4 \
9209 \
9210 /usr/local/X11/include \
9211 /usr/local/X11R6/include \
9212 /usr/local/X11R5/include \
9213 /usr/local/X11R4/include \
9214 \
9215 /usr/local/include/X11 \
9216 /usr/local/include/X11R6 \
9217 /usr/local/include/X11R5 \
9218 /usr/local/include/X11R4 \
9219 \
9220 /usr/X386/include \
9221 /usr/x386/include \
9222 /usr/XFree86/include/X11 \
9223 \
9224 /usr/include \
9225 /usr/local/include \
9226 /usr/unsupported/include \
9227 /usr/athena/include \
9228 /usr/local/x11r5/include \
9229 /usr/lpp/Xamples/include \
9230 \
9231 /usr/openwin/include \
9232 /usr/openwin/share/include \
9233 ; \
9234 do
9235 if test -r "$ac_dir/$x_direct_test_include"; then
9236 ac_x_includes=$ac_dir
9237 break
9238 fi
9239 done
9240 fi
9241 rm -f conftest*
9242 fi # $ac_x_includes = NO
9243
9244 if test "$ac_x_libraries" = NO; then
9245 # Check for the libraries.
9246
9247 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9248 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9249
9250 # See if we find them without any special options.
9251 # Don't add to $LIBS permanently.
9252 ac_save_LIBS="$LIBS"
9253 LIBS="-l$x_direct_test_library $LIBS"
9254 cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9257
9258 int main() {
9259 ${x_direct_test_function}()
9260 ; return 0; }
9261 EOF
9262 if { (eval echo configure:9263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9263 rm -rf conftest*
9264 LIBS="$ac_save_LIBS"
9265 # We can link X programs with no special library path.
9266 ac_x_libraries=
9267 else
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9270 rm -rf conftest*
9271 LIBS="$ac_save_LIBS"
9272 # First see if replacing the include by lib works.
9273 # Check X11 before X11Rn because it is often a symlink to the current release.
9274 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9275 /usr/X11/lib \
9276 /usr/X11R6/lib \
9277 /usr/X11R5/lib \
9278 /usr/X11R4/lib \
9279 \
9280 /usr/lib/X11 \
9281 /usr/lib/X11R6 \
9282 /usr/lib/X11R5 \
9283 /usr/lib/X11R4 \
9284 \
9285 /usr/local/X11/lib \
9286 /usr/local/X11R6/lib \
9287 /usr/local/X11R5/lib \
9288 /usr/local/X11R4/lib \
9289 \
9290 /usr/local/lib/X11 \
9291 /usr/local/lib/X11R6 \
9292 /usr/local/lib/X11R5 \
9293 /usr/local/lib/X11R4 \
9294 \
9295 /usr/X386/lib \
9296 /usr/x386/lib \
9297 /usr/XFree86/lib/X11 \
9298 \
9299 /usr/lib \
9300 /usr/local/lib \
9301 /usr/unsupported/lib \
9302 /usr/athena/lib \
9303 /usr/local/x11r5/lib \
9304 /usr/lpp/Xamples/lib \
9305 /lib/usr/lib/X11 \
9306 \
9307 /usr/openwin/lib \
9308 /usr/openwin/share/lib \
9309 ; \
9310 do
9311 for ac_extension in a so sl; do
9312 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9313 ac_x_libraries=$ac_dir
9314 break 2
9315 fi
9316 done
9317 done
9318 fi
9319 rm -f conftest*
9320 fi # $ac_x_libraries = NO
9321
9322 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9323 # Didn't find X anywhere. Cache the known absence of X.
9324 ac_cv_have_x="have_x=no"
9325 else
9326 # Record where we found X for the cache.
9327 ac_cv_have_x="have_x=yes \
9328 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9329 fi
9330 fi
9331 fi
9332 eval "$ac_cv_have_x"
9333 fi # $with_x != no
9334
9335 if test "$have_x" != yes; then
9336 echo "$ac_t""$have_x" 1>&6
9337 no_x=yes
9338 else
9339 # If each of the values was on the command line, it overrides each guess.
9340 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9341 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9342 # Update the cache value to reflect the command line values.
9343 ac_cv_have_x="have_x=yes \
9344 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9345 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9346 fi
9347
9348 if test "$no_x" = yes; then
9349 # Not all programs may use this symbol, but it does not hurt to define it.
9350 cat >> confdefs.h <<\EOF
9351 #define X_DISPLAY_MISSING 1
9352 EOF
9353
9354 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9355 else
9356 if test -n "$x_includes"; then
9357 X_CFLAGS="$X_CFLAGS -I$x_includes"
9358 fi
9359
9360 # It would also be nice to do this for all -L options, not just this one.
9361 if test -n "$x_libraries"; then
9362 X_LIBS="$X_LIBS -L$x_libraries"
9363 # For Solaris; some versions of Sun CC require a space after -R and
9364 # others require no space. Words are not sufficient . . . .
9365 case "`(uname -sr) 2>/dev/null`" in
9366 "SunOS 5"*)
9367 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9368 echo "configure:9369: checking whether -R must be followed by a space" >&5
9369 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373
9374 int main() {
9375
9376 ; return 0; }
9377 EOF
9378 if { (eval echo configure:9379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9379 rm -rf conftest*
9380 ac_R_nospace=yes
9381 else
9382 echo "configure: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 rm -rf conftest*
9385 ac_R_nospace=no
9386 fi
9387 rm -f conftest*
9388 if test $ac_R_nospace = yes; then
9389 echo "$ac_t""no" 1>&6
9390 X_LIBS="$X_LIBS -R$x_libraries"
9391 else
9392 LIBS="$ac_xsave_LIBS -R $x_libraries"
9393 cat > conftest.$ac_ext <<EOF
9394 #line 9395 "configure"
9395 #include "confdefs.h"
9396
9397 int main() {
9398
9399 ; return 0; }
9400 EOF
9401 if { (eval echo configure:9402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9402 rm -rf conftest*
9403 ac_R_space=yes
9404 else
9405 echo "configure: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 rm -rf conftest*
9408 ac_R_space=no
9409 fi
9410 rm -f conftest*
9411 if test $ac_R_space = yes; then
9412 echo "$ac_t""yes" 1>&6
9413 X_LIBS="$X_LIBS -R $x_libraries"
9414 else
9415 echo "$ac_t""neither works" 1>&6
9416 fi
9417 fi
9418 LIBS="$ac_xsave_LIBS"
9419 esac
9420 fi
9421
9422 # Check for system-dependent libraries X programs must link with.
9423 # Do this before checking for the system-independent R6 libraries
9424 # (-lICE), since we may need -lsocket or whatever for X linking.
9425
9426 if test "$ISC" = yes; then
9427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9428 else
9429 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9430 # libraries were built with DECnet support. And karl@cs.umb.edu says
9431 # the Alpha needs dnet_stub (dnet does not exist).
9432 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9433 echo "configure:9434: checking for dnet_ntoa in -ldnet" >&5
9434 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9437 else
9438 ac_save_LIBS="$LIBS"
9439 LIBS="-ldnet $LIBS"
9440 cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9443 /* Override any gcc2 internal prototype to avoid an error. */
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9446 char dnet_ntoa();
9447
9448 int main() {
9449 dnet_ntoa()
9450 ; return 0; }
9451 EOF
9452 if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9453 rm -rf conftest*
9454 eval "ac_cv_lib_$ac_lib_var=yes"
9455 else
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9458 rm -rf conftest*
9459 eval "ac_cv_lib_$ac_lib_var=no"
9460 fi
9461 rm -f conftest*
9462 LIBS="$ac_save_LIBS"
9463
9464 fi
9465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9466 echo "$ac_t""yes" 1>&6
9467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9468 else
9469 echo "$ac_t""no" 1>&6
9470 fi
9471
9472 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9473 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9474 echo "configure:9475: checking for dnet_ntoa in -ldnet_stub" >&5
9475 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9478 else
9479 ac_save_LIBS="$LIBS"
9480 LIBS="-ldnet_stub $LIBS"
9481 cat > conftest.$ac_ext <<EOF
9482 #line 9483 "configure"
9483 #include "confdefs.h"
9484 /* Override any gcc2 internal prototype to avoid an error. */
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9487 char dnet_ntoa();
9488
9489 int main() {
9490 dnet_ntoa()
9491 ; return 0; }
9492 EOF
9493 if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9494 rm -rf conftest*
9495 eval "ac_cv_lib_$ac_lib_var=yes"
9496 else
9497 echo "configure: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9499 rm -rf conftest*
9500 eval "ac_cv_lib_$ac_lib_var=no"
9501 fi
9502 rm -f conftest*
9503 LIBS="$ac_save_LIBS"
9504
9505 fi
9506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9507 echo "$ac_t""yes" 1>&6
9508 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9509 else
9510 echo "$ac_t""no" 1>&6
9511 fi
9512
9513 fi
9514
9515 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9516 # to get the SysV transport functions.
9517 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9518 # needs -lnsl.
9519 # The nsl library prevents programs from opening the X display
9520 # on Irix 5.2, according to dickey@clark.net.
9521 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9522 echo "configure:9523: checking for gethostbyname" >&5
9523 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525 else
9526 cat > conftest.$ac_ext <<EOF
9527 #line 9528 "configure"
9528 #include "confdefs.h"
9529 /* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char gethostbyname(); below. */
9531 #include <assert.h>
9532 /* Override any gcc2 internal prototype to avoid an error. */
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535 char gethostbyname();
9536
9537 int main() {
9538
9539 /* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
9542 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9543 choke me
9544 #else
9545 gethostbyname();
9546 #endif
9547
9548 ; return 0; }
9549 EOF
9550 if { (eval echo configure:9551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9551 rm -rf conftest*
9552 eval "ac_cv_func_gethostbyname=yes"
9553 else
9554 echo "configure: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 rm -rf conftest*
9557 eval "ac_cv_func_gethostbyname=no"
9558 fi
9559 rm -f conftest*
9560 fi
9561
9562 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9563 echo "$ac_t""yes" 1>&6
9564 :
9565 else
9566 echo "$ac_t""no" 1>&6
9567 fi
9568
9569 if test $ac_cv_func_gethostbyname = no; then
9570 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
9571 echo "configure:9572: checking for gethostbyname in -lnsl" >&5
9572 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9575 else
9576 ac_save_LIBS="$LIBS"
9577 LIBS="-lnsl $LIBS"
9578 cat > conftest.$ac_ext <<EOF
9579 #line 9580 "configure"
9580 #include "confdefs.h"
9581 /* Override any gcc2 internal prototype to avoid an error. */
9582 /* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9584 char gethostbyname();
9585
9586 int main() {
9587 gethostbyname()
9588 ; return 0; }
9589 EOF
9590 if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9591 rm -rf conftest*
9592 eval "ac_cv_lib_$ac_lib_var=yes"
9593 else
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 rm -rf conftest*
9597 eval "ac_cv_lib_$ac_lib_var=no"
9598 fi
9599 rm -f conftest*
9600 LIBS="$ac_save_LIBS"
9601
9602 fi
9603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9604 echo "$ac_t""yes" 1>&6
9605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9606 else
9607 echo "$ac_t""no" 1>&6
9608 fi
9609
9610 fi
9611
9612 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9613 # socket/setsockopt and other routines are undefined under SCO ODT
9614 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9615 # on later versions), says simon@lia.di.epfl.ch: it contains
9616 # gethostby* variants that don't use the nameserver (or something).
9617 # -lsocket must be given before -lnsl if both are needed.
9618 # We assume that if connect needs -lnsl, so does gethostbyname.
9619 echo $ac_n "checking for connect""... $ac_c" 1>&6
9620 echo "configure:9621: checking for connect" >&5
9621 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623 else
9624 cat > conftest.$ac_ext <<EOF
9625 #line 9626 "configure"
9626 #include "confdefs.h"
9627 /* System header to define __stub macros and hopefully few prototypes,
9628 which can conflict with char connect(); below. */
9629 #include <assert.h>
9630 /* Override any gcc2 internal prototype to avoid an error. */
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9633 char connect();
9634
9635 int main() {
9636
9637 /* The GNU C library defines this for functions which it implements
9638 to always fail with ENOSYS. Some functions are actually named
9639 something starting with __ and the normal name is an alias. */
9640 #if defined (__stub_connect) || defined (__stub___connect)
9641 choke me
9642 #else
9643 connect();
9644 #endif
9645
9646 ; return 0; }
9647 EOF
9648 if { (eval echo configure:9649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9649 rm -rf conftest*
9650 eval "ac_cv_func_connect=yes"
9651 else
9652 echo "configure: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
9654 rm -rf conftest*
9655 eval "ac_cv_func_connect=no"
9656 fi
9657 rm -f conftest*
9658 fi
9659
9660 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9661 echo "$ac_t""yes" 1>&6
9662 :
9663 else
9664 echo "$ac_t""no" 1>&6
9665 fi
9666
9667 if test $ac_cv_func_connect = no; then
9668 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
9669 echo "configure:9670: checking for connect in -lsocket" >&5
9670 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9673 else
9674 ac_save_LIBS="$LIBS"
9675 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9676 cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9679 /* Override any gcc2 internal prototype to avoid an error. */
9680 /* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9682 char connect();
9683
9684 int main() {
9685 connect()
9686 ; return 0; }
9687 EOF
9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9689 rm -rf conftest*
9690 eval "ac_cv_lib_$ac_lib_var=yes"
9691 else
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 rm -rf conftest*
9695 eval "ac_cv_lib_$ac_lib_var=no"
9696 fi
9697 rm -f conftest*
9698 LIBS="$ac_save_LIBS"
9699
9700 fi
9701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9702 echo "$ac_t""yes" 1>&6
9703 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9704 else
9705 echo "$ac_t""no" 1>&6
9706 fi
9707
9708 fi
9709
9710 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9711 echo $ac_n "checking for remove""... $ac_c" 1>&6
9712 echo "configure:9713: checking for remove" >&5
9713 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9715 else
9716 cat > conftest.$ac_ext <<EOF
9717 #line 9718 "configure"
9718 #include "confdefs.h"
9719 /* System header to define __stub macros and hopefully few prototypes,
9720 which can conflict with char remove(); below. */
9721 #include <assert.h>
9722 /* Override any gcc2 internal prototype to avoid an error. */
9723 /* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9725 char remove();
9726
9727 int main() {
9728
9729 /* The GNU C library defines this for functions which it implements
9730 to always fail with ENOSYS. Some functions are actually named
9731 something starting with __ and the normal name is an alias. */
9732 #if defined (__stub_remove) || defined (__stub___remove)
9733 choke me
9734 #else
9735 remove();
9736 #endif
9737
9738 ; return 0; }
9739 EOF
9740 if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9741 rm -rf conftest*
9742 eval "ac_cv_func_remove=yes"
9743 else
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 rm -rf conftest*
9747 eval "ac_cv_func_remove=no"
9748 fi
9749 rm -f conftest*
9750 fi
9751
9752 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 :
9755 else
9756 echo "$ac_t""no" 1>&6
9757 fi
9758
9759 if test $ac_cv_func_remove = no; then
9760 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
9761 echo "configure:9762: checking for remove in -lposix" >&5
9762 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9764 echo $ac_n "(cached) $ac_c" 1>&6
9765 else
9766 ac_save_LIBS="$LIBS"
9767 LIBS="-lposix $LIBS"
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 /* Override any gcc2 internal prototype to avoid an error. */
9772 /* We use char because int might match the return type of a gcc2
9773 builtin and then its argument prototype would still apply. */
9774 char remove();
9775
9776 int main() {
9777 remove()
9778 ; return 0; }
9779 EOF
9780 if { (eval echo configure:9781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9781 rm -rf conftest*
9782 eval "ac_cv_lib_$ac_lib_var=yes"
9783 else
9784 echo "configure: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 rm -rf conftest*
9787 eval "ac_cv_lib_$ac_lib_var=no"
9788 fi
9789 rm -f conftest*
9790 LIBS="$ac_save_LIBS"
9791
9792 fi
9793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9794 echo "$ac_t""yes" 1>&6
9795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9796 else
9797 echo "$ac_t""no" 1>&6
9798 fi
9799
9800 fi
9801
9802 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9803 echo $ac_n "checking for shmat""... $ac_c" 1>&6
9804 echo "configure:9805: checking for shmat" >&5
9805 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
9807 else
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9811 /* System header to define __stub macros and hopefully few prototypes,
9812 which can conflict with char shmat(); below. */
9813 #include <assert.h>
9814 /* Override any gcc2 internal prototype to avoid an error. */
9815 /* We use char because int might match the return type of a gcc2
9816 builtin and then its argument prototype would still apply. */
9817 char shmat();
9818
9819 int main() {
9820
9821 /* The GNU C library defines this for functions which it implements
9822 to always fail with ENOSYS. Some functions are actually named
9823 something starting with __ and the normal name is an alias. */
9824 #if defined (__stub_shmat) || defined (__stub___shmat)
9825 choke me
9826 #else
9827 shmat();
9828 #endif
9829
9830 ; return 0; }
9831 EOF
9832 if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9833 rm -rf conftest*
9834 eval "ac_cv_func_shmat=yes"
9835 else
9836 echo "configure: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9838 rm -rf conftest*
9839 eval "ac_cv_func_shmat=no"
9840 fi
9841 rm -f conftest*
9842 fi
9843
9844 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
9845 echo "$ac_t""yes" 1>&6
9846 :
9847 else
9848 echo "$ac_t""no" 1>&6
9849 fi
9850
9851 if test $ac_cv_func_shmat = no; then
9852 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
9853 echo "configure:9854: checking for shmat in -lipc" >&5
9854 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
9855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
9857 else
9858 ac_save_LIBS="$LIBS"
9859 LIBS="-lipc $LIBS"
9860 cat > conftest.$ac_ext <<EOF
9861 #line 9862 "configure"
9862 #include "confdefs.h"
9863 /* Override any gcc2 internal prototype to avoid an error. */
9864 /* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9866 char shmat();
9867
9868 int main() {
9869 shmat()
9870 ; return 0; }
9871 EOF
9872 if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9873 rm -rf conftest*
9874 eval "ac_cv_lib_$ac_lib_var=yes"
9875 else
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9878 rm -rf conftest*
9879 eval "ac_cv_lib_$ac_lib_var=no"
9880 fi
9881 rm -f conftest*
9882 LIBS="$ac_save_LIBS"
9883
9884 fi
9885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9886 echo "$ac_t""yes" 1>&6
9887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9888 else
9889 echo "$ac_t""no" 1>&6
9890 fi
9891
9892 fi
9893 fi
9894
9895 # Check for libraries that X11R6 Xt/Xaw programs need.
9896 ac_save_LDFLAGS="$LDFLAGS"
9897 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9898 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9899 # check for ICE first), but we must link in the order -lSM -lICE or
9900 # we get undefined symbols. So assume we have SM if we have ICE.
9901 # These have to be linked with before -lX11, unlike the other
9902 # libraries we check for below, so use a different variable.
9903 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
9904 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
9905 echo "configure:9906: checking for IceConnectionNumber in -lICE" >&5
9906 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
9907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9908 echo $ac_n "(cached) $ac_c" 1>&6
9909 else
9910 ac_save_LIBS="$LIBS"
9911 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 /* Override any gcc2 internal prototype to avoid an error. */
9916 /* We use char because int might match the return type of a gcc2
9917 builtin and then its argument prototype would still apply. */
9918 char IceConnectionNumber();
9919
9920 int main() {
9921 IceConnectionNumber()
9922 ; return 0; }
9923 EOF
9924 if { (eval echo configure:9925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9925 rm -rf conftest*
9926 eval "ac_cv_lib_$ac_lib_var=yes"
9927 else
9928 echo "configure: failed program was:" >&5
9929 cat conftest.$ac_ext >&5
9930 rm -rf conftest*
9931 eval "ac_cv_lib_$ac_lib_var=no"
9932 fi
9933 rm -f conftest*
9934 LIBS="$ac_save_LIBS"
9935
9936 fi
9937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9938 echo "$ac_t""yes" 1>&6
9939 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9940 else
9941 echo "$ac_t""no" 1>&6
9942 fi
9943
9944 LDFLAGS="$ac_save_LDFLAGS"
9945
9946 fi
9947
9948 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9949 LDFLAGS="$LDFLAGS $X_LIBS"
9950
9951 if test "$wxUSE_MOTIF" = 1; then
9952 if test "$no_x" = "yes"; then
9953 { echo "configure: error: X11 not found" 1>&2; exit 1; }
9954 fi
9955
9956 GUI_TK_LIBRARY="$X_LIBS"
9957 TOOLKIT_INCLUDE="$X_CFLAGS"
9958
9959 AFMINSTALL=afminstall
9960
9961
9962 COMPILED_X_PROGRAM=0
9963
9964 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
9965 echo "configure:9966: checking for Motif/Lesstif headers" >&5
9966
9967 ac_find_includes=
9968 for ac_dir in $SEARCH_INCLUDE;
9969 do
9970 if test -f "$ac_dir/Xm/Xm.h"; then
9971 ac_find_includes=$ac_dir
9972 break
9973 fi
9974 done
9975
9976 if test "$ac_find_includes" != "" ; then
9977 echo "$ac_t""found $ac_find_includes" 1>&6
9978 else
9979 cat > conftest.$ac_ext <<EOF
9980 #line 9981 "configure"
9981 #include "confdefs.h"
9982
9983 #include <Xm/Xm.h>
9984
9985 int main() {
9986
9987 int version;
9988
9989 version = xmUseVersion;
9990
9991 ; return 0; }
9992 EOF
9993 if { (eval echo configure:9994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9994 rm -rf conftest*
9995
9996 echo "$ac_t""found in default search path" 1>&6
9997 COMPILED_X_PROGRAM=1
9998
9999 else
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10002 rm -rf conftest*
10003
10004 echo "$ac_t""no" 1>&6
10005 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10006
10007
10008 fi
10009 rm -f conftest*
10010 fi
10011
10012 if test "$COMPILED_X_PROGRAM" = 0; then
10013 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10014 echo "configure:10015: checking for Motif/Lesstif library" >&5
10015
10016 ac_find_libraries=
10017 for ac_dir in $SEARCH_LIB;
10018 do
10019 for ac_extension in a so sl; do
10020 if test -f "$ac_dir/libXm.$ac_extension"; then
10021 ac_find_libraries=$ac_dir
10022 break 2
10023 fi
10024 done
10025 done
10026
10027 if test "$ac_find_libraries" != "" ; then
10028
10029 ac_path_to_include=$ac_find_includes
10030 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10031 result=$?
10032 if test $result = 0; then
10033 ac_path_to_include=""
10034 else
10035 ac_path_to_include="-I$ac_find_includes"
10036 fi
10037
10038
10039 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10040 result=$?
10041 if test $result = 0; then
10042 ac_path_to_link=""
10043 else
10044 ac_path_to_link="-L$ac_find_libraries"
10045 fi
10046
10047
10048 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10049 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10050 echo "$ac_t""found at $ac_find_libraries" 1>&6
10051 else
10052 cat > conftest.$ac_ext <<EOF
10053 #line 10054 "configure"
10054 #include "confdefs.h"
10055
10056 #include <Xm/Xm.h>
10057
10058 int main() {
10059
10060 int version;
10061
10062 version = xmUseVersion;
10063
10064 ; return 0; }
10065 EOF
10066 if { (eval echo configure:10067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10067 rm -rf conftest*
10068
10069 echo "$ac_t""found in default search path" 1>&6
10070 COMPILED_X_PROGRAM=1
10071
10072 else
10073 echo "configure: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10075 rm -rf conftest*
10076
10077 echo "$ac_t""no" 1>&6
10078 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10079
10080
10081 fi
10082 rm -f conftest*
10083 fi
10084 fi
10085
10086
10087 XPM_LINK=""
10088 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10089 echo "configure:10090: checking for Xpm library" >&5
10090
10091 ac_find_libraries=
10092 for ac_dir in $SEARCH_LIB;
10093 do
10094 for ac_extension in a so sl; do
10095 if test -f "$ac_dir/libXpm.$ac_extension"; then
10096 ac_find_libraries=$ac_dir
10097 break 2
10098 fi
10099 done
10100 done
10101
10102 if test "$ac_find_libraries" != "" ; then
10103
10104 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10105 result=$?
10106 if test $result = 0; then
10107 ac_path_to_link=""
10108 else
10109 ac_path_to_link="-L$ac_find_libraries"
10110 fi
10111
10112 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10113 XPM_LINK="-lXpm "
10114 cat >> confdefs.h <<\EOF
10115 #define wxHAVE_LIB_XPM 1
10116 EOF
10117
10118 echo "$ac_t""found at $ac_find_libraries" 1>&6
10119 else
10120 cat > conftest.$ac_ext <<EOF
10121 #line 10122 "configure"
10122 #include "confdefs.h"
10123
10124 #include <X11/xpm.h>
10125
10126 int main() {
10127
10128 int version;
10129
10130 version = XpmLibraryVersion();
10131
10132 ; return 0; }
10133 EOF
10134 if { (eval echo configure:10135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10135 rm -rf conftest*
10136
10137 XPM_LINK="-lXpm "
10138 cat >> confdefs.h <<\EOF
10139 #define wxHAVE_LIB_XPM 1
10140 EOF
10141
10142 echo "$ac_t""found in default search path" 1>&6
10143 COMPILED_X_PROGRAM=0
10144
10145 else
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 rm -rf conftest*
10149
10150 echo "$ac_t""no" 1>&6
10151 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10152
10153
10154 fi
10155 rm -f conftest*
10156 fi
10157
10158 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10159 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10160 TOOLKIT=MOTIF
10161 GUIDIST=MOTIF_DIST
10162 fi
10163
10164 if test "$wxUSE_MAC" = 1; then
10165 TOOLKIT=MAC
10166 GUIDIST=MACX_DIST
10167 fi
10168
10169 if test "$wxUSE_PM" = 1; then
10170 TOOLKIT=PM
10171 GUIDIST=GTK_DIST
10172 fi
10173
10174 if test "$TOOLKIT" != "PM" ; then
10175 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10176 else
10177 TOOLKIT_DIR="os2"
10178 fi
10179
10180 TOOLKIT_NAME="${TOOLKIT_DIR}"
10181
10182 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10183
10184 if test "$TOOLKIT_NAME" = "motif"; then
10185 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10186 fi
10187
10188 if test "$wxUSE_UNIVERSAL" = "yes"; then
10189 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10190 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10191 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10192 SETUPH_DIR="univ"
10193 else
10194 SETUPH_DIR="${TOOLKIT_DIR}"
10195 fi
10196
10197 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10198 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10199 fi
10200
10201 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10202 if test "$wxUSE_UNIVERSAL" = "yes"; then
10203 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10204 fi
10205
10206 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10207
10208 if test "$wxUSE_UNIVERSAL" = "yes"; then
10209 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10210 else
10211 ALL_OBJECTS="\$(GUIOBJS)"
10212 fi
10213
10214 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10215
10216 if test "$TOOLKIT" != "MSW"; then
10217 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10218 fi
10219
10220 if test "$wxUSE_HTML" = "yes"; then
10221 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10222 fi
10223
10224 if test "$TOOLKIT" != "MSW"; then
10225 if test "$wxUSE_ODBC" = "yes" ; then
10226 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10227 fi
10228 fi
10229
10230 if test "$wxUSE_LIBJPEG" = "yes" ; then
10231 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10232 fi
10233 if test "$wxUSE_LIBTIFF" = "yes" ; then
10234 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10235 fi
10236 if test "$wxUSE_LIBPNG" = "yes" ; then
10237 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10238 fi
10239 if test "$wxUSE_ZLIB" = "yes" ; then
10240 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10241 fi
10242 if test "$wxUSE_FREETYPE" = "yes" ; then
10243 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10244 fi
10245
10246 if test "$wxUSE_UNIVERSAL" = "yes"; then
10247 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10248 else
10249 ALL_DEPFILES="\$(GUIDEPS)"
10250 fi
10251
10252 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10253
10254 if test "$TOOLKIT" != "MSW"; then
10255 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10256 fi
10257
10258 if test "$wxUSE_HTML" = "yes"; then
10259 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10260 fi
10261
10262 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10263 if test "$wxUSE_UNIVERSAL" = "yes"; then
10264 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10265 fi
10266 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10267 RPM_SPEC="wx\$(TOOLKIT).spec"
10268
10269 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10270 DISTDIR="wx\$(TOOLKIT)"
10271 else
10272 USE_GUI=0
10273
10274 TOOLKIT_DIR="base"
10275
10276 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10277 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10278 else
10279 TOOLKIT_NAME="${TOOLKIT_DIR}"
10280 fi
10281
10282 TOOLKIT_DEF="-D__WXBASE__"
10283
10284 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10285 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10286
10287 if test "$wxUSE_ZLIB" = "yes" ; then
10288 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10289 fi
10290
10291 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10292
10293 PORT_FILES="src/files.lst"
10294 RPM_FILES="src/rpmfiles.lst"
10295 RPM_SPEC="wxBase.spec"
10296
10297 GUIDIST="BASE_DIST"
10298 DISTDIR="wxBase"
10299 fi
10300
10301 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10302 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10303
10304 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10305 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10306
10307 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10308 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10309
10310 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10311 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10312 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10313 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10314 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10315 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10316
10317 SHARED_LD=
10318 PIC_FLAG=
10319 WX_ALL=
10320 WX_ALL_INSTALLED=
10321 BURNT_LIBRARY_NAME=
10322 WX_TARGET_LIBRARY_SONAME=
10323
10324
10325 if test "$wxUSE_SHARED" = "yes"; then
10326 case "${host}" in
10327 *-hp-hpux* )
10328 if test "$GCC" = yes ; then
10329 SHARED_LD="${CC} -shared -fPIC -o"
10330 PIC_FLAG="-fPIC"
10331 else
10332 LDFLAGS="-L/usr/lib"
10333
10334 SHARED_LD="${CXX} -b -o"
10335 PIC_FLAG="+Z"
10336 fi
10337 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10338 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10339 if test "$wxUSE_OPENGL" = "yes"; then
10340 WX_ALL_INSTALLED="preinstall_gl"
10341 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10342 else
10343 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10344 fi
10345 ;;
10346
10347 *-*-linux* )
10348 SHARED_LD="${CC} -shared -o"
10349 PIC_FLAG="-fPIC"
10350 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10351 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10352 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10353 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10354 fi
10355 if test "$wxUSE_OPENGL" = "yes"; then
10356 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10357 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10358 else
10359 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10360 WX_ALL="CREATE_LINKS"
10361 fi
10362 ;;
10363 *-*-irix5* | *-*-irix6* )
10364 if test "$GCC" = yes ; then
10365 SHARED_LD="${CC} -shared -o"
10366 PIC_FLAG="-fPIC"
10367 else
10368 SHARED_LD="${CXX} -shared -o"
10369 fi
10370 if test "$wxUSE_OPENGL" = "yes"; then
10371 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10372 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10373 else
10374 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10375 WX_ALL="CREATE_LINKS"
10376 fi
10377 ;;
10378 *-*-solaris2* )
10379 if test "$GCC" = yes ; then
10380 SHARED_LD="${CC} -shared -o"
10381 PIC_FLAG="-fPIC"
10382
10383 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10384 else
10385 SHARED_LD="${CXX} -G -o"
10386 PIC_FLAG="-KPIC"
10387 fi
10388 if test "$wxUSE_OPENGL" = "yes"; then
10389 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10390 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10391 else
10392 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10393 WX_ALL="CREATE_LINKS"
10394 fi
10395 ;;
10396 *-*-sunos4* )
10397 SHARED_LD="${CC} -shared -o"
10398 PIC_FLAG="-fPIC"
10399 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10400 WX_ALL="CREATE_LINKS"
10401 ;;
10402 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10403 SHARED_LD="${CC} -shared -o"
10404 PIC_FLAG="-fPIC"
10405 if test "$wxUSE_OPENGL" = "yes"; then
10406 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10407 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10408 else
10409 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10410 WX_ALL="CREATE_LINKS"
10411 fi
10412 ;;
10413 *-*-darwin* )
10414 SHARED_LD="${CXX} -dynamiclib -o"
10415 PIC_FLAG="-dynamic -fPIC"
10416 if test "$wxUSE_OPENGL" = "yes"; then
10417 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10418 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10419 else
10420 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10421 WX_ALL="CREATE_LINKS"
10422 fi
10423 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10424 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10425 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10426 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10427 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10428 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10429 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10430 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10431 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10432 ;;
10433 *-*-osf* )
10434 SHARED_LD="${CXX} -shared -o"
10435 PIC_FLAG="-fPIC"
10436 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10437 WX_ALL="CREATE_LINKS"
10438 ;;
10439 *-*-dgux5* )
10440 SHARED_LD="${CXX} -shared -o"
10441 PIC_FLAG="-fPIC"
10442 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10443 WX_ALL="CREATE_LINKS"
10444 ;;
10445 *-*-sysv5* )
10446 SHARED_LD="${CC} -shared -o"
10447 PIC_FLAG="-fPIC"
10448 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10449 WX_ALL="CREATE_LINKS"
10450 ;;
10451 *-*-aix* )
10452 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10453 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10454 ;;
10455 *-*-cygwin* )
10456 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10457 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10458 if test "$wxUSE_OPENGL" = "yes"; then
10459 WX_ALL_INSTALLED="preinstall_gl"
10460 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10461 else
10462 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10463 fi
10464 ;;
10465 *-*-mingw32* )
10466 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10467 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10468 if test "$wxUSE_OPENGL" = "yes"; then
10469 WX_ALL_INSTALLED="preinstall_gl"
10470 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10471 else
10472 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10473 fi
10474 ;;
10475 *-pc-os2_emx )
10476 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10477 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10478 ;;
10479 *-*-beos* )
10480 SHARED_LD="${LD} -shared -o"
10481 PIC_FLAG="-fPIC"
10482 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10483 WX_ALL="CREATE_LINKS"
10484 ;;
10485 *)
10486 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10487 esac
10488
10489 if test "x$WX_TARGET_LIBRARY" = "x"; then
10490 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10491 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10492 fi
10493 WX_TARGET_LIBRARY_TYPE="so"
10494 else
10495 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10496 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10497
10498 if test "$wxUSE_OPENGL" = "yes"; then
10499 WX_ALL_INSTALLED="preinstall_gl"
10500 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10501 else
10502 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10503 fi
10504
10505 if test "$wxUSE_GUI" = "no"; then
10506 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10507 fi
10508
10509 WX_TARGET_LIBRARY_TYPE="a"
10510 fi
10511
10512
10513 for ac_hdr in strings.h
10514 do
10515 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10517 echo "configure:10518: checking for $ac_hdr" >&5
10518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10520 else
10521 cat > conftest.$ac_ext <<EOF
10522 #line 10523 "configure"
10523 #include "confdefs.h"
10524 #include <$ac_hdr>
10525 EOF
10526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10527 { (eval echo configure:10528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10529 if test -z "$ac_err"; then
10530 rm -rf conftest*
10531 eval "ac_cv_header_$ac_safe=yes"
10532 else
10533 echo "$ac_err" >&5
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -rf conftest*
10537 eval "ac_cv_header_$ac_safe=no"
10538 fi
10539 rm -f conftest*
10540 fi
10541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10542 echo "$ac_t""yes" 1>&6
10543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10544 cat >> confdefs.h <<EOF
10545 #define $ac_tr_hdr 1
10546 EOF
10547
10548 else
10549 echo "$ac_t""no" 1>&6
10550 fi
10551 done
10552
10553 for ac_hdr in stdlib.h
10554 do
10555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10557 echo "configure:10558: checking for $ac_hdr" >&5
10558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10559 echo $ac_n "(cached) $ac_c" 1>&6
10560 else
10561 cat > conftest.$ac_ext <<EOF
10562 #line 10563 "configure"
10563 #include "confdefs.h"
10564 #include <$ac_hdr>
10565 EOF
10566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10567 { (eval echo configure:10568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10569 if test -z "$ac_err"; then
10570 rm -rf conftest*
10571 eval "ac_cv_header_$ac_safe=yes"
10572 else
10573 echo "$ac_err" >&5
10574 echo "configure: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 rm -rf conftest*
10577 eval "ac_cv_header_$ac_safe=no"
10578 fi
10579 rm -f conftest*
10580 fi
10581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10582 echo "$ac_t""yes" 1>&6
10583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10584 cat >> confdefs.h <<EOF
10585 #define $ac_tr_hdr 1
10586 EOF
10587
10588 else
10589 echo "$ac_t""no" 1>&6
10590 fi
10591 done
10592
10593 for ac_hdr in unistd.h
10594 do
10595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10597 echo "configure:10598: checking for $ac_hdr" >&5
10598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10600 else
10601 cat > conftest.$ac_ext <<EOF
10602 #line 10603 "configure"
10603 #include "confdefs.h"
10604 #include <$ac_hdr>
10605 EOF
10606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10607 { (eval echo configure:10608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10609 if test -z "$ac_err"; then
10610 rm -rf conftest*
10611 eval "ac_cv_header_$ac_safe=yes"
10612 else
10613 echo "$ac_err" >&5
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 rm -rf conftest*
10617 eval "ac_cv_header_$ac_safe=no"
10618 fi
10619 rm -f conftest*
10620 fi
10621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10622 echo "$ac_t""yes" 1>&6
10623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10624 cat >> confdefs.h <<EOF
10625 #define $ac_tr_hdr 1
10626 EOF
10627
10628 else
10629 echo "$ac_t""no" 1>&6
10630 fi
10631 done
10632
10633 for ac_hdr in wchar.h
10634 do
10635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10637 echo "configure:10638: checking for $ac_hdr" >&5
10638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10639 echo $ac_n "(cached) $ac_c" 1>&6
10640 else
10641 cat > conftest.$ac_ext <<EOF
10642 #line 10643 "configure"
10643 #include "confdefs.h"
10644 #include <$ac_hdr>
10645 EOF
10646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10647 { (eval echo configure:10648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10649 if test -z "$ac_err"; then
10650 rm -rf conftest*
10651 eval "ac_cv_header_$ac_safe=yes"
10652 else
10653 echo "$ac_err" >&5
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 rm -rf conftest*
10657 eval "ac_cv_header_$ac_safe=no"
10658 fi
10659 rm -f conftest*
10660 fi
10661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10662 echo "$ac_t""yes" 1>&6
10663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10664 cat >> confdefs.h <<EOF
10665 #define $ac_tr_hdr 1
10666 EOF
10667
10668 else
10669 echo "$ac_t""no" 1>&6
10670 fi
10671 done
10672
10673 for ac_hdr in wcstr.h
10674 do
10675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10677 echo "configure:10678: checking for $ac_hdr" >&5
10678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10679 echo $ac_n "(cached) $ac_c" 1>&6
10680 else
10681 cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10684 #include <$ac_hdr>
10685 EOF
10686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10687 { (eval echo configure:10688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10689 if test -z "$ac_err"; then
10690 rm -rf conftest*
10691 eval "ac_cv_header_$ac_safe=yes"
10692 else
10693 echo "$ac_err" >&5
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10696 rm -rf conftest*
10697 eval "ac_cv_header_$ac_safe=no"
10698 fi
10699 rm -f conftest*
10700 fi
10701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10702 echo "$ac_t""yes" 1>&6
10703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10704 cat >> confdefs.h <<EOF
10705 #define $ac_tr_hdr 1
10706 EOF
10707
10708 else
10709 echo "$ac_t""no" 1>&6
10710 fi
10711 done
10712
10713 for ac_hdr in fnmatch.h
10714 do
10715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10717 echo "configure:10718: checking for $ac_hdr" >&5
10718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10720 else
10721 cat > conftest.$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10724 #include <$ac_hdr>
10725 EOF
10726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10727 { (eval echo configure:10728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10729 if test -z "$ac_err"; then
10730 rm -rf conftest*
10731 eval "ac_cv_header_$ac_safe=yes"
10732 else
10733 echo "$ac_err" >&5
10734 echo "configure: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 rm -rf conftest*
10737 eval "ac_cv_header_$ac_safe=no"
10738 fi
10739 rm -f conftest*
10740 fi
10741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10742 echo "$ac_t""yes" 1>&6
10743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10744 cat >> confdefs.h <<EOF
10745 #define $ac_tr_hdr 1
10746 EOF
10747
10748 else
10749 echo "$ac_t""no" 1>&6
10750 fi
10751 done
10752
10753 for ac_hdr in iconv.h
10754 do
10755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10757 echo "configure:10758: checking for $ac_hdr" >&5
10758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10760 else
10761 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10764 #include <$ac_hdr>
10765 EOF
10766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10767 { (eval echo configure:10768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10769 if test -z "$ac_err"; then
10770 rm -rf conftest*
10771 eval "ac_cv_header_$ac_safe=yes"
10772 else
10773 echo "$ac_err" >&5
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 rm -rf conftest*
10777 eval "ac_cv_header_$ac_safe=no"
10778 fi
10779 rm -f conftest*
10780 fi
10781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10784 cat >> confdefs.h <<EOF
10785 #define $ac_tr_hdr 1
10786 EOF
10787
10788 else
10789 echo "$ac_t""no" 1>&6
10790 fi
10791 done
10792
10793 for ac_hdr in langinfo.h
10794 do
10795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10797 echo "configure:10798: checking for $ac_hdr" >&5
10798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10799 echo $ac_n "(cached) $ac_c" 1>&6
10800 else
10801 cat > conftest.$ac_ext <<EOF
10802 #line 10803 "configure"
10803 #include "confdefs.h"
10804 #include <$ac_hdr>
10805 EOF
10806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10807 { (eval echo configure:10808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10809 if test -z "$ac_err"; then
10810 rm -rf conftest*
10811 eval "ac_cv_header_$ac_safe=yes"
10812 else
10813 echo "$ac_err" >&5
10814 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10816 rm -rf conftest*
10817 eval "ac_cv_header_$ac_safe=no"
10818 fi
10819 rm -f conftest*
10820 fi
10821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10822 echo "$ac_t""yes" 1>&6
10823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10824 cat >> confdefs.h <<EOF
10825 #define $ac_tr_hdr 1
10826 EOF
10827
10828 else
10829 echo "$ac_t""no" 1>&6
10830 fi
10831 done
10832
10833
10834 if test "$wxUSE_GUI" = "yes"; then
10835 if test "$wxUSE_UNIX" = "yes"; then
10836 for ac_hdr in X11/XKBlib.h
10837 do
10838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10840 echo "configure:10841: checking for $ac_hdr" >&5
10841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10842 echo $ac_n "(cached) $ac_c" 1>&6
10843 else
10844 cat > conftest.$ac_ext <<EOF
10845 #line 10846 "configure"
10846 #include "confdefs.h"
10847 #include <$ac_hdr>
10848 EOF
10849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10850 { (eval echo configure:10851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10852 if test -z "$ac_err"; then
10853 rm -rf conftest*
10854 eval "ac_cv_header_$ac_safe=yes"
10855 else
10856 echo "$ac_err" >&5
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10859 rm -rf conftest*
10860 eval "ac_cv_header_$ac_safe=no"
10861 fi
10862 rm -f conftest*
10863 fi
10864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10865 echo "$ac_t""yes" 1>&6
10866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10867 cat >> confdefs.h <<EOF
10868 #define $ac_tr_hdr 1
10869 EOF
10870
10871 else
10872 echo "$ac_t""no" 1>&6
10873 fi
10874 done
10875
10876 fi
10877 fi
10878
10879
10880 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10881 echo "configure:10882: checking for ANSI C header files" >&5
10882 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10883 echo $ac_n "(cached) $ac_c" 1>&6
10884 else
10885 cat > conftest.$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10888 #include <stdlib.h>
10889 #include <stdarg.h>
10890 #include <string.h>
10891 #include <float.h>
10892 EOF
10893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10894 { (eval echo configure:10895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10896 if test -z "$ac_err"; then
10897 rm -rf conftest*
10898 ac_cv_header_stdc=yes
10899 else
10900 echo "$ac_err" >&5
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10903 rm -rf conftest*
10904 ac_cv_header_stdc=no
10905 fi
10906 rm -f conftest*
10907
10908 if test $ac_cv_header_stdc = yes; then
10909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10910 cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure"
10912 #include "confdefs.h"
10913 #include <string.h>
10914 EOF
10915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10916 egrep "memchr" >/dev/null 2>&1; then
10917 :
10918 else
10919 rm -rf conftest*
10920 ac_cv_header_stdc=no
10921 fi
10922 rm -f conftest*
10923
10924 fi
10925
10926 if test $ac_cv_header_stdc = yes; then
10927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 #include <stdlib.h>
10932 EOF
10933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10934 egrep "free" >/dev/null 2>&1; then
10935 :
10936 else
10937 rm -rf conftest*
10938 ac_cv_header_stdc=no
10939 fi
10940 rm -f conftest*
10941
10942 fi
10943
10944 if test $ac_cv_header_stdc = yes; then
10945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10946 if test "$cross_compiling" = yes; then
10947 :
10948 else
10949 cat > conftest.$ac_ext <<EOF
10950 #line 10951 "configure"
10951 #include "confdefs.h"
10952 #include <ctype.h>
10953 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10954 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10956 int main () { int i; for (i = 0; i < 256; i++)
10957 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10958 exit (0); }
10959
10960 EOF
10961 if { (eval echo configure:10962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10962 then
10963 :
10964 else
10965 echo "configure: failed program was:" >&5
10966 cat conftest.$ac_ext >&5
10967 rm -fr conftest*
10968 ac_cv_header_stdc=no
10969 fi
10970 rm -fr conftest*
10971 fi
10972
10973 fi
10974 fi
10975
10976 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10977 if test $ac_cv_header_stdc = yes; then
10978 cat >> confdefs.h <<\EOF
10979 #define STDC_HEADERS 1
10980 EOF
10981
10982 fi
10983
10984 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10985 echo "configure:10986: checking for mode_t" >&5
10986 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10988 else
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 #include <sys/types.h>
10993 #if STDC_HEADERS
10994 #include <stdlib.h>
10995 #include <stddef.h>
10996 #endif
10997 EOF
10998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10999 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11000 rm -rf conftest*
11001 ac_cv_type_mode_t=yes
11002 else
11003 rm -rf conftest*
11004 ac_cv_type_mode_t=no
11005 fi
11006 rm -f conftest*
11007
11008 fi
11009 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11010 if test $ac_cv_type_mode_t = no; then
11011 cat >> confdefs.h <<\EOF
11012 #define mode_t int
11013 EOF
11014
11015 fi
11016
11017 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11018 echo "configure:11019: checking for off_t" >&5
11019 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11021 else
11022 cat > conftest.$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11025 #include <sys/types.h>
11026 #if STDC_HEADERS
11027 #include <stdlib.h>
11028 #include <stddef.h>
11029 #endif
11030 EOF
11031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11032 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11033 rm -rf conftest*
11034 ac_cv_type_off_t=yes
11035 else
11036 rm -rf conftest*
11037 ac_cv_type_off_t=no
11038 fi
11039 rm -f conftest*
11040
11041 fi
11042 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11043 if test $ac_cv_type_off_t = no; then
11044 cat >> confdefs.h <<\EOF
11045 #define off_t long
11046 EOF
11047
11048 fi
11049
11050 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11051 echo "configure:11052: checking for pid_t" >&5
11052 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11054 else
11055 cat > conftest.$ac_ext <<EOF
11056 #line 11057 "configure"
11057 #include "confdefs.h"
11058 #include <sys/types.h>
11059 #if STDC_HEADERS
11060 #include <stdlib.h>
11061 #include <stddef.h>
11062 #endif
11063 EOF
11064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11065 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11066 rm -rf conftest*
11067 ac_cv_type_pid_t=yes
11068 else
11069 rm -rf conftest*
11070 ac_cv_type_pid_t=no
11071 fi
11072 rm -f conftest*
11073
11074 fi
11075 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11076 if test $ac_cv_type_pid_t = no; then
11077 cat >> confdefs.h <<\EOF
11078 #define pid_t int
11079 EOF
11080
11081 fi
11082
11083 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11084 echo "configure:11085: checking for size_t" >&5
11085 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11087 else
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 #include <sys/types.h>
11092 #if STDC_HEADERS
11093 #include <stdlib.h>
11094 #include <stddef.h>
11095 #endif
11096 EOF
11097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11098 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11099 rm -rf conftest*
11100 ac_cv_type_size_t=yes
11101 else
11102 rm -rf conftest*
11103 ac_cv_type_size_t=no
11104 fi
11105 rm -f conftest*
11106
11107 fi
11108 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11109 if test $ac_cv_type_size_t = no; then
11110 cat >> confdefs.h <<\EOF
11111 #define size_t unsigned
11112 EOF
11113
11114 fi
11115
11116 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11117 echo "configure:11118: checking for uid_t in sys/types.h" >&5
11118 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
11120 else
11121 cat > conftest.$ac_ext <<EOF
11122 #line 11123 "configure"
11123 #include "confdefs.h"
11124 #include <sys/types.h>
11125 EOF
11126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11127 egrep "uid_t" >/dev/null 2>&1; then
11128 rm -rf conftest*
11129 ac_cv_type_uid_t=yes
11130 else
11131 rm -rf conftest*
11132 ac_cv_type_uid_t=no
11133 fi
11134 rm -f conftest*
11135
11136 fi
11137
11138 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11139 if test $ac_cv_type_uid_t = no; then
11140 cat >> confdefs.h <<\EOF
11141 #define uid_t int
11142 EOF
11143
11144 cat >> confdefs.h <<\EOF
11145 #define gid_t int
11146 EOF
11147
11148 fi
11149
11150
11151 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11152 echo "configure:11153: checking for wchar_t" >&5
11153 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11155 else
11156
11157 cat > conftest.$ac_ext <<EOF
11158 #line 11159 "configure"
11159 #include "confdefs.h"
11160 #include <wchar.h>
11161 int main() {
11162
11163 wchar_t wc, *ws;
11164 wc = L'a';
11165 ws = L"Hello, world!";
11166
11167 ; return 0; }
11168 EOF
11169 if { (eval echo configure:11170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11170 rm -rf conftest*
11171 wx_cv_type_wchar_t=yes
11172 else
11173 echo "configure: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 rm -rf conftest*
11176 cat > conftest.$ac_ext <<EOF
11177 #line 11178 "configure"
11178 #include "confdefs.h"
11179 #include <stdlib.h>
11180 int main() {
11181
11182 wchar_t wc, *ws;
11183 wc = L'a';
11184 ws = L"Hello, world!";
11185
11186 ; return 0; }
11187 EOF
11188 if { (eval echo configure:11189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11189 rm -rf conftest*
11190 wx_cv_type_wchar_t=yes
11191 else
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 rm -rf conftest*
11195 wx_cv_type_wchar_t=no
11196 fi
11197 rm -f conftest*
11198
11199 fi
11200 rm -f conftest*
11201
11202 fi
11203
11204 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11205
11206 if test "$wx_cv_type_wchar_t" = "yes"; then
11207 cat >> confdefs.h <<\EOF
11208 #define wxUSE_WCHAR_T 1
11209 EOF
11210
11211 fi
11212
11213
11214 ac_ext=C
11215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11216 ac_cpp='$CXXCPP $CPPFLAGS'
11217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11219 cross_compiling=$ac_cv_prog_cxx_cross
11220
11221 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11222 echo "configure:11223: checking if size_t is unsigned int" >&5
11223 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11225 else
11226 cat > conftest.$ac_ext <<EOF
11227 #line 11228 "configure"
11228 #include "confdefs.h"
11229 #include <stddef.h>
11230 int main() {
11231
11232 return 0; }
11233
11234 struct Foo { void foo(size_t); void foo(unsigned int); };
11235
11236 int bar() {
11237
11238 ; return 0; }
11239 EOF
11240 if { (eval echo configure:11241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11241 rm -rf conftest*
11242 wx_cv_size_t_is_uint=no
11243 else
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11246 rm -rf conftest*
11247 wx_cv_size_t_is_uint=yes
11248
11249 fi
11250 rm -f conftest*
11251
11252 fi
11253
11254 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11255
11256 if test "$wx_cv_size_t_is_uint" = "yes"; then
11257 cat >> confdefs.h <<\EOF
11258 #define wxSIZE_T_IS_UINT 1
11259 EOF
11260
11261 else
11262 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11263 echo "configure:11264: checking if size_t is unsigned long" >&5
11264 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266 else
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11270 #include <stddef.h>
11271 int main() {
11272
11273 return 0; }
11274
11275 struct Foo { void foo(size_t); void foo(unsigned long); };
11276
11277 int bar() {
11278
11279 ; return 0; }
11280 EOF
11281 if { (eval echo configure:11282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11282 rm -rf conftest*
11283 wx_cv_size_t_is_ulong=no
11284 else
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 wx_cv_size_t_is_ulong=yes
11289
11290 fi
11291 rm -f conftest*
11292
11293 fi
11294
11295 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11296
11297 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11298 cat >> confdefs.h <<\EOF
11299 #define wxSIZE_T_IS_ULONG 1
11300 EOF
11301
11302 fi
11303 fi
11304
11305 ac_ext=c
11306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307 ac_cpp='$CPP $CPPFLAGS'
11308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310 cross_compiling=$ac_cv_prog_cc_cross
11311
11312
11313
11314 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11315 echo "configure:11316: checking for pw_gecos in struct passwd" >&5
11316 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11317 echo $ac_n "(cached) $ac_c" 1>&6
11318 else
11319
11320 cat > conftest.$ac_ext <<EOF
11321 #line 11322 "configure"
11322 #include "confdefs.h"
11323 #include <pwd.h>
11324 int main() {
11325
11326 char *p;
11327 struct passwd *pw;
11328 p = pw->pw_gecos;
11329
11330 ; return 0; }
11331 EOF
11332 if { (eval echo configure:11333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11333 rm -rf conftest*
11334
11335 wx_cv_struct_pw_gecos=yes
11336
11337 else
11338 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5
11340 rm -rf conftest*
11341
11342 wx_cv_struct_pw_gecos=no
11343
11344
11345 fi
11346 rm -f conftest*
11347
11348
11349 fi
11350
11351 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11352
11353 if test "$wx_cv_struct_pw_gecos" = "yes"; then
11354 cat >> confdefs.h <<\EOF
11355 #define HAVE_PW_GECOS 1
11356 EOF
11357
11358 fi
11359
11360
11361 echo $ac_n "checking for working const""... $ac_c" 1>&6
11362 echo "configure:11363: checking for working const" >&5
11363 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11365 else
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11369
11370 int main() {
11371
11372 /* Ultrix mips cc rejects this. */
11373 typedef int charset[2]; const charset x;
11374 /* SunOS 4.1.1 cc rejects this. */
11375 char const *const *ccp;
11376 char **p;
11377 /* NEC SVR4.0.2 mips cc rejects this. */
11378 struct point {int x, y;};
11379 static struct point const zero = {0,0};
11380 /* AIX XL C 1.02.0.0 rejects this.
11381 It does not let you subtract one const X* pointer from another in an arm
11382 of an if-expression whose if-part is not a constant expression */
11383 const char *g = "string";
11384 ccp = &g + (g ? g-g : 0);
11385 /* HPUX 7.0 cc rejects these. */
11386 ++ccp;
11387 p = (char**) ccp;
11388 ccp = (char const *const *) p;
11389 { /* SCO 3.2v4 cc rejects this. */
11390 char *t;
11391 char const *s = 0 ? (char *) 0 : (char const *) 0;
11392
11393 *t++ = 0;
11394 }
11395 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11396 int x[] = {25, 17};
11397 const int *foo = &x[0];
11398 ++foo;
11399 }
11400 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11401 typedef const int *iptr;
11402 iptr p = 0;
11403 ++p;
11404 }
11405 { /* AIX XL C 1.02.0.0 rejects this saying
11406 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11407 struct s { int j; const int *ap[3]; };
11408 struct s *b; b->j = 5;
11409 }
11410 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11411 const int foo = 10;
11412 }
11413
11414 ; return 0; }
11415 EOF
11416 if { (eval echo configure:11417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11417 rm -rf conftest*
11418 ac_cv_c_const=yes
11419 else
11420 echo "configure: failed program was:" >&5
11421 cat conftest.$ac_ext >&5
11422 rm -rf conftest*
11423 ac_cv_c_const=no
11424 fi
11425 rm -f conftest*
11426 fi
11427
11428 echo "$ac_t""$ac_cv_c_const" 1>&6
11429 if test $ac_cv_c_const = no; then
11430 cat >> confdefs.h <<\EOF
11431 #define const
11432 EOF
11433
11434 fi
11435
11436 echo $ac_n "checking for inline""... $ac_c" 1>&6
11437 echo "configure:11438: checking for inline" >&5
11438 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11439 echo $ac_n "(cached) $ac_c" 1>&6
11440 else
11441 ac_cv_c_inline=no
11442 for ac_kw in inline __inline__ __inline; do
11443 cat > conftest.$ac_ext <<EOF
11444 #line 11445 "configure"
11445 #include "confdefs.h"
11446
11447 int main() {
11448 } $ac_kw foo() {
11449 ; return 0; }
11450 EOF
11451 if { (eval echo configure:11452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11452 rm -rf conftest*
11453 ac_cv_c_inline=$ac_kw; break
11454 else
11455 echo "configure: failed program was:" >&5
11456 cat conftest.$ac_ext >&5
11457 fi
11458 rm -f conftest*
11459 done
11460
11461 fi
11462
11463 echo "$ac_t""$ac_cv_c_inline" 1>&6
11464 case "$ac_cv_c_inline" in
11465 inline | yes) ;;
11466 no) cat >> confdefs.h <<\EOF
11467 #define inline
11468 EOF
11469 ;;
11470 *) cat >> confdefs.h <<EOF
11471 #define inline $ac_cv_c_inline
11472 EOF
11473 ;;
11474 esac
11475
11476
11477 echo $ac_n "checking size of char""... $ac_c" 1>&6
11478 echo "configure:11479: checking size of char" >&5
11479 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
11481 else
11482 if test "$cross_compiling" = yes; then
11483 ac_cv_sizeof_char=1
11484 else
11485 cat > conftest.$ac_ext <<EOF
11486 #line 11487 "configure"
11487 #include "confdefs.h"
11488 #include <stdio.h>
11489 main()
11490 {
11491 FILE *f=fopen("conftestval", "w");
11492 if (!f) exit(1);
11493 fprintf(f, "%d\n", sizeof(char));
11494 exit(0);
11495 }
11496 EOF
11497 if { (eval echo configure:11498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11498 then
11499 ac_cv_sizeof_char=`cat conftestval`
11500 else
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11503 rm -fr conftest*
11504 ac_cv_sizeof_char=0
11505 fi
11506 rm -fr conftest*
11507 fi
11508
11509 fi
11510 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11511 cat >> confdefs.h <<EOF
11512 #define SIZEOF_CHAR $ac_cv_sizeof_char
11513 EOF
11514
11515
11516 echo $ac_n "checking size of short""... $ac_c" 1>&6
11517 echo "configure:11518: checking size of short" >&5
11518 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11520 else
11521 if test "$cross_compiling" = yes; then
11522 ac_cv_sizeof_short=2
11523 else
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 #include <stdio.h>
11528 main()
11529 {
11530 FILE *f=fopen("conftestval", "w");
11531 if (!f) exit(1);
11532 fprintf(f, "%d\n", sizeof(short));
11533 exit(0);
11534 }
11535 EOF
11536 if { (eval echo configure:11537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11537 then
11538 ac_cv_sizeof_short=`cat conftestval`
11539 else
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11542 rm -fr conftest*
11543 ac_cv_sizeof_short=0
11544 fi
11545 rm -fr conftest*
11546 fi
11547
11548 fi
11549 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11550 cat >> confdefs.h <<EOF
11551 #define SIZEOF_SHORT $ac_cv_sizeof_short
11552 EOF
11553
11554
11555 echo $ac_n "checking size of int *""... $ac_c" 1>&6
11556 echo "configure:11557: checking size of int *" >&5
11557 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11559 else
11560 if test "$cross_compiling" = yes; then
11561 ac_cv_sizeof_int_p=4
11562 else
11563 cat > conftest.$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11566 #include <stdio.h>
11567 main()
11568 {
11569 FILE *f=fopen("conftestval", "w");
11570 if (!f) exit(1);
11571 fprintf(f, "%d\n", sizeof(int *));
11572 exit(0);
11573 }
11574 EOF
11575 if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11576 then
11577 ac_cv_sizeof_int_p=`cat conftestval`
11578 else
11579 echo "configure: failed program was:" >&5
11580 cat conftest.$ac_ext >&5
11581 rm -fr conftest*
11582 ac_cv_sizeof_int_p=0
11583 fi
11584 rm -fr conftest*
11585 fi
11586
11587 fi
11588 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11589 cat >> confdefs.h <<EOF
11590 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
11591 EOF
11592
11593
11594 echo $ac_n "checking size of int""... $ac_c" 1>&6
11595 echo "configure:11596: checking size of int" >&5
11596 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11597 echo $ac_n "(cached) $ac_c" 1>&6
11598 else
11599 if test "$cross_compiling" = yes; then
11600 ac_cv_sizeof_int=4
11601 else
11602 cat > conftest.$ac_ext <<EOF
11603 #line 11604 "configure"
11604 #include "confdefs.h"
11605 #include <stdio.h>
11606 main()
11607 {
11608 FILE *f=fopen("conftestval", "w");
11609 if (!f) exit(1);
11610 fprintf(f, "%d\n", sizeof(int));
11611 exit(0);
11612 }
11613 EOF
11614 if { (eval echo configure:11615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11615 then
11616 ac_cv_sizeof_int=`cat conftestval`
11617 else
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -fr conftest*
11621 ac_cv_sizeof_int=0
11622 fi
11623 rm -fr conftest*
11624 fi
11625
11626 fi
11627 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11628 cat >> confdefs.h <<EOF
11629 #define SIZEOF_INT $ac_cv_sizeof_int
11630 EOF
11631
11632
11633 echo $ac_n "checking size of long""... $ac_c" 1>&6
11634 echo "configure:11635: checking size of long" >&5
11635 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11637 else
11638 if test "$cross_compiling" = yes; then
11639 ac_cv_sizeof_long=4
11640 else
11641 cat > conftest.$ac_ext <<EOF
11642 #line 11643 "configure"
11643 #include "confdefs.h"
11644 #include <stdio.h>
11645 main()
11646 {
11647 FILE *f=fopen("conftestval", "w");
11648 if (!f) exit(1);
11649 fprintf(f, "%d\n", sizeof(long));
11650 exit(0);
11651 }
11652 EOF
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11654 then
11655 ac_cv_sizeof_long=`cat conftestval`
11656 else
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -fr conftest*
11660 ac_cv_sizeof_long=0
11661 fi
11662 rm -fr conftest*
11663 fi
11664
11665 fi
11666 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11667 cat >> confdefs.h <<EOF
11668 #define SIZEOF_LONG $ac_cv_sizeof_long
11669 EOF
11670
11671
11672 echo $ac_n "checking size of long long""... $ac_c" 1>&6
11673 echo "configure:11674: checking size of long long" >&5
11674 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11675 echo $ac_n "(cached) $ac_c" 1>&6
11676 else
11677 if test "$cross_compiling" = yes; then
11678 ac_cv_sizeof_long_long=0
11679 else
11680 cat > conftest.$ac_ext <<EOF
11681 #line 11682 "configure"
11682 #include "confdefs.h"
11683 #include <stdio.h>
11684 main()
11685 {
11686 FILE *f=fopen("conftestval", "w");
11687 if (!f) exit(1);
11688 fprintf(f, "%d\n", sizeof(long long));
11689 exit(0);
11690 }
11691 EOF
11692 if { (eval echo configure:11693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11693 then
11694 ac_cv_sizeof_long_long=`cat conftestval`
11695 else
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11698 rm -fr conftest*
11699 ac_cv_sizeof_long_long=0
11700 fi
11701 rm -fr conftest*
11702 fi
11703
11704 fi
11705 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11706 cat >> confdefs.h <<EOF
11707 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11708 EOF
11709
11710
11711
11712 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
11713 echo "configure:11714: checking size of wchar_t" >&5
11714 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11715 echo $ac_n "(cached) $ac_c" 1>&6
11716 else
11717
11718 if test "$cross_compiling" = yes; then
11719 wx_cv_sizeof_wchar_t=4
11720
11721 else
11722 cat > conftest.$ac_ext <<EOF
11723 #line 11724 "configure"
11724 #include "confdefs.h"
11725
11726 #ifdef HAVE_WCHAR_H
11727 # include <wchar.h>
11728 #endif
11729 #ifdef HAVE_STDLIB_H
11730 # include <stdlib.h>
11731 #endif
11732 #include <stdio.h>
11733 int main()
11734 {
11735 FILE *f=fopen("conftestval", "w");
11736 if (!f) exit(1);
11737 fprintf(f, "%i", sizeof(wchar_t));
11738 exit(0);
11739 }
11740
11741 EOF
11742 if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11743 then
11744 wx_cv_sizeof_wchar_t=`cat conftestval`
11745 else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -fr conftest*
11749 wx_cv_sizeof_wchar_t=0
11750 fi
11751 rm -fr conftest*
11752 fi
11753
11754
11755 fi
11756
11757 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11758
11759 cat >> confdefs.h <<EOF
11760 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
11761 EOF
11762
11763
11764
11765 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11766 echo "configure:11767: checking whether byte ordering is bigendian" >&5
11767 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
11769 else
11770 ac_cv_c_bigendian=unknown
11771 # See if sys/param.h defines the BYTE_ORDER macro.
11772 cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11775 #include <sys/types.h>
11776 #include <sys/param.h>
11777 int main() {
11778
11779 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11780 bogus endian macros
11781 #endif
11782 ; return 0; }
11783 EOF
11784 if { (eval echo configure:11785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11785 rm -rf conftest*
11786 # It does; now see whether it defined to BIG_ENDIAN or not.
11787 cat > conftest.$ac_ext <<EOF
11788 #line 11789 "configure"
11789 #include "confdefs.h"
11790 #include <sys/types.h>
11791 #include <sys/param.h>
11792 int main() {
11793
11794 #if BYTE_ORDER != BIG_ENDIAN
11795 not big endian
11796 #endif
11797 ; return 0; }
11798 EOF
11799 if { (eval echo configure:11800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11800 rm -rf conftest*
11801 ac_cv_c_bigendian=yes
11802 else
11803 echo "configure: failed program was:" >&5
11804 cat conftest.$ac_ext >&5
11805 rm -rf conftest*
11806 ac_cv_c_bigendian=no
11807 fi
11808 rm -f conftest*
11809 else
11810 echo "configure: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11812 fi
11813 rm -f conftest*
11814 if test $ac_cv_c_bigendian = unknown; then
11815 if test "$cross_compiling" = yes; then
11816 ac_cv_c_bigendian=unknown
11817 else
11818 cat > conftest.$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11821 main () {
11822 /* Are we little or big endian? From Harbison&Steele. */
11823 union
11824 {
11825 long l;
11826 char c[sizeof (long)];
11827 } u;
11828 u.l = 1;
11829 exit (u.c[sizeof (long) - 1] == 1);
11830 }
11831 EOF
11832 if { (eval echo configure:11833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11833 then
11834 ac_cv_c_bigendian=no
11835 else
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 rm -fr conftest*
11839 ac_cv_c_bigendian=yes
11840 fi
11841 rm -fr conftest*
11842 fi
11843
11844 fi
11845 fi
11846
11847 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11848 if test $ac_cv_c_bigendian = unknown; then
11849 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
11850 fi
11851 if test $ac_cv_c_bigendian = yes; then
11852 cat >> confdefs.h <<\EOF
11853 #define WORDS_BIGENDIAN 1
11854 EOF
11855
11856 fi
11857
11858
11859
11860 if test "$cross_compiling" = "yes"; then
11861 cat >> confdefs.h <<\EOF
11862 #define wxUSE_IOSTREAMH 1
11863 EOF
11864
11865 else
11866
11867 ac_ext=C
11868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11869 ac_cpp='$CXXCPP $CPPFLAGS'
11870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11872 cross_compiling=$ac_cv_prog_cxx_cross
11873
11874
11875 for ac_hdr in iostream
11876 do
11877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11879 echo "configure:11880: checking for $ac_hdr" >&5
11880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11881 echo $ac_n "(cached) $ac_c" 1>&6
11882 else
11883 cat > conftest.$ac_ext <<EOF
11884 #line 11885 "configure"
11885 #include "confdefs.h"
11886 #include <$ac_hdr>
11887 EOF
11888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11889 { (eval echo configure:11890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11891 if test -z "$ac_err"; then
11892 rm -rf conftest*
11893 eval "ac_cv_header_$ac_safe=yes"
11894 else
11895 echo "$ac_err" >&5
11896 echo "configure: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11898 rm -rf conftest*
11899 eval "ac_cv_header_$ac_safe=no"
11900 fi
11901 rm -f conftest*
11902 fi
11903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11904 echo "$ac_t""yes" 1>&6
11905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11906 cat >> confdefs.h <<EOF
11907 #define $ac_tr_hdr 1
11908 EOF
11909
11910 else
11911 echo "$ac_t""no" 1>&6
11912 fi
11913 done
11914
11915
11916 if test "$ac_cv_header_iostream" = "yes" ; then
11917 :
11918 else
11919 cat >> confdefs.h <<\EOF
11920 #define wxUSE_IOSTREAMH 1
11921 EOF
11922
11923 fi
11924
11925 ac_ext=c
11926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11927 ac_cpp='$CPP $CPPFLAGS'
11928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11930 cross_compiling=$ac_cv_prog_cc_cross
11931
11932 fi
11933
11934
11935
11936 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11937 echo "configure:11938: checking if C++ compiler supports bool" >&5
11938 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11939 echo $ac_n "(cached) $ac_c" 1>&6
11940 else
11941
11942
11943 ac_ext=C
11944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11945 ac_cpp='$CXXCPP $CPPFLAGS'
11946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11948 cross_compiling=$ac_cv_prog_cxx_cross
11949
11950
11951 cat > conftest.$ac_ext <<EOF
11952 #line 11953 "configure"
11953 #include "confdefs.h"
11954
11955
11956 int main() {
11957
11958 bool b = true;
11959
11960 return 0;
11961
11962 ; return 0; }
11963 EOF
11964 if { (eval echo configure:11965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11965 rm -rf conftest*
11966
11967 wx_cv_cpp_bool=yes
11968
11969 else
11970 echo "configure: failed program was:" >&5
11971 cat conftest.$ac_ext >&5
11972 rm -rf conftest*
11973
11974 wx_cv_cpp_bool=no
11975
11976
11977 fi
11978 rm -f conftest*
11979
11980 ac_ext=c
11981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11982 ac_cpp='$CPP $CPPFLAGS'
11983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11985 cross_compiling=$ac_cv_prog_cc_cross
11986
11987
11988 fi
11989
11990 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11991
11992 if test "$wx_cv_cpp_bool" = "yes"; then
11993 cat >> confdefs.h <<\EOF
11994 #define HAVE_BOOL 1
11995 EOF
11996
11997 fi
11998
11999
12000
12001 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
12002 echo "configure:12003: checking if you need GNU extensions" >&5
12003 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
12004 echo $ac_n "(cached) $ac_c" 1>&6
12005 else
12006
12007 cat > conftest.$ac_ext <<EOF
12008 #line 12009 "configure"
12009 #include "confdefs.h"
12010 #include <features.h>
12011 int main() {
12012
12013
12014 #ifndef __GNU_LIBRARY__
12015 Compile error wanted
12016 #endif
12017
12018
12019 ; return 0; }
12020 EOF
12021 if { (eval echo configure:12022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12022 rm -rf conftest*
12023 wx_cv_gnu_extensions=yes
12024 else
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12027 rm -rf conftest*
12028 wx_cv_gnu_extensions=no
12029 fi
12030 rm -f conftest*
12031
12032 fi
12033
12034
12035 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
12036 if test "$wx_cv_gnu_extensions" = "yes"; then
12037 cat >> confdefs.h <<EOF
12038 #define _GNU_SOURCE 1
12039 EOF
12040
12041 fi
12042
12043
12044
12045 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12046 echo "configure:12047: checking for wcslen in -lc" >&5
12047 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12049 echo $ac_n "(cached) $ac_c" 1>&6
12050 else
12051 ac_save_LIBS="$LIBS"
12052 LIBS="-lc $LIBS"
12053 cat > conftest.$ac_ext <<EOF
12054 #line 12055 "configure"
12055 #include "confdefs.h"
12056 /* Override any gcc2 internal prototype to avoid an error. */
12057 /* We use char because int might match the return type of a gcc2
12058 builtin and then its argument prototype would still apply. */
12059 char wcslen();
12060
12061 int main() {
12062 wcslen()
12063 ; return 0; }
12064 EOF
12065 if { (eval echo configure:12066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12066 rm -rf conftest*
12067 eval "ac_cv_lib_$ac_lib_var=yes"
12068 else
12069 echo "configure: failed program was:" >&5
12070 cat conftest.$ac_ext >&5
12071 rm -rf conftest*
12072 eval "ac_cv_lib_$ac_lib_var=no"
12073 fi
12074 rm -f conftest*
12075 LIBS="$ac_save_LIBS"
12076
12077 fi
12078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12079 echo "$ac_t""yes" 1>&6
12080
12081 cat >> confdefs.h <<\EOF
12082 #define HAVE_WCSLEN 1
12083 EOF
12084
12085 WCHAR_LINK=""
12086
12087 else
12088 echo "$ac_t""no" 1>&6
12089
12090 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12091 echo "configure:12092: checking for wcslen in -lw" >&5
12092 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12095 else
12096 ac_save_LIBS="$LIBS"
12097 LIBS="-lw $LIBS"
12098 cat > conftest.$ac_ext <<EOF
12099 #line 12100 "configure"
12100 #include "confdefs.h"
12101 /* Override any gcc2 internal prototype to avoid an error. */
12102 /* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12104 char wcslen();
12105
12106 int main() {
12107 wcslen()
12108 ; return 0; }
12109 EOF
12110 if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12111 rm -rf conftest*
12112 eval "ac_cv_lib_$ac_lib_var=yes"
12113 else
12114 echo "configure: failed program was:" >&5
12115 cat conftest.$ac_ext >&5
12116 rm -rf conftest*
12117 eval "ac_cv_lib_$ac_lib_var=no"
12118 fi
12119 rm -f conftest*
12120 LIBS="$ac_save_LIBS"
12121
12122 fi
12123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12124 echo "$ac_t""yes" 1>&6
12125
12126 cat >> confdefs.h <<\EOF
12127 #define HAVE_WCSLEN 1
12128 EOF
12129
12130 WCHAR_LINK="-lw"
12131
12132 else
12133 echo "$ac_t""no" 1>&6
12134 fi
12135
12136
12137 fi
12138
12139
12140 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12141 echo "configure:12142: checking for vprintf" >&5
12142 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12144 else
12145 cat > conftest.$ac_ext <<EOF
12146 #line 12147 "configure"
12147 #include "confdefs.h"
12148 /* System header to define __stub macros and hopefully few prototypes,
12149 which can conflict with char vprintf(); below. */
12150 #include <assert.h>
12151 /* Override any gcc2 internal prototype to avoid an error. */
12152 /* We use char because int might match the return type of a gcc2
12153 builtin and then its argument prototype would still apply. */
12154 char vprintf();
12155
12156 int main() {
12157
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12162 choke me
12163 #else
12164 vprintf();
12165 #endif
12166
12167 ; return 0; }
12168 EOF
12169 if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12170 rm -rf conftest*
12171 eval "ac_cv_func_vprintf=yes"
12172 else
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -rf conftest*
12176 eval "ac_cv_func_vprintf=no"
12177 fi
12178 rm -f conftest*
12179 fi
12180
12181 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12182 echo "$ac_t""yes" 1>&6
12183 cat >> confdefs.h <<\EOF
12184 #define HAVE_VPRINTF 1
12185 EOF
12186
12187 else
12188 echo "$ac_t""no" 1>&6
12189 fi
12190
12191 if test "$ac_cv_func_vprintf" != yes; then
12192 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12193 echo "configure:12194: checking for _doprnt" >&5
12194 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12195 echo $ac_n "(cached) $ac_c" 1>&6
12196 else
12197 cat > conftest.$ac_ext <<EOF
12198 #line 12199 "configure"
12199 #include "confdefs.h"
12200 /* System header to define __stub macros and hopefully few prototypes,
12201 which can conflict with char _doprnt(); below. */
12202 #include <assert.h>
12203 /* Override any gcc2 internal prototype to avoid an error. */
12204 /* We use char because int might match the return type of a gcc2
12205 builtin and then its argument prototype would still apply. */
12206 char _doprnt();
12207
12208 int main() {
12209
12210 /* The GNU C library defines this for functions which it implements
12211 to always fail with ENOSYS. Some functions are actually named
12212 something starting with __ and the normal name is an alias. */
12213 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12214 choke me
12215 #else
12216 _doprnt();
12217 #endif
12218
12219 ; return 0; }
12220 EOF
12221 if { (eval echo configure:12222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12222 rm -rf conftest*
12223 eval "ac_cv_func__doprnt=yes"
12224 else
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 rm -rf conftest*
12228 eval "ac_cv_func__doprnt=no"
12229 fi
12230 rm -f conftest*
12231 fi
12232
12233 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12234 echo "$ac_t""yes" 1>&6
12235 cat >> confdefs.h <<\EOF
12236 #define HAVE_DOPRNT 1
12237 EOF
12238
12239 else
12240 echo "$ac_t""no" 1>&6
12241 fi
12242
12243 fi
12244
12245
12246
12247
12248
12249
12250
12251 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12252 echo "configure:12253: checking for vsnprintf" >&5
12253 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12254 echo $ac_n "(cached) $ac_c" 1>&6
12255 else
12256
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260
12261 #include <stdio.h>
12262 #include <stdarg.h>
12263
12264 int main() {
12265
12266 int wx_test_vsnprintf(const char *, ...);
12267
12268 wx_test_vsnprintf("%s");
12269 return 0;
12270 }
12271
12272 int wx_test_vsnprintf(const char *fmt, ...)
12273 {
12274 char *s;
12275
12276 va_list argp;
12277 va_start(argp, fmt);
12278 vsnprintf(s, 42, fmt, argp);
12279 va_end(argp);
12280
12281 ; return 0; }
12282 EOF
12283 if { (eval echo configure:12284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12284 rm -rf conftest*
12285
12286 wx_cv_func_vsnprintf=yes
12287
12288 else
12289 echo "configure: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 rm -rf conftest*
12292
12293 cat > conftest.$ac_ext <<EOF
12294 #line 12295 "configure"
12295 #include "confdefs.h"
12296
12297 #include <stdio.h>
12298 #include <stdarg.h>
12299
12300 int main() {
12301
12302 int wx_test_vsnprintf(const char *, ...);
12303
12304 wx_test_vsnprintf("%s");
12305 return 0;
12306 }
12307
12308 int wx_test_vsnprintf(const char *fmt, ...)
12309 {
12310 char *s;
12311
12312 va_list argp;
12313 va_start(argp, fmt);
12314 _vsnprintf(s, 42, fmt, argp);
12315 va_end(argp);
12316
12317 ; return 0; }
12318 EOF
12319 if { (eval echo configure:12320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12320 rm -rf conftest*
12321
12322 wx_cv_func_vsnprintf=yes
12323
12324 else
12325 echo "configure: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12327 rm -rf conftest*
12328
12329 wx_cv_func_vsnprintf=no
12330
12331 fi
12332 rm -f conftest*
12333
12334 fi
12335 rm -f conftest*
12336
12337 fi
12338
12339 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12340
12341 if test "$wx_cv_func_vsnprintf" = yes; then
12342 cat >> confdefs.h <<\EOF
12343 #define HAVE_VSNPRINTF 1
12344 EOF
12345
12346 else
12347 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12348 fi
12349
12350 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12351 echo "configure:12352: checking for vsscanf" >&5
12352 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
12354 else
12355
12356 cat > conftest.$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359
12360 #include <stdio.h>
12361 #include <stdarg.h>
12362
12363 int main() {
12364
12365 int wx_test_vsscanf(const char *, ...);
12366
12367 wx_test_vsscanf("%d");
12368 return 0;
12369 }
12370
12371 int wx_test_vsscanf(const char *fmt, ...)
12372 {
12373 va_list argp;
12374 va_start(argp, fmt);
12375 vsscanf("42", fmt, argp);
12376 va_end(argp);
12377
12378 ; return 0; }
12379 EOF
12380 if { (eval echo configure:12381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12381 rm -rf conftest*
12382
12383 wx_cv_func_vsscanf=yes
12384
12385 else
12386 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12388 rm -rf conftest*
12389
12390 wx_cv_func_vsscanf=no
12391
12392 fi
12393 rm -f conftest*
12394
12395 fi
12396
12397 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12398
12399 if test "$wx_cv_func_vsscanf" = yes; then
12400 cat >> confdefs.h <<\EOF
12401 #define HAVE_VSSCANF 1
12402 EOF
12403
12404 fi
12405
12406 if test "$TOOLKIT" != "MSW"; then
12407
12408
12409
12410 ac_ext=C
12411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12412 ac_cpp='$CXXCPP $CPPFLAGS'
12413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12415 cross_compiling=$ac_cv_prog_cxx_cross
12416
12417 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12418 echo "configure:12419: checking if iconv() takes char**" >&5
12419 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12420 echo $ac_n "(cached) $ac_c" 1>&6
12421 else
12422
12423 cat > conftest.$ac_ext <<EOF
12424 #line 12425 "configure"
12425 #include "confdefs.h"
12426 #include <iconv.h>
12427 int main() {
12428
12429 char **inbuf, **outbuf;
12430 iconv_t cd;
12431 size_t insz, outsz;
12432 iconv(cd, inbuf, &insz, outbuf, &outsz);
12433
12434 ; return 0; }
12435 EOF
12436 if { (eval echo configure:12437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12437 rm -rf conftest*
12438 wx_cv_iconv_takes_char=yes
12439 else
12440 echo "configure: failed program was:" >&5
12441 cat conftest.$ac_ext >&5
12442 rm -rf conftest*
12443 wx_cv_iconv_takes_char=no
12444 fi
12445 rm -f conftest*
12446
12447 fi
12448
12449 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12450 ac_ext=c
12451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12452 ac_cpp='$CPP $CPPFLAGS'
12453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12455 cross_compiling=$ac_cv_prog_cc_cross
12456
12457 if test "$wx_cv_iconv_takes_char" = yes ; then
12458 cat >> confdefs.h <<\EOF
12459 #define WX_ICONV_TAKES_CHAR 1
12460 EOF
12461
12462 fi
12463
12464
12465 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12466 for ac_func in sigaction
12467 do
12468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12469 echo "configure:12470: checking for $ac_func" >&5
12470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12471 echo $ac_n "(cached) $ac_c" 1>&6
12472 else
12473 cat > conftest.$ac_ext <<EOF
12474 #line 12475 "configure"
12475 #include "confdefs.h"
12476 /* System header to define __stub macros and hopefully few prototypes,
12477 which can conflict with char $ac_func(); below. */
12478 #include <assert.h>
12479 /* Override any gcc2 internal prototype to avoid an error. */
12480 /* We use char because int might match the return type of a gcc2
12481 builtin and then its argument prototype would still apply. */
12482 char $ac_func();
12483
12484 int main() {
12485
12486 /* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12490 choke me
12491 #else
12492 $ac_func();
12493 #endif
12494
12495 ; return 0; }
12496 EOF
12497 if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12498 rm -rf conftest*
12499 eval "ac_cv_func_$ac_func=yes"
12500 else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 eval "ac_cv_func_$ac_func=no"
12505 fi
12506 rm -f conftest*
12507 fi
12508
12509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12512 cat >> confdefs.h <<EOF
12513 #define $ac_tr_func 1
12514 EOF
12515
12516 else
12517 echo "$ac_t""no" 1>&6
12518 fi
12519 done
12520
12521
12522 if test "$ac_cv_func_sigaction" = "no"; then
12523 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
12524 wxUSE_ON_FATAL_EXCEPTION=no
12525 fi
12526
12527 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12528
12529 ac_ext=C
12530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12531 ac_cpp='$CXXCPP $CPPFLAGS'
12532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12534 cross_compiling=$ac_cv_prog_cxx_cross
12535
12536
12537 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
12538 echo "configure:12539: checking for sa_handler type" >&5
12539 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12540 echo $ac_n "(cached) $ac_c" 1>&6
12541 else
12542
12543 cat > conftest.$ac_ext <<EOF
12544 #line 12545 "configure"
12545 #include "confdefs.h"
12546 #include <signal.h>
12547 int main() {
12548
12549 extern void testSigHandler(int);
12550
12551 struct sigaction sa;
12552 sa.sa_handler = testSigHandler;
12553
12554 ; return 0; }
12555 EOF
12556 if { (eval echo configure:12557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12557 rm -rf conftest*
12558
12559 wx_cv_type_sa_handler=int
12560
12561 else
12562 echo "configure: failed program was:" >&5
12563 cat conftest.$ac_ext >&5
12564 rm -rf conftest*
12565
12566 wx_cv_type_sa_handler=void
12567
12568 fi
12569 rm -f conftest*
12570
12571 fi
12572
12573 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
12574
12575 ac_ext=c
12576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12577 ac_cpp='$CPP $CPPFLAGS'
12578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12580 cross_compiling=$ac_cv_prog_cc_cross
12581
12582
12583 cat >> confdefs.h <<EOF
12584 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12585 EOF
12586
12587 fi
12588 fi
12589
12590 for ac_func in vfork
12591 do
12592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12593 echo "configure:12594: checking for $ac_func" >&5
12594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12595 echo $ac_n "(cached) $ac_c" 1>&6
12596 else
12597 cat > conftest.$ac_ext <<EOF
12598 #line 12599 "configure"
12599 #include "confdefs.h"
12600 /* System header to define __stub macros and hopefully few prototypes,
12601 which can conflict with char $ac_func(); below. */
12602 #include <assert.h>
12603 /* Override any gcc2 internal prototype to avoid an error. */
12604 /* We use char because int might match the return type of a gcc2
12605 builtin and then its argument prototype would still apply. */
12606 char $ac_func();
12607
12608 int main() {
12609
12610 /* The GNU C library defines this for functions which it implements
12611 to always fail with ENOSYS. Some functions are actually named
12612 something starting with __ and the normal name is an alias. */
12613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12614 choke me
12615 #else
12616 $ac_func();
12617 #endif
12618
12619 ; return 0; }
12620 EOF
12621 if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12622 rm -rf conftest*
12623 eval "ac_cv_func_$ac_func=yes"
12624 else
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 rm -rf conftest*
12628 eval "ac_cv_func_$ac_func=no"
12629 fi
12630 rm -f conftest*
12631 fi
12632
12633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12634 echo "$ac_t""yes" 1>&6
12635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12636 cat >> confdefs.h <<EOF
12637 #define $ac_tr_func 1
12638 EOF
12639
12640 else
12641 echo "$ac_t""no" 1>&6
12642 fi
12643 done
12644
12645
12646 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12647 for ac_func in fcntl flock
12648 do
12649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12650 echo "configure:12651: checking for $ac_func" >&5
12651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12652 echo $ac_n "(cached) $ac_c" 1>&6
12653 else
12654 cat > conftest.$ac_ext <<EOF
12655 #line 12656 "configure"
12656 #include "confdefs.h"
12657 /* System header to define __stub macros and hopefully few prototypes,
12658 which can conflict with char $ac_func(); below. */
12659 #include <assert.h>
12660 /* Override any gcc2 internal prototype to avoid an error. */
12661 /* We use char because int might match the return type of a gcc2
12662 builtin and then its argument prototype would still apply. */
12663 char $ac_func();
12664
12665 int main() {
12666
12667 /* The GNU C library defines this for functions which it implements
12668 to always fail with ENOSYS. Some functions are actually named
12669 something starting with __ and the normal name is an alias. */
12670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12671 choke me
12672 #else
12673 $ac_func();
12674 #endif
12675
12676 ; return 0; }
12677 EOF
12678 if { (eval echo configure:12679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12679 rm -rf conftest*
12680 eval "ac_cv_func_$ac_func=yes"
12681 else
12682 echo "configure: failed program was:" >&5
12683 cat conftest.$ac_ext >&5
12684 rm -rf conftest*
12685 eval "ac_cv_func_$ac_func=no"
12686 fi
12687 rm -f conftest*
12688 fi
12689
12690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12691 echo "$ac_t""yes" 1>&6
12692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12693 cat >> confdefs.h <<EOF
12694 #define $ac_tr_func 1
12695 EOF
12696 break
12697 else
12698 echo "$ac_t""no" 1>&6
12699 fi
12700 done
12701
12702
12703 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
12704 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
12705 wxUSE_SNGLINST_CHECKER=no
12706 fi
12707 fi
12708
12709 for ac_func in timegm
12710 do
12711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12712 echo "configure:12713: checking for $ac_func" >&5
12713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12715 else
12716 cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719 /* System header to define __stub macros and hopefully few prototypes,
12720 which can conflict with char $ac_func(); below. */
12721 #include <assert.h>
12722 /* Override any gcc2 internal prototype to avoid an error. */
12723 /* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12725 char $ac_func();
12726
12727 int main() {
12728
12729 /* The GNU C library defines this for functions which it implements
12730 to always fail with ENOSYS. Some functions are actually named
12731 something starting with __ and the normal name is an alias. */
12732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12733 choke me
12734 #else
12735 $ac_func();
12736 #endif
12737
12738 ; return 0; }
12739 EOF
12740 if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12741 rm -rf conftest*
12742 eval "ac_cv_func_$ac_func=yes"
12743 else
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 rm -rf conftest*
12747 eval "ac_cv_func_$ac_func=no"
12748 fi
12749 rm -f conftest*
12750 fi
12751
12752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12753 echo "$ac_t""yes" 1>&6
12754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12755 cat >> confdefs.h <<EOF
12756 #define $ac_tr_func 1
12757 EOF
12758
12759 else
12760 echo "$ac_t""no" 1>&6
12761 fi
12762 done
12763
12764
12765 for ac_func in putenv setenv
12766 do
12767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12768 echo "configure:12769: checking for $ac_func" >&5
12769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12770 echo $ac_n "(cached) $ac_c" 1>&6
12771 else
12772 cat > conftest.$ac_ext <<EOF
12773 #line 12774 "configure"
12774 #include "confdefs.h"
12775 /* System header to define __stub macros and hopefully few prototypes,
12776 which can conflict with char $ac_func(); below. */
12777 #include <assert.h>
12778 /* Override any gcc2 internal prototype to avoid an error. */
12779 /* We use char because int might match the return type of a gcc2
12780 builtin and then its argument prototype would still apply. */
12781 char $ac_func();
12782
12783 int main() {
12784
12785 /* The GNU C library defines this for functions which it implements
12786 to always fail with ENOSYS. Some functions are actually named
12787 something starting with __ and the normal name is an alias. */
12788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12789 choke me
12790 #else
12791 $ac_func();
12792 #endif
12793
12794 ; return 0; }
12795 EOF
12796 if { (eval echo configure:12797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12797 rm -rf conftest*
12798 eval "ac_cv_func_$ac_func=yes"
12799 else
12800 echo "configure: failed program was:" >&5
12801 cat conftest.$ac_ext >&5
12802 rm -rf conftest*
12803 eval "ac_cv_func_$ac_func=no"
12804 fi
12805 rm -f conftest*
12806 fi
12807
12808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12809 echo "$ac_t""yes" 1>&6
12810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12811 cat >> confdefs.h <<EOF
12812 #define $ac_tr_func 1
12813 EOF
12814 break
12815 else
12816 echo "$ac_t""no" 1>&6
12817 fi
12818 done
12819
12820
12821 HAVE_SOME_SLEEP_FUNC=0
12822 if test "$USE_BEOS" = 1; then
12823 cat >> confdefs.h <<\EOF
12824 #define HAVE_SLEEP 1
12825 EOF
12826
12827 HAVE_SOME_SLEEP_FUNC=1
12828 fi
12829
12830 if test "$USE_MAC" = 1; then
12831 cat >> confdefs.h <<\EOF
12832 #define HAVE_USLEEP 1
12833 EOF
12834
12835 HAVE_SOME_SLEEP_FUNC=1
12836 fi
12837
12838 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12839 POSIX4_LINK=
12840 for ac_func in nanosleep
12841 do
12842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12843 echo "configure:12844: checking for $ac_func" >&5
12844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12846 else
12847 cat > conftest.$ac_ext <<EOF
12848 #line 12849 "configure"
12849 #include "confdefs.h"
12850 /* System header to define __stub macros and hopefully few prototypes,
12851 which can conflict with char $ac_func(); below. */
12852 #include <assert.h>
12853 /* Override any gcc2 internal prototype to avoid an error. */
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856 char $ac_func();
12857
12858 int main() {
12859
12860 /* The GNU C library defines this for functions which it implements
12861 to always fail with ENOSYS. Some functions are actually named
12862 something starting with __ and the normal name is an alias. */
12863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12864 choke me
12865 #else
12866 $ac_func();
12867 #endif
12868
12869 ; return 0; }
12870 EOF
12871 if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12872 rm -rf conftest*
12873 eval "ac_cv_func_$ac_func=yes"
12874 else
12875 echo "configure: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 rm -rf conftest*
12878 eval "ac_cv_func_$ac_func=no"
12879 fi
12880 rm -f conftest*
12881 fi
12882
12883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12884 echo "$ac_t""yes" 1>&6
12885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12886 cat >> confdefs.h <<EOF
12887 #define $ac_tr_func 1
12888 EOF
12889 cat >> confdefs.h <<\EOF
12890 #define HAVE_NANOSLEEP 1
12891 EOF
12892
12893 else
12894 echo "$ac_t""no" 1>&6
12895 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
12896 echo "configure:12897: checking for nanosleep in -lposix4" >&5
12897 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
12898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12899 echo $ac_n "(cached) $ac_c" 1>&6
12900 else
12901 ac_save_LIBS="$LIBS"
12902 LIBS="-lposix4 $LIBS"
12903 cat > conftest.$ac_ext <<EOF
12904 #line 12905 "configure"
12905 #include "confdefs.h"
12906 /* Override any gcc2 internal prototype to avoid an error. */
12907 /* We use char because int might match the return type of a gcc2
12908 builtin and then its argument prototype would still apply. */
12909 char nanosleep();
12910
12911 int main() {
12912 nanosleep()
12913 ; return 0; }
12914 EOF
12915 if { (eval echo configure:12916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12916 rm -rf conftest*
12917 eval "ac_cv_lib_$ac_lib_var=yes"
12918 else
12919 echo "configure: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12921 rm -rf conftest*
12922 eval "ac_cv_lib_$ac_lib_var=no"
12923 fi
12924 rm -f conftest*
12925 LIBS="$ac_save_LIBS"
12926
12927 fi
12928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12929 echo "$ac_t""yes" 1>&6
12930
12931 cat >> confdefs.h <<\EOF
12932 #define HAVE_NANOSLEEP 1
12933 EOF
12934
12935 POSIX4_LINK="-lposix4"
12936
12937 else
12938 echo "$ac_t""no" 1>&6
12939
12940 for ac_func in usleep
12941 do
12942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12943 echo "configure:12944: checking for $ac_func" >&5
12944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12945 echo $ac_n "(cached) $ac_c" 1>&6
12946 else
12947 cat > conftest.$ac_ext <<EOF
12948 #line 12949 "configure"
12949 #include "confdefs.h"
12950 /* System header to define __stub macros and hopefully few prototypes,
12951 which can conflict with char $ac_func(); below. */
12952 #include <assert.h>
12953 /* Override any gcc2 internal prototype to avoid an error. */
12954 /* We use char because int might match the return type of a gcc2
12955 builtin and then its argument prototype would still apply. */
12956 char $ac_func();
12957
12958 int main() {
12959
12960 /* The GNU C library defines this for functions which it implements
12961 to always fail with ENOSYS. Some functions are actually named
12962 something starting with __ and the normal name is an alias. */
12963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12964 choke me
12965 #else
12966 $ac_func();
12967 #endif
12968
12969 ; return 0; }
12970 EOF
12971 if { (eval echo configure:12972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12972 rm -rf conftest*
12973 eval "ac_cv_func_$ac_func=yes"
12974 else
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12977 rm -rf conftest*
12978 eval "ac_cv_func_$ac_func=no"
12979 fi
12980 rm -f conftest*
12981 fi
12982
12983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12984 echo "$ac_t""yes" 1>&6
12985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12986 cat >> confdefs.h <<EOF
12987 #define $ac_tr_func 1
12988 EOF
12989 cat >> confdefs.h <<\EOF
12990 #define HAVE_USLEEP 1
12991 EOF
12992
12993 else
12994 echo "$ac_t""no" 1>&6
12995 echo "configure: warning: wxSleep() function will not work" 1>&2
12996
12997 fi
12998 done
12999
13000
13001
13002 fi
13003
13004
13005
13006 fi
13007 done
13008
13009 fi
13010
13011 for ac_func in uname gethostname
13012 do
13013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13014 echo "configure:13015: checking for $ac_func" >&5
13015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13016 echo $ac_n "(cached) $ac_c" 1>&6
13017 else
13018 cat > conftest.$ac_ext <<EOF
13019 #line 13020 "configure"
13020 #include "confdefs.h"
13021 /* System header to define __stub macros and hopefully few prototypes,
13022 which can conflict with char $ac_func(); below. */
13023 #include <assert.h>
13024 /* Override any gcc2 internal prototype to avoid an error. */
13025 /* We use char because int might match the return type of a gcc2
13026 builtin and then its argument prototype would still apply. */
13027 char $ac_func();
13028
13029 int main() {
13030
13031 /* The GNU C library defines this for functions which it implements
13032 to always fail with ENOSYS. Some functions are actually named
13033 something starting with __ and the normal name is an alias. */
13034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13035 choke me
13036 #else
13037 $ac_func();
13038 #endif
13039
13040 ; return 0; }
13041 EOF
13042 if { (eval echo configure:13043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13043 rm -rf conftest*
13044 eval "ac_cv_func_$ac_func=yes"
13045 else
13046 echo "configure: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13048 rm -rf conftest*
13049 eval "ac_cv_func_$ac_func=no"
13050 fi
13051 rm -f conftest*
13052 fi
13053
13054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13055 echo "$ac_t""yes" 1>&6
13056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13057 cat >> confdefs.h <<EOF
13058 #define $ac_tr_func 1
13059 EOF
13060 break
13061 else
13062 echo "$ac_t""no" 1>&6
13063 fi
13064 done
13065
13066
13067
13068 ac_ext=C
13069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13070 ac_cpp='$CXXCPP $CPPFLAGS'
13071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13073 cross_compiling=$ac_cv_prog_cxx_cross
13074
13075
13076 for ac_func in strtok_r
13077 do
13078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13079 echo "configure:13080: checking for $ac_func" >&5
13080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13082 else
13083 cat > conftest.$ac_ext <<EOF
13084 #line 13085 "configure"
13085 #include "confdefs.h"
13086 /* System header to define __stub macros and hopefully few prototypes,
13087 which can conflict with char $ac_func(); below. */
13088 #include <assert.h>
13089 /* Override any gcc2 internal prototype to avoid an error. */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 /* We use char because int might match the return type of a gcc2
13094 builtin and then its argument prototype would still apply. */
13095 char $ac_func();
13096
13097 int main() {
13098
13099 /* The GNU C library defines this for functions which it implements
13100 to always fail with ENOSYS. Some functions are actually named
13101 something starting with __ and the normal name is an alias. */
13102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13103 choke me
13104 #else
13105 $ac_func();
13106 #endif
13107
13108 ; return 0; }
13109 EOF
13110 if { (eval echo configure:13111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13111 rm -rf conftest*
13112 eval "ac_cv_func_$ac_func=yes"
13113 else
13114 echo "configure: failed program was:" >&5
13115 cat conftest.$ac_ext >&5
13116 rm -rf conftest*
13117 eval "ac_cv_func_$ac_func=no"
13118 fi
13119 rm -f conftest*
13120 fi
13121
13122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13123 echo "$ac_t""yes" 1>&6
13124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13125 cat >> confdefs.h <<EOF
13126 #define $ac_tr_func 1
13127 EOF
13128
13129 else
13130 echo "$ac_t""no" 1>&6
13131 fi
13132 done
13133
13134
13135 ac_ext=c
13136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13137 ac_cpp='$CPP $CPPFLAGS'
13138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13140 cross_compiling=$ac_cv_prog_cc_cross
13141
13142
13143 INET_LINK=
13144 for ac_func in inet_addr
13145 do
13146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13147 echo "configure:13148: checking for $ac_func" >&5
13148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13150 else
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char $ac_func(); below. */
13156 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error. */
13158 /* We use char because int might match the return type of a gcc2
13159 builtin and then its argument prototype would still apply. */
13160 char $ac_func();
13161
13162 int main() {
13163
13164 /* The GNU C library defines this for functions which it implements
13165 to always fail with ENOSYS. Some functions are actually named
13166 something starting with __ and the normal name is an alias. */
13167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13168 choke me
13169 #else
13170 $ac_func();
13171 #endif
13172
13173 ; return 0; }
13174 EOF
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176 rm -rf conftest*
13177 eval "ac_cv_func_$ac_func=yes"
13178 else
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=no"
13183 fi
13184 rm -f conftest*
13185 fi
13186
13187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13190 cat >> confdefs.h <<EOF
13191 #define $ac_tr_func 1
13192 EOF
13193 cat >> confdefs.h <<\EOF
13194 #define HAVE_INET_ADDR 1
13195 EOF
13196
13197 else
13198 echo "$ac_t""no" 1>&6
13199 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13200 echo "configure:13201: checking for inet_addr in -lnsl" >&5
13201 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13203 echo $ac_n "(cached) $ac_c" 1>&6
13204 else
13205 ac_save_LIBS="$LIBS"
13206 LIBS="-lnsl $LIBS"
13207 cat > conftest.$ac_ext <<EOF
13208 #line 13209 "configure"
13209 #include "confdefs.h"
13210 /* Override any gcc2 internal prototype to avoid an error. */
13211 /* We use char because int might match the return type of a gcc2
13212 builtin and then its argument prototype would still apply. */
13213 char inet_addr();
13214
13215 int main() {
13216 inet_addr()
13217 ; return 0; }
13218 EOF
13219 if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13220 rm -rf conftest*
13221 eval "ac_cv_lib_$ac_lib_var=yes"
13222 else
13223 echo "configure: failed program was:" >&5
13224 cat conftest.$ac_ext >&5
13225 rm -rf conftest*
13226 eval "ac_cv_lib_$ac_lib_var=no"
13227 fi
13228 rm -f conftest*
13229 LIBS="$ac_save_LIBS"
13230
13231 fi
13232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13233 echo "$ac_t""yes" 1>&6
13234 INET_LINK="nsl"
13235 else
13236 echo "$ac_t""no" 1>&6
13237 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13238 echo "configure:13239: checking for inet_addr in -lresolv" >&5
13239 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13242 else
13243 ac_save_LIBS="$LIBS"
13244 LIBS="-lresolv $LIBS"
13245 cat > conftest.$ac_ext <<EOF
13246 #line 13247 "configure"
13247 #include "confdefs.h"
13248 /* Override any gcc2 internal prototype to avoid an error. */
13249 /* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13251 char inet_addr();
13252
13253 int main() {
13254 inet_addr()
13255 ; return 0; }
13256 EOF
13257 if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13258 rm -rf conftest*
13259 eval "ac_cv_lib_$ac_lib_var=yes"
13260 else
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 rm -rf conftest*
13264 eval "ac_cv_lib_$ac_lib_var=no"
13265 fi
13266 rm -f conftest*
13267 LIBS="$ac_save_LIBS"
13268
13269 fi
13270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13271 echo "$ac_t""yes" 1>&6
13272 INET_LINK="resolv"
13273
13274 else
13275 echo "$ac_t""no" 1>&6
13276 fi
13277
13278
13279 fi
13280
13281
13282
13283 fi
13284 done
13285
13286
13287 for ac_func in inet_aton
13288 do
13289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13290 echo "configure:13291: checking for $ac_func" >&5
13291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13292 echo $ac_n "(cached) $ac_c" 1>&6
13293 else
13294 cat > conftest.$ac_ext <<EOF
13295 #line 13296 "configure"
13296 #include "confdefs.h"
13297 /* System header to define __stub macros and hopefully few prototypes,
13298 which can conflict with char $ac_func(); below. */
13299 #include <assert.h>
13300 /* Override any gcc2 internal prototype to avoid an error. */
13301 /* We use char because int might match the return type of a gcc2
13302 builtin and then its argument prototype would still apply. */
13303 char $ac_func();
13304
13305 int main() {
13306
13307 /* The GNU C library defines this for functions which it implements
13308 to always fail with ENOSYS. Some functions are actually named
13309 something starting with __ and the normal name is an alias. */
13310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13311 choke me
13312 #else
13313 $ac_func();
13314 #endif
13315
13316 ; return 0; }
13317 EOF
13318 if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13319 rm -rf conftest*
13320 eval "ac_cv_func_$ac_func=yes"
13321 else
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13324 rm -rf conftest*
13325 eval "ac_cv_func_$ac_func=no"
13326 fi
13327 rm -f conftest*
13328 fi
13329
13330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13331 echo "$ac_t""yes" 1>&6
13332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13333 cat >> confdefs.h <<EOF
13334 #define $ac_tr_func 1
13335 EOF
13336 cat >> confdefs.h <<\EOF
13337 #define HAVE_INET_ATON 1
13338 EOF
13339
13340 else
13341 echo "$ac_t""no" 1>&6
13342 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13343 echo "configure:13344: checking for inet_aton in -l$INET_LINK" >&5
13344 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13346 echo $ac_n "(cached) $ac_c" 1>&6
13347 else
13348 ac_save_LIBS="$LIBS"
13349 LIBS="-l$INET_LINK $LIBS"
13350 cat > conftest.$ac_ext <<EOF
13351 #line 13352 "configure"
13352 #include "confdefs.h"
13353 /* Override any gcc2 internal prototype to avoid an error. */
13354 /* We use char because int might match the return type of a gcc2
13355 builtin and then its argument prototype would still apply. */
13356 char inet_aton();
13357
13358 int main() {
13359 inet_aton()
13360 ; return 0; }
13361 EOF
13362 if { (eval echo configure:13363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13363 rm -rf conftest*
13364 eval "ac_cv_lib_$ac_lib_var=yes"
13365 else
13366 echo "configure: failed program was:" >&5
13367 cat conftest.$ac_ext >&5
13368 rm -rf conftest*
13369 eval "ac_cv_lib_$ac_lib_var=no"
13370 fi
13371 rm -f conftest*
13372 LIBS="$ac_save_LIBS"
13373
13374 fi
13375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13376 echo "$ac_t""yes" 1>&6
13377 cat >> confdefs.h <<\EOF
13378 #define HAVE_INET_ATON 1
13379 EOF
13380
13381 else
13382 echo "$ac_t""no" 1>&6
13383 fi
13384
13385
13386 fi
13387 done
13388
13389
13390 if test "x$INET_LINK" != "x"; then
13391 cat >> confdefs.h <<\EOF
13392 #define HAVE_INET_ADDR 1
13393 EOF
13394
13395 INET_LINK="-l$INET_LINK"
13396 fi
13397
13398 fi
13399
13400
13401 cat > confcache <<\EOF
13402 # This file is a shell script that caches the results of configure
13403 # tests run on this system so they can be shared between configure
13404 # scripts and configure runs. It is not useful on other systems.
13405 # If it contains results you don't want to keep, you may remove or edit it.
13406 #
13407 # By default, configure uses ./config.cache as the cache file,
13408 # creating it if it does not exist already. You can give configure
13409 # the --cache-file=FILE option to use a different cache file; that is
13410 # what configure does when it calls configure scripts in
13411 # subdirectories, so they share the cache.
13412 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13413 # config.status only pays attention to the cache file if you give it the
13414 # --recheck option to rerun configure.
13415 #
13416 EOF
13417 # The following way of writing the cache mishandles newlines in values,
13418 # but we know of no workaround that is simple, portable, and efficient.
13419 # So, don't put newlines in cache variables' values.
13420 # Ultrix sh set writes to stderr and can't be redirected directly,
13421 # and sets the high bit in the cache file unless we assign to the vars.
13422 (set) 2>&1 |
13423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13424 *ac_space=\ *)
13425 # `set' does not quote correctly, so add quotes (double-quote substitution
13426 # turns \\\\ into \\, and sed turns \\ into \).
13427 sed -n \
13428 -e "s/'/'\\\\''/g" \
13429 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13430 ;;
13431 *)
13432 # `set' quotes correctly as required by POSIX, so do not add quotes.
13433 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13434 ;;
13435 esac >> confcache
13436 if cmp -s $cache_file confcache; then
13437 :
13438 else
13439 if test -w $cache_file; then
13440 echo "updating cache $cache_file"
13441 cat confcache > $cache_file
13442 else
13443 echo "not updating unwritable cache $cache_file"
13444 fi
13445 fi
13446 rm -f confcache
13447
13448
13449
13450 if test "$TOOLKIT" != "MSW"; then
13451
13452
13453 THREADS_LINK=""
13454 THREADS_OBJ=""
13455
13456 if test "$wxUSE_THREADS" = "yes" ; then
13457 if test "$wxUSE_WINE" = 1 ; then
13458 echo "configure: warning: Threads are not supported under WINE" 1>&2
13459 wxUSE_THREADS="no"
13460 elif test "$USE_BEOS" = 1; then
13461 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13462 wxUSE_THREADS="no"
13463 fi
13464 fi
13465
13466 if test "$wxUSE_THREADS" = "yes" ; then
13467
13468 if test "$USE_AIX" = 1; then
13469 THREADS_LIB=pthreads
13470 else
13471 THREADS_LIB=pthread
13472 fi
13473
13474 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13475 echo "configure:13476: checking for pthread_create in -l$THREADS_LIB" >&5
13476 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13478 echo $ac_n "(cached) $ac_c" 1>&6
13479 else
13480 ac_save_LIBS="$LIBS"
13481 LIBS="-l$THREADS_LIB $LIBS"
13482 cat > conftest.$ac_ext <<EOF
13483 #line 13484 "configure"
13484 #include "confdefs.h"
13485 /* Override any gcc2 internal prototype to avoid an error. */
13486 /* We use char because int might match the return type of a gcc2
13487 builtin and then its argument prototype would still apply. */
13488 char pthread_create();
13489
13490 int main() {
13491 pthread_create()
13492 ; return 0; }
13493 EOF
13494 if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13495 rm -rf conftest*
13496 eval "ac_cv_lib_$ac_lib_var=yes"
13497 else
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13500 rm -rf conftest*
13501 eval "ac_cv_lib_$ac_lib_var=no"
13502 fi
13503 rm -f conftest*
13504 LIBS="$ac_save_LIBS"
13505
13506 fi
13507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13508 echo "$ac_t""yes" 1>&6
13509
13510 THREADS_OBJ="threadpsx.lo"
13511 THREADS_LINK=$THREADS_LIB
13512
13513 else
13514 echo "$ac_t""no" 1>&6
13515
13516 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13517 echo "configure:13518: checking for pthread_create in -lc_r" >&5
13518 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13520 echo $ac_n "(cached) $ac_c" 1>&6
13521 else
13522 ac_save_LIBS="$LIBS"
13523 LIBS="-lc_r $LIBS"
13524 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure"
13526 #include "confdefs.h"
13527 /* Override any gcc2 internal prototype to avoid an error. */
13528 /* We use char because int might match the return type of a gcc2
13529 builtin and then its argument prototype would still apply. */
13530 char pthread_create();
13531
13532 int main() {
13533 pthread_create()
13534 ; return 0; }
13535 EOF
13536 if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13537 rm -rf conftest*
13538 eval "ac_cv_lib_$ac_lib_var=yes"
13539 else
13540 echo "configure: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13542 rm -rf conftest*
13543 eval "ac_cv_lib_$ac_lib_var=no"
13544 fi
13545 rm -f conftest*
13546 LIBS="$ac_save_LIBS"
13547
13548 fi
13549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13550 echo "$ac_t""yes" 1>&6
13551
13552 THREADS_OBJ="threadpsx.lo"
13553 THREADS_LINK="c_r"
13554
13555 else
13556 echo "$ac_t""no" 1>&6
13557
13558 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13559 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
13560 echo "configure:13561: checking for sys/prctl.h" >&5
13561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13562 echo $ac_n "(cached) $ac_c" 1>&6
13563 else
13564 cat > conftest.$ac_ext <<EOF
13565 #line 13566 "configure"
13566 #include "confdefs.h"
13567 #include <sys/prctl.h>
13568 EOF
13569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13570 { (eval echo configure:13571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13572 if test -z "$ac_err"; then
13573 rm -rf conftest*
13574 eval "ac_cv_header_$ac_safe=yes"
13575 else
13576 echo "$ac_err" >&5
13577 echo "configure: failed program was:" >&5
13578 cat conftest.$ac_ext >&5
13579 rm -rf conftest*
13580 eval "ac_cv_header_$ac_safe=no"
13581 fi
13582 rm -f conftest*
13583 fi
13584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13585 echo "$ac_t""yes" 1>&6
13586
13587 THREADS_OBJ="threadsgi.lo"
13588
13589 else
13590 echo "$ac_t""no" 1>&6
13591 fi
13592
13593
13594 fi
13595
13596
13597 fi
13598
13599
13600 if test -z "$THREADS_OBJ" ; then
13601 wxUSE_THREADS=no
13602 echo "configure: warning: No thread support on this system" 1>&2
13603 fi
13604 fi
13605
13606 if test "$wxUSE_THREADS" = "yes" ; then
13607 for ac_func in thr_setconcurrency
13608 do
13609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13610 echo "configure:13611: checking for $ac_func" >&5
13611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13612 echo $ac_n "(cached) $ac_c" 1>&6
13613 else
13614 cat > conftest.$ac_ext <<EOF
13615 #line 13616 "configure"
13616 #include "confdefs.h"
13617 /* System header to define __stub macros and hopefully few prototypes,
13618 which can conflict with char $ac_func(); below. */
13619 #include <assert.h>
13620 /* Override any gcc2 internal prototype to avoid an error. */
13621 /* We use char because int might match the return type of a gcc2
13622 builtin and then its argument prototype would still apply. */
13623 char $ac_func();
13624
13625 int main() {
13626
13627 /* The GNU C library defines this for functions which it implements
13628 to always fail with ENOSYS. Some functions are actually named
13629 something starting with __ and the normal name is an alias. */
13630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13631 choke me
13632 #else
13633 $ac_func();
13634 #endif
13635
13636 ; return 0; }
13637 EOF
13638 if { (eval echo configure:13639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13639 rm -rf conftest*
13640 eval "ac_cv_func_$ac_func=yes"
13641 else
13642 echo "configure: failed program was:" >&5
13643 cat conftest.$ac_ext >&5
13644 rm -rf conftest*
13645 eval "ac_cv_func_$ac_func=no"
13646 fi
13647 rm -f conftest*
13648 fi
13649
13650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13651 echo "$ac_t""yes" 1>&6
13652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13653 cat >> confdefs.h <<EOF
13654 #define $ac_tr_func 1
13655 EOF
13656
13657 else
13658 echo "$ac_t""no" 1>&6
13659 fi
13660 done
13661
13662
13663
13664 for ac_hdr in sched.h
13665 do
13666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13668 echo "configure:13669: checking for $ac_hdr" >&5
13669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13671 else
13672 cat > conftest.$ac_ext <<EOF
13673 #line 13674 "configure"
13674 #include "confdefs.h"
13675 #include <$ac_hdr>
13676 EOF
13677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13678 { (eval echo configure:13679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13680 if test -z "$ac_err"; then
13681 rm -rf conftest*
13682 eval "ac_cv_header_$ac_safe=yes"
13683 else
13684 echo "$ac_err" >&5
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 rm -rf conftest*
13688 eval "ac_cv_header_$ac_safe=no"
13689 fi
13690 rm -f conftest*
13691 fi
13692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13693 echo "$ac_t""yes" 1>&6
13694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13695 cat >> confdefs.h <<EOF
13696 #define $ac_tr_hdr 1
13697 EOF
13698
13699 else
13700 echo "$ac_t""no" 1>&6
13701 fi
13702 done
13703
13704
13705 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
13706 echo "configure:13707: checking for sched_yield in -l$THREADS_LINK" >&5
13707 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13710 else
13711 ac_save_LIBS="$LIBS"
13712 LIBS="-l$THREADS_LINK $LIBS"
13713 cat > conftest.$ac_ext <<EOF
13714 #line 13715 "configure"
13715 #include "confdefs.h"
13716 /* Override any gcc2 internal prototype to avoid an error. */
13717 /* We use char because int might match the return type of a gcc2
13718 builtin and then its argument prototype would still apply. */
13719 char sched_yield();
13720
13721 int main() {
13722 sched_yield()
13723 ; return 0; }
13724 EOF
13725 if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13726 rm -rf conftest*
13727 eval "ac_cv_lib_$ac_lib_var=yes"
13728 else
13729 echo "configure: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 rm -rf conftest*
13732 eval "ac_cv_lib_$ac_lib_var=no"
13733 fi
13734 rm -f conftest*
13735 LIBS="$ac_save_LIBS"
13736
13737 fi
13738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13739 echo "$ac_t""yes" 1>&6
13740 cat >> confdefs.h <<\EOF
13741 #define HAVE_SCHED_YIELD 1
13742 EOF
13743
13744 else
13745 echo "$ac_t""no" 1>&6
13746 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
13747 echo "configure:13748: checking for sched_yield in -lposix4" >&5
13748 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13750 echo $ac_n "(cached) $ac_c" 1>&6
13751 else
13752 ac_save_LIBS="$LIBS"
13753 LIBS="-lposix4 $LIBS"
13754 cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13757 /* Override any gcc2 internal prototype to avoid an error. */
13758 /* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13760 char sched_yield();
13761
13762 int main() {
13763 sched_yield()
13764 ; return 0; }
13765 EOF
13766 if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13767 rm -rf conftest*
13768 eval "ac_cv_lib_$ac_lib_var=yes"
13769 else
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 rm -rf conftest*
13773 eval "ac_cv_lib_$ac_lib_var=no"
13774 fi
13775 rm -f conftest*
13776 LIBS="$ac_save_LIBS"
13777
13778 fi
13779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13780 echo "$ac_t""yes" 1>&6
13781 cat >> confdefs.h <<\EOF
13782 #define HAVE_SCHED_YIELD 1
13783 EOF
13784 POSIX4_LINK="-lposix4"
13785 else
13786 echo "$ac_t""no" 1>&6
13787 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13788
13789 fi
13790
13791
13792 fi
13793
13794
13795 HAVE_PRIOR_FUNCS=0
13796 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
13797 echo "configure:13798: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
13798 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13800 echo $ac_n "(cached) $ac_c" 1>&6
13801 else
13802 ac_save_LIBS="$LIBS"
13803 LIBS="-l$THREADS_LINK $LIBS"
13804 cat > conftest.$ac_ext <<EOF
13805 #line 13806 "configure"
13806 #include "confdefs.h"
13807 /* Override any gcc2 internal prototype to avoid an error. */
13808 /* We use char because int might match the return type of a gcc2
13809 builtin and then its argument prototype would still apply. */
13810 char pthread_attr_getschedpolicy();
13811
13812 int main() {
13813 pthread_attr_getschedpolicy()
13814 ; return 0; }
13815 EOF
13816 if { (eval echo configure:13817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13817 rm -rf conftest*
13818 eval "ac_cv_lib_$ac_lib_var=yes"
13819 else
13820 echo "configure: failed program was:" >&5
13821 cat conftest.$ac_ext >&5
13822 rm -rf conftest*
13823 eval "ac_cv_lib_$ac_lib_var=no"
13824 fi
13825 rm -f conftest*
13826 LIBS="$ac_save_LIBS"
13827
13828 fi
13829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13830 echo "$ac_t""yes" 1>&6
13831 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
13832 echo "configure:13833: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
13833 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13835 echo $ac_n "(cached) $ac_c" 1>&6
13836 else
13837 ac_save_LIBS="$LIBS"
13838 LIBS="-l$THREADS_LINK $LIBS"
13839 cat > conftest.$ac_ext <<EOF
13840 #line 13841 "configure"
13841 #include "confdefs.h"
13842 /* Override any gcc2 internal prototype to avoid an error. */
13843 /* We use char because int might match the return type of a gcc2
13844 builtin and then its argument prototype would still apply. */
13845 char pthread_attr_setschedparam();
13846
13847 int main() {
13848 pthread_attr_setschedparam()
13849 ; return 0; }
13850 EOF
13851 if { (eval echo configure:13852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852 rm -rf conftest*
13853 eval "ac_cv_lib_$ac_lib_var=yes"
13854 else
13855 echo "configure: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 rm -rf conftest*
13858 eval "ac_cv_lib_$ac_lib_var=no"
13859 fi
13860 rm -f conftest*
13861 LIBS="$ac_save_LIBS"
13862
13863 fi
13864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13865 echo "$ac_t""yes" 1>&6
13866 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
13867 echo "configure:13868: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
13868 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13870 echo $ac_n "(cached) $ac_c" 1>&6
13871 else
13872 ac_save_LIBS="$LIBS"
13873 LIBS="-l$THREADS_LINK $LIBS"
13874 cat > conftest.$ac_ext <<EOF
13875 #line 13876 "configure"
13876 #include "confdefs.h"
13877 /* Override any gcc2 internal prototype to avoid an error. */
13878 /* We use char because int might match the return type of a gcc2
13879 builtin and then its argument prototype would still apply. */
13880 char sched_get_priority_max();
13881
13882 int main() {
13883 sched_get_priority_max()
13884 ; return 0; }
13885 EOF
13886 if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13887 rm -rf conftest*
13888 eval "ac_cv_lib_$ac_lib_var=yes"
13889 else
13890 echo "configure: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 rm -rf conftest*
13893 eval "ac_cv_lib_$ac_lib_var=no"
13894 fi
13895 rm -f conftest*
13896 LIBS="$ac_save_LIBS"
13897
13898 fi
13899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13900 echo "$ac_t""yes" 1>&6
13901 HAVE_PRIOR_FUNCS=1
13902 else
13903 echo "$ac_t""no" 1>&6
13904 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
13905 echo "configure:13906: checking for sched_get_priority_max in -lposix4" >&5
13906 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
13909 else
13910 ac_save_LIBS="$LIBS"
13911 LIBS="-lposix4 $LIBS"
13912 cat > conftest.$ac_ext <<EOF
13913 #line 13914 "configure"
13914 #include "confdefs.h"
13915 /* Override any gcc2 internal prototype to avoid an error. */
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918 char sched_get_priority_max();
13919
13920 int main() {
13921 sched_get_priority_max()
13922 ; return 0; }
13923 EOF
13924 if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13925 rm -rf conftest*
13926 eval "ac_cv_lib_$ac_lib_var=yes"
13927 else
13928 echo "configure: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13930 rm -rf conftest*
13931 eval "ac_cv_lib_$ac_lib_var=no"
13932 fi
13933 rm -f conftest*
13934 LIBS="$ac_save_LIBS"
13935
13936 fi
13937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13938 echo "$ac_t""yes" 1>&6
13939
13940 HAVE_PRIOR_FUNCS=1
13941 POSIX4_LINK="-lposix4"
13942
13943 else
13944 echo "$ac_t""no" 1>&6
13945 fi
13946
13947
13948 fi
13949
13950
13951 else
13952 echo "$ac_t""no" 1>&6
13953 fi
13954
13955
13956 else
13957 echo "$ac_t""no" 1>&6
13958 fi
13959
13960
13961 if test "$HAVE_PRIOR_FUNCS" = 1; then
13962 cat >> confdefs.h <<\EOF
13963 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
13964 EOF
13965
13966 else
13967 echo "configure: warning: Setting thread priority will not work" 1>&2
13968 fi
13969
13970 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
13971 echo "configure:13972: checking for pthread_cancel in -l$THREADS_LINK" >&5
13972 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
13973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13974 echo $ac_n "(cached) $ac_c" 1>&6
13975 else
13976 ac_save_LIBS="$LIBS"
13977 LIBS="-l$THREADS_LINK $LIBS"
13978 cat > conftest.$ac_ext <<EOF
13979 #line 13980 "configure"
13980 #include "confdefs.h"
13981 /* Override any gcc2 internal prototype to avoid an error. */
13982 /* We use char because int might match the return type of a gcc2
13983 builtin and then its argument prototype would still apply. */
13984 char pthread_cancel();
13985
13986 int main() {
13987 pthread_cancel()
13988 ; return 0; }
13989 EOF
13990 if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13991 rm -rf conftest*
13992 eval "ac_cv_lib_$ac_lib_var=yes"
13993 else
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13996 rm -rf conftest*
13997 eval "ac_cv_lib_$ac_lib_var=no"
13998 fi
13999 rm -f conftest*
14000 LIBS="$ac_save_LIBS"
14001
14002 fi
14003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14004 echo "$ac_t""yes" 1>&6
14005 cat >> confdefs.h <<\EOF
14006 #define HAVE_PTHREAD_CANCEL 1
14007 EOF
14008
14009 else
14010 echo "$ac_t""no" 1>&6
14011 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14012 fi
14013
14014
14015 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14016 echo "configure:14017: checking for pthread_cleanup_push/pop" >&5
14017 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14018 echo $ac_n "(cached) $ac_c" 1>&6
14019 else
14020
14021 cat > conftest.$ac_ext <<EOF
14022 #line 14023 "configure"
14023 #include "confdefs.h"
14024 #include <pthread.h>
14025 int main() {
14026
14027 pthread_cleanup_push(NULL, NULL);
14028 pthread_cleanup_pop(0);
14029
14030 ; return 0; }
14031 EOF
14032 if { (eval echo configure:14033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14033 rm -rf conftest*
14034
14035 wx_cv_func_pthread_cleanup_push=yes
14036
14037 else
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14040 rm -rf conftest*
14041
14042 wx_cv_func_pthread_cleanup_push=no
14043
14044 fi
14045 rm -f conftest*
14046
14047 fi
14048
14049 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14050
14051 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14052 cat >> confdefs.h <<\EOF
14053 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14054 EOF
14055
14056 fi
14057
14058
14059 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14060 echo "configure:14061: checking for pthread_mutexattr_t" >&5
14061 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14063 else
14064
14065 cat > conftest.$ac_ext <<EOF
14066 #line 14067 "configure"
14067 #include "confdefs.h"
14068 #include <pthread.h>
14069 int main() {
14070
14071 pthread_mutexattr_t attr;
14072 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14073
14074 ; return 0; }
14075 EOF
14076 if { (eval echo configure:14077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14077 rm -rf conftest*
14078
14079 wx_cv_type_pthread_mutexattr_t=yes
14080
14081 else
14082 echo "configure: failed program was:" >&5
14083 cat conftest.$ac_ext >&5
14084 rm -rf conftest*
14085
14086 wx_cv_type_pthread_mutexattr_t=no
14087
14088
14089 fi
14090 rm -f conftest*
14091
14092 fi
14093
14094 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14095
14096 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14097 cat >> confdefs.h <<\EOF
14098 #define HAVE_PTHREAD_MUTEXATTR_T 1
14099 EOF
14100
14101 else
14102 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14103 echo "configure:14104: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14104 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14105 echo $ac_n "(cached) $ac_c" 1>&6
14106 else
14107
14108 cat > conftest.$ac_ext <<EOF
14109 #line 14110 "configure"
14110 #include "confdefs.h"
14111 #include <pthread.h>
14112 int main() {
14113
14114 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14115
14116 ; return 0; }
14117 EOF
14118 if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14119 rm -rf conftest*
14120
14121 wx_cv_type_pthread_rec_mutex_init=yes
14122
14123 else
14124 echo "configure: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 rm -rf conftest*
14127
14128 wx_cv_type_pthread_rec_mutex_init=no
14129
14130
14131 fi
14132 rm -f conftest*
14133
14134 fi
14135
14136 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14137 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14138 cat >> confdefs.h <<\EOF
14139 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14140 EOF
14141
14142 else
14143 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14144 fi
14145 fi
14146
14147 THREADS_LINK="-l$THREADS_LINK"
14148
14149 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14150 CFLAGS="${CFLAGS} -mt"
14151 CXXFLAGS="${CXXFLAGS} -mt"
14152 LDFLAGS="${LDFLAGS} -mt"
14153 fi
14154 fi
14155
14156 fi
14157
14158 if test "$wxUSE_THREADS" = "yes"; then
14159 cat >> confdefs.h <<\EOF
14160 #define wxUSE_THREADS 1
14161 EOF
14162
14163
14164 if test "$wxUSE_MAC" = "0"; then
14165 CFLAGS="${CFLAGS} -D_REENTRANT"
14166 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14167 fi
14168
14169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14170 else
14171 if test "$ac_cv_func_strtok_r" = "yes"; then
14172 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14173 echo "configure:14174: checking if -D_REENTRANT is needed" >&5
14174 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14175 CFLAGS="${CFLAGS} -D_REENTRANT"
14176 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14177 echo "$ac_t""yes" 1>&6
14178 else
14179 echo "$ac_t""no" 1>&6
14180 fi
14181 fi
14182 fi
14183
14184 if test "$WXGTK20" = 1 ; then
14185 cat >> confdefs.h <<EOF
14186 #define __WXGTK20__ $WXGTK20
14187 EOF
14188
14189 WXGTK12=1
14190 fi
14191
14192 if test "$WXGTK12" = 1 ; then
14193 cat >> confdefs.h <<EOF
14194 #define __WXGTK12__ $WXGTK12
14195 EOF
14196
14197 fi
14198
14199 if test "$WXGTK127" = 1 ; then
14200 cat >> confdefs.h <<EOF
14201 #define __WXGTK127__ $WXGTK127
14202 EOF
14203
14204 fi
14205
14206 if test "$WXWINE" = 1 ; then
14207 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14208 fi
14209
14210 if test "$wxUSE_MAC" = 1 ; then
14211 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
14212 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
14213 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
14214 # Extract the first word of "Rez", so it can be a program name with args.
14215 set dummy Rez; ac_word=$2
14216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14217 echo "configure:14218: checking for $ac_word" >&5
14218 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14219 echo $ac_n "(cached) $ac_c" 1>&6
14220 else
14221 if test -n "$REZ"; then
14222 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14223 else
14224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14225 ac_dummy="$PATH"
14226 for ac_dir in $ac_dummy; do
14227 test -z "$ac_dir" && ac_dir=.
14228 if test -f $ac_dir/$ac_word; then
14229 ac_cv_prog_REZ="Rez"
14230 break
14231 fi
14232 done
14233 IFS="$ac_save_ifs"
14234 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14235 fi
14236 fi
14237 REZ="$ac_cv_prog_REZ"
14238 if test -n "$REZ"; then
14239 echo "$ac_t""$REZ" 1>&6
14240 else
14241 echo "$ac_t""no" 1>&6
14242 fi
14243
14244 # Extract the first word of "Derez", so it can be a program name with args.
14245 set dummy Derez; ac_word=$2
14246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14247 echo "configure:14248: checking for $ac_word" >&5
14248 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14249 echo $ac_n "(cached) $ac_c" 1>&6
14250 else
14251 if test -n "$DEREZ"; then
14252 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14253 else
14254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14255 ac_dummy="$PATH"
14256 for ac_dir in $ac_dummy; do
14257 test -z "$ac_dir" && ac_dir=.
14258 if test -f $ac_dir/$ac_word; then
14259 ac_cv_prog_DEREZ="Derez"
14260 break
14261 fi
14262 done
14263 IFS="$ac_save_ifs"
14264 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14265 fi
14266 fi
14267 DEREZ="$ac_cv_prog_DEREZ"
14268 if test -n "$DEREZ"; then
14269 echo "$ac_t""$DEREZ" 1>&6
14270 else
14271 echo "$ac_t""no" 1>&6
14272 fi
14273
14274 RESCOMP=${REZ}
14275 REZFLAGS="-d __UNIX__ -useDF"
14276 DEREZFLAGS="Carbon.r -useDF"
14277 RESFLAGS="Carbon.r -t APPL"
14278 LIBWXMACRES="\$(LIBWX_MACRES)"
14279 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14280 fi
14281
14282 if test "$wxUSE_CYGWIN" = 1 ; then
14283 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14284 fi
14285
14286 WXDEBUG=
14287
14288 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14289 WXDEBUG="-g"
14290 wxUSE_OPTIMISE=no
14291 fi
14292
14293 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14294 wxUSE_DEBUG_INFO=yes
14295 WXDEBUG="-ggdb"
14296 fi
14297
14298 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14299 cat >> confdefs.h <<\EOF
14300 #define WXDEBUG 1
14301 EOF
14302
14303 WXDEBUG_DEFINE="-D__WXDEBUG__"
14304 else
14305 if test "$wxUSE_GTK" = 1 ; then
14306 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14307 fi
14308 fi
14309
14310 if test "$wxUSE_MEM_TRACING" = "yes" ; then
14311 cat >> confdefs.h <<\EOF
14312 #define wxUSE_MEMORY_TRACING 1
14313 EOF
14314
14315 cat >> confdefs.h <<\EOF
14316 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14317 EOF
14318
14319 cat >> confdefs.h <<\EOF
14320 #define wxUSE_DEBUG_NEW_ALWAYS 1
14321 EOF
14322
14323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14324 fi
14325
14326 if test "$wxUSE_DMALLOC" = "yes" ; then
14327 DMALLOC_LINK="-ldmalloc"
14328 fi
14329
14330 PROFILE=
14331 if test "$wxUSE_PROFILE" = "yes" ; then
14332 PROFILE="-pg"
14333 fi
14334
14335 DEP_INFO_FLAGS=
14336 CODE_GEN_FLAGS=
14337 CODE_GEN_FLAGS_CXX=
14338 if test "$GCC" = yes ; then
14339 if test "$wxUSE_NO_RTTI" = "yes" ; then
14340 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14341 fi
14342 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14343 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14344 fi
14345 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14346 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14347 fi
14348 if test "$wxUSE_NO_DEPS" = "no" ; then
14349 DEP_INFO_FLAGS="-MMD"
14350 fi
14351 fi
14352
14353
14354 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14355 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14356 if test "$wxUSE_OPTIMISE" = "no" ; then
14357 OPTIMISE=
14358 else
14359 if test "$GCC" = yes ; then
14360 OPTIMISE="-O2"
14361 case "${host}" in
14362 i586-*-*|i686-*-* )
14363 OPTIMISE="${OPTIMISE} "
14364 ;;
14365 esac
14366 else
14367 OPTIMISE="-O"
14368 fi
14369 fi
14370
14371
14372 ZLIB_INCLUDE=
14373 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
14374 cat >> confdefs.h <<\EOF
14375 #define wxUSE_ZLIB 1
14376 EOF
14377
14378 if test "$wxUSE_ZLIB" = "yes" ; then
14379 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14380 else
14381 ZLIB_LINK=
14382 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14383 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
14384 echo "configure:14385: checking for zlib.h" >&5
14385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14386 echo $ac_n "(cached) $ac_c" 1>&6
14387 else
14388 cat > conftest.$ac_ext <<EOF
14389 #line 14390 "configure"
14390 #include "confdefs.h"
14391 #include <zlib.h>
14392 EOF
14393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14394 { (eval echo configure:14395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14396 if test -z "$ac_err"; then
14397 rm -rf conftest*
14398 eval "ac_cv_header_$ac_safe=yes"
14399 else
14400 echo "$ac_err" >&5
14401 echo "configure: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 rm -rf conftest*
14404 eval "ac_cv_header_$ac_safe=no"
14405 fi
14406 rm -f conftest*
14407 fi
14408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14409 echo "$ac_t""yes" 1>&6
14410 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
14411 echo "configure:14412: checking for deflate in -lz" >&5
14412 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14414 echo $ac_n "(cached) $ac_c" 1>&6
14415 else
14416 ac_save_LIBS="$LIBS"
14417 LIBS="-lz $LIBS"
14418 cat > conftest.$ac_ext <<EOF
14419 #line 14420 "configure"
14420 #include "confdefs.h"
14421 /* Override any gcc2 internal prototype to avoid an error. */
14422 /* We use char because int might match the return type of a gcc2
14423 builtin and then its argument prototype would still apply. */
14424 char deflate();
14425
14426 int main() {
14427 deflate()
14428 ; return 0; }
14429 EOF
14430 if { (eval echo configure:14431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14431 rm -rf conftest*
14432 eval "ac_cv_lib_$ac_lib_var=yes"
14433 else
14434 echo "configure: failed program was:" >&5
14435 cat conftest.$ac_ext >&5
14436 rm -rf conftest*
14437 eval "ac_cv_lib_$ac_lib_var=no"
14438 fi
14439 rm -f conftest*
14440 LIBS="$ac_save_LIBS"
14441
14442 fi
14443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14444 echo "$ac_t""yes" 1>&6
14445 ZLIB_LINK="-lz"
14446 else
14447 echo "$ac_t""no" 1>&6
14448 fi
14449
14450 else
14451 echo "$ac_t""no" 1>&6
14452 fi
14453
14454 if test "x$ZLIB_LINK" = "x" ; then
14455 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
14456 fi
14457 fi
14458 fi
14459
14460 PNG_INCLUDE=
14461 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
14462 cat >> confdefs.h <<\EOF
14463 #define wxUSE_LIBPNG 1
14464 EOF
14465
14466 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
14467 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
14468 wxUSE_LIBPNG=yes
14469 fi
14470
14471 if test "$wxUSE_LIBPNG" = "yes" ; then
14472 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14473 else
14474 PNG_LINK=
14475 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14476 echo $ac_n "checking for png.h""... $ac_c" 1>&6
14477 echo "configure:14478: checking for png.h" >&5
14478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14479 echo $ac_n "(cached) $ac_c" 1>&6
14480 else
14481 cat > conftest.$ac_ext <<EOF
14482 #line 14483 "configure"
14483 #include "confdefs.h"
14484 #include <png.h>
14485 EOF
14486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14487 { (eval echo configure:14488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14489 if test -z "$ac_err"; then
14490 rm -rf conftest*
14491 eval "ac_cv_header_$ac_safe=yes"
14492 else
14493 echo "$ac_err" >&5
14494 echo "configure: failed program was:" >&5
14495 cat conftest.$ac_ext >&5
14496 rm -rf conftest*
14497 eval "ac_cv_header_$ac_safe=no"
14498 fi
14499 rm -f conftest*
14500 fi
14501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14502 echo "$ac_t""yes" 1>&6
14503 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
14504 echo "configure:14505: checking for png_check_sig in -lpng" >&5
14505 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14507 echo $ac_n "(cached) $ac_c" 1>&6
14508 else
14509 ac_save_LIBS="$LIBS"
14510 LIBS="-lpng -lz -lm $LIBS"
14511 cat > conftest.$ac_ext <<EOF
14512 #line 14513 "configure"
14513 #include "confdefs.h"
14514 /* Override any gcc2 internal prototype to avoid an error. */
14515 /* We use char because int might match the return type of a gcc2
14516 builtin and then its argument prototype would still apply. */
14517 char png_check_sig();
14518
14519 int main() {
14520 png_check_sig()
14521 ; return 0; }
14522 EOF
14523 if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14524 rm -rf conftest*
14525 eval "ac_cv_lib_$ac_lib_var=yes"
14526 else
14527 echo "configure: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 rm -rf conftest*
14530 eval "ac_cv_lib_$ac_lib_var=no"
14531 fi
14532 rm -f conftest*
14533 LIBS="$ac_save_LIBS"
14534
14535 fi
14536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14537 echo "$ac_t""yes" 1>&6
14538 PNG_LINK="-lpng"
14539 else
14540 echo "$ac_t""no" 1>&6
14541 fi
14542
14543
14544 else
14545 echo "$ac_t""no" 1>&6
14546 fi
14547
14548 if test "x$PNG_LINK" = "x" ; then
14549 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
14550 fi
14551 fi
14552
14553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14554 fi
14555
14556 JPEG_INCLUDE=
14557 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
14558 cat >> confdefs.h <<\EOF
14559 #define wxUSE_LIBJPEG 1
14560 EOF
14561
14562 if test "$wxUSE_LIBJPEG" = "yes" ; then
14563 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14564 else
14565 JPEG_LINK=
14566 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
14567 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
14568 echo "configure:14569: checking for jpeglib.h" >&5
14569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14570 echo $ac_n "(cached) $ac_c" 1>&6
14571 else
14572 cat > conftest.$ac_ext <<EOF
14573 #line 14574 "configure"
14574 #include "confdefs.h"
14575 #include <jpeglib.h>
14576 EOF
14577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14578 { (eval echo configure:14579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14580 if test -z "$ac_err"; then
14581 rm -rf conftest*
14582 eval "ac_cv_header_$ac_safe=yes"
14583 else
14584 echo "$ac_err" >&5
14585 echo "configure: failed program was:" >&5
14586 cat conftest.$ac_ext >&5
14587 rm -rf conftest*
14588 eval "ac_cv_header_$ac_safe=no"
14589 fi
14590 rm -f conftest*
14591 fi
14592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14593 echo "$ac_t""yes" 1>&6
14594 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
14595 echo "configure:14596: checking for jpeg_read_header in -ljpeg" >&5
14596 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14598 echo $ac_n "(cached) $ac_c" 1>&6
14599 else
14600 ac_save_LIBS="$LIBS"
14601 LIBS="-ljpeg $LIBS"
14602 cat > conftest.$ac_ext <<EOF
14603 #line 14604 "configure"
14604 #include "confdefs.h"
14605 /* Override any gcc2 internal prototype to avoid an error. */
14606 /* We use char because int might match the return type of a gcc2
14607 builtin and then its argument prototype would still apply. */
14608 char jpeg_read_header();
14609
14610 int main() {
14611 jpeg_read_header()
14612 ; return 0; }
14613 EOF
14614 if { (eval echo configure:14615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14615 rm -rf conftest*
14616 eval "ac_cv_lib_$ac_lib_var=yes"
14617 else
14618 echo "configure: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14620 rm -rf conftest*
14621 eval "ac_cv_lib_$ac_lib_var=no"
14622 fi
14623 rm -f conftest*
14624 LIBS="$ac_save_LIBS"
14625
14626 fi
14627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14628 echo "$ac_t""yes" 1>&6
14629 JPEG_LINK="-ljpeg"
14630 else
14631 echo "$ac_t""no" 1>&6
14632 fi
14633
14634 else
14635 echo "$ac_t""no" 1>&6
14636 fi
14637
14638 if test "x$JPEG_LINK" = "x" ; then
14639 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
14640 fi
14641 fi
14642 fi
14643
14644 TIFF_INCLUDE=
14645 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
14646 cat >> confdefs.h <<\EOF
14647 #define wxUSE_LIBTIFF 1
14648 EOF
14649
14650 if test "$wxUSE_LIBTIFF" = "yes" ; then
14651 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14652 else
14653 TIFF_LINK=
14654 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14655 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
14656 echo "configure:14657: checking for tiffio.h" >&5
14657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14658 echo $ac_n "(cached) $ac_c" 1>&6
14659 else
14660 cat > conftest.$ac_ext <<EOF
14661 #line 14662 "configure"
14662 #include "confdefs.h"
14663 #include <tiffio.h>
14664 EOF
14665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14666 { (eval echo configure:14667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14668 if test -z "$ac_err"; then
14669 rm -rf conftest*
14670 eval "ac_cv_header_$ac_safe=yes"
14671 else
14672 echo "$ac_err" >&5
14673 echo "configure: failed program was:" >&5
14674 cat conftest.$ac_ext >&5
14675 rm -rf conftest*
14676 eval "ac_cv_header_$ac_safe=no"
14677 fi
14678 rm -f conftest*
14679 fi
14680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14681 echo "$ac_t""yes" 1>&6
14682 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
14683 echo "configure:14684: checking for TIFFError in -ltiff" >&5
14684 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14686 echo $ac_n "(cached) $ac_c" 1>&6
14687 else
14688 ac_save_LIBS="$LIBS"
14689 LIBS="-ltiff -lm $LIBS"
14690 cat > conftest.$ac_ext <<EOF
14691 #line 14692 "configure"
14692 #include "confdefs.h"
14693 /* Override any gcc2 internal prototype to avoid an error. */
14694 /* We use char because int might match the return type of a gcc2
14695 builtin and then its argument prototype would still apply. */
14696 char TIFFError();
14697
14698 int main() {
14699 TIFFError()
14700 ; return 0; }
14701 EOF
14702 if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14703 rm -rf conftest*
14704 eval "ac_cv_lib_$ac_lib_var=yes"
14705 else
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 rm -rf conftest*
14709 eval "ac_cv_lib_$ac_lib_var=no"
14710 fi
14711 rm -f conftest*
14712 LIBS="$ac_save_LIBS"
14713
14714 fi
14715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14716 echo "$ac_t""yes" 1>&6
14717 TIFF_LINK="-ltiff"
14718 else
14719 echo "$ac_t""no" 1>&6
14720 fi
14721
14722 else
14723 echo "$ac_t""no" 1>&6
14724 fi
14725
14726 if test "x$TIFF_LINK" = "x" ; then
14727 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
14728 fi
14729 fi
14730 fi
14731
14732 FREETYPE_INCLUDE=
14733 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
14734 cat >> confdefs.h <<\EOF
14735 #define wxUSE_FREETYPE 1
14736 EOF
14737
14738 if test "$wxUSE_FREETYPE" = "yes" ; then
14739 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14740 else
14741 FREETYPE_LINK=
14742 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14743 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
14744 echo "configure:14745: checking for freetype.h" >&5
14745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14746 echo $ac_n "(cached) $ac_c" 1>&6
14747 else
14748 cat > conftest.$ac_ext <<EOF
14749 #line 14750 "configure"
14750 #include "confdefs.h"
14751 #include <freetype.h>
14752 EOF
14753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14754 { (eval echo configure:14755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14756 if test -z "$ac_err"; then
14757 rm -rf conftest*
14758 eval "ac_cv_header_$ac_safe=yes"
14759 else
14760 echo "$ac_err" >&5
14761 echo "configure: failed program was:" >&5
14762 cat conftest.$ac_ext >&5
14763 rm -rf conftest*
14764 eval "ac_cv_header_$ac_safe=no"
14765 fi
14766 rm -f conftest*
14767 fi
14768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14769 echo "$ac_t""yes" 1>&6
14770 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
14771 echo "configure:14772: checking for FT_Render_Glyph in -lfreetype" >&5
14772 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14774 echo $ac_n "(cached) $ac_c" 1>&6
14775 else
14776 ac_save_LIBS="$LIBS"
14777 LIBS="-lfreetype -lm $LIBS"
14778 cat > conftest.$ac_ext <<EOF
14779 #line 14780 "configure"
14780 #include "confdefs.h"
14781 /* Override any gcc2 internal prototype to avoid an error. */
14782 /* We use char because int might match the return type of a gcc2
14783 builtin and then its argument prototype would still apply. */
14784 char FT_Render_Glyph();
14785
14786 int main() {
14787 FT_Render_Glyph()
14788 ; return 0; }
14789 EOF
14790 if { (eval echo configure:14791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14791 rm -rf conftest*
14792 eval "ac_cv_lib_$ac_lib_var=yes"
14793 else
14794 echo "configure: failed program was:" >&5
14795 cat conftest.$ac_ext >&5
14796 rm -rf conftest*
14797 eval "ac_cv_lib_$ac_lib_var=no"
14798 fi
14799 rm -f conftest*
14800 LIBS="$ac_save_LIBS"
14801
14802 fi
14803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14804 echo "$ac_t""yes" 1>&6
14805 FREETYPE_LINK="-lfreetype"
14806 else
14807 echo "$ac_t""no" 1>&6
14808 fi
14809
14810
14811 else
14812 echo "$ac_t""no" 1>&6
14813 fi
14814
14815 if test "x$FREETYPE_LINK" = "x" ; then
14816 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
14817 fi
14818 fi
14819 fi
14820
14821 if test "$wxUSE_OPENGL" = "yes"; then
14822 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14823 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14824 echo "configure:14825: checking for GL/gl.h" >&5
14825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14826 echo $ac_n "(cached) $ac_c" 1>&6
14827 else
14828 cat > conftest.$ac_ext <<EOF
14829 #line 14830 "configure"
14830 #include "confdefs.h"
14831 #include <GL/gl.h>
14832 EOF
14833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14834 { (eval echo configure:14835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14836 if test -z "$ac_err"; then
14837 rm -rf conftest*
14838 eval "ac_cv_header_$ac_safe=yes"
14839 else
14840 echo "$ac_err" >&5
14841 echo "configure: failed program was:" >&5
14842 cat conftest.$ac_ext >&5
14843 rm -rf conftest*
14844 eval "ac_cv_header_$ac_safe=no"
14845 fi
14846 rm -f conftest*
14847 fi
14848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14849 echo "$ac_t""yes" 1>&6
14850
14851 cat >> confdefs.h <<\EOF
14852 #define wxUSE_OPENGL 1
14853 EOF
14854
14855 cat >> confdefs.h <<\EOF
14856 #define wxUSE_GLCANVAS 1
14857 EOF
14858
14859 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
14860 echo "configure:14861: checking for glFlush in -lGL" >&5
14861 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
14862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14863 echo $ac_n "(cached) $ac_c" 1>&6
14864 else
14865 ac_save_LIBS="$LIBS"
14866 LIBS="-lGL $LIBS"
14867 cat > conftest.$ac_ext <<EOF
14868 #line 14869 "configure"
14869 #include "confdefs.h"
14870 /* Override any gcc2 internal prototype to avoid an error. */
14871 /* We use char because int might match the return type of a gcc2
14872 builtin and then its argument prototype would still apply. */
14873 char glFlush();
14874
14875 int main() {
14876 glFlush()
14877 ; return 0; }
14878 EOF
14879 if { (eval echo configure:14880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14880 rm -rf conftest*
14881 eval "ac_cv_lib_$ac_lib_var=yes"
14882 else
14883 echo "configure: failed program was:" >&5
14884 cat conftest.$ac_ext >&5
14885 rm -rf conftest*
14886 eval "ac_cv_lib_$ac_lib_var=no"
14887 fi
14888 rm -f conftest*
14889 LIBS="$ac_save_LIBS"
14890
14891 fi
14892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14893 echo "$ac_t""yes" 1>&6
14894
14895 OPENGL_LINK="-lGL -lGLU"
14896
14897 else
14898 echo "$ac_t""no" 1>&6
14899
14900 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
14901 echo "configure:14902: checking for glFlush in -lMesaGL" >&5
14902 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
14903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14904 echo $ac_n "(cached) $ac_c" 1>&6
14905 else
14906 ac_save_LIBS="$LIBS"
14907 LIBS="-lMesaGL $LIBS"
14908 cat > conftest.$ac_ext <<EOF
14909 #line 14910 "configure"
14910 #include "confdefs.h"
14911 /* Override any gcc2 internal prototype to avoid an error. */
14912 /* We use char because int might match the return type of a gcc2
14913 builtin and then its argument prototype would still apply. */
14914 char glFlush();
14915
14916 int main() {
14917 glFlush()
14918 ; return 0; }
14919 EOF
14920 if { (eval echo configure:14921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14921 rm -rf conftest*
14922 eval "ac_cv_lib_$ac_lib_var=yes"
14923 else
14924 echo "configure: failed program was:" >&5
14925 cat conftest.$ac_ext >&5
14926 rm -rf conftest*
14927 eval "ac_cv_lib_$ac_lib_var=no"
14928 fi
14929 rm -f conftest*
14930 LIBS="$ac_save_LIBS"
14931
14932 fi
14933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14934 echo "$ac_t""yes" 1>&6
14935
14936 OPENGL_LINK="-lMesaGL -lMesaGLU"
14937
14938 else
14939 echo "$ac_t""no" 1>&6
14940 fi
14941
14942
14943 fi
14944
14945
14946 else
14947 echo "$ac_t""no" 1>&6
14948 wxUSE_OPENGL=0
14949 fi
14950
14951 fi
14952
14953
14954 if test "$wxUSE_GUI" = "yes"; then
14955 cat >> confdefs.h <<\EOF
14956 #define wxUSE_GUI 1
14957 EOF
14958
14959
14960 else
14961 cat >> confdefs.h <<\EOF
14962 #define wxUSE_NOGUI 1
14963 EOF
14964
14965 fi
14966
14967
14968 if test "$wxUSE_UNIX" = "yes"; then
14969 cat >> confdefs.h <<\EOF
14970 #define wxUSE_UNIX 1
14971 EOF
14972
14973 fi
14974
14975
14976 if test "$wxUSE_APPLE_IEEE" = "yes"; then
14977 cat >> confdefs.h <<\EOF
14978 #define wxUSE_APPLE_IEEE 1
14979 EOF
14980
14981 fi
14982
14983 if test "$wxUSE_TIMER" = "yes"; then
14984 cat >> confdefs.h <<\EOF
14985 #define wxUSE_TIMER 1
14986 EOF
14987
14988 fi
14989
14990 if test "$wxUSE_WAVE" = "yes"; then
14991 cat >> confdefs.h <<\EOF
14992 #define wxUSE_WAVE 1
14993 EOF
14994
14995 fi
14996
14997 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
14998 cat >> confdefs.h <<\EOF
14999 #define wxUSE_CMDLINE_PARSER 1
15000 EOF
15001
15002 fi
15003
15004 if test "$wxUSE_STOPWATCH" = "yes"; then
15005 cat >> confdefs.h <<\EOF
15006 #define wxUSE_STOPWATCH 1
15007 EOF
15008
15009 fi
15010
15011 if test "$wxUSE_DATETIME" = "yes"; then
15012 cat >> confdefs.h <<\EOF
15013 #define wxUSE_DATETIME 1
15014 EOF
15015
15016 fi
15017
15018 if test "$wxUSE_TIMEDATE" = "yes"; then
15019 cat >> confdefs.h <<\EOF
15020 #define wxUSE_TIMEDATE 1
15021 EOF
15022
15023 fi
15024
15025 if test "$wxUSE_FILE" = "yes"; then
15026 cat >> confdefs.h <<\EOF
15027 #define wxUSE_FILE 1
15028 EOF
15029
15030 fi
15031
15032 if test "$wxUSE_FFILE" = "yes"; then
15033 cat >> confdefs.h <<\EOF
15034 #define wxUSE_FFILE 1
15035 EOF
15036
15037 fi
15038
15039 if test "$wxUSE_FILESYSTEM" = "yes"; then
15040 cat >> confdefs.h <<\EOF
15041 #define wxUSE_FILESYSTEM 1
15042 EOF
15043
15044 fi
15045
15046 if test "$wxUSE_FS_INET" = "yes"; then
15047 cat >> confdefs.h <<\EOF
15048 #define wxUSE_FS_INET 1
15049 EOF
15050
15051 fi
15052
15053 if test "$wxUSE_FS_ZIP" = "yes"; then
15054 cat >> confdefs.h <<\EOF
15055 #define wxUSE_FS_ZIP 1
15056 EOF
15057
15058 fi
15059
15060 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15061 cat >> confdefs.h <<\EOF
15062 #define wxUSE_ZIPSTREAM 1
15063 EOF
15064
15065 fi
15066
15067 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15068 cat >> confdefs.h <<\EOF
15069 #define wxUSE_ON_FATAL_EXCEPTION 1
15070 EOF
15071
15072 fi
15073
15074 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15075 cat >> confdefs.h <<\EOF
15076 #define wxUSE_SNGLINST_CHECKER 1
15077 EOF
15078
15079 fi
15080
15081 if test "$wxUSE_BUSYINFO" = "yes"; then
15082 cat >> confdefs.h <<\EOF
15083 #define wxUSE_BUSYINFO 1
15084 EOF
15085
15086 fi
15087
15088 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15089 cat >> confdefs.h <<\EOF
15090 #define wxUSE_STD_IOSTREAM 1
15091 EOF
15092
15093 fi
15094
15095 if test "$wxUSE_TEXTFILE" = "yes"; then
15096 if test "$wxUSE_FILE" != "yes"; then
15097 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15098 else
15099 cat >> confdefs.h <<\EOF
15100 #define wxUSE_TEXTFILE 1
15101 EOF
15102
15103 fi
15104 fi
15105
15106 if test "$wxUSE_CONFIG" = "yes" ; then
15107 if test "$wxUSE_TEXTFILE" != "yes"; then
15108 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15109 else
15110 cat >> confdefs.h <<\EOF
15111 #define wxUSE_CONFIG 1
15112 EOF
15113
15114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15115 fi
15116 fi
15117
15118 if test "$wxUSE_INTL" = "yes" ; then
15119 if test "$wxUSE_FILE" != "yes"; then
15120 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15121 else
15122 cat >> confdefs.h <<\EOF
15123 #define wxUSE_INTL 1
15124 EOF
15125
15126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15127 GUIDIST="$GUIDIST INTL_DIST"
15128 fi
15129 fi
15130
15131 if test "$wxUSE_LOG" = "yes"; then
15132 cat >> confdefs.h <<\EOF
15133 #define wxUSE_LOG 1
15134 EOF
15135
15136 fi
15137
15138 if test "$wxUSE_LONGLONG" = "yes"; then
15139 cat >> confdefs.h <<\EOF
15140 #define wxUSE_LONGLONG 1
15141 EOF
15142
15143 fi
15144
15145 if test "$wxUSE_GEOMETRY" = "yes"; then
15146 cat >> confdefs.h <<\EOF
15147 #define wxUSE_GEOMETRY 1
15148 EOF
15149
15150 fi
15151
15152 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15153 cat >> confdefs.h <<\EOF
15154 #define wxUSE_DIALUP_MANAGER 1
15155 EOF
15156
15157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15158 fi
15159
15160 if test "$wxUSE_STREAMS" = "yes" ; then
15161 cat >> confdefs.h <<\EOF
15162 #define wxUSE_STREAMS 1
15163 EOF
15164
15165 fi
15166
15167
15168 if test "$wxUSE_DATETIME" = "yes"; then
15169 for ac_func in strptime
15170 do
15171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15172 echo "configure:15173: checking for $ac_func" >&5
15173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
15175 else
15176 cat > conftest.$ac_ext <<EOF
15177 #line 15178 "configure"
15178 #include "confdefs.h"
15179 /* System header to define __stub macros and hopefully few prototypes,
15180 which can conflict with char $ac_func(); below. */
15181 #include <assert.h>
15182 /* Override any gcc2 internal prototype to avoid an error. */
15183 /* We use char because int might match the return type of a gcc2
15184 builtin and then its argument prototype would still apply. */
15185 char $ac_func();
15186
15187 int main() {
15188
15189 /* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15193 choke me
15194 #else
15195 $ac_func();
15196 #endif
15197
15198 ; return 0; }
15199 EOF
15200 if { (eval echo configure:15201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15201 rm -rf conftest*
15202 eval "ac_cv_func_$ac_func=yes"
15203 else
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15206 rm -rf conftest*
15207 eval "ac_cv_func_$ac_func=no"
15208 fi
15209 rm -f conftest*
15210 fi
15211
15212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15213 echo "$ac_t""yes" 1>&6
15214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15215 cat >> confdefs.h <<EOF
15216 #define $ac_tr_func 1
15217 EOF
15218
15219 else
15220 echo "$ac_t""no" 1>&6
15221 fi
15222 done
15223
15224
15225 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15226 echo "configure:15227: checking for timezone variable in <time.h>" >&5
15227 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15228 echo $ac_n "(cached) $ac_c" 1>&6
15229 else
15230
15231 cat > conftest.$ac_ext <<EOF
15232 #line 15233 "configure"
15233 #include "confdefs.h"
15234
15235 #include <time.h>
15236
15237 int main() {
15238
15239 int tz;
15240 tz = __timezone;
15241
15242 ; return 0; }
15243 EOF
15244 if { (eval echo configure:15245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15245 rm -rf conftest*
15246
15247 wx_cv_var_timezone=__timezone
15248
15249 else
15250 echo "configure: failed program was:" >&5
15251 cat conftest.$ac_ext >&5
15252 rm -rf conftest*
15253
15254 cat > conftest.$ac_ext <<EOF
15255 #line 15256 "configure"
15256 #include "confdefs.h"
15257
15258 #include <time.h>
15259
15260 int main() {
15261
15262 int tz;
15263 tz = _timezone;
15264
15265 ; return 0; }
15266 EOF
15267 if { (eval echo configure:15268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15268 rm -rf conftest*
15269
15270 wx_cv_var_timezone=_timezone
15271
15272 else
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15275 rm -rf conftest*
15276
15277 cat > conftest.$ac_ext <<EOF
15278 #line 15279 "configure"
15279 #include "confdefs.h"
15280
15281 #include <time.h>
15282
15283 int main() {
15284
15285 int tz;
15286 tz = timezone;
15287
15288 ; return 0; }
15289 EOF
15290 if { (eval echo configure:15291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15291 rm -rf conftest*
15292
15293 wx_cv_var_timezone=timezone
15294
15295 else
15296 echo "configure: failed program was:" >&5
15297 cat conftest.$ac_ext >&5
15298 rm -rf conftest*
15299 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15300
15301 fi
15302 rm -f conftest*
15303
15304
15305 fi
15306 rm -f conftest*
15307
15308
15309 fi
15310 rm -f conftest*
15311
15312
15313 fi
15314
15315 echo "$ac_t""$wx_cv_var_timezone" 1>&6
15316
15317 cat >> confdefs.h <<EOF
15318 #define WX_TIMEZONE $wx_cv_var_timezone
15319 EOF
15320
15321
15322 for ac_func in localtime
15323 do
15324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15325 echo "configure:15326: checking for $ac_func" >&5
15326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15327 echo $ac_n "(cached) $ac_c" 1>&6
15328 else
15329 cat > conftest.$ac_ext <<EOF
15330 #line 15331 "configure"
15331 #include "confdefs.h"
15332 /* System header to define __stub macros and hopefully few prototypes,
15333 which can conflict with char $ac_func(); below. */
15334 #include <assert.h>
15335 /* Override any gcc2 internal prototype to avoid an error. */
15336 /* We use char because int might match the return type of a gcc2
15337 builtin and then its argument prototype would still apply. */
15338 char $ac_func();
15339
15340 int main() {
15341
15342 /* The GNU C library defines this for functions which it implements
15343 to always fail with ENOSYS. Some functions are actually named
15344 something starting with __ and the normal name is an alias. */
15345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15346 choke me
15347 #else
15348 $ac_func();
15349 #endif
15350
15351 ; return 0; }
15352 EOF
15353 if { (eval echo configure:15354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15354 rm -rf conftest*
15355 eval "ac_cv_func_$ac_func=yes"
15356 else
15357 echo "configure: failed program was:" >&5
15358 cat conftest.$ac_ext >&5
15359 rm -rf conftest*
15360 eval "ac_cv_func_$ac_func=no"
15361 fi
15362 rm -f conftest*
15363 fi
15364
15365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15366 echo "$ac_t""yes" 1>&6
15367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15368 cat >> confdefs.h <<EOF
15369 #define $ac_tr_func 1
15370 EOF
15371
15372 else
15373 echo "$ac_t""no" 1>&6
15374 fi
15375 done
15376
15377
15378 if test "$ac_cv_func_localtime" = "yes"; then
15379 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
15380 echo "configure:15381: checking for tm_gmtoff in struct tm" >&5
15381 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15382 echo $ac_n "(cached) $ac_c" 1>&6
15383 else
15384
15385 cat > conftest.$ac_ext <<EOF
15386 #line 15387 "configure"
15387 #include "confdefs.h"
15388
15389 #include <time.h>
15390
15391 int main() {
15392
15393 struct tm tm;
15394 tm.tm_gmtoff++;
15395
15396 ; return 0; }
15397 EOF
15398 if { (eval echo configure:15399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15399 rm -rf conftest*
15400
15401 wx_cv_struct_tm_has_gmtoff=yes
15402
15403 else
15404 echo "configure: failed program was:" >&5
15405 cat conftest.$ac_ext >&5
15406 rm -rf conftest*
15407 wx_cv_struct_tm_has_gmtoff=no
15408
15409 fi
15410 rm -f conftest*
15411
15412 fi
15413
15414 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
15415 fi
15416
15417 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
15418 cat >> confdefs.h <<\EOF
15419 #define WX_GMTOFF_IN_TM 1
15420 EOF
15421
15422 fi
15423
15424 for ac_func in gettimeofday ftime
15425 do
15426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15427 echo "configure:15428: checking for $ac_func" >&5
15428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15429 echo $ac_n "(cached) $ac_c" 1>&6
15430 else
15431 cat > conftest.$ac_ext <<EOF
15432 #line 15433 "configure"
15433 #include "confdefs.h"
15434 /* System header to define __stub macros and hopefully few prototypes,
15435 which can conflict with char $ac_func(); below. */
15436 #include <assert.h>
15437 /* Override any gcc2 internal prototype to avoid an error. */
15438 /* We use char because int might match the return type of a gcc2
15439 builtin and then its argument prototype would still apply. */
15440 char $ac_func();
15441
15442 int main() {
15443
15444 /* The GNU C library defines this for functions which it implements
15445 to always fail with ENOSYS. Some functions are actually named
15446 something starting with __ and the normal name is an alias. */
15447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15448 choke me
15449 #else
15450 $ac_func();
15451 #endif
15452
15453 ; return 0; }
15454 EOF
15455 if { (eval echo configure:15456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15456 rm -rf conftest*
15457 eval "ac_cv_func_$ac_func=yes"
15458 else
15459 echo "configure: failed program was:" >&5
15460 cat conftest.$ac_ext >&5
15461 rm -rf conftest*
15462 eval "ac_cv_func_$ac_func=no"
15463 fi
15464 rm -f conftest*
15465 fi
15466
15467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15468 echo "$ac_t""yes" 1>&6
15469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15470 cat >> confdefs.h <<EOF
15471 #define $ac_tr_func 1
15472 EOF
15473 break
15474 else
15475 echo "$ac_t""no" 1>&6
15476 fi
15477 done
15478
15479
15480 if test "$ac_cv_func_gettimeofday" = "yes"; then
15481 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
15482 echo "configure:15483: checking whether gettimeofday takes two arguments" >&5
15483 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15484 echo $ac_n "(cached) $ac_c" 1>&6
15485 else
15486
15487
15488 ac_ext=C
15489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15490 ac_cpp='$CXXCPP $CPPFLAGS'
15491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15493 cross_compiling=$ac_cv_prog_cxx_cross
15494
15495
15496 cat > conftest.$ac_ext <<EOF
15497 #line 15498 "configure"
15498 #include "confdefs.h"
15499
15500 #include <sys/time.h>
15501 #include <unistd.h>
15502
15503 int main() {
15504
15505 struct timeval tv;
15506 struct timezone tz;
15507 gettimeofday(&tv, &tz);
15508
15509 ; return 0; }
15510 EOF
15511 if { (eval echo configure:15512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15512 rm -rf conftest*
15513 wx_cv_func_gettimeofday_has_2_args=yes
15514 else
15515 echo "configure: failed program was:" >&5
15516 cat conftest.$ac_ext >&5
15517 rm -rf conftest*
15518 cat > conftest.$ac_ext <<EOF
15519 #line 15520 "configure"
15520 #include "confdefs.h"
15521
15522 #include <sys/time.h>
15523 #include <unistd.h>
15524
15525 int main() {
15526
15527 struct timeval tv;
15528 gettimeofday(&tv);
15529
15530 ; return 0; }
15531 EOF
15532 if { (eval echo configure:15533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15533 rm -rf conftest*
15534 wx_cv_func_gettimeofday_has_2_args=no
15535 else
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15538 rm -rf conftest*
15539 wx_cv_func_gettimeofday_has_2_args=unknown
15540
15541 fi
15542 rm -f conftest*
15543
15544 fi
15545 rm -f conftest*
15546 ac_ext=c
15547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15548 ac_cpp='$CPP $CPPFLAGS'
15549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15551 cross_compiling=$ac_cv_prog_cc_cross
15552
15553
15554 fi
15555
15556 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
15557
15558 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
15559 cat >> confdefs.h <<\EOF
15560 #define WX_GETTIMEOFDAY_NO_TZ 1
15561 EOF
15562
15563 fi
15564 fi
15565
15566 cat >> confdefs.h <<\EOF
15567 #define wxUSE_TIMEDATE 1
15568 EOF
15569
15570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15571 fi
15572
15573
15574 if test "$TOOLKIT" != "MSW"; then
15575
15576 if test "$wxUSE_SOCKETS" = "yes"; then
15577 echo $ac_n "checking for socket""... $ac_c" 1>&6
15578 echo "configure:15579: checking for socket" >&5
15579 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15580 echo $ac_n "(cached) $ac_c" 1>&6
15581 else
15582 cat > conftest.$ac_ext <<EOF
15583 #line 15584 "configure"
15584 #include "confdefs.h"
15585 /* System header to define __stub macros and hopefully few prototypes,
15586 which can conflict with char socket(); below. */
15587 #include <assert.h>
15588 /* Override any gcc2 internal prototype to avoid an error. */
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591 char socket();
15592
15593 int main() {
15594
15595 /* The GNU C library defines this for functions which it implements
15596 to always fail with ENOSYS. Some functions are actually named
15597 something starting with __ and the normal name is an alias. */
15598 #if defined (__stub_socket) || defined (__stub___socket)
15599 choke me
15600 #else
15601 socket();
15602 #endif
15603
15604 ; return 0; }
15605 EOF
15606 if { (eval echo configure:15607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15607 rm -rf conftest*
15608 eval "ac_cv_func_socket=yes"
15609 else
15610 echo "configure: failed program was:" >&5
15611 cat conftest.$ac_ext >&5
15612 rm -rf conftest*
15613 eval "ac_cv_func_socket=no"
15614 fi
15615 rm -f conftest*
15616 fi
15617
15618 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15619 echo "$ac_t""yes" 1>&6
15620 :
15621 else
15622 echo "$ac_t""no" 1>&6
15623 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
15624 echo "configure:15625: checking for socket in -lsocket" >&5
15625 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15627 echo $ac_n "(cached) $ac_c" 1>&6
15628 else
15629 ac_save_LIBS="$LIBS"
15630 LIBS="-lsocket $LIBS"
15631 cat > conftest.$ac_ext <<EOF
15632 #line 15633 "configure"
15633 #include "confdefs.h"
15634 /* Override any gcc2 internal prototype to avoid an error. */
15635 /* We use char because int might match the return type of a gcc2
15636 builtin and then its argument prototype would still apply. */
15637 char socket();
15638
15639 int main() {
15640 socket()
15641 ; return 0; }
15642 EOF
15643 if { (eval echo configure:15644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15644 rm -rf conftest*
15645 eval "ac_cv_lib_$ac_lib_var=yes"
15646 else
15647 echo "configure: failed program was:" >&5
15648 cat conftest.$ac_ext >&5
15649 rm -rf conftest*
15650 eval "ac_cv_lib_$ac_lib_var=no"
15651 fi
15652 rm -f conftest*
15653 LIBS="$ac_save_LIBS"
15654
15655 fi
15656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15657 echo "$ac_t""yes" 1>&6
15658 INET_LINK="$INET_LINK -lsocket"
15659 else
15660 echo "$ac_t""no" 1>&6
15661
15662 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
15663 wxUSE_SOCKETS=no
15664
15665
15666 fi
15667
15668
15669 fi
15670
15671 fi
15672
15673
15674 if test "$wxUSE_SOCKETS" = "yes" ; then
15675 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
15676 echo "configure:15677: checking what is the type of the third argument of getsockname" >&5
15677 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15678 echo $ac_n "(cached) $ac_c" 1>&6
15679 else
15680
15681
15682 ac_ext=C
15683 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15684 ac_cpp='$CXXCPP $CPPFLAGS'
15685 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15686 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15687 cross_compiling=$ac_cv_prog_cxx_cross
15688
15689
15690 cat > conftest.$ac_ext <<EOF
15691 #line 15692 "configure"
15692 #include "confdefs.h"
15693
15694 #include <sys/types.h>
15695 #include <sys/socket.h>
15696
15697 int main() {
15698
15699 socklen_t len;
15700 getsockname(0, 0, &len);
15701
15702 ; return 0; }
15703 EOF
15704 if { (eval echo configure:15705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15705 rm -rf conftest*
15706 wx_cv_type_getsockname3=socklen_t
15707 else
15708 echo "configure: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 rm -rf conftest*
15711 cat > conftest.$ac_ext <<EOF
15712 #line 15713 "configure"
15713 #include "confdefs.h"
15714
15715 #include <sys/types.h>
15716 #include <sys/socket.h>
15717
15718 int main() {
15719
15720 size_t len;
15721 getsockname(0, 0, &len);
15722
15723 ; return 0; }
15724 EOF
15725 if { (eval echo configure:15726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15726 rm -rf conftest*
15727 wx_cv_type_getsockname3=size_t
15728 else
15729 echo "configure: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15731 rm -rf conftest*
15732 cat > conftest.$ac_ext <<EOF
15733 #line 15734 "configure"
15734 #include "confdefs.h"
15735
15736 #include <sys/types.h>
15737 #include <sys/socket.h>
15738
15739 int main() {
15740
15741 int len;
15742 getsockname(0, 0, &len);
15743
15744 ; return 0; }
15745 EOF
15746 if { (eval echo configure:15747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15747 rm -rf conftest*
15748 wx_cv_type_getsockname3=int
15749 else
15750 echo "configure: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15752 rm -rf conftest*
15753 wx_cv_type_getsockname3=unknown
15754
15755 fi
15756 rm -f conftest*
15757
15758 fi
15759 rm -f conftest*
15760
15761 fi
15762 rm -f conftest*
15763
15764 ac_ext=c
15765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15766 ac_cpp='$CPP $CPPFLAGS'
15767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15769 cross_compiling=$ac_cv_prog_cc_cross
15770
15771
15772 fi
15773
15774 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
15775
15776 if test "$wx_cv_type_getsockname3" = "unknown"; then
15777 wxUSE_SOCKETS=no
15778 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
15779 else
15780 cat >> confdefs.h <<EOF
15781 #define SOCKLEN_T $wx_cv_type_getsockname3
15782 EOF
15783
15784 fi
15785 fi
15786
15787 fi
15788
15789 if test "$wxUSE_SOCKETS" = "yes" ; then
15790 cat >> confdefs.h <<\EOF
15791 #define wxUSE_SOCKETS 1
15792 EOF
15793
15794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
15795 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15796 fi
15797
15798
15799 if test "$wxUSE_GUI" = "yes"; then
15800
15801 if test "$TOOLKIT" != "MSW"; then
15802
15803 if test "$wxUSE_JOYSTICK" = "yes"; then
15804 for ac_hdr in linux/joystick.h
15805 do
15806 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15807 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15808 echo "configure:15809: checking for $ac_hdr" >&5
15809 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15810 echo $ac_n "(cached) $ac_c" 1>&6
15811 else
15812 cat > conftest.$ac_ext <<EOF
15813 #line 15814 "configure"
15814 #include "confdefs.h"
15815 #include <$ac_hdr>
15816 EOF
15817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15818 { (eval echo configure:15819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15820 if test -z "$ac_err"; then
15821 rm -rf conftest*
15822 eval "ac_cv_header_$ac_safe=yes"
15823 else
15824 echo "$ac_err" >&5
15825 echo "configure: failed program was:" >&5
15826 cat conftest.$ac_ext >&5
15827 rm -rf conftest*
15828 eval "ac_cv_header_$ac_safe=no"
15829 fi
15830 rm -f conftest*
15831 fi
15832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15833 echo "$ac_t""yes" 1>&6
15834 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15835 cat >> confdefs.h <<EOF
15836 #define $ac_tr_hdr 1
15837 EOF
15838
15839 else
15840 echo "$ac_t""no" 1>&6
15841 fi
15842 done
15843
15844 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
15845 wxUSE_JOYSTICK=no
15846 echo "configure: warning: Joystick not supported by this system" 1>&2
15847 fi
15848 fi
15849
15850 fi
15851
15852 if test "$wxUSE_JOYSTICK" = "yes"; then
15853 cat >> confdefs.h <<\EOF
15854 #define wxUSE_JOYSTICK 1
15855 EOF
15856
15857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
15858 fi
15859
15860 fi
15861
15862
15863 if test "$TOOLKIT" != "MSW"; then
15864
15865 HAVE_DL_FUNCS=0
15866 HAVE_SHL_FUNCS=0
15867 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
15868 if test "$USE_MAC" = 1; then
15869 HAVE_DL_FUNCS=1
15870 else
15871 for ac_func in dlopen
15872 do
15873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15874 echo "configure:15875: checking for $ac_func" >&5
15875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15876 echo $ac_n "(cached) $ac_c" 1>&6
15877 else
15878 cat > conftest.$ac_ext <<EOF
15879 #line 15880 "configure"
15880 #include "confdefs.h"
15881 /* System header to define __stub macros and hopefully few prototypes,
15882 which can conflict with char $ac_func(); below. */
15883 #include <assert.h>
15884 /* Override any gcc2 internal prototype to avoid an error. */
15885 /* We use char because int might match the return type of a gcc2
15886 builtin and then its argument prototype would still apply. */
15887 char $ac_func();
15888
15889 int main() {
15890
15891 /* The GNU C library defines this for functions which it implements
15892 to always fail with ENOSYS. Some functions are actually named
15893 something starting with __ and the normal name is an alias. */
15894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15895 choke me
15896 #else
15897 $ac_func();
15898 #endif
15899
15900 ; return 0; }
15901 EOF
15902 if { (eval echo configure:15903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15903 rm -rf conftest*
15904 eval "ac_cv_func_$ac_func=yes"
15905 else
15906 echo "configure: failed program was:" >&5
15907 cat conftest.$ac_ext >&5
15908 rm -rf conftest*
15909 eval "ac_cv_func_$ac_func=no"
15910 fi
15911 rm -f conftest*
15912 fi
15913
15914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15915 echo "$ac_t""yes" 1>&6
15916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15917 cat >> confdefs.h <<EOF
15918 #define $ac_tr_func 1
15919 EOF
15920
15921 cat >> confdefs.h <<\EOF
15922 #define HAVE_DLOPEN 1
15923 EOF
15924
15925 HAVE_DL_FUNCS=1
15926
15927 else
15928 echo "$ac_t""no" 1>&6
15929 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
15930 echo "configure:15931: checking for dlopen in -ldl" >&5
15931 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
15932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15933 echo $ac_n "(cached) $ac_c" 1>&6
15934 else
15935 ac_save_LIBS="$LIBS"
15936 LIBS="-ldl $LIBS"
15937 cat > conftest.$ac_ext <<EOF
15938 #line 15939 "configure"
15939 #include "confdefs.h"
15940 /* Override any gcc2 internal prototype to avoid an error. */
15941 /* We use char because int might match the return type of a gcc2
15942 builtin and then its argument prototype would still apply. */
15943 char dlopen();
15944
15945 int main() {
15946 dlopen()
15947 ; return 0; }
15948 EOF
15949 if { (eval echo configure:15950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15950 rm -rf conftest*
15951 eval "ac_cv_lib_$ac_lib_var=yes"
15952 else
15953 echo "configure: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15955 rm -rf conftest*
15956 eval "ac_cv_lib_$ac_lib_var=no"
15957 fi
15958 rm -f conftest*
15959 LIBS="$ac_save_LIBS"
15960
15961 fi
15962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15963 echo "$ac_t""yes" 1>&6
15964
15965 cat >> confdefs.h <<\EOF
15966 #define HAVE_DLOPEN 1
15967 EOF
15968
15969 HAVE_DL_FUNCS=1
15970 LIBS="$LIBS -ldl"
15971
15972 else
15973 echo "$ac_t""no" 1>&6
15974
15975 for ac_func in shl_load
15976 do
15977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15978 echo "configure:15979: checking for $ac_func" >&5
15979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15980 echo $ac_n "(cached) $ac_c" 1>&6
15981 else
15982 cat > conftest.$ac_ext <<EOF
15983 #line 15984 "configure"
15984 #include "confdefs.h"
15985 /* System header to define __stub macros and hopefully few prototypes,
15986 which can conflict with char $ac_func(); below. */
15987 #include <assert.h>
15988 /* Override any gcc2 internal prototype to avoid an error. */
15989 /* We use char because int might match the return type of a gcc2
15990 builtin and then its argument prototype would still apply. */
15991 char $ac_func();
15992
15993 int main() {
15994
15995 /* The GNU C library defines this for functions which it implements
15996 to always fail with ENOSYS. Some functions are actually named
15997 something starting with __ and the normal name is an alias. */
15998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15999 choke me
16000 #else
16001 $ac_func();
16002 #endif
16003
16004 ; return 0; }
16005 EOF
16006 if { (eval echo configure:16007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16007 rm -rf conftest*
16008 eval "ac_cv_func_$ac_func=yes"
16009 else
16010 echo "configure: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16012 rm -rf conftest*
16013 eval "ac_cv_func_$ac_func=no"
16014 fi
16015 rm -f conftest*
16016 fi
16017
16018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16019 echo "$ac_t""yes" 1>&6
16020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16021 cat >> confdefs.h <<EOF
16022 #define $ac_tr_func 1
16023 EOF
16024
16025 cat >> confdefs.h <<\EOF
16026 #define HAVE_SHL_LOAD 1
16027 EOF
16028
16029 HAVE_SHL_FUNCS=1
16030
16031 else
16032 echo "$ac_t""no" 1>&6
16033 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16034 echo "configure:16035: checking for dld in -lshl_load" >&5
16035 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16037 echo $ac_n "(cached) $ac_c" 1>&6
16038 else
16039 ac_save_LIBS="$LIBS"
16040 LIBS="-lshl_load $LIBS"
16041 cat > conftest.$ac_ext <<EOF
16042 #line 16043 "configure"
16043 #include "confdefs.h"
16044 /* Override any gcc2 internal prototype to avoid an error. */
16045 /* We use char because int might match the return type of a gcc2
16046 builtin and then its argument prototype would still apply. */
16047 char dld();
16048
16049 int main() {
16050 dld()
16051 ; return 0; }
16052 EOF
16053 if { (eval echo configure:16054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16054 rm -rf conftest*
16055 eval "ac_cv_lib_$ac_lib_var=yes"
16056 else
16057 echo "configure: failed program was:" >&5
16058 cat conftest.$ac_ext >&5
16059 rm -rf conftest*
16060 eval "ac_cv_lib_$ac_lib_var=no"
16061 fi
16062 rm -f conftest*
16063 LIBS="$ac_save_LIBS"
16064
16065 fi
16066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16067 echo "$ac_t""yes" 1>&6
16068
16069 HAVE_SHL_FUNCS=1
16070 LIBS="$LIBS -ldld"
16071
16072 else
16073 echo "$ac_t""no" 1>&6
16074 fi
16075
16076
16077 fi
16078 done
16079
16080
16081 fi
16082
16083
16084 fi
16085 done
16086
16087
16088 if test "$HAVE_DL_FUNCS" = 1; then
16089 for ac_func in dlerror
16090 do
16091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16092 echo "configure:16093: checking for $ac_func" >&5
16093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16094 echo $ac_n "(cached) $ac_c" 1>&6
16095 else
16096 cat > conftest.$ac_ext <<EOF
16097 #line 16098 "configure"
16098 #include "confdefs.h"
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func(); below. */
16101 #include <assert.h>
16102 /* Override any gcc2 internal prototype to avoid an error. */
16103 /* We use char because int might match the return type of a gcc2
16104 builtin and then its argument prototype would still apply. */
16105 char $ac_func();
16106
16107 int main() {
16108
16109 /* The GNU C library defines this for functions which it implements
16110 to always fail with ENOSYS. Some functions are actually named
16111 something starting with __ and the normal name is an alias. */
16112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16113 choke me
16114 #else
16115 $ac_func();
16116 #endif
16117
16118 ; return 0; }
16119 EOF
16120 if { (eval echo configure:16121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16121 rm -rf conftest*
16122 eval "ac_cv_func_$ac_func=yes"
16123 else
16124 echo "configure: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16126 rm -rf conftest*
16127 eval "ac_cv_func_$ac_func=no"
16128 fi
16129 rm -f conftest*
16130 fi
16131
16132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16133 echo "$ac_t""yes" 1>&6
16134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16135 cat >> confdefs.h <<EOF
16136 #define $ac_tr_func 1
16137 EOF
16138 cat >> confdefs.h <<\EOF
16139 #define HAVE_DLERROR 1
16140 EOF
16141
16142 else
16143 echo "$ac_t""no" 1>&6
16144 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16145 echo "configure:16146: checking for dlerror in -ldl" >&5
16146 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16148 echo $ac_n "(cached) $ac_c" 1>&6
16149 else
16150 ac_save_LIBS="$LIBS"
16151 LIBS="-ldl $LIBS"
16152 cat > conftest.$ac_ext <<EOF
16153 #line 16154 "configure"
16154 #include "confdefs.h"
16155 /* Override any gcc2 internal prototype to avoid an error. */
16156 /* We use char because int might match the return type of a gcc2
16157 builtin and then its argument prototype would still apply. */
16158 char dlerror();
16159
16160 int main() {
16161 dlerror()
16162 ; return 0; }
16163 EOF
16164 if { (eval echo configure:16165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16165 rm -rf conftest*
16166 eval "ac_cv_lib_$ac_lib_var=yes"
16167 else
16168 echo "configure: failed program was:" >&5
16169 cat conftest.$ac_ext >&5
16170 rm -rf conftest*
16171 eval "ac_cv_lib_$ac_lib_var=no"
16172 fi
16173 rm -f conftest*
16174 LIBS="$ac_save_LIBS"
16175
16176 fi
16177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16178 echo "$ac_t""yes" 1>&6
16179 cat >> confdefs.h <<\EOF
16180 #define HAVE_DLERROR 1
16181 EOF
16182
16183 else
16184 echo "$ac_t""no" 1>&6
16185 fi
16186
16187 fi
16188 done
16189
16190 fi
16191 fi
16192
16193 if test "$HAVE_DL_FUNCS" = 0; then
16194 if test "$HAVE_SHL_FUNCS" = 0; then
16195 if test "$USE_UNIX" = 1; then
16196 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16197 wxUSE_DYNLIB_CLASS=no
16198 else
16199 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16200 fi
16201 fi
16202 fi
16203 fi
16204
16205 fi
16206
16207 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16208 cat >> confdefs.h <<\EOF
16209 #define wxUSE_DYNLIB_CLASS 1
16210 EOF
16211
16212 else
16213 wxUSE_ODBC=no
16214 wxUSE_SERIAL=no
16215 fi
16216
16217
16218 if test "$wxUSE_FONTMAP" = "yes" ; then
16219 cat >> confdefs.h <<\EOF
16220 #define wxUSE_FONTMAP 1
16221 EOF
16222
16223 fi
16224
16225 if test "$wxUSE_UNICODE" = "yes" ; then
16226 cat >> confdefs.h <<\EOF
16227 #define wxUSE_UNICODE 1
16228 EOF
16229
16230 fi
16231
16232 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16233 cat >> confdefs.h <<\EOF
16234 #define wxUSE_WCSRTOMBS 1
16235 EOF
16236
16237 fi
16238
16239 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16240 cat >> confdefs.h <<\EOF
16241 #define wxUSE_EXPERIMENTAL_PRINTF 1
16242 EOF
16243
16244 fi
16245
16246
16247 if test "$wxUSE_SERIAL" = "yes" ; then
16248 cat >> confdefs.h <<\EOF
16249 #define wxUSE_SERIAL 1
16250 EOF
16251
16252 fi
16253
16254
16255 IODBC_C_SRC=""
16256 if test "$wxUSE_ODBC" = "yes" ; then
16257 cat >> confdefs.h <<\EOF
16258 #define wxUSE_ODBC 1
16259 EOF
16260
16261 WXODBCFLAG="-D_IODBC_"
16262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16263 fi
16264
16265
16266 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16267 cat >> confdefs.h <<\EOF
16268 #define wxUSE_POSTSCRIPT 1
16269 EOF
16270
16271 fi
16272
16273 cat >> confdefs.h <<\EOF
16274 #define wxUSE_AFM_FOR_POSTSCRIPT 1
16275 EOF
16276
16277
16278 cat >> confdefs.h <<\EOF
16279 #define wxUSE_NORMALIZED_PS_FONTS 1
16280 EOF
16281
16282
16283
16284 if test "$wxUSE_CONSTRAINTS" = "yes"; then
16285 cat >> confdefs.h <<\EOF
16286 #define wxUSE_CONSTRAINTS 1
16287 EOF
16288
16289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16290 fi
16291
16292 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16293 cat >> confdefs.h <<\EOF
16294 #define wxUSE_MDI_ARCHITECTURE 1
16295 EOF
16296
16297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16298 fi
16299
16300 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16301 cat >> confdefs.h <<\EOF
16302 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
16303 EOF
16304
16305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16306 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16308 fi
16309 fi
16310
16311 if test "$wxUSE_HELP" = "yes"; then
16312 cat >> confdefs.h <<\EOF
16313 #define wxUSE_HELP 1
16314 EOF
16315
16316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16317 fi
16318
16319 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16320 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16321 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
16322 else
16323 cat >> confdefs.h <<\EOF
16324 #define wxUSE_PRINTING_ARCHITECTURE 1
16325 EOF
16326
16327 fi
16328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16329 fi
16330
16331 if test "$wxUSE_PROLOGIO" = "yes" ; then
16332 cat >> confdefs.h <<\EOF
16333 #define wxUSE_PROLOGIO 1
16334 EOF
16335
16336 fi
16337
16338 if test "$wxUSE_RESOURCES" = "yes" ; then
16339 if test "$wxUSE_PROLOGIO" = "yes" ; then
16340 cat >> confdefs.h <<\EOF
16341 #define wxUSE_RESOURCES 1
16342 EOF
16343
16344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16345 else
16346 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
16347 fi
16348 fi
16349
16350 if test "$wxUSE_X_RESOURCES" = "yes"; then
16351 cat >> confdefs.h <<\EOF
16352 #define wxUSE_X_RESOURCES 1
16353 EOF
16354
16355 fi
16356
16357
16358 if test "$wxUSE_IPC" = "yes"; then
16359 if test "$wxUSE_SOCKETS" != "yes"; then
16360 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
16361 fi
16362
16363 cat >> confdefs.h <<\EOF
16364 #define wxUSE_IPC 1
16365 EOF
16366
16367 fi
16368
16369 if test "$wxUSE_CLIPBOARD" = "yes"; then
16370 cat >> confdefs.h <<\EOF
16371 #define wxUSE_CLIPBOARD 1
16372 EOF
16373
16374 cat >> confdefs.h <<\EOF
16375 #define wxUSE_DATAOBJ 1
16376 EOF
16377
16378 fi
16379
16380 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16381 if test "$wxUSE_GTK" = 1; then
16382 if test "$WXGTK12" != 1; then
16383 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
16384 wxUSE_DRAG_AND_DROP=no
16385 fi
16386 fi
16387
16388 if test "$wxUSE_MOTIF" = 1; then
16389 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
16390 wxUSE_DRAG_AND_DROP=no
16391 fi
16392
16393 if test "$wxUSE_MAC" = 1; then
16394 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
16395 wxUSE_DRAG_AND_DROP=no
16396 fi
16397
16398 if test "$USE_WIN32" = 1; then
16399
16400 for ac_hdr in ole2.h
16401 do
16402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16404 echo "configure:16405: checking for $ac_hdr" >&5
16405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16406 echo $ac_n "(cached) $ac_c" 1>&6
16407 else
16408 cat > conftest.$ac_ext <<EOF
16409 #line 16410 "configure"
16410 #include "confdefs.h"
16411 #include <$ac_hdr>
16412 EOF
16413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16414 { (eval echo configure:16415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16416 if test -z "$ac_err"; then
16417 rm -rf conftest*
16418 eval "ac_cv_header_$ac_safe=yes"
16419 else
16420 echo "$ac_err" >&5
16421 echo "configure: failed program was:" >&5
16422 cat conftest.$ac_ext >&5
16423 rm -rf conftest*
16424 eval "ac_cv_header_$ac_safe=no"
16425 fi
16426 rm -f conftest*
16427 fi
16428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16429 echo "$ac_t""yes" 1>&6
16430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16431 cat >> confdefs.h <<EOF
16432 #define $ac_tr_hdr 1
16433 EOF
16434
16435 else
16436 echo "$ac_t""no" 1>&6
16437 fi
16438 done
16439
16440
16441 if test "$ac_cv_header_ole2_h" = "yes" ; then
16442 if test "$GCC" = yes ; then
16443 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16444 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
16445 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
16446 LIBS="$LIBS -lole32 -luuid"
16447
16448 if test "$wxUSE_METAFILE" = "yes"; then
16449 cat >> confdefs.h <<\EOF
16450 #define wxUSE_METAFILE 1
16451 EOF
16452
16453 cat >> confdefs.h <<\EOF
16454 #define wxUSE_ENH_METAFILE 1
16455 EOF
16456
16457 fi
16458 fi
16459 else
16460 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
16461 wxUSE_DRAG_AND_DROP=no
16462 fi
16463 fi
16464
16465 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
16466 cat >> confdefs.h <<\EOF
16467 #define wxUSE_DRAG_AND_DROP 1
16468 EOF
16469
16470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16471 fi
16472
16473 fi
16474
16475 if test "$wxUSE_SPLINES" = "yes" ; then
16476 cat >> confdefs.h <<\EOF
16477 #define wxUSE_SPLINES 1
16478 EOF
16479
16480 fi
16481
16482
16483 USES_CONTROLS=0
16484 if test "$wxUSE_CONTROLS" = "yes"; then
16485 USES_CONTROLS=1
16486 fi
16487
16488 if test "$wxUSE_ACCEL" = "yes"; then
16489 cat >> confdefs.h <<\EOF
16490 #define wxUSE_ACCEL 1
16491 EOF
16492
16493 USES_CONTROLS=1
16494 fi
16495
16496 if test "$wxUSE_BUTTON" = "yes"; then
16497 cat >> confdefs.h <<\EOF
16498 #define wxUSE_BUTTON 1
16499 EOF
16500
16501 USES_CONTROLS=1
16502 fi
16503
16504 if test "$wxUSE_BMPBUTTON" = "yes"; then
16505 cat >> confdefs.h <<\EOF
16506 #define wxUSE_BMPBUTTON 1
16507 EOF
16508
16509 USES_CONTROLS=1
16510 fi
16511
16512 if test "$wxUSE_CALCTRL" = "yes"; then
16513 cat >> confdefs.h <<\EOF
16514 #define wxUSE_CALENDARCTRL 1
16515 EOF
16516
16517 USES_CONTROLS=1
16518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
16519 fi
16520
16521 if test "$wxUSE_CARET" = "yes"; then
16522 cat >> confdefs.h <<\EOF
16523 #define wxUSE_CARET 1
16524 EOF
16525
16526 USES_CONTROLS=1
16527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16528 fi
16529
16530 if test "$wxUSE_COMBOBOX" = "yes"; then
16531 cat >> confdefs.h <<\EOF
16532 #define wxUSE_COMBOBOX 1
16533 EOF
16534
16535 USES_CONTROLS=1
16536 fi
16537
16538 if test "$wxUSE_CHOICE" = "yes"; then
16539 cat >> confdefs.h <<\EOF
16540 #define wxUSE_CHOICE 1
16541 EOF
16542
16543 USES_CONTROLS=1
16544 fi
16545
16546 if test "$wxUSE_CHECKBOX" = "yes"; then
16547 cat >> confdefs.h <<\EOF
16548 #define wxUSE_CHECKBOX 1
16549 EOF
16550
16551 USES_CONTROLS=1
16552 fi
16553
16554 if test "$wxUSE_CHECKLST" = "yes"; then
16555 cat >> confdefs.h <<\EOF
16556 #define wxUSE_CHECKLISTBOX 1
16557 EOF
16558
16559 USES_CONTROLS=1
16560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16561 fi
16562
16563 if test "$wxUSE_GAUGE" = "yes"; then
16564 cat >> confdefs.h <<\EOF
16565 #define wxUSE_GAUGE 1
16566 EOF
16567
16568 USES_CONTROLS=1
16569 fi
16570
16571 if test "$wxUSE_NEW_GRID" = "yes"; then
16572 wxUSE_GRID="yes"
16573 cat >> confdefs.h <<\EOF
16574 #define wxUSE_NEW_GRID 1
16575 EOF
16576
16577 USES_CONTROLS=1
16578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
16579 fi
16580
16581 if test "$wxUSE_GRID" = "yes"; then
16582 cat >> confdefs.h <<\EOF
16583 #define wxUSE_GRID 1
16584 EOF
16585
16586 USES_CONTROLS=1
16587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
16588 fi
16589
16590 if test "$wxUSE_IMAGLIST" = "yes"; then
16591 cat >> confdefs.h <<\EOF
16592 #define wxUSE_IMAGLIST 1
16593 EOF
16594
16595 fi
16596
16597 if test "$wxUSE_LISTBOX" = "yes"; then
16598 cat >> confdefs.h <<\EOF
16599 #define wxUSE_LISTBOX 1
16600 EOF
16601
16602 USES_CONTROLS=1
16603 fi
16604
16605 if test "$wxUSE_LISTCTRL" = "yes"; then
16606 if test "$wxUSE_IMAGLIST" = "yes"; then
16607 cat >> confdefs.h <<\EOF
16608 #define wxUSE_LISTCTRL 1
16609 EOF
16610
16611 USES_CONTROLS=1
16612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16613 else
16614 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
16615 fi
16616 fi
16617
16618 if test "$wxUSE_NOTEBOOK" = "yes"; then
16619 cat >> confdefs.h <<\EOF
16620 #define wxUSE_NOTEBOOK 1
16621 EOF
16622
16623 USES_CONTROLS=1
16624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16625 fi
16626
16627 if test "$wxUSE_RADIOBOX" = "yes"; then
16628 cat >> confdefs.h <<\EOF
16629 #define wxUSE_RADIOBOX 1
16630 EOF
16631
16632 USES_CONTROLS=1
16633 fi
16634
16635 if test "$wxUSE_RADIOBTN" = "yes"; then
16636 cat >> confdefs.h <<\EOF
16637 #define wxUSE_RADIOBTN 1
16638 EOF
16639
16640 USES_CONTROLS=1
16641 fi
16642
16643 if test "$wxUSE_SASH" = "yes"; then
16644 cat >> confdefs.h <<\EOF
16645 #define wxUSE_SASH 1
16646 EOF
16647
16648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16649 fi
16650
16651 if test "$wxUSE_SCROLLBAR" = "yes"; then
16652 cat >> confdefs.h <<\EOF
16653 #define wxUSE_SCROLLBAR 1
16654 EOF
16655
16656 USES_CONTROLS=1
16657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
16658 fi
16659
16660 if test "$wxUSE_SLIDER" = "yes"; then
16661 cat >> confdefs.h <<\EOF
16662 #define wxUSE_SLIDER 1
16663 EOF
16664
16665 USES_CONTROLS=1
16666 fi
16667
16668 if test "$wxUSE_SPINBTN" = "yes"; then
16669 cat >> confdefs.h <<\EOF
16670 #define wxUSE_SPINBTN 1
16671 EOF
16672
16673 USES_CONTROLS=1
16674 fi
16675
16676 if test "$wxUSE_SPINCTRL" = "yes"; then
16677 cat >> confdefs.h <<\EOF
16678 #define wxUSE_SPINCTRL 1
16679 EOF
16680
16681 USES_CONTROLS=1
16682 fi
16683
16684 if test "$wxUSE_SPLITTER" = "yes"; then
16685 cat >> confdefs.h <<\EOF
16686 #define wxUSE_SPLITTER 1
16687 EOF
16688
16689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16690 fi
16691
16692 if test "$wxUSE_STATBMP" = "yes"; then
16693 cat >> confdefs.h <<\EOF
16694 #define wxUSE_STATBMP 1
16695 EOF
16696
16697 USES_CONTROLS=1
16698 fi
16699
16700 if test "$wxUSE_STATBOX" = "yes"; then
16701 cat >> confdefs.h <<\EOF
16702 #define wxUSE_STATBOX 1
16703 EOF
16704
16705 USES_CONTROLS=1
16706 fi
16707
16708 if test "$wxUSE_STATTEXT" = "yes"; then
16709 cat >> confdefs.h <<\EOF
16710 #define wxUSE_STATTEXT 1
16711 EOF
16712
16713 USES_CONTROLS=1
16714 fi
16715
16716 if test "$wxUSE_STATLINE" = "yes"; then
16717 if test "$wxUSE_WINE" = 1 ; then
16718 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
16719 else
16720 cat >> confdefs.h <<\EOF
16721 #define wxUSE_STATLINE 1
16722 EOF
16723
16724 USES_CONTROLS=1
16725 fi
16726 fi
16727
16728 if test "$wxUSE_STATUSBAR" = "yes"; then
16729 cat >> confdefs.h <<\EOF
16730 #define wxUSE_STATUSBAR 1
16731 EOF
16732
16733 USES_CONTROLS=1
16734
16735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
16736 fi
16737
16738 if test "$wxUSE_TABDIALOG" = "yes"; then
16739 cat >> confdefs.h <<\EOF
16740 #define wxUSE_TAB_DIALOG 1
16741 EOF
16742
16743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16744 fi
16745
16746 if test "$wxUSE_TEXTCTRL" = "yes"; then
16747 cat >> confdefs.h <<\EOF
16748 #define wxUSE_TEXTCTRL 1
16749 EOF
16750
16751 USES_CONTROLS=1
16752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16753 fi
16754
16755 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16756 if test "$wxUSE_MAC" = 1; then
16757 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16758 wxUSE_TOGGLEBTN=no
16759 fi
16760
16761 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16762 cat >> confdefs.h <<\EOF
16763 #define wxUSE_TOGGLEBTN 1
16764 EOF
16765
16766 USES_CONTROLS=1
16767 fi
16768 fi
16769
16770 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
16771 cat >> confdefs.h <<\EOF
16772 #define wxUSE_TOOLBAR_SIMPLE 1
16773 EOF
16774
16775 wxUSE_TOOLBAR="yes"
16776 USES_CONTROLS=1
16777 fi
16778
16779 if test "$wxUSE_TOOLBAR" = "yes"; then
16780 cat >> confdefs.h <<\EOF
16781 #define wxUSE_TOOLBAR 1
16782 EOF
16783
16784 USES_CONTROLS=1
16785
16786 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16787 wxUSE_TOOLBAR_NATIVE="yes"
16788 fi
16789
16790 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16791 cat >> confdefs.h <<\EOF
16792 #define wxUSE_TOOLBAR_NATIVE 1
16793 EOF
16794
16795 USES_CONTROLS=1
16796 fi
16797
16798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
16799 fi
16800
16801 if test "$wxUSE_TOOLTIPS" = "yes"; then
16802 if test "$wxUSE_MOTIF" = 1; then
16803 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
16804 else
16805 if test "$wxUSE_WINE" = 1; then
16806 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
16807 else
16808 cat >> confdefs.h <<\EOF
16809 #define wxUSE_TOOLTIPS 1
16810 EOF
16811
16812 fi
16813 fi
16814 fi
16815
16816 if test "$wxUSE_TREECTRL" = "yes"; then
16817 if test "$wxUSE_IMAGLIST" = "yes"; then
16818 cat >> confdefs.h <<\EOF
16819 #define wxUSE_TREECTRL 1
16820 EOF
16821
16822 USES_CONTROLS=1
16823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
16824 else
16825 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
16826 fi
16827 fi
16828
16829 if test "$USES_CONTROLS" = 1; then
16830 cat >> confdefs.h <<\EOF
16831 #define wxUSE_CONTROLS 1
16832 EOF
16833
16834 fi
16835
16836
16837
16838 if test "$wxUSE_MENUS" = "yes"; then
16839 cat >> confdefs.h <<\EOF
16840 #define wxUSE_MENUS 1
16841 EOF
16842
16843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
16844 fi
16845
16846 if test "$wxUSE_METAFILE" = "yes"; then
16847 cat >> confdefs.h <<\EOF
16848 #define wxUSE_METAFILE 1
16849 EOF
16850
16851 fi
16852
16853 if test "$wxUSE_MIMETYPE" = "yes"; then
16854 cat >> confdefs.h <<\EOF
16855 #define wxUSE_MIMETYPE 1
16856 EOF
16857
16858 fi
16859
16860 if test "$wxUSE_MINIFRAME" = "yes"; then
16861 cat >> confdefs.h <<\EOF
16862 #define wxUSE_MINIFRAME 1
16863 EOF
16864
16865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
16866 fi
16867
16868 if test "$wxUSE_HTML" = "yes"; then
16869 cat >> confdefs.h <<\EOF
16870 #define wxUSE_HTML 1
16871 EOF
16872
16873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
16874 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
16875 fi
16876
16877 if test "$wxUSE_VALIDATORS" = "yes"; then
16878 cat >> confdefs.h <<\EOF
16879 #define wxUSE_VALIDATORS 1
16880 EOF
16881
16882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
16883 fi
16884
16885 if test "$wxUSE_IMAGE" = "yes" ; then
16886 cat >> confdefs.h <<\EOF
16887 #define wxUSE_IMAGE 1
16888 EOF
16889
16890 fi
16891
16892 if test "$wxUSE_GIF" = "yes" ; then
16893 cat >> confdefs.h <<\EOF
16894 #define wxUSE_GIF 1
16895 EOF
16896
16897 fi
16898
16899 if test "$wxUSE_PCX" = "yes" ; then
16900 cat >> confdefs.h <<\EOF
16901 #define wxUSE_PCX 1
16902 EOF
16903
16904 fi
16905
16906 if test "$wxUSE_PNM" = "yes" ; then
16907 cat >> confdefs.h <<\EOF
16908 #define wxUSE_PNM 1
16909 EOF
16910
16911 fi
16912
16913 if test "$wxUSE_XPM" = "yes" ; then
16914 cat >> confdefs.h <<\EOF
16915 #define wxUSE_XPM 1
16916 EOF
16917
16918 fi
16919
16920
16921 if test "$wxUSE_CHOICEDLG" = "yes"; then
16922 cat >> confdefs.h <<\EOF
16923 #define wxUSE_CHOICEDLG 1
16924 EOF
16925
16926 fi
16927
16928 if test "$wxUSE_COLOURDLG" = "yes"; then
16929 cat >> confdefs.h <<\EOF
16930 #define wxUSE_COLOURDLG 1
16931 EOF
16932
16933 fi
16934
16935 if test "$wxUSE_FILEDLG" = "yes"; then
16936 cat >> confdefs.h <<\EOF
16937 #define wxUSE_FILEDLG 1
16938 EOF
16939
16940 fi
16941
16942 if test "$wxUSE_FONTDLG" = "yes"; then
16943 cat >> confdefs.h <<\EOF
16944 #define wxUSE_FONTDLG 1
16945 EOF
16946
16947 fi
16948
16949 if test "$wxUSE_DIRDLG" = "yes"; then
16950 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16951 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
16952 else
16953 if test "$wxUSE_TREECTRL" != "yes"; then
16954 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
16955 else
16956 cat >> confdefs.h <<\EOF
16957 #define wxUSE_DIRDLG 1
16958 EOF
16959
16960 fi
16961 fi
16962 fi
16963
16964 if test "$wxUSE_MSGDLG" = "yes"; then
16965 cat >> confdefs.h <<\EOF
16966 #define wxUSE_MSGDLG 1
16967 EOF
16968
16969 fi
16970
16971 if test "$wxUSE_NUMBERDLG" = "yes"; then
16972 cat >> confdefs.h <<\EOF
16973 #define wxUSE_NUMBERDLG 1
16974 EOF
16975
16976 fi
16977
16978 if test "$wxUSE_PROGRESSDLG" = "yes"; then
16979 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16980 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
16981 else
16982 cat >> confdefs.h <<\EOF
16983 #define wxUSE_PROGRESSDLG 1
16984 EOF
16985
16986 fi
16987 fi
16988
16989 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
16990 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16991 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
16992 else
16993 cat >> confdefs.h <<\EOF
16994 #define wxUSE_STARTUP_TIPS 1
16995 EOF
16996
16997 fi
16998 fi
16999
17000 if test "$wxUSE_TEXTDLG" = "yes"; then
17001 cat >> confdefs.h <<\EOF
17002 #define wxUSE_TEXTDLG 1
17003 EOF
17004
17005 fi
17006
17007
17008 if test "$cross_compiling" = "yes"; then
17009 OSINFO="\"$host\""
17010 else
17011 OSINFO=`uname -s -r -m`
17012 OSINFO="\"$OSINFO\""
17013 fi
17014
17015 cat >> confdefs.h <<EOF
17016 #define WXWIN_OS_DESCRIPTION $OSINFO
17017 EOF
17018
17019
17020
17021 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17022 OPENGL_LIBS="$OPENGL_LINK"
17023
17024 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17025 if test "$USE_MAC" = 1 ; then
17026 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17027 fi
17028 if test "$wxUSE_GUI" = "yes"; then
17029 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17030 fi
17031
17032 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17033
17034 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17035
17036 if test "$wxUSE_GTK" = 1; then
17037 WXCONFIG_INCLUDE=""
17038 else
17039 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17040 fi
17041
17042 if test "$GXX" = yes ; then
17043 CXXWARNINGS="-Wall"
17044 fi
17045 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17046
17047 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17048 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17049
17050 LDFLAGS="$LDFLAGS $PROFILE"
17051
17052 if test "$wxUSE_GUI" = "yes"; then
17053
17054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
17055 drawing dynamic event font fractal image \
17056 minimal richedit widgets"
17057
17058 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17060 fi
17061
17062 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17063 else
17064 SAMPLES_SUBDIRS=""
17065 fi
17066
17067 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
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
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17163 echo "configure:17164: checking whether ${MAKE-make} sets \${MAKE}" >&5
17164 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17165 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17166 echo $ac_n "(cached) $ac_c" 1>&6
17167 else
17168 cat > conftestmake <<\EOF
17169 all:
17170 @echo 'ac_maketemp="${MAKE}"'
17171 EOF
17172 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17173 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17174 if test -n "$ac_maketemp"; then
17175 eval ac_cv_prog_make_${ac_make}_set=yes
17176 else
17177 eval ac_cv_prog_make_${ac_make}_set=no
17178 fi
17179 rm -f conftestmake
17180 fi
17181 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17182 echo "$ac_t""yes" 1>&6
17183 SET_MAKE=
17184 else
17185 echo "$ac_t""no" 1>&6
17186 SET_MAKE="MAKE=${MAKE-make}"
17187 fi
17188
17189
17190 if test -d include; then
17191 if test -d include/wx; then
17192 if test -d include/wx/${SETUPH_DIR}; then
17193 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17194 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17195 fi
17196 fi
17197 fi
17198 fi
17199
17200
17201
17202 if test "$wxUSE_GUI" = "yes"; then
17203 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17204 wx_cv_path_ifs=$PATH_IFS
17205 wx_cv_program_ext=$PROGRAM_EXT
17206 wx_cv_target_library=$WX_TARGET_LIBRARY
17207 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17208 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17209 wx_cv_target_library wx_cv_target_libtype
17210 subdirs="demos samples utils contrib"
17211
17212 fi
17213
17214 trap '' 1 2 15
17215 cat > confcache <<\EOF
17216 # This file is a shell script that caches the results of configure
17217 # tests run on this system so they can be shared between configure
17218 # scripts and configure runs. It is not useful on other systems.
17219 # If it contains results you don't want to keep, you may remove or edit it.
17220 #
17221 # By default, configure uses ./config.cache as the cache file,
17222 # creating it if it does not exist already. You can give configure
17223 # the --cache-file=FILE option to use a different cache file; that is
17224 # what configure does when it calls configure scripts in
17225 # subdirectories, so they share the cache.
17226 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17227 # config.status only pays attention to the cache file if you give it the
17228 # --recheck option to rerun configure.
17229 #
17230 EOF
17231 # The following way of writing the cache mishandles newlines in values,
17232 # but we know of no workaround that is simple, portable, and efficient.
17233 # So, don't put newlines in cache variables' values.
17234 # Ultrix sh set writes to stderr and can't be redirected directly,
17235 # and sets the high bit in the cache file unless we assign to the vars.
17236 (set) 2>&1 |
17237 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17238 *ac_space=\ *)
17239 # `set' does not quote correctly, so add quotes (double-quote substitution
17240 # turns \\\\ into \\, and sed turns \\ into \).
17241 sed -n \
17242 -e "s/'/'\\\\''/g" \
17243 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17244 ;;
17245 *)
17246 # `set' quotes correctly as required by POSIX, so do not add quotes.
17247 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17248 ;;
17249 esac >> confcache
17250 if cmp -s $cache_file confcache; then
17251 :
17252 else
17253 if test -w $cache_file; then
17254 echo "updating cache $cache_file"
17255 cat confcache > $cache_file
17256 else
17257 echo "not updating unwritable cache $cache_file"
17258 fi
17259 fi
17260 rm -f confcache
17261
17262 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17263
17264 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17265 # Let make expand exec_prefix.
17266 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17267
17268 # Any assignment to VPATH causes Sun make to only execute
17269 # the first set of double-colon rules, so remove it if not needed.
17270 # If there is a colon in the path, we need to keep it.
17271 if test "x$srcdir" = x.; then
17272 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17273 fi
17274
17275 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17276
17277 DEFS=-DHAVE_CONFIG_H
17278
17279 # Without the "./", some shells look in PATH for config.status.
17280 : ${CONFIG_STATUS=./config.status}
17281
17282 echo creating $CONFIG_STATUS
17283 rm -f $CONFIG_STATUS
17284 cat > $CONFIG_STATUS <<EOF
17285 #! /bin/sh
17286 # Generated automatically by configure.
17287 # Run this file to recreate the current configuration.
17288 # This directory was configured as follows,
17289 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17290 #
17291 # $0 $ac_configure_args
17292 #
17293 # Compiler output produced by configure, useful for debugging
17294 # configure, is in ./config.log if it exists.
17295
17296 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17297 for ac_option
17298 do
17299 case "\$ac_option" in
17300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17301 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17302 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17303 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17304 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17305 exit 0 ;;
17306 -help | --help | --hel | --he | --h)
17307 echo "\$ac_cs_usage"; exit 0 ;;
17308 *) echo "\$ac_cs_usage"; exit 1 ;;
17309 esac
17310 done
17311
17312 ac_given_srcdir=$srcdir
17313 ac_given_INSTALL="$INSTALL"
17314
17315 trap 'rm -fr `echo "
17316 wx-config
17317 src/make.env
17318 src/makeprog.env
17319 src/makelib.env
17320 Makefile
17321 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17322 EOF
17323 cat >> $CONFIG_STATUS <<EOF
17324
17325 # Protect against being on the right side of a sed subst in config.status.
17326 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17327 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17328 $ac_vpsub
17329 $extrasub
17330 s%@SHELL@%$SHELL%g
17331 s%@CFLAGS@%$CFLAGS%g
17332 s%@CPPFLAGS@%$CPPFLAGS%g
17333 s%@CXXFLAGS@%$CXXFLAGS%g
17334 s%@FFLAGS@%$FFLAGS%g
17335 s%@DEFS@%$DEFS%g
17336 s%@LDFLAGS@%$LDFLAGS%g
17337 s%@LIBS@%$LIBS%g
17338 s%@exec_prefix@%$exec_prefix%g
17339 s%@prefix@%$prefix%g
17340 s%@program_transform_name@%$program_transform_name%g
17341 s%@bindir@%$bindir%g
17342 s%@sbindir@%$sbindir%g
17343 s%@libexecdir@%$libexecdir%g
17344 s%@datadir@%$datadir%g
17345 s%@sysconfdir@%$sysconfdir%g
17346 s%@sharedstatedir@%$sharedstatedir%g
17347 s%@localstatedir@%$localstatedir%g
17348 s%@libdir@%$libdir%g
17349 s%@includedir@%$includedir%g
17350 s%@oldincludedir@%$oldincludedir%g
17351 s%@infodir@%$infodir%g
17352 s%@mandir@%$mandir%g
17353 s%@host@%$host%g
17354 s%@host_alias@%$host_alias%g
17355 s%@host_cpu@%$host_cpu%g
17356 s%@host_vendor@%$host_vendor%g
17357 s%@host_os@%$host_os%g
17358 s%@target@%$target%g
17359 s%@target_alias@%$target_alias%g
17360 s%@target_cpu@%$target_cpu%g
17361 s%@target_vendor@%$target_vendor%g
17362 s%@target_os@%$target_os%g
17363 s%@build@%$build%g
17364 s%@build_alias@%$build_alias%g
17365 s%@build_cpu@%$build_cpu%g
17366 s%@build_vendor@%$build_vendor%g
17367 s%@build_os@%$build_os%g
17368 s%@CC@%$CC%g
17369 s%@CPP@%$CPP%g
17370 s%@CXX@%$CXX%g
17371 s%@CXXCPP@%$CXXCPP%g
17372 s%@RANLIB@%$RANLIB%g
17373 s%@AR@%$AR%g
17374 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17375 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17376 s%@INSTALL_DATA@%$INSTALL_DATA%g
17377 s%@STRIP@%$STRIP%g
17378 s%@YACC@%$YACC%g
17379 s%@LEX@%$LEX%g
17380 s%@LEXLIB@%$LEXLIB%g
17381 s%@LN_S@%$LN_S%g
17382 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
17383 s%@GTK_CONFIG@%$GTK_CONFIG%g
17384 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17385 s%@GTK_LIBS@%$GTK_LIBS%g
17386 s%@X_CFLAGS@%$X_CFLAGS%g
17387 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17388 s%@X_LIBS@%$X_LIBS%g
17389 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17390 s%@REZ@%$REZ%g
17391 s%@DEREZ@%$DEREZ%g
17392 s%@LEX_STEM@%$LEX_STEM%g
17393 s%@PATH_IFS@%$PATH_IFS%g
17394 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17395 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17396 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17397 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17398 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17399 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17400 s%@WX_LIBRARY@%$WX_LIBRARY%g
17401 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17402 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17403 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17404 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17405 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17406 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17407 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17408 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17409 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17410 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17411 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17412 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17413 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17414 s%@WX_ALL@%$WX_ALL%g
17415 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17416 s%@SHARED_LD@%$SHARED_LD%g
17417 s%@PIC_FLAG@%$PIC_FLAG%g
17418 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17419 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17420 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17421 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17422 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17423 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17424 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17425 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17426 s%@USE_GUI@%$USE_GUI%g
17427 s%@AFMINSTALL@%$AFMINSTALL%g
17428 s%@SETUPH_DIR@%$SETUPH_DIR%g
17429 s%@TOOLKIT@%$TOOLKIT%g
17430 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17431 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17432 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17433 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
17434 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
17435 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17436 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17437 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17438 s%@GUIDIST@%$GUIDIST%g
17439 s%@PORT_FILES@%$PORT_FILES%g
17440 s%@DISTDIR@%$DISTDIR%g
17441 s%@RPM_SPEC@%$RPM_SPEC%g
17442 s%@RPM_FILES@%$RPM_FILES%g
17443 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17444 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17445 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17446 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17447 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17448 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17449 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17450 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17451 s%@EXTRADEFS@%$EXTRADEFS%g
17452 s%@LD_LIBS@%$LD_LIBS%g
17453 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17454 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17455 s%@RESPROGRAM@%$RESPROGRAM%g
17456 s%@RESCOMP@%$RESCOMP%g
17457 s%@RESFLAGS@%$RESFLAGS%g
17458 s%@REZFLAGS@%$REZFLAGS%g
17459 s%@DEREZFLAGS@%$DEREZFLAGS%g
17460 s%@LIBWXMACRES@%$LIBWXMACRES%g
17461 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17462 s%@DLLTOOL@%$DLLTOOL%g
17463 s%@AS@%$AS%g
17464 s%@NM@%$NM%g
17465 s%@LD@%$LD%g
17466 s%@MAKEINFO@%$MAKEINFO%g
17467 s%@SET_MAKE@%$SET_MAKE%g
17468 s%@subdirs@%$subdirs%g
17469
17470 CEOF
17471 EOF
17472
17473 cat >> $CONFIG_STATUS <<\EOF
17474
17475 # Split the substitutions into bite-sized pieces for seds with
17476 # small command number limits, like on Digital OSF/1 and HP-UX.
17477 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17478 ac_file=1 # Number of current file.
17479 ac_beg=1 # First line for current file.
17480 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17481 ac_more_lines=:
17482 ac_sed_cmds=""
17483 while $ac_more_lines; do
17484 if test $ac_beg -gt 1; then
17485 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17486 else
17487 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17488 fi
17489 if test ! -s conftest.s$ac_file; then
17490 ac_more_lines=false
17491 rm -f conftest.s$ac_file
17492 else
17493 if test -z "$ac_sed_cmds"; then
17494 ac_sed_cmds="sed -f conftest.s$ac_file"
17495 else
17496 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17497 fi
17498 ac_file=`expr $ac_file + 1`
17499 ac_beg=$ac_end
17500 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17501 fi
17502 done
17503 if test -z "$ac_sed_cmds"; then
17504 ac_sed_cmds=cat
17505 fi
17506 EOF
17507
17508 cat >> $CONFIG_STATUS <<EOF
17509
17510 CONFIG_FILES=\${CONFIG_FILES-"wx-config
17511 src/make.env
17512 src/makeprog.env
17513 src/makelib.env
17514 Makefile
17515 "}
17516 EOF
17517 cat >> $CONFIG_STATUS <<\EOF
17518 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17519 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17520 case "$ac_file" in
17521 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17522 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17523 *) ac_file_in="${ac_file}.in" ;;
17524 esac
17525
17526 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17527
17528 # Remove last slash and all that follows it. Not all systems have dirname.
17529 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17530 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17531 # The file is in a subdirectory.
17532 test ! -d "$ac_dir" && mkdir "$ac_dir"
17533 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17534 # A "../" for each directory in $ac_dir_suffix.
17535 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17536 else
17537 ac_dir_suffix= ac_dots=
17538 fi
17539
17540 case "$ac_given_srcdir" in
17541 .) srcdir=.
17542 if test -z "$ac_dots"; then top_srcdir=.
17543 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17544 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17545 *) # Relative path.
17546 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17547 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17548 esac
17549
17550 case "$ac_given_INSTALL" in
17551 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17552 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17553 esac
17554
17555 echo creating "$ac_file"
17556 rm -f "$ac_file"
17557 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17558 case "$ac_file" in
17559 *Makefile*) ac_comsub="1i\\
17560 # $configure_input" ;;
17561 *) ac_comsub= ;;
17562 esac
17563
17564 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17565 sed -e "$ac_comsub
17566 s%@configure_input@%$configure_input%g
17567 s%@srcdir@%$srcdir%g
17568 s%@top_srcdir@%$top_srcdir%g
17569 s%@INSTALL@%$INSTALL%g
17570 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17571 fi; done
17572 rm -f conftest.s*
17573
17574 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17575 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17576 #
17577 # ac_d sets the value in "#define NAME VALUE" lines.
17578 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17579 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17580 ac_dC='\3'
17581 ac_dD='%g'
17582 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17583 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17584 ac_uB='\([ ]\)%\1#\2define\3'
17585 ac_uC=' '
17586 ac_uD='\4%g'
17587 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17588 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17589 ac_eB='$%\1#\2define\3'
17590 ac_eC=' '
17591 ac_eD='%g'
17592
17593 if test "${CONFIG_HEADERS+set}" != set; then
17594 EOF
17595 cat >> $CONFIG_STATUS <<EOF
17596 CONFIG_HEADERS="setup.h:setup.h.in"
17597 EOF
17598 cat >> $CONFIG_STATUS <<\EOF
17599 fi
17600 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17602 case "$ac_file" in
17603 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17604 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17605 *) ac_file_in="${ac_file}.in" ;;
17606 esac
17607
17608 echo creating $ac_file
17609
17610 rm -f conftest.frag conftest.in conftest.out
17611 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17612 cat $ac_file_inputs > conftest.in
17613
17614 EOF
17615
17616 # Transform confdefs.h into a sed script conftest.vals that substitutes
17617 # the proper values into config.h.in to produce config.h. And first:
17618 # Protect against being on the right side of a sed subst in config.status.
17619 # Protect against being in an unquoted here document in config.status.
17620 rm -f conftest.vals
17621 cat > conftest.hdr <<\EOF
17622 s/[\\&%]/\\&/g
17623 s%[\\$`]%\\&%g
17624 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17625 s%ac_d%ac_u%gp
17626 s%ac_u%ac_e%gp
17627 EOF
17628 sed -n -f conftest.hdr confdefs.h > conftest.vals
17629 rm -f conftest.hdr
17630
17631 # This sed command replaces #undef with comments. This is necessary, for
17632 # example, in the case of _POSIX_SOURCE, which is predefined and required
17633 # on some systems where configure will not decide to define it.
17634 cat >> conftest.vals <<\EOF
17635 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17636 EOF
17637
17638 # Break up conftest.vals because some shells have a limit on
17639 # the size of here documents, and old seds have small limits too.
17640
17641 rm -f conftest.tail
17642 while :
17643 do
17644 ac_lines=`grep -c . conftest.vals`
17645 # grep -c gives empty output for an empty file on some AIX systems.
17646 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17647 # Write a limited-size here document to conftest.frag.
17648 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17649 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17650 echo 'CEOF
17651 sed -f conftest.frag conftest.in > conftest.out
17652 rm -f conftest.in
17653 mv conftest.out conftest.in
17654 ' >> $CONFIG_STATUS
17655 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17656 rm -f conftest.vals
17657 mv conftest.tail conftest.vals
17658 done
17659 rm -f conftest.vals
17660
17661 cat >> $CONFIG_STATUS <<\EOF
17662 rm -f conftest.frag conftest.h
17663 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17664 cat conftest.in >> conftest.h
17665 rm -f conftest.in
17666 if cmp -s $ac_file conftest.h 2>/dev/null; then
17667 echo "$ac_file is unchanged"
17668 rm -f conftest.h
17669 else
17670 # Remove last slash and all that follows it. Not all systems have dirname.
17671 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17672 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17673 # The file is in a subdirectory.
17674 test ! -d "$ac_dir" && mkdir "$ac_dir"
17675 fi
17676 rm -f $ac_file
17677 mv conftest.h $ac_file
17678 fi
17679 fi; done
17680
17681 EOF
17682 cat >> $CONFIG_STATUS <<EOF
17683
17684 SETUPH_DIR="${SETUPH_DIR}"
17685 TOOLKIT_NAME="${TOOLKIT_NAME}"
17686 LN_S="${LN_S}"
17687
17688
17689 EOF
17690 cat >> $CONFIG_STATUS <<\EOF
17691
17692 if test ! -f wx${TOOLKIT_NAME}-config; then
17693 chmod +x wx-config
17694 mv wx-config wx${TOOLKIT_NAME}-config
17695 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17696 fi
17697
17698
17699 if test ! -d lib; then
17700 mkdir lib
17701 fi
17702 if test ! -d lib/wx; then
17703 mkdir lib/wx
17704 fi
17705 if test ! -d lib/wx/include; then
17706 mkdir lib/wx/include
17707 fi
17708 if test ! -d lib/wx/include/wx; then
17709 mkdir lib/wx/include/wx
17710 fi
17711 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17712 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
17713 fi
17714 if test -f setup.h; then
17715 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
17716 fi
17717
17718
17719 if test ! -d include; then
17720 mkdir include
17721 fi
17722 if test ! -d include/wx; then
17723 mkdir include/wx
17724 fi
17725 if test ! -d include/wx/${SETUPH_DIR}; then
17726 mkdir include/wx/${SETUPH_DIR}
17727 fi
17728 if test -f setup.h; then
17729 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
17730 fi
17731
17732
17733 exit 0
17734 EOF
17735 chmod +x $CONFIG_STATUS
17736 rm -fr confdefs* $ac_clean_files
17737 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17738
17739 if test "$no_recursion" != yes; then
17740
17741 # Remove --cache-file and --srcdir arguments so they do not pile up.
17742 ac_sub_configure_args=
17743 ac_prev=
17744 for ac_arg in $ac_configure_args; do
17745 if test -n "$ac_prev"; then
17746 ac_prev=
17747 continue
17748 fi
17749 case "$ac_arg" in
17750 -cache-file | --cache-file | --cache-fil | --cache-fi \
17751 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17752 ac_prev=cache_file ;;
17753 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17754 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
17755 ;;
17756 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17757 ac_prev=srcdir ;;
17758 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17759 ;;
17760 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17761 esac
17762 done
17763
17764 for ac_config_dir in demos samples utils contrib; do
17765
17766 # Do not complain, so a configure script can configure whichever
17767 # parts of a large source tree are present.
17768 if test ! -d $srcdir/$ac_config_dir; then
17769 continue
17770 fi
17771
17772 echo configuring in $ac_config_dir
17773
17774 case "$srcdir" in
17775 .) ;;
17776 *)
17777 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17778 else
17779 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17780 fi
17781 ;;
17782 esac
17783
17784 ac_popdir=`pwd`
17785 cd $ac_config_dir
17786
17787 # A "../" for each directory in /$ac_config_dir.
17788 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
17789
17790 case "$srcdir" in
17791 .) # No --srcdir option. We are building in place.
17792 ac_sub_srcdir=$srcdir ;;
17793 /*) # Absolute path.
17794 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
17795 *) # Relative path.
17796 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
17797 esac
17798
17799 # Check for guested configure; otherwise get Cygnus style configure.
17800 if test -f $ac_sub_srcdir/configure; then
17801 ac_sub_configure=$ac_sub_srcdir/configure
17802 elif test -f $ac_sub_srcdir/configure.in; then
17803 ac_sub_configure=$ac_configure
17804 else
17805 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
17806 ac_sub_configure=
17807 fi
17808
17809 # The recursion is here.
17810 if test -n "$ac_sub_configure"; then
17811
17812 # Make the cache file name correct relative to the subdirectory.
17813 case "$cache_file" in
17814 /*) ac_sub_cache_file=$cache_file ;;
17815 *) # Relative path.
17816 ac_sub_cache_file="$ac_dots$cache_file" ;;
17817 esac
17818 case "$ac_given_INSTALL" in
17819 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17820 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17821 esac
17822
17823 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
17824 # The eval makes quoting arguments work.
17825 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
17826 then :
17827 else
17828 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
17829 fi
17830 fi
17831
17832 cd $ac_popdir
17833 done
17834 fi
17835
17836