]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
oops, last check in undone - there is a problem somewhere there...
[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-regex enable support for wxRegEx class"
94ac_help="$ac_help
95 --with-zlib use zlib for LZW compression"
96ac_help="$ac_help
97 --with-odbc use the IODBC and wxODBC classes"
98ac_help="$ac_help
99 --enable-shared create shared library code"
100ac_help="$ac_help
101 --enable-burnt_name create set name in shared library "
102ac_help="$ac_help
103 --enable-optimise create optimised code"
104ac_help="$ac_help
105 --enable-debug same as debug_flag and debug_info"
106ac_help="$ac_help
107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
108ac_help="$ac_help
109 --enable-debug_info create code with debugging information"
110ac_help="$ac_help
111 --enable-debug_gdb create code with extra GDB debugging information"
112ac_help="$ac_help
113 --enable-debug_cntxt use wxDebugContext"
114ac_help="$ac_help
115 --enable-mem_tracing create code with memory tracing"
116ac_help="$ac_help
117 --enable-profile create code with profiling information"
118ac_help="$ac_help
119 --enable-no_rtti create code without RTTI information"
120ac_help="$ac_help
121 --enable-no_exceptions create code without exceptions information"
122ac_help="$ac_help
123 --enable-permissive compile code disregarding strict ANSI"
124ac_help="$ac_help
125 --enable-no_deps create code without dependency information"
126ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
130ac_help="$ac_help
131 --enable-intl use internationalization system"
132ac_help="$ac_help
133 --enable-config use wxConfig (and derived) classes"
134ac_help="$ac_help
135 --enable-sockets use socket/network classes"
136ac_help="$ac_help
137 --enable-ipc use interprocess communication (wxSocket etc.)"
138ac_help="$ac_help
139 --enable-cmdline use wxCmdLineParser class"
140ac_help="$ac_help
141 --enable-datetime use wxDateTime class"
142ac_help="$ac_help
143 --enable-timedate use obsolete wxDate/wxTime classes"
144ac_help="$ac_help
145 --enable-stopwatch use wxStopWatch class"
146ac_help="$ac_help
147 --enable-dialupman use dialup network classes"
148ac_help="$ac_help
149 --enable-apple_ieee use the Apple IEEE codec"
150ac_help="$ac_help
151 --enable-timer use wxTimer class"
152ac_help="$ac_help
153 --enable-wave use wxWave class"
154ac_help="$ac_help
155 --enable-fraction use wxFraction class"
156ac_help="$ac_help
157 --enable-dynlib use wxLibrary class for DLL loading"
158ac_help="$ac_help
159 --enable-longlong use wxLongLong class"
160ac_help="$ac_help
161 --enable-geometry use geometry class"
162ac_help="$ac_help
163 --enable-log use logging system"
164ac_help="$ac_help
165 --enable-streams use wxStream etc classes"
166ac_help="$ac_help
167 --enable-file use wxFile classes"
168ac_help="$ac_help
169 --enable-ffile use wxFFile classes"
170ac_help="$ac_help
171 --enable-textfile use wxTextFile classes"
172ac_help="$ac_help
173 --enable-fontmap use font encodings conversion classes"
174ac_help="$ac_help
175 --enable-unicode compile wxString with Unicode support"
176ac_help="$ac_help
177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
178ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194ac_help="$ac_help
195 --enable-mimetypes use wxMimeTypesManager"
196ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198ac_help="$ac_help
199 --enable-threads use threads"
200ac_help="$ac_help
201 --enable-serial use class serialization"
202ac_help="$ac_help
203 --enable-docview use document view architecture"
204ac_help="$ac_help
205 --enable-help use help subsystem"
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214ac_help="$ac_help
215 --enable-printarch use printing architecture"
216ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222ac_help="$ac_help
223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
224ac_help="$ac_help
225 --enable-prologio use Prolog IO library"
226ac_help="$ac_help
227 --enable-resources use wxWindows resources"
228ac_help="$ac_help
229 --enable-xresources use X resources for save (default for gtk+)"
230ac_help="$ac_help
231 --enable-clipboard use wxClipboard classes"
232ac_help="$ac_help
233 --enable-dnd use Drag'n'Drop classes"
234ac_help="$ac_help
235 --enable-metafile use win32 metafiles"
236ac_help="$ac_help
237 --enable-treelayout use wxTreeLayout classes"
238ac_help="$ac_help
239 --enable-controls use all usual controls"
240ac_help="$ac_help
241 --enable-accel use accelerators"
242ac_help="$ac_help
243 --enable-button use wxButton class"
244ac_help="$ac_help
245 --enable-bmpbutton use wxBitmapButton class"
246ac_help="$ac_help
247 --enable-calendar use wxCalendarCtrl class"
248ac_help="$ac_help
249 --enable-caret use wxCaret class"
250ac_help="$ac_help
251 --enable-checkbox use wxCheckBox class"
252ac_help="$ac_help
253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
254ac_help="$ac_help
255 --enable-choice use wxChoice class"
256ac_help="$ac_help
257 --enable-combobox use wxComboBox classes"
258ac_help="$ac_help
259 --enable-gauge use wxGauge class"
260ac_help="$ac_help
261 --enable-grid use wxGrid class"
262ac_help="$ac_help
263 --enable-newgrid use new wxGrid class"
264ac_help="$ac_help
265 --enable-imaglist use wxImageList class"
266ac_help="$ac_help
267 --enable-listbox use wxListBox class"
268ac_help="$ac_help
269 --enable-listctrl use wxListCtrl class"
270ac_help="$ac_help
271 --enable-notebook use wxNotebook class"
272ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
274ac_help="$ac_help
275 --enable-radiobox use wxRadioBox class"
276ac_help="$ac_help
277 --enable-radiobtn use wxRadioButton class"
278ac_help="$ac_help
279 --enable-sash use wxSashWindow class"
280ac_help="$ac_help
281 --enable-scrollbar use wxScrollBar class and scrollable windows"
282ac_help="$ac_help
283 --enable-slider use wxSlider class"
284ac_help="$ac_help
285 --enable-spinbtn use wxSpinButton class"
286ac_help="$ac_help
287 --enable-spinctrl use wxSpinCtrl class"
288ac_help="$ac_help
289 --enable-splitter use wxSplitterWindow class"
290ac_help="$ac_help
291 --enable-statbmp use wxStaticBitmap class"
292ac_help="$ac_help
293 --enable-statbox use wxStaticBox class"
294ac_help="$ac_help
295 --enable-statline use wxStaticLine class"
296ac_help="$ac_help
297 --enable-stattext use wxStaticText class"
298ac_help="$ac_help
299 --enable-statusbar use wxStatusBar class"
300ac_help="$ac_help
301 --enable-tabdialog use wxTabControl class"
302ac_help="$ac_help
303 --enable-textctrl use wxTextCtrl class"
304ac_help="$ac_help
305 --enable-togglebtn use wxToggleButton class"
306ac_help="$ac_help
307 --enable-toolbar use wxToolBar class"
308ac_help="$ac_help
309 --enable-tbarnative use native wxToolBar class"
310ac_help="$ac_help
311 --enable-tbarsmpl use wxToolBarSimple class"
312ac_help="$ac_help
313 --enable-treectrl use wxTreeCtrl class"
314ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
316ac_help="$ac_help
317 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
318ac_help="$ac_help
319 --enable-choicedlg use wxChoiceDialog"
320ac_help="$ac_help
321 --enable-coldlg use wxColourDialog"
322ac_help="$ac_help
323 --enable-filedlg use wxFileDialog"
324ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
326ac_help="$ac_help
327 --enable-fontdlg use wxFontDialog"
328ac_help="$ac_help
329 --enable-dirdlg use wxDirDialog"
330ac_help="$ac_help
331 --enable-msgdlg use wxMessageDialog"
332ac_help="$ac_help
333 --enable-numberdlg use wxNumberEntryDialog"
334ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
336ac_help="$ac_help
337 --enable-textdlg use wxTextDialog"
338ac_help="$ac_help
339 --enable-tipdlg use startup tips"
340ac_help="$ac_help
341 --enable-progressdlg use wxProgressDialog"
342ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
344ac_help="$ac_help
345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
346ac_help="$ac_help
347 --enable-miniframe use wxMiniFrame class"
348ac_help="$ac_help
349 --enable-tooltips use wxToolTip class"
350ac_help="$ac_help
351 --enable-splines use spline drawing code"
352ac_help="$ac_help
353 --enable-validators use wxValidator and derived classes"
354ac_help="$ac_help
355 --enable-busyinfo use wxBusyInfo"
356ac_help="$ac_help
357 --enable-joystick compile in joystick support (Linux only)"
358ac_help="$ac_help
359 --enable-metafiles use wxMetaFile (Windows only)"
360ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
362ac_help="$ac_help
363 --enable-image use wxImage class"
364ac_help="$ac_help
365 --enable-gif use gif images (GIF file format)"
366ac_help="$ac_help
367 --enable-pcx use pcx images (PCX file format)"
368ac_help="$ac_help
369 --enable-pnm use pnm images (PNM file format)"
370ac_help="$ac_help
371 --enable-xpm use xpm images (XPM file format)"
372ac_help="$ac_help
373 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
374ac_help="$ac_help
375 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
376ac_help="$ac_help
377 --disable-gtktest Do not try to compile and run a test GTK program"
378ac_help="$ac_help
379 --with-x use the X Window System"
380
381# Initialize some variables set by options.
382# The variables have the same names as the options, with
383# dashes changed to underlines.
384build=NONE
385cache_file=./config.cache
386exec_prefix=NONE
387host=NONE
388no_create=
389nonopt=NONE
390no_recursion=
391prefix=NONE
392program_prefix=NONE
393program_suffix=NONE
394program_transform_name=s,x,x,
395silent=
396site=
397srcdir=
398target=NONE
399verbose=
400x_includes=NONE
401x_libraries=NONE
402bindir='${exec_prefix}/bin'
403sbindir='${exec_prefix}/sbin'
404libexecdir='${exec_prefix}/libexec'
405datadir='${prefix}/share'
406sysconfdir='${prefix}/etc'
407sharedstatedir='${prefix}/com'
408localstatedir='${prefix}/var'
409libdir='${exec_prefix}/lib'
410includedir='${prefix}/include'
411oldincludedir='/usr/include'
412infodir='${prefix}/info'
413mandir='${prefix}/man'
414
415# Initialize some other variables.
416subdirs=
417MFLAGS= MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419# Maximum number of lines to put in a shell here document.
420ac_max_here_lines=12
421
422ac_prev=
423for ac_option
424do
425
426 # If the previous option needs an argument, assign it.
427 if test -n "$ac_prev"; then
428 eval "$ac_prev=\$ac_option"
429 ac_prev=
430 continue
431 fi
432
433 case "$ac_option" in
434 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
435 *) ac_optarg= ;;
436 esac
437
438 # Accept the important Cygnus configure options, so we can diagnose typos.
439
440 case "$ac_option" in
441
442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
443 ac_prev=bindir ;;
444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
445 bindir="$ac_optarg" ;;
446
447 -build | --build | --buil | --bui | --bu)
448 ac_prev=build ;;
449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
450 build="$ac_optarg" ;;
451
452 -cache-file | --cache-file | --cache-fil | --cache-fi \
453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
454 ac_prev=cache_file ;;
455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
457 cache_file="$ac_optarg" ;;
458
459 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
460 ac_prev=datadir ;;
461 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
462 | --da=*)
463 datadir="$ac_optarg" ;;
464
465 -disable-* | --disable-*)
466 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
467 # Reject names that are not valid shell variable names.
468 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
469 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
470 fi
471 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
472 eval "enable_${ac_feature}=no" ;;
473
474 -enable-* | --enable-*)
475 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
476 # Reject names that are not valid shell variable names.
477 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
479 fi
480 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
483 *) ac_optarg=yes ;;
484 esac
485 eval "enable_${ac_feature}='$ac_optarg'" ;;
486
487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
489 | --exec | --exe | --ex)
490 ac_prev=exec_prefix ;;
491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
493 | --exec=* | --exe=* | --ex=*)
494 exec_prefix="$ac_optarg" ;;
495
496 -gas | --gas | --ga | --g)
497 # Obsolete; use --with-gas.
498 with_gas=yes ;;
499
500 -help | --help | --hel | --he)
501 # Omit some internal or obsolete options to make the list less imposing.
502 # This message is too long to be a string in the A/UX 3.1 sh.
503 cat << EOF
504Usage: configure [options] [host]
505Options: [defaults in brackets after descriptions]
506Configuration:
507 --cache-file=FILE cache test results in FILE
508 --help print this message
509 --no-create do not create output files
510 --quiet, --silent do not print \`checking...' messages
511 --version print the version of autoconf that created configure
512Directory and file names:
513 --prefix=PREFIX install architecture-independent files in PREFIX
514 [$ac_default_prefix]
515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
516 [same as prefix]
517 --bindir=DIR user executables in DIR [EPREFIX/bin]
518 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
519 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
520 --datadir=DIR read-only architecture-independent data in DIR
521 [PREFIX/share]
522 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
523 --sharedstatedir=DIR modifiable architecture-independent data in DIR
524 [PREFIX/com]
525 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
526 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
527 --includedir=DIR C header files in DIR [PREFIX/include]
528 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
529 --infodir=DIR info documentation in DIR [PREFIX/info]
530 --mandir=DIR man documentation in DIR [PREFIX/man]
531 --srcdir=DIR find the sources in DIR [configure dir or ..]
532 --program-prefix=PREFIX prepend PREFIX to installed program names
533 --program-suffix=SUFFIX append SUFFIX to installed program names
534 --program-transform-name=PROGRAM
535 run sed PROGRAM on installed program names
536EOF
537 cat << EOF
538Host type:
539 --build=BUILD configure for building on BUILD [BUILD=HOST]
540 --host=HOST configure for HOST [guessed]
541 --target=TARGET configure for TARGET [TARGET=HOST]
542Features and packages:
543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
547 --x-includes=DIR X include files are in DIR
548 --x-libraries=DIR X library files are in DIR
549EOF
550 if test -n "$ac_help"; then
551 echo "--enable and --with options recognized:$ac_help"
552 fi
553 exit 0 ;;
554
555 -host | --host | --hos | --ho)
556 ac_prev=host ;;
557 -host=* | --host=* | --hos=* | --ho=*)
558 host="$ac_optarg" ;;
559
560 -includedir | --includedir | --includedi | --included | --include \
561 | --includ | --inclu | --incl | --inc)
562 ac_prev=includedir ;;
563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
564 | --includ=* | --inclu=* | --incl=* | --inc=*)
565 includedir="$ac_optarg" ;;
566
567 -infodir | --infodir | --infodi | --infod | --info | --inf)
568 ac_prev=infodir ;;
569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
570 infodir="$ac_optarg" ;;
571
572 -libdir | --libdir | --libdi | --libd)
573 ac_prev=libdir ;;
574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
575 libdir="$ac_optarg" ;;
576
577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
578 | --libexe | --libex | --libe)
579 ac_prev=libexecdir ;;
580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
581 | --libexe=* | --libex=* | --libe=*)
582 libexecdir="$ac_optarg" ;;
583
584 -localstatedir | --localstatedir | --localstatedi | --localstated \
585 | --localstate | --localstat | --localsta | --localst \
586 | --locals | --local | --loca | --loc | --lo)
587 ac_prev=localstatedir ;;
588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
589 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
590 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
591 localstatedir="$ac_optarg" ;;
592
593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
594 ac_prev=mandir ;;
595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
596 mandir="$ac_optarg" ;;
597
598 -nfp | --nfp | --nf)
599 # Obsolete; use --without-fp.
600 with_fp=no ;;
601
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c)
604 no_create=yes ;;
605
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
608 no_recursion=yes ;;
609
610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
612 | --oldin | --oldi | --old | --ol | --o)
613 ac_prev=oldincludedir ;;
614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
617 oldincludedir="$ac_optarg" ;;
618
619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
620 ac_prev=prefix ;;
621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
622 prefix="$ac_optarg" ;;
623
624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
625 | --program-pre | --program-pr | --program-p)
626 ac_prev=program_prefix ;;
627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
629 program_prefix="$ac_optarg" ;;
630
631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
632 | --program-suf | --program-su | --program-s)
633 ac_prev=program_suffix ;;
634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
636 program_suffix="$ac_optarg" ;;
637
638 -program-transform-name | --program-transform-name \
639 | --program-transform-nam | --program-transform-na \
640 | --program-transform-n | --program-transform- \
641 | --program-transform | --program-transfor \
642 | --program-transfo | --program-transf \
643 | --program-trans | --program-tran \
644 | --progr-tra | --program-tr | --program-t)
645 ac_prev=program_transform_name ;;
646 -program-transform-name=* | --program-transform-name=* \
647 | --program-transform-nam=* | --program-transform-na=* \
648 | --program-transform-n=* | --program-transform-=* \
649 | --program-transform=* | --program-transfor=* \
650 | --program-transfo=* | --program-transf=* \
651 | --program-trans=* | --program-tran=* \
652 | --progr-tra=* | --program-tr=* | --program-t=*)
653 program_transform_name="$ac_optarg" ;;
654
655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
656 | -silent | --silent | --silen | --sile | --sil)
657 silent=yes ;;
658
659 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
660 ac_prev=sbindir ;;
661 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
662 | --sbi=* | --sb=*)
663 sbindir="$ac_optarg" ;;
664
665 -sharedstatedir | --sharedstatedir | --sharedstatedi \
666 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
667 | --sharedst | --shareds | --shared | --share | --shar \
668 | --sha | --sh)
669 ac_prev=sharedstatedir ;;
670 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
671 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
672 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
673 | --sha=* | --sh=*)
674 sharedstatedir="$ac_optarg" ;;
675
676 -site | --site | --sit)
677 ac_prev=site ;;
678 -site=* | --site=* | --sit=*)
679 site="$ac_optarg" ;;
680
681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
682 ac_prev=srcdir ;;
683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
684 srcdir="$ac_optarg" ;;
685
686 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
687 | --syscon | --sysco | --sysc | --sys | --sy)
688 ac_prev=sysconfdir ;;
689 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
690 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
691 sysconfdir="$ac_optarg" ;;
692
693 -target | --target | --targe | --targ | --tar | --ta | --t)
694 ac_prev=target ;;
695 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
696 target="$ac_optarg" ;;
697
698 -v | -verbose | --verbose | --verbos | --verbo | --verb)
699 verbose=yes ;;
700
701 -version | --version | --versio | --versi | --vers)
702 echo "configure generated by autoconf version 2.13"
703 exit 0 ;;
704
705 -with-* | --with-*)
706 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
707 # Reject names that are not valid shell variable names.
708 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
709 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
710 fi
711 ac_package=`echo $ac_package| sed 's/-/_/g'`
712 case "$ac_option" in
713 *=*) ;;
714 *) ac_optarg=yes ;;
715 esac
716 eval "with_${ac_package}='$ac_optarg'" ;;
717
718 -without-* | --without-*)
719 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
720 # Reject names that are not valid shell variable names.
721 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
722 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
723 fi
724 ac_package=`echo $ac_package| sed 's/-/_/g'`
725 eval "with_${ac_package}=no" ;;
726
727 --x)
728 # Obsolete; use --with-x.
729 with_x=yes ;;
730
731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
732 | --x-incl | --x-inc | --x-in | --x-i)
733 ac_prev=x_includes ;;
734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
736 x_includes="$ac_optarg" ;;
737
738 -x-libraries | --x-libraries | --x-librarie | --x-librari \
739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
740 ac_prev=x_libraries ;;
741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
743 x_libraries="$ac_optarg" ;;
744
745 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
746 ;;
747
748 *)
749 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
750 echo "configure: warning: $ac_option: invalid host type" 1>&2
751 fi
752 if test "x$nonopt" != xNONE; then
753 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
754 fi
755 nonopt="$ac_option"
756 ;;
757
758 esac
759done
760
761if test -n "$ac_prev"; then
762 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
763fi
764
765trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
766
767# File descriptor usage:
768# 0 standard input
769# 1 file creation
770# 2 errors and warnings
771# 3 some systems may open it to /dev/tty
772# 4 used on the Kubota Titan
773# 6 checking for... messages and results
774# 5 compiler messages saved in config.log
775if test "$silent" = yes; then
776 exec 6>/dev/null
777else
778 exec 6>&1
779fi
780exec 5>./config.log
781
782echo "\
783This file contains any messages produced by compilers while
784running configure, to aid debugging if configure makes a mistake.
785" 1>&5
786
787# Strip out --no-create and --no-recursion so they do not pile up.
788# Also quote any args containing shell metacharacters.
789ac_configure_args=
790for ac_arg
791do
792 case "$ac_arg" in
793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
794 | --no-cr | --no-c) ;;
795 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
796 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
797 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
798 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
799 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
800 esac
801done
802
803# NLS nuisances.
804# Only set these to C if already set. These must not be set unconditionally
805# because not all systems understand e.g. LANG=C (notably SCO).
806# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
807# Non-C LC_CTYPE values break the ctype check.
808if test "${LANG+set}" = set; then LANG=C; export LANG; fi
809if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
810if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
811if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
812
813# confdefs.h avoids OS command line length limits that DEFS can exceed.
814rm -rf conftest* confdefs.h
815# AIX cpp loses on an empty file, so make sure it contains at least a newline.
816echo > confdefs.h
817
818# A filename unique to this package, relative to the directory that
819# configure is in, which we can look for to find out if srcdir is correct.
820ac_unique_file=wx-config.in
821
822# Find the source files, if location was not specified.
823if test -z "$srcdir"; then
824 ac_srcdir_defaulted=yes
825 # Try the directory containing this script, then its parent.
826 ac_prog=$0
827 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
828 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
829 srcdir=$ac_confdir
830 if test ! -r $srcdir/$ac_unique_file; then
831 srcdir=..
832 fi
833else
834 ac_srcdir_defaulted=no
835fi
836if test ! -r $srcdir/$ac_unique_file; then
837 if test "$ac_srcdir_defaulted" = yes; then
838 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
839 else
840 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
841 fi
842fi
843srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
844
845# Prefer explicitly selected file to automatically selected ones.
846if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 else
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
851 fi
852fi
853for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
855 echo "loading site script $ac_site_file"
856 . "$ac_site_file"
857 fi
858done
859
860if test -r "$cache_file"; then
861 echo "loading cache $cache_file"
862 . $cache_file
863else
864 echo "creating cache $cache_file"
865 > $cache_file
866fi
867
868ac_ext=c
869# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
870ac_cpp='$CPP $CPPFLAGS'
871ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873cross_compiling=$ac_cv_prog_cc_cross
874
875ac_exeext=
876ac_objext=o
877if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
878 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
879 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
880 ac_n= ac_c='
881' ac_t=' '
882 else
883 ac_n=-n ac_c= ac_t=
884 fi
885else
886 ac_n= ac_c='\c' ac_t=
887fi
888
889
890
891ac_aux_dir=
892for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
893 if test -f $ac_dir/install-sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install-sh -c"
896 break
897 elif test -f $ac_dir/install.sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install.sh -c"
900 break
901 fi
902done
903if test -z "$ac_aux_dir"; then
904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
905fi
906ac_config_guess=$ac_aux_dir/config.guess
907ac_config_sub=$ac_aux_dir/config.sub
908ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
909
910
911# Do some error checking and defaulting for the host and target type.
912# The inputs are:
913# configure --host=HOST --target=TARGET --build=BUILD NONOPT
914#
915# The rules are:
916# 1. You are not allowed to specify --host, --target, and nonopt at the
917# same time.
918# 2. Host defaults to nonopt.
919# 3. If nonopt is not specified, then host defaults to the current host,
920# as determined by config.guess.
921# 4. Target and build default to nonopt.
922# 5. If nonopt is not specified, then target and build default to host.
923
924# The aliases save the names the user supplied, while $host etc.
925# will get canonicalized.
926case $host---$target---$nonopt in
927NONE---*---* | *---NONE---* | *---*---NONE) ;;
928*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929esac
930
931
932# Make sure we can run config.sub.
933if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935fi
936
937echo $ac_n "checking host system type""... $ac_c" 1>&6
938echo "configure:939: checking host system type" >&5
939
940host_alias=$host
941case "$host_alias" in
942NONE)
943 case $nonopt in
944 NONE)
945 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
947 fi ;;
948 *) host_alias=$nonopt ;;
949 esac ;;
950esac
951
952host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956echo "$ac_t""$host" 1>&6
957
958echo $ac_n "checking target system type""... $ac_c" 1>&6
959echo "configure:960: checking target system type" >&5
960
961target_alias=$target
962case "$target_alias" in
963NONE)
964 case $nonopt in
965 NONE) target_alias=$host_alias ;;
966 *) target_alias=$nonopt ;;
967 esac ;;
968esac
969
970target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
971target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974echo "$ac_t""$target" 1>&6
975
976echo $ac_n "checking build system type""... $ac_c" 1>&6
977echo "configure:978: checking build system type" >&5
978
979build_alias=$build
980case "$build_alias" in
981NONE)
982 case $nonopt in
983 NONE) build_alias=$host_alias ;;
984 *) build_alias=$nonopt ;;
985 esac ;;
986esac
987
988build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992echo "$ac_t""$build" 1>&6
993
994test "$host_alias" != "$target_alias" &&
995 test "$program_prefix$program_suffix$program_transform_name" = \
996 NONENONEs,x,x, &&
997 program_prefix=${target_alias}-
998
999
1000
1001WX_MAJOR_VERSION_NUMBER=2
1002WX_MINOR_VERSION_NUMBER=3
1003WX_RELEASE_NUMBER=2
1004
1005WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1006WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1007
1008WX_CURRENT=1
1009WX_REVISION=0
1010WX_AGE=0
1011
1012
1013
1014USE_UNIX=1
1015USE_WIN32=0
1016USE_BEOS=0
1017USE_MAC=0
1018
1019USE_LINUX=
1020USE_SGI=
1021USE_HPUX=
1022USE_SYSV=
1023USE_SVR4=
1024USE_AIX=
1025USE_SUN=
1026USE_SOLARIS=
1027USE_SUNOS=
1028USE_ALPHA=
1029USE_OSF=
1030USE_BSD=
1031USE_DARWIN=
1032USE_FREEBSD=
1033USE_OPENBSD=
1034USE_NETBSD=
1035USE_VMS=
1036USE_ULTRIX=
1037USE_CYGWIN=
1038USE_MINGW=
1039USE_DATA_GENERAL=
1040
1041NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1042
1043ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1044
1045DEFAULT_wxUSE_GTK=0
1046DEFAULT_wxUSE_MAC=0
1047DEFAULT_wxUSE_MGL=0
1048DEFAULT_wxUSE_MOTIF=0
1049DEFAULT_wxUSE_MSW=0
1050DEFAULT_wxUSE_PM=0
1051DEFAULT_wxUSE_WINE=0
1052
1053DEFAULT_DEFAULT_wxUSE_GTK=0
1054DEFAULT_DEFAULT_wxUSE_MAC=0
1055DEFAULT_DEFAULT_wxUSE_MGL=0
1056DEFAULT_DEFAULT_wxUSE_MOTIF=0
1057DEFAULT_DEFAULT_wxUSE_MSW=0
1058DEFAULT_DEFAULT_wxUSE_PM=0
1059DEFAULT_DEFAULT_wxUSE_WINE=0
1060
1061PROGRAM_EXT=
1062
1063case "${host}" in
1064 *-hp-hpux* )
1065 USE_HPUX=1
1066 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1067 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1068 cat >> confdefs.h <<\EOF
1069#define __HPUX__ 1
1070EOF
1071
1072 ;;
1073 *-*-linux* )
1074 USE_LINUX=1
1075 cat >> confdefs.h <<\EOF
1076#define __LINUX__ 1
1077EOF
1078
1079 TMP=`uname -m`
1080 if test "x$TMP" = "xalpha"; then
1081 USE_ALPHA=1
1082 cat >> confdefs.h <<\EOF
1083#define __ALPHA__ 1
1084EOF
1085
1086 fi
1087 DEFAULT_DEFAULT_wxUSE_GTK=1
1088 ;;
1089 *-*-irix5* | *-*-irix6* )
1090 USE_SGI=1
1091 USE_SVR4=1
1092 cat >> confdefs.h <<\EOF
1093#define __SGI__ 1
1094EOF
1095
1096 cat >> confdefs.h <<\EOF
1097#define __SVR4__ 1
1098EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 ;;
1102 *-*-solaris2* )
1103 USE_SUN=1
1104 USE_SOLARIS=1
1105 USE_SVR4=1
1106 cat >> confdefs.h <<\EOF
1107#define __SUN__ 1
1108EOF
1109
1110 cat >> confdefs.h <<\EOF
1111#define __SOLARIS__ 1
1112EOF
1113
1114 cat >> confdefs.h <<\EOF
1115#define __SVR4__ 1
1116EOF
1117
1118 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1119 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1120 ;;
1121 *-*-sunos4* )
1122 USE_SUN=1
1123 USE_SUNOS=1
1124 USE_BSD=1
1125 cat >> confdefs.h <<\EOF
1126#define __SUN__ 1
1127EOF
1128
1129 cat >> confdefs.h <<\EOF
1130#define __SUNOS__ 1
1131EOF
1132
1133 cat >> confdefs.h <<\EOF
1134#define __BSD__ 1
1135EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1138 ;;
1139 *-*-freebsd*)
1140 USE_BSD=1
1141 USE_FREEBSD=1
1142 cat >> confdefs.h <<\EOF
1143#define __FREEBSD__ 1
1144EOF
1145
1146 cat >> confdefs.h <<\EOF
1147#define __BSD__ 1
1148EOF
1149
1150 DEFAULT_DEFAULT_wxUSE_GTK=1
1151 ;;
1152 *-*-openbsd*)
1153 USE_BSD=1
1154 USE_OPENBSD=1
1155 cat >> confdefs.h <<\EOF
1156#define __FREEBSD__ 1
1157EOF
1158
1159 cat >> confdefs.h <<\EOF
1160#define __OPENBSD__ 1
1161EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_GTK=1
1164 ;;
1165 *-*-netbsd*)
1166 USE_BSD=1
1167 USE_NETBSD=1
1168 cat >> confdefs.h <<\EOF
1169#define __FREEBSD__ 1
1170EOF
1171
1172 cat >> confdefs.h <<\EOF
1173#define __NETBSD__ 1
1174EOF
1175
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-osf* )
1179 USE_ALPHA=1
1180 USE_OSF=1
1181 cat >> confdefs.h <<\EOF
1182#define __ALPHA__ 1
1183EOF
1184
1185 cat >> confdefs.h <<\EOF
1186#define __OSF__ 1
1187EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1191 ;;
1192 *-*-dgux5* )
1193 USE_ALPHA=1
1194 USE_SVR4=1
1195 cat >> confdefs.h <<\EOF
1196#define __ALPHA__ 1
1197EOF
1198
1199 cat >> confdefs.h <<\EOF
1200#define __SVR4__ 1
1201EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1204 ;;
1205 *-*-sysv5* )
1206 USE_SYSV=1
1207 USE_SVR4=1
1208 cat >> confdefs.h <<\EOF
1209#define __SYSV__ 1
1210EOF
1211
1212 cat >> confdefs.h <<\EOF
1213#define __SVR4__ 1
1214EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 ;;
1218 *-*-aix* )
1219 USE_AIX=1
1220 USE_SYSV=1
1221 USE_SVR4=1
1222 cat >> confdefs.h <<\EOF
1223#define __AIX__ 1
1224EOF
1225
1226 cat >> confdefs.h <<\EOF
1227#define __SYSV__ 1
1228EOF
1229
1230 cat >> confdefs.h <<\EOF
1231#define __SVR4__ 1
1232EOF
1233
1234 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1235 ;;
1236
1237 *-*-cygwin* | *-*-mingw32* )
1238 USE_UNIX=0
1239 USE_WIN32=1
1240 cat >> confdefs.h <<\EOF
1241#define __WIN32__ 1
1242EOF
1243
1244 cat >> confdefs.h <<\EOF
1245#define __WIN95__ 1
1246EOF
1247
1248 cat >> confdefs.h <<\EOF
1249#define __WINDOWS__ 1
1250EOF
1251
1252 cat >> confdefs.h <<\EOF
1253#define __GNUWIN32__ 1
1254EOF
1255
1256 cat >> confdefs.h <<\EOF
1257#define STRICT 1
1258EOF
1259
1260 cat >> confdefs.h <<\EOF
1261#define WINVER 0x0400
1262EOF
1263
1264 PROGRAM_EXT=".exe"
1265 DEFAULT_DEFAULT_wxUSE_MSW=1
1266 ;;
1267
1268 *-pc-os2_emx )
1269 cat >> confdefs.h <<\EOF
1270#define __EMX__ 1
1271EOF
1272
1273 PROGRAM_EXT=".exe"
1274 DEFAULT_DEFAULT_wxUSE_PM=1
1275 ;;
1276
1277 *-*-darwin* )
1278 USE_BSD=1
1279 USE_DARWIN=1
1280 cat >> confdefs.h <<\EOF
1281#define __BSD__ 1
1282EOF
1283
1284 cat >> confdefs.h <<\EOF
1285#define __DARWIN__ 1
1286EOF
1287
1288 cat >> confdefs.h <<\EOF
1289#define __UNIX__ 1
1290EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MAC=1
1293 ;;
1294
1295 *-*-beos* )
1296 USE_BEOS=1
1297 cat >> confdefs.h <<\EOF
1298#define __BEOS__ 1
1299EOF
1300
1301 ;;
1302
1303 *)
1304 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1305esac
1306
1307if test "$USE_UNIX" = 1 ; then
1308 wxUSE_UNIX=yes
1309 cat >> confdefs.h <<\EOF
1310#define __UNIX__ 1
1311EOF
1312
1313
1314 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1315 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1316fi
1317
1318if test "$USE_BEOS" = 1; then
1319 SRC_SUBDIRS="$SRC_SUBDIRS be"
1320 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1321fi
1322
1323
1324
1325
1326
1327 wx_arg_cache_file="configarg.cache"
1328 echo "loading argument cache $wx_arg_cache_file"
1329 rm -f ${wx_arg_cache_file}.tmp
1330 touch ${wx_arg_cache_file}.tmp
1331 touch ${wx_arg_cache_file}
1332
1333
1334DEBUG_CONFIGURE=0
1335if test $DEBUG_CONFIGURE = 1; then
1336 DEFAULT_wxUSE_UNIVERSAL=no
1337
1338 DEFAULT_wxUSE_THREADS=yes
1339
1340 DEFAULT_wxUSE_SHARED=yes
1341 DEFAULT_wxUSE_BURNT_NAME=no
1342 DEFAULT_wxUSE_OPTIMISE=no
1343 DEFAULT_wxUSE_PROFILE=no
1344 DEFAULT_wxUSE_NO_DEPS=no
1345 DEFAULT_wxUSE_NO_RTTI=no
1346 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1347 DEFAULT_wxUSE_PERMISSIVE=no
1348 DEFAULT_wxUSE_DEBUG_FLAG=yes
1349 DEFAULT_wxUSE_DEBUG_INFO=yes
1350 DEFAULT_wxUSE_DEBUG_GDB=yes
1351 DEFAULT_wxUSE_MEM_TRACING=no
1352 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1353 DEFAULT_wxUSE_DMALLOC=no
1354 DEFAULT_wxUSE_APPLE_IEEE=no
1355
1356 DEFAULT_wxUSE_LOG=yes
1357 DEFAULT_wxUSE_LOGWINDOW=no
1358 DEFAULT_wxUSE_LOGGUI=no
1359
1360 DEFAULT_wxUSE_GUI=yes
1361 DEFAULT_wxUSE_CONTROLS=no
1362
1363 DEFAULT_wxUSE_REGEX=no
1364 DEFAULT_wxUSE_ZLIB=no
1365 DEFAULT_wxUSE_LIBPNG=no
1366 DEFAULT_wxUSE_LIBJPEG=no
1367 DEFAULT_wxUSE_LIBTIFF=no
1368 DEFAULT_wxUSE_ODBC=no
1369 DEFAULT_wxUSE_FREETYPE=no
1370 DEFAULT_wxUSE_OPENGL=no
1371
1372 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1373 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1374 DEFAULT_wxUSE_STD_IOSTREAM=no
1375 DEFAULT_wxUSE_CMDLINE_PARSER=no
1376 DEFAULT_wxUSE_DATETIME=no
1377 DEFAULT_wxUSE_TIMEDATE=no
1378 DEFAULT_wxUSE_TIMER=no
1379 DEFAULT_wxUSE_STOPWATCH=no
1380 DEFAULT_wxUSE_FILE=no
1381 DEFAULT_wxUSE_FFILE=no
1382 DEFAULT_wxUSE_TEXTFILE=no
1383 DEFAULT_wxUSE_WAVE=no
1384 DEFAULT_wxUSE_INTL=no
1385 DEFAULT_wxUSE_CONFIG=no
1386 DEFAULT_wxUSE_FONTMAP=no
1387 DEFAULT_wxUSE_STREAMS=no
1388 DEFAULT_wxUSE_SOCKETS=no
1389 DEFAULT_wxUSE_DIALUP_MANAGER=no
1390 DEFAULT_wxUSE_SERIAL=no
1391 DEFAULT_wxUSE_JOYSTICK=no
1392 DEFAULT_wxUSE_DYNLIB_CLASS=no
1393 DEFAULT_wxUSE_LONGLONG=no
1394 DEFAULT_wxUSE_GEOMETRY=no
1395
1396 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1397 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1398 DEFAULT_wxUSE_POSTSCRIPT=no
1399
1400 DEFAULT_wxUSE_X_RESOURCES=no
1401 DEFAULT_wxUSE_CLIPBOARD=no
1402 DEFAULT_wxUSE_TOOLTIPS=no
1403 DEFAULT_wxUSE_DRAG_AND_DROP=no
1404 DEFAULT_wxUSE_DRAGIMAGE=no
1405 DEFAULT_wxUSE_SPLINES=no
1406
1407 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1408 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1409 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1410
1411 DEFAULT_wxUSE_PROLOGIO=no
1412 DEFAULT_wxUSE_RESOURCES=no
1413 DEFAULT_wxUSE_CONSTRAINTS=no
1414 DEFAULT_wxUSE_IPC=no
1415 DEFAULT_wxUSE_HELP=no
1416 DEFAULT_wxUSE_MS_HTML_HELP=no
1417 DEFAULT_wxUSE_WXHTML_HELP=no
1418 DEFAULT_wxUSE_TREELAYOUT=no
1419 DEFAULT_wxUSE_METAFILE=no
1420 DEFAULT_wxUSE_MIMETYPE=no
1421 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1422
1423 DEFAULT_wxUSE_COMMONDLGS=no
1424 DEFAULT_wxUSE_CHOICEDLG=no
1425 DEFAULT_wxUSE_COLOURDLG=no
1426 DEFAULT_wxUSE_DIRDLG=no
1427 DEFAULT_wxUSE_FILEDLG=no
1428 DEFAULT_wxUSE_FINDREPLDLG=no
1429 DEFAULT_wxUSE_FONTDLG=no
1430 DEFAULT_wxUSE_MSGDLG=no
1431 DEFAULT_wxUSE_NUMBERDLG=no
1432 DEFAULT_wxUSE_TEXTDLG=no
1433 DEFAULT_wxUSE_SPLASH=no
1434 DEFAULT_wxUSE_STARTUP_TIPS=no
1435 DEFAULT_wxUSE_PROGRESSDLG=no
1436 DEFAULT_wxUSE_WIZARDDLG=no
1437
1438 DEFAULT_wxUSE_MENUS=no
1439 DEFAULT_wxUSE_MINIFRAME=no
1440 DEFAULT_wxUSE_HTML=no
1441 DEFAULT_wxUSE_FILESYSTEM=no
1442 DEFAULT_wxUSE_FS_INET=no
1443 DEFAULT_wxUSE_FS_ZIP=no
1444 DEFAULT_wxUSE_BUSYINFO=no
1445 DEFAULT_wxUSE_ZIPSTREAM=no
1446 DEFAULT_wxUSE_VALIDATORS=no
1447
1448 DEFAULT_wxUSE_ACCEL=no
1449 DEFAULT_wxUSE_BUTTON=no
1450 DEFAULT_wxUSE_BMPBUTTON=no
1451 DEFAULT_wxUSE_CALCTRL=no
1452 DEFAULT_wxUSE_CARET=no
1453 DEFAULT_wxUSE_CHECKBOX=no
1454 DEFAULT_wxUSE_CHECKLST=no
1455 DEFAULT_wxUSE_CHOICE=no
1456 DEFAULT_wxUSE_COMBOBOX=no
1457 DEFAULT_wxUSE_GAUGE=no
1458 DEFAULT_wxUSE_GRID=no
1459 DEFAULT_wxUSE_NEW_GRID=no
1460 DEFAULT_wxUSE_IMAGLIST=no
1461 DEFAULT_wxUSE_LISTBOX=no
1462 DEFAULT_wxUSE_LISTCTRL=no
1463 DEFAULT_wxUSE_NOTEBOOK=no
1464 DEFAULT_wxUSE_PROPSHEET=no
1465 DEFAULT_wxUSE_RADIOBOX=no
1466 DEFAULT_wxUSE_RADIOBTN=no
1467 DEFAULT_wxUSE_SASH=no
1468 DEFAULT_wxUSE_SCROLLBAR=no
1469 DEFAULT_wxUSE_SLIDER=no
1470 DEFAULT_wxUSE_SPINBTN=no
1471 DEFAULT_wxUSE_SPINCTRL=no
1472 DEFAULT_wxUSE_SPLITTER=no
1473 DEFAULT_wxUSE_STATBMP=no
1474 DEFAULT_wxUSE_STATBOX=no
1475 DEFAULT_wxUSE_STATLINE=no
1476 DEFAULT_wxUSE_STATTEXT=no
1477 DEFAULT_wxUSE_STATUSBAR=yes
1478 DEFAULT_wxUSE_TABDIALOG=no
1479 DEFAULT_wxUSE_TEXTCTRL=no
1480 DEFAULT_wxUSE_TOGGLEBTN=no
1481 DEFAULT_wxUSE_TOOLBAR=no
1482 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1483 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1484 DEFAULT_wxUSE_TREECTRL=no
1485 DEFAULT_wxUSE_POPUPWIN=no
1486
1487 DEFAULT_wxUSE_UNICODE=no
1488 DEFAULT_wxUSE_WCSRTOMBS=no
1489
1490 DEFAULT_wxUSE_IMAGE=no
1491 DEFAULT_wxUSE_GIF=no
1492 DEFAULT_wxUSE_PCX=no
1493 DEFAULT_wxUSE_PNM=no
1494 DEFAULT_wxUSE_XPM=no
1495else
1496 DEFAULT_wxUSE_UNIVERSAL=no
1497
1498 DEFAULT_wxUSE_THREADS=yes
1499
1500 DEFAULT_wxUSE_SHARED=yes
1501 DEFAULT_wxUSE_BURNT_NAME=no
1502 DEFAULT_wxUSE_OPTIMISE=yes
1503 DEFAULT_wxUSE_PROFILE=no
1504 DEFAULT_wxUSE_NO_DEPS=no
1505 DEFAULT_wxUSE_NO_RTTI=no
1506 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1507 DEFAULT_wxUSE_PERMISSIVE=no
1508 DEFAULT_wxUSE_DEBUG_FLAG=no
1509 DEFAULT_wxUSE_DEBUG_INFO=no
1510 DEFAULT_wxUSE_DEBUG_GDB=no
1511 DEFAULT_wxUSE_MEM_TRACING=no
1512 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1513 DEFAULT_wxUSE_DMALLOC=no
1514 DEFAULT_wxUSE_APPLE_IEEE=yes
1515
1516 DEFAULT_wxUSE_LOG=yes
1517 DEFAULT_wxUSE_LOGWINDOW=yes
1518 DEFAULT_wxUSE_LOGGUI=yes
1519
1520 DEFAULT_wxUSE_GUI=yes
1521
1522 DEFAULT_wxUSE_REGEX=yes
1523 DEFAULT_wxUSE_ZLIB=yes
1524 DEFAULT_wxUSE_LIBPNG=yes
1525 DEFAULT_wxUSE_LIBJPEG=yes
1526 DEFAULT_wxUSE_LIBTIFF=yes
1527 DEFAULT_wxUSE_ODBC=no
1528 DEFAULT_wxUSE_FREETYPE=no
1529 DEFAULT_wxUSE_OPENGL=no
1530
1531 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1532 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1533 DEFAULT_wxUSE_STD_IOSTREAM=no
1534 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1535 DEFAULT_wxUSE_DATETIME=yes
1536 DEFAULT_wxUSE_TIMEDATE=no
1537 DEFAULT_wxUSE_TIMER=yes
1538 DEFAULT_wxUSE_STOPWATCH=yes
1539 DEFAULT_wxUSE_FILE=yes
1540 DEFAULT_wxUSE_FFILE=yes
1541 DEFAULT_wxUSE_TEXTFILE=yes
1542 DEFAULT_wxUSE_WAVE=no
1543 DEFAULT_wxUSE_INTL=yes
1544 DEFAULT_wxUSE_CONFIG=yes
1545 DEFAULT_wxUSE_FONTMAP=yes
1546 DEFAULT_wxUSE_STREAMS=yes
1547 DEFAULT_wxUSE_SOCKETS=yes
1548 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1549 DEFAULT_wxUSE_SERIAL=yes
1550 DEFAULT_wxUSE_JOYSTICK=yes
1551 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1552 DEFAULT_wxUSE_LONGLONG=yes
1553 DEFAULT_wxUSE_GEOMETRY=yes
1554
1555 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1556 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1557 DEFAULT_wxUSE_POSTSCRIPT=yes
1558
1559 DEFAULT_wxUSE_X_RESOURCES=no
1560 DEFAULT_wxUSE_CLIPBOARD=yes
1561 DEFAULT_wxUSE_TOOLTIPS=yes
1562 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1563 DEFAULT_wxUSE_DRAGIMAGE=yes
1564 DEFAULT_wxUSE_SPLINES=yes
1565
1566 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1567 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1568 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1569
1570 DEFAULT_wxUSE_PROLOGIO=yes
1571 DEFAULT_wxUSE_RESOURCES=yes
1572 DEFAULT_wxUSE_CONSTRAINTS=yes
1573 DEFAULT_wxUSE_IPC=yes
1574 DEFAULT_wxUSE_HELP=yes
1575 DEFAULT_wxUSE_MS_HTML_HELP=yes
1576 DEFAULT_wxUSE_WXHTML_HELP=yes
1577 DEFAULT_wxUSE_TREELAYOUT=yes
1578 DEFAULT_wxUSE_METAFILE=yes
1579 DEFAULT_wxUSE_MIMETYPE=yes
1580 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1581
1582 DEFAULT_wxUSE_COMMONDLGS=yes
1583 DEFAULT_wxUSE_CHOICEDLG=yes
1584 DEFAULT_wxUSE_COLOURDLG=yes
1585 DEFAULT_wxUSE_DIRDLG=yes
1586 DEFAULT_wxUSE_FILEDLG=yes
1587 DEFAULT_wxUSE_FINDREPLDLG=yes
1588 DEFAULT_wxUSE_FONTDLG=yes
1589 DEFAULT_wxUSE_MSGDLG=yes
1590 DEFAULT_wxUSE_NUMBERDLG=yes
1591 DEFAULT_wxUSE_TEXTDLG=yes
1592 DEFAULT_wxUSE_SPLASH=yes
1593 DEFAULT_wxUSE_STARTUP_TIPS=yes
1594 DEFAULT_wxUSE_PROGRESSDLG=yes
1595 DEFAULT_wxUSE_WIZARDDLG=yes
1596
1597 DEFAULT_wxUSE_MENUS=yes
1598 DEFAULT_wxUSE_MINIFRAME=yes
1599 DEFAULT_wxUSE_HTML=yes
1600 DEFAULT_wxUSE_FILESYSTEM=yes
1601 DEFAULT_wxUSE_FS_INET=yes
1602 DEFAULT_wxUSE_FS_ZIP=yes
1603 DEFAULT_wxUSE_BUSYINFO=yes
1604 DEFAULT_wxUSE_ZIPSTREAM=yes
1605 DEFAULT_wxUSE_VALIDATORS=yes
1606
1607 DEFAULT_wxUSE_ACCEL=yes
1608 DEFAULT_wxUSE_BUTTON=yes
1609 DEFAULT_wxUSE_BMPBUTTON=yes
1610 DEFAULT_wxUSE_CALCTRL=yes
1611 DEFAULT_wxUSE_CARET=yes
1612 DEFAULT_wxUSE_CHECKBOX=yes
1613 DEFAULT_wxUSE_CHECKLST=yes
1614 DEFAULT_wxUSE_CHOICE=yes
1615 DEFAULT_wxUSE_COMBOBOX=yes
1616 DEFAULT_wxUSE_GAUGE=yes
1617 DEFAULT_wxUSE_GRID=yes
1618 DEFAULT_wxUSE_NEW_GRID=yes
1619 DEFAULT_wxUSE_IMAGLIST=yes
1620 DEFAULT_wxUSE_LISTBOX=yes
1621 DEFAULT_wxUSE_LISTCTRL=yes
1622 DEFAULT_wxUSE_NOTEBOOK=yes
1623 DEFAULT_wxUSE_PROPSHEET=yes
1624 DEFAULT_wxUSE_RADIOBOX=yes
1625 DEFAULT_wxUSE_RADIOBTN=yes
1626 DEFAULT_wxUSE_SASH=yes
1627 DEFAULT_wxUSE_SCROLLBAR=yes
1628 DEFAULT_wxUSE_SLIDER=yes
1629 DEFAULT_wxUSE_SPINBTN=yes
1630 DEFAULT_wxUSE_SPINCTRL=yes
1631 DEFAULT_wxUSE_SPLITTER=yes
1632 DEFAULT_wxUSE_STATBMP=yes
1633 DEFAULT_wxUSE_STATBOX=yes
1634 DEFAULT_wxUSE_STATLINE=yes
1635 DEFAULT_wxUSE_STATTEXT=yes
1636 DEFAULT_wxUSE_STATUSBAR=yes
1637 DEFAULT_wxUSE_TABDIALOG=no
1638 DEFAULT_wxUSE_TEXTCTRL=yes
1639 DEFAULT_wxUSE_TOGGLEBTN=yes
1640 DEFAULT_wxUSE_TOOLBAR=yes
1641 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1642 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1643 DEFAULT_wxUSE_TREECTRL=yes
1644 DEFAULT_wxUSE_POPUPWIN=yes
1645
1646 DEFAULT_wxUSE_UNICODE=no
1647 DEFAULT_wxUSE_WCSRTOMBS=no
1648
1649 DEFAULT_wxUSE_IMAGE=yes
1650 DEFAULT_wxUSE_GIF=yes
1651 DEFAULT_wxUSE_PCX=yes
1652 DEFAULT_wxUSE_PNM=yes
1653 DEFAULT_wxUSE_XPM=yes
1654fi
1655
1656
1657
1658for toolkit in `echo $ALL_TOOLKITS`; do
1659 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1660 if test "x$LINE" != x ; then
1661 has_toolkit_in_cache=1
1662 eval "DEFAULT_$LINE"
1663 eval "CACHE_$toolkit=1"
1664 fi
1665done
1666
1667
1668
1669 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1670echo "configure:1671: checking for --enable-gui" >&5
1671 no_cache=0
1672 # Check whether --enable-gui or --disable-gui was given.
1673if test "${enable_gui+set}" = set; then
1674 enableval="$enable_gui"
1675
1676 if test "$enableval" = yes; then
1677 ac_cv_use_gui='wxUSE_GUI=yes'
1678 else
1679 ac_cv_use_gui='wxUSE_GUI=no'
1680 fi
1681
1682else
1683
1684 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1685 if test "x$LINE" != x ; then
1686 eval "DEFAULT_$LINE"
1687 else
1688 no_cache=1
1689 fi
1690
1691 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1692
1693fi
1694
1695
1696 eval "$ac_cv_use_gui"
1697 if test "$no_cache" != 1; then
1698 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1699 fi
1700
1701 if test "$wxUSE_GUI" = yes; then
1702 echo "$ac_t""yes" 1>&6
1703 else
1704 echo "$ac_t""no" 1>&6
1705 fi
1706
1707
1708if test "$wxUSE_GUI" = "yes"; then
1709
1710
1711 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1712echo "configure:1713: checking for --enable-universal" >&5
1713 no_cache=0
1714 # Check whether --enable-universal or --disable-universal was given.
1715if test "${enable_universal+set}" = set; then
1716 enableval="$enable_universal"
1717
1718 if test "$enableval" = yes; then
1719 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1720 else
1721 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1722 fi
1723
1724else
1725
1726 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1727 if test "x$LINE" != x ; then
1728 eval "DEFAULT_$LINE"
1729 else
1730 no_cache=1
1731 fi
1732
1733 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1734
1735fi
1736
1737
1738 eval "$ac_cv_use_universal"
1739 if test "$no_cache" != 1; then
1740 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1741 fi
1742
1743 if test "$wxUSE_UNIVERSAL" = yes; then
1744 echo "$ac_t""yes" 1>&6
1745 else
1746 echo "$ac_t""no" 1>&6
1747 fi
1748
1749# Check whether --with-gtk or --without-gtk was given.
1750if test "${with_gtk+set}" = set; then
1751 withval="$with_gtk"
1752 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1753fi
1754
1755# Check whether --with-motif or --without-motif was given.
1756if test "${with_motif+set}" = set; then
1757 withval="$with_motif"
1758 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1759fi
1760
1761# Check whether --with-mac or --without-mac was given.
1762if test "${with_mac+set}" = set; then
1763 withval="$with_mac"
1764 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1765fi
1766
1767# Check whether --with-wine or --without-wine was given.
1768if test "${with_wine+set}" = set; then
1769 withval="$with_wine"
1770 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1771fi
1772
1773# Check whether --with-cygwin or --without-cygwin was given.
1774if test "${with_cygwin+set}" = set; then
1775 withval="$with_cygwin"
1776 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1777fi
1778
1779# Check whether --with-mingw or --without-mingw was given.
1780if test "${with_mingw+set}" = set; then
1781 withval="$with_mingw"
1782 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1783fi
1784
1785# Check whether --with-pm or --without-pm was given.
1786if test "${with_pm+set}" = set; then
1787 withval="$with_pm"
1788 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1789fi
1790
1791# Check whether --with-mgl or --without-mgl was given.
1792if test "${with_mgl+set}" = set; then
1793 withval="$with_mgl"
1794 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1795fi
1796
1797
1798# Check whether --enable-gtk2 or --disable-gtk2 was given.
1799if test "${enable_gtk2+set}" = set; then
1800 enableval="$enable_gtk2"
1801 wxUSE_GTK2=1
1802else
1803 wxUSE_GTK2=0
1804fi
1805
1806
1807
1808 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1809echo "configure:1810: checking for --with-libpng" >&5
1810 no_cache=0
1811 # Check whether --with-libpng or --without-libpng was given.
1812if test "${with_libpng+set}" = set; then
1813 withval="$with_libpng"
1814
1815 if test "$withval" = yes; then
1816 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1817 elif test "$withval" = no; then
1818 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1819 elif test "$withval" = sys; then
1820 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1821 else
1822 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1823 fi
1824
1825else
1826
1827 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
1834 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1835
1836fi
1837
1838
1839 eval "$ac_cv_use_libpng"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_LIBPNG" = yes; then
1845 echo "$ac_t""yes" 1>&6
1846 elif test "$wxUSE_LIBPNG" = no; then
1847 echo "$ac_t""no" 1>&6
1848 elif test "$wxUSE_LIBPNG" = sys; then
1849 echo "$ac_t""system version" 1>&6
1850 else
1851 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1852 fi
1853
1854
1855 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1856echo "configure:1857: checking for --with-libjpeg" >&5
1857 no_cache=0
1858 # Check whether --with-libjpeg or --without-libjpeg was given.
1859if test "${with_libjpeg+set}" = set; then
1860 withval="$with_libjpeg"
1861
1862 if test "$withval" = yes; then
1863 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1864 elif test "$withval" = no; then
1865 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1866 elif test "$withval" = sys; then
1867 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1868 else
1869 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1870 fi
1871
1872else
1873
1874 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1875 if test "x$LINE" != x ; then
1876 eval "DEFAULT_$LINE"
1877 else
1878 no_cache=1
1879 fi
1880
1881 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1882
1883fi
1884
1885
1886 eval "$ac_cv_use_libjpeg"
1887 if test "$no_cache" != 1; then
1888 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1889 fi
1890
1891 if test "$wxUSE_LIBJPEG" = yes; then
1892 echo "$ac_t""yes" 1>&6
1893 elif test "$wxUSE_LIBJPEG" = no; then
1894 echo "$ac_t""no" 1>&6
1895 elif test "$wxUSE_LIBJPEG" = sys; then
1896 echo "$ac_t""system version" 1>&6
1897 else
1898 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1899 fi
1900
1901
1902 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1903echo "configure:1904: checking for --with-libtiff" >&5
1904 no_cache=0
1905 # Check whether --with-libtiff or --without-libtiff was given.
1906if test "${with_libtiff+set}" = set; then
1907 withval="$with_libtiff"
1908
1909 if test "$withval" = yes; then
1910 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1911 elif test "$withval" = no; then
1912 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1913 elif test "$withval" = sys; then
1914 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1915 else
1916 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1917 fi
1918
1919else
1920
1921 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1922 if test "x$LINE" != x ; then
1923 eval "DEFAULT_$LINE"
1924 else
1925 no_cache=1
1926 fi
1927
1928 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1929
1930fi
1931
1932
1933 eval "$ac_cv_use_libtiff"
1934 if test "$no_cache" != 1; then
1935 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1936 fi
1937
1938 if test "$wxUSE_LIBTIFF" = yes; then
1939 echo "$ac_t""yes" 1>&6
1940 elif test "$wxUSE_LIBTIFF" = no; then
1941 echo "$ac_t""no" 1>&6
1942 elif test "$wxUSE_LIBTIFF" = sys; then
1943 echo "$ac_t""system version" 1>&6
1944 else
1945 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1946 fi
1947
1948
1949 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1950echo "configure:1951: checking for --with-freetype" >&5
1951 no_cache=0
1952 # Check whether --with-freetype or --without-freetype was given.
1953if test "${with_freetype+set}" = set; then
1954 withval="$with_freetype"
1955
1956 if test "$withval" = yes; then
1957 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1958 elif test "$withval" = no; then
1959 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1960 elif test "$withval" = sys; then
1961 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1962 else
1963 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1964 fi
1965
1966else
1967
1968 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1969 if test "x$LINE" != x ; then
1970 eval "DEFAULT_$LINE"
1971 else
1972 no_cache=1
1973 fi
1974
1975 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1976
1977fi
1978
1979
1980 eval "$ac_cv_use_freetype"
1981 if test "$no_cache" != 1; then
1982 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1983 fi
1984
1985 if test "$wxUSE_FREETYPE" = yes; then
1986 echo "$ac_t""yes" 1>&6
1987 elif test "$wxUSE_FREETYPE" = no; then
1988 echo "$ac_t""no" 1>&6
1989 elif test "$wxUSE_FREETYPE" = sys; then
1990 echo "$ac_t""system version" 1>&6
1991 else
1992 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1993 fi
1994
1995
1996 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
1997echo "configure:1998: checking for --with-opengl" >&5
1998 no_cache=0
1999 # Check whether --with-opengl or --without-opengl was given.
2000if test "${with_opengl+set}" = set; then
2001 withval="$with_opengl"
2002
2003 if test "$withval" = yes; then
2004 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2005 else
2006 ac_cv_use_opengl='wxUSE_OPENGL=no'
2007 fi
2008
2009else
2010
2011 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2012 if test "x$LINE" != x ; then
2013 eval "DEFAULT_$LINE"
2014 else
2015 no_cache=1
2016 fi
2017
2018 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2019
2020fi
2021
2022
2023 eval "$ac_cv_use_opengl"
2024 if test "$no_cache" != 1; then
2025 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2026 fi
2027
2028 if test "$wxUSE_OPENGL" = yes; then
2029 echo "$ac_t""yes" 1>&6
2030 else
2031 echo "$ac_t""no" 1>&6
2032 fi
2033
2034
2035fi
2036
2037
2038 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2039echo "configure:2040: checking for --with-dmalloc" >&5
2040 no_cache=0
2041 # Check whether --with-dmalloc or --without-dmalloc was given.
2042if test "${with_dmalloc+set}" = set; then
2043 withval="$with_dmalloc"
2044
2045 if test "$withval" = yes; then
2046 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2047 else
2048 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2049 fi
2050
2051else
2052
2053 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2054 if test "x$LINE" != x ; then
2055 eval "DEFAULT_$LINE"
2056 else
2057 no_cache=1
2058 fi
2059
2060 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2061
2062fi
2063
2064
2065 eval "$ac_cv_use_dmalloc"
2066 if test "$no_cache" != 1; then
2067 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2068 fi
2069
2070 if test "$wxUSE_DMALLOC" = yes; then
2071 echo "$ac_t""yes" 1>&6
2072 else
2073 echo "$ac_t""no" 1>&6
2074 fi
2075
2076
2077 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2078echo "configure:2079: checking for --with-regex" >&5
2079 no_cache=0
2080 # Check whether --with-regex or --without-regex was given.
2081if test "${with_regex+set}" = set; then
2082 withval="$with_regex"
2083
2084 if test "$withval" = yes; then
2085 ac_cv_use_regex='wxUSE_REGEX=yes'
2086 elif test "$withval" = no; then
2087 ac_cv_use_regex='wxUSE_REGEX=no'
2088 elif test "$withval" = sys; then
2089 ac_cv_use_regex='wxUSE_REGEX=sys'
2090 else
2091 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2092 fi
2093
2094else
2095
2096 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2097 if test "x$LINE" != x ; then
2098 eval "DEFAULT_$LINE"
2099 else
2100 no_cache=1
2101 fi
2102
2103 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2104
2105fi
2106
2107
2108 eval "$ac_cv_use_regex"
2109 if test "$no_cache" != 1; then
2110 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2111 fi
2112
2113 if test "$wxUSE_REGEX" = yes; then
2114 echo "$ac_t""yes" 1>&6
2115 elif test "$wxUSE_REGEX" = no; then
2116 echo "$ac_t""no" 1>&6
2117 elif test "$wxUSE_REGEX" = sys; then
2118 echo "$ac_t""system version" 1>&6
2119 else
2120 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2121 fi
2122
2123
2124 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2125echo "configure:2126: checking for --with-zlib" >&5
2126 no_cache=0
2127 # Check whether --with-zlib or --without-zlib was given.
2128if test "${with_zlib+set}" = set; then
2129 withval="$with_zlib"
2130
2131 if test "$withval" = yes; then
2132 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2133 elif test "$withval" = no; then
2134 ac_cv_use_zlib='wxUSE_ZLIB=no'
2135 elif test "$withval" = sys; then
2136 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2137 else
2138 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2139 fi
2140
2141else
2142
2143 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2144 if test "x$LINE" != x ; then
2145 eval "DEFAULT_$LINE"
2146 else
2147 no_cache=1
2148 fi
2149
2150 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2151
2152fi
2153
2154
2155 eval "$ac_cv_use_zlib"
2156 if test "$no_cache" != 1; then
2157 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2158 fi
2159
2160 if test "$wxUSE_ZLIB" = yes; then
2161 echo "$ac_t""yes" 1>&6
2162 elif test "$wxUSE_ZLIB" = no; then
2163 echo "$ac_t""no" 1>&6
2164 elif test "$wxUSE_ZLIB" = sys; then
2165 echo "$ac_t""system version" 1>&6
2166 else
2167 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2168 fi
2169
2170
2171 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2172echo "configure:2173: checking for --with-odbc" >&5
2173 no_cache=0
2174 # Check whether --with-odbc or --without-odbc was given.
2175if test "${with_odbc+set}" = set; then
2176 withval="$with_odbc"
2177
2178 if test "$withval" = yes; then
2179 ac_cv_use_odbc='wxUSE_ODBC=yes'
2180 else
2181 ac_cv_use_odbc='wxUSE_ODBC=no'
2182 fi
2183
2184else
2185
2186 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2194
2195fi
2196
2197
2198 eval "$ac_cv_use_odbc"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_ODBC" = yes; then
2204 echo "$ac_t""yes" 1>&6
2205 else
2206 echo "$ac_t""no" 1>&6
2207 fi
2208
2209
2210
2211
2212
2213 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2214echo "configure:2215: checking for --enable-shared" >&5
2215 no_cache=0
2216 # Check whether --enable-shared or --disable-shared was given.
2217if test "${enable_shared+set}" = set; then
2218 enableval="$enable_shared"
2219
2220 if test "$enableval" = yes; then
2221 ac_cv_use_shared='wxUSE_SHARED=yes'
2222 else
2223 ac_cv_use_shared='wxUSE_SHARED=no'
2224 fi
2225
2226else
2227
2228 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2229 if test "x$LINE" != x ; then
2230 eval "DEFAULT_$LINE"
2231 else
2232 no_cache=1
2233 fi
2234
2235 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2236
2237fi
2238
2239
2240 eval "$ac_cv_use_shared"
2241 if test "$no_cache" != 1; then
2242 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2243 fi
2244
2245 if test "$wxUSE_SHARED" = yes; then
2246 echo "$ac_t""yes" 1>&6
2247 else
2248 echo "$ac_t""no" 1>&6
2249 fi
2250
2251
2252 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2253echo "configure:2254: checking for --enable-burnt_name" >&5
2254 no_cache=0
2255 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2256if test "${enable_burnt_name+set}" = set; then
2257 enableval="$enable_burnt_name"
2258
2259 if test "$enableval" = yes; then
2260 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2261 else
2262 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2263 fi
2264
2265else
2266
2267 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2268 if test "x$LINE" != x ; then
2269 eval "DEFAULT_$LINE"
2270 else
2271 no_cache=1
2272 fi
2273
2274 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2275
2276fi
2277
2278
2279 eval "$ac_cv_use_burnt_name"
2280 if test "$no_cache" != 1; then
2281 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2282 fi
2283
2284 if test "$wxUSE_BURNT_NAME" = yes; then
2285 echo "$ac_t""yes" 1>&6
2286 else
2287 echo "$ac_t""no" 1>&6
2288 fi
2289
2290
2291 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2292echo "configure:2293: checking for --enable-optimise" >&5
2293 no_cache=0
2294 # Check whether --enable-optimise or --disable-optimise was given.
2295if test "${enable_optimise+set}" = set; then
2296 enableval="$enable_optimise"
2297
2298 if test "$enableval" = yes; then
2299 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2300 else
2301 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2302 fi
2303
2304else
2305
2306 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2307 if test "x$LINE" != x ; then
2308 eval "DEFAULT_$LINE"
2309 else
2310 no_cache=1
2311 fi
2312
2313 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2314
2315fi
2316
2317
2318 eval "$ac_cv_use_optimise"
2319 if test "$no_cache" != 1; then
2320 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2321 fi
2322
2323 if test "$wxUSE_OPTIMISE" = yes; then
2324 echo "$ac_t""yes" 1>&6
2325 else
2326 echo "$ac_t""no" 1>&6
2327 fi
2328
2329
2330 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2331echo "configure:2332: checking for --enable-debug" >&5
2332 no_cache=0
2333 # Check whether --enable-debug or --disable-debug was given.
2334if test "${enable_debug+set}" = set; then
2335 enableval="$enable_debug"
2336
2337 if test "$enableval" = yes; then
2338 ac_cv_use_debug='wxUSE_DEBUG=yes'
2339 else
2340 ac_cv_use_debug='wxUSE_DEBUG=no'
2341 fi
2342
2343else
2344
2345 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2346 if test "x$LINE" != x ; then
2347 eval "DEFAULT_$LINE"
2348 else
2349 no_cache=1
2350 fi
2351
2352 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2353
2354fi
2355
2356
2357 eval "$ac_cv_use_debug"
2358 if test "$no_cache" != 1; then
2359 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2360 fi
2361
2362 if test "$wxUSE_DEBUG" = yes; then
2363 echo "$ac_t""yes" 1>&6
2364 else
2365 echo "$ac_t""no" 1>&6
2366 fi
2367
2368
2369if test "$wxUSE_DEBUG" = "yes"; then
2370 DEFAULT_wxUSE_DEBUG_FLAG=yes
2371 DEFAULT_wxUSE_DEBUG_INFO=yes
2372elif test "$wxUSE_DEBUG" = "no"; then
2373 DEFAULT_wxUSE_DEBUG_FLAG=no
2374 DEFAULT_wxUSE_DEBUG_INFO=no
2375fi
2376
2377
2378 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2379echo "configure:2380: checking for --enable-debug_flag" >&5
2380 no_cache=0
2381 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2382if test "${enable_debug_flag+set}" = set; then
2383 enableval="$enable_debug_flag"
2384
2385 if test "$enableval" = yes; then
2386 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2387 else
2388 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2389 fi
2390
2391else
2392
2393 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2401
2402fi
2403
2404
2405 eval "$ac_cv_use_debug_flag"
2406 if test "$no_cache" != 1; then
2407 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2408 fi
2409
2410 if test "$wxUSE_DEBUG_FLAG" = yes; then
2411 echo "$ac_t""yes" 1>&6
2412 else
2413 echo "$ac_t""no" 1>&6
2414 fi
2415
2416
2417 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2418echo "configure:2419: checking for --enable-debug_info" >&5
2419 no_cache=0
2420 # Check whether --enable-debug_info or --disable-debug_info was given.
2421if test "${enable_debug_info+set}" = set; then
2422 enableval="$enable_debug_info"
2423
2424 if test "$enableval" = yes; then
2425 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2426 else
2427 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2428 fi
2429
2430else
2431
2432 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2440
2441fi
2442
2443
2444 eval "$ac_cv_use_debug_info"
2445 if test "$no_cache" != 1; then
2446 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2447 fi
2448
2449 if test "$wxUSE_DEBUG_INFO" = yes; then
2450 echo "$ac_t""yes" 1>&6
2451 else
2452 echo "$ac_t""no" 1>&6
2453 fi
2454
2455
2456 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2457echo "configure:2458: checking for --enable-debug_gdb" >&5
2458 no_cache=0
2459 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2460if test "${enable_debug_gdb+set}" = set; then
2461 enableval="$enable_debug_gdb"
2462
2463 if test "$enableval" = yes; then
2464 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2465 else
2466 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2467 fi
2468
2469else
2470
2471 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2472 if test "x$LINE" != x ; then
2473 eval "DEFAULT_$LINE"
2474 else
2475 no_cache=1
2476 fi
2477
2478 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2479
2480fi
2481
2482
2483 eval "$ac_cv_use_debug_gdb"
2484 if test "$no_cache" != 1; then
2485 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2486 fi
2487
2488 if test "$wxUSE_DEBUG_GDB" = yes; then
2489 echo "$ac_t""yes" 1>&6
2490 else
2491 echo "$ac_t""no" 1>&6
2492 fi
2493
2494
2495 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2496echo "configure:2497: checking for --enable-debug_cntxt" >&5
2497 no_cache=0
2498 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2499if test "${enable_debug_cntxt+set}" = set; then
2500 enableval="$enable_debug_cntxt"
2501
2502 if test "$enableval" = yes; then
2503 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2504 else
2505 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2506 fi
2507
2508else
2509
2510 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2511 if test "x$LINE" != x ; then
2512 eval "DEFAULT_$LINE"
2513 else
2514 no_cache=1
2515 fi
2516
2517 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2518
2519fi
2520
2521
2522 eval "$ac_cv_use_debug_cntxt"
2523 if test "$no_cache" != 1; then
2524 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2525 fi
2526
2527 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2528 echo "$ac_t""yes" 1>&6
2529 else
2530 echo "$ac_t""no" 1>&6
2531 fi
2532
2533
2534 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2535echo "configure:2536: checking for --enable-mem_tracing" >&5
2536 no_cache=0
2537 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2538if test "${enable_mem_tracing+set}" = set; then
2539 enableval="$enable_mem_tracing"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2543 else
2544 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2545 fi
2546
2547else
2548
2549 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2557
2558fi
2559
2560
2561 eval "$ac_cv_use_mem_tracing"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_MEM_TRACING" = yes; then
2567 echo "$ac_t""yes" 1>&6
2568 else
2569 echo "$ac_t""no" 1>&6
2570 fi
2571
2572
2573 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2574echo "configure:2575: checking for --enable-profile" >&5
2575 no_cache=0
2576 # Check whether --enable-profile or --disable-profile was given.
2577if test "${enable_profile+set}" = set; then
2578 enableval="$enable_profile"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_profile='wxUSE_PROFILE=yes'
2582 else
2583 ac_cv_use_profile='wxUSE_PROFILE=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2596
2597fi
2598
2599
2600 eval "$ac_cv_use_profile"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_PROFILE" = yes; then
2606 echo "$ac_t""yes" 1>&6
2607 else
2608 echo "$ac_t""no" 1>&6
2609 fi
2610
2611
2612 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2613echo "configure:2614: checking for --enable-no_rtti" >&5
2614 no_cache=0
2615 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2616if test "${enable_no_rtti+set}" = set; then
2617 enableval="$enable_no_rtti"
2618
2619 if test "$enableval" = yes; then
2620 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2621 else
2622 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2623 fi
2624
2625else
2626
2627 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2635
2636fi
2637
2638
2639 eval "$ac_cv_use_no_rtti"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_NO_RTTI" = yes; then
2645 echo "$ac_t""yes" 1>&6
2646 else
2647 echo "$ac_t""no" 1>&6
2648 fi
2649
2650
2651 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2652echo "configure:2653: checking for --enable-no_exceptions" >&5
2653 no_cache=0
2654 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2655if test "${enable_no_exceptions+set}" = set; then
2656 enableval="$enable_no_exceptions"
2657
2658 if test "$enableval" = yes; then
2659 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2660 else
2661 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2662 fi
2663
2664else
2665
2666 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2667 if test "x$LINE" != x ; then
2668 eval "DEFAULT_$LINE"
2669 else
2670 no_cache=1
2671 fi
2672
2673 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2674
2675fi
2676
2677
2678 eval "$ac_cv_use_no_exceptions"
2679 if test "$no_cache" != 1; then
2680 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2681 fi
2682
2683 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2684 echo "$ac_t""yes" 1>&6
2685 else
2686 echo "$ac_t""no" 1>&6
2687 fi
2688
2689
2690 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2691echo "configure:2692: checking for --enable-permissive" >&5
2692 no_cache=0
2693 # Check whether --enable-permissive or --disable-permissive was given.
2694if test "${enable_permissive+set}" = set; then
2695 enableval="$enable_permissive"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2699 else
2700 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2701 fi
2702
2703else
2704
2705 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2713
2714fi
2715
2716
2717 eval "$ac_cv_use_permissive"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_PERMISSIVE" = yes; then
2723 echo "$ac_t""yes" 1>&6
2724 else
2725 echo "$ac_t""no" 1>&6
2726 fi
2727
2728
2729 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2730echo "configure:2731: checking for --enable-no_deps" >&5
2731 no_cache=0
2732 # Check whether --enable-no_deps or --disable-no_deps was given.
2733if test "${enable_no_deps+set}" = set; then
2734 enableval="$enable_no_deps"
2735
2736 if test "$enableval" = yes; then
2737 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2738 else
2739 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2740 fi
2741
2742else
2743
2744 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2745 if test "x$LINE" != x ; then
2746 eval "DEFAULT_$LINE"
2747 else
2748 no_cache=1
2749 fi
2750
2751 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2752
2753fi
2754
2755
2756 eval "$ac_cv_use_no_deps"
2757 if test "$no_cache" != 1; then
2758 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2759 fi
2760
2761 if test "$wxUSE_NO_DEPS" = yes; then
2762 echo "$ac_t""yes" 1>&6
2763 else
2764 echo "$ac_t""no" 1>&6
2765 fi
2766
2767
2768
2769 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2770echo "configure:2771: checking for --enable-compat20" >&5
2771 no_cache=0
2772 # Check whether --enable-compat20 or --disable-compat20 was given.
2773if test "${enable_compat20+set}" = set; then
2774 enableval="$enable_compat20"
2775
2776 if test "$enableval" = yes; then
2777 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2778 else
2779 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2780 fi
2781
2782else
2783
2784 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2785 if test "x$LINE" != x ; then
2786 eval "DEFAULT_$LINE"
2787 else
2788 no_cache=1
2789 fi
2790
2791 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2792
2793fi
2794
2795
2796 eval "$ac_cv_use_compat20"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2802 echo "$ac_t""yes" 1>&6
2803 else
2804 echo "$ac_t""no" 1>&6
2805 fi
2806
2807
2808 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2809echo "configure:2810: checking for --enable-compat22" >&5
2810 no_cache=0
2811 # Check whether --enable-compat22 or --disable-compat22 was given.
2812if test "${enable_compat22+set}" = set; then
2813 enableval="$enable_compat22"
2814
2815 if test "$enableval" = yes; then
2816 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2817 else
2818 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2819 fi
2820
2821else
2822
2823 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2824 if test "x$LINE" != x ; then
2825 eval "DEFAULT_$LINE"
2826 else
2827 no_cache=1
2828 fi
2829
2830 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2831
2832fi
2833
2834
2835 eval "$ac_cv_use_compat22"
2836 if test "$no_cache" != 1; then
2837 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2838 fi
2839
2840 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2841 echo "$ac_t""yes" 1>&6
2842 else
2843 echo "$ac_t""no" 1>&6
2844 fi
2845
2846
2847
2848
2849 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2850echo "configure:2851: checking for --enable-intl" >&5
2851 no_cache=0
2852 # Check whether --enable-intl or --disable-intl was given.
2853if test "${enable_intl+set}" = set; then
2854 enableval="$enable_intl"
2855
2856 if test "$enableval" = yes; then
2857 ac_cv_use_intl='wxUSE_INTL=yes'
2858 else
2859 ac_cv_use_intl='wxUSE_INTL=no'
2860 fi
2861
2862else
2863
2864 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2865 if test "x$LINE" != x ; then
2866 eval "DEFAULT_$LINE"
2867 else
2868 no_cache=1
2869 fi
2870
2871 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2872
2873fi
2874
2875
2876 eval "$ac_cv_use_intl"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$wxUSE_INTL" = yes; then
2882 echo "$ac_t""yes" 1>&6
2883 else
2884 echo "$ac_t""no" 1>&6
2885 fi
2886
2887
2888 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2889echo "configure:2890: checking for --enable-config" >&5
2890 no_cache=0
2891 # Check whether --enable-config or --disable-config was given.
2892if test "${enable_config+set}" = set; then
2893 enableval="$enable_config"
2894
2895 if test "$enableval" = yes; then
2896 ac_cv_use_config='wxUSE_CONFIG=yes'
2897 else
2898 ac_cv_use_config='wxUSE_CONFIG=no'
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2911
2912fi
2913
2914
2915 eval "$ac_cv_use_config"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_CONFIG" = yes; then
2921 echo "$ac_t""yes" 1>&6
2922 else
2923 echo "$ac_t""no" 1>&6
2924 fi
2925
2926
2927
2928 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2929echo "configure:2930: checking for --enable-sockets" >&5
2930 no_cache=0
2931 # Check whether --enable-sockets or --disable-sockets was given.
2932if test "${enable_sockets+set}" = set; then
2933 enableval="$enable_sockets"
2934
2935 if test "$enableval" = yes; then
2936 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2937 else
2938 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2939 fi
2940
2941else
2942
2943 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2944 if test "x$LINE" != x ; then
2945 eval "DEFAULT_$LINE"
2946 else
2947 no_cache=1
2948 fi
2949
2950 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2951
2952fi
2953
2954
2955 eval "$ac_cv_use_sockets"
2956 if test "$no_cache" != 1; then
2957 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2958 fi
2959
2960 if test "$wxUSE_SOCKETS" = yes; then
2961 echo "$ac_t""yes" 1>&6
2962 else
2963 echo "$ac_t""no" 1>&6
2964 fi
2965
2966
2967
2968 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
2969echo "configure:2970: checking for --enable-ipc" >&5
2970 no_cache=0
2971 # Check whether --enable-ipc or --disable-ipc was given.
2972if test "${enable_ipc+set}" = set; then
2973 enableval="$enable_ipc"
2974
2975 if test "$enableval" = yes; then
2976 ac_cv_use_ipc='wxUSE_IPC=yes'
2977 else
2978 ac_cv_use_ipc='wxUSE_IPC=no'
2979 fi
2980
2981else
2982
2983 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2984 if test "x$LINE" != x ; then
2985 eval "DEFAULT_$LINE"
2986 else
2987 no_cache=1
2988 fi
2989
2990 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2991
2992fi
2993
2994
2995 eval "$ac_cv_use_ipc"
2996 if test "$no_cache" != 1; then
2997 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2998 fi
2999
3000 if test "$wxUSE_IPC" = yes; then
3001 echo "$ac_t""yes" 1>&6
3002 else
3003 echo "$ac_t""no" 1>&6
3004 fi
3005
3006
3007
3008 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3009echo "configure:3010: checking for --enable-cmdline" >&5
3010 no_cache=0
3011 # Check whether --enable-cmdline or --disable-cmdline was given.
3012if test "${enable_cmdline+set}" = set; then
3013 enableval="$enable_cmdline"
3014
3015 if test "$enableval" = yes; then
3016 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3017 else
3018 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3019 fi
3020
3021else
3022
3023 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3024 if test "x$LINE" != x ; then
3025 eval "DEFAULT_$LINE"
3026 else
3027 no_cache=1
3028 fi
3029
3030 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3031
3032fi
3033
3034
3035 eval "$ac_cv_use_cmdline"
3036 if test "$no_cache" != 1; then
3037 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3038 fi
3039
3040 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3041 echo "$ac_t""yes" 1>&6
3042 else
3043 echo "$ac_t""no" 1>&6
3044 fi
3045
3046
3047 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3048echo "configure:3049: checking for --enable-datetime" >&5
3049 no_cache=0
3050 # Check whether --enable-datetime or --disable-datetime was given.
3051if test "${enable_datetime+set}" = set; then
3052 enableval="$enable_datetime"
3053
3054 if test "$enableval" = yes; then
3055 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3056 else
3057 ac_cv_use_datetime='wxUSE_DATETIME=no'
3058 fi
3059
3060else
3061
3062 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3063 if test "x$LINE" != x ; then
3064 eval "DEFAULT_$LINE"
3065 else
3066 no_cache=1
3067 fi
3068
3069 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3070
3071fi
3072
3073
3074 eval "$ac_cv_use_datetime"
3075 if test "$no_cache" != 1; then
3076 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3077 fi
3078
3079 if test "$wxUSE_DATETIME" = yes; then
3080 echo "$ac_t""yes" 1>&6
3081 else
3082 echo "$ac_t""no" 1>&6
3083 fi
3084
3085
3086 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3087echo "configure:3088: checking for --enable-timedate" >&5
3088 no_cache=0
3089 # Check whether --enable-timedate or --disable-timedate was given.
3090if test "${enable_timedate+set}" = set; then
3091 enableval="$enable_timedate"
3092
3093 if test "$enableval" = yes; then
3094 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3095 else
3096 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3109
3110fi
3111
3112
3113 eval "$ac_cv_use_timedate"
3114 if test "$no_cache" != 1; then
3115 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3116 fi
3117
3118 if test "$wxUSE_TIMEDATE" = yes; then
3119 echo "$ac_t""yes" 1>&6
3120 else
3121 echo "$ac_t""no" 1>&6
3122 fi
3123
3124
3125 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3126echo "configure:3127: checking for --enable-stopwatch" >&5
3127 no_cache=0
3128 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3129if test "${enable_stopwatch+set}" = set; then
3130 enableval="$enable_stopwatch"
3131
3132 if test "$enableval" = yes; then
3133 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3134 else
3135 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3136 fi
3137
3138else
3139
3140 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3141 if test "x$LINE" != x ; then
3142 eval "DEFAULT_$LINE"
3143 else
3144 no_cache=1
3145 fi
3146
3147 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3148
3149fi
3150
3151
3152 eval "$ac_cv_use_stopwatch"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_STOPWATCH" = yes; then
3158 echo "$ac_t""yes" 1>&6
3159 else
3160 echo "$ac_t""no" 1>&6
3161 fi
3162
3163
3164 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3165echo "configure:3166: checking for --enable-dialupman" >&5
3166 no_cache=0
3167 # Check whether --enable-dialupman or --disable-dialupman was given.
3168if test "${enable_dialupman+set}" = set; then
3169 enableval="$enable_dialupman"
3170
3171 if test "$enableval" = yes; then
3172 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3173 else
3174 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3175 fi
3176
3177else
3178
3179 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3180 if test "x$LINE" != x ; then
3181 eval "DEFAULT_$LINE"
3182 else
3183 no_cache=1
3184 fi
3185
3186 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3187
3188fi
3189
3190
3191 eval "$ac_cv_use_dialupman"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3197 echo "$ac_t""yes" 1>&6
3198 else
3199 echo "$ac_t""no" 1>&6
3200 fi
3201
3202
3203 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3204echo "configure:3205: checking for --enable-apple_ieee" >&5
3205 no_cache=0
3206 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3207if test "${enable_apple_ieee+set}" = set; then
3208 enableval="$enable_apple_ieee"
3209
3210 if test "$enableval" = yes; then
3211 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3212 else
3213 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3214 fi
3215
3216else
3217
3218 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3219 if test "x$LINE" != x ; then
3220 eval "DEFAULT_$LINE"
3221 else
3222 no_cache=1
3223 fi
3224
3225 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3226
3227fi
3228
3229
3230 eval "$ac_cv_use_apple_ieee"
3231 if test "$no_cache" != 1; then
3232 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3233 fi
3234
3235 if test "$wxUSE_APPLE_IEEE" = yes; then
3236 echo "$ac_t""yes" 1>&6
3237 else
3238 echo "$ac_t""no" 1>&6
3239 fi
3240
3241
3242 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3243echo "configure:3244: checking for --enable-timer" >&5
3244 no_cache=0
3245 # Check whether --enable-timer or --disable-timer was given.
3246if test "${enable_timer+set}" = set; then
3247 enableval="$enable_timer"
3248
3249 if test "$enableval" = yes; then
3250 ac_cv_use_timer='wxUSE_TIMER=yes'
3251 else
3252 ac_cv_use_timer='wxUSE_TIMER=no'
3253 fi
3254
3255else
3256
3257 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3258 if test "x$LINE" != x ; then
3259 eval "DEFAULT_$LINE"
3260 else
3261 no_cache=1
3262 fi
3263
3264 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3265
3266fi
3267
3268
3269 eval "$ac_cv_use_timer"
3270 if test "$no_cache" != 1; then
3271 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3272 fi
3273
3274 if test "$wxUSE_TIMER" = yes; then
3275 echo "$ac_t""yes" 1>&6
3276 else
3277 echo "$ac_t""no" 1>&6
3278 fi
3279
3280
3281 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3282echo "configure:3283: checking for --enable-wave" >&5
3283 no_cache=0
3284 # Check whether --enable-wave or --disable-wave was given.
3285if test "${enable_wave+set}" = set; then
3286 enableval="$enable_wave"
3287
3288 if test "$enableval" = yes; then
3289 ac_cv_use_wave='wxUSE_WAVE=yes'
3290 else
3291 ac_cv_use_wave='wxUSE_WAVE=no'
3292 fi
3293
3294else
3295
3296 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3304
3305fi
3306
3307
3308 eval "$ac_cv_use_wave"
3309 if test "$no_cache" != 1; then
3310 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3311 fi
3312
3313 if test "$wxUSE_WAVE" = yes; then
3314 echo "$ac_t""yes" 1>&6
3315 else
3316 echo "$ac_t""no" 1>&6
3317 fi
3318
3319
3320 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3321echo "configure:3322: checking for --enable-fraction" >&5
3322 no_cache=0
3323 # Check whether --enable-fraction or --disable-fraction was given.
3324if test "${enable_fraction+set}" = set; then
3325 enableval="$enable_fraction"
3326
3327 if test "$enableval" = yes; then
3328 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3329 else
3330 ac_cv_use_fraction='wxUSE_FRACTION=no'
3331 fi
3332
3333else
3334
3335 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3343
3344fi
3345
3346
3347 eval "$ac_cv_use_fraction"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_FRACTION" = yes; then
3353 echo "$ac_t""yes" 1>&6
3354 else
3355 echo "$ac_t""no" 1>&6
3356 fi
3357
3358
3359 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3360echo "configure:3361: checking for --enable-dynlib" >&5
3361 no_cache=0
3362 # Check whether --enable-dynlib or --disable-dynlib was given.
3363if test "${enable_dynlib+set}" = set; then
3364 enableval="$enable_dynlib"
3365
3366 if test "$enableval" = yes; then
3367 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3368 else
3369 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3370 fi
3371
3372else
3373
3374 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3375 if test "x$LINE" != x ; then
3376 eval "DEFAULT_$LINE"
3377 else
3378 no_cache=1
3379 fi
3380
3381 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3382
3383fi
3384
3385
3386 eval "$ac_cv_use_dynlib"
3387 if test "$no_cache" != 1; then
3388 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3389 fi
3390
3391 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3392 echo "$ac_t""yes" 1>&6
3393 else
3394 echo "$ac_t""no" 1>&6
3395 fi
3396
3397
3398 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3399echo "configure:3400: checking for --enable-longlong" >&5
3400 no_cache=0
3401 # Check whether --enable-longlong or --disable-longlong was given.
3402if test "${enable_longlong+set}" = set; then
3403 enableval="$enable_longlong"
3404
3405 if test "$enableval" = yes; then
3406 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3407 else
3408 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3409 fi
3410
3411else
3412
3413 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3421
3422fi
3423
3424
3425 eval "$ac_cv_use_longlong"
3426 if test "$no_cache" != 1; then
3427 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3428 fi
3429
3430 if test "$wxUSE_LONGLONG" = yes; then
3431 echo "$ac_t""yes" 1>&6
3432 else
3433 echo "$ac_t""no" 1>&6
3434 fi
3435
3436
3437 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3438echo "configure:3439: checking for --enable-geometry" >&5
3439 no_cache=0
3440 # Check whether --enable-geometry or --disable-geometry was given.
3441if test "${enable_geometry+set}" = set; then
3442 enableval="$enable_geometry"
3443
3444 if test "$enableval" = yes; then
3445 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3446 else
3447 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3448 fi
3449
3450else
3451
3452 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3453 if test "x$LINE" != x ; then
3454 eval "DEFAULT_$LINE"
3455 else
3456 no_cache=1
3457 fi
3458
3459 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3460
3461fi
3462
3463
3464 eval "$ac_cv_use_geometry"
3465 if test "$no_cache" != 1; then
3466 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3467 fi
3468
3469 if test "$wxUSE_GEOMETRY" = yes; then
3470 echo "$ac_t""yes" 1>&6
3471 else
3472 echo "$ac_t""no" 1>&6
3473 fi
3474
3475
3476 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3477echo "configure:3478: checking for --enable-log" >&5
3478 no_cache=0
3479 # Check whether --enable-log or --disable-log was given.
3480if test "${enable_log+set}" = set; then
3481 enableval="$enable_log"
3482
3483 if test "$enableval" = yes; then
3484 ac_cv_use_log='wxUSE_LOG=yes'
3485 else
3486 ac_cv_use_log='wxUSE_LOG=no'
3487 fi
3488
3489else
3490
3491 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3492 if test "x$LINE" != x ; then
3493 eval "DEFAULT_$LINE"
3494 else
3495 no_cache=1
3496 fi
3497
3498 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3499
3500fi
3501
3502
3503 eval "$ac_cv_use_log"
3504 if test "$no_cache" != 1; then
3505 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3506 fi
3507
3508 if test "$wxUSE_LOG" = yes; then
3509 echo "$ac_t""yes" 1>&6
3510 else
3511 echo "$ac_t""no" 1>&6
3512 fi
3513
3514
3515 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3516echo "configure:3517: checking for --enable-streams" >&5
3517 no_cache=0
3518 # Check whether --enable-streams or --disable-streams was given.
3519if test "${enable_streams+set}" = set; then
3520 enableval="$enable_streams"
3521
3522 if test "$enableval" = yes; then
3523 ac_cv_use_streams='wxUSE_STREAMS=yes'
3524 else
3525 ac_cv_use_streams='wxUSE_STREAMS=no'
3526 fi
3527
3528else
3529
3530 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3531 if test "x$LINE" != x ; then
3532 eval "DEFAULT_$LINE"
3533 else
3534 no_cache=1
3535 fi
3536
3537 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3538
3539fi
3540
3541
3542 eval "$ac_cv_use_streams"
3543 if test "$no_cache" != 1; then
3544 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3545 fi
3546
3547 if test "$wxUSE_STREAMS" = yes; then
3548 echo "$ac_t""yes" 1>&6
3549 else
3550 echo "$ac_t""no" 1>&6
3551 fi
3552
3553
3554 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3555echo "configure:3556: checking for --enable-file" >&5
3556 no_cache=0
3557 # Check whether --enable-file or --disable-file was given.
3558if test "${enable_file+set}" = set; then
3559 enableval="$enable_file"
3560
3561 if test "$enableval" = yes; then
3562 ac_cv_use_file='wxUSE_FILE=yes'
3563 else
3564 ac_cv_use_file='wxUSE_FILE=no'
3565 fi
3566
3567else
3568
3569 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3570 if test "x$LINE" != x ; then
3571 eval "DEFAULT_$LINE"
3572 else
3573 no_cache=1
3574 fi
3575
3576 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3577
3578fi
3579
3580
3581 eval "$ac_cv_use_file"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_FILE" = yes; then
3587 echo "$ac_t""yes" 1>&6
3588 else
3589 echo "$ac_t""no" 1>&6
3590 fi
3591
3592
3593 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3594echo "configure:3595: checking for --enable-ffile" >&5
3595 no_cache=0
3596 # Check whether --enable-ffile or --disable-ffile was given.
3597if test "${enable_ffile+set}" = set; then
3598 enableval="$enable_ffile"
3599
3600 if test "$enableval" = yes; then
3601 ac_cv_use_ffile='wxUSE_FFILE=yes'
3602 else
3603 ac_cv_use_ffile='wxUSE_FFILE=no'
3604 fi
3605
3606else
3607
3608 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3609 if test "x$LINE" != x ; then
3610 eval "DEFAULT_$LINE"
3611 else
3612 no_cache=1
3613 fi
3614
3615 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3616
3617fi
3618
3619
3620 eval "$ac_cv_use_ffile"
3621 if test "$no_cache" != 1; then
3622 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3623 fi
3624
3625 if test "$wxUSE_FFILE" = yes; then
3626 echo "$ac_t""yes" 1>&6
3627 else
3628 echo "$ac_t""no" 1>&6
3629 fi
3630
3631
3632 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3633echo "configure:3634: checking for --enable-textfile" >&5
3634 no_cache=0
3635 # Check whether --enable-textfile or --disable-textfile was given.
3636if test "${enable_textfile+set}" = set; then
3637 enableval="$enable_textfile"
3638
3639 if test "$enableval" = yes; then
3640 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3641 else
3642 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3643 fi
3644
3645else
3646
3647 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3648 if test "x$LINE" != x ; then
3649 eval "DEFAULT_$LINE"
3650 else
3651 no_cache=1
3652 fi
3653
3654 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3655
3656fi
3657
3658
3659 eval "$ac_cv_use_textfile"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_TEXTFILE" = yes; then
3665 echo "$ac_t""yes" 1>&6
3666 else
3667 echo "$ac_t""no" 1>&6
3668 fi
3669
3670
3671 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3672echo "configure:3673: checking for --enable-fontmap" >&5
3673 no_cache=0
3674 # Check whether --enable-fontmap or --disable-fontmap was given.
3675if test "${enable_fontmap+set}" = set; then
3676 enableval="$enable_fontmap"
3677
3678 if test "$enableval" = yes; then
3679 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3680 else
3681 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3682 fi
3683
3684else
3685
3686 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
3693 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3694
3695fi
3696
3697
3698 eval "$ac_cv_use_fontmap"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_FONTMAP" = yes; then
3704 echo "$ac_t""yes" 1>&6
3705 else
3706 echo "$ac_t""no" 1>&6
3707 fi
3708
3709
3710 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3711echo "configure:3712: checking for --enable-unicode" >&5
3712 no_cache=0
3713 # Check whether --enable-unicode or --disable-unicode was given.
3714if test "${enable_unicode+set}" = set; then
3715 enableval="$enable_unicode"
3716
3717 if test "$enableval" = yes; then
3718 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3719 else
3720 ac_cv_use_unicode='wxUSE_UNICODE=no'
3721 fi
3722
3723else
3724
3725 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3733
3734fi
3735
3736
3737 eval "$ac_cv_use_unicode"
3738 if test "$no_cache" != 1; then
3739 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3740 fi
3741
3742 if test "$wxUSE_UNICODE" = yes; then
3743 echo "$ac_t""yes" 1>&6
3744 else
3745 echo "$ac_t""no" 1>&6
3746 fi
3747
3748
3749 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3750echo "configure:3751: checking for --enable-wcsrtombs" >&5
3751 no_cache=0
3752 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3753if test "${enable_wcsrtombs+set}" = set; then
3754 enableval="$enable_wcsrtombs"
3755
3756 if test "$enableval" = yes; then
3757 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3758 else
3759 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3760 fi
3761
3762else
3763
3764 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3765 if test "x$LINE" != x ; then
3766 eval "DEFAULT_$LINE"
3767 else
3768 no_cache=1
3769 fi
3770
3771 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3772
3773fi
3774
3775
3776 eval "$ac_cv_use_wcsrtombs"
3777 if test "$no_cache" != 1; then
3778 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3779 fi
3780
3781 if test "$wxUSE_WCSRTOMBS" = yes; then
3782 echo "$ac_t""yes" 1>&6
3783 else
3784 echo "$ac_t""no" 1>&6
3785 fi
3786
3787
3788 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3789echo "configure:3790: checking for --enable-wxprintfv" >&5
3790 no_cache=0
3791 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3792if test "${enable_wxprintfv+set}" = set; then
3793 enableval="$enable_wxprintfv"
3794
3795 if test "$enableval" = yes; then
3796 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3797 else
3798 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3799 fi
3800
3801else
3802
3803 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3811
3812fi
3813
3814
3815 eval "$ac_cv_use_wxprintfv"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3821 echo "$ac_t""yes" 1>&6
3822 else
3823 echo "$ac_t""no" 1>&6
3824 fi
3825
3826
3827 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3828echo "configure:3829: checking for --enable-std_iostreams" >&5
3829 no_cache=0
3830 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3831if test "${enable_std_iostreams+set}" = set; then
3832 enableval="$enable_std_iostreams"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3836 else
3837 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3850
3851fi
3852
3853
3854 eval "$ac_cv_use_std_iostreams"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_STD_IOSTREAM" = yes; then
3860 echo "$ac_t""yes" 1>&6
3861 else
3862 echo "$ac_t""no" 1>&6
3863 fi
3864
3865
3866 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3867echo "configure:3868: checking for --enable-filesystem" >&5
3868 no_cache=0
3869 # Check whether --enable-filesystem or --disable-filesystem was given.
3870if test "${enable_filesystem+set}" = set; then
3871 enableval="$enable_filesystem"
3872
3873 if test "$enableval" = yes; then
3874 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3875 else
3876 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3877 fi
3878
3879else
3880
3881 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3882 if test "x$LINE" != x ; then
3883 eval "DEFAULT_$LINE"
3884 else
3885 no_cache=1
3886 fi
3887
3888 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3889
3890fi
3891
3892
3893 eval "$ac_cv_use_filesystem"
3894 if test "$no_cache" != 1; then
3895 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3896 fi
3897
3898 if test "$wxUSE_FILESYSTEM" = yes; then
3899 echo "$ac_t""yes" 1>&6
3900 else
3901 echo "$ac_t""no" 1>&6
3902 fi
3903
3904
3905 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3906echo "configure:3907: checking for --enable-fs_inet" >&5
3907 no_cache=0
3908 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3909if test "${enable_fs_inet+set}" = set; then
3910 enableval="$enable_fs_inet"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3914 else
3915 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3916 fi
3917
3918else
3919
3920 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3928
3929fi
3930
3931
3932 eval "$ac_cv_use_fs_inet"
3933 if test "$no_cache" != 1; then
3934 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3935 fi
3936
3937 if test "$wxUSE_FS_INET" = yes; then
3938 echo "$ac_t""yes" 1>&6
3939 else
3940 echo "$ac_t""no" 1>&6
3941 fi
3942
3943
3944 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3945echo "configure:3946: checking for --enable-fs_zip" >&5
3946 no_cache=0
3947 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3948if test "${enable_fs_zip+set}" = set; then
3949 enableval="$enable_fs_zip"
3950
3951 if test "$enableval" = yes; then
3952 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3953 else
3954 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3955 fi
3956
3957else
3958
3959 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3960 if test "x$LINE" != x ; then
3961 eval "DEFAULT_$LINE"
3962 else
3963 no_cache=1
3964 fi
3965
3966 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3967
3968fi
3969
3970
3971 eval "$ac_cv_use_fs_zip"
3972 if test "$no_cache" != 1; then
3973 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3974 fi
3975
3976 if test "$wxUSE_FS_ZIP" = yes; then
3977 echo "$ac_t""yes" 1>&6
3978 else
3979 echo "$ac_t""no" 1>&6
3980 fi
3981
3982
3983 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3984echo "configure:3985: checking for --enable-zipstream" >&5
3985 no_cache=0
3986 # Check whether --enable-zipstream or --disable-zipstream was given.
3987if test "${enable_zipstream+set}" = set; then
3988 enableval="$enable_zipstream"
3989
3990 if test "$enableval" = yes; then
3991 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3992 else
3993 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3994 fi
3995
3996else
3997
3998 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4006
4007fi
4008
4009
4010 eval "$ac_cv_use_zipstream"
4011 if test "$no_cache" != 1; then
4012 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4013 fi
4014
4015 if test "$wxUSE_ZIPSTREAM" = yes; then
4016 echo "$ac_t""yes" 1>&6
4017 else
4018 echo "$ac_t""no" 1>&6
4019 fi
4020
4021
4022
4023 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4024echo "configure:4025: checking for --enable-catch_segvs" >&5
4025 no_cache=0
4026 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4027if test "${enable_catch_segvs+set}" = set; then
4028 enableval="$enable_catch_segvs"
4029
4030 if test "$enableval" = yes; then
4031 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4032 else
4033 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4034 fi
4035
4036else
4037
4038 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4039 if test "x$LINE" != x ; then
4040 eval "DEFAULT_$LINE"
4041 else
4042 no_cache=1
4043 fi
4044
4045 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4046
4047fi
4048
4049
4050 eval "$ac_cv_use_catch_segvs"
4051 if test "$no_cache" != 1; then
4052 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4053 fi
4054
4055 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4056 echo "$ac_t""yes" 1>&6
4057 else
4058 echo "$ac_t""no" 1>&6
4059 fi
4060
4061
4062 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4063echo "configure:4064: checking for --enable-snglinst" >&5
4064 no_cache=0
4065 # Check whether --enable-snglinst or --disable-snglinst was given.
4066if test "${enable_snglinst+set}" = set; then
4067 enableval="$enable_snglinst"
4068
4069 if test "$enableval" = yes; then
4070 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4071 else
4072 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4073 fi
4074
4075else
4076
4077 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4085
4086fi
4087
4088
4089 eval "$ac_cv_use_snglinst"
4090 if test "$no_cache" != 1; then
4091 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4092 fi
4093
4094 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4095 echo "$ac_t""yes" 1>&6
4096 else
4097 echo "$ac_t""no" 1>&6
4098 fi
4099
4100
4101
4102 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4103echo "configure:4104: checking for --enable-mimetype" >&5
4104 no_cache=0
4105 # Check whether --enable-mimetype or --disable-mimetype was given.
4106if test "${enable_mimetype+set}" = set; then
4107 enableval="$enable_mimetype"
4108
4109 if test "$enableval" = yes; then
4110 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4111 else
4112 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4113 fi
4114
4115else
4116
4117 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4118 if test "x$LINE" != x ; then
4119 eval "DEFAULT_$LINE"
4120 else
4121 no_cache=1
4122 fi
4123
4124 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4125
4126fi
4127
4128
4129 eval "$ac_cv_use_mimetype"
4130 if test "$no_cache" != 1; then
4131 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4132 fi
4133
4134 if test "$wxUSE_MIMETYPE" = yes; then
4135 echo "$ac_t""yes" 1>&6
4136 else
4137 echo "$ac_t""no" 1>&6
4138 fi
4139
4140
4141 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4142echo "configure:4143: checking for --enable-system_options" >&5
4143 no_cache=0
4144 # Check whether --enable-system_options or --disable-system_options was given.
4145if test "${enable_system_options+set}" = set; then
4146 enableval="$enable_system_options"
4147
4148 if test "$enableval" = yes; then
4149 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4150 else
4151 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4152 fi
4153
4154else
4155
4156 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4157 if test "x$LINE" != x ; then
4158 eval "DEFAULT_$LINE"
4159 else
4160 no_cache=1
4161 fi
4162
4163 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4164
4165fi
4166
4167
4168 eval "$ac_cv_use_system_options"
4169 if test "$no_cache" != 1; then
4170 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4171 fi
4172
4173 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4174 echo "$ac_t""yes" 1>&6
4175 else
4176 echo "$ac_t""no" 1>&6
4177 fi
4178
4179
4180
4181
4182 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4183echo "configure:4184: checking for --enable-threads" >&5
4184 no_cache=0
4185 # Check whether --enable-threads or --disable-threads was given.
4186if test "${enable_threads+set}" = set; then
4187 enableval="$enable_threads"
4188
4189 if test "$enableval" = yes; then
4190 ac_cv_use_threads='wxUSE_THREADS=yes'
4191 else
4192 ac_cv_use_threads='wxUSE_THREADS=no'
4193 fi
4194
4195else
4196
4197 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4205
4206fi
4207
4208
4209 eval "$ac_cv_use_threads"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_THREADS" = yes; then
4215 echo "$ac_t""yes" 1>&6
4216 else
4217 echo "$ac_t""no" 1>&6
4218 fi
4219
4220
4221 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4222echo "configure:4223: checking for --enable-serial" >&5
4223 no_cache=0
4224 # Check whether --enable-serial or --disable-serial was given.
4225if test "${enable_serial+set}" = set; then
4226 enableval="$enable_serial"
4227
4228 if test "$enableval" = yes; then
4229 ac_cv_use_serial='wxUSE_SERIAL=yes'
4230 else
4231 ac_cv_use_serial='wxUSE_SERIAL=no'
4232 fi
4233
4234else
4235
4236 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4237 if test "x$LINE" != x ; then
4238 eval "DEFAULT_$LINE"
4239 else
4240 no_cache=1
4241 fi
4242
4243 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4244
4245fi
4246
4247
4248 eval "$ac_cv_use_serial"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_SERIAL" = yes; then
4254 echo "$ac_t""yes" 1>&6
4255 else
4256 echo "$ac_t""no" 1>&6
4257 fi
4258
4259
4260if test "$wxUSE_GUI" = "yes"; then
4261
4262
4263
4264 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4265echo "configure:4266: checking for --enable-docview" >&5
4266 no_cache=0
4267 # Check whether --enable-docview or --disable-docview was given.
4268if test "${enable_docview+set}" = set; then
4269 enableval="$enable_docview"
4270
4271 if test "$enableval" = yes; then
4272 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4273 else
4274 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4275 fi
4276
4277else
4278
4279 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4280 if test "x$LINE" != x ; then
4281 eval "DEFAULT_$LINE"
4282 else
4283 no_cache=1
4284 fi
4285
4286 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4287
4288fi
4289
4290
4291 eval "$ac_cv_use_docview"
4292 if test "$no_cache" != 1; then
4293 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4294 fi
4295
4296 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4297 echo "$ac_t""yes" 1>&6
4298 else
4299 echo "$ac_t""no" 1>&6
4300 fi
4301
4302
4303 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4304echo "configure:4305: checking for --enable-help" >&5
4305 no_cache=0
4306 # Check whether --enable-help or --disable-help was given.
4307if test "${enable_help+set}" = set; then
4308 enableval="$enable_help"
4309
4310 if test "$enableval" = yes; then
4311 ac_cv_use_help='wxUSE_HELP=yes'
4312 else
4313 ac_cv_use_help='wxUSE_HELP=no'
4314 fi
4315
4316else
4317
4318 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4319 if test "x$LINE" != x ; then
4320 eval "DEFAULT_$LINE"
4321 else
4322 no_cache=1
4323 fi
4324
4325 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4326
4327fi
4328
4329
4330 eval "$ac_cv_use_help"
4331 if test "$no_cache" != 1; then
4332 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4333 fi
4334
4335 if test "$wxUSE_HELP" = yes; then
4336 echo "$ac_t""yes" 1>&6
4337 else
4338 echo "$ac_t""no" 1>&6
4339 fi
4340
4341
4342 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4343echo "configure:4344: checking for --enable-mshtmlhelp" >&5
4344 no_cache=0
4345 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4346if test "${enable_mshtmlhelp+set}" = set; then
4347 enableval="$enable_mshtmlhelp"
4348
4349 if test "$enableval" = yes; then
4350 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4351 else
4352 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4353 fi
4354
4355else
4356
4357 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
4364 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4365
4366fi
4367
4368
4369 eval "$ac_cv_use_mshtmlhelp"
4370 if test "$no_cache" != 1; then
4371 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4372 fi
4373
4374 if test "$wxUSE_MS_HTML_HELP" = yes; then
4375 echo "$ac_t""yes" 1>&6
4376 else
4377 echo "$ac_t""no" 1>&6
4378 fi
4379
4380
4381 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4382echo "configure:4383: checking for --enable-html" >&5
4383 no_cache=0
4384 # Check whether --enable-html or --disable-html was given.
4385if test "${enable_html+set}" = set; then
4386 enableval="$enable_html"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_html='wxUSE_HTML=yes'
4390 else
4391 ac_cv_use_html='wxUSE_HTML=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4404
4405fi
4406
4407
4408 eval "$ac_cv_use_html"
4409 if test "$no_cache" != 1; then
4410 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4411 fi
4412
4413 if test "$wxUSE_HTML" = yes; then
4414 echo "$ac_t""yes" 1>&6
4415 else
4416 echo "$ac_t""no" 1>&6
4417 fi
4418
4419
4420 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4421echo "configure:4422: checking for --enable-htmlhelp" >&5
4422 no_cache=0
4423 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4424if test "${enable_htmlhelp+set}" = set; then
4425 enableval="$enable_htmlhelp"
4426
4427 if test "$enableval" = yes; then
4428 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4429 else
4430 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4431 fi
4432
4433else
4434
4435 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4443
4444fi
4445
4446
4447 eval "$ac_cv_use_htmlhelp"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_WXHTML_HELP" = yes; then
4453 echo "$ac_t""yes" 1>&6
4454 else
4455 echo "$ac_t""no" 1>&6
4456 fi
4457
4458
4459 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4460echo "configure:4461: checking for --enable-constraints" >&5
4461 no_cache=0
4462 # Check whether --enable-constraints or --disable-constraints was given.
4463if test "${enable_constraints+set}" = set; then
4464 enableval="$enable_constraints"
4465
4466 if test "$enableval" = yes; then
4467 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4468 else
4469 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4470 fi
4471
4472else
4473
4474 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4482
4483fi
4484
4485
4486 eval "$ac_cv_use_constraints"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_CONSTRAINTS" = yes; then
4492 echo "$ac_t""yes" 1>&6
4493 else
4494 echo "$ac_t""no" 1>&6
4495 fi
4496
4497
4498 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4499echo "configure:4500: checking for --enable-printarch" >&5
4500 no_cache=0
4501 # Check whether --enable-printarch or --disable-printarch was given.
4502if test "${enable_printarch+set}" = set; then
4503 enableval="$enable_printarch"
4504
4505 if test "$enableval" = yes; then
4506 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4507 else
4508 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4509 fi
4510
4511else
4512
4513 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4514 if test "x$LINE" != x ; then
4515 eval "DEFAULT_$LINE"
4516 else
4517 no_cache=1
4518 fi
4519
4520 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4521
4522fi
4523
4524
4525 eval "$ac_cv_use_printarch"
4526 if test "$no_cache" != 1; then
4527 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4528 fi
4529
4530 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4531 echo "$ac_t""yes" 1>&6
4532 else
4533 echo "$ac_t""no" 1>&6
4534 fi
4535
4536
4537 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4538echo "configure:4539: checking for --enable-mdi" >&5
4539 no_cache=0
4540 # Check whether --enable-mdi or --disable-mdi was given.
4541if test "${enable_mdi+set}" = set; then
4542 enableval="$enable_mdi"
4543
4544 if test "$enableval" = yes; then
4545 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4546 else
4547 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4548 fi
4549
4550else
4551
4552 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
4559 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4560
4561fi
4562
4563
4564 eval "$ac_cv_use_mdi"
4565 if test "$no_cache" != 1; then
4566 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4567 fi
4568
4569 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4570 echo "$ac_t""yes" 1>&6
4571 else
4572 echo "$ac_t""no" 1>&6
4573 fi
4574
4575
4576 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4577echo "configure:4578: checking for --enable-loggui" >&5
4578 no_cache=0
4579 # Check whether --enable-loggui or --disable-loggui was given.
4580if test "${enable_loggui+set}" = set; then
4581 enableval="$enable_loggui"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4585 else
4586 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4587 fi
4588
4589else
4590
4591 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4599
4600fi
4601
4602
4603 eval "$ac_cv_use_loggui"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_LOGGUI" = yes; then
4609 echo "$ac_t""yes" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614
4615 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4616echo "configure:4617: checking for --enable-logwin" >&5
4617 no_cache=0
4618 # Check whether --enable-logwin or --disable-logwin was given.
4619if test "${enable_logwin+set}" = set; then
4620 enableval="$enable_logwin"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4624 else
4625 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4638
4639fi
4640
4641
4642 eval "$ac_cv_use_logwin"
4643 if test "$no_cache" != 1; then
4644 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4645 fi
4646
4647 if test "$wxUSE_LOGWINDOW" = yes; then
4648 echo "$ac_t""yes" 1>&6
4649 else
4650 echo "$ac_t""no" 1>&6
4651 fi
4652
4653
4654
4655 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4656echo "configure:4657: checking for --enable-postscript" >&5
4657 no_cache=0
4658 # Check whether --enable-postscript or --disable-postscript was given.
4659if test "${enable_postscript+set}" = set; then
4660 enableval="$enable_postscript"
4661
4662 if test "$enableval" = yes; then
4663 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4664 else
4665 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4666 fi
4667
4668else
4669
4670 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
4677 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4678
4679fi
4680
4681
4682 eval "$ac_cv_use_postscript"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4685 fi
4686
4687 if test "$wxUSE_POSTSCRIPT" = yes; then
4688 echo "$ac_t""yes" 1>&6
4689 else
4690 echo "$ac_t""no" 1>&6
4691 fi
4692
4693
4694
4695
4696
4697 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4698echo "configure:4699: checking for --enable-prologio" >&5
4699 no_cache=0
4700 # Check whether --enable-prologio or --disable-prologio was given.
4701if test "${enable_prologio+set}" = set; then
4702 enableval="$enable_prologio"
4703
4704 if test "$enableval" = yes; then
4705 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4706 else
4707 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4708 fi
4709
4710else
4711
4712 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
4719 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4720
4721fi
4722
4723
4724 eval "$ac_cv_use_prologio"
4725 if test "$no_cache" != 1; then
4726 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4727 fi
4728
4729 if test "$wxUSE_PROLOGIO" = yes; then
4730 echo "$ac_t""yes" 1>&6
4731 else
4732 echo "$ac_t""no" 1>&6
4733 fi
4734
4735
4736 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4737echo "configure:4738: checking for --enable-resources" >&5
4738 no_cache=0
4739 # Check whether --enable-resources or --disable-resources was given.
4740if test "${enable_resources+set}" = set; then
4741 enableval="$enable_resources"
4742
4743 if test "$enableval" = yes; then
4744 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4745 else
4746 ac_cv_use_resources='wxUSE_RESOURCES=no'
4747 fi
4748
4749else
4750
4751 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4752 if test "x$LINE" != x ; then
4753 eval "DEFAULT_$LINE"
4754 else
4755 no_cache=1
4756 fi
4757
4758 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4759
4760fi
4761
4762
4763 eval "$ac_cv_use_resources"
4764 if test "$no_cache" != 1; then
4765 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4766 fi
4767
4768 if test "$wxUSE_RESOURCES" = yes; then
4769 echo "$ac_t""yes" 1>&6
4770 else
4771 echo "$ac_t""no" 1>&6
4772 fi
4773
4774
4775
4776 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4777echo "configure:4778: checking for --enable-xresources" >&5
4778 no_cache=0
4779 # Check whether --enable-xresources or --disable-xresources was given.
4780if test "${enable_xresources+set}" = set; then
4781 enableval="$enable_xresources"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4785 else
4786 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4787 fi
4788
4789else
4790
4791 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4799
4800fi
4801
4802
4803 eval "$ac_cv_use_xresources"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_X_RESOURCES" = yes; then
4809 echo "$ac_t""yes" 1>&6
4810 else
4811 echo "$ac_t""no" 1>&6
4812 fi
4813
4814
4815
4816
4817 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4818echo "configure:4819: checking for --enable-clipboard" >&5
4819 no_cache=0
4820 # Check whether --enable-clipboard or --disable-clipboard was given.
4821if test "${enable_clipboard+set}" = set; then
4822 enableval="$enable_clipboard"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4826 else
4827 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4828 fi
4829
4830else
4831
4832 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4840
4841fi
4842
4843
4844 eval "$ac_cv_use_clipboard"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_CLIPBOARD" = yes; then
4850 echo "$ac_t""yes" 1>&6
4851 else
4852 echo "$ac_t""no" 1>&6
4853 fi
4854
4855
4856 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4857echo "configure:4858: checking for --enable-dnd" >&5
4858 no_cache=0
4859 # Check whether --enable-dnd or --disable-dnd was given.
4860if test "${enable_dnd+set}" = set; then
4861 enableval="$enable_dnd"
4862
4863 if test "$enableval" = yes; then
4864 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4865 else
4866 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4867 fi
4868
4869else
4870
4871 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4879
4880fi
4881
4882
4883 eval "$ac_cv_use_dnd"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4889 echo "$ac_t""yes" 1>&6
4890 else
4891 echo "$ac_t""no" 1>&6
4892 fi
4893
4894
4895 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4896echo "configure:4897: checking for --enable-metafile" >&5
4897 no_cache=0
4898 # Check whether --enable-metafile or --disable-metafile was given.
4899if test "${enable_metafile+set}" = set; then
4900 enableval="$enable_metafile"
4901
4902 if test "$enableval" = yes; then
4903 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4904 else
4905 ac_cv_use_metafile='wxUSE_METAFILE=no'
4906 fi
4907
4908else
4909
4910 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4918
4919fi
4920
4921
4922 eval "$ac_cv_use_metafile"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_METAFILE" = yes; then
4928 echo "$ac_t""yes" 1>&6
4929 else
4930 echo "$ac_t""no" 1>&6
4931 fi
4932
4933
4934
4935 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4936echo "configure:4937: checking for --enable-treelayout" >&5
4937 no_cache=0
4938 # Check whether --enable-treelayout or --disable-treelayout was given.
4939if test "${enable_treelayout+set}" = set; then
4940 enableval="$enable_treelayout"
4941
4942 if test "$enableval" = yes; then
4943 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4944 else
4945 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4946 fi
4947
4948else
4949
4950 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4951 if test "x$LINE" != x ; then
4952 eval "DEFAULT_$LINE"
4953 else
4954 no_cache=1
4955 fi
4956
4957 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4958
4959fi
4960
4961
4962 eval "$ac_cv_use_treelayout"
4963 if test "$no_cache" != 1; then
4964 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
4965 fi
4966
4967 if test "$wxUSE_TREELAYOUT" = yes; then
4968 echo "$ac_t""yes" 1>&6
4969 else
4970 echo "$ac_t""no" 1>&6
4971 fi
4972
4973
4974
4975
4976 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4977echo "configure:4978: checking for --enable-controls" >&5
4978 no_cache=0
4979 # Check whether --enable-controls or --disable-controls was given.
4980if test "${enable_controls+set}" = set; then
4981 enableval="$enable_controls"
4982
4983 if test "$enableval" = yes; then
4984 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4985 else
4986 ac_cv_use_controls='wxUSE_CONTROLS=no'
4987 fi
4988
4989else
4990
4991 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4992 if test "x$LINE" != x ; then
4993 eval "DEFAULT_$LINE"
4994 else
4995 no_cache=1
4996 fi
4997
4998 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4999
5000fi
5001
5002
5003 eval "$ac_cv_use_controls"
5004 if test "$no_cache" != 1; then
5005 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5006 fi
5007
5008 if test "$wxUSE_CONTROLS" = yes; then
5009 echo "$ac_t""yes" 1>&6
5010 else
5011 echo "$ac_t""no" 1>&6
5012 fi
5013
5014
5015if test "$wxUSE_CONTROLS" = "yes"; then
5016 DEFAULT_wxUSE_ACCEL=yes
5017 DEFAULT_wxUSE_BMPBUTTON=yes
5018 DEFAULT_wxUSE_BUTTON=yes
5019 DEFAULT_wxUSE_CALCTRL=no
5020 DEFAULT_wxUSE_CARET=yes
5021 DEFAULT_wxUSE_COMBOBOX=yes
5022 DEFAULT_wxUSE_CHECKBOX=yes
5023 DEFAULT_wxUSE_CHECKLISTBOX=yes
5024 DEFAULT_wxUSE_CHOICE=yes
5025 DEFAULT_wxUSE_GAUGE=yes
5026 DEFAULT_wxUSE_GRID=yes
5027 DEFAULT_wxUSE_NEW_GRID=yes
5028 DEFAULT_wxUSE_IMAGLIST=yes
5029 DEFAULT_wxUSE_LISTBOX=yes
5030 DEFAULT_wxUSE_LISTCTRL=yes
5031 DEFAULT_wxUSE_NOTEBOOK=yes
5032 DEFAULT_wxUSE_PROPSHEET=yes
5033 DEFAULT_wxUSE_RADIOBOX=yes
5034 DEFAULT_wxUSE_RADIOBTN=yes
5035 DEFAULT_wxUSE_SASH=yes
5036 DEFAULT_wxUSE_SCROLLBAR=yes
5037 DEFAULT_wxUSE_SLIDER=yes
5038 DEFAULT_wxUSE_SPINBTN=yes
5039 DEFAULT_wxUSE_SPINCTRL=yes
5040 DEFAULT_wxUSE_SPLITTER=yes
5041 DEFAULT_wxUSE_STATBMP=yes
5042 DEFAULT_wxUSE_STATBOX=yes
5043 DEFAULT_wxUSE_STATLINE=yes
5044 DEFAULT_wxUSE_STATUSBAR=yes
5045 DEFAULT_wxUSE_TAB_DIALOG=yes
5046 DEFAULT_wxUSE_TOGGLEBTN=yes
5047 DEFAULT_wxUSE_TOOLBAR=yes
5048 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5049 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5050 DEFAULT_wxUSE_TOOLTIPS=yes
5051 DEFAULT_wxUSE_TREECTRL=yes
5052 DEFAULT_wxUSE_POPUPWIN=yes
5053elif test "$wxUSE_CONTROLS" = "no"; then
5054 DEFAULT_wxUSE_ACCEL=no
5055 DEFAULT_wxUSE_BMPBUTTON=no
5056 DEFAULT_wxUSE_BUTTON=no
5057 DEFAULT_wxUSE_CALCTRL=no
5058 DEFAULT_wxUSE_CARET=no
5059 DEFAULT_wxUSE_COMBOBOX=no
5060 DEFAULT_wxUSE_CHECKBOX=no
5061 DEFAULT_wxUSE_CHECKLISTBOX=no
5062 DEFAULT_wxUSE_CHOICE=no
5063 DEFAULT_wxUSE_GAUGE=no
5064 DEFAULT_wxUSE_GRID=no
5065 DEFAULT_wxUSE_NEW_GRID=no
5066 DEFAULT_wxUSE_IMAGLIST=no
5067 DEFAULT_wxUSE_LISTBOX=no
5068 DEFAULT_wxUSE_LISTCTRL=no
5069 DEFAULT_wxUSE_NOTEBOOK=no
5070 DEFAULT_wxUSE_PROPSHEET=no
5071 DEFAULT_wxUSE_RADIOBOX=no
5072 DEFAULT_wxUSE_RADIOBTN=no
5073 DEFAULT_wxUSE_SASH=no
5074 DEFAULT_wxUSE_SCROLLBAR=no
5075 DEFAULT_wxUSE_SLIDER=no
5076 DEFAULT_wxUSE_SPINBTN=no
5077 DEFAULT_wxUSE_SPINCTRL=no
5078 DEFAULT_wxUSE_SPLITTER=no
5079 DEFAULT_wxUSE_STATBMP=no
5080 DEFAULT_wxUSE_STATBOX=no
5081 DEFAULT_wxUSE_STATLINE=no
5082 DEFAULT_wxUSE_STATUSBAR=no
5083 DEFAULT_wxUSE_TAB_DIALOG=no
5084 DEFAULT_wxUSE_TOGGLEBTN=no
5085 DEFAULT_wxUSE_TOOLBAR=no
5086 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5087 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5088 DEFAULT_wxUSE_TOOLTIPS=no
5089 DEFAULT_wxUSE_TREECTRL=no
5090 DEFAULT_wxUSE_POPUPWIN=no
5091fi
5092
5093
5094 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5095echo "configure:5096: checking for --enable-accel" >&5
5096 no_cache=0
5097 # Check whether --enable-accel or --disable-accel was given.
5098if test "${enable_accel+set}" = set; then
5099 enableval="$enable_accel"
5100
5101 if test "$enableval" = yes; then
5102 ac_cv_use_accel='wxUSE_ACCEL=yes'
5103 else
5104 ac_cv_use_accel='wxUSE_ACCEL=no'
5105 fi
5106
5107else
5108
5109 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5110 if test "x$LINE" != x ; then
5111 eval "DEFAULT_$LINE"
5112 else
5113 no_cache=1
5114 fi
5115
5116 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5117
5118fi
5119
5120
5121 eval "$ac_cv_use_accel"
5122 if test "$no_cache" != 1; then
5123 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5124 fi
5125
5126 if test "$wxUSE_ACCEL" = yes; then
5127 echo "$ac_t""yes" 1>&6
5128 else
5129 echo "$ac_t""no" 1>&6
5130 fi
5131
5132
5133 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5134echo "configure:5135: checking for --enable-button" >&5
5135 no_cache=0
5136 # Check whether --enable-button or --disable-button was given.
5137if test "${enable_button+set}" = set; then
5138 enableval="$enable_button"
5139
5140 if test "$enableval" = yes; then
5141 ac_cv_use_button='wxUSE_BUTTON=yes'
5142 else
5143 ac_cv_use_button='wxUSE_BUTTON=no'
5144 fi
5145
5146else
5147
5148 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5149 if test "x$LINE" != x ; then
5150 eval "DEFAULT_$LINE"
5151 else
5152 no_cache=1
5153 fi
5154
5155 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5156
5157fi
5158
5159
5160 eval "$ac_cv_use_button"
5161 if test "$no_cache" != 1; then
5162 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5163 fi
5164
5165 if test "$wxUSE_BUTTON" = yes; then
5166 echo "$ac_t""yes" 1>&6
5167 else
5168 echo "$ac_t""no" 1>&6
5169 fi
5170
5171
5172 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5173echo "configure:5174: checking for --enable-bmpbutton" >&5
5174 no_cache=0
5175 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5176if test "${enable_bmpbutton+set}" = set; then
5177 enableval="$enable_bmpbutton"
5178
5179 if test "$enableval" = yes; then
5180 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5181 else
5182 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5183 fi
5184
5185else
5186
5187 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5188 if test "x$LINE" != x ; then
5189 eval "DEFAULT_$LINE"
5190 else
5191 no_cache=1
5192 fi
5193
5194 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5195
5196fi
5197
5198
5199 eval "$ac_cv_use_bmpbutton"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_BMPBUTTON" = yes; then
5205 echo "$ac_t""yes" 1>&6
5206 else
5207 echo "$ac_t""no" 1>&6
5208 fi
5209
5210
5211 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5212echo "configure:5213: checking for --enable-calendar" >&5
5213 no_cache=0
5214 # Check whether --enable-calendar or --disable-calendar was given.
5215if test "${enable_calendar+set}" = set; then
5216 enableval="$enable_calendar"
5217
5218 if test "$enableval" = yes; then
5219 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5220 else
5221 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5222 fi
5223
5224else
5225
5226 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5234
5235fi
5236
5237
5238 eval "$ac_cv_use_calendar"
5239 if test "$no_cache" != 1; then
5240 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5241 fi
5242
5243 if test "$wxUSE_CALCTRL" = yes; then
5244 echo "$ac_t""yes" 1>&6
5245 else
5246 echo "$ac_t""no" 1>&6
5247 fi
5248
5249
5250 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5251echo "configure:5252: checking for --enable-caret" >&5
5252 no_cache=0
5253 # Check whether --enable-caret or --disable-caret was given.
5254if test "${enable_caret+set}" = set; then
5255 enableval="$enable_caret"
5256
5257 if test "$enableval" = yes; then
5258 ac_cv_use_caret='wxUSE_CARET=yes'
5259 else
5260 ac_cv_use_caret='wxUSE_CARET=no'
5261 fi
5262
5263else
5264
5265 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5266 if test "x$LINE" != x ; then
5267 eval "DEFAULT_$LINE"
5268 else
5269 no_cache=1
5270 fi
5271
5272 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5273
5274fi
5275
5276
5277 eval "$ac_cv_use_caret"
5278 if test "$no_cache" != 1; then
5279 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5280 fi
5281
5282 if test "$wxUSE_CARET" = yes; then
5283 echo "$ac_t""yes" 1>&6
5284 else
5285 echo "$ac_t""no" 1>&6
5286 fi
5287
5288
5289 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5290echo "configure:5291: checking for --enable-checkbox" >&5
5291 no_cache=0
5292 # Check whether --enable-checkbox or --disable-checkbox was given.
5293if test "${enable_checkbox+set}" = set; then
5294 enableval="$enable_checkbox"
5295
5296 if test "$enableval" = yes; then
5297 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5298 else
5299 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5300 fi
5301
5302else
5303
5304 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5305 if test "x$LINE" != x ; then
5306 eval "DEFAULT_$LINE"
5307 else
5308 no_cache=1
5309 fi
5310
5311 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5312
5313fi
5314
5315
5316 eval "$ac_cv_use_checkbox"
5317 if test "$no_cache" != 1; then
5318 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5319 fi
5320
5321 if test "$wxUSE_CHECKBOX" = yes; then
5322 echo "$ac_t""yes" 1>&6
5323 else
5324 echo "$ac_t""no" 1>&6
5325 fi
5326
5327
5328 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5329echo "configure:5330: checking for --enable-checklst" >&5
5330 no_cache=0
5331 # Check whether --enable-checklst or --disable-checklst was given.
5332if test "${enable_checklst+set}" = set; then
5333 enableval="$enable_checklst"
5334
5335 if test "$enableval" = yes; then
5336 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5337 else
5338 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5339 fi
5340
5341else
5342
5343 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5351
5352fi
5353
5354
5355 eval "$ac_cv_use_checklst"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_CHECKLST" = yes; then
5361 echo "$ac_t""yes" 1>&6
5362 else
5363 echo "$ac_t""no" 1>&6
5364 fi
5365
5366
5367 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5368echo "configure:5369: checking for --enable-choice" >&5
5369 no_cache=0
5370 # Check whether --enable-choice or --disable-choice was given.
5371if test "${enable_choice+set}" = set; then
5372 enableval="$enable_choice"
5373
5374 if test "$enableval" = yes; then
5375 ac_cv_use_choice='wxUSE_CHOICE=yes'
5376 else
5377 ac_cv_use_choice='wxUSE_CHOICE=no'
5378 fi
5379
5380else
5381
5382 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5390
5391fi
5392
5393
5394 eval "$ac_cv_use_choice"
5395 if test "$no_cache" != 1; then
5396 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5397 fi
5398
5399 if test "$wxUSE_CHOICE" = yes; then
5400 echo "$ac_t""yes" 1>&6
5401 else
5402 echo "$ac_t""no" 1>&6
5403 fi
5404
5405
5406 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5407echo "configure:5408: checking for --enable-combobox" >&5
5408 no_cache=0
5409 # Check whether --enable-combobox or --disable-combobox was given.
5410if test "${enable_combobox+set}" = set; then
5411 enableval="$enable_combobox"
5412
5413 if test "$enableval" = yes; then
5414 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5415 else
5416 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5417 fi
5418
5419else
5420
5421 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5422 if test "x$LINE" != x ; then
5423 eval "DEFAULT_$LINE"
5424 else
5425 no_cache=1
5426 fi
5427
5428 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5429
5430fi
5431
5432
5433 eval "$ac_cv_use_combobox"
5434 if test "$no_cache" != 1; then
5435 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5436 fi
5437
5438 if test "$wxUSE_COMBOBOX" = yes; then
5439 echo "$ac_t""yes" 1>&6
5440 else
5441 echo "$ac_t""no" 1>&6
5442 fi
5443
5444
5445 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5446echo "configure:5447: checking for --enable-gauge" >&5
5447 no_cache=0
5448 # Check whether --enable-gauge or --disable-gauge was given.
5449if test "${enable_gauge+set}" = set; then
5450 enableval="$enable_gauge"
5451
5452 if test "$enableval" = yes; then
5453 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5454 else
5455 ac_cv_use_gauge='wxUSE_GAUGE=no'
5456 fi
5457
5458else
5459
5460 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5461 if test "x$LINE" != x ; then
5462 eval "DEFAULT_$LINE"
5463 else
5464 no_cache=1
5465 fi
5466
5467 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5468
5469fi
5470
5471
5472 eval "$ac_cv_use_gauge"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_GAUGE" = yes; then
5478 echo "$ac_t""yes" 1>&6
5479 else
5480 echo "$ac_t""no" 1>&6
5481 fi
5482
5483
5484 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5485echo "configure:5486: checking for --enable-grid" >&5
5486 no_cache=0
5487 # Check whether --enable-grid or --disable-grid was given.
5488if test "${enable_grid+set}" = set; then
5489 enableval="$enable_grid"
5490
5491 if test "$enableval" = yes; then
5492 ac_cv_use_grid='wxUSE_GRID=yes'
5493 else
5494 ac_cv_use_grid='wxUSE_GRID=no'
5495 fi
5496
5497else
5498
5499 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5507
5508fi
5509
5510
5511 eval "$ac_cv_use_grid"
5512 if test "$no_cache" != 1; then
5513 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5514 fi
5515
5516 if test "$wxUSE_GRID" = yes; then
5517 echo "$ac_t""yes" 1>&6
5518 else
5519 echo "$ac_t""no" 1>&6
5520 fi
5521
5522
5523 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5524echo "configure:5525: checking for --enable-newgrid" >&5
5525 no_cache=0
5526 # Check whether --enable-newgrid or --disable-newgrid was given.
5527if test "${enable_newgrid+set}" = set; then
5528 enableval="$enable_newgrid"
5529
5530 if test "$enableval" = yes; then
5531 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5532 else
5533 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5534 fi
5535
5536else
5537
5538 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5539 if test "x$LINE" != x ; then
5540 eval "DEFAULT_$LINE"
5541 else
5542 no_cache=1
5543 fi
5544
5545 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5546
5547fi
5548
5549
5550 eval "$ac_cv_use_newgrid"
5551 if test "$no_cache" != 1; then
5552 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5553 fi
5554
5555 if test "$wxUSE_NEW_GRID" = yes; then
5556 echo "$ac_t""yes" 1>&6
5557 else
5558 echo "$ac_t""no" 1>&6
5559 fi
5560
5561
5562 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5563echo "configure:5564: checking for --enable-imaglist" >&5
5564 no_cache=0
5565 # Check whether --enable-imaglist or --disable-imaglist was given.
5566if test "${enable_imaglist+set}" = set; then
5567 enableval="$enable_imaglist"
5568
5569 if test "$enableval" = yes; then
5570 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5571 else
5572 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5573 fi
5574
5575else
5576
5577 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
5584 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5585
5586fi
5587
5588
5589 eval "$ac_cv_use_imaglist"
5590 if test "$no_cache" != 1; then
5591 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5592 fi
5593
5594 if test "$wxUSE_IMAGLIST" = yes; then
5595 echo "$ac_t""yes" 1>&6
5596 else
5597 echo "$ac_t""no" 1>&6
5598 fi
5599
5600
5601 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5602echo "configure:5603: checking for --enable-listbox" >&5
5603 no_cache=0
5604 # Check whether --enable-listbox or --disable-listbox was given.
5605if test "${enable_listbox+set}" = set; then
5606 enableval="$enable_listbox"
5607
5608 if test "$enableval" = yes; then
5609 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5610 else
5611 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5612 fi
5613
5614else
5615
5616 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5617 if test "x$LINE" != x ; then
5618 eval "DEFAULT_$LINE"
5619 else
5620 no_cache=1
5621 fi
5622
5623 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5624
5625fi
5626
5627
5628 eval "$ac_cv_use_listbox"
5629 if test "$no_cache" != 1; then
5630 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5631 fi
5632
5633 if test "$wxUSE_LISTBOX" = yes; then
5634 echo "$ac_t""yes" 1>&6
5635 else
5636 echo "$ac_t""no" 1>&6
5637 fi
5638
5639
5640 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5641echo "configure:5642: checking for --enable-listctrl" >&5
5642 no_cache=0
5643 # Check whether --enable-listctrl or --disable-listctrl was given.
5644if test "${enable_listctrl+set}" = set; then
5645 enableval="$enable_listctrl"
5646
5647 if test "$enableval" = yes; then
5648 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5649 else
5650 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5651 fi
5652
5653else
5654
5655 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
5662 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5663
5664fi
5665
5666
5667 eval "$ac_cv_use_listctrl"
5668 if test "$no_cache" != 1; then
5669 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5670 fi
5671
5672 if test "$wxUSE_LISTCTRL" = yes; then
5673 echo "$ac_t""yes" 1>&6
5674 else
5675 echo "$ac_t""no" 1>&6
5676 fi
5677
5678
5679 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5680echo "configure:5681: checking for --enable-notebook" >&5
5681 no_cache=0
5682 # Check whether --enable-notebook or --disable-notebook was given.
5683if test "${enable_notebook+set}" = set; then
5684 enableval="$enable_notebook"
5685
5686 if test "$enableval" = yes; then
5687 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5688 else
5689 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5690 fi
5691
5692else
5693
5694 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5695 if test "x$LINE" != x ; then
5696 eval "DEFAULT_$LINE"
5697 else
5698 no_cache=1
5699 fi
5700
5701 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5702
5703fi
5704
5705
5706 eval "$ac_cv_use_notebook"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_NOTEBOOK" = yes; then
5712 echo "$ac_t""yes" 1>&6
5713 else
5714 echo "$ac_t""no" 1>&6
5715 fi
5716
5717
5718 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5719echo "configure:5720: checking for --enable-propsheet" >&5
5720 no_cache=0
5721 # Check whether --enable-propsheet or --disable-propsheet was given.
5722if test "${enable_propsheet+set}" = set; then
5723 enableval="$enable_propsheet"
5724
5725 if test "$enableval" = yes; then
5726 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5727 else
5728 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5729 fi
5730
5731else
5732
5733 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5734 if test "x$LINE" != x ; then
5735 eval "DEFAULT_$LINE"
5736 else
5737 no_cache=1
5738 fi
5739
5740 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5741
5742fi
5743
5744
5745 eval "$ac_cv_use_propsheet"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_PROPSHEET" = yes; then
5751 echo "$ac_t""yes" 1>&6
5752 else
5753 echo "$ac_t""no" 1>&6
5754 fi
5755
5756
5757 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5758echo "configure:5759: checking for --enable-radiobox" >&5
5759 no_cache=0
5760 # Check whether --enable-radiobox or --disable-radiobox was given.
5761if test "${enable_radiobox+set}" = set; then
5762 enableval="$enable_radiobox"
5763
5764 if test "$enableval" = yes; then
5765 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5766 else
5767 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5768 fi
5769
5770else
5771
5772 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5773 if test "x$LINE" != x ; then
5774 eval "DEFAULT_$LINE"
5775 else
5776 no_cache=1
5777 fi
5778
5779 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5780
5781fi
5782
5783
5784 eval "$ac_cv_use_radiobox"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_RADIOBOX" = yes; then
5790 echo "$ac_t""yes" 1>&6
5791 else
5792 echo "$ac_t""no" 1>&6
5793 fi
5794
5795
5796 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5797echo "configure:5798: checking for --enable-radiobtn" >&5
5798 no_cache=0
5799 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5800if test "${enable_radiobtn+set}" = set; then
5801 enableval="$enable_radiobtn"
5802
5803 if test "$enableval" = yes; then
5804 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5805 else
5806 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5807 fi
5808
5809else
5810
5811 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5812 if test "x$LINE" != x ; then
5813 eval "DEFAULT_$LINE"
5814 else
5815 no_cache=1
5816 fi
5817
5818 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5819
5820fi
5821
5822
5823 eval "$ac_cv_use_radiobtn"
5824 if test "$no_cache" != 1; then
5825 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5826 fi
5827
5828 if test "$wxUSE_RADIOBTN" = yes; then
5829 echo "$ac_t""yes" 1>&6
5830 else
5831 echo "$ac_t""no" 1>&6
5832 fi
5833
5834
5835 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5836echo "configure:5837: checking for --enable-sash" >&5
5837 no_cache=0
5838 # Check whether --enable-sash or --disable-sash was given.
5839if test "${enable_sash+set}" = set; then
5840 enableval="$enable_sash"
5841
5842 if test "$enableval" = yes; then
5843 ac_cv_use_sash='wxUSE_SASH=yes'
5844 else
5845 ac_cv_use_sash='wxUSE_SASH=no'
5846 fi
5847
5848else
5849
5850 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
5857 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5858
5859fi
5860
5861
5862 eval "$ac_cv_use_sash"
5863 if test "$no_cache" != 1; then
5864 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5865 fi
5866
5867 if test "$wxUSE_SASH" = yes; then
5868 echo "$ac_t""yes" 1>&6
5869 else
5870 echo "$ac_t""no" 1>&6
5871 fi
5872
5873
5874 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5875echo "configure:5876: checking for --enable-scrollbar" >&5
5876 no_cache=0
5877 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5878if test "${enable_scrollbar+set}" = set; then
5879 enableval="$enable_scrollbar"
5880
5881 if test "$enableval" = yes; then
5882 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5883 else
5884 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5885 fi
5886
5887else
5888
5889 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5890 if test "x$LINE" != x ; then
5891 eval "DEFAULT_$LINE"
5892 else
5893 no_cache=1
5894 fi
5895
5896 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5897
5898fi
5899
5900
5901 eval "$ac_cv_use_scrollbar"
5902 if test "$no_cache" != 1; then
5903 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5904 fi
5905
5906 if test "$wxUSE_SCROLLBAR" = yes; then
5907 echo "$ac_t""yes" 1>&6
5908 else
5909 echo "$ac_t""no" 1>&6
5910 fi
5911
5912
5913 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5914echo "configure:5915: checking for --enable-slider" >&5
5915 no_cache=0
5916 # Check whether --enable-slider or --disable-slider was given.
5917if test "${enable_slider+set}" = set; then
5918 enableval="$enable_slider"
5919
5920 if test "$enableval" = yes; then
5921 ac_cv_use_slider='wxUSE_SLIDER=yes'
5922 else
5923 ac_cv_use_slider='wxUSE_SLIDER=no'
5924 fi
5925
5926else
5927
5928 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5929 if test "x$LINE" != x ; then
5930 eval "DEFAULT_$LINE"
5931 else
5932 no_cache=1
5933 fi
5934
5935 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5936
5937fi
5938
5939
5940 eval "$ac_cv_use_slider"
5941 if test "$no_cache" != 1; then
5942 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5943 fi
5944
5945 if test "$wxUSE_SLIDER" = yes; then
5946 echo "$ac_t""yes" 1>&6
5947 else
5948 echo "$ac_t""no" 1>&6
5949 fi
5950
5951
5952 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5953echo "configure:5954: checking for --enable-spinbtn" >&5
5954 no_cache=0
5955 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5956if test "${enable_spinbtn+set}" = set; then
5957 enableval="$enable_spinbtn"
5958
5959 if test "$enableval" = yes; then
5960 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5961 else
5962 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5963 fi
5964
5965else
5966
5967 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5975
5976fi
5977
5978
5979 eval "$ac_cv_use_spinbtn"
5980 if test "$no_cache" != 1; then
5981 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5982 fi
5983
5984 if test "$wxUSE_SPINBTN" = yes; then
5985 echo "$ac_t""yes" 1>&6
5986 else
5987 echo "$ac_t""no" 1>&6
5988 fi
5989
5990
5991 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5992echo "configure:5993: checking for --enable-spinctrl" >&5
5993 no_cache=0
5994 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5995if test "${enable_spinctrl+set}" = set; then
5996 enableval="$enable_spinctrl"
5997
5998 if test "$enableval" = yes; then
5999 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6000 else
6001 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6002 fi
6003
6004else
6005
6006 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6014
6015fi
6016
6017
6018 eval "$ac_cv_use_spinctrl"
6019 if test "$no_cache" != 1; then
6020 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6021 fi
6022
6023 if test "$wxUSE_SPINCTRL" = yes; then
6024 echo "$ac_t""yes" 1>&6
6025 else
6026 echo "$ac_t""no" 1>&6
6027 fi
6028
6029
6030 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6031echo "configure:6032: checking for --enable-splitter" >&5
6032 no_cache=0
6033 # Check whether --enable-splitter or --disable-splitter was given.
6034if test "${enable_splitter+set}" = set; then
6035 enableval="$enable_splitter"
6036
6037 if test "$enableval" = yes; then
6038 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6039 else
6040 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6041 fi
6042
6043else
6044
6045 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6053
6054fi
6055
6056
6057 eval "$ac_cv_use_splitter"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_SPLITTER" = yes; then
6063 echo "$ac_t""yes" 1>&6
6064 else
6065 echo "$ac_t""no" 1>&6
6066 fi
6067
6068
6069 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6070echo "configure:6071: checking for --enable-statbmp" >&5
6071 no_cache=0
6072 # Check whether --enable-statbmp or --disable-statbmp was given.
6073if test "${enable_statbmp+set}" = set; then
6074 enableval="$enable_statbmp"
6075
6076 if test "$enableval" = yes; then
6077 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6078 else
6079 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6080 fi
6081
6082else
6083
6084 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6085 if test "x$LINE" != x ; then
6086 eval "DEFAULT_$LINE"
6087 else
6088 no_cache=1
6089 fi
6090
6091 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6092
6093fi
6094
6095
6096 eval "$ac_cv_use_statbmp"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_STATBMP" = yes; then
6102 echo "$ac_t""yes" 1>&6
6103 else
6104 echo "$ac_t""no" 1>&6
6105 fi
6106
6107
6108 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6109echo "configure:6110: checking for --enable-statbox" >&5
6110 no_cache=0
6111 # Check whether --enable-statbox or --disable-statbox was given.
6112if test "${enable_statbox+set}" = set; then
6113 enableval="$enable_statbox"
6114
6115 if test "$enableval" = yes; then
6116 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6117 else
6118 ac_cv_use_statbox='wxUSE_STATBOX=no'
6119 fi
6120
6121else
6122
6123 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6131
6132fi
6133
6134
6135 eval "$ac_cv_use_statbox"
6136 if test "$no_cache" != 1; then
6137 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6138 fi
6139
6140 if test "$wxUSE_STATBOX" = yes; then
6141 echo "$ac_t""yes" 1>&6
6142 else
6143 echo "$ac_t""no" 1>&6
6144 fi
6145
6146
6147 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6148echo "configure:6149: checking for --enable-statline" >&5
6149 no_cache=0
6150 # Check whether --enable-statline or --disable-statline was given.
6151if test "${enable_statline+set}" = set; then
6152 enableval="$enable_statline"
6153
6154 if test "$enableval" = yes; then
6155 ac_cv_use_statline='wxUSE_STATLINE=yes'
6156 else
6157 ac_cv_use_statline='wxUSE_STATLINE=no'
6158 fi
6159
6160else
6161
6162 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6170
6171fi
6172
6173
6174 eval "$ac_cv_use_statline"
6175 if test "$no_cache" != 1; then
6176 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6177 fi
6178
6179 if test "$wxUSE_STATLINE" = yes; then
6180 echo "$ac_t""yes" 1>&6
6181 else
6182 echo "$ac_t""no" 1>&6
6183 fi
6184
6185
6186 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6187echo "configure:6188: checking for --enable-stattext" >&5
6188 no_cache=0
6189 # Check whether --enable-stattext or --disable-stattext was given.
6190if test "${enable_stattext+set}" = set; then
6191 enableval="$enable_stattext"
6192
6193 if test "$enableval" = yes; then
6194 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6195 else
6196 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6197 fi
6198
6199else
6200
6201 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6202 if test "x$LINE" != x ; then
6203 eval "DEFAULT_$LINE"
6204 else
6205 no_cache=1
6206 fi
6207
6208 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6209
6210fi
6211
6212
6213 eval "$ac_cv_use_stattext"
6214 if test "$no_cache" != 1; then
6215 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6216 fi
6217
6218 if test "$wxUSE_STATTEXT" = yes; then
6219 echo "$ac_t""yes" 1>&6
6220 else
6221 echo "$ac_t""no" 1>&6
6222 fi
6223
6224
6225 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6226echo "configure:6227: checking for --enable-statusbar" >&5
6227 no_cache=0
6228 # Check whether --enable-statusbar or --disable-statusbar was given.
6229if test "${enable_statusbar+set}" = set; then
6230 enableval="$enable_statusbar"
6231
6232 if test "$enableval" = yes; then
6233 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6234 else
6235 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6236 fi
6237
6238else
6239
6240 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6248
6249fi
6250
6251
6252 eval "$ac_cv_use_statusbar"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_STATUSBAR" = yes; then
6258 echo "$ac_t""yes" 1>&6
6259 else
6260 echo "$ac_t""no" 1>&6
6261 fi
6262
6263
6264 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6265echo "configure:6266: checking for --enable-tabdialog" >&5
6266 no_cache=0
6267 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6268if test "${enable_tabdialog+set}" = set; then
6269 enableval="$enable_tabdialog"
6270
6271 if test "$enableval" = yes; then
6272 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6273 else
6274 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6275 fi
6276
6277else
6278
6279 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6287
6288fi
6289
6290
6291 eval "$ac_cv_use_tabdialog"
6292 if test "$no_cache" != 1; then
6293 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6294 fi
6295
6296 if test "$wxUSE_TABDIALOG" = yes; then
6297 echo "$ac_t""yes" 1>&6
6298 else
6299 echo "$ac_t""no" 1>&6
6300 fi
6301
6302
6303 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6304echo "configure:6305: checking for --enable-textctrl" >&5
6305 no_cache=0
6306 # Check whether --enable-textctrl or --disable-textctrl was given.
6307if test "${enable_textctrl+set}" = set; then
6308 enableval="$enable_textctrl"
6309
6310 if test "$enableval" = yes; then
6311 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6312 else
6313 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6314 fi
6315
6316else
6317
6318 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6326
6327fi
6328
6329
6330 eval "$ac_cv_use_textctrl"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_TEXTCTRL" = yes; then
6336 echo "$ac_t""yes" 1>&6
6337 else
6338 echo "$ac_t""no" 1>&6
6339 fi
6340
6341
6342 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6343echo "configure:6344: checking for --enable-togglebtn" >&5
6344 no_cache=0
6345 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6346if test "${enable_togglebtn+set}" = set; then
6347 enableval="$enable_togglebtn"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6351 else
6352 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6353 fi
6354
6355else
6356
6357 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6365
6366fi
6367
6368
6369 eval "$ac_cv_use_togglebtn"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_TOGGLEBTN" = yes; then
6375 echo "$ac_t""yes" 1>&6
6376 else
6377 echo "$ac_t""no" 1>&6
6378 fi
6379
6380
6381 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6382echo "configure:6383: checking for --enable-toolbar" >&5
6383 no_cache=0
6384 # Check whether --enable-toolbar or --disable-toolbar was given.
6385if test "${enable_toolbar+set}" = set; then
6386 enableval="$enable_toolbar"
6387
6388 if test "$enableval" = yes; then
6389 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6390 else
6391 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6392 fi
6393
6394else
6395
6396 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6404
6405fi
6406
6407
6408 eval "$ac_cv_use_toolbar"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6411 fi
6412
6413 if test "$wxUSE_TOOLBAR" = yes; then
6414 echo "$ac_t""yes" 1>&6
6415 else
6416 echo "$ac_t""no" 1>&6
6417 fi
6418
6419
6420 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6421echo "configure:6422: checking for --enable-tbarnative" >&5
6422 no_cache=0
6423 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6424if test "${enable_tbarnative+set}" = set; then
6425 enableval="$enable_tbarnative"
6426
6427 if test "$enableval" = yes; then
6428 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6429 else
6430 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6431 fi
6432
6433else
6434
6435 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6436 if test "x$LINE" != x ; then
6437 eval "DEFAULT_$LINE"
6438 else
6439 no_cache=1
6440 fi
6441
6442 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6443
6444fi
6445
6446
6447 eval "$ac_cv_use_tbarnative"
6448 if test "$no_cache" != 1; then
6449 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6450 fi
6451
6452 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6453 echo "$ac_t""yes" 1>&6
6454 else
6455 echo "$ac_t""no" 1>&6
6456 fi
6457
6458
6459 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6460echo "configure:6461: checking for --enable-tbarsmpl" >&5
6461 no_cache=0
6462 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6463if test "${enable_tbarsmpl+set}" = set; then
6464 enableval="$enable_tbarsmpl"
6465
6466 if test "$enableval" = yes; then
6467 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6468 else
6469 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6470 fi
6471
6472else
6473
6474 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6475 if test "x$LINE" != x ; then
6476 eval "DEFAULT_$LINE"
6477 else
6478 no_cache=1
6479 fi
6480
6481 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6482
6483fi
6484
6485
6486 eval "$ac_cv_use_tbarsmpl"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6492 echo "$ac_t""yes" 1>&6
6493 else
6494 echo "$ac_t""no" 1>&6
6495 fi
6496
6497
6498 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6499echo "configure:6500: checking for --enable-treectrl" >&5
6500 no_cache=0
6501 # Check whether --enable-treectrl or --disable-treectrl was given.
6502if test "${enable_treectrl+set}" = set; then
6503 enableval="$enable_treectrl"
6504
6505 if test "$enableval" = yes; then
6506 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6507 else
6508 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6509 fi
6510
6511else
6512
6513 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6521
6522fi
6523
6524
6525 eval "$ac_cv_use_treectrl"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_TREECTRL" = yes; then
6531 echo "$ac_t""yes" 1>&6
6532 else
6533 echo "$ac_t""no" 1>&6
6534 fi
6535
6536
6537 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6538echo "configure:6539: checking for --enable-popupwin" >&5
6539 no_cache=0
6540 # Check whether --enable-popupwin or --disable-popupwin was given.
6541if test "${enable_popupwin+set}" = set; then
6542 enableval="$enable_popupwin"
6543
6544 if test "$enableval" = yes; then
6545 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6546 else
6547 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6548 fi
6549
6550else
6551
6552 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
6559 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6560
6561fi
6562
6563
6564 eval "$ac_cv_use_popupwin"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_POPUPWIN" = yes; then
6570 echo "$ac_t""yes" 1>&6
6571 else
6572 echo "$ac_t""no" 1>&6
6573 fi
6574
6575
6576
6577
6578 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6579echo "configure:6580: checking for --enable-commondlg" >&5
6580 no_cache=0
6581 # Check whether --enable-commondlg or --disable-commondlg was given.
6582if test "${enable_commondlg+set}" = set; then
6583 enableval="$enable_commondlg"
6584
6585 if test "$enableval" = yes; then
6586 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6587 else
6588 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6589 fi
6590
6591else
6592
6593 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6594 if test "x$LINE" != x ; then
6595 eval "DEFAULT_$LINE"
6596 else
6597 no_cache=1
6598 fi
6599
6600 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6601
6602fi
6603
6604
6605 eval "$ac_cv_use_commondlg"
6606 if test "$no_cache" != 1; then
6607 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6608 fi
6609
6610 if test "$wxUSE_COMMONDLGS" = yes; then
6611 echo "$ac_t""yes" 1>&6
6612 else
6613 echo "$ac_t""no" 1>&6
6614 fi
6615
6616
6617 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6618echo "configure:6619: checking for --enable-choicedlg" >&5
6619 no_cache=0
6620 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6621if test "${enable_choicedlg+set}" = set; then
6622 enableval="$enable_choicedlg"
6623
6624 if test "$enableval" = yes; then
6625 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6626 else
6627 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6628 fi
6629
6630else
6631
6632 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6633 if test "x$LINE" != x ; then
6634 eval "DEFAULT_$LINE"
6635 else
6636 no_cache=1
6637 fi
6638
6639 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6640
6641fi
6642
6643
6644 eval "$ac_cv_use_choicedlg"
6645 if test "$no_cache" != 1; then
6646 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6647 fi
6648
6649 if test "$wxUSE_CHOICEDLG" = yes; then
6650 echo "$ac_t""yes" 1>&6
6651 else
6652 echo "$ac_t""no" 1>&6
6653 fi
6654
6655
6656 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6657echo "configure:6658: checking for --enable-coldlg" >&5
6658 no_cache=0
6659 # Check whether --enable-coldlg or --disable-coldlg was given.
6660if test "${enable_coldlg+set}" = set; then
6661 enableval="$enable_coldlg"
6662
6663 if test "$enableval" = yes; then
6664 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6665 else
6666 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6667 fi
6668
6669else
6670
6671 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6672 if test "x$LINE" != x ; then
6673 eval "DEFAULT_$LINE"
6674 else
6675 no_cache=1
6676 fi
6677
6678 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6679
6680fi
6681
6682
6683 eval "$ac_cv_use_coldlg"
6684 if test "$no_cache" != 1; then
6685 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6686 fi
6687
6688 if test "$wxUSE_COLOURDLG" = yes; then
6689 echo "$ac_t""yes" 1>&6
6690 else
6691 echo "$ac_t""no" 1>&6
6692 fi
6693
6694
6695 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6696echo "configure:6697: checking for --enable-filedlg" >&5
6697 no_cache=0
6698 # Check whether --enable-filedlg or --disable-filedlg was given.
6699if test "${enable_filedlg+set}" = set; then
6700 enableval="$enable_filedlg"
6701
6702 if test "$enableval" = yes; then
6703 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6704 else
6705 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6706 fi
6707
6708else
6709
6710 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6711 if test "x$LINE" != x ; then
6712 eval "DEFAULT_$LINE"
6713 else
6714 no_cache=1
6715 fi
6716
6717 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6718
6719fi
6720
6721
6722 eval "$ac_cv_use_filedlg"
6723 if test "$no_cache" != 1; then
6724 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6725 fi
6726
6727 if test "$wxUSE_FILEDLG" = yes; then
6728 echo "$ac_t""yes" 1>&6
6729 else
6730 echo "$ac_t""no" 1>&6
6731 fi
6732
6733
6734 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6735echo "configure:6736: checking for --enable-filedlg" >&5
6736 no_cache=0
6737 # Check whether --enable-filedlg or --disable-filedlg was given.
6738if test "${enable_filedlg+set}" = set; then
6739 enableval="$enable_filedlg"
6740
6741 if test "$enableval" = yes; then
6742 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6743 else
6744 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6745 fi
6746
6747else
6748
6749 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6757
6758fi
6759
6760
6761 eval "$ac_cv_use_filedlg"
6762 if test "$no_cache" != 1; then
6763 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6764 fi
6765
6766 if test "$wxUSE_FINDREPLDLG" = yes; then
6767 echo "$ac_t""yes" 1>&6
6768 else
6769 echo "$ac_t""no" 1>&6
6770 fi
6771
6772
6773 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6774echo "configure:6775: checking for --enable-fontdlg" >&5
6775 no_cache=0
6776 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6777if test "${enable_fontdlg+set}" = set; then
6778 enableval="$enable_fontdlg"
6779
6780 if test "$enableval" = yes; then
6781 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6782 else
6783 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6784 fi
6785
6786else
6787
6788 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6789 if test "x$LINE" != x ; then
6790 eval "DEFAULT_$LINE"
6791 else
6792 no_cache=1
6793 fi
6794
6795 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6796
6797fi
6798
6799
6800 eval "$ac_cv_use_fontdlg"
6801 if test "$no_cache" != 1; then
6802 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6803 fi
6804
6805 if test "$wxUSE_FONTDLG" = yes; then
6806 echo "$ac_t""yes" 1>&6
6807 else
6808 echo "$ac_t""no" 1>&6
6809 fi
6810
6811
6812 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6813echo "configure:6814: checking for --enable-dirdlg" >&5
6814 no_cache=0
6815 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6816if test "${enable_dirdlg+set}" = set; then
6817 enableval="$enable_dirdlg"
6818
6819 if test "$enableval" = yes; then
6820 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6821 else
6822 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6823 fi
6824
6825else
6826
6827 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6828 if test "x$LINE" != x ; then
6829 eval "DEFAULT_$LINE"
6830 else
6831 no_cache=1
6832 fi
6833
6834 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6835
6836fi
6837
6838
6839 eval "$ac_cv_use_dirdlg"
6840 if test "$no_cache" != 1; then
6841 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6842 fi
6843
6844 if test "$wxUSE_DIRDLG" = yes; then
6845 echo "$ac_t""yes" 1>&6
6846 else
6847 echo "$ac_t""no" 1>&6
6848 fi
6849
6850
6851 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6852echo "configure:6853: checking for --enable-msgdlg" >&5
6853 no_cache=0
6854 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6855if test "${enable_msgdlg+set}" = set; then
6856 enableval="$enable_msgdlg"
6857
6858 if test "$enableval" = yes; then
6859 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6860 else
6861 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6862 fi
6863
6864else
6865
6866 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6867 if test "x$LINE" != x ; then
6868 eval "DEFAULT_$LINE"
6869 else
6870 no_cache=1
6871 fi
6872
6873 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6874
6875fi
6876
6877
6878 eval "$ac_cv_use_msgdlg"
6879 if test "$no_cache" != 1; then
6880 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6881 fi
6882
6883 if test "$wxUSE_MSGDLG" = yes; then
6884 echo "$ac_t""yes" 1>&6
6885 else
6886 echo "$ac_t""no" 1>&6
6887 fi
6888
6889
6890 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6891echo "configure:6892: checking for --enable-numberdlg" >&5
6892 no_cache=0
6893 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6894if test "${enable_numberdlg+set}" = set; then
6895 enableval="$enable_numberdlg"
6896
6897 if test "$enableval" = yes; then
6898 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6899 else
6900 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6901 fi
6902
6903else
6904
6905 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6906 if test "x$LINE" != x ; then
6907 eval "DEFAULT_$LINE"
6908 else
6909 no_cache=1
6910 fi
6911
6912 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6913
6914fi
6915
6916
6917 eval "$ac_cv_use_numberdlg"
6918 if test "$no_cache" != 1; then
6919 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6920 fi
6921
6922 if test "$wxUSE_NUMBERDLG" = yes; then
6923 echo "$ac_t""yes" 1>&6
6924 else
6925 echo "$ac_t""no" 1>&6
6926 fi
6927
6928
6929 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
6930echo "configure:6931: checking for --enable-splash" >&5
6931 no_cache=0
6932 # Check whether --enable-splash or --disable-splash was given.
6933if test "${enable_splash+set}" = set; then
6934 enableval="$enable_splash"
6935
6936 if test "$enableval" = yes; then
6937 ac_cv_use_splash='wxUSE_SPLASH=yes'
6938 else
6939 ac_cv_use_splash='wxUSE_SPLASH=no'
6940 fi
6941
6942else
6943
6944 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6952
6953fi
6954
6955
6956 eval "$ac_cv_use_splash"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_SPLASH" = yes; then
6962 echo "$ac_t""yes" 1>&6
6963 else
6964 echo "$ac_t""no" 1>&6
6965 fi
6966
6967
6968 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6969echo "configure:6970: checking for --enable-textdlg" >&5
6970 no_cache=0
6971 # Check whether --enable-textdlg or --disable-textdlg was given.
6972if test "${enable_textdlg+set}" = set; then
6973 enableval="$enable_textdlg"
6974
6975 if test "$enableval" = yes; then
6976 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6977 else
6978 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6979 fi
6980
6981else
6982
6983 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
6990 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6991
6992fi
6993
6994
6995 eval "$ac_cv_use_textdlg"
6996 if test "$no_cache" != 1; then
6997 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6998 fi
6999
7000 if test "$wxUSE_TEXTDLG" = yes; then
7001 echo "$ac_t""yes" 1>&6
7002 else
7003 echo "$ac_t""no" 1>&6
7004 fi
7005
7006
7007 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7008echo "configure:7009: checking for --enable-tipdlg" >&5
7009 no_cache=0
7010 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7011if test "${enable_tipdlg+set}" = set; then
7012 enableval="$enable_tipdlg"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7016 else
7017 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7018 fi
7019
7020else
7021
7022 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7030
7031fi
7032
7033
7034 eval "$ac_cv_use_tipdlg"
7035 if test "$no_cache" != 1; then
7036 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7037 fi
7038
7039 if test "$wxUSE_STARTUP_TIPS" = yes; then
7040 echo "$ac_t""yes" 1>&6
7041 else
7042 echo "$ac_t""no" 1>&6
7043 fi
7044
7045
7046 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7047echo "configure:7048: checking for --enable-progressdlg" >&5
7048 no_cache=0
7049 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7050if test "${enable_progressdlg+set}" = set; then
7051 enableval="$enable_progressdlg"
7052
7053 if test "$enableval" = yes; then
7054 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7055 else
7056 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7057 fi
7058
7059else
7060
7061 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7069
7070fi
7071
7072
7073 eval "$ac_cv_use_progressdlg"
7074 if test "$no_cache" != 1; then
7075 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7076 fi
7077
7078 if test "$wxUSE_PROGRESSDLG" = yes; then
7079 echo "$ac_t""yes" 1>&6
7080 else
7081 echo "$ac_t""no" 1>&6
7082 fi
7083
7084
7085 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7086echo "configure:7087: checking for --enable-wizarddlg" >&5
7087 no_cache=0
7088 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7089if test "${enable_wizarddlg+set}" = set; then
7090 enableval="$enable_wizarddlg"
7091
7092 if test "$enableval" = yes; then
7093 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7094 else
7095 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7096 fi
7097
7098else
7099
7100 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7101 if test "x$LINE" != x ; then
7102 eval "DEFAULT_$LINE"
7103 else
7104 no_cache=1
7105 fi
7106
7107 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7108
7109fi
7110
7111
7112 eval "$ac_cv_use_wizarddlg"
7113 if test "$no_cache" != 1; then
7114 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7115 fi
7116
7117 if test "$wxUSE_WIZARDDLG" = yes; then
7118 echo "$ac_t""yes" 1>&6
7119 else
7120 echo "$ac_t""no" 1>&6
7121 fi
7122
7123
7124
7125
7126 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7127echo "configure:7128: checking for --enable-menus" >&5
7128 no_cache=0
7129 # Check whether --enable-menus or --disable-menus was given.
7130if test "${enable_menus+set}" = set; then
7131 enableval="$enable_menus"
7132
7133 if test "$enableval" = yes; then
7134 ac_cv_use_menus='wxUSE_MENUS=yes'
7135 else
7136 ac_cv_use_menus='wxUSE_MENUS=no'
7137 fi
7138
7139else
7140
7141 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7142 if test "x$LINE" != x ; then
7143 eval "DEFAULT_$LINE"
7144 else
7145 no_cache=1
7146 fi
7147
7148 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7149
7150fi
7151
7152
7153 eval "$ac_cv_use_menus"
7154 if test "$no_cache" != 1; then
7155 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7156 fi
7157
7158 if test "$wxUSE_MENUS" = yes; then
7159 echo "$ac_t""yes" 1>&6
7160 else
7161 echo "$ac_t""no" 1>&6
7162 fi
7163
7164
7165 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7166echo "configure:7167: checking for --enable-miniframe" >&5
7167 no_cache=0
7168 # Check whether --enable-miniframe or --disable-miniframe was given.
7169if test "${enable_miniframe+set}" = set; then
7170 enableval="$enable_miniframe"
7171
7172 if test "$enableval" = yes; then
7173 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7174 else
7175 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7176 fi
7177
7178else
7179
7180 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7181 if test "x$LINE" != x ; then
7182 eval "DEFAULT_$LINE"
7183 else
7184 no_cache=1
7185 fi
7186
7187 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7188
7189fi
7190
7191
7192 eval "$ac_cv_use_miniframe"
7193 if test "$no_cache" != 1; then
7194 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7195 fi
7196
7197 if test "$wxUSE_MINIFRAME" = yes; then
7198 echo "$ac_t""yes" 1>&6
7199 else
7200 echo "$ac_t""no" 1>&6
7201 fi
7202
7203
7204 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7205echo "configure:7206: checking for --enable-tooltips" >&5
7206 no_cache=0
7207 # Check whether --enable-tooltips or --disable-tooltips was given.
7208if test "${enable_tooltips+set}" = set; then
7209 enableval="$enable_tooltips"
7210
7211 if test "$enableval" = yes; then
7212 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7213 else
7214 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7215 fi
7216
7217else
7218
7219 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7220 if test "x$LINE" != x ; then
7221 eval "DEFAULT_$LINE"
7222 else
7223 no_cache=1
7224 fi
7225
7226 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7227
7228fi
7229
7230
7231 eval "$ac_cv_use_tooltips"
7232 if test "$no_cache" != 1; then
7233 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7234 fi
7235
7236 if test "$wxUSE_TOOLTIPS" = yes; then
7237 echo "$ac_t""yes" 1>&6
7238 else
7239 echo "$ac_t""no" 1>&6
7240 fi
7241
7242
7243 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7244echo "configure:7245: checking for --enable-splines" >&5
7245 no_cache=0
7246 # Check whether --enable-splines or --disable-splines was given.
7247if test "${enable_splines+set}" = set; then
7248 enableval="$enable_splines"
7249
7250 if test "$enableval" = yes; then
7251 ac_cv_use_splines='wxUSE_SPLINES=yes'
7252 else
7253 ac_cv_use_splines='wxUSE_SPLINES=no'
7254 fi
7255
7256else
7257
7258 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7259 if test "x$LINE" != x ; then
7260 eval "DEFAULT_$LINE"
7261 else
7262 no_cache=1
7263 fi
7264
7265 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7266
7267fi
7268
7269
7270 eval "$ac_cv_use_splines"
7271 if test "$no_cache" != 1; then
7272 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7273 fi
7274
7275 if test "$wxUSE_SPLINES" = yes; then
7276 echo "$ac_t""yes" 1>&6
7277 else
7278 echo "$ac_t""no" 1>&6
7279 fi
7280
7281
7282 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7283echo "configure:7284: checking for --enable-validators" >&5
7284 no_cache=0
7285 # Check whether --enable-validators or --disable-validators was given.
7286if test "${enable_validators+set}" = set; then
7287 enableval="$enable_validators"
7288
7289 if test "$enableval" = yes; then
7290 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7291 else
7292 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7293 fi
7294
7295else
7296
7297 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7298 if test "x$LINE" != x ; then
7299 eval "DEFAULT_$LINE"
7300 else
7301 no_cache=1
7302 fi
7303
7304 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7305
7306fi
7307
7308
7309 eval "$ac_cv_use_validators"
7310 if test "$no_cache" != 1; then
7311 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7312 fi
7313
7314 if test "$wxUSE_VALIDATORS" = yes; then
7315 echo "$ac_t""yes" 1>&6
7316 else
7317 echo "$ac_t""no" 1>&6
7318 fi
7319
7320
7321 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7322echo "configure:7323: checking for --enable-busyinfo" >&5
7323 no_cache=0
7324 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7325if test "${enable_busyinfo+set}" = set; then
7326 enableval="$enable_busyinfo"
7327
7328 if test "$enableval" = yes; then
7329 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7330 else
7331 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7332 fi
7333
7334else
7335
7336 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7344
7345fi
7346
7347
7348 eval "$ac_cv_use_busyinfo"
7349 if test "$no_cache" != 1; then
7350 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7351 fi
7352
7353 if test "$wxUSE_BUSYINFO" = yes; then
7354 echo "$ac_t""yes" 1>&6
7355 else
7356 echo "$ac_t""no" 1>&6
7357 fi
7358
7359
7360 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7361echo "configure:7362: checking for --enable-joystick" >&5
7362 no_cache=0
7363 # Check whether --enable-joystick or --disable-joystick was given.
7364if test "${enable_joystick+set}" = set; then
7365 enableval="$enable_joystick"
7366
7367 if test "$enableval" = yes; then
7368 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7369 else
7370 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7371 fi
7372
7373else
7374
7375 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7376 if test "x$LINE" != x ; then
7377 eval "DEFAULT_$LINE"
7378 else
7379 no_cache=1
7380 fi
7381
7382 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7383
7384fi
7385
7386
7387 eval "$ac_cv_use_joystick"
7388 if test "$no_cache" != 1; then
7389 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7390 fi
7391
7392 if test "$wxUSE_JOYSTICK" = yes; then
7393 echo "$ac_t""yes" 1>&6
7394 else
7395 echo "$ac_t""no" 1>&6
7396 fi
7397
7398
7399 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7400echo "configure:7401: checking for --enable-metafile" >&5
7401 no_cache=0
7402 # Check whether --enable-metafile or --disable-metafile was given.
7403if test "${enable_metafile+set}" = set; then
7404 enableval="$enable_metafile"
7405
7406 if test "$enableval" = yes; then
7407 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7408 else
7409 ac_cv_use_metafile='wxUSE_METAFILE=no'
7410 fi
7411
7412else
7413
7414 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7415 if test "x$LINE" != x ; then
7416 eval "DEFAULT_$LINE"
7417 else
7418 no_cache=1
7419 fi
7420
7421 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7422
7423fi
7424
7425
7426 eval "$ac_cv_use_metafile"
7427 if test "$no_cache" != 1; then
7428 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7429 fi
7430
7431 if test "$wxUSE_METAFILE" = yes; then
7432 echo "$ac_t""yes" 1>&6
7433 else
7434 echo "$ac_t""no" 1>&6
7435 fi
7436
7437
7438 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7439echo "configure:7440: checking for --enable-dragimage" >&5
7440 no_cache=0
7441 # Check whether --enable-dragimage or --disable-dragimage was given.
7442if test "${enable_dragimage+set}" = set; then
7443 enableval="$enable_dragimage"
7444
7445 if test "$enableval" = yes; then
7446 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7447 else
7448 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7449 fi
7450
7451else
7452
7453 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7454 if test "x$LINE" != x ; then
7455 eval "DEFAULT_$LINE"
7456 else
7457 no_cache=1
7458 fi
7459
7460 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7461
7462fi
7463
7464
7465 eval "$ac_cv_use_dragimage"
7466 if test "$no_cache" != 1; then
7467 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7468 fi
7469
7470 if test "$wxUSE_DRAGIMAGE" = yes; then
7471 echo "$ac_t""yes" 1>&6
7472 else
7473 echo "$ac_t""no" 1>&6
7474 fi
7475
7476
7477
7478
7479 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7480echo "configure:7481: checking for --enable-image" >&5
7481 no_cache=0
7482 # Check whether --enable-image or --disable-image was given.
7483if test "${enable_image+set}" = set; then
7484 enableval="$enable_image"
7485
7486 if test "$enableval" = yes; then
7487 ac_cv_use_image='wxUSE_IMAGE=yes'
7488 else
7489 ac_cv_use_image='wxUSE_IMAGE=no'
7490 fi
7491
7492else
7493
7494 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7495 if test "x$LINE" != x ; then
7496 eval "DEFAULT_$LINE"
7497 else
7498 no_cache=1
7499 fi
7500
7501 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7502
7503fi
7504
7505
7506 eval "$ac_cv_use_image"
7507 if test "$no_cache" != 1; then
7508 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7509 fi
7510
7511 if test "$wxUSE_IMAGE" = yes; then
7512 echo "$ac_t""yes" 1>&6
7513 else
7514 echo "$ac_t""no" 1>&6
7515 fi
7516
7517
7518 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7519echo "configure:7520: checking for --enable-gif" >&5
7520 no_cache=0
7521 # Check whether --enable-gif or --disable-gif was given.
7522if test "${enable_gif+set}" = set; then
7523 enableval="$enable_gif"
7524
7525 if test "$enableval" = yes; then
7526 ac_cv_use_gif='wxUSE_GIF=yes'
7527 else
7528 ac_cv_use_gif='wxUSE_GIF=no'
7529 fi
7530
7531else
7532
7533 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7534 if test "x$LINE" != x ; then
7535 eval "DEFAULT_$LINE"
7536 else
7537 no_cache=1
7538 fi
7539
7540 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7541
7542fi
7543
7544
7545 eval "$ac_cv_use_gif"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_GIF" = yes; then
7551 echo "$ac_t""yes" 1>&6
7552 else
7553 echo "$ac_t""no" 1>&6
7554 fi
7555
7556
7557 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7558echo "configure:7559: checking for --enable-pcx" >&5
7559 no_cache=0
7560 # Check whether --enable-pcx or --disable-pcx was given.
7561if test "${enable_pcx+set}" = set; then
7562 enableval="$enable_pcx"
7563
7564 if test "$enableval" = yes; then
7565 ac_cv_use_pcx='wxUSE_PCX=yes'
7566 else
7567 ac_cv_use_pcx='wxUSE_PCX=no'
7568 fi
7569
7570else
7571
7572 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7573 if test "x$LINE" != x ; then
7574 eval "DEFAULT_$LINE"
7575 else
7576 no_cache=1
7577 fi
7578
7579 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7580
7581fi
7582
7583
7584 eval "$ac_cv_use_pcx"
7585 if test "$no_cache" != 1; then
7586 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7587 fi
7588
7589 if test "$wxUSE_PCX" = yes; then
7590 echo "$ac_t""yes" 1>&6
7591 else
7592 echo "$ac_t""no" 1>&6
7593 fi
7594
7595
7596 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7597echo "configure:7598: checking for --enable-pnm" >&5
7598 no_cache=0
7599 # Check whether --enable-pnm or --disable-pnm was given.
7600if test "${enable_pnm+set}" = set; then
7601 enableval="$enable_pnm"
7602
7603 if test "$enableval" = yes; then
7604 ac_cv_use_pnm='wxUSE_PNM=yes'
7605 else
7606 ac_cv_use_pnm='wxUSE_PNM=no'
7607 fi
7608
7609else
7610
7611 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7612 if test "x$LINE" != x ; then
7613 eval "DEFAULT_$LINE"
7614 else
7615 no_cache=1
7616 fi
7617
7618 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7619
7620fi
7621
7622
7623 eval "$ac_cv_use_pnm"
7624 if test "$no_cache" != 1; then
7625 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7626 fi
7627
7628 if test "$wxUSE_PNM" = yes; then
7629 echo "$ac_t""yes" 1>&6
7630 else
7631 echo "$ac_t""no" 1>&6
7632 fi
7633
7634
7635 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7636echo "configure:7637: checking for --enable-pnm" >&5
7637 no_cache=0
7638 # Check whether --enable-pnm or --disable-pnm was given.
7639if test "${enable_pnm+set}" = set; then
7640 enableval="$enable_pnm"
7641
7642 if test "$enableval" = yes; then
7643 ac_cv_use_pnm='wxUSE_XPM=yes'
7644 else
7645 ac_cv_use_pnm='wxUSE_XPM=no'
7646 fi
7647
7648else
7649
7650 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7651 if test "x$LINE" != x ; then
7652 eval "DEFAULT_$LINE"
7653 else
7654 no_cache=1
7655 fi
7656
7657 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7658
7659fi
7660
7661
7662 eval "$ac_cv_use_pnm"
7663 if test "$no_cache" != 1; then
7664 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7665 fi
7666
7667 if test "$wxUSE_XPM" = yes; then
7668 echo "$ac_t""yes" 1>&6
7669 else
7670 echo "$ac_t""no" 1>&6
7671 fi
7672
7673
7674fi
7675
7676
7677 echo "saving argument cache $wx_arg_cache_file"
7678 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7679
7680
7681
7682echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7683echo "configure:7684: checking for toolkit" >&5
7684
7685if test "$wxUSE_GUI" = "yes"; then
7686
7687if test "$USE_BEOS" = 1; then
7688 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7689fi
7690
7691if test "$TOOLKIT_GIVEN" = 1; then
7692 for toolkit in `echo $ALL_TOOLKITS`; do
7693 var=wxUSE_$toolkit
7694 eval "value=\$${var}"
7695 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7696 done
7697else
7698 for toolkit in `echo $ALL_TOOLKITS`; do
7699 if test "$has_toolkit_in_cache" != 1; then
7700 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7701 else
7702 var=DEFAULT_wxUSE_$toolkit
7703 fi
7704 eval "wxUSE_$toolkit=\$${var}"
7705 done
7706fi
7707
7708NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7709
7710case "${host}" in
7711 *-pc-os2_emx )
7712 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7713 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7714 LEX_STEM="lexyy"
7715 ;;
7716 *)
7717 PATH_IFS=':'
7718 LEX_STEM="lex.yy"
7719 ;;
7720esac
7721
7722case "$NUM_TOOLKITS" in
7723 1)
7724 ;;
7725 0)
7726 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7727 ;;
7728 *)
7729 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7730esac
7731
7732for toolkit in `echo $ALL_TOOLKITS`; do
7733 var=wxUSE_$toolkit
7734 eval "value=\$${var}"
7735 if test "x$value" != x; then
7736 cache_var=CACHE_$toolkit
7737 eval "cache=\$${cache_var}"
7738 if test "$cache" = 1; then
7739 echo "$var=$value" >> ${wx_arg_cache_file}
7740 fi
7741 if test "$value" = 1; then
7742 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7743 echo "$ac_t""$toolkit_echo" 1>&6
7744 fi
7745 fi
7746done
7747
7748else
7749 PATH_IFS=':'
7750 echo "$ac_t""base only" 1>&6
7751fi
7752
7753
7754cat > confcache <<\EOF
7755# This file is a shell script that caches the results of configure
7756# tests run on this system so they can be shared between configure
7757# scripts and configure runs. It is not useful on other systems.
7758# If it contains results you don't want to keep, you may remove or edit it.
7759#
7760# By default, configure uses ./config.cache as the cache file,
7761# creating it if it does not exist already. You can give configure
7762# the --cache-file=FILE option to use a different cache file; that is
7763# what configure does when it calls configure scripts in
7764# subdirectories, so they share the cache.
7765# Giving --cache-file=/dev/null disables caching, for debugging configure.
7766# config.status only pays attention to the cache file if you give it the
7767# --recheck option to rerun configure.
7768#
7769EOF
7770# The following way of writing the cache mishandles newlines in values,
7771# but we know of no workaround that is simple, portable, and efficient.
7772# So, don't put newlines in cache variables' values.
7773# Ultrix sh set writes to stderr and can't be redirected directly,
7774# and sets the high bit in the cache file unless we assign to the vars.
7775(set) 2>&1 |
7776 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7777 *ac_space=\ *)
7778 # `set' does not quote correctly, so add quotes (double-quote substitution
7779 # turns \\\\ into \\, and sed turns \\ into \).
7780 sed -n \
7781 -e "s/'/'\\\\''/g" \
7782 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7783 ;;
7784 *)
7785 # `set' quotes correctly as required by POSIX, so do not add quotes.
7786 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7787 ;;
7788 esac >> confcache
7789if cmp -s $cache_file confcache; then
7790 :
7791else
7792 if test -w $cache_file; then
7793 echo "updating cache $cache_file"
7794 cat confcache > $cache_file
7795 else
7796 echo "not updating unwritable cache $cache_file"
7797 fi
7798fi
7799rm -f confcache
7800
7801
7802if test "$build" != "$host" ; then
7803 CC=$host_alias-gcc
7804 CXX=$host_alias-c++
7805 AR=$host_alias-ar
7806 RANLIB=$host_alias-ranlib
7807 DLLTOOL=$host_alias-dlltool
7808 RESCOMP=$host_alias-windres
7809 LD=$host_alias-ld
7810 NM=$host_alias-nm
7811 STRIP=$host_alias-strip
7812fi
7813
7814# Extract the first word of "gcc", so it can be a program name with args.
7815set dummy gcc; ac_word=$2
7816echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7817echo "configure:7818: checking for $ac_word" >&5
7818if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7820else
7821 if test -n "$CC"; then
7822 ac_cv_prog_CC="$CC" # Let the user override the test.
7823else
7824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7825 ac_dummy="$PATH"
7826 for ac_dir in $ac_dummy; do
7827 test -z "$ac_dir" && ac_dir=.
7828 if test -f $ac_dir/$ac_word; then
7829 ac_cv_prog_CC="gcc"
7830 break
7831 fi
7832 done
7833 IFS="$ac_save_ifs"
7834fi
7835fi
7836CC="$ac_cv_prog_CC"
7837if test -n "$CC"; then
7838 echo "$ac_t""$CC" 1>&6
7839else
7840 echo "$ac_t""no" 1>&6
7841fi
7842
7843if test -z "$CC"; then
7844 # Extract the first word of "cc", so it can be a program name with args.
7845set dummy cc; ac_word=$2
7846echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7847echo "configure:7848: checking for $ac_word" >&5
7848if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
7850else
7851 if test -n "$CC"; then
7852 ac_cv_prog_CC="$CC" # Let the user override the test.
7853else
7854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7855 ac_prog_rejected=no
7856 ac_dummy="$PATH"
7857 for ac_dir in $ac_dummy; do
7858 test -z "$ac_dir" && ac_dir=.
7859 if test -f $ac_dir/$ac_word; then
7860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7861 ac_prog_rejected=yes
7862 continue
7863 fi
7864 ac_cv_prog_CC="cc"
7865 break
7866 fi
7867 done
7868 IFS="$ac_save_ifs"
7869if test $ac_prog_rejected = yes; then
7870 # We found a bogon in the path, so make sure we never use it.
7871 set dummy $ac_cv_prog_CC
7872 shift
7873 if test $# -gt 0; then
7874 # We chose a different compiler from the bogus one.
7875 # However, it has the same basename, so the bogon will be chosen
7876 # first if we set CC to just the basename; use the full file name.
7877 shift
7878 set dummy "$ac_dir/$ac_word" "$@"
7879 shift
7880 ac_cv_prog_CC="$@"
7881 fi
7882fi
7883fi
7884fi
7885CC="$ac_cv_prog_CC"
7886if test -n "$CC"; then
7887 echo "$ac_t""$CC" 1>&6
7888else
7889 echo "$ac_t""no" 1>&6
7890fi
7891
7892 if test -z "$CC"; then
7893 case "`uname -s`" in
7894 *win32* | *WIN32*)
7895 # Extract the first word of "cl", so it can be a program name with args.
7896set dummy cl; ac_word=$2
7897echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7898echo "configure:7899: checking for $ac_word" >&5
7899if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7901else
7902 if test -n "$CC"; then
7903 ac_cv_prog_CC="$CC" # Let the user override the test.
7904else
7905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7906 ac_dummy="$PATH"
7907 for ac_dir in $ac_dummy; do
7908 test -z "$ac_dir" && ac_dir=.
7909 if test -f $ac_dir/$ac_word; then
7910 ac_cv_prog_CC="cl"
7911 break
7912 fi
7913 done
7914 IFS="$ac_save_ifs"
7915fi
7916fi
7917CC="$ac_cv_prog_CC"
7918if test -n "$CC"; then
7919 echo "$ac_t""$CC" 1>&6
7920else
7921 echo "$ac_t""no" 1>&6
7922fi
7923 ;;
7924 esac
7925 fi
7926 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7927fi
7928
7929echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7930echo "configure:7931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7931
7932ac_ext=c
7933# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7934ac_cpp='$CPP $CPPFLAGS'
7935ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7936ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7937cross_compiling=$ac_cv_prog_cc_cross
7938
7939cat > conftest.$ac_ext << EOF
7940
7941#line 7942 "configure"
7942#include "confdefs.h"
7943
7944main(){return(0);}
7945EOF
7946if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7947 ac_cv_prog_cc_works=yes
7948 # If we can't run a trivial program, we are probably using a cross compiler.
7949 if (./conftest; exit) 2>/dev/null; then
7950 ac_cv_prog_cc_cross=no
7951 else
7952 ac_cv_prog_cc_cross=yes
7953 fi
7954else
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 ac_cv_prog_cc_works=no
7958fi
7959rm -fr conftest*
7960ac_ext=c
7961# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7962ac_cpp='$CPP $CPPFLAGS'
7963ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7964ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7965cross_compiling=$ac_cv_prog_cc_cross
7966
7967echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7968if test $ac_cv_prog_cc_works = no; then
7969 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7970fi
7971echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7972echo "configure:7973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7973echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7974cross_compiling=$ac_cv_prog_cc_cross
7975
7976echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7977echo "configure:7978: checking whether we are using GNU C" >&5
7978if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7980else
7981 cat > conftest.c <<EOF
7982#ifdef __GNUC__
7983 yes;
7984#endif
7985EOF
7986if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7987 ac_cv_prog_gcc=yes
7988else
7989 ac_cv_prog_gcc=no
7990fi
7991fi
7992
7993echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7994
7995if test $ac_cv_prog_gcc = yes; then
7996 GCC=yes
7997else
7998 GCC=
7999fi
8000
8001ac_test_CFLAGS="${CFLAGS+set}"
8002ac_save_CFLAGS="$CFLAGS"
8003CFLAGS=
8004echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8005echo "configure:8006: checking whether ${CC-cc} accepts -g" >&5
8006if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8008else
8009 echo 'void f(){}' > conftest.c
8010if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8011 ac_cv_prog_cc_g=yes
8012else
8013 ac_cv_prog_cc_g=no
8014fi
8015rm -f conftest*
8016
8017fi
8018
8019echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8020if test "$ac_test_CFLAGS" = set; then
8021 CFLAGS="$ac_save_CFLAGS"
8022elif test $ac_cv_prog_cc_g = yes; then
8023 if test "$GCC" = yes; then
8024 CFLAGS="-g -O2"
8025 else
8026 CFLAGS="-g"
8027 fi
8028else
8029 if test "$GCC" = yes; then
8030 CFLAGS="-O2"
8031 else
8032 CFLAGS=
8033 fi
8034fi
8035
8036
8037CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8038
8039echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8040echo "configure:8041: checking how to run the C preprocessor" >&5
8041# On Suns, sometimes $CPP names a directory.
8042if test -n "$CPP" && test -d "$CPP"; then
8043 CPP=
8044fi
8045if test -z "$CPP"; then
8046if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8048else
8049 # This must be in double quotes, not single quotes, because CPP may get
8050 # substituted into the Makefile and "${CC-cc}" will confuse make.
8051 CPP="${CC-cc} -E"
8052 # On the NeXT, cc -E runs the code through the compiler's parser,
8053 # not just through cpp.
8054 cat > conftest.$ac_ext <<EOF
8055#line 8056 "configure"
8056#include "confdefs.h"
8057#include <assert.h>
8058Syntax Error
8059EOF
8060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8061{ (eval echo configure:8062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8063if test -z "$ac_err"; then
8064 :
8065else
8066 echo "$ac_err" >&5
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8069 rm -rf conftest*
8070 CPP="${CC-cc} -E -traditional-cpp"
8071 cat > conftest.$ac_ext <<EOF
8072#line 8073 "configure"
8073#include "confdefs.h"
8074#include <assert.h>
8075Syntax Error
8076EOF
8077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8078{ (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8080if test -z "$ac_err"; then
8081 :
8082else
8083 echo "$ac_err" >&5
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8086 rm -rf conftest*
8087 CPP="${CC-cc} -nologo -E"
8088 cat > conftest.$ac_ext <<EOF
8089#line 8090 "configure"
8090#include "confdefs.h"
8091#include <assert.h>
8092Syntax Error
8093EOF
8094ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8095{ (eval echo configure:8096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8096ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8097if test -z "$ac_err"; then
8098 :
8099else
8100 echo "$ac_err" >&5
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 rm -rf conftest*
8104 CPP=/lib/cpp
8105fi
8106rm -f conftest*
8107fi
8108rm -f conftest*
8109fi
8110rm -f conftest*
8111 ac_cv_prog_CPP="$CPP"
8112fi
8113 CPP="$ac_cv_prog_CPP"
8114else
8115 ac_cv_prog_CPP="$CPP"
8116fi
8117echo "$ac_t""$CPP" 1>&6
8118
8119
8120if test $ac_cv_prog_gcc = yes; then
8121 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8122echo "configure:8123: checking whether ${CC-cc} needs -traditional" >&5
8123if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8124 echo $ac_n "(cached) $ac_c" 1>&6
8125else
8126 ac_pattern="Autoconf.*'x'"
8127 cat > conftest.$ac_ext <<EOF
8128#line 8129 "configure"
8129#include "confdefs.h"
8130#include <sgtty.h>
8131Autoconf TIOCGETP
8132EOF
8133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 egrep "$ac_pattern" >/dev/null 2>&1; then
8135 rm -rf conftest*
8136 ac_cv_prog_gcc_traditional=yes
8137else
8138 rm -rf conftest*
8139 ac_cv_prog_gcc_traditional=no
8140fi
8141rm -f conftest*
8142
8143
8144 if test $ac_cv_prog_gcc_traditional = no; then
8145 cat > conftest.$ac_ext <<EOF
8146#line 8147 "configure"
8147#include "confdefs.h"
8148#include <termio.h>
8149Autoconf TCGETA
8150EOF
8151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8152 egrep "$ac_pattern" >/dev/null 2>&1; then
8153 rm -rf conftest*
8154 ac_cv_prog_gcc_traditional=yes
8155fi
8156rm -f conftest*
8157
8158 fi
8159fi
8160
8161echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8162 if test $ac_cv_prog_gcc_traditional = yes; then
8163 CC="$CC -traditional"
8164 fi
8165fi
8166
8167
8168
8169ac_ext=C
8170# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8171ac_cpp='$CXXCPP $CPPFLAGS'
8172ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8173ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8174cross_compiling=$ac_cv_prog_cxx_cross
8175
8176
8177for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8178do
8179# Extract the first word of "$ac_prog", so it can be a program name with args.
8180set dummy $ac_prog; ac_word=$2
8181echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8182echo "configure:8183: checking for $ac_word" >&5
8183if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8184 echo $ac_n "(cached) $ac_c" 1>&6
8185else
8186 if test -n "$CXX"; then
8187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8188else
8189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8190 ac_dummy="$PATH"
8191 for ac_dir in $ac_dummy; do
8192 test -z "$ac_dir" && ac_dir=.
8193 if test -f $ac_dir/$ac_word; then
8194 ac_cv_prog_CXX="$ac_prog"
8195 break
8196 fi
8197 done
8198 IFS="$ac_save_ifs"
8199fi
8200fi
8201CXX="$ac_cv_prog_CXX"
8202if test -n "$CXX"; then
8203 echo "$ac_t""$CXX" 1>&6
8204else
8205 echo "$ac_t""no" 1>&6
8206fi
8207
8208test -n "$CXX" && break
8209done
8210test -n "$CXX" || CXX="gcc"
8211
8212
8213echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8214echo "configure:8215: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8215
8216ac_ext=C
8217# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8218ac_cpp='$CXXCPP $CPPFLAGS'
8219ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8220ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8221cross_compiling=$ac_cv_prog_cxx_cross
8222
8223cat > conftest.$ac_ext << EOF
8224
8225#line 8226 "configure"
8226#include "confdefs.h"
8227
8228int main(){return(0);}
8229EOF
8230if { (eval echo configure:8231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8231 ac_cv_prog_cxx_works=yes
8232 # If we can't run a trivial program, we are probably using a cross compiler.
8233 if (./conftest; exit) 2>/dev/null; then
8234 ac_cv_prog_cxx_cross=no
8235 else
8236 ac_cv_prog_cxx_cross=yes
8237 fi
8238else
8239 echo "configure: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8241 ac_cv_prog_cxx_works=no
8242fi
8243rm -fr conftest*
8244ac_ext=C
8245# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8246ac_cpp='$CXXCPP $CPPFLAGS'
8247ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8248ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8249cross_compiling=$ac_cv_prog_cxx_cross
8250
8251echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8252if test $ac_cv_prog_cxx_works = no; then
8253 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8254fi
8255echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8256echo "configure:8257: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8257echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8258cross_compiling=$ac_cv_prog_cxx_cross
8259
8260echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8261echo "configure:8262: checking whether we are using GNU C++" >&5
8262if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8263 echo $ac_n "(cached) $ac_c" 1>&6
8264else
8265 cat > conftest.C <<EOF
8266#ifdef __GNUC__
8267 yes;
8268#endif
8269EOF
8270if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8271 ac_cv_prog_gxx=yes
8272else
8273 ac_cv_prog_gxx=no
8274fi
8275fi
8276
8277echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8278
8279if test $ac_cv_prog_gxx = yes; then
8280 GXX=yes
8281else
8282 GXX=
8283fi
8284
8285ac_test_CXXFLAGS="${CXXFLAGS+set}"
8286ac_save_CXXFLAGS="$CXXFLAGS"
8287CXXFLAGS=
8288echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8289echo "configure:8290: checking whether ${CXX-g++} accepts -g" >&5
8290if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8291 echo $ac_n "(cached) $ac_c" 1>&6
8292else
8293 echo 'void f(){}' > conftest.cc
8294if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8295 ac_cv_prog_cxx_g=yes
8296else
8297 ac_cv_prog_cxx_g=no
8298fi
8299rm -f conftest*
8300
8301fi
8302
8303echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8304if test "$ac_test_CXXFLAGS" = set; then
8305 CXXFLAGS="$ac_save_CXXFLAGS"
8306elif test $ac_cv_prog_cxx_g = yes; then
8307 if test "$GXX" = yes; then
8308 CXXFLAGS="-g -O2"
8309 else
8310 CXXFLAGS="-g"
8311 fi
8312else
8313 if test "$GXX" = yes; then
8314 CXXFLAGS="-O2"
8315 else
8316 CXXFLAGS=
8317 fi
8318fi
8319
8320
8321echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8322echo "configure:8323: checking how to run the C++ preprocessor" >&5
8323if test -z "$CXXCPP"; then
8324if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8326else
8327 ac_ext=C
8328# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8329ac_cpp='$CXXCPP $CPPFLAGS'
8330ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8331ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8332cross_compiling=$ac_cv_prog_cxx_cross
8333 CXXCPP="${CXX-g++} -E"
8334 cat > conftest.$ac_ext <<EOF
8335#line 8336 "configure"
8336#include "confdefs.h"
8337#include <stdlib.h>
8338EOF
8339ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8340{ (eval echo configure:8341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8341ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8342if test -z "$ac_err"; then
8343 :
8344else
8345 echo "$ac_err" >&5
8346 echo "configure: failed program was:" >&5
8347 cat conftest.$ac_ext >&5
8348 rm -rf conftest*
8349 CXXCPP=/lib/cpp
8350fi
8351rm -f conftest*
8352 ac_cv_prog_CXXCPP="$CXXCPP"
8353ac_ext=C
8354# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8355ac_cpp='$CXXCPP $CPPFLAGS'
8356ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8357ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8358cross_compiling=$ac_cv_prog_cxx_cross
8359fi
8360fi
8361CXXCPP="$ac_cv_prog_CXXCPP"
8362echo "$ac_t""$CXXCPP" 1>&6
8363
8364
8365CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8366
8367ac_ext=c
8368# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8369ac_cpp='$CPP $CPPFLAGS'
8370ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8371ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8372cross_compiling=$ac_cv_prog_cc_cross
8373
8374
8375# Extract the first word of "ranlib", so it can be a program name with args.
8376set dummy ranlib; ac_word=$2
8377echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8378echo "configure:8379: checking for $ac_word" >&5
8379if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8381else
8382 if test -n "$RANLIB"; then
8383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8384else
8385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8386 ac_dummy="$PATH"
8387 for ac_dir in $ac_dummy; do
8388 test -z "$ac_dir" && ac_dir=.
8389 if test -f $ac_dir/$ac_word; then
8390 ac_cv_prog_RANLIB="ranlib"
8391 break
8392 fi
8393 done
8394 IFS="$ac_save_ifs"
8395 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8396fi
8397fi
8398RANLIB="$ac_cv_prog_RANLIB"
8399if test -n "$RANLIB"; then
8400 echo "$ac_t""$RANLIB" 1>&6
8401else
8402 echo "$ac_t""no" 1>&6
8403fi
8404
8405
8406# Extract the first word of "ar", so it can be a program name with args.
8407set dummy ar; ac_word=$2
8408echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8409echo "configure:8410: checking for $ac_word" >&5
8410if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
8412else
8413 if test -n "$AR"; then
8414 ac_cv_prog_AR="$AR" # Let the user override the test.
8415else
8416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8417 ac_dummy="$PATH"
8418 for ac_dir in $ac_dummy; do
8419 test -z "$ac_dir" && ac_dir=.
8420 if test -f $ac_dir/$ac_word; then
8421 ac_cv_prog_AR="ar"
8422 break
8423 fi
8424 done
8425 IFS="$ac_save_ifs"
8426 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8427fi
8428fi
8429AR="$ac_cv_prog_AR"
8430if test -n "$AR"; then
8431 echo "$ac_t""$AR" 1>&6
8432else
8433 echo "$ac_t""no" 1>&6
8434fi
8435
8436
8437# Find a good install program. We prefer a C program (faster),
8438# so one script is as good as another. But avoid the broken or
8439# incompatible versions:
8440# SysV /etc/install, /usr/sbin/install
8441# SunOS /usr/etc/install
8442# IRIX /sbin/install
8443# AIX /bin/install
8444# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8445# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8446# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8447# ./install, which can be erroneously created by make from ./install.sh.
8448echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8449echo "configure:8450: checking for a BSD compatible install" >&5
8450if test -z "$INSTALL"; then
8451if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8452 echo $ac_n "(cached) $ac_c" 1>&6
8453else
8454 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8455 for ac_dir in $PATH; do
8456 # Account for people who put trailing slashes in PATH elements.
8457 case "$ac_dir/" in
8458 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8459 *)
8460 # OSF1 and SCO ODT 3.0 have their own names for install.
8461 # Don't use installbsd from OSF since it installs stuff as root
8462 # by default.
8463 for ac_prog in ginstall scoinst install; do
8464 if test -f $ac_dir/$ac_prog; then
8465 if test $ac_prog = install &&
8466 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8467 # AIX install. It has an incompatible calling convention.
8468 :
8469 else
8470 ac_cv_path_install="$ac_dir/$ac_prog -c"
8471 break 2
8472 fi
8473 fi
8474 done
8475 ;;
8476 esac
8477 done
8478 IFS="$ac_save_IFS"
8479
8480fi
8481 if test "${ac_cv_path_install+set}" = set; then
8482 INSTALL="$ac_cv_path_install"
8483 else
8484 # As a last resort, use the slow shell script. We don't cache a
8485 # path for INSTALL within a source directory, because that will
8486 # break other packages using the cache if that directory is
8487 # removed, or if the path is relative.
8488 INSTALL="$ac_install_sh"
8489 fi
8490fi
8491echo "$ac_t""$INSTALL" 1>&6
8492
8493# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8494# It thinks the first close brace ends the variable substitution.
8495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8496
8497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8498
8499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8500
8501
8502# Extract the first word of "strip", so it can be a program name with args.
8503set dummy strip; ac_word=$2
8504echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8505echo "configure:8506: checking for $ac_word" >&5
8506if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
8508else
8509 if test -n "$STRIP"; then
8510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8511else
8512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8513 ac_dummy="$PATH"
8514 for ac_dir in $ac_dummy; do
8515 test -z "$ac_dir" && ac_dir=.
8516 if test -f $ac_dir/$ac_word; then
8517 ac_cv_prog_STRIP="strip"
8518 break
8519 fi
8520 done
8521 IFS="$ac_save_ifs"
8522 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8523fi
8524fi
8525STRIP="$ac_cv_prog_STRIP"
8526if test -n "$STRIP"; then
8527 echo "$ac_t""$STRIP" 1>&6
8528else
8529 echo "$ac_t""no" 1>&6
8530fi
8531
8532
8533echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8534echo "configure:8535: checking make for VPATH support" >&5
8535cat - << EOF > confMake
8536check : file
8537 cp \$? \$@
8538 cp \$? final_file
8539EOF
8540
8541if test ! -d sub ; then
8542 mkdir sub
8543fi
8544echo dummy > sub/file
8545${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8546RESULT=$?
8547rm -f sub/file check final_file confMake
8548rmdir sub
8549if test "$RESULT" = 0; then
8550 echo "$ac_t""yes" 1>&6
8551else
8552 echo "$ac_t""no" 1>&6
8553 { echo "configure: error:
8554You need a make-utility that is able to use the variable
8555VPATH correctly.
8556If your version of make does not support VPATH correctly,
8557please install GNU-make (possibly as gmake), and start
8558configure with the following command:
8559export MAKE=gmake; ./configure for sh-type shells
8560setenv MAKE gmake; ./configure for csh-type shells
8561Also please do remember to use gmake in this case every time
8562you are trying to compile.
8563" 1>&2; exit 1; }
8564fi
8565
8566for ac_prog in 'bison -y' byacc
8567do
8568# Extract the first word of "$ac_prog", so it can be a program name with args.
8569set dummy $ac_prog; ac_word=$2
8570echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8571echo "configure:8572: checking for $ac_word" >&5
8572if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
8574else
8575 if test -n "$YACC"; then
8576 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8577else
8578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8579 ac_dummy="$PATH"
8580 for ac_dir in $ac_dummy; do
8581 test -z "$ac_dir" && ac_dir=.
8582 if test -f $ac_dir/$ac_word; then
8583 ac_cv_prog_YACC="$ac_prog"
8584 break
8585 fi
8586 done
8587 IFS="$ac_save_ifs"
8588fi
8589fi
8590YACC="$ac_cv_prog_YACC"
8591if test -n "$YACC"; then
8592 echo "$ac_t""$YACC" 1>&6
8593else
8594 echo "$ac_t""no" 1>&6
8595fi
8596
8597test -n "$YACC" && break
8598done
8599test -n "$YACC" || YACC="yacc"
8600
8601
8602# Extract the first word of "flex", so it can be a program name with args.
8603set dummy flex; ac_word=$2
8604echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8605echo "configure:8606: checking for $ac_word" >&5
8606if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8607 echo $ac_n "(cached) $ac_c" 1>&6
8608else
8609 if test -n "$LEX"; then
8610 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8611else
8612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8613 ac_dummy="$PATH"
8614 for ac_dir in $ac_dummy; do
8615 test -z "$ac_dir" && ac_dir=.
8616 if test -f $ac_dir/$ac_word; then
8617 ac_cv_prog_LEX="flex"
8618 break
8619 fi
8620 done
8621 IFS="$ac_save_ifs"
8622 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8623fi
8624fi
8625LEX="$ac_cv_prog_LEX"
8626if test -n "$LEX"; then
8627 echo "$ac_t""$LEX" 1>&6
8628else
8629 echo "$ac_t""no" 1>&6
8630fi
8631
8632if test -z "$LEXLIB"
8633then
8634 case "$LEX" in
8635 flex*) ac_lib=fl ;;
8636 *) ac_lib=l ;;
8637 esac
8638 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8639echo "configure:8640: checking for yywrap in -l$ac_lib" >&5
8640ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8642 echo $ac_n "(cached) $ac_c" 1>&6
8643else
8644 ac_save_LIBS="$LIBS"
8645LIBS="-l$ac_lib $LIBS"
8646cat > conftest.$ac_ext <<EOF
8647#line 8648 "configure"
8648#include "confdefs.h"
8649/* Override any gcc2 internal prototype to avoid an error. */
8650/* We use char because int might match the return type of a gcc2
8651 builtin and then its argument prototype would still apply. */
8652char yywrap();
8653
8654int main() {
8655yywrap()
8656; return 0; }
8657EOF
8658if { (eval echo configure:8659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8659 rm -rf conftest*
8660 eval "ac_cv_lib_$ac_lib_var=yes"
8661else
8662 echo "configure: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8664 rm -rf conftest*
8665 eval "ac_cv_lib_$ac_lib_var=no"
8666fi
8667rm -f conftest*
8668LIBS="$ac_save_LIBS"
8669
8670fi
8671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8672 echo "$ac_t""yes" 1>&6
8673 LEXLIB="-l$ac_lib"
8674else
8675 echo "$ac_t""no" 1>&6
8676fi
8677
8678fi
8679
8680
8681echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8682echo "configure:8683: checking whether ln -s works" >&5
8683if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8685else
8686 rm -f conftestdata
8687if ln -s X conftestdata 2>/dev/null
8688then
8689 rm -f conftestdata
8690 ac_cv_prog_LN_S="ln -s"
8691else
8692 ac_cv_prog_LN_S=ln
8693fi
8694fi
8695LN_S="$ac_cv_prog_LN_S"
8696if test "$ac_cv_prog_LN_S" = "ln -s"; then
8697 echo "$ac_t""yes" 1>&6
8698else
8699 echo "$ac_t""no" 1>&6
8700fi
8701
8702
8703
8704SEARCH_INCLUDE="\
8705 /usr/local/include \
8706 \
8707 /usr/Motif-1.2/include \
8708 /usr/Motif-2.1/include \
8709 \
8710 /usr/include/Motif1.2 \
8711 /opt/xpm/include/X11 \
8712 /opt/GBxpm/include/ \
8713 /opt/GBxpm/X11/include/ \
8714 \
8715 /usr/Motif1.2/include \
8716 /usr/dt/include \
8717 /usr/openwin/include \
8718 \
8719 /usr/include/Xm \
8720 \
8721 /usr/X11R6/include \
8722 /usr/X11R6.4/include \
8723 /usr/X11R5/include \
8724 /usr/X11R4/include \
8725 \
8726 /usr/include/X11R6 \
8727 /usr/include/X11R5 \
8728 /usr/include/X11R4 \
8729 \
8730 /usr/local/X11R6/include \
8731 /usr/local/X11R5/include \
8732 /usr/local/X11R4/include \
8733 \
8734 /usr/local/include/X11R6 \
8735 /usr/local/include/X11R5 \
8736 /usr/local/include/X11R4 \
8737 \
8738 /usr/X11/include \
8739 /usr/include/X11 \
8740 /usr/local/X11/include \
8741 /usr/local/include/X11 \
8742 \
8743 /usr/X386/include \
8744 /usr/x386/include \
8745 /usr/XFree86/include/X11 \
8746 \
8747 X:/XFree86/include \
8748 X:/XFree86/include/X11 \
8749 \
8750 /usr/include/gtk \
8751 /usr/local/include/gtk \
8752 /usr/include/glib \
8753 /usr/local/include/glib \
8754 \
8755 /usr/include/qt \
8756 /usr/local/include/qt \
8757 \
8758 /usr/include/windows \
8759 /usr/include/wine \
8760 /usr/local/include/wine \
8761 \
8762 /usr/unsupported/include \
8763 /usr/athena/include \
8764 /usr/local/x11r5/include \
8765 /usr/lpp/Xamples/include \
8766 \
8767 /usr/openwin/share/include \
8768 \
8769 /usr/include"
8770
8771SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8772
8773
8774cat > confcache <<\EOF
8775# This file is a shell script that caches the results of configure
8776# tests run on this system so they can be shared between configure
8777# scripts and configure runs. It is not useful on other systems.
8778# If it contains results you don't want to keep, you may remove or edit it.
8779#
8780# By default, configure uses ./config.cache as the cache file,
8781# creating it if it does not exist already. You can give configure
8782# the --cache-file=FILE option to use a different cache file; that is
8783# what configure does when it calls configure scripts in
8784# subdirectories, so they share the cache.
8785# Giving --cache-file=/dev/null disables caching, for debugging configure.
8786# config.status only pays attention to the cache file if you give it the
8787# --recheck option to rerun configure.
8788#
8789EOF
8790# The following way of writing the cache mishandles newlines in values,
8791# but we know of no workaround that is simple, portable, and efficient.
8792# So, don't put newlines in cache variables' values.
8793# Ultrix sh set writes to stderr and can't be redirected directly,
8794# and sets the high bit in the cache file unless we assign to the vars.
8795(set) 2>&1 |
8796 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8797 *ac_space=\ *)
8798 # `set' does not quote correctly, so add quotes (double-quote substitution
8799 # turns \\\\ into \\, and sed turns \\ into \).
8800 sed -n \
8801 -e "s/'/'\\\\''/g" \
8802 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8803 ;;
8804 *)
8805 # `set' quotes correctly as required by POSIX, so do not add quotes.
8806 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8807 ;;
8808 esac >> confcache
8809if cmp -s $cache_file confcache; then
8810 :
8811else
8812 if test -w $cache_file; then
8813 echo "updating cache $cache_file"
8814 cat confcache > $cache_file
8815 else
8816 echo "not updating unwritable cache $cache_file"
8817 fi
8818fi
8819rm -f confcache
8820
8821
8822
8823REGEX_INCLUDE=
8824if test "$wxUSE_REGEX" != "no"; then
8825 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8826echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8827echo "configure:8828: checking for regex.h" >&5
8828if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8829 echo $ac_n "(cached) $ac_c" 1>&6
8830else
8831 cat > conftest.$ac_ext <<EOF
8832#line 8833 "configure"
8833#include "confdefs.h"
8834#include <regex.h>
8835EOF
8836ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8837{ (eval echo configure:8838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8838ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8839if test -z "$ac_err"; then
8840 rm -rf conftest*
8841 eval "ac_cv_header_$ac_safe=yes"
8842else
8843 echo "$ac_err" >&5
8844 echo "configure: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8846 rm -rf conftest*
8847 eval "ac_cv_header_$ac_safe=no"
8848fi
8849rm -f conftest*
8850fi
8851if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8852 echo "$ac_t""yes" 1>&6
8853 for ac_func in regcomp
8854do
8855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8856echo "configure:8857: checking for $ac_func" >&5
8857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8859else
8860 cat > conftest.$ac_ext <<EOF
8861#line 8862 "configure"
8862#include "confdefs.h"
8863/* System header to define __stub macros and hopefully few prototypes,
8864 which can conflict with char $ac_func(); below. */
8865#include <assert.h>
8866/* Override any gcc2 internal prototype to avoid an error. */
8867/* We use char because int might match the return type of a gcc2
8868 builtin and then its argument prototype would still apply. */
8869char $ac_func();
8870
8871int main() {
8872
8873/* The GNU C library defines this for functions which it implements
8874 to always fail with ENOSYS. Some functions are actually named
8875 something starting with __ and the normal name is an alias. */
8876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8877choke me
8878#else
8879$ac_func();
8880#endif
8881
8882; return 0; }
8883EOF
8884if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8885 rm -rf conftest*
8886 eval "ac_cv_func_$ac_func=yes"
8887else
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 rm -rf conftest*
8891 eval "ac_cv_func_$ac_func=no"
8892fi
8893rm -f conftest*
8894fi
8895
8896if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8897 echo "$ac_t""yes" 1>&6
8898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8899 cat >> confdefs.h <<EOF
8900#define $ac_tr_func 1
8901EOF
8902
8903else
8904 echo "$ac_t""no" 1>&6
8905fi
8906done
8907
8908else
8909 echo "$ac_t""no" 1>&6
8910fi
8911
8912
8913 if test "x$ac_cv_func_regcomp" != "xyes"; then
8914 if test "$wxUSE_REGEX" = "sys"; then
8915 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8916 fi
8917
8918 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8919 fi
8920
8921 cat >> confdefs.h <<\EOF
8922#define wxUSE_REGEX 1
8923EOF
8924
8925fi
8926
8927
8928AFMINSTALL=
8929
8930if test "$wxUSE_GUI" = "yes"; then
8931 USE_GUI=1
8932
8933 TOOLKIT=
8934 TOOLKIT_INCLUDE=
8935
8936 GUI_TK_LIBRARY=
8937 GUI_TK_LINK=
8938
8939 WXGTK12=
8940 WXGTK127=
8941 WXGTK20=
8942
8943 WXWINE=
8944
8945 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8946 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8947echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8948echo "configure:8949: checking for windows.h" >&5
8949if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8950 echo $ac_n "(cached) $ac_c" 1>&6
8951else
8952 cat > conftest.$ac_ext <<EOF
8953#line 8954 "configure"
8954#include "confdefs.h"
8955#include <windows.h>
8956EOF
8957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8958{ (eval echo configure:8959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8960if test -z "$ac_err"; then
8961 rm -rf conftest*
8962 eval "ac_cv_header_$ac_safe=yes"
8963else
8964 echo "$ac_err" >&5
8965 echo "configure: failed program was:" >&5
8966 cat conftest.$ac_ext >&5
8967 rm -rf conftest*
8968 eval "ac_cv_header_$ac_safe=no"
8969fi
8970rm -f conftest*
8971fi
8972if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8973 echo "$ac_t""yes" 1>&6
8974 :
8975else
8976 echo "$ac_t""no" 1>&6
8977
8978 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8979
8980fi
8981
8982
8983 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8984
8985 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
8986
8987 if test "$wxUSE_ODBC" = "yes" ; then
8988 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8989 fi
8990
8991 if test "$wxUSE_MINGW" = 1; then
8992 LDFLAGS="$LDFLAGS -mwindows"
8993 fi
8994
8995 TOOLKIT=MSW
8996 GUIDIST=MSW_DIST
8997
8998 RCINCSWITCH="--include-dir"
8999 RCDEFSWITCH="--define"
9000 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
9001 RCINPUTSWITCH="-i"
9002 RCOUTPUTSWITCH="-o"
9003 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
9004
9005 RESPROGRAM="\$(RES_PROGRAM)"
9006 fi
9007
9008 if test "$wxUSE_GTK" = 1; then
9009 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9010echo "configure:9011: checking for GTK+ version" >&5
9011
9012 gtk_version_cached=1
9013 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9014 echo $ac_n "(cached) $ac_c" 1>&6
9015else
9016
9017 gtk_version_cached=0
9018 echo "$ac_t""""" 1>&6
9019
9020 wx_cv_lib_gtk=
9021 if test "x$wxUSE_GTK2" = "xyes"; then
9022 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9023if test "${with_gtk_prefix+set}" = set; then
9024 withval="$with_gtk_prefix"
9025 gtk_config_prefix="$withval"
9026else
9027 gtk_config_prefix=""
9028fi
9029
9030# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9031if test "${with_gtk_exec_prefix+set}" = set; then
9032 withval="$with_gtk_exec_prefix"
9033 gtk_config_exec_prefix="$withval"
9034else
9035 gtk_config_exec_prefix=""
9036fi
9037
9038# Check whether --enable-gtktest or --disable-gtktest was given.
9039if test "${enable_gtktest+set}" = set; then
9040 enableval="$enable_gtktest"
9041 :
9042else
9043 enable_gtktest=yes
9044fi
9045
9046
9047 for module in .
9048 do
9049 case "$module" in
9050 gthread)
9051 gtk_config_args="$gtk_config_args gthread"
9052 ;;
9053 esac
9054 done
9055
9056 if test x$gtk_config_exec_prefix != x ; then
9057 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9058 if test x${GTK_CONFIG_2_0+set} != xset ; then
9059 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9060 fi
9061 fi
9062 if test x$gtk_config_prefix != x ; then
9063 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9064 if test x${GTK_CONFIG_2_0+set} != xset ; then
9065 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9066 fi
9067 fi
9068
9069 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9070set dummy gtk-config-2.0; ac_word=$2
9071echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9072echo "configure:9073: checking for $ac_word" >&5
9073if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9074 echo $ac_n "(cached) $ac_c" 1>&6
9075else
9076 case "$GTK_CONFIG_2_0" in
9077 /*)
9078 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9079 ;;
9080 ?:/*)
9081 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9082 ;;
9083 *)
9084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9085 ac_dummy="$PATH"
9086 for ac_dir in $ac_dummy; do
9087 test -z "$ac_dir" && ac_dir=.
9088 if test -f $ac_dir/$ac_word; then
9089 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9090 break
9091 fi
9092 done
9093 IFS="$ac_save_ifs"
9094 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9095 ;;
9096esac
9097fi
9098GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9099if test -n "$GTK_CONFIG_2_0"; then
9100 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9101else
9102 echo "$ac_t""no" 1>&6
9103fi
9104
9105 min_gtk_version=1.3.1
9106 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9107echo "configure:9108: checking for GTK - version >= $min_gtk_version" >&5
9108 no_gtk=""
9109 if test "$GTK_CONFIG_2_0" = "no" ; then
9110 no_gtk=yes
9111 else
9112 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9113 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9114 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9115 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9116 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9117 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9118 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9119 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9120 if test "x$enable_gtktest" = "xyes" ; then
9121 ac_save_CFLAGS="$CFLAGS"
9122 ac_save_LIBS="$LIBS"
9123 CFLAGS="$CFLAGS $GTK_CFLAGS"
9124 LIBS="$GTK_LIBS $LIBS"
9125 rm -f conf.gtktest
9126 if test "$cross_compiling" = yes; then
9127 echo $ac_n "cross compiling; assumed OK... $ac_c"
9128else
9129 cat > conftest.$ac_ext <<EOF
9130#line 9131 "configure"
9131#include "confdefs.h"
9132
9133#include <gtk/gtk.h>
9134#include <stdio.h>
9135#include <stdlib.h>
9136
9137int
9138main ()
9139{
9140 int major, minor, micro;
9141 char *tmp_version;
9142
9143 system ("touch conf.gtktest");
9144
9145 /* HP/UX 9 (%@#!) writes to sscanf strings */
9146 tmp_version = g_strdup("$min_gtk_version");
9147 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9148 printf("%s, bad version string\n", "$min_gtk_version");
9149 exit(1);
9150 }
9151
9152 if ((gtk_major_version != $gtk_config_major_version) ||
9153 (gtk_minor_version != $gtk_config_minor_version) ||
9154 (gtk_micro_version != $gtk_config_micro_version))
9155 {
9156 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9157 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9158 gtk_major_version, gtk_minor_version, gtk_micro_version);
9159 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9160 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9161 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9162 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9163 printf("*** required on your system.\n");
9164 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9165 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9166 printf("*** before re-running configure\n");
9167 }
9168#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9169 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9170 (gtk_minor_version != GTK_MINOR_VERSION) ||
9171 (gtk_micro_version != GTK_MICRO_VERSION))
9172 {
9173 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9174 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9175 printf("*** library (version %d.%d.%d)\n",
9176 gtk_major_version, gtk_minor_version, gtk_micro_version);
9177 }
9178#endif /* defined (GTK_MAJOR_VERSION) ... */
9179 else
9180 {
9181 if ((gtk_major_version > major) ||
9182 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9183 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9184 {
9185 return 0;
9186 }
9187 else
9188 {
9189 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9190 gtk_major_version, gtk_minor_version, gtk_micro_version);
9191 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9192 major, minor, micro);
9193 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9194 printf("***\n");
9195 printf("*** If you have already installed a sufficiently new version, this error\n");
9196 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9197 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9198 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9199 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9200 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9201 printf("*** so that the correct libraries are found at run-time))\n");
9202 }
9203 }
9204 return 1;
9205}
9206
9207EOF
9208if { (eval echo configure:9209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9209then
9210 :
9211else
9212 echo "configure: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9214 rm -fr conftest*
9215 no_gtk=yes
9216fi
9217rm -fr conftest*
9218fi
9219
9220 CFLAGS="$ac_save_CFLAGS"
9221 LIBS="$ac_save_LIBS"
9222 fi
9223 fi
9224 if test "x$no_gtk" = x ; then
9225 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9226 wx_cv_lib_gtk=2.0
9227 else
9228 echo "$ac_t""no" 1>&6
9229 if test "$GTK_CONFIG_2_0" = "no" ; then
9230 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9231 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9232 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9233 echo "*** full path to gtk-config-2.0."
9234 else
9235 if test -f conf.gtktest ; then
9236 :
9237 else
9238 echo "*** Could not run GTK test program, checking why..."
9239 CFLAGS="$CFLAGS $GTK_CFLAGS"
9240 LIBS="$LIBS $GTK_LIBS"
9241 cat > conftest.$ac_ext <<EOF
9242#line 9243 "configure"
9243#include "confdefs.h"
9244
9245#include <gtk/gtk.h>
9246#include <stdio.h>
9247
9248int main() {
9249 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9250; return 0; }
9251EOF
9252if { (eval echo configure:9253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9253 rm -rf conftest*
9254 echo "*** The test program compiled, but did not run. This usually means"
9255 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9256 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9257 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9258 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9259 echo "*** is required on your system"
9260 echo "***"
9261 echo "*** If you have an old version installed, it is best to remove it, although"
9262 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9263 echo "***"
9264 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9265 echo "*** came with the system with the command"
9266 echo "***"
9267 echo "*** rpm --erase --nodeps gtk gtk-devel"
9268else
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9271 rm -rf conftest*
9272 echo "*** The test program failed to compile or link. See the file config.log for the"
9273 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9274 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9275 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9276fi
9277rm -f conftest*
9278 CFLAGS="$ac_save_CFLAGS"
9279 LIBS="$ac_save_LIBS"
9280 fi
9281 fi
9282 GTK_CFLAGS=""
9283 GTK_LIBS=""
9284 gthread
9285 fi
9286
9287
9288 rm -f conf.gtktest
9289
9290 fi
9291
9292 if test -z "$wx_cv_lib_gtk"; then
9293
9294 if test x$gtk_config_exec_prefix != x ; then
9295 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9296 if test x${GTK_CONFIG+set} != xset ; then
9297 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9298 fi
9299 fi
9300 if test x$gtk_config_prefix != x ; then
9301 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9302 if test x${GTK_CONFIG+set} != xset ; then
9303 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9304 fi
9305 fi
9306
9307 # Extract the first word of "gtk-config", so it can be a program name with args.
9308set dummy gtk-config; ac_word=$2
9309echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9310echo "configure:9311: checking for $ac_word" >&5
9311if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9312 echo $ac_n "(cached) $ac_c" 1>&6
9313else
9314 case "$GTK_CONFIG" in
9315 /*)
9316 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9317 ;;
9318 ?:/*)
9319 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9320 ;;
9321 *)
9322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9323 ac_dummy="$PATH"
9324 for ac_dir in $ac_dummy; do
9325 test -z "$ac_dir" && ac_dir=.
9326 if test -f $ac_dir/$ac_word; then
9327 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9328 break
9329 fi
9330 done
9331 IFS="$ac_save_ifs"
9332 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9333 ;;
9334esac
9335fi
9336GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9337if test -n "$GTK_CONFIG"; then
9338 echo "$ac_t""$GTK_CONFIG" 1>&6
9339else
9340 echo "$ac_t""no" 1>&6
9341fi
9342
9343 min_gtk_version=1.2.7
9344 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9345echo "configure:9346: checking for GTK - version >= $min_gtk_version" >&5
9346 no_gtk=""
9347 if test "$GTK_CONFIG" != "no" ; then
9348 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9349 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9350 ac_save_CFLAGS="$CFLAGS"
9351 ac_save_LIBS="$LIBS"
9352 CFLAGS="$CFLAGS $GTK_CFLAGS"
9353 LIBS="$LIBS $GTK_LIBS"
9354 if test "$cross_compiling" = yes; then
9355 echo $ac_n "cross compiling; assumed OK... $ac_c"
9356else
9357 cat > conftest.$ac_ext <<EOF
9358#line 9359 "configure"
9359#include "confdefs.h"
9360
9361#include <gtk/gtk.h>
9362#include <gtk/gtkfeatures.h>
9363#include <stdio.h>
9364#include <stdlib.h>
9365
9366int
9367main ()
9368{
9369 int major, minor, micro;
9370
9371 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9372 printf("%s, bad version string\n", "$min_gtk_version");
9373 exit(1);
9374 }
9375
9376 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9377 (GTK_MINOR_VERSION != gtk_minor_version) ||
9378 (GTK_MICRO_VERSION != gtk_micro_version)) {
9379 printf("Headers vs. library version mismatch!\n");
9380 exit(1);
9381 }
9382
9383 if (gtk_minor_version == 1) return FALSE;
9384
9385 return !((gtk_major_version > major) ||
9386 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9387 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9388}
9389
9390EOF
9391if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9392then
9393 :
9394else
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9397 rm -fr conftest*
9398 no_gtk=yes
9399fi
9400rm -fr conftest*
9401fi
9402
9403 CFLAGS="$ac_save_CFLAGS"
9404 LIBS="$ac_save_LIBS"
9405 else
9406 no_gtk=yes
9407 fi
9408 if test "x$no_gtk" = x ; then
9409 echo "$ac_t""yes" 1>&6
9410 wx_cv_lib_gtk=1.2.7
9411 else
9412 echo "$ac_t""no" 1>&6
9413 GTK_CFLAGS=""
9414 GTK_LIBS=""
9415 :
9416 fi
9417
9418
9419
9420 fi
9421
9422 if test -z "$wx_cv_lib_gtk"; then
9423
9424 if test x$gtk_config_exec_prefix != x ; then
9425 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9426 if test x${GTK_CONFIG+set} != xset ; then
9427 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9428 fi
9429 fi
9430 if test x$gtk_config_prefix != x ; then
9431 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9432 if test x${GTK_CONFIG+set} != xset ; then
9433 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9434 fi
9435 fi
9436
9437 # Extract the first word of "gtk-config", so it can be a program name with args.
9438set dummy gtk-config; ac_word=$2
9439echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9440echo "configure:9441: checking for $ac_word" >&5
9441if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9442 echo $ac_n "(cached) $ac_c" 1>&6
9443else
9444 case "$GTK_CONFIG" in
9445 /*)
9446 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9447 ;;
9448 ?:/*)
9449 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9450 ;;
9451 *)
9452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9453 ac_dummy="$PATH"
9454 for ac_dir in $ac_dummy; do
9455 test -z "$ac_dir" && ac_dir=.
9456 if test -f $ac_dir/$ac_word; then
9457 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9458 break
9459 fi
9460 done
9461 IFS="$ac_save_ifs"
9462 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9463 ;;
9464esac
9465fi
9466GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9467if test -n "$GTK_CONFIG"; then
9468 echo "$ac_t""$GTK_CONFIG" 1>&6
9469else
9470 echo "$ac_t""no" 1>&6
9471fi
9472
9473 min_gtk_version=1.2.3
9474 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9475echo "configure:9476: checking for GTK - version >= $min_gtk_version" >&5
9476 no_gtk=""
9477 if test "$GTK_CONFIG" != "no" ; then
9478 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9479 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9480 ac_save_CFLAGS="$CFLAGS"
9481 ac_save_LIBS="$LIBS"
9482 CFLAGS="$CFLAGS $GTK_CFLAGS"
9483 LIBS="$LIBS $GTK_LIBS"
9484 if test "$cross_compiling" = yes; then
9485 echo $ac_n "cross compiling; assumed OK... $ac_c"
9486else
9487 cat > conftest.$ac_ext <<EOF
9488#line 9489 "configure"
9489#include "confdefs.h"
9490
9491#include <gtk/gtk.h>
9492#include <gtk/gtkfeatures.h>
9493#include <stdio.h>
9494#include <stdlib.h>
9495
9496int
9497main ()
9498{
9499 int major, minor, micro;
9500
9501 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9502 printf("%s, bad version string\n", "$min_gtk_version");
9503 exit(1);
9504 }
9505
9506 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9507 (GTK_MINOR_VERSION != gtk_minor_version) ||
9508 (GTK_MICRO_VERSION != gtk_micro_version)) {
9509 printf("Headers vs. library version mismatch!\n");
9510 exit(1);
9511 }
9512
9513 if (gtk_minor_version == 1) return FALSE;
9514
9515 return !((gtk_major_version > major) ||
9516 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9517 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9518}
9519
9520EOF
9521if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9522then
9523 :
9524else
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 rm -fr conftest*
9528 no_gtk=yes
9529fi
9530rm -fr conftest*
9531fi
9532
9533 CFLAGS="$ac_save_CFLAGS"
9534 LIBS="$ac_save_LIBS"
9535 else
9536 no_gtk=yes
9537 fi
9538 if test "x$no_gtk" = x ; then
9539 echo "$ac_t""yes" 1>&6
9540 wx_cv_lib_gtk=1.2.3
9541 else
9542 echo "$ac_t""no" 1>&6
9543 GTK_CFLAGS=""
9544 GTK_LIBS=""
9545 :
9546 fi
9547
9548
9549
9550 fi
9551
9552 if test -z "$wx_cv_lib_gtk"; then
9553 wx_cv_lib_gtk=none
9554 else
9555 wx_cv_cflags_gtk=$GTK_CFLAGS
9556 wx_cv_libs_gtk=$GTK_LIBS
9557 fi
9558
9559
9560fi
9561
9562
9563 if test "$gtk_version_cached" = 1; then
9564 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9565 fi
9566
9567 case "$wx_cv_lib_gtk" in
9568 2.0) WXGTK20=1
9569 ;;
9570 1.2.7) WXGTK127=1
9571 WXGTK12=1
9572 ;;
9573 1.2.3) WXGTK12=1
9574 ;;
9575 *) { echo "configure: error:
9576Please check that gtk-config is in path, the directory
9577where GTK+ libraries are installed (returned by
9578'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9579equivalent variable and GTK+ is version 1.2.3 or above.
9580 " 1>&2; exit 1; }
9581 ;;
9582 esac
9583
9584 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9585 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9586
9587 AFMINSTALL=afminstall
9588 TOOLKIT=GTK
9589 GUIDIST=GTK_DIST
9590
9591 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9592echo "configure:9593: checking for gdk_im_open in -lgdk" >&5
9593ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9594if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9596else
9597 ac_save_LIBS="$LIBS"
9598LIBS="-lgdk $LIBS"
9599cat > conftest.$ac_ext <<EOF
9600#line 9601 "configure"
9601#include "confdefs.h"
9602/* Override any gcc2 internal prototype to avoid an error. */
9603/* We use char because int might match the return type of a gcc2
9604 builtin and then its argument prototype would still apply. */
9605char gdk_im_open();
9606
9607int main() {
9608gdk_im_open()
9609; return 0; }
9610EOF
9611if { (eval echo configure:9612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9612 rm -rf conftest*
9613 eval "ac_cv_lib_$ac_lib_var=yes"
9614else
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9617 rm -rf conftest*
9618 eval "ac_cv_lib_$ac_lib_var=no"
9619fi
9620rm -f conftest*
9621LIBS="$ac_save_LIBS"
9622
9623fi
9624if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9625 echo "$ac_t""yes" 1>&6
9626 cat >> confdefs.h <<\EOF
9627#define HAVE_XIM 1
9628EOF
9629
9630else
9631 echo "$ac_t""no" 1>&6
9632fi
9633
9634 fi
9635
9636 if test "$wxUSE_MGL" = 1; then
9637
9638 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9639echo "configure:9640: checking for SciTech MGL library" >&5
9640 if test "x$MGL_ROOT" = x ; then
9641 echo "$ac_t""not found" 1>&6
9642 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9643 else
9644 echo "$ac_t""$MGL_ROOT" 1>&6
9645 fi
9646
9647 MGL_OS=linux/gcc/glibc
9648 MGL_LIB_TYPE=""
9649
9650 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9651 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9652 MGL_LIB_TYPE=debug
9653 fi
9654 fi
9655 if test "x$MGL_LIB_TYPE" = x ; then
9656 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9657 MGL_LIB_TYPE=release
9658 else
9659 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9660 fi
9661 fi
9662
9663 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9664 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9665
9666 AFMINSTALL=afminstall
9667 TOOLKIT=MGL
9668 GUIDIST=MGL_DIST
9669 fi
9670
9671 if test "$wxUSE_WINE" = 1; then
9672 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9673echo "configure:9674: checking for WINE includes" >&5
9674
9675ac_find_includes=
9676for ac_dir in $SEARCH_INCLUDE;
9677 do
9678 if test -f "$ac_dir/windows.h"; then
9679 ac_find_includes=$ac_dir
9680 break
9681 fi
9682 done
9683
9684 if test "$ac_find_includes" != "" ; then
9685 echo "$ac_t""found $ac_find_includes" 1>&6
9686 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9687 else
9688 echo "$ac_t""no" 1>&6
9689 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9690 fi
9691
9692 XPM_LINK=""
9693 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9694echo "configure:9695: checking for Xpm library" >&5
9695
9696ac_find_libraries=
9697for ac_dir in $SEARCH_LIB;
9698 do
9699 for ac_extension in a so sl dylib; do
9700 if test -f "$ac_dir/libXpm.$ac_extension"; then
9701 ac_find_libraries=$ac_dir
9702 break 2
9703 fi
9704 done
9705 done
9706
9707 if test "$ac_find_libraries" != "" ; then
9708 GUI_TK_LIBRARY="-L$ac_find_libraries"
9709 XPM_LINK="-lXpm"
9710 cat >> confdefs.h <<\EOF
9711#define wxHAVE_LIB_XPM 1
9712EOF
9713
9714 echo "$ac_t""found at $ac_find_libraries" 1>&6
9715 else
9716 echo "$ac_t""no" 1>&6
9717 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9718 fi
9719
9720 MESA_LINK=""
9721 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9722echo "configure:9723: checking for Mesa library" >&5
9723
9724ac_find_libraries=
9725for ac_dir in $SEARCH_LIB;
9726 do
9727 for ac_extension in a so sl dylib; do
9728 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9729 ac_find_libraries=$ac_dir
9730 break 2
9731 fi
9732 done
9733 done
9734
9735 if test "$ac_find_libraries" != "" ; then
9736 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9737 MESA_LINK="-lMesaGL"
9738 echo "$ac_t""found at $ac_find_libraries" 1>&6
9739 else
9740 { echo "configure: error: no" 1>&2; exit 1; }
9741 fi
9742
9743 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9744 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9745 WXWINE=1
9746 TOOLKIT=MSW
9747 GUIDIST=MSW_DIST
9748 fi
9749
9750
9751 # If we find X, set shell vars x_includes and x_libraries to the
9752# paths, otherwise set no_x=yes.
9753# Uses ac_ vars as temps to allow command line to override cache and checks.
9754# --without-x overrides everything else, but does not touch the cache.
9755echo $ac_n "checking for X""... $ac_c" 1>&6
9756echo "configure:9757: checking for X" >&5
9757
9758# Check whether --with-x or --without-x was given.
9759if test "${with_x+set}" = set; then
9760 withval="$with_x"
9761 :
9762fi
9763
9764# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9765if test "x$with_x" = xno; then
9766 # The user explicitly disabled X.
9767 have_x=disabled
9768else
9769 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9770 # Both variables are already set.
9771 have_x=yes
9772 else
9773if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
9775else
9776 # One or both of the vars are not set, and there is no cached value.
9777ac_x_includes=NO ac_x_libraries=NO
9778rm -fr conftestdir
9779if mkdir conftestdir; then
9780 cd conftestdir
9781 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9782 cat > Imakefile <<'EOF'
9783acfindx:
9784 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9785EOF
9786 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9788 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9789 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9790 for ac_extension in a so sl; do
9791 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9792 test -f $ac_im_libdir/libX11.$ac_extension; then
9793 ac_im_usrlibdir=$ac_im_libdir; break
9794 fi
9795 done
9796 # Screen out bogus values from the imake configuration. They are
9797 # bogus both because they are the default anyway, and because
9798 # using them would break gcc on systems where it needs fixed includes.
9799 case "$ac_im_incroot" in
9800 /usr/include) ;;
9801 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9802 esac
9803 case "$ac_im_usrlibdir" in
9804 /usr/lib | /lib) ;;
9805 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9806 esac
9807 fi
9808 cd ..
9809 rm -fr conftestdir
9810fi
9811
9812if test "$ac_x_includes" = NO; then
9813 # Guess where to find include files, by looking for this one X11 .h file.
9814 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9815
9816 # First, try using that file with no special directory specified.
9817cat > conftest.$ac_ext <<EOF
9818#line 9819 "configure"
9819#include "confdefs.h"
9820#include <$x_direct_test_include>
9821EOF
9822ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9823{ (eval echo configure:9824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9824ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9825if test -z "$ac_err"; then
9826 rm -rf conftest*
9827 # We can compile using X headers with no special include directory.
9828ac_x_includes=
9829else
9830 echo "$ac_err" >&5
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 rm -rf conftest*
9834 # Look for the header file in a standard set of common directories.
9835# Check X11 before X11Rn because it is often a symlink to the current release.
9836 for ac_dir in \
9837 /usr/X11/include \
9838 /usr/X11R6/include \
9839 /usr/X11R5/include \
9840 /usr/X11R4/include \
9841 \
9842 /usr/include/X11 \
9843 /usr/include/X11R6 \
9844 /usr/include/X11R5 \
9845 /usr/include/X11R4 \
9846 \
9847 /usr/local/X11/include \
9848 /usr/local/X11R6/include \
9849 /usr/local/X11R5/include \
9850 /usr/local/X11R4/include \
9851 \
9852 /usr/local/include/X11 \
9853 /usr/local/include/X11R6 \
9854 /usr/local/include/X11R5 \
9855 /usr/local/include/X11R4 \
9856 \
9857 /usr/X386/include \
9858 /usr/x386/include \
9859 /usr/XFree86/include/X11 \
9860 \
9861 /usr/include \
9862 /usr/local/include \
9863 /usr/unsupported/include \
9864 /usr/athena/include \
9865 /usr/local/x11r5/include \
9866 /usr/lpp/Xamples/include \
9867 \
9868 /usr/openwin/include \
9869 /usr/openwin/share/include \
9870 ; \
9871 do
9872 if test -r "$ac_dir/$x_direct_test_include"; then
9873 ac_x_includes=$ac_dir
9874 break
9875 fi
9876 done
9877fi
9878rm -f conftest*
9879fi # $ac_x_includes = NO
9880
9881if test "$ac_x_libraries" = NO; then
9882 # Check for the libraries.
9883
9884 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9885 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9886
9887 # See if we find them without any special options.
9888 # Don't add to $LIBS permanently.
9889 ac_save_LIBS="$LIBS"
9890 LIBS="-l$x_direct_test_library $LIBS"
9891cat > conftest.$ac_ext <<EOF
9892#line 9893 "configure"
9893#include "confdefs.h"
9894
9895int main() {
9896${x_direct_test_function}()
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 LIBS="$ac_save_LIBS"
9902# We can link X programs with no special library path.
9903ac_x_libraries=
9904else
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9907 rm -rf conftest*
9908 LIBS="$ac_save_LIBS"
9909# First see if replacing the include by lib works.
9910# Check X11 before X11Rn because it is often a symlink to the current release.
9911for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9912 /usr/X11/lib \
9913 /usr/X11R6/lib \
9914 /usr/X11R5/lib \
9915 /usr/X11R4/lib \
9916 \
9917 /usr/lib/X11 \
9918 /usr/lib/X11R6 \
9919 /usr/lib/X11R5 \
9920 /usr/lib/X11R4 \
9921 \
9922 /usr/local/X11/lib \
9923 /usr/local/X11R6/lib \
9924 /usr/local/X11R5/lib \
9925 /usr/local/X11R4/lib \
9926 \
9927 /usr/local/lib/X11 \
9928 /usr/local/lib/X11R6 \
9929 /usr/local/lib/X11R5 \
9930 /usr/local/lib/X11R4 \
9931 \
9932 /usr/X386/lib \
9933 /usr/x386/lib \
9934 /usr/XFree86/lib/X11 \
9935 \
9936 /usr/lib \
9937 /usr/local/lib \
9938 /usr/unsupported/lib \
9939 /usr/athena/lib \
9940 /usr/local/x11r5/lib \
9941 /usr/lpp/Xamples/lib \
9942 /lib/usr/lib/X11 \
9943 \
9944 /usr/openwin/lib \
9945 /usr/openwin/share/lib \
9946 ; \
9947do
9948 for ac_extension in a so sl; do
9949 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9950 ac_x_libraries=$ac_dir
9951 break 2
9952 fi
9953 done
9954done
9955fi
9956rm -f conftest*
9957fi # $ac_x_libraries = NO
9958
9959if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9960 # Didn't find X anywhere. Cache the known absence of X.
9961 ac_cv_have_x="have_x=no"
9962else
9963 # Record where we found X for the cache.
9964 ac_cv_have_x="have_x=yes \
9965 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9966fi
9967fi
9968 fi
9969 eval "$ac_cv_have_x"
9970fi # $with_x != no
9971
9972if test "$have_x" != yes; then
9973 echo "$ac_t""$have_x" 1>&6
9974 no_x=yes
9975else
9976 # If each of the values was on the command line, it overrides each guess.
9977 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9978 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9979 # Update the cache value to reflect the command line values.
9980 ac_cv_have_x="have_x=yes \
9981 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9982 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9983fi
9984
9985if test "$no_x" = yes; then
9986 # Not all programs may use this symbol, but it does not hurt to define it.
9987 cat >> confdefs.h <<\EOF
9988#define X_DISPLAY_MISSING 1
9989EOF
9990
9991 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9992else
9993 if test -n "$x_includes"; then
9994 X_CFLAGS="$X_CFLAGS -I$x_includes"
9995 fi
9996
9997 # It would also be nice to do this for all -L options, not just this one.
9998 if test -n "$x_libraries"; then
9999 X_LIBS="$X_LIBS -L$x_libraries"
10000 # For Solaris; some versions of Sun CC require a space after -R and
10001 # others require no space. Words are not sufficient . . . .
10002 case "`(uname -sr) 2>/dev/null`" in
10003 "SunOS 5"*)
10004 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10005echo "configure:10006: checking whether -R must be followed by a space" >&5
10006 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10007 cat > conftest.$ac_ext <<EOF
10008#line 10009 "configure"
10009#include "confdefs.h"
10010
10011int main() {
10012
10013; return 0; }
10014EOF
10015if { (eval echo configure:10016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10016 rm -rf conftest*
10017 ac_R_nospace=yes
10018else
10019 echo "configure: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10021 rm -rf conftest*
10022 ac_R_nospace=no
10023fi
10024rm -f conftest*
10025 if test $ac_R_nospace = yes; then
10026 echo "$ac_t""no" 1>&6
10027 X_LIBS="$X_LIBS -R$x_libraries"
10028 else
10029 LIBS="$ac_xsave_LIBS -R $x_libraries"
10030 cat > conftest.$ac_ext <<EOF
10031#line 10032 "configure"
10032#include "confdefs.h"
10033
10034int main() {
10035
10036; return 0; }
10037EOF
10038if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10039 rm -rf conftest*
10040 ac_R_space=yes
10041else
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10044 rm -rf conftest*
10045 ac_R_space=no
10046fi
10047rm -f conftest*
10048 if test $ac_R_space = yes; then
10049 echo "$ac_t""yes" 1>&6
10050 X_LIBS="$X_LIBS -R $x_libraries"
10051 else
10052 echo "$ac_t""neither works" 1>&6
10053 fi
10054 fi
10055 LIBS="$ac_xsave_LIBS"
10056 esac
10057 fi
10058
10059 # Check for system-dependent libraries X programs must link with.
10060 # Do this before checking for the system-independent R6 libraries
10061 # (-lICE), since we may need -lsocket or whatever for X linking.
10062
10063 if test "$ISC" = yes; then
10064 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10065 else
10066 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10067 # libraries were built with DECnet support. And karl@cs.umb.edu says
10068 # the Alpha needs dnet_stub (dnet does not exist).
10069 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10070echo "configure:10071: checking for dnet_ntoa in -ldnet" >&5
10071ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10072if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10073 echo $ac_n "(cached) $ac_c" 1>&6
10074else
10075 ac_save_LIBS="$LIBS"
10076LIBS="-ldnet $LIBS"
10077cat > conftest.$ac_ext <<EOF
10078#line 10079 "configure"
10079#include "confdefs.h"
10080/* Override any gcc2 internal prototype to avoid an error. */
10081/* We use char because int might match the return type of a gcc2
10082 builtin and then its argument prototype would still apply. */
10083char dnet_ntoa();
10084
10085int main() {
10086dnet_ntoa()
10087; return 0; }
10088EOF
10089if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10090 rm -rf conftest*
10091 eval "ac_cv_lib_$ac_lib_var=yes"
10092else
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 rm -rf conftest*
10096 eval "ac_cv_lib_$ac_lib_var=no"
10097fi
10098rm -f conftest*
10099LIBS="$ac_save_LIBS"
10100
10101fi
10102if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10103 echo "$ac_t""yes" 1>&6
10104 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10105else
10106 echo "$ac_t""no" 1>&6
10107fi
10108
10109 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10110 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10111echo "configure:10112: checking for dnet_ntoa in -ldnet_stub" >&5
10112ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10113if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10115else
10116 ac_save_LIBS="$LIBS"
10117LIBS="-ldnet_stub $LIBS"
10118cat > conftest.$ac_ext <<EOF
10119#line 10120 "configure"
10120#include "confdefs.h"
10121/* Override any gcc2 internal prototype to avoid an error. */
10122/* We use char because int might match the return type of a gcc2
10123 builtin and then its argument prototype would still apply. */
10124char dnet_ntoa();
10125
10126int main() {
10127dnet_ntoa()
10128; return 0; }
10129EOF
10130if { (eval echo configure:10131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10131 rm -rf conftest*
10132 eval "ac_cv_lib_$ac_lib_var=yes"
10133else
10134 echo "configure: failed program was:" >&5
10135 cat conftest.$ac_ext >&5
10136 rm -rf conftest*
10137 eval "ac_cv_lib_$ac_lib_var=no"
10138fi
10139rm -f conftest*
10140LIBS="$ac_save_LIBS"
10141
10142fi
10143if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10144 echo "$ac_t""yes" 1>&6
10145 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10146else
10147 echo "$ac_t""no" 1>&6
10148fi
10149
10150 fi
10151
10152 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10153 # to get the SysV transport functions.
10154 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10155 # needs -lnsl.
10156 # The nsl library prevents programs from opening the X display
10157 # on Irix 5.2, according to dickey@clark.net.
10158 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10159echo "configure:10160: checking for gethostbyname" >&5
10160if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10162else
10163 cat > conftest.$ac_ext <<EOF
10164#line 10165 "configure"
10165#include "confdefs.h"
10166/* System header to define __stub macros and hopefully few prototypes,
10167 which can conflict with char gethostbyname(); below. */
10168#include <assert.h>
10169/* Override any gcc2 internal prototype to avoid an error. */
10170/* We use char because int might match the return type of a gcc2
10171 builtin and then its argument prototype would still apply. */
10172char gethostbyname();
10173
10174int main() {
10175
10176/* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
10179#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10180choke me
10181#else
10182gethostbyname();
10183#endif
10184
10185; return 0; }
10186EOF
10187if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10188 rm -rf conftest*
10189 eval "ac_cv_func_gethostbyname=yes"
10190else
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 rm -rf conftest*
10194 eval "ac_cv_func_gethostbyname=no"
10195fi
10196rm -f conftest*
10197fi
10198
10199if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10200 echo "$ac_t""yes" 1>&6
10201 :
10202else
10203 echo "$ac_t""no" 1>&6
10204fi
10205
10206 if test $ac_cv_func_gethostbyname = no; then
10207 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10208echo "configure:10209: checking for gethostbyname in -lnsl" >&5
10209ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10210if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10211 echo $ac_n "(cached) $ac_c" 1>&6
10212else
10213 ac_save_LIBS="$LIBS"
10214LIBS="-lnsl $LIBS"
10215cat > conftest.$ac_ext <<EOF
10216#line 10217 "configure"
10217#include "confdefs.h"
10218/* Override any gcc2 internal prototype to avoid an error. */
10219/* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10221char gethostbyname();
10222
10223int main() {
10224gethostbyname()
10225; return 0; }
10226EOF
10227if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10228 rm -rf conftest*
10229 eval "ac_cv_lib_$ac_lib_var=yes"
10230else
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 rm -rf conftest*
10234 eval "ac_cv_lib_$ac_lib_var=no"
10235fi
10236rm -f conftest*
10237LIBS="$ac_save_LIBS"
10238
10239fi
10240if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10241 echo "$ac_t""yes" 1>&6
10242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10243else
10244 echo "$ac_t""no" 1>&6
10245fi
10246
10247 fi
10248
10249 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10250 # socket/setsockopt and other routines are undefined under SCO ODT
10251 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10252 # on later versions), says simon@lia.di.epfl.ch: it contains
10253 # gethostby* variants that don't use the nameserver (or something).
10254 # -lsocket must be given before -lnsl if both are needed.
10255 # We assume that if connect needs -lnsl, so does gethostbyname.
10256 echo $ac_n "checking for connect""... $ac_c" 1>&6
10257echo "configure:10258: checking for connect" >&5
10258if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10260else
10261 cat > conftest.$ac_ext <<EOF
10262#line 10263 "configure"
10263#include "confdefs.h"
10264/* System header to define __stub macros and hopefully few prototypes,
10265 which can conflict with char connect(); below. */
10266#include <assert.h>
10267/* Override any gcc2 internal prototype to avoid an error. */
10268/* We use char because int might match the return type of a gcc2
10269 builtin and then its argument prototype would still apply. */
10270char connect();
10271
10272int main() {
10273
10274/* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277#if defined (__stub_connect) || defined (__stub___connect)
10278choke me
10279#else
10280connect();
10281#endif
10282
10283; return 0; }
10284EOF
10285if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10286 rm -rf conftest*
10287 eval "ac_cv_func_connect=yes"
10288else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -rf conftest*
10292 eval "ac_cv_func_connect=no"
10293fi
10294rm -f conftest*
10295fi
10296
10297if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10298 echo "$ac_t""yes" 1>&6
10299 :
10300else
10301 echo "$ac_t""no" 1>&6
10302fi
10303
10304 if test $ac_cv_func_connect = no; then
10305 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10306echo "configure:10307: checking for connect in -lsocket" >&5
10307ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10308if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310else
10311 ac_save_LIBS="$LIBS"
10312LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10313cat > conftest.$ac_ext <<EOF
10314#line 10315 "configure"
10315#include "confdefs.h"
10316/* Override any gcc2 internal prototype to avoid an error. */
10317/* We use char because int might match the return type of a gcc2
10318 builtin and then its argument prototype would still apply. */
10319char connect();
10320
10321int main() {
10322connect()
10323; return 0; }
10324EOF
10325if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10326 rm -rf conftest*
10327 eval "ac_cv_lib_$ac_lib_var=yes"
10328else
10329 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 rm -rf conftest*
10332 eval "ac_cv_lib_$ac_lib_var=no"
10333fi
10334rm -f conftest*
10335LIBS="$ac_save_LIBS"
10336
10337fi
10338if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10339 echo "$ac_t""yes" 1>&6
10340 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10341else
10342 echo "$ac_t""no" 1>&6
10343fi
10344
10345 fi
10346
10347 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10348 echo $ac_n "checking for remove""... $ac_c" 1>&6
10349echo "configure:10350: checking for remove" >&5
10350if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10351 echo $ac_n "(cached) $ac_c" 1>&6
10352else
10353 cat > conftest.$ac_ext <<EOF
10354#line 10355 "configure"
10355#include "confdefs.h"
10356/* System header to define __stub macros and hopefully few prototypes,
10357 which can conflict with char remove(); below. */
10358#include <assert.h>
10359/* Override any gcc2 internal prototype to avoid an error. */
10360/* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10362char remove();
10363
10364int main() {
10365
10366/* The GNU C library defines this for functions which it implements
10367 to always fail with ENOSYS. Some functions are actually named
10368 something starting with __ and the normal name is an alias. */
10369#if defined (__stub_remove) || defined (__stub___remove)
10370choke me
10371#else
10372remove();
10373#endif
10374
10375; return 0; }
10376EOF
10377if { (eval echo configure:10378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10378 rm -rf conftest*
10379 eval "ac_cv_func_remove=yes"
10380else
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 rm -rf conftest*
10384 eval "ac_cv_func_remove=no"
10385fi
10386rm -f conftest*
10387fi
10388
10389if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10390 echo "$ac_t""yes" 1>&6
10391 :
10392else
10393 echo "$ac_t""no" 1>&6
10394fi
10395
10396 if test $ac_cv_func_remove = no; then
10397 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10398echo "configure:10399: checking for remove in -lposix" >&5
10399ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10402else
10403 ac_save_LIBS="$LIBS"
10404LIBS="-lposix $LIBS"
10405cat > conftest.$ac_ext <<EOF
10406#line 10407 "configure"
10407#include "confdefs.h"
10408/* Override any gcc2 internal prototype to avoid an error. */
10409/* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10411char remove();
10412
10413int main() {
10414remove()
10415; return 0; }
10416EOF
10417if { (eval echo configure:10418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10418 rm -rf conftest*
10419 eval "ac_cv_lib_$ac_lib_var=yes"
10420else
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 rm -rf conftest*
10424 eval "ac_cv_lib_$ac_lib_var=no"
10425fi
10426rm -f conftest*
10427LIBS="$ac_save_LIBS"
10428
10429fi
10430if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10431 echo "$ac_t""yes" 1>&6
10432 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10433else
10434 echo "$ac_t""no" 1>&6
10435fi
10436
10437 fi
10438
10439 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10440 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10441echo "configure:10442: checking for shmat" >&5
10442if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10443 echo $ac_n "(cached) $ac_c" 1>&6
10444else
10445 cat > conftest.$ac_ext <<EOF
10446#line 10447 "configure"
10447#include "confdefs.h"
10448/* System header to define __stub macros and hopefully few prototypes,
10449 which can conflict with char shmat(); below. */
10450#include <assert.h>
10451/* Override any gcc2 internal prototype to avoid an error. */
10452/* We use char because int might match the return type of a gcc2
10453 builtin and then its argument prototype would still apply. */
10454char shmat();
10455
10456int main() {
10457
10458/* The GNU C library defines this for functions which it implements
10459 to always fail with ENOSYS. Some functions are actually named
10460 something starting with __ and the normal name is an alias. */
10461#if defined (__stub_shmat) || defined (__stub___shmat)
10462choke me
10463#else
10464shmat();
10465#endif
10466
10467; return 0; }
10468EOF
10469if { (eval echo configure:10470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10470 rm -rf conftest*
10471 eval "ac_cv_func_shmat=yes"
10472else
10473 echo "configure: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10475 rm -rf conftest*
10476 eval "ac_cv_func_shmat=no"
10477fi
10478rm -f conftest*
10479fi
10480
10481if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10482 echo "$ac_t""yes" 1>&6
10483 :
10484else
10485 echo "$ac_t""no" 1>&6
10486fi
10487
10488 if test $ac_cv_func_shmat = no; then
10489 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10490echo "configure:10491: checking for shmat in -lipc" >&5
10491ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10492if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10493 echo $ac_n "(cached) $ac_c" 1>&6
10494else
10495 ac_save_LIBS="$LIBS"
10496LIBS="-lipc $LIBS"
10497cat > conftest.$ac_ext <<EOF
10498#line 10499 "configure"
10499#include "confdefs.h"
10500/* Override any gcc2 internal prototype to avoid an error. */
10501/* We use char because int might match the return type of a gcc2
10502 builtin and then its argument prototype would still apply. */
10503char shmat();
10504
10505int main() {
10506shmat()
10507; return 0; }
10508EOF
10509if { (eval echo configure:10510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10510 rm -rf conftest*
10511 eval "ac_cv_lib_$ac_lib_var=yes"
10512else
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10515 rm -rf conftest*
10516 eval "ac_cv_lib_$ac_lib_var=no"
10517fi
10518rm -f conftest*
10519LIBS="$ac_save_LIBS"
10520
10521fi
10522if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10523 echo "$ac_t""yes" 1>&6
10524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10525else
10526 echo "$ac_t""no" 1>&6
10527fi
10528
10529 fi
10530 fi
10531
10532 # Check for libraries that X11R6 Xt/Xaw programs need.
10533 ac_save_LDFLAGS="$LDFLAGS"
10534 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10535 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10536 # check for ICE first), but we must link in the order -lSM -lICE or
10537 # we get undefined symbols. So assume we have SM if we have ICE.
10538 # These have to be linked with before -lX11, unlike the other
10539 # libraries we check for below, so use a different variable.
10540 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10541 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10542echo "configure:10543: checking for IceConnectionNumber in -lICE" >&5
10543ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10544if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10546else
10547 ac_save_LIBS="$LIBS"
10548LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10549cat > conftest.$ac_ext <<EOF
10550#line 10551 "configure"
10551#include "confdefs.h"
10552/* Override any gcc2 internal prototype to avoid an error. */
10553/* We use char because int might match the return type of a gcc2
10554 builtin and then its argument prototype would still apply. */
10555char IceConnectionNumber();
10556
10557int main() {
10558IceConnectionNumber()
10559; return 0; }
10560EOF
10561if { (eval echo configure:10562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10562 rm -rf conftest*
10563 eval "ac_cv_lib_$ac_lib_var=yes"
10564else
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10567 rm -rf conftest*
10568 eval "ac_cv_lib_$ac_lib_var=no"
10569fi
10570rm -f conftest*
10571LIBS="$ac_save_LIBS"
10572
10573fi
10574if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10575 echo "$ac_t""yes" 1>&6
10576 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10577else
10578 echo "$ac_t""no" 1>&6
10579fi
10580
10581 LDFLAGS="$ac_save_LDFLAGS"
10582
10583fi
10584
10585 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10586 LDFLAGS="$LDFLAGS $X_LIBS"
10587
10588 if test "$wxUSE_MOTIF" = 1; then
10589 if test "$no_x" = "yes"; then
10590 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10591 fi
10592
10593 GUI_TK_LIBRARY="$X_LIBS"
10594 TOOLKIT_INCLUDE="$X_CFLAGS"
10595
10596 AFMINSTALL=afminstall
10597
10598
10599 COMPILED_X_PROGRAM=0
10600
10601 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10602echo "configure:10603: checking for Motif/Lesstif headers" >&5
10603
10604ac_find_includes=
10605for ac_dir in $SEARCH_INCLUDE;
10606 do
10607 if test -f "$ac_dir/Xm/Xm.h"; then
10608 ac_find_includes=$ac_dir
10609 break
10610 fi
10611 done
10612
10613 if test "$ac_find_includes" != "" ; then
10614 echo "$ac_t""found $ac_find_includes" 1>&6
10615 else
10616 cat > conftest.$ac_ext <<EOF
10617#line 10618 "configure"
10618#include "confdefs.h"
10619
10620 #include <Xm/Xm.h>
10621
10622int main() {
10623
10624 int version;
10625
10626 version = xmUseVersion;
10627
10628; return 0; }
10629EOF
10630if { (eval echo configure:10631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10631 rm -rf conftest*
10632
10633 echo "$ac_t""found in default search path" 1>&6
10634 COMPILED_X_PROGRAM=1
10635
10636else
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 rm -rf conftest*
10640
10641 echo "$ac_t""no" 1>&6
10642 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10643
10644
10645fi
10646rm -f conftest*
10647 fi
10648
10649 if test "$COMPILED_X_PROGRAM" = 0; then
10650 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10651echo "configure:10652: checking for Motif/Lesstif library" >&5
10652
10653ac_find_libraries=
10654for ac_dir in $SEARCH_LIB;
10655 do
10656 for ac_extension in a so sl dylib; do
10657 if test -f "$ac_dir/libXm.$ac_extension"; then
10658 ac_find_libraries=$ac_dir
10659 break 2
10660 fi
10661 done
10662 done
10663
10664 if test "$ac_find_libraries" != "" ; then
10665
10666 ac_path_to_include=$ac_find_includes
10667 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10668 result=$?
10669 if test $result = 0; then
10670 ac_path_to_include=""
10671 else
10672 ac_path_to_include="-I$ac_find_includes"
10673 fi
10674
10675
10676 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10677 result=$?
10678 if test $result = 0; then
10679 ac_path_to_link=""
10680 else
10681 ac_path_to_link="-L$ac_find_libraries"
10682 fi
10683
10684
10685 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10686 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10687 echo "$ac_t""found at $ac_find_libraries" 1>&6
10688 else
10689 cat > conftest.$ac_ext <<EOF
10690#line 10691 "configure"
10691#include "confdefs.h"
10692
10693 #include <Xm/Xm.h>
10694
10695int main() {
10696
10697 int version;
10698
10699 version = xmUseVersion;
10700
10701; return 0; }
10702EOF
10703if { (eval echo configure:10704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10704 rm -rf conftest*
10705
10706 echo "$ac_t""found in default search path" 1>&6
10707 COMPILED_X_PROGRAM=1
10708
10709else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -rf conftest*
10713
10714 echo "$ac_t""no" 1>&6
10715 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10716
10717
10718fi
10719rm -f conftest*
10720 fi
10721 fi
10722
10723
10724 XPM_LINK=""
10725 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10726echo "configure:10727: checking for Xpm library" >&5
10727
10728ac_find_libraries=
10729for ac_dir in $SEARCH_LIB;
10730 do
10731 for ac_extension in a so sl dylib; do
10732 if test -f "$ac_dir/libXpm.$ac_extension"; then
10733 ac_find_libraries=$ac_dir
10734 break 2
10735 fi
10736 done
10737 done
10738
10739 if test "$ac_find_libraries" != "" ; then
10740
10741 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10742 result=$?
10743 if test $result = 0; then
10744 ac_path_to_link=""
10745 else
10746 ac_path_to_link="-L$ac_find_libraries"
10747 fi
10748
10749 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10750 XPM_LINK="-lXpm "
10751 cat >> confdefs.h <<\EOF
10752#define wxHAVE_LIB_XPM 1
10753EOF
10754
10755 echo "$ac_t""found at $ac_find_libraries" 1>&6
10756 else
10757 cat > conftest.$ac_ext <<EOF
10758#line 10759 "configure"
10759#include "confdefs.h"
10760
10761 #include <X11/xpm.h>
10762
10763int main() {
10764
10765 int version;
10766
10767 version = XpmLibraryVersion();
10768
10769; return 0; }
10770EOF
10771if { (eval echo configure:10772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10772 rm -rf conftest*
10773
10774 XPM_LINK="-lXpm "
10775 cat >> confdefs.h <<\EOF
10776#define wxHAVE_LIB_XPM 1
10777EOF
10778
10779 echo "$ac_t""found in default search path" 1>&6
10780 COMPILED_X_PROGRAM=0
10781
10782else
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10785 rm -rf conftest*
10786
10787 echo "$ac_t""no" 1>&6
10788 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10789
10790
10791fi
10792rm -f conftest*
10793 fi
10794
10795 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10796 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10797 TOOLKIT=MOTIF
10798 GUIDIST=MOTIF_DIST
10799 fi
10800
10801 if test "$wxUSE_MAC" = 1; then
10802 TOOLKIT=MAC
10803 GUIDIST=MACX_DIST
10804 fi
10805
10806 if test "$wxUSE_PM" = 1; then
10807 TOOLKIT=PM
10808 GUIDIST=GTK_DIST
10809 fi
10810
10811 if test "$TOOLKIT" != "PM" ; then
10812 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10813 else
10814 TOOLKIT_DIR="os2"
10815 fi
10816
10817 TOOLKIT_NAME="${TOOLKIT_DIR}"
10818
10819 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10820
10821 if test "$TOOLKIT_NAME" = "motif"; then
10822 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10823 fi
10824
10825 if test "$wxUSE_UNIVERSAL" = "yes"; then
10826 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10827 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10828 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10829 SETUPH_DIR="univ"
10830 else
10831 SETUPH_DIR="${TOOLKIT_DIR}"
10832 fi
10833
10834 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10835 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10836 fi
10837
10838 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10839 if test "$wxUSE_UNIVERSAL" = "yes"; then
10840 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10841 fi
10842
10843 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10844
10845 if test "$wxUSE_UNIVERSAL" = "yes"; then
10846 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10847 else
10848 ALL_OBJECTS="\$(GUIOBJS)"
10849 fi
10850
10851 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10852
10853 if test "$TOOLKIT" != "MSW"; then
10854 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10855 fi
10856
10857 if test "$wxUSE_HTML" = "yes"; then
10858 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10859 fi
10860
10861 if test "$TOOLKIT" != "MSW"; then
10862 if test "$wxUSE_ODBC" = "yes" ; then
10863 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10864 fi
10865 fi
10866
10867 if test "x$REGEX_INCLUDE" != "x" ; then
10868 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10869 fi
10870
10871 if test "$wxUSE_LIBJPEG" = "yes" ; then
10872 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10873 fi
10874 if test "$wxUSE_LIBTIFF" = "yes" ; then
10875 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10876 fi
10877 if test "$wxUSE_LIBPNG" = "yes" ; then
10878 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10879 fi
10880 if test "$wxUSE_ZLIB" = "yes" ; then
10881 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10882 fi
10883 if test "$wxUSE_FREETYPE" = "yes" ; then
10884 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10885 fi
10886
10887 if test "$wxUSE_UNIVERSAL" = "yes"; then
10888 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10889 else
10890 ALL_DEPFILES="\$(GUIDEPS)"
10891 fi
10892
10893 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10894
10895 if test "$TOOLKIT" != "MSW"; then
10896 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10897 fi
10898
10899 if test "$wxUSE_HTML" = "yes"; then
10900 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10901 fi
10902
10903 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10904 if test "$wxUSE_UNIVERSAL" = "yes"; then
10905 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10906 fi
10907 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10908 RPM_SPEC="wx\$(TOOLKIT).spec"
10909
10910 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10911 DISTDIR="wx\$(TOOLKIT)"
10912else
10913 USE_GUI=0
10914
10915 TOOLKIT_DIR="base"
10916
10917 TOOLKIT_VPATH="."
10918
10919 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10920 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10921 else
10922 TOOLKIT_NAME="${TOOLKIT_DIR}"
10923 fi
10924
10925 TOOLKIT_DEF="-D__WXBASE__"
10926
10927 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10928 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10929
10930 if test "x$REGEX_INCLUDE" != "x" ; then
10931 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10932 fi
10933
10934 if test "$wxUSE_ZLIB" = "yes" ; then
10935 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10936 fi
10937
10938 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10939
10940 PORT_FILES="\${top_srcdir}/src/files.lst"
10941 RPM_FILES="src/rpmfiles.lst"
10942 RPM_SPEC="wxBase.spec"
10943
10944 GUIDIST="BASE_DIST"
10945 DISTDIR="wxBase"
10946fi
10947
10948WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10949WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10950
10951WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10952WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10953
10954case "${host}" in
10955 *-*-mingw32* )
10956 WX_LIBRARY_NAME_SHARED="wx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.dll"
10957 ;;
10958 * )
10959 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10960 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10961 ;;
10962esac
10963
10964WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10965WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10966WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10967WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10968WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10969WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10970
10971SHARED_LD=
10972PIC_FLAG=
10973WX_ALL=
10974WX_ALL_INSTALLED=
10975BURNT_LIBRARY_NAME=
10976WX_TARGET_LIBRARY_SONAME=
10977
10978
10979if test "$wxUSE_SHARED" = "yes"; then
10980 case "${host}" in
10981 *-hp-hpux* )
10982 if test "$GCC" = yes ; then
10983 SHARED_LD="${CXX} -shared -fPIC -o"
10984 PIC_FLAG="-fPIC"
10985 else
10986 LDFLAGS="-L/usr/lib"
10987
10988 SHARED_LD="${CXX} -b -o"
10989 PIC_FLAG="+Z"
10990 fi
10991 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10992 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10993 if test "$wxUSE_OPENGL" = "yes"; then
10994 WX_ALL_INSTALLED="preinstall_gl"
10995 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10996 else
10997 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10998 fi
10999 ;;
11000
11001 *-*-linux* )
11002 SHARED_LD="${CXX} -shared -o"
11003 PIC_FLAG="-fPIC"
11004 if test "$wxUSE_BURNT_NAME" = "yes" ; then
11005 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
11006 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11007 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11008 fi
11009 if test "$wxUSE_OPENGL" = "yes"; then
11010 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11011 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11012 else
11013 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11014 WX_ALL="CREATE_LINKS"
11015 fi
11016 ;;
11017 *-*-irix5* | *-*-irix6* )
11018 if test "$GCC" = yes ; then
11019 SHARED_LD="${CXX} -shared -o"
11020 PIC_FLAG="-fPIC"
11021 else
11022 SHARED_LD="${CXX} -shared -o"
11023 fi
11024 if test "$wxUSE_OPENGL" = "yes"; then
11025 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11026 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11027 else
11028 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11029 WX_ALL="CREATE_LINKS"
11030 fi
11031 ;;
11032 *-*-solaris2* )
11033 if test "$GCC" = yes ; then
11034 SHARED_LD="${CXX} -shared -o"
11035 PIC_FLAG="-fPIC"
11036
11037 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11038 else
11039 SHARED_LD="${CXX} -G -o"
11040 PIC_FLAG="-KPIC"
11041 fi
11042 if test "$wxUSE_OPENGL" = "yes"; then
11043 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11044 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11045 else
11046 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11047 WX_ALL="CREATE_LINKS"
11048 fi
11049 ;;
11050 *-*-sunos4* )
11051 SHARED_LD="${CXX} -shared -o"
11052 PIC_FLAG="-fPIC"
11053 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11054 WX_ALL="CREATE_LINKS"
11055 ;;
11056 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
11057 SHARED_LD="${CXX} -shared -o"
11058 PIC_FLAG="-fPIC"
11059 if test "$wxUSE_OPENGL" = "yes"; then
11060 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11061 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11062 else
11063 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11064 WX_ALL="CREATE_LINKS"
11065 fi
11066 ;;
11067 *-*-darwin* )
11068 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
11069 CFLAGS="${CFLAGS} -fno-common"
11070 CPPFLAGS="${CPPFLAGS} -fno-common"
11071 SHARED_LD="${CXX} -dynamiclib -o"
11072 PIC_FLAG="-dynamic -fPIC"
11073 if test "$wxUSE_OPENGL" = "yes"; then
11074 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11075 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11076 else
11077 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11078 WX_ALL="CREATE_LINKS"
11079 fi
11080 if test "$wxUSE_MAC" = 1 ; then
11081 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
11082 fi
11083 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11084 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11085 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
11086 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
11087 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
11088 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
11089 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
11090 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
11091 ;;
11092 *-*-osf* )
11093 SHARED_LD="${CXX} -shared -o"
11094 PIC_FLAG="-fPIC"
11095 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11096 WX_ALL="CREATE_LINKS"
11097 ;;
11098 *-*-dgux5* )
11099 SHARED_LD="${CXX} -shared -o"
11100 PIC_FLAG="-fPIC"
11101 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11102 WX_ALL="CREATE_LINKS"
11103 ;;
11104 *-*-sysv5* )
11105 SHARED_LD="${CXX} -shared -o"
11106 PIC_FLAG="-fPIC"
11107 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11108 WX_ALL="CREATE_LINKS"
11109 ;;
11110 *-*-aix* )
11111 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11112 WX_ALL=${WX_LIBRARY_NAME_SHARED}
11113 ;;
11114 *-*-cygwin* )
11115 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11116 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11117 if test "$wxUSE_OPENGL" = "yes"; then
11118 WX_ALL_INSTALLED="preinstall_gl"
11119 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11120 else
11121 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11122 fi
11123 ;;
11124 *-*-mingw32* )
11125 WX_LIBRARY_NAME_STATIC="lib/libwx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.a"
11126 SHARED_LD="${CC} -shared -Wl,--out-implib,${WX_LIBRARY_NAME_STATIC} -o"
11127 TOOLKIT_DEF="${TOOLKIT_DEF} -DWXUSINGDLL=1"
11128 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11129 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11130 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11131 if test "$wxUSE_OPENGL" = "yes"; then
11132 WX_ALL_INSTALLED="preinstall_gl"
11133 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
11134 else
11135 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
11136 fi
11137 ;;
11138 *-pc-os2_emx )
11139 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11140 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11141 ;;
11142 *-*-beos* )
11143 SHARED_LD="${LD} -shared -o"
11144 PIC_FLAG="-fPIC"
11145 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11146 WX_ALL="CREATE_LINKS"
11147 ;;
11148 *)
11149 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
11150 esac
11151
11152 if test "x$WX_TARGET_LIBRARY" = "x"; then
11153 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11154 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11155 fi
11156 WX_TARGET_LIBRARY_TYPE="so"
11157else
11158 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11159 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11160
11161 if test "$wxUSE_OPENGL" = "yes"; then
11162 WX_ALL_INSTALLED="preinstall_gl"
11163 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11164 else
11165 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11166 fi
11167
11168 if test "$wxUSE_GUI" = "no"; then
11169 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11170 fi
11171
11172 WX_TARGET_LIBRARY_TYPE="a"
11173fi
11174
11175
11176for ac_hdr in strings.h
11177do
11178ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11179echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11180echo "configure:11181: checking for $ac_hdr" >&5
11181if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11183else
11184 cat > conftest.$ac_ext <<EOF
11185#line 11186 "configure"
11186#include "confdefs.h"
11187#include <$ac_hdr>
11188EOF
11189ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11190{ (eval echo configure:11191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11191ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11192if test -z "$ac_err"; then
11193 rm -rf conftest*
11194 eval "ac_cv_header_$ac_safe=yes"
11195else
11196 echo "$ac_err" >&5
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 rm -rf conftest*
11200 eval "ac_cv_header_$ac_safe=no"
11201fi
11202rm -f conftest*
11203fi
11204if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11205 echo "$ac_t""yes" 1>&6
11206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11207 cat >> confdefs.h <<EOF
11208#define $ac_tr_hdr 1
11209EOF
11210
11211else
11212 echo "$ac_t""no" 1>&6
11213fi
11214done
11215
11216for ac_hdr in stdlib.h
11217do
11218ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11219echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11220echo "configure:11221: checking for $ac_hdr" >&5
11221if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11222 echo $ac_n "(cached) $ac_c" 1>&6
11223else
11224 cat > conftest.$ac_ext <<EOF
11225#line 11226 "configure"
11226#include "confdefs.h"
11227#include <$ac_hdr>
11228EOF
11229ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11230{ (eval echo configure:11231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11231ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11232if test -z "$ac_err"; then
11233 rm -rf conftest*
11234 eval "ac_cv_header_$ac_safe=yes"
11235else
11236 echo "$ac_err" >&5
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 rm -rf conftest*
11240 eval "ac_cv_header_$ac_safe=no"
11241fi
11242rm -f conftest*
11243fi
11244if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11245 echo "$ac_t""yes" 1>&6
11246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11247 cat >> confdefs.h <<EOF
11248#define $ac_tr_hdr 1
11249EOF
11250
11251else
11252 echo "$ac_t""no" 1>&6
11253fi
11254done
11255
11256for ac_hdr in unistd.h
11257do
11258ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11259echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11260echo "configure:11261: checking for $ac_hdr" >&5
11261if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11262 echo $ac_n "(cached) $ac_c" 1>&6
11263else
11264 cat > conftest.$ac_ext <<EOF
11265#line 11266 "configure"
11266#include "confdefs.h"
11267#include <$ac_hdr>
11268EOF
11269ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11270{ (eval echo configure:11271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11271ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11272if test -z "$ac_err"; then
11273 rm -rf conftest*
11274 eval "ac_cv_header_$ac_safe=yes"
11275else
11276 echo "$ac_err" >&5
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11279 rm -rf conftest*
11280 eval "ac_cv_header_$ac_safe=no"
11281fi
11282rm -f conftest*
11283fi
11284if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11285 echo "$ac_t""yes" 1>&6
11286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11287 cat >> confdefs.h <<EOF
11288#define $ac_tr_hdr 1
11289EOF
11290
11291else
11292 echo "$ac_t""no" 1>&6
11293fi
11294done
11295
11296for ac_hdr in wchar.h
11297do
11298ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11299echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11300echo "configure:11301: checking for $ac_hdr" >&5
11301if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303else
11304 cat > conftest.$ac_ext <<EOF
11305#line 11306 "configure"
11306#include "confdefs.h"
11307#include <$ac_hdr>
11308EOF
11309ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11310{ (eval echo configure:11311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11311ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11312if test -z "$ac_err"; then
11313 rm -rf conftest*
11314 eval "ac_cv_header_$ac_safe=yes"
11315else
11316 echo "$ac_err" >&5
11317 echo "configure: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11319 rm -rf conftest*
11320 eval "ac_cv_header_$ac_safe=no"
11321fi
11322rm -f conftest*
11323fi
11324if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11327 cat >> confdefs.h <<EOF
11328#define $ac_tr_hdr 1
11329EOF
11330
11331else
11332 echo "$ac_t""no" 1>&6
11333fi
11334done
11335
11336for ac_hdr in wcstr.h
11337do
11338ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11339echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11340echo "configure:11341: checking for $ac_hdr" >&5
11341if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11342 echo $ac_n "(cached) $ac_c" 1>&6
11343else
11344 cat > conftest.$ac_ext <<EOF
11345#line 11346 "configure"
11346#include "confdefs.h"
11347#include <$ac_hdr>
11348EOF
11349ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11350{ (eval echo configure:11351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11351ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11352if test -z "$ac_err"; then
11353 rm -rf conftest*
11354 eval "ac_cv_header_$ac_safe=yes"
11355else
11356 echo "$ac_err" >&5
11357 echo "configure: failed program was:" >&5
11358 cat conftest.$ac_ext >&5
11359 rm -rf conftest*
11360 eval "ac_cv_header_$ac_safe=no"
11361fi
11362rm -f conftest*
11363fi
11364if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11365 echo "$ac_t""yes" 1>&6
11366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11367 cat >> confdefs.h <<EOF
11368#define $ac_tr_hdr 1
11369EOF
11370
11371else
11372 echo "$ac_t""no" 1>&6
11373fi
11374done
11375
11376for ac_hdr in fnmatch.h
11377do
11378ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11379echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11380echo "configure:11381: checking for $ac_hdr" >&5
11381if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11383else
11384 cat > conftest.$ac_ext <<EOF
11385#line 11386 "configure"
11386#include "confdefs.h"
11387#include <$ac_hdr>
11388EOF
11389ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11390{ (eval echo configure:11391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11391ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11392if test -z "$ac_err"; then
11393 rm -rf conftest*
11394 eval "ac_cv_header_$ac_safe=yes"
11395else
11396 echo "$ac_err" >&5
11397 echo "configure: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 rm -rf conftest*
11400 eval "ac_cv_header_$ac_safe=no"
11401fi
11402rm -f conftest*
11403fi
11404if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11405 echo "$ac_t""yes" 1>&6
11406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11407 cat >> confdefs.h <<EOF
11408#define $ac_tr_hdr 1
11409EOF
11410
11411else
11412 echo "$ac_t""no" 1>&6
11413fi
11414done
11415
11416for ac_hdr in iconv.h
11417do
11418ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11419echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11420echo "configure:11421: checking for $ac_hdr" >&5
11421if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11422 echo $ac_n "(cached) $ac_c" 1>&6
11423else
11424 cat > conftest.$ac_ext <<EOF
11425#line 11426 "configure"
11426#include "confdefs.h"
11427#include <$ac_hdr>
11428EOF
11429ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11430{ (eval echo configure:11431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11431ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11432if test -z "$ac_err"; then
11433 rm -rf conftest*
11434 eval "ac_cv_header_$ac_safe=yes"
11435else
11436 echo "$ac_err" >&5
11437 echo "configure: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11439 rm -rf conftest*
11440 eval "ac_cv_header_$ac_safe=no"
11441fi
11442rm -f conftest*
11443fi
11444if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11445 echo "$ac_t""yes" 1>&6
11446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11447 cat >> confdefs.h <<EOF
11448#define $ac_tr_hdr 1
11449EOF
11450
11451else
11452 echo "$ac_t""no" 1>&6
11453fi
11454done
11455
11456for ac_hdr in langinfo.h
11457do
11458ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11459echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11460echo "configure:11461: checking for $ac_hdr" >&5
11461if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11462 echo $ac_n "(cached) $ac_c" 1>&6
11463else
11464 cat > conftest.$ac_ext <<EOF
11465#line 11466 "configure"
11466#include "confdefs.h"
11467#include <$ac_hdr>
11468EOF
11469ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11470{ (eval echo configure:11471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11471ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11472if test -z "$ac_err"; then
11473 rm -rf conftest*
11474 eval "ac_cv_header_$ac_safe=yes"
11475else
11476 echo "$ac_err" >&5
11477 echo "configure: failed program was:" >&5
11478 cat conftest.$ac_ext >&5
11479 rm -rf conftest*
11480 eval "ac_cv_header_$ac_safe=no"
11481fi
11482rm -f conftest*
11483fi
11484if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11487 cat >> confdefs.h <<EOF
11488#define $ac_tr_hdr 1
11489EOF
11490
11491else
11492 echo "$ac_t""no" 1>&6
11493fi
11494done
11495
11496
11497if test "$wxUSE_GUI" = "yes"; then
11498 if test "$wxUSE_UNIX" = "yes"; then
11499 for ac_hdr in X11/XKBlib.h
11500do
11501ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11502echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11503echo "configure:11504: checking for $ac_hdr" >&5
11504if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11505 echo $ac_n "(cached) $ac_c" 1>&6
11506else
11507 cat > conftest.$ac_ext <<EOF
11508#line 11509 "configure"
11509#include "confdefs.h"
11510#include <$ac_hdr>
11511EOF
11512ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11513{ (eval echo configure:11514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11514ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11515if test -z "$ac_err"; then
11516 rm -rf conftest*
11517 eval "ac_cv_header_$ac_safe=yes"
11518else
11519 echo "$ac_err" >&5
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 rm -rf conftest*
11523 eval "ac_cv_header_$ac_safe=no"
11524fi
11525rm -f conftest*
11526fi
11527if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11528 echo "$ac_t""yes" 1>&6
11529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11530 cat >> confdefs.h <<EOF
11531#define $ac_tr_hdr 1
11532EOF
11533
11534else
11535 echo "$ac_t""no" 1>&6
11536fi
11537done
11538
11539 fi
11540fi
11541
11542if test "$USE_WIN32" = 1; then
11543 for ac_hdr in w32api.h
11544do
11545ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11546echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11547echo "configure:11548: checking for $ac_hdr" >&5
11548if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11550else
11551 cat > conftest.$ac_ext <<EOF
11552#line 11553 "configure"
11553#include "confdefs.h"
11554#include <$ac_hdr>
11555EOF
11556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11557{ (eval echo configure:11558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11558ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11559if test -z "$ac_err"; then
11560 rm -rf conftest*
11561 eval "ac_cv_header_$ac_safe=yes"
11562else
11563 echo "$ac_err" >&5
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11566 rm -rf conftest*
11567 eval "ac_cv_header_$ac_safe=no"
11568fi
11569rm -f conftest*
11570fi
11571if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11572 echo "$ac_t""yes" 1>&6
11573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11574 cat >> confdefs.h <<EOF
11575#define $ac_tr_hdr 1
11576EOF
11577
11578else
11579 echo "$ac_t""no" 1>&6
11580fi
11581done
11582
11583fi
11584
11585
11586echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11587echo "configure:11588: checking for ANSI C header files" >&5
11588if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11589 echo $ac_n "(cached) $ac_c" 1>&6
11590else
11591 cat > conftest.$ac_ext <<EOF
11592#line 11593 "configure"
11593#include "confdefs.h"
11594#include <stdlib.h>
11595#include <stdarg.h>
11596#include <string.h>
11597#include <float.h>
11598EOF
11599ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11600{ (eval echo configure:11601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11601ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11602if test -z "$ac_err"; then
11603 rm -rf conftest*
11604 ac_cv_header_stdc=yes
11605else
11606 echo "$ac_err" >&5
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 rm -rf conftest*
11610 ac_cv_header_stdc=no
11611fi
11612rm -f conftest*
11613
11614if test $ac_cv_header_stdc = yes; then
11615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11616cat > conftest.$ac_ext <<EOF
11617#line 11618 "configure"
11618#include "confdefs.h"
11619#include <string.h>
11620EOF
11621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11622 egrep "memchr" >/dev/null 2>&1; then
11623 :
11624else
11625 rm -rf conftest*
11626 ac_cv_header_stdc=no
11627fi
11628rm -f conftest*
11629
11630fi
11631
11632if test $ac_cv_header_stdc = yes; then
11633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11634cat > conftest.$ac_ext <<EOF
11635#line 11636 "configure"
11636#include "confdefs.h"
11637#include <stdlib.h>
11638EOF
11639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11640 egrep "free" >/dev/null 2>&1; then
11641 :
11642else
11643 rm -rf conftest*
11644 ac_cv_header_stdc=no
11645fi
11646rm -f conftest*
11647
11648fi
11649
11650if test $ac_cv_header_stdc = yes; then
11651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11652if test "$cross_compiling" = yes; then
11653 :
11654else
11655 cat > conftest.$ac_ext <<EOF
11656#line 11657 "configure"
11657#include "confdefs.h"
11658#include <ctype.h>
11659#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11660#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11661#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11662int main () { int i; for (i = 0; i < 256; i++)
11663if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11664exit (0); }
11665
11666EOF
11667if { (eval echo configure:11668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11668then
11669 :
11670else
11671 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11673 rm -fr conftest*
11674 ac_cv_header_stdc=no
11675fi
11676rm -fr conftest*
11677fi
11678
11679fi
11680fi
11681
11682echo "$ac_t""$ac_cv_header_stdc" 1>&6
11683if test $ac_cv_header_stdc = yes; then
11684 cat >> confdefs.h <<\EOF
11685#define STDC_HEADERS 1
11686EOF
11687
11688fi
11689
11690echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11691echo "configure:11692: checking for mode_t" >&5
11692if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11693 echo $ac_n "(cached) $ac_c" 1>&6
11694else
11695 cat > conftest.$ac_ext <<EOF
11696#line 11697 "configure"
11697#include "confdefs.h"
11698#include <sys/types.h>
11699#if STDC_HEADERS
11700#include <stdlib.h>
11701#include <stddef.h>
11702#endif
11703EOF
11704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11705 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11706 rm -rf conftest*
11707 ac_cv_type_mode_t=yes
11708else
11709 rm -rf conftest*
11710 ac_cv_type_mode_t=no
11711fi
11712rm -f conftest*
11713
11714fi
11715echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11716if test $ac_cv_type_mode_t = no; then
11717 cat >> confdefs.h <<\EOF
11718#define mode_t int
11719EOF
11720
11721fi
11722
11723echo $ac_n "checking for off_t""... $ac_c" 1>&6
11724echo "configure:11725: checking for off_t" >&5
11725if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
11727else
11728 cat > conftest.$ac_ext <<EOF
11729#line 11730 "configure"
11730#include "confdefs.h"
11731#include <sys/types.h>
11732#if STDC_HEADERS
11733#include <stdlib.h>
11734#include <stddef.h>
11735#endif
11736EOF
11737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11738 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11739 rm -rf conftest*
11740 ac_cv_type_off_t=yes
11741else
11742 rm -rf conftest*
11743 ac_cv_type_off_t=no
11744fi
11745rm -f conftest*
11746
11747fi
11748echo "$ac_t""$ac_cv_type_off_t" 1>&6
11749if test $ac_cv_type_off_t = no; then
11750 cat >> confdefs.h <<\EOF
11751#define off_t long
11752EOF
11753
11754fi
11755
11756echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11757echo "configure:11758: checking for pid_t" >&5
11758if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11759 echo $ac_n "(cached) $ac_c" 1>&6
11760else
11761 cat > conftest.$ac_ext <<EOF
11762#line 11763 "configure"
11763#include "confdefs.h"
11764#include <sys/types.h>
11765#if STDC_HEADERS
11766#include <stdlib.h>
11767#include <stddef.h>
11768#endif
11769EOF
11770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11772 rm -rf conftest*
11773 ac_cv_type_pid_t=yes
11774else
11775 rm -rf conftest*
11776 ac_cv_type_pid_t=no
11777fi
11778rm -f conftest*
11779
11780fi
11781echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11782if test $ac_cv_type_pid_t = no; then
11783 cat >> confdefs.h <<\EOF
11784#define pid_t int
11785EOF
11786
11787fi
11788
11789echo $ac_n "checking for size_t""... $ac_c" 1>&6
11790echo "configure:11791: checking for size_t" >&5
11791if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11793else
11794 cat > conftest.$ac_ext <<EOF
11795#line 11796 "configure"
11796#include "confdefs.h"
11797#include <sys/types.h>
11798#if STDC_HEADERS
11799#include <stdlib.h>
11800#include <stddef.h>
11801#endif
11802EOF
11803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11804 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11805 rm -rf conftest*
11806 ac_cv_type_size_t=yes
11807else
11808 rm -rf conftest*
11809 ac_cv_type_size_t=no
11810fi
11811rm -f conftest*
11812
11813fi
11814echo "$ac_t""$ac_cv_type_size_t" 1>&6
11815if test $ac_cv_type_size_t = no; then
11816 cat >> confdefs.h <<\EOF
11817#define size_t unsigned
11818EOF
11819
11820fi
11821
11822echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11823echo "configure:11824: checking for uid_t in sys/types.h" >&5
11824if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11825 echo $ac_n "(cached) $ac_c" 1>&6
11826else
11827 cat > conftest.$ac_ext <<EOF
11828#line 11829 "configure"
11829#include "confdefs.h"
11830#include <sys/types.h>
11831EOF
11832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11833 egrep "uid_t" >/dev/null 2>&1; then
11834 rm -rf conftest*
11835 ac_cv_type_uid_t=yes
11836else
11837 rm -rf conftest*
11838 ac_cv_type_uid_t=no
11839fi
11840rm -f conftest*
11841
11842fi
11843
11844echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11845if test $ac_cv_type_uid_t = no; then
11846 cat >> confdefs.h <<\EOF
11847#define uid_t int
11848EOF
11849
11850 cat >> confdefs.h <<\EOF
11851#define gid_t int
11852EOF
11853
11854fi
11855
11856
11857echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11858echo "configure:11859: checking for wchar_t" >&5
11859if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11860 echo $ac_n "(cached) $ac_c" 1>&6
11861else
11862
11863 cat > conftest.$ac_ext <<EOF
11864#line 11865 "configure"
11865#include "confdefs.h"
11866#include <wchar.h>
11867int main() {
11868
11869 wchar_t wc, *ws;
11870 wc = L'a';
11871 ws = L"Hello, world!";
11872
11873; return 0; }
11874EOF
11875if { (eval echo configure:11876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11876 rm -rf conftest*
11877 wx_cv_type_wchar_t=yes
11878else
11879 echo "configure: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11881 rm -rf conftest*
11882 cat > conftest.$ac_ext <<EOF
11883#line 11884 "configure"
11884#include "confdefs.h"
11885#include <stdlib.h>
11886int main() {
11887
11888 wchar_t wc, *ws;
11889 wc = L'a';
11890 ws = L"Hello, world!";
11891
11892; return 0; }
11893EOF
11894if { (eval echo configure:11895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11895 rm -rf conftest*
11896 wx_cv_type_wchar_t=yes
11897else
11898 echo "configure: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 rm -rf conftest*
11901 wx_cv_type_wchar_t=no
11902fi
11903rm -f conftest*
11904
11905fi
11906rm -f conftest*
11907
11908fi
11909
11910echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11911
11912if test "$wx_cv_type_wchar_t" = "yes"; then
11913 cat >> confdefs.h <<\EOF
11914#define wxUSE_WCHAR_T 1
11915EOF
11916
11917fi
11918
11919
11920ac_ext=C
11921# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11922ac_cpp='$CXXCPP $CPPFLAGS'
11923ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11924ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11925cross_compiling=$ac_cv_prog_cxx_cross
11926
11927echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11928echo "configure:11929: checking if size_t is unsigned int" >&5
11929if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11930 echo $ac_n "(cached) $ac_c" 1>&6
11931else
11932 cat > conftest.$ac_ext <<EOF
11933#line 11934 "configure"
11934#include "confdefs.h"
11935#include <stddef.h>
11936int main() {
11937
11938 return 0; }
11939
11940 struct Foo { void foo(size_t); void foo(unsigned int); };
11941
11942 int bar() {
11943
11944; return 0; }
11945EOF
11946if { (eval echo configure:11947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11947 rm -rf conftest*
11948 wx_cv_size_t_is_uint=no
11949else
11950 echo "configure: failed program was:" >&5
11951 cat conftest.$ac_ext >&5
11952 rm -rf conftest*
11953 wx_cv_size_t_is_uint=yes
11954
11955fi
11956rm -f conftest*
11957
11958fi
11959
11960echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11961
11962if test "$wx_cv_size_t_is_uint" = "yes"; then
11963 cat >> confdefs.h <<\EOF
11964#define wxSIZE_T_IS_UINT 1
11965EOF
11966
11967else
11968 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11969echo "configure:11970: checking if size_t is unsigned long" >&5
11970if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11971 echo $ac_n "(cached) $ac_c" 1>&6
11972else
11973 cat > conftest.$ac_ext <<EOF
11974#line 11975 "configure"
11975#include "confdefs.h"
11976#include <stddef.h>
11977int main() {
11978
11979 return 0; }
11980
11981 struct Foo { void foo(size_t); void foo(unsigned long); };
11982
11983 int bar() {
11984
11985; return 0; }
11986EOF
11987if { (eval echo configure:11988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11988 rm -rf conftest*
11989 wx_cv_size_t_is_ulong=no
11990else
11991 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11993 rm -rf conftest*
11994 wx_cv_size_t_is_ulong=yes
11995
11996fi
11997rm -f conftest*
11998
11999fi
12000
12001echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12002
12003 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12004 cat >> confdefs.h <<\EOF
12005#define wxSIZE_T_IS_ULONG 1
12006EOF
12007
12008 fi
12009fi
12010
12011ac_ext=c
12012# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12013ac_cpp='$CPP $CPPFLAGS'
12014ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12015ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12016cross_compiling=$ac_cv_prog_cc_cross
12017
12018
12019
12020echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12021echo "configure:12022: checking for pw_gecos in struct passwd" >&5
12022if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
12024else
12025
12026 cat > conftest.$ac_ext <<EOF
12027#line 12028 "configure"
12028#include "confdefs.h"
12029#include <pwd.h>
12030int main() {
12031
12032 char *p;
12033 struct passwd *pw;
12034 p = pw->pw_gecos;
12035
12036; return 0; }
12037EOF
12038if { (eval echo configure:12039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12039 rm -rf conftest*
12040
12041 wx_cv_struct_pw_gecos=yes
12042
12043else
12044 echo "configure: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12046 rm -rf conftest*
12047
12048 wx_cv_struct_pw_gecos=no
12049
12050
12051fi
12052rm -f conftest*
12053
12054
12055fi
12056
12057echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12058
12059if test "$wx_cv_struct_pw_gecos" = "yes"; then
12060 cat >> confdefs.h <<\EOF
12061#define HAVE_PW_GECOS 1
12062EOF
12063
12064fi
12065
12066
12067echo $ac_n "checking for working const""... $ac_c" 1>&6
12068echo "configure:12069: checking for working const" >&5
12069if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12070 echo $ac_n "(cached) $ac_c" 1>&6
12071else
12072 cat > conftest.$ac_ext <<EOF
12073#line 12074 "configure"
12074#include "confdefs.h"
12075
12076int main() {
12077
12078/* Ultrix mips cc rejects this. */
12079typedef int charset[2]; const charset x;
12080/* SunOS 4.1.1 cc rejects this. */
12081char const *const *ccp;
12082char **p;
12083/* NEC SVR4.0.2 mips cc rejects this. */
12084struct point {int x, y;};
12085static struct point const zero = {0,0};
12086/* AIX XL C 1.02.0.0 rejects this.
12087 It does not let you subtract one const X* pointer from another in an arm
12088 of an if-expression whose if-part is not a constant expression */
12089const char *g = "string";
12090ccp = &g + (g ? g-g : 0);
12091/* HPUX 7.0 cc rejects these. */
12092++ccp;
12093p = (char**) ccp;
12094ccp = (char const *const *) p;
12095{ /* SCO 3.2v4 cc rejects this. */
12096 char *t;
12097 char const *s = 0 ? (char *) 0 : (char const *) 0;
12098
12099 *t++ = 0;
12100}
12101{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12102 int x[] = {25, 17};
12103 const int *foo = &x[0];
12104 ++foo;
12105}
12106{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12107 typedef const int *iptr;
12108 iptr p = 0;
12109 ++p;
12110}
12111{ /* AIX XL C 1.02.0.0 rejects this saying
12112 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12113 struct s { int j; const int *ap[3]; };
12114 struct s *b; b->j = 5;
12115}
12116{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12117 const int foo = 10;
12118}
12119
12120; return 0; }
12121EOF
12122if { (eval echo configure:12123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12123 rm -rf conftest*
12124 ac_cv_c_const=yes
12125else
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 rm -rf conftest*
12129 ac_cv_c_const=no
12130fi
12131rm -f conftest*
12132fi
12133
12134echo "$ac_t""$ac_cv_c_const" 1>&6
12135if test $ac_cv_c_const = no; then
12136 cat >> confdefs.h <<\EOF
12137#define const
12138EOF
12139
12140fi
12141
12142echo $ac_n "checking for inline""... $ac_c" 1>&6
12143echo "configure:12144: checking for inline" >&5
12144if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12145 echo $ac_n "(cached) $ac_c" 1>&6
12146else
12147 ac_cv_c_inline=no
12148for ac_kw in inline __inline__ __inline; do
12149 cat > conftest.$ac_ext <<EOF
12150#line 12151 "configure"
12151#include "confdefs.h"
12152
12153int main() {
12154} $ac_kw foo() {
12155; return 0; }
12156EOF
12157if { (eval echo configure:12158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12158 rm -rf conftest*
12159 ac_cv_c_inline=$ac_kw; break
12160else
12161 echo "configure: failed program was:" >&5
12162 cat conftest.$ac_ext >&5
12163fi
12164rm -f conftest*
12165done
12166
12167fi
12168
12169echo "$ac_t""$ac_cv_c_inline" 1>&6
12170case "$ac_cv_c_inline" in
12171 inline | yes) ;;
12172 no) cat >> confdefs.h <<\EOF
12173#define inline
12174EOF
12175 ;;
12176 *) cat >> confdefs.h <<EOF
12177#define inline $ac_cv_c_inline
12178EOF
12179 ;;
12180esac
12181
12182
12183echo $ac_n "checking size of char""... $ac_c" 1>&6
12184echo "configure:12185: checking size of char" >&5
12185if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12186 echo $ac_n "(cached) $ac_c" 1>&6
12187else
12188 if test "$cross_compiling" = yes; then
12189 ac_cv_sizeof_char=1
12190else
12191 cat > conftest.$ac_ext <<EOF
12192#line 12193 "configure"
12193#include "confdefs.h"
12194#include <stdio.h>
12195main()
12196{
12197 FILE *f=fopen("conftestval", "w");
12198 if (!f) exit(1);
12199 fprintf(f, "%d\n", sizeof(char));
12200 exit(0);
12201}
12202EOF
12203if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12204then
12205 ac_cv_sizeof_char=`cat conftestval`
12206else
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 rm -fr conftest*
12210 ac_cv_sizeof_char=0
12211fi
12212rm -fr conftest*
12213fi
12214
12215fi
12216echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12217cat >> confdefs.h <<EOF
12218#define SIZEOF_CHAR $ac_cv_sizeof_char
12219EOF
12220
12221
12222echo $ac_n "checking size of short""... $ac_c" 1>&6
12223echo "configure:12224: checking size of short" >&5
12224if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12225 echo $ac_n "(cached) $ac_c" 1>&6
12226else
12227 if test "$cross_compiling" = yes; then
12228 ac_cv_sizeof_short=2
12229else
12230 cat > conftest.$ac_ext <<EOF
12231#line 12232 "configure"
12232#include "confdefs.h"
12233#include <stdio.h>
12234main()
12235{
12236 FILE *f=fopen("conftestval", "w");
12237 if (!f) exit(1);
12238 fprintf(f, "%d\n", sizeof(short));
12239 exit(0);
12240}
12241EOF
12242if { (eval echo configure:12243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12243then
12244 ac_cv_sizeof_short=`cat conftestval`
12245else
12246 echo "configure: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 rm -fr conftest*
12249 ac_cv_sizeof_short=0
12250fi
12251rm -fr conftest*
12252fi
12253
12254fi
12255echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12256cat >> confdefs.h <<EOF
12257#define SIZEOF_SHORT $ac_cv_sizeof_short
12258EOF
12259
12260
12261echo $ac_n "checking size of int *""... $ac_c" 1>&6
12262echo "configure:12263: checking size of int *" >&5
12263if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12264 echo $ac_n "(cached) $ac_c" 1>&6
12265else
12266 if test "$cross_compiling" = yes; then
12267 ac_cv_sizeof_int_p=4
12268else
12269 cat > conftest.$ac_ext <<EOF
12270#line 12271 "configure"
12271#include "confdefs.h"
12272#include <stdio.h>
12273main()
12274{
12275 FILE *f=fopen("conftestval", "w");
12276 if (!f) exit(1);
12277 fprintf(f, "%d\n", sizeof(int *));
12278 exit(0);
12279}
12280EOF
12281if { (eval echo configure:12282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12282then
12283 ac_cv_sizeof_int_p=`cat conftestval`
12284else
12285 echo "configure: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12287 rm -fr conftest*
12288 ac_cv_sizeof_int_p=0
12289fi
12290rm -fr conftest*
12291fi
12292
12293fi
12294echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12295cat >> confdefs.h <<EOF
12296#define SIZEOF_INT_P $ac_cv_sizeof_int_p
12297EOF
12298
12299
12300echo $ac_n "checking size of int""... $ac_c" 1>&6
12301echo "configure:12302: checking size of int" >&5
12302if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12303 echo $ac_n "(cached) $ac_c" 1>&6
12304else
12305 if test "$cross_compiling" = yes; then
12306 ac_cv_sizeof_int=4
12307else
12308 cat > conftest.$ac_ext <<EOF
12309#line 12310 "configure"
12310#include "confdefs.h"
12311#include <stdio.h>
12312main()
12313{
12314 FILE *f=fopen("conftestval", "w");
12315 if (!f) exit(1);
12316 fprintf(f, "%d\n", sizeof(int));
12317 exit(0);
12318}
12319EOF
12320if { (eval echo configure:12321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12321then
12322 ac_cv_sizeof_int=`cat conftestval`
12323else
12324 echo "configure: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12326 rm -fr conftest*
12327 ac_cv_sizeof_int=0
12328fi
12329rm -fr conftest*
12330fi
12331
12332fi
12333echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12334cat >> confdefs.h <<EOF
12335#define SIZEOF_INT $ac_cv_sizeof_int
12336EOF
12337
12338
12339echo $ac_n "checking size of long""... $ac_c" 1>&6
12340echo "configure:12341: checking size of long" >&5
12341if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12342 echo $ac_n "(cached) $ac_c" 1>&6
12343else
12344 if test "$cross_compiling" = yes; then
12345 ac_cv_sizeof_long=4
12346else
12347 cat > conftest.$ac_ext <<EOF
12348#line 12349 "configure"
12349#include "confdefs.h"
12350#include <stdio.h>
12351main()
12352{
12353 FILE *f=fopen("conftestval", "w");
12354 if (!f) exit(1);
12355 fprintf(f, "%d\n", sizeof(long));
12356 exit(0);
12357}
12358EOF
12359if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12360then
12361 ac_cv_sizeof_long=`cat conftestval`
12362else
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 rm -fr conftest*
12366 ac_cv_sizeof_long=0
12367fi
12368rm -fr conftest*
12369fi
12370
12371fi
12372echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12373cat >> confdefs.h <<EOF
12374#define SIZEOF_LONG $ac_cv_sizeof_long
12375EOF
12376
12377
12378echo $ac_n "checking size of long long""... $ac_c" 1>&6
12379echo "configure:12380: checking size of long long" >&5
12380if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12381 echo $ac_n "(cached) $ac_c" 1>&6
12382else
12383 if test "$cross_compiling" = yes; then
12384 ac_cv_sizeof_long_long=0
12385else
12386 cat > conftest.$ac_ext <<EOF
12387#line 12388 "configure"
12388#include "confdefs.h"
12389#include <stdio.h>
12390main()
12391{
12392 FILE *f=fopen("conftestval", "w");
12393 if (!f) exit(1);
12394 fprintf(f, "%d\n", sizeof(long long));
12395 exit(0);
12396}
12397EOF
12398if { (eval echo configure:12399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12399then
12400 ac_cv_sizeof_long_long=`cat conftestval`
12401else
12402 echo "configure: failed program was:" >&5
12403 cat conftest.$ac_ext >&5
12404 rm -fr conftest*
12405 ac_cv_sizeof_long_long=0
12406fi
12407rm -fr conftest*
12408fi
12409
12410fi
12411echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12412cat >> confdefs.h <<EOF
12413#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12414EOF
12415
12416
12417
12418echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12419echo "configure:12420: checking size of wchar_t" >&5
12420if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12421 echo $ac_n "(cached) $ac_c" 1>&6
12422else
12423
12424 if test "$cross_compiling" = yes; then
12425 wx_cv_sizeof_wchar_t=4
12426
12427else
12428 cat > conftest.$ac_ext <<EOF
12429#line 12430 "configure"
12430#include "confdefs.h"
12431
12432 #ifdef HAVE_WCHAR_H
12433 # include <wchar.h>
12434 #endif
12435 #ifdef HAVE_STDLIB_H
12436 # include <stdlib.h>
12437 #endif
12438 #include <stdio.h>
12439 int main()
12440 {
12441 FILE *f=fopen("conftestval", "w");
12442 if (!f) exit(1);
12443 fprintf(f, "%i", sizeof(wchar_t));
12444 exit(0);
12445 }
12446
12447EOF
12448if { (eval echo configure:12449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12449then
12450 wx_cv_sizeof_wchar_t=`cat conftestval`
12451else
12452 echo "configure: failed program was:" >&5
12453 cat conftest.$ac_ext >&5
12454 rm -fr conftest*
12455 wx_cv_sizeof_wchar_t=0
12456fi
12457rm -fr conftest*
12458fi
12459
12460
12461fi
12462
12463echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12464
12465cat >> confdefs.h <<EOF
12466#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12467EOF
12468
12469
12470echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12471echo "configure:12472: checking whether byte ordering is bigendian" >&5
12472if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12473 echo $ac_n "(cached) $ac_c" 1>&6
12474else
12475 ac_cv_c_bigendian=unknown
12476# See if sys/param.h defines the BYTE_ORDER macro.
12477cat > conftest.$ac_ext <<EOF
12478#line 12479 "configure"
12479#include "confdefs.h"
12480#include <sys/types.h>
12481#include <sys/param.h>
12482int main() {
12483
12484#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12485 bogus endian macros
12486#endif
12487; return 0; }
12488EOF
12489if { (eval echo configure:12490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12490 rm -rf conftest*
12491 # It does; now see whether it defined to BIG_ENDIAN or not.
12492cat > conftest.$ac_ext <<EOF
12493#line 12494 "configure"
12494#include "confdefs.h"
12495#include <sys/types.h>
12496#include <sys/param.h>
12497int main() {
12498
12499#if BYTE_ORDER != BIG_ENDIAN
12500 not big endian
12501#endif
12502; return 0; }
12503EOF
12504if { (eval echo configure:12505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12505 rm -rf conftest*
12506 ac_cv_c_bigendian=yes
12507else
12508 echo "configure: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12510 rm -rf conftest*
12511 ac_cv_c_bigendian=no
12512fi
12513rm -f conftest*
12514else
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12517fi
12518rm -f conftest*
12519if test $ac_cv_c_bigendian = unknown; then
12520if test "$cross_compiling" = yes; then
12521 ac_cv_c_bigendian=unknown
12522else
12523 cat > conftest.$ac_ext <<EOF
12524#line 12525 "configure"
12525#include "confdefs.h"
12526main () {
12527 /* Are we little or big endian? From Harbison&Steele. */
12528 union
12529 {
12530 long l;
12531 char c[sizeof (long)];
12532 } u;
12533 u.l = 1;
12534 exit (u.c[sizeof (long) - 1] == 1);
12535}
12536EOF
12537if { (eval echo configure:12538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12538then
12539 ac_cv_c_bigendian=no
12540else
12541 echo "configure: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12543 rm -fr conftest*
12544 ac_cv_c_bigendian=yes
12545fi
12546rm -fr conftest*
12547fi
12548
12549fi
12550fi
12551
12552echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12553if test $ac_cv_c_bigendian = unknown; then
12554 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
12555fi
12556if test $ac_cv_c_bigendian = yes; then
12557 cat >> confdefs.h <<\EOF
12558#define WORDS_BIGENDIAN 1
12559EOF
12560
12561fi
12562
12563
12564
12565 if test "$cross_compiling" = "yes"; then
12566 cat >> confdefs.h <<\EOF
12567#define wxUSE_IOSTREAMH 1
12568EOF
12569
12570 else
12571
12572 ac_ext=C
12573# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12574ac_cpp='$CXXCPP $CPPFLAGS'
12575ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12576ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12577cross_compiling=$ac_cv_prog_cxx_cross
12578
12579
12580 for ac_hdr in iostream
12581do
12582ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12583echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12584echo "configure:12585: checking for $ac_hdr" >&5
12585if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12586 echo $ac_n "(cached) $ac_c" 1>&6
12587else
12588 cat > conftest.$ac_ext <<EOF
12589#line 12590 "configure"
12590#include "confdefs.h"
12591#include <$ac_hdr>
12592EOF
12593ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12594{ (eval echo configure:12595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12595ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12596if test -z "$ac_err"; then
12597 rm -rf conftest*
12598 eval "ac_cv_header_$ac_safe=yes"
12599else
12600 echo "$ac_err" >&5
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12603 rm -rf conftest*
12604 eval "ac_cv_header_$ac_safe=no"
12605fi
12606rm -f conftest*
12607fi
12608if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12609 echo "$ac_t""yes" 1>&6
12610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12611 cat >> confdefs.h <<EOF
12612#define $ac_tr_hdr 1
12613EOF
12614
12615else
12616 echo "$ac_t""no" 1>&6
12617fi
12618done
12619
12620
12621 if test "$ac_cv_header_iostream" = "yes" ; then
12622 :
12623 else
12624 cat >> confdefs.h <<\EOF
12625#define wxUSE_IOSTREAMH 1
12626EOF
12627
12628 fi
12629
12630 ac_ext=c
12631# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12632ac_cpp='$CPP $CPPFLAGS'
12633ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12634ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12635cross_compiling=$ac_cv_prog_cc_cross
12636
12637 fi
12638
12639
12640
12641 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12642echo "configure:12643: checking if C++ compiler supports bool" >&5
12643if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12644 echo $ac_n "(cached) $ac_c" 1>&6
12645else
12646
12647
12648 ac_ext=C
12649# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12650ac_cpp='$CXXCPP $CPPFLAGS'
12651ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12652ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12653cross_compiling=$ac_cv_prog_cxx_cross
12654
12655
12656 cat > conftest.$ac_ext <<EOF
12657#line 12658 "configure"
12658#include "confdefs.h"
12659
12660
12661int main() {
12662
12663 bool b = true;
12664
12665 return 0;
12666
12667; return 0; }
12668EOF
12669if { (eval echo configure:12670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12670 rm -rf conftest*
12671
12672 wx_cv_cpp_bool=yes
12673
12674else
12675 echo "configure: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12677 rm -rf conftest*
12678
12679 wx_cv_cpp_bool=no
12680
12681
12682fi
12683rm -f conftest*
12684
12685 ac_ext=c
12686# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12687ac_cpp='$CPP $CPPFLAGS'
12688ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12689ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12690cross_compiling=$ac_cv_prog_cc_cross
12691
12692
12693fi
12694
12695echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12696
12697 if test "$wx_cv_cpp_bool" = "yes"; then
12698 cat >> confdefs.h <<\EOF
12699#define HAVE_BOOL 1
12700EOF
12701
12702 fi
12703
12704
12705
12706echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12707echo "configure:12708: checking for wcslen in -lc" >&5
12708ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12709if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12710 echo $ac_n "(cached) $ac_c" 1>&6
12711else
12712 ac_save_LIBS="$LIBS"
12713LIBS="-lc $LIBS"
12714cat > conftest.$ac_ext <<EOF
12715#line 12716 "configure"
12716#include "confdefs.h"
12717/* Override any gcc2 internal prototype to avoid an error. */
12718/* We use char because int might match the return type of a gcc2
12719 builtin and then its argument prototype would still apply. */
12720char wcslen();
12721
12722int main() {
12723wcslen()
12724; return 0; }
12725EOF
12726if { (eval echo configure:12727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12727 rm -rf conftest*
12728 eval "ac_cv_lib_$ac_lib_var=yes"
12729else
12730 echo "configure: failed program was:" >&5
12731 cat conftest.$ac_ext >&5
12732 rm -rf conftest*
12733 eval "ac_cv_lib_$ac_lib_var=no"
12734fi
12735rm -f conftest*
12736LIBS="$ac_save_LIBS"
12737
12738fi
12739if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12740 echo "$ac_t""yes" 1>&6
12741
12742 cat >> confdefs.h <<\EOF
12743#define HAVE_WCSLEN 1
12744EOF
12745
12746 WCHAR_LINK=""
12747
12748else
12749 echo "$ac_t""no" 1>&6
12750
12751 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12752echo "configure:12753: checking for wcslen in -lw" >&5
12753ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12754if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12755 echo $ac_n "(cached) $ac_c" 1>&6
12756else
12757 ac_save_LIBS="$LIBS"
12758LIBS="-lw $LIBS"
12759cat > conftest.$ac_ext <<EOF
12760#line 12761 "configure"
12761#include "confdefs.h"
12762/* Override any gcc2 internal prototype to avoid an error. */
12763/* We use char because int might match the return type of a gcc2
12764 builtin and then its argument prototype would still apply. */
12765char wcslen();
12766
12767int main() {
12768wcslen()
12769; return 0; }
12770EOF
12771if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12772 rm -rf conftest*
12773 eval "ac_cv_lib_$ac_lib_var=yes"
12774else
12775 echo "configure: failed program was:" >&5
12776 cat conftest.$ac_ext >&5
12777 rm -rf conftest*
12778 eval "ac_cv_lib_$ac_lib_var=no"
12779fi
12780rm -f conftest*
12781LIBS="$ac_save_LIBS"
12782
12783fi
12784if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12785 echo "$ac_t""yes" 1>&6
12786
12787 cat >> confdefs.h <<\EOF
12788#define HAVE_WCSLEN 1
12789EOF
12790
12791 WCHAR_LINK="-lw"
12792
12793else
12794 echo "$ac_t""no" 1>&6
12795
12796 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
12797echo "configure:12798: checking for wcslen in -lmsvcrt" >&5
12798ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
12799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12800 echo $ac_n "(cached) $ac_c" 1>&6
12801else
12802 ac_save_LIBS="$LIBS"
12803LIBS="-lmsvcrt $LIBS"
12804cat > conftest.$ac_ext <<EOF
12805#line 12806 "configure"
12806#include "confdefs.h"
12807/* Override any gcc2 internal prototype to avoid an error. */
12808/* We use char because int might match the return type of a gcc2
12809 builtin and then its argument prototype would still apply. */
12810char wcslen();
12811
12812int main() {
12813wcslen()
12814; return 0; }
12815EOF
12816if { (eval echo configure:12817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12817 rm -rf conftest*
12818 eval "ac_cv_lib_$ac_lib_var=yes"
12819else
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 rm -rf conftest*
12823 eval "ac_cv_lib_$ac_lib_var=no"
12824fi
12825rm -f conftest*
12826LIBS="$ac_save_LIBS"
12827
12828fi
12829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12830 echo "$ac_t""yes" 1>&6
12831
12832 cat >> confdefs.h <<\EOF
12833#define HAVE_WCSLEN 1
12834EOF
12835
12836 WCHAR_LINK=""
12837
12838else
12839 echo "$ac_t""no" 1>&6
12840fi
12841
12842
12843fi
12844
12845
12846fi
12847
12848
12849echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12850echo "configure:12851: checking for vprintf" >&5
12851if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12852 echo $ac_n "(cached) $ac_c" 1>&6
12853else
12854 cat > conftest.$ac_ext <<EOF
12855#line 12856 "configure"
12856#include "confdefs.h"
12857/* System header to define __stub macros and hopefully few prototypes,
12858 which can conflict with char vprintf(); below. */
12859#include <assert.h>
12860/* Override any gcc2 internal prototype to avoid an error. */
12861/* We use char because int might match the return type of a gcc2
12862 builtin and then its argument prototype would still apply. */
12863char vprintf();
12864
12865int main() {
12866
12867/* The GNU C library defines this for functions which it implements
12868 to always fail with ENOSYS. Some functions are actually named
12869 something starting with __ and the normal name is an alias. */
12870#if defined (__stub_vprintf) || defined (__stub___vprintf)
12871choke me
12872#else
12873vprintf();
12874#endif
12875
12876; return 0; }
12877EOF
12878if { (eval echo configure:12879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12879 rm -rf conftest*
12880 eval "ac_cv_func_vprintf=yes"
12881else
12882 echo "configure: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12884 rm -rf conftest*
12885 eval "ac_cv_func_vprintf=no"
12886fi
12887rm -f conftest*
12888fi
12889
12890if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12891 echo "$ac_t""yes" 1>&6
12892 cat >> confdefs.h <<\EOF
12893#define HAVE_VPRINTF 1
12894EOF
12895
12896else
12897 echo "$ac_t""no" 1>&6
12898fi
12899
12900if test "$ac_cv_func_vprintf" != yes; then
12901echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12902echo "configure:12903: checking for _doprnt" >&5
12903if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12904 echo $ac_n "(cached) $ac_c" 1>&6
12905else
12906 cat > conftest.$ac_ext <<EOF
12907#line 12908 "configure"
12908#include "confdefs.h"
12909/* System header to define __stub macros and hopefully few prototypes,
12910 which can conflict with char _doprnt(); below. */
12911#include <assert.h>
12912/* Override any gcc2 internal prototype to avoid an error. */
12913/* We use char because int might match the return type of a gcc2
12914 builtin and then its argument prototype would still apply. */
12915char _doprnt();
12916
12917int main() {
12918
12919/* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
12922#if defined (__stub__doprnt) || defined (__stub____doprnt)
12923choke me
12924#else
12925_doprnt();
12926#endif
12927
12928; return 0; }
12929EOF
12930if { (eval echo configure:12931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12931 rm -rf conftest*
12932 eval "ac_cv_func__doprnt=yes"
12933else
12934 echo "configure: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12936 rm -rf conftest*
12937 eval "ac_cv_func__doprnt=no"
12938fi
12939rm -f conftest*
12940fi
12941
12942if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12943 echo "$ac_t""yes" 1>&6
12944 cat >> confdefs.h <<\EOF
12945#define HAVE_DOPRNT 1
12946EOF
12947
12948else
12949 echo "$ac_t""no" 1>&6
12950fi
12951
12952fi
12953
12954
12955
12956
12957
12958
12959
12960echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12961echo "configure:12962: checking for vsnprintf" >&5
12962if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12964else
12965
12966 cat > conftest.$ac_ext <<EOF
12967#line 12968 "configure"
12968#include "confdefs.h"
12969
12970 #include <stdio.h>
12971 #include <stdarg.h>
12972
12973int main() {
12974
12975 int wx_test_vsnprintf(const char *, ...);
12976
12977 wx_test_vsnprintf("%s");
12978 return 0;
12979 }
12980
12981 int wx_test_vsnprintf(const char *fmt, ...)
12982 {
12983 char *s;
12984
12985 va_list argp;
12986 va_start(argp, fmt);
12987 vsnprintf(s, 42, fmt, argp);
12988 va_end(argp);
12989
12990; return 0; }
12991EOF
12992if { (eval echo configure:12993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12993 rm -rf conftest*
12994
12995 wx_cv_func_vsnprintf=yes
12996
12997else
12998 echo "configure: failed program was:" >&5
12999 cat conftest.$ac_ext >&5
13000 rm -rf conftest*
13001
13002 cat > conftest.$ac_ext <<EOF
13003#line 13004 "configure"
13004#include "confdefs.h"
13005
13006 #include <stdio.h>
13007 #include <stdarg.h>
13008
13009int main() {
13010
13011 int wx_test_vsnprintf(const char *, ...);
13012
13013 wx_test_vsnprintf("%s");
13014 return 0;
13015 }
13016
13017 int wx_test_vsnprintf(const char *fmt, ...)
13018 {
13019 char *s;
13020
13021 va_list argp;
13022 va_start(argp, fmt);
13023 _vsnprintf(s, 42, fmt, argp);
13024 va_end(argp);
13025
13026; return 0; }
13027EOF
13028if { (eval echo configure:13029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13029 rm -rf conftest*
13030
13031 wx_cv_func_vsnprintf=yes
13032
13033else
13034 echo "configure: failed program was:" >&5
13035 cat conftest.$ac_ext >&5
13036 rm -rf conftest*
13037
13038 wx_cv_func_vsnprintf=no
13039
13040fi
13041rm -f conftest*
13042
13043fi
13044rm -f conftest*
13045
13046fi
13047
13048echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13049
13050if test "$wx_cv_func_vsnprintf" = yes; then
13051 cat >> confdefs.h <<\EOF
13052#define HAVE_VSNPRINTF 1
13053EOF
13054
13055else
13056 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13057fi
13058
13059echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13060echo "configure:13061: checking for vsscanf" >&5
13061if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13062 echo $ac_n "(cached) $ac_c" 1>&6
13063else
13064
13065 cat > conftest.$ac_ext <<EOF
13066#line 13067 "configure"
13067#include "confdefs.h"
13068
13069 #include <stdio.h>
13070 #include <stdarg.h>
13071
13072int main() {
13073
13074 int wx_test_vsscanf(const char *, ...);
13075
13076 wx_test_vsscanf("%d");
13077 return 0;
13078 }
13079
13080 int wx_test_vsscanf(const char *fmt, ...)
13081 {
13082 va_list argp;
13083 va_start(argp, fmt);
13084 vsscanf("42", fmt, argp);
13085 va_end(argp);
13086
13087; return 0; }
13088EOF
13089if { (eval echo configure:13090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13090 rm -rf conftest*
13091
13092 wx_cv_func_vsscanf=yes
13093
13094else
13095 echo "configure: failed program was:" >&5
13096 cat conftest.$ac_ext >&5
13097 rm -rf conftest*
13098
13099 wx_cv_func_vsscanf=no
13100
13101fi
13102rm -f conftest*
13103
13104fi
13105
13106echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13107
13108if test "$wx_cv_func_vsscanf" = yes; then
13109 cat >> confdefs.h <<\EOF
13110#define HAVE_VSSCANF 1
13111EOF
13112
13113fi
13114
13115if test "$TOOLKIT" != "MSW"; then
13116
13117
13118
13119ac_ext=C
13120# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13121ac_cpp='$CXXCPP $CPPFLAGS'
13122ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13123ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13124cross_compiling=$ac_cv_prog_cxx_cross
13125
13126echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
13127echo "configure:13128: checking if iconv() takes char**" >&5
13128if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13129 echo $ac_n "(cached) $ac_c" 1>&6
13130else
13131
13132 cat > conftest.$ac_ext <<EOF
13133#line 13134 "configure"
13134#include "confdefs.h"
13135#include <iconv.h>
13136int main() {
13137
13138 char **inbuf, **outbuf;
13139 iconv_t cd;
13140 size_t insz, outsz;
13141 iconv(cd, inbuf, &insz, outbuf, &outsz);
13142
13143; return 0; }
13144EOF
13145if { (eval echo configure:13146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13146 rm -rf conftest*
13147 wx_cv_iconv_takes_char=yes
13148else
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13151 rm -rf conftest*
13152 wx_cv_iconv_takes_char=no
13153fi
13154rm -f conftest*
13155
13156fi
13157
13158echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
13159ac_ext=c
13160# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13161ac_cpp='$CPP $CPPFLAGS'
13162ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13163ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13164cross_compiling=$ac_cv_prog_cc_cross
13165
13166if test "$wx_cv_iconv_takes_char" = yes ; then
13167 cat >> confdefs.h <<\EOF
13168#define WX_ICONV_TAKES_CHAR 1
13169EOF
13170
13171fi
13172
13173
13174if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13175 for ac_func in sigaction
13176do
13177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13178echo "configure:13179: checking for $ac_func" >&5
13179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13180 echo $ac_n "(cached) $ac_c" 1>&6
13181else
13182 cat > conftest.$ac_ext <<EOF
13183#line 13184 "configure"
13184#include "confdefs.h"
13185/* System header to define __stub macros and hopefully few prototypes,
13186 which can conflict with char $ac_func(); below. */
13187#include <assert.h>
13188/* Override any gcc2 internal prototype to avoid an error. */
13189/* We use char because int might match the return type of a gcc2
13190 builtin and then its argument prototype would still apply. */
13191char $ac_func();
13192
13193int main() {
13194
13195/* The GNU C library defines this for functions which it implements
13196 to always fail with ENOSYS. Some functions are actually named
13197 something starting with __ and the normal name is an alias. */
13198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13199choke me
13200#else
13201$ac_func();
13202#endif
13203
13204; return 0; }
13205EOF
13206if { (eval echo configure:13207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13207 rm -rf conftest*
13208 eval "ac_cv_func_$ac_func=yes"
13209else
13210 echo "configure: failed program was:" >&5
13211 cat conftest.$ac_ext >&5
13212 rm -rf conftest*
13213 eval "ac_cv_func_$ac_func=no"
13214fi
13215rm -f conftest*
13216fi
13217
13218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13219 echo "$ac_t""yes" 1>&6
13220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13221 cat >> confdefs.h <<EOF
13222#define $ac_tr_func 1
13223EOF
13224
13225else
13226 echo "$ac_t""no" 1>&6
13227fi
13228done
13229
13230
13231 if test "$ac_cv_func_sigaction" = "no"; then
13232 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13233 wxUSE_ON_FATAL_EXCEPTION=no
13234 fi
13235
13236 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13237
13238 ac_ext=C
13239# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13240ac_cpp='$CXXCPP $CPPFLAGS'
13241ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13242ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13243cross_compiling=$ac_cv_prog_cxx_cross
13244
13245
13246 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13247echo "configure:13248: checking for sa_handler type" >&5
13248if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13249 echo $ac_n "(cached) $ac_c" 1>&6
13250else
13251
13252 cat > conftest.$ac_ext <<EOF
13253#line 13254 "configure"
13254#include "confdefs.h"
13255#include <signal.h>
13256int main() {
13257
13258 extern void testSigHandler(int);
13259
13260 struct sigaction sa;
13261 sa.sa_handler = testSigHandler;
13262
13263; return 0; }
13264EOF
13265if { (eval echo configure:13266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13266 rm -rf conftest*
13267
13268 wx_cv_type_sa_handler=int
13269
13270else
13271 echo "configure: failed program was:" >&5
13272 cat conftest.$ac_ext >&5
13273 rm -rf conftest*
13274
13275 wx_cv_type_sa_handler=void
13276
13277fi
13278rm -f conftest*
13279
13280fi
13281
13282echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13283
13284 ac_ext=c
13285# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13286ac_cpp='$CPP $CPPFLAGS'
13287ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13288ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13289cross_compiling=$ac_cv_prog_cc_cross
13290
13291
13292 cat >> confdefs.h <<EOF
13293#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13294EOF
13295
13296 fi
13297fi
13298
13299for ac_func in vfork
13300do
13301echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13302echo "configure:13303: checking for $ac_func" >&5
13303if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13304 echo $ac_n "(cached) $ac_c" 1>&6
13305else
13306 cat > conftest.$ac_ext <<EOF
13307#line 13308 "configure"
13308#include "confdefs.h"
13309/* System header to define __stub macros and hopefully few prototypes,
13310 which can conflict with char $ac_func(); below. */
13311#include <assert.h>
13312/* Override any gcc2 internal prototype to avoid an error. */
13313/* We use char because int might match the return type of a gcc2
13314 builtin and then its argument prototype would still apply. */
13315char $ac_func();
13316
13317int main() {
13318
13319/* The GNU C library defines this for functions which it implements
13320 to always fail with ENOSYS. Some functions are actually named
13321 something starting with __ and the normal name is an alias. */
13322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13323choke me
13324#else
13325$ac_func();
13326#endif
13327
13328; return 0; }
13329EOF
13330if { (eval echo configure:13331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13331 rm -rf conftest*
13332 eval "ac_cv_func_$ac_func=yes"
13333else
13334 echo "configure: failed program was:" >&5
13335 cat conftest.$ac_ext >&5
13336 rm -rf conftest*
13337 eval "ac_cv_func_$ac_func=no"
13338fi
13339rm -f conftest*
13340fi
13341
13342if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13343 echo "$ac_t""yes" 1>&6
13344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13345 cat >> confdefs.h <<EOF
13346#define $ac_tr_func 1
13347EOF
13348
13349else
13350 echo "$ac_t""no" 1>&6
13351fi
13352done
13353
13354
13355if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13356 for ac_func in fcntl flock
13357do
13358echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13359echo "configure:13360: checking for $ac_func" >&5
13360if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13362else
13363 cat > conftest.$ac_ext <<EOF
13364#line 13365 "configure"
13365#include "confdefs.h"
13366/* System header to define __stub macros and hopefully few prototypes,
13367 which can conflict with char $ac_func(); below. */
13368#include <assert.h>
13369/* Override any gcc2 internal prototype to avoid an error. */
13370/* We use char because int might match the return type of a gcc2
13371 builtin and then its argument prototype would still apply. */
13372char $ac_func();
13373
13374int main() {
13375
13376/* The GNU C library defines this for functions which it implements
13377 to always fail with ENOSYS. Some functions are actually named
13378 something starting with __ and the normal name is an alias. */
13379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13380choke me
13381#else
13382$ac_func();
13383#endif
13384
13385; return 0; }
13386EOF
13387if { (eval echo configure:13388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13388 rm -rf conftest*
13389 eval "ac_cv_func_$ac_func=yes"
13390else
13391 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13393 rm -rf conftest*
13394 eval "ac_cv_func_$ac_func=no"
13395fi
13396rm -f conftest*
13397fi
13398
13399if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13400 echo "$ac_t""yes" 1>&6
13401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13402 cat >> confdefs.h <<EOF
13403#define $ac_tr_func 1
13404EOF
13405 break
13406else
13407 echo "$ac_t""no" 1>&6
13408fi
13409done
13410
13411
13412 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13413 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13414 wxUSE_SNGLINST_CHECKER=no
13415 fi
13416fi
13417
13418for ac_func in timegm
13419do
13420echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13421echo "configure:13422: checking for $ac_func" >&5
13422if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13423 echo $ac_n "(cached) $ac_c" 1>&6
13424else
13425 cat > conftest.$ac_ext <<EOF
13426#line 13427 "configure"
13427#include "confdefs.h"
13428/* System header to define __stub macros and hopefully few prototypes,
13429 which can conflict with char $ac_func(); below. */
13430#include <assert.h>
13431/* Override any gcc2 internal prototype to avoid an error. */
13432/* We use char because int might match the return type of a gcc2
13433 builtin and then its argument prototype would still apply. */
13434char $ac_func();
13435
13436int main() {
13437
13438/* The GNU C library defines this for functions which it implements
13439 to always fail with ENOSYS. Some functions are actually named
13440 something starting with __ and the normal name is an alias. */
13441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13442choke me
13443#else
13444$ac_func();
13445#endif
13446
13447; return 0; }
13448EOF
13449if { (eval echo configure:13450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13450 rm -rf conftest*
13451 eval "ac_cv_func_$ac_func=yes"
13452else
13453 echo "configure: failed program was:" >&5
13454 cat conftest.$ac_ext >&5
13455 rm -rf conftest*
13456 eval "ac_cv_func_$ac_func=no"
13457fi
13458rm -f conftest*
13459fi
13460
13461if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13462 echo "$ac_t""yes" 1>&6
13463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13464 cat >> confdefs.h <<EOF
13465#define $ac_tr_func 1
13466EOF
13467
13468else
13469 echo "$ac_t""no" 1>&6
13470fi
13471done
13472
13473
13474for ac_func in putenv setenv
13475do
13476echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13477echo "configure:13478: checking for $ac_func" >&5
13478if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13480else
13481 cat > conftest.$ac_ext <<EOF
13482#line 13483 "configure"
13483#include "confdefs.h"
13484/* System header to define __stub macros and hopefully few prototypes,
13485 which can conflict with char $ac_func(); below. */
13486#include <assert.h>
13487/* Override any gcc2 internal prototype to avoid an error. */
13488/* We use char because int might match the return type of a gcc2
13489 builtin and then its argument prototype would still apply. */
13490char $ac_func();
13491
13492int main() {
13493
13494/* The GNU C library defines this for functions which it implements
13495 to always fail with ENOSYS. Some functions are actually named
13496 something starting with __ and the normal name is an alias. */
13497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13498choke me
13499#else
13500$ac_func();
13501#endif
13502
13503; return 0; }
13504EOF
13505if { (eval echo configure:13506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13506 rm -rf conftest*
13507 eval "ac_cv_func_$ac_func=yes"
13508else
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13511 rm -rf conftest*
13512 eval "ac_cv_func_$ac_func=no"
13513fi
13514rm -f conftest*
13515fi
13516
13517if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13518 echo "$ac_t""yes" 1>&6
13519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13520 cat >> confdefs.h <<EOF
13521#define $ac_tr_func 1
13522EOF
13523 break
13524else
13525 echo "$ac_t""no" 1>&6
13526fi
13527done
13528
13529
13530HAVE_SOME_SLEEP_FUNC=0
13531if test "$USE_BEOS" = 1; then
13532 cat >> confdefs.h <<\EOF
13533#define HAVE_SLEEP 1
13534EOF
13535
13536 HAVE_SOME_SLEEP_FUNC=1
13537fi
13538
13539if test "$USE_DARWIN" = 1; then
13540 cat >> confdefs.h <<\EOF
13541#define HAVE_USLEEP 1
13542EOF
13543
13544 HAVE_SOME_SLEEP_FUNC=1
13545fi
13546
13547if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13548 POSIX4_LINK=
13549 for ac_func in nanosleep
13550do
13551echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13552echo "configure:13553: checking for $ac_func" >&5
13553if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13554 echo $ac_n "(cached) $ac_c" 1>&6
13555else
13556 cat > conftest.$ac_ext <<EOF
13557#line 13558 "configure"
13558#include "confdefs.h"
13559/* System header to define __stub macros and hopefully few prototypes,
13560 which can conflict with char $ac_func(); below. */
13561#include <assert.h>
13562/* Override any gcc2 internal prototype to avoid an error. */
13563/* We use char because int might match the return type of a gcc2
13564 builtin and then its argument prototype would still apply. */
13565char $ac_func();
13566
13567int main() {
13568
13569/* The GNU C library defines this for functions which it implements
13570 to always fail with ENOSYS. Some functions are actually named
13571 something starting with __ and the normal name is an alias. */
13572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13573choke me
13574#else
13575$ac_func();
13576#endif
13577
13578; return 0; }
13579EOF
13580if { (eval echo configure:13581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13581 rm -rf conftest*
13582 eval "ac_cv_func_$ac_func=yes"
13583else
13584 echo "configure: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13586 rm -rf conftest*
13587 eval "ac_cv_func_$ac_func=no"
13588fi
13589rm -f conftest*
13590fi
13591
13592if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13593 echo "$ac_t""yes" 1>&6
13594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13595 cat >> confdefs.h <<EOF
13596#define $ac_tr_func 1
13597EOF
13598 cat >> confdefs.h <<\EOF
13599#define HAVE_NANOSLEEP 1
13600EOF
13601
13602else
13603 echo "$ac_t""no" 1>&6
13604echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13605echo "configure:13606: checking for nanosleep in -lposix4" >&5
13606ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13607if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13608 echo $ac_n "(cached) $ac_c" 1>&6
13609else
13610 ac_save_LIBS="$LIBS"
13611LIBS="-lposix4 $LIBS"
13612cat > conftest.$ac_ext <<EOF
13613#line 13614 "configure"
13614#include "confdefs.h"
13615/* Override any gcc2 internal prototype to avoid an error. */
13616/* We use char because int might match the return type of a gcc2
13617 builtin and then its argument prototype would still apply. */
13618char nanosleep();
13619
13620int main() {
13621nanosleep()
13622; return 0; }
13623EOF
13624if { (eval echo configure:13625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13625 rm -rf conftest*
13626 eval "ac_cv_lib_$ac_lib_var=yes"
13627else
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13630 rm -rf conftest*
13631 eval "ac_cv_lib_$ac_lib_var=no"
13632fi
13633rm -f conftest*
13634LIBS="$ac_save_LIBS"
13635
13636fi
13637if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13638 echo "$ac_t""yes" 1>&6
13639
13640 cat >> confdefs.h <<\EOF
13641#define HAVE_NANOSLEEP 1
13642EOF
13643
13644 POSIX4_LINK="-lposix4"
13645
13646else
13647 echo "$ac_t""no" 1>&6
13648
13649 for ac_func in usleep
13650do
13651echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13652echo "configure:13653: checking for $ac_func" >&5
13653if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13654 echo $ac_n "(cached) $ac_c" 1>&6
13655else
13656 cat > conftest.$ac_ext <<EOF
13657#line 13658 "configure"
13658#include "confdefs.h"
13659/* System header to define __stub macros and hopefully few prototypes,
13660 which can conflict with char $ac_func(); below. */
13661#include <assert.h>
13662/* Override any gcc2 internal prototype to avoid an error. */
13663/* We use char because int might match the return type of a gcc2
13664 builtin and then its argument prototype would still apply. */
13665char $ac_func();
13666
13667int main() {
13668
13669/* The GNU C library defines this for functions which it implements
13670 to always fail with ENOSYS. Some functions are actually named
13671 something starting with __ and the normal name is an alias. */
13672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13673choke me
13674#else
13675$ac_func();
13676#endif
13677
13678; return 0; }
13679EOF
13680if { (eval echo configure:13681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13681 rm -rf conftest*
13682 eval "ac_cv_func_$ac_func=yes"
13683else
13684 echo "configure: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13686 rm -rf conftest*
13687 eval "ac_cv_func_$ac_func=no"
13688fi
13689rm -f conftest*
13690fi
13691
13692if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13693 echo "$ac_t""yes" 1>&6
13694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13695 cat >> confdefs.h <<EOF
13696#define $ac_tr_func 1
13697EOF
13698 cat >> confdefs.h <<\EOF
13699#define HAVE_USLEEP 1
13700EOF
13701
13702else
13703 echo "$ac_t""no" 1>&6
13704echo "configure: warning: wxSleep() function will not work" 1>&2
13705
13706fi
13707done
13708
13709
13710
13711fi
13712
13713
13714
13715fi
13716done
13717
13718fi
13719
13720for ac_func in uname gethostname
13721do
13722echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13723echo "configure:13724: checking for $ac_func" >&5
13724if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13725 echo $ac_n "(cached) $ac_c" 1>&6
13726else
13727 cat > conftest.$ac_ext <<EOF
13728#line 13729 "configure"
13729#include "confdefs.h"
13730/* System header to define __stub macros and hopefully few prototypes,
13731 which can conflict with char $ac_func(); below. */
13732#include <assert.h>
13733/* Override any gcc2 internal prototype to avoid an error. */
13734/* We use char because int might match the return type of a gcc2
13735 builtin and then its argument prototype would still apply. */
13736char $ac_func();
13737
13738int main() {
13739
13740/* The GNU C library defines this for functions which it implements
13741 to always fail with ENOSYS. Some functions are actually named
13742 something starting with __ and the normal name is an alias. */
13743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13744choke me
13745#else
13746$ac_func();
13747#endif
13748
13749; return 0; }
13750EOF
13751if { (eval echo configure:13752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13752 rm -rf conftest*
13753 eval "ac_cv_func_$ac_func=yes"
13754else
13755 echo "configure: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 rm -rf conftest*
13758 eval "ac_cv_func_$ac_func=no"
13759fi
13760rm -f conftest*
13761fi
13762
13763if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13764 echo "$ac_t""yes" 1>&6
13765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13766 cat >> confdefs.h <<EOF
13767#define $ac_tr_func 1
13768EOF
13769 break
13770else
13771 echo "$ac_t""no" 1>&6
13772fi
13773done
13774
13775
13776
13777ac_ext=C
13778# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13779ac_cpp='$CXXCPP $CPPFLAGS'
13780ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13781ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13782cross_compiling=$ac_cv_prog_cxx_cross
13783
13784
13785for ac_func in strtok_r
13786do
13787echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13788echo "configure:13789: checking for $ac_func" >&5
13789if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13790 echo $ac_n "(cached) $ac_c" 1>&6
13791else
13792 cat > conftest.$ac_ext <<EOF
13793#line 13794 "configure"
13794#include "confdefs.h"
13795/* System header to define __stub macros and hopefully few prototypes,
13796 which can conflict with char $ac_func(); below. */
13797#include <assert.h>
13798/* Override any gcc2 internal prototype to avoid an error. */
13799#ifdef __cplusplus
13800extern "C"
13801#endif
13802/* We use char because int might match the return type of a gcc2
13803 builtin and then its argument prototype would still apply. */
13804char $ac_func();
13805
13806int main() {
13807
13808/* The GNU C library defines this for functions which it implements
13809 to always fail with ENOSYS. Some functions are actually named
13810 something starting with __ and the normal name is an alias. */
13811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13812choke me
13813#else
13814$ac_func();
13815#endif
13816
13817; return 0; }
13818EOF
13819if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13820 rm -rf conftest*
13821 eval "ac_cv_func_$ac_func=yes"
13822else
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13825 rm -rf conftest*
13826 eval "ac_cv_func_$ac_func=no"
13827fi
13828rm -f conftest*
13829fi
13830
13831if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13832 echo "$ac_t""yes" 1>&6
13833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13834 cat >> confdefs.h <<EOF
13835#define $ac_tr_func 1
13836EOF
13837
13838else
13839 echo "$ac_t""no" 1>&6
13840fi
13841done
13842
13843
13844ac_ext=c
13845# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13846ac_cpp='$CPP $CPPFLAGS'
13847ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13848ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13849cross_compiling=$ac_cv_prog_cc_cross
13850
13851
13852INET_LINK=
13853for ac_func in inet_addr
13854do
13855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13856echo "configure:13857: checking for $ac_func" >&5
13857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13858 echo $ac_n "(cached) $ac_c" 1>&6
13859else
13860 cat > conftest.$ac_ext <<EOF
13861#line 13862 "configure"
13862#include "confdefs.h"
13863/* System header to define __stub macros and hopefully few prototypes,
13864 which can conflict with char $ac_func(); below. */
13865#include <assert.h>
13866/* Override any gcc2 internal prototype to avoid an error. */
13867/* We use char because int might match the return type of a gcc2
13868 builtin and then its argument prototype would still apply. */
13869char $ac_func();
13870
13871int main() {
13872
13873/* The GNU C library defines this for functions which it implements
13874 to always fail with ENOSYS. Some functions are actually named
13875 something starting with __ and the normal name is an alias. */
13876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13877choke me
13878#else
13879$ac_func();
13880#endif
13881
13882; return 0; }
13883EOF
13884if { (eval echo configure:13885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13885 rm -rf conftest*
13886 eval "ac_cv_func_$ac_func=yes"
13887else
13888 echo "configure: failed program was:" >&5
13889 cat conftest.$ac_ext >&5
13890 rm -rf conftest*
13891 eval "ac_cv_func_$ac_func=no"
13892fi
13893rm -f conftest*
13894fi
13895
13896if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13897 echo "$ac_t""yes" 1>&6
13898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13899 cat >> confdefs.h <<EOF
13900#define $ac_tr_func 1
13901EOF
13902 cat >> confdefs.h <<\EOF
13903#define HAVE_INET_ADDR 1
13904EOF
13905
13906else
13907 echo "$ac_t""no" 1>&6
13908echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13909echo "configure:13910: checking for inet_addr in -lnsl" >&5
13910ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13911if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13912 echo $ac_n "(cached) $ac_c" 1>&6
13913else
13914 ac_save_LIBS="$LIBS"
13915LIBS="-lnsl $LIBS"
13916cat > conftest.$ac_ext <<EOF
13917#line 13918 "configure"
13918#include "confdefs.h"
13919/* Override any gcc2 internal prototype to avoid an error. */
13920/* We use char because int might match the return type of a gcc2
13921 builtin and then its argument prototype would still apply. */
13922char inet_addr();
13923
13924int main() {
13925inet_addr()
13926; return 0; }
13927EOF
13928if { (eval echo configure:13929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13929 rm -rf conftest*
13930 eval "ac_cv_lib_$ac_lib_var=yes"
13931else
13932 echo "configure: failed program was:" >&5
13933 cat conftest.$ac_ext >&5
13934 rm -rf conftest*
13935 eval "ac_cv_lib_$ac_lib_var=no"
13936fi
13937rm -f conftest*
13938LIBS="$ac_save_LIBS"
13939
13940fi
13941if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13942 echo "$ac_t""yes" 1>&6
13943 INET_LINK="nsl"
13944else
13945 echo "$ac_t""no" 1>&6
13946echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13947echo "configure:13948: checking for inet_addr in -lresolv" >&5
13948ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13949if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13950 echo $ac_n "(cached) $ac_c" 1>&6
13951else
13952 ac_save_LIBS="$LIBS"
13953LIBS="-lresolv $LIBS"
13954cat > conftest.$ac_ext <<EOF
13955#line 13956 "configure"
13956#include "confdefs.h"
13957/* Override any gcc2 internal prototype to avoid an error. */
13958/* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13960char inet_addr();
13961
13962int main() {
13963inet_addr()
13964; return 0; }
13965EOF
13966if { (eval echo configure:13967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13967 rm -rf conftest*
13968 eval "ac_cv_lib_$ac_lib_var=yes"
13969else
13970 echo "configure: failed program was:" >&5
13971 cat conftest.$ac_ext >&5
13972 rm -rf conftest*
13973 eval "ac_cv_lib_$ac_lib_var=no"
13974fi
13975rm -f conftest*
13976LIBS="$ac_save_LIBS"
13977
13978fi
13979if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13980 echo "$ac_t""yes" 1>&6
13981 INET_LINK="resolv"
13982
13983else
13984 echo "$ac_t""no" 1>&6
13985fi
13986
13987
13988fi
13989
13990
13991
13992fi
13993done
13994
13995
13996for ac_func in inet_aton
13997do
13998echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13999echo "configure:14000: checking for $ac_func" >&5
14000if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14001 echo $ac_n "(cached) $ac_c" 1>&6
14002else
14003 cat > conftest.$ac_ext <<EOF
14004#line 14005 "configure"
14005#include "confdefs.h"
14006/* System header to define __stub macros and hopefully few prototypes,
14007 which can conflict with char $ac_func(); below. */
14008#include <assert.h>
14009/* Override any gcc2 internal prototype to avoid an error. */
14010/* We use char because int might match the return type of a gcc2
14011 builtin and then its argument prototype would still apply. */
14012char $ac_func();
14013
14014int main() {
14015
14016/* The GNU C library defines this for functions which it implements
14017 to always fail with ENOSYS. Some functions are actually named
14018 something starting with __ and the normal name is an alias. */
14019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14020choke me
14021#else
14022$ac_func();
14023#endif
14024
14025; return 0; }
14026EOF
14027if { (eval echo configure:14028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14028 rm -rf conftest*
14029 eval "ac_cv_func_$ac_func=yes"
14030else
14031 echo "configure: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 rm -rf conftest*
14034 eval "ac_cv_func_$ac_func=no"
14035fi
14036rm -f conftest*
14037fi
14038
14039if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14040 echo "$ac_t""yes" 1>&6
14041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14042 cat >> confdefs.h <<EOF
14043#define $ac_tr_func 1
14044EOF
14045 cat >> confdefs.h <<\EOF
14046#define HAVE_INET_ATON 1
14047EOF
14048
14049else
14050 echo "$ac_t""no" 1>&6
14051 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
14052echo "configure:14053: checking for inet_aton in -l$INET_LINK" >&5
14053ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14054if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14056else
14057 ac_save_LIBS="$LIBS"
14058LIBS="-l$INET_LINK $LIBS"
14059cat > conftest.$ac_ext <<EOF
14060#line 14061 "configure"
14061#include "confdefs.h"
14062/* Override any gcc2 internal prototype to avoid an error. */
14063/* We use char because int might match the return type of a gcc2
14064 builtin and then its argument prototype would still apply. */
14065char inet_aton();
14066
14067int main() {
14068inet_aton()
14069; return 0; }
14070EOF
14071if { (eval echo configure:14072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14072 rm -rf conftest*
14073 eval "ac_cv_lib_$ac_lib_var=yes"
14074else
14075 echo "configure: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14077 rm -rf conftest*
14078 eval "ac_cv_lib_$ac_lib_var=no"
14079fi
14080rm -f conftest*
14081LIBS="$ac_save_LIBS"
14082
14083fi
14084if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14085 echo "$ac_t""yes" 1>&6
14086 cat >> confdefs.h <<\EOF
14087#define HAVE_INET_ATON 1
14088EOF
14089
14090else
14091 echo "$ac_t""no" 1>&6
14092fi
14093
14094
14095fi
14096done
14097
14098
14099if test "x$INET_LINK" != "x"; then
14100 cat >> confdefs.h <<\EOF
14101#define HAVE_INET_ADDR 1
14102EOF
14103
14104 INET_LINK="-l$INET_LINK"
14105fi
14106
14107fi
14108
14109
14110cat > confcache <<\EOF
14111# This file is a shell script that caches the results of configure
14112# tests run on this system so they can be shared between configure
14113# scripts and configure runs. It is not useful on other systems.
14114# If it contains results you don't want to keep, you may remove or edit it.
14115#
14116# By default, configure uses ./config.cache as the cache file,
14117# creating it if it does not exist already. You can give configure
14118# the --cache-file=FILE option to use a different cache file; that is
14119# what configure does when it calls configure scripts in
14120# subdirectories, so they share the cache.
14121# Giving --cache-file=/dev/null disables caching, for debugging configure.
14122# config.status only pays attention to the cache file if you give it the
14123# --recheck option to rerun configure.
14124#
14125EOF
14126# The following way of writing the cache mishandles newlines in values,
14127# but we know of no workaround that is simple, portable, and efficient.
14128# So, don't put newlines in cache variables' values.
14129# Ultrix sh set writes to stderr and can't be redirected directly,
14130# and sets the high bit in the cache file unless we assign to the vars.
14131(set) 2>&1 |
14132 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14133 *ac_space=\ *)
14134 # `set' does not quote correctly, so add quotes (double-quote substitution
14135 # turns \\\\ into \\, and sed turns \\ into \).
14136 sed -n \
14137 -e "s/'/'\\\\''/g" \
14138 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14139 ;;
14140 *)
14141 # `set' quotes correctly as required by POSIX, so do not add quotes.
14142 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14143 ;;
14144 esac >> confcache
14145if cmp -s $cache_file confcache; then
14146 :
14147else
14148 if test -w $cache_file; then
14149 echo "updating cache $cache_file"
14150 cat confcache > $cache_file
14151 else
14152 echo "not updating unwritable cache $cache_file"
14153 fi
14154fi
14155rm -f confcache
14156
14157
14158
14159if test "$TOOLKIT" != "MSW"; then
14160
14161
14162THREADS_LINK=""
14163THREADS_OBJ=""
14164
14165if test "$wxUSE_THREADS" = "yes" ; then
14166 if test "$wxUSE_WINE" = 1 ; then
14167 echo "configure: warning: Threads are not supported under WINE" 1>&2
14168 wxUSE_THREADS="no"
14169 elif test "$USE_BEOS" = 1; then
14170 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14171 wxUSE_THREADS="no"
14172 fi
14173fi
14174
14175if test "$wxUSE_THREADS" = "yes" ; then
14176
14177 if test "$USE_AIX" = 1; then
14178 THREADS_LIB=pthreads
14179 else
14180 THREADS_LIB=pthread
14181 fi
14182
14183 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14184echo "configure:14185: checking for pthread_create in -l$THREADS_LIB" >&5
14185ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14186if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14187 echo $ac_n "(cached) $ac_c" 1>&6
14188else
14189 ac_save_LIBS="$LIBS"
14190LIBS="-l$THREADS_LIB $LIBS"
14191cat > conftest.$ac_ext <<EOF
14192#line 14193 "configure"
14193#include "confdefs.h"
14194/* Override any gcc2 internal prototype to avoid an error. */
14195/* We use char because int might match the return type of a gcc2
14196 builtin and then its argument prototype would still apply. */
14197char pthread_create();
14198
14199int main() {
14200pthread_create()
14201; return 0; }
14202EOF
14203if { (eval echo configure:14204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14204 rm -rf conftest*
14205 eval "ac_cv_lib_$ac_lib_var=yes"
14206else
14207 echo "configure: failed program was:" >&5
14208 cat conftest.$ac_ext >&5
14209 rm -rf conftest*
14210 eval "ac_cv_lib_$ac_lib_var=no"
14211fi
14212rm -f conftest*
14213LIBS="$ac_save_LIBS"
14214
14215fi
14216if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14217 echo "$ac_t""yes" 1>&6
14218
14219 THREADS_OBJ="threadpsx.lo"
14220 THREADS_LINK=$THREADS_LIB
14221
14222else
14223 echo "$ac_t""no" 1>&6
14224
14225 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14226echo "configure:14227: checking for pthread_create in -lc_r" >&5
14227ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14228if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14229 echo $ac_n "(cached) $ac_c" 1>&6
14230else
14231 ac_save_LIBS="$LIBS"
14232LIBS="-lc_r $LIBS"
14233cat > conftest.$ac_ext <<EOF
14234#line 14235 "configure"
14235#include "confdefs.h"
14236/* Override any gcc2 internal prototype to avoid an error. */
14237/* We use char because int might match the return type of a gcc2
14238 builtin and then its argument prototype would still apply. */
14239char pthread_create();
14240
14241int main() {
14242pthread_create()
14243; return 0; }
14244EOF
14245if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14246 rm -rf conftest*
14247 eval "ac_cv_lib_$ac_lib_var=yes"
14248else
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14251 rm -rf conftest*
14252 eval "ac_cv_lib_$ac_lib_var=no"
14253fi
14254rm -f conftest*
14255LIBS="$ac_save_LIBS"
14256
14257fi
14258if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14259 echo "$ac_t""yes" 1>&6
14260
14261 THREADS_OBJ="threadpsx.lo"
14262 THREADS_LINK="c_r"
14263
14264else
14265 echo "$ac_t""no" 1>&6
14266
14267 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14268echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14269echo "configure:14270: checking for sys/prctl.h" >&5
14270if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14271 echo $ac_n "(cached) $ac_c" 1>&6
14272else
14273 cat > conftest.$ac_ext <<EOF
14274#line 14275 "configure"
14275#include "confdefs.h"
14276#include <sys/prctl.h>
14277EOF
14278ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14279{ (eval echo configure:14280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14280ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14281if test -z "$ac_err"; then
14282 rm -rf conftest*
14283 eval "ac_cv_header_$ac_safe=yes"
14284else
14285 echo "$ac_err" >&5
14286 echo "configure: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 rm -rf conftest*
14289 eval "ac_cv_header_$ac_safe=no"
14290fi
14291rm -f conftest*
14292fi
14293if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14294 echo "$ac_t""yes" 1>&6
14295
14296 THREADS_OBJ="threadsgi.lo"
14297
14298else
14299 echo "$ac_t""no" 1>&6
14300fi
14301
14302
14303fi
14304
14305
14306fi
14307
14308
14309 if test -z "$THREADS_OBJ" ; then
14310 wxUSE_THREADS=no
14311 echo "configure: warning: No thread support on this system" 1>&2
14312 fi
14313fi
14314
14315if test "$wxUSE_THREADS" = "yes" ; then
14316 for ac_func in thr_setconcurrency
14317do
14318echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14319echo "configure:14320: checking for $ac_func" >&5
14320if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14321 echo $ac_n "(cached) $ac_c" 1>&6
14322else
14323 cat > conftest.$ac_ext <<EOF
14324#line 14325 "configure"
14325#include "confdefs.h"
14326/* System header to define __stub macros and hopefully few prototypes,
14327 which can conflict with char $ac_func(); below. */
14328#include <assert.h>
14329/* Override any gcc2 internal prototype to avoid an error. */
14330/* We use char because int might match the return type of a gcc2
14331 builtin and then its argument prototype would still apply. */
14332char $ac_func();
14333
14334int main() {
14335
14336/* The GNU C library defines this for functions which it implements
14337 to always fail with ENOSYS. Some functions are actually named
14338 something starting with __ and the normal name is an alias. */
14339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14340choke me
14341#else
14342$ac_func();
14343#endif
14344
14345; return 0; }
14346EOF
14347if { (eval echo configure:14348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14348 rm -rf conftest*
14349 eval "ac_cv_func_$ac_func=yes"
14350else
14351 echo "configure: failed program was:" >&5
14352 cat conftest.$ac_ext >&5
14353 rm -rf conftest*
14354 eval "ac_cv_func_$ac_func=no"
14355fi
14356rm -f conftest*
14357fi
14358
14359if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14360 echo "$ac_t""yes" 1>&6
14361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14362 cat >> confdefs.h <<EOF
14363#define $ac_tr_func 1
14364EOF
14365
14366else
14367 echo "$ac_t""no" 1>&6
14368fi
14369done
14370
14371
14372
14373 for ac_hdr in sched.h
14374do
14375ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14376echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14377echo "configure:14378: checking for $ac_hdr" >&5
14378if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14379 echo $ac_n "(cached) $ac_c" 1>&6
14380else
14381 cat > conftest.$ac_ext <<EOF
14382#line 14383 "configure"
14383#include "confdefs.h"
14384#include <$ac_hdr>
14385EOF
14386ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14387{ (eval echo configure:14388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14388ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14389if test -z "$ac_err"; then
14390 rm -rf conftest*
14391 eval "ac_cv_header_$ac_safe=yes"
14392else
14393 echo "$ac_err" >&5
14394 echo "configure: failed program was:" >&5
14395 cat conftest.$ac_ext >&5
14396 rm -rf conftest*
14397 eval "ac_cv_header_$ac_safe=no"
14398fi
14399rm -f conftest*
14400fi
14401if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14402 echo "$ac_t""yes" 1>&6
14403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14404 cat >> confdefs.h <<EOF
14405#define $ac_tr_hdr 1
14406EOF
14407
14408else
14409 echo "$ac_t""no" 1>&6
14410fi
14411done
14412
14413
14414 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14415echo "configure:14416: checking for sched_yield in -l$THREADS_LINK" >&5
14416ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14417if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14418 echo $ac_n "(cached) $ac_c" 1>&6
14419else
14420 ac_save_LIBS="$LIBS"
14421LIBS="-l$THREADS_LINK $LIBS"
14422cat > conftest.$ac_ext <<EOF
14423#line 14424 "configure"
14424#include "confdefs.h"
14425/* Override any gcc2 internal prototype to avoid an error. */
14426/* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14428char sched_yield();
14429
14430int main() {
14431sched_yield()
14432; return 0; }
14433EOF
14434if { (eval echo configure:14435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14435 rm -rf conftest*
14436 eval "ac_cv_lib_$ac_lib_var=yes"
14437else
14438 echo "configure: failed program was:" >&5
14439 cat conftest.$ac_ext >&5
14440 rm -rf conftest*
14441 eval "ac_cv_lib_$ac_lib_var=no"
14442fi
14443rm -f conftest*
14444LIBS="$ac_save_LIBS"
14445
14446fi
14447if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14448 echo "$ac_t""yes" 1>&6
14449 cat >> confdefs.h <<\EOF
14450#define HAVE_SCHED_YIELD 1
14451EOF
14452
14453else
14454 echo "$ac_t""no" 1>&6
14455echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14456echo "configure:14457: checking for sched_yield in -lposix4" >&5
14457ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14458if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14459 echo $ac_n "(cached) $ac_c" 1>&6
14460else
14461 ac_save_LIBS="$LIBS"
14462LIBS="-lposix4 $LIBS"
14463cat > conftest.$ac_ext <<EOF
14464#line 14465 "configure"
14465#include "confdefs.h"
14466/* Override any gcc2 internal prototype to avoid an error. */
14467/* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14469char sched_yield();
14470
14471int main() {
14472sched_yield()
14473; return 0; }
14474EOF
14475if { (eval echo configure:14476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14476 rm -rf conftest*
14477 eval "ac_cv_lib_$ac_lib_var=yes"
14478else
14479 echo "configure: failed program was:" >&5
14480 cat conftest.$ac_ext >&5
14481 rm -rf conftest*
14482 eval "ac_cv_lib_$ac_lib_var=no"
14483fi
14484rm -f conftest*
14485LIBS="$ac_save_LIBS"
14486
14487fi
14488if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14489 echo "$ac_t""yes" 1>&6
14490 cat >> confdefs.h <<\EOF
14491#define HAVE_SCHED_YIELD 1
14492EOF
14493 POSIX4_LINK="-lposix4"
14494else
14495 echo "$ac_t""no" 1>&6
14496echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14497
14498fi
14499
14500
14501fi
14502
14503
14504 HAVE_PRIOR_FUNCS=0
14505 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14506echo "configure:14507: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14507ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14508if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14509 echo $ac_n "(cached) $ac_c" 1>&6
14510else
14511 ac_save_LIBS="$LIBS"
14512LIBS="-l$THREADS_LINK $LIBS"
14513cat > conftest.$ac_ext <<EOF
14514#line 14515 "configure"
14515#include "confdefs.h"
14516/* Override any gcc2 internal prototype to avoid an error. */
14517/* We use char because int might match the return type of a gcc2
14518 builtin and then its argument prototype would still apply. */
14519char pthread_attr_getschedpolicy();
14520
14521int main() {
14522pthread_attr_getschedpolicy()
14523; return 0; }
14524EOF
14525if { (eval echo configure:14526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14526 rm -rf conftest*
14527 eval "ac_cv_lib_$ac_lib_var=yes"
14528else
14529 echo "configure: failed program was:" >&5
14530 cat conftest.$ac_ext >&5
14531 rm -rf conftest*
14532 eval "ac_cv_lib_$ac_lib_var=no"
14533fi
14534rm -f conftest*
14535LIBS="$ac_save_LIBS"
14536
14537fi
14538if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14539 echo "$ac_t""yes" 1>&6
14540 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14541echo "configure:14542: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14542ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14543if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14544 echo $ac_n "(cached) $ac_c" 1>&6
14545else
14546 ac_save_LIBS="$LIBS"
14547LIBS="-l$THREADS_LINK $LIBS"
14548cat > conftest.$ac_ext <<EOF
14549#line 14550 "configure"
14550#include "confdefs.h"
14551/* Override any gcc2 internal prototype to avoid an error. */
14552/* We use char because int might match the return type of a gcc2
14553 builtin and then its argument prototype would still apply. */
14554char pthread_attr_setschedparam();
14555
14556int main() {
14557pthread_attr_setschedparam()
14558; return 0; }
14559EOF
14560if { (eval echo configure:14561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14561 rm -rf conftest*
14562 eval "ac_cv_lib_$ac_lib_var=yes"
14563else
14564 echo "configure: failed program was:" >&5
14565 cat conftest.$ac_ext >&5
14566 rm -rf conftest*
14567 eval "ac_cv_lib_$ac_lib_var=no"
14568fi
14569rm -f conftest*
14570LIBS="$ac_save_LIBS"
14571
14572fi
14573if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14574 echo "$ac_t""yes" 1>&6
14575 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14576echo "configure:14577: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14577ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14578if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14579 echo $ac_n "(cached) $ac_c" 1>&6
14580else
14581 ac_save_LIBS="$LIBS"
14582LIBS="-l$THREADS_LINK $LIBS"
14583cat > conftest.$ac_ext <<EOF
14584#line 14585 "configure"
14585#include "confdefs.h"
14586/* Override any gcc2 internal prototype to avoid an error. */
14587/* We use char because int might match the return type of a gcc2
14588 builtin and then its argument prototype would still apply. */
14589char sched_get_priority_max();
14590
14591int main() {
14592sched_get_priority_max()
14593; return 0; }
14594EOF
14595if { (eval echo configure:14596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14596 rm -rf conftest*
14597 eval "ac_cv_lib_$ac_lib_var=yes"
14598else
14599 echo "configure: failed program was:" >&5
14600 cat conftest.$ac_ext >&5
14601 rm -rf conftest*
14602 eval "ac_cv_lib_$ac_lib_var=no"
14603fi
14604rm -f conftest*
14605LIBS="$ac_save_LIBS"
14606
14607fi
14608if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14609 echo "$ac_t""yes" 1>&6
14610 HAVE_PRIOR_FUNCS=1
14611else
14612 echo "$ac_t""no" 1>&6
14613echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14614echo "configure:14615: checking for sched_get_priority_max in -lposix4" >&5
14615ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14616if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14617 echo $ac_n "(cached) $ac_c" 1>&6
14618else
14619 ac_save_LIBS="$LIBS"
14620LIBS="-lposix4 $LIBS"
14621cat > conftest.$ac_ext <<EOF
14622#line 14623 "configure"
14623#include "confdefs.h"
14624/* Override any gcc2 internal prototype to avoid an error. */
14625/* We use char because int might match the return type of a gcc2
14626 builtin and then its argument prototype would still apply. */
14627char sched_get_priority_max();
14628
14629int main() {
14630sched_get_priority_max()
14631; return 0; }
14632EOF
14633if { (eval echo configure:14634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14634 rm -rf conftest*
14635 eval "ac_cv_lib_$ac_lib_var=yes"
14636else
14637 echo "configure: failed program was:" >&5
14638 cat conftest.$ac_ext >&5
14639 rm -rf conftest*
14640 eval "ac_cv_lib_$ac_lib_var=no"
14641fi
14642rm -f conftest*
14643LIBS="$ac_save_LIBS"
14644
14645fi
14646if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14647 echo "$ac_t""yes" 1>&6
14648
14649 HAVE_PRIOR_FUNCS=1
14650 POSIX4_LINK="-lposix4"
14651
14652else
14653 echo "$ac_t""no" 1>&6
14654fi
14655
14656
14657fi
14658
14659
14660else
14661 echo "$ac_t""no" 1>&6
14662fi
14663
14664
14665else
14666 echo "$ac_t""no" 1>&6
14667fi
14668
14669
14670 if test "$HAVE_PRIOR_FUNCS" = 1; then
14671 cat >> confdefs.h <<\EOF
14672#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14673EOF
14674
14675 else
14676 echo "configure: warning: Setting thread priority will not work" 1>&2
14677 fi
14678
14679 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14680echo "configure:14681: checking for pthread_cancel in -l$THREADS_LINK" >&5
14681ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14683 echo $ac_n "(cached) $ac_c" 1>&6
14684else
14685 ac_save_LIBS="$LIBS"
14686LIBS="-l$THREADS_LINK $LIBS"
14687cat > conftest.$ac_ext <<EOF
14688#line 14689 "configure"
14689#include "confdefs.h"
14690/* Override any gcc2 internal prototype to avoid an error. */
14691/* We use char because int might match the return type of a gcc2
14692 builtin and then its argument prototype would still apply. */
14693char pthread_cancel();
14694
14695int main() {
14696pthread_cancel()
14697; return 0; }
14698EOF
14699if { (eval echo configure:14700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14700 rm -rf conftest*
14701 eval "ac_cv_lib_$ac_lib_var=yes"
14702else
14703 echo "configure: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 rm -rf conftest*
14706 eval "ac_cv_lib_$ac_lib_var=no"
14707fi
14708rm -f conftest*
14709LIBS="$ac_save_LIBS"
14710
14711fi
14712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14713 echo "$ac_t""yes" 1>&6
14714 cat >> confdefs.h <<\EOF
14715#define HAVE_PTHREAD_CANCEL 1
14716EOF
14717
14718else
14719 echo "$ac_t""no" 1>&6
14720echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14721fi
14722
14723
14724 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14725echo "configure:14726: checking for pthread_cleanup_push/pop" >&5
14726if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14727 echo $ac_n "(cached) $ac_c" 1>&6
14728else
14729
14730 cat > conftest.$ac_ext <<EOF
14731#line 14732 "configure"
14732#include "confdefs.h"
14733#include <pthread.h>
14734int main() {
14735
14736 pthread_cleanup_push(NULL, NULL);
14737 pthread_cleanup_pop(0);
14738
14739; return 0; }
14740EOF
14741if { (eval echo configure:14742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14742 rm -rf conftest*
14743
14744 wx_cv_func_pthread_cleanup_push=yes
14745
14746else
14747 echo "configure: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 rm -rf conftest*
14750
14751 wx_cv_func_pthread_cleanup_push=no
14752
14753fi
14754rm -f conftest*
14755
14756fi
14757
14758echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14759
14760 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14761 cat >> confdefs.h <<\EOF
14762#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14763EOF
14764
14765 fi
14766
14767
14768 if test "x$wx_lib_glibc21" = "xyes"; then
14769 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
14770 fi
14771
14772 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14773echo "configure:14774: checking for pthread_mutexattr_t" >&5
14774if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14775 echo $ac_n "(cached) $ac_c" 1>&6
14776else
14777
14778 cat > conftest.$ac_ext <<EOF
14779#line 14780 "configure"
14780#include "confdefs.h"
14781#include <pthread.h>
14782int main() {
14783
14784 pthread_mutexattr_t attr;
14785 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14786
14787; return 0; }
14788EOF
14789if { (eval echo configure:14790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14790 rm -rf conftest*
14791
14792 wx_cv_type_pthread_mutexattr_t=yes
14793
14794else
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 rm -rf conftest*
14798
14799 wx_cv_type_pthread_mutexattr_t=no
14800
14801
14802fi
14803rm -f conftest*
14804
14805fi
14806
14807echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14808
14809 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14810 cat >> confdefs.h <<\EOF
14811#define HAVE_PTHREAD_MUTEXATTR_T 1
14812EOF
14813
14814 else
14815 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14816echo "configure:14817: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14817if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14818 echo $ac_n "(cached) $ac_c" 1>&6
14819else
14820
14821 cat > conftest.$ac_ext <<EOF
14822#line 14823 "configure"
14823#include "confdefs.h"
14824#include <pthread.h>
14825int main() {
14826
14827 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14828
14829; return 0; }
14830EOF
14831if { (eval echo configure:14832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14832 rm -rf conftest*
14833
14834 wx_cv_type_pthread_rec_mutex_init=yes
14835
14836else
14837 echo "configure: failed program was:" >&5
14838 cat conftest.$ac_ext >&5
14839 rm -rf conftest*
14840
14841 wx_cv_type_pthread_rec_mutex_init=no
14842
14843
14844fi
14845rm -f conftest*
14846
14847fi
14848
14849echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14850 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14851 cat >> confdefs.h <<\EOF
14852#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14853EOF
14854
14855 else
14856 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14857 fi
14858 fi
14859
14860 THREADS_LINK="-l$THREADS_LINK"
14861
14862 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14863 CFLAGS="${CFLAGS} -mt"
14864 CXXFLAGS="${CXXFLAGS} -mt"
14865 LDFLAGS="${LDFLAGS} -mt"
14866 fi
14867fi
14868
14869fi
14870
14871if test "$wxUSE_THREADS" = "yes"; then
14872 cat >> confdefs.h <<\EOF
14873#define wxUSE_THREADS 1
14874EOF
14875
14876
14877 if test "$USE_DARWIN" != 1; then
14878 CFLAGS="${CFLAGS} -D_REENTRANT"
14879 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14880 fi
14881
14882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14883else
14884 if test "$ac_cv_func_strtok_r" = "yes"; then
14885 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14886echo "configure:14887: checking if -D_REENTRANT is needed" >&5
14887 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14888 CFLAGS="${CFLAGS} -D_REENTRANT"
14889 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14890 echo "$ac_t""yes" 1>&6
14891 else
14892 echo "$ac_t""no" 1>&6
14893 fi
14894 fi
14895fi
14896
14897if test "$WXGTK20" = 1 ; then
14898 cat >> confdefs.h <<EOF
14899#define __WXGTK20__ $WXGTK20
14900EOF
14901
14902 WXGTK12=1
14903fi
14904
14905if test "$WXGTK12" = 1 ; then
14906 cat >> confdefs.h <<EOF
14907#define __WXGTK12__ $WXGTK12
14908EOF
14909
14910fi
14911
14912if test "$WXGTK127" = 1 ; then
14913 cat >> confdefs.h <<EOF
14914#define __WXGTK127__ $WXGTK127
14915EOF
14916
14917fi
14918
14919if test "$WXWINE" = 1 ; then
14920 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14921fi
14922
14923if test "$wxUSE_MAC" = 1 ; then
14924 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14925 CFLAGS="${CFLAGS} -fpascal-strings"
14926 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
14927 # Extract the first word of "Rez", so it can be a program name with args.
14928set dummy Rez; ac_word=$2
14929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14930echo "configure:14931: checking for $ac_word" >&5
14931if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14932 echo $ac_n "(cached) $ac_c" 1>&6
14933else
14934 if test -n "$REZ"; then
14935 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14936else
14937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14938 ac_dummy="$PATH"
14939 for ac_dir in $ac_dummy; do
14940 test -z "$ac_dir" && ac_dir=.
14941 if test -f $ac_dir/$ac_word; then
14942 ac_cv_prog_REZ="Rez"
14943 break
14944 fi
14945 done
14946 IFS="$ac_save_ifs"
14947 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14948fi
14949fi
14950REZ="$ac_cv_prog_REZ"
14951if test -n "$REZ"; then
14952 echo "$ac_t""$REZ" 1>&6
14953else
14954 echo "$ac_t""no" 1>&6
14955fi
14956
14957 # Extract the first word of "Derez", so it can be a program name with args.
14958set dummy Derez; ac_word=$2
14959echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14960echo "configure:14961: checking for $ac_word" >&5
14961if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14962 echo $ac_n "(cached) $ac_c" 1>&6
14963else
14964 if test -n "$DEREZ"; then
14965 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14966else
14967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14968 ac_dummy="$PATH"
14969 for ac_dir in $ac_dummy; do
14970 test -z "$ac_dir" && ac_dir=.
14971 if test -f $ac_dir/$ac_word; then
14972 ac_cv_prog_DEREZ="Derez"
14973 break
14974 fi
14975 done
14976 IFS="$ac_save_ifs"
14977 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14978fi
14979fi
14980DEREZ="$ac_cv_prog_DEREZ"
14981if test -n "$DEREZ"; then
14982 echo "$ac_t""$DEREZ" 1>&6
14983else
14984 echo "$ac_t""no" 1>&6
14985fi
14986
14987 RESCOMP=${REZ}
14988 REZFLAGS="-d __UNIX__ -useDF"
14989 DEREZFLAGS="Carbon.r -useDF"
14990 RESFLAGS="Carbon.r -t APPL"
14991 LIBWXMACRES="\$(LIBWX_MACRES)"
14992 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14993fi
14994
14995if test "$wxUSE_CYGWIN" = 1 ; then
14996 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14997fi
14998
14999WXDEBUG=
15000
15001if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15002 WXDEBUG="-g"
15003 wxUSE_OPTIMISE=no
15004fi
15005
15006if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15007 wxUSE_DEBUG_INFO=yes
15008 WXDEBUG="-ggdb"
15009fi
15010
15011if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15012 cat >> confdefs.h <<\EOF
15013#define WXDEBUG 1
15014EOF
15015
15016 WXDEBUG_DEFINE="-D__WXDEBUG__"
15017else
15018 if test "$wxUSE_GTK" = 1 ; then
15019 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15020 fi
15021fi
15022
15023if test "$wxUSE_MEM_TRACING" = "yes" ; then
15024 cat >> confdefs.h <<\EOF
15025#define wxUSE_MEMORY_TRACING 1
15026EOF
15027
15028 cat >> confdefs.h <<\EOF
15029#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15030EOF
15031
15032 cat >> confdefs.h <<\EOF
15033#define wxUSE_DEBUG_NEW_ALWAYS 1
15034EOF
15035
15036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15037fi
15038
15039if test "$wxUSE_DMALLOC" = "yes" ; then
15040 DMALLOC_LINK="-ldmalloc"
15041fi
15042
15043PROFILE=
15044if test "$wxUSE_PROFILE" = "yes" ; then
15045 PROFILE="-pg"
15046fi
15047
15048DEP_INFO_FLAGS=
15049CODE_GEN_FLAGS=
15050CODE_GEN_FLAGS_CXX=
15051if test "$GCC" = yes ; then
15052 if test "$wxUSE_NO_RTTI" = "yes" ; then
15053 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
15054 fi
15055 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15056 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
15057 fi
15058 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15059 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15060 fi
15061 if test "$wxUSE_NO_DEPS" = "no" ; then
15062 DEP_INFO_FLAGS="-MMD"
15063 fi
15064fi
15065
15066
15067CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15068CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15069if test "$wxUSE_OPTIMISE" = "no" ; then
15070 OPTIMISE=
15071else
15072 if test "$GCC" = yes ; then
15073 OPTIMISE="-O2"
15074 case "${host}" in
15075 i586-*-*|i686-*-* )
15076 OPTIMISE="${OPTIMISE} "
15077 ;;
15078 esac
15079 else
15080 OPTIMISE="-O"
15081 fi
15082fi
15083
15084if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15085 cat >> confdefs.h <<\EOF
15086#define WXWIN_COMPATIBILITY_2 1
15087EOF
15088
15089
15090 WXWIN_COMPATIBILITY_2_2="yes"
15091fi
15092
15093if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15094 cat >> confdefs.h <<\EOF
15095#define WXWIN_COMPATIBILITY_2_2 1
15096EOF
15097
15098fi
15099
15100
15101ZLIB_INCLUDE=
15102if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15103 cat >> confdefs.h <<\EOF
15104#define wxUSE_ZLIB 1
15105EOF
15106
15107 if test "$wxUSE_ZLIB" = "yes" ; then
15108 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15109 else
15110 ZLIB_LINK=
15111 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15112echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15113echo "configure:15114: checking for zlib.h" >&5
15114if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15115 echo $ac_n "(cached) $ac_c" 1>&6
15116else
15117 cat > conftest.$ac_ext <<EOF
15118#line 15119 "configure"
15119#include "confdefs.h"
15120#include <zlib.h>
15121EOF
15122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15123{ (eval echo configure:15124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15125if test -z "$ac_err"; then
15126 rm -rf conftest*
15127 eval "ac_cv_header_$ac_safe=yes"
15128else
15129 echo "$ac_err" >&5
15130 echo "configure: failed program was:" >&5
15131 cat conftest.$ac_ext >&5
15132 rm -rf conftest*
15133 eval "ac_cv_header_$ac_safe=no"
15134fi
15135rm -f conftest*
15136fi
15137if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15138 echo "$ac_t""yes" 1>&6
15139 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15140echo "configure:15141: checking for deflate in -lz" >&5
15141ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15142if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15143 echo $ac_n "(cached) $ac_c" 1>&6
15144else
15145 ac_save_LIBS="$LIBS"
15146LIBS="-lz $LIBS"
15147cat > conftest.$ac_ext <<EOF
15148#line 15149 "configure"
15149#include "confdefs.h"
15150/* Override any gcc2 internal prototype to avoid an error. */
15151/* We use char because int might match the return type of a gcc2
15152 builtin and then its argument prototype would still apply. */
15153char deflate();
15154
15155int main() {
15156deflate()
15157; return 0; }
15158EOF
15159if { (eval echo configure:15160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15160 rm -rf conftest*
15161 eval "ac_cv_lib_$ac_lib_var=yes"
15162else
15163 echo "configure: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15165 rm -rf conftest*
15166 eval "ac_cv_lib_$ac_lib_var=no"
15167fi
15168rm -f conftest*
15169LIBS="$ac_save_LIBS"
15170
15171fi
15172if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15173 echo "$ac_t""yes" 1>&6
15174 ZLIB_LINK="-lz"
15175else
15176 echo "$ac_t""no" 1>&6
15177fi
15178
15179else
15180 echo "$ac_t""no" 1>&6
15181fi
15182
15183 if test "x$ZLIB_LINK" = "x" ; then
15184 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15185 fi
15186 fi
15187fi
15188
15189PNG_INCLUDE=
15190if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15191 cat >> confdefs.h <<\EOF
15192#define wxUSE_LIBPNG 1
15193EOF
15194
15195 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15196 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15197 wxUSE_LIBPNG=yes
15198 fi
15199
15200 if test "$wxUSE_LIBPNG" = "yes" ; then
15201 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15202 else
15203 PNG_LINK=
15204 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15205echo $ac_n "checking for png.h""... $ac_c" 1>&6
15206echo "configure:15207: checking for png.h" >&5
15207if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15208 echo $ac_n "(cached) $ac_c" 1>&6
15209else
15210 cat > conftest.$ac_ext <<EOF
15211#line 15212 "configure"
15212#include "confdefs.h"
15213#include <png.h>
15214EOF
15215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15216{ (eval echo configure:15217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15218if test -z "$ac_err"; then
15219 rm -rf conftest*
15220 eval "ac_cv_header_$ac_safe=yes"
15221else
15222 echo "$ac_err" >&5
15223 echo "configure: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15225 rm -rf conftest*
15226 eval "ac_cv_header_$ac_safe=no"
15227fi
15228rm -f conftest*
15229fi
15230if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15231 echo "$ac_t""yes" 1>&6
15232 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15233echo "configure:15234: checking for png_check_sig in -lpng" >&5
15234ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15236 echo $ac_n "(cached) $ac_c" 1>&6
15237else
15238 ac_save_LIBS="$LIBS"
15239LIBS="-lpng -lz -lm $LIBS"
15240cat > conftest.$ac_ext <<EOF
15241#line 15242 "configure"
15242#include "confdefs.h"
15243/* Override any gcc2 internal prototype to avoid an error. */
15244/* We use char because int might match the return type of a gcc2
15245 builtin and then its argument prototype would still apply. */
15246char png_check_sig();
15247
15248int main() {
15249png_check_sig()
15250; return 0; }
15251EOF
15252if { (eval echo configure:15253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15253 rm -rf conftest*
15254 eval "ac_cv_lib_$ac_lib_var=yes"
15255else
15256 echo "configure: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15258 rm -rf conftest*
15259 eval "ac_cv_lib_$ac_lib_var=no"
15260fi
15261rm -f conftest*
15262LIBS="$ac_save_LIBS"
15263
15264fi
15265if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15266 echo "$ac_t""yes" 1>&6
15267 PNG_LINK="-lpng"
15268else
15269 echo "$ac_t""no" 1>&6
15270fi
15271
15272
15273else
15274 echo "$ac_t""no" 1>&6
15275fi
15276
15277 if test "x$PNG_LINK" = "x" ; then
15278 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15279 fi
15280 fi
15281
15282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15283fi
15284
15285JPEG_INCLUDE=
15286if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15287 cat >> confdefs.h <<\EOF
15288#define wxUSE_LIBJPEG 1
15289EOF
15290
15291 if test "$wxUSE_LIBJPEG" = "yes" ; then
15292 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15293 else
15294 JPEG_LINK=
15295 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15296echo "configure:15297: checking for jpeglib.h" >&5
15297 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15298 echo $ac_n "(cached) $ac_c" 1>&6
15299else
15300 cat > conftest.$ac_ext <<EOF
15301#line 15302 "configure"
15302#include "confdefs.h"
15303
15304 #undef HAVE_STDLIB_H
15305 #include <stdio.h>
15306 #include <jpeglib.h>
15307
15308int main() {
15309
15310
15311; return 0; }
15312EOF
15313if { (eval echo configure:15314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15314 rm -rf conftest*
15315 ac_cv_header_jpeglib_h=yes
15316else
15317 echo "configure: failed program was:" >&5
15318 cat conftest.$ac_ext >&5
15319 rm -rf conftest*
15320 ac_cv_header_jpeglib_h=no
15321
15322fi
15323rm -f conftest*
15324
15325fi
15326
15327 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15328
15329 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15330 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15331echo "configure:15332: checking for jpeg_read_header in -ljpeg" >&5
15332ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15333if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15334 echo $ac_n "(cached) $ac_c" 1>&6
15335else
15336 ac_save_LIBS="$LIBS"
15337LIBS="-ljpeg $LIBS"
15338cat > conftest.$ac_ext <<EOF
15339#line 15340 "configure"
15340#include "confdefs.h"
15341/* Override any gcc2 internal prototype to avoid an error. */
15342/* We use char because int might match the return type of a gcc2
15343 builtin and then its argument prototype would still apply. */
15344char jpeg_read_header();
15345
15346int main() {
15347jpeg_read_header()
15348; return 0; }
15349EOF
15350if { (eval echo configure:15351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15351 rm -rf conftest*
15352 eval "ac_cv_lib_$ac_lib_var=yes"
15353else
15354 echo "configure: failed program was:" >&5
15355 cat conftest.$ac_ext >&5
15356 rm -rf conftest*
15357 eval "ac_cv_lib_$ac_lib_var=no"
15358fi
15359rm -f conftest*
15360LIBS="$ac_save_LIBS"
15361
15362fi
15363if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15364 echo "$ac_t""yes" 1>&6
15365 JPEG_LINK="-ljpeg"
15366else
15367 echo "$ac_t""no" 1>&6
15368fi
15369
15370 fi
15371
15372 if test "x$JPEG_LINK" = "x" ; then
15373 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15374 fi
15375 fi
15376fi
15377
15378TIFF_INCLUDE=
15379if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15380 cat >> confdefs.h <<\EOF
15381#define wxUSE_LIBTIFF 1
15382EOF
15383
15384 if test "$wxUSE_LIBTIFF" = "yes" ; then
15385 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15386 else
15387 TIFF_LINK=
15388 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15389echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15390echo "configure:15391: checking for tiffio.h" >&5
15391if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15392 echo $ac_n "(cached) $ac_c" 1>&6
15393else
15394 cat > conftest.$ac_ext <<EOF
15395#line 15396 "configure"
15396#include "confdefs.h"
15397#include <tiffio.h>
15398EOF
15399ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15400{ (eval echo configure:15401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15401ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15402if test -z "$ac_err"; then
15403 rm -rf conftest*
15404 eval "ac_cv_header_$ac_safe=yes"
15405else
15406 echo "$ac_err" >&5
15407 echo "configure: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15409 rm -rf conftest*
15410 eval "ac_cv_header_$ac_safe=no"
15411fi
15412rm -f conftest*
15413fi
15414if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15415 echo "$ac_t""yes" 1>&6
15416 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15417echo "configure:15418: checking for TIFFError in -ltiff" >&5
15418ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15419if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15421else
15422 ac_save_LIBS="$LIBS"
15423LIBS="-ltiff -lm $LIBS"
15424cat > conftest.$ac_ext <<EOF
15425#line 15426 "configure"
15426#include "confdefs.h"
15427/* Override any gcc2 internal prototype to avoid an error. */
15428/* We use char because int might match the return type of a gcc2
15429 builtin and then its argument prototype would still apply. */
15430char TIFFError();
15431
15432int main() {
15433TIFFError()
15434; return 0; }
15435EOF
15436if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15437 rm -rf conftest*
15438 eval "ac_cv_lib_$ac_lib_var=yes"
15439else
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 rm -rf conftest*
15443 eval "ac_cv_lib_$ac_lib_var=no"
15444fi
15445rm -f conftest*
15446LIBS="$ac_save_LIBS"
15447
15448fi
15449if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
15451 TIFF_LINK="-ltiff"
15452else
15453 echo "$ac_t""no" 1>&6
15454fi
15455
15456else
15457 echo "$ac_t""no" 1>&6
15458fi
15459
15460 if test "x$TIFF_LINK" = "x" ; then
15461 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15462 fi
15463 fi
15464fi
15465
15466FREETYPE_INCLUDE=
15467if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15468 cat >> confdefs.h <<\EOF
15469#define wxUSE_FREETYPE 1
15470EOF
15471
15472 if test "$wxUSE_FREETYPE" = "yes" ; then
15473 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15474 else
15475 FREETYPE_LINK=
15476 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15477echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15478echo "configure:15479: checking for freetype.h" >&5
15479if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15480 echo $ac_n "(cached) $ac_c" 1>&6
15481else
15482 cat > conftest.$ac_ext <<EOF
15483#line 15484 "configure"
15484#include "confdefs.h"
15485#include <freetype.h>
15486EOF
15487ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15488{ (eval echo configure:15489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15489ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15490if test -z "$ac_err"; then
15491 rm -rf conftest*
15492 eval "ac_cv_header_$ac_safe=yes"
15493else
15494 echo "$ac_err" >&5
15495 echo "configure: failed program was:" >&5
15496 cat conftest.$ac_ext >&5
15497 rm -rf conftest*
15498 eval "ac_cv_header_$ac_safe=no"
15499fi
15500rm -f conftest*
15501fi
15502if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15503 echo "$ac_t""yes" 1>&6
15504 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15505echo "configure:15506: checking for FT_Render_Glyph in -lfreetype" >&5
15506ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15507if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15508 echo $ac_n "(cached) $ac_c" 1>&6
15509else
15510 ac_save_LIBS="$LIBS"
15511LIBS="-lfreetype -lm $LIBS"
15512cat > conftest.$ac_ext <<EOF
15513#line 15514 "configure"
15514#include "confdefs.h"
15515/* Override any gcc2 internal prototype to avoid an error. */
15516/* We use char because int might match the return type of a gcc2
15517 builtin and then its argument prototype would still apply. */
15518char FT_Render_Glyph();
15519
15520int main() {
15521FT_Render_Glyph()
15522; return 0; }
15523EOF
15524if { (eval echo configure:15525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15525 rm -rf conftest*
15526 eval "ac_cv_lib_$ac_lib_var=yes"
15527else
15528 echo "configure: failed program was:" >&5
15529 cat conftest.$ac_ext >&5
15530 rm -rf conftest*
15531 eval "ac_cv_lib_$ac_lib_var=no"
15532fi
15533rm -f conftest*
15534LIBS="$ac_save_LIBS"
15535
15536fi
15537if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15538 echo "$ac_t""yes" 1>&6
15539 FREETYPE_LINK="-lfreetype"
15540else
15541 echo "$ac_t""no" 1>&6
15542fi
15543
15544
15545else
15546 echo "$ac_t""no" 1>&6
15547fi
15548
15549 if test "x$FREETYPE_LINK" = "x" ; then
15550 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15551 fi
15552 fi
15553fi
15554
15555if test "$wxUSE_OPENGL" = "yes"; then
15556 if test "$wxUSE_MAC" = 1; then
15557 cat >> confdefs.h <<\EOF
15558#define wxUSE_OPENGL 1
15559EOF
15560
15561 cat >> confdefs.h <<\EOF
15562#define wxUSE_GLCANVAS 1
15563EOF
15564
15565 OPENGL_LINK="-framework OpenGL -framework AGL"
15566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15567 else
15568 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15569echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15570echo "configure:15571: checking for GL/gl.h" >&5
15571if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15572 echo $ac_n "(cached) $ac_c" 1>&6
15573else
15574 cat > conftest.$ac_ext <<EOF
15575#line 15576 "configure"
15576#include "confdefs.h"
15577#include <GL/gl.h>
15578EOF
15579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15580{ (eval echo configure:15581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15581ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15582if test -z "$ac_err"; then
15583 rm -rf conftest*
15584 eval "ac_cv_header_$ac_safe=yes"
15585else
15586 echo "$ac_err" >&5
15587 echo "configure: failed program was:" >&5
15588 cat conftest.$ac_ext >&5
15589 rm -rf conftest*
15590 eval "ac_cv_header_$ac_safe=no"
15591fi
15592rm -f conftest*
15593fi
15594if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15595 echo "$ac_t""yes" 1>&6
15596
15597 cat >> confdefs.h <<\EOF
15598#define wxUSE_OPENGL 1
15599EOF
15600
15601 cat >> confdefs.h <<\EOF
15602#define wxUSE_GLCANVAS 1
15603EOF
15604
15605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15606 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
15607echo "configure:15608: checking for glFlush in -lGL" >&5
15608ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15609if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15610 echo $ac_n "(cached) $ac_c" 1>&6
15611else
15612 ac_save_LIBS="$LIBS"
15613LIBS="-lGL $LIBS"
15614cat > conftest.$ac_ext <<EOF
15615#line 15616 "configure"
15616#include "confdefs.h"
15617/* Override any gcc2 internal prototype to avoid an error. */
15618/* We use char because int might match the return type of a gcc2
15619 builtin and then its argument prototype would still apply. */
15620char glFlush();
15621
15622int main() {
15623glFlush()
15624; return 0; }
15625EOF
15626if { (eval echo configure:15627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15627 rm -rf conftest*
15628 eval "ac_cv_lib_$ac_lib_var=yes"
15629else
15630 echo "configure: failed program was:" >&5
15631 cat conftest.$ac_ext >&5
15632 rm -rf conftest*
15633 eval "ac_cv_lib_$ac_lib_var=no"
15634fi
15635rm -f conftest*
15636LIBS="$ac_save_LIBS"
15637
15638fi
15639if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15640 echo "$ac_t""yes" 1>&6
15641
15642 OPENGL_LINK="-lGL -lGLU"
15643
15644else
15645 echo "$ac_t""no" 1>&6
15646
15647 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
15648echo "configure:15649: checking for glFlush in -lMesaGL" >&5
15649ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15650if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15651 echo $ac_n "(cached) $ac_c" 1>&6
15652else
15653 ac_save_LIBS="$LIBS"
15654LIBS="-lMesaGL $LIBS"
15655cat > conftest.$ac_ext <<EOF
15656#line 15657 "configure"
15657#include "confdefs.h"
15658/* Override any gcc2 internal prototype to avoid an error. */
15659/* We use char because int might match the return type of a gcc2
15660 builtin and then its argument prototype would still apply. */
15661char glFlush();
15662
15663int main() {
15664glFlush()
15665; return 0; }
15666EOF
15667if { (eval echo configure:15668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15668 rm -rf conftest*
15669 eval "ac_cv_lib_$ac_lib_var=yes"
15670else
15671 echo "configure: failed program was:" >&5
15672 cat conftest.$ac_ext >&5
15673 rm -rf conftest*
15674 eval "ac_cv_lib_$ac_lib_var=no"
15675fi
15676rm -f conftest*
15677LIBS="$ac_save_LIBS"
15678
15679fi
15680if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15681 echo "$ac_t""yes" 1>&6
15682
15683 OPENGL_LINK="-lMesaGL -lMesaGLU"
15684
15685else
15686 echo "$ac_t""no" 1>&6
15687fi
15688
15689
15690fi
15691
15692
15693else
15694 echo "$ac_t""no" 1>&6
15695wxUSE_OPENGL=0
15696fi
15697
15698 fi
15699fi
15700
15701
15702if test "$wxUSE_GUI" = "yes"; then
15703 cat >> confdefs.h <<\EOF
15704#define wxUSE_GUI 1
15705EOF
15706
15707
15708 else
15709 cat >> confdefs.h <<\EOF
15710#define wxUSE_NOGUI 1
15711EOF
15712
15713fi
15714
15715
15716if test "$wxUSE_UNIX" = "yes"; then
15717 cat >> confdefs.h <<\EOF
15718#define wxUSE_UNIX 1
15719EOF
15720
15721fi
15722
15723
15724if test "$wxUSE_APPLE_IEEE" = "yes"; then
15725 cat >> confdefs.h <<\EOF
15726#define wxUSE_APPLE_IEEE 1
15727EOF
15728
15729fi
15730
15731if test "$wxUSE_TIMER" = "yes"; then
15732 cat >> confdefs.h <<\EOF
15733#define wxUSE_TIMER 1
15734EOF
15735
15736fi
15737
15738if test "$wxUSE_WAVE" = "yes"; then
15739 cat >> confdefs.h <<\EOF
15740#define wxUSE_WAVE 1
15741EOF
15742
15743fi
15744
15745if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15746 cat >> confdefs.h <<\EOF
15747#define wxUSE_CMDLINE_PARSER 1
15748EOF
15749
15750fi
15751
15752if test "$wxUSE_STOPWATCH" = "yes"; then
15753 cat >> confdefs.h <<\EOF
15754#define wxUSE_STOPWATCH 1
15755EOF
15756
15757fi
15758
15759if test "$wxUSE_DATETIME" = "yes"; then
15760 cat >> confdefs.h <<\EOF
15761#define wxUSE_DATETIME 1
15762EOF
15763
15764fi
15765
15766if test "$wxUSE_TIMEDATE" = "yes"; then
15767 cat >> confdefs.h <<\EOF
15768#define wxUSE_TIMEDATE 1
15769EOF
15770
15771fi
15772
15773if test "$wxUSE_FILE" = "yes"; then
15774 cat >> confdefs.h <<\EOF
15775#define wxUSE_FILE 1
15776EOF
15777
15778fi
15779
15780if test "$wxUSE_FFILE" = "yes"; then
15781 cat >> confdefs.h <<\EOF
15782#define wxUSE_FFILE 1
15783EOF
15784
15785fi
15786
15787if test "$wxUSE_FILESYSTEM" = "yes"; then
15788 cat >> confdefs.h <<\EOF
15789#define wxUSE_FILESYSTEM 1
15790EOF
15791
15792fi
15793
15794if test "$wxUSE_FS_INET" = "yes"; then
15795 cat >> confdefs.h <<\EOF
15796#define wxUSE_FS_INET 1
15797EOF
15798
15799fi
15800
15801if test "$wxUSE_FS_ZIP" = "yes"; then
15802 cat >> confdefs.h <<\EOF
15803#define wxUSE_FS_ZIP 1
15804EOF
15805
15806fi
15807
15808if test "$wxUSE_ZIPSTREAM" = "yes"; then
15809 cat >> confdefs.h <<\EOF
15810#define wxUSE_ZIPSTREAM 1
15811EOF
15812
15813fi
15814
15815if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15816 cat >> confdefs.h <<\EOF
15817#define wxUSE_ON_FATAL_EXCEPTION 1
15818EOF
15819
15820fi
15821
15822if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15823 cat >> confdefs.h <<\EOF
15824#define wxUSE_SNGLINST_CHECKER 1
15825EOF
15826
15827fi
15828
15829if test "$wxUSE_BUSYINFO" = "yes"; then
15830 cat >> confdefs.h <<\EOF
15831#define wxUSE_BUSYINFO 1
15832EOF
15833
15834fi
15835
15836if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15837 cat >> confdefs.h <<\EOF
15838#define wxUSE_STD_IOSTREAM 1
15839EOF
15840
15841fi
15842
15843if test "$wxUSE_TEXTFILE" = "yes"; then
15844 if test "$wxUSE_FILE" != "yes"; then
15845 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15846 else
15847 cat >> confdefs.h <<\EOF
15848#define wxUSE_TEXTFILE 1
15849EOF
15850
15851 fi
15852fi
15853
15854if test "$wxUSE_CONFIG" = "yes" ; then
15855 if test "$wxUSE_TEXTFILE" != "yes"; then
15856 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15857 else
15858 cat >> confdefs.h <<\EOF
15859#define wxUSE_CONFIG 1
15860EOF
15861
15862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15863 fi
15864fi
15865
15866if test "$wxUSE_INTL" = "yes" ; then
15867 if test "$wxUSE_FILE" != "yes"; then
15868 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15869 else
15870 cat >> confdefs.h <<\EOF
15871#define wxUSE_INTL 1
15872EOF
15873
15874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15875 GUIDIST="$GUIDIST INTL_DIST"
15876 fi
15877fi
15878
15879if test "$wxUSE_LOG" = "yes"; then
15880 cat >> confdefs.h <<\EOF
15881#define wxUSE_LOG 1
15882EOF
15883
15884
15885 if test "$wxUSE_LOGGUI" = "yes"; then
15886 cat >> confdefs.h <<\EOF
15887#define wxUSE_LOGGUI 1
15888EOF
15889
15890 fi
15891
15892 if test "$wxUSE_LOGWINDOW" = "yes"; then
15893 cat >> confdefs.h <<\EOF
15894#define wxUSE_LOGWINDOW 1
15895EOF
15896
15897 fi
15898fi
15899
15900if test "$wxUSE_LONGLONG" = "yes"; then
15901 cat >> confdefs.h <<\EOF
15902#define wxUSE_LONGLONG 1
15903EOF
15904
15905fi
15906
15907if test "$wxUSE_GEOMETRY" = "yes"; then
15908 cat >> confdefs.h <<\EOF
15909#define wxUSE_GEOMETRY 1
15910EOF
15911
15912fi
15913
15914if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15915 cat >> confdefs.h <<\EOF
15916#define wxUSE_DIALUP_MANAGER 1
15917EOF
15918
15919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15920fi
15921
15922if test "$wxUSE_STREAMS" = "yes" ; then
15923 cat >> confdefs.h <<\EOF
15924#define wxUSE_STREAMS 1
15925EOF
15926
15927fi
15928
15929
15930if test "$wxUSE_DATETIME" = "yes"; then
15931 for ac_func in strptime
15932do
15933echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15934echo "configure:15935: checking for $ac_func" >&5
15935if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15936 echo $ac_n "(cached) $ac_c" 1>&6
15937else
15938 cat > conftest.$ac_ext <<EOF
15939#line 15940 "configure"
15940#include "confdefs.h"
15941/* System header to define __stub macros and hopefully few prototypes,
15942 which can conflict with char $ac_func(); below. */
15943#include <assert.h>
15944/* Override any gcc2 internal prototype to avoid an error. */
15945/* We use char because int might match the return type of a gcc2
15946 builtin and then its argument prototype would still apply. */
15947char $ac_func();
15948
15949int main() {
15950
15951/* The GNU C library defines this for functions which it implements
15952 to always fail with ENOSYS. Some functions are actually named
15953 something starting with __ and the normal name is an alias. */
15954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15955choke me
15956#else
15957$ac_func();
15958#endif
15959
15960; return 0; }
15961EOF
15962if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15963 rm -rf conftest*
15964 eval "ac_cv_func_$ac_func=yes"
15965else
15966 echo "configure: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15968 rm -rf conftest*
15969 eval "ac_cv_func_$ac_func=no"
15970fi
15971rm -f conftest*
15972fi
15973
15974if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15975 echo "$ac_t""yes" 1>&6
15976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15977 cat >> confdefs.h <<EOF
15978#define $ac_tr_func 1
15979EOF
15980
15981else
15982 echo "$ac_t""no" 1>&6
15983fi
15984done
15985
15986
15987 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15988echo "configure:15989: checking for timezone variable in <time.h>" >&5
15989if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15990 echo $ac_n "(cached) $ac_c" 1>&6
15991else
15992
15993 cat > conftest.$ac_ext <<EOF
15994#line 15995 "configure"
15995#include "confdefs.h"
15996
15997 #include <time.h>
15998
15999int main() {
16000
16001 int tz;
16002 tz = timezone;
16003
16004; return 0; }
16005EOF
16006if { (eval echo configure:16007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16007 rm -rf conftest*
16008
16009 wx_cv_var_timezone=timezone
16010
16011else
16012 echo "configure: failed program was:" >&5
16013 cat conftest.$ac_ext >&5
16014 rm -rf conftest*
16015
16016 cat > conftest.$ac_ext <<EOF
16017#line 16018 "configure"
16018#include "confdefs.h"
16019
16020 #include <time.h>
16021
16022int main() {
16023
16024 int tz;
16025 tz = _timezone;
16026
16027; return 0; }
16028EOF
16029if { (eval echo configure:16030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16030 rm -rf conftest*
16031
16032 wx_cv_var_timezone=_timezone
16033
16034else
16035 echo "configure: failed program was:" >&5
16036 cat conftest.$ac_ext >&5
16037 rm -rf conftest*
16038
16039 cat > conftest.$ac_ext <<EOF
16040#line 16041 "configure"
16041#include "confdefs.h"
16042
16043 #include <time.h>
16044
16045int main() {
16046
16047 int tz;
16048 tz = __timezone;
16049
16050; return 0; }
16051EOF
16052if { (eval echo configure:16053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16053 rm -rf conftest*
16054
16055 wx_cv_var_timezone=__timezone
16056
16057else
16058 echo "configure: failed program was:" >&5
16059 cat conftest.$ac_ext >&5
16060 rm -rf conftest*
16061 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16062
16063fi
16064rm -f conftest*
16065
16066
16067fi
16068rm -f conftest*
16069
16070
16071fi
16072rm -f conftest*
16073
16074
16075fi
16076
16077echo "$ac_t""$wx_cv_var_timezone" 1>&6
16078
16079 cat >> confdefs.h <<EOF
16080#define WX_TIMEZONE $wx_cv_var_timezone
16081EOF
16082
16083
16084 for ac_func in localtime
16085do
16086echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16087echo "configure:16088: checking for $ac_func" >&5
16088if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16089 echo $ac_n "(cached) $ac_c" 1>&6
16090else
16091 cat > conftest.$ac_ext <<EOF
16092#line 16093 "configure"
16093#include "confdefs.h"
16094/* System header to define __stub macros and hopefully few prototypes,
16095 which can conflict with char $ac_func(); below. */
16096#include <assert.h>
16097/* Override any gcc2 internal prototype to avoid an error. */
16098/* We use char because int might match the return type of a gcc2
16099 builtin and then its argument prototype would still apply. */
16100char $ac_func();
16101
16102int main() {
16103
16104/* The GNU C library defines this for functions which it implements
16105 to always fail with ENOSYS. Some functions are actually named
16106 something starting with __ and the normal name is an alias. */
16107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16108choke me
16109#else
16110$ac_func();
16111#endif
16112
16113; return 0; }
16114EOF
16115if { (eval echo configure:16116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16116 rm -rf conftest*
16117 eval "ac_cv_func_$ac_func=yes"
16118else
16119 echo "configure: failed program was:" >&5
16120 cat conftest.$ac_ext >&5
16121 rm -rf conftest*
16122 eval "ac_cv_func_$ac_func=no"
16123fi
16124rm -f conftest*
16125fi
16126
16127if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16128 echo "$ac_t""yes" 1>&6
16129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16130 cat >> confdefs.h <<EOF
16131#define $ac_tr_func 1
16132EOF
16133
16134else
16135 echo "$ac_t""no" 1>&6
16136fi
16137done
16138
16139
16140 if test "$ac_cv_func_localtime" = "yes"; then
16141 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16142echo "configure:16143: checking for tm_gmtoff in struct tm" >&5
16143if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16144 echo $ac_n "(cached) $ac_c" 1>&6
16145else
16146
16147 cat > conftest.$ac_ext <<EOF
16148#line 16149 "configure"
16149#include "confdefs.h"
16150
16151 #include <time.h>
16152
16153int main() {
16154
16155 struct tm tm;
16156 tm.tm_gmtoff++;
16157
16158; return 0; }
16159EOF
16160if { (eval echo configure:16161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16161 rm -rf conftest*
16162
16163 wx_cv_struct_tm_has_gmtoff=yes
16164
16165else
16166 echo "configure: failed program was:" >&5
16167 cat conftest.$ac_ext >&5
16168 rm -rf conftest*
16169 wx_cv_struct_tm_has_gmtoff=no
16170
16171fi
16172rm -f conftest*
16173
16174fi
16175
16176echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16177 fi
16178
16179 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16180 cat >> confdefs.h <<\EOF
16181#define WX_GMTOFF_IN_TM 1
16182EOF
16183
16184 fi
16185
16186 for ac_func in gettimeofday ftime
16187do
16188echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16189echo "configure:16190: checking for $ac_func" >&5
16190if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16191 echo $ac_n "(cached) $ac_c" 1>&6
16192else
16193 cat > conftest.$ac_ext <<EOF
16194#line 16195 "configure"
16195#include "confdefs.h"
16196/* System header to define __stub macros and hopefully few prototypes,
16197 which can conflict with char $ac_func(); below. */
16198#include <assert.h>
16199/* Override any gcc2 internal prototype to avoid an error. */
16200/* We use char because int might match the return type of a gcc2
16201 builtin and then its argument prototype would still apply. */
16202char $ac_func();
16203
16204int main() {
16205
16206/* The GNU C library defines this for functions which it implements
16207 to always fail with ENOSYS. Some functions are actually named
16208 something starting with __ and the normal name is an alias. */
16209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16210choke me
16211#else
16212$ac_func();
16213#endif
16214
16215; return 0; }
16216EOF
16217if { (eval echo configure:16218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16218 rm -rf conftest*
16219 eval "ac_cv_func_$ac_func=yes"
16220else
16221 echo "configure: failed program was:" >&5
16222 cat conftest.$ac_ext >&5
16223 rm -rf conftest*
16224 eval "ac_cv_func_$ac_func=no"
16225fi
16226rm -f conftest*
16227fi
16228
16229if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16230 echo "$ac_t""yes" 1>&6
16231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16232 cat >> confdefs.h <<EOF
16233#define $ac_tr_func 1
16234EOF
16235 break
16236else
16237 echo "$ac_t""no" 1>&6
16238fi
16239done
16240
16241
16242 if test "$ac_cv_func_gettimeofday" = "yes"; then
16243 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16244echo "configure:16245: checking whether gettimeofday takes two arguments" >&5
16245if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16246 echo $ac_n "(cached) $ac_c" 1>&6
16247else
16248
16249
16250 ac_ext=C
16251# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16252ac_cpp='$CXXCPP $CPPFLAGS'
16253ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16254ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16255cross_compiling=$ac_cv_prog_cxx_cross
16256
16257
16258 cat > conftest.$ac_ext <<EOF
16259#line 16260 "configure"
16260#include "confdefs.h"
16261
16262 #include <sys/time.h>
16263 #include <unistd.h>
16264
16265int main() {
16266
16267 struct timeval tv;
16268 struct timezone tz;
16269 gettimeofday(&tv, &tz);
16270
16271; return 0; }
16272EOF
16273if { (eval echo configure:16274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16274 rm -rf conftest*
16275 wx_cv_func_gettimeofday_has_2_args=yes
16276else
16277 echo "configure: failed program was:" >&5
16278 cat conftest.$ac_ext >&5
16279 rm -rf conftest*
16280 cat > conftest.$ac_ext <<EOF
16281#line 16282 "configure"
16282#include "confdefs.h"
16283
16284 #include <sys/time.h>
16285 #include <unistd.h>
16286
16287int main() {
16288
16289 struct timeval tv;
16290 gettimeofday(&tv);
16291
16292; return 0; }
16293EOF
16294if { (eval echo configure:16295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16295 rm -rf conftest*
16296 wx_cv_func_gettimeofday_has_2_args=no
16297else
16298 echo "configure: failed program was:" >&5
16299 cat conftest.$ac_ext >&5
16300 rm -rf conftest*
16301 wx_cv_func_gettimeofday_has_2_args=unknown
16302
16303fi
16304rm -f conftest*
16305
16306fi
16307rm -f conftest*
16308 ac_ext=c
16309# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16310ac_cpp='$CPP $CPPFLAGS'
16311ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16312ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16313cross_compiling=$ac_cv_prog_cc_cross
16314
16315
16316fi
16317
16318echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16319
16320 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16321 cat >> confdefs.h <<\EOF
16322#define WX_GETTIMEOFDAY_NO_TZ 1
16323EOF
16324
16325 fi
16326 fi
16327
16328 cat >> confdefs.h <<\EOF
16329#define wxUSE_TIMEDATE 1
16330EOF
16331
16332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16333fi
16334
16335
16336if test "$TOOLKIT" != "MSW"; then
16337
16338if test "$wxUSE_SOCKETS" = "yes"; then
16339 echo $ac_n "checking for socket""... $ac_c" 1>&6
16340echo "configure:16341: checking for socket" >&5
16341if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16342 echo $ac_n "(cached) $ac_c" 1>&6
16343else
16344 cat > conftest.$ac_ext <<EOF
16345#line 16346 "configure"
16346#include "confdefs.h"
16347/* System header to define __stub macros and hopefully few prototypes,
16348 which can conflict with char socket(); below. */
16349#include <assert.h>
16350/* Override any gcc2 internal prototype to avoid an error. */
16351/* We use char because int might match the return type of a gcc2
16352 builtin and then its argument prototype would still apply. */
16353char socket();
16354
16355int main() {
16356
16357/* The GNU C library defines this for functions which it implements
16358 to always fail with ENOSYS. Some functions are actually named
16359 something starting with __ and the normal name is an alias. */
16360#if defined (__stub_socket) || defined (__stub___socket)
16361choke me
16362#else
16363socket();
16364#endif
16365
16366; return 0; }
16367EOF
16368if { (eval echo configure:16369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16369 rm -rf conftest*
16370 eval "ac_cv_func_socket=yes"
16371else
16372 echo "configure: failed program was:" >&5
16373 cat conftest.$ac_ext >&5
16374 rm -rf conftest*
16375 eval "ac_cv_func_socket=no"
16376fi
16377rm -f conftest*
16378fi
16379
16380if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16381 echo "$ac_t""yes" 1>&6
16382 :
16383else
16384 echo "$ac_t""no" 1>&6
16385echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16386echo "configure:16387: checking for socket in -lsocket" >&5
16387ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16388if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16389 echo $ac_n "(cached) $ac_c" 1>&6
16390else
16391 ac_save_LIBS="$LIBS"
16392LIBS="-lsocket $LIBS"
16393cat > conftest.$ac_ext <<EOF
16394#line 16395 "configure"
16395#include "confdefs.h"
16396/* Override any gcc2 internal prototype to avoid an error. */
16397/* We use char because int might match the return type of a gcc2
16398 builtin and then its argument prototype would still apply. */
16399char socket();
16400
16401int main() {
16402socket()
16403; return 0; }
16404EOF
16405if { (eval echo configure:16406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16406 rm -rf conftest*
16407 eval "ac_cv_lib_$ac_lib_var=yes"
16408else
16409 echo "configure: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16411 rm -rf conftest*
16412 eval "ac_cv_lib_$ac_lib_var=no"
16413fi
16414rm -f conftest*
16415LIBS="$ac_save_LIBS"
16416
16417fi
16418if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16419 echo "$ac_t""yes" 1>&6
16420 INET_LINK="$INET_LINK -lsocket"
16421else
16422 echo "$ac_t""no" 1>&6
16423
16424 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16425 wxUSE_SOCKETS=no
16426
16427
16428fi
16429
16430
16431fi
16432
16433fi
16434
16435
16436if test "$wxUSE_SOCKETS" = "yes" ; then
16437 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16438echo "configure:16439: checking what is the type of the third argument of getsockname" >&5
16439if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16440 echo $ac_n "(cached) $ac_c" 1>&6
16441else
16442
16443
16444 ac_ext=C
16445# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16446ac_cpp='$CXXCPP $CPPFLAGS'
16447ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16448ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16449cross_compiling=$ac_cv_prog_cxx_cross
16450
16451
16452 cat > conftest.$ac_ext <<EOF
16453#line 16454 "configure"
16454#include "confdefs.h"
16455
16456 #include <sys/types.h>
16457 #include <sys/socket.h>
16458
16459int main() {
16460
16461 socklen_t len;
16462 getsockname(0, 0, &len);
16463
16464; return 0; }
16465EOF
16466if { (eval echo configure:16467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16467 rm -rf conftest*
16468 wx_cv_type_getsockname3=socklen_t
16469else
16470 echo "configure: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16472 rm -rf conftest*
16473 cat > conftest.$ac_ext <<EOF
16474#line 16475 "configure"
16475#include "confdefs.h"
16476
16477 #include <sys/types.h>
16478 #include <sys/socket.h>
16479
16480int main() {
16481
16482 size_t len;
16483 getsockname(0, 0, &len);
16484
16485; return 0; }
16486EOF
16487if { (eval echo configure:16488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16488 rm -rf conftest*
16489 wx_cv_type_getsockname3=size_t
16490else
16491 echo "configure: failed program was:" >&5
16492 cat conftest.$ac_ext >&5
16493 rm -rf conftest*
16494 cat > conftest.$ac_ext <<EOF
16495#line 16496 "configure"
16496#include "confdefs.h"
16497
16498 #include <sys/types.h>
16499 #include <sys/socket.h>
16500
16501int main() {
16502
16503 int len;
16504 getsockname(0, 0, &len);
16505
16506; return 0; }
16507EOF
16508if { (eval echo configure:16509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16509 rm -rf conftest*
16510 wx_cv_type_getsockname3=int
16511else
16512 echo "configure: failed program was:" >&5
16513 cat conftest.$ac_ext >&5
16514 rm -rf conftest*
16515 wx_cv_type_getsockname3=unknown
16516
16517fi
16518rm -f conftest*
16519
16520fi
16521rm -f conftest*
16522
16523fi
16524rm -f conftest*
16525
16526 ac_ext=c
16527# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16528ac_cpp='$CPP $CPPFLAGS'
16529ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16530ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16531cross_compiling=$ac_cv_prog_cc_cross
16532
16533
16534fi
16535
16536echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16537
16538 if test "$wx_cv_type_getsockname3" = "unknown"; then
16539 wxUSE_SOCKETS=no
16540 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16541 else
16542 cat >> confdefs.h <<EOF
16543#define SOCKLEN_T $wx_cv_type_getsockname3
16544EOF
16545
16546 fi
16547fi
16548
16549fi
16550
16551if test "$wxUSE_SOCKETS" = "yes" ; then
16552 cat >> confdefs.h <<\EOF
16553#define wxUSE_SOCKETS 1
16554EOF
16555
16556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16557 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16558fi
16559
16560
16561if test "$wxUSE_GUI" = "yes"; then
16562
16563if test "$TOOLKIT" != "MSW"; then
16564
16565if test "$wxUSE_JOYSTICK" = "yes"; then
16566 for ac_hdr in linux/joystick.h
16567do
16568ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16569echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16570echo "configure:16571: checking for $ac_hdr" >&5
16571if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16572 echo $ac_n "(cached) $ac_c" 1>&6
16573else
16574 cat > conftest.$ac_ext <<EOF
16575#line 16576 "configure"
16576#include "confdefs.h"
16577#include <$ac_hdr>
16578EOF
16579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16580{ (eval echo configure:16581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16581ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16582if test -z "$ac_err"; then
16583 rm -rf conftest*
16584 eval "ac_cv_header_$ac_safe=yes"
16585else
16586 echo "$ac_err" >&5
16587 echo "configure: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16589 rm -rf conftest*
16590 eval "ac_cv_header_$ac_safe=no"
16591fi
16592rm -f conftest*
16593fi
16594if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16595 echo "$ac_t""yes" 1>&6
16596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16597 cat >> confdefs.h <<EOF
16598#define $ac_tr_hdr 1
16599EOF
16600
16601else
16602 echo "$ac_t""no" 1>&6
16603fi
16604done
16605
16606 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16607 wxUSE_JOYSTICK=no
16608 echo "configure: warning: Joystick not supported by this system" 1>&2
16609 fi
16610fi
16611
16612fi
16613
16614if test "$wxUSE_JOYSTICK" = "yes"; then
16615 cat >> confdefs.h <<\EOF
16616#define wxUSE_JOYSTICK 1
16617EOF
16618
16619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16620fi
16621
16622fi
16623
16624
16625if test "$TOOLKIT" != "MSW"; then
16626
16627HAVE_DL_FUNCS=0
16628HAVE_SHL_FUNCS=0
16629if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16630 if test "$USE_DARWIN" = 1; then
16631 HAVE_DL_FUNCS=1
16632 else
16633 for ac_func in dlopen
16634do
16635echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16636echo "configure:16637: checking for $ac_func" >&5
16637if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16638 echo $ac_n "(cached) $ac_c" 1>&6
16639else
16640 cat > conftest.$ac_ext <<EOF
16641#line 16642 "configure"
16642#include "confdefs.h"
16643/* System header to define __stub macros and hopefully few prototypes,
16644 which can conflict with char $ac_func(); below. */
16645#include <assert.h>
16646/* Override any gcc2 internal prototype to avoid an error. */
16647/* We use char because int might match the return type of a gcc2
16648 builtin and then its argument prototype would still apply. */
16649char $ac_func();
16650
16651int main() {
16652
16653/* The GNU C library defines this for functions which it implements
16654 to always fail with ENOSYS. Some functions are actually named
16655 something starting with __ and the normal name is an alias. */
16656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16657choke me
16658#else
16659$ac_func();
16660#endif
16661
16662; return 0; }
16663EOF
16664if { (eval echo configure:16665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16665 rm -rf conftest*
16666 eval "ac_cv_func_$ac_func=yes"
16667else
16668 echo "configure: failed program was:" >&5
16669 cat conftest.$ac_ext >&5
16670 rm -rf conftest*
16671 eval "ac_cv_func_$ac_func=no"
16672fi
16673rm -f conftest*
16674fi
16675
16676if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16677 echo "$ac_t""yes" 1>&6
16678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16679 cat >> confdefs.h <<EOF
16680#define $ac_tr_func 1
16681EOF
16682
16683 cat >> confdefs.h <<\EOF
16684#define HAVE_DLOPEN 1
16685EOF
16686
16687 HAVE_DL_FUNCS=1
16688
16689else
16690 echo "$ac_t""no" 1>&6
16691echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16692echo "configure:16693: checking for dlopen in -ldl" >&5
16693ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16694if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16695 echo $ac_n "(cached) $ac_c" 1>&6
16696else
16697 ac_save_LIBS="$LIBS"
16698LIBS="-ldl $LIBS"
16699cat > conftest.$ac_ext <<EOF
16700#line 16701 "configure"
16701#include "confdefs.h"
16702/* Override any gcc2 internal prototype to avoid an error. */
16703/* We use char because int might match the return type of a gcc2
16704 builtin and then its argument prototype would still apply. */
16705char dlopen();
16706
16707int main() {
16708dlopen()
16709; return 0; }
16710EOF
16711if { (eval echo configure:16712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16712 rm -rf conftest*
16713 eval "ac_cv_lib_$ac_lib_var=yes"
16714else
16715 echo "configure: failed program was:" >&5
16716 cat conftest.$ac_ext >&5
16717 rm -rf conftest*
16718 eval "ac_cv_lib_$ac_lib_var=no"
16719fi
16720rm -f conftest*
16721LIBS="$ac_save_LIBS"
16722
16723fi
16724if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16725 echo "$ac_t""yes" 1>&6
16726
16727 cat >> confdefs.h <<\EOF
16728#define HAVE_DLOPEN 1
16729EOF
16730
16731 HAVE_DL_FUNCS=1
16732 LIBS="$LIBS -ldl"
16733
16734else
16735 echo "$ac_t""no" 1>&6
16736
16737 for ac_func in shl_load
16738do
16739echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16740echo "configure:16741: checking for $ac_func" >&5
16741if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16742 echo $ac_n "(cached) $ac_c" 1>&6
16743else
16744 cat > conftest.$ac_ext <<EOF
16745#line 16746 "configure"
16746#include "confdefs.h"
16747/* System header to define __stub macros and hopefully few prototypes,
16748 which can conflict with char $ac_func(); below. */
16749#include <assert.h>
16750/* Override any gcc2 internal prototype to avoid an error. */
16751/* We use char because int might match the return type of a gcc2
16752 builtin and then its argument prototype would still apply. */
16753char $ac_func();
16754
16755int main() {
16756
16757/* The GNU C library defines this for functions which it implements
16758 to always fail with ENOSYS. Some functions are actually named
16759 something starting with __ and the normal name is an alias. */
16760#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16761choke me
16762#else
16763$ac_func();
16764#endif
16765
16766; return 0; }
16767EOF
16768if { (eval echo configure:16769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16769 rm -rf conftest*
16770 eval "ac_cv_func_$ac_func=yes"
16771else
16772 echo "configure: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16774 rm -rf conftest*
16775 eval "ac_cv_func_$ac_func=no"
16776fi
16777rm -f conftest*
16778fi
16779
16780if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16781 echo "$ac_t""yes" 1>&6
16782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16783 cat >> confdefs.h <<EOF
16784#define $ac_tr_func 1
16785EOF
16786
16787 cat >> confdefs.h <<\EOF
16788#define HAVE_SHL_LOAD 1
16789EOF
16790
16791 HAVE_SHL_FUNCS=1
16792
16793else
16794 echo "$ac_t""no" 1>&6
16795echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16796echo "configure:16797: checking for dld in -lshl_load" >&5
16797ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16798if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16799 echo $ac_n "(cached) $ac_c" 1>&6
16800else
16801 ac_save_LIBS="$LIBS"
16802LIBS="-lshl_load $LIBS"
16803cat > conftest.$ac_ext <<EOF
16804#line 16805 "configure"
16805#include "confdefs.h"
16806/* Override any gcc2 internal prototype to avoid an error. */
16807/* We use char because int might match the return type of a gcc2
16808 builtin and then its argument prototype would still apply. */
16809char dld();
16810
16811int main() {
16812dld()
16813; return 0; }
16814EOF
16815if { (eval echo configure:16816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16816 rm -rf conftest*
16817 eval "ac_cv_lib_$ac_lib_var=yes"
16818else
16819 echo "configure: failed program was:" >&5
16820 cat conftest.$ac_ext >&5
16821 rm -rf conftest*
16822 eval "ac_cv_lib_$ac_lib_var=no"
16823fi
16824rm -f conftest*
16825LIBS="$ac_save_LIBS"
16826
16827fi
16828if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16829 echo "$ac_t""yes" 1>&6
16830
16831 HAVE_SHL_FUNCS=1
16832 LIBS="$LIBS -ldld"
16833
16834else
16835 echo "$ac_t""no" 1>&6
16836fi
16837
16838
16839fi
16840done
16841
16842
16843fi
16844
16845
16846fi
16847done
16848
16849
16850 if test "$HAVE_DL_FUNCS" = 1; then
16851 for ac_func in dlerror
16852do
16853echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16854echo "configure:16855: checking for $ac_func" >&5
16855if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16856 echo $ac_n "(cached) $ac_c" 1>&6
16857else
16858 cat > conftest.$ac_ext <<EOF
16859#line 16860 "configure"
16860#include "confdefs.h"
16861/* System header to define __stub macros and hopefully few prototypes,
16862 which can conflict with char $ac_func(); below. */
16863#include <assert.h>
16864/* Override any gcc2 internal prototype to avoid an error. */
16865/* We use char because int might match the return type of a gcc2
16866 builtin and then its argument prototype would still apply. */
16867char $ac_func();
16868
16869int main() {
16870
16871/* The GNU C library defines this for functions which it implements
16872 to always fail with ENOSYS. Some functions are actually named
16873 something starting with __ and the normal name is an alias. */
16874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16875choke me
16876#else
16877$ac_func();
16878#endif
16879
16880; return 0; }
16881EOF
16882if { (eval echo configure:16883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16883 rm -rf conftest*
16884 eval "ac_cv_func_$ac_func=yes"
16885else
16886 echo "configure: failed program was:" >&5
16887 cat conftest.$ac_ext >&5
16888 rm -rf conftest*
16889 eval "ac_cv_func_$ac_func=no"
16890fi
16891rm -f conftest*
16892fi
16893
16894if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16895 echo "$ac_t""yes" 1>&6
16896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16897 cat >> confdefs.h <<EOF
16898#define $ac_tr_func 1
16899EOF
16900 cat >> confdefs.h <<\EOF
16901#define HAVE_DLERROR 1
16902EOF
16903
16904else
16905 echo "$ac_t""no" 1>&6
16906echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16907echo "configure:16908: checking for dlerror in -ldl" >&5
16908ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16909if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16910 echo $ac_n "(cached) $ac_c" 1>&6
16911else
16912 ac_save_LIBS="$LIBS"
16913LIBS="-ldl $LIBS"
16914cat > conftest.$ac_ext <<EOF
16915#line 16916 "configure"
16916#include "confdefs.h"
16917/* Override any gcc2 internal prototype to avoid an error. */
16918/* We use char because int might match the return type of a gcc2
16919 builtin and then its argument prototype would still apply. */
16920char dlerror();
16921
16922int main() {
16923dlerror()
16924; return 0; }
16925EOF
16926if { (eval echo configure:16927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16927 rm -rf conftest*
16928 eval "ac_cv_lib_$ac_lib_var=yes"
16929else
16930 echo "configure: failed program was:" >&5
16931 cat conftest.$ac_ext >&5
16932 rm -rf conftest*
16933 eval "ac_cv_lib_$ac_lib_var=no"
16934fi
16935rm -f conftest*
16936LIBS="$ac_save_LIBS"
16937
16938fi
16939if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16940 echo "$ac_t""yes" 1>&6
16941 cat >> confdefs.h <<\EOF
16942#define HAVE_DLERROR 1
16943EOF
16944
16945else
16946 echo "$ac_t""no" 1>&6
16947fi
16948
16949fi
16950done
16951
16952 fi
16953 fi
16954
16955 if test "$HAVE_DL_FUNCS" = 0; then
16956 if test "$HAVE_SHL_FUNCS" = 0; then
16957 if test "$USE_UNIX" = 1; then
16958 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16959 wxUSE_DYNLIB_CLASS=no
16960 else
16961 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16962 fi
16963 fi
16964 fi
16965fi
16966
16967fi
16968
16969if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16970 cat >> confdefs.h <<\EOF
16971#define wxUSE_DYNLIB_CLASS 1
16972EOF
16973
16974else
16975 wxUSE_ODBC=no
16976 wxUSE_SERIAL=no
16977fi
16978
16979
16980if test "$wxUSE_FONTMAP" = "yes" ; then
16981 cat >> confdefs.h <<\EOF
16982#define wxUSE_FONTMAP 1
16983EOF
16984
16985fi
16986
16987if test "$wxUSE_UNICODE" = "yes" ; then
16988 cat >> confdefs.h <<\EOF
16989#define wxUSE_UNICODE 1
16990EOF
16991
16992fi
16993
16994if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16995 cat >> confdefs.h <<\EOF
16996#define wxUSE_WCSRTOMBS 1
16997EOF
16998
16999fi
17000
17001if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17002 cat >> confdefs.h <<\EOF
17003#define wxUSE_EXPERIMENTAL_PRINTF 1
17004EOF
17005
17006fi
17007
17008
17009if test "$wxUSE_SERIAL" = "yes" ; then
17010 cat >> confdefs.h <<\EOF
17011#define wxUSE_SERIAL 1
17012EOF
17013
17014fi
17015
17016
17017IODBC_C_SRC=""
17018if test "$wxUSE_ODBC" = "yes" ; then
17019 cat >> confdefs.h <<\EOF
17020#define wxUSE_ODBC 1
17021EOF
17022
17023 WXODBCFLAG="-D_IODBC_"
17024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17025fi
17026
17027
17028if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17029 cat >> confdefs.h <<\EOF
17030#define wxUSE_POSTSCRIPT 1
17031EOF
17032
17033fi
17034
17035cat >> confdefs.h <<\EOF
17036#define wxUSE_AFM_FOR_POSTSCRIPT 1
17037EOF
17038
17039
17040cat >> confdefs.h <<\EOF
17041#define wxUSE_NORMALIZED_PS_FONTS 1
17042EOF
17043
17044
17045
17046if test "$wxUSE_CONSTRAINTS" = "yes"; then
17047 cat >> confdefs.h <<\EOF
17048#define wxUSE_CONSTRAINTS 1
17049EOF
17050
17051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17052fi
17053
17054if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17055 cat >> confdefs.h <<\EOF
17056#define wxUSE_MDI_ARCHITECTURE 1
17057EOF
17058
17059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17060fi
17061
17062if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17063 cat >> confdefs.h <<\EOF
17064#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17065EOF
17066
17067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17068 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17070 fi
17071fi
17072
17073if test "$wxUSE_HELP" = "yes"; then
17074 cat >> confdefs.h <<\EOF
17075#define wxUSE_HELP 1
17076EOF
17077
17078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17079
17080 if test "$USE_WIN32" = 1; then
17081 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17082 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17083echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17084echo "configure:17085: checking for htmlhelp.h" >&5
17085if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17086 echo $ac_n "(cached) $ac_c" 1>&6
17087else
17088 cat > conftest.$ac_ext <<EOF
17089#line 17090 "configure"
17090#include "confdefs.h"
17091#include <htmlhelp.h>
17092EOF
17093ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17094{ (eval echo configure:17095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17095ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17096if test -z "$ac_err"; then
17097 rm -rf conftest*
17098 eval "ac_cv_header_$ac_safe=yes"
17099else
17100 echo "$ac_err" >&5
17101 echo "configure: failed program was:" >&5
17102 cat conftest.$ac_ext >&5
17103 rm -rf conftest*
17104 eval "ac_cv_header_$ac_safe=no"
17105fi
17106rm -f conftest*
17107fi
17108if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17109 echo "$ac_t""yes" 1>&6
17110
17111 cat >> confdefs.h <<\EOF
17112#define wxUSE_MS_HTML_HELP 1
17113EOF
17114
17115
17116else
17117 echo "$ac_t""no" 1>&6
17118
17119 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
17120 wxUSE_MS_HTML_HELP=no
17121
17122fi
17123
17124 fi
17125 fi
17126
17127 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17128 if test "$wxUSE_HTML" = "yes"; then
17129 cat >> confdefs.h <<\EOF
17130#define wxUSE_WXHTML_HELP 1
17131EOF
17132
17133 else
17134 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17135 wxUSE_WXHTML_HELP=no
17136 fi
17137 fi
17138fi
17139
17140if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17141 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17142 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17143 else
17144 cat >> confdefs.h <<\EOF
17145#define wxUSE_PRINTING_ARCHITECTURE 1
17146EOF
17147
17148 fi
17149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17150fi
17151
17152if test "$wxUSE_PROLOGIO" = "yes" ; then
17153 cat >> confdefs.h <<\EOF
17154#define wxUSE_PROLOGIO 1
17155EOF
17156
17157fi
17158
17159if test "$wxUSE_RESOURCES" = "yes" ; then
17160 cat >> confdefs.h <<\EOF
17161#define wxUSE_RESOURCES 1
17162EOF
17163
17164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17165fi
17166
17167if test "$wxUSE_X_RESOURCES" = "yes"; then
17168 cat >> confdefs.h <<\EOF
17169#define wxUSE_X_RESOURCES 1
17170EOF
17171
17172fi
17173
17174
17175if test "$wxUSE_IPC" = "yes"; then
17176 if test "$wxUSE_SOCKETS" != "yes"; then
17177 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17178 fi
17179
17180 cat >> confdefs.h <<\EOF
17181#define wxUSE_IPC 1
17182EOF
17183
17184fi
17185
17186if test "$wxUSE_CLIPBOARD" = "yes"; then
17187 cat >> confdefs.h <<\EOF
17188#define wxUSE_CLIPBOARD 1
17189EOF
17190
17191 cat >> confdefs.h <<\EOF
17192#define wxUSE_DATAOBJ 1
17193EOF
17194
17195fi
17196
17197if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17198 if test "$wxUSE_GTK" = 1; then
17199 if test "$WXGTK12" != 1; then
17200 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17201 wxUSE_DRAG_AND_DROP=no
17202 fi
17203 fi
17204
17205 if test "$wxUSE_MOTIF" = 1; then
17206 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17207 wxUSE_DRAG_AND_DROP=no
17208 fi
17209
17210 if test "$wxUSE_MAC" = 1; then
17211 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17212 wxUSE_DRAG_AND_DROP=no
17213 fi
17214
17215 if test "$USE_WIN32" = 1; then
17216
17217 for ac_hdr in ole2.h
17218do
17219ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17220echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17221echo "configure:17222: checking for $ac_hdr" >&5
17222if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17223 echo $ac_n "(cached) $ac_c" 1>&6
17224else
17225 cat > conftest.$ac_ext <<EOF
17226#line 17227 "configure"
17227#include "confdefs.h"
17228#include <$ac_hdr>
17229EOF
17230ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17231{ (eval echo configure:17232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17232ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17233if test -z "$ac_err"; then
17234 rm -rf conftest*
17235 eval "ac_cv_header_$ac_safe=yes"
17236else
17237 echo "$ac_err" >&5
17238 echo "configure: failed program was:" >&5
17239 cat conftest.$ac_ext >&5
17240 rm -rf conftest*
17241 eval "ac_cv_header_$ac_safe=no"
17242fi
17243rm -f conftest*
17244fi
17245if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17246 echo "$ac_t""yes" 1>&6
17247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17248 cat >> confdefs.h <<EOF
17249#define $ac_tr_hdr 1
17250EOF
17251
17252else
17253 echo "$ac_t""no" 1>&6
17254fi
17255done
17256
17257
17258 if test "$ac_cv_header_ole2_h" = "yes" ; then
17259 if test "$GCC" = yes ; then
17260 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17261 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
17262 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17263 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17264 cat >> confdefs.h <<\EOF
17265#define wxUSE_OLE 1
17266EOF
17267
17268
17269 if test "$wxUSE_METAFILE" = "yes"; then
17270 cat >> confdefs.h <<\EOF
17271#define wxUSE_METAFILE 1
17272EOF
17273
17274 cat >> confdefs.h <<\EOF
17275#define wxUSE_ENH_METAFILE 1
17276EOF
17277
17278 fi
17279 fi
17280 else
17281 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
17282 wxUSE_DRAG_AND_DROP=no
17283 fi
17284 fi
17285
17286 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17287 cat >> confdefs.h <<\EOF
17288#define wxUSE_DRAG_AND_DROP 1
17289EOF
17290
17291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17292 fi
17293
17294fi
17295
17296if test "$wxUSE_SPLINES" = "yes" ; then
17297 cat >> confdefs.h <<\EOF
17298#define wxUSE_SPLINES 1
17299EOF
17300
17301fi
17302
17303
17304USES_CONTROLS=0
17305if test "$wxUSE_CONTROLS" = "yes"; then
17306 USES_CONTROLS=1
17307fi
17308
17309if test "$wxUSE_ACCEL" = "yes"; then
17310 cat >> confdefs.h <<\EOF
17311#define wxUSE_ACCEL 1
17312EOF
17313
17314 USES_CONTROLS=1
17315fi
17316
17317if test "$wxUSE_BUTTON" = "yes"; then
17318 cat >> confdefs.h <<\EOF
17319#define wxUSE_BUTTON 1
17320EOF
17321
17322 USES_CONTROLS=1
17323fi
17324
17325if test "$wxUSE_BMPBUTTON" = "yes"; then
17326 cat >> confdefs.h <<\EOF
17327#define wxUSE_BMPBUTTON 1
17328EOF
17329
17330 USES_CONTROLS=1
17331fi
17332
17333if test "$wxUSE_CALCTRL" = "yes"; then
17334 cat >> confdefs.h <<\EOF
17335#define wxUSE_CALENDARCTRL 1
17336EOF
17337
17338 USES_CONTROLS=1
17339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17340fi
17341
17342if test "$wxUSE_CARET" = "yes"; then
17343 cat >> confdefs.h <<\EOF
17344#define wxUSE_CARET 1
17345EOF
17346
17347 USES_CONTROLS=1
17348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17349fi
17350
17351if test "$wxUSE_COMBOBOX" = "yes"; then
17352 cat >> confdefs.h <<\EOF
17353#define wxUSE_COMBOBOX 1
17354EOF
17355
17356 USES_CONTROLS=1
17357fi
17358
17359if test "$wxUSE_CHOICE" = "yes"; then
17360 cat >> confdefs.h <<\EOF
17361#define wxUSE_CHOICE 1
17362EOF
17363
17364 USES_CONTROLS=1
17365fi
17366
17367if test "$wxUSE_CHECKBOX" = "yes"; then
17368 cat >> confdefs.h <<\EOF
17369#define wxUSE_CHECKBOX 1
17370EOF
17371
17372 USES_CONTROLS=1
17373fi
17374
17375if test "$wxUSE_CHECKLST" = "yes"; then
17376 cat >> confdefs.h <<\EOF
17377#define wxUSE_CHECKLISTBOX 1
17378EOF
17379
17380 USES_CONTROLS=1
17381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17382fi
17383
17384if test "$wxUSE_GAUGE" = "yes"; then
17385 cat >> confdefs.h <<\EOF
17386#define wxUSE_GAUGE 1
17387EOF
17388
17389 USES_CONTROLS=1
17390fi
17391
17392if test "$wxUSE_NEW_GRID" = "yes"; then
17393 wxUSE_GRID="yes"
17394 cat >> confdefs.h <<\EOF
17395#define wxUSE_NEW_GRID 1
17396EOF
17397
17398 USES_CONTROLS=1
17399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17400fi
17401
17402if test "$wxUSE_GRID" = "yes"; then
17403 cat >> confdefs.h <<\EOF
17404#define wxUSE_GRID 1
17405EOF
17406
17407 USES_CONTROLS=1
17408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17409fi
17410
17411if test "$wxUSE_IMAGLIST" = "yes"; then
17412 cat >> confdefs.h <<\EOF
17413#define wxUSE_IMAGLIST 1
17414EOF
17415
17416fi
17417
17418if test "$wxUSE_LISTBOX" = "yes"; then
17419 cat >> confdefs.h <<\EOF
17420#define wxUSE_LISTBOX 1
17421EOF
17422
17423 USES_CONTROLS=1
17424fi
17425
17426if test "$wxUSE_LISTCTRL" = "yes"; then
17427 if test "$wxUSE_IMAGLIST" = "yes"; then
17428 cat >> confdefs.h <<\EOF
17429#define wxUSE_LISTCTRL 1
17430EOF
17431
17432 USES_CONTROLS=1
17433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17434 else
17435 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17436 fi
17437fi
17438
17439if test "$wxUSE_NOTEBOOK" = "yes"; then
17440 cat >> confdefs.h <<\EOF
17441#define wxUSE_NOTEBOOK 1
17442EOF
17443
17444 USES_CONTROLS=1
17445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17446fi
17447
17448if test "$wxUSE_PROPSHEET" = "yes"; then
17449 cat >> confdefs.h <<\EOF
17450#define wxUSE_PROPSHEET 1
17451EOF
17452
17453 USES_CONTROLS=1
17454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17455fi
17456
17457if test "$wxUSE_RADIOBOX" = "yes"; then
17458 cat >> confdefs.h <<\EOF
17459#define wxUSE_RADIOBOX 1
17460EOF
17461
17462 USES_CONTROLS=1
17463fi
17464
17465if test "$wxUSE_RADIOBTN" = "yes"; then
17466 cat >> confdefs.h <<\EOF
17467#define wxUSE_RADIOBTN 1
17468EOF
17469
17470 USES_CONTROLS=1
17471fi
17472
17473if test "$wxUSE_SASH" = "yes"; then
17474 cat >> confdefs.h <<\EOF
17475#define wxUSE_SASH 1
17476EOF
17477
17478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17479fi
17480
17481if test "$wxUSE_SCROLLBAR" = "yes"; then
17482 cat >> confdefs.h <<\EOF
17483#define wxUSE_SCROLLBAR 1
17484EOF
17485
17486 USES_CONTROLS=1
17487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17488fi
17489
17490if test "$wxUSE_SLIDER" = "yes"; then
17491 cat >> confdefs.h <<\EOF
17492#define wxUSE_SLIDER 1
17493EOF
17494
17495 USES_CONTROLS=1
17496fi
17497
17498if test "$wxUSE_SPINBTN" = "yes"; then
17499 cat >> confdefs.h <<\EOF
17500#define wxUSE_SPINBTN 1
17501EOF
17502
17503 USES_CONTROLS=1
17504fi
17505
17506if test "$wxUSE_SPINCTRL" = "yes"; then
17507 cat >> confdefs.h <<\EOF
17508#define wxUSE_SPINCTRL 1
17509EOF
17510
17511 USES_CONTROLS=1
17512fi
17513
17514if test "$wxUSE_SPLITTER" = "yes"; then
17515 cat >> confdefs.h <<\EOF
17516#define wxUSE_SPLITTER 1
17517EOF
17518
17519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17520fi
17521
17522if test "$wxUSE_STATBMP" = "yes"; then
17523 cat >> confdefs.h <<\EOF
17524#define wxUSE_STATBMP 1
17525EOF
17526
17527 USES_CONTROLS=1
17528fi
17529
17530if test "$wxUSE_STATBOX" = "yes"; then
17531 cat >> confdefs.h <<\EOF
17532#define wxUSE_STATBOX 1
17533EOF
17534
17535 USES_CONTROLS=1
17536fi
17537
17538if test "$wxUSE_STATTEXT" = "yes"; then
17539 cat >> confdefs.h <<\EOF
17540#define wxUSE_STATTEXT 1
17541EOF
17542
17543 USES_CONTROLS=1
17544fi
17545
17546if test "$wxUSE_STATLINE" = "yes"; then
17547 if test "$wxUSE_WINE" = 1 ; then
17548 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17549 else
17550 cat >> confdefs.h <<\EOF
17551#define wxUSE_STATLINE 1
17552EOF
17553
17554 USES_CONTROLS=1
17555 fi
17556fi
17557
17558if test "$wxUSE_STATUSBAR" = "yes"; then
17559 cat >> confdefs.h <<\EOF
17560#define wxUSE_STATUSBAR 1
17561EOF
17562
17563 USES_CONTROLS=1
17564
17565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17566fi
17567
17568if test "$wxUSE_TABDIALOG" = "yes"; then
17569 cat >> confdefs.h <<\EOF
17570#define wxUSE_TAB_DIALOG 1
17571EOF
17572
17573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17574fi
17575
17576if test "$wxUSE_TEXTCTRL" = "yes"; then
17577 cat >> confdefs.h <<\EOF
17578#define wxUSE_TEXTCTRL 1
17579EOF
17580
17581 USES_CONTROLS=1
17582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17583fi
17584
17585if test "$wxUSE_TOGGLEBTN" = "yes"; then
17586 if test "$wxUSE_MAC" = 1; then
17587 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17588 wxUSE_TOGGLEBTN=no
17589 fi
17590
17591 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17592 cat >> confdefs.h <<\EOF
17593#define wxUSE_TOGGLEBTN 1
17594EOF
17595
17596 USES_CONTROLS=1
17597 fi
17598fi
17599
17600if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17601 cat >> confdefs.h <<\EOF
17602#define wxUSE_TOOLBAR_SIMPLE 1
17603EOF
17604
17605 wxUSE_TOOLBAR="yes"
17606 USES_CONTROLS=1
17607fi
17608
17609if test "$wxUSE_TOOLBAR" = "yes"; then
17610 cat >> confdefs.h <<\EOF
17611#define wxUSE_TOOLBAR 1
17612EOF
17613
17614 USES_CONTROLS=1
17615
17616 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17617 wxUSE_TOOLBAR_NATIVE="yes"
17618 fi
17619
17620 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17621 cat >> confdefs.h <<\EOF
17622#define wxUSE_TOOLBAR_NATIVE 1
17623EOF
17624
17625 USES_CONTROLS=1
17626 fi
17627
17628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17629fi
17630
17631if test "$wxUSE_TOOLTIPS" = "yes"; then
17632 if test "$wxUSE_MOTIF" = 1; then
17633 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17634 else
17635 if test "$wxUSE_WINE" = 1; then
17636 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17637 else
17638 cat >> confdefs.h <<\EOF
17639#define wxUSE_TOOLTIPS 1
17640EOF
17641
17642 fi
17643 fi
17644fi
17645
17646if test "$wxUSE_TREECTRL" = "yes"; then
17647 if test "$wxUSE_IMAGLIST" = "yes"; then
17648 cat >> confdefs.h <<\EOF
17649#define wxUSE_TREECTRL 1
17650EOF
17651
17652 USES_CONTROLS=1
17653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17654 else
17655 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17656 fi
17657fi
17658
17659if test "$wxUSE_POPUPWIN" = "yes"; then
17660 if test "$wxUSE_MAC" = 1; then
17661 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17662 else
17663 cat >> confdefs.h <<\EOF
17664#define wxUSE_POPUPWIN 1
17665EOF
17666
17667 USES_CONTROLS=1
17668 fi
17669fi
17670
17671if test "$USES_CONTROLS" = 1; then
17672 cat >> confdefs.h <<\EOF
17673#define wxUSE_CONTROLS 1
17674EOF
17675
17676fi
17677
17678
17679if test "$wxUSE_TREELAYOUT" = "yes"; then
17680 cat >> confdefs.h <<\EOF
17681#define wxUSE_TREELAYOUT 1
17682EOF
17683
17684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17685fi
17686
17687if test "$wxUSE_DRAGIMAGE" = "yes"; then
17688 cat >> confdefs.h <<\EOF
17689#define wxUSE_DRAGIMAGE 1
17690EOF
17691
17692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17693fi
17694
17695if test "$wxUSE_MENUS" = "yes"; then
17696 cat >> confdefs.h <<\EOF
17697#define wxUSE_MENUS 1
17698EOF
17699
17700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17701fi
17702
17703if test "$wxUSE_METAFILE" = "yes"; then
17704 cat >> confdefs.h <<\EOF
17705#define wxUSE_METAFILE 1
17706EOF
17707
17708fi
17709
17710if test "$wxUSE_MIMETYPE" = "yes"; then
17711 cat >> confdefs.h <<\EOF
17712#define wxUSE_MIMETYPE 1
17713EOF
17714
17715fi
17716
17717if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17718 cat >> confdefs.h <<\EOF
17719#define wxUSE_SYSTEM_OPTIONS 1
17720EOF
17721
17722fi
17723
17724if test "$wxUSE_MINIFRAME" = "yes"; then
17725 cat >> confdefs.h <<\EOF
17726#define wxUSE_MINIFRAME 1
17727EOF
17728
17729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17730fi
17731
17732if test "$wxUSE_HTML" = "yes"; then
17733 cat >> confdefs.h <<\EOF
17734#define wxUSE_HTML 1
17735EOF
17736
17737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17738 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17739fi
17740
17741if test "$wxUSE_VALIDATORS" = "yes"; then
17742 cat >> confdefs.h <<\EOF
17743#define wxUSE_VALIDATORS 1
17744EOF
17745
17746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17747fi
17748
17749if test "$wxUSE_IMAGE" = "yes" ; then
17750 cat >> confdefs.h <<\EOF
17751#define wxUSE_IMAGE 1
17752EOF
17753
17754fi
17755
17756if test "$wxUSE_GIF" = "yes" ; then
17757 cat >> confdefs.h <<\EOF
17758#define wxUSE_GIF 1
17759EOF
17760
17761fi
17762
17763if test "$wxUSE_PCX" = "yes" ; then
17764 cat >> confdefs.h <<\EOF
17765#define wxUSE_PCX 1
17766EOF
17767
17768fi
17769
17770if test "$wxUSE_PNM" = "yes" ; then
17771 cat >> confdefs.h <<\EOF
17772#define wxUSE_PNM 1
17773EOF
17774
17775fi
17776
17777if test "$wxUSE_XPM" = "yes" ; then
17778 cat >> confdefs.h <<\EOF
17779#define wxUSE_XPM 1
17780EOF
17781
17782fi
17783
17784
17785if test "$wxUSE_CHOICEDLG" = "yes"; then
17786 cat >> confdefs.h <<\EOF
17787#define wxUSE_CHOICEDLG 1
17788EOF
17789
17790fi
17791
17792if test "$wxUSE_COLOURDLG" = "yes"; then
17793 cat >> confdefs.h <<\EOF
17794#define wxUSE_COLOURDLG 1
17795EOF
17796
17797fi
17798
17799if test "$wxUSE_FILEDLG" = "yes"; then
17800 cat >> confdefs.h <<\EOF
17801#define wxUSE_FILEDLG 1
17802EOF
17803
17804fi
17805
17806if test "$wxUSE_FINDREPLDLG" = "yes"; then
17807 cat >> confdefs.h <<\EOF
17808#define wxUSE_FINDREPLDLG 1
17809EOF
17810
17811fi
17812
17813if test "$wxUSE_FONTDLG" = "yes"; then
17814 cat >> confdefs.h <<\EOF
17815#define wxUSE_FONTDLG 1
17816EOF
17817
17818fi
17819
17820if test "$wxUSE_DIRDLG" = "yes"; then
17821 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17822 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17823 else
17824 if test "$wxUSE_TREECTRL" != "yes"; then
17825 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17826 else
17827 cat >> confdefs.h <<\EOF
17828#define wxUSE_DIRDLG 1
17829EOF
17830
17831 fi
17832 fi
17833fi
17834
17835if test "$wxUSE_MSGDLG" = "yes"; then
17836 cat >> confdefs.h <<\EOF
17837#define wxUSE_MSGDLG 1
17838EOF
17839
17840fi
17841
17842if test "$wxUSE_NUMBERDLG" = "yes"; then
17843 cat >> confdefs.h <<\EOF
17844#define wxUSE_NUMBERDLG 1
17845EOF
17846
17847fi
17848
17849if test "$wxUSE_PROGRESSDLG" = "yes"; then
17850 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17851 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17852 else
17853 cat >> confdefs.h <<\EOF
17854#define wxUSE_PROGRESSDLG 1
17855EOF
17856
17857 fi
17858fi
17859
17860if test "$wxUSE_SPLASH" = "yes"; then
17861 cat >> confdefs.h <<\EOF
17862#define wxUSE_SPLASH 1
17863EOF
17864
17865fi
17866
17867if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17868 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17869 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17870 else
17871 cat >> confdefs.h <<\EOF
17872#define wxUSE_STARTUP_TIPS 1
17873EOF
17874
17875 fi
17876fi
17877
17878if test "$wxUSE_TEXTDLG" = "yes"; then
17879 cat >> confdefs.h <<\EOF
17880#define wxUSE_TEXTDLG 1
17881EOF
17882
17883fi
17884
17885if test "$wxUSE_WIZARDDLG" = "yes"; then
17886 cat >> confdefs.h <<\EOF
17887#define wxUSE_WIZARDDLG 1
17888EOF
17889
17890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17891fi
17892
17893
17894if test "$cross_compiling" = "yes"; then
17895 OSINFO="\"$host\""
17896else
17897 OSINFO=`uname -s -r -m`
17898 OSINFO="\"$OSINFO\""
17899fi
17900
17901cat >> confdefs.h <<EOF
17902#define WXWIN_OS_DESCRIPTION $OSINFO
17903EOF
17904
17905
17906
17907GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17908OPENGL_LIBS="$OPENGL_LINK"
17909
17910EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17911if test "$wxUSE_MAC" = 1 ; then
17912 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17913fi
17914if test "$wxUSE_GUI" = "yes"; then
17915 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17916fi
17917
17918LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17919
17920INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17921$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17922$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17923
17924if test "$wxUSE_GTK" = 1; then
17925 WXCONFIG_INCLUDE=""
17926else
17927 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17928fi
17929
17930if test "$GXX" = yes ; then
17931 CXXWARNINGS="-Wall"
17932 fi
17933EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17934
17935CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17936CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17937
17938LDFLAGS="$LDFLAGS $PROFILE"
17939
17940if test "$wxUSE_GUI" = "yes"; then
17941
17942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17943 drawing dynamic erase event exec font image \
17944 minimal richedit rotate widgets"
17945
17946 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17948 fi
17949
17950 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17951else
17952 SAMPLES_SUBDIRS="console"
17953fi
17954
17955SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18052echo "configure:18053: checking whether ${MAKE-make} sets \${MAKE}" >&5
18053set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18054if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18055 echo $ac_n "(cached) $ac_c" 1>&6
18056else
18057 cat > conftestmake <<\EOF
18058all:
18059 @echo 'ac_maketemp="${MAKE}"'
18060EOF
18061# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18062eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18063if test -n "$ac_maketemp"; then
18064 eval ac_cv_prog_make_${ac_make}_set=yes
18065else
18066 eval ac_cv_prog_make_${ac_make}_set=no
18067fi
18068rm -f conftestmake
18069fi
18070if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18071 echo "$ac_t""yes" 1>&6
18072 SET_MAKE=
18073else
18074 echo "$ac_t""no" 1>&6
18075 SET_MAKE="MAKE=${MAKE-make}"
18076fi
18077
18078
18079if test -d include; then
18080 if test -d include/wx; then
18081 if test -d include/wx/${SETUPH_DIR}; then
18082 if test -f include/wx/${SETUPH_DIR}/setup.h; then
18083 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
18084 fi
18085 fi
18086 fi
18087fi
18088
18089
18090
18091if test "$wxUSE_GUI" = "yes"; then
18092 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18093 wx_cv_path_ifs=$PATH_IFS
18094 wx_cv_program_ext=$PROGRAM_EXT
18095 wx_cv_target_library=$WX_TARGET_LIBRARY
18096 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18097 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18098 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18099 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18100 subdirs="demos samples utils contrib"
18101
18102fi
18103
18104trap '' 1 2 15
18105cat > confcache <<\EOF
18106# This file is a shell script that caches the results of configure
18107# tests run on this system so they can be shared between configure
18108# scripts and configure runs. It is not useful on other systems.
18109# If it contains results you don't want to keep, you may remove or edit it.
18110#
18111# By default, configure uses ./config.cache as the cache file,
18112# creating it if it does not exist already. You can give configure
18113# the --cache-file=FILE option to use a different cache file; that is
18114# what configure does when it calls configure scripts in
18115# subdirectories, so they share the cache.
18116# Giving --cache-file=/dev/null disables caching, for debugging configure.
18117# config.status only pays attention to the cache file if you give it the
18118# --recheck option to rerun configure.
18119#
18120EOF
18121# The following way of writing the cache mishandles newlines in values,
18122# but we know of no workaround that is simple, portable, and efficient.
18123# So, don't put newlines in cache variables' values.
18124# Ultrix sh set writes to stderr and can't be redirected directly,
18125# and sets the high bit in the cache file unless we assign to the vars.
18126(set) 2>&1 |
18127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18128 *ac_space=\ *)
18129 # `set' does not quote correctly, so add quotes (double-quote substitution
18130 # turns \\\\ into \\, and sed turns \\ into \).
18131 sed -n \
18132 -e "s/'/'\\\\''/g" \
18133 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18134 ;;
18135 *)
18136 # `set' quotes correctly as required by POSIX, so do not add quotes.
18137 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18138 ;;
18139 esac >> confcache
18140if cmp -s $cache_file confcache; then
18141 :
18142else
18143 if test -w $cache_file; then
18144 echo "updating cache $cache_file"
18145 cat confcache > $cache_file
18146 else
18147 echo "not updating unwritable cache $cache_file"
18148 fi
18149fi
18150rm -f confcache
18151
18152trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18153
18154test "x$prefix" = xNONE && prefix=$ac_default_prefix
18155# Let make expand exec_prefix.
18156test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18157
18158# Any assignment to VPATH causes Sun make to only execute
18159# the first set of double-colon rules, so remove it if not needed.
18160# If there is a colon in the path, we need to keep it.
18161if test "x$srcdir" = x.; then
18162 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18163fi
18164
18165trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18166
18167DEFS=-DHAVE_CONFIG_H
18168
18169# Without the "./", some shells look in PATH for config.status.
18170: ${CONFIG_STATUS=./config.status}
18171
18172echo creating $CONFIG_STATUS
18173rm -f $CONFIG_STATUS
18174cat > $CONFIG_STATUS <<EOF
18175#! /bin/sh
18176# Generated automatically by configure.
18177# Run this file to recreate the current configuration.
18178# This directory was configured as follows,
18179# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18180#
18181# $0 $ac_configure_args
18182#
18183# Compiler output produced by configure, useful for debugging
18184# configure, is in ./config.log if it exists.
18185
18186ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18187for ac_option
18188do
18189 case "\$ac_option" in
18190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18191 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18192 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18193 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18194 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18195 exit 0 ;;
18196 -help | --help | --hel | --he | --h)
18197 echo "\$ac_cs_usage"; exit 0 ;;
18198 *) echo "\$ac_cs_usage"; exit 1 ;;
18199 esac
18200done
18201
18202ac_given_srcdir=$srcdir
18203ac_given_INSTALL="$INSTALL"
18204
18205trap 'rm -fr `echo "
18206 wx-config
18207 src/make.env
18208 src/makeprog.env
18209 src/makelib.env
18210 Makefile
18211 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18212EOF
18213cat >> $CONFIG_STATUS <<EOF
18214
18215# Protect against being on the right side of a sed subst in config.status.
18216sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18217 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18218$ac_vpsub
18219$extrasub
18220s%@SHELL@%$SHELL%g
18221s%@CFLAGS@%$CFLAGS%g
18222s%@CPPFLAGS@%$CPPFLAGS%g
18223s%@CXXFLAGS@%$CXXFLAGS%g
18224s%@FFLAGS@%$FFLAGS%g
18225s%@DEFS@%$DEFS%g
18226s%@LDFLAGS@%$LDFLAGS%g
18227s%@LIBS@%$LIBS%g
18228s%@exec_prefix@%$exec_prefix%g
18229s%@prefix@%$prefix%g
18230s%@program_transform_name@%$program_transform_name%g
18231s%@bindir@%$bindir%g
18232s%@sbindir@%$sbindir%g
18233s%@libexecdir@%$libexecdir%g
18234s%@datadir@%$datadir%g
18235s%@sysconfdir@%$sysconfdir%g
18236s%@sharedstatedir@%$sharedstatedir%g
18237s%@localstatedir@%$localstatedir%g
18238s%@libdir@%$libdir%g
18239s%@includedir@%$includedir%g
18240s%@oldincludedir@%$oldincludedir%g
18241s%@infodir@%$infodir%g
18242s%@mandir@%$mandir%g
18243s%@host@%$host%g
18244s%@host_alias@%$host_alias%g
18245s%@host_cpu@%$host_cpu%g
18246s%@host_vendor@%$host_vendor%g
18247s%@host_os@%$host_os%g
18248s%@target@%$target%g
18249s%@target_alias@%$target_alias%g
18250s%@target_cpu@%$target_cpu%g
18251s%@target_vendor@%$target_vendor%g
18252s%@target_os@%$target_os%g
18253s%@build@%$build%g
18254s%@build_alias@%$build_alias%g
18255s%@build_cpu@%$build_cpu%g
18256s%@build_vendor@%$build_vendor%g
18257s%@build_os@%$build_os%g
18258s%@CC@%$CC%g
18259s%@CPP@%$CPP%g
18260s%@CXX@%$CXX%g
18261s%@CXXCPP@%$CXXCPP%g
18262s%@RANLIB@%$RANLIB%g
18263s%@AR@%$AR%g
18264s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18265s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18266s%@INSTALL_DATA@%$INSTALL_DATA%g
18267s%@STRIP@%$STRIP%g
18268s%@YACC@%$YACC%g
18269s%@LEX@%$LEX%g
18270s%@LEXLIB@%$LEXLIB%g
18271s%@LN_S@%$LN_S%g
18272s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18273s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18274s%@GTK_LIBS@%$GTK_LIBS%g
18275s%@GTK_CONFIG@%$GTK_CONFIG%g
18276s%@X_CFLAGS@%$X_CFLAGS%g
18277s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18278s%@X_LIBS@%$X_LIBS%g
18279s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18280s%@REZ@%$REZ%g
18281s%@DEREZ@%$DEREZ%g
18282s%@LEX_STEM@%$LEX_STEM%g
18283s%@PATH_IFS@%$PATH_IFS%g
18284s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18285s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18286s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18287s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18288s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18289s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18290s%@WX_LIBRARY@%$WX_LIBRARY%g
18291s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18292s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18293s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18294s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18295s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18296s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18297s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18298s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18299s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18300s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18301s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18302s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18303s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18304s%@WX_ALL@%$WX_ALL%g
18305s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18306s%@SHARED_LD@%$SHARED_LD%g
18307s%@PIC_FLAG@%$PIC_FLAG%g
18308s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18309s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18310s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18311s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18312s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18313s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18314s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18315s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18316s%@USE_GUI@%$USE_GUI%g
18317s%@AFMINSTALL@%$AFMINSTALL%g
18318s%@SETUPH_DIR@%$SETUPH_DIR%g
18319s%@TOOLKIT@%$TOOLKIT%g
18320s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18321s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18322s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18323s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
18324s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18325s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18326s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18327s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18328s%@GUIDIST@%$GUIDIST%g
18329s%@PORT_FILES@%$PORT_FILES%g
18330s%@DISTDIR@%$DISTDIR%g
18331s%@RPM_SPEC@%$RPM_SPEC%g
18332s%@RPM_FILES@%$RPM_FILES%g
18333s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18334s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18335s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18336s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18337s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18338s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18339s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18340s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18341s%@EXTRADEFS@%$EXTRADEFS%g
18342s%@LD_LIBS@%$LD_LIBS%g
18343s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18344s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18345s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18346s%@RESPROGRAM@%$RESPROGRAM%g
18347s%@RESCOMP@%$RESCOMP%g
18348s%@RESFLAGS@%$RESFLAGS%g
18349s%@REZFLAGS@%$REZFLAGS%g
18350s%@DEREZFLAGS@%$DEREZFLAGS%g
18351s%@LIBWXMACRES@%$LIBWXMACRES%g
18352s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18353s%@DLLTOOL@%$DLLTOOL%g
18354s%@AS@%$AS%g
18355s%@NM@%$NM%g
18356s%@LD@%$LD%g
18357s%@MAKEINFO@%$MAKEINFO%g
18358s%@SET_MAKE@%$SET_MAKE%g
18359s%@subdirs@%$subdirs%g
18360
18361CEOF
18362EOF
18363
18364cat >> $CONFIG_STATUS <<\EOF
18365
18366# Split the substitutions into bite-sized pieces for seds with
18367# small command number limits, like on Digital OSF/1 and HP-UX.
18368ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18369ac_file=1 # Number of current file.
18370ac_beg=1 # First line for current file.
18371ac_end=$ac_max_sed_cmds # Line after last line for current file.
18372ac_more_lines=:
18373ac_sed_cmds=""
18374while $ac_more_lines; do
18375 if test $ac_beg -gt 1; then
18376 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18377 else
18378 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18379 fi
18380 if test ! -s conftest.s$ac_file; then
18381 ac_more_lines=false
18382 rm -f conftest.s$ac_file
18383 else
18384 if test -z "$ac_sed_cmds"; then
18385 ac_sed_cmds="sed -f conftest.s$ac_file"
18386 else
18387 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18388 fi
18389 ac_file=`expr $ac_file + 1`
18390 ac_beg=$ac_end
18391 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18392 fi
18393done
18394if test -z "$ac_sed_cmds"; then
18395 ac_sed_cmds=cat
18396fi
18397EOF
18398
18399cat >> $CONFIG_STATUS <<EOF
18400
18401CONFIG_FILES=\${CONFIG_FILES-"wx-config
18402 src/make.env
18403 src/makeprog.env
18404 src/makelib.env
18405 Makefile
18406 "}
18407EOF
18408cat >> $CONFIG_STATUS <<\EOF
18409for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18410 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18411 case "$ac_file" in
18412 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18413 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18414 *) ac_file_in="${ac_file}.in" ;;
18415 esac
18416
18417 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18418
18419 # Remove last slash and all that follows it. Not all systems have dirname.
18420 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18421 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18422 # The file is in a subdirectory.
18423 test ! -d "$ac_dir" && mkdir "$ac_dir"
18424 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18425 # A "../" for each directory in $ac_dir_suffix.
18426 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18427 else
18428 ac_dir_suffix= ac_dots=
18429 fi
18430
18431 case "$ac_given_srcdir" in
18432 .) srcdir=.
18433 if test -z "$ac_dots"; then top_srcdir=.
18434 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18435 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18436 *) # Relative path.
18437 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18438 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18439 esac
18440
18441 case "$ac_given_INSTALL" in
18442 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18443 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18444 esac
18445
18446 echo creating "$ac_file"
18447 rm -f "$ac_file"
18448 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18449 case "$ac_file" in
18450 *Makefile*) ac_comsub="1i\\
18451# $configure_input" ;;
18452 *) ac_comsub= ;;
18453 esac
18454
18455 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18456 sed -e "$ac_comsub
18457s%@configure_input@%$configure_input%g
18458s%@srcdir@%$srcdir%g
18459s%@top_srcdir@%$top_srcdir%g
18460s%@INSTALL@%$INSTALL%g
18461" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18462fi; done
18463rm -f conftest.s*
18464
18465# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18466# NAME is the cpp macro being defined and VALUE is the value it is being given.
18467#
18468# ac_d sets the value in "#define NAME VALUE" lines.
18469ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18470ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18471ac_dC='\3'
18472ac_dD='%g'
18473# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18474ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18475ac_uB='\([ ]\)%\1#\2define\3'
18476ac_uC=' '
18477ac_uD='\4%g'
18478# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18479ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18480ac_eB='$%\1#\2define\3'
18481ac_eC=' '
18482ac_eD='%g'
18483
18484if test "${CONFIG_HEADERS+set}" != set; then
18485EOF
18486cat >> $CONFIG_STATUS <<EOF
18487 CONFIG_HEADERS="setup.h:setup.h.in"
18488EOF
18489cat >> $CONFIG_STATUS <<\EOF
18490fi
18491for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18492 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18493 case "$ac_file" in
18494 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18495 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18496 *) ac_file_in="${ac_file}.in" ;;
18497 esac
18498
18499 echo creating $ac_file
18500
18501 rm -f conftest.frag conftest.in conftest.out
18502 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18503 cat $ac_file_inputs > conftest.in
18504
18505EOF
18506
18507# Transform confdefs.h into a sed script conftest.vals that substitutes
18508# the proper values into config.h.in to produce config.h. And first:
18509# Protect against being on the right side of a sed subst in config.status.
18510# Protect against being in an unquoted here document in config.status.
18511rm -f conftest.vals
18512cat > conftest.hdr <<\EOF
18513s/[\\&%]/\\&/g
18514s%[\\$`]%\\&%g
18515s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18516s%ac_d%ac_u%gp
18517s%ac_u%ac_e%gp
18518EOF
18519sed -n -f conftest.hdr confdefs.h > conftest.vals
18520rm -f conftest.hdr
18521
18522# This sed command replaces #undef with comments. This is necessary, for
18523# example, in the case of _POSIX_SOURCE, which is predefined and required
18524# on some systems where configure will not decide to define it.
18525cat >> conftest.vals <<\EOF
18526s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18527EOF
18528
18529# Break up conftest.vals because some shells have a limit on
18530# the size of here documents, and old seds have small limits too.
18531
18532rm -f conftest.tail
18533while :
18534do
18535 ac_lines=`grep -c . conftest.vals`
18536 # grep -c gives empty output for an empty file on some AIX systems.
18537 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18538 # Write a limited-size here document to conftest.frag.
18539 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18540 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18541 echo 'CEOF
18542 sed -f conftest.frag conftest.in > conftest.out
18543 rm -f conftest.in
18544 mv conftest.out conftest.in
18545' >> $CONFIG_STATUS
18546 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18547 rm -f conftest.vals
18548 mv conftest.tail conftest.vals
18549done
18550rm -f conftest.vals
18551
18552cat >> $CONFIG_STATUS <<\EOF
18553 rm -f conftest.frag conftest.h
18554 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18555 cat conftest.in >> conftest.h
18556 rm -f conftest.in
18557 if cmp -s $ac_file conftest.h 2>/dev/null; then
18558 echo "$ac_file is unchanged"
18559 rm -f conftest.h
18560 else
18561 # Remove last slash and all that follows it. Not all systems have dirname.
18562 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18563 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18564 # The file is in a subdirectory.
18565 test ! -d "$ac_dir" && mkdir "$ac_dir"
18566 fi
18567 rm -f $ac_file
18568 mv conftest.h $ac_file
18569 fi
18570fi; done
18571
18572EOF
18573cat >> $CONFIG_STATUS <<EOF
18574
18575 SETUPH_DIR="${SETUPH_DIR}"
18576 TOOLKIT_NAME="${TOOLKIT_NAME}"
18577 LN_S="${LN_S}"
18578
18579
18580EOF
18581cat >> $CONFIG_STATUS <<\EOF
18582
18583 if test ! -f wx${TOOLKIT_NAME}-config; then
18584 chmod +x wx-config
18585 mv wx-config wx${TOOLKIT_NAME}-config
18586 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18587 fi
18588
18589
18590 if test ! -d lib; then
18591 mkdir lib
18592 fi
18593 if test ! -d lib/wx; then
18594 mkdir lib/wx
18595 fi
18596 if test ! -d lib/wx/include; then
18597 mkdir lib/wx/include
18598 fi
18599 if test ! -d lib/wx/include/wx; then
18600 mkdir lib/wx/include/wx
18601 fi
18602 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18603 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
18604 fi
18605 if test -f setup.h; then
18606 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
18607 fi
18608
18609
18610 if test ! -d include; then
18611 mkdir include
18612 fi
18613 if test ! -d include/wx; then
18614 mkdir include/wx
18615 fi
18616 if test ! -d include/wx/${SETUPH_DIR}; then
18617 mkdir include/wx/${SETUPH_DIR}
18618 fi
18619 if test -f setup.h; then
18620 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
18621 fi
18622
18623
18624exit 0
18625EOF
18626chmod +x $CONFIG_STATUS
18627rm -fr confdefs* $ac_clean_files
18628test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18629
18630if test "$no_recursion" != yes; then
18631
18632 # Remove --cache-file and --srcdir arguments so they do not pile up.
18633 ac_sub_configure_args=
18634 ac_prev=
18635 for ac_arg in $ac_configure_args; do
18636 if test -n "$ac_prev"; then
18637 ac_prev=
18638 continue
18639 fi
18640 case "$ac_arg" in
18641 -cache-file | --cache-file | --cache-fil | --cache-fi \
18642 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18643 ac_prev=cache_file ;;
18644 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18645 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18646 ;;
18647 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18648 ac_prev=srcdir ;;
18649 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18650 ;;
18651 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18652 esac
18653 done
18654
18655 for ac_config_dir in demos samples utils contrib; do
18656
18657 # Do not complain, so a configure script can configure whichever
18658 # parts of a large source tree are present.
18659 if test ! -d $srcdir/$ac_config_dir; then
18660 continue
18661 fi
18662
18663 echo configuring in $ac_config_dir
18664
18665 case "$srcdir" in
18666 .) ;;
18667 *)
18668 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18669 else
18670 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18671 fi
18672 ;;
18673 esac
18674
18675 ac_popdir=`pwd`
18676 cd $ac_config_dir
18677
18678 # A "../" for each directory in /$ac_config_dir.
18679 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18680
18681 case "$srcdir" in
18682 .) # No --srcdir option. We are building in place.
18683 ac_sub_srcdir=$srcdir ;;
18684 /*) # Absolute path.
18685 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18686 *) # Relative path.
18687 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18688 esac
18689
18690 # Check for guested configure; otherwise get Cygnus style configure.
18691 if test -f $ac_sub_srcdir/configure; then
18692 ac_sub_configure=$ac_sub_srcdir/configure
18693 elif test -f $ac_sub_srcdir/configure.in; then
18694 ac_sub_configure=$ac_configure
18695 else
18696 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18697 ac_sub_configure=
18698 fi
18699
18700 # The recursion is here.
18701 if test -n "$ac_sub_configure"; then
18702
18703 # Make the cache file name correct relative to the subdirectory.
18704 case "$cache_file" in
18705 /*) ac_sub_cache_file=$cache_file ;;
18706 *) # Relative path.
18707 ac_sub_cache_file="$ac_dots$cache_file" ;;
18708 esac
18709 case "$ac_given_INSTALL" in
18710 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18711 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18712 esac
18713
18714 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18715 # The eval makes quoting arguments work.
18716 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18717 then :
18718 else
18719 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18720 fi
18721 fi
18722
18723 cd $ac_popdir
18724 done
18725fi
18726
18727