]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
1. added --enable-gtk2 option, check for GTK+ 2.0 disabled by default
[wxWidgets.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
41
42
43
44
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
59 --enable-gui use GUI classes"
60ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76ac_help="$ac_help
77 --with-mgl use MGL"
78ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92ac_help="$ac_help
93 --with-zlib use zlib for LZW compression"
94ac_help="$ac_help
95 --with-odbc use the IODBC and wxODBC classes"
96ac_help="$ac_help
97 --enable-shared create shared library code"
98ac_help="$ac_help
99 --enable-burnt_name create set name in shared library "
100ac_help="$ac_help
101 --enable-optimise create optimised code"
102ac_help="$ac_help
103 --enable-debug same as debug_flag and debug_info"
104ac_help="$ac_help
105 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
106ac_help="$ac_help
107 --enable-debug_info create code with debugging information"
108ac_help="$ac_help
109 --enable-debug_gdb create code with extra GDB debugging information"
110ac_help="$ac_help
111 --enable-debug_cntxt use wxDebugContext"
112ac_help="$ac_help
113 --enable-mem_tracing create code with memory tracing"
114ac_help="$ac_help
115 --enable-profile create code with profiling information"
116ac_help="$ac_help
117 --enable-no_rtti create code without RTTI information"
118ac_help="$ac_help
119 --enable-no_exceptions create code without exceptions information"
120ac_help="$ac_help
121 --enable-permissive compile code disregarding strict ANSI"
122ac_help="$ac_help
123 --enable-no_deps create code without dependency information"
124ac_help="$ac_help
125 --enable-intl use internationalization system"
126ac_help="$ac_help
127 --enable-config use wxConfig (and derived) classes"
128ac_help="$ac_help
129 --enable-sockets use socket/network classes"
130ac_help="$ac_help
131 --enable-ipc use interprocess communication (wxSocket etc.)"
132ac_help="$ac_help
133 --enable-cmdline use wxCmdLineParser class"
134ac_help="$ac_help
135 --enable-datetime use wxDateTime class"
136ac_help="$ac_help
137 --enable-timedate use obsolete wxDate/wxTime classes"
138ac_help="$ac_help
139 --enable-stopwatch use wxStopWatch class"
140ac_help="$ac_help
141 --enable-dialupman use dialup network classes"
142ac_help="$ac_help
143 --enable-apple_ieee use the Apple IEEE codec"
144ac_help="$ac_help
145 --enable-timer use wxTimer class"
146ac_help="$ac_help
147 --enable-wave use wxWave class"
148ac_help="$ac_help
149 --enable-fraction use wxFraction class"
150ac_help="$ac_help
151 --enable-dynlib use wxLibrary class for DLL loading"
152ac_help="$ac_help
153 --enable-longlong use wxLongLong class"
154ac_help="$ac_help
155 --enable-geometry use geometry class"
156ac_help="$ac_help
157 --enable-log use logging system"
158ac_help="$ac_help
159 --enable-streams use wxStream etc classes"
160ac_help="$ac_help
161 --enable-file use wxFile classes"
162ac_help="$ac_help
163 --enable-ffile use wxFFile classes"
164ac_help="$ac_help
165 --enable-textfile use wxTextFile classes"
166ac_help="$ac_help
167 --enable-fontmap use font encodings conversion classes"
168ac_help="$ac_help
169 --enable-unicode compile wxString with Unicode support"
170ac_help="$ac_help
171 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
172ac_help="$ac_help
173 --enable-wxprintfv use wxWindows implementation of vprintf()"
174ac_help="$ac_help
175 --enable-std_iostreams use standard C++ stream classes"
176ac_help="$ac_help
177 --enable-filesystem use virtual file systems classes"
178ac_help="$ac_help
179 --enable-fs_inet use virtual HTTP/FTP filesystems"
180ac_help="$ac_help
181 --enable-fs_zip use virtual ZIP filesystems"
182ac_help="$ac_help
183 --enable-zipstream use wxZipInputStream"
184ac_help="$ac_help
185 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
186ac_help="$ac_help
187 --enable-snglinst use wxSingleInstanceChecker class"
188ac_help="$ac_help
189 --enable-mimetypes use wxMimeTypesManager"
190ac_help="$ac_help
191 --enable-threads use threads"
192ac_help="$ac_help
193 --enable-serial use class serialization"
194ac_help="$ac_help
195 --enable-docview use document view architecture"
196ac_help="$ac_help
197 --enable-help use help (using external browser at present)"
198ac_help="$ac_help
199 --enable-constraints use layout-constraints system"
200ac_help="$ac_help
201 --enable-printarch use printing architecture"
202ac_help="$ac_help
203 --enable-mdi use multiple document interface architecture"
204ac_help="$ac_help
205 --enable-loggui use standard GUI logger"
206ac_help="$ac_help
207 --enable-logwin use wxLogWindow"
208ac_help="$ac_help
209 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
210ac_help="$ac_help
211 --enable-prologio use Prolog IO library"
212ac_help="$ac_help
213 --enable-resources use wxWindows resources"
214ac_help="$ac_help
215 --enable-xresources use X resources for save (default for gtk+)"
216ac_help="$ac_help
217 --enable-clipboard use wxClipboard classes"
218ac_help="$ac_help
219 --enable-dnd use Drag'n'Drop classes"
220ac_help="$ac_help
221 --enable-metafile use win32 metafiles"
222ac_help="$ac_help
223 --enable-wxtree make wxTree library"
224ac_help="$ac_help
225 --enable-controls use all usual controls"
226ac_help="$ac_help
227 --enable-accel use accelerators"
228ac_help="$ac_help
229 --enable-button use wxButton class"
230ac_help="$ac_help
231 --enable-bmpbutton use wxBitmapButton class"
232ac_help="$ac_help
233 --enable-calendar use wxCalendarCtrl class"
234ac_help="$ac_help
235 --enable-caret use wxCaret class"
236ac_help="$ac_help
237 --enable-checkbox use wxCheckBox class"
238ac_help="$ac_help
239 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
240ac_help="$ac_help
241 --enable-choice use wxChoice class"
242ac_help="$ac_help
243 --enable-combobox use wxComboBox classes"
244ac_help="$ac_help
245 --enable-gauge use wxGauge class"
246ac_help="$ac_help
247 --enable-grid use wxGrid class"
248ac_help="$ac_help
249 --enable-newgrid use new wxGrid class"
250ac_help="$ac_help
251 --enable-imaglist use wxImageList class"
252ac_help="$ac_help
253 --enable-listbox use wxListBox class"
254ac_help="$ac_help
255 --enable-listctrl use wxListCtrl class"
256ac_help="$ac_help
257 --enable-notebook use wxNotebook class"
258ac_help="$ac_help
259 --enable-radiobox use wxRadioBox class"
260ac_help="$ac_help
261 --enable-radiobtn use wxRadioButton class"
262ac_help="$ac_help
263 --enable-sash use wxSashWindow class"
264ac_help="$ac_help
265 --enable-scrollbar use wxScrollBar class and scrollable windows"
266ac_help="$ac_help
267 --enable-slider use wxSlider class"
268ac_help="$ac_help
269 --enable-spinbtn use wxSpinButton class"
270ac_help="$ac_help
271 --enable-spinctrl use wxSpinCtrl class"
272ac_help="$ac_help
273 --enable-splitter use wxSplitterWindow class"
274ac_help="$ac_help
275 --enable-statbmp use wxStaticBitmap class"
276ac_help="$ac_help
277 --enable-statbox use wxStaticBox class"
278ac_help="$ac_help
279 --enable-statline use wxStaticLine class"
280ac_help="$ac_help
281 --enable-stattext use wxStaticText class"
282ac_help="$ac_help
283 --enable-statusbar use wxStatusBar class"
284ac_help="$ac_help
285 --enable-tabdialog use wxTabControl class"
286ac_help="$ac_help
287 --enable-textctrl use wxTextCtrl class"
288ac_help="$ac_help
289 --enable-togglebtn use wxToggleButton class"
290ac_help="$ac_help
291 --enable-toolbar use wxToolBar class"
292ac_help="$ac_help
293 --enable-tbarnative use native wxToolBar class"
294ac_help="$ac_help
295 --enable-tbarsmpl use wxToolBarSimple class"
296ac_help="$ac_help
297 --enable-treectrl use wxTreeCtrl class"
298ac_help="$ac_help
299 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
300ac_help="$ac_help
301 --enable-choicedlg use wxChoiceDialog"
302ac_help="$ac_help
303 --enable-coldlg use wxColourDialog"
304ac_help="$ac_help
305 --enable-filedlg use wxFileDialog"
306ac_help="$ac_help
307 --enable-fontdlg use wxFontDialog"
308ac_help="$ac_help
309 --enable-dirdlg use wxDirDialog"
310ac_help="$ac_help
311 --enable-msgdlg use wxMessageDialog"
312ac_help="$ac_help
313 --enable-numberdlg use wxNumberEntryDialog"
314ac_help="$ac_help
315 --enable-textdlg use wxTextDialog"
316ac_help="$ac_help
317 --enable-tipdlg use startup tips"
318ac_help="$ac_help
319 --enable-progressdlg use wxProgressDialog"
320ac_help="$ac_help
321 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
322ac_help="$ac_help
323 --enable-miniframe use wxMiniFrame class"
324ac_help="$ac_help
325 --enable-html use wxHTML sub-library"
326ac_help="$ac_help
327 --enable-tooltips use wxToolTip class"
328ac_help="$ac_help
329 --enable-splines use spline drawing code"
330ac_help="$ac_help
331 --enable-validators use wxValidator and derived classes"
332ac_help="$ac_help
333 --enable-busyinfo use wxBusyInfo"
334ac_help="$ac_help
335 --enable-joystick compile in joystick support (Linux only)"
336ac_help="$ac_help
337 --enable-metafiles use wxMetaFile (Windows only)"
338ac_help="$ac_help
339 --enable-image use wxImage class"
340ac_help="$ac_help
341 --enable-gif use gif images (GIF file format)"
342ac_help="$ac_help
343 --enable-pcx use pcx images (PCX file format)"
344ac_help="$ac_help
345 --enable-pnm use pnm images (PNM file format)"
346ac_help="$ac_help
347 --enable-xpm use xpm images (XPM file format)"
348ac_help="$ac_help
349 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
350ac_help="$ac_help
351 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
352ac_help="$ac_help
353 --disable-gtktest Do not try to compile and run a test GTK program"
354ac_help="$ac_help
355 --with-x use the X Window System"
356
357# Initialize some variables set by options.
358# The variables have the same names as the options, with
359# dashes changed to underlines.
360build=NONE
361cache_file=./config.cache
362exec_prefix=NONE
363host=NONE
364no_create=
365nonopt=NONE
366no_recursion=
367prefix=NONE
368program_prefix=NONE
369program_suffix=NONE
370program_transform_name=s,x,x,
371silent=
372site=
373srcdir=
374target=NONE
375verbose=
376x_includes=NONE
377x_libraries=NONE
378bindir='${exec_prefix}/bin'
379sbindir='${exec_prefix}/sbin'
380libexecdir='${exec_prefix}/libexec'
381datadir='${prefix}/share'
382sysconfdir='${prefix}/etc'
383sharedstatedir='${prefix}/com'
384localstatedir='${prefix}/var'
385libdir='${exec_prefix}/lib'
386includedir='${prefix}/include'
387oldincludedir='/usr/include'
388infodir='${prefix}/info'
389mandir='${prefix}/man'
390
391# Initialize some other variables.
392subdirs=
393MFLAGS= MAKEFLAGS=
394SHELL=${CONFIG_SHELL-/bin/sh}
395# Maximum number of lines to put in a shell here document.
396ac_max_here_lines=12
397
398ac_prev=
399for ac_option
400do
401
402 # If the previous option needs an argument, assign it.
403 if test -n "$ac_prev"; then
404 eval "$ac_prev=\$ac_option"
405 ac_prev=
406 continue
407 fi
408
409 case "$ac_option" in
410 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
411 *) ac_optarg= ;;
412 esac
413
414 # Accept the important Cygnus configure options, so we can diagnose typos.
415
416 case "$ac_option" in
417
418 -bindir | --bindir | --bindi | --bind | --bin | --bi)
419 ac_prev=bindir ;;
420 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
421 bindir="$ac_optarg" ;;
422
423 -build | --build | --buil | --bui | --bu)
424 ac_prev=build ;;
425 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
426 build="$ac_optarg" ;;
427
428 -cache-file | --cache-file | --cache-fil | --cache-fi \
429 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
430 ac_prev=cache_file ;;
431 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
432 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
433 cache_file="$ac_optarg" ;;
434
435 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
436 ac_prev=datadir ;;
437 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
438 | --da=*)
439 datadir="$ac_optarg" ;;
440
441 -disable-* | --disable-*)
442 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
443 # Reject names that are not valid shell variable names.
444 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
445 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
446 fi
447 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
448 eval "enable_${ac_feature}=no" ;;
449
450 -enable-* | --enable-*)
451 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
452 # Reject names that are not valid shell variable names.
453 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
454 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
455 fi
456 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
457 case "$ac_option" in
458 *=*) ;;
459 *) ac_optarg=yes ;;
460 esac
461 eval "enable_${ac_feature}='$ac_optarg'" ;;
462
463 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
464 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
465 | --exec | --exe | --ex)
466 ac_prev=exec_prefix ;;
467 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
468 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
469 | --exec=* | --exe=* | --ex=*)
470 exec_prefix="$ac_optarg" ;;
471
472 -gas | --gas | --ga | --g)
473 # Obsolete; use --with-gas.
474 with_gas=yes ;;
475
476 -help | --help | --hel | --he)
477 # Omit some internal or obsolete options to make the list less imposing.
478 # This message is too long to be a string in the A/UX 3.1 sh.
479 cat << EOF
480Usage: configure [options] [host]
481Options: [defaults in brackets after descriptions]
482Configuration:
483 --cache-file=FILE cache test results in FILE
484 --help print this message
485 --no-create do not create output files
486 --quiet, --silent do not print \`checking...' messages
487 --version print the version of autoconf that created configure
488Directory and file names:
489 --prefix=PREFIX install architecture-independent files in PREFIX
490 [$ac_default_prefix]
491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
492 [same as prefix]
493 --bindir=DIR user executables in DIR [EPREFIX/bin]
494 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
495 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
496 --datadir=DIR read-only architecture-independent data in DIR
497 [PREFIX/share]
498 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
499 --sharedstatedir=DIR modifiable architecture-independent data in DIR
500 [PREFIX/com]
501 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
502 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
503 --includedir=DIR C header files in DIR [PREFIX/include]
504 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
505 --infodir=DIR info documentation in DIR [PREFIX/info]
506 --mandir=DIR man documentation in DIR [PREFIX/man]
507 --srcdir=DIR find the sources in DIR [configure dir or ..]
508 --program-prefix=PREFIX prepend PREFIX to installed program names
509 --program-suffix=SUFFIX append SUFFIX to installed program names
510 --program-transform-name=PROGRAM
511 run sed PROGRAM on installed program names
512EOF
513 cat << EOF
514Host type:
515 --build=BUILD configure for building on BUILD [BUILD=HOST]
516 --host=HOST configure for HOST [guessed]
517 --target=TARGET configure for TARGET [TARGET=HOST]
518Features and packages:
519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
523 --x-includes=DIR X include files are in DIR
524 --x-libraries=DIR X library files are in DIR
525EOF
526 if test -n "$ac_help"; then
527 echo "--enable and --with options recognized:$ac_help"
528 fi
529 exit 0 ;;
530
531 -host | --host | --hos | --ho)
532 ac_prev=host ;;
533 -host=* | --host=* | --hos=* | --ho=*)
534 host="$ac_optarg" ;;
535
536 -includedir | --includedir | --includedi | --included | --include \
537 | --includ | --inclu | --incl | --inc)
538 ac_prev=includedir ;;
539 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
540 | --includ=* | --inclu=* | --incl=* | --inc=*)
541 includedir="$ac_optarg" ;;
542
543 -infodir | --infodir | --infodi | --infod | --info | --inf)
544 ac_prev=infodir ;;
545 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
546 infodir="$ac_optarg" ;;
547
548 -libdir | --libdir | --libdi | --libd)
549 ac_prev=libdir ;;
550 -libdir=* | --libdir=* | --libdi=* | --libd=*)
551 libdir="$ac_optarg" ;;
552
553 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
554 | --libexe | --libex | --libe)
555 ac_prev=libexecdir ;;
556 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
557 | --libexe=* | --libex=* | --libe=*)
558 libexecdir="$ac_optarg" ;;
559
560 -localstatedir | --localstatedir | --localstatedi | --localstated \
561 | --localstate | --localstat | --localsta | --localst \
562 | --locals | --local | --loca | --loc | --lo)
563 ac_prev=localstatedir ;;
564 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
565 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
566 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
567 localstatedir="$ac_optarg" ;;
568
569 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
570 ac_prev=mandir ;;
571 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
572 mandir="$ac_optarg" ;;
573
574 -nfp | --nfp | --nf)
575 # Obsolete; use --without-fp.
576 with_fp=no ;;
577
578 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
579 | --no-cr | --no-c)
580 no_create=yes ;;
581
582 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
583 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
584 no_recursion=yes ;;
585
586 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
587 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
588 | --oldin | --oldi | --old | --ol | --o)
589 ac_prev=oldincludedir ;;
590 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
591 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
592 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
593 oldincludedir="$ac_optarg" ;;
594
595 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
596 ac_prev=prefix ;;
597 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
598 prefix="$ac_optarg" ;;
599
600 -program-prefix | --program-prefix | --program-prefi | --program-pref \
601 | --program-pre | --program-pr | --program-p)
602 ac_prev=program_prefix ;;
603 -program-prefix=* | --program-prefix=* | --program-prefi=* \
604 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
605 program_prefix="$ac_optarg" ;;
606
607 -program-suffix | --program-suffix | --program-suffi | --program-suff \
608 | --program-suf | --program-su | --program-s)
609 ac_prev=program_suffix ;;
610 -program-suffix=* | --program-suffix=* | --program-suffi=* \
611 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
612 program_suffix="$ac_optarg" ;;
613
614 -program-transform-name | --program-transform-name \
615 | --program-transform-nam | --program-transform-na \
616 | --program-transform-n | --program-transform- \
617 | --program-transform | --program-transfor \
618 | --program-transfo | --program-transf \
619 | --program-trans | --program-tran \
620 | --progr-tra | --program-tr | --program-t)
621 ac_prev=program_transform_name ;;
622 -program-transform-name=* | --program-transform-name=* \
623 | --program-transform-nam=* | --program-transform-na=* \
624 | --program-transform-n=* | --program-transform-=* \
625 | --program-transform=* | --program-transfor=* \
626 | --program-transfo=* | --program-transf=* \
627 | --program-trans=* | --program-tran=* \
628 | --progr-tra=* | --program-tr=* | --program-t=*)
629 program_transform_name="$ac_optarg" ;;
630
631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
632 | -silent | --silent | --silen | --sile | --sil)
633 silent=yes ;;
634
635 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
636 ac_prev=sbindir ;;
637 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
638 | --sbi=* | --sb=*)
639 sbindir="$ac_optarg" ;;
640
641 -sharedstatedir | --sharedstatedir | --sharedstatedi \
642 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
643 | --sharedst | --shareds | --shared | --share | --shar \
644 | --sha | --sh)
645 ac_prev=sharedstatedir ;;
646 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
647 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
648 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
649 | --sha=* | --sh=*)
650 sharedstatedir="$ac_optarg" ;;
651
652 -site | --site | --sit)
653 ac_prev=site ;;
654 -site=* | --site=* | --sit=*)
655 site="$ac_optarg" ;;
656
657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
658 ac_prev=srcdir ;;
659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
660 srcdir="$ac_optarg" ;;
661
662 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
663 | --syscon | --sysco | --sysc | --sys | --sy)
664 ac_prev=sysconfdir ;;
665 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
666 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
667 sysconfdir="$ac_optarg" ;;
668
669 -target | --target | --targe | --targ | --tar | --ta | --t)
670 ac_prev=target ;;
671 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
672 target="$ac_optarg" ;;
673
674 -v | -verbose | --verbose | --verbos | --verbo | --verb)
675 verbose=yes ;;
676
677 -version | --version | --versio | --versi | --vers)
678 echo "configure generated by autoconf version 2.13"
679 exit 0 ;;
680
681 -with-* | --with-*)
682 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
683 # Reject names that are not valid shell variable names.
684 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
685 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
686 fi
687 ac_package=`echo $ac_package| sed 's/-/_/g'`
688 case "$ac_option" in
689 *=*) ;;
690 *) ac_optarg=yes ;;
691 esac
692 eval "with_${ac_package}='$ac_optarg'" ;;
693
694 -without-* | --without-*)
695 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
696 # Reject names that are not valid shell variable names.
697 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
698 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
699 fi
700 ac_package=`echo $ac_package| sed 's/-/_/g'`
701 eval "with_${ac_package}=no" ;;
702
703 --x)
704 # Obsolete; use --with-x.
705 with_x=yes ;;
706
707 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
708 | --x-incl | --x-inc | --x-in | --x-i)
709 ac_prev=x_includes ;;
710 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
711 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
712 x_includes="$ac_optarg" ;;
713
714 -x-libraries | --x-libraries | --x-librarie | --x-librari \
715 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
716 ac_prev=x_libraries ;;
717 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
718 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
719 x_libraries="$ac_optarg" ;;
720
721 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
722 ;;
723
724 *)
725 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
726 echo "configure: warning: $ac_option: invalid host type" 1>&2
727 fi
728 if test "x$nonopt" != xNONE; then
729 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
730 fi
731 nonopt="$ac_option"
732 ;;
733
734 esac
735done
736
737if test -n "$ac_prev"; then
738 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
739fi
740
741trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
742
743# File descriptor usage:
744# 0 standard input
745# 1 file creation
746# 2 errors and warnings
747# 3 some systems may open it to /dev/tty
748# 4 used on the Kubota Titan
749# 6 checking for... messages and results
750# 5 compiler messages saved in config.log
751if test "$silent" = yes; then
752 exec 6>/dev/null
753else
754 exec 6>&1
755fi
756exec 5>./config.log
757
758echo "\
759This file contains any messages produced by compilers while
760running configure, to aid debugging if configure makes a mistake.
761" 1>&5
762
763# Strip out --no-create and --no-recursion so they do not pile up.
764# Also quote any args containing shell metacharacters.
765ac_configure_args=
766for ac_arg
767do
768 case "$ac_arg" in
769 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
770 | --no-cr | --no-c) ;;
771 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
772 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
773 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
774 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
775 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
776 esac
777done
778
779# NLS nuisances.
780# Only set these to C if already set. These must not be set unconditionally
781# because not all systems understand e.g. LANG=C (notably SCO).
782# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
783# Non-C LC_CTYPE values break the ctype check.
784if test "${LANG+set}" = set; then LANG=C; export LANG; fi
785if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
786if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
787if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
788
789# confdefs.h avoids OS command line length limits that DEFS can exceed.
790rm -rf conftest* confdefs.h
791# AIX cpp loses on an empty file, so make sure it contains at least a newline.
792echo > confdefs.h
793
794# A filename unique to this package, relative to the directory that
795# configure is in, which we can look for to find out if srcdir is correct.
796ac_unique_file=wx-config.in
797
798# Find the source files, if location was not specified.
799if test -z "$srcdir"; then
800 ac_srcdir_defaulted=yes
801 # Try the directory containing this script, then its parent.
802 ac_prog=$0
803 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
804 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
805 srcdir=$ac_confdir
806 if test ! -r $srcdir/$ac_unique_file; then
807 srcdir=..
808 fi
809else
810 ac_srcdir_defaulted=no
811fi
812if test ! -r $srcdir/$ac_unique_file; then
813 if test "$ac_srcdir_defaulted" = yes; then
814 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
815 else
816 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
817 fi
818fi
819srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
820
821# Prefer explicitly selected file to automatically selected ones.
822if test -z "$CONFIG_SITE"; then
823 if test "x$prefix" != xNONE; then
824 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
825 else
826 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
827 fi
828fi
829for ac_site_file in $CONFIG_SITE; do
830 if test -r "$ac_site_file"; then
831 echo "loading site script $ac_site_file"
832 . "$ac_site_file"
833 fi
834done
835
836if test -r "$cache_file"; then
837 echo "loading cache $cache_file"
838 . $cache_file
839else
840 echo "creating cache $cache_file"
841 > $cache_file
842fi
843
844ac_ext=c
845# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
846ac_cpp='$CPP $CPPFLAGS'
847ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
848ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
849cross_compiling=$ac_cv_prog_cc_cross
850
851ac_exeext=
852ac_objext=o
853if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
854 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
855 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
856 ac_n= ac_c='
857' ac_t=' '
858 else
859 ac_n=-n ac_c= ac_t=
860 fi
861else
862 ac_n= ac_c='\c' ac_t=
863fi
864
865
866
867ac_aux_dir=
868for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
869 if test -f $ac_dir/install-sh; then
870 ac_aux_dir=$ac_dir
871 ac_install_sh="$ac_aux_dir/install-sh -c"
872 break
873 elif test -f $ac_dir/install.sh; then
874 ac_aux_dir=$ac_dir
875 ac_install_sh="$ac_aux_dir/install.sh -c"
876 break
877 fi
878done
879if test -z "$ac_aux_dir"; then
880 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
881fi
882ac_config_guess=$ac_aux_dir/config.guess
883ac_config_sub=$ac_aux_dir/config.sub
884ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
885
886
887# Do some error checking and defaulting for the host and target type.
888# The inputs are:
889# configure --host=HOST --target=TARGET --build=BUILD NONOPT
890#
891# The rules are:
892# 1. You are not allowed to specify --host, --target, and nonopt at the
893# same time.
894# 2. Host defaults to nonopt.
895# 3. If nonopt is not specified, then host defaults to the current host,
896# as determined by config.guess.
897# 4. Target and build default to nonopt.
898# 5. If nonopt is not specified, then target and build default to host.
899
900# The aliases save the names the user supplied, while $host etc.
901# will get canonicalized.
902case $host---$target---$nonopt in
903NONE---*---* | *---NONE---* | *---*---NONE) ;;
904*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
905esac
906
907
908# Make sure we can run config.sub.
909if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
910else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
911fi
912
913echo $ac_n "checking host system type""... $ac_c" 1>&6
914echo "configure:915: checking host system type" >&5
915
916host_alias=$host
917case "$host_alias" in
918NONE)
919 case $nonopt in
920 NONE)
921 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
923 fi ;;
924 *) host_alias=$nonopt ;;
925 esac ;;
926esac
927
928host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932echo "$ac_t""$host" 1>&6
933
934echo $ac_n "checking target system type""... $ac_c" 1>&6
935echo "configure:936: checking target system type" >&5
936
937target_alias=$target
938case "$target_alias" in
939NONE)
940 case $nonopt in
941 NONE) target_alias=$host_alias ;;
942 *) target_alias=$nonopt ;;
943 esac ;;
944esac
945
946target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
947target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950echo "$ac_t""$target" 1>&6
951
952echo $ac_n "checking build system type""... $ac_c" 1>&6
953echo "configure:954: checking build system type" >&5
954
955build_alias=$build
956case "$build_alias" in
957NONE)
958 case $nonopt in
959 NONE) build_alias=$host_alias ;;
960 *) build_alias=$nonopt ;;
961 esac ;;
962esac
963
964build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
965build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
968echo "$ac_t""$build" 1>&6
969
970test "$host_alias" != "$target_alias" &&
971 test "$program_prefix$program_suffix$program_transform_name" = \
972 NONENONEs,x,x, &&
973 program_prefix=${target_alias}-
974
975
976
977WX_MAJOR_VERSION_NUMBER=2
978WX_MINOR_VERSION_NUMBER=3
979WX_RELEASE_NUMBER=1
980
981WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
982WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
983
984WX_CURRENT=0
985WX_REVISION=0
986WX_AGE=0
987
988
989
990USE_UNIX=1
991USE_WIN32=0
992USE_BEOS=0
993USE_MAC=0
994
995USE_LINUX=
996USE_SGI=
997USE_HPUX=
998USE_SYSV=
999USE_SVR4=
1000USE_AIX=
1001USE_SUN=
1002USE_SOLARIS=
1003USE_SUNOS=
1004USE_ALPHA=
1005USE_OSF=
1006USE_BSD=
1007USE_FREEBSD=
1008USE_OPENBSD=
1009USE_NETBSD=
1010USE_VMS=
1011USE_ULTRIX=
1012USE_CYGWIN=
1013USE_MINGW=
1014USE_DATA_GENERAL=
1015
1016NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1017
1018ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1019
1020DEFAULT_wxUSE_GTK=0
1021DEFAULT_wxUSE_MAC=0
1022DEFAULT_wxUSE_MGL=0
1023DEFAULT_wxUSE_MOTIF=0
1024DEFAULT_wxUSE_MSW=0
1025DEFAULT_wxUSE_PM=0
1026DEFAULT_wxUSE_WINE=0
1027
1028DEFAULT_DEFAULT_wxUSE_GTK=0
1029DEFAULT_DEFAULT_wxUSE_MAC=0
1030DEFAULT_DEFAULT_wxUSE_MGL=0
1031DEFAULT_DEFAULT_wxUSE_MOTIF=0
1032DEFAULT_DEFAULT_wxUSE_MSW=0
1033DEFAULT_DEFAULT_wxUSE_PM=0
1034DEFAULT_DEFAULT_wxUSE_WINE=0
1035
1036PROGRAM_EXT=
1037
1038case "${host}" in
1039 *-hp-hpux* )
1040 USE_HPUX=1
1041 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1042 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1043 cat >> confdefs.h <<\EOF
1044#define __HPUX__ 1
1045EOF
1046
1047 ;;
1048 *-*-linux* )
1049 USE_LINUX=1
1050 cat >> confdefs.h <<\EOF
1051#define __LINUX__ 1
1052EOF
1053
1054 TMP=`uname -m`
1055 if test "x$TMP" = "xalpha"; then
1056 USE_ALPHA=1
1057 cat >> confdefs.h <<\EOF
1058#define __ALPHA__ 1
1059EOF
1060
1061 fi
1062 DEFAULT_DEFAULT_wxUSE_GTK=1
1063 ;;
1064 *-*-irix5* | *-*-irix6* )
1065 USE_SGI=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068#define __SGI__ 1
1069EOF
1070
1071 cat >> confdefs.h <<\EOF
1072#define __SVR4__ 1
1073EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-solaris2* )
1078 USE_SUN=1
1079 USE_SOLARIS=1
1080 USE_SVR4=1
1081 cat >> confdefs.h <<\EOF
1082#define __SUN__ 1
1083EOF
1084
1085 cat >> confdefs.h <<\EOF
1086#define __SOLARIS__ 1
1087EOF
1088
1089 cat >> confdefs.h <<\EOF
1090#define __SVR4__ 1
1091EOF
1092
1093 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1094 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1095 ;;
1096 *-*-sunos4* )
1097 USE_SUN=1
1098 USE_SUNOS=1
1099 USE_BSD=1
1100 cat >> confdefs.h <<\EOF
1101#define __SUN__ 1
1102EOF
1103
1104 cat >> confdefs.h <<\EOF
1105#define __SUNOS__ 1
1106EOF
1107
1108 cat >> confdefs.h <<\EOF
1109#define __BSD__ 1
1110EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1113 ;;
1114 *-*-freebsd*)
1115 USE_BSD=1
1116 USE_FREEBSD=1
1117 cat >> confdefs.h <<\EOF
1118#define __FREEBSD__ 1
1119EOF
1120
1121 cat >> confdefs.h <<\EOF
1122#define __BSD__ 1
1123EOF
1124
1125 DEFAULT_DEFAULT_wxUSE_GTK=1
1126 ;;
1127 *-*-openbsd*)
1128 USE_BSD=1
1129 USE_OPENBSD=1
1130 cat >> confdefs.h <<\EOF
1131#define __FREEBSD__ 1
1132EOF
1133
1134 cat >> confdefs.h <<\EOF
1135#define __OPENBSD__ 1
1136EOF
1137
1138 DEFAULT_DEFAULT_wxUSE_GTK=1
1139 ;;
1140 *-*-netbsd*)
1141 USE_BSD=1
1142 USE_NETBSD=1
1143 cat >> confdefs.h <<\EOF
1144#define __FREEBSD__ 1
1145EOF
1146
1147 cat >> confdefs.h <<\EOF
1148#define __NETBSD__ 1
1149EOF
1150
1151 DEFAULT_DEFAULT_wxUSE_GTK=1
1152 ;;
1153 *-*-osf* )
1154 USE_ALPHA=1
1155 USE_OSF=1
1156 cat >> confdefs.h <<\EOF
1157#define __ALPHA__ 1
1158EOF
1159
1160 cat >> confdefs.h <<\EOF
1161#define __OSF__ 1
1162EOF
1163
1164 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1165 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1166 ;;
1167 *-*-dgux5* )
1168 USE_ALPHA=1
1169 USE_SVR4=1
1170 cat >> confdefs.h <<\EOF
1171#define __ALPHA__ 1
1172EOF
1173
1174 cat >> confdefs.h <<\EOF
1175#define __SVR4__ 1
1176EOF
1177
1178 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1179 ;;
1180 *-*-sysv5* )
1181 USE_SYSV=1
1182 USE_SVR4=1
1183 cat >> confdefs.h <<\EOF
1184#define __SYSV__ 1
1185EOF
1186
1187 cat >> confdefs.h <<\EOF
1188#define __SVR4__ 1
1189EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-aix* )
1194 USE_AIX=1
1195 USE_SYSV=1
1196 USE_SVR4=1
1197 cat >> confdefs.h <<\EOF
1198#define __AIX__ 1
1199EOF
1200
1201 cat >> confdefs.h <<\EOF
1202#define __SYSV__ 1
1203EOF
1204
1205 cat >> confdefs.h <<\EOF
1206#define __SVR4__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 ;;
1211
1212 *-*-cygwin* | *-*-mingw32* )
1213 USE_UNIX=0
1214 USE_WIN32=1
1215 cat >> confdefs.h <<\EOF
1216#define __WIN32__ 1
1217EOF
1218
1219 cat >> confdefs.h <<\EOF
1220#define __WIN95__ 1
1221EOF
1222
1223 cat >> confdefs.h <<\EOF
1224#define __WINDOWS__ 1
1225EOF
1226
1227 cat >> confdefs.h <<\EOF
1228#define __GNUWIN32__ 1
1229EOF
1230
1231 cat >> confdefs.h <<\EOF
1232#define STRICT 1
1233EOF
1234
1235 cat >> confdefs.h <<\EOF
1236#define WINVER 0x0400
1237EOF
1238
1239 PROGRAM_EXT=".exe"
1240 DEFAULT_DEFAULT_wxUSE_MSW=1
1241 ;;
1242
1243 *-pc-os2_emx )
1244 cat >> confdefs.h <<\EOF
1245#define __EMX__ 1
1246EOF
1247
1248 PROGRAM_EXT=".exe"
1249 DEFAULT_DEFAULT_wxUSE_PM=1
1250 ;;
1251
1252 *-*-darwin* )
1253 USE_BSD=1
1254 USE_MAC=1
1255 cat >> confdefs.h <<\EOF
1256#define __MAC__ 1
1257EOF
1258
1259 cat >> confdefs.h <<\EOF
1260#define __BSD__ 1
1261EOF
1262
1263 cat >> confdefs.h <<\EOF
1264#define __UNIX__ 1
1265EOF
1266
1267 DEFAULT_DEFAULT_wxUSE_MAC=1
1268 ;;
1269
1270 *-*-beos* )
1271 USE_BEOS=1
1272 cat >> confdefs.h <<\EOF
1273#define __BEOS__ 1
1274EOF
1275
1276 ;;
1277
1278 *)
1279 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1280esac
1281
1282if test "$USE_UNIX" = 1 ; then
1283 wxUSE_UNIX=yes
1284 cat >> confdefs.h <<\EOF
1285#define __UNIX__ 1
1286EOF
1287
1288
1289 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1290 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1291fi
1292
1293if test "$USE_BEOS" = 1; then
1294 SRC_SUBDIRS="$SRC_SUBDIRS be"
1295 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1296fi
1297
1298if test "$USE_LINUX" = 1; then
1299 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1300echo "configure:1301: checking for gettext in -lc" >&5
1301ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1304else
1305 ac_save_LIBS="$LIBS"
1306LIBS="-lc $LIBS"
1307cat > conftest.$ac_ext <<EOF
1308#line 1309 "configure"
1309#include "confdefs.h"
1310/* Override any gcc2 internal prototype to avoid an error. */
1311/* We use char because int might match the return type of a gcc2
1312 builtin and then its argument prototype would still apply. */
1313char gettext();
1314
1315int main() {
1316gettext()
1317; return 0; }
1318EOF
1319if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1320 rm -rf conftest*
1321 eval "ac_cv_lib_$ac_lib_var=yes"
1322else
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1325 rm -rf conftest*
1326 eval "ac_cv_lib_$ac_lib_var=no"
1327fi
1328rm -f conftest*
1329LIBS="$ac_save_LIBS"
1330
1331fi
1332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1333 echo "$ac_t""yes" 1>&6
1334 cat >> confdefs.h <<\EOF
1335#define wxHAVE_GLIBC2 1
1336EOF
1337
1338else
1339 echo "$ac_t""no" 1>&6
1340fi
1341
1342fi
1343
1344
1345
1346
1347 wx_arg_cache_file="configarg.cache"
1348 echo "loading argument cache $wx_arg_cache_file"
1349 rm -f ${wx_arg_cache_file}.tmp
1350 touch ${wx_arg_cache_file}.tmp
1351 touch ${wx_arg_cache_file}
1352
1353
1354DEBUG_CONFIGURE=0
1355if test $DEBUG_CONFIGURE = 1; then
1356 DEFAULT_wxUSE_UNIVERSAL=no
1357
1358 DEFAULT_wxUSE_THREADS=yes
1359
1360 DEFAULT_wxUSE_SHARED=yes
1361 DEFAULT_wxUSE_BURNT_NAME=no
1362 DEFAULT_wxUSE_OPTIMISE=no
1363 DEFAULT_wxUSE_PROFILE=no
1364 DEFAULT_wxUSE_NO_DEPS=no
1365 DEFAULT_wxUSE_NO_RTTI=no
1366 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1367 DEFAULT_wxUSE_PERMISSIVE=no
1368 DEFAULT_wxUSE_DEBUG_FLAG=yes
1369 DEFAULT_wxUSE_DEBUG_INFO=yes
1370 DEFAULT_wxUSE_DEBUG_GDB=yes
1371 DEFAULT_wxUSE_MEM_TRACING=no
1372 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1373 DEFAULT_wxUSE_DMALLOC=no
1374 DEFAULT_wxUSE_APPLE_IEEE=no
1375
1376 DEFAULT_wxUSE_LOG=yes
1377 DEFAULT_wxUSE_LOGWINDOW=no
1378 DEFAULT_wxUSE_LOGGUI=no
1379
1380 DEFAULT_wxUSE_GUI=yes
1381 DEFAULT_wxUSE_CONTROLS=no
1382
1383 DEFAULT_wxUSE_ZLIB=no
1384 DEFAULT_wxUSE_LIBPNG=no
1385 DEFAULT_wxUSE_LIBJPEG=no
1386 DEFAULT_wxUSE_LIBTIFF=no
1387 DEFAULT_wxUSE_ODBC=no
1388 DEFAULT_wxUSE_FREETYPE=no
1389 DEFAULT_wxUSE_OPENGL=no
1390
1391 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1392 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1393 DEFAULT_wxUSE_STD_IOSTREAM=no
1394 DEFAULT_wxUSE_CMDLINE_PARSER=no
1395 DEFAULT_wxUSE_DATETIME=no
1396 DEFAULT_wxUSE_TIMEDATE=no
1397 DEFAULT_wxUSE_TIMER=no
1398 DEFAULT_wxUSE_STOPWATCH=no
1399 DEFAULT_wxUSE_FILE=no
1400 DEFAULT_wxUSE_FFILE=no
1401 DEFAULT_wxUSE_TEXTFILE=no
1402 DEFAULT_wxUSE_WAVE=no
1403 DEFAULT_wxUSE_INTL=no
1404 DEFAULT_wxUSE_CONFIG=no
1405 DEFAULT_wxUSE_FONTMAP=no
1406 DEFAULT_wxUSE_STREAMS=no
1407 DEFAULT_wxUSE_SOCKETS=no
1408 DEFAULT_wxUSE_DIALUP_MANAGER=no
1409 DEFAULT_wxUSE_SERIAL=no
1410 DEFAULT_wxUSE_JOYSTICK=no
1411 DEFAULT_wxUSE_DYNLIB_CLASS=no
1412 DEFAULT_wxUSE_LONGLONG=no
1413 DEFAULT_wxUSE_GEOMETRY=no
1414
1415 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1416 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1417 DEFAULT_wxUSE_POSTSCRIPT=no
1418
1419 DEFAULT_wxUSE_X_RESOURCES=no
1420 DEFAULT_wxUSE_CLIPBOARD=no
1421 DEFAULT_wxUSE_TOOLTIPS=no
1422 DEFAULT_wxUSE_DRAG_AND_DROP=no
1423 DEFAULT_wxUSE_SPLINES=no
1424
1425 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1426 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1427 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1428
1429 DEFAULT_wxUSE_PROLOGIO=no
1430 DEFAULT_wxUSE_RESOURCES=no
1431 DEFAULT_wxUSE_CONSTRAINTS=no
1432 DEFAULT_wxUSE_IPC=no
1433 DEFAULT_wxUSE_HELP=no
1434 DEFAULT_wxUSE_WXTREE=no
1435 DEFAULT_wxUSE_METAFILE=no
1436 DEFAULT_wxUSE_MIMETYPE=no
1437
1438 DEFAULT_wxUSE_COMMONDLGS=no
1439 DEFAULT_wxUSE_CHOICEDLG=no
1440 DEFAULT_wxUSE_COLOURDLG=no
1441 DEFAULT_wxUSE_DIRDLG=no
1442 DEFAULT_wxUSE_FILEDLG=no
1443 DEFAULT_wxUSE_FONTDLG=no
1444 DEFAULT_wxUSE_MSGDLG=no
1445 DEFAULT_wxUSE_NUMBERDLG=no
1446 DEFAULT_wxUSE_TEXTDLG=no
1447 DEFAULT_wxUSE_STARTUP_TIPS=no
1448 DEFAULT_wxUSE_PROGRESSDLG=no
1449 DEFAULT_wxUSE_MENUS=no
1450 DEFAULT_wxUSE_MINIFRAME=no
1451 DEFAULT_wxUSE_HTML=no
1452 DEFAULT_wxUSE_FILESYSTEM=no
1453 DEFAULT_wxUSE_FS_INET=no
1454 DEFAULT_wxUSE_FS_ZIP=no
1455 DEFAULT_wxUSE_BUSYINFO=no
1456 DEFAULT_wxUSE_ZIPSTREAM=no
1457 DEFAULT_wxUSE_VALIDATORS=no
1458
1459 DEFAULT_wxUSE_ACCEL=no
1460 DEFAULT_wxUSE_BUTTON=no
1461 DEFAULT_wxUSE_BMPBUTTON=no
1462 DEFAULT_wxUSE_CALCTRL=no
1463 DEFAULT_wxUSE_CARET=no
1464 DEFAULT_wxUSE_CHECKBOX=no
1465 DEFAULT_wxUSE_CHECKLST=no
1466 DEFAULT_wxUSE_CHOICE=no
1467 DEFAULT_wxUSE_COMBOBOX=no
1468 DEFAULT_wxUSE_GAUGE=no
1469 DEFAULT_wxUSE_GRID=no
1470 DEFAULT_wxUSE_NEW_GRID=no
1471 DEFAULT_wxUSE_IMAGLIST=no
1472 DEFAULT_wxUSE_LISTBOX=no
1473 DEFAULT_wxUSE_LISTCTRL=no
1474 DEFAULT_wxUSE_NOTEBOOK=no
1475 DEFAULT_wxUSE_RADIOBOX=no
1476 DEFAULT_wxUSE_RADIOBTN=no
1477 DEFAULT_wxUSE_SASH=no
1478 DEFAULT_wxUSE_SCROLLBAR=no
1479 DEFAULT_wxUSE_SLIDER=no
1480 DEFAULT_wxUSE_SPINBTN=no
1481 DEFAULT_wxUSE_SPINCTRL=no
1482 DEFAULT_wxUSE_SPLITTER=no
1483 DEFAULT_wxUSE_STATBMP=no
1484 DEFAULT_wxUSE_STATBOX=no
1485 DEFAULT_wxUSE_STATLINE=no
1486 DEFAULT_wxUSE_STATTEXT=no
1487 DEFAULT_wxUSE_STATUSBAR=yes
1488 DEFAULT_wxUSE_TABDIALOG=no
1489 DEFAULT_wxUSE_TEXTCTRL=no
1490 DEFAULT_wxUSE_TOGGLEBTN=no
1491 DEFAULT_wxUSE_TOOLBAR=no
1492 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1493 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1494 DEFAULT_wxUSE_TREECTRL=no
1495
1496 DEFAULT_wxUSE_UNICODE=no
1497 DEFAULT_wxUSE_WCSRTOMBS=no
1498
1499 DEFAULT_wxUSE_IMAGE=no
1500 DEFAULT_wxUSE_GIF=no
1501 DEFAULT_wxUSE_PCX=no
1502 DEFAULT_wxUSE_PNM=no
1503 DEFAULT_wxUSE_XPM=no
1504else
1505 DEFAULT_wxUSE_UNIVERSAL=no
1506
1507 DEFAULT_wxUSE_THREADS=yes
1508
1509 DEFAULT_wxUSE_SHARED=yes
1510 DEFAULT_wxUSE_BURNT_NAME=no
1511 DEFAULT_wxUSE_OPTIMISE=yes
1512 DEFAULT_wxUSE_PROFILE=no
1513 DEFAULT_wxUSE_NO_DEPS=no
1514 DEFAULT_wxUSE_NO_RTTI=no
1515 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1516 DEFAULT_wxUSE_PERMISSIVE=no
1517 DEFAULT_wxUSE_DEBUG_FLAG=no
1518 DEFAULT_wxUSE_DEBUG_INFO=no
1519 DEFAULT_wxUSE_DEBUG_GDB=no
1520 DEFAULT_wxUSE_MEM_TRACING=no
1521 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1522 DEFAULT_wxUSE_DMALLOC=no
1523 DEFAULT_wxUSE_APPLE_IEEE=yes
1524
1525 DEFAULT_wxUSE_LOG=yes
1526
1527 DEFAULT_wxUSE_GUI=yes
1528
1529 DEFAULT_wxUSE_ZLIB=yes
1530 DEFAULT_wxUSE_LIBPNG=yes
1531 DEFAULT_wxUSE_LIBJPEG=yes
1532 DEFAULT_wxUSE_LIBTIFF=yes
1533 DEFAULT_wxUSE_ODBC=no
1534 DEFAULT_wxUSE_FREETYPE=no
1535 DEFAULT_wxUSE_OPENGL=no
1536
1537 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1538 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1539 DEFAULT_wxUSE_STD_IOSTREAM=no
1540 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1541 DEFAULT_wxUSE_DATETIME=yes
1542 DEFAULT_wxUSE_TIMEDATE=no
1543 DEFAULT_wxUSE_TIMER=yes
1544 DEFAULT_wxUSE_STOPWATCH=yes
1545 DEFAULT_wxUSE_FILE=yes
1546 DEFAULT_wxUSE_FFILE=yes
1547 DEFAULT_wxUSE_TEXTFILE=yes
1548 DEFAULT_wxUSE_WAVE=no
1549 DEFAULT_wxUSE_INTL=yes
1550 DEFAULT_wxUSE_CONFIG=yes
1551 DEFAULT_wxUSE_FONTMAP=yes
1552 DEFAULT_wxUSE_STREAMS=yes
1553 DEFAULT_wxUSE_SOCKETS=yes
1554 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1555 DEFAULT_wxUSE_SERIAL=yes
1556 DEFAULT_wxUSE_JOYSTICK=yes
1557 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1558 DEFAULT_wxUSE_LONGLONG=yes
1559 DEFAULT_wxUSE_GEOMETRY=yes
1560
1561 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1562 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1563 DEFAULT_wxUSE_POSTSCRIPT=yes
1564
1565 DEFAULT_wxUSE_X_RESOURCES=no
1566 DEFAULT_wxUSE_CLIPBOARD=yes
1567 DEFAULT_wxUSE_TOOLTIPS=yes
1568 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1569 DEFAULT_wxUSE_SPLINES=yes
1570
1571 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1572 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1573 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1574
1575 DEFAULT_wxUSE_PROLOGIO=yes
1576 DEFAULT_wxUSE_RESOURCES=yes
1577 DEFAULT_wxUSE_CONSTRAINTS=yes
1578 DEFAULT_wxUSE_IPC=yes
1579 DEFAULT_wxUSE_HELP=yes
1580 DEFAULT_wxUSE_WXTREE=yes
1581 DEFAULT_wxUSE_METAFILE=yes
1582 DEFAULT_wxUSE_MIMETYPE=yes
1583
1584 DEFAULT_wxUSE_COMMONDLGS=yes
1585 DEFAULT_wxUSE_CHOICEDLG=yes
1586 DEFAULT_wxUSE_COLOURDLG=yes
1587 DEFAULT_wxUSE_DIRDLG=yes
1588 DEFAULT_wxUSE_FILEDLG=yes
1589 DEFAULT_wxUSE_FONTDLG=yes
1590 DEFAULT_wxUSE_MSGDLG=yes
1591 DEFAULT_wxUSE_NUMBERDLG=yes
1592 DEFAULT_wxUSE_TEXTDLG=yes
1593 DEFAULT_wxUSE_STARTUP_TIPS=yes
1594 DEFAULT_wxUSE_PROGRESSDLG=yes
1595 DEFAULT_wxUSE_MENUS=yes
1596 DEFAULT_wxUSE_MINIFRAME=yes
1597 DEFAULT_wxUSE_HTML=yes
1598 DEFAULT_wxUSE_FILESYSTEM=yes
1599 DEFAULT_wxUSE_FS_INET=yes
1600 DEFAULT_wxUSE_FS_ZIP=yes
1601 DEFAULT_wxUSE_BUSYINFO=yes
1602 DEFAULT_wxUSE_ZIPSTREAM=yes
1603 DEFAULT_wxUSE_VALIDATORS=yes
1604
1605 DEFAULT_wxUSE_ACCEL=yes
1606 DEFAULT_wxUSE_BUTTON=yes
1607 DEFAULT_wxUSE_BMPBUTTON=yes
1608 DEFAULT_wxUSE_CALCTRL=yes
1609 DEFAULT_wxUSE_CARET=yes
1610 DEFAULT_wxUSE_CHECKBOX=yes
1611 DEFAULT_wxUSE_CHECKLST=yes
1612 DEFAULT_wxUSE_CHOICE=yes
1613 DEFAULT_wxUSE_COMBOBOX=yes
1614 DEFAULT_wxUSE_GAUGE=yes
1615 DEFAULT_wxUSE_GRID=yes
1616 DEFAULT_wxUSE_NEW_GRID=yes
1617 DEFAULT_wxUSE_IMAGLIST=yes
1618 DEFAULT_wxUSE_LISTBOX=yes
1619 DEFAULT_wxUSE_LISTCTRL=yes
1620 DEFAULT_wxUSE_NOTEBOOK=yes
1621 DEFAULT_wxUSE_RADIOBOX=yes
1622 DEFAULT_wxUSE_RADIOBTN=yes
1623 DEFAULT_wxUSE_SASH=yes
1624 DEFAULT_wxUSE_SCROLLBAR=yes
1625 DEFAULT_wxUSE_SLIDER=yes
1626 DEFAULT_wxUSE_SPINBTN=yes
1627 DEFAULT_wxUSE_SPINCTRL=yes
1628 DEFAULT_wxUSE_SPLITTER=yes
1629 DEFAULT_wxUSE_STATBMP=yes
1630 DEFAULT_wxUSE_STATBOX=yes
1631 DEFAULT_wxUSE_STATLINE=yes
1632 DEFAULT_wxUSE_STATTEXT=yes
1633 DEFAULT_wxUSE_STATUSBAR=yes
1634 DEFAULT_wxUSE_TABDIALOG=no
1635 DEFAULT_wxUSE_TEXTCTRL=yes
1636 DEFAULT_wxUSE_TOGGLEBTN=yes
1637 DEFAULT_wxUSE_TOOLBAR=yes
1638 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1639 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1640 DEFAULT_wxUSE_TREECTRL=yes
1641
1642 DEFAULT_wxUSE_UNICODE=no
1643 DEFAULT_wxUSE_WCSRTOMBS=no
1644
1645 DEFAULT_wxUSE_IMAGE=yes
1646 DEFAULT_wxUSE_GIF=yes
1647 DEFAULT_wxUSE_PCX=yes
1648 DEFAULT_wxUSE_PNM=yes
1649 DEFAULT_wxUSE_XPM=yes
1650fi
1651
1652
1653
1654for toolkit in `echo $ALL_TOOLKITS`; do
1655 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1656 if test "x$LINE" != x ; then
1657 has_toolkit_in_cache=1
1658 eval "DEFAULT_$LINE"
1659 eval "CACHE_$toolkit=1"
1660 fi
1661done
1662
1663
1664
1665 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1666echo "configure:1667: checking for --enable-gui" >&5
1667 no_cache=0
1668 # Check whether --enable-gui or --disable-gui was given.
1669if test "${enable_gui+set}" = set; then
1670 enableval="$enable_gui"
1671
1672 if test "$enableval" = yes; then
1673 ac_cv_use_gui='wxUSE_GUI=yes'
1674 else
1675 ac_cv_use_gui='wxUSE_GUI=no'
1676 fi
1677
1678else
1679
1680 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1681 if test "x$LINE" != x ; then
1682 eval "DEFAULT_$LINE"
1683 else
1684 no_cache=1
1685 fi
1686
1687 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1688
1689fi
1690
1691
1692 eval "$ac_cv_use_gui"
1693 if test "$no_cache" != 1; then
1694 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1695 fi
1696
1697 if test "$wxUSE_GUI" = yes; then
1698 echo "$ac_t""yes" 1>&6
1699 else
1700 echo "$ac_t""no" 1>&6
1701 fi
1702
1703
1704if test "$wxUSE_GUI" = "yes"; then
1705
1706
1707 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1708echo "configure:1709: checking for --enable-universal" >&5
1709 no_cache=0
1710 # Check whether --enable-universal or --disable-universal was given.
1711if test "${enable_universal+set}" = set; then
1712 enableval="$enable_universal"
1713
1714 if test "$enableval" = yes; then
1715 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1716 else
1717 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1718 fi
1719
1720else
1721
1722 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1723 if test "x$LINE" != x ; then
1724 eval "DEFAULT_$LINE"
1725 else
1726 no_cache=1
1727 fi
1728
1729 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1730
1731fi
1732
1733
1734 eval "$ac_cv_use_universal"
1735 if test "$no_cache" != 1; then
1736 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1737 fi
1738
1739 if test "$wxUSE_UNIVERSAL" = yes; then
1740 echo "$ac_t""yes" 1>&6
1741 else
1742 echo "$ac_t""no" 1>&6
1743 fi
1744
1745# Check whether --with-gtk or --without-gtk was given.
1746if test "${with_gtk+set}" = set; then
1747 withval="$with_gtk"
1748 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1749fi
1750
1751# Check whether --with-motif or --without-motif was given.
1752if test "${with_motif+set}" = set; then
1753 withval="$with_motif"
1754 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1755fi
1756
1757# Check whether --with-mac or --without-mac was given.
1758if test "${with_mac+set}" = set; then
1759 withval="$with_mac"
1760 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1761fi
1762
1763# Check whether --with-wine or --without-wine was given.
1764if test "${with_wine+set}" = set; then
1765 withval="$with_wine"
1766 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1767fi
1768
1769# Check whether --with-cygwin or --without-cygwin was given.
1770if test "${with_cygwin+set}" = set; then
1771 withval="$with_cygwin"
1772 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1773fi
1774
1775# Check whether --with-mingw or --without-mingw was given.
1776if test "${with_mingw+set}" = set; then
1777 withval="$with_mingw"
1778 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1779fi
1780
1781# Check whether --with-pm or --without-pm was given.
1782if test "${with_pm+set}" = set; then
1783 withval="$with_pm"
1784 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1785fi
1786
1787# Check whether --with-mgl or --without-mgl was given.
1788if test "${with_mgl+set}" = set; then
1789 withval="$with_mgl"
1790 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1791fi
1792
1793
1794# Check whether --enable-gtk2 or --disable-gtk2 was given.
1795if test "${enable_gtk2+set}" = set; then
1796 enableval="$enable_gtk2"
1797 wxUSE_GTK2=1
1798else
1799 wxUSE_GTK2=0
1800fi
1801
1802
1803
1804 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1805echo "configure:1806: checking for --with-libpng" >&5
1806 no_cache=0
1807 # Check whether --with-libpng or --without-libpng was given.
1808if test "${with_libpng+set}" = set; then
1809 withval="$with_libpng"
1810
1811 if test "$withval" = yes; then
1812 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1813 elif test "$withval" = no; then
1814 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1815 elif test "$withval" = sys; then
1816 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1817 else
1818 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1819 fi
1820
1821else
1822
1823 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1824 if test "x$LINE" != x ; then
1825 eval "DEFAULT_$LINE"
1826 else
1827 no_cache=1
1828 fi
1829
1830 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1831
1832fi
1833
1834
1835 eval "$ac_cv_use_libpng"
1836 if test "$no_cache" != 1; then
1837 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1838 fi
1839
1840 if test "$wxUSE_LIBPNG" = yes; then
1841 echo "$ac_t""yes" 1>&6
1842 elif test "$wxUSE_LIBPNG" = no; then
1843 echo "$ac_t""no" 1>&6
1844 elif test "$wxUSE_LIBPNG" = sys; then
1845 echo "$ac_t""system version" 1>&6
1846 else
1847 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1848 fi
1849
1850
1851 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1852echo "configure:1853: checking for --with-libjpeg" >&5
1853 no_cache=0
1854 # Check whether --with-libjpeg or --without-libjpeg was given.
1855if test "${with_libjpeg+set}" = set; then
1856 withval="$with_libjpeg"
1857
1858 if test "$withval" = yes; then
1859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1860 elif test "$withval" = no; then
1861 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1862 elif test "$withval" = sys; then
1863 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1864 else
1865 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1866 fi
1867
1868else
1869
1870 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1871 if test "x$LINE" != x ; then
1872 eval "DEFAULT_$LINE"
1873 else
1874 no_cache=1
1875 fi
1876
1877 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1878
1879fi
1880
1881
1882 eval "$ac_cv_use_libjpeg"
1883 if test "$no_cache" != 1; then
1884 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1885 fi
1886
1887 if test "$wxUSE_LIBJPEG" = yes; then
1888 echo "$ac_t""yes" 1>&6
1889 elif test "$wxUSE_LIBJPEG" = no; then
1890 echo "$ac_t""no" 1>&6
1891 elif test "$wxUSE_LIBJPEG" = sys; then
1892 echo "$ac_t""system version" 1>&6
1893 else
1894 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1895 fi
1896
1897
1898 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1899echo "configure:1900: checking for --with-libtiff" >&5
1900 no_cache=0
1901 # Check whether --with-libtiff or --without-libtiff was given.
1902if test "${with_libtiff+set}" = set; then
1903 withval="$with_libtiff"
1904
1905 if test "$withval" = yes; then
1906 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1907 elif test "$withval" = no; then
1908 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1909 elif test "$withval" = sys; then
1910 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1911 else
1912 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1913 fi
1914
1915else
1916
1917 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1918 if test "x$LINE" != x ; then
1919 eval "DEFAULT_$LINE"
1920 else
1921 no_cache=1
1922 fi
1923
1924 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1925
1926fi
1927
1928
1929 eval "$ac_cv_use_libtiff"
1930 if test "$no_cache" != 1; then
1931 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1932 fi
1933
1934 if test "$wxUSE_LIBTIFF" = yes; then
1935 echo "$ac_t""yes" 1>&6
1936 elif test "$wxUSE_LIBTIFF" = no; then
1937 echo "$ac_t""no" 1>&6
1938 elif test "$wxUSE_LIBTIFF" = sys; then
1939 echo "$ac_t""system version" 1>&6
1940 else
1941 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1942 fi
1943
1944
1945 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1946echo "configure:1947: checking for --with-freetype" >&5
1947 no_cache=0
1948 # Check whether --with-freetype or --without-freetype was given.
1949if test "${with_freetype+set}" = set; then
1950 withval="$with_freetype"
1951
1952 if test "$withval" = yes; then
1953 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1954 elif test "$withval" = no; then
1955 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1956 elif test "$withval" = sys; then
1957 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1958 else
1959 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1960 fi
1961
1962else
1963
1964 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1965 if test "x$LINE" != x ; then
1966 eval "DEFAULT_$LINE"
1967 else
1968 no_cache=1
1969 fi
1970
1971 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1972
1973fi
1974
1975
1976 eval "$ac_cv_use_freetype"
1977 if test "$no_cache" != 1; then
1978 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1979 fi
1980
1981 if test "$wxUSE_FREETYPE" = yes; then
1982 echo "$ac_t""yes" 1>&6
1983 elif test "$wxUSE_FREETYPE" = no; then
1984 echo "$ac_t""no" 1>&6
1985 elif test "$wxUSE_FREETYPE" = sys; then
1986 echo "$ac_t""system version" 1>&6
1987 else
1988 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1989 fi
1990
1991
1992 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
1993echo "configure:1994: checking for --with-opengl" >&5
1994 no_cache=0
1995 # Check whether --with-opengl or --without-opengl was given.
1996if test "${with_opengl+set}" = set; then
1997 withval="$with_opengl"
1998
1999 if test "$withval" = yes; then
2000 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2001 else
2002 ac_cv_use_opengl='wxUSE_OPENGL=no'
2003 fi
2004
2005else
2006
2007 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2008 if test "x$LINE" != x ; then
2009 eval "DEFAULT_$LINE"
2010 else
2011 no_cache=1
2012 fi
2013
2014 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2015
2016fi
2017
2018
2019 eval "$ac_cv_use_opengl"
2020 if test "$no_cache" != 1; then
2021 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2022 fi
2023
2024 if test "$wxUSE_OPENGL" = yes; then
2025 echo "$ac_t""yes" 1>&6
2026 else
2027 echo "$ac_t""no" 1>&6
2028 fi
2029
2030
2031fi
2032
2033
2034 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2035echo "configure:2036: checking for --with-dmalloc" >&5
2036 no_cache=0
2037 # Check whether --with-dmalloc or --without-dmalloc was given.
2038if test "${with_dmalloc+set}" = set; then
2039 withval="$with_dmalloc"
2040
2041 if test "$withval" = yes; then
2042 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2043 else
2044 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2045 fi
2046
2047else
2048
2049 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2050 if test "x$LINE" != x ; then
2051 eval "DEFAULT_$LINE"
2052 else
2053 no_cache=1
2054 fi
2055
2056 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2057
2058fi
2059
2060
2061 eval "$ac_cv_use_dmalloc"
2062 if test "$no_cache" != 1; then
2063 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2064 fi
2065
2066 if test "$wxUSE_DMALLOC" = yes; then
2067 echo "$ac_t""yes" 1>&6
2068 else
2069 echo "$ac_t""no" 1>&6
2070 fi
2071
2072
2073 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2074echo "configure:2075: checking for --with-zlib" >&5
2075 no_cache=0
2076 # Check whether --with-zlib or --without-zlib was given.
2077if test "${with_zlib+set}" = set; then
2078 withval="$with_zlib"
2079
2080 if test "$withval" = yes; then
2081 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2082 elif test "$withval" = no; then
2083 ac_cv_use_zlib='wxUSE_ZLIB=no'
2084 elif test "$withval" = sys; then
2085 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2086 else
2087 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2088 fi
2089
2090else
2091
2092 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2093 if test "x$LINE" != x ; then
2094 eval "DEFAULT_$LINE"
2095 else
2096 no_cache=1
2097 fi
2098
2099 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2100
2101fi
2102
2103
2104 eval "$ac_cv_use_zlib"
2105 if test "$no_cache" != 1; then
2106 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2107 fi
2108
2109 if test "$wxUSE_ZLIB" = yes; then
2110 echo "$ac_t""yes" 1>&6
2111 elif test "$wxUSE_ZLIB" = no; then
2112 echo "$ac_t""no" 1>&6
2113 elif test "$wxUSE_ZLIB" = sys; then
2114 echo "$ac_t""system version" 1>&6
2115 else
2116 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2117 fi
2118
2119
2120 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2121echo "configure:2122: checking for --with-odbc" >&5
2122 no_cache=0
2123 # Check whether --with-odbc or --without-odbc was given.
2124if test "${with_odbc+set}" = set; then
2125 withval="$with_odbc"
2126
2127 if test "$withval" = yes; then
2128 ac_cv_use_odbc='wxUSE_ODBC=yes'
2129 else
2130 ac_cv_use_odbc='wxUSE_ODBC=no'
2131 fi
2132
2133else
2134
2135 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2136 if test "x$LINE" != x ; then
2137 eval "DEFAULT_$LINE"
2138 else
2139 no_cache=1
2140 fi
2141
2142 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2143
2144fi
2145
2146
2147 eval "$ac_cv_use_odbc"
2148 if test "$no_cache" != 1; then
2149 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2150 fi
2151
2152 if test "$wxUSE_ODBC" = yes; then
2153 echo "$ac_t""yes" 1>&6
2154 else
2155 echo "$ac_t""no" 1>&6
2156 fi
2157
2158
2159
2160
2161
2162 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2163echo "configure:2164: checking for --enable-shared" >&5
2164 no_cache=0
2165 # Check whether --enable-shared or --disable-shared was given.
2166if test "${enable_shared+set}" = set; then
2167 enableval="$enable_shared"
2168
2169 if test "$enableval" = yes; then
2170 ac_cv_use_shared='wxUSE_SHARED=yes'
2171 else
2172 ac_cv_use_shared='wxUSE_SHARED=no'
2173 fi
2174
2175else
2176
2177 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2178 if test "x$LINE" != x ; then
2179 eval "DEFAULT_$LINE"
2180 else
2181 no_cache=1
2182 fi
2183
2184 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2185
2186fi
2187
2188
2189 eval "$ac_cv_use_shared"
2190 if test "$no_cache" != 1; then
2191 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2192 fi
2193
2194 if test "$wxUSE_SHARED" = yes; then
2195 echo "$ac_t""yes" 1>&6
2196 else
2197 echo "$ac_t""no" 1>&6
2198 fi
2199
2200
2201 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2202echo "configure:2203: checking for --enable-burnt_name" >&5
2203 no_cache=0
2204 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2205if test "${enable_burnt_name+set}" = set; then
2206 enableval="$enable_burnt_name"
2207
2208 if test "$enableval" = yes; then
2209 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2210 else
2211 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2212 fi
2213
2214else
2215
2216 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2217 if test "x$LINE" != x ; then
2218 eval "DEFAULT_$LINE"
2219 else
2220 no_cache=1
2221 fi
2222
2223 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2224
2225fi
2226
2227
2228 eval "$ac_cv_use_burnt_name"
2229 if test "$no_cache" != 1; then
2230 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2231 fi
2232
2233 if test "$wxUSE_BURNT_NAME" = yes; then
2234 echo "$ac_t""yes" 1>&6
2235 else
2236 echo "$ac_t""no" 1>&6
2237 fi
2238
2239
2240 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2241echo "configure:2242: checking for --enable-optimise" >&5
2242 no_cache=0
2243 # Check whether --enable-optimise or --disable-optimise was given.
2244if test "${enable_optimise+set}" = set; then
2245 enableval="$enable_optimise"
2246
2247 if test "$enableval" = yes; then
2248 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2249 else
2250 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2251 fi
2252
2253else
2254
2255 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2256 if test "x$LINE" != x ; then
2257 eval "DEFAULT_$LINE"
2258 else
2259 no_cache=1
2260 fi
2261
2262 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2263
2264fi
2265
2266
2267 eval "$ac_cv_use_optimise"
2268 if test "$no_cache" != 1; then
2269 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2270 fi
2271
2272 if test "$wxUSE_OPTIMISE" = yes; then
2273 echo "$ac_t""yes" 1>&6
2274 else
2275 echo "$ac_t""no" 1>&6
2276 fi
2277
2278
2279 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2280echo "configure:2281: checking for --enable-debug" >&5
2281 no_cache=0
2282 # Check whether --enable-debug or --disable-debug was given.
2283if test "${enable_debug+set}" = set; then
2284 enableval="$enable_debug"
2285
2286 if test "$enableval" = yes; then
2287 ac_cv_use_debug='wxUSE_DEBUG=yes'
2288 else
2289 ac_cv_use_debug='wxUSE_DEBUG=no'
2290 fi
2291
2292else
2293
2294 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2295 if test "x$LINE" != x ; then
2296 eval "DEFAULT_$LINE"
2297 else
2298 no_cache=1
2299 fi
2300
2301 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2302
2303fi
2304
2305
2306 eval "$ac_cv_use_debug"
2307 if test "$no_cache" != 1; then
2308 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2309 fi
2310
2311 if test "$wxUSE_DEBUG" = yes; then
2312 echo "$ac_t""yes" 1>&6
2313 else
2314 echo "$ac_t""no" 1>&6
2315 fi
2316
2317
2318if test "$wxUSE_DEBUG" = "yes"; then
2319 DEFAULT_wxUSE_DEBUG_FLAG=yes
2320 DEFAULT_wxUSE_DEBUG_INFO=yes
2321elif test "$wxUSE_DEBUG" = "no"; then
2322 DEFAULT_wxUSE_DEBUG_FLAG=no
2323 DEFAULT_wxUSE_DEBUG_INFO=no
2324fi
2325
2326
2327 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2328echo "configure:2329: checking for --enable-debug_flag" >&5
2329 no_cache=0
2330 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2331if test "${enable_debug_flag+set}" = set; then
2332 enableval="$enable_debug_flag"
2333
2334 if test "$enableval" = yes; then
2335 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2336 else
2337 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2338 fi
2339
2340else
2341
2342 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2343 if test "x$LINE" != x ; then
2344 eval "DEFAULT_$LINE"
2345 else
2346 no_cache=1
2347 fi
2348
2349 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2350
2351fi
2352
2353
2354 eval "$ac_cv_use_debug_flag"
2355 if test "$no_cache" != 1; then
2356 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2357 fi
2358
2359 if test "$wxUSE_DEBUG_FLAG" = yes; then
2360 echo "$ac_t""yes" 1>&6
2361 else
2362 echo "$ac_t""no" 1>&6
2363 fi
2364
2365
2366 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2367echo "configure:2368: checking for --enable-debug_info" >&5
2368 no_cache=0
2369 # Check whether --enable-debug_info or --disable-debug_info was given.
2370if test "${enable_debug_info+set}" = set; then
2371 enableval="$enable_debug_info"
2372
2373 if test "$enableval" = yes; then
2374 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2375 else
2376 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2377 fi
2378
2379else
2380
2381 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2382 if test "x$LINE" != x ; then
2383 eval "DEFAULT_$LINE"
2384 else
2385 no_cache=1
2386 fi
2387
2388 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2389
2390fi
2391
2392
2393 eval "$ac_cv_use_debug_info"
2394 if test "$no_cache" != 1; then
2395 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2396 fi
2397
2398 if test "$wxUSE_DEBUG_INFO" = yes; then
2399 echo "$ac_t""yes" 1>&6
2400 else
2401 echo "$ac_t""no" 1>&6
2402 fi
2403
2404
2405 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2406echo "configure:2407: checking for --enable-debug_gdb" >&5
2407 no_cache=0
2408 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2409if test "${enable_debug_gdb+set}" = set; then
2410 enableval="$enable_debug_gdb"
2411
2412 if test "$enableval" = yes; then
2413 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2414 else
2415 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2416 fi
2417
2418else
2419
2420 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2421 if test "x$LINE" != x ; then
2422 eval "DEFAULT_$LINE"
2423 else
2424 no_cache=1
2425 fi
2426
2427 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2428
2429fi
2430
2431
2432 eval "$ac_cv_use_debug_gdb"
2433 if test "$no_cache" != 1; then
2434 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2435 fi
2436
2437 if test "$wxUSE_DEBUG_GDB" = yes; then
2438 echo "$ac_t""yes" 1>&6
2439 else
2440 echo "$ac_t""no" 1>&6
2441 fi
2442
2443
2444 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2445echo "configure:2446: checking for --enable-debug_cntxt" >&5
2446 no_cache=0
2447 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2448if test "${enable_debug_cntxt+set}" = set; then
2449 enableval="$enable_debug_cntxt"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2453 else
2454 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2455 fi
2456
2457else
2458
2459 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2467
2468fi
2469
2470
2471 eval "$ac_cv_use_debug_cntxt"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
2483 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2484echo "configure:2485: checking for --enable-mem_tracing" >&5
2485 no_cache=0
2486 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2487if test "${enable_mem_tracing+set}" = set; then
2488 enableval="$enable_mem_tracing"
2489
2490 if test "$enableval" = yes; then
2491 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2492 else
2493 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2494 fi
2495
2496else
2497
2498 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2499 if test "x$LINE" != x ; then
2500 eval "DEFAULT_$LINE"
2501 else
2502 no_cache=1
2503 fi
2504
2505 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2506
2507fi
2508
2509
2510 eval "$ac_cv_use_mem_tracing"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_MEM_TRACING" = yes; then
2516 echo "$ac_t""yes" 1>&6
2517 else
2518 echo "$ac_t""no" 1>&6
2519 fi
2520
2521
2522 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2523echo "configure:2524: checking for --enable-profile" >&5
2524 no_cache=0
2525 # Check whether --enable-profile or --disable-profile was given.
2526if test "${enable_profile+set}" = set; then
2527 enableval="$enable_profile"
2528
2529 if test "$enableval" = yes; then
2530 ac_cv_use_profile='wxUSE_PROFILE=yes'
2531 else
2532 ac_cv_use_profile='wxUSE_PROFILE=no'
2533 fi
2534
2535else
2536
2537 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2538 if test "x$LINE" != x ; then
2539 eval "DEFAULT_$LINE"
2540 else
2541 no_cache=1
2542 fi
2543
2544 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2545
2546fi
2547
2548
2549 eval "$ac_cv_use_profile"
2550 if test "$no_cache" != 1; then
2551 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2552 fi
2553
2554 if test "$wxUSE_PROFILE" = yes; then
2555 echo "$ac_t""yes" 1>&6
2556 else
2557 echo "$ac_t""no" 1>&6
2558 fi
2559
2560
2561 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2562echo "configure:2563: checking for --enable-no_rtti" >&5
2563 no_cache=0
2564 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2565if test "${enable_no_rtti+set}" = set; then
2566 enableval="$enable_no_rtti"
2567
2568 if test "$enableval" = yes; then
2569 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2570 else
2571 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2572 fi
2573
2574else
2575
2576 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2577 if test "x$LINE" != x ; then
2578 eval "DEFAULT_$LINE"
2579 else
2580 no_cache=1
2581 fi
2582
2583 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2584
2585fi
2586
2587
2588 eval "$ac_cv_use_no_rtti"
2589 if test "$no_cache" != 1; then
2590 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2591 fi
2592
2593 if test "$wxUSE_NO_RTTI" = yes; then
2594 echo "$ac_t""yes" 1>&6
2595 else
2596 echo "$ac_t""no" 1>&6
2597 fi
2598
2599
2600 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2601echo "configure:2602: checking for --enable-no_exceptions" >&5
2602 no_cache=0
2603 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2604if test "${enable_no_exceptions+set}" = set; then
2605 enableval="$enable_no_exceptions"
2606
2607 if test "$enableval" = yes; then
2608 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2609 else
2610 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2611 fi
2612
2613else
2614
2615 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2616 if test "x$LINE" != x ; then
2617 eval "DEFAULT_$LINE"
2618 else
2619 no_cache=1
2620 fi
2621
2622 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2623
2624fi
2625
2626
2627 eval "$ac_cv_use_no_exceptions"
2628 if test "$no_cache" != 1; then
2629 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2630 fi
2631
2632 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2633 echo "$ac_t""yes" 1>&6
2634 else
2635 echo "$ac_t""no" 1>&6
2636 fi
2637
2638
2639 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2640echo "configure:2641: checking for --enable-permissive" >&5
2641 no_cache=0
2642 # Check whether --enable-permissive or --disable-permissive was given.
2643if test "${enable_permissive+set}" = set; then
2644 enableval="$enable_permissive"
2645
2646 if test "$enableval" = yes; then
2647 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2648 else
2649 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2650 fi
2651
2652else
2653
2654 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2655 if test "x$LINE" != x ; then
2656 eval "DEFAULT_$LINE"
2657 else
2658 no_cache=1
2659 fi
2660
2661 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2662
2663fi
2664
2665
2666 eval "$ac_cv_use_permissive"
2667 if test "$no_cache" != 1; then
2668 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2669 fi
2670
2671 if test "$wxUSE_PERMISSIVE" = yes; then
2672 echo "$ac_t""yes" 1>&6
2673 else
2674 echo "$ac_t""no" 1>&6
2675 fi
2676
2677
2678 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2679echo "configure:2680: checking for --enable-no_deps" >&5
2680 no_cache=0
2681 # Check whether --enable-no_deps or --disable-no_deps was given.
2682if test "${enable_no_deps+set}" = set; then
2683 enableval="$enable_no_deps"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2687 else
2688 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2689 fi
2690
2691else
2692
2693 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2701
2702fi
2703
2704
2705 eval "$ac_cv_use_no_deps"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_NO_DEPS" = yes; then
2711 echo "$ac_t""yes" 1>&6
2712 else
2713 echo "$ac_t""no" 1>&6
2714 fi
2715
2716
2717
2718
2719 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2720echo "configure:2721: checking for --enable-intl" >&5
2721 no_cache=0
2722 # Check whether --enable-intl or --disable-intl was given.
2723if test "${enable_intl+set}" = set; then
2724 enableval="$enable_intl"
2725
2726 if test "$enableval" = yes; then
2727 ac_cv_use_intl='wxUSE_INTL=yes'
2728 else
2729 ac_cv_use_intl='wxUSE_INTL=no'
2730 fi
2731
2732else
2733
2734 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2742
2743fi
2744
2745
2746 eval "$ac_cv_use_intl"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_INTL" = yes; then
2752 echo "$ac_t""yes" 1>&6
2753 else
2754 echo "$ac_t""no" 1>&6
2755 fi
2756
2757
2758 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2759echo "configure:2760: checking for --enable-config" >&5
2760 no_cache=0
2761 # Check whether --enable-config or --disable-config was given.
2762if test "${enable_config+set}" = set; then
2763 enableval="$enable_config"
2764
2765 if test "$enableval" = yes; then
2766 ac_cv_use_config='wxUSE_CONFIG=yes'
2767 else
2768 ac_cv_use_config='wxUSE_CONFIG=no'
2769 fi
2770
2771else
2772
2773 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2781
2782fi
2783
2784
2785 eval "$ac_cv_use_config"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_CONFIG" = yes; then
2791 echo "$ac_t""yes" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2794 fi
2795
2796
2797
2798 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2799echo "configure:2800: checking for --enable-sockets" >&5
2800 no_cache=0
2801 # Check whether --enable-sockets or --disable-sockets was given.
2802if test "${enable_sockets+set}" = set; then
2803 enableval="$enable_sockets"
2804
2805 if test "$enableval" = yes; then
2806 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2807 else
2808 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2809 fi
2810
2811else
2812
2813 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2821
2822fi
2823
2824
2825 eval "$ac_cv_use_sockets"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_SOCKETS" = yes; then
2831 echo "$ac_t""yes" 1>&6
2832 else
2833 echo "$ac_t""no" 1>&6
2834 fi
2835
2836
2837
2838 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
2839echo "configure:2840: checking for --enable-ipc" >&5
2840 no_cache=0
2841 # Check whether --enable-ipc or --disable-ipc was given.
2842if test "${enable_ipc+set}" = set; then
2843 enableval="$enable_ipc"
2844
2845 if test "$enableval" = yes; then
2846 ac_cv_use_ipc='wxUSE_IPC=yes'
2847 else
2848 ac_cv_use_ipc='wxUSE_IPC=no'
2849 fi
2850
2851else
2852
2853 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
2860 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2861
2862fi
2863
2864
2865 eval "$ac_cv_use_ipc"
2866 if test "$no_cache" != 1; then
2867 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2868 fi
2869
2870 if test "$wxUSE_IPC" = yes; then
2871 echo "$ac_t""yes" 1>&6
2872 else
2873 echo "$ac_t""no" 1>&6
2874 fi
2875
2876
2877
2878 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
2879echo "configure:2880: checking for --enable-cmdline" >&5
2880 no_cache=0
2881 # Check whether --enable-cmdline or --disable-cmdline was given.
2882if test "${enable_cmdline+set}" = set; then
2883 enableval="$enable_cmdline"
2884
2885 if test "$enableval" = yes; then
2886 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2887 else
2888 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2889 fi
2890
2891else
2892
2893 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2901
2902fi
2903
2904
2905 eval "$ac_cv_use_cmdline"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_CMDLINE_PARSER" = yes; then
2911 echo "$ac_t""yes" 1>&6
2912 else
2913 echo "$ac_t""no" 1>&6
2914 fi
2915
2916
2917 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
2918echo "configure:2919: checking for --enable-datetime" >&5
2919 no_cache=0
2920 # Check whether --enable-datetime or --disable-datetime was given.
2921if test "${enable_datetime+set}" = set; then
2922 enableval="$enable_datetime"
2923
2924 if test "$enableval" = yes; then
2925 ac_cv_use_datetime='wxUSE_DATETIME=yes'
2926 else
2927 ac_cv_use_datetime='wxUSE_DATETIME=no'
2928 fi
2929
2930else
2931
2932 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
2933 if test "x$LINE" != x ; then
2934 eval "DEFAULT_$LINE"
2935 else
2936 no_cache=1
2937 fi
2938
2939 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
2940
2941fi
2942
2943
2944 eval "$ac_cv_use_datetime"
2945 if test "$no_cache" != 1; then
2946 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
2947 fi
2948
2949 if test "$wxUSE_DATETIME" = yes; then
2950 echo "$ac_t""yes" 1>&6
2951 else
2952 echo "$ac_t""no" 1>&6
2953 fi
2954
2955
2956 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
2957echo "configure:2958: checking for --enable-timedate" >&5
2958 no_cache=0
2959 # Check whether --enable-timedate or --disable-timedate was given.
2960if test "${enable_timedate+set}" = set; then
2961 enableval="$enable_timedate"
2962
2963 if test "$enableval" = yes; then
2964 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2965 else
2966 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2967 fi
2968
2969else
2970
2971 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2972 if test "x$LINE" != x ; then
2973 eval "DEFAULT_$LINE"
2974 else
2975 no_cache=1
2976 fi
2977
2978 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2979
2980fi
2981
2982
2983 eval "$ac_cv_use_timedate"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$wxUSE_TIMEDATE" = yes; then
2989 echo "$ac_t""yes" 1>&6
2990 else
2991 echo "$ac_t""no" 1>&6
2992 fi
2993
2994
2995 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
2996echo "configure:2997: checking for --enable-stopwatch" >&5
2997 no_cache=0
2998 # Check whether --enable-stopwatch or --disable-stopwatch was given.
2999if test "${enable_stopwatch+set}" = set; then
3000 enableval="$enable_stopwatch"
3001
3002 if test "$enableval" = yes; then
3003 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3004 else
3005 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3006 fi
3007
3008else
3009
3010 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3018
3019fi
3020
3021
3022 eval "$ac_cv_use_stopwatch"
3023 if test "$no_cache" != 1; then
3024 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3025 fi
3026
3027 if test "$wxUSE_STOPWATCH" = yes; then
3028 echo "$ac_t""yes" 1>&6
3029 else
3030 echo "$ac_t""no" 1>&6
3031 fi
3032
3033
3034 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3035echo "configure:3036: checking for --enable-dialupman" >&5
3036 no_cache=0
3037 # Check whether --enable-dialupman or --disable-dialupman was given.
3038if test "${enable_dialupman+set}" = set; then
3039 enableval="$enable_dialupman"
3040
3041 if test "$enableval" = yes; then
3042 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3043 else
3044 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3045 fi
3046
3047else
3048
3049 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3050 if test "x$LINE" != x ; then
3051 eval "DEFAULT_$LINE"
3052 else
3053 no_cache=1
3054 fi
3055
3056 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3057
3058fi
3059
3060
3061 eval "$ac_cv_use_dialupman"
3062 if test "$no_cache" != 1; then
3063 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3064 fi
3065
3066 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3067 echo "$ac_t""yes" 1>&6
3068 else
3069 echo "$ac_t""no" 1>&6
3070 fi
3071
3072
3073 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3074echo "configure:3075: checking for --enable-apple_ieee" >&5
3075 no_cache=0
3076 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3077if test "${enable_apple_ieee+set}" = set; then
3078 enableval="$enable_apple_ieee"
3079
3080 if test "$enableval" = yes; then
3081 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3082 else
3083 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3084 fi
3085
3086else
3087
3088 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3089 if test "x$LINE" != x ; then
3090 eval "DEFAULT_$LINE"
3091 else
3092 no_cache=1
3093 fi
3094
3095 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3096
3097fi
3098
3099
3100 eval "$ac_cv_use_apple_ieee"
3101 if test "$no_cache" != 1; then
3102 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3103 fi
3104
3105 if test "$wxUSE_APPLE_IEEE" = yes; then
3106 echo "$ac_t""yes" 1>&6
3107 else
3108 echo "$ac_t""no" 1>&6
3109 fi
3110
3111
3112 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3113echo "configure:3114: checking for --enable-timer" >&5
3114 no_cache=0
3115 # Check whether --enable-timer or --disable-timer was given.
3116if test "${enable_timer+set}" = set; then
3117 enableval="$enable_timer"
3118
3119 if test "$enableval" = yes; then
3120 ac_cv_use_timer='wxUSE_TIMER=yes'
3121 else
3122 ac_cv_use_timer='wxUSE_TIMER=no'
3123 fi
3124
3125else
3126
3127 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3135
3136fi
3137
3138
3139 eval "$ac_cv_use_timer"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_TIMER" = yes; then
3145 echo "$ac_t""yes" 1>&6
3146 else
3147 echo "$ac_t""no" 1>&6
3148 fi
3149
3150
3151 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3152echo "configure:3153: checking for --enable-wave" >&5
3153 no_cache=0
3154 # Check whether --enable-wave or --disable-wave was given.
3155if test "${enable_wave+set}" = set; then
3156 enableval="$enable_wave"
3157
3158 if test "$enableval" = yes; then
3159 ac_cv_use_wave='wxUSE_WAVE=yes'
3160 else
3161 ac_cv_use_wave='wxUSE_WAVE=no'
3162 fi
3163
3164else
3165
3166 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3167 if test "x$LINE" != x ; then
3168 eval "DEFAULT_$LINE"
3169 else
3170 no_cache=1
3171 fi
3172
3173 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3174
3175fi
3176
3177
3178 eval "$ac_cv_use_wave"
3179 if test "$no_cache" != 1; then
3180 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3181 fi
3182
3183 if test "$wxUSE_WAVE" = yes; then
3184 echo "$ac_t""yes" 1>&6
3185 else
3186 echo "$ac_t""no" 1>&6
3187 fi
3188
3189
3190 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3191echo "configure:3192: checking for --enable-fraction" >&5
3192 no_cache=0
3193 # Check whether --enable-fraction or --disable-fraction was given.
3194if test "${enable_fraction+set}" = set; then
3195 enableval="$enable_fraction"
3196
3197 if test "$enableval" = yes; then
3198 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3199 else
3200 ac_cv_use_fraction='wxUSE_FRACTION=no'
3201 fi
3202
3203else
3204
3205 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3206 if test "x$LINE" != x ; then
3207 eval "DEFAULT_$LINE"
3208 else
3209 no_cache=1
3210 fi
3211
3212 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3213
3214fi
3215
3216
3217 eval "$ac_cv_use_fraction"
3218 if test "$no_cache" != 1; then
3219 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3220 fi
3221
3222 if test "$wxUSE_FRACTION" = yes; then
3223 echo "$ac_t""yes" 1>&6
3224 else
3225 echo "$ac_t""no" 1>&6
3226 fi
3227
3228
3229 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3230echo "configure:3231: checking for --enable-dynlib" >&5
3231 no_cache=0
3232 # Check whether --enable-dynlib or --disable-dynlib was given.
3233if test "${enable_dynlib+set}" = set; then
3234 enableval="$enable_dynlib"
3235
3236 if test "$enableval" = yes; then
3237 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3238 else
3239 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3240 fi
3241
3242else
3243
3244 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3252
3253fi
3254
3255
3256 eval "$ac_cv_use_dynlib"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3262 echo "$ac_t""yes" 1>&6
3263 else
3264 echo "$ac_t""no" 1>&6
3265 fi
3266
3267
3268 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3269echo "configure:3270: checking for --enable-longlong" >&5
3270 no_cache=0
3271 # Check whether --enable-longlong or --disable-longlong was given.
3272if test "${enable_longlong+set}" = set; then
3273 enableval="$enable_longlong"
3274
3275 if test "$enableval" = yes; then
3276 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3277 else
3278 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3279 fi
3280
3281else
3282
3283 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3284 if test "x$LINE" != x ; then
3285 eval "DEFAULT_$LINE"
3286 else
3287 no_cache=1
3288 fi
3289
3290 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3291
3292fi
3293
3294
3295 eval "$ac_cv_use_longlong"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_LONGLONG" = yes; then
3301 echo "$ac_t""yes" 1>&6
3302 else
3303 echo "$ac_t""no" 1>&6
3304 fi
3305
3306
3307 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3308echo "configure:3309: checking for --enable-geometry" >&5
3309 no_cache=0
3310 # Check whether --enable-geometry or --disable-geometry was given.
3311if test "${enable_geometry+set}" = set; then
3312 enableval="$enable_geometry"
3313
3314 if test "$enableval" = yes; then
3315 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3316 else
3317 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3318 fi
3319
3320else
3321
3322 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3330
3331fi
3332
3333
3334 eval "$ac_cv_use_geometry"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_GEOMETRY" = yes; then
3340 echo "$ac_t""yes" 1>&6
3341 else
3342 echo "$ac_t""no" 1>&6
3343 fi
3344
3345
3346 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3347echo "configure:3348: checking for --enable-log" >&5
3348 no_cache=0
3349 # Check whether --enable-log or --disable-log was given.
3350if test "${enable_log+set}" = set; then
3351 enableval="$enable_log"
3352
3353 if test "$enableval" = yes; then
3354 ac_cv_use_log='wxUSE_LOG=yes'
3355 else
3356 ac_cv_use_log='wxUSE_LOG=no'
3357 fi
3358
3359else
3360
3361 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3369
3370fi
3371
3372
3373 eval "$ac_cv_use_log"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_LOG" = yes; then
3379 echo "$ac_t""yes" 1>&6
3380 else
3381 echo "$ac_t""no" 1>&6
3382 fi
3383
3384
3385 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3386echo "configure:3387: checking for --enable-streams" >&5
3387 no_cache=0
3388 # Check whether --enable-streams or --disable-streams was given.
3389if test "${enable_streams+set}" = set; then
3390 enableval="$enable_streams"
3391
3392 if test "$enableval" = yes; then
3393 ac_cv_use_streams='wxUSE_STREAMS=yes'
3394 else
3395 ac_cv_use_streams='wxUSE_STREAMS=no'
3396 fi
3397
3398else
3399
3400 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3408
3409fi
3410
3411
3412 eval "$ac_cv_use_streams"
3413 if test "$no_cache" != 1; then
3414 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3415 fi
3416
3417 if test "$wxUSE_STREAMS" = yes; then
3418 echo "$ac_t""yes" 1>&6
3419 else
3420 echo "$ac_t""no" 1>&6
3421 fi
3422
3423
3424 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3425echo "configure:3426: checking for --enable-file" >&5
3426 no_cache=0
3427 # Check whether --enable-file or --disable-file was given.
3428if test "${enable_file+set}" = set; then
3429 enableval="$enable_file"
3430
3431 if test "$enableval" = yes; then
3432 ac_cv_use_file='wxUSE_FILE=yes'
3433 else
3434 ac_cv_use_file='wxUSE_FILE=no'
3435 fi
3436
3437else
3438
3439 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3447
3448fi
3449
3450
3451 eval "$ac_cv_use_file"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_FILE" = yes; then
3457 echo "$ac_t""yes" 1>&6
3458 else
3459 echo "$ac_t""no" 1>&6
3460 fi
3461
3462
3463 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3464echo "configure:3465: checking for --enable-ffile" >&5
3465 no_cache=0
3466 # Check whether --enable-ffile or --disable-ffile was given.
3467if test "${enable_ffile+set}" = set; then
3468 enableval="$enable_ffile"
3469
3470 if test "$enableval" = yes; then
3471 ac_cv_use_ffile='wxUSE_FFILE=yes'
3472 else
3473 ac_cv_use_ffile='wxUSE_FFILE=no'
3474 fi
3475
3476else
3477
3478 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3486
3487fi
3488
3489
3490 eval "$ac_cv_use_ffile"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_FFILE" = yes; then
3496 echo "$ac_t""yes" 1>&6
3497 else
3498 echo "$ac_t""no" 1>&6
3499 fi
3500
3501
3502 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3503echo "configure:3504: checking for --enable-textfile" >&5
3504 no_cache=0
3505 # Check whether --enable-textfile or --disable-textfile was given.
3506if test "${enable_textfile+set}" = set; then
3507 enableval="$enable_textfile"
3508
3509 if test "$enableval" = yes; then
3510 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3511 else
3512 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3513 fi
3514
3515else
3516
3517 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3518 if test "x$LINE" != x ; then
3519 eval "DEFAULT_$LINE"
3520 else
3521 no_cache=1
3522 fi
3523
3524 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3525
3526fi
3527
3528
3529 eval "$ac_cv_use_textfile"
3530 if test "$no_cache" != 1; then
3531 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3532 fi
3533
3534 if test "$wxUSE_TEXTFILE" = yes; then
3535 echo "$ac_t""yes" 1>&6
3536 else
3537 echo "$ac_t""no" 1>&6
3538 fi
3539
3540
3541 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3542echo "configure:3543: checking for --enable-fontmap" >&5
3543 no_cache=0
3544 # Check whether --enable-fontmap or --disable-fontmap was given.
3545if test "${enable_fontmap+set}" = set; then
3546 enableval="$enable_fontmap"
3547
3548 if test "$enableval" = yes; then
3549 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3550 else
3551 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3552 fi
3553
3554else
3555
3556 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3557 if test "x$LINE" != x ; then
3558 eval "DEFAULT_$LINE"
3559 else
3560 no_cache=1
3561 fi
3562
3563 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3564
3565fi
3566
3567
3568 eval "$ac_cv_use_fontmap"
3569 if test "$no_cache" != 1; then
3570 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3571 fi
3572
3573 if test "$wxUSE_FONTMAP" = yes; then
3574 echo "$ac_t""yes" 1>&6
3575 else
3576 echo "$ac_t""no" 1>&6
3577 fi
3578
3579
3580 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3581echo "configure:3582: checking for --enable-unicode" >&5
3582 no_cache=0
3583 # Check whether --enable-unicode or --disable-unicode was given.
3584if test "${enable_unicode+set}" = set; then
3585 enableval="$enable_unicode"
3586
3587 if test "$enableval" = yes; then
3588 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3589 else
3590 ac_cv_use_unicode='wxUSE_UNICODE=no'
3591 fi
3592
3593else
3594
3595 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3596 if test "x$LINE" != x ; then
3597 eval "DEFAULT_$LINE"
3598 else
3599 no_cache=1
3600 fi
3601
3602 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3603
3604fi
3605
3606
3607 eval "$ac_cv_use_unicode"
3608 if test "$no_cache" != 1; then
3609 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3610 fi
3611
3612 if test "$wxUSE_UNICODE" = yes; then
3613 echo "$ac_t""yes" 1>&6
3614 else
3615 echo "$ac_t""no" 1>&6
3616 fi
3617
3618
3619 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3620echo "configure:3621: checking for --enable-wcsrtombs" >&5
3621 no_cache=0
3622 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3623if test "${enable_wcsrtombs+set}" = set; then
3624 enableval="$enable_wcsrtombs"
3625
3626 if test "$enableval" = yes; then
3627 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3628 else
3629 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3630 fi
3631
3632else
3633
3634 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3635 if test "x$LINE" != x ; then
3636 eval "DEFAULT_$LINE"
3637 else
3638 no_cache=1
3639 fi
3640
3641 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3642
3643fi
3644
3645
3646 eval "$ac_cv_use_wcsrtombs"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_WCSRTOMBS" = yes; then
3652 echo "$ac_t""yes" 1>&6
3653 else
3654 echo "$ac_t""no" 1>&6
3655 fi
3656
3657
3658 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3659echo "configure:3660: checking for --enable-wxprintfv" >&5
3660 no_cache=0
3661 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3662if test "${enable_wxprintfv+set}" = set; then
3663 enableval="$enable_wxprintfv"
3664
3665 if test "$enableval" = yes; then
3666 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3667 else
3668 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3669 fi
3670
3671else
3672
3673 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3674 if test "x$LINE" != x ; then
3675 eval "DEFAULT_$LINE"
3676 else
3677 no_cache=1
3678 fi
3679
3680 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3681
3682fi
3683
3684
3685 eval "$ac_cv_use_wxprintfv"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3691 echo "$ac_t""yes" 1>&6
3692 else
3693 echo "$ac_t""no" 1>&6
3694 fi
3695
3696
3697 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3698echo "configure:3699: checking for --enable-std_iostreams" >&5
3699 no_cache=0
3700 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3701if test "${enable_std_iostreams+set}" = set; then
3702 enableval="$enable_std_iostreams"
3703
3704 if test "$enableval" = yes; then
3705 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3706 else
3707 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3708 fi
3709
3710else
3711
3712 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3713 if test "x$LINE" != x ; then
3714 eval "DEFAULT_$LINE"
3715 else
3716 no_cache=1
3717 fi
3718
3719 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3720
3721fi
3722
3723
3724 eval "$ac_cv_use_std_iostreams"
3725 if test "$no_cache" != 1; then
3726 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3727 fi
3728
3729 if test "$wxUSE_STD_IOSTREAM" = yes; then
3730 echo "$ac_t""yes" 1>&6
3731 else
3732 echo "$ac_t""no" 1>&6
3733 fi
3734
3735
3736 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3737echo "configure:3738: checking for --enable-filesystem" >&5
3738 no_cache=0
3739 # Check whether --enable-filesystem or --disable-filesystem was given.
3740if test "${enable_filesystem+set}" = set; then
3741 enableval="$enable_filesystem"
3742
3743 if test "$enableval" = yes; then
3744 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3745 else
3746 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3747 fi
3748
3749else
3750
3751 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3752 if test "x$LINE" != x ; then
3753 eval "DEFAULT_$LINE"
3754 else
3755 no_cache=1
3756 fi
3757
3758 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3759
3760fi
3761
3762
3763 eval "$ac_cv_use_filesystem"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_FILESYSTEM" = yes; then
3769 echo "$ac_t""yes" 1>&6
3770 else
3771 echo "$ac_t""no" 1>&6
3772 fi
3773
3774
3775 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3776echo "configure:3777: checking for --enable-fs_inet" >&5
3777 no_cache=0
3778 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3779if test "${enable_fs_inet+set}" = set; then
3780 enableval="$enable_fs_inet"
3781
3782 if test "$enableval" = yes; then
3783 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3784 else
3785 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3786 fi
3787
3788else
3789
3790 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3791 if test "x$LINE" != x ; then
3792 eval "DEFAULT_$LINE"
3793 else
3794 no_cache=1
3795 fi
3796
3797 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3798
3799fi
3800
3801
3802 eval "$ac_cv_use_fs_inet"
3803 if test "$no_cache" != 1; then
3804 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3805 fi
3806
3807 if test "$wxUSE_FS_INET" = yes; then
3808 echo "$ac_t""yes" 1>&6
3809 else
3810 echo "$ac_t""no" 1>&6
3811 fi
3812
3813
3814 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3815echo "configure:3816: checking for --enable-fs_zip" >&5
3816 no_cache=0
3817 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3818if test "${enable_fs_zip+set}" = set; then
3819 enableval="$enable_fs_zip"
3820
3821 if test "$enableval" = yes; then
3822 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3823 else
3824 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3825 fi
3826
3827else
3828
3829 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3830 if test "x$LINE" != x ; then
3831 eval "DEFAULT_$LINE"
3832 else
3833 no_cache=1
3834 fi
3835
3836 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3837
3838fi
3839
3840
3841 eval "$ac_cv_use_fs_zip"
3842 if test "$no_cache" != 1; then
3843 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3844 fi
3845
3846 if test "$wxUSE_FS_ZIP" = yes; then
3847 echo "$ac_t""yes" 1>&6
3848 else
3849 echo "$ac_t""no" 1>&6
3850 fi
3851
3852
3853 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3854echo "configure:3855: checking for --enable-zipstream" >&5
3855 no_cache=0
3856 # Check whether --enable-zipstream or --disable-zipstream was given.
3857if test "${enable_zipstream+set}" = set; then
3858 enableval="$enable_zipstream"
3859
3860 if test "$enableval" = yes; then
3861 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3862 else
3863 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3864 fi
3865
3866else
3867
3868 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3869 if test "x$LINE" != x ; then
3870 eval "DEFAULT_$LINE"
3871 else
3872 no_cache=1
3873 fi
3874
3875 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3876
3877fi
3878
3879
3880 eval "$ac_cv_use_zipstream"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_ZIPSTREAM" = yes; then
3886 echo "$ac_t""yes" 1>&6
3887 else
3888 echo "$ac_t""no" 1>&6
3889 fi
3890
3891
3892
3893 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3894echo "configure:3895: checking for --enable-catch_segvs" >&5
3895 no_cache=0
3896 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3897if test "${enable_catch_segvs+set}" = set; then
3898 enableval="$enable_catch_segvs"
3899
3900 if test "$enableval" = yes; then
3901 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3902 else
3903 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3904 fi
3905
3906else
3907
3908 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3909 if test "x$LINE" != x ; then
3910 eval "DEFAULT_$LINE"
3911 else
3912 no_cache=1
3913 fi
3914
3915 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3916
3917fi
3918
3919
3920 eval "$ac_cv_use_catch_segvs"
3921 if test "$no_cache" != 1; then
3922 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3923 fi
3924
3925 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3926 echo "$ac_t""yes" 1>&6
3927 else
3928 echo "$ac_t""no" 1>&6
3929 fi
3930
3931
3932 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
3933echo "configure:3934: checking for --enable-snglinst" >&5
3934 no_cache=0
3935 # Check whether --enable-snglinst or --disable-snglinst was given.
3936if test "${enable_snglinst+set}" = set; then
3937 enableval="$enable_snglinst"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
3941 else
3942 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
3943 fi
3944
3945else
3946
3947 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
3955
3956fi
3957
3958
3959 eval "$ac_cv_use_snglinst"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
3965 echo "$ac_t""yes" 1>&6
3966 else
3967 echo "$ac_t""no" 1>&6
3968 fi
3969
3970
3971
3972 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3973echo "configure:3974: checking for --enable-mimetype" >&5
3974 no_cache=0
3975 # Check whether --enable-mimetype or --disable-mimetype was given.
3976if test "${enable_mimetype+set}" = set; then
3977 enableval="$enable_mimetype"
3978
3979 if test "$enableval" = yes; then
3980 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
3981 else
3982 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
3983 fi
3984
3985else
3986
3987 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
3988 if test "x$LINE" != x ; then
3989 eval "DEFAULT_$LINE"
3990 else
3991 no_cache=1
3992 fi
3993
3994 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
3995
3996fi
3997
3998
3999 eval "$ac_cv_use_mimetype"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_MIMETYPE" = yes; then
4005 echo "$ac_t""yes" 1>&6
4006 else
4007 echo "$ac_t""no" 1>&6
4008 fi
4009
4010
4011
4012
4013 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4014echo "configure:4015: checking for --enable-threads" >&5
4015 no_cache=0
4016 # Check whether --enable-threads or --disable-threads was given.
4017if test "${enable_threads+set}" = set; then
4018 enableval="$enable_threads"
4019
4020 if test "$enableval" = yes; then
4021 ac_cv_use_threads='wxUSE_THREADS=yes'
4022 else
4023 ac_cv_use_threads='wxUSE_THREADS=no'
4024 fi
4025
4026else
4027
4028 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4029 if test "x$LINE" != x ; then
4030 eval "DEFAULT_$LINE"
4031 else
4032 no_cache=1
4033 fi
4034
4035 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4036
4037fi
4038
4039
4040 eval "$ac_cv_use_threads"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_THREADS" = yes; then
4046 echo "$ac_t""yes" 1>&6
4047 else
4048 echo "$ac_t""no" 1>&6
4049 fi
4050
4051
4052 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4053echo "configure:4054: checking for --enable-serial" >&5
4054 no_cache=0
4055 # Check whether --enable-serial or --disable-serial was given.
4056if test "${enable_serial+set}" = set; then
4057 enableval="$enable_serial"
4058
4059 if test "$enableval" = yes; then
4060 ac_cv_use_serial='wxUSE_SERIAL=yes'
4061 else
4062 ac_cv_use_serial='wxUSE_SERIAL=no'
4063 fi
4064
4065else
4066
4067 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4068 if test "x$LINE" != x ; then
4069 eval "DEFAULT_$LINE"
4070 else
4071 no_cache=1
4072 fi
4073
4074 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4075
4076fi
4077
4078
4079 eval "$ac_cv_use_serial"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_SERIAL" = yes; then
4085 echo "$ac_t""yes" 1>&6
4086 else
4087 echo "$ac_t""no" 1>&6
4088 fi
4089
4090
4091if test "$wxUSE_GUI" = "yes"; then
4092
4093
4094
4095 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4096echo "configure:4097: checking for --enable-docview" >&5
4097 no_cache=0
4098 # Check whether --enable-docview or --disable-docview was given.
4099if test "${enable_docview+set}" = set; then
4100 enableval="$enable_docview"
4101
4102 if test "$enableval" = yes; then
4103 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4104 else
4105 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4106 fi
4107
4108else
4109
4110 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4118
4119fi
4120
4121
4122 eval "$ac_cv_use_docview"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4128 echo "$ac_t""yes" 1>&6
4129 else
4130 echo "$ac_t""no" 1>&6
4131 fi
4132
4133
4134 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4135echo "configure:4136: checking for --enable-help" >&5
4136 no_cache=0
4137 # Check whether --enable-help or --disable-help was given.
4138if test "${enable_help+set}" = set; then
4139 enableval="$enable_help"
4140
4141 if test "$enableval" = yes; then
4142 ac_cv_use_help='wxUSE_HELP=yes'
4143 else
4144 ac_cv_use_help='wxUSE_HELP=no'
4145 fi
4146
4147else
4148
4149 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4150 if test "x$LINE" != x ; then
4151 eval "DEFAULT_$LINE"
4152 else
4153 no_cache=1
4154 fi
4155
4156 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4157
4158fi
4159
4160
4161 eval "$ac_cv_use_help"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_HELP" = yes; then
4167 echo "$ac_t""yes" 1>&6
4168 else
4169 echo "$ac_t""no" 1>&6
4170 fi
4171
4172
4173 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4174echo "configure:4175: checking for --enable-constraints" >&5
4175 no_cache=0
4176 # Check whether --enable-constraints or --disable-constraints was given.
4177if test "${enable_constraints+set}" = set; then
4178 enableval="$enable_constraints"
4179
4180 if test "$enableval" = yes; then
4181 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4182 else
4183 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4184 fi
4185
4186else
4187
4188 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4189 if test "x$LINE" != x ; then
4190 eval "DEFAULT_$LINE"
4191 else
4192 no_cache=1
4193 fi
4194
4195 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4196
4197fi
4198
4199
4200 eval "$ac_cv_use_constraints"
4201 if test "$no_cache" != 1; then
4202 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4203 fi
4204
4205 if test "$wxUSE_CONSTRAINTS" = yes; then
4206 echo "$ac_t""yes" 1>&6
4207 else
4208 echo "$ac_t""no" 1>&6
4209 fi
4210
4211
4212 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4213echo "configure:4214: checking for --enable-printarch" >&5
4214 no_cache=0
4215 # Check whether --enable-printarch or --disable-printarch was given.
4216if test "${enable_printarch+set}" = set; then
4217 enableval="$enable_printarch"
4218
4219 if test "$enableval" = yes; then
4220 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4221 else
4222 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4223 fi
4224
4225else
4226
4227 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4235
4236fi
4237
4238
4239 eval "$ac_cv_use_printarch"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4245 echo "$ac_t""yes" 1>&6
4246 else
4247 echo "$ac_t""no" 1>&6
4248 fi
4249
4250
4251 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4252echo "configure:4253: checking for --enable-mdi" >&5
4253 no_cache=0
4254 # Check whether --enable-mdi or --disable-mdi was given.
4255if test "${enable_mdi+set}" = set; then
4256 enableval="$enable_mdi"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4260 else
4261 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4262 fi
4263
4264else
4265
4266 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4274
4275fi
4276
4277
4278 eval "$ac_cv_use_mdi"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4284 echo "$ac_t""yes" 1>&6
4285 else
4286 echo "$ac_t""no" 1>&6
4287 fi
4288
4289
4290 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4291echo "configure:4292: checking for --enable-loggui" >&5
4292 no_cache=0
4293 # Check whether --enable-loggui or --disable-loggui was given.
4294if test "${enable_loggui+set}" = set; then
4295 enableval="$enable_loggui"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4299 else
4300 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4313
4314fi
4315
4316
4317 eval "$ac_cv_use_loggui"
4318 if test "$no_cache" != 1; then
4319 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4320 fi
4321
4322 if test "$wxUSE_LOGGUI" = yes; then
4323 echo "$ac_t""yes" 1>&6
4324 else
4325 echo "$ac_t""no" 1>&6
4326 fi
4327
4328
4329 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4330echo "configure:4331: checking for --enable-logwin" >&5
4331 no_cache=0
4332 # Check whether --enable-logwin or --disable-logwin was given.
4333if test "${enable_logwin+set}" = set; then
4334 enableval="$enable_logwin"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4338 else
4339 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4340 fi
4341
4342else
4343
4344 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4352
4353fi
4354
4355
4356 eval "$ac_cv_use_logwin"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_LOGWINDOW" = yes; then
4362 echo "$ac_t""yes" 1>&6
4363 else
4364 echo "$ac_t""no" 1>&6
4365 fi
4366
4367
4368
4369 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4370echo "configure:4371: checking for --enable-postscript" >&5
4371 no_cache=0
4372 # Check whether --enable-postscript or --disable-postscript was given.
4373if test "${enable_postscript+set}" = set; then
4374 enableval="$enable_postscript"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4378 else
4379 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4380 fi
4381
4382else
4383
4384 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4392
4393fi
4394
4395
4396 eval "$ac_cv_use_postscript"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_POSTSCRIPT" = yes; then
4402 echo "$ac_t""yes" 1>&6
4403 else
4404 echo "$ac_t""no" 1>&6
4405 fi
4406
4407
4408
4409
4410
4411 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4412echo "configure:4413: checking for --enable-prologio" >&5
4413 no_cache=0
4414 # Check whether --enable-prologio or --disable-prologio was given.
4415if test "${enable_prologio+set}" = set; then
4416 enableval="$enable_prologio"
4417
4418 if test "$enableval" = yes; then
4419 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4420 else
4421 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4422 fi
4423
4424else
4425
4426 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4427 if test "x$LINE" != x ; then
4428 eval "DEFAULT_$LINE"
4429 else
4430 no_cache=1
4431 fi
4432
4433 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4434
4435fi
4436
4437
4438 eval "$ac_cv_use_prologio"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_PROLOGIO" = yes; then
4444 echo "$ac_t""yes" 1>&6
4445 else
4446 echo "$ac_t""no" 1>&6
4447 fi
4448
4449
4450 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4451echo "configure:4452: checking for --enable-resources" >&5
4452 no_cache=0
4453 # Check whether --enable-resources or --disable-resources was given.
4454if test "${enable_resources+set}" = set; then
4455 enableval="$enable_resources"
4456
4457 if test "$enableval" = yes; then
4458 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4459 else
4460 ac_cv_use_resources='wxUSE_RESOURCES=no'
4461 fi
4462
4463else
4464
4465 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4466 if test "x$LINE" != x ; then
4467 eval "DEFAULT_$LINE"
4468 else
4469 no_cache=1
4470 fi
4471
4472 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4473
4474fi
4475
4476
4477 eval "$ac_cv_use_resources"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_RESOURCES" = yes; then
4483 echo "$ac_t""yes" 1>&6
4484 else
4485 echo "$ac_t""no" 1>&6
4486 fi
4487
4488
4489
4490 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4491echo "configure:4492: checking for --enable-xresources" >&5
4492 no_cache=0
4493 # Check whether --enable-xresources or --disable-xresources was given.
4494if test "${enable_xresources+set}" = set; then
4495 enableval="$enable_xresources"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4499 else
4500 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4513
4514fi
4515
4516
4517 eval "$ac_cv_use_xresources"
4518 if test "$no_cache" != 1; then
4519 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4520 fi
4521
4522 if test "$wxUSE_X_RESOURCES" = yes; then
4523 echo "$ac_t""yes" 1>&6
4524 else
4525 echo "$ac_t""no" 1>&6
4526 fi
4527
4528
4529
4530
4531 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4532echo "configure:4533: checking for --enable-clipboard" >&5
4533 no_cache=0
4534 # Check whether --enable-clipboard or --disable-clipboard was given.
4535if test "${enable_clipboard+set}" = set; then
4536 enableval="$enable_clipboard"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4540 else
4541 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4542 fi
4543
4544else
4545
4546 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4554
4555fi
4556
4557
4558 eval "$ac_cv_use_clipboard"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_CLIPBOARD" = yes; then
4564 echo "$ac_t""yes" 1>&6
4565 else
4566 echo "$ac_t""no" 1>&6
4567 fi
4568
4569
4570 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4571echo "configure:4572: checking for --enable-dnd" >&5
4572 no_cache=0
4573 # Check whether --enable-dnd or --disable-dnd was given.
4574if test "${enable_dnd+set}" = set; then
4575 enableval="$enable_dnd"
4576
4577 if test "$enableval" = yes; then
4578 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4579 else
4580 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4581 fi
4582
4583else
4584
4585 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4593
4594fi
4595
4596
4597 eval "$ac_cv_use_dnd"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4603 echo "$ac_t""yes" 1>&6
4604 else
4605 echo "$ac_t""no" 1>&6
4606 fi
4607
4608
4609 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4610echo "configure:4611: checking for --enable-metafile" >&5
4611 no_cache=0
4612 # Check whether --enable-metafile or --disable-metafile was given.
4613if test "${enable_metafile+set}" = set; then
4614 enableval="$enable_metafile"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4618 else
4619 ac_cv_use_metafile='wxUSE_METAFILE=no'
4620 fi
4621
4622else
4623
4624 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4632
4633fi
4634
4635
4636 eval "$ac_cv_use_metafile"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_METAFILE" = yes; then
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "$ac_t""no" 1>&6
4645 fi
4646
4647
4648
4649 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
4650echo "configure:4651: checking for --enable-wxtree" >&5
4651 no_cache=0
4652 # Check whether --enable-wxtree or --disable-wxtree was given.
4653if test "${enable_wxtree+set}" = set; then
4654 enableval="$enable_wxtree"
4655
4656 if test "$enableval" = yes; then
4657 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4658 else
4659 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4660 fi
4661
4662else
4663
4664 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4672
4673fi
4674
4675
4676 eval "$ac_cv_use_wxtree"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_WXTREE" = yes; then
4682 echo "$ac_t""yes" 1>&6
4683 else
4684 echo "$ac_t""no" 1>&6
4685 fi
4686
4687
4688
4689
4690 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4691echo "configure:4692: checking for --enable-controls" >&5
4692 no_cache=0
4693 # Check whether --enable-controls or --disable-controls was given.
4694if test "${enable_controls+set}" = set; then
4695 enableval="$enable_controls"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4699 else
4700 ac_cv_use_controls='wxUSE_CONTROLS=no'
4701 fi
4702
4703else
4704
4705 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4713
4714fi
4715
4716
4717 eval "$ac_cv_use_controls"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_CONTROLS" = yes; then
4723 echo "$ac_t""yes" 1>&6
4724 else
4725 echo "$ac_t""no" 1>&6
4726 fi
4727
4728
4729if test "$wxUSE_CONTROLS" = "yes"; then
4730 DEFAULT_wxUSE_ACCEL=yes
4731 DEFAULT_wxUSE_BMPBUTTON=yes
4732 DEFAULT_wxUSE_BUTTON=yes
4733 DEFAULT_wxUSE_CALCTRL=no
4734 DEFAULT_wxUSE_CARET=yes
4735 DEFAULT_wxUSE_COMBOBOX=yes
4736 DEFAULT_wxUSE_CHECKBOX=yes
4737 DEFAULT_wxUSE_CHECKLISTBOX=yes
4738 DEFAULT_wxUSE_CHOICE=yes
4739 DEFAULT_wxUSE_GAUGE=yes
4740 DEFAULT_wxUSE_GRID=yes
4741 DEFAULT_wxUSE_NEW_GRID=yes
4742 DEFAULT_wxUSE_IMAGLIST=yes
4743 DEFAULT_wxUSE_LISTBOX=yes
4744 DEFAULT_wxUSE_LISTCTRL=yes
4745 DEFAULT_wxUSE_NOTEBOOK=yes
4746 DEFAULT_wxUSE_RADIOBOX=yes
4747 DEFAULT_wxUSE_RADIOBTN=yes
4748 DEFAULT_wxUSE_SASH=yes
4749 DEFAULT_wxUSE_SCROLLBAR=yes
4750 DEFAULT_wxUSE_SLIDER=yes
4751 DEFAULT_wxUSE_SPINBTN=yes
4752 DEFAULT_wxUSE_SPINCTRL=yes
4753 DEFAULT_wxUSE_SPLITTER=yes
4754 DEFAULT_wxUSE_STATBMP=yes
4755 DEFAULT_wxUSE_STATBOX=yes
4756 DEFAULT_wxUSE_STATLINE=yes
4757 DEFAULT_wxUSE_STATUSBAR=yes
4758 DEFAULT_wxUSE_TAB_DIALOG=yes
4759 DEFAULT_wxUSE_TOGGLEBTN=yes
4760 DEFAULT_wxUSE_TOOLBAR=yes
4761 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4762 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4763 DEFAULT_wxUSE_TOOLTIPS=yes
4764 DEFAULT_wxUSE_TREECTRL=yes
4765elif test "$wxUSE_CONTROLS" = "no"; then
4766 DEFAULT_wxUSE_ACCEL=no
4767 DEFAULT_wxUSE_BMPBUTTON=no
4768 DEFAULT_wxUSE_BUTTON=no
4769 DEFAULT_wxUSE_CALCTRL=no
4770 DEFAULT_wxUSE_CARET=no
4771 DEFAULT_wxUSE_COMBOBOX=no
4772 DEFAULT_wxUSE_CHECKBOX=no
4773 DEFAULT_wxUSE_CHECKLISTBOX=no
4774 DEFAULT_wxUSE_CHOICE=no
4775 DEFAULT_wxUSE_GAUGE=no
4776 DEFAULT_wxUSE_GRID=no
4777 DEFAULT_wxUSE_NEW_GRID=no
4778 DEFAULT_wxUSE_IMAGLIST=no
4779 DEFAULT_wxUSE_LISTBOX=no
4780 DEFAULT_wxUSE_LISTCTRL=no
4781 DEFAULT_wxUSE_NOTEBOOK=no
4782 DEFAULT_wxUSE_RADIOBOX=no
4783 DEFAULT_wxUSE_RADIOBTN=no
4784 DEFAULT_wxUSE_SASH=no
4785 DEFAULT_wxUSE_SCROLLBAR=no
4786 DEFAULT_wxUSE_SLIDER=no
4787 DEFAULT_wxUSE_SPINBTN=no
4788 DEFAULT_wxUSE_SPINCTRL=no
4789 DEFAULT_wxUSE_SPLITTER=no
4790 DEFAULT_wxUSE_STATBMP=no
4791 DEFAULT_wxUSE_STATBOX=no
4792 DEFAULT_wxUSE_STATLINE=no
4793 DEFAULT_wxUSE_STATUSBAR=no
4794 DEFAULT_wxUSE_TAB_DIALOG=no
4795 DEFAULT_wxUSE_TOGGLEBTN=no
4796 DEFAULT_wxUSE_TOOLBAR=no
4797 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4798 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4799 DEFAULT_wxUSE_TOOLTIPS=no
4800 DEFAULT_wxUSE_TREECTRL=no
4801fi
4802
4803
4804 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
4805echo "configure:4806: checking for --enable-accel" >&5
4806 no_cache=0
4807 # Check whether --enable-accel or --disable-accel was given.
4808if test "${enable_accel+set}" = set; then
4809 enableval="$enable_accel"
4810
4811 if test "$enableval" = yes; then
4812 ac_cv_use_accel='wxUSE_ACCEL=yes'
4813 else
4814 ac_cv_use_accel='wxUSE_ACCEL=no'
4815 fi
4816
4817else
4818
4819 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4827
4828fi
4829
4830
4831 eval "$ac_cv_use_accel"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_ACCEL" = yes; then
4837 echo "$ac_t""yes" 1>&6
4838 else
4839 echo "$ac_t""no" 1>&6
4840 fi
4841
4842
4843 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
4844echo "configure:4845: checking for --enable-button" >&5
4845 no_cache=0
4846 # Check whether --enable-button or --disable-button was given.
4847if test "${enable_button+set}" = set; then
4848 enableval="$enable_button"
4849
4850 if test "$enableval" = yes; then
4851 ac_cv_use_button='wxUSE_BUTTON=yes'
4852 else
4853 ac_cv_use_button='wxUSE_BUTTON=no'
4854 fi
4855
4856else
4857
4858 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
4866
4867fi
4868
4869
4870 eval "$ac_cv_use_button"
4871 if test "$no_cache" != 1; then
4872 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
4873 fi
4874
4875 if test "$wxUSE_BUTTON" = yes; then
4876 echo "$ac_t""yes" 1>&6
4877 else
4878 echo "$ac_t""no" 1>&6
4879 fi
4880
4881
4882 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
4883echo "configure:4884: checking for --enable-bmpbutton" >&5
4884 no_cache=0
4885 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4886if test "${enable_bmpbutton+set}" = set; then
4887 enableval="$enable_bmpbutton"
4888
4889 if test "$enableval" = yes; then
4890 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4891 else
4892 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4893 fi
4894
4895else
4896
4897 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4905
4906fi
4907
4908
4909 eval "$ac_cv_use_bmpbutton"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_BMPBUTTON" = yes; then
4915 echo "$ac_t""yes" 1>&6
4916 else
4917 echo "$ac_t""no" 1>&6
4918 fi
4919
4920
4921 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
4922echo "configure:4923: checking for --enable-calendar" >&5
4923 no_cache=0
4924 # Check whether --enable-calendar or --disable-calendar was given.
4925if test "${enable_calendar+set}" = set; then
4926 enableval="$enable_calendar"
4927
4928 if test "$enableval" = yes; then
4929 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
4930 else
4931 ac_cv_use_calendar='wxUSE_CALCTRL=no'
4932 fi
4933
4934else
4935
4936 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
4937 if test "x$LINE" != x ; then
4938 eval "DEFAULT_$LINE"
4939 else
4940 no_cache=1
4941 fi
4942
4943 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
4944
4945fi
4946
4947
4948 eval "$ac_cv_use_calendar"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_CALCTRL" = yes; then
4954 echo "$ac_t""yes" 1>&6
4955 else
4956 echo "$ac_t""no" 1>&6
4957 fi
4958
4959
4960 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
4961echo "configure:4962: checking for --enable-caret" >&5
4962 no_cache=0
4963 # Check whether --enable-caret or --disable-caret was given.
4964if test "${enable_caret+set}" = set; then
4965 enableval="$enable_caret"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_caret='wxUSE_CARET=yes'
4969 else
4970 ac_cv_use_caret='wxUSE_CARET=no'
4971 fi
4972
4973else
4974
4975 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4983
4984fi
4985
4986
4987 eval "$ac_cv_use_caret"
4988 if test "$no_cache" != 1; then
4989 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4990 fi
4991
4992 if test "$wxUSE_CARET" = yes; then
4993 echo "$ac_t""yes" 1>&6
4994 else
4995 echo "$ac_t""no" 1>&6
4996 fi
4997
4998
4999 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5000echo "configure:5001: checking for --enable-checkbox" >&5
5001 no_cache=0
5002 # Check whether --enable-checkbox or --disable-checkbox was given.
5003if test "${enable_checkbox+set}" = set; then
5004 enableval="$enable_checkbox"
5005
5006 if test "$enableval" = yes; then
5007 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5008 else
5009 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5010 fi
5011
5012else
5013
5014 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5015 if test "x$LINE" != x ; then
5016 eval "DEFAULT_$LINE"
5017 else
5018 no_cache=1
5019 fi
5020
5021 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5022
5023fi
5024
5025
5026 eval "$ac_cv_use_checkbox"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_CHECKBOX" = yes; then
5032 echo "$ac_t""yes" 1>&6
5033 else
5034 echo "$ac_t""no" 1>&6
5035 fi
5036
5037
5038 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5039echo "configure:5040: checking for --enable-checklst" >&5
5040 no_cache=0
5041 # Check whether --enable-checklst or --disable-checklst was given.
5042if test "${enable_checklst+set}" = set; then
5043 enableval="$enable_checklst"
5044
5045 if test "$enableval" = yes; then
5046 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5047 else
5048 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5049 fi
5050
5051else
5052
5053 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5061
5062fi
5063
5064
5065 eval "$ac_cv_use_checklst"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_CHECKLST" = yes; then
5071 echo "$ac_t""yes" 1>&6
5072 else
5073 echo "$ac_t""no" 1>&6
5074 fi
5075
5076
5077 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5078echo "configure:5079: checking for --enable-choice" >&5
5079 no_cache=0
5080 # Check whether --enable-choice or --disable-choice was given.
5081if test "${enable_choice+set}" = set; then
5082 enableval="$enable_choice"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_choice='wxUSE_CHOICE=yes'
5086 else
5087 ac_cv_use_choice='wxUSE_CHOICE=no'
5088 fi
5089
5090else
5091
5092 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5100
5101fi
5102
5103
5104 eval "$ac_cv_use_choice"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_CHOICE" = yes; then
5110 echo "$ac_t""yes" 1>&6
5111 else
5112 echo "$ac_t""no" 1>&6
5113 fi
5114
5115
5116 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5117echo "configure:5118: checking for --enable-combobox" >&5
5118 no_cache=0
5119 # Check whether --enable-combobox or --disable-combobox was given.
5120if test "${enable_combobox+set}" = set; then
5121 enableval="$enable_combobox"
5122
5123 if test "$enableval" = yes; then
5124 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5125 else
5126 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5127 fi
5128
5129else
5130
5131 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5139
5140fi
5141
5142
5143 eval "$ac_cv_use_combobox"
5144 if test "$no_cache" != 1; then
5145 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5146 fi
5147
5148 if test "$wxUSE_COMBOBOX" = yes; then
5149 echo "$ac_t""yes" 1>&6
5150 else
5151 echo "$ac_t""no" 1>&6
5152 fi
5153
5154
5155 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5156echo "configure:5157: checking for --enable-gauge" >&5
5157 no_cache=0
5158 # Check whether --enable-gauge or --disable-gauge was given.
5159if test "${enable_gauge+set}" = set; then
5160 enableval="$enable_gauge"
5161
5162 if test "$enableval" = yes; then
5163 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5164 else
5165 ac_cv_use_gauge='wxUSE_GAUGE=no'
5166 fi
5167
5168else
5169
5170 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5178
5179fi
5180
5181
5182 eval "$ac_cv_use_gauge"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_GAUGE" = yes; then
5188 echo "$ac_t""yes" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192
5193
5194 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5195echo "configure:5196: checking for --enable-grid" >&5
5196 no_cache=0
5197 # Check whether --enable-grid or --disable-grid was given.
5198if test "${enable_grid+set}" = set; then
5199 enableval="$enable_grid"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_grid='wxUSE_GRID=yes'
5203 else
5204 ac_cv_use_grid='wxUSE_GRID=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5217
5218fi
5219
5220
5221 eval "$ac_cv_use_grid"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_GRID" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
5233 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5234echo "configure:5235: checking for --enable-newgrid" >&5
5235 no_cache=0
5236 # Check whether --enable-newgrid or --disable-newgrid was given.
5237if test "${enable_newgrid+set}" = set; then
5238 enableval="$enable_newgrid"
5239
5240 if test "$enableval" = yes; then
5241 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5242 else
5243 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5244 fi
5245
5246else
5247
5248 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5249 if test "x$LINE" != x ; then
5250 eval "DEFAULT_$LINE"
5251 else
5252 no_cache=1
5253 fi
5254
5255 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5256
5257fi
5258
5259
5260 eval "$ac_cv_use_newgrid"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_NEW_GRID" = yes; then
5266 echo "$ac_t""yes" 1>&6
5267 else
5268 echo "$ac_t""no" 1>&6
5269 fi
5270
5271
5272 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5273echo "configure:5274: checking for --enable-imaglist" >&5
5274 no_cache=0
5275 # Check whether --enable-imaglist or --disable-imaglist was given.
5276if test "${enable_imaglist+set}" = set; then
5277 enableval="$enable_imaglist"
5278
5279 if test "$enableval" = yes; then
5280 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5281 else
5282 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5283 fi
5284
5285else
5286
5287 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5288 if test "x$LINE" != x ; then
5289 eval "DEFAULT_$LINE"
5290 else
5291 no_cache=1
5292 fi
5293
5294 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5295
5296fi
5297
5298
5299 eval "$ac_cv_use_imaglist"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_IMAGLIST" = yes; then
5305 echo "$ac_t""yes" 1>&6
5306 else
5307 echo "$ac_t""no" 1>&6
5308 fi
5309
5310
5311 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5312echo "configure:5313: checking for --enable-listbox" >&5
5313 no_cache=0
5314 # Check whether --enable-listbox or --disable-listbox was given.
5315if test "${enable_listbox+set}" = set; then
5316 enableval="$enable_listbox"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5320 else
5321 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5334
5335fi
5336
5337
5338 eval "$ac_cv_use_listbox"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_LISTBOX" = yes; then
5344 echo "$ac_t""yes" 1>&6
5345 else
5346 echo "$ac_t""no" 1>&6
5347 fi
5348
5349
5350 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5351echo "configure:5352: checking for --enable-listctrl" >&5
5352 no_cache=0
5353 # Check whether --enable-listctrl or --disable-listctrl was given.
5354if test "${enable_listctrl+set}" = set; then
5355 enableval="$enable_listctrl"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5359 else
5360 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5361 fi
5362
5363else
5364
5365 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5373
5374fi
5375
5376
5377 eval "$ac_cv_use_listctrl"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_LISTCTRL" = yes; then
5383 echo "$ac_t""yes" 1>&6
5384 else
5385 echo "$ac_t""no" 1>&6
5386 fi
5387
5388
5389 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5390echo "configure:5391: checking for --enable-notebook" >&5
5391 no_cache=0
5392 # Check whether --enable-notebook or --disable-notebook was given.
5393if test "${enable_notebook+set}" = set; then
5394 enableval="$enable_notebook"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5398 else
5399 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5400 fi
5401
5402else
5403
5404 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5412
5413fi
5414
5415
5416 eval "$ac_cv_use_notebook"
5417 if test "$no_cache" != 1; then
5418 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5419 fi
5420
5421 if test "$wxUSE_NOTEBOOK" = yes; then
5422 echo "$ac_t""yes" 1>&6
5423 else
5424 echo "$ac_t""no" 1>&6
5425 fi
5426
5427
5428 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5429echo "configure:5430: checking for --enable-radiobox" >&5
5430 no_cache=0
5431 # Check whether --enable-radiobox or --disable-radiobox was given.
5432if test "${enable_radiobox+set}" = set; then
5433 enableval="$enable_radiobox"
5434
5435 if test "$enableval" = yes; then
5436 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5437 else
5438 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5439 fi
5440
5441else
5442
5443 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5451
5452fi
5453
5454
5455 eval "$ac_cv_use_radiobox"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_RADIOBOX" = yes; then
5461 echo "$ac_t""yes" 1>&6
5462 else
5463 echo "$ac_t""no" 1>&6
5464 fi
5465
5466
5467 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5468echo "configure:5469: checking for --enable-radiobtn" >&5
5469 no_cache=0
5470 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5471if test "${enable_radiobtn+set}" = set; then
5472 enableval="$enable_radiobtn"
5473
5474 if test "$enableval" = yes; then
5475 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5476 else
5477 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5478 fi
5479
5480else
5481
5482 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5490
5491fi
5492
5493
5494 eval "$ac_cv_use_radiobtn"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_RADIOBTN" = yes; then
5500 echo "$ac_t""yes" 1>&6
5501 else
5502 echo "$ac_t""no" 1>&6
5503 fi
5504
5505
5506 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5507echo "configure:5508: checking for --enable-sash" >&5
5508 no_cache=0
5509 # Check whether --enable-sash or --disable-sash was given.
5510if test "${enable_sash+set}" = set; then
5511 enableval="$enable_sash"
5512
5513 if test "$enableval" = yes; then
5514 ac_cv_use_sash='wxUSE_SASH=yes'
5515 else
5516 ac_cv_use_sash='wxUSE_SASH=no'
5517 fi
5518
5519else
5520
5521 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5529
5530fi
5531
5532
5533 eval "$ac_cv_use_sash"
5534 if test "$no_cache" != 1; then
5535 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5536 fi
5537
5538 if test "$wxUSE_SASH" = yes; then
5539 echo "$ac_t""yes" 1>&6
5540 else
5541 echo "$ac_t""no" 1>&6
5542 fi
5543
5544
5545 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5546echo "configure:5547: checking for --enable-scrollbar" >&5
5547 no_cache=0
5548 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5549if test "${enable_scrollbar+set}" = set; then
5550 enableval="$enable_scrollbar"
5551
5552 if test "$enableval" = yes; then
5553 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5554 else
5555 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5556 fi
5557
5558else
5559
5560 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5561 if test "x$LINE" != x ; then
5562 eval "DEFAULT_$LINE"
5563 else
5564 no_cache=1
5565 fi
5566
5567 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5568
5569fi
5570
5571
5572 eval "$ac_cv_use_scrollbar"
5573 if test "$no_cache" != 1; then
5574 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5575 fi
5576
5577 if test "$wxUSE_SCROLLBAR" = yes; then
5578 echo "$ac_t""yes" 1>&6
5579 else
5580 echo "$ac_t""no" 1>&6
5581 fi
5582
5583
5584 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5585echo "configure:5586: checking for --enable-slider" >&5
5586 no_cache=0
5587 # Check whether --enable-slider or --disable-slider was given.
5588if test "${enable_slider+set}" = set; then
5589 enableval="$enable_slider"
5590
5591 if test "$enableval" = yes; then
5592 ac_cv_use_slider='wxUSE_SLIDER=yes'
5593 else
5594 ac_cv_use_slider='wxUSE_SLIDER=no'
5595 fi
5596
5597else
5598
5599 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
5606 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5607
5608fi
5609
5610
5611 eval "$ac_cv_use_slider"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_SLIDER" = yes; then
5617 echo "$ac_t""yes" 1>&6
5618 else
5619 echo "$ac_t""no" 1>&6
5620 fi
5621
5622
5623 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5624echo "configure:5625: checking for --enable-spinbtn" >&5
5625 no_cache=0
5626 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5627if test "${enable_spinbtn+set}" = set; then
5628 enableval="$enable_spinbtn"
5629
5630 if test "$enableval" = yes; then
5631 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5632 else
5633 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5634 fi
5635
5636else
5637
5638 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5646
5647fi
5648
5649
5650 eval "$ac_cv_use_spinbtn"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_SPINBTN" = yes; then
5656 echo "$ac_t""yes" 1>&6
5657 else
5658 echo "$ac_t""no" 1>&6
5659 fi
5660
5661
5662 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5663echo "configure:5664: checking for --enable-spinctrl" >&5
5664 no_cache=0
5665 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5666if test "${enable_spinctrl+set}" = set; then
5667 enableval="$enable_spinctrl"
5668
5669 if test "$enableval" = yes; then
5670 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5671 else
5672 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5673 fi
5674
5675else
5676
5677 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5678 if test "x$LINE" != x ; then
5679 eval "DEFAULT_$LINE"
5680 else
5681 no_cache=1
5682 fi
5683
5684 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5685
5686fi
5687
5688
5689 eval "$ac_cv_use_spinctrl"
5690 if test "$no_cache" != 1; then
5691 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5692 fi
5693
5694 if test "$wxUSE_SPINCTRL" = yes; then
5695 echo "$ac_t""yes" 1>&6
5696 else
5697 echo "$ac_t""no" 1>&6
5698 fi
5699
5700
5701 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
5702echo "configure:5703: checking for --enable-splitter" >&5
5703 no_cache=0
5704 # Check whether --enable-splitter or --disable-splitter was given.
5705if test "${enable_splitter+set}" = set; then
5706 enableval="$enable_splitter"
5707
5708 if test "$enableval" = yes; then
5709 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5710 else
5711 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5712 fi
5713
5714else
5715
5716 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5717 if test "x$LINE" != x ; then
5718 eval "DEFAULT_$LINE"
5719 else
5720 no_cache=1
5721 fi
5722
5723 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5724
5725fi
5726
5727
5728 eval "$ac_cv_use_splitter"
5729 if test "$no_cache" != 1; then
5730 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5731 fi
5732
5733 if test "$wxUSE_SPLITTER" = yes; then
5734 echo "$ac_t""yes" 1>&6
5735 else
5736 echo "$ac_t""no" 1>&6
5737 fi
5738
5739
5740 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
5741echo "configure:5742: checking for --enable-statbmp" >&5
5742 no_cache=0
5743 # Check whether --enable-statbmp or --disable-statbmp was given.
5744if test "${enable_statbmp+set}" = set; then
5745 enableval="$enable_statbmp"
5746
5747 if test "$enableval" = yes; then
5748 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5749 else
5750 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5751 fi
5752
5753else
5754
5755 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5756 if test "x$LINE" != x ; then
5757 eval "DEFAULT_$LINE"
5758 else
5759 no_cache=1
5760 fi
5761
5762 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5763
5764fi
5765
5766
5767 eval "$ac_cv_use_statbmp"
5768 if test "$no_cache" != 1; then
5769 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5770 fi
5771
5772 if test "$wxUSE_STATBMP" = yes; then
5773 echo "$ac_t""yes" 1>&6
5774 else
5775 echo "$ac_t""no" 1>&6
5776 fi
5777
5778
5779 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
5780echo "configure:5781: checking for --enable-statbox" >&5
5781 no_cache=0
5782 # Check whether --enable-statbox or --disable-statbox was given.
5783if test "${enable_statbox+set}" = set; then
5784 enableval="$enable_statbox"
5785
5786 if test "$enableval" = yes; then
5787 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5788 else
5789 ac_cv_use_statbox='wxUSE_STATBOX=no'
5790 fi
5791
5792else
5793
5794 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5795 if test "x$LINE" != x ; then
5796 eval "DEFAULT_$LINE"
5797 else
5798 no_cache=1
5799 fi
5800
5801 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5802
5803fi
5804
5805
5806 eval "$ac_cv_use_statbox"
5807 if test "$no_cache" != 1; then
5808 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5809 fi
5810
5811 if test "$wxUSE_STATBOX" = yes; then
5812 echo "$ac_t""yes" 1>&6
5813 else
5814 echo "$ac_t""no" 1>&6
5815 fi
5816
5817
5818 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
5819echo "configure:5820: checking for --enable-statline" >&5
5820 no_cache=0
5821 # Check whether --enable-statline or --disable-statline was given.
5822if test "${enable_statline+set}" = set; then
5823 enableval="$enable_statline"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_statline='wxUSE_STATLINE=yes'
5827 else
5828 ac_cv_use_statline='wxUSE_STATLINE=no'
5829 fi
5830
5831else
5832
5833 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5841
5842fi
5843
5844
5845 eval "$ac_cv_use_statline"
5846 if test "$no_cache" != 1; then
5847 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5848 fi
5849
5850 if test "$wxUSE_STATLINE" = yes; then
5851 echo "$ac_t""yes" 1>&6
5852 else
5853 echo "$ac_t""no" 1>&6
5854 fi
5855
5856
5857 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
5858echo "configure:5859: checking for --enable-stattext" >&5
5859 no_cache=0
5860 # Check whether --enable-stattext or --disable-stattext was given.
5861if test "${enable_stattext+set}" = set; then
5862 enableval="$enable_stattext"
5863
5864 if test "$enableval" = yes; then
5865 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5866 else
5867 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5868 fi
5869
5870else
5871
5872 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5873 if test "x$LINE" != x ; then
5874 eval "DEFAULT_$LINE"
5875 else
5876 no_cache=1
5877 fi
5878
5879 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5880
5881fi
5882
5883
5884 eval "$ac_cv_use_stattext"
5885 if test "$no_cache" != 1; then
5886 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5887 fi
5888
5889 if test "$wxUSE_STATTEXT" = yes; then
5890 echo "$ac_t""yes" 1>&6
5891 else
5892 echo "$ac_t""no" 1>&6
5893 fi
5894
5895
5896 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
5897echo "configure:5898: checking for --enable-statusbar" >&5
5898 no_cache=0
5899 # Check whether --enable-statusbar or --disable-statusbar was given.
5900if test "${enable_statusbar+set}" = set; then
5901 enableval="$enable_statusbar"
5902
5903 if test "$enableval" = yes; then
5904 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5905 else
5906 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5907 fi
5908
5909else
5910
5911 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5912 if test "x$LINE" != x ; then
5913 eval "DEFAULT_$LINE"
5914 else
5915 no_cache=1
5916 fi
5917
5918 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5919
5920fi
5921
5922
5923 eval "$ac_cv_use_statusbar"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_STATUSBAR" = yes; then
5929 echo "$ac_t""yes" 1>&6
5930 else
5931 echo "$ac_t""no" 1>&6
5932 fi
5933
5934
5935 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
5936echo "configure:5937: checking for --enable-tabdialog" >&5
5937 no_cache=0
5938 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5939if test "${enable_tabdialog+set}" = set; then
5940 enableval="$enable_tabdialog"
5941
5942 if test "$enableval" = yes; then
5943 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5944 else
5945 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5946 fi
5947
5948else
5949
5950 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5958
5959fi
5960
5961
5962 eval "$ac_cv_use_tabdialog"
5963 if test "$no_cache" != 1; then
5964 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5965 fi
5966
5967 if test "$wxUSE_TABDIALOG" = yes; then
5968 echo "$ac_t""yes" 1>&6
5969 else
5970 echo "$ac_t""no" 1>&6
5971 fi
5972
5973
5974 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
5975echo "configure:5976: checking for --enable-textctrl" >&5
5976 no_cache=0
5977 # Check whether --enable-textctrl or --disable-textctrl was given.
5978if test "${enable_textctrl+set}" = set; then
5979 enableval="$enable_textctrl"
5980
5981 if test "$enableval" = yes; then
5982 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
5983 else
5984 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
5985 fi
5986
5987else
5988
5989 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
5996 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
5997
5998fi
5999
6000
6001 eval "$ac_cv_use_textctrl"
6002 if test "$no_cache" != 1; then
6003 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6004 fi
6005
6006 if test "$wxUSE_TEXTCTRL" = yes; then
6007 echo "$ac_t""yes" 1>&6
6008 else
6009 echo "$ac_t""no" 1>&6
6010 fi
6011
6012
6013 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6014echo "configure:6015: checking for --enable-togglebtn" >&5
6015 no_cache=0
6016 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6017if test "${enable_togglebtn+set}" = set; then
6018 enableval="$enable_togglebtn"
6019
6020 if test "$enableval" = yes; then
6021 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6022 else
6023 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6024 fi
6025
6026else
6027
6028 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6029 if test "x$LINE" != x ; then
6030 eval "DEFAULT_$LINE"
6031 else
6032 no_cache=1
6033 fi
6034
6035 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6036
6037fi
6038
6039
6040 eval "$ac_cv_use_togglebtn"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_TOGGLEBTN" = yes; then
6046 echo "$ac_t""yes" 1>&6
6047 else
6048 echo "$ac_t""no" 1>&6
6049 fi
6050
6051
6052 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6053echo "configure:6054: checking for --enable-toolbar" >&5
6054 no_cache=0
6055 # Check whether --enable-toolbar or --disable-toolbar was given.
6056if test "${enable_toolbar+set}" = set; then
6057 enableval="$enable_toolbar"
6058
6059 if test "$enableval" = yes; then
6060 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6061 else
6062 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6063 fi
6064
6065else
6066
6067 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6075
6076fi
6077
6078
6079 eval "$ac_cv_use_toolbar"
6080 if test "$no_cache" != 1; then
6081 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6082 fi
6083
6084 if test "$wxUSE_TOOLBAR" = yes; then
6085 echo "$ac_t""yes" 1>&6
6086 else
6087 echo "$ac_t""no" 1>&6
6088 fi
6089
6090
6091 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6092echo "configure:6093: checking for --enable-tbarnative" >&5
6093 no_cache=0
6094 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6095if test "${enable_tbarnative+set}" = set; then
6096 enableval="$enable_tbarnative"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6100 else
6101 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6114
6115fi
6116
6117
6118 eval "$ac_cv_use_tbarnative"
6119 if test "$no_cache" != 1; then
6120 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6121 fi
6122
6123 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6124 echo "$ac_t""yes" 1>&6
6125 else
6126 echo "$ac_t""no" 1>&6
6127 fi
6128
6129
6130 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6131echo "configure:6132: checking for --enable-tbarsmpl" >&5
6132 no_cache=0
6133 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6134if test "${enable_tbarsmpl+set}" = set; then
6135 enableval="$enable_tbarsmpl"
6136
6137 if test "$enableval" = yes; then
6138 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6139 else
6140 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6141 fi
6142
6143else
6144
6145 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6146 if test "x$LINE" != x ; then
6147 eval "DEFAULT_$LINE"
6148 else
6149 no_cache=1
6150 fi
6151
6152 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6153
6154fi
6155
6156
6157 eval "$ac_cv_use_tbarsmpl"
6158 if test "$no_cache" != 1; then
6159 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6160 fi
6161
6162 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6163 echo "$ac_t""yes" 1>&6
6164 else
6165 echo "$ac_t""no" 1>&6
6166 fi
6167
6168
6169 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6170echo "configure:6171: checking for --enable-treectrl" >&5
6171 no_cache=0
6172 # Check whether --enable-treectrl or --disable-treectrl was given.
6173if test "${enable_treectrl+set}" = set; then
6174 enableval="$enable_treectrl"
6175
6176 if test "$enableval" = yes; then
6177 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6178 else
6179 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6180 fi
6181
6182else
6183
6184 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6192
6193fi
6194
6195
6196 eval "$ac_cv_use_treectrl"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_TREECTRL" = yes; then
6202 echo "$ac_t""yes" 1>&6
6203 else
6204 echo "$ac_t""no" 1>&6
6205 fi
6206
6207
6208
6209
6210 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6211echo "configure:6212: checking for --enable-commondlg" >&5
6212 no_cache=0
6213 # Check whether --enable-commondlg or --disable-commondlg was given.
6214if test "${enable_commondlg+set}" = set; then
6215 enableval="$enable_commondlg"
6216
6217 if test "$enableval" = yes; then
6218 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6219 else
6220 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6221 fi
6222
6223else
6224
6225 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6226 if test "x$LINE" != x ; then
6227 eval "DEFAULT_$LINE"
6228 else
6229 no_cache=1
6230 fi
6231
6232 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6233
6234fi
6235
6236
6237 eval "$ac_cv_use_commondlg"
6238 if test "$no_cache" != 1; then
6239 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6240 fi
6241
6242 if test "$wxUSE_COMMONDLGS" = yes; then
6243 echo "$ac_t""yes" 1>&6
6244 else
6245 echo "$ac_t""no" 1>&6
6246 fi
6247
6248
6249 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6250echo "configure:6251: checking for --enable-choicedlg" >&5
6251 no_cache=0
6252 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6253if test "${enable_choicedlg+set}" = set; then
6254 enableval="$enable_choicedlg"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6258 else
6259 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6260 fi
6261
6262else
6263
6264 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6272
6273fi
6274
6275
6276 eval "$ac_cv_use_choicedlg"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_CHOICEDLG" = yes; then
6282 echo "$ac_t""yes" 1>&6
6283 else
6284 echo "$ac_t""no" 1>&6
6285 fi
6286
6287
6288 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6289echo "configure:6290: checking for --enable-coldlg" >&5
6290 no_cache=0
6291 # Check whether --enable-coldlg or --disable-coldlg was given.
6292if test "${enable_coldlg+set}" = set; then
6293 enableval="$enable_coldlg"
6294
6295 if test "$enableval" = yes; then
6296 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6297 else
6298 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6299 fi
6300
6301else
6302
6303 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6304 if test "x$LINE" != x ; then
6305 eval "DEFAULT_$LINE"
6306 else
6307 no_cache=1
6308 fi
6309
6310 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6311
6312fi
6313
6314
6315 eval "$ac_cv_use_coldlg"
6316 if test "$no_cache" != 1; then
6317 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6318 fi
6319
6320 if test "$wxUSE_COLOURDLG" = yes; then
6321 echo "$ac_t""yes" 1>&6
6322 else
6323 echo "$ac_t""no" 1>&6
6324 fi
6325
6326
6327 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6328echo "configure:6329: checking for --enable-filedlg" >&5
6329 no_cache=0
6330 # Check whether --enable-filedlg or --disable-filedlg was given.
6331if test "${enable_filedlg+set}" = set; then
6332 enableval="$enable_filedlg"
6333
6334 if test "$enableval" = yes; then
6335 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6336 else
6337 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6338 fi
6339
6340else
6341
6342 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6343 if test "x$LINE" != x ; then
6344 eval "DEFAULT_$LINE"
6345 else
6346 no_cache=1
6347 fi
6348
6349 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6350
6351fi
6352
6353
6354 eval "$ac_cv_use_filedlg"
6355 if test "$no_cache" != 1; then
6356 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6357 fi
6358
6359 if test "$wxUSE_FILEDLG" = yes; then
6360 echo "$ac_t""yes" 1>&6
6361 else
6362 echo "$ac_t""no" 1>&6
6363 fi
6364
6365
6366 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6367echo "configure:6368: checking for --enable-fontdlg" >&5
6368 no_cache=0
6369 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6370if test "${enable_fontdlg+set}" = set; then
6371 enableval="$enable_fontdlg"
6372
6373 if test "$enableval" = yes; then
6374 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6375 else
6376 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6377 fi
6378
6379else
6380
6381 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6382 if test "x$LINE" != x ; then
6383 eval "DEFAULT_$LINE"
6384 else
6385 no_cache=1
6386 fi
6387
6388 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6389
6390fi
6391
6392
6393 eval "$ac_cv_use_fontdlg"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_FONTDLG" = yes; then
6399 echo "$ac_t""yes" 1>&6
6400 else
6401 echo "$ac_t""no" 1>&6
6402 fi
6403
6404
6405 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6406echo "configure:6407: checking for --enable-dirdlg" >&5
6407 no_cache=0
6408 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6409if test "${enable_dirdlg+set}" = set; then
6410 enableval="$enable_dirdlg"
6411
6412 if test "$enableval" = yes; then
6413 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6414 else
6415 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6416 fi
6417
6418else
6419
6420 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6421 if test "x$LINE" != x ; then
6422 eval "DEFAULT_$LINE"
6423 else
6424 no_cache=1
6425 fi
6426
6427 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6428
6429fi
6430
6431
6432 eval "$ac_cv_use_dirdlg"
6433 if test "$no_cache" != 1; then
6434 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6435 fi
6436
6437 if test "$wxUSE_DIRDLG" = yes; then
6438 echo "$ac_t""yes" 1>&6
6439 else
6440 echo "$ac_t""no" 1>&6
6441 fi
6442
6443
6444 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6445echo "configure:6446: checking for --enable-msgdlg" >&5
6446 no_cache=0
6447 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6448if test "${enable_msgdlg+set}" = set; then
6449 enableval="$enable_msgdlg"
6450
6451 if test "$enableval" = yes; then
6452 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6453 else
6454 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6455 fi
6456
6457else
6458
6459 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6460 if test "x$LINE" != x ; then
6461 eval "DEFAULT_$LINE"
6462 else
6463 no_cache=1
6464 fi
6465
6466 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6467
6468fi
6469
6470
6471 eval "$ac_cv_use_msgdlg"
6472 if test "$no_cache" != 1; then
6473 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6474 fi
6475
6476 if test "$wxUSE_MSGDLG" = yes; then
6477 echo "$ac_t""yes" 1>&6
6478 else
6479 echo "$ac_t""no" 1>&6
6480 fi
6481
6482
6483 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6484echo "configure:6485: checking for --enable-numberdlg" >&5
6485 no_cache=0
6486 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6487if test "${enable_numberdlg+set}" = set; then
6488 enableval="$enable_numberdlg"
6489
6490 if test "$enableval" = yes; then
6491 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6492 else
6493 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6494 fi
6495
6496else
6497
6498 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6499 if test "x$LINE" != x ; then
6500 eval "DEFAULT_$LINE"
6501 else
6502 no_cache=1
6503 fi
6504
6505 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6506
6507fi
6508
6509
6510 eval "$ac_cv_use_numberdlg"
6511 if test "$no_cache" != 1; then
6512 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6513 fi
6514
6515 if test "$wxUSE_NUMBERDLG" = yes; then
6516 echo "$ac_t""yes" 1>&6
6517 else
6518 echo "$ac_t""no" 1>&6
6519 fi
6520
6521
6522 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6523echo "configure:6524: checking for --enable-textdlg" >&5
6524 no_cache=0
6525 # Check whether --enable-textdlg or --disable-textdlg was given.
6526if test "${enable_textdlg+set}" = set; then
6527 enableval="$enable_textdlg"
6528
6529 if test "$enableval" = yes; then
6530 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6531 else
6532 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6533 fi
6534
6535else
6536
6537 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6538 if test "x$LINE" != x ; then
6539 eval "DEFAULT_$LINE"
6540 else
6541 no_cache=1
6542 fi
6543
6544 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6545
6546fi
6547
6548
6549 eval "$ac_cv_use_textdlg"
6550 if test "$no_cache" != 1; then
6551 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6552 fi
6553
6554 if test "$wxUSE_TEXTDLG" = yes; then
6555 echo "$ac_t""yes" 1>&6
6556 else
6557 echo "$ac_t""no" 1>&6
6558 fi
6559
6560
6561 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6562echo "configure:6563: checking for --enable-tipdlg" >&5
6563 no_cache=0
6564 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6565if test "${enable_tipdlg+set}" = set; then
6566 enableval="$enable_tipdlg"
6567
6568 if test "$enableval" = yes; then
6569 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6570 else
6571 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6572 fi
6573
6574else
6575
6576 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6584
6585fi
6586
6587
6588 eval "$ac_cv_use_tipdlg"
6589 if test "$no_cache" != 1; then
6590 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6591 fi
6592
6593 if test "$wxUSE_STARTUP_TIPS" = yes; then
6594 echo "$ac_t""yes" 1>&6
6595 else
6596 echo "$ac_t""no" 1>&6
6597 fi
6598
6599
6600 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
6601echo "configure:6602: checking for --enable-progressdlg" >&5
6602 no_cache=0
6603 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6604if test "${enable_progressdlg+set}" = set; then
6605 enableval="$enable_progressdlg"
6606
6607 if test "$enableval" = yes; then
6608 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6609 else
6610 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6611 fi
6612
6613else
6614
6615 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6616 if test "x$LINE" != x ; then
6617 eval "DEFAULT_$LINE"
6618 else
6619 no_cache=1
6620 fi
6621
6622 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
6623
6624fi
6625
6626
6627 eval "$ac_cv_use_progressdlg"
6628 if test "$no_cache" != 1; then
6629 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6630 fi
6631
6632 if test "$wxUSE_PROGRESSDLG" = yes; then
6633 echo "$ac_t""yes" 1>&6
6634 else
6635 echo "$ac_t""no" 1>&6
6636 fi
6637
6638
6639 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
6640echo "configure:6641: checking for --enable-menus" >&5
6641 no_cache=0
6642 # Check whether --enable-menus or --disable-menus was given.
6643if test "${enable_menus+set}" = set; then
6644 enableval="$enable_menus"
6645
6646 if test "$enableval" = yes; then
6647 ac_cv_use_menus='wxUSE_MENUS=yes'
6648 else
6649 ac_cv_use_menus='wxUSE_MENUS=no'
6650 fi
6651
6652else
6653
6654 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6655 if test "x$LINE" != x ; then
6656 eval "DEFAULT_$LINE"
6657 else
6658 no_cache=1
6659 fi
6660
6661 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6662
6663fi
6664
6665
6666 eval "$ac_cv_use_menus"
6667 if test "$no_cache" != 1; then
6668 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6669 fi
6670
6671 if test "$wxUSE_MENUS" = yes; then
6672 echo "$ac_t""yes" 1>&6
6673 else
6674 echo "$ac_t""no" 1>&6
6675 fi
6676
6677
6678 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
6679echo "configure:6680: checking for --enable-miniframe" >&5
6680 no_cache=0
6681 # Check whether --enable-miniframe or --disable-miniframe was given.
6682if test "${enable_miniframe+set}" = set; then
6683 enableval="$enable_miniframe"
6684
6685 if test "$enableval" = yes; then
6686 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6687 else
6688 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6689 fi
6690
6691else
6692
6693 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
6701
6702fi
6703
6704
6705 eval "$ac_cv_use_miniframe"
6706 if test "$no_cache" != 1; then
6707 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6708 fi
6709
6710 if test "$wxUSE_MINIFRAME" = yes; then
6711 echo "$ac_t""yes" 1>&6
6712 else
6713 echo "$ac_t""no" 1>&6
6714 fi
6715
6716
6717 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
6718echo "configure:6719: checking for --enable-html" >&5
6719 no_cache=0
6720 # Check whether --enable-html or --disable-html was given.
6721if test "${enable_html+set}" = set; then
6722 enableval="$enable_html"
6723
6724 if test "$enableval" = yes; then
6725 ac_cv_use_html='wxUSE_HTML=yes'
6726 else
6727 ac_cv_use_html='wxUSE_HTML=no'
6728 fi
6729
6730else
6731
6732 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6733 if test "x$LINE" != x ; then
6734 eval "DEFAULT_$LINE"
6735 else
6736 no_cache=1
6737 fi
6738
6739 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6740
6741fi
6742
6743
6744 eval "$ac_cv_use_html"
6745 if test "$no_cache" != 1; then
6746 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6747 fi
6748
6749 if test "$wxUSE_HTML" = yes; then
6750 echo "$ac_t""yes" 1>&6
6751 else
6752 echo "$ac_t""no" 1>&6
6753 fi
6754
6755
6756 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
6757echo "configure:6758: checking for --enable-tooltips" >&5
6758 no_cache=0
6759 # Check whether --enable-tooltips or --disable-tooltips was given.
6760if test "${enable_tooltips+set}" = set; then
6761 enableval="$enable_tooltips"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6765 else
6766 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6767 fi
6768
6769else
6770
6771 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6779
6780fi
6781
6782
6783 eval "$ac_cv_use_tooltips"
6784 if test "$no_cache" != 1; then
6785 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6786 fi
6787
6788 if test "$wxUSE_TOOLTIPS" = yes; then
6789 echo "$ac_t""yes" 1>&6
6790 else
6791 echo "$ac_t""no" 1>&6
6792 fi
6793
6794
6795 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
6796echo "configure:6797: checking for --enable-splines" >&5
6797 no_cache=0
6798 # Check whether --enable-splines or --disable-splines was given.
6799if test "${enable_splines+set}" = set; then
6800 enableval="$enable_splines"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_splines='wxUSE_SPLINES=yes'
6804 else
6805 ac_cv_use_splines='wxUSE_SPLINES=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
6818
6819fi
6820
6821
6822 eval "$ac_cv_use_splines"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_SPLINES" = yes; then
6828 echo "$ac_t""yes" 1>&6
6829 else
6830 echo "$ac_t""no" 1>&6
6831 fi
6832
6833
6834 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
6835echo "configure:6836: checking for --enable-validators" >&5
6836 no_cache=0
6837 # Check whether --enable-validators or --disable-validators was given.
6838if test "${enable_validators+set}" = set; then
6839 enableval="$enable_validators"
6840
6841 if test "$enableval" = yes; then
6842 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6843 else
6844 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6845 fi
6846
6847else
6848
6849 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6850 if test "x$LINE" != x ; then
6851 eval "DEFAULT_$LINE"
6852 else
6853 no_cache=1
6854 fi
6855
6856 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
6857
6858fi
6859
6860
6861 eval "$ac_cv_use_validators"
6862 if test "$no_cache" != 1; then
6863 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6864 fi
6865
6866 if test "$wxUSE_VALIDATORS" = yes; then
6867 echo "$ac_t""yes" 1>&6
6868 else
6869 echo "$ac_t""no" 1>&6
6870 fi
6871
6872
6873 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
6874echo "configure:6875: checking for --enable-busyinfo" >&5
6875 no_cache=0
6876 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6877if test "${enable_busyinfo+set}" = set; then
6878 enableval="$enable_busyinfo"
6879
6880 if test "$enableval" = yes; then
6881 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6882 else
6883 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6884 fi
6885
6886else
6887
6888 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6889 if test "x$LINE" != x ; then
6890 eval "DEFAULT_$LINE"
6891 else
6892 no_cache=1
6893 fi
6894
6895 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
6896
6897fi
6898
6899
6900 eval "$ac_cv_use_busyinfo"
6901 if test "$no_cache" != 1; then
6902 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6903 fi
6904
6905 if test "$wxUSE_BUSYINFO" = yes; then
6906 echo "$ac_t""yes" 1>&6
6907 else
6908 echo "$ac_t""no" 1>&6
6909 fi
6910
6911
6912 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
6913echo "configure:6914: checking for --enable-joystick" >&5
6914 no_cache=0
6915 # Check whether --enable-joystick or --disable-joystick was given.
6916if test "${enable_joystick+set}" = set; then
6917 enableval="$enable_joystick"
6918
6919 if test "$enableval" = yes; then
6920 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
6921 else
6922 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
6923 fi
6924
6925else
6926
6927 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
6928 if test "x$LINE" != x ; then
6929 eval "DEFAULT_$LINE"
6930 else
6931 no_cache=1
6932 fi
6933
6934 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
6935
6936fi
6937
6938
6939 eval "$ac_cv_use_joystick"
6940 if test "$no_cache" != 1; then
6941 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
6942 fi
6943
6944 if test "$wxUSE_JOYSTICK" = yes; then
6945 echo "$ac_t""yes" 1>&6
6946 else
6947 echo "$ac_t""no" 1>&6
6948 fi
6949
6950
6951 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
6952echo "configure:6953: checking for --enable-metafile" >&5
6953 no_cache=0
6954 # Check whether --enable-metafile or --disable-metafile was given.
6955if test "${enable_metafile+set}" = set; then
6956 enableval="$enable_metafile"
6957
6958 if test "$enableval" = yes; then
6959 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6960 else
6961 ac_cv_use_metafile='wxUSE_METAFILE=no'
6962 fi
6963
6964else
6965
6966 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6967 if test "x$LINE" != x ; then
6968 eval "DEFAULT_$LINE"
6969 else
6970 no_cache=1
6971 fi
6972
6973 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6974
6975fi
6976
6977
6978 eval "$ac_cv_use_metafile"
6979 if test "$no_cache" != 1; then
6980 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6981 fi
6982
6983 if test "$wxUSE_METAFILE" = yes; then
6984 echo "$ac_t""yes" 1>&6
6985 else
6986 echo "$ac_t""no" 1>&6
6987 fi
6988
6989
6990
6991
6992 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
6993echo "configure:6994: checking for --enable-image" >&5
6994 no_cache=0
6995 # Check whether --enable-image or --disable-image was given.
6996if test "${enable_image+set}" = set; then
6997 enableval="$enable_image"
6998
6999 if test "$enableval" = yes; then
7000 ac_cv_use_image='wxUSE_IMAGE=yes'
7001 else
7002 ac_cv_use_image='wxUSE_IMAGE=no'
7003 fi
7004
7005else
7006
7007 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7008 if test "x$LINE" != x ; then
7009 eval "DEFAULT_$LINE"
7010 else
7011 no_cache=1
7012 fi
7013
7014 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7015
7016fi
7017
7018
7019 eval "$ac_cv_use_image"
7020 if test "$no_cache" != 1; then
7021 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7022 fi
7023
7024 if test "$wxUSE_IMAGE" = yes; then
7025 echo "$ac_t""yes" 1>&6
7026 else
7027 echo "$ac_t""no" 1>&6
7028 fi
7029
7030
7031 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7032echo "configure:7033: checking for --enable-gif" >&5
7033 no_cache=0
7034 # Check whether --enable-gif or --disable-gif was given.
7035if test "${enable_gif+set}" = set; then
7036 enableval="$enable_gif"
7037
7038 if test "$enableval" = yes; then
7039 ac_cv_use_gif='wxUSE_GIF=yes'
7040 else
7041 ac_cv_use_gif='wxUSE_GIF=no'
7042 fi
7043
7044else
7045
7046 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7047 if test "x$LINE" != x ; then
7048 eval "DEFAULT_$LINE"
7049 else
7050 no_cache=1
7051 fi
7052
7053 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7054
7055fi
7056
7057
7058 eval "$ac_cv_use_gif"
7059 if test "$no_cache" != 1; then
7060 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7061 fi
7062
7063 if test "$wxUSE_GIF" = yes; then
7064 echo "$ac_t""yes" 1>&6
7065 else
7066 echo "$ac_t""no" 1>&6
7067 fi
7068
7069
7070 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7071echo "configure:7072: checking for --enable-pcx" >&5
7072 no_cache=0
7073 # Check whether --enable-pcx or --disable-pcx was given.
7074if test "${enable_pcx+set}" = set; then
7075 enableval="$enable_pcx"
7076
7077 if test "$enableval" = yes; then
7078 ac_cv_use_pcx='wxUSE_PCX=yes'
7079 else
7080 ac_cv_use_pcx='wxUSE_PCX=no'
7081 fi
7082
7083else
7084
7085 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7086 if test "x$LINE" != x ; then
7087 eval "DEFAULT_$LINE"
7088 else
7089 no_cache=1
7090 fi
7091
7092 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7093
7094fi
7095
7096
7097 eval "$ac_cv_use_pcx"
7098 if test "$no_cache" != 1; then
7099 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7100 fi
7101
7102 if test "$wxUSE_PCX" = yes; then
7103 echo "$ac_t""yes" 1>&6
7104 else
7105 echo "$ac_t""no" 1>&6
7106 fi
7107
7108
7109 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7110echo "configure:7111: checking for --enable-pnm" >&5
7111 no_cache=0
7112 # Check whether --enable-pnm or --disable-pnm was given.
7113if test "${enable_pnm+set}" = set; then
7114 enableval="$enable_pnm"
7115
7116 if test "$enableval" = yes; then
7117 ac_cv_use_pnm='wxUSE_PNM=yes'
7118 else
7119 ac_cv_use_pnm='wxUSE_PNM=no'
7120 fi
7121
7122else
7123
7124 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7125 if test "x$LINE" != x ; then
7126 eval "DEFAULT_$LINE"
7127 else
7128 no_cache=1
7129 fi
7130
7131 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7132
7133fi
7134
7135
7136 eval "$ac_cv_use_pnm"
7137 if test "$no_cache" != 1; then
7138 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7139 fi
7140
7141 if test "$wxUSE_PNM" = yes; then
7142 echo "$ac_t""yes" 1>&6
7143 else
7144 echo "$ac_t""no" 1>&6
7145 fi
7146
7147
7148 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7149echo "configure:7150: checking for --enable-pnm" >&5
7150 no_cache=0
7151 # Check whether --enable-pnm or --disable-pnm was given.
7152if test "${enable_pnm+set}" = set; then
7153 enableval="$enable_pnm"
7154
7155 if test "$enableval" = yes; then
7156 ac_cv_use_pnm='wxUSE_XPM=yes'
7157 else
7158 ac_cv_use_pnm='wxUSE_XPM=no'
7159 fi
7160
7161else
7162
7163 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7164 if test "x$LINE" != x ; then
7165 eval "DEFAULT_$LINE"
7166 else
7167 no_cache=1
7168 fi
7169
7170 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7171
7172fi
7173
7174
7175 eval "$ac_cv_use_pnm"
7176 if test "$no_cache" != 1; then
7177 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7178 fi
7179
7180 if test "$wxUSE_XPM" = yes; then
7181 echo "$ac_t""yes" 1>&6
7182 else
7183 echo "$ac_t""no" 1>&6
7184 fi
7185
7186
7187fi
7188
7189
7190 echo "saving argument cache $wx_arg_cache_file"
7191 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7192
7193
7194
7195echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7196echo "configure:7197: checking for toolkit" >&5
7197
7198if test "$wxUSE_GUI" = "yes"; then
7199
7200if test "$USE_BEOS" = 1; then
7201 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7202fi
7203
7204if test "$TOOLKIT_GIVEN" = 1; then
7205 for toolkit in `echo $ALL_TOOLKITS`; do
7206 var=wxUSE_$toolkit
7207 eval "value=\$${var}"
7208 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7209 done
7210else
7211 for toolkit in `echo $ALL_TOOLKITS`; do
7212 if test "$has_toolkit_in_cache" != 1; then
7213 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7214 else
7215 var=DEFAULT_wxUSE_$toolkit
7216 fi
7217 eval "wxUSE_$toolkit=\$${var}"
7218 done
7219fi
7220
7221NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7222
7223case "${host}" in
7224 *-pc-os2_emx )
7225 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7226 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7227 LEX_STEM="lexyy"
7228 ;;
7229 *)
7230 PATH_IFS=':'
7231 LEX_STEM="lex.yy"
7232 ;;
7233esac
7234
7235case "$NUM_TOOLKITS" in
7236 1)
7237 ;;
7238 0)
7239 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7240 ;;
7241 *)
7242 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7243esac
7244
7245for toolkit in `echo $ALL_TOOLKITS`; do
7246 var=wxUSE_$toolkit
7247 eval "value=\$${var}"
7248 if test "x$value" != x; then
7249 cache_var=CACHE_$toolkit
7250 eval "cache=\$${cache_var}"
7251 if test "$cache" = 1; then
7252 echo "$var=$value" >> ${wx_arg_cache_file}
7253 fi
7254 if test "$value" = 1; then
7255 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7256 echo "$ac_t""$toolkit_echo" 1>&6
7257 fi
7258 fi
7259done
7260
7261else
7262 PATH_IFS=':'
7263 echo "$ac_t""base only" 1>&6
7264fi
7265
7266
7267cat > confcache <<\EOF
7268# This file is a shell script that caches the results of configure
7269# tests run on this system so they can be shared between configure
7270# scripts and configure runs. It is not useful on other systems.
7271# If it contains results you don't want to keep, you may remove or edit it.
7272#
7273# By default, configure uses ./config.cache as the cache file,
7274# creating it if it does not exist already. You can give configure
7275# the --cache-file=FILE option to use a different cache file; that is
7276# what configure does when it calls configure scripts in
7277# subdirectories, so they share the cache.
7278# Giving --cache-file=/dev/null disables caching, for debugging configure.
7279# config.status only pays attention to the cache file if you give it the
7280# --recheck option to rerun configure.
7281#
7282EOF
7283# The following way of writing the cache mishandles newlines in values,
7284# but we know of no workaround that is simple, portable, and efficient.
7285# So, don't put newlines in cache variables' values.
7286# Ultrix sh set writes to stderr and can't be redirected directly,
7287# and sets the high bit in the cache file unless we assign to the vars.
7288(set) 2>&1 |
7289 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7290 *ac_space=\ *)
7291 # `set' does not quote correctly, so add quotes (double-quote substitution
7292 # turns \\\\ into \\, and sed turns \\ into \).
7293 sed -n \
7294 -e "s/'/'\\\\''/g" \
7295 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7296 ;;
7297 *)
7298 # `set' quotes correctly as required by POSIX, so do not add quotes.
7299 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7300 ;;
7301 esac >> confcache
7302if cmp -s $cache_file confcache; then
7303 :
7304else
7305 if test -w $cache_file; then
7306 echo "updating cache $cache_file"
7307 cat confcache > $cache_file
7308 else
7309 echo "not updating unwritable cache $cache_file"
7310 fi
7311fi
7312rm -f confcache
7313
7314
7315if test "$build" != "$host" ; then
7316 CC=$host_alias-gcc
7317 CXX=$host_alias-c++
7318 AR=$host_alias-ar
7319 RANLIB=$host_alias-ranlib
7320 DLLTOOL=$host_alias-dlltool
7321 RESCOMP=$host_alias-windres
7322 LD=$host_alias-ld
7323 NM=$host_alias-nm
7324 STRIP=$host_alias-strip
7325fi
7326
7327# Extract the first word of "gcc", so it can be a program name with args.
7328set dummy gcc; ac_word=$2
7329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7330echo "configure:7331: checking for $ac_word" >&5
7331if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7333else
7334 if test -n "$CC"; then
7335 ac_cv_prog_CC="$CC" # Let the user override the test.
7336else
7337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7338 ac_dummy="$PATH"
7339 for ac_dir in $ac_dummy; do
7340 test -z "$ac_dir" && ac_dir=.
7341 if test -f $ac_dir/$ac_word; then
7342 ac_cv_prog_CC="gcc"
7343 break
7344 fi
7345 done
7346 IFS="$ac_save_ifs"
7347fi
7348fi
7349CC="$ac_cv_prog_CC"
7350if test -n "$CC"; then
7351 echo "$ac_t""$CC" 1>&6
7352else
7353 echo "$ac_t""no" 1>&6
7354fi
7355
7356if test -z "$CC"; then
7357 # Extract the first word of "cc", so it can be a program name with args.
7358set dummy cc; ac_word=$2
7359echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7360echo "configure:7361: checking for $ac_word" >&5
7361if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7363else
7364 if test -n "$CC"; then
7365 ac_cv_prog_CC="$CC" # Let the user override the test.
7366else
7367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7368 ac_prog_rejected=no
7369 ac_dummy="$PATH"
7370 for ac_dir in $ac_dummy; do
7371 test -z "$ac_dir" && ac_dir=.
7372 if test -f $ac_dir/$ac_word; then
7373 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7374 ac_prog_rejected=yes
7375 continue
7376 fi
7377 ac_cv_prog_CC="cc"
7378 break
7379 fi
7380 done
7381 IFS="$ac_save_ifs"
7382if test $ac_prog_rejected = yes; then
7383 # We found a bogon in the path, so make sure we never use it.
7384 set dummy $ac_cv_prog_CC
7385 shift
7386 if test $# -gt 0; then
7387 # We chose a different compiler from the bogus one.
7388 # However, it has the same basename, so the bogon will be chosen
7389 # first if we set CC to just the basename; use the full file name.
7390 shift
7391 set dummy "$ac_dir/$ac_word" "$@"
7392 shift
7393 ac_cv_prog_CC="$@"
7394 fi
7395fi
7396fi
7397fi
7398CC="$ac_cv_prog_CC"
7399if test -n "$CC"; then
7400 echo "$ac_t""$CC" 1>&6
7401else
7402 echo "$ac_t""no" 1>&6
7403fi
7404
7405 if test -z "$CC"; then
7406 case "`uname -s`" in
7407 *win32* | *WIN32*)
7408 # Extract the first word of "cl", so it can be a program name with args.
7409set dummy cl; ac_word=$2
7410echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7411echo "configure:7412: checking for $ac_word" >&5
7412if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7413 echo $ac_n "(cached) $ac_c" 1>&6
7414else
7415 if test -n "$CC"; then
7416 ac_cv_prog_CC="$CC" # Let the user override the test.
7417else
7418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7419 ac_dummy="$PATH"
7420 for ac_dir in $ac_dummy; do
7421 test -z "$ac_dir" && ac_dir=.
7422 if test -f $ac_dir/$ac_word; then
7423 ac_cv_prog_CC="cl"
7424 break
7425 fi
7426 done
7427 IFS="$ac_save_ifs"
7428fi
7429fi
7430CC="$ac_cv_prog_CC"
7431if test -n "$CC"; then
7432 echo "$ac_t""$CC" 1>&6
7433else
7434 echo "$ac_t""no" 1>&6
7435fi
7436 ;;
7437 esac
7438 fi
7439 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7440fi
7441
7442echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7443echo "configure:7444: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7444
7445ac_ext=c
7446# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7447ac_cpp='$CPP $CPPFLAGS'
7448ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7449ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7450cross_compiling=$ac_cv_prog_cc_cross
7451
7452cat > conftest.$ac_ext << EOF
7453
7454#line 7455 "configure"
7455#include "confdefs.h"
7456
7457main(){return(0);}
7458EOF
7459if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460 ac_cv_prog_cc_works=yes
7461 # If we can't run a trivial program, we are probably using a cross compiler.
7462 if (./conftest; exit) 2>/dev/null; then
7463 ac_cv_prog_cc_cross=no
7464 else
7465 ac_cv_prog_cc_cross=yes
7466 fi
7467else
7468 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7470 ac_cv_prog_cc_works=no
7471fi
7472rm -fr conftest*
7473ac_ext=c
7474# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7475ac_cpp='$CPP $CPPFLAGS'
7476ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7477ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7478cross_compiling=$ac_cv_prog_cc_cross
7479
7480echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7481if test $ac_cv_prog_cc_works = no; then
7482 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7483fi
7484echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7485echo "configure:7486: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7486echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7487cross_compiling=$ac_cv_prog_cc_cross
7488
7489echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7490echo "configure:7491: checking whether we are using GNU C" >&5
7491if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7492 echo $ac_n "(cached) $ac_c" 1>&6
7493else
7494 cat > conftest.c <<EOF
7495#ifdef __GNUC__
7496 yes;
7497#endif
7498EOF
7499if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7500 ac_cv_prog_gcc=yes
7501else
7502 ac_cv_prog_gcc=no
7503fi
7504fi
7505
7506echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7507
7508if test $ac_cv_prog_gcc = yes; then
7509 GCC=yes
7510else
7511 GCC=
7512fi
7513
7514ac_test_CFLAGS="${CFLAGS+set}"
7515ac_save_CFLAGS="$CFLAGS"
7516CFLAGS=
7517echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7518echo "configure:7519: checking whether ${CC-cc} accepts -g" >&5
7519if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7521else
7522 echo 'void f(){}' > conftest.c
7523if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7524 ac_cv_prog_cc_g=yes
7525else
7526 ac_cv_prog_cc_g=no
7527fi
7528rm -f conftest*
7529
7530fi
7531
7532echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7533if test "$ac_test_CFLAGS" = set; then
7534 CFLAGS="$ac_save_CFLAGS"
7535elif test $ac_cv_prog_cc_g = yes; then
7536 if test "$GCC" = yes; then
7537 CFLAGS="-g -O2"
7538 else
7539 CFLAGS="-g"
7540 fi
7541else
7542 if test "$GCC" = yes; then
7543 CFLAGS="-O2"
7544 else
7545 CFLAGS=
7546 fi
7547fi
7548
7549
7550CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7551
7552echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7553echo "configure:7554: checking how to run the C preprocessor" >&5
7554# On Suns, sometimes $CPP names a directory.
7555if test -n "$CPP" && test -d "$CPP"; then
7556 CPP=
7557fi
7558if test -z "$CPP"; then
7559if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7560 echo $ac_n "(cached) $ac_c" 1>&6
7561else
7562 # This must be in double quotes, not single quotes, because CPP may get
7563 # substituted into the Makefile and "${CC-cc}" will confuse make.
7564 CPP="${CC-cc} -E"
7565 # On the NeXT, cc -E runs the code through the compiler's parser,
7566 # not just through cpp.
7567 cat > conftest.$ac_ext <<EOF
7568#line 7569 "configure"
7569#include "confdefs.h"
7570#include <assert.h>
7571Syntax Error
7572EOF
7573ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7574{ (eval echo configure:7575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7575ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7576if test -z "$ac_err"; then
7577 :
7578else
7579 echo "$ac_err" >&5
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 rm -rf conftest*
7583 CPP="${CC-cc} -E -traditional-cpp"
7584 cat > conftest.$ac_ext <<EOF
7585#line 7586 "configure"
7586#include "confdefs.h"
7587#include <assert.h>
7588Syntax Error
7589EOF
7590ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7591{ (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7592ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7593if test -z "$ac_err"; then
7594 :
7595else
7596 echo "$ac_err" >&5
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 rm -rf conftest*
7600 CPP="${CC-cc} -nologo -E"
7601 cat > conftest.$ac_ext <<EOF
7602#line 7603 "configure"
7603#include "confdefs.h"
7604#include <assert.h>
7605Syntax Error
7606EOF
7607ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7608{ (eval echo configure:7609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7609ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7610if test -z "$ac_err"; then
7611 :
7612else
7613 echo "$ac_err" >&5
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 CPP=/lib/cpp
7618fi
7619rm -f conftest*
7620fi
7621rm -f conftest*
7622fi
7623rm -f conftest*
7624 ac_cv_prog_CPP="$CPP"
7625fi
7626 CPP="$ac_cv_prog_CPP"
7627else
7628 ac_cv_prog_CPP="$CPP"
7629fi
7630echo "$ac_t""$CPP" 1>&6
7631
7632
7633if test $ac_cv_prog_gcc = yes; then
7634 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7635echo "configure:7636: checking whether ${CC-cc} needs -traditional" >&5
7636if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7638else
7639 ac_pattern="Autoconf.*'x'"
7640 cat > conftest.$ac_ext <<EOF
7641#line 7642 "configure"
7642#include "confdefs.h"
7643#include <sgtty.h>
7644Autoconf TIOCGETP
7645EOF
7646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7647 egrep "$ac_pattern" >/dev/null 2>&1; then
7648 rm -rf conftest*
7649 ac_cv_prog_gcc_traditional=yes
7650else
7651 rm -rf conftest*
7652 ac_cv_prog_gcc_traditional=no
7653fi
7654rm -f conftest*
7655
7656
7657 if test $ac_cv_prog_gcc_traditional = no; then
7658 cat > conftest.$ac_ext <<EOF
7659#line 7660 "configure"
7660#include "confdefs.h"
7661#include <termio.h>
7662Autoconf TCGETA
7663EOF
7664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7665 egrep "$ac_pattern" >/dev/null 2>&1; then
7666 rm -rf conftest*
7667 ac_cv_prog_gcc_traditional=yes
7668fi
7669rm -f conftest*
7670
7671 fi
7672fi
7673
7674echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
7675 if test $ac_cv_prog_gcc_traditional = yes; then
7676 CC="$CC -traditional"
7677 fi
7678fi
7679
7680
7681
7682ac_ext=C
7683# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7684ac_cpp='$CXXCPP $CPPFLAGS'
7685ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7686ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7687cross_compiling=$ac_cv_prog_cxx_cross
7688
7689
7690for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7691do
7692# Extract the first word of "$ac_prog", so it can be a program name with args.
7693set dummy $ac_prog; ac_word=$2
7694echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7695echo "configure:7696: checking for $ac_word" >&5
7696if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7698else
7699 if test -n "$CXX"; then
7700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7701else
7702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7703 ac_dummy="$PATH"
7704 for ac_dir in $ac_dummy; do
7705 test -z "$ac_dir" && ac_dir=.
7706 if test -f $ac_dir/$ac_word; then
7707 ac_cv_prog_CXX="$ac_prog"
7708 break
7709 fi
7710 done
7711 IFS="$ac_save_ifs"
7712fi
7713fi
7714CXX="$ac_cv_prog_CXX"
7715if test -n "$CXX"; then
7716 echo "$ac_t""$CXX" 1>&6
7717else
7718 echo "$ac_t""no" 1>&6
7719fi
7720
7721test -n "$CXX" && break
7722done
7723test -n "$CXX" || CXX="gcc"
7724
7725
7726echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7727echo "configure:7728: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
7728
7729ac_ext=C
7730# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7731ac_cpp='$CXXCPP $CPPFLAGS'
7732ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7733ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7734cross_compiling=$ac_cv_prog_cxx_cross
7735
7736cat > conftest.$ac_ext << EOF
7737
7738#line 7739 "configure"
7739#include "confdefs.h"
7740
7741int main(){return(0);}
7742EOF
7743if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7744 ac_cv_prog_cxx_works=yes
7745 # If we can't run a trivial program, we are probably using a cross compiler.
7746 if (./conftest; exit) 2>/dev/null; then
7747 ac_cv_prog_cxx_cross=no
7748 else
7749 ac_cv_prog_cxx_cross=yes
7750 fi
7751else
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 ac_cv_prog_cxx_works=no
7755fi
7756rm -fr conftest*
7757ac_ext=C
7758# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7759ac_cpp='$CXXCPP $CPPFLAGS'
7760ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7761ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7762cross_compiling=$ac_cv_prog_cxx_cross
7763
7764echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7765if test $ac_cv_prog_cxx_works = no; then
7766 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7767fi
7768echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7769echo "configure:7770: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
7770echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7771cross_compiling=$ac_cv_prog_cxx_cross
7772
7773echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7774echo "configure:7775: checking whether we are using GNU C++" >&5
7775if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7777else
7778 cat > conftest.C <<EOF
7779#ifdef __GNUC__
7780 yes;
7781#endif
7782EOF
7783if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7784 ac_cv_prog_gxx=yes
7785else
7786 ac_cv_prog_gxx=no
7787fi
7788fi
7789
7790echo "$ac_t""$ac_cv_prog_gxx" 1>&6
7791
7792if test $ac_cv_prog_gxx = yes; then
7793 GXX=yes
7794else
7795 GXX=
7796fi
7797
7798ac_test_CXXFLAGS="${CXXFLAGS+set}"
7799ac_save_CXXFLAGS="$CXXFLAGS"
7800CXXFLAGS=
7801echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7802echo "configure:7803: checking whether ${CXX-g++} accepts -g" >&5
7803if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6
7805else
7806 echo 'void f(){}' > conftest.cc
7807if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
7808 ac_cv_prog_cxx_g=yes
7809else
7810 ac_cv_prog_cxx_g=no
7811fi
7812rm -f conftest*
7813
7814fi
7815
7816echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
7817if test "$ac_test_CXXFLAGS" = set; then
7818 CXXFLAGS="$ac_save_CXXFLAGS"
7819elif test $ac_cv_prog_cxx_g = yes; then
7820 if test "$GXX" = yes; then
7821 CXXFLAGS="-g -O2"
7822 else
7823 CXXFLAGS="-g"
7824 fi
7825else
7826 if test "$GXX" = yes; then
7827 CXXFLAGS="-O2"
7828 else
7829 CXXFLAGS=
7830 fi
7831fi
7832
7833
7834echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7835echo "configure:7836: checking how to run the C++ preprocessor" >&5
7836if test -z "$CXXCPP"; then
7837if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7839else
7840 ac_ext=C
7841# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7842ac_cpp='$CXXCPP $CPPFLAGS'
7843ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7844ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7845cross_compiling=$ac_cv_prog_cxx_cross
7846 CXXCPP="${CXX-g++} -E"
7847 cat > conftest.$ac_ext <<EOF
7848#line 7849 "configure"
7849#include "confdefs.h"
7850#include <stdlib.h>
7851EOF
7852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7853{ (eval echo configure:7854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7855if test -z "$ac_err"; then
7856 :
7857else
7858 echo "$ac_err" >&5
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 rm -rf conftest*
7862 CXXCPP=/lib/cpp
7863fi
7864rm -f conftest*
7865 ac_cv_prog_CXXCPP="$CXXCPP"
7866ac_ext=C
7867# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7868ac_cpp='$CXXCPP $CPPFLAGS'
7869ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7870ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7871cross_compiling=$ac_cv_prog_cxx_cross
7872fi
7873fi
7874CXXCPP="$ac_cv_prog_CXXCPP"
7875echo "$ac_t""$CXXCPP" 1>&6
7876
7877
7878CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
7879
7880ac_ext=c
7881# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7882ac_cpp='$CPP $CPPFLAGS'
7883ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7884ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7885cross_compiling=$ac_cv_prog_cc_cross
7886
7887
7888# Extract the first word of "ranlib", so it can be a program name with args.
7889set dummy ranlib; ac_word=$2
7890echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7891echo "configure:7892: checking for $ac_word" >&5
7892if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7894else
7895 if test -n "$RANLIB"; then
7896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7897else
7898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7899 ac_dummy="$PATH"
7900 for ac_dir in $ac_dummy; do
7901 test -z "$ac_dir" && ac_dir=.
7902 if test -f $ac_dir/$ac_word; then
7903 ac_cv_prog_RANLIB="ranlib"
7904 break
7905 fi
7906 done
7907 IFS="$ac_save_ifs"
7908 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
7909fi
7910fi
7911RANLIB="$ac_cv_prog_RANLIB"
7912if test -n "$RANLIB"; then
7913 echo "$ac_t""$RANLIB" 1>&6
7914else
7915 echo "$ac_t""no" 1>&6
7916fi
7917
7918
7919# Extract the first word of "ar", so it can be a program name with args.
7920set dummy ar; ac_word=$2
7921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7922echo "configure:7923: checking for $ac_word" >&5
7923if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
7924 echo $ac_n "(cached) $ac_c" 1>&6
7925else
7926 if test -n "$AR"; then
7927 ac_cv_prog_AR="$AR" # Let the user override the test.
7928else
7929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7930 ac_dummy="$PATH"
7931 for ac_dir in $ac_dummy; do
7932 test -z "$ac_dir" && ac_dir=.
7933 if test -f $ac_dir/$ac_word; then
7934 ac_cv_prog_AR="ar"
7935 break
7936 fi
7937 done
7938 IFS="$ac_save_ifs"
7939 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
7940fi
7941fi
7942AR="$ac_cv_prog_AR"
7943if test -n "$AR"; then
7944 echo "$ac_t""$AR" 1>&6
7945else
7946 echo "$ac_t""no" 1>&6
7947fi
7948
7949
7950# Find a good install program. We prefer a C program (faster),
7951# so one script is as good as another. But avoid the broken or
7952# incompatible versions:
7953# SysV /etc/install, /usr/sbin/install
7954# SunOS /usr/etc/install
7955# IRIX /sbin/install
7956# AIX /bin/install
7957# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7958# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7959# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7960# ./install, which can be erroneously created by make from ./install.sh.
7961echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7962echo "configure:7963: checking for a BSD compatible install" >&5
7963if test -z "$INSTALL"; then
7964if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7966else
7967 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
7968 for ac_dir in $PATH; do
7969 # Account for people who put trailing slashes in PATH elements.
7970 case "$ac_dir/" in
7971 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7972 *)
7973 # OSF1 and SCO ODT 3.0 have their own names for install.
7974 # Don't use installbsd from OSF since it installs stuff as root
7975 # by default.
7976 for ac_prog in ginstall scoinst install; do
7977 if test -f $ac_dir/$ac_prog; then
7978 if test $ac_prog = install &&
7979 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7980 # AIX install. It has an incompatible calling convention.
7981 :
7982 else
7983 ac_cv_path_install="$ac_dir/$ac_prog -c"
7984 break 2
7985 fi
7986 fi
7987 done
7988 ;;
7989 esac
7990 done
7991 IFS="$ac_save_IFS"
7992
7993fi
7994 if test "${ac_cv_path_install+set}" = set; then
7995 INSTALL="$ac_cv_path_install"
7996 else
7997 # As a last resort, use the slow shell script. We don't cache a
7998 # path for INSTALL within a source directory, because that will
7999 # break other packages using the cache if that directory is
8000 # removed, or if the path is relative.
8001 INSTALL="$ac_install_sh"
8002 fi
8003fi
8004echo "$ac_t""$INSTALL" 1>&6
8005
8006# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8007# It thinks the first close brace ends the variable substitution.
8008test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8009
8010test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8011
8012test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8013
8014
8015# Extract the first word of "strip", so it can be a program name with args.
8016set dummy strip; ac_word=$2
8017echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8018echo "configure:8019: checking for $ac_word" >&5
8019if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8021else
8022 if test -n "$STRIP"; then
8023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8024else
8025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8026 ac_dummy="$PATH"
8027 for ac_dir in $ac_dummy; do
8028 test -z "$ac_dir" && ac_dir=.
8029 if test -f $ac_dir/$ac_word; then
8030 ac_cv_prog_STRIP="strip"
8031 break
8032 fi
8033 done
8034 IFS="$ac_save_ifs"
8035 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8036fi
8037fi
8038STRIP="$ac_cv_prog_STRIP"
8039if test -n "$STRIP"; then
8040 echo "$ac_t""$STRIP" 1>&6
8041else
8042 echo "$ac_t""no" 1>&6
8043fi
8044
8045
8046echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8047echo "configure:8048: checking make for VPATH support" >&5
8048cat - << EOF > confMake
8049check : file
8050 cp \$? \$@
8051 cp \$? final_file
8052EOF
8053
8054if test ! -d sub ; then
8055 mkdir sub
8056fi
8057echo dummy > sub/file
8058${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8059RESULT=$?
8060rm -f sub/file check final_file confMake
8061rmdir sub
8062if test "$RESULT" = 0; then
8063 echo "$ac_t""yes" 1>&6
8064else
8065 echo "$ac_t""no" 1>&6
8066 { echo "configure: error:
8067You need a make-utility that is able to use the variable
8068VPATH correctly.
8069If your version of make does not support VPATH correctly,
8070please install GNU-make (possibly as gmake), and start
8071configure with the following command:
8072export MAKE=gmake; ./configure for sh-type shells
8073setenv MAKE gmake; ./configure for csh-type shells
8074Also please do remember to use gmake in this case every time
8075you are trying to compile.
8076" 1>&2; exit 1; }
8077fi
8078
8079for ac_prog in 'bison -y' byacc
8080do
8081# Extract the first word of "$ac_prog", so it can be a program name with args.
8082set dummy $ac_prog; ac_word=$2
8083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8084echo "configure:8085: checking for $ac_word" >&5
8085if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
8087else
8088 if test -n "$YACC"; then
8089 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8090else
8091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8092 ac_dummy="$PATH"
8093 for ac_dir in $ac_dummy; do
8094 test -z "$ac_dir" && ac_dir=.
8095 if test -f $ac_dir/$ac_word; then
8096 ac_cv_prog_YACC="$ac_prog"
8097 break
8098 fi
8099 done
8100 IFS="$ac_save_ifs"
8101fi
8102fi
8103YACC="$ac_cv_prog_YACC"
8104if test -n "$YACC"; then
8105 echo "$ac_t""$YACC" 1>&6
8106else
8107 echo "$ac_t""no" 1>&6
8108fi
8109
8110test -n "$YACC" && break
8111done
8112test -n "$YACC" || YACC="yacc"
8113
8114
8115# Extract the first word of "flex", so it can be a program name with args.
8116set dummy flex; ac_word=$2
8117echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8118echo "configure:8119: checking for $ac_word" >&5
8119if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8121else
8122 if test -n "$LEX"; then
8123 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8124else
8125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8126 ac_dummy="$PATH"
8127 for ac_dir in $ac_dummy; do
8128 test -z "$ac_dir" && ac_dir=.
8129 if test -f $ac_dir/$ac_word; then
8130 ac_cv_prog_LEX="flex"
8131 break
8132 fi
8133 done
8134 IFS="$ac_save_ifs"
8135 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8136fi
8137fi
8138LEX="$ac_cv_prog_LEX"
8139if test -n "$LEX"; then
8140 echo "$ac_t""$LEX" 1>&6
8141else
8142 echo "$ac_t""no" 1>&6
8143fi
8144
8145if test -z "$LEXLIB"
8146then
8147 case "$LEX" in
8148 flex*) ac_lib=fl ;;
8149 *) ac_lib=l ;;
8150 esac
8151 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8152echo "configure:8153: checking for yywrap in -l$ac_lib" >&5
8153ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8154if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8156else
8157 ac_save_LIBS="$LIBS"
8158LIBS="-l$ac_lib $LIBS"
8159cat > conftest.$ac_ext <<EOF
8160#line 8161 "configure"
8161#include "confdefs.h"
8162/* Override any gcc2 internal prototype to avoid an error. */
8163/* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165char yywrap();
8166
8167int main() {
8168yywrap()
8169; return 0; }
8170EOF
8171if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8172 rm -rf conftest*
8173 eval "ac_cv_lib_$ac_lib_var=yes"
8174else
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 rm -rf conftest*
8178 eval "ac_cv_lib_$ac_lib_var=no"
8179fi
8180rm -f conftest*
8181LIBS="$ac_save_LIBS"
8182
8183fi
8184if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 LEXLIB="-l$ac_lib"
8187else
8188 echo "$ac_t""no" 1>&6
8189fi
8190
8191fi
8192
8193
8194echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8195echo "configure:8196: checking whether ln -s works" >&5
8196if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8198else
8199 rm -f conftestdata
8200if ln -s X conftestdata 2>/dev/null
8201then
8202 rm -f conftestdata
8203 ac_cv_prog_LN_S="ln -s"
8204else
8205 ac_cv_prog_LN_S=ln
8206fi
8207fi
8208LN_S="$ac_cv_prog_LN_S"
8209if test "$ac_cv_prog_LN_S" = "ln -s"; then
8210 echo "$ac_t""yes" 1>&6
8211else
8212 echo "$ac_t""no" 1>&6
8213fi
8214
8215
8216
8217SEARCH_INCLUDE="\
8218 /usr/local/include \
8219 \
8220 /usr/Motif-1.2/include \
8221 /usr/Motif-2.1/include \
8222 \
8223 /usr/include/Motif1.2 \
8224 /opt/xpm/include/X11 \
8225 /opt/GBxpm/include/ \
8226 /opt/GBxpm/X11/include/ \
8227 \
8228 /usr/Motif1.2/include \
8229 /usr/dt/include \
8230 /usr/openwin/include \
8231 \
8232 /usr/include/Xm \
8233 \
8234 /usr/X11R6/include \
8235 /usr/X11R6.4/include \
8236 /usr/X11R5/include \
8237 /usr/X11R4/include \
8238 \
8239 /usr/include/X11R6 \
8240 /usr/include/X11R5 \
8241 /usr/include/X11R4 \
8242 \
8243 /usr/local/X11R6/include \
8244 /usr/local/X11R5/include \
8245 /usr/local/X11R4/include \
8246 \
8247 /usr/local/include/X11R6 \
8248 /usr/local/include/X11R5 \
8249 /usr/local/include/X11R4 \
8250 \
8251 /usr/X11/include \
8252 /usr/include/X11 \
8253 /usr/local/X11/include \
8254 /usr/local/include/X11 \
8255 \
8256 /usr/X386/include \
8257 /usr/x386/include \
8258 /usr/XFree86/include/X11 \
8259 \
8260 X:/XFree86/include \
8261 X:/XFree86/include/X11 \
8262 \
8263 /usr/include/gtk \
8264 /usr/local/include/gtk \
8265 /usr/include/glib \
8266 /usr/local/include/glib \
8267 \
8268 /usr/include/qt \
8269 /usr/local/include/qt \
8270 \
8271 /usr/include/windows \
8272 /usr/include/wine \
8273 /usr/local/include/wine \
8274 \
8275 /usr/unsupported/include \
8276 /usr/athena/include \
8277 /usr/local/x11r5/include \
8278 /usr/lpp/Xamples/include \
8279 \
8280 /usr/openwin/share/include \
8281 \
8282 /usr/include"
8283
8284SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8285
8286
8287cat > confcache <<\EOF
8288# This file is a shell script that caches the results of configure
8289# tests run on this system so they can be shared between configure
8290# scripts and configure runs. It is not useful on other systems.
8291# If it contains results you don't want to keep, you may remove or edit it.
8292#
8293# By default, configure uses ./config.cache as the cache file,
8294# creating it if it does not exist already. You can give configure
8295# the --cache-file=FILE option to use a different cache file; that is
8296# what configure does when it calls configure scripts in
8297# subdirectories, so they share the cache.
8298# Giving --cache-file=/dev/null disables caching, for debugging configure.
8299# config.status only pays attention to the cache file if you give it the
8300# --recheck option to rerun configure.
8301#
8302EOF
8303# The following way of writing the cache mishandles newlines in values,
8304# but we know of no workaround that is simple, portable, and efficient.
8305# So, don't put newlines in cache variables' values.
8306# Ultrix sh set writes to stderr and can't be redirected directly,
8307# and sets the high bit in the cache file unless we assign to the vars.
8308(set) 2>&1 |
8309 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8310 *ac_space=\ *)
8311 # `set' does not quote correctly, so add quotes (double-quote substitution
8312 # turns \\\\ into \\, and sed turns \\ into \).
8313 sed -n \
8314 -e "s/'/'\\\\''/g" \
8315 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8316 ;;
8317 *)
8318 # `set' quotes correctly as required by POSIX, so do not add quotes.
8319 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8320 ;;
8321 esac >> confcache
8322if cmp -s $cache_file confcache; then
8323 :
8324else
8325 if test -w $cache_file; then
8326 echo "updating cache $cache_file"
8327 cat confcache > $cache_file
8328 else
8329 echo "not updating unwritable cache $cache_file"
8330 fi
8331fi
8332rm -f confcache
8333
8334
8335
8336AFMINSTALL=
8337
8338if test "$wxUSE_GUI" = "yes"; then
8339 USE_GUI=1
8340
8341 TOOLKIT=
8342 TOOLKIT_INCLUDE=
8343
8344 GUI_TK_LIBRARY=
8345 GUI_TK_LINK=
8346
8347 WXGTK12=
8348 WXGTK127=
8349 WXGTK20=
8350
8351 WXWINE=
8352
8353 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8354 if test "$cross_compiling" = "yes" ; then
8355 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8356 else
8357 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8358echo "configure:8359: checking for Windows headers" >&5
8359
8360ac_find_includes=
8361for ac_dir in $SEARCH_INCLUDE;
8362 do
8363 if test -f "$ac_dir/windows.h"; then
8364 ac_find_includes=$ac_dir
8365 break
8366 fi
8367 done
8368
8369 if test "$ac_find_includes" != "" ; then
8370 echo "$ac_t""found $ac_find_includes" 1>&6
8371 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8372 else
8373 echo "$ac_t""no" 1>&6
8374 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8375 fi
8376 fi
8377
8378 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8379 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
8380
8381 if test "$wxUSE_ODBC" = "yes" ; then
8382 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8383 fi
8384
8385 if test "$wxUSE_MINGW" = 1; then
8386 LDFLAGS="$LDFLAGS -mwindows"
8387 fi
8388
8389 TOOLKIT=MSW
8390 GUIDIST=MSW_DIST
8391
8392 RCINCSWITCH="--include-dir"
8393 RCDEFSWITCH="--define"
8394 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8395 RCINPUTSWITCH="-i"
8396 RCOUTPUTSWITCH="-o"
8397 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8398
8399 RESPROGRAM="\$(RES_PROGRAM)"
8400 fi
8401
8402 if test "$wxUSE_GTK" = 1; then
8403 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8404echo "configure:8405: checking for GTK+ version" >&5
8405
8406 gtk_version_cached=1
8407 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8409else
8410
8411 gtk_version_cached=0
8412 echo "$ac_t""""" 1>&6
8413
8414 wx_cv_lib_gtk=
8415 if test "x$wxUSE_GTK2" = "xyes"; then
8416 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8417if test "${with_gtk_prefix+set}" = set; then
8418 withval="$with_gtk_prefix"
8419 gtk_config_prefix="$withval"
8420else
8421 gtk_config_prefix=""
8422fi
8423
8424# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8425if test "${with_gtk_exec_prefix+set}" = set; then
8426 withval="$with_gtk_exec_prefix"
8427 gtk_config_exec_prefix="$withval"
8428else
8429 gtk_config_exec_prefix=""
8430fi
8431
8432# Check whether --enable-gtktest or --disable-gtktest was given.
8433if test "${enable_gtktest+set}" = set; then
8434 enableval="$enable_gtktest"
8435 :
8436else
8437 enable_gtktest=yes
8438fi
8439
8440
8441 for module in .
8442 do
8443 case "$module" in
8444 gthread)
8445 gtk_config_args="$gtk_config_args gthread"
8446 ;;
8447 esac
8448 done
8449
8450 if test x$gtk_config_exec_prefix != x ; then
8451 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8452 if test x${GTK_CONFIG_2_0+set} != xset ; then
8453 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8454 fi
8455 fi
8456 if test x$gtk_config_prefix != x ; then
8457 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8458 if test x${GTK_CONFIG_2_0+set} != xset ; then
8459 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8460 fi
8461 fi
8462
8463 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8464set dummy gtk-config-2.0; ac_word=$2
8465echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8466echo "configure:8467: checking for $ac_word" >&5
8467if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8469else
8470 case "$GTK_CONFIG_2_0" in
8471 /*)
8472 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8473 ;;
8474 ?:/*)
8475 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8476 ;;
8477 *)
8478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8479 ac_dummy="$PATH"
8480 for ac_dir in $ac_dummy; do
8481 test -z "$ac_dir" && ac_dir=.
8482 if test -f $ac_dir/$ac_word; then
8483 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8484 break
8485 fi
8486 done
8487 IFS="$ac_save_ifs"
8488 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8489 ;;
8490esac
8491fi
8492GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8493if test -n "$GTK_CONFIG_2_0"; then
8494 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8495else
8496 echo "$ac_t""no" 1>&6
8497fi
8498
8499 min_gtk_version=1.3.1
8500 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8501echo "configure:8502: checking for GTK - version >= $min_gtk_version" >&5
8502 no_gtk=""
8503 if test "$GTK_CONFIG_2_0" = "no" ; then
8504 no_gtk=yes
8505 else
8506 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8507 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8508 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8509 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8510 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8511 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8512 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8514 if test "x$enable_gtktest" = "xyes" ; then
8515 ac_save_CFLAGS="$CFLAGS"
8516 ac_save_LIBS="$LIBS"
8517 CFLAGS="$CFLAGS $GTK_CFLAGS"
8518 LIBS="$GTK_LIBS $LIBS"
8519 rm -f conf.gtktest
8520 if test "$cross_compiling" = yes; then
8521 echo $ac_n "cross compiling; assumed OK... $ac_c"
8522else
8523 cat > conftest.$ac_ext <<EOF
8524#line 8525 "configure"
8525#include "confdefs.h"
8526
8527#include <gtk/gtk.h>
8528#include <stdio.h>
8529#include <stdlib.h>
8530
8531int
8532main ()
8533{
8534 int major, minor, micro;
8535 char *tmp_version;
8536
8537 system ("touch conf.gtktest");
8538
8539 /* HP/UX 9 (%@#!) writes to sscanf strings */
8540 tmp_version = g_strdup("$min_gtk_version");
8541 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8542 printf("%s, bad version string\n", "$min_gtk_version");
8543 exit(1);
8544 }
8545
8546 if ((gtk_major_version != $gtk_config_major_version) ||
8547 (gtk_minor_version != $gtk_config_minor_version) ||
8548 (gtk_micro_version != $gtk_config_micro_version))
8549 {
8550 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8551 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8552 gtk_major_version, gtk_minor_version, gtk_micro_version);
8553 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8554 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8555 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8556 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8557 printf("*** required on your system.\n");
8558 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8559 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8560 printf("*** before re-running configure\n");
8561 }
8562#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8563 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8564 (gtk_minor_version != GTK_MINOR_VERSION) ||
8565 (gtk_micro_version != GTK_MICRO_VERSION))
8566 {
8567 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8568 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8569 printf("*** library (version %d.%d.%d)\n",
8570 gtk_major_version, gtk_minor_version, gtk_micro_version);
8571 }
8572#endif /* defined (GTK_MAJOR_VERSION) ... */
8573 else
8574 {
8575 if ((gtk_major_version > major) ||
8576 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8577 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8578 {
8579 return 0;
8580 }
8581 else
8582 {
8583 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8584 gtk_major_version, gtk_minor_version, gtk_micro_version);
8585 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8586 major, minor, micro);
8587 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8588 printf("***\n");
8589 printf("*** If you have already installed a sufficiently new version, this error\n");
8590 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8591 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8592 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8593 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8594 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8595 printf("*** so that the correct libraries are found at run-time))\n");
8596 }
8597 }
8598 return 1;
8599}
8600
8601EOF
8602if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8603then
8604 :
8605else
8606 echo "configure: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8608 rm -fr conftest*
8609 no_gtk=yes
8610fi
8611rm -fr conftest*
8612fi
8613
8614 CFLAGS="$ac_save_CFLAGS"
8615 LIBS="$ac_save_LIBS"
8616 fi
8617 fi
8618 if test "x$no_gtk" = x ; then
8619 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8620 wx_cv_lib_gtk=2.0
8621 else
8622 echo "$ac_t""no" 1>&6
8623 if test "$GTK_CONFIG_2_0" = "no" ; then
8624 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8625 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8626 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8627 echo "*** full path to gtk-config-2.0."
8628 else
8629 if test -f conf.gtktest ; then
8630 :
8631 else
8632 echo "*** Could not run GTK test program, checking why..."
8633 CFLAGS="$CFLAGS $GTK_CFLAGS"
8634 LIBS="$LIBS $GTK_LIBS"
8635 cat > conftest.$ac_ext <<EOF
8636#line 8637 "configure"
8637#include "confdefs.h"
8638
8639#include <gtk/gtk.h>
8640#include <stdio.h>
8641
8642int main() {
8643 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8644; return 0; }
8645EOF
8646if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647 rm -rf conftest*
8648 echo "*** The test program compiled, but did not run. This usually means"
8649 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8650 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8651 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8652 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8653 echo "*** is required on your system"
8654 echo "***"
8655 echo "*** If you have an old version installed, it is best to remove it, although"
8656 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8657 echo "***"
8658 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8659 echo "*** came with the system with the command"
8660 echo "***"
8661 echo "*** rpm --erase --nodeps gtk gtk-devel"
8662else
8663 echo "configure: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8665 rm -rf conftest*
8666 echo "*** The test program failed to compile or link. See the file config.log for the"
8667 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8668 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8669 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
8670fi
8671rm -f conftest*
8672 CFLAGS="$ac_save_CFLAGS"
8673 LIBS="$ac_save_LIBS"
8674 fi
8675 fi
8676 GTK_CFLAGS=""
8677 GTK_LIBS=""
8678 gthread
8679 fi
8680
8681
8682 rm -f conf.gtktest
8683
8684 fi
8685
8686 if test -z "$wx_cv_lib_gtk"; then
8687
8688 if test x$gtk_config_exec_prefix != x ; then
8689 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8690 if test x${GTK_CONFIG+set} != xset ; then
8691 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8692 fi
8693 fi
8694 if test x$gtk_config_prefix != x ; then
8695 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8696 if test x${GTK_CONFIG+set} != xset ; then
8697 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8698 fi
8699 fi
8700
8701 # Extract the first word of "gtk-config", so it can be a program name with args.
8702set dummy gtk-config; ac_word=$2
8703echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8704echo "configure:8705: checking for $ac_word" >&5
8705if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
8707else
8708 case "$GTK_CONFIG" in
8709 /*)
8710 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8711 ;;
8712 ?:/*)
8713 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8714 ;;
8715 *)
8716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8717 ac_dummy="$PATH"
8718 for ac_dir in $ac_dummy; do
8719 test -z "$ac_dir" && ac_dir=.
8720 if test -f $ac_dir/$ac_word; then
8721 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8722 break
8723 fi
8724 done
8725 IFS="$ac_save_ifs"
8726 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8727 ;;
8728esac
8729fi
8730GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8731if test -n "$GTK_CONFIG"; then
8732 echo "$ac_t""$GTK_CONFIG" 1>&6
8733else
8734 echo "$ac_t""no" 1>&6
8735fi
8736
8737 min_gtk_version=1.2.7
8738 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8739echo "configure:8740: checking for GTK - version >= $min_gtk_version" >&5
8740 no_gtk=""
8741 if test "$GTK_CONFIG" != "no" ; then
8742 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8743 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8744 ac_save_CFLAGS="$CFLAGS"
8745 ac_save_LIBS="$LIBS"
8746 CFLAGS="$CFLAGS $GTK_CFLAGS"
8747 LIBS="$LIBS $GTK_LIBS"
8748 if test "$cross_compiling" = yes; then
8749 echo $ac_n "cross compiling; assumed OK... $ac_c"
8750else
8751 cat > conftest.$ac_ext <<EOF
8752#line 8753 "configure"
8753#include "confdefs.h"
8754
8755#include <gtk/gtk.h>
8756#include <gtk/gtkfeatures.h>
8757#include <stdio.h>
8758#include <stdlib.h>
8759
8760int
8761main ()
8762{
8763 int major, minor, micro;
8764
8765 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8766 printf("%s, bad version string\n", "$min_gtk_version");
8767 exit(1);
8768 }
8769
8770 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8771 (GTK_MINOR_VERSION != gtk_minor_version) ||
8772 (GTK_MICRO_VERSION != gtk_micro_version)) {
8773 printf("Headers vs. library version mismatch!\n");
8774 exit(1);
8775 }
8776
8777 if (gtk_minor_version == 1) return FALSE;
8778
8779 return !((gtk_major_version > major) ||
8780 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8781 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8782}
8783
8784EOF
8785if { (eval echo configure:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8786then
8787 :
8788else
8789 echo "configure: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 rm -fr conftest*
8792 no_gtk=yes
8793fi
8794rm -fr conftest*
8795fi
8796
8797 CFLAGS="$ac_save_CFLAGS"
8798 LIBS="$ac_save_LIBS"
8799 else
8800 no_gtk=yes
8801 fi
8802 if test "x$no_gtk" = x ; then
8803 echo "$ac_t""yes" 1>&6
8804 wx_cv_lib_gtk=1.2.7
8805 else
8806 echo "$ac_t""no" 1>&6
8807 GTK_CFLAGS=""
8808 GTK_LIBS=""
8809 :
8810 fi
8811
8812
8813
8814 fi
8815
8816 if test -z "$wx_cv_lib_gtk"; then
8817
8818 if test x$gtk_config_exec_prefix != x ; then
8819 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8820 if test x${GTK_CONFIG+set} != xset ; then
8821 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8822 fi
8823 fi
8824 if test x$gtk_config_prefix != x ; then
8825 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8826 if test x${GTK_CONFIG+set} != xset ; then
8827 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8828 fi
8829 fi
8830
8831 # Extract the first word of "gtk-config", so it can be a program name with args.
8832set dummy gtk-config; ac_word=$2
8833echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8834echo "configure:8835: checking for $ac_word" >&5
8835if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8836 echo $ac_n "(cached) $ac_c" 1>&6
8837else
8838 case "$GTK_CONFIG" in
8839 /*)
8840 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8841 ;;
8842 ?:/*)
8843 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8844 ;;
8845 *)
8846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8847 ac_dummy="$PATH"
8848 for ac_dir in $ac_dummy; do
8849 test -z "$ac_dir" && ac_dir=.
8850 if test -f $ac_dir/$ac_word; then
8851 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8852 break
8853 fi
8854 done
8855 IFS="$ac_save_ifs"
8856 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8857 ;;
8858esac
8859fi
8860GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8861if test -n "$GTK_CONFIG"; then
8862 echo "$ac_t""$GTK_CONFIG" 1>&6
8863else
8864 echo "$ac_t""no" 1>&6
8865fi
8866
8867 min_gtk_version=1.2.3
8868 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8869echo "configure:8870: checking for GTK - version >= $min_gtk_version" >&5
8870 no_gtk=""
8871 if test "$GTK_CONFIG" != "no" ; then
8872 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8873 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8874 ac_save_CFLAGS="$CFLAGS"
8875 ac_save_LIBS="$LIBS"
8876 CFLAGS="$CFLAGS $GTK_CFLAGS"
8877 LIBS="$LIBS $GTK_LIBS"
8878 if test "$cross_compiling" = yes; then
8879 echo $ac_n "cross compiling; assumed OK... $ac_c"
8880else
8881 cat > conftest.$ac_ext <<EOF
8882#line 8883 "configure"
8883#include "confdefs.h"
8884
8885#include <gtk/gtk.h>
8886#include <gtk/gtkfeatures.h>
8887#include <stdio.h>
8888#include <stdlib.h>
8889
8890int
8891main ()
8892{
8893 int major, minor, micro;
8894
8895 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8896 printf("%s, bad version string\n", "$min_gtk_version");
8897 exit(1);
8898 }
8899
8900 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8901 (GTK_MINOR_VERSION != gtk_minor_version) ||
8902 (GTK_MICRO_VERSION != gtk_micro_version)) {
8903 printf("Headers vs. library version mismatch!\n");
8904 exit(1);
8905 }
8906
8907 if (gtk_minor_version == 1) return FALSE;
8908
8909 return !((gtk_major_version > major) ||
8910 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8911 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8912}
8913
8914EOF
8915if { (eval echo configure:8916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8916then
8917 :
8918else
8919 echo "configure: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 rm -fr conftest*
8922 no_gtk=yes
8923fi
8924rm -fr conftest*
8925fi
8926
8927 CFLAGS="$ac_save_CFLAGS"
8928 LIBS="$ac_save_LIBS"
8929 else
8930 no_gtk=yes
8931 fi
8932 if test "x$no_gtk" = x ; then
8933 echo "$ac_t""yes" 1>&6
8934 wx_cv_lib_gtk=1.2.3
8935 else
8936 echo "$ac_t""no" 1>&6
8937 GTK_CFLAGS=""
8938 GTK_LIBS=""
8939 :
8940 fi
8941
8942
8943
8944 fi
8945
8946 if test -z "$wx_cv_lib_gtk"; then
8947 wx_cv_lib_gtk=none
8948 fi
8949
8950
8951fi
8952
8953
8954 if test "$gtk_version_cached" = 1; then
8955 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
8956 fi
8957
8958 case "$wx_cv_lib_gtk" in
8959 2.0) WXGTK20=1
8960 ;;
8961 1.2.7) WXGTK127=1
8962 ;;
8963 1.2.3) WXGTK12=1
8964 ;;
8965 *) { echo "configure: error:
8966Please check that gtk-config is in path, the directory
8967where GTK+ libraries are installed (returned by
8968'gtk-config --libs' command) is in LD_LIBRARY_PATH or
8969equivalent variable and GTK+ is version 1.2.3 or above.
8970 " 1>&2; exit 1; }
8971 ;;
8972 esac
8973
8974 TOOLKIT_INCLUDE="$GTK_CFLAGS"
8975 GUI_TK_LIBRARY="$GTK_LIBS"
8976
8977 AFMINSTALL=afminstall
8978 TOOLKIT=GTK
8979 GUIDIST=GTK_DIST
8980
8981 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
8982echo "configure:8983: checking for gdk_im_open in -lgdk" >&5
8983ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
8984if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8986else
8987 ac_save_LIBS="$LIBS"
8988LIBS="-lgdk $LIBS"
8989cat > conftest.$ac_ext <<EOF
8990#line 8991 "configure"
8991#include "confdefs.h"
8992/* Override any gcc2 internal prototype to avoid an error. */
8993/* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
8995char gdk_im_open();
8996
8997int main() {
8998gdk_im_open()
8999; return 0; }
9000EOF
9001if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9002 rm -rf conftest*
9003 eval "ac_cv_lib_$ac_lib_var=yes"
9004else
9005 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9007 rm -rf conftest*
9008 eval "ac_cv_lib_$ac_lib_var=no"
9009fi
9010rm -f conftest*
9011LIBS="$ac_save_LIBS"
9012
9013fi
9014if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9015 echo "$ac_t""yes" 1>&6
9016 cat >> confdefs.h <<\EOF
9017#define HAVE_XIM 1
9018EOF
9019
9020else
9021 echo "$ac_t""no" 1>&6
9022fi
9023
9024 fi
9025
9026 if test "$wxUSE_MGL" = 1; then
9027
9028 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9029echo "configure:9030: checking for SciTech MGL library" >&5
9030 if test "x$MGL_ROOT" = x ; then
9031 echo "$ac_t""not found" 1>&6
9032 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9033 else
9034 echo "$ac_t""$MGL_ROOT" 1>&6
9035 fi
9036
9037 MGL_OS=linux/gcc/glibc
9038 MGL_LIB_TYPE=""
9039
9040 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9041 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9042 MGL_LIB_TYPE=debug
9043 fi
9044 fi
9045 if test "x$MGL_LIB_TYPE" = x ; then
9046 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9047 MGL_LIB_TYPE=release
9048 else
9049 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9050 fi
9051 fi
9052
9053 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9054 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9055
9056 AFMINSTALL=afminstall
9057 TOOLKIT=MGL
9058 GUIDIST=MGL_DIST
9059 fi
9060
9061 if test "$wxUSE_WINE" = 1; then
9062 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9063echo "configure:9064: checking for WINE includes" >&5
9064
9065ac_find_includes=
9066for ac_dir in $SEARCH_INCLUDE;
9067 do
9068 if test -f "$ac_dir/windows.h"; then
9069 ac_find_includes=$ac_dir
9070 break
9071 fi
9072 done
9073
9074 if test "$ac_find_includes" != "" ; then
9075 echo "$ac_t""found $ac_find_includes" 1>&6
9076 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9077 else
9078 echo "$ac_t""no" 1>&6
9079 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9080 fi
9081
9082 XPM_LINK=""
9083 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9084echo "configure:9085: checking for Xpm library" >&5
9085
9086ac_find_libraries=
9087for ac_dir in $SEARCH_LIB;
9088 do
9089 for ac_extension in a so sl; do
9090 if test -f "$ac_dir/libXpm.$ac_extension"; then
9091 ac_find_libraries=$ac_dir
9092 break 2
9093 fi
9094 done
9095 done
9096
9097 if test "$ac_find_libraries" != "" ; then
9098 GUI_TK_LIBRARY="-L$ac_find_libraries"
9099 XPM_LINK="-lXpm"
9100 cat >> confdefs.h <<\EOF
9101#define wxHAVE_LIB_XPM 1
9102EOF
9103
9104 echo "$ac_t""found at $ac_find_libraries" 1>&6
9105 else
9106 echo "$ac_t""no" 1>&6
9107 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9108 fi
9109
9110 MESA_LINK=""
9111 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9112echo "configure:9113: checking for Mesa library" >&5
9113
9114ac_find_libraries=
9115for ac_dir in $SEARCH_LIB;
9116 do
9117 for ac_extension in a so sl; do
9118 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9119 ac_find_libraries=$ac_dir
9120 break 2
9121 fi
9122 done
9123 done
9124
9125 if test "$ac_find_libraries" != "" ; then
9126 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9127 MESA_LINK="-lMesaGL"
9128 echo "$ac_t""found at $ac_find_libraries" 1>&6
9129 else
9130 { echo "configure: error: no" 1>&2; exit 1; }
9131 fi
9132
9133 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9134 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9135 WXWINE=1
9136 TOOLKIT=MSW
9137 GUIDIST=MSW_DIST
9138 fi
9139
9140
9141 # If we find X, set shell vars x_includes and x_libraries to the
9142# paths, otherwise set no_x=yes.
9143# Uses ac_ vars as temps to allow command line to override cache and checks.
9144# --without-x overrides everything else, but does not touch the cache.
9145echo $ac_n "checking for X""... $ac_c" 1>&6
9146echo "configure:9147: checking for X" >&5
9147
9148# Check whether --with-x or --without-x was given.
9149if test "${with_x+set}" = set; then
9150 withval="$with_x"
9151 :
9152fi
9153
9154# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9155if test "x$with_x" = xno; then
9156 # The user explicitly disabled X.
9157 have_x=disabled
9158else
9159 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9160 # Both variables are already set.
9161 have_x=yes
9162 else
9163if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9165else
9166 # One or both of the vars are not set, and there is no cached value.
9167ac_x_includes=NO ac_x_libraries=NO
9168rm -fr conftestdir
9169if mkdir conftestdir; then
9170 cd conftestdir
9171 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9172 cat > Imakefile <<'EOF'
9173acfindx:
9174 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9175EOF
9176 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9178 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9179 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9180 for ac_extension in a so sl; do
9181 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9182 test -f $ac_im_libdir/libX11.$ac_extension; then
9183 ac_im_usrlibdir=$ac_im_libdir; break
9184 fi
9185 done
9186 # Screen out bogus values from the imake configuration. They are
9187 # bogus both because they are the default anyway, and because
9188 # using them would break gcc on systems where it needs fixed includes.
9189 case "$ac_im_incroot" in
9190 /usr/include) ;;
9191 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9192 esac
9193 case "$ac_im_usrlibdir" in
9194 /usr/lib | /lib) ;;
9195 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9196 esac
9197 fi
9198 cd ..
9199 rm -fr conftestdir
9200fi
9201
9202if test "$ac_x_includes" = NO; then
9203 # Guess where to find include files, by looking for this one X11 .h file.
9204 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9205
9206 # First, try using that file with no special directory specified.
9207cat > conftest.$ac_ext <<EOF
9208#line 9209 "configure"
9209#include "confdefs.h"
9210#include <$x_direct_test_include>
9211EOF
9212ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9213{ (eval echo configure:9214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9214ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9215if test -z "$ac_err"; then
9216 rm -rf conftest*
9217 # We can compile using X headers with no special include directory.
9218ac_x_includes=
9219else
9220 echo "$ac_err" >&5
9221 echo "configure: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9223 rm -rf conftest*
9224 # Look for the header file in a standard set of common directories.
9225# Check X11 before X11Rn because it is often a symlink to the current release.
9226 for ac_dir in \
9227 /usr/X11/include \
9228 /usr/X11R6/include \
9229 /usr/X11R5/include \
9230 /usr/X11R4/include \
9231 \
9232 /usr/include/X11 \
9233 /usr/include/X11R6 \
9234 /usr/include/X11R5 \
9235 /usr/include/X11R4 \
9236 \
9237 /usr/local/X11/include \
9238 /usr/local/X11R6/include \
9239 /usr/local/X11R5/include \
9240 /usr/local/X11R4/include \
9241 \
9242 /usr/local/include/X11 \
9243 /usr/local/include/X11R6 \
9244 /usr/local/include/X11R5 \
9245 /usr/local/include/X11R4 \
9246 \
9247 /usr/X386/include \
9248 /usr/x386/include \
9249 /usr/XFree86/include/X11 \
9250 \
9251 /usr/include \
9252 /usr/local/include \
9253 /usr/unsupported/include \
9254 /usr/athena/include \
9255 /usr/local/x11r5/include \
9256 /usr/lpp/Xamples/include \
9257 \
9258 /usr/openwin/include \
9259 /usr/openwin/share/include \
9260 ; \
9261 do
9262 if test -r "$ac_dir/$x_direct_test_include"; then
9263 ac_x_includes=$ac_dir
9264 break
9265 fi
9266 done
9267fi
9268rm -f conftest*
9269fi # $ac_x_includes = NO
9270
9271if test "$ac_x_libraries" = NO; then
9272 # Check for the libraries.
9273
9274 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9275 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9276
9277 # See if we find them without any special options.
9278 # Don't add to $LIBS permanently.
9279 ac_save_LIBS="$LIBS"
9280 LIBS="-l$x_direct_test_library $LIBS"
9281cat > conftest.$ac_ext <<EOF
9282#line 9283 "configure"
9283#include "confdefs.h"
9284
9285int main() {
9286${x_direct_test_function}()
9287; return 0; }
9288EOF
9289if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9290 rm -rf conftest*
9291 LIBS="$ac_save_LIBS"
9292# We can link X programs with no special library path.
9293ac_x_libraries=
9294else
9295 echo "configure: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9297 rm -rf conftest*
9298 LIBS="$ac_save_LIBS"
9299# First see if replacing the include by lib works.
9300# Check X11 before X11Rn because it is often a symlink to the current release.
9301for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9302 /usr/X11/lib \
9303 /usr/X11R6/lib \
9304 /usr/X11R5/lib \
9305 /usr/X11R4/lib \
9306 \
9307 /usr/lib/X11 \
9308 /usr/lib/X11R6 \
9309 /usr/lib/X11R5 \
9310 /usr/lib/X11R4 \
9311 \
9312 /usr/local/X11/lib \
9313 /usr/local/X11R6/lib \
9314 /usr/local/X11R5/lib \
9315 /usr/local/X11R4/lib \
9316 \
9317 /usr/local/lib/X11 \
9318 /usr/local/lib/X11R6 \
9319 /usr/local/lib/X11R5 \
9320 /usr/local/lib/X11R4 \
9321 \
9322 /usr/X386/lib \
9323 /usr/x386/lib \
9324 /usr/XFree86/lib/X11 \
9325 \
9326 /usr/lib \
9327 /usr/local/lib \
9328 /usr/unsupported/lib \
9329 /usr/athena/lib \
9330 /usr/local/x11r5/lib \
9331 /usr/lpp/Xamples/lib \
9332 /lib/usr/lib/X11 \
9333 \
9334 /usr/openwin/lib \
9335 /usr/openwin/share/lib \
9336 ; \
9337do
9338 for ac_extension in a so sl; do
9339 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9340 ac_x_libraries=$ac_dir
9341 break 2
9342 fi
9343 done
9344done
9345fi
9346rm -f conftest*
9347fi # $ac_x_libraries = NO
9348
9349if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9350 # Didn't find X anywhere. Cache the known absence of X.
9351 ac_cv_have_x="have_x=no"
9352else
9353 # Record where we found X for the cache.
9354 ac_cv_have_x="have_x=yes \
9355 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9356fi
9357fi
9358 fi
9359 eval "$ac_cv_have_x"
9360fi # $with_x != no
9361
9362if test "$have_x" != yes; then
9363 echo "$ac_t""$have_x" 1>&6
9364 no_x=yes
9365else
9366 # If each of the values was on the command line, it overrides each guess.
9367 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9368 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9369 # Update the cache value to reflect the command line values.
9370 ac_cv_have_x="have_x=yes \
9371 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9372 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9373fi
9374
9375if test "$no_x" = yes; then
9376 # Not all programs may use this symbol, but it does not hurt to define it.
9377 cat >> confdefs.h <<\EOF
9378#define X_DISPLAY_MISSING 1
9379EOF
9380
9381 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9382else
9383 if test -n "$x_includes"; then
9384 X_CFLAGS="$X_CFLAGS -I$x_includes"
9385 fi
9386
9387 # It would also be nice to do this for all -L options, not just this one.
9388 if test -n "$x_libraries"; then
9389 X_LIBS="$X_LIBS -L$x_libraries"
9390 # For Solaris; some versions of Sun CC require a space after -R and
9391 # others require no space. Words are not sufficient . . . .
9392 case "`(uname -sr) 2>/dev/null`" in
9393 "SunOS 5"*)
9394 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9395echo "configure:9396: checking whether -R must be followed by a space" >&5
9396 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9397 cat > conftest.$ac_ext <<EOF
9398#line 9399 "configure"
9399#include "confdefs.h"
9400
9401int main() {
9402
9403; return 0; }
9404EOF
9405if { (eval echo configure:9406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9406 rm -rf conftest*
9407 ac_R_nospace=yes
9408else
9409 echo "configure: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 rm -rf conftest*
9412 ac_R_nospace=no
9413fi
9414rm -f conftest*
9415 if test $ac_R_nospace = yes; then
9416 echo "$ac_t""no" 1>&6
9417 X_LIBS="$X_LIBS -R$x_libraries"
9418 else
9419 LIBS="$ac_xsave_LIBS -R $x_libraries"
9420 cat > conftest.$ac_ext <<EOF
9421#line 9422 "configure"
9422#include "confdefs.h"
9423
9424int main() {
9425
9426; return 0; }
9427EOF
9428if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 rm -rf conftest*
9430 ac_R_space=yes
9431else
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -rf conftest*
9435 ac_R_space=no
9436fi
9437rm -f conftest*
9438 if test $ac_R_space = yes; then
9439 echo "$ac_t""yes" 1>&6
9440 X_LIBS="$X_LIBS -R $x_libraries"
9441 else
9442 echo "$ac_t""neither works" 1>&6
9443 fi
9444 fi
9445 LIBS="$ac_xsave_LIBS"
9446 esac
9447 fi
9448
9449 # Check for system-dependent libraries X programs must link with.
9450 # Do this before checking for the system-independent R6 libraries
9451 # (-lICE), since we may need -lsocket or whatever for X linking.
9452
9453 if test "$ISC" = yes; then
9454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9455 else
9456 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9457 # libraries were built with DECnet support. And karl@cs.umb.edu says
9458 # the Alpha needs dnet_stub (dnet does not exist).
9459 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9460echo "configure:9461: checking for dnet_ntoa in -ldnet" >&5
9461ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9462if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9463 echo $ac_n "(cached) $ac_c" 1>&6
9464else
9465 ac_save_LIBS="$LIBS"
9466LIBS="-ldnet $LIBS"
9467cat > conftest.$ac_ext <<EOF
9468#line 9469 "configure"
9469#include "confdefs.h"
9470/* Override any gcc2 internal prototype to avoid an error. */
9471/* We use char because int might match the return type of a gcc2
9472 builtin and then its argument prototype would still apply. */
9473char dnet_ntoa();
9474
9475int main() {
9476dnet_ntoa()
9477; return 0; }
9478EOF
9479if { (eval echo configure:9480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9480 rm -rf conftest*
9481 eval "ac_cv_lib_$ac_lib_var=yes"
9482else
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9485 rm -rf conftest*
9486 eval "ac_cv_lib_$ac_lib_var=no"
9487fi
9488rm -f conftest*
9489LIBS="$ac_save_LIBS"
9490
9491fi
9492if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9493 echo "$ac_t""yes" 1>&6
9494 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9495else
9496 echo "$ac_t""no" 1>&6
9497fi
9498
9499 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9500 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9501echo "configure:9502: checking for dnet_ntoa in -ldnet_stub" >&5
9502ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9504 echo $ac_n "(cached) $ac_c" 1>&6
9505else
9506 ac_save_LIBS="$LIBS"
9507LIBS="-ldnet_stub $LIBS"
9508cat > conftest.$ac_ext <<EOF
9509#line 9510 "configure"
9510#include "confdefs.h"
9511/* Override any gcc2 internal prototype to avoid an error. */
9512/* We use char because int might match the return type of a gcc2
9513 builtin and then its argument prototype would still apply. */
9514char dnet_ntoa();
9515
9516int main() {
9517dnet_ntoa()
9518; return 0; }
9519EOF
9520if { (eval echo configure:9521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9521 rm -rf conftest*
9522 eval "ac_cv_lib_$ac_lib_var=yes"
9523else
9524 echo "configure: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9526 rm -rf conftest*
9527 eval "ac_cv_lib_$ac_lib_var=no"
9528fi
9529rm -f conftest*
9530LIBS="$ac_save_LIBS"
9531
9532fi
9533if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9534 echo "$ac_t""yes" 1>&6
9535 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9536else
9537 echo "$ac_t""no" 1>&6
9538fi
9539
9540 fi
9541
9542 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9543 # to get the SysV transport functions.
9544 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9545 # needs -lnsl.
9546 # The nsl library prevents programs from opening the X display
9547 # on Irix 5.2, according to dickey@clark.net.
9548 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9549echo "configure:9550: checking for gethostbyname" >&5
9550if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
9552else
9553 cat > conftest.$ac_ext <<EOF
9554#line 9555 "configure"
9555#include "confdefs.h"
9556/* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char gethostbyname(); below. */
9558#include <assert.h>
9559/* Override any gcc2 internal prototype to avoid an error. */
9560/* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9562char gethostbyname();
9563
9564int main() {
9565
9566/* The GNU C library defines this for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9570choke me
9571#else
9572gethostbyname();
9573#endif
9574
9575; return 0; }
9576EOF
9577if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9578 rm -rf conftest*
9579 eval "ac_cv_func_gethostbyname=yes"
9580else
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 rm -rf conftest*
9584 eval "ac_cv_func_gethostbyname=no"
9585fi
9586rm -f conftest*
9587fi
9588
9589if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9590 echo "$ac_t""yes" 1>&6
9591 :
9592else
9593 echo "$ac_t""no" 1>&6
9594fi
9595
9596 if test $ac_cv_func_gethostbyname = no; then
9597 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
9598echo "configure:9599: checking for gethostbyname in -lnsl" >&5
9599ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9600if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602else
9603 ac_save_LIBS="$LIBS"
9604LIBS="-lnsl $LIBS"
9605cat > conftest.$ac_ext <<EOF
9606#line 9607 "configure"
9607#include "confdefs.h"
9608/* Override any gcc2 internal prototype to avoid an error. */
9609/* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9611char gethostbyname();
9612
9613int main() {
9614gethostbyname()
9615; return 0; }
9616EOF
9617if { (eval echo configure:9618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9618 rm -rf conftest*
9619 eval "ac_cv_lib_$ac_lib_var=yes"
9620else
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 rm -rf conftest*
9624 eval "ac_cv_lib_$ac_lib_var=no"
9625fi
9626rm -f conftest*
9627LIBS="$ac_save_LIBS"
9628
9629fi
9630if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9631 echo "$ac_t""yes" 1>&6
9632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9633else
9634 echo "$ac_t""no" 1>&6
9635fi
9636
9637 fi
9638
9639 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9640 # socket/setsockopt and other routines are undefined under SCO ODT
9641 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9642 # on later versions), says simon@lia.di.epfl.ch: it contains
9643 # gethostby* variants that don't use the nameserver (or something).
9644 # -lsocket must be given before -lnsl if both are needed.
9645 # We assume that if connect needs -lnsl, so does gethostbyname.
9646 echo $ac_n "checking for connect""... $ac_c" 1>&6
9647echo "configure:9648: checking for connect" >&5
9648if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9649 echo $ac_n "(cached) $ac_c" 1>&6
9650else
9651 cat > conftest.$ac_ext <<EOF
9652#line 9653 "configure"
9653#include "confdefs.h"
9654/* System header to define __stub macros and hopefully few prototypes,
9655 which can conflict with char connect(); below. */
9656#include <assert.h>
9657/* Override any gcc2 internal prototype to avoid an error. */
9658/* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9660char connect();
9661
9662int main() {
9663
9664/* The GNU C library defines this for functions which it implements
9665 to always fail with ENOSYS. Some functions are actually named
9666 something starting with __ and the normal name is an alias. */
9667#if defined (__stub_connect) || defined (__stub___connect)
9668choke me
9669#else
9670connect();
9671#endif
9672
9673; return 0; }
9674EOF
9675if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9676 rm -rf conftest*
9677 eval "ac_cv_func_connect=yes"
9678else
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9681 rm -rf conftest*
9682 eval "ac_cv_func_connect=no"
9683fi
9684rm -f conftest*
9685fi
9686
9687if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 :
9690else
9691 echo "$ac_t""no" 1>&6
9692fi
9693
9694 if test $ac_cv_func_connect = no; then
9695 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
9696echo "configure:9697: checking for connect in -lsocket" >&5
9697ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9698if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
9700else
9701 ac_save_LIBS="$LIBS"
9702LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9703cat > conftest.$ac_ext <<EOF
9704#line 9705 "configure"
9705#include "confdefs.h"
9706/* Override any gcc2 internal prototype to avoid an error. */
9707/* We use char because int might match the return type of a gcc2
9708 builtin and then its argument prototype would still apply. */
9709char connect();
9710
9711int main() {
9712connect()
9713; return 0; }
9714EOF
9715if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9716 rm -rf conftest*
9717 eval "ac_cv_lib_$ac_lib_var=yes"
9718else
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 eval "ac_cv_lib_$ac_lib_var=no"
9723fi
9724rm -f conftest*
9725LIBS="$ac_save_LIBS"
9726
9727fi
9728if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9729 echo "$ac_t""yes" 1>&6
9730 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9731else
9732 echo "$ac_t""no" 1>&6
9733fi
9734
9735 fi
9736
9737 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9738 echo $ac_n "checking for remove""... $ac_c" 1>&6
9739echo "configure:9740: checking for remove" >&5
9740if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9741 echo $ac_n "(cached) $ac_c" 1>&6
9742else
9743 cat > conftest.$ac_ext <<EOF
9744#line 9745 "configure"
9745#include "confdefs.h"
9746/* System header to define __stub macros and hopefully few prototypes,
9747 which can conflict with char remove(); below. */
9748#include <assert.h>
9749/* Override any gcc2 internal prototype to avoid an error. */
9750/* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9752char remove();
9753
9754int main() {
9755
9756/* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759#if defined (__stub_remove) || defined (__stub___remove)
9760choke me
9761#else
9762remove();
9763#endif
9764
9765; return 0; }
9766EOF
9767if { (eval echo configure:9768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9768 rm -rf conftest*
9769 eval "ac_cv_func_remove=yes"
9770else
9771 echo "configure: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9773 rm -rf conftest*
9774 eval "ac_cv_func_remove=no"
9775fi
9776rm -f conftest*
9777fi
9778
9779if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9780 echo "$ac_t""yes" 1>&6
9781 :
9782else
9783 echo "$ac_t""no" 1>&6
9784fi
9785
9786 if test $ac_cv_func_remove = no; then
9787 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
9788echo "configure:9789: checking for remove in -lposix" >&5
9789ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9790if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9792else
9793 ac_save_LIBS="$LIBS"
9794LIBS="-lposix $LIBS"
9795cat > conftest.$ac_ext <<EOF
9796#line 9797 "configure"
9797#include "confdefs.h"
9798/* Override any gcc2 internal prototype to avoid an error. */
9799/* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9801char remove();
9802
9803int main() {
9804remove()
9805; return 0; }
9806EOF
9807if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9808 rm -rf conftest*
9809 eval "ac_cv_lib_$ac_lib_var=yes"
9810else
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9813 rm -rf conftest*
9814 eval "ac_cv_lib_$ac_lib_var=no"
9815fi
9816rm -f conftest*
9817LIBS="$ac_save_LIBS"
9818
9819fi
9820if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9821 echo "$ac_t""yes" 1>&6
9822 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9823else
9824 echo "$ac_t""no" 1>&6
9825fi
9826
9827 fi
9828
9829 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9830 echo $ac_n "checking for shmat""... $ac_c" 1>&6
9831echo "configure:9832: checking for shmat" >&5
9832if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
9834else
9835 cat > conftest.$ac_ext <<EOF
9836#line 9837 "configure"
9837#include "confdefs.h"
9838/* System header to define __stub macros and hopefully few prototypes,
9839 which can conflict with char shmat(); below. */
9840#include <assert.h>
9841/* Override any gcc2 internal prototype to avoid an error. */
9842/* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9844char shmat();
9845
9846int main() {
9847
9848/* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
9851#if defined (__stub_shmat) || defined (__stub___shmat)
9852choke me
9853#else
9854shmat();
9855#endif
9856
9857; return 0; }
9858EOF
9859if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9860 rm -rf conftest*
9861 eval "ac_cv_func_shmat=yes"
9862else
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 rm -rf conftest*
9866 eval "ac_cv_func_shmat=no"
9867fi
9868rm -f conftest*
9869fi
9870
9871if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
9872 echo "$ac_t""yes" 1>&6
9873 :
9874else
9875 echo "$ac_t""no" 1>&6
9876fi
9877
9878 if test $ac_cv_func_shmat = no; then
9879 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
9880echo "configure:9881: checking for shmat in -lipc" >&5
9881ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
9882if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9884else
9885 ac_save_LIBS="$LIBS"
9886LIBS="-lipc $LIBS"
9887cat > conftest.$ac_ext <<EOF
9888#line 9889 "configure"
9889#include "confdefs.h"
9890/* Override any gcc2 internal prototype to avoid an error. */
9891/* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9893char shmat();
9894
9895int main() {
9896shmat()
9897; return 0; }
9898EOF
9899if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9900 rm -rf conftest*
9901 eval "ac_cv_lib_$ac_lib_var=yes"
9902else
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 rm -rf conftest*
9906 eval "ac_cv_lib_$ac_lib_var=no"
9907fi
9908rm -f conftest*
9909LIBS="$ac_save_LIBS"
9910
9911fi
9912if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9913 echo "$ac_t""yes" 1>&6
9914 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9915else
9916 echo "$ac_t""no" 1>&6
9917fi
9918
9919 fi
9920 fi
9921
9922 # Check for libraries that X11R6 Xt/Xaw programs need.
9923 ac_save_LDFLAGS="$LDFLAGS"
9924 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9925 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9926 # check for ICE first), but we must link in the order -lSM -lICE or
9927 # we get undefined symbols. So assume we have SM if we have ICE.
9928 # These have to be linked with before -lX11, unlike the other
9929 # libraries we check for below, so use a different variable.
9930 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
9931 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
9932echo "configure:9933: checking for IceConnectionNumber in -lICE" >&5
9933ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
9934if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9936else
9937 ac_save_LIBS="$LIBS"
9938LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9939cat > conftest.$ac_ext <<EOF
9940#line 9941 "configure"
9941#include "confdefs.h"
9942/* Override any gcc2 internal prototype to avoid an error. */
9943/* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */
9945char IceConnectionNumber();
9946
9947int main() {
9948IceConnectionNumber()
9949; return 0; }
9950EOF
9951if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9952 rm -rf conftest*
9953 eval "ac_cv_lib_$ac_lib_var=yes"
9954else
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 rm -rf conftest*
9958 eval "ac_cv_lib_$ac_lib_var=no"
9959fi
9960rm -f conftest*
9961LIBS="$ac_save_LIBS"
9962
9963fi
9964if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9965 echo "$ac_t""yes" 1>&6
9966 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9967else
9968 echo "$ac_t""no" 1>&6
9969fi
9970
9971 LDFLAGS="$ac_save_LDFLAGS"
9972
9973fi
9974
9975 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9976 LDFLAGS="$LDFLAGS $X_LIBS"
9977
9978 if test "$wxUSE_MOTIF" = 1; then
9979 if test "$no_x" = "yes"; then
9980 { echo "configure: error: X11 not found" 1>&2; exit 1; }
9981 fi
9982
9983 GUI_TK_LIBRARY="$X_LIBS"
9984 TOOLKIT_INCLUDE="$X_CFLAGS"
9985
9986 AFMINSTALL=afminstall
9987
9988
9989 COMPILED_X_PROGRAM=0
9990
9991 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
9992echo "configure:9993: checking for Motif/Lesstif headers" >&5
9993
9994ac_find_includes=
9995for ac_dir in $SEARCH_INCLUDE;
9996 do
9997 if test -f "$ac_dir/Xm/Xm.h"; then
9998 ac_find_includes=$ac_dir
9999 break
10000 fi
10001 done
10002
10003 if test "$ac_find_includes" != "" ; then
10004 echo "$ac_t""found $ac_find_includes" 1>&6
10005 else
10006 cat > conftest.$ac_ext <<EOF
10007#line 10008 "configure"
10008#include "confdefs.h"
10009
10010 #include <Xm/Xm.h>
10011
10012int main() {
10013
10014 int version;
10015
10016 version = xmUseVersion;
10017
10018; return 0; }
10019EOF
10020if { (eval echo configure:10021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10021 rm -rf conftest*
10022
10023 echo "$ac_t""found in default search path" 1>&6
10024 COMPILED_X_PROGRAM=1
10025
10026else
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10029 rm -rf conftest*
10030
10031 echo "$ac_t""no" 1>&6
10032 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10033
10034
10035fi
10036rm -f conftest*
10037 fi
10038
10039 if test "$COMPILED_X_PROGRAM" = 0; then
10040 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10041echo "configure:10042: checking for Motif/Lesstif library" >&5
10042
10043ac_find_libraries=
10044for ac_dir in $SEARCH_LIB;
10045 do
10046 for ac_extension in a so sl; do
10047 if test -f "$ac_dir/libXm.$ac_extension"; then
10048 ac_find_libraries=$ac_dir
10049 break 2
10050 fi
10051 done
10052 done
10053
10054 if test "$ac_find_libraries" != "" ; then
10055
10056 ac_path_to_include=$ac_find_includes
10057 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10058 result=$?
10059 if test $result = 0; then
10060 ac_path_to_include=""
10061 else
10062 ac_path_to_include="-I$ac_find_includes"
10063 fi
10064
10065
10066 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10067 result=$?
10068 if test $result = 0; then
10069 ac_path_to_link=""
10070 else
10071 ac_path_to_link="-L$ac_find_libraries"
10072 fi
10073
10074
10075 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10076 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10077 echo "$ac_t""found at $ac_find_libraries" 1>&6
10078 else
10079 cat > conftest.$ac_ext <<EOF
10080#line 10081 "configure"
10081#include "confdefs.h"
10082
10083 #include <Xm/Xm.h>
10084
10085int main() {
10086
10087 int version;
10088
10089 version = xmUseVersion;
10090
10091; return 0; }
10092EOF
10093if { (eval echo configure:10094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10094 rm -rf conftest*
10095
10096 echo "$ac_t""found in default search path" 1>&6
10097 COMPILED_X_PROGRAM=1
10098
10099else
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 rm -rf conftest*
10103
10104 echo "$ac_t""no" 1>&6
10105 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10106
10107
10108fi
10109rm -f conftest*
10110 fi
10111 fi
10112
10113
10114 XPM_LINK=""
10115 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10116echo "configure:10117: checking for Xpm library" >&5
10117
10118ac_find_libraries=
10119for ac_dir in $SEARCH_LIB;
10120 do
10121 for ac_extension in a so sl; do
10122 if test -f "$ac_dir/libXpm.$ac_extension"; then
10123 ac_find_libraries=$ac_dir
10124 break 2
10125 fi
10126 done
10127 done
10128
10129 if test "$ac_find_libraries" != "" ; then
10130
10131 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10132 result=$?
10133 if test $result = 0; then
10134 ac_path_to_link=""
10135 else
10136 ac_path_to_link="-L$ac_find_libraries"
10137 fi
10138
10139 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10140 XPM_LINK="-lXpm "
10141 cat >> confdefs.h <<\EOF
10142#define wxHAVE_LIB_XPM 1
10143EOF
10144
10145 echo "$ac_t""found at $ac_find_libraries" 1>&6
10146 else
10147 cat > conftest.$ac_ext <<EOF
10148#line 10149 "configure"
10149#include "confdefs.h"
10150
10151 #include <X11/xpm.h>
10152
10153int main() {
10154
10155 int version;
10156
10157 version = XpmLibraryVersion();
10158
10159; return 0; }
10160EOF
10161if { (eval echo configure:10162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10162 rm -rf conftest*
10163
10164 XPM_LINK="-lXpm "
10165 cat >> confdefs.h <<\EOF
10166#define wxHAVE_LIB_XPM 1
10167EOF
10168
10169 echo "$ac_t""found in default search path" 1>&6
10170 COMPILED_X_PROGRAM=0
10171
10172else
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 rm -rf conftest*
10176
10177 echo "$ac_t""no" 1>&6
10178 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10179
10180
10181fi
10182rm -f conftest*
10183 fi
10184
10185 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10186 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10187 TOOLKIT=MOTIF
10188 GUIDIST=MOTIF_DIST
10189 fi
10190
10191 if test "$wxUSE_MAC" = 1; then
10192 TOOLKIT=MAC
10193 GUIDIST=MACX_DIST
10194 fi
10195
10196 if test "$wxUSE_PM" = 1; then
10197 TOOLKIT=PM
10198 GUIDIST=GTK_DIST
10199 fi
10200
10201 if test "$TOOLKIT" != "PM" ; then
10202 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10203 else
10204 TOOLKIT_DIR="os2"
10205 fi
10206
10207 TOOLKIT_NAME="${TOOLKIT_DIR}"
10208
10209 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10210
10211 if test "$TOOLKIT_NAME" = "motif"; then
10212 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10213 fi
10214
10215 if test "$wxUSE_UNIVERSAL" = "yes"; then
10216 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10217 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10218 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10219 SETUPH_DIR="univ"
10220 else
10221 SETUPH_DIR="${TOOLKIT_DIR}"
10222 fi
10223
10224 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10225 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10226 fi
10227
10228 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10229 if test "$wxUSE_UNIVERSAL" = "yes"; then
10230 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10231 fi
10232
10233 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10234
10235 if test "$wxUSE_UNIVERSAL" = "yes"; then
10236 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10237 else
10238 ALL_OBJECTS="\$(GUIOBJS)"
10239 fi
10240
10241 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10242
10243 if test "$TOOLKIT" != "MSW"; then
10244 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10245 fi
10246
10247 if test "$wxUSE_HTML" = "yes"; then
10248 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10249 fi
10250
10251 if test "$TOOLKIT" != "MSW"; then
10252 if test "$wxUSE_ODBC" = "yes" ; then
10253 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10254 fi
10255 fi
10256
10257 if test "$wxUSE_LIBJPEG" = "yes" ; then
10258 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10259 fi
10260 if test "$wxUSE_LIBTIFF" = "yes" ; then
10261 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10262 fi
10263 if test "$wxUSE_LIBPNG" = "yes" ; then
10264 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10265 fi
10266 if test "$wxUSE_ZLIB" = "yes" ; then
10267 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10268 fi
10269 if test "$wxUSE_FREETYPE" = "yes" ; then
10270 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10271 fi
10272
10273 if test "$wxUSE_UNIVERSAL" = "yes"; then
10274 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10275 else
10276 ALL_DEPFILES="\$(GUIDEPS)"
10277 fi
10278
10279 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10280
10281 if test "$TOOLKIT" != "MSW"; then
10282 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10283 fi
10284
10285 if test "$wxUSE_HTML" = "yes"; then
10286 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10287 fi
10288
10289 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10290 if test "$wxUSE_UNIVERSAL" = "yes"; then
10291 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10292 fi
10293 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10294 RPM_SPEC="wx\$(TOOLKIT).spec"
10295
10296 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10297 DISTDIR="wx\$(TOOLKIT)"
10298else
10299 USE_GUI=0
10300
10301 TOOLKIT_DIR="base"
10302
10303 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10304 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10305 else
10306 TOOLKIT_NAME="${TOOLKIT_DIR}"
10307 fi
10308
10309 TOOLKIT_DEF="-D__WXBASE__"
10310
10311 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10312 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10313
10314 if test "$wxUSE_ZLIB" = "yes" ; then
10315 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10316 fi
10317
10318 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10319
10320 PORT_FILES="src/files.lst"
10321 RPM_FILES="src/rpmfiles.lst"
10322 RPM_SPEC="wxBase.spec"
10323
10324 GUIDIST="BASE_DIST"
10325 DISTDIR="wxBase"
10326fi
10327
10328WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10329WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10330
10331WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10332WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10333
10334WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10335WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10336
10337WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10338WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10339WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10340WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10341WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10342WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10343
10344SHARED_LD=
10345PIC_FLAG=
10346WX_ALL=
10347WX_ALL_INSTALLED=
10348BURNT_LIBRARY_NAME=
10349WX_TARGET_LIBRARY_SONAME=
10350
10351
10352if test "$wxUSE_SHARED" = "yes"; then
10353 case "${host}" in
10354 *-hp-hpux* )
10355 if test "$GCC" = yes ; then
10356 SHARED_LD="${CC} -shared -fPIC -o"
10357 PIC_FLAG="-fPIC"
10358 else
10359 LDFLAGS="-L/usr/lib"
10360
10361 SHARED_LD="${CXX} -b -o"
10362 PIC_FLAG="+Z"
10363 fi
10364 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10365 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10366 if test "$wxUSE_OPENGL" = "yes"; then
10367 WX_ALL_INSTALLED="preinstall_gl"
10368 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10369 else
10370 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10371 fi
10372 ;;
10373
10374 *-*-linux* )
10375 SHARED_LD="${CC} -shared -o"
10376 PIC_FLAG="-fPIC"
10377 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10378 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10379 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10380 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10381 fi
10382 if test "$wxUSE_OPENGL" = "yes"; then
10383 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10384 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10385 else
10386 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10387 WX_ALL="CREATE_LINKS"
10388 fi
10389 ;;
10390 *-*-irix5* | *-*-irix6* )
10391 if test "$GCC" = yes ; then
10392 SHARED_LD="${CC} -shared -o"
10393 PIC_FLAG="-fPIC"
10394 else
10395 SHARED_LD="${CXX} -shared -o"
10396 fi
10397 if test "$wxUSE_OPENGL" = "yes"; then
10398 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10399 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10400 else
10401 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10402 WX_ALL="CREATE_LINKS"
10403 fi
10404 ;;
10405 *-*-solaris2* )
10406 if test "$GCC" = yes ; then
10407 SHARED_LD="${CC} -shared -o"
10408 PIC_FLAG="-fPIC"
10409
10410 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10411 else
10412 SHARED_LD="${CXX} -G -o"
10413 PIC_FLAG="-KPIC"
10414 fi
10415 if test "$wxUSE_OPENGL" = "yes"; then
10416 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10417 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10418 else
10419 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10420 WX_ALL="CREATE_LINKS"
10421 fi
10422 ;;
10423 *-*-sunos4* )
10424 SHARED_LD="${CC} -shared -o"
10425 PIC_FLAG="-fPIC"
10426 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10427 WX_ALL="CREATE_LINKS"
10428 ;;
10429 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10430 SHARED_LD="${CC} -shared -o"
10431 PIC_FLAG="-fPIC"
10432 if test "$wxUSE_OPENGL" = "yes"; then
10433 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10434 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10435 else
10436 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10437 WX_ALL="CREATE_LINKS"
10438 fi
10439 ;;
10440 *-*-darwin* )
10441 SHARED_LD="${CXX} -dynamiclib -o"
10442 PIC_FLAG="-dynamic -fPIC"
10443 if test "$wxUSE_OPENGL" = "yes"; then
10444 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10445 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10446 else
10447 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10448 WX_ALL="CREATE_LINKS"
10449 fi
10450 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10451 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10452 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10453 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10454 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10455 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10456 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10457 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10458 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10459 ;;
10460 *-*-osf* )
10461 SHARED_LD="${CXX} -shared -o"
10462 PIC_FLAG="-fPIC"
10463 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10464 WX_ALL="CREATE_LINKS"
10465 ;;
10466 *-*-dgux5* )
10467 SHARED_LD="${CXX} -shared -o"
10468 PIC_FLAG="-fPIC"
10469 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10470 WX_ALL="CREATE_LINKS"
10471 ;;
10472 *-*-sysv5* )
10473 SHARED_LD="${CC} -shared -o"
10474 PIC_FLAG="-fPIC"
10475 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10476 WX_ALL="CREATE_LINKS"
10477 ;;
10478 *-*-aix* )
10479 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10480 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10481 ;;
10482 *-*-cygwin* )
10483 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10484 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10485 if test "$wxUSE_OPENGL" = "yes"; then
10486 WX_ALL_INSTALLED="preinstall_gl"
10487 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10488 else
10489 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10490 fi
10491 ;;
10492 *-*-mingw32* )
10493 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10494 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10495 if test "$wxUSE_OPENGL" = "yes"; then
10496 WX_ALL_INSTALLED="preinstall_gl"
10497 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10498 else
10499 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10500 fi
10501 ;;
10502 *-pc-os2_emx )
10503 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10504 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10505 ;;
10506 *-*-beos* )
10507 SHARED_LD="${LD} -shared -o"
10508 PIC_FLAG="-fPIC"
10509 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10510 WX_ALL="CREATE_LINKS"
10511 ;;
10512 *)
10513 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10514 esac
10515
10516 if test "x$WX_TARGET_LIBRARY" = "x"; then
10517 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10518 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10519 fi
10520 WX_TARGET_LIBRARY_TYPE="so"
10521else
10522 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10523 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10524
10525 if test "$wxUSE_OPENGL" = "yes"; then
10526 WX_ALL_INSTALLED="preinstall_gl"
10527 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10528 else
10529 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10530 fi
10531
10532 if test "$wxUSE_GUI" = "no"; then
10533 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10534 fi
10535
10536 WX_TARGET_LIBRARY_TYPE="a"
10537fi
10538
10539
10540for ac_hdr in strings.h
10541do
10542ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10543echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10544echo "configure:10545: checking for $ac_hdr" >&5
10545if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10547else
10548 cat > conftest.$ac_ext <<EOF
10549#line 10550 "configure"
10550#include "confdefs.h"
10551#include <$ac_hdr>
10552EOF
10553ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10554{ (eval echo configure:10555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10555ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10556if test -z "$ac_err"; then
10557 rm -rf conftest*
10558 eval "ac_cv_header_$ac_safe=yes"
10559else
10560 echo "$ac_err" >&5
10561 echo "configure: failed program was:" >&5
10562 cat conftest.$ac_ext >&5
10563 rm -rf conftest*
10564 eval "ac_cv_header_$ac_safe=no"
10565fi
10566rm -f conftest*
10567fi
10568if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10571 cat >> confdefs.h <<EOF
10572#define $ac_tr_hdr 1
10573EOF
10574
10575else
10576 echo "$ac_t""no" 1>&6
10577fi
10578done
10579
10580for ac_hdr in stdlib.h
10581do
10582ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10583echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10584echo "configure:10585: checking for $ac_hdr" >&5
10585if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10587else
10588 cat > conftest.$ac_ext <<EOF
10589#line 10590 "configure"
10590#include "confdefs.h"
10591#include <$ac_hdr>
10592EOF
10593ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10594{ (eval echo configure:10595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10595ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10596if test -z "$ac_err"; then
10597 rm -rf conftest*
10598 eval "ac_cv_header_$ac_safe=yes"
10599else
10600 echo "$ac_err" >&5
10601 echo "configure: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10603 rm -rf conftest*
10604 eval "ac_cv_header_$ac_safe=no"
10605fi
10606rm -f conftest*
10607fi
10608if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10609 echo "$ac_t""yes" 1>&6
10610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10611 cat >> confdefs.h <<EOF
10612#define $ac_tr_hdr 1
10613EOF
10614
10615else
10616 echo "$ac_t""no" 1>&6
10617fi
10618done
10619
10620for ac_hdr in unistd.h
10621do
10622ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10623echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10624echo "configure:10625: checking for $ac_hdr" >&5
10625if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10627else
10628 cat > conftest.$ac_ext <<EOF
10629#line 10630 "configure"
10630#include "confdefs.h"
10631#include <$ac_hdr>
10632EOF
10633ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10634{ (eval echo configure:10635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10635ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10636if test -z "$ac_err"; then
10637 rm -rf conftest*
10638 eval "ac_cv_header_$ac_safe=yes"
10639else
10640 echo "$ac_err" >&5
10641 echo "configure: failed program was:" >&5
10642 cat conftest.$ac_ext >&5
10643 rm -rf conftest*
10644 eval "ac_cv_header_$ac_safe=no"
10645fi
10646rm -f conftest*
10647fi
10648if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10649 echo "$ac_t""yes" 1>&6
10650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10651 cat >> confdefs.h <<EOF
10652#define $ac_tr_hdr 1
10653EOF
10654
10655else
10656 echo "$ac_t""no" 1>&6
10657fi
10658done
10659
10660for ac_hdr in wchar.h
10661do
10662ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10663echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10664echo "configure:10665: checking for $ac_hdr" >&5
10665if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10666 echo $ac_n "(cached) $ac_c" 1>&6
10667else
10668 cat > conftest.$ac_ext <<EOF
10669#line 10670 "configure"
10670#include "confdefs.h"
10671#include <$ac_hdr>
10672EOF
10673ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10674{ (eval echo configure:10675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10675ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10676if test -z "$ac_err"; then
10677 rm -rf conftest*
10678 eval "ac_cv_header_$ac_safe=yes"
10679else
10680 echo "$ac_err" >&5
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 rm -rf conftest*
10684 eval "ac_cv_header_$ac_safe=no"
10685fi
10686rm -f conftest*
10687fi
10688if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10691 cat >> confdefs.h <<EOF
10692#define $ac_tr_hdr 1
10693EOF
10694
10695else
10696 echo "$ac_t""no" 1>&6
10697fi
10698done
10699
10700for ac_hdr in wcstr.h
10701do
10702ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10703echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10704echo "configure:10705: checking for $ac_hdr" >&5
10705if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10707else
10708 cat > conftest.$ac_ext <<EOF
10709#line 10710 "configure"
10710#include "confdefs.h"
10711#include <$ac_hdr>
10712EOF
10713ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10714{ (eval echo configure:10715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10715ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10716if test -z "$ac_err"; then
10717 rm -rf conftest*
10718 eval "ac_cv_header_$ac_safe=yes"
10719else
10720 echo "$ac_err" >&5
10721 echo "configure: failed program was:" >&5
10722 cat conftest.$ac_ext >&5
10723 rm -rf conftest*
10724 eval "ac_cv_header_$ac_safe=no"
10725fi
10726rm -f conftest*
10727fi
10728if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10729 echo "$ac_t""yes" 1>&6
10730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10731 cat >> confdefs.h <<EOF
10732#define $ac_tr_hdr 1
10733EOF
10734
10735else
10736 echo "$ac_t""no" 1>&6
10737fi
10738done
10739
10740for ac_hdr in fnmatch.h
10741do
10742ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10743echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10744echo "configure:10745: checking for $ac_hdr" >&5
10745if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10747else
10748 cat > conftest.$ac_ext <<EOF
10749#line 10750 "configure"
10750#include "confdefs.h"
10751#include <$ac_hdr>
10752EOF
10753ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10754{ (eval echo configure:10755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10755ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10756if test -z "$ac_err"; then
10757 rm -rf conftest*
10758 eval "ac_cv_header_$ac_safe=yes"
10759else
10760 echo "$ac_err" >&5
10761 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10763 rm -rf conftest*
10764 eval "ac_cv_header_$ac_safe=no"
10765fi
10766rm -f conftest*
10767fi
10768if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10769 echo "$ac_t""yes" 1>&6
10770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10771 cat >> confdefs.h <<EOF
10772#define $ac_tr_hdr 1
10773EOF
10774
10775else
10776 echo "$ac_t""no" 1>&6
10777fi
10778done
10779
10780for ac_hdr in iconv.h
10781do
10782ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10783echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10784echo "configure:10785: checking for $ac_hdr" >&5
10785if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10786 echo $ac_n "(cached) $ac_c" 1>&6
10787else
10788 cat > conftest.$ac_ext <<EOF
10789#line 10790 "configure"
10790#include "confdefs.h"
10791#include <$ac_hdr>
10792EOF
10793ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10794{ (eval echo configure:10795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10795ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10796if test -z "$ac_err"; then
10797 rm -rf conftest*
10798 eval "ac_cv_header_$ac_safe=yes"
10799else
10800 echo "$ac_err" >&5
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -rf conftest*
10804 eval "ac_cv_header_$ac_safe=no"
10805fi
10806rm -f conftest*
10807fi
10808if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10809 echo "$ac_t""yes" 1>&6
10810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10811 cat >> confdefs.h <<EOF
10812#define $ac_tr_hdr 1
10813EOF
10814
10815else
10816 echo "$ac_t""no" 1>&6
10817fi
10818done
10819
10820for ac_hdr in langinfo.h
10821do
10822ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10823echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10824echo "configure:10825: checking for $ac_hdr" >&5
10825if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10826 echo $ac_n "(cached) $ac_c" 1>&6
10827else
10828 cat > conftest.$ac_ext <<EOF
10829#line 10830 "configure"
10830#include "confdefs.h"
10831#include <$ac_hdr>
10832EOF
10833ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10834{ (eval echo configure:10835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10835ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10836if test -z "$ac_err"; then
10837 rm -rf conftest*
10838 eval "ac_cv_header_$ac_safe=yes"
10839else
10840 echo "$ac_err" >&5
10841 echo "configure: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10843 rm -rf conftest*
10844 eval "ac_cv_header_$ac_safe=no"
10845fi
10846rm -f conftest*
10847fi
10848if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10849 echo "$ac_t""yes" 1>&6
10850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10851 cat >> confdefs.h <<EOF
10852#define $ac_tr_hdr 1
10853EOF
10854
10855else
10856 echo "$ac_t""no" 1>&6
10857fi
10858done
10859
10860
10861if test "$wxUSE_GUI" = "yes"; then
10862 if test "$wxUSE_UNIX" = "yes"; then
10863 for ac_hdr in X11/XKBlib.h
10864do
10865ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10866echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10867echo "configure:10868: checking for $ac_hdr" >&5
10868if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10869 echo $ac_n "(cached) $ac_c" 1>&6
10870else
10871 cat > conftest.$ac_ext <<EOF
10872#line 10873 "configure"
10873#include "confdefs.h"
10874#include <$ac_hdr>
10875EOF
10876ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10877{ (eval echo configure:10878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10878ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10879if test -z "$ac_err"; then
10880 rm -rf conftest*
10881 eval "ac_cv_header_$ac_safe=yes"
10882else
10883 echo "$ac_err" >&5
10884 echo "configure: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10886 rm -rf conftest*
10887 eval "ac_cv_header_$ac_safe=no"
10888fi
10889rm -f conftest*
10890fi
10891if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10892 echo "$ac_t""yes" 1>&6
10893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10894 cat >> confdefs.h <<EOF
10895#define $ac_tr_hdr 1
10896EOF
10897
10898else
10899 echo "$ac_t""no" 1>&6
10900fi
10901done
10902
10903 fi
10904fi
10905
10906
10907echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10908echo "configure:10909: checking for ANSI C header files" >&5
10909if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10910 echo $ac_n "(cached) $ac_c" 1>&6
10911else
10912 cat > conftest.$ac_ext <<EOF
10913#line 10914 "configure"
10914#include "confdefs.h"
10915#include <stdlib.h>
10916#include <stdarg.h>
10917#include <string.h>
10918#include <float.h>
10919EOF
10920ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10921{ (eval echo configure:10922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10922ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10923if test -z "$ac_err"; then
10924 rm -rf conftest*
10925 ac_cv_header_stdc=yes
10926else
10927 echo "$ac_err" >&5
10928 echo "configure: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10930 rm -rf conftest*
10931 ac_cv_header_stdc=no
10932fi
10933rm -f conftest*
10934
10935if test $ac_cv_header_stdc = yes; then
10936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10937cat > conftest.$ac_ext <<EOF
10938#line 10939 "configure"
10939#include "confdefs.h"
10940#include <string.h>
10941EOF
10942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10943 egrep "memchr" >/dev/null 2>&1; then
10944 :
10945else
10946 rm -rf conftest*
10947 ac_cv_header_stdc=no
10948fi
10949rm -f conftest*
10950
10951fi
10952
10953if test $ac_cv_header_stdc = yes; then
10954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10955cat > conftest.$ac_ext <<EOF
10956#line 10957 "configure"
10957#include "confdefs.h"
10958#include <stdlib.h>
10959EOF
10960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10961 egrep "free" >/dev/null 2>&1; then
10962 :
10963else
10964 rm -rf conftest*
10965 ac_cv_header_stdc=no
10966fi
10967rm -f conftest*
10968
10969fi
10970
10971if test $ac_cv_header_stdc = yes; then
10972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10973if test "$cross_compiling" = yes; then
10974 :
10975else
10976 cat > conftest.$ac_ext <<EOF
10977#line 10978 "configure"
10978#include "confdefs.h"
10979#include <ctype.h>
10980#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10981#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10982#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10983int main () { int i; for (i = 0; i < 256; i++)
10984if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10985exit (0); }
10986
10987EOF
10988if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10989then
10990 :
10991else
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 rm -fr conftest*
10995 ac_cv_header_stdc=no
10996fi
10997rm -fr conftest*
10998fi
10999
11000fi
11001fi
11002
11003echo "$ac_t""$ac_cv_header_stdc" 1>&6
11004if test $ac_cv_header_stdc = yes; then
11005 cat >> confdefs.h <<\EOF
11006#define STDC_HEADERS 1
11007EOF
11008
11009fi
11010
11011echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11012echo "configure:11013: checking for mode_t" >&5
11013if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11015else
11016 cat > conftest.$ac_ext <<EOF
11017#line 11018 "configure"
11018#include "confdefs.h"
11019#include <sys/types.h>
11020#if STDC_HEADERS
11021#include <stdlib.h>
11022#include <stddef.h>
11023#endif
11024EOF
11025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11026 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11027 rm -rf conftest*
11028 ac_cv_type_mode_t=yes
11029else
11030 rm -rf conftest*
11031 ac_cv_type_mode_t=no
11032fi
11033rm -f conftest*
11034
11035fi
11036echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11037if test $ac_cv_type_mode_t = no; then
11038 cat >> confdefs.h <<\EOF
11039#define mode_t int
11040EOF
11041
11042fi
11043
11044echo $ac_n "checking for off_t""... $ac_c" 1>&6
11045echo "configure:11046: checking for off_t" >&5
11046if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
11048else
11049 cat > conftest.$ac_ext <<EOF
11050#line 11051 "configure"
11051#include "confdefs.h"
11052#include <sys/types.h>
11053#if STDC_HEADERS
11054#include <stdlib.h>
11055#include <stddef.h>
11056#endif
11057EOF
11058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11059 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11060 rm -rf conftest*
11061 ac_cv_type_off_t=yes
11062else
11063 rm -rf conftest*
11064 ac_cv_type_off_t=no
11065fi
11066rm -f conftest*
11067
11068fi
11069echo "$ac_t""$ac_cv_type_off_t" 1>&6
11070if test $ac_cv_type_off_t = no; then
11071 cat >> confdefs.h <<\EOF
11072#define off_t long
11073EOF
11074
11075fi
11076
11077echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11078echo "configure:11079: checking for pid_t" >&5
11079if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11080 echo $ac_n "(cached) $ac_c" 1>&6
11081else
11082 cat > conftest.$ac_ext <<EOF
11083#line 11084 "configure"
11084#include "confdefs.h"
11085#include <sys/types.h>
11086#if STDC_HEADERS
11087#include <stdlib.h>
11088#include <stddef.h>
11089#endif
11090EOF
11091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11092 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11093 rm -rf conftest*
11094 ac_cv_type_pid_t=yes
11095else
11096 rm -rf conftest*
11097 ac_cv_type_pid_t=no
11098fi
11099rm -f conftest*
11100
11101fi
11102echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11103if test $ac_cv_type_pid_t = no; then
11104 cat >> confdefs.h <<\EOF
11105#define pid_t int
11106EOF
11107
11108fi
11109
11110echo $ac_n "checking for size_t""... $ac_c" 1>&6
11111echo "configure:11112: checking for size_t" >&5
11112if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11113 echo $ac_n "(cached) $ac_c" 1>&6
11114else
11115 cat > conftest.$ac_ext <<EOF
11116#line 11117 "configure"
11117#include "confdefs.h"
11118#include <sys/types.h>
11119#if STDC_HEADERS
11120#include <stdlib.h>
11121#include <stddef.h>
11122#endif
11123EOF
11124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11125 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11126 rm -rf conftest*
11127 ac_cv_type_size_t=yes
11128else
11129 rm -rf conftest*
11130 ac_cv_type_size_t=no
11131fi
11132rm -f conftest*
11133
11134fi
11135echo "$ac_t""$ac_cv_type_size_t" 1>&6
11136if test $ac_cv_type_size_t = no; then
11137 cat >> confdefs.h <<\EOF
11138#define size_t unsigned
11139EOF
11140
11141fi
11142
11143echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11144echo "configure:11145: checking for uid_t in sys/types.h" >&5
11145if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11146 echo $ac_n "(cached) $ac_c" 1>&6
11147else
11148 cat > conftest.$ac_ext <<EOF
11149#line 11150 "configure"
11150#include "confdefs.h"
11151#include <sys/types.h>
11152EOF
11153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11154 egrep "uid_t" >/dev/null 2>&1; then
11155 rm -rf conftest*
11156 ac_cv_type_uid_t=yes
11157else
11158 rm -rf conftest*
11159 ac_cv_type_uid_t=no
11160fi
11161rm -f conftest*
11162
11163fi
11164
11165echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11166if test $ac_cv_type_uid_t = no; then
11167 cat >> confdefs.h <<\EOF
11168#define uid_t int
11169EOF
11170
11171 cat >> confdefs.h <<\EOF
11172#define gid_t int
11173EOF
11174
11175fi
11176
11177
11178echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11179echo "configure:11180: checking for wchar_t" >&5
11180if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11181 echo $ac_n "(cached) $ac_c" 1>&6
11182else
11183
11184 cat > conftest.$ac_ext <<EOF
11185#line 11186 "configure"
11186#include "confdefs.h"
11187#include <wchar.h>
11188int main() {
11189
11190 wchar_t wc, *ws;
11191 wc = L'a';
11192 ws = L"Hello, world!";
11193
11194; return 0; }
11195EOF
11196if { (eval echo configure:11197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11197 rm -rf conftest*
11198 wx_cv_type_wchar_t=yes
11199else
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11202 rm -rf conftest*
11203 cat > conftest.$ac_ext <<EOF
11204#line 11205 "configure"
11205#include "confdefs.h"
11206#include <stdlib.h>
11207int main() {
11208
11209 wchar_t wc, *ws;
11210 wc = L'a';
11211 ws = L"Hello, world!";
11212
11213; return 0; }
11214EOF
11215if { (eval echo configure:11216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11216 rm -rf conftest*
11217 wx_cv_type_wchar_t=yes
11218else
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11221 rm -rf conftest*
11222 wx_cv_type_wchar_t=no
11223fi
11224rm -f conftest*
11225
11226fi
11227rm -f conftest*
11228
11229fi
11230
11231echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11232
11233if test "$wx_cv_type_wchar_t" = "yes"; then
11234 cat >> confdefs.h <<\EOF
11235#define wxUSE_WCHAR_T 1
11236EOF
11237
11238fi
11239
11240
11241ac_ext=C
11242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11243ac_cpp='$CXXCPP $CPPFLAGS'
11244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11246cross_compiling=$ac_cv_prog_cxx_cross
11247
11248echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11249echo "configure:11250: checking if size_t is unsigned int" >&5
11250if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11252else
11253 cat > conftest.$ac_ext <<EOF
11254#line 11255 "configure"
11255#include "confdefs.h"
11256#include <stddef.h>
11257int main() {
11258
11259 return 0; }
11260
11261 struct Foo { void foo(size_t); void foo(unsigned int); };
11262
11263 int bar() {
11264
11265; return 0; }
11266EOF
11267if { (eval echo configure:11268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11268 rm -rf conftest*
11269 wx_cv_size_t_is_uint=no
11270else
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 rm -rf conftest*
11274 wx_cv_size_t_is_uint=yes
11275
11276fi
11277rm -f conftest*
11278
11279fi
11280
11281echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11282
11283if test "$wx_cv_size_t_is_uint" = "yes"; then
11284 cat >> confdefs.h <<\EOF
11285#define wxSIZE_T_IS_UINT 1
11286EOF
11287
11288else
11289 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11290echo "configure:11291: checking if size_t is unsigned long" >&5
11291if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11293else
11294 cat > conftest.$ac_ext <<EOF
11295#line 11296 "configure"
11296#include "confdefs.h"
11297#include <stddef.h>
11298int main() {
11299
11300 return 0; }
11301
11302 struct Foo { void foo(size_t); void foo(unsigned long); };
11303
11304 int bar() {
11305
11306; return 0; }
11307EOF
11308if { (eval echo configure:11309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11309 rm -rf conftest*
11310 wx_cv_size_t_is_ulong=no
11311else
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 rm -rf conftest*
11315 wx_cv_size_t_is_ulong=yes
11316
11317fi
11318rm -f conftest*
11319
11320fi
11321
11322echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11323
11324 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11325 cat >> confdefs.h <<\EOF
11326#define wxSIZE_T_IS_ULONG 1
11327EOF
11328
11329 fi
11330fi
11331
11332ac_ext=c
11333# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11334ac_cpp='$CPP $CPPFLAGS'
11335ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11336ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11337cross_compiling=$ac_cv_prog_cc_cross
11338
11339
11340
11341echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11342echo "configure:11343: checking for pw_gecos in struct passwd" >&5
11343if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11344 echo $ac_n "(cached) $ac_c" 1>&6
11345else
11346
11347 cat > conftest.$ac_ext <<EOF
11348#line 11349 "configure"
11349#include "confdefs.h"
11350#include <pwd.h>
11351int main() {
11352
11353 char *p;
11354 struct passwd *pw;
11355 p = pw->pw_gecos;
11356
11357; return 0; }
11358EOF
11359if { (eval echo configure:11360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11360 rm -rf conftest*
11361
11362 wx_cv_struct_pw_gecos=yes
11363
11364else
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 rm -rf conftest*
11368
11369 wx_cv_struct_pw_gecos=no
11370
11371
11372fi
11373rm -f conftest*
11374
11375
11376fi
11377
11378echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11379
11380if test "$wx_cv_struct_pw_gecos" = "yes"; then
11381 cat >> confdefs.h <<\EOF
11382#define HAVE_PW_GECOS 1
11383EOF
11384
11385fi
11386
11387
11388echo $ac_n "checking for working const""... $ac_c" 1>&6
11389echo "configure:11390: checking for working const" >&5
11390if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11391 echo $ac_n "(cached) $ac_c" 1>&6
11392else
11393 cat > conftest.$ac_ext <<EOF
11394#line 11395 "configure"
11395#include "confdefs.h"
11396
11397int main() {
11398
11399/* Ultrix mips cc rejects this. */
11400typedef int charset[2]; const charset x;
11401/* SunOS 4.1.1 cc rejects this. */
11402char const *const *ccp;
11403char **p;
11404/* NEC SVR4.0.2 mips cc rejects this. */
11405struct point {int x, y;};
11406static struct point const zero = {0,0};
11407/* AIX XL C 1.02.0.0 rejects this.
11408 It does not let you subtract one const X* pointer from another in an arm
11409 of an if-expression whose if-part is not a constant expression */
11410const char *g = "string";
11411ccp = &g + (g ? g-g : 0);
11412/* HPUX 7.0 cc rejects these. */
11413++ccp;
11414p = (char**) ccp;
11415ccp = (char const *const *) p;
11416{ /* SCO 3.2v4 cc rejects this. */
11417 char *t;
11418 char const *s = 0 ? (char *) 0 : (char const *) 0;
11419
11420 *t++ = 0;
11421}
11422{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11423 int x[] = {25, 17};
11424 const int *foo = &x[0];
11425 ++foo;
11426}
11427{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11428 typedef const int *iptr;
11429 iptr p = 0;
11430 ++p;
11431}
11432{ /* AIX XL C 1.02.0.0 rejects this saying
11433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11434 struct s { int j; const int *ap[3]; };
11435 struct s *b; b->j = 5;
11436}
11437{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11438 const int foo = 10;
11439}
11440
11441; return 0; }
11442EOF
11443if { (eval echo configure:11444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11444 rm -rf conftest*
11445 ac_cv_c_const=yes
11446else
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 rm -rf conftest*
11450 ac_cv_c_const=no
11451fi
11452rm -f conftest*
11453fi
11454
11455echo "$ac_t""$ac_cv_c_const" 1>&6
11456if test $ac_cv_c_const = no; then
11457 cat >> confdefs.h <<\EOF
11458#define const
11459EOF
11460
11461fi
11462
11463echo $ac_n "checking for inline""... $ac_c" 1>&6
11464echo "configure:11465: checking for inline" >&5
11465if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11467else
11468 ac_cv_c_inline=no
11469for ac_kw in inline __inline__ __inline; do
11470 cat > conftest.$ac_ext <<EOF
11471#line 11472 "configure"
11472#include "confdefs.h"
11473
11474int main() {
11475} $ac_kw foo() {
11476; return 0; }
11477EOF
11478if { (eval echo configure:11479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11479 rm -rf conftest*
11480 ac_cv_c_inline=$ac_kw; break
11481else
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11484fi
11485rm -f conftest*
11486done
11487
11488fi
11489
11490echo "$ac_t""$ac_cv_c_inline" 1>&6
11491case "$ac_cv_c_inline" in
11492 inline | yes) ;;
11493 no) cat >> confdefs.h <<\EOF
11494#define inline
11495EOF
11496 ;;
11497 *) cat >> confdefs.h <<EOF
11498#define inline $ac_cv_c_inline
11499EOF
11500 ;;
11501esac
11502
11503
11504echo $ac_n "checking size of char""... $ac_c" 1>&6
11505echo "configure:11506: checking size of char" >&5
11506if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11508else
11509 if test "$cross_compiling" = yes; then
11510 ac_cv_sizeof_char=1
11511else
11512 cat > conftest.$ac_ext <<EOF
11513#line 11514 "configure"
11514#include "confdefs.h"
11515#include <stdio.h>
11516main()
11517{
11518 FILE *f=fopen("conftestval", "w");
11519 if (!f) exit(1);
11520 fprintf(f, "%d\n", sizeof(char));
11521 exit(0);
11522}
11523EOF
11524if { (eval echo configure:11525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11525then
11526 ac_cv_sizeof_char=`cat conftestval`
11527else
11528 echo "configure: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11530 rm -fr conftest*
11531 ac_cv_sizeof_char=0
11532fi
11533rm -fr conftest*
11534fi
11535
11536fi
11537echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11538cat >> confdefs.h <<EOF
11539#define SIZEOF_CHAR $ac_cv_sizeof_char
11540EOF
11541
11542
11543echo $ac_n "checking size of short""... $ac_c" 1>&6
11544echo "configure:11545: checking size of short" >&5
11545if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11546 echo $ac_n "(cached) $ac_c" 1>&6
11547else
11548 if test "$cross_compiling" = yes; then
11549 ac_cv_sizeof_short=2
11550else
11551 cat > conftest.$ac_ext <<EOF
11552#line 11553 "configure"
11553#include "confdefs.h"
11554#include <stdio.h>
11555main()
11556{
11557 FILE *f=fopen("conftestval", "w");
11558 if (!f) exit(1);
11559 fprintf(f, "%d\n", sizeof(short));
11560 exit(0);
11561}
11562EOF
11563if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11564then
11565 ac_cv_sizeof_short=`cat conftestval`
11566else
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -fr conftest*
11570 ac_cv_sizeof_short=0
11571fi
11572rm -fr conftest*
11573fi
11574
11575fi
11576echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11577cat >> confdefs.h <<EOF
11578#define SIZEOF_SHORT $ac_cv_sizeof_short
11579EOF
11580
11581
11582echo $ac_n "checking size of int *""... $ac_c" 1>&6
11583echo "configure:11584: checking size of int *" >&5
11584if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11585 echo $ac_n "(cached) $ac_c" 1>&6
11586else
11587 if test "$cross_compiling" = yes; then
11588 ac_cv_sizeof_int_p=4
11589else
11590 cat > conftest.$ac_ext <<EOF
11591#line 11592 "configure"
11592#include "confdefs.h"
11593#include <stdio.h>
11594main()
11595{
11596 FILE *f=fopen("conftestval", "w");
11597 if (!f) exit(1);
11598 fprintf(f, "%d\n", sizeof(int *));
11599 exit(0);
11600}
11601EOF
11602if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11603then
11604 ac_cv_sizeof_int_p=`cat conftestval`
11605else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -fr conftest*
11609 ac_cv_sizeof_int_p=0
11610fi
11611rm -fr conftest*
11612fi
11613
11614fi
11615echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11616cat >> confdefs.h <<EOF
11617#define SIZEOF_INT_P $ac_cv_sizeof_int_p
11618EOF
11619
11620
11621echo $ac_n "checking size of int""... $ac_c" 1>&6
11622echo "configure:11623: checking size of int" >&5
11623if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11624 echo $ac_n "(cached) $ac_c" 1>&6
11625else
11626 if test "$cross_compiling" = yes; then
11627 ac_cv_sizeof_int=4
11628else
11629 cat > conftest.$ac_ext <<EOF
11630#line 11631 "configure"
11631#include "confdefs.h"
11632#include <stdio.h>
11633main()
11634{
11635 FILE *f=fopen("conftestval", "w");
11636 if (!f) exit(1);
11637 fprintf(f, "%d\n", sizeof(int));
11638 exit(0);
11639}
11640EOF
11641if { (eval echo configure:11642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11642then
11643 ac_cv_sizeof_int=`cat conftestval`
11644else
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11647 rm -fr conftest*
11648 ac_cv_sizeof_int=0
11649fi
11650rm -fr conftest*
11651fi
11652
11653fi
11654echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11655cat >> confdefs.h <<EOF
11656#define SIZEOF_INT $ac_cv_sizeof_int
11657EOF
11658
11659
11660echo $ac_n "checking size of long""... $ac_c" 1>&6
11661echo "configure:11662: checking size of long" >&5
11662if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11663 echo $ac_n "(cached) $ac_c" 1>&6
11664else
11665 if test "$cross_compiling" = yes; then
11666 ac_cv_sizeof_long=4
11667else
11668 cat > conftest.$ac_ext <<EOF
11669#line 11670 "configure"
11670#include "confdefs.h"
11671#include <stdio.h>
11672main()
11673{
11674 FILE *f=fopen("conftestval", "w");
11675 if (!f) exit(1);
11676 fprintf(f, "%d\n", sizeof(long));
11677 exit(0);
11678}
11679EOF
11680if { (eval echo configure:11681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11681then
11682 ac_cv_sizeof_long=`cat conftestval`
11683else
11684 echo "configure: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11686 rm -fr conftest*
11687 ac_cv_sizeof_long=0
11688fi
11689rm -fr conftest*
11690fi
11691
11692fi
11693echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11694cat >> confdefs.h <<EOF
11695#define SIZEOF_LONG $ac_cv_sizeof_long
11696EOF
11697
11698
11699echo $ac_n "checking size of long long""... $ac_c" 1>&6
11700echo "configure:11701: checking size of long long" >&5
11701if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11702 echo $ac_n "(cached) $ac_c" 1>&6
11703else
11704 if test "$cross_compiling" = yes; then
11705 ac_cv_sizeof_long_long=0
11706else
11707 cat > conftest.$ac_ext <<EOF
11708#line 11709 "configure"
11709#include "confdefs.h"
11710#include <stdio.h>
11711main()
11712{
11713 FILE *f=fopen("conftestval", "w");
11714 if (!f) exit(1);
11715 fprintf(f, "%d\n", sizeof(long long));
11716 exit(0);
11717}
11718EOF
11719if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11720then
11721 ac_cv_sizeof_long_long=`cat conftestval`
11722else
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11725 rm -fr conftest*
11726 ac_cv_sizeof_long_long=0
11727fi
11728rm -fr conftest*
11729fi
11730
11731fi
11732echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11733cat >> confdefs.h <<EOF
11734#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11735EOF
11736
11737
11738
11739echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
11740echo "configure:11741: checking size of wchar_t" >&5
11741if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11743else
11744
11745 if test "$cross_compiling" = yes; then
11746 wx_cv_sizeof_wchar_t=4
11747
11748else
11749 cat > conftest.$ac_ext <<EOF
11750#line 11751 "configure"
11751#include "confdefs.h"
11752
11753 #ifdef HAVE_WCHAR_H
11754 # include <wchar.h>
11755 #endif
11756 #ifdef HAVE_STDLIB_H
11757 # include <stdlib.h>
11758 #endif
11759 #include <stdio.h>
11760 int main()
11761 {
11762 FILE *f=fopen("conftestval", "w");
11763 if (!f) exit(1);
11764 fprintf(f, "%i", sizeof(wchar_t));
11765 exit(0);
11766 }
11767
11768EOF
11769if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11770then
11771 wx_cv_sizeof_wchar_t=`cat conftestval`
11772else
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 rm -fr conftest*
11776 wx_cv_sizeof_wchar_t=0
11777fi
11778rm -fr conftest*
11779fi
11780
11781
11782fi
11783
11784echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11785
11786cat >> confdefs.h <<EOF
11787#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
11788EOF
11789
11790
11791echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11792echo "configure:11793: checking whether byte ordering is bigendian" >&5
11793if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
11795else
11796 ac_cv_c_bigendian=unknown
11797# See if sys/param.h defines the BYTE_ORDER macro.
11798cat > conftest.$ac_ext <<EOF
11799#line 11800 "configure"
11800#include "confdefs.h"
11801#include <sys/types.h>
11802#include <sys/param.h>
11803int main() {
11804
11805#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11806 bogus endian macros
11807#endif
11808; return 0; }
11809EOF
11810if { (eval echo configure:11811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11811 rm -rf conftest*
11812 # It does; now see whether it defined to BIG_ENDIAN or not.
11813cat > conftest.$ac_ext <<EOF
11814#line 11815 "configure"
11815#include "confdefs.h"
11816#include <sys/types.h>
11817#include <sys/param.h>
11818int main() {
11819
11820#if BYTE_ORDER != BIG_ENDIAN
11821 not big endian
11822#endif
11823; return 0; }
11824EOF
11825if { (eval echo configure:11826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11826 rm -rf conftest*
11827 ac_cv_c_bigendian=yes
11828else
11829 echo "configure: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 rm -rf conftest*
11832 ac_cv_c_bigendian=no
11833fi
11834rm -f conftest*
11835else
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838fi
11839rm -f conftest*
11840if test $ac_cv_c_bigendian = unknown; then
11841if test "$cross_compiling" = yes; then
11842 ac_cv_c_bigendian=unknown
11843else
11844 cat > conftest.$ac_ext <<EOF
11845#line 11846 "configure"
11846#include "confdefs.h"
11847main () {
11848 /* Are we little or big endian? From Harbison&Steele. */
11849 union
11850 {
11851 long l;
11852 char c[sizeof (long)];
11853 } u;
11854 u.l = 1;
11855 exit (u.c[sizeof (long) - 1] == 1);
11856}
11857EOF
11858if { (eval echo configure:11859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11859then
11860 ac_cv_c_bigendian=no
11861else
11862 echo "configure: failed program was:" >&5
11863 cat conftest.$ac_ext >&5
11864 rm -fr conftest*
11865 ac_cv_c_bigendian=yes
11866fi
11867rm -fr conftest*
11868fi
11869
11870fi
11871fi
11872
11873echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11874if test $ac_cv_c_bigendian = unknown; then
11875 echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2
11876fi
11877if test $ac_cv_c_bigendian = yes; then
11878 cat >> confdefs.h <<\EOF
11879#define WORDS_BIGENDIAN 1
11880EOF
11881
11882fi
11883
11884
11885
11886 if test "$cross_compiling" = "yes"; then
11887 cat >> confdefs.h <<\EOF
11888#define wxUSE_IOSTREAMH 1
11889EOF
11890
11891 else
11892
11893 ac_ext=C
11894# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11895ac_cpp='$CXXCPP $CPPFLAGS'
11896ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11897ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11898cross_compiling=$ac_cv_prog_cxx_cross
11899
11900
11901 for ac_hdr in iostream
11902do
11903ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11904echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11905echo "configure:11906: checking for $ac_hdr" >&5
11906if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11907 echo $ac_n "(cached) $ac_c" 1>&6
11908else
11909 cat > conftest.$ac_ext <<EOF
11910#line 11911 "configure"
11911#include "confdefs.h"
11912#include <$ac_hdr>
11913EOF
11914ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11915{ (eval echo configure:11916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11916ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11917if test -z "$ac_err"; then
11918 rm -rf conftest*
11919 eval "ac_cv_header_$ac_safe=yes"
11920else
11921 echo "$ac_err" >&5
11922 echo "configure: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 rm -rf conftest*
11925 eval "ac_cv_header_$ac_safe=no"
11926fi
11927rm -f conftest*
11928fi
11929if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11930 echo "$ac_t""yes" 1>&6
11931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11932 cat >> confdefs.h <<EOF
11933#define $ac_tr_hdr 1
11934EOF
11935
11936else
11937 echo "$ac_t""no" 1>&6
11938fi
11939done
11940
11941
11942 if test "$ac_cv_header_iostream" = "yes" ; then
11943 :
11944 else
11945 cat >> confdefs.h <<\EOF
11946#define wxUSE_IOSTREAMH 1
11947EOF
11948
11949 fi
11950
11951 ac_ext=c
11952# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11953ac_cpp='$CPP $CPPFLAGS'
11954ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11955ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11956cross_compiling=$ac_cv_prog_cc_cross
11957
11958 fi
11959
11960
11961
11962 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11963echo "configure:11964: checking if C++ compiler supports bool" >&5
11964if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11966else
11967
11968
11969 ac_ext=C
11970# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11971ac_cpp='$CXXCPP $CPPFLAGS'
11972ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11973ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11974cross_compiling=$ac_cv_prog_cxx_cross
11975
11976
11977 cat > conftest.$ac_ext <<EOF
11978#line 11979 "configure"
11979#include "confdefs.h"
11980
11981
11982int main() {
11983
11984 bool b = true;
11985
11986 return 0;
11987
11988; return 0; }
11989EOF
11990if { (eval echo configure:11991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11991 rm -rf conftest*
11992
11993 wx_cv_cpp_bool=yes
11994
11995else
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 rm -rf conftest*
11999
12000 wx_cv_cpp_bool=no
12001
12002
12003fi
12004rm -f conftest*
12005
12006 ac_ext=c
12007# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12008ac_cpp='$CPP $CPPFLAGS'
12009ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12010ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12011cross_compiling=$ac_cv_prog_cc_cross
12012
12013
12014fi
12015
12016echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12017
12018 if test "$wx_cv_cpp_bool" = "yes"; then
12019 cat >> confdefs.h <<\EOF
12020#define HAVE_BOOL 1
12021EOF
12022
12023 fi
12024
12025
12026
12027echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12028echo "configure:12029: checking for wcslen in -lc" >&5
12029ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12030if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
12032else
12033 ac_save_LIBS="$LIBS"
12034LIBS="-lc $LIBS"
12035cat > conftest.$ac_ext <<EOF
12036#line 12037 "configure"
12037#include "confdefs.h"
12038/* Override any gcc2 internal prototype to avoid an error. */
12039/* We use char because int might match the return type of a gcc2
12040 builtin and then its argument prototype would still apply. */
12041char wcslen();
12042
12043int main() {
12044wcslen()
12045; return 0; }
12046EOF
12047if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12048 rm -rf conftest*
12049 eval "ac_cv_lib_$ac_lib_var=yes"
12050else
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 rm -rf conftest*
12054 eval "ac_cv_lib_$ac_lib_var=no"
12055fi
12056rm -f conftest*
12057LIBS="$ac_save_LIBS"
12058
12059fi
12060if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12061 echo "$ac_t""yes" 1>&6
12062
12063 cat >> confdefs.h <<\EOF
12064#define HAVE_WCSLEN 1
12065EOF
12066
12067 WCHAR_LINK=""
12068
12069else
12070 echo "$ac_t""no" 1>&6
12071
12072 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12073echo "configure:12074: checking for wcslen in -lw" >&5
12074ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12075if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12077else
12078 ac_save_LIBS="$LIBS"
12079LIBS="-lw $LIBS"
12080cat > conftest.$ac_ext <<EOF
12081#line 12082 "configure"
12082#include "confdefs.h"
12083/* Override any gcc2 internal prototype to avoid an error. */
12084/* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12086char wcslen();
12087
12088int main() {
12089wcslen()
12090; return 0; }
12091EOF
12092if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12093 rm -rf conftest*
12094 eval "ac_cv_lib_$ac_lib_var=yes"
12095else
12096 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12098 rm -rf conftest*
12099 eval "ac_cv_lib_$ac_lib_var=no"
12100fi
12101rm -f conftest*
12102LIBS="$ac_save_LIBS"
12103
12104fi
12105if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12106 echo "$ac_t""yes" 1>&6
12107
12108 cat >> confdefs.h <<\EOF
12109#define HAVE_WCSLEN 1
12110EOF
12111
12112 WCHAR_LINK="-lw"
12113
12114else
12115 echo "$ac_t""no" 1>&6
12116fi
12117
12118
12119fi
12120
12121
12122echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12123echo "configure:12124: checking for vprintf" >&5
12124if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12126else
12127 cat > conftest.$ac_ext <<EOF
12128#line 12129 "configure"
12129#include "confdefs.h"
12130/* System header to define __stub macros and hopefully few prototypes,
12131 which can conflict with char vprintf(); below. */
12132#include <assert.h>
12133/* Override any gcc2 internal prototype to avoid an error. */
12134/* We use char because int might match the return type of a gcc2
12135 builtin and then its argument prototype would still apply. */
12136char vprintf();
12137
12138int main() {
12139
12140/* The GNU C library defines this for functions which it implements
12141 to always fail with ENOSYS. Some functions are actually named
12142 something starting with __ and the normal name is an alias. */
12143#if defined (__stub_vprintf) || defined (__stub___vprintf)
12144choke me
12145#else
12146vprintf();
12147#endif
12148
12149; return 0; }
12150EOF
12151if { (eval echo configure:12152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12152 rm -rf conftest*
12153 eval "ac_cv_func_vprintf=yes"
12154else
12155 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 rm -rf conftest*
12158 eval "ac_cv_func_vprintf=no"
12159fi
12160rm -f conftest*
12161fi
12162
12163if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12164 echo "$ac_t""yes" 1>&6
12165 cat >> confdefs.h <<\EOF
12166#define HAVE_VPRINTF 1
12167EOF
12168
12169else
12170 echo "$ac_t""no" 1>&6
12171fi
12172
12173if test "$ac_cv_func_vprintf" != yes; then
12174echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12175echo "configure:12176: checking for _doprnt" >&5
12176if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12177 echo $ac_n "(cached) $ac_c" 1>&6
12178else
12179 cat > conftest.$ac_ext <<EOF
12180#line 12181 "configure"
12181#include "confdefs.h"
12182/* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char _doprnt(); below. */
12184#include <assert.h>
12185/* Override any gcc2 internal prototype to avoid an error. */
12186/* We use char because int might match the return type of a gcc2
12187 builtin and then its argument prototype would still apply. */
12188char _doprnt();
12189
12190int main() {
12191
12192/* The GNU C library defines this for functions which it implements
12193 to always fail with ENOSYS. Some functions are actually named
12194 something starting with __ and the normal name is an alias. */
12195#if defined (__stub__doprnt) || defined (__stub____doprnt)
12196choke me
12197#else
12198_doprnt();
12199#endif
12200
12201; return 0; }
12202EOF
12203if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12204 rm -rf conftest*
12205 eval "ac_cv_func__doprnt=yes"
12206else
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 rm -rf conftest*
12210 eval "ac_cv_func__doprnt=no"
12211fi
12212rm -f conftest*
12213fi
12214
12215if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12216 echo "$ac_t""yes" 1>&6
12217 cat >> confdefs.h <<\EOF
12218#define HAVE_DOPRNT 1
12219EOF
12220
12221else
12222 echo "$ac_t""no" 1>&6
12223fi
12224
12225fi
12226
12227
12228
12229
12230
12231
12232
12233echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12234echo "configure:12235: checking for vsnprintf" >&5
12235if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12236 echo $ac_n "(cached) $ac_c" 1>&6
12237else
12238
12239 cat > conftest.$ac_ext <<EOF
12240#line 12241 "configure"
12241#include "confdefs.h"
12242
12243 #include <stdio.h>
12244 #include <stdarg.h>
12245
12246int main() {
12247
12248 int wx_test_vsnprintf(const char *, ...);
12249
12250 wx_test_vsnprintf("%s");
12251 return 0;
12252 }
12253
12254 int wx_test_vsnprintf(const char *fmt, ...)
12255 {
12256 char *s;
12257
12258 va_list argp;
12259 va_start(argp, fmt);
12260 vsnprintf(s, 42, fmt, argp);
12261 va_end(argp);
12262
12263; return 0; }
12264EOF
12265if { (eval echo configure:12266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12266 rm -rf conftest*
12267
12268 wx_cv_func_vsnprintf=yes
12269
12270else
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 rm -rf conftest*
12274
12275 cat > conftest.$ac_ext <<EOF
12276#line 12277 "configure"
12277#include "confdefs.h"
12278
12279 #include <stdio.h>
12280 #include <stdarg.h>
12281
12282int main() {
12283
12284 int wx_test_vsnprintf(const char *, ...);
12285
12286 wx_test_vsnprintf("%s");
12287 return 0;
12288 }
12289
12290 int wx_test_vsnprintf(const char *fmt, ...)
12291 {
12292 char *s;
12293
12294 va_list argp;
12295 va_start(argp, fmt);
12296 _vsnprintf(s, 42, fmt, argp);
12297 va_end(argp);
12298
12299; return 0; }
12300EOF
12301if { (eval echo configure:12302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12302 rm -rf conftest*
12303
12304 wx_cv_func_vsnprintf=yes
12305
12306else
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 rm -rf conftest*
12310
12311 wx_cv_func_vsnprintf=no
12312
12313fi
12314rm -f conftest*
12315
12316fi
12317rm -f conftest*
12318
12319fi
12320
12321echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12322
12323if test "$wx_cv_func_vsnprintf" = yes; then
12324 cat >> confdefs.h <<\EOF
12325#define HAVE_VSNPRINTF 1
12326EOF
12327
12328else
12329 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12330fi
12331
12332echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12333echo "configure:12334: checking for vsscanf" >&5
12334if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12335 echo $ac_n "(cached) $ac_c" 1>&6
12336else
12337
12338 cat > conftest.$ac_ext <<EOF
12339#line 12340 "configure"
12340#include "confdefs.h"
12341
12342 #include <stdio.h>
12343 #include <stdarg.h>
12344
12345int main() {
12346
12347 int wx_test_vsscanf(const char *, ...);
12348
12349 wx_test_vsscanf("%d");
12350 return 0;
12351 }
12352
12353 int wx_test_vsscanf(const char *fmt, ...)
12354 {
12355 va_list argp;
12356 va_start(argp, fmt);
12357 vsscanf("42", fmt, argp);
12358 va_end(argp);
12359
12360; return 0; }
12361EOF
12362if { (eval echo configure:12363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12363 rm -rf conftest*
12364
12365 wx_cv_func_vsscanf=yes
12366
12367else
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 rm -rf conftest*
12371
12372 wx_cv_func_vsscanf=no
12373
12374fi
12375rm -f conftest*
12376
12377fi
12378
12379echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12380
12381if test "$wx_cv_func_vsscanf" = yes; then
12382 cat >> confdefs.h <<\EOF
12383#define HAVE_VSSCANF 1
12384EOF
12385
12386fi
12387
12388if test "$TOOLKIT" != "MSW"; then
12389
12390
12391
12392ac_ext=C
12393# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12394ac_cpp='$CXXCPP $CPPFLAGS'
12395ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12396ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12397cross_compiling=$ac_cv_prog_cxx_cross
12398
12399echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12400echo "configure:12401: checking if iconv() takes char**" >&5
12401if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12402 echo $ac_n "(cached) $ac_c" 1>&6
12403else
12404
12405 cat > conftest.$ac_ext <<EOF
12406#line 12407 "configure"
12407#include "confdefs.h"
12408#include <iconv.h>
12409int main() {
12410
12411 char **inbuf, **outbuf;
12412 iconv_t cd;
12413 size_t insz, outsz;
12414 iconv(cd, inbuf, &insz, outbuf, &outsz);
12415
12416; return 0; }
12417EOF
12418if { (eval echo configure:12419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12419 rm -rf conftest*
12420 wx_cv_iconv_takes_char=yes
12421else
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 rm -rf conftest*
12425 wx_cv_iconv_takes_char=no
12426fi
12427rm -f conftest*
12428
12429fi
12430
12431echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12432ac_ext=c
12433# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12434ac_cpp='$CPP $CPPFLAGS'
12435ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12436ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12437cross_compiling=$ac_cv_prog_cc_cross
12438
12439if test "$wx_cv_iconv_takes_char" = yes ; then
12440 cat >> confdefs.h <<\EOF
12441#define WX_ICONV_TAKES_CHAR 1
12442EOF
12443
12444fi
12445
12446
12447if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12448 for ac_func in sigaction
12449do
12450echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12451echo "configure:12452: checking for $ac_func" >&5
12452if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12453 echo $ac_n "(cached) $ac_c" 1>&6
12454else
12455 cat > conftest.$ac_ext <<EOF
12456#line 12457 "configure"
12457#include "confdefs.h"
12458/* System header to define __stub macros and hopefully few prototypes,
12459 which can conflict with char $ac_func(); below. */
12460#include <assert.h>
12461/* Override any gcc2 internal prototype to avoid an error. */
12462/* We use char because int might match the return type of a gcc2
12463 builtin and then its argument prototype would still apply. */
12464char $ac_func();
12465
12466int main() {
12467
12468/* The GNU C library defines this for functions which it implements
12469 to always fail with ENOSYS. Some functions are actually named
12470 something starting with __ and the normal name is an alias. */
12471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12472choke me
12473#else
12474$ac_func();
12475#endif
12476
12477; return 0; }
12478EOF
12479if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12480 rm -rf conftest*
12481 eval "ac_cv_func_$ac_func=yes"
12482else
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 rm -rf conftest*
12486 eval "ac_cv_func_$ac_func=no"
12487fi
12488rm -f conftest*
12489fi
12490
12491if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12492 echo "$ac_t""yes" 1>&6
12493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12494 cat >> confdefs.h <<EOF
12495#define $ac_tr_func 1
12496EOF
12497
12498else
12499 echo "$ac_t""no" 1>&6
12500fi
12501done
12502
12503
12504 if test "$ac_cv_func_sigaction" = "no"; then
12505 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
12506 wxUSE_ON_FATAL_EXCEPTION=no
12507 fi
12508
12509 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12510
12511 ac_ext=C
12512# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12513ac_cpp='$CXXCPP $CPPFLAGS'
12514ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12515ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12516cross_compiling=$ac_cv_prog_cxx_cross
12517
12518
12519 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
12520echo "configure:12521: checking for sa_handler type" >&5
12521if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12523else
12524
12525 cat > conftest.$ac_ext <<EOF
12526#line 12527 "configure"
12527#include "confdefs.h"
12528#include <signal.h>
12529int main() {
12530
12531 extern void testSigHandler(int);
12532
12533 struct sigaction sa;
12534 sa.sa_handler = testSigHandler;
12535
12536; return 0; }
12537EOF
12538if { (eval echo configure:12539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12539 rm -rf conftest*
12540
12541 wx_cv_type_sa_handler=int
12542
12543else
12544 echo "configure: failed program was:" >&5
12545 cat conftest.$ac_ext >&5
12546 rm -rf conftest*
12547
12548 wx_cv_type_sa_handler=void
12549
12550fi
12551rm -f conftest*
12552
12553fi
12554
12555echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
12556
12557 ac_ext=c
12558# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12559ac_cpp='$CPP $CPPFLAGS'
12560ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12561ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12562cross_compiling=$ac_cv_prog_cc_cross
12563
12564
12565 cat >> confdefs.h <<EOF
12566#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12567EOF
12568
12569 fi
12570fi
12571
12572for ac_func in vfork
12573do
12574echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12575echo "configure:12576: checking for $ac_func" >&5
12576if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12577 echo $ac_n "(cached) $ac_c" 1>&6
12578else
12579 cat > conftest.$ac_ext <<EOF
12580#line 12581 "configure"
12581#include "confdefs.h"
12582/* System header to define __stub macros and hopefully few prototypes,
12583 which can conflict with char $ac_func(); below. */
12584#include <assert.h>
12585/* Override any gcc2 internal prototype to avoid an error. */
12586/* We use char because int might match the return type of a gcc2
12587 builtin and then its argument prototype would still apply. */
12588char $ac_func();
12589
12590int main() {
12591
12592/* The GNU C library defines this for functions which it implements
12593 to always fail with ENOSYS. Some functions are actually named
12594 something starting with __ and the normal name is an alias. */
12595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12596choke me
12597#else
12598$ac_func();
12599#endif
12600
12601; return 0; }
12602EOF
12603if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12604 rm -rf conftest*
12605 eval "ac_cv_func_$ac_func=yes"
12606else
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12609 rm -rf conftest*
12610 eval "ac_cv_func_$ac_func=no"
12611fi
12612rm -f conftest*
12613fi
12614
12615if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12616 echo "$ac_t""yes" 1>&6
12617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12618 cat >> confdefs.h <<EOF
12619#define $ac_tr_func 1
12620EOF
12621
12622else
12623 echo "$ac_t""no" 1>&6
12624fi
12625done
12626
12627
12628if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12629 for ac_func in fcntl flock
12630do
12631echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12632echo "configure:12633: checking for $ac_func" >&5
12633if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12634 echo $ac_n "(cached) $ac_c" 1>&6
12635else
12636 cat > conftest.$ac_ext <<EOF
12637#line 12638 "configure"
12638#include "confdefs.h"
12639/* System header to define __stub macros and hopefully few prototypes,
12640 which can conflict with char $ac_func(); below. */
12641#include <assert.h>
12642/* Override any gcc2 internal prototype to avoid an error. */
12643/* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12645char $ac_func();
12646
12647int main() {
12648
12649/* The GNU C library defines this for functions which it implements
12650 to always fail with ENOSYS. Some functions are actually named
12651 something starting with __ and the normal name is an alias. */
12652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12653choke me
12654#else
12655$ac_func();
12656#endif
12657
12658; return 0; }
12659EOF
12660if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12661 rm -rf conftest*
12662 eval "ac_cv_func_$ac_func=yes"
12663else
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 rm -rf conftest*
12667 eval "ac_cv_func_$ac_func=no"
12668fi
12669rm -f conftest*
12670fi
12671
12672if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12673 echo "$ac_t""yes" 1>&6
12674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12675 cat >> confdefs.h <<EOF
12676#define $ac_tr_func 1
12677EOF
12678 break
12679else
12680 echo "$ac_t""no" 1>&6
12681fi
12682done
12683
12684
12685 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
12686 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
12687 wxUSE_SNGLINST_CHECKER=no
12688 fi
12689fi
12690
12691for ac_func in timegm
12692do
12693echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12694echo "configure:12695: checking for $ac_func" >&5
12695if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12696 echo $ac_n "(cached) $ac_c" 1>&6
12697else
12698 cat > conftest.$ac_ext <<EOF
12699#line 12700 "configure"
12700#include "confdefs.h"
12701/* System header to define __stub macros and hopefully few prototypes,
12702 which can conflict with char $ac_func(); below. */
12703#include <assert.h>
12704/* Override any gcc2 internal prototype to avoid an error. */
12705/* We use char because int might match the return type of a gcc2
12706 builtin and then its argument prototype would still apply. */
12707char $ac_func();
12708
12709int main() {
12710
12711/* The GNU C library defines this for functions which it implements
12712 to always fail with ENOSYS. Some functions are actually named
12713 something starting with __ and the normal name is an alias. */
12714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12715choke me
12716#else
12717$ac_func();
12718#endif
12719
12720; return 0; }
12721EOF
12722if { (eval echo configure:12723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12723 rm -rf conftest*
12724 eval "ac_cv_func_$ac_func=yes"
12725else
12726 echo "configure: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12728 rm -rf conftest*
12729 eval "ac_cv_func_$ac_func=no"
12730fi
12731rm -f conftest*
12732fi
12733
12734if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12735 echo "$ac_t""yes" 1>&6
12736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12737 cat >> confdefs.h <<EOF
12738#define $ac_tr_func 1
12739EOF
12740
12741else
12742 echo "$ac_t""no" 1>&6
12743fi
12744done
12745
12746
12747for ac_func in putenv setenv
12748do
12749echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12750echo "configure:12751: checking for $ac_func" >&5
12751if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12752 echo $ac_n "(cached) $ac_c" 1>&6
12753else
12754 cat > conftest.$ac_ext <<EOF
12755#line 12756 "configure"
12756#include "confdefs.h"
12757/* System header to define __stub macros and hopefully few prototypes,
12758 which can conflict with char $ac_func(); below. */
12759#include <assert.h>
12760/* Override any gcc2 internal prototype to avoid an error. */
12761/* We use char because int might match the return type of a gcc2
12762 builtin and then its argument prototype would still apply. */
12763char $ac_func();
12764
12765int main() {
12766
12767/* The GNU C library defines this for functions which it implements
12768 to always fail with ENOSYS. Some functions are actually named
12769 something starting with __ and the normal name is an alias. */
12770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12771choke me
12772#else
12773$ac_func();
12774#endif
12775
12776; return 0; }
12777EOF
12778if { (eval echo configure:12779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12779 rm -rf conftest*
12780 eval "ac_cv_func_$ac_func=yes"
12781else
12782 echo "configure: failed program was:" >&5
12783 cat conftest.$ac_ext >&5
12784 rm -rf conftest*
12785 eval "ac_cv_func_$ac_func=no"
12786fi
12787rm -f conftest*
12788fi
12789
12790if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12791 echo "$ac_t""yes" 1>&6
12792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12793 cat >> confdefs.h <<EOF
12794#define $ac_tr_func 1
12795EOF
12796 break
12797else
12798 echo "$ac_t""no" 1>&6
12799fi
12800done
12801
12802
12803HAVE_SOME_SLEEP_FUNC=0
12804if test "$USE_BEOS" = 1; then
12805 cat >> confdefs.h <<\EOF
12806#define HAVE_SLEEP 1
12807EOF
12808
12809 HAVE_SOME_SLEEP_FUNC=1
12810fi
12811
12812if test "$USE_MAC" = 1; then
12813 cat >> confdefs.h <<\EOF
12814#define HAVE_USLEEP 1
12815EOF
12816
12817 HAVE_SOME_SLEEP_FUNC=1
12818fi
12819
12820if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12821 POSIX4_LINK=
12822 for ac_func in nanosleep
12823do
12824echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12825echo "configure:12826: checking for $ac_func" >&5
12826if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12827 echo $ac_n "(cached) $ac_c" 1>&6
12828else
12829 cat > conftest.$ac_ext <<EOF
12830#line 12831 "configure"
12831#include "confdefs.h"
12832/* System header to define __stub macros and hopefully few prototypes,
12833 which can conflict with char $ac_func(); below. */
12834#include <assert.h>
12835/* Override any gcc2 internal prototype to avoid an error. */
12836/* We use char because int might match the return type of a gcc2
12837 builtin and then its argument prototype would still apply. */
12838char $ac_func();
12839
12840int main() {
12841
12842/* The GNU C library defines this for functions which it implements
12843 to always fail with ENOSYS. Some functions are actually named
12844 something starting with __ and the normal name is an alias. */
12845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12846choke me
12847#else
12848$ac_func();
12849#endif
12850
12851; return 0; }
12852EOF
12853if { (eval echo configure:12854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12854 rm -rf conftest*
12855 eval "ac_cv_func_$ac_func=yes"
12856else
12857 echo "configure: failed program was:" >&5
12858 cat conftest.$ac_ext >&5
12859 rm -rf conftest*
12860 eval "ac_cv_func_$ac_func=no"
12861fi
12862rm -f conftest*
12863fi
12864
12865if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12866 echo "$ac_t""yes" 1>&6
12867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12868 cat >> confdefs.h <<EOF
12869#define $ac_tr_func 1
12870EOF
12871 cat >> confdefs.h <<\EOF
12872#define HAVE_NANOSLEEP 1
12873EOF
12874
12875else
12876 echo "$ac_t""no" 1>&6
12877echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
12878echo "configure:12879: checking for nanosleep in -lposix4" >&5
12879ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
12880if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12881 echo $ac_n "(cached) $ac_c" 1>&6
12882else
12883 ac_save_LIBS="$LIBS"
12884LIBS="-lposix4 $LIBS"
12885cat > conftest.$ac_ext <<EOF
12886#line 12887 "configure"
12887#include "confdefs.h"
12888/* Override any gcc2 internal prototype to avoid an error. */
12889/* We use char because int might match the return type of a gcc2
12890 builtin and then its argument prototype would still apply. */
12891char nanosleep();
12892
12893int main() {
12894nanosleep()
12895; return 0; }
12896EOF
12897if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12898 rm -rf conftest*
12899 eval "ac_cv_lib_$ac_lib_var=yes"
12900else
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12903 rm -rf conftest*
12904 eval "ac_cv_lib_$ac_lib_var=no"
12905fi
12906rm -f conftest*
12907LIBS="$ac_save_LIBS"
12908
12909fi
12910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12911 echo "$ac_t""yes" 1>&6
12912
12913 cat >> confdefs.h <<\EOF
12914#define HAVE_NANOSLEEP 1
12915EOF
12916
12917 POSIX4_LINK="-lposix4"
12918
12919else
12920 echo "$ac_t""no" 1>&6
12921
12922 for ac_func in usleep
12923do
12924echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12925echo "configure:12926: checking for $ac_func" >&5
12926if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12927 echo $ac_n "(cached) $ac_c" 1>&6
12928else
12929 cat > conftest.$ac_ext <<EOF
12930#line 12931 "configure"
12931#include "confdefs.h"
12932/* System header to define __stub macros and hopefully few prototypes,
12933 which can conflict with char $ac_func(); below. */
12934#include <assert.h>
12935/* Override any gcc2 internal prototype to avoid an error. */
12936/* We use char because int might match the return type of a gcc2
12937 builtin and then its argument prototype would still apply. */
12938char $ac_func();
12939
12940int main() {
12941
12942/* The GNU C library defines this for functions which it implements
12943 to always fail with ENOSYS. Some functions are actually named
12944 something starting with __ and the normal name is an alias. */
12945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12946choke me
12947#else
12948$ac_func();
12949#endif
12950
12951; return 0; }
12952EOF
12953if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12954 rm -rf conftest*
12955 eval "ac_cv_func_$ac_func=yes"
12956else
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 rm -rf conftest*
12960 eval "ac_cv_func_$ac_func=no"
12961fi
12962rm -f conftest*
12963fi
12964
12965if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12966 echo "$ac_t""yes" 1>&6
12967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12968 cat >> confdefs.h <<EOF
12969#define $ac_tr_func 1
12970EOF
12971 cat >> confdefs.h <<\EOF
12972#define HAVE_USLEEP 1
12973EOF
12974
12975else
12976 echo "$ac_t""no" 1>&6
12977echo "configure: warning: wxSleep() function will not work" 1>&2
12978
12979fi
12980done
12981
12982
12983
12984fi
12985
12986
12987
12988fi
12989done
12990
12991fi
12992
12993for ac_func in uname gethostname
12994do
12995echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12996echo "configure:12997: checking for $ac_func" >&5
12997if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12998 echo $ac_n "(cached) $ac_c" 1>&6
12999else
13000 cat > conftest.$ac_ext <<EOF
13001#line 13002 "configure"
13002#include "confdefs.h"
13003/* System header to define __stub macros and hopefully few prototypes,
13004 which can conflict with char $ac_func(); below. */
13005#include <assert.h>
13006/* Override any gcc2 internal prototype to avoid an error. */
13007/* We use char because int might match the return type of a gcc2
13008 builtin and then its argument prototype would still apply. */
13009char $ac_func();
13010
13011int main() {
13012
13013/* The GNU C library defines this for functions which it implements
13014 to always fail with ENOSYS. Some functions are actually named
13015 something starting with __ and the normal name is an alias. */
13016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13017choke me
13018#else
13019$ac_func();
13020#endif
13021
13022; return 0; }
13023EOF
13024if { (eval echo configure:13025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13025 rm -rf conftest*
13026 eval "ac_cv_func_$ac_func=yes"
13027else
13028 echo "configure: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13030 rm -rf conftest*
13031 eval "ac_cv_func_$ac_func=no"
13032fi
13033rm -f conftest*
13034fi
13035
13036if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13037 echo "$ac_t""yes" 1>&6
13038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13039 cat >> confdefs.h <<EOF
13040#define $ac_tr_func 1
13041EOF
13042 break
13043else
13044 echo "$ac_t""no" 1>&6
13045fi
13046done
13047
13048
13049
13050ac_ext=C
13051# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13052ac_cpp='$CXXCPP $CPPFLAGS'
13053ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13054ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13055cross_compiling=$ac_cv_prog_cxx_cross
13056
13057
13058for ac_func in strtok_r
13059do
13060echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13061echo "configure:13062: checking for $ac_func" >&5
13062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13064else
13065 cat > conftest.$ac_ext <<EOF
13066#line 13067 "configure"
13067#include "confdefs.h"
13068/* System header to define __stub macros and hopefully few prototypes,
13069 which can conflict with char $ac_func(); below. */
13070#include <assert.h>
13071/* Override any gcc2 internal prototype to avoid an error. */
13072#ifdef __cplusplus
13073extern "C"
13074#endif
13075/* We use char because int might match the return type of a gcc2
13076 builtin and then its argument prototype would still apply. */
13077char $ac_func();
13078
13079int main() {
13080
13081/* The GNU C library defines this for functions which it implements
13082 to always fail with ENOSYS. Some functions are actually named
13083 something starting with __ and the normal name is an alias. */
13084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13085choke me
13086#else
13087$ac_func();
13088#endif
13089
13090; return 0; }
13091EOF
13092if { (eval echo configure:13093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13093 rm -rf conftest*
13094 eval "ac_cv_func_$ac_func=yes"
13095else
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13098 rm -rf conftest*
13099 eval "ac_cv_func_$ac_func=no"
13100fi
13101rm -f conftest*
13102fi
13103
13104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13105 echo "$ac_t""yes" 1>&6
13106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13107 cat >> confdefs.h <<EOF
13108#define $ac_tr_func 1
13109EOF
13110
13111else
13112 echo "$ac_t""no" 1>&6
13113fi
13114done
13115
13116
13117ac_ext=c
13118# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13119ac_cpp='$CPP $CPPFLAGS'
13120ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13121ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13122cross_compiling=$ac_cv_prog_cc_cross
13123
13124
13125INET_LINK=
13126for ac_func in inet_addr
13127do
13128echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13129echo "configure:13130: checking for $ac_func" >&5
13130if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13131 echo $ac_n "(cached) $ac_c" 1>&6
13132else
13133 cat > conftest.$ac_ext <<EOF
13134#line 13135 "configure"
13135#include "confdefs.h"
13136/* System header to define __stub macros and hopefully few prototypes,
13137 which can conflict with char $ac_func(); below. */
13138#include <assert.h>
13139/* Override any gcc2 internal prototype to avoid an error. */
13140/* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13142char $ac_func();
13143
13144int main() {
13145
13146/* The GNU C library defines this for functions which it implements
13147 to always fail with ENOSYS. Some functions are actually named
13148 something starting with __ and the normal name is an alias. */
13149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13150choke me
13151#else
13152$ac_func();
13153#endif
13154
13155; return 0; }
13156EOF
13157if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13158 rm -rf conftest*
13159 eval "ac_cv_func_$ac_func=yes"
13160else
13161 echo "configure: failed program was:" >&5
13162 cat conftest.$ac_ext >&5
13163 rm -rf conftest*
13164 eval "ac_cv_func_$ac_func=no"
13165fi
13166rm -f conftest*
13167fi
13168
13169if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13170 echo "$ac_t""yes" 1>&6
13171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13172 cat >> confdefs.h <<EOF
13173#define $ac_tr_func 1
13174EOF
13175 cat >> confdefs.h <<\EOF
13176#define HAVE_INET_ADDR 1
13177EOF
13178
13179else
13180 echo "$ac_t""no" 1>&6
13181echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13182echo "configure:13183: checking for inet_addr in -lnsl" >&5
13183ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13185 echo $ac_n "(cached) $ac_c" 1>&6
13186else
13187 ac_save_LIBS="$LIBS"
13188LIBS="-lnsl $LIBS"
13189cat > conftest.$ac_ext <<EOF
13190#line 13191 "configure"
13191#include "confdefs.h"
13192/* Override any gcc2 internal prototype to avoid an error. */
13193/* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195char inet_addr();
13196
13197int main() {
13198inet_addr()
13199; return 0; }
13200EOF
13201if { (eval echo configure:13202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13202 rm -rf conftest*
13203 eval "ac_cv_lib_$ac_lib_var=yes"
13204else
13205 echo "configure: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13207 rm -rf conftest*
13208 eval "ac_cv_lib_$ac_lib_var=no"
13209fi
13210rm -f conftest*
13211LIBS="$ac_save_LIBS"
13212
13213fi
13214if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13215 echo "$ac_t""yes" 1>&6
13216 INET_LINK="nsl"
13217else
13218 echo "$ac_t""no" 1>&6
13219echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13220echo "configure:13221: checking for inet_addr in -lresolv" >&5
13221ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13222if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
13224else
13225 ac_save_LIBS="$LIBS"
13226LIBS="-lresolv $LIBS"
13227cat > conftest.$ac_ext <<EOF
13228#line 13229 "configure"
13229#include "confdefs.h"
13230/* Override any gcc2 internal prototype to avoid an error. */
13231/* We use char because int might match the return type of a gcc2
13232 builtin and then its argument prototype would still apply. */
13233char inet_addr();
13234
13235int main() {
13236inet_addr()
13237; return 0; }
13238EOF
13239if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13240 rm -rf conftest*
13241 eval "ac_cv_lib_$ac_lib_var=yes"
13242else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -rf conftest*
13246 eval "ac_cv_lib_$ac_lib_var=no"
13247fi
13248rm -f conftest*
13249LIBS="$ac_save_LIBS"
13250
13251fi
13252if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13253 echo "$ac_t""yes" 1>&6
13254 INET_LINK="resolv"
13255
13256else
13257 echo "$ac_t""no" 1>&6
13258fi
13259
13260
13261fi
13262
13263
13264
13265fi
13266done
13267
13268
13269for ac_func in inet_aton
13270do
13271echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13272echo "configure:13273: checking for $ac_func" >&5
13273if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275else
13276 cat > conftest.$ac_ext <<EOF
13277#line 13278 "configure"
13278#include "confdefs.h"
13279/* System header to define __stub macros and hopefully few prototypes,
13280 which can conflict with char $ac_func(); below. */
13281#include <assert.h>
13282/* Override any gcc2 internal prototype to avoid an error. */
13283/* We use char because int might match the return type of a gcc2
13284 builtin and then its argument prototype would still apply. */
13285char $ac_func();
13286
13287int main() {
13288
13289/* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293choke me
13294#else
13295$ac_func();
13296#endif
13297
13298; return 0; }
13299EOF
13300if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13301 rm -rf conftest*
13302 eval "ac_cv_func_$ac_func=yes"
13303else
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 rm -rf conftest*
13307 eval "ac_cv_func_$ac_func=no"
13308fi
13309rm -f conftest*
13310fi
13311
13312if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13313 echo "$ac_t""yes" 1>&6
13314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13315 cat >> confdefs.h <<EOF
13316#define $ac_tr_func 1
13317EOF
13318 cat >> confdefs.h <<\EOF
13319#define HAVE_INET_ATON 1
13320EOF
13321
13322else
13323 echo "$ac_t""no" 1>&6
13324 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13325echo "configure:13326: checking for inet_aton in -l$INET_LINK" >&5
13326ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13327if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13328 echo $ac_n "(cached) $ac_c" 1>&6
13329else
13330 ac_save_LIBS="$LIBS"
13331LIBS="-l$INET_LINK $LIBS"
13332cat > conftest.$ac_ext <<EOF
13333#line 13334 "configure"
13334#include "confdefs.h"
13335/* Override any gcc2 internal prototype to avoid an error. */
13336/* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13338char inet_aton();
13339
13340int main() {
13341inet_aton()
13342; return 0; }
13343EOF
13344if { (eval echo configure:13345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13345 rm -rf conftest*
13346 eval "ac_cv_lib_$ac_lib_var=yes"
13347else
13348 echo "configure: failed program was:" >&5
13349 cat conftest.$ac_ext >&5
13350 rm -rf conftest*
13351 eval "ac_cv_lib_$ac_lib_var=no"
13352fi
13353rm -f conftest*
13354LIBS="$ac_save_LIBS"
13355
13356fi
13357if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13358 echo "$ac_t""yes" 1>&6
13359 cat >> confdefs.h <<\EOF
13360#define HAVE_INET_ATON 1
13361EOF
13362
13363else
13364 echo "$ac_t""no" 1>&6
13365fi
13366
13367
13368fi
13369done
13370
13371
13372if test "x$INET_LINK" != "x"; then
13373 cat >> confdefs.h <<\EOF
13374#define HAVE_INET_ADDR 1
13375EOF
13376
13377 INET_LINK="-l$INET_LINK"
13378fi
13379
13380fi
13381
13382
13383cat > confcache <<\EOF
13384# This file is a shell script that caches the results of configure
13385# tests run on this system so they can be shared between configure
13386# scripts and configure runs. It is not useful on other systems.
13387# If it contains results you don't want to keep, you may remove or edit it.
13388#
13389# By default, configure uses ./config.cache as the cache file,
13390# creating it if it does not exist already. You can give configure
13391# the --cache-file=FILE option to use a different cache file; that is
13392# what configure does when it calls configure scripts in
13393# subdirectories, so they share the cache.
13394# Giving --cache-file=/dev/null disables caching, for debugging configure.
13395# config.status only pays attention to the cache file if you give it the
13396# --recheck option to rerun configure.
13397#
13398EOF
13399# The following way of writing the cache mishandles newlines in values,
13400# but we know of no workaround that is simple, portable, and efficient.
13401# So, don't put newlines in cache variables' values.
13402# Ultrix sh set writes to stderr and can't be redirected directly,
13403# and sets the high bit in the cache file unless we assign to the vars.
13404(set) 2>&1 |
13405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13406 *ac_space=\ *)
13407 # `set' does not quote correctly, so add quotes (double-quote substitution
13408 # turns \\\\ into \\, and sed turns \\ into \).
13409 sed -n \
13410 -e "s/'/'\\\\''/g" \
13411 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13412 ;;
13413 *)
13414 # `set' quotes correctly as required by POSIX, so do not add quotes.
13415 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13416 ;;
13417 esac >> confcache
13418if cmp -s $cache_file confcache; then
13419 :
13420else
13421 if test -w $cache_file; then
13422 echo "updating cache $cache_file"
13423 cat confcache > $cache_file
13424 else
13425 echo "not updating unwritable cache $cache_file"
13426 fi
13427fi
13428rm -f confcache
13429
13430
13431
13432if test "$TOOLKIT" != "MSW"; then
13433
13434
13435THREADS_LINK=""
13436THREADS_OBJ=""
13437
13438if test "$wxUSE_THREADS" = "yes" ; then
13439 if test "$wxUSE_WINE" = 1 ; then
13440 echo "configure: warning: Threads are not supported under WINE" 1>&2
13441 wxUSE_THREADS="no"
13442 elif test "$USE_BEOS" = 1; then
13443 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13444 wxUSE_THREADS="no"
13445 fi
13446fi
13447
13448if test "$wxUSE_THREADS" = "yes" ; then
13449
13450 if test "$USE_AIX" = 1; then
13451 THREADS_LIB=pthreads
13452 else
13453 THREADS_LIB=pthread
13454 fi
13455
13456 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13457echo "configure:13458: checking for pthread_create in -l$THREADS_LIB" >&5
13458ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13459if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13460 echo $ac_n "(cached) $ac_c" 1>&6
13461else
13462 ac_save_LIBS="$LIBS"
13463LIBS="-l$THREADS_LIB $LIBS"
13464cat > conftest.$ac_ext <<EOF
13465#line 13466 "configure"
13466#include "confdefs.h"
13467/* Override any gcc2 internal prototype to avoid an error. */
13468/* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470char pthread_create();
13471
13472int main() {
13473pthread_create()
13474; return 0; }
13475EOF
13476if { (eval echo configure:13477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13477 rm -rf conftest*
13478 eval "ac_cv_lib_$ac_lib_var=yes"
13479else
13480 echo "configure: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13482 rm -rf conftest*
13483 eval "ac_cv_lib_$ac_lib_var=no"
13484fi
13485rm -f conftest*
13486LIBS="$ac_save_LIBS"
13487
13488fi
13489if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13490 echo "$ac_t""yes" 1>&6
13491
13492 THREADS_OBJ="threadpsx.lo"
13493 THREADS_LINK=$THREADS_LIB
13494
13495else
13496 echo "$ac_t""no" 1>&6
13497
13498 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13499echo "configure:13500: checking for pthread_create in -lc_r" >&5
13500ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13501if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13502 echo $ac_n "(cached) $ac_c" 1>&6
13503else
13504 ac_save_LIBS="$LIBS"
13505LIBS="-lc_r $LIBS"
13506cat > conftest.$ac_ext <<EOF
13507#line 13508 "configure"
13508#include "confdefs.h"
13509/* Override any gcc2 internal prototype to avoid an error. */
13510/* We use char because int might match the return type of a gcc2
13511 builtin and then its argument prototype would still apply. */
13512char pthread_create();
13513
13514int main() {
13515pthread_create()
13516; return 0; }
13517EOF
13518if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13519 rm -rf conftest*
13520 eval "ac_cv_lib_$ac_lib_var=yes"
13521else
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13524 rm -rf conftest*
13525 eval "ac_cv_lib_$ac_lib_var=no"
13526fi
13527rm -f conftest*
13528LIBS="$ac_save_LIBS"
13529
13530fi
13531if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13532 echo "$ac_t""yes" 1>&6
13533
13534 THREADS_OBJ="threadpsx.lo"
13535 THREADS_LINK="c_r"
13536
13537else
13538 echo "$ac_t""no" 1>&6
13539
13540 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13541echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
13542echo "configure:13543: checking for sys/prctl.h" >&5
13543if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13544 echo $ac_n "(cached) $ac_c" 1>&6
13545else
13546 cat > conftest.$ac_ext <<EOF
13547#line 13548 "configure"
13548#include "confdefs.h"
13549#include <sys/prctl.h>
13550EOF
13551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13552{ (eval echo configure:13553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13553ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13554if test -z "$ac_err"; then
13555 rm -rf conftest*
13556 eval "ac_cv_header_$ac_safe=yes"
13557else
13558 echo "$ac_err" >&5
13559 echo "configure: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13561 rm -rf conftest*
13562 eval "ac_cv_header_$ac_safe=no"
13563fi
13564rm -f conftest*
13565fi
13566if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13567 echo "$ac_t""yes" 1>&6
13568
13569 THREADS_OBJ="threadsgi.lo"
13570
13571else
13572 echo "$ac_t""no" 1>&6
13573fi
13574
13575
13576fi
13577
13578
13579fi
13580
13581
13582 if test -z "$THREADS_OBJ" ; then
13583 wxUSE_THREADS=no
13584 echo "configure: warning: No thread support on this system" 1>&2
13585 fi
13586fi
13587
13588if test "$wxUSE_THREADS" = "yes" ; then
13589 for ac_func in thr_setconcurrency
13590do
13591echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13592echo "configure:13593: checking for $ac_func" >&5
13593if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13594 echo $ac_n "(cached) $ac_c" 1>&6
13595else
13596 cat > conftest.$ac_ext <<EOF
13597#line 13598 "configure"
13598#include "confdefs.h"
13599/* System header to define __stub macros and hopefully few prototypes,
13600 which can conflict with char $ac_func(); below. */
13601#include <assert.h>
13602/* Override any gcc2 internal prototype to avoid an error. */
13603/* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13605char $ac_func();
13606
13607int main() {
13608
13609/* The GNU C library defines this for functions which it implements
13610 to always fail with ENOSYS. Some functions are actually named
13611 something starting with __ and the normal name is an alias. */
13612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13613choke me
13614#else
13615$ac_func();
13616#endif
13617
13618; return 0; }
13619EOF
13620if { (eval echo configure:13621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13621 rm -rf conftest*
13622 eval "ac_cv_func_$ac_func=yes"
13623else
13624 echo "configure: failed program was:" >&5
13625 cat conftest.$ac_ext >&5
13626 rm -rf conftest*
13627 eval "ac_cv_func_$ac_func=no"
13628fi
13629rm -f conftest*
13630fi
13631
13632if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13633 echo "$ac_t""yes" 1>&6
13634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13635 cat >> confdefs.h <<EOF
13636#define $ac_tr_func 1
13637EOF
13638
13639else
13640 echo "$ac_t""no" 1>&6
13641fi
13642done
13643
13644
13645
13646 for ac_hdr in sched.h
13647do
13648ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13649echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13650echo "configure:13651: checking for $ac_hdr" >&5
13651if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13652 echo $ac_n "(cached) $ac_c" 1>&6
13653else
13654 cat > conftest.$ac_ext <<EOF
13655#line 13656 "configure"
13656#include "confdefs.h"
13657#include <$ac_hdr>
13658EOF
13659ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13660{ (eval echo configure:13661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13661ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13662if test -z "$ac_err"; then
13663 rm -rf conftest*
13664 eval "ac_cv_header_$ac_safe=yes"
13665else
13666 echo "$ac_err" >&5
13667 echo "configure: failed program was:" >&5
13668 cat conftest.$ac_ext >&5
13669 rm -rf conftest*
13670 eval "ac_cv_header_$ac_safe=no"
13671fi
13672rm -f conftest*
13673fi
13674if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13675 echo "$ac_t""yes" 1>&6
13676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13677 cat >> confdefs.h <<EOF
13678#define $ac_tr_hdr 1
13679EOF
13680
13681else
13682 echo "$ac_t""no" 1>&6
13683fi
13684done
13685
13686
13687 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
13688echo "configure:13689: checking for sched_yield in -l$THREADS_LINK" >&5
13689ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13690if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13691 echo $ac_n "(cached) $ac_c" 1>&6
13692else
13693 ac_save_LIBS="$LIBS"
13694LIBS="-l$THREADS_LINK $LIBS"
13695cat > conftest.$ac_ext <<EOF
13696#line 13697 "configure"
13697#include "confdefs.h"
13698/* Override any gcc2 internal prototype to avoid an error. */
13699/* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701char sched_yield();
13702
13703int main() {
13704sched_yield()
13705; return 0; }
13706EOF
13707if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13708 rm -rf conftest*
13709 eval "ac_cv_lib_$ac_lib_var=yes"
13710else
13711 echo "configure: failed program was:" >&5
13712 cat conftest.$ac_ext >&5
13713 rm -rf conftest*
13714 eval "ac_cv_lib_$ac_lib_var=no"
13715fi
13716rm -f conftest*
13717LIBS="$ac_save_LIBS"
13718
13719fi
13720if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13722 cat >> confdefs.h <<\EOF
13723#define HAVE_SCHED_YIELD 1
13724EOF
13725
13726else
13727 echo "$ac_t""no" 1>&6
13728echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
13729echo "configure:13730: checking for sched_yield in -lposix4" >&5
13730ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13732 echo $ac_n "(cached) $ac_c" 1>&6
13733else
13734 ac_save_LIBS="$LIBS"
13735LIBS="-lposix4 $LIBS"
13736cat > conftest.$ac_ext <<EOF
13737#line 13738 "configure"
13738#include "confdefs.h"
13739/* Override any gcc2 internal prototype to avoid an error. */
13740/* We use char because int might match the return type of a gcc2
13741 builtin and then its argument prototype would still apply. */
13742char sched_yield();
13743
13744int main() {
13745sched_yield()
13746; return 0; }
13747EOF
13748if { (eval echo configure:13749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13749 rm -rf conftest*
13750 eval "ac_cv_lib_$ac_lib_var=yes"
13751else
13752 echo "configure: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 rm -rf conftest*
13755 eval "ac_cv_lib_$ac_lib_var=no"
13756fi
13757rm -f conftest*
13758LIBS="$ac_save_LIBS"
13759
13760fi
13761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13762 echo "$ac_t""yes" 1>&6
13763 cat >> confdefs.h <<\EOF
13764#define HAVE_SCHED_YIELD 1
13765EOF
13766 POSIX4_LINK="-lposix4"
13767else
13768 echo "$ac_t""no" 1>&6
13769echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13770
13771fi
13772
13773
13774fi
13775
13776
13777 HAVE_PRIOR_FUNCS=0
13778 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
13779echo "configure:13780: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
13780ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13781if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13782 echo $ac_n "(cached) $ac_c" 1>&6
13783else
13784 ac_save_LIBS="$LIBS"
13785LIBS="-l$THREADS_LINK $LIBS"
13786cat > conftest.$ac_ext <<EOF
13787#line 13788 "configure"
13788#include "confdefs.h"
13789/* Override any gcc2 internal prototype to avoid an error. */
13790/* We use char because int might match the return type of a gcc2
13791 builtin and then its argument prototype would still apply. */
13792char pthread_attr_getschedpolicy();
13793
13794int main() {
13795pthread_attr_getschedpolicy()
13796; return 0; }
13797EOF
13798if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13799 rm -rf conftest*
13800 eval "ac_cv_lib_$ac_lib_var=yes"
13801else
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 rm -rf conftest*
13805 eval "ac_cv_lib_$ac_lib_var=no"
13806fi
13807rm -f conftest*
13808LIBS="$ac_save_LIBS"
13809
13810fi
13811if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13812 echo "$ac_t""yes" 1>&6
13813 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
13814echo "configure:13815: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
13815ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13816if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13817 echo $ac_n "(cached) $ac_c" 1>&6
13818else
13819 ac_save_LIBS="$LIBS"
13820LIBS="-l$THREADS_LINK $LIBS"
13821cat > conftest.$ac_ext <<EOF
13822#line 13823 "configure"
13823#include "confdefs.h"
13824/* Override any gcc2 internal prototype to avoid an error. */
13825/* We use char because int might match the return type of a gcc2
13826 builtin and then its argument prototype would still apply. */
13827char pthread_attr_setschedparam();
13828
13829int main() {
13830pthread_attr_setschedparam()
13831; return 0; }
13832EOF
13833if { (eval echo configure:13834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13834 rm -rf conftest*
13835 eval "ac_cv_lib_$ac_lib_var=yes"
13836else
13837 echo "configure: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13839 rm -rf conftest*
13840 eval "ac_cv_lib_$ac_lib_var=no"
13841fi
13842rm -f conftest*
13843LIBS="$ac_save_LIBS"
13844
13845fi
13846if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13847 echo "$ac_t""yes" 1>&6
13848 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
13849echo "configure:13850: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
13850ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13851if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13852 echo $ac_n "(cached) $ac_c" 1>&6
13853else
13854 ac_save_LIBS="$LIBS"
13855LIBS="-l$THREADS_LINK $LIBS"
13856cat > conftest.$ac_ext <<EOF
13857#line 13858 "configure"
13858#include "confdefs.h"
13859/* Override any gcc2 internal prototype to avoid an error. */
13860/* We use char because int might match the return type of a gcc2
13861 builtin and then its argument prototype would still apply. */
13862char sched_get_priority_max();
13863
13864int main() {
13865sched_get_priority_max()
13866; return 0; }
13867EOF
13868if { (eval echo configure:13869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13869 rm -rf conftest*
13870 eval "ac_cv_lib_$ac_lib_var=yes"
13871else
13872 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13874 rm -rf conftest*
13875 eval "ac_cv_lib_$ac_lib_var=no"
13876fi
13877rm -f conftest*
13878LIBS="$ac_save_LIBS"
13879
13880fi
13881if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13882 echo "$ac_t""yes" 1>&6
13883 HAVE_PRIOR_FUNCS=1
13884else
13885 echo "$ac_t""no" 1>&6
13886echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
13887echo "configure:13888: checking for sched_get_priority_max in -lposix4" >&5
13888ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
13891else
13892 ac_save_LIBS="$LIBS"
13893LIBS="-lposix4 $LIBS"
13894cat > conftest.$ac_ext <<EOF
13895#line 13896 "configure"
13896#include "confdefs.h"
13897/* Override any gcc2 internal prototype to avoid an error. */
13898/* We use char because int might match the return type of a gcc2
13899 builtin and then its argument prototype would still apply. */
13900char sched_get_priority_max();
13901
13902int main() {
13903sched_get_priority_max()
13904; return 0; }
13905EOF
13906if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13907 rm -rf conftest*
13908 eval "ac_cv_lib_$ac_lib_var=yes"
13909else
13910 echo "configure: failed program was:" >&5
13911 cat conftest.$ac_ext >&5
13912 rm -rf conftest*
13913 eval "ac_cv_lib_$ac_lib_var=no"
13914fi
13915rm -f conftest*
13916LIBS="$ac_save_LIBS"
13917
13918fi
13919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13920 echo "$ac_t""yes" 1>&6
13921
13922 HAVE_PRIOR_FUNCS=1
13923 POSIX4_LINK="-lposix4"
13924
13925else
13926 echo "$ac_t""no" 1>&6
13927fi
13928
13929
13930fi
13931
13932
13933else
13934 echo "$ac_t""no" 1>&6
13935fi
13936
13937
13938else
13939 echo "$ac_t""no" 1>&6
13940fi
13941
13942
13943 if test "$HAVE_PRIOR_FUNCS" = 1; then
13944 cat >> confdefs.h <<\EOF
13945#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
13946EOF
13947
13948 else
13949 echo "configure: warning: Setting thread priority will not work" 1>&2
13950 fi
13951
13952 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
13953echo "configure:13954: checking for pthread_cancel in -l$THREADS_LINK" >&5
13954ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
13955if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13956 echo $ac_n "(cached) $ac_c" 1>&6
13957else
13958 ac_save_LIBS="$LIBS"
13959LIBS="-l$THREADS_LINK $LIBS"
13960cat > conftest.$ac_ext <<EOF
13961#line 13962 "configure"
13962#include "confdefs.h"
13963/* Override any gcc2 internal prototype to avoid an error. */
13964/* We use char because int might match the return type of a gcc2
13965 builtin and then its argument prototype would still apply. */
13966char pthread_cancel();
13967
13968int main() {
13969pthread_cancel()
13970; return 0; }
13971EOF
13972if { (eval echo configure:13973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13973 rm -rf conftest*
13974 eval "ac_cv_lib_$ac_lib_var=yes"
13975else
13976 echo "configure: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13978 rm -rf conftest*
13979 eval "ac_cv_lib_$ac_lib_var=no"
13980fi
13981rm -f conftest*
13982LIBS="$ac_save_LIBS"
13983
13984fi
13985if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13986 echo "$ac_t""yes" 1>&6
13987 cat >> confdefs.h <<\EOF
13988#define HAVE_PTHREAD_CANCEL 1
13989EOF
13990
13991else
13992 echo "$ac_t""no" 1>&6
13993echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
13994fi
13995
13996
13997 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
13998echo "configure:13999: checking for pthread_cleanup_push/pop" >&5
13999if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14000 echo $ac_n "(cached) $ac_c" 1>&6
14001else
14002
14003 cat > conftest.$ac_ext <<EOF
14004#line 14005 "configure"
14005#include "confdefs.h"
14006#include <pthread.h>
14007int main() {
14008
14009 pthread_cleanup_push(NULL, NULL);
14010 pthread_cleanup_pop(0);
14011
14012; return 0; }
14013EOF
14014if { (eval echo configure:14015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14015 rm -rf conftest*
14016
14017 wx_cv_func_pthread_cleanup_push=yes
14018
14019else
14020 echo "configure: failed program was:" >&5
14021 cat conftest.$ac_ext >&5
14022 rm -rf conftest*
14023
14024 wx_cv_func_pthread_cleanup_push=no
14025
14026fi
14027rm -f conftest*
14028
14029fi
14030
14031echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14032
14033 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14034 cat >> confdefs.h <<\EOF
14035#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14036EOF
14037
14038 fi
14039
14040
14041 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14042echo "configure:14043: checking for pthread_mutexattr_t" >&5
14043if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
14045else
14046
14047 cat > conftest.$ac_ext <<EOF
14048#line 14049 "configure"
14049#include "confdefs.h"
14050#include <pthread.h>
14051int main() {
14052
14053 pthread_mutexattr_t attr;
14054 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14055
14056; return 0; }
14057EOF
14058if { (eval echo configure:14059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14059 rm -rf conftest*
14060
14061 wx_cv_type_pthread_mutexattr_t=yes
14062
14063else
14064 echo "configure: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14066 rm -rf conftest*
14067
14068 wx_cv_type_pthread_mutexattr_t=no
14069
14070
14071fi
14072rm -f conftest*
14073
14074fi
14075
14076echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14077
14078 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14079 cat >> confdefs.h <<\EOF
14080#define HAVE_PTHREAD_MUTEXATTR_T 1
14081EOF
14082
14083 else
14084 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14085echo "configure:14086: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14086if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14087 echo $ac_n "(cached) $ac_c" 1>&6
14088else
14089
14090 cat > conftest.$ac_ext <<EOF
14091#line 14092 "configure"
14092#include "confdefs.h"
14093#include <pthread.h>
14094int main() {
14095
14096 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14097
14098; return 0; }
14099EOF
14100if { (eval echo configure:14101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14101 rm -rf conftest*
14102
14103 wx_cv_type_pthread_rec_mutex_init=yes
14104
14105else
14106 echo "configure: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 rm -rf conftest*
14109
14110 wx_cv_type_pthread_rec_mutex_init=no
14111
14112
14113fi
14114rm -f conftest*
14115
14116fi
14117
14118echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14119 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14120 cat >> confdefs.h <<\EOF
14121#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14122EOF
14123
14124 else
14125 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14126 fi
14127 fi
14128
14129 THREADS_LINK="-l$THREADS_LINK"
14130
14131 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14132 CFLAGS="${CFLAGS} -mt"
14133 CXXFLAGS="${CXXFLAGS} -mt"
14134 LDFLAGS="${LDFLAGS} -mt"
14135 fi
14136fi
14137
14138fi
14139
14140if test "$wxUSE_THREADS" = "yes"; then
14141 cat >> confdefs.h <<\EOF
14142#define wxUSE_THREADS 1
14143EOF
14144
14145
14146 if test "$wxUSE_MAC" = "0"; then
14147 CFLAGS="${CFLAGS} -D_REENTRANT"
14148 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14149 fi
14150
14151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14152else
14153 if test "$ac_cv_func_strtok_r" = "yes"; then
14154 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14155echo "configure:14156: checking if -D_REENTRANT is needed" >&5
14156 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14157 CFLAGS="${CFLAGS} -D_REENTRANT"
14158 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14159 echo "$ac_t""yes" 1>&6
14160 else
14161 echo "$ac_t""no" 1>&6
14162 fi
14163 fi
14164fi
14165
14166if test "$WXGTK20" = 1 ; then
14167 cat >> confdefs.h <<EOF
14168#define __WXGTK20__ $WXGTK20
14169EOF
14170
14171 WXGTK12=1
14172fi
14173
14174if test "$WXGTK12" = 1 ; then
14175 cat >> confdefs.h <<EOF
14176#define __WXGTK12__ $WXGTK12
14177EOF
14178
14179fi
14180
14181if test "$WXGTK127" = 1 ; then
14182 cat >> confdefs.h <<EOF
14183#define __WXGTK127__ $WXGTK127
14184EOF
14185
14186fi
14187
14188if test "$WXWINE" = 1 ; then
14189 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14190fi
14191
14192if test "$wxUSE_MAC" = 1 ; then
14193 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
14194 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
14195 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
14196 # Extract the first word of "Rez", so it can be a program name with args.
14197set dummy Rez; ac_word=$2
14198echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14199echo "configure:14200: checking for $ac_word" >&5
14200if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
14202else
14203 if test -n "$REZ"; then
14204 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14205else
14206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14207 ac_dummy="$PATH"
14208 for ac_dir in $ac_dummy; do
14209 test -z "$ac_dir" && ac_dir=.
14210 if test -f $ac_dir/$ac_word; then
14211 ac_cv_prog_REZ="Rez"
14212 break
14213 fi
14214 done
14215 IFS="$ac_save_ifs"
14216 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14217fi
14218fi
14219REZ="$ac_cv_prog_REZ"
14220if test -n "$REZ"; then
14221 echo "$ac_t""$REZ" 1>&6
14222else
14223 echo "$ac_t""no" 1>&6
14224fi
14225
14226 # Extract the first word of "Derez", so it can be a program name with args.
14227set dummy Derez; ac_word=$2
14228echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14229echo "configure:14230: checking for $ac_word" >&5
14230if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14231 echo $ac_n "(cached) $ac_c" 1>&6
14232else
14233 if test -n "$DEREZ"; then
14234 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14235else
14236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14237 ac_dummy="$PATH"
14238 for ac_dir in $ac_dummy; do
14239 test -z "$ac_dir" && ac_dir=.
14240 if test -f $ac_dir/$ac_word; then
14241 ac_cv_prog_DEREZ="Derez"
14242 break
14243 fi
14244 done
14245 IFS="$ac_save_ifs"
14246 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14247fi
14248fi
14249DEREZ="$ac_cv_prog_DEREZ"
14250if test -n "$DEREZ"; then
14251 echo "$ac_t""$DEREZ" 1>&6
14252else
14253 echo "$ac_t""no" 1>&6
14254fi
14255
14256 RESCOMP=${REZ}
14257 REZFLAGS="-d __UNIX__ -useDF"
14258 DEREZFLAGS="Carbon.r -useDF"
14259 RESFLAGS="Carbon.r -t APPL"
14260 LIBWXMACRES="\$(LIBWX_MACRES)"
14261 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14262fi
14263
14264if test "$wxUSE_CYGWIN" = 1 ; then
14265 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14266fi
14267
14268WXDEBUG=
14269
14270if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14271 WXDEBUG="-g"
14272 wxUSE_OPTIMISE=no
14273fi
14274
14275if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14276 wxUSE_DEBUG_INFO=yes
14277 WXDEBUG="-ggdb"
14278fi
14279
14280if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14281 cat >> confdefs.h <<\EOF
14282#define WXDEBUG 1
14283EOF
14284
14285 WXDEBUG_DEFINE="-D__WXDEBUG__"
14286else
14287 if test "$wxUSE_GTK" = 1 ; then
14288 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14289 fi
14290fi
14291
14292if test "$wxUSE_MEM_TRACING" = "yes" ; then
14293 cat >> confdefs.h <<\EOF
14294#define wxUSE_MEMORY_TRACING 1
14295EOF
14296
14297 cat >> confdefs.h <<\EOF
14298#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14299EOF
14300
14301 cat >> confdefs.h <<\EOF
14302#define wxUSE_DEBUG_NEW_ALWAYS 1
14303EOF
14304
14305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14306fi
14307
14308if test "$wxUSE_DMALLOC" = "yes" ; then
14309 DMALLOC_LINK="-ldmalloc"
14310fi
14311
14312PROFILE=
14313if test "$wxUSE_PROFILE" = "yes" ; then
14314 PROFILE="-pg"
14315fi
14316
14317DEP_INFO_FLAGS=
14318CODE_GEN_FLAGS=
14319CODE_GEN_FLAGS_CXX=
14320if test "$GCC" = yes ; then
14321 if test "$wxUSE_NO_RTTI" = "yes" ; then
14322 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14323 fi
14324 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14325 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14326 fi
14327 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14328 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14329 fi
14330 if test "$wxUSE_NO_DEPS" = "no" ; then
14331 DEP_INFO_FLAGS="-MMD"
14332 fi
14333fi
14334
14335
14336CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14337CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14338if test "$wxUSE_OPTIMISE" = "no" ; then
14339 OPTIMISE=
14340else
14341 if test "$GCC" = yes ; then
14342 OPTIMISE="-O2"
14343 case "${host}" in
14344 i586-*-*|i686-*-* )
14345 OPTIMISE="${OPTIMISE} "
14346 ;;
14347 esac
14348 else
14349 OPTIMISE="-O"
14350 fi
14351fi
14352
14353
14354ZLIB_INCLUDE=
14355if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
14356 cat >> confdefs.h <<\EOF
14357#define wxUSE_ZLIB 1
14358EOF
14359
14360 if test "$wxUSE_ZLIB" = "yes" ; then
14361 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14362 else
14363 ZLIB_LINK=
14364 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14365echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
14366echo "configure:14367: checking for zlib.h" >&5
14367if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14368 echo $ac_n "(cached) $ac_c" 1>&6
14369else
14370 cat > conftest.$ac_ext <<EOF
14371#line 14372 "configure"
14372#include "confdefs.h"
14373#include <zlib.h>
14374EOF
14375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14376{ (eval echo configure:14377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14377ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14378if test -z "$ac_err"; then
14379 rm -rf conftest*
14380 eval "ac_cv_header_$ac_safe=yes"
14381else
14382 echo "$ac_err" >&5
14383 echo "configure: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14385 rm -rf conftest*
14386 eval "ac_cv_header_$ac_safe=no"
14387fi
14388rm -f conftest*
14389fi
14390if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14391 echo "$ac_t""yes" 1>&6
14392 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
14393echo "configure:14394: checking for deflate in -lz" >&5
14394ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14396 echo $ac_n "(cached) $ac_c" 1>&6
14397else
14398 ac_save_LIBS="$LIBS"
14399LIBS="-lz $LIBS"
14400cat > conftest.$ac_ext <<EOF
14401#line 14402 "configure"
14402#include "confdefs.h"
14403/* Override any gcc2 internal prototype to avoid an error. */
14404/* We use char because int might match the return type of a gcc2
14405 builtin and then its argument prototype would still apply. */
14406char deflate();
14407
14408int main() {
14409deflate()
14410; return 0; }
14411EOF
14412if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14413 rm -rf conftest*
14414 eval "ac_cv_lib_$ac_lib_var=yes"
14415else
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14418 rm -rf conftest*
14419 eval "ac_cv_lib_$ac_lib_var=no"
14420fi
14421rm -f conftest*
14422LIBS="$ac_save_LIBS"
14423
14424fi
14425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14426 echo "$ac_t""yes" 1>&6
14427 ZLIB_LINK="-lz"
14428else
14429 echo "$ac_t""no" 1>&6
14430fi
14431
14432else
14433 echo "$ac_t""no" 1>&6
14434fi
14435
14436 if test "x$ZLIB_LINK" = "x" ; then
14437 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
14438 fi
14439 fi
14440fi
14441
14442PNG_INCLUDE=
14443if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
14444 cat >> confdefs.h <<\EOF
14445#define wxUSE_LIBPNG 1
14446EOF
14447
14448 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
14449 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
14450 wxUSE_LIBPNG=yes
14451 fi
14452
14453 if test "$wxUSE_LIBPNG" = "yes" ; then
14454 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14455 else
14456 PNG_LINK=
14457 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14458echo $ac_n "checking for png.h""... $ac_c" 1>&6
14459echo "configure:14460: checking for png.h" >&5
14460if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14461 echo $ac_n "(cached) $ac_c" 1>&6
14462else
14463 cat > conftest.$ac_ext <<EOF
14464#line 14465 "configure"
14465#include "confdefs.h"
14466#include <png.h>
14467EOF
14468ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14469{ (eval echo configure:14470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14470ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14471if test -z "$ac_err"; then
14472 rm -rf conftest*
14473 eval "ac_cv_header_$ac_safe=yes"
14474else
14475 echo "$ac_err" >&5
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14478 rm -rf conftest*
14479 eval "ac_cv_header_$ac_safe=no"
14480fi
14481rm -f conftest*
14482fi
14483if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14484 echo "$ac_t""yes" 1>&6
14485 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
14486echo "configure:14487: checking for png_check_sig in -lpng" >&5
14487ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14488if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14489 echo $ac_n "(cached) $ac_c" 1>&6
14490else
14491 ac_save_LIBS="$LIBS"
14492LIBS="-lpng -lz -lm $LIBS"
14493cat > conftest.$ac_ext <<EOF
14494#line 14495 "configure"
14495#include "confdefs.h"
14496/* Override any gcc2 internal prototype to avoid an error. */
14497/* We use char because int might match the return type of a gcc2
14498 builtin and then its argument prototype would still apply. */
14499char png_check_sig();
14500
14501int main() {
14502png_check_sig()
14503; return 0; }
14504EOF
14505if { (eval echo configure:14506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14506 rm -rf conftest*
14507 eval "ac_cv_lib_$ac_lib_var=yes"
14508else
14509 echo "configure: failed program was:" >&5
14510 cat conftest.$ac_ext >&5
14511 rm -rf conftest*
14512 eval "ac_cv_lib_$ac_lib_var=no"
14513fi
14514rm -f conftest*
14515LIBS="$ac_save_LIBS"
14516
14517fi
14518if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14519 echo "$ac_t""yes" 1>&6
14520 PNG_LINK="-lpng"
14521else
14522 echo "$ac_t""no" 1>&6
14523fi
14524
14525
14526else
14527 echo "$ac_t""no" 1>&6
14528fi
14529
14530 if test "x$PNG_LINK" = "x" ; then
14531 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
14532 fi
14533 fi
14534
14535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14536fi
14537
14538JPEG_INCLUDE=
14539if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
14540 cat >> confdefs.h <<\EOF
14541#define wxUSE_LIBJPEG 1
14542EOF
14543
14544 if test "$wxUSE_LIBJPEG" = "yes" ; then
14545 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14546 else
14547 JPEG_LINK=
14548 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
14549echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
14550echo "configure:14551: checking for jpeglib.h" >&5
14551if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14553else
14554 cat > conftest.$ac_ext <<EOF
14555#line 14556 "configure"
14556#include "confdefs.h"
14557#include <jpeglib.h>
14558EOF
14559ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14560{ (eval echo configure:14561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14561ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14562if test -z "$ac_err"; then
14563 rm -rf conftest*
14564 eval "ac_cv_header_$ac_safe=yes"
14565else
14566 echo "$ac_err" >&5
14567 echo "configure: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14569 rm -rf conftest*
14570 eval "ac_cv_header_$ac_safe=no"
14571fi
14572rm -f conftest*
14573fi
14574if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14575 echo "$ac_t""yes" 1>&6
14576 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
14577echo "configure:14578: checking for jpeg_read_header in -ljpeg" >&5
14578ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14579if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14580 echo $ac_n "(cached) $ac_c" 1>&6
14581else
14582 ac_save_LIBS="$LIBS"
14583LIBS="-ljpeg $LIBS"
14584cat > conftest.$ac_ext <<EOF
14585#line 14586 "configure"
14586#include "confdefs.h"
14587/* Override any gcc2 internal prototype to avoid an error. */
14588/* We use char because int might match the return type of a gcc2
14589 builtin and then its argument prototype would still apply. */
14590char jpeg_read_header();
14591
14592int main() {
14593jpeg_read_header()
14594; return 0; }
14595EOF
14596if { (eval echo configure:14597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14597 rm -rf conftest*
14598 eval "ac_cv_lib_$ac_lib_var=yes"
14599else
14600 echo "configure: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14602 rm -rf conftest*
14603 eval "ac_cv_lib_$ac_lib_var=no"
14604fi
14605rm -f conftest*
14606LIBS="$ac_save_LIBS"
14607
14608fi
14609if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14610 echo "$ac_t""yes" 1>&6
14611 JPEG_LINK="-ljpeg"
14612else
14613 echo "$ac_t""no" 1>&6
14614fi
14615
14616else
14617 echo "$ac_t""no" 1>&6
14618fi
14619
14620 if test "x$JPEG_LINK" = "x" ; then
14621 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
14622 fi
14623 fi
14624fi
14625
14626TIFF_INCLUDE=
14627if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
14628 cat >> confdefs.h <<\EOF
14629#define wxUSE_LIBTIFF 1
14630EOF
14631
14632 if test "$wxUSE_LIBTIFF" = "yes" ; then
14633 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14634 else
14635 TIFF_LINK=
14636 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14637echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
14638echo "configure:14639: checking for tiffio.h" >&5
14639if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14640 echo $ac_n "(cached) $ac_c" 1>&6
14641else
14642 cat > conftest.$ac_ext <<EOF
14643#line 14644 "configure"
14644#include "confdefs.h"
14645#include <tiffio.h>
14646EOF
14647ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14648{ (eval echo configure:14649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14649ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14650if test -z "$ac_err"; then
14651 rm -rf conftest*
14652 eval "ac_cv_header_$ac_safe=yes"
14653else
14654 echo "$ac_err" >&5
14655 echo "configure: failed program was:" >&5
14656 cat conftest.$ac_ext >&5
14657 rm -rf conftest*
14658 eval "ac_cv_header_$ac_safe=no"
14659fi
14660rm -f conftest*
14661fi
14662if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14663 echo "$ac_t""yes" 1>&6
14664 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
14665echo "configure:14666: checking for TIFFError in -ltiff" >&5
14666ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14667if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14668 echo $ac_n "(cached) $ac_c" 1>&6
14669else
14670 ac_save_LIBS="$LIBS"
14671LIBS="-ltiff -lm $LIBS"
14672cat > conftest.$ac_ext <<EOF
14673#line 14674 "configure"
14674#include "confdefs.h"
14675/* Override any gcc2 internal prototype to avoid an error. */
14676/* We use char because int might match the return type of a gcc2
14677 builtin and then its argument prototype would still apply. */
14678char TIFFError();
14679
14680int main() {
14681TIFFError()
14682; return 0; }
14683EOF
14684if { (eval echo configure:14685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14685 rm -rf conftest*
14686 eval "ac_cv_lib_$ac_lib_var=yes"
14687else
14688 echo "configure: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14690 rm -rf conftest*
14691 eval "ac_cv_lib_$ac_lib_var=no"
14692fi
14693rm -f conftest*
14694LIBS="$ac_save_LIBS"
14695
14696fi
14697if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14698 echo "$ac_t""yes" 1>&6
14699 TIFF_LINK="-ltiff"
14700else
14701 echo "$ac_t""no" 1>&6
14702fi
14703
14704else
14705 echo "$ac_t""no" 1>&6
14706fi
14707
14708 if test "x$TIFF_LINK" = "x" ; then
14709 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
14710 fi
14711 fi
14712fi
14713
14714FREETYPE_INCLUDE=
14715if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
14716 cat >> confdefs.h <<\EOF
14717#define wxUSE_FREETYPE 1
14718EOF
14719
14720 if test "$wxUSE_FREETYPE" = "yes" ; then
14721 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14722 else
14723 FREETYPE_LINK=
14724 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14725echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
14726echo "configure:14727: checking for freetype.h" >&5
14727if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14728 echo $ac_n "(cached) $ac_c" 1>&6
14729else
14730 cat > conftest.$ac_ext <<EOF
14731#line 14732 "configure"
14732#include "confdefs.h"
14733#include <freetype.h>
14734EOF
14735ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14736{ (eval echo configure:14737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14737ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14738if test -z "$ac_err"; then
14739 rm -rf conftest*
14740 eval "ac_cv_header_$ac_safe=yes"
14741else
14742 echo "$ac_err" >&5
14743 echo "configure: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 rm -rf conftest*
14746 eval "ac_cv_header_$ac_safe=no"
14747fi
14748rm -f conftest*
14749fi
14750if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14751 echo "$ac_t""yes" 1>&6
14752 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
14753echo "configure:14754: checking for FT_Render_Glyph in -lfreetype" >&5
14754ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14755if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14756 echo $ac_n "(cached) $ac_c" 1>&6
14757else
14758 ac_save_LIBS="$LIBS"
14759LIBS="-lfreetype -lm $LIBS"
14760cat > conftest.$ac_ext <<EOF
14761#line 14762 "configure"
14762#include "confdefs.h"
14763/* Override any gcc2 internal prototype to avoid an error. */
14764/* We use char because int might match the return type of a gcc2
14765 builtin and then its argument prototype would still apply. */
14766char FT_Render_Glyph();
14767
14768int main() {
14769FT_Render_Glyph()
14770; return 0; }
14771EOF
14772if { (eval echo configure:14773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14773 rm -rf conftest*
14774 eval "ac_cv_lib_$ac_lib_var=yes"
14775else
14776 echo "configure: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14778 rm -rf conftest*
14779 eval "ac_cv_lib_$ac_lib_var=no"
14780fi
14781rm -f conftest*
14782LIBS="$ac_save_LIBS"
14783
14784fi
14785if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14786 echo "$ac_t""yes" 1>&6
14787 FREETYPE_LINK="-lfreetype"
14788else
14789 echo "$ac_t""no" 1>&6
14790fi
14791
14792
14793else
14794 echo "$ac_t""no" 1>&6
14795fi
14796
14797 if test "x$FREETYPE_LINK" = "x" ; then
14798 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
14799 fi
14800 fi
14801fi
14802
14803if test "$wxUSE_OPENGL" = "yes"; then
14804 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14805echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14806echo "configure:14807: checking for GL/gl.h" >&5
14807if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14808 echo $ac_n "(cached) $ac_c" 1>&6
14809else
14810 cat > conftest.$ac_ext <<EOF
14811#line 14812 "configure"
14812#include "confdefs.h"
14813#include <GL/gl.h>
14814EOF
14815ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14816{ (eval echo configure:14817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14817ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14818if test -z "$ac_err"; then
14819 rm -rf conftest*
14820 eval "ac_cv_header_$ac_safe=yes"
14821else
14822 echo "$ac_err" >&5
14823 echo "configure: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14825 rm -rf conftest*
14826 eval "ac_cv_header_$ac_safe=no"
14827fi
14828rm -f conftest*
14829fi
14830if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14831 echo "$ac_t""yes" 1>&6
14832
14833 cat >> confdefs.h <<\EOF
14834#define wxUSE_OPENGL 1
14835EOF
14836
14837 cat >> confdefs.h <<\EOF
14838#define wxUSE_GLCANVAS 1
14839EOF
14840
14841 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
14842echo "configure:14843: checking for glFlush in -lGL" >&5
14843ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
14844if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14845 echo $ac_n "(cached) $ac_c" 1>&6
14846else
14847 ac_save_LIBS="$LIBS"
14848LIBS="-lGL $LIBS"
14849cat > conftest.$ac_ext <<EOF
14850#line 14851 "configure"
14851#include "confdefs.h"
14852/* Override any gcc2 internal prototype to avoid an error. */
14853/* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855char glFlush();
14856
14857int main() {
14858glFlush()
14859; return 0; }
14860EOF
14861if { (eval echo configure:14862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14862 rm -rf conftest*
14863 eval "ac_cv_lib_$ac_lib_var=yes"
14864else
14865 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14867 rm -rf conftest*
14868 eval "ac_cv_lib_$ac_lib_var=no"
14869fi
14870rm -f conftest*
14871LIBS="$ac_save_LIBS"
14872
14873fi
14874if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14875 echo "$ac_t""yes" 1>&6
14876
14877 OPENGL_LINK="-lGL -lGLU"
14878
14879else
14880 echo "$ac_t""no" 1>&6
14881
14882 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
14883echo "configure:14884: checking for glFlush in -lMesaGL" >&5
14884ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
14885if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14886 echo $ac_n "(cached) $ac_c" 1>&6
14887else
14888 ac_save_LIBS="$LIBS"
14889LIBS="-lMesaGL $LIBS"
14890cat > conftest.$ac_ext <<EOF
14891#line 14892 "configure"
14892#include "confdefs.h"
14893/* Override any gcc2 internal prototype to avoid an error. */
14894/* We use char because int might match the return type of a gcc2
14895 builtin and then its argument prototype would still apply. */
14896char glFlush();
14897
14898int main() {
14899glFlush()
14900; return 0; }
14901EOF
14902if { (eval echo configure:14903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14903 rm -rf conftest*
14904 eval "ac_cv_lib_$ac_lib_var=yes"
14905else
14906 echo "configure: failed program was:" >&5
14907 cat conftest.$ac_ext >&5
14908 rm -rf conftest*
14909 eval "ac_cv_lib_$ac_lib_var=no"
14910fi
14911rm -f conftest*
14912LIBS="$ac_save_LIBS"
14913
14914fi
14915if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14916 echo "$ac_t""yes" 1>&6
14917
14918 OPENGL_LINK="-lMesaGL -lMesaGLU"
14919
14920else
14921 echo "$ac_t""no" 1>&6
14922fi
14923
14924
14925fi
14926
14927
14928else
14929 echo "$ac_t""no" 1>&6
14930wxUSE_OPENGL=0
14931fi
14932
14933fi
14934
14935
14936if test "$wxUSE_GUI" = "yes"; then
14937 cat >> confdefs.h <<\EOF
14938#define wxUSE_GUI 1
14939EOF
14940
14941
14942 else
14943 cat >> confdefs.h <<\EOF
14944#define wxUSE_NOGUI 1
14945EOF
14946
14947fi
14948
14949
14950if test "$wxUSE_UNIX" = "yes"; then
14951 cat >> confdefs.h <<\EOF
14952#define wxUSE_UNIX 1
14953EOF
14954
14955fi
14956
14957
14958if test "$wxUSE_APPLE_IEEE" = "yes"; then
14959 cat >> confdefs.h <<\EOF
14960#define wxUSE_APPLE_IEEE 1
14961EOF
14962
14963fi
14964
14965if test "$wxUSE_TIMER" = "yes"; then
14966 cat >> confdefs.h <<\EOF
14967#define wxUSE_TIMER 1
14968EOF
14969
14970fi
14971
14972if test "$wxUSE_WAVE" = "yes"; then
14973 cat >> confdefs.h <<\EOF
14974#define wxUSE_WAVE 1
14975EOF
14976
14977fi
14978
14979if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
14980 cat >> confdefs.h <<\EOF
14981#define wxUSE_CMDLINE_PARSER 1
14982EOF
14983
14984fi
14985
14986if test "$wxUSE_STOPWATCH" = "yes"; then
14987 cat >> confdefs.h <<\EOF
14988#define wxUSE_STOPWATCH 1
14989EOF
14990
14991fi
14992
14993if test "$wxUSE_DATETIME" = "yes"; then
14994 cat >> confdefs.h <<\EOF
14995#define wxUSE_DATETIME 1
14996EOF
14997
14998fi
14999
15000if test "$wxUSE_TIMEDATE" = "yes"; then
15001 cat >> confdefs.h <<\EOF
15002#define wxUSE_TIMEDATE 1
15003EOF
15004
15005fi
15006
15007if test "$wxUSE_FILE" = "yes"; then
15008 cat >> confdefs.h <<\EOF
15009#define wxUSE_FILE 1
15010EOF
15011
15012fi
15013
15014if test "$wxUSE_FFILE" = "yes"; then
15015 cat >> confdefs.h <<\EOF
15016#define wxUSE_FFILE 1
15017EOF
15018
15019fi
15020
15021if test "$wxUSE_FILESYSTEM" = "yes"; then
15022 cat >> confdefs.h <<\EOF
15023#define wxUSE_FILESYSTEM 1
15024EOF
15025
15026fi
15027
15028if test "$wxUSE_FS_INET" = "yes"; then
15029 cat >> confdefs.h <<\EOF
15030#define wxUSE_FS_INET 1
15031EOF
15032
15033fi
15034
15035if test "$wxUSE_FS_ZIP" = "yes"; then
15036 cat >> confdefs.h <<\EOF
15037#define wxUSE_FS_ZIP 1
15038EOF
15039
15040fi
15041
15042if test "$wxUSE_ZIPSTREAM" = "yes"; then
15043 cat >> confdefs.h <<\EOF
15044#define wxUSE_ZIPSTREAM 1
15045EOF
15046
15047fi
15048
15049if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15050 cat >> confdefs.h <<\EOF
15051#define wxUSE_ON_FATAL_EXCEPTION 1
15052EOF
15053
15054fi
15055
15056if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15057 cat >> confdefs.h <<\EOF
15058#define wxUSE_SNGLINST_CHECKER 1
15059EOF
15060
15061fi
15062
15063if test "$wxUSE_BUSYINFO" = "yes"; then
15064 cat >> confdefs.h <<\EOF
15065#define wxUSE_BUSYINFO 1
15066EOF
15067
15068fi
15069
15070if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15071 cat >> confdefs.h <<\EOF
15072#define wxUSE_STD_IOSTREAM 1
15073EOF
15074
15075fi
15076
15077if test "$wxUSE_TEXTFILE" = "yes"; then
15078 if test "$wxUSE_FILE" != "yes"; then
15079 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15080 else
15081 cat >> confdefs.h <<\EOF
15082#define wxUSE_TEXTFILE 1
15083EOF
15084
15085 fi
15086fi
15087
15088if test "$wxUSE_CONFIG" = "yes" ; then
15089 if test "$wxUSE_TEXTFILE" != "yes"; then
15090 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15091 else
15092 cat >> confdefs.h <<\EOF
15093#define wxUSE_CONFIG 1
15094EOF
15095
15096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15097 fi
15098fi
15099
15100if test "$wxUSE_INTL" = "yes" ; then
15101 if test "$wxUSE_FILE" != "yes"; then
15102 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15103 else
15104 cat >> confdefs.h <<\EOF
15105#define wxUSE_INTL 1
15106EOF
15107
15108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15109 GUIDIST="$GUIDIST INTL_DIST"
15110 fi
15111fi
15112
15113if test "$wxUSE_LOG" = "yes"; then
15114 cat >> confdefs.h <<\EOF
15115#define wxUSE_LOG 1
15116EOF
15117
15118fi
15119
15120if test "$wxUSE_LONGLONG" = "yes"; then
15121 cat >> confdefs.h <<\EOF
15122#define wxUSE_LONGLONG 1
15123EOF
15124
15125fi
15126
15127if test "$wxUSE_GEOMETRY" = "yes"; then
15128 cat >> confdefs.h <<\EOF
15129#define wxUSE_GEOMETRY 1
15130EOF
15131
15132fi
15133
15134if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15135 cat >> confdefs.h <<\EOF
15136#define wxUSE_DIALUP_MANAGER 1
15137EOF
15138
15139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15140fi
15141
15142if test "$wxUSE_STREAMS" = "yes" ; then
15143 cat >> confdefs.h <<\EOF
15144#define wxUSE_STREAMS 1
15145EOF
15146
15147fi
15148
15149
15150if test "$wxUSE_DATETIME" = "yes"; then
15151 for ac_func in strptime
15152do
15153echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15154echo "configure:15155: checking for $ac_func" >&5
15155if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15156 echo $ac_n "(cached) $ac_c" 1>&6
15157else
15158 cat > conftest.$ac_ext <<EOF
15159#line 15160 "configure"
15160#include "confdefs.h"
15161/* System header to define __stub macros and hopefully few prototypes,
15162 which can conflict with char $ac_func(); below. */
15163#include <assert.h>
15164/* Override any gcc2 internal prototype to avoid an error. */
15165/* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15167char $ac_func();
15168
15169int main() {
15170
15171/* The GNU C library defines this for functions which it implements
15172 to always fail with ENOSYS. Some functions are actually named
15173 something starting with __ and the normal name is an alias. */
15174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15175choke me
15176#else
15177$ac_func();
15178#endif
15179
15180; return 0; }
15181EOF
15182if { (eval echo configure:15183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15183 rm -rf conftest*
15184 eval "ac_cv_func_$ac_func=yes"
15185else
15186 echo "configure: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 rm -rf conftest*
15189 eval "ac_cv_func_$ac_func=no"
15190fi
15191rm -f conftest*
15192fi
15193
15194if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15195 echo "$ac_t""yes" 1>&6
15196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15197 cat >> confdefs.h <<EOF
15198#define $ac_tr_func 1
15199EOF
15200
15201else
15202 echo "$ac_t""no" 1>&6
15203fi
15204done
15205
15206
15207 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15208echo "configure:15209: checking for timezone variable in <time.h>" >&5
15209if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15210 echo $ac_n "(cached) $ac_c" 1>&6
15211else
15212
15213 cat > conftest.$ac_ext <<EOF
15214#line 15215 "configure"
15215#include "confdefs.h"
15216
15217 #include <time.h>
15218
15219int main() {
15220
15221 int tz;
15222 tz = __timezone;
15223
15224; return 0; }
15225EOF
15226if { (eval echo configure:15227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15227 rm -rf conftest*
15228
15229 wx_cv_var_timezone=__timezone
15230
15231else
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 rm -rf conftest*
15235
15236 cat > conftest.$ac_ext <<EOF
15237#line 15238 "configure"
15238#include "confdefs.h"
15239
15240 #include <time.h>
15241
15242int main() {
15243
15244 int tz;
15245 tz = _timezone;
15246
15247; return 0; }
15248EOF
15249if { (eval echo configure:15250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15250 rm -rf conftest*
15251
15252 wx_cv_var_timezone=_timezone
15253
15254else
15255 echo "configure: failed program was:" >&5
15256 cat conftest.$ac_ext >&5
15257 rm -rf conftest*
15258
15259 cat > conftest.$ac_ext <<EOF
15260#line 15261 "configure"
15261#include "confdefs.h"
15262
15263 #include <time.h>
15264
15265int main() {
15266
15267 int tz;
15268 tz = timezone;
15269
15270; return 0; }
15271EOF
15272if { (eval echo configure:15273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15273 rm -rf conftest*
15274
15275 wx_cv_var_timezone=timezone
15276
15277else
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15280 rm -rf conftest*
15281 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15282
15283fi
15284rm -f conftest*
15285
15286
15287fi
15288rm -f conftest*
15289
15290
15291fi
15292rm -f conftest*
15293
15294
15295fi
15296
15297echo "$ac_t""$wx_cv_var_timezone" 1>&6
15298
15299 cat >> confdefs.h <<EOF
15300#define WX_TIMEZONE $wx_cv_var_timezone
15301EOF
15302
15303
15304 for ac_func in localtime
15305do
15306echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15307echo "configure:15308: checking for $ac_func" >&5
15308if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15309 echo $ac_n "(cached) $ac_c" 1>&6
15310else
15311 cat > conftest.$ac_ext <<EOF
15312#line 15313 "configure"
15313#include "confdefs.h"
15314/* System header to define __stub macros and hopefully few prototypes,
15315 which can conflict with char $ac_func(); below. */
15316#include <assert.h>
15317/* Override any gcc2 internal prototype to avoid an error. */
15318/* We use char because int might match the return type of a gcc2
15319 builtin and then its argument prototype would still apply. */
15320char $ac_func();
15321
15322int main() {
15323
15324/* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15328choke me
15329#else
15330$ac_func();
15331#endif
15332
15333; return 0; }
15334EOF
15335if { (eval echo configure:15336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15336 rm -rf conftest*
15337 eval "ac_cv_func_$ac_func=yes"
15338else
15339 echo "configure: failed program was:" >&5
15340 cat conftest.$ac_ext >&5
15341 rm -rf conftest*
15342 eval "ac_cv_func_$ac_func=no"
15343fi
15344rm -f conftest*
15345fi
15346
15347if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15348 echo "$ac_t""yes" 1>&6
15349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15350 cat >> confdefs.h <<EOF
15351#define $ac_tr_func 1
15352EOF
15353
15354else
15355 echo "$ac_t""no" 1>&6
15356fi
15357done
15358
15359
15360 if test "$ac_cv_func_localtime" = "yes"; then
15361 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
15362echo "configure:15363: checking for tm_gmtoff in struct tm" >&5
15363if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15364 echo $ac_n "(cached) $ac_c" 1>&6
15365else
15366
15367 cat > conftest.$ac_ext <<EOF
15368#line 15369 "configure"
15369#include "confdefs.h"
15370
15371 #include <time.h>
15372
15373int main() {
15374
15375 struct tm tm;
15376 tm.tm_gmtoff++;
15377
15378; return 0; }
15379EOF
15380if { (eval echo configure:15381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15381 rm -rf conftest*
15382
15383 wx_cv_struct_tm_has_gmtoff=yes
15384
15385else
15386 echo "configure: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 rm -rf conftest*
15389 wx_cv_struct_tm_has_gmtoff=no
15390
15391fi
15392rm -f conftest*
15393
15394fi
15395
15396echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
15397 fi
15398
15399 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
15400 cat >> confdefs.h <<\EOF
15401#define WX_GMTOFF_IN_TM 1
15402EOF
15403
15404 fi
15405
15406 for ac_func in gettimeofday ftime
15407do
15408echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15409echo "configure:15410: checking for $ac_func" >&5
15410if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15412else
15413 cat > conftest.$ac_ext <<EOF
15414#line 15415 "configure"
15415#include "confdefs.h"
15416/* System header to define __stub macros and hopefully few prototypes,
15417 which can conflict with char $ac_func(); below. */
15418#include <assert.h>
15419/* Override any gcc2 internal prototype to avoid an error. */
15420/* We use char because int might match the return type of a gcc2
15421 builtin and then its argument prototype would still apply. */
15422char $ac_func();
15423
15424int main() {
15425
15426/* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15430choke me
15431#else
15432$ac_func();
15433#endif
15434
15435; return 0; }
15436EOF
15437if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15438 rm -rf conftest*
15439 eval "ac_cv_func_$ac_func=yes"
15440else
15441 echo "configure: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15443 rm -rf conftest*
15444 eval "ac_cv_func_$ac_func=no"
15445fi
15446rm -f conftest*
15447fi
15448
15449if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
15451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15452 cat >> confdefs.h <<EOF
15453#define $ac_tr_func 1
15454EOF
15455 break
15456else
15457 echo "$ac_t""no" 1>&6
15458fi
15459done
15460
15461
15462 if test "$ac_cv_func_gettimeofday" = "yes"; then
15463 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
15464echo "configure:15465: checking whether gettimeofday takes two arguments" >&5
15465if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15466 echo $ac_n "(cached) $ac_c" 1>&6
15467else
15468
15469
15470 ac_ext=C
15471# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15472ac_cpp='$CXXCPP $CPPFLAGS'
15473ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15474ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15475cross_compiling=$ac_cv_prog_cxx_cross
15476
15477
15478 cat > conftest.$ac_ext <<EOF
15479#line 15480 "configure"
15480#include "confdefs.h"
15481
15482 #include <sys/time.h>
15483 #include <unistd.h>
15484
15485int main() {
15486
15487 struct timeval tv;
15488 struct timezone tz;
15489 gettimeofday(&tv, &tz);
15490
15491; return 0; }
15492EOF
15493if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15494 rm -rf conftest*
15495 wx_cv_func_gettimeofday_has_2_args=yes
15496else
15497 echo "configure: failed program was:" >&5
15498 cat conftest.$ac_ext >&5
15499 rm -rf conftest*
15500 cat > conftest.$ac_ext <<EOF
15501#line 15502 "configure"
15502#include "confdefs.h"
15503
15504 #include <sys/time.h>
15505 #include <unistd.h>
15506
15507int main() {
15508
15509 struct timeval tv;
15510 gettimeofday(&tv);
15511
15512; return 0; }
15513EOF
15514if { (eval echo configure:15515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15515 rm -rf conftest*
15516 wx_cv_func_gettimeofday_has_2_args=no
15517else
15518 echo "configure: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15520 rm -rf conftest*
15521 wx_cv_func_gettimeofday_has_2_args=unknown
15522
15523fi
15524rm -f conftest*
15525
15526fi
15527rm -f conftest*
15528 ac_ext=c
15529# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15530ac_cpp='$CPP $CPPFLAGS'
15531ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15532ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15533cross_compiling=$ac_cv_prog_cc_cross
15534
15535
15536fi
15537
15538echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
15539
15540 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
15541 cat >> confdefs.h <<\EOF
15542#define WX_GETTIMEOFDAY_NO_TZ 1
15543EOF
15544
15545 fi
15546 fi
15547
15548 cat >> confdefs.h <<\EOF
15549#define wxUSE_TIMEDATE 1
15550EOF
15551
15552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15553fi
15554
15555
15556if test "$TOOLKIT" != "MSW"; then
15557
15558if test "$wxUSE_SOCKETS" = "yes"; then
15559 echo $ac_n "checking for socket""... $ac_c" 1>&6
15560echo "configure:15561: checking for socket" >&5
15561if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15562 echo $ac_n "(cached) $ac_c" 1>&6
15563else
15564 cat > conftest.$ac_ext <<EOF
15565#line 15566 "configure"
15566#include "confdefs.h"
15567/* System header to define __stub macros and hopefully few prototypes,
15568 which can conflict with char socket(); below. */
15569#include <assert.h>
15570/* Override any gcc2 internal prototype to avoid an error. */
15571/* We use char because int might match the return type of a gcc2
15572 builtin and then its argument prototype would still apply. */
15573char socket();
15574
15575int main() {
15576
15577/* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580#if defined (__stub_socket) || defined (__stub___socket)
15581choke me
15582#else
15583socket();
15584#endif
15585
15586; return 0; }
15587EOF
15588if { (eval echo configure:15589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15589 rm -rf conftest*
15590 eval "ac_cv_func_socket=yes"
15591else
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 rm -rf conftest*
15595 eval "ac_cv_func_socket=no"
15596fi
15597rm -f conftest*
15598fi
15599
15600if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15601 echo "$ac_t""yes" 1>&6
15602 :
15603else
15604 echo "$ac_t""no" 1>&6
15605echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
15606echo "configure:15607: checking for socket in -lsocket" >&5
15607ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15608if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15609 echo $ac_n "(cached) $ac_c" 1>&6
15610else
15611 ac_save_LIBS="$LIBS"
15612LIBS="-lsocket $LIBS"
15613cat > conftest.$ac_ext <<EOF
15614#line 15615 "configure"
15615#include "confdefs.h"
15616/* Override any gcc2 internal prototype to avoid an error. */
15617/* We use char because int might match the return type of a gcc2
15618 builtin and then its argument prototype would still apply. */
15619char socket();
15620
15621int main() {
15622socket()
15623; return 0; }
15624EOF
15625if { (eval echo configure:15626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15626 rm -rf conftest*
15627 eval "ac_cv_lib_$ac_lib_var=yes"
15628else
15629 echo "configure: failed program was:" >&5
15630 cat conftest.$ac_ext >&5
15631 rm -rf conftest*
15632 eval "ac_cv_lib_$ac_lib_var=no"
15633fi
15634rm -f conftest*
15635LIBS="$ac_save_LIBS"
15636
15637fi
15638if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15639 echo "$ac_t""yes" 1>&6
15640 INET_LINK="$INET_LINK -lsocket"
15641else
15642 echo "$ac_t""no" 1>&6
15643
15644 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
15645 wxUSE_SOCKETS=no
15646
15647
15648fi
15649
15650
15651fi
15652
15653fi
15654
15655
15656if test "$wxUSE_SOCKETS" = "yes" ; then
15657 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
15658echo "configure:15659: checking what is the type of the third argument of getsockname" >&5
15659if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15660 echo $ac_n "(cached) $ac_c" 1>&6
15661else
15662
15663
15664 ac_ext=C
15665# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15666ac_cpp='$CXXCPP $CPPFLAGS'
15667ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15668ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15669cross_compiling=$ac_cv_prog_cxx_cross
15670
15671
15672 cat > conftest.$ac_ext <<EOF
15673#line 15674 "configure"
15674#include "confdefs.h"
15675
15676 #include <sys/types.h>
15677 #include <sys/socket.h>
15678
15679int main() {
15680
15681 socklen_t len;
15682 getsockname(0, 0, &len);
15683
15684; return 0; }
15685EOF
15686if { (eval echo configure:15687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15687 rm -rf conftest*
15688 wx_cv_type_getsockname3=socklen_t
15689else
15690 echo "configure: failed program was:" >&5
15691 cat conftest.$ac_ext >&5
15692 rm -rf conftest*
15693 cat > conftest.$ac_ext <<EOF
15694#line 15695 "configure"
15695#include "confdefs.h"
15696
15697 #include <sys/types.h>
15698 #include <sys/socket.h>
15699
15700int main() {
15701
15702 size_t len;
15703 getsockname(0, 0, &len);
15704
15705; return 0; }
15706EOF
15707if { (eval echo configure:15708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15708 rm -rf conftest*
15709 wx_cv_type_getsockname3=size_t
15710else
15711 echo "configure: failed program was:" >&5
15712 cat conftest.$ac_ext >&5
15713 rm -rf conftest*
15714 cat > conftest.$ac_ext <<EOF
15715#line 15716 "configure"
15716#include "confdefs.h"
15717
15718 #include <sys/types.h>
15719 #include <sys/socket.h>
15720
15721int main() {
15722
15723 int len;
15724 getsockname(0, 0, &len);
15725
15726; return 0; }
15727EOF
15728if { (eval echo configure:15729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15729 rm -rf conftest*
15730 wx_cv_type_getsockname3=int
15731else
15732 echo "configure: failed program was:" >&5
15733 cat conftest.$ac_ext >&5
15734 rm -rf conftest*
15735 wx_cv_type_getsockname3=unknown
15736
15737fi
15738rm -f conftest*
15739
15740fi
15741rm -f conftest*
15742
15743fi
15744rm -f conftest*
15745
15746 ac_ext=c
15747# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15748ac_cpp='$CPP $CPPFLAGS'
15749ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15750ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15751cross_compiling=$ac_cv_prog_cc_cross
15752
15753
15754fi
15755
15756echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
15757
15758 if test "$wx_cv_type_getsockname3" = "unknown"; then
15759 wxUSE_SOCKETS=no
15760 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
15761 else
15762 cat >> confdefs.h <<EOF
15763#define SOCKLEN_T $wx_cv_type_getsockname3
15764EOF
15765
15766 fi
15767fi
15768
15769fi
15770
15771if test "$wxUSE_SOCKETS" = "yes" ; then
15772 cat >> confdefs.h <<\EOF
15773#define wxUSE_SOCKETS 1
15774EOF
15775
15776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
15777 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15778fi
15779
15780
15781if test "$wxUSE_GUI" = "yes"; then
15782
15783if test "$TOOLKIT" != "MSW"; then
15784
15785if test "$wxUSE_JOYSTICK" = "yes"; then
15786 for ac_hdr in linux/joystick.h
15787do
15788ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15789echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15790echo "configure:15791: checking for $ac_hdr" >&5
15791if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15792 echo $ac_n "(cached) $ac_c" 1>&6
15793else
15794 cat > conftest.$ac_ext <<EOF
15795#line 15796 "configure"
15796#include "confdefs.h"
15797#include <$ac_hdr>
15798EOF
15799ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15800{ (eval echo configure:15801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15801ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15802if test -z "$ac_err"; then
15803 rm -rf conftest*
15804 eval "ac_cv_header_$ac_safe=yes"
15805else
15806 echo "$ac_err" >&5
15807 echo "configure: failed program was:" >&5
15808 cat conftest.$ac_ext >&5
15809 rm -rf conftest*
15810 eval "ac_cv_header_$ac_safe=no"
15811fi
15812rm -f conftest*
15813fi
15814if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15815 echo "$ac_t""yes" 1>&6
15816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15817 cat >> confdefs.h <<EOF
15818#define $ac_tr_hdr 1
15819EOF
15820
15821else
15822 echo "$ac_t""no" 1>&6
15823fi
15824done
15825
15826 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
15827 wxUSE_JOYSTICK=no
15828 echo "configure: warning: Joystick not supported by this system" 1>&2
15829 fi
15830fi
15831
15832fi
15833
15834if test "$wxUSE_JOYSTICK" = "yes"; then
15835 cat >> confdefs.h <<\EOF
15836#define wxUSE_JOYSTICK 1
15837EOF
15838
15839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
15840fi
15841
15842fi
15843
15844
15845if test "$TOOLKIT" != "MSW"; then
15846
15847HAVE_DL_FUNCS=0
15848HAVE_SHL_FUNCS=0
15849if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
15850 if test "$USE_MAC" = 1; then
15851 HAVE_DL_FUNCS=1
15852 else
15853 for ac_func in dlopen
15854do
15855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15856echo "configure:15857: checking for $ac_func" >&5
15857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15858 echo $ac_n "(cached) $ac_c" 1>&6
15859else
15860 cat > conftest.$ac_ext <<EOF
15861#line 15862 "configure"
15862#include "confdefs.h"
15863/* System header to define __stub macros and hopefully few prototypes,
15864 which can conflict with char $ac_func(); below. */
15865#include <assert.h>
15866/* Override any gcc2 internal prototype to avoid an error. */
15867/* We use char because int might match the return type of a gcc2
15868 builtin and then its argument prototype would still apply. */
15869char $ac_func();
15870
15871int main() {
15872
15873/* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15877choke me
15878#else
15879$ac_func();
15880#endif
15881
15882; return 0; }
15883EOF
15884if { (eval echo configure:15885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15885 rm -rf conftest*
15886 eval "ac_cv_func_$ac_func=yes"
15887else
15888 echo "configure: failed program was:" >&5
15889 cat conftest.$ac_ext >&5
15890 rm -rf conftest*
15891 eval "ac_cv_func_$ac_func=no"
15892fi
15893rm -f conftest*
15894fi
15895
15896if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15897 echo "$ac_t""yes" 1>&6
15898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15899 cat >> confdefs.h <<EOF
15900#define $ac_tr_func 1
15901EOF
15902
15903 cat >> confdefs.h <<\EOF
15904#define HAVE_DLOPEN 1
15905EOF
15906
15907 HAVE_DL_FUNCS=1
15908
15909else
15910 echo "$ac_t""no" 1>&6
15911echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
15912echo "configure:15913: checking for dlopen in -ldl" >&5
15913ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
15914if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
15916else
15917 ac_save_LIBS="$LIBS"
15918LIBS="-ldl $LIBS"
15919cat > conftest.$ac_ext <<EOF
15920#line 15921 "configure"
15921#include "confdefs.h"
15922/* Override any gcc2 internal prototype to avoid an error. */
15923/* We use char because int might match the return type of a gcc2
15924 builtin and then its argument prototype would still apply. */
15925char dlopen();
15926
15927int main() {
15928dlopen()
15929; return 0; }
15930EOF
15931if { (eval echo configure:15932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15932 rm -rf conftest*
15933 eval "ac_cv_lib_$ac_lib_var=yes"
15934else
15935 echo "configure: failed program was:" >&5
15936 cat conftest.$ac_ext >&5
15937 rm -rf conftest*
15938 eval "ac_cv_lib_$ac_lib_var=no"
15939fi
15940rm -f conftest*
15941LIBS="$ac_save_LIBS"
15942
15943fi
15944if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15945 echo "$ac_t""yes" 1>&6
15946
15947 cat >> confdefs.h <<\EOF
15948#define HAVE_DLOPEN 1
15949EOF
15950
15951 HAVE_DL_FUNCS=1
15952 LIBS="$LIBS -ldl"
15953
15954else
15955 echo "$ac_t""no" 1>&6
15956
15957 for ac_func in shl_load
15958do
15959echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15960echo "configure:15961: checking for $ac_func" >&5
15961if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15962 echo $ac_n "(cached) $ac_c" 1>&6
15963else
15964 cat > conftest.$ac_ext <<EOF
15965#line 15966 "configure"
15966#include "confdefs.h"
15967/* System header to define __stub macros and hopefully few prototypes,
15968 which can conflict with char $ac_func(); below. */
15969#include <assert.h>
15970/* Override any gcc2 internal prototype to avoid an error. */
15971/* We use char because int might match the return type of a gcc2
15972 builtin and then its argument prototype would still apply. */
15973char $ac_func();
15974
15975int main() {
15976
15977/* The GNU C library defines this for functions which it implements
15978 to always fail with ENOSYS. Some functions are actually named
15979 something starting with __ and the normal name is an alias. */
15980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15981choke me
15982#else
15983$ac_func();
15984#endif
15985
15986; return 0; }
15987EOF
15988if { (eval echo configure:15989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15989 rm -rf conftest*
15990 eval "ac_cv_func_$ac_func=yes"
15991else
15992 echo "configure: failed program was:" >&5
15993 cat conftest.$ac_ext >&5
15994 rm -rf conftest*
15995 eval "ac_cv_func_$ac_func=no"
15996fi
15997rm -f conftest*
15998fi
15999
16000if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16001 echo "$ac_t""yes" 1>&6
16002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16003 cat >> confdefs.h <<EOF
16004#define $ac_tr_func 1
16005EOF
16006
16007 cat >> confdefs.h <<\EOF
16008#define HAVE_SHL_LOAD 1
16009EOF
16010
16011 HAVE_SHL_FUNCS=1
16012
16013else
16014 echo "$ac_t""no" 1>&6
16015echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16016echo "configure:16017: checking for dld in -lshl_load" >&5
16017ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16018if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16019 echo $ac_n "(cached) $ac_c" 1>&6
16020else
16021 ac_save_LIBS="$LIBS"
16022LIBS="-lshl_load $LIBS"
16023cat > conftest.$ac_ext <<EOF
16024#line 16025 "configure"
16025#include "confdefs.h"
16026/* Override any gcc2 internal prototype to avoid an error. */
16027/* We use char because int might match the return type of a gcc2
16028 builtin and then its argument prototype would still apply. */
16029char dld();
16030
16031int main() {
16032dld()
16033; return 0; }
16034EOF
16035if { (eval echo configure:16036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16036 rm -rf conftest*
16037 eval "ac_cv_lib_$ac_lib_var=yes"
16038else
16039 echo "configure: failed program was:" >&5
16040 cat conftest.$ac_ext >&5
16041 rm -rf conftest*
16042 eval "ac_cv_lib_$ac_lib_var=no"
16043fi
16044rm -f conftest*
16045LIBS="$ac_save_LIBS"
16046
16047fi
16048if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16049 echo "$ac_t""yes" 1>&6
16050
16051 HAVE_SHL_FUNCS=1
16052 LIBS="$LIBS -ldld"
16053
16054else
16055 echo "$ac_t""no" 1>&6
16056fi
16057
16058
16059fi
16060done
16061
16062
16063fi
16064
16065
16066fi
16067done
16068
16069
16070 if test "$HAVE_DL_FUNCS" = 1; then
16071 for ac_func in dlerror
16072do
16073echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16074echo "configure:16075: checking for $ac_func" >&5
16075if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16076 echo $ac_n "(cached) $ac_c" 1>&6
16077else
16078 cat > conftest.$ac_ext <<EOF
16079#line 16080 "configure"
16080#include "confdefs.h"
16081/* System header to define __stub macros and hopefully few prototypes,
16082 which can conflict with char $ac_func(); below. */
16083#include <assert.h>
16084/* Override any gcc2 internal prototype to avoid an error. */
16085/* We use char because int might match the return type of a gcc2
16086 builtin and then its argument prototype would still apply. */
16087char $ac_func();
16088
16089int main() {
16090
16091/* The GNU C library defines this for functions which it implements
16092 to always fail with ENOSYS. Some functions are actually named
16093 something starting with __ and the normal name is an alias. */
16094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16095choke me
16096#else
16097$ac_func();
16098#endif
16099
16100; return 0; }
16101EOF
16102if { (eval echo configure:16103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16103 rm -rf conftest*
16104 eval "ac_cv_func_$ac_func=yes"
16105else
16106 echo "configure: failed program was:" >&5
16107 cat conftest.$ac_ext >&5
16108 rm -rf conftest*
16109 eval "ac_cv_func_$ac_func=no"
16110fi
16111rm -f conftest*
16112fi
16113
16114if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16115 echo "$ac_t""yes" 1>&6
16116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16117 cat >> confdefs.h <<EOF
16118#define $ac_tr_func 1
16119EOF
16120 cat >> confdefs.h <<\EOF
16121#define HAVE_DLERROR 1
16122EOF
16123
16124else
16125 echo "$ac_t""no" 1>&6
16126echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16127echo "configure:16128: checking for dlerror in -ldl" >&5
16128ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16129if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16130 echo $ac_n "(cached) $ac_c" 1>&6
16131else
16132 ac_save_LIBS="$LIBS"
16133LIBS="-ldl $LIBS"
16134cat > conftest.$ac_ext <<EOF
16135#line 16136 "configure"
16136#include "confdefs.h"
16137/* Override any gcc2 internal prototype to avoid an error. */
16138/* We use char because int might match the return type of a gcc2
16139 builtin and then its argument prototype would still apply. */
16140char dlerror();
16141
16142int main() {
16143dlerror()
16144; return 0; }
16145EOF
16146if { (eval echo configure:16147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16147 rm -rf conftest*
16148 eval "ac_cv_lib_$ac_lib_var=yes"
16149else
16150 echo "configure: failed program was:" >&5
16151 cat conftest.$ac_ext >&5
16152 rm -rf conftest*
16153 eval "ac_cv_lib_$ac_lib_var=no"
16154fi
16155rm -f conftest*
16156LIBS="$ac_save_LIBS"
16157
16158fi
16159if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16160 echo "$ac_t""yes" 1>&6
16161 cat >> confdefs.h <<\EOF
16162#define HAVE_DLERROR 1
16163EOF
16164
16165else
16166 echo "$ac_t""no" 1>&6
16167fi
16168
16169fi
16170done
16171
16172 fi
16173 fi
16174
16175 if test "$HAVE_DL_FUNCS" = 0; then
16176 if test "$HAVE_SHL_FUNCS" = 0; then
16177 if test "$USE_UNIX" = 1; then
16178 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16179 wxUSE_DYNLIB_CLASS=no
16180 else
16181 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16182 fi
16183 fi
16184 fi
16185fi
16186
16187fi
16188
16189if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16190 cat >> confdefs.h <<\EOF
16191#define wxUSE_DYNLIB_CLASS 1
16192EOF
16193
16194else
16195 wxUSE_ODBC=no
16196 wxUSE_SERIAL=no
16197fi
16198
16199
16200if test "$wxUSE_FONTMAP" = "yes" ; then
16201 cat >> confdefs.h <<\EOF
16202#define wxUSE_FONTMAP 1
16203EOF
16204
16205fi
16206
16207if test "$wxUSE_UNICODE" = "yes" ; then
16208 cat >> confdefs.h <<\EOF
16209#define wxUSE_UNICODE 1
16210EOF
16211
16212fi
16213
16214if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16215 cat >> confdefs.h <<\EOF
16216#define wxUSE_WCSRTOMBS 1
16217EOF
16218
16219fi
16220
16221if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16222 cat >> confdefs.h <<\EOF
16223#define wxUSE_EXPERIMENTAL_PRINTF 1
16224EOF
16225
16226fi
16227
16228
16229if test "$wxUSE_SERIAL" = "yes" ; then
16230 cat >> confdefs.h <<\EOF
16231#define wxUSE_SERIAL 1
16232EOF
16233
16234fi
16235
16236
16237IODBC_C_SRC=""
16238if test "$wxUSE_ODBC" = "yes" ; then
16239 cat >> confdefs.h <<\EOF
16240#define wxUSE_ODBC 1
16241EOF
16242
16243 WXODBCFLAG="-D_IODBC_"
16244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16245fi
16246
16247
16248if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16249 cat >> confdefs.h <<\EOF
16250#define wxUSE_POSTSCRIPT 1
16251EOF
16252
16253fi
16254
16255cat >> confdefs.h <<\EOF
16256#define wxUSE_AFM_FOR_POSTSCRIPT 1
16257EOF
16258
16259
16260cat >> confdefs.h <<\EOF
16261#define wxUSE_NORMALIZED_PS_FONTS 1
16262EOF
16263
16264
16265
16266if test "$wxUSE_CONSTRAINTS" = "yes"; then
16267 cat >> confdefs.h <<\EOF
16268#define wxUSE_CONSTRAINTS 1
16269EOF
16270
16271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16272fi
16273
16274if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16275 cat >> confdefs.h <<\EOF
16276#define wxUSE_MDI_ARCHITECTURE 1
16277EOF
16278
16279 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16280fi
16281
16282if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16283 cat >> confdefs.h <<\EOF
16284#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16285EOF
16286
16287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16288 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16290 fi
16291fi
16292
16293if test "$wxUSE_HELP" = "yes"; then
16294 cat >> confdefs.h <<\EOF
16295#define wxUSE_HELP 1
16296EOF
16297
16298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16299fi
16300
16301if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16302 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16303 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
16304 else
16305 cat >> confdefs.h <<\EOF
16306#define wxUSE_PRINTING_ARCHITECTURE 1
16307EOF
16308
16309 fi
16310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16311fi
16312
16313if test "$wxUSE_PROLOGIO" = "yes" ; then
16314 cat >> confdefs.h <<\EOF
16315#define wxUSE_PROLOGIO 1
16316EOF
16317
16318fi
16319
16320if test "$wxUSE_RESOURCES" = "yes" ; then
16321 if test "$wxUSE_PROLOGIO" = "yes" ; then
16322 cat >> confdefs.h <<\EOF
16323#define wxUSE_RESOURCES 1
16324EOF
16325
16326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16327 else
16328 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
16329 fi
16330fi
16331
16332if test "$wxUSE_X_RESOURCES" = "yes"; then
16333 cat >> confdefs.h <<\EOF
16334#define wxUSE_X_RESOURCES 1
16335EOF
16336
16337fi
16338
16339
16340if test "$wxUSE_IPC" = "yes"; then
16341 if test "$wxUSE_SOCKETS" != "yes"; then
16342 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
16343 fi
16344
16345 cat >> confdefs.h <<\EOF
16346#define wxUSE_IPC 1
16347EOF
16348
16349fi
16350
16351if test "$wxUSE_CLIPBOARD" = "yes"; then
16352 cat >> confdefs.h <<\EOF
16353#define wxUSE_CLIPBOARD 1
16354EOF
16355
16356 cat >> confdefs.h <<\EOF
16357#define wxUSE_DATAOBJ 1
16358EOF
16359
16360fi
16361
16362if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16363 if test "$wxUSE_GTK" = 1; then
16364 if test "$WXGTK12" != 1; then
16365 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
16366 wxUSE_DRAG_AND_DROP=no
16367 fi
16368 fi
16369
16370 if test "$wxUSE_MOTIF" = 1; then
16371 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
16372 wxUSE_DRAG_AND_DROP=no
16373 fi
16374
16375 if test "$wxUSE_MAC" = 1; then
16376 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
16377 wxUSE_DRAG_AND_DROP=no
16378 fi
16379
16380 if test "$USE_WIN32" = 1; then
16381
16382 for ac_hdr in ole2.h
16383do
16384ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16385echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16386echo "configure:16387: checking for $ac_hdr" >&5
16387if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16388 echo $ac_n "(cached) $ac_c" 1>&6
16389else
16390 cat > conftest.$ac_ext <<EOF
16391#line 16392 "configure"
16392#include "confdefs.h"
16393#include <$ac_hdr>
16394EOF
16395ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16396{ (eval echo configure:16397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16397ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16398if test -z "$ac_err"; then
16399 rm -rf conftest*
16400 eval "ac_cv_header_$ac_safe=yes"
16401else
16402 echo "$ac_err" >&5
16403 echo "configure: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 rm -rf conftest*
16406 eval "ac_cv_header_$ac_safe=no"
16407fi
16408rm -f conftest*
16409fi
16410if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16411 echo "$ac_t""yes" 1>&6
16412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16413 cat >> confdefs.h <<EOF
16414#define $ac_tr_hdr 1
16415EOF
16416
16417else
16418 echo "$ac_t""no" 1>&6
16419fi
16420done
16421
16422
16423 if test "$ac_cv_header_ole2_h" = "yes" ; then
16424 if test "$GCC" = yes ; then
16425 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16426 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
16427 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
16428 LIBS="$LIBS -lole32 -luuid"
16429
16430 if test "$wxUSE_METAFILE" = "yes"; then
16431 cat >> confdefs.h <<\EOF
16432#define wxUSE_METAFILE 1
16433EOF
16434
16435 cat >> confdefs.h <<\EOF
16436#define wxUSE_ENH_METAFILE 1
16437EOF
16438
16439 fi
16440 fi
16441 else
16442 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
16443 wxUSE_DRAG_AND_DROP=no
16444 fi
16445 fi
16446
16447 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
16448 cat >> confdefs.h <<\EOF
16449#define wxUSE_DRAG_AND_DROP 1
16450EOF
16451
16452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16453 fi
16454
16455fi
16456
16457if test "$wxUSE_SPLINES" = "yes" ; then
16458 cat >> confdefs.h <<\EOF
16459#define wxUSE_SPLINES 1
16460EOF
16461
16462fi
16463
16464
16465USES_CONTROLS=0
16466if test "$wxUSE_CONTROLS" = "yes"; then
16467 USES_CONTROLS=1
16468fi
16469
16470if test "$wxUSE_ACCEL" = "yes"; then
16471 cat >> confdefs.h <<\EOF
16472#define wxUSE_ACCEL 1
16473EOF
16474
16475 USES_CONTROLS=1
16476fi
16477
16478if test "$wxUSE_BUTTON" = "yes"; then
16479 cat >> confdefs.h <<\EOF
16480#define wxUSE_BUTTON 1
16481EOF
16482
16483 USES_CONTROLS=1
16484fi
16485
16486if test "$wxUSE_BMPBUTTON" = "yes"; then
16487 cat >> confdefs.h <<\EOF
16488#define wxUSE_BMPBUTTON 1
16489EOF
16490
16491 USES_CONTROLS=1
16492fi
16493
16494if test "$wxUSE_CALCTRL" = "yes"; then
16495 cat >> confdefs.h <<\EOF
16496#define wxUSE_CALENDARCTRL 1
16497EOF
16498
16499 USES_CONTROLS=1
16500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
16501fi
16502
16503if test "$wxUSE_CARET" = "yes"; then
16504 cat >> confdefs.h <<\EOF
16505#define wxUSE_CARET 1
16506EOF
16507
16508 USES_CONTROLS=1
16509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16510fi
16511
16512if test "$wxUSE_COMBOBOX" = "yes"; then
16513 cat >> confdefs.h <<\EOF
16514#define wxUSE_COMBOBOX 1
16515EOF
16516
16517 USES_CONTROLS=1
16518fi
16519
16520if test "$wxUSE_CHOICE" = "yes"; then
16521 cat >> confdefs.h <<\EOF
16522#define wxUSE_CHOICE 1
16523EOF
16524
16525 USES_CONTROLS=1
16526fi
16527
16528if test "$wxUSE_CHECKBOX" = "yes"; then
16529 cat >> confdefs.h <<\EOF
16530#define wxUSE_CHECKBOX 1
16531EOF
16532
16533 USES_CONTROLS=1
16534fi
16535
16536if test "$wxUSE_CHECKLST" = "yes"; then
16537 cat >> confdefs.h <<\EOF
16538#define wxUSE_CHECKLISTBOX 1
16539EOF
16540
16541 USES_CONTROLS=1
16542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16543fi
16544
16545if test "$wxUSE_GAUGE" = "yes"; then
16546 cat >> confdefs.h <<\EOF
16547#define wxUSE_GAUGE 1
16548EOF
16549
16550 USES_CONTROLS=1
16551fi
16552
16553if test "$wxUSE_NEW_GRID" = "yes"; then
16554 wxUSE_GRID="yes"
16555 cat >> confdefs.h <<\EOF
16556#define wxUSE_NEW_GRID 1
16557EOF
16558
16559 USES_CONTROLS=1
16560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
16561fi
16562
16563if test "$wxUSE_GRID" = "yes"; then
16564 cat >> confdefs.h <<\EOF
16565#define wxUSE_GRID 1
16566EOF
16567
16568 USES_CONTROLS=1
16569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
16570fi
16571
16572if test "$wxUSE_IMAGLIST" = "yes"; then
16573 cat >> confdefs.h <<\EOF
16574#define wxUSE_IMAGLIST 1
16575EOF
16576
16577fi
16578
16579if test "$wxUSE_LISTBOX" = "yes"; then
16580 cat >> confdefs.h <<\EOF
16581#define wxUSE_LISTBOX 1
16582EOF
16583
16584 USES_CONTROLS=1
16585fi
16586
16587if test "$wxUSE_LISTCTRL" = "yes"; then
16588 if test "$wxUSE_IMAGLIST" = "yes"; then
16589 cat >> confdefs.h <<\EOF
16590#define wxUSE_LISTCTRL 1
16591EOF
16592
16593 USES_CONTROLS=1
16594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16595 else
16596 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
16597 fi
16598fi
16599
16600if test "$wxUSE_NOTEBOOK" = "yes"; then
16601 cat >> confdefs.h <<\EOF
16602#define wxUSE_NOTEBOOK 1
16603EOF
16604
16605 USES_CONTROLS=1
16606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16607fi
16608
16609if test "$wxUSE_RADIOBOX" = "yes"; then
16610 cat >> confdefs.h <<\EOF
16611#define wxUSE_RADIOBOX 1
16612EOF
16613
16614 USES_CONTROLS=1
16615fi
16616
16617if test "$wxUSE_RADIOBTN" = "yes"; then
16618 cat >> confdefs.h <<\EOF
16619#define wxUSE_RADIOBTN 1
16620EOF
16621
16622 USES_CONTROLS=1
16623fi
16624
16625if test "$wxUSE_SASH" = "yes"; then
16626 cat >> confdefs.h <<\EOF
16627#define wxUSE_SASH 1
16628EOF
16629
16630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16631fi
16632
16633if test "$wxUSE_SCROLLBAR" = "yes"; then
16634 cat >> confdefs.h <<\EOF
16635#define wxUSE_SCROLLBAR 1
16636EOF
16637
16638 USES_CONTROLS=1
16639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
16640fi
16641
16642if test "$wxUSE_SLIDER" = "yes"; then
16643 cat >> confdefs.h <<\EOF
16644#define wxUSE_SLIDER 1
16645EOF
16646
16647 USES_CONTROLS=1
16648fi
16649
16650if test "$wxUSE_SPINBTN" = "yes"; then
16651 cat >> confdefs.h <<\EOF
16652#define wxUSE_SPINBTN 1
16653EOF
16654
16655 USES_CONTROLS=1
16656fi
16657
16658if test "$wxUSE_SPINCTRL" = "yes"; then
16659 cat >> confdefs.h <<\EOF
16660#define wxUSE_SPINCTRL 1
16661EOF
16662
16663 USES_CONTROLS=1
16664fi
16665
16666if test "$wxUSE_SPLITTER" = "yes"; then
16667 cat >> confdefs.h <<\EOF
16668#define wxUSE_SPLITTER 1
16669EOF
16670
16671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16672fi
16673
16674if test "$wxUSE_STATBMP" = "yes"; then
16675 cat >> confdefs.h <<\EOF
16676#define wxUSE_STATBMP 1
16677EOF
16678
16679 USES_CONTROLS=1
16680fi
16681
16682if test "$wxUSE_STATBOX" = "yes"; then
16683 cat >> confdefs.h <<\EOF
16684#define wxUSE_STATBOX 1
16685EOF
16686
16687 USES_CONTROLS=1
16688fi
16689
16690if test "$wxUSE_STATTEXT" = "yes"; then
16691 cat >> confdefs.h <<\EOF
16692#define wxUSE_STATTEXT 1
16693EOF
16694
16695 USES_CONTROLS=1
16696fi
16697
16698if test "$wxUSE_STATLINE" = "yes"; then
16699 if test "$wxUSE_WINE" = 1 ; then
16700 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
16701 else
16702 cat >> confdefs.h <<\EOF
16703#define wxUSE_STATLINE 1
16704EOF
16705
16706 USES_CONTROLS=1
16707 fi
16708fi
16709
16710if test "$wxUSE_STATUSBAR" = "yes"; then
16711 cat >> confdefs.h <<\EOF
16712#define wxUSE_STATUSBAR 1
16713EOF
16714
16715 USES_CONTROLS=1
16716
16717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
16718fi
16719
16720if test "$wxUSE_TABDIALOG" = "yes"; then
16721 cat >> confdefs.h <<\EOF
16722#define wxUSE_TAB_DIALOG 1
16723EOF
16724
16725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16726fi
16727
16728if test "$wxUSE_TEXTCTRL" = "yes"; then
16729 cat >> confdefs.h <<\EOF
16730#define wxUSE_TEXTCTRL 1
16731EOF
16732
16733 USES_CONTROLS=1
16734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16735fi
16736
16737if test "$wxUSE_TOGGLEBTN" = "yes"; then
16738 if test "$wxUSE_MAC" = 1; then
16739 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16740 wxUSE_TOGGLEBTN=no
16741 fi
16742
16743 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16744 cat >> confdefs.h <<\EOF
16745#define wxUSE_TOGGLEBTN 1
16746EOF
16747
16748 USES_CONTROLS=1
16749 fi
16750fi
16751
16752if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
16753 cat >> confdefs.h <<\EOF
16754#define wxUSE_TOOLBAR_SIMPLE 1
16755EOF
16756
16757 wxUSE_TOOLBAR="yes"
16758 USES_CONTROLS=1
16759fi
16760
16761if test "$wxUSE_TOOLBAR" = "yes"; then
16762 cat >> confdefs.h <<\EOF
16763#define wxUSE_TOOLBAR 1
16764EOF
16765
16766 USES_CONTROLS=1
16767
16768 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16769 wxUSE_TOOLBAR_NATIVE="yes"
16770 fi
16771
16772 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16773 cat >> confdefs.h <<\EOF
16774#define wxUSE_TOOLBAR_NATIVE 1
16775EOF
16776
16777 USES_CONTROLS=1
16778 fi
16779
16780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
16781fi
16782
16783if test "$wxUSE_TOOLTIPS" = "yes"; then
16784 if test "$wxUSE_MOTIF" = 1; then
16785 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
16786 else
16787 if test "$wxUSE_WINE" = 1; then
16788 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
16789 else
16790 cat >> confdefs.h <<\EOF
16791#define wxUSE_TOOLTIPS 1
16792EOF
16793
16794 fi
16795 fi
16796fi
16797
16798if test "$wxUSE_TREECTRL" = "yes"; then
16799 if test "$wxUSE_IMAGLIST" = "yes"; then
16800 cat >> confdefs.h <<\EOF
16801#define wxUSE_TREECTRL 1
16802EOF
16803
16804 USES_CONTROLS=1
16805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
16806 else
16807 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
16808 fi
16809fi
16810
16811if test "$USES_CONTROLS" = 1; then
16812 cat >> confdefs.h <<\EOF
16813#define wxUSE_CONTROLS 1
16814EOF
16815
16816fi
16817
16818
16819
16820if test "$wxUSE_MENUS" = "yes"; then
16821 cat >> confdefs.h <<\EOF
16822#define wxUSE_MENUS 1
16823EOF
16824
16825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
16826fi
16827
16828if test "$wxUSE_METAFILE" = "yes"; then
16829 cat >> confdefs.h <<\EOF
16830#define wxUSE_METAFILE 1
16831EOF
16832
16833fi
16834
16835if test "$wxUSE_MIMETYPE" = "yes"; then
16836 cat >> confdefs.h <<\EOF
16837#define wxUSE_MIMETYPE 1
16838EOF
16839
16840fi
16841
16842if test "$wxUSE_MINIFRAME" = "yes"; then
16843 cat >> confdefs.h <<\EOF
16844#define wxUSE_MINIFRAME 1
16845EOF
16846
16847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
16848fi
16849
16850if test "$wxUSE_HTML" = "yes"; then
16851 cat >> confdefs.h <<\EOF
16852#define wxUSE_HTML 1
16853EOF
16854
16855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
16856 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
16857fi
16858
16859if test "$wxUSE_VALIDATORS" = "yes"; then
16860 cat >> confdefs.h <<\EOF
16861#define wxUSE_VALIDATORS 1
16862EOF
16863
16864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
16865fi
16866
16867if test "$wxUSE_IMAGE" = "yes" ; then
16868 cat >> confdefs.h <<\EOF
16869#define wxUSE_IMAGE 1
16870EOF
16871
16872fi
16873
16874if test "$wxUSE_GIF" = "yes" ; then
16875 cat >> confdefs.h <<\EOF
16876#define wxUSE_GIF 1
16877EOF
16878
16879fi
16880
16881if test "$wxUSE_PCX" = "yes" ; then
16882 cat >> confdefs.h <<\EOF
16883#define wxUSE_PCX 1
16884EOF
16885
16886fi
16887
16888if test "$wxUSE_PNM" = "yes" ; then
16889 cat >> confdefs.h <<\EOF
16890#define wxUSE_PNM 1
16891EOF
16892
16893fi
16894
16895if test "$wxUSE_XPM" = "yes" ; then
16896 cat >> confdefs.h <<\EOF
16897#define wxUSE_XPM 1
16898EOF
16899
16900fi
16901
16902
16903if test "$wxUSE_CHOICEDLG" = "yes"; then
16904 cat >> confdefs.h <<\EOF
16905#define wxUSE_CHOICEDLG 1
16906EOF
16907
16908fi
16909
16910if test "$wxUSE_COLOURDLG" = "yes"; then
16911 cat >> confdefs.h <<\EOF
16912#define wxUSE_COLOURDLG 1
16913EOF
16914
16915fi
16916
16917if test "$wxUSE_FILEDLG" = "yes"; then
16918 cat >> confdefs.h <<\EOF
16919#define wxUSE_FILEDLG 1
16920EOF
16921
16922fi
16923
16924if test "$wxUSE_FONTDLG" = "yes"; then
16925 cat >> confdefs.h <<\EOF
16926#define wxUSE_FONTDLG 1
16927EOF
16928
16929fi
16930
16931if test "$wxUSE_DIRDLG" = "yes"; then
16932 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16933 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
16934 else
16935 if test "$wxUSE_TREECTRL" != "yes"; then
16936 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
16937 else
16938 cat >> confdefs.h <<\EOF
16939#define wxUSE_DIRDLG 1
16940EOF
16941
16942 fi
16943 fi
16944fi
16945
16946if test "$wxUSE_MSGDLG" = "yes"; then
16947 cat >> confdefs.h <<\EOF
16948#define wxUSE_MSGDLG 1
16949EOF
16950
16951fi
16952
16953if test "$wxUSE_NUMBERDLG" = "yes"; then
16954 cat >> confdefs.h <<\EOF
16955#define wxUSE_NUMBERDLG 1
16956EOF
16957
16958fi
16959
16960if test "$wxUSE_PROGRESSDLG" = "yes"; then
16961 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16962 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
16963 else
16964 cat >> confdefs.h <<\EOF
16965#define wxUSE_PROGRESSDLG 1
16966EOF
16967
16968 fi
16969fi
16970
16971if test "$wxUSE_STARTUP_TIPS" = "yes"; then
16972 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16973 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
16974 else
16975 cat >> confdefs.h <<\EOF
16976#define wxUSE_STARTUP_TIPS 1
16977EOF
16978
16979 fi
16980fi
16981
16982if test "$wxUSE_TEXTDLG" = "yes"; then
16983 cat >> confdefs.h <<\EOF
16984#define wxUSE_TEXTDLG 1
16985EOF
16986
16987fi
16988
16989
16990if test "$cross_compiling" = "yes"; then
16991 OSINFO="\"$host\""
16992else
16993 OSINFO=`uname -s -r -m`
16994 OSINFO="\"$OSINFO\""
16995fi
16996
16997cat >> confdefs.h <<EOF
16998#define WXWIN_OS_DESCRIPTION $OSINFO
16999EOF
17000
17001
17002
17003GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17004OPENGL_LIBS="$OPENGL_LINK"
17005
17006EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17007if test "$USE_MAC" = 1 ; then
17008 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17009fi
17010if test "$wxUSE_GUI" = "yes"; then
17011 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17012fi
17013
17014LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17015
17016INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17017
17018if test "$wxUSE_GTK" = 1; then
17019 WXCONFIG_INCLUDE=""
17020else
17021 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17022fi
17023
17024if test "$GXX" = yes ; then
17025 CXXWARNINGS="-Wall"
17026 fi
17027EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17028
17029CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17030CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17031
17032LDFLAGS="$LDFLAGS $PROFILE"
17033
17034if test "$wxUSE_GUI" = "yes"; then
17035
17036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
17037 drawing dynamic event font fractal image \
17038 minimal richedit widgets"
17039
17040 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17042 fi
17043
17044 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17045else
17046 SAMPLES_SUBDIRS=""
17047fi
17048
17049SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17145echo "configure:17146: checking whether ${MAKE-make} sets \${MAKE}" >&5
17146set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17147if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17148 echo $ac_n "(cached) $ac_c" 1>&6
17149else
17150 cat > conftestmake <<\EOF
17151all:
17152 @echo 'ac_maketemp="${MAKE}"'
17153EOF
17154# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17155eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17156if test -n "$ac_maketemp"; then
17157 eval ac_cv_prog_make_${ac_make}_set=yes
17158else
17159 eval ac_cv_prog_make_${ac_make}_set=no
17160fi
17161rm -f conftestmake
17162fi
17163if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17164 echo "$ac_t""yes" 1>&6
17165 SET_MAKE=
17166else
17167 echo "$ac_t""no" 1>&6
17168 SET_MAKE="MAKE=${MAKE-make}"
17169fi
17170
17171
17172if test -d include; then
17173 if test -d include/wx; then
17174 if test -d include/wx/${SETUPH_DIR}; then
17175 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17176 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17177 fi
17178 fi
17179 fi
17180fi
17181
17182
17183
17184if test "$wxUSE_GUI" = "yes"; then
17185 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17186 wx_cv_path_ifs=$PATH_IFS
17187 wx_cv_program_ext=$PROGRAM_EXT
17188 wx_cv_target_library=$WX_TARGET_LIBRARY
17189 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17190 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17191 wx_cv_target_library wx_cv_target_libtype
17192 subdirs="demos samples utils contrib"
17193
17194fi
17195
17196trap '' 1 2 15
17197cat > confcache <<\EOF
17198# This file is a shell script that caches the results of configure
17199# tests run on this system so they can be shared between configure
17200# scripts and configure runs. It is not useful on other systems.
17201# If it contains results you don't want to keep, you may remove or edit it.
17202#
17203# By default, configure uses ./config.cache as the cache file,
17204# creating it if it does not exist already. You can give configure
17205# the --cache-file=FILE option to use a different cache file; that is
17206# what configure does when it calls configure scripts in
17207# subdirectories, so they share the cache.
17208# Giving --cache-file=/dev/null disables caching, for debugging configure.
17209# config.status only pays attention to the cache file if you give it the
17210# --recheck option to rerun configure.
17211#
17212EOF
17213# The following way of writing the cache mishandles newlines in values,
17214# but we know of no workaround that is simple, portable, and efficient.
17215# So, don't put newlines in cache variables' values.
17216# Ultrix sh set writes to stderr and can't be redirected directly,
17217# and sets the high bit in the cache file unless we assign to the vars.
17218(set) 2>&1 |
17219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17220 *ac_space=\ *)
17221 # `set' does not quote correctly, so add quotes (double-quote substitution
17222 # turns \\\\ into \\, and sed turns \\ into \).
17223 sed -n \
17224 -e "s/'/'\\\\''/g" \
17225 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17226 ;;
17227 *)
17228 # `set' quotes correctly as required by POSIX, so do not add quotes.
17229 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17230 ;;
17231 esac >> confcache
17232if cmp -s $cache_file confcache; then
17233 :
17234else
17235 if test -w $cache_file; then
17236 echo "updating cache $cache_file"
17237 cat confcache > $cache_file
17238 else
17239 echo "not updating unwritable cache $cache_file"
17240 fi
17241fi
17242rm -f confcache
17243
17244trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17245
17246test "x$prefix" = xNONE && prefix=$ac_default_prefix
17247# Let make expand exec_prefix.
17248test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17249
17250# Any assignment to VPATH causes Sun make to only execute
17251# the first set of double-colon rules, so remove it if not needed.
17252# If there is a colon in the path, we need to keep it.
17253if test "x$srcdir" = x.; then
17254 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17255fi
17256
17257trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17258
17259DEFS=-DHAVE_CONFIG_H
17260
17261# Without the "./", some shells look in PATH for config.status.
17262: ${CONFIG_STATUS=./config.status}
17263
17264echo creating $CONFIG_STATUS
17265rm -f $CONFIG_STATUS
17266cat > $CONFIG_STATUS <<EOF
17267#! /bin/sh
17268# Generated automatically by configure.
17269# Run this file to recreate the current configuration.
17270# This directory was configured as follows,
17271# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17272#
17273# $0 $ac_configure_args
17274#
17275# Compiler output produced by configure, useful for debugging
17276# configure, is in ./config.log if it exists.
17277
17278ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17279for ac_option
17280do
17281 case "\$ac_option" in
17282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17283 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17284 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17285 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17286 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17287 exit 0 ;;
17288 -help | --help | --hel | --he | --h)
17289 echo "\$ac_cs_usage"; exit 0 ;;
17290 *) echo "\$ac_cs_usage"; exit 1 ;;
17291 esac
17292done
17293
17294ac_given_srcdir=$srcdir
17295ac_given_INSTALL="$INSTALL"
17296
17297trap 'rm -fr `echo "
17298 wx-config
17299 src/make.env
17300 src/makeprog.env
17301 src/makelib.env
17302 Makefile
17303 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17304EOF
17305cat >> $CONFIG_STATUS <<EOF
17306
17307# Protect against being on the right side of a sed subst in config.status.
17308sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17309 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17310$ac_vpsub
17311$extrasub
17312s%@SHELL@%$SHELL%g
17313s%@CFLAGS@%$CFLAGS%g
17314s%@CPPFLAGS@%$CPPFLAGS%g
17315s%@CXXFLAGS@%$CXXFLAGS%g
17316s%@FFLAGS@%$FFLAGS%g
17317s%@DEFS@%$DEFS%g
17318s%@LDFLAGS@%$LDFLAGS%g
17319s%@LIBS@%$LIBS%g
17320s%@exec_prefix@%$exec_prefix%g
17321s%@prefix@%$prefix%g
17322s%@program_transform_name@%$program_transform_name%g
17323s%@bindir@%$bindir%g
17324s%@sbindir@%$sbindir%g
17325s%@libexecdir@%$libexecdir%g
17326s%@datadir@%$datadir%g
17327s%@sysconfdir@%$sysconfdir%g
17328s%@sharedstatedir@%$sharedstatedir%g
17329s%@localstatedir@%$localstatedir%g
17330s%@libdir@%$libdir%g
17331s%@includedir@%$includedir%g
17332s%@oldincludedir@%$oldincludedir%g
17333s%@infodir@%$infodir%g
17334s%@mandir@%$mandir%g
17335s%@host@%$host%g
17336s%@host_alias@%$host_alias%g
17337s%@host_cpu@%$host_cpu%g
17338s%@host_vendor@%$host_vendor%g
17339s%@host_os@%$host_os%g
17340s%@target@%$target%g
17341s%@target_alias@%$target_alias%g
17342s%@target_cpu@%$target_cpu%g
17343s%@target_vendor@%$target_vendor%g
17344s%@target_os@%$target_os%g
17345s%@build@%$build%g
17346s%@build_alias@%$build_alias%g
17347s%@build_cpu@%$build_cpu%g
17348s%@build_vendor@%$build_vendor%g
17349s%@build_os@%$build_os%g
17350s%@CC@%$CC%g
17351s%@CPP@%$CPP%g
17352s%@CXX@%$CXX%g
17353s%@CXXCPP@%$CXXCPP%g
17354s%@RANLIB@%$RANLIB%g
17355s%@AR@%$AR%g
17356s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17357s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17358s%@INSTALL_DATA@%$INSTALL_DATA%g
17359s%@STRIP@%$STRIP%g
17360s%@YACC@%$YACC%g
17361s%@LEX@%$LEX%g
17362s%@LEXLIB@%$LEXLIB%g
17363s%@LN_S@%$LN_S%g
17364s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
17365s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17366s%@GTK_LIBS@%$GTK_LIBS%g
17367s%@GTK_CONFIG@%$GTK_CONFIG%g
17368s%@X_CFLAGS@%$X_CFLAGS%g
17369s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17370s%@X_LIBS@%$X_LIBS%g
17371s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17372s%@REZ@%$REZ%g
17373s%@DEREZ@%$DEREZ%g
17374s%@LEX_STEM@%$LEX_STEM%g
17375s%@PATH_IFS@%$PATH_IFS%g
17376s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17377s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17378s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17379s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17380s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17381s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17382s%@WX_LIBRARY@%$WX_LIBRARY%g
17383s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17384s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17385s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17386s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17387s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17388s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17389s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17390s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17391s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17392s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17393s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17394s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17395s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17396s%@WX_ALL@%$WX_ALL%g
17397s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17398s%@SHARED_LD@%$SHARED_LD%g
17399s%@PIC_FLAG@%$PIC_FLAG%g
17400s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17401s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17402s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17403s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17404s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17405s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17406s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17407s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17408s%@USE_GUI@%$USE_GUI%g
17409s%@AFMINSTALL@%$AFMINSTALL%g
17410s%@SETUPH_DIR@%$SETUPH_DIR%g
17411s%@TOOLKIT@%$TOOLKIT%g
17412s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17413s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17414s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17415s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
17416s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
17417s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17418s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17419s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17420s%@GUIDIST@%$GUIDIST%g
17421s%@PORT_FILES@%$PORT_FILES%g
17422s%@DISTDIR@%$DISTDIR%g
17423s%@RPM_SPEC@%$RPM_SPEC%g
17424s%@RPM_FILES@%$RPM_FILES%g
17425s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17426s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17427s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17428s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17429s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17430s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17431s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17432s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17433s%@EXTRADEFS@%$EXTRADEFS%g
17434s%@LD_LIBS@%$LD_LIBS%g
17435s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17436s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17437s%@RESPROGRAM@%$RESPROGRAM%g
17438s%@RESCOMP@%$RESCOMP%g
17439s%@RESFLAGS@%$RESFLAGS%g
17440s%@REZFLAGS@%$REZFLAGS%g
17441s%@DEREZFLAGS@%$DEREZFLAGS%g
17442s%@LIBWXMACRES@%$LIBWXMACRES%g
17443s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17444s%@DLLTOOL@%$DLLTOOL%g
17445s%@AS@%$AS%g
17446s%@NM@%$NM%g
17447s%@LD@%$LD%g
17448s%@MAKEINFO@%$MAKEINFO%g
17449s%@SET_MAKE@%$SET_MAKE%g
17450s%@subdirs@%$subdirs%g
17451
17452CEOF
17453EOF
17454
17455cat >> $CONFIG_STATUS <<\EOF
17456
17457# Split the substitutions into bite-sized pieces for seds with
17458# small command number limits, like on Digital OSF/1 and HP-UX.
17459ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17460ac_file=1 # Number of current file.
17461ac_beg=1 # First line for current file.
17462ac_end=$ac_max_sed_cmds # Line after last line for current file.
17463ac_more_lines=:
17464ac_sed_cmds=""
17465while $ac_more_lines; do
17466 if test $ac_beg -gt 1; then
17467 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17468 else
17469 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17470 fi
17471 if test ! -s conftest.s$ac_file; then
17472 ac_more_lines=false
17473 rm -f conftest.s$ac_file
17474 else
17475 if test -z "$ac_sed_cmds"; then
17476 ac_sed_cmds="sed -f conftest.s$ac_file"
17477 else
17478 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17479 fi
17480 ac_file=`expr $ac_file + 1`
17481 ac_beg=$ac_end
17482 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17483 fi
17484done
17485if test -z "$ac_sed_cmds"; then
17486 ac_sed_cmds=cat
17487fi
17488EOF
17489
17490cat >> $CONFIG_STATUS <<EOF
17491
17492CONFIG_FILES=\${CONFIG_FILES-"wx-config
17493 src/make.env
17494 src/makeprog.env
17495 src/makelib.env
17496 Makefile
17497 "}
17498EOF
17499cat >> $CONFIG_STATUS <<\EOF
17500for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17502 case "$ac_file" in
17503 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17504 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17505 *) ac_file_in="${ac_file}.in" ;;
17506 esac
17507
17508 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17509
17510 # Remove last slash and all that follows it. Not all systems have dirname.
17511 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17512 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17513 # The file is in a subdirectory.
17514 test ! -d "$ac_dir" && mkdir "$ac_dir"
17515 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17516 # A "../" for each directory in $ac_dir_suffix.
17517 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17518 else
17519 ac_dir_suffix= ac_dots=
17520 fi
17521
17522 case "$ac_given_srcdir" in
17523 .) srcdir=.
17524 if test -z "$ac_dots"; then top_srcdir=.
17525 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17526 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17527 *) # Relative path.
17528 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17529 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17530 esac
17531
17532 case "$ac_given_INSTALL" in
17533 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17534 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17535 esac
17536
17537 echo creating "$ac_file"
17538 rm -f "$ac_file"
17539 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17540 case "$ac_file" in
17541 *Makefile*) ac_comsub="1i\\
17542# $configure_input" ;;
17543 *) ac_comsub= ;;
17544 esac
17545
17546 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17547 sed -e "$ac_comsub
17548s%@configure_input@%$configure_input%g
17549s%@srcdir@%$srcdir%g
17550s%@top_srcdir@%$top_srcdir%g
17551s%@INSTALL@%$INSTALL%g
17552" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17553fi; done
17554rm -f conftest.s*
17555
17556# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17557# NAME is the cpp macro being defined and VALUE is the value it is being given.
17558#
17559# ac_d sets the value in "#define NAME VALUE" lines.
17560ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17561ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17562ac_dC='\3'
17563ac_dD='%g'
17564# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17565ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17566ac_uB='\([ ]\)%\1#\2define\3'
17567ac_uC=' '
17568ac_uD='\4%g'
17569# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17570ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17571ac_eB='$%\1#\2define\3'
17572ac_eC=' '
17573ac_eD='%g'
17574
17575if test "${CONFIG_HEADERS+set}" != set; then
17576EOF
17577cat >> $CONFIG_STATUS <<EOF
17578 CONFIG_HEADERS="setup.h:setup.h.in"
17579EOF
17580cat >> $CONFIG_STATUS <<\EOF
17581fi
17582for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17584 case "$ac_file" in
17585 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17586 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17587 *) ac_file_in="${ac_file}.in" ;;
17588 esac
17589
17590 echo creating $ac_file
17591
17592 rm -f conftest.frag conftest.in conftest.out
17593 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17594 cat $ac_file_inputs > conftest.in
17595
17596EOF
17597
17598# Transform confdefs.h into a sed script conftest.vals that substitutes
17599# the proper values into config.h.in to produce config.h. And first:
17600# Protect against being on the right side of a sed subst in config.status.
17601# Protect against being in an unquoted here document in config.status.
17602rm -f conftest.vals
17603cat > conftest.hdr <<\EOF
17604s/[\\&%]/\\&/g
17605s%[\\$`]%\\&%g
17606s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17607s%ac_d%ac_u%gp
17608s%ac_u%ac_e%gp
17609EOF
17610sed -n -f conftest.hdr confdefs.h > conftest.vals
17611rm -f conftest.hdr
17612
17613# This sed command replaces #undef with comments. This is necessary, for
17614# example, in the case of _POSIX_SOURCE, which is predefined and required
17615# on some systems where configure will not decide to define it.
17616cat >> conftest.vals <<\EOF
17617s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17618EOF
17619
17620# Break up conftest.vals because some shells have a limit on
17621# the size of here documents, and old seds have small limits too.
17622
17623rm -f conftest.tail
17624while :
17625do
17626 ac_lines=`grep -c . conftest.vals`
17627 # grep -c gives empty output for an empty file on some AIX systems.
17628 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17629 # Write a limited-size here document to conftest.frag.
17630 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17631 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17632 echo 'CEOF
17633 sed -f conftest.frag conftest.in > conftest.out
17634 rm -f conftest.in
17635 mv conftest.out conftest.in
17636' >> $CONFIG_STATUS
17637 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17638 rm -f conftest.vals
17639 mv conftest.tail conftest.vals
17640done
17641rm -f conftest.vals
17642
17643cat >> $CONFIG_STATUS <<\EOF
17644 rm -f conftest.frag conftest.h
17645 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17646 cat conftest.in >> conftest.h
17647 rm -f conftest.in
17648 if cmp -s $ac_file conftest.h 2>/dev/null; then
17649 echo "$ac_file is unchanged"
17650 rm -f conftest.h
17651 else
17652 # Remove last slash and all that follows it. Not all systems have dirname.
17653 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17654 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17655 # The file is in a subdirectory.
17656 test ! -d "$ac_dir" && mkdir "$ac_dir"
17657 fi
17658 rm -f $ac_file
17659 mv conftest.h $ac_file
17660 fi
17661fi; done
17662
17663EOF
17664cat >> $CONFIG_STATUS <<EOF
17665
17666 SETUPH_DIR="${SETUPH_DIR}"
17667 TOOLKIT_NAME="${TOOLKIT_NAME}"
17668 LN_S="${LN_S}"
17669
17670
17671EOF
17672cat >> $CONFIG_STATUS <<\EOF
17673
17674 if test ! -f wx${TOOLKIT_NAME}-config; then
17675 chmod +x wx-config
17676 mv wx-config wx${TOOLKIT_NAME}-config
17677 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17678 fi
17679
17680
17681 if test ! -d lib; then
17682 mkdir lib
17683 fi
17684 if test ! -d lib/wx; then
17685 mkdir lib/wx
17686 fi
17687 if test ! -d lib/wx/include; then
17688 mkdir lib/wx/include
17689 fi
17690 if test ! -d lib/wx/include/wx; then
17691 mkdir lib/wx/include/wx
17692 fi
17693 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17694 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
17695 fi
17696 if test -f setup.h; then
17697 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
17698 fi
17699
17700
17701 if test ! -d include; then
17702 mkdir include
17703 fi
17704 if test ! -d include/wx; then
17705 mkdir include/wx
17706 fi
17707 if test ! -d include/wx/${SETUPH_DIR}; then
17708 mkdir include/wx/${SETUPH_DIR}
17709 fi
17710 if test -f setup.h; then
17711 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
17712 fi
17713
17714
17715exit 0
17716EOF
17717chmod +x $CONFIG_STATUS
17718rm -fr confdefs* $ac_clean_files
17719test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17720
17721if test "$no_recursion" != yes; then
17722
17723 # Remove --cache-file and --srcdir arguments so they do not pile up.
17724 ac_sub_configure_args=
17725 ac_prev=
17726 for ac_arg in $ac_configure_args; do
17727 if test -n "$ac_prev"; then
17728 ac_prev=
17729 continue
17730 fi
17731 case "$ac_arg" in
17732 -cache-file | --cache-file | --cache-fil | --cache-fi \
17733 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17734 ac_prev=cache_file ;;
17735 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17736 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
17737 ;;
17738 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17739 ac_prev=srcdir ;;
17740 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17741 ;;
17742 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17743 esac
17744 done
17745
17746 for ac_config_dir in demos samples utils contrib; do
17747
17748 # Do not complain, so a configure script can configure whichever
17749 # parts of a large source tree are present.
17750 if test ! -d $srcdir/$ac_config_dir; then
17751 continue
17752 fi
17753
17754 echo configuring in $ac_config_dir
17755
17756 case "$srcdir" in
17757 .) ;;
17758 *)
17759 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17760 else
17761 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17762 fi
17763 ;;
17764 esac
17765
17766 ac_popdir=`pwd`
17767 cd $ac_config_dir
17768
17769 # A "../" for each directory in /$ac_config_dir.
17770 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
17771
17772 case "$srcdir" in
17773 .) # No --srcdir option. We are building in place.
17774 ac_sub_srcdir=$srcdir ;;
17775 /*) # Absolute path.
17776 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
17777 *) # Relative path.
17778 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
17779 esac
17780
17781 # Check for guested configure; otherwise get Cygnus style configure.
17782 if test -f $ac_sub_srcdir/configure; then
17783 ac_sub_configure=$ac_sub_srcdir/configure
17784 elif test -f $ac_sub_srcdir/configure.in; then
17785 ac_sub_configure=$ac_configure
17786 else
17787 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
17788 ac_sub_configure=
17789 fi
17790
17791 # The recursion is here.
17792 if test -n "$ac_sub_configure"; then
17793
17794 # Make the cache file name correct relative to the subdirectory.
17795 case "$cache_file" in
17796 /*) ac_sub_cache_file=$cache_file ;;
17797 *) # Relative path.
17798 ac_sub_cache_file="$ac_dots$cache_file" ;;
17799 esac
17800 case "$ac_given_INSTALL" in
17801 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17802 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17803 esac
17804
17805 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
17806 # The eval makes quoting arguments work.
17807 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
17808 then :
17809 else
17810 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
17811 fi
17812 fi
17813
17814 cd $ac_popdir
17815 done
17816fi
17817
17818